no-frills-ui 0.0.14-alpha.0 → 0.0.14-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/README.md +63 -24
  2. package/dist/index.js +931 -2035
  3. package/dist/index.js.map +1 -1
  4. package/lib-esm/components/Accordion/Accordion.d.ts +2 -3
  5. package/lib-esm/components/Accordion/Accordion.js +6 -3
  6. package/lib-esm/components/Accordion/Accordion.js.map +1 -1
  7. package/lib-esm/components/Accordion/AccordionStep.d.ts +2 -2
  8. package/lib-esm/components/Accordion/AccordionStep.js +31 -22
  9. package/lib-esm/components/Accordion/AccordionStep.js.map +1 -1
  10. package/lib-esm/components/Accordion/index.js.map +1 -1
  11. package/lib-esm/components/Badge/Badge.js +5 -6
  12. package/lib-esm/components/Badge/Badge.js.map +1 -1
  13. package/lib-esm/components/Button/LinkButton.js +2 -1
  14. package/lib-esm/components/Button/LinkButton.js.map +1 -1
  15. package/lib-esm/components/Card/Card.js +1 -1
  16. package/lib-esm/components/Card/Card.js.map +1 -1
  17. package/lib-esm/components/Chip/Chip.d.ts +2 -0
  18. package/lib-esm/components/Chip/Chip.js +4 -3
  19. package/lib-esm/components/Chip/Chip.js.map +1 -1
  20. package/lib-esm/components/ChipInput/ChipInput.d.ts +33 -0
  21. package/lib-esm/components/ChipInput/ChipInput.js +225 -0
  22. package/lib-esm/components/ChipInput/ChipInput.js.map +1 -0
  23. package/lib-esm/components/ChipInput/index.d.ts +1 -0
  24. package/lib-esm/components/ChipInput/index.js +2 -0
  25. package/lib-esm/components/ChipInput/index.js.map +1 -0
  26. package/lib-esm/components/Dialog/AlertDialog.js +3 -3
  27. package/lib-esm/components/Dialog/AlertDialog.js.map +1 -1
  28. package/lib-esm/components/Dialog/ConfirmDialog.js +8 -3
  29. package/lib-esm/components/Dialog/ConfirmDialog.js.map +1 -1
  30. package/lib-esm/components/Dialog/Dialog.d.ts +2 -2
  31. package/lib-esm/components/Dialog/Dialog.js +6 -4
  32. package/lib-esm/components/Dialog/Dialog.js.map +1 -1
  33. package/lib-esm/components/Dialog/PromptDialog.js +2 -2
  34. package/lib-esm/components/Dialog/PromptDialog.js.map +1 -1
  35. package/lib-esm/components/DragAndDrop/DragAndDrop.d.ts +28 -1
  36. package/lib-esm/components/DragAndDrop/DragAndDrop.js +41 -3
  37. package/lib-esm/components/DragAndDrop/DragAndDrop.js.map +1 -1
  38. package/lib-esm/components/DragAndDrop/DragItem.d.ts +37 -0
  39. package/lib-esm/components/DragAndDrop/DragItem.js +160 -14
  40. package/lib-esm/components/DragAndDrop/DragItem.js.map +1 -1
  41. package/lib-esm/components/DragAndDrop/types.d.ts +3 -0
  42. package/lib-esm/components/DragAndDrop/types.js +1 -1
  43. package/lib-esm/components/DragAndDrop/types.js.map +1 -1
  44. package/lib-esm/components/Drawer/Drawer.js +10 -8
  45. package/lib-esm/components/Drawer/Drawer.js.map +1 -1
  46. package/lib-esm/components/Drawer/index.d.ts +1 -1
  47. package/lib-esm/components/Drawer/index.js +1 -1
  48. package/lib-esm/components/Drawer/index.js.map +1 -1
  49. package/lib-esm/components/Groups/Group.js +26 -14
  50. package/lib-esm/components/Groups/Group.js.map +1 -1
  51. package/lib-esm/components/Input/Checkbox.js +11 -8
  52. package/lib-esm/components/Input/Checkbox.js.map +1 -1
  53. package/lib-esm/components/Input/Dropdown.d.ts +2 -2
  54. package/lib-esm/components/Input/Dropdown.js +22 -22
  55. package/lib-esm/components/Input/Dropdown.js.map +1 -1
  56. package/lib-esm/components/Input/Input.js +20 -11
  57. package/lib-esm/components/Input/Input.js.map +1 -1
  58. package/lib-esm/components/Input/Radio.js +4 -3
  59. package/lib-esm/components/Input/Radio.js.map +1 -1
  60. package/lib-esm/components/Input/RadioButton.js +1 -1
  61. package/lib-esm/components/Input/RadioButton.js.map +1 -1
  62. package/lib-esm/components/Input/Select.js +17 -9
  63. package/lib-esm/components/Input/Select.js.map +1 -1
  64. package/lib-esm/components/Input/TextArea.js +17 -9
  65. package/lib-esm/components/Input/TextArea.js.map +1 -1
  66. package/lib-esm/components/Input/Toggle.js +5 -5
  67. package/lib-esm/components/Input/Toggle.js.map +1 -1
  68. package/lib-esm/components/Menu/Menu.d.ts +1 -1
  69. package/lib-esm/components/Menu/Menu.js +3 -2
  70. package/lib-esm/components/Menu/Menu.js.map +1 -1
  71. package/lib-esm/components/Menu/MenuContext.d.ts +11 -5
  72. package/lib-esm/components/Menu/MenuContext.js.map +1 -1
  73. package/lib-esm/components/Menu/MenuItem.d.ts +2 -2
  74. package/lib-esm/components/Menu/MenuItem.js +9 -5
  75. package/lib-esm/components/Menu/MenuItem.js.map +1 -1
  76. package/lib-esm/components/Modal/Modal.js +6 -4
  77. package/lib-esm/components/Modal/Modal.js.map +1 -1
  78. package/lib-esm/components/Notification/Notification.js +8 -4
  79. package/lib-esm/components/Notification/Notification.js.map +1 -1
  80. package/lib-esm/components/Notification/NotificationManager.js +11 -9
  81. package/lib-esm/components/Notification/NotificationManager.js.map +1 -1
  82. package/lib-esm/components/Notification/style.js +10 -8
  83. package/lib-esm/components/Notification/style.js.map +1 -1
  84. package/lib-esm/components/Notification/types.js +0 -1
  85. package/lib-esm/components/Notification/types.js.map +1 -1
  86. package/lib-esm/components/Popover/Popover.js +20 -17
  87. package/lib-esm/components/Popover/Popover.js.map +1 -1
  88. package/lib-esm/components/Popover/index.js.map +1 -1
  89. package/lib-esm/components/Spinner/Spinner.js +10 -6
  90. package/lib-esm/components/Spinner/Spinner.js.map +1 -1
  91. package/lib-esm/components/Stepper/Step.js +1 -0
  92. package/lib-esm/components/Stepper/Step.js.map +1 -1
  93. package/lib-esm/components/Stepper/Stepper.d.ts +3 -3
  94. package/lib-esm/components/Stepper/Stepper.js +17 -9
  95. package/lib-esm/components/Stepper/Stepper.js.map +1 -1
  96. package/lib-esm/components/Stepper/index.js.map +1 -1
  97. package/lib-esm/components/Tabs/Tab.js.map +1 -1
  98. package/lib-esm/components/Tabs/Tabs.d.ts +5 -5
  99. package/lib-esm/components/Tabs/Tabs.js +12 -9
  100. package/lib-esm/components/Tabs/Tabs.js.map +1 -1
  101. package/lib-esm/components/Toast/Toast.d.ts +1 -0
  102. package/lib-esm/components/Toast/Toast.js +9 -8
  103. package/lib-esm/components/Toast/Toast.js.map +1 -1
  104. package/lib-esm/components/Toast/ToastStory.js +1 -1
  105. package/lib-esm/components/Toast/ToastStory.js.map +1 -1
  106. package/lib-esm/components/Tooltip/Tooltip.js +5 -6
  107. package/lib-esm/components/Tooltip/Tooltip.js.map +1 -1
  108. package/lib-esm/components/index.d.ts +1 -0
  109. package/lib-esm/components/index.js +1 -0
  110. package/lib-esm/components/index.js.map +1 -1
  111. package/lib-esm/icons/CheckCircle.d.ts +1 -1
  112. package/lib-esm/icons/CheckCircle.js +1 -1
  113. package/lib-esm/icons/CheckCircle.js.map +1 -1
  114. package/lib-esm/icons/Close.d.ts +1 -1
  115. package/lib-esm/icons/Close.js +1 -1
  116. package/lib-esm/icons/Close.js.map +1 -1
  117. package/lib-esm/icons/DragIndicator.d.ts +1 -1
  118. package/lib-esm/icons/DragIndicator.js +1 -1
  119. package/lib-esm/icons/DragIndicator.js.map +1 -1
  120. package/lib-esm/icons/ErrorOutline.d.ts +1 -1
  121. package/lib-esm/icons/ErrorOutline.js +1 -1
  122. package/lib-esm/icons/ErrorOutline.js.map +1 -1
  123. package/lib-esm/icons/ExpandMore.d.ts +1 -1
  124. package/lib-esm/icons/ExpandMore.js +1 -1
  125. package/lib-esm/icons/ExpandMore.js.map +1 -1
  126. package/lib-esm/icons/FiberManualRecord.d.ts +1 -1
  127. package/lib-esm/icons/FiberManualRecord.js +1 -1
  128. package/lib-esm/icons/FiberManualRecord.js.map +1 -1
  129. package/lib-esm/icons/Info.d.ts +1 -1
  130. package/lib-esm/icons/Info.js +1 -1
  131. package/lib-esm/icons/Info.js.map +1 -1
  132. package/lib-esm/icons/ReportProblem.d.ts +1 -1
  133. package/lib-esm/icons/ReportProblem.js +1 -1
  134. package/lib-esm/icons/ReportProblem.js.map +1 -1
  135. package/lib-esm/shared/LayerManager.d.ts +2 -2
  136. package/lib-esm/shared/LayerManager.js +18 -14
  137. package/lib-esm/shared/LayerManager.js.map +1 -1
  138. package/lib-esm/shared/constants.js.map +1 -1
  139. package/package.json +93 -72
