Coder Social home page Coder Social logo

blossom / bee Goto Github PK

View Code? Open in Web Editor NEW
72.0 8.0 9.0 135 KB

Bee is a collection of lightweight interaction elements for modern web applications. It is built on top of Dart's Web UI package. It contains frequently used components like Buttons, Popovers, Overlays, Input Fields and more.

Home Page: https://www.blossom.io/bee

License: Other

Dart 41.78% CSS 21.02% HTML 37.19%

bee's Introduction

Bee

Bee is a collection of lightweight interaction elements for modern web applications. It is built on top of Dart's Web UI package. It contains frequently used components like Buttons, Popovers, Overlays, Input Fields and more.

Install

Bee is a Pub Package. To install Bee you can add it to your pubspec.yaml.

name: my-app
dependencies:
  bee: any

Getting started

To use a component you need to import it via a link tag.

<link rel="import" href="package:bee/components/button.html">

Add the custom Bee element inside the same file where you imported the component.

<b-button>Primary</b-button>

You might want to check out the example.

Components

Button

<link rel="import" href="package:bee/components/button.html">
<b-button>Primary</b-button>

Show Password

<link rel="import" href="package:bee/components/secret.html">
<b-secret placeholder="Enter your Password"></b-secret>

Loading Indicator

<link rel="import" href="package:bee/components/loading.html">
<b-loading></b-loading>

Popover

<link rel="import" href="package:bee/components/popover.html">
<b-popover>
    <span class="launch-area">Launch Popover</span>
    <div class="body">This is a Popover</div>
</b-popover>

Overlay

<link rel="import" href="package:bee/components/overlay.html">
<span on-click="query('.q-example-overlay').xtag.show()" on-touch-start="query('.q-example-overlay').xtag.show()">Launch Overlay</span>
<b-overlay width="600px" class="q-example-overlay">
    <h2>Bee</h2>
    <p>Bee is a collection of lightweight interaction elements for modern web applications. It is built on top of Dart's Web UI package. It contains frequently used components like Buttons, Popovers, Overlays, Input Fields and more.</p>
</b-overlay>

Tooltip

<link rel="import" href="package:bee/components/tooltip.html">
<b-tooltip></b-tooltip>

Textarea (growable)

<link rel="import" href="package:bee/components/tooltip.html">
<b-textarea value="Edit me!"></b-textarea>

Nexted Example

A button which opens an overlay on click. The overlay contains a popover. Note: Pressing 'ESC' closes popovers as well as overlays but only closes the youngest (last shown) component.

<b-button type="button" on-click="query('.q-example-nested').xtag.show()" on-touch-start="query('.q-example-nested').xtag.show()">Launch Overlay</b-button>
<b-overlay width="600px" class="q-example-nested">
    <h2>Bee</h2>
    <p>Bee is a collection of lightweight interaction elements for modern web applications. It is built on top of Dart's Web UI package. It contains frequently used components like Buttons, Popovers, Overlays, Input Fields and more.</p>
    <b-popover>
        <b-button type="button" class="launch-area">Launch Popover inside Overlay</b-button>
        <div class="body">This is a Popover</div>
    </b-popover>
    <p>Bee is a collection of lightweight interaction elements for modern web applications. It is built on top of Dart's Web UI package. It contains frequently used components like Buttons, Popovers, Overlays, Input Fields and more.</p>
</b-overlay>

Coming Soon

This is just the initial release and we'll add a bunch of additional components, examples, documentation and polish going forward :)

  • Convert to Polymer.dart
  • Tests, Tests, Tests
  • Component: Date Picker

bee's People

Contributors

alexanderzeillinger avatar allanberger avatar bryant1410 avatar ciarand avatar pa7 avatar tosh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bee's Issues

Missing font/font-family properties

Show Password / Hide Password, Loading, Popover and Overlay texts don't have a font property set so it's inherited from the parent, is that intended?

Set default values in .CSS instead of .dart

e.g. <b-loading>:
Remove

  String _defaultColor = "#505050";

  void attached() {
    // Setting the color to the default color in case no color
    // has been provided through the color attribute.
    if (color == null) {
      updateColor(_defaultColor);
    }
  }

and set default color in .CSS

Problem when importing bee

Hi,

When importing the bee libraries in a new Dart app the following warnings are given:
The imported libraries 'loading.dart' and 'overlay.dart' should not have the same name ''
The imported libraries 'loading.dart' and 'popover.dart' should not have the same name ''
The imported libraries 'loading.dart' and 'secret.dart' should not have the same name '

They probably should get differnt library names or
else be synthesized in 1 library.
The sample app runs but bee components are not showing.

I am on Windows 8 using Dart Editor and SDK version 0.6.3_r24898

Cheers,
Ivo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.