GithubHelp home page GithubHelp logo

yuanyan / boron Goto Github PK

View Code? Open in Web Editor NEW
1.5K 1.5K 154.0 1.92 MB

A collection of dialog animations with React.js

Home Page: https://yuanyan.github.io/boron

License: MIT License

JavaScript 86.59% CSS 7.01% HTML 6.41%

boron's People

Contributors

bsbates avatar dimaksid-zz avatar jesusoterogomez avatar kennyt avatar krmannix avatar madalosso avatar matthewhorst avatar morenoh149 avatar ncarreiro avatar qvist avatar sour-dev avatar yuanyan 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

boron's Issues

Invalid prop keyboard of type function supplied to Constructor

When I try to provide callback for handling escape key press using keyboard I get back warning complaing about Failed prop type. I tried to use onKeyPress, but none of the approaches work as expected, function that I provided as callback doesn't get called.

`

Edit Modal

Close `

Typescript support

Unable to use with typescript
error TS2339: Property 'show' does not exist on type 'ReactInstance'. Property 'show' does not exist on type 'Component<any, any>'.

No definitelytyped repo available :(

type invalid error when using the modal

React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in. Check the render method of BillSummaryContainer

I get the error on the console but the UI works well and the modal shows.

Any ideas why it's doing this?

Financing

Hi ๐Ÿ‘‹,

I'm Romuald from the Lsos, an organization that develops financial solutions for open source projects, and we are currently doing outreach to projects we like.

One of our solutions is the Lsos Commons which I believe could fit; is that something Boron would be interested in?

If not I'm sorry for having opened this ticket and I'll close it :).

Animations stop triggering on iOS after the page loses focus

For some reason animations stop triggering on iOS after the browser or page loses focus (switching apps or tabs) and since its waiting for the transitionend event to execute the show/hide callbacks, it makes all modals stop working.
Tried adding a delay to all animations but it didn't seem to fix the problem.

This is the workaround I ended up implementing:
iwano@f0737ae

Refs within modal are removed.

When placing refs within modal the inner refs are not registered. Consider the example below.

<Modal ref="modal">
  <h2 ref="heading">A heading</h2>
  <MyCustomFormComponent ref="form" onSubmitted={this.onSubmitted} />
</Modal>

The modal reference is found, but any reference placed within are not found, i.e. the "heading" and "form" refs are not registered.

Modals are not very mobile-friendly

With a fixed width of 500px, the modals aren't very mobile-friendly.

I've resolved this by adding a selector to the 'modal-body'
and overwritten it with width: 90% !important; as a default.
On desktop-viewport added the width: 500px !important;.

Even though it's really easy to do this yourself,
it would be nice if the modals are more mobile-friendly by default.

Differentiate the 3 styles

Hey,
Awesome tool. However I'm having some trouble trying to work with the styling of the Drop Modal. In particular, could someone differentiate the three styles -- modal, backdrop, and content? The backdrop the clearest of the 3 -- I don't think I'll be touching it much. But what's the difference between the modal style and the content style? Thanks!

How to make long modals scroll?

I included a signup form in the modal and in small (HD) screens and below it goes beyond the screen and I can't scroll it. How to fix it?

React render warning appears when hide method executed

executing the hide method produces the following error:

Warning: A component is accessing getDOMNode or findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.

Unknown prop `xmlns` on <svg>

using: React v 15.2.1 (latest as of now)

warning.js:44 Warning: Unknown prop xmlns on tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop
in svg (created by Constructor)
in div (created by Constructor)
in div (created by Constructor)
in span (created by Constructor)

React 16 support

Could you please provide any information about supporting React 16?

Responsive

Is there any way to make it responsive? I want for example that the width on large screens is 40% and on xs screens 100%.

Thanks.

Best fork of this library?

From what I can tell this library looks abandoned. Can anyone recommend a good fork? Ideally with support for React 16 and ES6.

DropModal animation looks a bit odd

The 'Boron is amazing' text seems to flicker as it appears, I am not sure if you can see it in the gif below but if you try it in your browser it should be pretty obvious:

open-drop-modal-before

Invariant Violation

My code looks similar to the one given in the example in the ReadMe. Any idea why I get this error?

Error message:

Uncaught Error: Invariant Violation: addComponentAsRefTo(...):

Only a ReactOwner can have refs. This usually means that you're trying to add a ref to a component that doesn't have an owner (that is, was not created inside of another component's render method). Try rendering this component inside of a new top-level component which will hold the ref.

browserify transform dependencies must be non-dev dependencies

reactify is listed as a browserify transform, but is included in dev dependencies so it is missing when boron is a dependency in a browserify build

results in error:

Error: Cannot find module 'reactify' from ...

workaround:
npm i -D reactify in the project that includes boron

Update for ES6

Have you guys considered updating the code for ES6? I'd love to use this modal

Isomorphic apps cannot render this modal

Please adjust this component to be able to render on the server for isomorphic (universal) apps.
This is becoming the standard now and it will be a shame not to use your component for lack of isomorphic support.
right now it throws an error because it has a dependency on document or window.
simply move the dependent code to componentDidMount...

Server Side Rendering

ReferenceError: window is not defined
    at module.exports (G:\work\cinema\node_modules\boron\node_modules\react-kit\getVendorPrefix.js:9:18)

no window on the server
use something instead (maybe this, maybe global)

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.