neba 0.0.1 → 1.1.0
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 +177 -2
- package/dist/components/accordion/Accordion.d.ts +97 -0
- package/dist/components/accordion/Accordion.js +1 -0
- package/dist/components/accordion/index.d.ts +2 -0
- package/dist/components/accordion/index.js +1 -0
- package/dist/components/alert/Alert.d.ts +47 -0
- package/dist/components/alert/Alert.js +1 -0
- package/dist/components/alert/index.d.ts +2 -0
- package/dist/components/alert/index.js +1 -0
- package/dist/components/badge/Badge.d.ts +80 -0
- package/dist/components/badge/Badge.js +1 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/badge/index.js +1 -0
- package/dist/components/blockquote/Blockquote.d.ts +65 -0
- package/dist/components/blockquote/Blockquote.js +1 -0
- package/dist/components/blockquote/index.d.ts +2 -0
- package/dist/components/blockquote/index.js +1 -0
- package/dist/components/box/Box.d.ts +50 -0
- package/dist/components/box/Box.js +1 -0
- package/dist/components/box/index.d.ts +2 -0
- package/dist/components/box/index.js +1 -0
- package/dist/components/button/Button.d.ts +25 -3
- package/dist/components/button/Button.js +1 -1
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/button-group/ButtonGroup.d.ts +31 -0
- package/dist/components/button-group/ButtonGroup.js +1 -0
- package/dist/components/button-group/index.d.ts +2 -0
- package/dist/components/button-group/index.js +1 -0
- package/dist/components/card/Card.d.ts +45 -0
- package/dist/components/card/Card.js +1 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/card/index.js +1 -0
- package/dist/components/carousel/Carousel.d.ts +74 -0
- package/dist/components/carousel/Carousel.js +1 -0
- package/dist/components/carousel/index.d.ts +2 -0
- package/dist/components/carousel/index.js +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +39 -0
- package/dist/components/checkbox/Checkbox.js +1 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/checkbox/index.js +1 -0
- package/dist/components/chip/Chip.d.ts +50 -0
- package/dist/components/chip/Chip.js +1 -0
- package/dist/components/chip/index.d.ts +2 -0
- package/dist/components/chip/index.js +1 -0
- package/dist/components/combobox/Combobox.d.ts +131 -0
- package/dist/components/combobox/Combobox.js +1 -0
- package/dist/components/combobox/index.d.ts +2 -0
- package/dist/components/combobox/index.js +1 -0
- package/dist/components/container/Container.d.ts +55 -0
- package/dist/components/container/Container.js +1 -0
- package/dist/components/container/index.d.ts +2 -0
- package/dist/components/container/index.js +1 -0
- package/dist/components/date-picker/DatePicker.d.ts +75 -0
- package/dist/components/date-picker/DatePicker.js +1 -0
- package/dist/components/date-picker/index.d.ts +2 -0
- package/dist/components/date-picker/index.js +1 -0
- package/dist/components/date-range-picker/DateRangePicker.d.ts +81 -0
- package/dist/components/date-range-picker/DateRangePicker.js +1 -0
- package/dist/components/date-range-picker/index.d.ts +2 -0
- package/dist/components/date-range-picker/index.js +1 -0
- package/dist/components/date-time-picker/DateTimePicker.d.ts +68 -0
- package/dist/components/date-time-picker/DateTimePicker.js +1 -0
- package/dist/components/date-time-picker/index.d.ts +2 -0
- package/dist/components/date-time-picker/index.js +1 -0
- package/dist/components/dialog/Dialog.d.ts +111 -0
- package/dist/components/dialog/Dialog.js +1 -0
- package/dist/components/dialog/index.d.ts +2 -0
- package/dist/components/dialog/index.js +1 -0
- package/dist/components/divider/Divider.d.ts +67 -0
- package/dist/components/divider/Divider.js +1 -0
- package/dist/components/divider/index.d.ts +2 -0
- package/dist/components/divider/index.js +1 -0
- package/dist/components/file-picker/FilePicker.d.ts +103 -0
- package/dist/components/file-picker/FilePicker.js +1 -0
- package/dist/components/file-picker/index.d.ts +2 -0
- package/dist/components/file-picker/index.js +1 -0
- package/dist/components/grid/Grid.d.ts +50 -0
- package/dist/components/grid/Grid.js +1 -0
- package/dist/components/grid/index.d.ts +2 -0
- package/dist/components/grid/index.js +1 -0
- package/dist/components/grid-container/GridContainer.d.ts +79 -0
- package/dist/components/grid-container/GridContainer.js +1 -0
- package/dist/components/grid-container/index.d.ts +2 -0
- package/dist/components/grid-container/index.js +1 -0
- package/dist/components/highlight/Highlight.d.ts +84 -0
- package/dist/components/highlight/Highlight.js +1 -0
- package/dist/components/highlight/index.d.ts +2 -0
- package/dist/components/highlight/index.js +1 -0
- package/dist/components/icon/Icon.d.ts +58 -0
- package/dist/components/icon/Icon.js +1 -0
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/icon/index.js +1 -0
- package/dist/components/icon-button/IconButton.d.ts +39 -0
- package/dist/components/icon-button/IconButton.js +1 -0
- package/dist/components/icon-button/index.d.ts +2 -0
- package/dist/components/icon-button/index.js +1 -0
- package/dist/components/list/List.d.ts +81 -0
- package/dist/components/list/List.js +1 -0
- package/dist/components/list/index.d.ts +2 -0
- package/dist/components/list/index.js +1 -0
- package/dist/components/menu/Menu.d.ts +216 -0
- package/dist/components/menu/Menu.js +1 -0
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/menu/index.js +1 -0
- package/dist/components/number-field/NumberField.d.ts +113 -0
- package/dist/components/number-field/NumberField.js +1 -0
- package/dist/components/number-field/index.d.ts +2 -0
- package/dist/components/number-field/index.js +1 -0
- package/dist/components/overlay/Overlay.d.ts +85 -0
- package/dist/components/overlay/Overlay.js +1 -0
- package/dist/components/overlay/index.d.ts +2 -0
- package/dist/components/overlay/index.js +1 -0
- package/dist/components/pagination/Pagination.d.ts +65 -0
- package/dist/components/pagination/Pagination.js +1 -0
- package/dist/components/pagination/index.d.ts +2 -0
- package/dist/components/pagination/index.js +1 -0
- package/dist/components/pill/Pill.d.ts +80 -0
- package/dist/components/pill/Pill.js +1 -0
- package/dist/components/pill/index.d.ts +2 -0
- package/dist/components/pill/index.js +1 -0
- package/dist/components/progress-box/ProgressBox.d.ts +33 -0
- package/dist/components/progress-box/ProgressBox.js +1 -0
- package/dist/components/progress-box/index.d.ts +2 -0
- package/dist/components/progress-box/index.js +1 -0
- package/dist/components/progress-circular/ProgressCircular.d.ts +19 -0
- package/dist/components/progress-circular/ProgressCircular.js +1 -0
- package/dist/components/progress-circular/index.d.ts +2 -0
- package/dist/components/progress-circular/index.js +1 -0
- package/dist/components/progress-linear/ProgressLinear.d.ts +20 -0
- package/dist/components/progress-linear/ProgressLinear.js +1 -0
- package/dist/components/progress-linear/index.d.ts +2 -0
- package/dist/components/progress-linear/index.js +1 -0
- package/dist/components/radio-group/RadioGroup.d.ts +51 -0
- package/dist/components/radio-group/RadioGroup.js +1 -0
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/radio-group/index.js +1 -0
- package/dist/components/segmented-button/SegmentedButton.d.ts +77 -0
- package/dist/components/segmented-button/SegmentedButton.js +1 -0
- package/dist/components/segmented-button/index.d.ts +2 -0
- package/dist/components/segmented-button/index.js +1 -0
- package/dist/components/select/Select.d.ts +76 -0
- package/dist/components/select/Select.js +1 -0
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/index.js +1 -0
- package/dist/components/shortcut/Shortcut.d.ts +60 -0
- package/dist/components/shortcut/Shortcut.js +1 -0
- package/dist/components/shortcut/index.d.ts +2 -0
- package/dist/components/shortcut/index.js +1 -0
- package/dist/components/slider/Slider.d.ts +38 -0
- package/dist/components/slider/Slider.js +1 -0
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/slider/index.js +1 -0
- package/dist/components/statistic/Statistic.d.ts +91 -0
- package/dist/components/statistic/Statistic.js +1 -0
- package/dist/components/statistic/index.d.ts +2 -0
- package/dist/components/statistic/index.js +1 -0
- package/dist/components/switch/Switch.d.ts +39 -0
- package/dist/components/switch/Switch.js +1 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/switch/index.js +1 -0
- package/dist/components/table/Table.d.ts +80 -0
- package/dist/components/table/Table.js +1 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/index.js +1 -0
- package/dist/components/tabs/Tabs.d.ts +92 -0
- package/dist/components/tabs/Tabs.js +1 -0
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/tabs/index.js +1 -0
- package/dist/components/text-field/TextField.d.ts +63 -0
- package/dist/components/text-field/TextField.js +1 -0
- package/dist/components/text-field/index.d.ts +2 -0
- package/dist/components/text-field/index.js +1 -0
- package/dist/components/time-picker/TimePicker.d.ts +76 -0
- package/dist/components/time-picker/TimePicker.js +1 -0
- package/dist/components/time-picker/index.d.ts +2 -0
- package/dist/components/time-picker/index.js +1 -0
- package/dist/components/timeline/Timeline.d.ts +98 -0
- package/dist/components/timeline/Timeline.js +1 -0
- package/dist/components/timeline/index.d.ts +2 -0
- package/dist/components/timeline/index.js +1 -0
- package/dist/components/toast/Toast.d.ts +116 -0
- package/dist/components/toast/Toast.js +1 -0
- package/dist/components/toast/index.d.ts +2 -0
- package/dist/components/toast/index.js +1 -0
- package/dist/components/toolbar/Toolbar.d.ts +67 -0
- package/dist/components/toolbar/Toolbar.js +1 -0
- package/dist/components/toolbar/index.d.ts +2 -0
- package/dist/components/toolbar/index.js +1 -0
- package/dist/components/tooltip/Tooltip.d.ts +81 -0
- package/dist/components/tooltip/Tooltip.js +1 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/index.js +1 -0
- package/dist/components/typography/Typography.d.ts +62 -0
- package/dist/components/typography/Typography.js +1 -0
- package/dist/components/typography/index.d.ts +2 -0
- package/dist/components/typography/index.js +1 -0
- package/dist/index.d.ts +50 -1
- package/dist/index.js +1 -1
- package/dist/internal/button-group.d.ts +25 -0
- package/dist/internal/button-group.js +1 -0
- package/dist/internal/calendar.d.ts +149 -0
- package/dist/internal/calendar.js +1 -0
- package/dist/internal/date.d.ts +170 -0
- package/dist/internal/date.js +1 -0
- package/dist/internal/grid.d.ts +69 -0
- package/dist/internal/grid.js +1 -0
- package/dist/internal/icons.d.ts +79 -0
- package/dist/internal/icons.js +1 -0
- package/dist/internal/menu.d.ts +20 -0
- package/dist/internal/menu.js +1 -0
- package/dist/internal/picker.d.ts +111 -0
- package/dist/internal/picker.js +1 -0
- package/dist/internal/progress.d.ts +122 -0
- package/dist/internal/progress.js +1 -0
- package/dist/internal/sizer.d.ts +33 -0
- package/dist/internal/sizer.js +1 -0
- package/dist/internal/styles.d.ts +257 -0
- package/dist/internal/styles.js +1 -0
- package/dist/styles.css +2 -0
- package/dist/tailwind.css +892 -0
- package/dist/types.d.ts +142 -0
- package/dist/types.js +8 -0
- package/package.json +90 -21
- package/pnpm-workspace.yaml +0 -2
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared prop vocabulary for every Neba component.
|
|
3
|
+
*
|
|
4
|
+
* These names and values are deliberately generic: a `size` of `md` or a
|
|
5
|
+
* `color` of `primary` has to mean the same thing on a Button, a Chip, a
|
|
6
|
+
* TextField or a Dialog. Components pick the subset they need from here and
|
|
7
|
+
* never invent a parallel spelling of the same idea.
|
|
8
|
+
*/
|
|
9
|
+
/** Scale of a component. `md` is the desktop default. */
|
|
10
|
+
export type NebaSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
11
|
+
/** Semantic color role. Maps to a token family in `styles.css`. */
|
|
12
|
+
export type NebaColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info';
|
|
13
|
+
/**
|
|
14
|
+
* How tightly a component packs its content. Only spacing changes — never the
|
|
15
|
+
* type scale or the control's own height — so a compact and a default control
|
|
16
|
+
* of the same `size` still line up on a shared baseline.
|
|
17
|
+
*/
|
|
18
|
+
export type NebaDensity = 'default' | 'compact';
|
|
19
|
+
/**
|
|
20
|
+
* Which way a component runs. `horizontal` everywhere it is offered, because a
|
|
21
|
+
* vertical control is the exception and an exception should have to be asked
|
|
22
|
+
* for. Divider, ButtonGroup, RadioGroup and Slider all read this.
|
|
23
|
+
*/
|
|
24
|
+
export type NebaOrientation = 'horizontal' | 'vertical';
|
|
25
|
+
/**
|
|
26
|
+
* Which edge of an anchor something is placed against. Tooltip reads this, and
|
|
27
|
+
* so does anything else that hangs a popup off an element.
|
|
28
|
+
*
|
|
29
|
+
* Logical rather than physical — `start`/`end` would be wrong here, because a
|
|
30
|
+
* tooltip above a button is above it in every writing direction.
|
|
31
|
+
*/
|
|
32
|
+
export type NebaSide = 'top' | 'right' | 'bottom' | 'left';
|
|
33
|
+
/**
|
|
34
|
+
* Where something sits along the axis it is not placed on: a tooltip against
|
|
35
|
+
* its trigger, a label set into a divider, the content of a table cell.
|
|
36
|
+
*
|
|
37
|
+
* `start`/`end` rather than `left`/`right` because these flip under RTL, which
|
|
38
|
+
* is the whole reason the library never says `left`.
|
|
39
|
+
*/
|
|
40
|
+
export type NebaAlign = 'start' | 'center' | 'end';
|
|
41
|
+
/**
|
|
42
|
+
* How a bar sits in the page's scroll.
|
|
43
|
+
*
|
|
44
|
+
* The three CSS `position` values that mean something for a bar, spelled the
|
|
45
|
+
* way CSS spells them — this is one of the few ideas where inventing a nicer
|
|
46
|
+
* word (`pinned`, `floating`) would only make a reader look up which CSS it
|
|
47
|
+
* maps to. Toolbar and Pill both read it.
|
|
48
|
+
*
|
|
49
|
+
* - `static` — in the flow, scrolling away with the content.
|
|
50
|
+
* - `sticky` — in the flow until the edge, then held there.
|
|
51
|
+
* - `fixed` — out of the flow entirely, against the viewport.
|
|
52
|
+
*/
|
|
53
|
+
export type NebaPosition = 'static' | 'sticky' | 'fixed';
|
|
54
|
+
/**
|
|
55
|
+
* Which corner of a box something is pinned to. Badge reads this.
|
|
56
|
+
*
|
|
57
|
+
* Deliberately one word built out of the two the library already has —
|
|
58
|
+
* `top`/`bottom` from `NebaSide`, `start`/`end` from `NebaAlign` — rather than
|
|
59
|
+
* a pair of props. A corner is one decision, and splitting it into two would
|
|
60
|
+
* let a caller spell `{ vertical: 'left' }`.
|
|
61
|
+
*/
|
|
62
|
+
export type NebaCorner = 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end';
|
|
63
|
+
/**
|
|
64
|
+
* Which day a week starts on, counted the way `Date.prototype.getDay` counts it:
|
|
65
|
+
* Sunday is `0`, Saturday is `6`.
|
|
66
|
+
*
|
|
67
|
+
* A number rather than `'sunday' | 'monday' | …`, and for once not because the
|
|
68
|
+
* number is shorter. Every date API in the platform already speaks this
|
|
69
|
+
* encoding, so a caller computing the value rather than typing it in — from a
|
|
70
|
+
* user setting, from `Intl`, from a row in a database — has nothing to translate.
|
|
71
|
+
* The pickers default it from the locale, so it is rarely written down at all.
|
|
72
|
+
*/
|
|
73
|
+
export type NebaWeekday = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
74
|
+
/**
|
|
75
|
+
* The viewport widths the layout components branch on, smallest first.
|
|
76
|
+
*
|
|
77
|
+
* Deliberately the same five names as `NebaSize`, and deliberately *not* the
|
|
78
|
+
* same idea: a `size` of `md` is how big a control is, a breakpoint of `md` is
|
|
79
|
+
* how wide the window is. They share a spelling because a caller who has
|
|
80
|
+
* learned one ladder should not have to learn a second set of words for the
|
|
81
|
+
* other, and because every CSS framework worth copying already spells them this
|
|
82
|
+
* way.
|
|
83
|
+
*
|
|
84
|
+
* The widths are Tailwind's own defaults — `sm` 40rem, `md` 48rem, `lg` 64rem,
|
|
85
|
+
* `xl` 80rem — so a Neba grid and a `md:` utility change at the same moment.
|
|
86
|
+
* `xs` is 0: it is the value with no media query around it.
|
|
87
|
+
*/
|
|
88
|
+
export type NebaBreakpoint = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
89
|
+
/**
|
|
90
|
+
* A value that may differ per breakpoint.
|
|
91
|
+
*
|
|
92
|
+
* A bare value applies from `xs` up; a partial map applies each entry from its
|
|
93
|
+
* own breakpoint up, so `{ xs: 12, md: 6 }` is full width until 48rem and half
|
|
94
|
+
* from there on. There is no `NebaBreakpoint` that means "only at this width" —
|
|
95
|
+
* every entry is a floor, which is what makes a two-entry map enough to
|
|
96
|
+
* describe most layouts.
|
|
97
|
+
*/
|
|
98
|
+
export type NebaResponsive<T> = T | Partial<Record<NebaBreakpoint, T>>;
|
|
99
|
+
/**
|
|
100
|
+
* How a row distributes the space it has left over along its main axis.
|
|
101
|
+
*
|
|
102
|
+
* The three positional values are `NebaAlign`'s — logical, so they flip under
|
|
103
|
+
* RTL — and the three distribution values keep their CSS spelling, because
|
|
104
|
+
* `space-between` is what the property is called and inventing `between` would
|
|
105
|
+
* be a second name for something that already has one.
|
|
106
|
+
*/
|
|
107
|
+
export type NebaJustifyContent = NebaAlign | 'space-between' | 'space-around' | 'space-evenly' | 'stretch';
|
|
108
|
+
/**
|
|
109
|
+
* How items sit across the axis they are laid out on. `stretch` is the default
|
|
110
|
+
* everywhere it is offered: a row of cards is a row of cards of one height.
|
|
111
|
+
*/
|
|
112
|
+
export type NebaAlignItems = NebaAlign | 'stretch' | 'baseline';
|
|
113
|
+
/** The same, for one item overriding the row around it. */
|
|
114
|
+
export type NebaAlignSelf = NebaAlignItems | 'auto';
|
|
115
|
+
/**
|
|
116
|
+
* Visual weight of a component's surface.
|
|
117
|
+
*
|
|
118
|
+
* - `solid` — filled, carries the color. One per view, for the primary action.
|
|
119
|
+
* - `outline` — translucent surface with a hairline border. Secondary actions.
|
|
120
|
+
* - `text` — no surface until hovered. Tertiary/inline actions.
|
|
121
|
+
*/
|
|
122
|
+
export type NebaVariant = 'solid' | 'outline' | 'text';
|
|
123
|
+
/**
|
|
124
|
+
* How far a surface sits off the page, as a drop shadow.
|
|
125
|
+
*
|
|
126
|
+
* `0` is the default everywhere and means flat — the acrylic edge alone is what
|
|
127
|
+
* separates the control from its background. Raise it only for surfaces that
|
|
128
|
+
* genuinely float above the content around them. Hovering adds a level and
|
|
129
|
+
* pressing removes one, so a flat control still answers a press without moving.
|
|
130
|
+
*/
|
|
131
|
+
export type NebaElevation = 0 | 1 | 2 | 3;
|
|
132
|
+
/** Style props shared by most components; spread into their own prop types. */
|
|
133
|
+
export interface NebaStyleProps {
|
|
134
|
+
/** @default 'solid' */
|
|
135
|
+
variant?: NebaVariant;
|
|
136
|
+
/** @default 'md' */
|
|
137
|
+
size?: NebaSize;
|
|
138
|
+
/** @default 'primary' */
|
|
139
|
+
color?: NebaColor;
|
|
140
|
+
/** @default 'default' */
|
|
141
|
+
density?: NebaDensity;
|
|
142
|
+
}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared prop vocabulary for every Neba component.
|
|
3
|
+
*
|
|
4
|
+
* These names and values are deliberately generic: a `size` of `md` or a
|
|
5
|
+
* `color` of `primary` has to mean the same thing on a Button, a Chip, a
|
|
6
|
+
* TextField or a Dialog. Components pick the subset they need from here and
|
|
7
|
+
* never invent a parallel spelling of the same idea.
|
|
8
|
+
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neba",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "A comprehensive React UI component library — buttons, fields, menus, dialogs, tables and much more — accessible and themeable, sharing one prop vocabulary and a translucent acrylic design language. ESM only, types included, dark mode built in.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"author": "CDGet <jooy2.contact@gmail.com>",
|
|
@@ -15,16 +15,20 @@
|
|
|
15
15
|
"url": "https://github.com/jooy2/neba/issues"
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
|
-
"build": "npm run format:fix && tsc --project tsconfig.prod.json && npm run minify",
|
|
18
|
+
"build": "npm run format:fix && tsc --project tsconfig.prod.json && npm run minify && node scripts/build-styles.mjs",
|
|
19
19
|
"lint": "eslint . --ext .js,.ts .",
|
|
20
20
|
"lint:fix": "eslint . --ext .js,.ts --fix .",
|
|
21
21
|
"minify": "terser-glob 'dist/**/*.js' --config-file terser.config.json",
|
|
22
22
|
"prepare": "npm run build",
|
|
23
23
|
"format": "prettier .",
|
|
24
24
|
"format:fix": "prettier . --write",
|
|
25
|
-
"docs:
|
|
26
|
-
"docs:
|
|
27
|
-
"docs:
|
|
25
|
+
"docs:changelog": "node scripts/copy-changelog.mjs",
|
|
26
|
+
"docs:dev": "npm run build && npm run docs:changelog && vitepress dev docs",
|
|
27
|
+
"docs:build": "npm run build && npm run docs:changelog && vitepress build docs",
|
|
28
|
+
"docs:serve": "npm run build && npm run docs:build && vitepress serve docs",
|
|
29
|
+
"test": "vitest run",
|
|
30
|
+
"test:watch": "vitest",
|
|
31
|
+
"typecheck": "tsc --project tsconfig.prod.json --noEmit && tsc --project test/tsconfig.json && tsc --project docs/tsconfig.json"
|
|
28
32
|
},
|
|
29
33
|
"engines": {
|
|
30
34
|
"node": ">=18.0.0"
|
|
@@ -40,7 +44,9 @@
|
|
|
40
44
|
"types": "./dist/types.d.ts",
|
|
41
45
|
"module": "./dist/types.js",
|
|
42
46
|
"default": "./dist/types.js"
|
|
43
|
-
}
|
|
47
|
+
},
|
|
48
|
+
"./styles.css": "./dist/styles.css",
|
|
49
|
+
"./tailwind.css": "./dist/tailwind.css"
|
|
44
50
|
},
|
|
45
51
|
"typesVersions": {
|
|
46
52
|
"*": {
|
|
@@ -50,28 +56,91 @@
|
|
|
50
56
|
}
|
|
51
57
|
},
|
|
52
58
|
"keywords": [
|
|
53
|
-
"
|
|
59
|
+
"neba",
|
|
60
|
+
"react",
|
|
61
|
+
"reactjs",
|
|
62
|
+
"react-components",
|
|
63
|
+
"react-ui",
|
|
64
|
+
"ui",
|
|
65
|
+
"ui-kit",
|
|
66
|
+
"ui-library",
|
|
67
|
+
"ui-components",
|
|
68
|
+
"component-library",
|
|
69
|
+
"components",
|
|
70
|
+
"design-system",
|
|
71
|
+
"design-language",
|
|
72
|
+
"frontend",
|
|
73
|
+
"web",
|
|
74
|
+
"typescript",
|
|
75
|
+
"tsx",
|
|
76
|
+
"esm",
|
|
77
|
+
"accessible",
|
|
78
|
+
"accessibility",
|
|
79
|
+
"a11y",
|
|
80
|
+
"aria",
|
|
81
|
+
"wai-aria",
|
|
82
|
+
"dark-mode",
|
|
83
|
+
"theming",
|
|
84
|
+
"responsive",
|
|
85
|
+
"acrylic",
|
|
86
|
+
"glass",
|
|
87
|
+
"glassmorphism",
|
|
88
|
+
"button",
|
|
89
|
+
"dialog",
|
|
90
|
+
"modal",
|
|
91
|
+
"menu",
|
|
92
|
+
"select",
|
|
93
|
+
"combobox",
|
|
94
|
+
"table",
|
|
95
|
+
"tabs",
|
|
96
|
+
"toast",
|
|
97
|
+
"tooltip",
|
|
98
|
+
"form"
|
|
54
99
|
],
|
|
55
100
|
"devDependencies": {
|
|
56
101
|
"@eslint/js": "^9.39.1",
|
|
57
|
-
"@
|
|
58
|
-
"@types/
|
|
59
|
-
"@
|
|
102
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
103
|
+
"@types/node": "^26.1.1",
|
|
104
|
+
"@types/react": "^19.2.17",
|
|
105
|
+
"@types/react-dom": "^19.2.3",
|
|
106
|
+
"@typescript-eslint/parser": "^8.65.0",
|
|
107
|
+
"@vitejs/plugin-react-swc": "^4.3.2",
|
|
108
|
+
"@vitest/browser": "^4.1.10",
|
|
109
|
+
"@vitest/browser-playwright": "^4.1.10",
|
|
60
110
|
"eslint": "^9.39.1",
|
|
61
111
|
"eslint-config-prettier": "^10.1.8",
|
|
62
|
-
"eslint-plugin-n": "^
|
|
63
|
-
"globals": "^
|
|
64
|
-
"jiti": "^2.
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
112
|
+
"eslint-plugin-n": "^18.2.2",
|
|
113
|
+
"globals": "^17.7.0",
|
|
114
|
+
"jiti": "^2.7.0",
|
|
115
|
+
"playwright": "^1.61.1",
|
|
116
|
+
"postcss": "^8.5.6",
|
|
117
|
+
"prettier": "^3.9.6",
|
|
118
|
+
"prettier-plugin-tailwindcss": "^0.8.1",
|
|
119
|
+
"react": "^19.2.8",
|
|
120
|
+
"react-dom": "^19.2.8",
|
|
121
|
+
"tailwindcss": "^4.3.3",
|
|
122
|
+
"terser-glob": "^1.2.1",
|
|
123
|
+
"tsx": "^4.23.1",
|
|
68
124
|
"typescript": "^5.9.3",
|
|
69
|
-
"typescript-eslint": "^8.
|
|
125
|
+
"typescript-eslint": "^8.65.0",
|
|
126
|
+
"vite": "^8.1.5",
|
|
70
127
|
"vitepress": "^1.6.4",
|
|
71
|
-
"vitepress-i18n": "^1.3.
|
|
72
|
-
"vitepress-sidebar": "^1.
|
|
128
|
+
"vitepress-i18n": "^1.3.5",
|
|
129
|
+
"vitepress-sidebar": "^1.36.1",
|
|
130
|
+
"vitest": "^4.1.10",
|
|
131
|
+
"vitest-browser-react": "^2.2.0"
|
|
73
132
|
},
|
|
74
133
|
"dependencies": {
|
|
75
|
-
"@base-ui
|
|
134
|
+
"@base-ui/react": "^1.6.0"
|
|
135
|
+
},
|
|
136
|
+
"peerDependencies": {
|
|
137
|
+
"@types/react": "^18.0.0 || ^19.0.0",
|
|
138
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
139
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
140
|
+
},
|
|
141
|
+
"peerDependenciesMeta": {
|
|
142
|
+
"@types/react": {
|
|
143
|
+
"optional": true
|
|
144
|
+
}
|
|
76
145
|
}
|
|
77
146
|
}
|
package/pnpm-workspace.yaml
DELETED