Giter Site home page Giter Site logo

prismaneui / prismane Goto Github PK

View Code? Open in Web Editor NEW
330.0 1.0 7.0 2.71 MB

Prismane is an innovative have-it-all React UI library

Home Page: https://www.prismane.io

License: MIT License

JavaScript 0.47% TypeScript 97.88% CSS 1.65%
prismane react reactjs ui-components ui-library

prismane's Introduction

Prismane

Prismane

A React UI library built with ease of use in mind.

Key FeaturesHow To UseStorybookCreditsLicense

Key Features

  • Custom styling system
  • Dynamic theming out of the box
  • Built in support for dark and light theme variants
  • 111+ React components
  • 26+ custom hooks
  • 27+ custom form validators

How To Use

Read Documentation

# With yarn
yarn add @prismane/core

# With npm
npm install @prismane/core

Storybook

Our Storybook is uploaded to Chromatic and is automatically updated with every change.

Storybook on Chromatic

Credits

This package uses the following packages:

License

MIT


GitHub @prismaneui  ·  Twitter @prismaneui  ·  Reddit r/prismane

prismane's People

Contributors

dependabot[bot] avatar hkbertoson avatar mutasim77 avatar spleafy 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

prismane's Issues

Fix Button component's full prop

Button's full prop should trigger full width, instead of toggling flex-grow, due to the fact that flex-grow will grow the button vertically.

Fix Form Validator Type

Form validator now accepts only a function that returns a value of type string or null. There is no type support for async validators and one should be added.

Fix date validators date format

When validating a date with the before and after validators, the format of the date is too big and interrupts the error message.

Wrong RegEx for email address

Subdomain/Domain

The RegEx would allow domain names like [email protected].

Solution

Better work with repeating capture groups here.

TLD

This part of the RegEx specified here is too strict:
https://github.com/prismaneui/prismane/blob/3d0a71233e4a101066ad4f6891ae62c59076db1b/src/validators/validators.ts#L104C50-L104C55

Reason being that top level domains often exceed the specified 6 characters and can TECHNICALLY also only consist of a single one.

Most up-to-date source from IANA directly
http://data.iana.org/TLD/tlds-alpha-by-domain.txt

Brief description
https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains

Solution:

Replace {2,6} with +

Thoughts on character sets in foreign languages

I'll just leave this here to think about: 钱华林@中科院.**

Fix Versatile Component Type

Versatile components seem to have an issue with some of the properties of the component that is passed to the as prop.

Toaster component does not stay in place

Hi, In the Toaster section of the docs, I noticed that when the toast is called it is not sticky as it is supposed to rather it is relative to the starting position of the screen. If you call the toast and start scrolling it scrolls as well. Not sure if this is something docs related or component related.
image
image

TypeError when import Breadcumb.Item and Breadcrumb.Separator

<Breadcrumb className="text-sm"> <Breadcrumb.Item href="/">Home</Breadcrumb.Item> <Breadcrumb.Separator /> <Breadcrumb.Item href="/">Products</Breadcrumb.Item> <Breadcrumb.Separator /> <Breadcrumb.Item href={/?filters=${product.category.join(",")}}> {product.category.join(", ")} </Breadcrumb.Item> <Breadcrumb.Separator /> <Breadcrumb.Item className="text-neutral-950"> {product.name} </Breadcrumb.Item> </Breadcrumb>

TypeError: "Type '{ children: string; href: string; }' is not assignable to type 'IntrinsicAttributes & Omit<ForwardRefExoticComponent<(Omit<{ justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | undefined; align?: "center" | "end" | "start" | "baseline" | "stretch" | undefined; ... 6 more ...; wrap?: "wrap" | ... 2 more ... | undefined; } & ... 5 more ... & PrismaneComponent,...'.\n Property 'children' does not exist on type 'IntrinsicAttributes & Omit<ForwardRefExoticComponent<(Omit<{ justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | undefined; align?: "center" | "end" | "start" | "baseline" | "stretch" | undefined; ... 6 more ...; wrap?: "wrap" | ... 2 more ... | undefined; } & ... 5 more ... & PrismaneComponent,...'."

TypeError: "Property '$$typeof' is missing in type '{}' but required in type 'Omit<ForwardRefExoticComponent<Omit<BreadcrumbSeparatorProps, "ref"> & RefAttributes>, "ref">'."

Version: "@prismane/core": "^0.2.2",

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.