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.
- package/README.md +63 -24
- package/dist/index.js +931 -2035
- package/dist/index.js.map +1 -1
- package/lib-esm/components/Accordion/Accordion.d.ts +2 -3
- package/lib-esm/components/Accordion/Accordion.js +6 -3
- package/lib-esm/components/Accordion/Accordion.js.map +1 -1
- package/lib-esm/components/Accordion/AccordionStep.d.ts +2 -2
- package/lib-esm/components/Accordion/AccordionStep.js +31 -22
- package/lib-esm/components/Accordion/AccordionStep.js.map +1 -1
- package/lib-esm/components/Accordion/index.js.map +1 -1
- package/lib-esm/components/Badge/Badge.js +5 -6
- package/lib-esm/components/Badge/Badge.js.map +1 -1
- package/lib-esm/components/Button/LinkButton.js +2 -1
- package/lib-esm/components/Button/LinkButton.js.map +1 -1
- package/lib-esm/components/Card/Card.js +1 -1
- package/lib-esm/components/Card/Card.js.map +1 -1
- package/lib-esm/components/Chip/Chip.d.ts +2 -0
- package/lib-esm/components/Chip/Chip.js +4 -3
- package/lib-esm/components/Chip/Chip.js.map +1 -1
- package/lib-esm/components/ChipInput/ChipInput.d.ts +33 -0
- package/lib-esm/components/ChipInput/ChipInput.js +225 -0
- package/lib-esm/components/ChipInput/ChipInput.js.map +1 -0
- package/lib-esm/components/ChipInput/index.d.ts +1 -0
- package/lib-esm/components/ChipInput/index.js +2 -0
- package/lib-esm/components/ChipInput/index.js.map +1 -0
- package/lib-esm/components/Dialog/AlertDialog.js +3 -3
- package/lib-esm/components/Dialog/AlertDialog.js.map +1 -1
- package/lib-esm/components/Dialog/ConfirmDialog.js +8 -3
- package/lib-esm/components/Dialog/ConfirmDialog.js.map +1 -1
- package/lib-esm/components/Dialog/Dialog.d.ts +2 -2
- package/lib-esm/components/Dialog/Dialog.js +6 -4
- package/lib-esm/components/Dialog/Dialog.js.map +1 -1
- package/lib-esm/components/Dialog/PromptDialog.js +2 -2
- package/lib-esm/components/Dialog/PromptDialog.js.map +1 -1
- package/lib-esm/components/DragAndDrop/DragAndDrop.d.ts +28 -1
- package/lib-esm/components/DragAndDrop/DragAndDrop.js +41 -3
- package/lib-esm/components/DragAndDrop/DragAndDrop.js.map +1 -1
- package/lib-esm/components/DragAndDrop/DragItem.d.ts +37 -0
- package/lib-esm/components/DragAndDrop/DragItem.js +160 -14
- package/lib-esm/components/DragAndDrop/DragItem.js.map +1 -1
- package/lib-esm/components/DragAndDrop/types.d.ts +3 -0
- package/lib-esm/components/DragAndDrop/types.js +1 -1
- package/lib-esm/components/DragAndDrop/types.js.map +1 -1
- package/lib-esm/components/Drawer/Drawer.js +10 -8
- package/lib-esm/components/Drawer/Drawer.js.map +1 -1
- package/lib-esm/components/Drawer/index.d.ts +1 -1
- package/lib-esm/components/Drawer/index.js +1 -1
- package/lib-esm/components/Drawer/index.js.map +1 -1
- package/lib-esm/components/Groups/Group.js +26 -14
- package/lib-esm/components/Groups/Group.js.map +1 -1
- package/lib-esm/components/Input/Checkbox.js +11 -8
- package/lib-esm/components/Input/Checkbox.js.map +1 -1
- package/lib-esm/components/Input/Dropdown.d.ts +2 -2
- package/lib-esm/components/Input/Dropdown.js +22 -22
- package/lib-esm/components/Input/Dropdown.js.map +1 -1
- package/lib-esm/components/Input/Input.js +20 -11
- package/lib-esm/components/Input/Input.js.map +1 -1
- package/lib-esm/components/Input/Radio.js +4 -3
- package/lib-esm/components/Input/Radio.js.map +1 -1
- package/lib-esm/components/Input/RadioButton.js +1 -1
- package/lib-esm/components/Input/RadioButton.js.map +1 -1
- package/lib-esm/components/Input/Select.js +17 -9
- package/lib-esm/components/Input/Select.js.map +1 -1
- package/lib-esm/components/Input/TextArea.js +17 -9
- package/lib-esm/components/Input/TextArea.js.map +1 -1
- package/lib-esm/components/Input/Toggle.js +5 -5
- package/lib-esm/components/Input/Toggle.js.map +1 -1
- package/lib-esm/components/Menu/Menu.d.ts +1 -1
- package/lib-esm/components/Menu/Menu.js +3 -2
- package/lib-esm/components/Menu/Menu.js.map +1 -1
- package/lib-esm/components/Menu/MenuContext.d.ts +11 -5
- package/lib-esm/components/Menu/MenuContext.js.map +1 -1
- package/lib-esm/components/Menu/MenuItem.d.ts +2 -2
- package/lib-esm/components/Menu/MenuItem.js +9 -5
- package/lib-esm/components/Menu/MenuItem.js.map +1 -1
- package/lib-esm/components/Modal/Modal.js +6 -4
- package/lib-esm/components/Modal/Modal.js.map +1 -1
- package/lib-esm/components/Notification/Notification.js +8 -4
- package/lib-esm/components/Notification/Notification.js.map +1 -1
- package/lib-esm/components/Notification/NotificationManager.js +11 -9
- package/lib-esm/components/Notification/NotificationManager.js.map +1 -1
- package/lib-esm/components/Notification/style.js +10 -8
- package/lib-esm/components/Notification/style.js.map +1 -1
- package/lib-esm/components/Notification/types.js +0 -1
- package/lib-esm/components/Notification/types.js.map +1 -1
- package/lib-esm/components/Popover/Popover.js +20 -17
- package/lib-esm/components/Popover/Popover.js.map +1 -1
- package/lib-esm/components/Popover/index.js.map +1 -1
- package/lib-esm/components/Spinner/Spinner.js +10 -6
- package/lib-esm/components/Spinner/Spinner.js.map +1 -1
- package/lib-esm/components/Stepper/Step.js +1 -0
- package/lib-esm/components/Stepper/Step.js.map +1 -1
- package/lib-esm/components/Stepper/Stepper.d.ts +3 -3
- package/lib-esm/components/Stepper/Stepper.js +17 -9
- package/lib-esm/components/Stepper/Stepper.js.map +1 -1
- package/lib-esm/components/Stepper/index.js.map +1 -1
- package/lib-esm/components/Tabs/Tab.js.map +1 -1
- package/lib-esm/components/Tabs/Tabs.d.ts +5 -5
- package/lib-esm/components/Tabs/Tabs.js +12 -9
- package/lib-esm/components/Tabs/Tabs.js.map +1 -1
- package/lib-esm/components/Toast/Toast.d.ts +1 -0
- package/lib-esm/components/Toast/Toast.js +9 -8
- package/lib-esm/components/Toast/Toast.js.map +1 -1
- package/lib-esm/components/Toast/ToastStory.js +1 -1
- package/lib-esm/components/Toast/ToastStory.js.map +1 -1
- package/lib-esm/components/Tooltip/Tooltip.js +5 -6
- package/lib-esm/components/Tooltip/Tooltip.js.map +1 -1
- package/lib-esm/components/index.d.ts +1 -0
- package/lib-esm/components/index.js +1 -0
- package/lib-esm/components/index.js.map +1 -1
- package/lib-esm/icons/CheckCircle.d.ts +1 -1
- package/lib-esm/icons/CheckCircle.js +1 -1
- package/lib-esm/icons/CheckCircle.js.map +1 -1
- package/lib-esm/icons/Close.d.ts +1 -1
- package/lib-esm/icons/Close.js +1 -1
- package/lib-esm/icons/Close.js.map +1 -1
- package/lib-esm/icons/DragIndicator.d.ts +1 -1
- package/lib-esm/icons/DragIndicator.js +1 -1
- package/lib-esm/icons/DragIndicator.js.map +1 -1
- package/lib-esm/icons/ErrorOutline.d.ts +1 -1
- package/lib-esm/icons/ErrorOutline.js +1 -1
- package/lib-esm/icons/ErrorOutline.js.map +1 -1
- package/lib-esm/icons/ExpandMore.d.ts +1 -1
- package/lib-esm/icons/ExpandMore.js +1 -1
- package/lib-esm/icons/ExpandMore.js.map +1 -1
- package/lib-esm/icons/FiberManualRecord.d.ts +1 -1
- package/lib-esm/icons/FiberManualRecord.js +1 -1
- package/lib-esm/icons/FiberManualRecord.js.map +1 -1
- package/lib-esm/icons/Info.d.ts +1 -1
- package/lib-esm/icons/Info.js +1 -1
- package/lib-esm/icons/Info.js.map +1 -1
- package/lib-esm/icons/ReportProblem.d.ts +1 -1
- package/lib-esm/icons/ReportProblem.js +1 -1
- package/lib-esm/icons/ReportProblem.js.map +1 -1
- package/lib-esm/shared/LayerManager.d.ts +2 -2
- package/lib-esm/shared/LayerManager.js +18 -14
- package/lib-esm/shared/LayerManager.js.map +1 -1
- package/lib-esm/shared/constants.js.map +1 -1
- 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://
|
|
10
|
+
**Storybook / Documentation:** [https://nfui.js.org/](https://nfui.js.org/)
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
31
|
-
|
|
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
|
-
|
|
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
|
-
|
|
36
|
-
|
|
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
|
-
|
|
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/).
|