@jonmilner/ui 0.16.0 → 0.16.1
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/dist/Avatar/Avatar.css +1 -1
- package/dist/Badge/Badge.css +1 -1
- package/dist/Box/Box.css +1 -1
- package/dist/Button/Button.css +1 -1
- package/dist/Checkbox/Checkbox.css +1 -1
- package/dist/Chip/Chip.css +1 -1
- package/dist/Clickable/Clickable.css +1 -1
- package/dist/ColorField/ColorField.css +1 -1
- package/dist/Combobox/Combobox.css +1 -1
- package/dist/Dialog/Dialog.css +1 -1
- package/dist/Field/Field.css +1 -1
- package/dist/Heading/Heading.css +1 -1
- package/dist/Icon/Icon.css +1 -1
- package/dist/IconButton/IconButton.css +1 -1
- package/dist/Inline/Inline.css +1 -1
- package/dist/Menu/Menu.css +1 -1
- package/dist/MultiSelect/MultiSelect.css +1 -1
- package/dist/NavList/NavList.css +1 -1
- package/dist/NumberField/NumberField.css +2 -0
- package/dist/NumberField/NumberField.css.mjs +17 -0
- package/dist/NumberField/index.d.mts +28 -0
- package/dist/NumberField/index.mjs +78 -0
- package/dist/RadioGroup/RadioGroup.css +1 -1
- package/dist/SearchField/SearchField.css +1 -1
- package/dist/SearchField/client.mjs +21 -26
- package/dist/Select/Select.css +1 -1
- package/dist/Sidebar/Sidebar.css +1 -1
- package/dist/SidebarLayout/SidebarLayout.css +1 -1
- package/dist/Stack/Stack.css +1 -1
- package/dist/Switch/Switch.css +1 -1
- package/dist/Table/Table.css +1 -1
- package/dist/Tabs/Tabs.css +1 -1
- package/dist/Tag/Tag.css +1 -1
- package/dist/Text/Text.css +1 -1
- package/dist/TextField/TextField.css +1 -1
- package/dist/Textarea/Textarea.css +1 -1
- package/dist/Toast/Toast.css +1 -1
- package/dist/Tooltip/Tooltip.css +1 -1
- package/dist/VisuallyHidden/VisuallyHidden.css +1 -1
- package/dist/base.css +1 -1
- package/dist/docs/Field.md +1 -1
- package/dist/docs/Icon.md +1 -0
- package/dist/docs/NumberField.md +105 -0
- package/dist/docs/TextField.md +1 -1
- package/dist/docs/llms.txt +1 -0
- package/dist/docs/manifest.json +115 -1
- package/dist/icons/MinusIcon.d.mts +2 -0
- package/dist/icons/MinusIcon.mjs +10 -0
- package/dist/icons/index.d.mts +3 -2
- package/dist/icons/index.mjs +31 -30
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +20 -19
- package/dist/styles/atoms.css +1 -1
- package/dist/styles/control-size.mjs +5 -1
- package/dist/styles/layers.css +1 -1
- package/dist/styles/responsive.css +1 -1
- package/package.json +5 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.avatar, components.badge, components.button, components.chip, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.menu, components.multiselect, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.nav-list, components.visually-hidden, components.table;
|
|
1
|
+
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.avatar, components.badge, components.button, components.chip, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.menu, components.multiselect, components.number-field, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.nav-list, components.visually-hidden, components.table;
|
|
2
2
|
@layer components.visually-hidden{._1qk18b30{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:0;padding:0;position:absolute;overflow:hidden}}
|
package/dist/base.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.avatar, components.badge, components.button, components.chip, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.menu, components.multiselect, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.nav-list, components.visually-hidden, components.table;
|
|
1
|
+
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.avatar, components.badge, components.button, components.chip, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.menu, components.multiselect, components.number-field, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.nav-list, components.visually-hidden, components.table;
|
|
2
2
|
@layer tokens{:root{--space-0:0rem;--space-1:.0625rem;--space-2:.125rem;--space-4:.25rem;--space-6:.375rem;--space-8:.5rem;--space-12:.75rem;--space-16:1rem;--space-20:1.25rem;--space-24:1.5rem;--space-32:2rem;--space-40:2.5rem;--space-48:3rem;--space-64:4rem;--space-80:5rem;--space-96:6rem;--size-xs:1.5rem;--size-sm:2rem;--size-med:2.5rem;--size-lg:3rem;--size-xl:3.5rem;--container-sidebar:15rem;--container-rail:3.5rem;--container-prose:40rem;--container-page:64rem;--container-wide:80rem;--radius-none:0;--radius-sm:.25rem;--radius-med:.5rem;--radius-lg:.75rem;--radius-xl:1rem;--radius-full:9999px;--font-size-xs:.75rem;--font-size-sm:.875rem;--font-size-med:1rem;--font-size-lg:1.125rem;--font-size-xl:1.25rem;--font-size-2xl:1.5rem;--font-size-3xl:1.875rem;--font-size-4xl:2.25rem;--font-weight-regular:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--line-height-sm:1.25;--line-height-meta:1.3334;--line-height-body:1.4286;--line-height-med:1.5;--line-height-lg:1.75;--z-index-base:0;--z-index-raised:1;--z-index-dropdown:1000;--z-index-sticky:1100;--z-index-overlay:1200;--z-index-modal:1300;--z-index-popover:1400;--z-index-toast:1500;--z-index-tooltip:1600;--duration-fast:.12s;--duration-med:.2s;--duration-slow:.32s;--easing-standard:cubic-bezier(.2, 0, 0, 1);--easing-enter:cubic-bezier(0, 0, 0, 1);--easing-exit:cubic-bezier(.3, 0, 1, 1);--distance-sm:.25rem;--distance-med:.5rem;--distance-lg:1rem;--scale-sm:.02;--scale-med:.05;--scale-lg:.1}[data-brand]{--shadow-sm:0 1px 2px color-mix(in srgb, var(--color-shadow) 12%, transparent);--shadow-med:0 2px 8px color-mix(in srgb, var(--color-shadow) 14%, transparent), 0 1px 2px color-mix(in srgb, var(--color-shadow) 8%, transparent);--shadow-lg:0 8px 24px color-mix(in srgb, var(--color-shadow) 16%, transparent), 0 2px 6px color-mix(in srgb, var(--color-shadow) 8%, transparent)}[data-brand][data-mode=light]{color-scheme:light}[data-brand][data-mode=dark]{--shadow-sm:0 0 0 1px color-mix(in srgb, var(--color-fg) 10%, transparent), 0 1px 2px color-mix(in srgb, var(--color-shadow) 40%, transparent);--shadow-med:0 0 0 1px color-mix(in srgb, var(--color-fg) 10%, transparent), 0 2px 8px color-mix(in srgb, var(--color-shadow) 48%, transparent), 0 1px 2px color-mix(in srgb, var(--color-shadow) 32%, transparent);--shadow-lg:0 0 0 1px color-mix(in srgb, var(--color-fg) 10%, transparent), 0 8px 24px color-mix(in srgb, var(--color-shadow) 56%, transparent), 0 2px 6px color-mix(in srgb, var(--color-shadow) 32%, transparent);color-scheme:dark}[data-brand][data-mode=system]{color-scheme:light dark}:dir(ltr){--dir:1}:dir(rtl){--dir:-1}@media (prefers-color-scheme:dark){[data-brand][data-mode=system]{--shadow-sm:0 0 0 1px color-mix(in srgb, var(--color-fg) 10%, transparent), 0 1px 2px color-mix(in srgb, var(--color-shadow) 40%, transparent);--shadow-med:0 0 0 1px color-mix(in srgb, var(--color-fg) 10%, transparent), 0 2px 8px color-mix(in srgb, var(--color-shadow) 48%, transparent), 0 1px 2px color-mix(in srgb, var(--color-shadow) 32%, transparent);--shadow-lg:0 0 0 1px color-mix(in srgb, var(--color-fg) 10%, transparent), 0 8px 24px color-mix(in srgb, var(--color-shadow) 56%, transparent), 0 2px 6px color-mix(in srgb, var(--color-shadow) 32%, transparent)}}@media (prefers-reduced-motion:reduce){:root{--distance-sm:0rem;--distance-med:0rem;--distance-lg:0rem;--scale-sm:0;--scale-med:0;--scale-lg:0;--duration-fast:.12s;--duration-med:.12s;--duration-slow:.12s}}}
|
|
3
3
|
|
|
4
4
|
@font-face{src:local(Arial),local(ArialMT);font-weight:400;font-style:normal;size-adjust:101.568%;ascent-override:95.3892%;descent-override:23.7511%;line-gap-override:0%;font-family:Inter Fallback Arial}@font-face{src:local(Arial Bold),local(Arial-BoldMT);font-weight:700;font-style:normal;size-adjust:101.637%;ascent-override:95.3241%;descent-override:23.7349%;line-gap-override:0%;font-family:Inter Fallback Arial}@font-face{src:local(Arial Italic),local(Arial-ItalicMT);font-weight:400;font-style:italic;size-adjust:101.637%;ascent-override:95.3241%;descent-override:23.7349%;line-gap-override:0%;font-family:Inter Fallback Arial}@font-face{src:local(Arial Bold Italic),local(Arial-BoldItalicMT);font-weight:700;font-style:italic;size-adjust:101.706%;ascent-override:95.2591%;descent-override:23.7187%;line-gap-override:0%;font-family:Inter Fallback Arial}@font-face{src:local(Menlo Regular),local(Menlo-Regular);font-weight:400;font-style:normal;size-adjust:100.137%;ascent-override:101.871%;descent-override:29.9621%;line-gap-override:0%;font-family:JetBrains Mono Fallback Menlo}@font-face{src:local(Menlo Bold),local(Menlo-Bold);font-weight:700;font-style:normal;size-adjust:100.003%;ascent-override:102.007%;descent-override:30.0022%;line-gap-override:0%;font-family:JetBrains Mono Fallback Menlo}@font-face{src:local(Menlo Italic),local(Menlo-Italic);font-weight:400;font-style:italic;size-adjust:100.137%;ascent-override:101.871%;descent-override:29.9621%;line-gap-override:0%;font-family:JetBrains Mono Fallback Menlo}@font-face{src:local(Menlo Bold Italic),local(Menlo-BoldItalic);font-weight:700;font-style:italic;size-adjust:100.003%;ascent-override:102.007%;descent-override:30.0022%;line-gap-override:0%;font-family:JetBrains Mono Fallback Menlo}@font-face{src:local(Consolas);font-weight:400;font-style:normal;size-adjust:114.387%;ascent-override:89.1798%;descent-override:26.2293%;line-gap-override:0%;font-family:JetBrains Mono Fallback Consolas}@font-face{src:local(Consolas Bold),local(Consolas-Bold);font-weight:700;font-style:normal;size-adjust:114.387%;ascent-override:89.1798%;descent-override:26.2293%;line-gap-override:0%;font-family:JetBrains Mono Fallback Consolas}@font-face{src:local(Consolas Italic),local(Consolas-Italic);font-weight:400;font-style:italic;size-adjust:114.387%;ascent-override:89.1798%;descent-override:26.2293%;line-gap-override:0%;font-family:JetBrains Mono Fallback Consolas}@font-face{src:local(Consolas Bold Italic),local(Consolas-BoldItalic);font-weight:700;font-style:italic;size-adjust:114.387%;ascent-override:89.1798%;descent-override:26.2293%;line-gap-override:0%;font-family:JetBrains Mono Fallback Consolas}@font-face{src:local(Courier New),local(CourierNewPSMT);font-weight:400;font-style:normal;size-adjust:127.781%;ascent-override:79.8319%;descent-override:23.48%;line-gap-override:0%;font-family:JetBrains Mono Fallback Courier New}@font-face{src:local(Courier New Bold),local(CourierNewPS-BoldMT);font-weight:700;font-style:normal;size-adjust:123.353%;ascent-override:82.6977%;descent-override:24.3229%;line-gap-override:0%;font-family:JetBrains Mono Fallback Courier New}@font-face{src:local(Courier New Italic),local(CourierNewPS-ItalicMT);font-weight:400;font-style:italic;size-adjust:127.781%;ascent-override:79.8319%;descent-override:23.48%;line-gap-override:0%;font-family:JetBrains Mono Fallback Courier New}@font-face{src:local(Courier New Bold Italic),local(CourierNewPS-BoldItalicMT);font-weight:700;font-style:italic;size-adjust:123.353%;ascent-override:82.6977%;descent-override:24.3229%;line-gap-override:0%;font-family:JetBrains Mono Fallback Courier New}@layer tokens{[data-brand=default]{--color-bg:light-dark(oklch(100% 0 0),oklch(14.5% .006 265));--color-bg-muted:light-dark(oklch(96.8% .006 265),oklch(27% .006 265));--color-bg-raised:light-dark(oklch(100% 0 0),oklch(20.5% .006 265));--color-bg-panel:light-dark(oklch(98.5% .006 265),oklch(17.7% .006 265));--color-fg:light-dark(oklch(14.5% .006 265),oklch(98.5% .006 265));--color-fg-muted:light-dark(oklch(44.5% .006 265),oklch(71% .006 265));--color-border:light-dark(oklch(92.5% .006 265),oklch(27% .006 265));--color-border-strong:oklch(55.5% .006 265);--color-hover:light-dark(oklch(14.5% .006 265/.04),oklch(98.5% .006 265/.04));--color-control-fill:light-dark(oklch(14.5% .006 265/.05),oklch(98.5% .006 265/.05));--color-selected:light-dark(oklch(14.5% .006 265/.07),oklch(98.5% .006 265/.07));--color-accent:light-dark(oklch(54.6% .19 258),oklch(70.7% .14 258));--color-accent-fg:light-dark(oklch(100% 0 0),oklch(14.5% .006 265));--color-accent-fill:light-dark(oklch(54.6% .19 258),oklch(48.8% .18 258));--color-accent-fill-fg:oklch(100% 0 0);--color-danger:light-dark(oklch(56% .2 25),oklch(70.4% .17 25));--color-danger-fg:light-dark(oklch(100% 0 0),oklch(14.5% .006 265));--color-success:light-dark(oklch(52% .135 150),oklch(76% .15 150));--color-success-fg:light-dark(oklch(100% 0 0),oklch(14.5% .006 265));--color-warning:light-dark(oklch(53% .11 75),oklch(81% .145 75));--color-warning-fg:light-dark(oklch(100% 0 0),oklch(14.5% .006 265));--color-done:light-dark(oklch(55% .2 295),oklch(72% .15 295));--color-done-fg:light-dark(oklch(100% 0 0),oklch(14.5% .006 265));--color-neutral-subtle:light-dark(oklch(96.8% .006 265),oklch(27% .006 265));--color-neutral-subtle-fg:light-dark(oklch(37% .006 265),oklch(87% .006 265));--color-accent-subtle:light-dark(oklch(93.2% .032 258),oklch(28.2% .09 258));--color-accent-subtle-fg:light-dark(oklch(48.8% .18 258),oklch(80.9% .095 258));--color-success-subtle:light-dark(oklch(94.5% .04 150),oklch(26% .06 150));--color-success-subtle-fg:light-dark(oklch(46.5% .12 150),oklch(84% .115 150));--color-warning-subtle:light-dark(oklch(95.5% .03 75),oklch(27% .05 75));--color-warning-subtle-fg:light-dark(oklch(47.5% .1 75),oklch(86% .105 75));--color-danger-subtle:light-dark(oklch(93.6% .032 25),oklch(25.8% .085 25));--color-danger-subtle-fg:light-dark(oklch(50.5% .19 25),oklch(80.8% .105 25));--color-done-subtle:light-dark(oklch(93.8% .032 295),oklch(28% .095 295));--color-done-subtle-fg:light-dark(oklch(49% .19 295),oklch(81.5% .1 295));--color-focus:light-dark(oklch(54.6% .19 258),oklch(70.7% .14 258));--color-shadow:light-dark(oklch(14.5% .006 265),oklch(0% 0 0));--font-body:"Inter", "Inter Fallback Arial", sans-serif;--font-heading:"Inter", "Inter Fallback Arial", sans-serif;--font-display:"Inter", "Inter Fallback Arial", sans-serif;--font-label:"Inter", "Inter Fallback Arial", sans-serif;--font-mono:"JetBrains Mono", "JetBrains Mono Fallback Menlo", "JetBrains Mono Fallback Consolas", "JetBrains Mono Fallback Courier New", monospace;--font-trim-body-cap:.36377;--font-trim-body-baseline:.36377;--font-trim-heading-cap:.36377;--font-trim-heading-baseline:.36377;--font-trim-display-cap:.36377;--font-trim-display-baseline:.36377;--font-trim-label-cap:.36377;--font-trim-label-baseline:.36377;--font-trim-mono-cap:.37;--font-trim-mono-baseline:.36;--font-tracking-body:-.006em;--font-tracking-heading:-.006em;--font-tracking-display:-.006em;--font-tracking-label:-.006em;--font-tracking-mono:normal;--font-features-body:"cv11", "ss03";--font-features-heading:"cv11", "ss03";--font-features-display:"cv11", "ss03";--font-features-label:"cv11", "ss03";--font-features-mono:normal}@media (forced-colors:active){[data-brand][data-brand]{--color-bg:Canvas;--color-bg-muted:Canvas;--color-bg-raised:Canvas;--color-bg-panel:Canvas;--color-fg:CanvasText;--color-fg-muted:CanvasText;--color-border:CanvasText;--color-border-strong:CanvasText;--color-hover:Highlight;--color-control-fill:ButtonFace;--color-selected:Highlight;--color-accent:LinkText;--color-accent-fg:Canvas;--color-accent-fill:LinkText;--color-accent-fill-fg:Canvas;--color-danger:CanvasText;--color-danger-fg:Canvas;--color-success:CanvasText;--color-success-fg:Canvas;--color-warning:CanvasText;--color-warning-fg:Canvas;--color-done:CanvasText;--color-done-fg:Canvas;--color-neutral-subtle:Canvas;--color-neutral-subtle-fg:CanvasText;--color-accent-subtle:Canvas;--color-accent-subtle-fg:CanvasText;--color-success-subtle:Canvas;--color-success-subtle-fg:CanvasText;--color-warning-subtle:Canvas;--color-warning-subtle-fg:CanvasText;--color-danger-subtle:Canvas;--color-danger-subtle-fg:CanvasText;--color-done-subtle:Canvas;--color-done-subtle-fg:CanvasText;--color-focus:Highlight;--color-shadow:CanvasText}}}
|
package/dist/docs/Field.md
CHANGED
|
@@ -14,7 +14,7 @@ Wires one form control to its label, description and error: ids, `htmlFor`, `ari
|
|
|
14
14
|
- An error about the whole form (a failed save, a network error): put it in a reserved slot at the form level, not on one field.
|
|
15
15
|
- The result of submitting the form ("Profile saved"): use `Toast`; the field's message is for that one input.
|
|
16
16
|
- A group of controls with one legend: a public `Fieldset` is not planned (ADR 0133). For checkboxes, write a native `fieldset` and `legend` with one Field per Checkbox. For one choice among a few, `RadioGroup` carries its own legend.
|
|
17
|
-
- A single line of text, several lines, a search, a colour, or one or several values from a list: use `TextField`, `Textarea`, `SearchField`, `ColorField`, `Select` or `MultiSelect`, which build on this Field.
|
|
17
|
+
- A single line of text, several lines, a search, a colour, a bounded number, or one or several values from a list: use `TextField`, `Textarea`, `SearchField`, `ColorField`, `NumberField`, `Select` or `MultiSelect`, which build on this Field.
|
|
18
18
|
|
|
19
19
|
## Rules
|
|
20
20
|
|
package/dist/docs/Icon.md
CHANGED
|
@@ -92,6 +92,7 @@ Generated from `src/icons/svg/` and exported from `@jonmilner/ui/icons`; each ta
|
|
|
92
92
|
- `InfoIcon` (`info.svg`)
|
|
93
93
|
- `LoaderCircleIcon` (`loader-circle.svg`)
|
|
94
94
|
- `LockOpenIcon` (`lock-open.svg`)
|
|
95
|
+
- `MinusIcon` (`minus.svg`)
|
|
95
96
|
- `PanelLeftCloseIcon` (`panel-left-close.svg`)
|
|
96
97
|
- `PanelLeftOpenIcon` (`panel-left-open.svg`)
|
|
97
98
|
- `PencilIcon` (`pencil.svg`)
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# NumberField
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
A form field for a bounded number: a text input between a decrement button (inline start) and an increment button (inline end), with the number centred between them. Built on Base UI's `NumberField` (ADR 0003, 0161); it composes `Field` for its label, description and error (ADR 0026). Three sizes at Button's heights (`sm`, `med`, `lg`: 24, 32 and 40 px, ADR 0124); the input fills the Field's width.
|
|
6
|
+
|
|
7
|
+
## When to use
|
|
8
|
+
|
|
9
|
+
- A small count with a known range that the user nudges up or down: a cap (1 to 20), a number of slots (1 to 10), a retry limit, a quantity.
|
|
10
|
+
- A settings form whose fields line up with a `TextField` or `Select`: they share the heights and the border.
|
|
11
|
+
|
|
12
|
+
## When not to use
|
|
13
|
+
|
|
14
|
+
- Free text, or a number nobody steps (a phone number, a postcode, an account number, a year typed in full): use `TextField` with `inputMode` in `inputProps`.
|
|
15
|
+
- One of a few named options ("Low", "Medium", "High"), or a fixed list of values: use `Select` or `RadioGroup`.
|
|
16
|
+
- A value picked by dragging along a range: a slider is not in the library.
|
|
17
|
+
- Money or a percentage that needs a formatter: NumberField shows a plain number.
|
|
18
|
+
|
|
19
|
+
## Rules
|
|
20
|
+
|
|
21
|
+
- `label` is required and names the input, even when the design shows none: pass `hideLabel` to keep it for assistive technology and hide it from sight. Never pass an empty label, and never let `placeholder` stand in for one.
|
|
22
|
+
- `value` with `onValueChange` controls it; `defaultValue` leaves it uncontrolled. `onValueChange` gets the number, or `null` when the input is emptied.
|
|
23
|
+
- `min` and `max` bound the value. The buttons and the arrow keys stop at them, and each button is disabled at its bound. A typed value outside them is clamped as it is typed: `onValueChange` gets the bound at once, and the input shows it when it loses focus.
|
|
24
|
+
- `step` (default 1) is how far a button press or an arrow key moves the value; Shift with an arrow moves ten steps, and Home and End jump to `min` and `max` when they are set. A whole-number `step` keeps the value whole: a typed fraction rounds to the nearest whole number.
|
|
25
|
+
- With a `name` and a `step` above 1, keep `max` a whole number of steps from `min` (`min={5} max={50} step={5}`, not `min={1} max={20} step={5}`): the submitted input checks the value against the steps, and a value between them, the clamped `max` included, blocks the form's submission. A typed value is kept as typed, not snapped to a step: with `min={5} step={5}`, a typed 7 stays 7 and blocks submission until the user steps or retypes it.
|
|
26
|
+
- `description` and `error` render below the input through `Field`; a non-empty `error` marks the field invalid (`aria-invalid`, a danger border) and joins the input's `aria-describedby`.
|
|
27
|
+
- `disabled` disables the input and both buttons: the input leaves the tab order and does not submit, with a dashed border. `required` sets the native `required` on the submitted input.
|
|
28
|
+
- `name` submits the number with its form, through a hidden native number input that carries the bounds and step.
|
|
29
|
+
- `incrementLabel` and `decrementLabel` name the buttons ("Increase" and "Decrease"); pass translated strings in another language.
|
|
30
|
+
- Style props, `className` and `style` go to the `Field` around the label, control and messages, not to the input.
|
|
31
|
+
- `inputProps` reach the input: `ref`, `id`, `autoFocus`, `enterKeyHint`, `onKeyDown`, and only the `aria-*` valid on a text box that Base UI does not set (ADR 0110, 0154): `aria-controls`, `aria-details`, `aria-keyshortcuts`, `aria-owns`, `aria-flowto`, `aria-current`, `aria-busy`, `aria-live`, `aria-atomic` and `aria-relevant`. Base UI sets `inputMode`, `autoComplete`, `spellCheck` and `aria-roledescription`, and filters the characters typed, so those and `maxLength` are not among them; `min`, `max` and `step` are the field's own props. The type closes the set; nothing strips another prop at runtime.
|
|
32
|
+
- A consumer `onKeyDown` runs before the field's own arrow-key stepping.
|
|
33
|
+
- A consumer `ref` gets the input. A consumer `id` takes over from Field's generated one at hydration, and the label follows it.
|
|
34
|
+
- The module has no hooks, so a server component can render it; `onValueChange`, and an `inputProps` `ref` or `onKeyDown`, must come from a client component.
|
|
35
|
+
|
|
36
|
+
## Do
|
|
37
|
+
|
|
38
|
+
```tsx
|
|
39
|
+
<NumberField label="Attention cap" name="attentionCap" min={1} max={20} defaultValue={5} />
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
```tsx
|
|
43
|
+
<NumberField
|
|
44
|
+
label="Session slots"
|
|
45
|
+
description="How many sessions run at once."
|
|
46
|
+
min={1}
|
|
47
|
+
max={10}
|
|
48
|
+
value={slots}
|
|
49
|
+
onValueChange={(next) => setSlots(next ?? 1)}
|
|
50
|
+
/>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Don't
|
|
54
|
+
|
|
55
|
+
```tsx
|
|
56
|
+
// A number nobody steps: a postcode or phone number is text.
|
|
57
|
+
<NumberField label="Phone" />
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
```tsx
|
|
61
|
+
// Named options: pick them from a list.
|
|
62
|
+
<NumberField label="Priority" min={1} max={3} />
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
```tsx
|
|
66
|
+
// No bounds on a count that has them: the buttons never disable and any value submits.
|
|
67
|
+
<NumberField label="Session slots" />
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Accessibility
|
|
71
|
+
|
|
72
|
+
- The input is a text box named by its label, announced as a "Number field" (`aria-roledescription`), with a numeric keypad on touch devices. On iOS Base UI asks for the decimal pad when `min` is 0 or more, and the full keyboard otherwise, since neither iOS pad has a minus key. Base UI does not give it the `spinbutton` role (ADR 0161); the arrow keys still step it.
|
|
73
|
+
- The buttons are named "Decrease" and "Increase", are out of the tab order (the arrow keys do their job) and keep focus in the input when pressed. At a bound the button is `aria-disabled` and takes IconButton's disabled look, a dashed border on a muted fill, so the state is not colour alone.
|
|
74
|
+
- Every size is at least 24 px tall, and at `sm` each button is a 24 px square target. Invalid adds a danger border and the error message with its icon, never colour alone; disabled adds a dashed border. Under forced colors the border, text, buttons and disabled state use system colors. On a coarse pointer the input text is 16px at every size, so iOS Safari does not zoom the page when the field takes focus.
|
|
75
|
+
|
|
76
|
+
## Props
|
|
77
|
+
|
|
78
|
+
Generated from the TypeScript types.
|
|
79
|
+
|
|
80
|
+
### NumberField
|
|
81
|
+
|
|
82
|
+
| Prop | Type | Required | Description |
|
|
83
|
+
| --- | --- | --- | --- |
|
|
84
|
+
| `className` | `string` | no | |
|
|
85
|
+
| `decrementLabel` | `string` | no | |
|
|
86
|
+
| `defaultValue` | `number` | no | |
|
|
87
|
+
| `description` | `ReactNode` | no | |
|
|
88
|
+
| `disabled` | `boolean` | no | |
|
|
89
|
+
| `error` | `ReactNode` | no | |
|
|
90
|
+
| `hideLabel` | `boolean` | no | |
|
|
91
|
+
| `incrementLabel` | `string` | no | |
|
|
92
|
+
| `inputProps` | `NumberFieldInputProps` | no | |
|
|
93
|
+
| `label` | `ReactNode` | yes | |
|
|
94
|
+
| `max` | `number` | no | |
|
|
95
|
+
| `min` | `number` | no | |
|
|
96
|
+
| `name` | `string` | no | |
|
|
97
|
+
| `onValueChange` | `((value: number \| null) => void)` | no | |
|
|
98
|
+
| `placeholder` | `string` | no | |
|
|
99
|
+
| `required` | `boolean` | no | |
|
|
100
|
+
| `size` | `"lg" \| "med" \| "sm"` | no | |
|
|
101
|
+
| `step` | `number` | no | |
|
|
102
|
+
| `style` | `CSSProperties` | no | |
|
|
103
|
+
| `value` | `number` | no | |
|
|
104
|
+
|
|
105
|
+
Also accepts the style props (see `manifest.json` `styleProps`).
|
package/dist/docs/TextField.md
CHANGED
|
@@ -13,7 +13,7 @@ A form field for one line of text that is not a search: an `<input>` (role `text
|
|
|
13
13
|
|
|
14
14
|
- A query that searches or filters: use `SearchField`; it is announced as a search and has a clear button.
|
|
15
15
|
- Several lines of text (a reply, a note, a description): use `Textarea`.
|
|
16
|
-
- A number
|
|
16
|
+
- A bounded number the user steps up or down (a cap, a count, a quantity): use `NumberField`. A number nobody steps (a postcode, a phone number) stays a `TextField` with `inputMode` in `inputProps`.
|
|
17
17
|
- Picking from a known list as the user types: use `Combobox`.
|
|
18
18
|
- Picking one or several values from a list: use `MultiSelect` or `ChipGroup`.
|
|
19
19
|
- A colour: use `ColorField`; it pairs the hex with the browser's colour picker.
|
package/dist/docs/llms.txt
CHANGED
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
- [Menu](Menu.md): A list of actions that opens from a button: a row's "Edit, Duplicate, Delete", a toolbar's overflow. It may mix in links ("Open invoice", "Download PDF") as `Menu.LinkItem`, real anchors that keep the browser's link behavior. Built on Base UI's Menu, which owns the keyboard and focus: arrow keys, Home and End move through the items, typing jumps to a matching item, Esc and an outside click close it, and focus returns to the trigger. The parts add the look: a raised surface with a border and shadow, a highlighted item, a zoom-and-fade that is a plain fade under reduced motion.
|
|
31
31
|
- [MultiSelect](MultiSelect.md): A form field for picking any number of values from a list too long to show at once. A trigger styled as Button's secondary look opens a listbox of options; each selected option shows a check mark, and the trigger summarises the selection as the joined labels, or a count ("3 selected") once the labels would not fit. Built on Base UI's `Select` in multiple mode (ADR 0003), which owns the keyboard and focus: arrow keys, Home and End move through the options, typing jumps to a match, Esc and an outside click close it, and focus returns to the trigger. It composes `Field` for its label, description and error (ADR 0026).
|
|
32
32
|
- [NavList](NavList.md): A column of links to an app's pages, with the current page marked: a sidebar's or a settings page's navigation. The parts are `NavList` (a named `nav` around a list), `NavList.Group` (a heading over a run of items) and `NavList.Item` (one link, with an optional leading icon and trailing count). Items are links, not buttons: an `<a>` by default, or a router's `Link` through `as`, which keeps the router's props typed (ADR 0149). The app says which item is current; NavList reads nothing from the URL.
|
|
33
|
+
- [NumberField](NumberField.md): A form field for a bounded number: a text input between a decrement button (inline start) and an increment button (inline end), with the number centred between them. Built on Base UI's `NumberField` (ADR 0003, 0161); it composes `Field` for its label, description and error (ADR 0026). Three sizes at Button's heights (`sm`, `med`, `lg`: 24, 32 and 40 px, ADR 0124); the input fills the Field's width.
|
|
33
34
|
- [RadioGroup](RadioGroup.md): One choice among a few options, all shown at once. A form field built on Base UI `RadioGroup` and `Radio` (ADR 0003, 0046) inside a `Fieldset`: a `radiogroup` named by its legend, with a `radio` per option. Each option is a 24 by 24 CSS px target (WCAG 2.2) with the shared focus ring; the 16px circle inside shows a dot when checked. It composes `Field` for the group's description and error and for each option's label and description (ADR 0026, 0133).
|
|
34
35
|
- [SearchField](SearchField.md): A form field for a search query: an `<input type="search">` (role `searchbox`) with a search icon at its inline start and, while it holds a value, a clear button at its inline end. Escape empties a field that has a value, and the clear button empties it and puts focus back in the input, so a keyboard user never loses their place (ADR 0087). Built on Base UI's `Input` (ADR 0003); it composes `Field` for its label, description and error (ADR 0026). Three sizes at Button's heights (`sm`, `med`, `lg`: 24, 32 and 40 px, ADR 0124); the clear button is 24px, or 32px in `lg`.
|
|
35
36
|
- [Select](Select.md): A form field for picking one value from a list too long to show as radios, with no typing. A trigger drawn as a field opens a listbox of options; the selected option shows a check mark, and the trigger shows its label on one line, truncated. Built on Base UI's `Select` in single mode (ADR 0003), which owns the keyboard and focus: Enter, Space and the arrow keys open it, arrow keys, Home and End move through the options, typing jumps to a match, Enter picks, Esc and an outside click close it, and focus returns to the trigger. It shares MultiSelect's trigger, popup and option rows (ADR 0134) and composes `Field` for its label, description and error (ADR 0026).
|
package/dist/docs/manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./manifest.schema.json",
|
|
3
3
|
"package": "@jonmilner/ui",
|
|
4
|
-
"version": "0.16.
|
|
4
|
+
"version": "0.16.1",
|
|
5
5
|
"components": [
|
|
6
6
|
{
|
|
7
7
|
"name": "AlertDialog",
|
|
@@ -1920,6 +1920,119 @@
|
|
|
1920
1920
|
],
|
|
1921
1921
|
"exports": []
|
|
1922
1922
|
},
|
|
1923
|
+
{
|
|
1924
|
+
"name": "NumberField",
|
|
1925
|
+
"styleProps": true,
|
|
1926
|
+
"props": [
|
|
1927
|
+
{
|
|
1928
|
+
"name": "className",
|
|
1929
|
+
"type": "string",
|
|
1930
|
+
"required": false
|
|
1931
|
+
},
|
|
1932
|
+
{
|
|
1933
|
+
"name": "decrementLabel",
|
|
1934
|
+
"type": "string",
|
|
1935
|
+
"required": false
|
|
1936
|
+
},
|
|
1937
|
+
{
|
|
1938
|
+
"name": "defaultValue",
|
|
1939
|
+
"type": "number",
|
|
1940
|
+
"required": false
|
|
1941
|
+
},
|
|
1942
|
+
{
|
|
1943
|
+
"name": "description",
|
|
1944
|
+
"type": "ReactNode",
|
|
1945
|
+
"required": false
|
|
1946
|
+
},
|
|
1947
|
+
{
|
|
1948
|
+
"name": "disabled",
|
|
1949
|
+
"type": "boolean",
|
|
1950
|
+
"required": false
|
|
1951
|
+
},
|
|
1952
|
+
{
|
|
1953
|
+
"name": "error",
|
|
1954
|
+
"type": "ReactNode",
|
|
1955
|
+
"required": false
|
|
1956
|
+
},
|
|
1957
|
+
{
|
|
1958
|
+
"name": "hideLabel",
|
|
1959
|
+
"type": "boolean",
|
|
1960
|
+
"required": false
|
|
1961
|
+
},
|
|
1962
|
+
{
|
|
1963
|
+
"name": "incrementLabel",
|
|
1964
|
+
"type": "string",
|
|
1965
|
+
"required": false
|
|
1966
|
+
},
|
|
1967
|
+
{
|
|
1968
|
+
"name": "inputProps",
|
|
1969
|
+
"type": "NumberFieldInputProps",
|
|
1970
|
+
"required": false
|
|
1971
|
+
},
|
|
1972
|
+
{
|
|
1973
|
+
"name": "label",
|
|
1974
|
+
"type": "ReactNode",
|
|
1975
|
+
"required": true
|
|
1976
|
+
},
|
|
1977
|
+
{
|
|
1978
|
+
"name": "max",
|
|
1979
|
+
"type": "number",
|
|
1980
|
+
"required": false
|
|
1981
|
+
},
|
|
1982
|
+
{
|
|
1983
|
+
"name": "min",
|
|
1984
|
+
"type": "number",
|
|
1985
|
+
"required": false
|
|
1986
|
+
},
|
|
1987
|
+
{
|
|
1988
|
+
"name": "name",
|
|
1989
|
+
"type": "string",
|
|
1990
|
+
"required": false
|
|
1991
|
+
},
|
|
1992
|
+
{
|
|
1993
|
+
"name": "onValueChange",
|
|
1994
|
+
"type": "((value: number | null) => void)",
|
|
1995
|
+
"required": false
|
|
1996
|
+
},
|
|
1997
|
+
{
|
|
1998
|
+
"name": "placeholder",
|
|
1999
|
+
"type": "string",
|
|
2000
|
+
"required": false
|
|
2001
|
+
},
|
|
2002
|
+
{
|
|
2003
|
+
"name": "required",
|
|
2004
|
+
"type": "boolean",
|
|
2005
|
+
"required": false
|
|
2006
|
+
},
|
|
2007
|
+
{
|
|
2008
|
+
"name": "size",
|
|
2009
|
+
"type": "\"lg\" | \"med\" | \"sm\"",
|
|
2010
|
+
"required": false,
|
|
2011
|
+
"values": [
|
|
2012
|
+
"lg",
|
|
2013
|
+
"med",
|
|
2014
|
+
"sm"
|
|
2015
|
+
]
|
|
2016
|
+
},
|
|
2017
|
+
{
|
|
2018
|
+
"name": "step",
|
|
2019
|
+
"type": "number",
|
|
2020
|
+
"required": false
|
|
2021
|
+
},
|
|
2022
|
+
{
|
|
2023
|
+
"name": "style",
|
|
2024
|
+
"type": "CSSProperties",
|
|
2025
|
+
"required": false
|
|
2026
|
+
},
|
|
2027
|
+
{
|
|
2028
|
+
"name": "value",
|
|
2029
|
+
"type": "number",
|
|
2030
|
+
"required": false
|
|
2031
|
+
}
|
|
2032
|
+
],
|
|
2033
|
+
"parts": [],
|
|
2034
|
+
"exports": []
|
|
2035
|
+
},
|
|
1923
2036
|
{
|
|
1924
2037
|
"name": "RadioGroup",
|
|
1925
2038
|
"styleProps": true,
|
|
@@ -4144,6 +4257,7 @@
|
|
|
4144
4257
|
"InfoIcon",
|
|
4145
4258
|
"LoaderCircleIcon",
|
|
4146
4259
|
"LockOpenIcon",
|
|
4260
|
+
"MinusIcon",
|
|
4147
4261
|
"PanelLeftCloseIcon",
|
|
4148
4262
|
"PanelLeftOpenIcon",
|
|
4149
4263
|
"PencilIcon",
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Icon as e } from "../Icon/index.mjs";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
// src/icons/MinusIcon.tsx
|
|
4
|
+
function n(n) {
|
|
5
|
+
return /* @__PURE__ */ t(e, {
|
|
6
|
+
...n,
|
|
7
|
+
children: /* @__PURE__ */ t("path", { d: "M5 12h14" })
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
export { n as MinusIcon };
|
package/dist/icons/index.d.mts
CHANGED
|
@@ -18,6 +18,7 @@ import { GitPullRequestIcon } from "./GitPullRequestIcon.mjs";
|
|
|
18
18
|
import { InboxIcon } from "./InboxIcon.mjs";
|
|
19
19
|
import { LoaderCircleIcon } from "./LoaderCircleIcon.mjs";
|
|
20
20
|
import { LockOpenIcon } from "./LockOpenIcon.mjs";
|
|
21
|
+
import { MinusIcon } from "./MinusIcon.mjs";
|
|
21
22
|
import { PanelLeftCloseIcon } from "./PanelLeftCloseIcon.mjs";
|
|
22
23
|
import { PanelLeftOpenIcon } from "./PanelLeftOpenIcon.mjs";
|
|
23
24
|
import { PencilIcon } from "./PencilIcon.mjs";
|
|
@@ -29,6 +30,6 @@ import { SearchIcon } from "./SearchIcon.mjs";
|
|
|
29
30
|
import { SettingsIcon } from "./SettingsIcon.mjs";
|
|
30
31
|
import { Trash2Icon } from "./Trash2Icon.mjs";
|
|
31
32
|
import { XIcon } from "./XIcon.mjs";
|
|
32
|
-
export declare const iconNames: readonly ["ArrowDownIcon", "ArrowLeftIcon", "ArrowRightIcon", "ArrowUpIcon", "CheckIcon", "ChevronDownIcon", "ChevronRightIcon", "CircleAlertIcon", "CircleCheckIcon", "CircleDotIcon", "CircleSlashIcon", "EllipsisIcon", "GitMergeIcon", "GitPullRequestClosedIcon", "GitPullRequestDraftIcon", "GitPullRequestIcon", "InboxIcon", "InfoIcon", "LoaderCircleIcon", "LockOpenIcon", "PanelLeftCloseIcon", "PanelLeftOpenIcon", "PencilIcon", "PlayIcon", "PlusIcon", "RefreshCwIcon", "ReplyIcon", "SearchIcon", "SettingsIcon", "Trash2Icon", "XIcon"];
|
|
33
|
+
export declare const iconNames: readonly ["ArrowDownIcon", "ArrowLeftIcon", "ArrowRightIcon", "ArrowUpIcon", "CheckIcon", "ChevronDownIcon", "ChevronRightIcon", "CircleAlertIcon", "CircleCheckIcon", "CircleDotIcon", "CircleSlashIcon", "EllipsisIcon", "GitMergeIcon", "GitPullRequestClosedIcon", "GitPullRequestDraftIcon", "GitPullRequestIcon", "InboxIcon", "InfoIcon", "LoaderCircleIcon", "LockOpenIcon", "MinusIcon", "PanelLeftCloseIcon", "PanelLeftOpenIcon", "PencilIcon", "PlayIcon", "PlusIcon", "RefreshCwIcon", "ReplyIcon", "SearchIcon", "SettingsIcon", "Trash2Icon", "XIcon"];
|
|
33
34
|
export type IconName = (typeof iconNames)[number];
|
|
34
|
-
export { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, CheckIcon, ChevronDownIcon, ChevronRightIcon, CircleAlertIcon, CircleCheckIcon, CircleDotIcon, CircleSlashIcon, EllipsisIcon, GitMergeIcon, GitPullRequestClosedIcon, GitPullRequestDraftIcon, GitPullRequestIcon, InboxIcon, InfoIcon, LoaderCircleIcon, LockOpenIcon, PanelLeftCloseIcon, PanelLeftOpenIcon, PencilIcon, PlayIcon, PlusIcon, RefreshCwIcon, ReplyIcon, SearchIcon, SettingsIcon, Trash2Icon, XIcon };
|
|
35
|
+
export { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, CheckIcon, ChevronDownIcon, ChevronRightIcon, CircleAlertIcon, CircleCheckIcon, CircleDotIcon, CircleSlashIcon, EllipsisIcon, GitMergeIcon, GitPullRequestClosedIcon, GitPullRequestDraftIcon, GitPullRequestIcon, InboxIcon, InfoIcon, LoaderCircleIcon, LockOpenIcon, MinusIcon, PanelLeftCloseIcon, PanelLeftOpenIcon, PencilIcon, PlayIcon, PlusIcon, RefreshCwIcon, ReplyIcon, SearchIcon, SettingsIcon, Trash2Icon, XIcon };
|
package/dist/icons/index.mjs
CHANGED
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
import { CheckIcon as e } from "./CheckIcon.mjs";
|
|
2
2
|
import { CircleAlertIcon as t } from "./CircleAlertIcon.mjs";
|
|
3
3
|
import { ChevronDownIcon as n } from "./ChevronDownIcon.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
4
|
+
import { MinusIcon as r } from "./MinusIcon.mjs";
|
|
5
|
+
import { PlusIcon as i } from "./PlusIcon.mjs";
|
|
6
|
+
import { SearchIcon as a } from "./SearchIcon.mjs";
|
|
7
|
+
import { XIcon as o } from "./XIcon.mjs";
|
|
8
|
+
import { PanelLeftCloseIcon as s } from "./PanelLeftCloseIcon.mjs";
|
|
9
|
+
import { PanelLeftOpenIcon as c } from "./PanelLeftOpenIcon.mjs";
|
|
10
|
+
import { ArrowDownIcon as l } from "./ArrowDownIcon.mjs";
|
|
11
|
+
import { ArrowUpIcon as u } from "./ArrowUpIcon.mjs";
|
|
12
|
+
import { CircleCheckIcon as d } from "./CircleCheckIcon.mjs";
|
|
13
|
+
import { InfoIcon as f } from "./InfoIcon.mjs";
|
|
14
|
+
import { ArrowLeftIcon as p } from "./ArrowLeftIcon.mjs";
|
|
15
|
+
import { ArrowRightIcon as m } from "./ArrowRightIcon.mjs";
|
|
16
|
+
import { ChevronRightIcon as h } from "./ChevronRightIcon.mjs";
|
|
17
|
+
import { CircleDotIcon as g } from "./CircleDotIcon.mjs";
|
|
18
|
+
import { CircleSlashIcon as _ } from "./CircleSlashIcon.mjs";
|
|
19
|
+
import { EllipsisIcon as v } from "./EllipsisIcon.mjs";
|
|
20
|
+
import { GitMergeIcon as y } from "./GitMergeIcon.mjs";
|
|
21
|
+
import { GitPullRequestClosedIcon as b } from "./GitPullRequestClosedIcon.mjs";
|
|
22
|
+
import { GitPullRequestDraftIcon as x } from "./GitPullRequestDraftIcon.mjs";
|
|
23
|
+
import { GitPullRequestIcon as S } from "./GitPullRequestIcon.mjs";
|
|
24
|
+
import { InboxIcon as C } from "./InboxIcon.mjs";
|
|
25
|
+
import { LoaderCircleIcon as w } from "./LoaderCircleIcon.mjs";
|
|
26
|
+
import { LockOpenIcon as T } from "./LockOpenIcon.mjs";
|
|
27
|
+
import { PencilIcon as E } from "./PencilIcon.mjs";
|
|
28
|
+
import { PlayIcon as D } from "./PlayIcon.mjs";
|
|
29
|
+
import { RefreshCwIcon as O } from "./RefreshCwIcon.mjs";
|
|
30
|
+
import { ReplyIcon as k } from "./ReplyIcon.mjs";
|
|
31
|
+
import { SettingsIcon as A } from "./SettingsIcon.mjs";
|
|
32
|
+
import { Trash2Icon as j } from "./Trash2Icon.mjs";
|
|
32
33
|
// src/icons/index.ts
|
|
33
|
-
var
|
|
34
|
-
export {
|
|
34
|
+
var M = /* @__PURE__ */ "ArrowDownIcon.ArrowLeftIcon.ArrowRightIcon.ArrowUpIcon.CheckIcon.ChevronDownIcon.ChevronRightIcon.CircleAlertIcon.CircleCheckIcon.CircleDotIcon.CircleSlashIcon.EllipsisIcon.GitMergeIcon.GitPullRequestClosedIcon.GitPullRequestDraftIcon.GitPullRequestIcon.InboxIcon.InfoIcon.LoaderCircleIcon.LockOpenIcon.MinusIcon.PanelLeftCloseIcon.PanelLeftOpenIcon.PencilIcon.PlayIcon.PlusIcon.RefreshCwIcon.ReplyIcon.SearchIcon.SettingsIcon.Trash2Icon.XIcon".split(".");
|
|
35
|
+
export { l as ArrowDownIcon, p as ArrowLeftIcon, m as ArrowRightIcon, u as ArrowUpIcon, e as CheckIcon, n as ChevronDownIcon, h as ChevronRightIcon, t as CircleAlertIcon, d as CircleCheckIcon, g as CircleDotIcon, _ as CircleSlashIcon, v as EllipsisIcon, y as GitMergeIcon, b as GitPullRequestClosedIcon, x as GitPullRequestDraftIcon, S as GitPullRequestIcon, C as InboxIcon, f as InfoIcon, w as LoaderCircleIcon, T as LockOpenIcon, r as MinusIcon, s as PanelLeftCloseIcon, c as PanelLeftOpenIcon, E as PencilIcon, D as PlayIcon, i as PlusIcon, O as RefreshCwIcon, k as ReplyIcon, a as SearchIcon, A as SettingsIcon, j as Trash2Icon, o as XIcon, M as iconNames };
|
package/dist/index.d.mts
CHANGED
|
@@ -24,6 +24,7 @@ import { MenuTriggerProps } from "./Menu/client.mjs";
|
|
|
24
24
|
import { Menu, MenuGroupProps, MenuItemProps, MenuLinkItemProps, MenuPopupProps, MenuProps, MenuSeparatorProps } from "./Menu/index.mjs";
|
|
25
25
|
import { MultiSelect, MultiSelectOption, MultiSelectProps } from "./MultiSelect/index.mjs";
|
|
26
26
|
import { NavList, NavListGroupProps, NavListItemOwnProps, NavListItemProps, NavListProps } from "./NavList/index.mjs";
|
|
27
|
+
import { NumberField, NumberFieldInputProps, NumberFieldProps } from "./NumberField/index.mjs";
|
|
27
28
|
import { RadioGroup, RadioGroupOption, RadioGroupProps } from "./RadioGroup/index.mjs";
|
|
28
29
|
import { Select, SelectOption, SelectProps } from "./Select/index.mjs";
|
|
29
30
|
import { Sidebar, SidebarProps } from "./Sidebar/index.mjs";
|
|
@@ -43,4 +44,4 @@ import { Tooltip, TooltipProps, TooltipProviderProps } from "./Tooltip/index.mjs
|
|
|
43
44
|
import { VisuallyHidden, VisuallyHiddenProps } from "./VisuallyHidden/index.mjs";
|
|
44
45
|
import { Theme, defineTheme } from "./theme/define-theme.mjs";
|
|
45
46
|
import { ThemeProvider, ThemeProviderProps } from "./theme/ThemeProvider.mjs";
|
|
46
|
-
export { AlertDialog, type AlertDialogProps, type AlertDialogTriggerProps, Avatar, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Button, type ButtonProps, Checkbox, type CheckboxProps, Chip, ChipGroup, type ChipGroupProps, type ChipProps, Clickable, type ClickableProps, ColorField, type ColorFieldInputProps, type ColorFieldProps, Combobox, type ComboboxOption, type ComboboxProps, Dialog, type DialogActionsProps, type DialogBodyProps, type DialogCloseProps, type DialogPopupProps, type DialogProps, type DialogTriggerProps, Field, type FieldDescriptionProps, type FieldErrorProps, type FieldLabelProps, type FieldProps, Heading, type HeadingLevel, type HeadingProps, type HeadingSize, Icon, IconButton, type IconButtonProps, type IconProps, Inline, type InlineProps, Menu, type MenuGroupProps, type MenuItemProps, type MenuLinkItemProps, type MenuPopupProps, type MenuProps, type MenuSeparatorProps, type MenuTriggerProps, MultiSelect, type MultiSelectOption, type MultiSelectProps, NavList, type NavListGroupProps, type NavListItemOwnProps, type NavListItemProps, type NavListProps, RadioGroup, type RadioGroupOption, type RadioGroupProps, SearchField, type SearchFieldInputProps, type SearchFieldProps, Select, type SelectOption, type SelectProps, Sidebar, SidebarLayout, type SidebarLayoutMainProps, type SidebarLayoutProps, type SidebarLayoutSidebarProps, type SidebarProps, Stack, type StackProps, type StyleProps, Switch, type SwitchProps, Table, type TableBodyProps, type TableCellProps, type TableColumnGroupProps, type TableColumnProps, type TableFootProps, type TableHeadProps, type TableHeaderCellProps, type TableProps, type TableRowProps, type TableScrollAreaProps, type TableSortDirection, Tabs, type TabsListProps, type TabsPanelProps, type TabsProps, type TabsTabProps, Tag, type TagProps, Text, TextField, type TextFieldInputProps, type TextFieldProps, type TextProps, Textarea, type TextareaInputProps, type TextareaProps, type Theme, ThemeProvider, type ThemeProviderProps, Toast, type ToastOptions, type ToastProviderProps, type ToastVariant, Tooltip, type TooltipPopupProps, type TooltipProps, type TooltipProviderProps, type TooltipTriggerProps, VisuallyHidden, type VisuallyHiddenProps, defineTheme, useToast };
|
|
47
|
+
export { AlertDialog, type AlertDialogProps, type AlertDialogTriggerProps, Avatar, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Button, type ButtonProps, Checkbox, type CheckboxProps, Chip, ChipGroup, type ChipGroupProps, type ChipProps, Clickable, type ClickableProps, ColorField, type ColorFieldInputProps, type ColorFieldProps, Combobox, type ComboboxOption, type ComboboxProps, Dialog, type DialogActionsProps, type DialogBodyProps, type DialogCloseProps, type DialogPopupProps, type DialogProps, type DialogTriggerProps, Field, type FieldDescriptionProps, type FieldErrorProps, type FieldLabelProps, type FieldProps, Heading, type HeadingLevel, type HeadingProps, type HeadingSize, Icon, IconButton, type IconButtonProps, type IconProps, Inline, type InlineProps, Menu, type MenuGroupProps, type MenuItemProps, type MenuLinkItemProps, type MenuPopupProps, type MenuProps, type MenuSeparatorProps, type MenuTriggerProps, MultiSelect, type MultiSelectOption, type MultiSelectProps, NavList, type NavListGroupProps, type NavListItemOwnProps, type NavListItemProps, type NavListProps, NumberField, type NumberFieldInputProps, type NumberFieldProps, RadioGroup, type RadioGroupOption, type RadioGroupProps, SearchField, type SearchFieldInputProps, type SearchFieldProps, Select, type SelectOption, type SelectProps, Sidebar, SidebarLayout, type SidebarLayoutMainProps, type SidebarLayoutProps, type SidebarLayoutSidebarProps, type SidebarProps, Stack, type StackProps, type StyleProps, Switch, type SwitchProps, Table, type TableBodyProps, type TableCellProps, type TableColumnGroupProps, type TableColumnProps, type TableFootProps, type TableHeadProps, type TableHeaderCellProps, type TableProps, type TableRowProps, type TableScrollAreaProps, type TableSortDirection, Tabs, type TabsListProps, type TabsPanelProps, type TabsProps, type TabsTabProps, Tag, type TagProps, Text, TextField, type TextFieldInputProps, type TextFieldProps, type TextProps, Textarea, type TextareaInputProps, type TextareaProps, type Theme, ThemeProvider, type ThemeProviderProps, Toast, type ToastOptions, type ToastProviderProps, type ToastVariant, Tooltip, type TooltipPopupProps, type TooltipProps, type TooltipProviderProps, type TooltipTriggerProps, VisuallyHidden, type VisuallyHiddenProps, defineTheme, useToast };
|
package/dist/index.mjs
CHANGED
|
@@ -18,22 +18,23 @@ import { Inline as _ } from "./Inline/index.mjs";
|
|
|
18
18
|
import { Menu as v } from "./Menu/index.mjs";
|
|
19
19
|
import { MultiSelect as y } from "./MultiSelect/index.mjs";
|
|
20
20
|
import { NavList as b } from "./NavList/index.mjs";
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
|
|
21
|
+
import { NumberField as x } from "./NumberField/index.mjs";
|
|
22
|
+
import { RadioGroup as S } from "./RadioGroup/index.mjs";
|
|
23
|
+
import { SearchField as C } from "./SearchField/index.mjs";
|
|
24
|
+
import { Select as w } from "./Select/index.mjs";
|
|
25
|
+
import { Sidebar as T } from "./Sidebar/index.mjs";
|
|
26
|
+
import { SidebarLayout as E } from "./SidebarLayout/index.mjs";
|
|
27
|
+
import { Stack as D } from "./Stack/index.mjs";
|
|
28
|
+
import { Switch as O } from "./Switch/index.mjs";
|
|
29
|
+
import { VisuallyHidden as k } from "./VisuallyHidden/index.mjs";
|
|
30
|
+
import { Table as A } from "./Table/index.mjs";
|
|
31
|
+
import { Tabs as j } from "./Tabs/index.mjs";
|
|
32
|
+
import { Tag as M } from "./Tag/index.mjs";
|
|
33
|
+
import { Textarea as N } from "./Textarea/index.mjs";
|
|
34
|
+
import { TextField as P } from "./TextField/index.mjs";
|
|
35
|
+
import { defineTheme as F } from "./theme/define-theme.mjs";
|
|
36
|
+
import { ThemeProvider as I } from "./theme/ThemeProvider.mjs";
|
|
37
|
+
import { useToast as L } from "./Toast/client.mjs";
|
|
38
|
+
import { Toast as R } from "./Toast/index.mjs";
|
|
39
|
+
import { Tooltip as z } from "./Tooltip/index.mjs";
|
|
40
|
+
export { o as AlertDialog, s as Avatar, c as Badge, l as Box, r as Button, u as Checkbox, d as Chip, f as ChipGroup, e as Clickable, m as ColorField, h as Combobox, a as Dialog, p as Field, i as Heading, t as Icon, g as IconButton, _ as Inline, v as Menu, y as MultiSelect, b as NavList, x as NumberField, S as RadioGroup, C as SearchField, w as Select, T as Sidebar, E as SidebarLayout, D as Stack, O as Switch, A as Table, j as Tabs, M as Tag, n as Text, P as TextField, N as Textarea, I as ThemeProvider, R as Toast, z as Tooltip, k as VisuallyHidden, F as defineTheme, L as useToast };
|
package/dist/styles/atoms.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.avatar, components.badge, components.button, components.chip, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.menu, components.multiselect, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.nav-list, components.visually-hidden, components.table;
|
|
1
|
+
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.avatar, components.badge, components.button, components.chip, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.menu, components.multiselect, components.number-field, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.nav-list, components.visually-hidden, components.table;
|
|
2
2
|
@layer atoms.base{._1dkxmm00{display:none}._1dkxmm01{display:block}._1dkxmm02{display:inline}._1dkxmm03{display:inline-block}._1dkxmm04{display:flex}._1dkxmm05{display:inline-flex}._1dkxmm06{display:grid}._1dkxmm07{display:contents}._1dkxmm08{flex-direction:row}._1dkxmm09{flex-direction:row-reverse}._1dkxmm0a{flex-direction:column}._1dkxmm0b{flex-direction:column-reverse}._1dkxmm0c{flex-wrap:nowrap}._1dkxmm0d{flex-wrap:wrap}._1dkxmm0e{flex-grow:0}._1dkxmm0f{flex-grow:1}._1dkxmm0g{flex-shrink:0}._1dkxmm0h{flex-shrink:1}._1dkxmm0i{align-items:start}._1dkxmm0j{align-items:center}._1dkxmm0k{align-items:end}._1dkxmm0l{align-items:stretch}._1dkxmm0m{align-items:baseline}._1dkxmm0n{align-self:start}._1dkxmm0o{align-self:center}._1dkxmm0p{align-self:end}._1dkxmm0q{align-self:stretch}._1dkxmm0r{align-self:baseline}._1dkxmm0s{justify-content:start}._1dkxmm0t{justify-content:center}._1dkxmm0u{justify-content:end}._1dkxmm0v{justify-content:space-between}._1dkxmm0w{justify-content:space-around}._1dkxmm0x{justify-content:space-evenly}._1dkxmm0y{gap:var(--space-0)}._1dkxmm0z{gap:var(--space-1)}._1dkxmm010{gap:var(--space-2)}._1dkxmm011{gap:var(--space-4)}._1dkxmm012{gap:var(--space-6)}._1dkxmm013{gap:var(--space-8)}._1dkxmm014{gap:var(--space-12)}._1dkxmm015{gap:var(--space-16)}._1dkxmm016{gap:var(--space-20)}._1dkxmm017{gap:var(--space-24)}._1dkxmm018{gap:var(--space-32)}._1dkxmm019{gap:var(--space-40)}._1dkxmm01a{gap:var(--space-48)}._1dkxmm01b{gap:var(--space-64)}._1dkxmm01c{gap:var(--space-80)}._1dkxmm01d{gap:var(--space-96)}._1dkxmm01e{padding-block-start:var(--space-0)}._1dkxmm01f{padding-block-start:var(--space-1)}._1dkxmm01g{padding-block-start:var(--space-2)}._1dkxmm01h{padding-block-start:var(--space-4)}._1dkxmm01i{padding-block-start:var(--space-6)}._1dkxmm01j{padding-block-start:var(--space-8)}._1dkxmm01k{padding-block-start:var(--space-12)}._1dkxmm01l{padding-block-start:var(--space-16)}._1dkxmm01m{padding-block-start:var(--space-20)}._1dkxmm01n{padding-block-start:var(--space-24)}._1dkxmm01o{padding-block-start:var(--space-32)}._1dkxmm01p{padding-block-start:var(--space-40)}._1dkxmm01q{padding-block-start:var(--space-48)}._1dkxmm01r{padding-block-start:var(--space-64)}._1dkxmm01s{padding-block-start:var(--space-80)}._1dkxmm01t{padding-block-start:var(--space-96)}._1dkxmm01u{padding-block-end:var(--space-0)}._1dkxmm01v{padding-block-end:var(--space-1)}._1dkxmm01w{padding-block-end:var(--space-2)}._1dkxmm01x{padding-block-end:var(--space-4)}._1dkxmm01y{padding-block-end:var(--space-6)}._1dkxmm01z{padding-block-end:var(--space-8)}._1dkxmm020{padding-block-end:var(--space-12)}._1dkxmm021{padding-block-end:var(--space-16)}._1dkxmm022{padding-block-end:var(--space-20)}._1dkxmm023{padding-block-end:var(--space-24)}._1dkxmm024{padding-block-end:var(--space-32)}._1dkxmm025{padding-block-end:var(--space-40)}._1dkxmm026{padding-block-end:var(--space-48)}._1dkxmm027{padding-block-end:var(--space-64)}._1dkxmm028{padding-block-end:var(--space-80)}._1dkxmm029{padding-block-end:var(--space-96)}._1dkxmm02a{padding-inline-start:var(--space-0)}._1dkxmm02b{padding-inline-start:var(--space-1)}._1dkxmm02c{padding-inline-start:var(--space-2)}._1dkxmm02d{padding-inline-start:var(--space-4)}._1dkxmm02e{padding-inline-start:var(--space-6)}._1dkxmm02f{padding-inline-start:var(--space-8)}._1dkxmm02g{padding-inline-start:var(--space-12)}._1dkxmm02h{padding-inline-start:var(--space-16)}._1dkxmm02i{padding-inline-start:var(--space-20)}._1dkxmm02j{padding-inline-start:var(--space-24)}._1dkxmm02k{padding-inline-start:var(--space-32)}._1dkxmm02l{padding-inline-start:var(--space-40)}._1dkxmm02m{padding-inline-start:var(--space-48)}._1dkxmm02n{padding-inline-start:var(--space-64)}._1dkxmm02o{padding-inline-start:var(--space-80)}._1dkxmm02p{padding-inline-start:var(--space-96)}._1dkxmm02q{padding-inline-end:var(--space-0)}._1dkxmm02r{padding-inline-end:var(--space-1)}._1dkxmm02s{padding-inline-end:var(--space-2)}._1dkxmm02t{padding-inline-end:var(--space-4)}._1dkxmm02u{padding-inline-end:var(--space-6)}._1dkxmm02v{padding-inline-end:var(--space-8)}._1dkxmm02w{padding-inline-end:var(--space-12)}._1dkxmm02x{padding-inline-end:var(--space-16)}._1dkxmm02y{padding-inline-end:var(--space-20)}._1dkxmm02z{padding-inline-end:var(--space-24)}._1dkxmm030{padding-inline-end:var(--space-32)}._1dkxmm031{padding-inline-end:var(--space-40)}._1dkxmm032{padding-inline-end:var(--space-48)}._1dkxmm033{padding-inline-end:var(--space-64)}._1dkxmm034{padding-inline-end:var(--space-80)}._1dkxmm035{padding-inline-end:var(--space-96)}._1dkxmm036{margin-block-start:var(--space-0)}._1dkxmm037{margin-block-start:var(--space-1)}._1dkxmm038{margin-block-start:var(--space-2)}._1dkxmm039{margin-block-start:var(--space-4)}._1dkxmm03a{margin-block-start:var(--space-6)}._1dkxmm03b{margin-block-start:var(--space-8)}._1dkxmm03c{margin-block-start:var(--space-12)}._1dkxmm03d{margin-block-start:var(--space-16)}._1dkxmm03e{margin-block-start:var(--space-20)}._1dkxmm03f{margin-block-start:var(--space-24)}._1dkxmm03g{margin-block-start:var(--space-32)}._1dkxmm03h{margin-block-start:var(--space-40)}._1dkxmm03i{margin-block-start:var(--space-48)}._1dkxmm03j{margin-block-start:var(--space-64)}._1dkxmm03k{margin-block-start:var(--space-80)}._1dkxmm03l{margin-block-start:var(--space-96)}._1dkxmm03m{margin-block-start:auto}._1dkxmm03n{margin-block-end:var(--space-0)}._1dkxmm03o{margin-block-end:var(--space-1)}._1dkxmm03p{margin-block-end:var(--space-2)}._1dkxmm03q{margin-block-end:var(--space-4)}._1dkxmm03r{margin-block-end:var(--space-6)}._1dkxmm03s{margin-block-end:var(--space-8)}._1dkxmm03t{margin-block-end:var(--space-12)}._1dkxmm03u{margin-block-end:var(--space-16)}._1dkxmm03v{margin-block-end:var(--space-20)}._1dkxmm03w{margin-block-end:var(--space-24)}._1dkxmm03x{margin-block-end:var(--space-32)}._1dkxmm03y{margin-block-end:var(--space-40)}._1dkxmm03z{margin-block-end:var(--space-48)}._1dkxmm040{margin-block-end:var(--space-64)}._1dkxmm041{margin-block-end:var(--space-80)}._1dkxmm042{margin-block-end:var(--space-96)}._1dkxmm043{margin-block-end:auto}._1dkxmm044{margin-inline-start:var(--space-0)}._1dkxmm045{margin-inline-start:var(--space-1)}._1dkxmm046{margin-inline-start:var(--space-2)}._1dkxmm047{margin-inline-start:var(--space-4)}._1dkxmm048{margin-inline-start:var(--space-6)}._1dkxmm049{margin-inline-start:var(--space-8)}._1dkxmm04a{margin-inline-start:var(--space-12)}._1dkxmm04b{margin-inline-start:var(--space-16)}._1dkxmm04c{margin-inline-start:var(--space-20)}._1dkxmm04d{margin-inline-start:var(--space-24)}._1dkxmm04e{margin-inline-start:var(--space-32)}._1dkxmm04f{margin-inline-start:var(--space-40)}._1dkxmm04g{margin-inline-start:var(--space-48)}._1dkxmm04h{margin-inline-start:var(--space-64)}._1dkxmm04i{margin-inline-start:var(--space-80)}._1dkxmm04j{margin-inline-start:var(--space-96)}._1dkxmm04k{margin-inline-start:auto}._1dkxmm04l{margin-inline-end:var(--space-0)}._1dkxmm04m{margin-inline-end:var(--space-1)}._1dkxmm04n{margin-inline-end:var(--space-2)}._1dkxmm04o{margin-inline-end:var(--space-4)}._1dkxmm04p{margin-inline-end:var(--space-6)}._1dkxmm04q{margin-inline-end:var(--space-8)}._1dkxmm04r{margin-inline-end:var(--space-12)}._1dkxmm04s{margin-inline-end:var(--space-16)}._1dkxmm04t{margin-inline-end:var(--space-20)}._1dkxmm04u{margin-inline-end:var(--space-24)}._1dkxmm04v{margin-inline-end:var(--space-32)}._1dkxmm04w{margin-inline-end:var(--space-40)}._1dkxmm04x{margin-inline-end:var(--space-48)}._1dkxmm04y{margin-inline-end:var(--space-64)}._1dkxmm04z{margin-inline-end:var(--space-80)}._1dkxmm050{margin-inline-end:var(--space-96)}._1dkxmm051{margin-inline-end:auto}._1dkxmm052{inline-size:var(--size-xs)}._1dkxmm053{inline-size:var(--size-sm)}._1dkxmm054{inline-size:var(--size-med)}._1dkxmm055{inline-size:var(--size-lg)}._1dkxmm056{inline-size:var(--size-xl)}._1dkxmm057{inline-size:auto}._1dkxmm058{inline-size:100%}._1dkxmm059{inline-size:fit-content}._1dkxmm05a{inline-size:min-content}._1dkxmm05b{inline-size:max-content}._1dkxmm05c{inline-size:var(--container-sidebar)}._1dkxmm05d{inline-size:var(--container-rail)}._1dkxmm05e{inline-size:var(--container-prose)}._1dkxmm05f{inline-size:var(--container-page)}._1dkxmm05g{inline-size:var(--container-wide)}._1dkxmm05h{block-size:var(--size-xs)}._1dkxmm05i{block-size:var(--size-sm)}._1dkxmm05j{block-size:var(--size-med)}._1dkxmm05k{block-size:var(--size-lg)}._1dkxmm05l{block-size:var(--size-xl)}._1dkxmm05m{block-size:auto}._1dkxmm05n{block-size:100%}._1dkxmm05o{block-size:fit-content}._1dkxmm05p{block-size:min-content}._1dkxmm05q{block-size:max-content}._1dkxmm05r{min-inline-size:var(--size-xs)}._1dkxmm05s{min-inline-size:var(--size-sm)}._1dkxmm05t{min-inline-size:var(--size-med)}._1dkxmm05u{min-inline-size:var(--size-lg)}._1dkxmm05v{min-inline-size:var(--size-xl)}._1dkxmm05w{min-inline-size:auto}._1dkxmm05x{min-inline-size:100%}._1dkxmm05y{min-inline-size:fit-content}._1dkxmm05z{min-inline-size:min-content}._1dkxmm060{min-inline-size:max-content}._1dkxmm061{min-inline-size:var(--container-sidebar)}._1dkxmm062{min-inline-size:var(--container-rail)}._1dkxmm063{min-inline-size:var(--container-prose)}._1dkxmm064{min-inline-size:var(--container-page)}._1dkxmm065{min-inline-size:var(--container-wide)}._1dkxmm066{max-inline-size:var(--size-xs)}._1dkxmm067{max-inline-size:var(--size-sm)}._1dkxmm068{max-inline-size:var(--size-med)}._1dkxmm069{max-inline-size:var(--size-lg)}._1dkxmm06a{max-inline-size:var(--size-xl)}._1dkxmm06b{max-inline-size:auto}._1dkxmm06c{max-inline-size:100%}._1dkxmm06d{max-inline-size:fit-content}._1dkxmm06e{max-inline-size:min-content}._1dkxmm06f{max-inline-size:max-content}._1dkxmm06g{max-inline-size:var(--container-sidebar)}._1dkxmm06h{max-inline-size:var(--container-rail)}._1dkxmm06i{max-inline-size:var(--container-prose)}._1dkxmm06j{max-inline-size:var(--container-page)}._1dkxmm06k{max-inline-size:var(--container-wide)}._1dkxmm06l{min-block-size:var(--size-xs)}._1dkxmm06m{min-block-size:var(--size-sm)}._1dkxmm06n{min-block-size:var(--size-med)}._1dkxmm06o{min-block-size:var(--size-lg)}._1dkxmm06p{min-block-size:var(--size-xl)}._1dkxmm06q{min-block-size:auto}._1dkxmm06r{min-block-size:100%}._1dkxmm06s{min-block-size:fit-content}._1dkxmm06t{min-block-size:min-content}._1dkxmm06u{min-block-size:max-content}._1dkxmm06v{max-block-size:var(--size-xs)}._1dkxmm06w{max-block-size:var(--size-sm)}._1dkxmm06x{max-block-size:var(--size-med)}._1dkxmm06y{max-block-size:var(--size-lg)}._1dkxmm06z{max-block-size:var(--size-xl)}._1dkxmm070{max-block-size:auto}._1dkxmm071{max-block-size:100%}._1dkxmm072{max-block-size:fit-content}._1dkxmm073{max-block-size:min-content}._1dkxmm074{max-block-size:max-content}._1dkxmm0zp{color:var(--color-bg)}._1dkxmm0zq{color:var(--color-bg-muted)}._1dkxmm0zr{color:var(--color-bg-raised)}._1dkxmm0zs{color:var(--color-bg-panel)}._1dkxmm0zt{color:var(--color-fg)}._1dkxmm0zu{color:var(--color-fg-muted)}._1dkxmm0zv{color:var(--color-border)}._1dkxmm0zw{color:var(--color-border-strong)}._1dkxmm0zx{color:var(--color-accent)}._1dkxmm0zy{color:var(--color-accent-fg)}._1dkxmm0zz{color:var(--color-accent-fill-fg)}._1dkxmm0100{color:var(--color-danger)}._1dkxmm0101{color:var(--color-danger-fg)}._1dkxmm0102{color:var(--color-success)}._1dkxmm0103{color:var(--color-success-fg)}._1dkxmm0104{color:var(--color-warning)}._1dkxmm0105{color:var(--color-warning-fg)}._1dkxmm0106{color:var(--color-done)}._1dkxmm0107{color:var(--color-done-fg)}._1dkxmm0108{color:var(--color-neutral-subtle-fg)}._1dkxmm0109{color:var(--color-accent-subtle-fg)}._1dkxmm010a{color:var(--color-success-subtle-fg)}._1dkxmm010b{color:var(--color-warning-subtle-fg)}._1dkxmm010c{color:var(--color-danger-subtle-fg)}._1dkxmm010d{color:var(--color-done-subtle-fg)}._1dkxmm010e{color:var(--color-focus)}._1dkxmm010f{background-color:var(--color-bg)}._1dkxmm010g{background-color:var(--color-bg-muted)}._1dkxmm010h{background-color:var(--color-bg-raised)}._1dkxmm010i{background-color:var(--color-bg-panel)}._1dkxmm010j{background-color:var(--color-fg)}._1dkxmm010k{background-color:var(--color-fg-muted)}._1dkxmm010l{background-color:var(--color-border)}._1dkxmm010m{background-color:var(--color-border-strong)}._1dkxmm010n{background-color:var(--color-hover)}._1dkxmm010o{background-color:var(--color-control-fill)}._1dkxmm010p{background-color:var(--color-selected)}._1dkxmm010q{background-color:var(--color-accent)}._1dkxmm010r{background-color:var(--color-accent-fg)}._1dkxmm010s{background-color:var(--color-accent-fill)}._1dkxmm010t{background-color:var(--color-accent-fill-fg)}._1dkxmm010u{background-color:var(--color-danger)}._1dkxmm010v{background-color:var(--color-danger-fg)}._1dkxmm010w{background-color:var(--color-success)}._1dkxmm010x{background-color:var(--color-success-fg)}._1dkxmm010y{background-color:var(--color-warning)}._1dkxmm010z{background-color:var(--color-warning-fg)}._1dkxmm0110{background-color:var(--color-done)}._1dkxmm0111{background-color:var(--color-done-fg)}._1dkxmm0112{background-color:var(--color-neutral-subtle)}._1dkxmm0113{background-color:var(--color-neutral-subtle-fg)}._1dkxmm0114{background-color:var(--color-accent-subtle)}._1dkxmm0115{background-color:var(--color-accent-subtle-fg)}._1dkxmm0116{background-color:var(--color-success-subtle)}._1dkxmm0117{background-color:var(--color-success-subtle-fg)}._1dkxmm0118{background-color:var(--color-warning-subtle)}._1dkxmm0119{background-color:var(--color-warning-subtle-fg)}._1dkxmm011a{background-color:var(--color-danger-subtle)}._1dkxmm011b{background-color:var(--color-danger-subtle-fg)}._1dkxmm011c{background-color:var(--color-done-subtle)}._1dkxmm011d{background-color:var(--color-done-subtle-fg)}._1dkxmm011e{background-color:var(--color-focus)}._1dkxmm011f{border-radius:var(--radius-none)}._1dkxmm011g{border-radius:var(--radius-sm)}._1dkxmm011h{border-radius:var(--radius-med)}._1dkxmm011i{border-radius:var(--radius-lg)}._1dkxmm011j{border-radius:var(--radius-xl)}._1dkxmm011k{border-radius:var(--radius-full)}._1dkxmm011l{box-shadow:var(--shadow-sm)}._1dkxmm011m{box-shadow:var(--shadow-med)}._1dkxmm011n{box-shadow:var(--shadow-lg)}._1dkxmm011o{position:static}._1dkxmm011p{position:relative}._1dkxmm011q{position:absolute}._1dkxmm011r{position:fixed}._1dkxmm011s{position:sticky}._1dkxmm011t{z-index:var(--z-index-base)}._1dkxmm011u{z-index:var(--z-index-raised)}._1dkxmm011v{z-index:var(--z-index-dropdown)}._1dkxmm011w{z-index:var(--z-index-sticky)}._1dkxmm011x{z-index:var(--z-index-overlay)}._1dkxmm011y{z-index:var(--z-index-modal)}._1dkxmm011z{z-index:var(--z-index-popover)}._1dkxmm0120{z-index:var(--z-index-toast)}._1dkxmm0121{z-index:var(--z-index-tooltip)}._1dkxmm0122{overflow:visible}._1dkxmm0123{overflow:hidden}._1dkxmm0124{overflow:clip}._1dkxmm0125{overflow:auto}._1dkxmm0126{text-align:start}._1dkxmm0127{text-align:center}._1dkxmm0128{text-align:end}}
|
package/dist/styles/layers.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.avatar, components.badge, components.button, components.chip, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.menu, components.multiselect, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.nav-list, components.visually-hidden, components.table;
|
|
1
|
+
@layer tokens, reset, atoms.base, atoms.sm, atoms.med, atoms.lg, atoms.xl, components.box, components.checkbox, components.clickable, components.icon, components.icon-button, components.inline, components.sidebar, components.sidebar-layout, components.stack, components.text, components.avatar, components.badge, components.button, components.chip, components.field, components.color-field, components.combobox, components.heading, components.dialog, components.alert-dialog, components.menu, components.multiselect, components.number-field, components.radio-group, components.search-field, components.select, components.switch, components.tabs, components.tag, components.text-field, components.textarea, components.toast, components.tooltip, components.nav-list, components.visually-hidden, components.table;
|
|
2
2
|
@layer tokens,reset,atoms,components,atoms.base,atoms.sm,atoms.med,atoms.lg,atoms.xl;
|