Giter Site home page Giter Site logo

clarisights / knitui Goto Github PK

View Code? Open in Web Editor NEW
16.0 7.0 12.0 5.34 MB

A React Component library implementing the Knit design language

Home Page: https://knitui.design

JavaScript 0.56% TypeScript 99.44%
react ui ui-components react-component-library react-components design-system

knitui's Introduction

knitui's People

Contributors

anshumanv avatar arjunmahishi avatar arorayash avatar ashu210890 avatar deepakkarki avatar dependabot[bot] avatar iamrahil avatar kushagra8888 avatar piyushpawar17 avatar prashantvithani avatar prasook-jain avatar rohanhacker avatar ssrva avatar vikram319 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

knitui's Issues

Add readme.md

  • add figma link (knit design)
  • add style guide
  • setup guide

Icon could return a default icon if icon name not matched with defined icon set

When the passed icon name does not match the defined icon set, it results in script error similar to the one pasted below:

Icons["IconSystem".concat(...)] is not a function
TypeError: Icons["IconSystem".concat(...)] is not a function
    at Icon (http://localhost:9001/main.14a3fe0b21ed408ed8c4.bundle.js:630:46)

Alternatively, a default placeholder icon could be returned to avoid unchecked client side errors.

Implement Breadcrumb component

Design - link

Drawing inspiritations from ant design's component while implementing our design.

Use this thread to add any particuar specs or for suggestions.

Support onFocus & onBlur in Input props

Presently Input doesn't pass onFocus and onBlur to the input tag, need it for several use cases.

cc @arorayash opting for a normal input tag for now. Will replace by KnitUI Input once this goes through.

... But I need addonBefore though :(

Modal: Do not display the footer if there is no content.

The modal's footer has some default padding. Even when the footer does not have any content, the padding is still applied resulting in some visible space being occupied. Ideally, if no content is provided the paddings should not be there.

Allow passing Icon fill color as a prop for Icons

A common use case for svg icons is to be able to supply a color to better complement the foreground or background. At the moment it can be done by targeting the path through css but it would be a lot more convenient to be able to pass it via props.

Current

  const StyledIcon = styled(Icon)`
    path {
      fill: 'white'
    }
  `

Proposed

<Icon type="info" color="white" />

refactor: remove dependency on "rc-dialog" & "rc-switch"

Hi there,
Great work on creating an awesome component lib cum design system. ๐Ÿ‘ ๐ŸŽŠ

Description

The switch has a dependency of rc-switch

import RCSwitch from "rc-switch"

Similarly, Modal too has a dependency of rc-dialog

import Dialog from "rc-dialog"

I think the components should be decoupled from such dependency.

What can be done?

  • Custom implementation can be done (could make a difference in the long run ๐Ÿš€ )

Let's discuss ๐Ÿ“ข

Add storyshots

https://storybook.js.org/docs/testing/structural-testing/

Since we are already using storybooks, the stories can be used as jest snaphost test using this addon. I've attempted to integrate it but encountered some issues which I could not resolve...

yarn run v1.15.2
$ jest --verbose=false --no-cache
 FAIL  components/Button/__tests__/storyshots.test.js
  โ— Test suite failed to run

    /home/kushagra/work/clarisghts/KnitUI/components/assets/fonts/Inter-Thin-BETA.woff:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){wOFF
                                                                                                 

    SyntaxError: Invalid or unexpected token

    > 1 | const InterThin = require("../assets/fonts/Inter-Thin-BETA.woff")
        |                   ^
      2 | const InterLight = require("../assets/fonts/Inter-Light-BETA.woff")
      3 | const InterRegular = require("../assets/fonts/Inter-Regular.woff")
      4 | const InterMedium = require("../assets/fonts/Inter-Medium.woff")

      at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:471:17)
      at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:513:25)
      at Object.<anonymous> (components/styles/fonts.tsx:1:19)

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.