package/README.md CHANGED
@@ -7,35 +7,74 @@
7
7
 
8
8
  **React components that are made of styled native components. Mostly! 😅**
9
9
 
10
- **Storybook / Documentation:** [https://no-frills-ui.netlify.app/](https://no-frills-ui.netlify.app/)
10
+ **Storybook / Documentation:** [https://nfui.js.org/](https://nfui.js.org/)
11
11
 
12
- Modern-day component libraries make components out of divs with custom styles and abstractions for events.
13
- Often their focus is on touch-screen devices and so their event handlers are more focused on handling touch events.
14
- This means when we use these libraries, we often ship a lot of code for styles and touch event handlers. Most of
15
- which are available in native components out of the box. No Frills UI does not have these decorations, instead it
16
- relies on the native components' APIs.
12
+ Most modern UI component libraries come as complete ecosystems—multiple npm packages,
13
+ custom design systems, proprietary APIs, and extensive documentation to learn.
14
+ They rebuild everything from scratch using divs and spans, adding layers of abstraction
15
+ for events, accessibility, and styling. While this gives them complete control, it also
16
+ means shipping hundreds of kilobytes of JavaScript to recreate what browsers already provide.
17
17
 
18
- This helps in keeping our DOM much more cleaner as it is not a [div soup](https://www.hackterms.com/div%20soup) anymore.
19
- It also improves the semantic of the document and making it more SEO friendly. This also means that we are not adding extra
20
- code to support accessibility which comes out of the box with the platform itself.
18
+ No Frills UI takes a different approach: **use what the browser already gives you**.
19
+ Instead of div soup with custom event handlers and accessibility bolt-ons, we build components
20
+ from actual `<button>`, `<input>`, `<select>`, and `<dialog>` elements. This means you get
21
+ native keyboard navigation, form behavior, and accessibility features out of the box—no extra code needed.
21
22
 
22
- Thus simplifying the API for the component. Now the developer doesn't need to go through a huge doc to know how to use
23
- the component, instead, he/she can directly use the native element's props. However, this is also not always possible, as we
24
- might want additional functionality on top of our native component. For which I will have to wrap it in divs and the native
25
- API won't be directly accessible. To solve this, I use prop spreading on each component and only add props for these
26
- extra features.
23
+ ## Why No Frills UI?
27
24
 
28
- ### Limitations
25
+ **Smaller bundles, cleaner DOM:** Our components are styled with Emotion, but the underlying
26
+ structure is real HTML. No div soup, no bloated abstractions. You're looking at kilobytes,
27
+ not hundreds of kilobytes.
29
28
 
30
- An obvious limitation of this approach is that certain components cannot be styled, like `<Option>` tag. Though we can
31
- style it to some degree, the user experience will still differ based on the platform the user is on.
29
+ **Native APIs you already know:** Instead of learning proprietary component APIs across multiple
30
+ npm packages, you can use standard HTML props and browser features. A button is a button. An input
31
+ is an input. If you know HTML, you already know 90% of the API.
32
32
 
33
- ### Should this be used in production?
33
+ **Better semantics by default:** Real HTML elements mean better SEO, better accessibility baseline,
34
+ and a DOM that actually makes sense when you inspect it. Your screen reader users (and your future
35
+ self debugging in DevTools) will thank you.
34
36
 
35
- Well, this is the Achilles heel of this project. Currently, it is not production-ready. Nor it is battle-tested on any big
36
- project. I created this repository mostly after realizing that at the start of each project, I juggle a lot between
37
- different UI libraries and then settle to using `@emotion/styled` for half of the components. This is tailored to my needs
38
- and I may not even have time to work on it regularly. But you can freely use this in any POCs that you might be working on
39
- and then decide whether it fits your needs.
37
+ **Simple theming:** Everything's themed through CSS variables. No complex theme providers, no
38
+ JavaScript runtime overhead. Just set your colors at the root and you're done.
40
39
 
41
- [MIT License](https://github.com/pushkar8723/no-frills-ui/blob/master/LICENSE)
40
+ **Fast to get started:** No boilerplate, no configuration, no learning curve. Import a component
41
+ and use it. Perfect for POCs, hackathons, and small projects.
42
+
43
+ ## What's the Catch?
44
+
45
+ Let's be real about what this library is and isn't:
46
+
47
+ **This is a learning project, not a production library.** I built No Frills UI to experiment with
48
+ native-first component design and to sharpen my React/TypeScript skills. It's grown into a proper component
49
+ library with 20+ components, automated releases, and comprehensive Storybook documentation, but I work on
50
+ this in my spare time for learning—not as a production-grade library.
51
+
52
+ ## When Should You Use This?
53
+
54
+ **Perfect for:**
55
+
56
+ - Quick POCs and prototypes where you need UI fast
57
+ - Hackathon projects and weekend hacks
58
+ - Small personal projects and experiments
59
+ - Learning how to build React component libraries
60
+ - Bootstrapping an idea before investing in a full UI system
61
+
62
+ **Not suitable for:**
63
+
64
+ - Production applications
65
+ - Enterprise projects requiring support
66
+ - Projects with strict accessibility requirements (right now)
67
+ - Teams that need stable, battle-tested components
68
+ - Anything your business depends on
69
+
70
+ If you need production-ready components, use established libraries with active maintenance and community support.
71
+ But if you're hacking on a side project, need components for a quick demo, or want to explore a simpler approach
72
+ to React UIs, give No Frills UI a try!
73
+
74
+ And hey, if you're also learning and want to contribute to the roadmap in
75
+ [issue #19](https://github.com/pushkar8723/no-frills-ui/issues/19), pull requests
76
+ are welcome. We're all learning here! 🚀
77
+
78
+ ## Older Versions
79
+
80
+ We archive the documentation generated for all versions on our [GitHub Pages](https://pushkar8723.github.io/no-frills-ui/).