jenosize-ui 0.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.
Files changed (182) hide show
  1. package/LICENSE +28 -0
  2. package/README.md +100 -0
  3. package/THIRD-PARTY-NOTICES.md +163 -0
  4. package/dist/Button-Bt7pzM4R.d.ts +82 -0
  5. package/dist/PaymentInput-CKPIPNWH.d.ts +141 -0
  6. package/dist/Select-CVbEQ2Ep.d.ts +118 -0
  7. package/dist/TagInput-CTJYOB4J.d.ts +90 -0
  8. package/dist/avatar.d.ts +161 -0
  9. package/dist/avatar.js +11 -0
  10. package/dist/badge.d.ts +109 -0
  11. package/dist/badge.js +10 -0
  12. package/dist/breadcrumb.d.ts +58 -0
  13. package/dist/breadcrumb.js +7 -0
  14. package/dist/button.d.ts +54 -0
  15. package/dist/button.js +14 -0
  16. package/dist/calendar.d.ts +368 -0
  17. package/dist/calendar.js +21 -0
  18. package/dist/callout.d.ts +70 -0
  19. package/dist/callout.js +16 -0
  20. package/dist/card-nWicloNi.d.ts +80 -0
  21. package/dist/card.d.ts +2 -0
  22. package/dist/card.js +7 -0
  23. package/dist/checkbox.d.ts +133 -0
  24. package/dist/checkbox.js +11 -0
  25. package/dist/chunk-24TO7E32.js +42 -0
  26. package/dist/chunk-3Y5X7B5C.js +146 -0
  27. package/dist/chunk-4OLULPQG.js +202 -0
  28. package/dist/chunk-4P2NBLBW.js +103 -0
  29. package/dist/chunk-52IFGFTL.js +11 -0
  30. package/dist/chunk-5FATN5YD.js +115 -0
  31. package/dist/chunk-5NOBSXJN.js +297 -0
  32. package/dist/chunk-5RAPA22E.js +106 -0
  33. package/dist/chunk-7EUAMHMU.js +16 -0
  34. package/dist/chunk-7EWQKTNQ.js +1336 -0
  35. package/dist/chunk-7HOIZ3UO.js +110 -0
  36. package/dist/chunk-7IU5TMFL.js +452 -0
  37. package/dist/chunk-7JBNLEJ7.js +29 -0
  38. package/dist/chunk-7S2TBALK.js +23 -0
  39. package/dist/chunk-BJUZVYQC.js +188 -0
  40. package/dist/chunk-BVJWBYIG.js +66 -0
  41. package/dist/chunk-CME4DIML.js +65 -0
  42. package/dist/chunk-CYPPEUX5.js +73 -0
  43. package/dist/chunk-D5BTFSL7.js +71 -0
  44. package/dist/chunk-D6TPWNRK.js +387 -0
  45. package/dist/chunk-DJSXIAFH.js +66 -0
  46. package/dist/chunk-DRZCJCBO.js +46 -0
  47. package/dist/chunk-DWKILXHE.js +17 -0
  48. package/dist/chunk-E7ZSWBAK.js +70 -0
  49. package/dist/chunk-EDSK6FEH.js +8 -0
  50. package/dist/chunk-F2K7VJUV.js +114 -0
  51. package/dist/chunk-F6NLE6XJ.js +40 -0
  52. package/dist/chunk-FHHAPGCR.js +32 -0
  53. package/dist/chunk-FXIBGTS5.js +14 -0
  54. package/dist/chunk-GCVA3OIV.js +72 -0
  55. package/dist/chunk-GFOAJVW5.js +336 -0
  56. package/dist/chunk-GRLSUQQE.js +136 -0
  57. package/dist/chunk-GTHJWR3Q.js +77 -0
  58. package/dist/chunk-HMUZE6EK.js +67 -0
  59. package/dist/chunk-I7WU4GTY.js +503 -0
  60. package/dist/chunk-J2BCKBHC.js +151 -0
  61. package/dist/chunk-J36M3KRX.js +1315 -0
  62. package/dist/chunk-J7ZQQFPT.js +113 -0
  63. package/dist/chunk-JP26LPCY.js +234 -0
  64. package/dist/chunk-JTNFJLIY.js +1046 -0
  65. package/dist/chunk-JVJRHBTD.js +50 -0
  66. package/dist/chunk-JYGR44ZC.js +133 -0
  67. package/dist/chunk-KDLPXXD2.js +173 -0
  68. package/dist/chunk-KMSYEE23.js +224 -0
  69. package/dist/chunk-KNYKWUYX.js +52 -0
  70. package/dist/chunk-LME57Z6J.js +138 -0
  71. package/dist/chunk-MFJP5FA7.js +20 -0
  72. package/dist/chunk-MKC5HNA7.js +1692 -0
  73. package/dist/chunk-MQGD2OUF.js +39 -0
  74. package/dist/chunk-MUFHLP4S.js +566 -0
  75. package/dist/chunk-O2LG3PNI.js +74 -0
  76. package/dist/chunk-O4GRKO3I.js +66 -0
  77. package/dist/chunk-OHUFNYGN.js +791 -0
  78. package/dist/chunk-PWKWNDBS.js +243 -0
  79. package/dist/chunk-QA74ITR4.js +103 -0
  80. package/dist/chunk-R6RGJF4L.js +170 -0
  81. package/dist/chunk-S7NNXWIN.js +7 -0
  82. package/dist/chunk-SV56BSUQ.js +162 -0
  83. package/dist/chunk-T7FCG7XV.js +435 -0
  84. package/dist/chunk-THC2ISYP.js +57 -0
  85. package/dist/chunk-VWC72TR3.js +115 -0
  86. package/dist/chunk-W46K56XU.js +216 -0
  87. package/dist/chunk-W5GGOUUI.js +75 -0
  88. package/dist/chunk-WEUJYDCV.js +269 -0
  89. package/dist/chunk-WFY7DKQD.js +279 -0
  90. package/dist/chunk-WZQFC7ZN.js +448 -0
  91. package/dist/chunk-Z3ETJN5G.js +136 -0
  92. package/dist/chunk-ZOOX3TUB.js +192 -0
  93. package/dist/chunk-ZSNJ6UA3.js +42 -0
  94. package/dist/chunk-ZZA2LUTL.js +130 -0
  95. package/dist/chunk-ZZT2E5VT.js +24 -0
  96. package/dist/color-CtSxc1Rh.d.ts +6 -0
  97. package/dist/combobox.d.ts +184 -0
  98. package/dist/combobox.js +21 -0
  99. package/dist/date-input.d.ts +83 -0
  100. package/dist/date-input.js +16 -0
  101. package/dist/date-picker.d.ts +249 -0
  102. package/dist/date-picker.js +29 -0
  103. package/dist/date-utils-7hTFTXNK.d.ts +34 -0
  104. package/dist/date-vMJBKAFK.d.ts +22 -0
  105. package/dist/dialog.d.ts +86 -0
  106. package/dist/dialog.js +15 -0
  107. package/dist/drawer.d.ts +77 -0
  108. package/dist/drawer.js +14 -0
  109. package/dist/dropdown-menu.d.ts +218 -0
  110. package/dist/dropdown-menu.js +10 -0
  111. package/dist/file-trigger.d.ts +42 -0
  112. package/dist/file-trigger.js +3 -0
  113. package/dist/form.d.ts +487 -0
  114. package/dist/form.js +1179 -0
  115. package/dist/header-navigation.d.ts +74 -0
  116. package/dist/header-navigation.js +23 -0
  117. package/dist/icons/app.d.ts +48 -0
  118. package/dist/icons/app.js +282 -0
  119. package/dist/icons/flag.d.ts +817 -0
  120. package/dist/icons/flag.js +58336 -0
  121. package/dist/icons/integration.d.ts +36 -0
  122. package/dist/icons/integration.js +531 -0
  123. package/dist/icons/payment.d.ts +116 -0
  124. package/dist/icons/payment.js +2418 -0
  125. package/dist/icons.d.ts +2013 -0
  126. package/dist/icons.js +2012 -0
  127. package/dist/illustration.d.ts +48 -0
  128. package/dist/illustration.js +4 -0
  129. package/dist/index.d.ts +68 -0
  130. package/dist/index.js +73 -0
  131. package/dist/indicator.d.ts +51 -0
  132. package/dist/indicator.js +7 -0
  133. package/dist/input.d.ts +66 -0
  134. package/dist/input.js +15 -0
  135. package/dist/multi-value-CJb_tnvi.d.ts +8 -0
  136. package/dist/nav-Bla0o_-1.d.ts +98 -0
  137. package/dist/number-input.d.ts +80 -0
  138. package/dist/number-input.js +15 -0
  139. package/dist/options-CPEIgjtd.d.ts +68 -0
  140. package/dist/overflow-Df0h42Oi.d.ts +29 -0
  141. package/dist/pagination.d.ts +77 -0
  142. package/dist/pagination.js +17 -0
  143. package/dist/payment-input.d.ts +7 -0
  144. package/dist/payment-input.js +15 -0
  145. package/dist/popover.d.ts +60 -0
  146. package/dist/popover.js +14 -0
  147. package/dist/progress.d.ts +87 -0
  148. package/dist/progress.js +5 -0
  149. package/dist/radio.d.ts +77 -0
  150. package/dist/radio.js +12 -0
  151. package/dist/select.d.ts +68 -0
  152. package/dist/select.js +24 -0
  153. package/dist/shared-BNXAdgh2.d.ts +9 -0
  154. package/dist/shared-BYXJPnsN.d.ts +11 -0
  155. package/dist/shared-Dc-GgA16.d.ts +42 -0
  156. package/dist/sidebar-navigation.d.ts +129 -0
  157. package/dist/sidebar-navigation.js +15 -0
  158. package/dist/styles.css +2 -0
  159. package/dist/switch.d.ts +23 -0
  160. package/dist/switch.js +7 -0
  161. package/dist/table.d.ts +692 -0
  162. package/dist/table.js +44 -0
  163. package/dist/tabs.d.ts +111 -0
  164. package/dist/tabs.js +8 -0
  165. package/dist/tag-input.d.ts +12 -0
  166. package/dist/tag-input.js +19 -0
  167. package/dist/tag.d.ts +98 -0
  168. package/dist/tag.js +9 -0
  169. package/dist/textarea.d.ts +40 -0
  170. package/dist/textarea.js +12 -0
  171. package/dist/theme-script.d.ts +29 -0
  172. package/dist/theme-script.js +15 -0
  173. package/dist/theme.css +929 -0
  174. package/dist/theme.d.ts +71 -0
  175. package/dist/theme.js +15 -0
  176. package/dist/toast.d.ts +242 -0
  177. package/dist/toast.js +15 -0
  178. package/dist/tooltip.d.ts +70 -0
  179. package/dist/tooltip.js +6 -0
  180. package/dist/tree.d.ts +308 -0
  181. package/dist/tree.js +11 -0
  182. package/package.json +352 -0
@@ -0,0 +1,48 @@
1
+ import * as React from 'react';
2
+
3
+ /**
4
+ * A line-art illustration — the large, wordless visual at the top of a state block.
5
+ *
6
+ * It is the heavier alternative to a glyph: a `Callout`'s icon says "this region is empty", an
7
+ * illustration says it at page scale. Reach for it on a first-run screen, a 404 body, or a
8
+ * whole-page empty state; keep the icon inside a card or a table body, where artwork would
9
+ * out-shout the surrounding UI.
10
+ *
11
+ * **Four drawings, and deliberately only four.** They are re-expressed from Untitled UI's MIT
12
+ * illustration set — geometry 1:1, paint re-tokenized onto our ramp — because an illustration is
13
+ * authored artwork, not something a caller can spell. Each is drawn three times over, once per
14
+ * size, exactly as the source does: `sm` is not `lg` scaled down, it is a simpler picture.
15
+ *
16
+ * **One palette, and no tone axis.** The drawing is always the reference gray, as the source is.
17
+ * A coloured variant shipped here briefly and was reverted: a drawing is not a status signal — the
18
+ * tone belongs to the copy and the actions beside it, and a red cloud says the same thing twice.
19
+ * That is also why `Callout` excludes `tone` from its illustration branch (AGENTS §4: a prop with
20
+ * nothing to do should not be spellable).
21
+ *
22
+ * **It is decoration and announces nothing.** The heading beside it carries the message, so the
23
+ * root is always `aria-hidden` and there is no `alt`/`label` prop — the same rule as a component's
24
+ * own fixed glyph (AGENTS §4).
25
+ */
26
+ type IllustrationType = "box" | "cloud" | "credit-card" | "documents";
27
+ /** Canonical order — playground reference grids + docs iterate this. */
28
+ declare const ILLUSTRATION_TYPES: readonly ["box", "cloud", "credit-card", "documents"];
29
+ type IllustrationSize = "sm" | "md" | "lg";
30
+ interface IllustrationProps {
31
+ /** Which drawing. */
32
+ type: IllustrationType;
33
+ /**
34
+ * The drawing's own box. Each step is separately drawn, not scaled.
35
+ * (Untitled UI defaults theirs to `lg`; ours is `md`, because the default size is always called
36
+ * `md` across this library — AGENTS §4.)
37
+ * @default "md"
38
+ */
39
+ size?: IllustrationSize;
40
+ /** Layout/spacing only, merged via `cn()`. Never restyles internals. */
41
+ className?: string;
42
+ }
43
+ declare function Illustration({ type, size, className }: IllustrationProps): React.JSX.Element;
44
+ declare namespace Illustration {
45
+ var displayName: string;
46
+ }
47
+
48
+ export { ILLUSTRATION_TYPES, Illustration, type IllustrationProps, type IllustrationSize, type IllustrationType };
@@ -0,0 +1,4 @@
1
+ "use client";/*! Includes artwork from Untitled UI React — MIT, Copyright (c) 2025 Untitled UI. Full licence text in THIRD-PARTY-NOTICES.md, distributed with this package. */export { ILLUSTRATION_TYPES, Illustration } from './chunk-OHUFNYGN.js';
2
+ import './chunk-ZSNJ6UA3.js';
3
+ //# sourceMappingURL=illustration.js.map
4
+ //# sourceMappingURL=illustration.js.map
@@ -0,0 +1,68 @@
1
+ import { ClassValue } from 'clsx';
2
+ export { b as Option, c as OptionGroup, d as OptionOrGroup, i as isOptionGroup } from './options-CPEIgjtd.js';
3
+ export { a as SEMANTIC_COLORS, S as SemanticColor, i as isSemanticColor } from './color-CtSxc1Rh.js';
4
+ export { O as OverflowMode } from './overflow-Df0h42Oi.js';
5
+ export { C as Card, a as CardPadding, b as CardProps, c as CardVariant, S as SURFACE_PADDINGS, d as SURFACE_VARIANTS, e as SurfacePadding, f as SurfaceVariant } from './card-nWicloNi.js';
6
+ export { B as Button, a as ButtonProps, b as ButtonSize, c as ButtonVariant } from './Button-Bt7pzM4R.js';
7
+ export { Input, InputAddon, InputAddonProps, InputProps, InputSize } from './input.js';
8
+ export { NumberInput, NumberInputOnValueChange, NumberInputProps, NumberInputSize, NumberInputVariant } from './number-input.js';
9
+ export { Textarea, TextareaProps, TextareaResize, TextareaSize } from './textarea.js';
10
+ export { S as Select, a as SelectAction, b as SelectDisplay, c as SelectIndicator, d as SelectIndicatorAlign, e as SelectOption, f as SelectProps, g as SelectRootProps, h as SelectSize } from './Select-CVbEQ2Ep.js';
11
+ export { Combobox, ComboboxChip, ComboboxDisplay, ComboboxIndicator, ComboboxIndicatorAlign, ComboboxOption, ComboboxProps, ComboboxRootProps, ComboboxSize } from './combobox.js';
12
+ export { Checkbox, CheckboxGroup, CheckboxGroupOption, CheckboxGroupOrientation, CheckboxGroupProps, CheckboxProps, CheckboxSize } from './checkbox.js';
13
+ export { RadioGroup, RadioGroupOrientation, RadioGroupProps, RadioGroupSize, RadioOption } from './radio.js';
14
+ export { Switch, SwitchProps, SwitchSize } from './switch.js';
15
+ export { FileTrigger, FileTriggerProps, FileTriggerState } from './file-trigger.js';
16
+ export { C as CardNumberEdit, a as CardType, D as DEFAULT_MAX_DIGITS, P as PaymentInput, b as PaymentInputChangeMeta, c as PaymentInputProps, d as PaymentInputSize, e as applyCardNumberEdit, f as detectCardType, g as formatCardNumber, h as hasChecksumError, i as isCompleteCardNumber, j as isLengthSettled, l as luhnValid, o as onlyDigits } from './PaymentInput-CKPIPNWH.js';
17
+ export { DateInput, DateInputProps, DateInputSize } from './date-input.js';
18
+ export { T as TagInput, a as TagInputProps, b as TagInputSeparator, c as TagInputSize } from './TagInput-CTJYOB4J.js';
19
+ export { TagInputOuter, TagInputOuterProps } from './tag-input.js';
20
+ export { Breadcrumb, BreadcrumbDivider, BreadcrumbItem, BreadcrumbProps, BreadcrumbVariant } from './breadcrumb.js';
21
+ export { AlertDialog, AlertDialogProps, Dialog, DialogProps } from './dialog.js';
22
+ export { Popover, PopoverProps } from './popover.js';
23
+ export { Drawer, DrawerContainer, DrawerFooter, DrawerProps, DrawerSide, DrawerSize } from './drawer.js';
24
+ export { DropdownMenu, DropdownMenuActionItem, DropdownMenuAlign, DropdownMenuCheckboxItem, DropdownMenuGroupItem, DropdownMenuItem, DropdownMenuItemVariant, DropdownMenuProps, DropdownMenuRadioItem, DropdownMenuSelectionIndicator, DropdownMenuSeparatorItem, DropdownMenuSide, DropdownMenuSize, DropdownMenuSubmenuItem } from './dropdown-menu.js';
25
+ export { Tooltip, TooltipAlign, TooltipProps, TooltipProviderProps, TooltipSide, TooltipSize } from './tooltip.js';
26
+ export { TabItem, Tabs, TabsOrientation, TabsProps, TabsSize, TabsVariant } from './tabs.js';
27
+ export { SidebarBreakpoint, SidebarContextValue, SidebarNavigation, SidebarNavigationAccent, SidebarNavigationGuide, SidebarNavigationProps, SidebarProvider, SidebarProviderProps, SidebarTrigger, SidebarTriggerProps, useSidebar } from './sidebar-navigation.js';
28
+ export { HeaderNavigation, HeaderNavigationAlign, HeaderNavigationMobile, HeaderNavigationProps, HeaderNavigationSecondary } from './header-navigation.js';
29
+ export { Tag, TagGroup, TagGroupProps, TagOption, TagProps, TagSize } from './tag.js';
30
+ export { Badge, BadgeColor, BadgeGroup, BadgeGroupAlign, BadgeGroupColor, BadgeGroupProps, BadgeGroupSize, BadgeProps, BadgeShape, BadgeSize, BadgeVariant } from './badge.js';
31
+ export { Indicator, IndicatorColor, IndicatorProps, IndicatorShape, IndicatorSize, IndicatorTone } from './indicator.js';
32
+ export { Avatar, AvatarAddButton, AvatarAddButtonProps, AvatarAddButtonSize, AvatarGroup, AvatarGroupProps, AvatarLabelGroup, AvatarLabelGroupProps, AvatarLabelGroupSize, AvatarProfilePhoto, AvatarProfilePhotoProps, AvatarProfilePhotoSize, AvatarProps, AvatarShape, AvatarSize, AvatarStatus } from './avatar.js';
33
+ export { Progress, ProgressProps, ProgressSize, ProgressValuePosition } from './progress.js';
34
+ export { LinkRel, ToastActionConfig, ToastFacade, ToastOptions, ToastPosition, ToastProvider, ToastProviderProps, ToastType, ToastUpdateOptions, toast } from './toast.js';
35
+ export { ActiveFilter, BulkAction, CardPriority, ColumnAlign, ColumnFilter, ColumnPin, DateRangeFilter, ExpansionResolver, FacetFilter, FilterValue, NumberFilter, RowAction, RowActions, RowExpansion, RowMenuItem, SelectionState, SortDirection, Table, TableColumn, TableColumnGroup, TableColumns, TableFilters, TablePaginateOptions, TablePaginationOptions, TableProps, TableResponsive, TableRowClick, TableRowHover, TableSize, TableSort, TableToolbar, TableTreatment, TextFilter, UseTableOptions, UseTableResult, expansionChildren, expansionDetail, flattenColumns, hasColumnGroups, isColumnGroup, useTable } from './table.js';
36
+ export { Tree, TreeCheckedState, TreeDragHandle, TreeGuide, TreeMove, TreeMovePosition, TreeNode, TreeNodeState, TreeProps, TreeReorderOptions, TreeSelectionMode, TreeSize, TreeSlot, TreeToggleOptions, UseTreeOptions, UseTreeResult, VisibleTreeNode, ancestorIds, applyTreeMove, attachChildren, isBranch, isDescendant, useTree, walkTree } from './tree.js';
37
+ export { Calendar, CalendarConfig, CalendarDay, CalendarEvent, CalendarLayout, CalendarProps, CalendarSize, CalendarView, SlotDuration, UseCalendarOptions, UseCalendarResult, WireDates, isWireDate, parseEvent, serializeEvent, useCalendar } from './calendar.js';
38
+ export { DATE_PRESETS, DateCalendar, DateCalendarProps, DateCalendarSize, DateCommit, DateCommonProps, DatePicker, DatePickerProps, DatePreset, DateRangeCalendar, DateRangeCalendarProps, DateRangePicker, DateRangePickerProps, DateRangeValue, resolvePreset } from './date-picker.js';
39
+ export { Pagination, PaginationAlign, PaginationColor, PaginationProps, PaginationVariant, pageWindow } from './pagination.js';
40
+ export { Callout, CalloutAction, CalloutProps, CalloutSize, CalloutVisual } from './callout.js';
41
+ export { ILLUSTRATION_TYPES, Illustration, IllustrationProps, IllustrationSize, IllustrationType } from './illustration.js';
42
+ export { ResolvedTheme, Theme, ThemeContextValue, ThemeProvider, ThemeProviderProps, ThemeScript, ThemeScriptOptions, ThemeScriptProps, ThemeToggle, ThemeToggleProps, buildThemeScript, useTheme } from './theme.js';
43
+ export { ButtonUtility, ButtonUtilityProps, ButtonUtilitySize, ButtonUtilityVariant, CloseButton, CloseButtonProps, CloseButtonSize, CloseButtonTheme } from './button.js';
44
+ export { CARD_ICON } from './payment-input.js';
45
+ export { D as DateOrder, E as Era, H as HourCycle, P as ParsedFormat } from './date-utils-7hTFTXNK.js';
46
+ export { D as DialogFooter, a as DialogSize } from './shared-BNXAdgh2.js';
47
+ export { NativeSelect, NativeSelectOption, NativeSelectProps, NativeSelectSize } from './select.js';
48
+ export { N as NavActionReveal, a as NavGroup, b as NavItem, c as NavLink, d as NavMatch, e as NavRowAction, f as NavSeparator, g as NavSeparatorVariant } from './nav-Bla0o_-1.js';
49
+ export { P as PopoverAlign, a as PopoverFooter, b as PopoverSide, c as PopoverSize } from './shared-BYXJPnsN.js';
50
+ export { W as WeekStart } from './date-vMJBKAFK.js';
51
+ import 'react';
52
+ import '@base-ui/react/use-render';
53
+ import '@base-ui/react/number-field';
54
+ import '@base-ui/react/select';
55
+ import './multi-value-CJb_tnvi.js';
56
+ import '@base-ui/react/combobox';
57
+ import '@base-ui/react/switch';
58
+ import '@base-ui/react/tooltip';
59
+ import 'date-fns';
60
+
61
+ /**
62
+ * Merge class strings: `clsx` resolves conditionals, `tailwind-merge` de-dupes
63
+ * conflicting Tailwind utilities (last wins). The single allowed escape hatch for
64
+ * layout/spacing overrides on jenosize-ui components.
65
+ */
66
+ declare function cn(...inputs: ClassValue[]): string;
67
+
68
+ export { cn };
package/dist/index.js ADDED
@@ -0,0 +1,73 @@
1
+ "use client";export { Tree, ancestorIds, applyTreeMove, attachChildren, isBranch, isDescendant, useTree, walkTree } from './chunk-7EWQKTNQ.js';
2
+ export { Calendar, isWireDate, parseEvent, serializeEvent, useCalendar } from './chunk-J36M3KRX.js';
3
+ import './chunk-KMSYEE23.js';
4
+ export { DATE_PRESETS, DateCalendar, DatePicker, DateRangeCalendar, DateRangePicker, resolvePreset } from './chunk-JTNFJLIY.js';
5
+ import './chunk-5RAPA22E.js';
6
+ export { Card } from './chunk-DRZCJCBO.js';
7
+ export { Avatar, AvatarAddButton, AvatarGroup, AvatarLabelGroup, AvatarProfilePhoto } from './chunk-WZQFC7ZN.js';
8
+ export { Indicator } from './chunk-5FATN5YD.js';
9
+ export { Progress } from './chunk-D5BTFSL7.js';
10
+ export { ToastProvider, toast } from './chunk-I7WU4GTY.js';
11
+ export { Table, expansionChildren, expansionDetail, flattenColumns, hasColumnGroups, isColumnGroup, useTable } from './chunk-MKC5HNA7.js';
12
+ export { Pagination, pageWindow } from './chunk-WFY7DKQD.js';
13
+ export { Callout } from './chunk-BVJWBYIG.js';
14
+ export { ILLUSTRATION_TYPES, Illustration } from './chunk-OHUFNYGN.js';
15
+ export { Badge, BadgeGroup } from './chunk-PWKWNDBS.js';
16
+ export { Breadcrumb } from './chunk-F2K7VJUV.js';
17
+ export { Dialog } from './chunk-E7ZSWBAK.js';
18
+ export { AlertDialog } from './chunk-THC2ISYP.js';
19
+ export { Popover } from './chunk-3Y5X7B5C.js';
20
+ export { HeaderNavigation } from './chunk-BJUZVYQC.js';
21
+ export { Tabs } from './chunk-4OLULPQG.js';
22
+ export { Drawer } from './chunk-Z3ETJN5G.js';
23
+ import './chunk-CYPPEUX5.js';
24
+ import './chunk-J7ZQQFPT.js';
25
+ export { SidebarNavigation, SidebarProvider, SidebarTrigger, useSidebar } from './chunk-7IU5TMFL.js';
26
+ import './chunk-FXIBGTS5.js';
27
+ export { DropdownMenu } from './chunk-JP26LPCY.js';
28
+ export { TagInputOuter } from './chunk-VWC72TR3.js';
29
+ export { Combobox } from './chunk-MUFHLP4S.js';
30
+ import './chunk-F6NLE6XJ.js';
31
+ export { Checkbox, CheckboxGroup } from './chunk-ZOOX3TUB.js';
32
+ export { RadioGroup } from './chunk-SV56BSUQ.js';
33
+ export { Switch } from './chunk-HMUZE6EK.js';
34
+ import './chunk-GTHJWR3Q.js';
35
+ export { SURFACE_PADDINGS, SURFACE_VARIANTS } from './chunk-MFJP5FA7.js';
36
+ export { FileTrigger } from './chunk-DJSXIAFH.js';
37
+ export { CARD_ICON, DEFAULT_MAX_DIGITS, PaymentInput, applyCardNumberEdit, detectCardType, formatCardNumber, hasChecksumError, isCompleteCardNumber, isLengthSettled, luhnValid, onlyDigits } from './chunk-D6TPWNRK.js';
38
+ export { DateInput } from './chunk-5NOBSXJN.js';
39
+ import './chunk-GFOAJVW5.js';
40
+ export { TagInput } from './chunk-WEUJYDCV.js';
41
+ export { ThemeProvider, ThemeScript, ThemeToggle, buildThemeScript, useTheme } from './chunk-GRLSUQQE.js';
42
+ export { Button } from './chunk-W46K56XU.js';
43
+ export { SEMANTIC_COLORS, isSemanticColor } from './chunk-CME4DIML.js';
44
+ export { CloseButton } from './chunk-MQGD2OUF.js';
45
+ export { ButtonUtility } from './chunk-JVJRHBTD.js';
46
+ export { Input, InputAddon } from './chunk-7HOIZ3UO.js';
47
+ export { NumberInput } from './chunk-JYGR44ZC.js';
48
+ export { Textarea } from './chunk-KDLPXXD2.js';
49
+ import './chunk-7EUAMHMU.js';
50
+ export { Select } from './chunk-T7FCG7XV.js';
51
+ import './chunk-7S2TBALK.js';
52
+ export { NativeSelect } from './chunk-LME57Z6J.js';
53
+ import './chunk-S7NNXWIN.js';
54
+ import './chunk-ZZT2E5VT.js';
55
+ import './chunk-FHHAPGCR.js';
56
+ export { isOptionGroup } from './chunk-7JBNLEJ7.js';
57
+ export { Tag, TagGroup } from './chunk-R6RGJF4L.js';
58
+ import './chunk-W5GGOUUI.js';
59
+ import './chunk-4P2NBLBW.js';
60
+ import './chunk-DWKILXHE.js';
61
+ import './chunk-QA74ITR4.js';
62
+ import './chunk-KNYKWUYX.js';
63
+ import './chunk-52IFGFTL.js';
64
+ import './chunk-O2LG3PNI.js';
65
+ import './chunk-EDSK6FEH.js';
66
+ import './chunk-J2BCKBHC.js';
67
+ import './chunk-24TO7E32.js';
68
+ export { TooltipExport as Tooltip } from './chunk-ZZA2LUTL.js';
69
+ import './chunk-O4GRKO3I.js';
70
+ import './chunk-GCVA3OIV.js';
71
+ export { cn } from './chunk-ZSNJ6UA3.js';
72
+ //# sourceMappingURL=index.js.map
73
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,51 @@
1
+ import * as React from 'react';
2
+ import { S as SemanticColor } from './color-CtSxc1Rh.js';
3
+
4
+ /** The marker fill tone — the library's shared 6-tone `color` axis. */
5
+ type IndicatorColor = SemanticColor;
6
+ /** @deprecated legacy alias of {@link IndicatorColor} — the prop is now `color`. */
7
+ type IndicatorTone = SemanticColor;
8
+ type IndicatorShape = "round" | "scalloped";
9
+ type IndicatorSize = "sm" | "md" | "lg";
10
+ interface IndicatorProps {
11
+ /** Numeric micro-badge; single digit is a circle, more grow into a pill. Wins over `icon`. */
12
+ count?: number;
13
+ /** Cap for `count` — renders `${max}+` beyond it (e.g. `max={9}` → "9+"). */
14
+ max?: number;
15
+ /** A glyph rendered on the color fill (contrast-tinted, size-normalized). With no `count`/`icon` a plain dot renders. */
16
+ icon?: React.ReactNode;
17
+ /** Edge shape of the marker. `scalloped` is Untitled UI's seal outline (the "verified" look). @default "round" */
18
+ shape?: IndicatorShape;
19
+ /** Marker fill tone — applies to dot, count, AND icon/scalloped. @default per content (dot→neutral, count→error, icon→brand) */
20
+ color?: SemanticColor;
21
+ /** Marker scale. A host may override the exact box via `className`. @default "md" */
22
+ size?: IndicatorSize;
23
+ /** Skeuomorphic gloss + reflection on a `dot` (Untitled UI presence treatment). @default false */
24
+ raised?: boolean;
25
+ /** A pulsing "live / active now" ring behind a `dot`. @default false */
26
+ pulse?: boolean;
27
+ /** Contrast cutout ring, so the marker reads on a busy surface (a photo). @default false */
28
+ bordered?: boolean;
29
+ /**
30
+ * Drop the dot's OWN color and size so it takes the HOST's instead — for a dot that sits inside
31
+ * another control's `leading`/`trailing` slot (a `<Badge>`'s status dot, a row's presence dot). The
32
+ * host already tints its slot per color/variant/state, so the dot follows by plain CSS inheritance:
33
+ * `color` is ignored and the fill becomes the inherited text color at full strength.
34
+ *
35
+ * **Dot content only** — a `count` or an `icon` needs a fill it can print white on, which is
36
+ * exactly what inheriting an arbitrary host color cannot promise, so `seamless` is ignored on both.
37
+ * The size is a flat 6px at every `size` (see `SEAMLESS_DOT`): the badge dot this replaces was a
38
+ * constant 5.5px at every badge size. @default false
39
+ */
40
+ seamless?: boolean;
41
+ /** Accessible name. Omit → the marker is decorative (aria-hidden). */
42
+ label?: string;
43
+ /** Layout/spacing only (corner position + exact box size when hosted), merged via `cn()`. */
44
+ className?: string;
45
+ }
46
+ declare function Indicator(props: IndicatorProps): React.JSX.Element;
47
+ declare namespace Indicator {
48
+ var displayName: string;
49
+ }
50
+
51
+ export { Indicator, type IndicatorColor, type IndicatorProps, type IndicatorShape, type IndicatorSize, type IndicatorTone };
@@ -0,0 +1,7 @@
1
+ "use client";export { Indicator } from './chunk-5FATN5YD.js';
2
+ import './chunk-CME4DIML.js';
3
+ import './chunk-KNYKWUYX.js';
4
+ import './chunk-GCVA3OIV.js';
5
+ import './chunk-ZSNJ6UA3.js';
6
+ //# sourceMappingURL=indicator.js.map
7
+ //# sourceMappingURL=indicator.js.map
@@ -0,0 +1,66 @@
1
+ import * as React from 'react';
2
+
3
+ type InputSize = "sm" | "md" | "lg";
4
+ interface InputProps extends Omit<React.ComponentPropsWithoutRef<"input">, "size" | "prefix" | "value" | "defaultValue"> {
5
+ /** Control height/padding/text/icon size. @default "md" */
6
+ size?: InputSize;
7
+ /** Whether the field column takes `w-full`. Only OBSERVABLE where the parent would otherwise let
8
+ * the column shrink-to-fit (a flex row / grid cell) — in a plain block container it fills either
9
+ * way. Bound the field with a width in `className` (`w-64`, `max-w-56`). @default true */
10
+ fullWidth?: boolean;
11
+ /** Native input type (fixed allow-list). `"password"` adds a reveal toggle. For numeric entry use `<NumberInput>`. @default "text" */
12
+ type?: "text" | "email" | "password";
13
+ /** Visible label (`Field.Label`), auto-associated with the control. */
14
+ label?: string;
15
+ /** Help-circle tooltip after the label (title line). @see tooltipDescription */
16
+ tooltip?: string;
17
+ /** Optional secondary line under {@link tooltip} in the tooltip surface. */
18
+ tooltipDescription?: string;
19
+ /** Helper text under the field (`Field.Description`). Accepts rich content (e.g. a checklist); hidden while an `error` shows. */
20
+ hint?: React.ReactNode;
21
+ /** Error state: red border + error ring and `aria-invalid`. @default false */
22
+ invalid?: boolean;
23
+ /** Optional error message (`Field.Error`). A truthy `error` also implies `invalid`. */
24
+ error?: string;
25
+ /** Start slot: a **node** renders as an icon (`fg-quaternary`); a **string** renders as a
26
+ * muted text affix (e.g. `"https://"`, `"$"`). */
27
+ leading?: React.ReactNode;
28
+ /** End slot: a **node** renders as an icon; a **string** as a muted text affix (`"USD"`,
29
+ * `".00"`). Ignored when `type="password"`. */
30
+ trailing?: React.ReactNode;
31
+ /**
32
+ * Bordered/interactive segment flush to the START edge — a unit, a `<select>`,
33
+ * or an icon `<Button>`. Wrap static content in `<InputAddon>` (it reads the edge
34
+ * + size from the slot); pass a `<Button>`/`<select>` directly. @see InputAddon
35
+ */
36
+ leadingAddon?: React.ReactNode;
37
+ /** Bordered/interactive segment flush to the END edge (Copy button, currency `<select>`, …). @see InputAddon */
38
+ trailingAddon?: React.ReactNode;
39
+ /** Fade the trailing (and leading, once scrolled) edge of overflowing text as a scroll hint,
40
+ * instead of the text hard-clipping at the border. @default false */
41
+ scrollFade?: boolean;
42
+ /** Suppress the visual required `*` while keeping `required` semantics — for forms
43
+ * where every field is required and the asterisks become noise. @default false */
44
+ hideRequiredIndicator?: boolean;
45
+ value?: string | number;
46
+ defaultValue?: string | number;
47
+ }
48
+ interface InputAddonProps {
49
+ /** Must match the sibling `<Input size>` so the bleed cancels its padding exactly.
50
+ * Defaults from the host slot. @default "md" */
51
+ size?: InputSize;
52
+ /** Addon content: a unit/currency label, an icon, or short static text. */
53
+ children: React.ReactNode;
54
+ /** Layout/spacing only, merged via `cn()`. */
55
+ className?: string;
56
+ }
57
+ /** The STATIC content of a bordered, full-height segment that butts flush against an
58
+ * `<Input>` edge — the "input group" add-on. This only lays out the content (padding +
59
+ * text size); the divider, bleed, muted tone, and clipped corners belong to the host
60
+ * add-on slot. For an INTERACTIVE add-on, pass a `<Button seamless>` / `<NativeSelect
61
+ * seamless>` to `leading/trailingAddon` directly instead of wrapping it here (avoids
62
+ * double padding) — see `docs/seamless-policy.md`. */
63
+ declare function InputAddon({ size: sizeProp, children, className }: InputAddonProps): React.JSX.Element;
64
+ declare function Input(props: InputProps): React.JSX.Element;
65
+
66
+ export { Input, InputAddon, type InputAddonProps, type InputProps, type InputSize };
package/dist/input.js ADDED
@@ -0,0 +1,15 @@
1
+ "use client";export { Input, InputAddon } from './chunk-7HOIZ3UO.js';
2
+ import './chunk-7EUAMHMU.js';
3
+ import './chunk-QA74ITR4.js';
4
+ import './chunk-KNYKWUYX.js';
5
+ import './chunk-52IFGFTL.js';
6
+ import './chunk-O2LG3PNI.js';
7
+ import './chunk-EDSK6FEH.js';
8
+ import './chunk-J2BCKBHC.js';
9
+ import './chunk-24TO7E32.js';
10
+ import './chunk-ZZA2LUTL.js';
11
+ import './chunk-O4GRKO3I.js';
12
+ import './chunk-GCVA3OIV.js';
13
+ import './chunk-ZSNJ6UA3.js';
14
+ //# sourceMappingURL=input.js.map
15
+ //# sourceMappingURL=input.js.map
@@ -0,0 +1,8 @@
1
+ /** How a multi-selection is shown inside the control.
2
+ * - `"tags"` (default) — one pill per selected value, laid out by `useTagRow` (`./tag-row`), so
3
+ * `maxRows` governs whether the control wraps and grows or holds a bar height and scrolls.
4
+ * - `"count"` — a compact `"N selected"` summary (+ optional `supportingText`). The control keeps
5
+ * its fixed bar height at any selection size, and `maxRows` does not apply. */
6
+ type MultiDisplay = "count" | "tags";
7
+
8
+ export type { MultiDisplay as M };
@@ -0,0 +1,98 @@
1
+ import { DropdownMenuItem } from './dropdown-menu.js';
2
+ import * as React from 'react';
3
+
4
+ /** How a row's `href` is compared against the nav's `activeHref`. */
5
+ type NavMatch = "exact" | "prefix";
6
+ /**
7
+ * When a row's `action` is visible. `hover` keeps the row quiet until you point
8
+ * at it (UUI's recipe, and the default); `always` pins the control down for a
9
+ * nav whose actions are the point — a "+" per section you are meant to see
10
+ * without hunting, or a touch surface where there is no hover at all.
11
+ */
12
+ type NavActionReveal = "hover" | "always";
13
+ /**
14
+ * The interactive control at a row's trailing edge — a "+" that creates
15
+ * something in that section, or a "⋯" that opens a row menu. Revealed on hover
16
+ * by default; `reveal: "always"` pins it down.
17
+ *
18
+ * Distinct from `trailing`, which is display-only (a count chip, a status dot).
19
+ * This one is interactive, so it renders as a SIBLING of the row rather than
20
+ * inside it: a `<button>` nested in an `<a>` is invalid HTML and the browser
21
+ * silently drops one of the two activations.
22
+ */
23
+ interface NavRowAction {
24
+ /** Accessible name and tooltip. Required — an icon-only control must be named. */
25
+ label: string;
26
+ /** The glyph. Sized by the action itself; the caller supplies a bare icon. */
27
+ icon: React.ReactNode;
28
+ /** Fires on press. Ignored when `items` is set — the menu owns the press. */
29
+ onClick?: (event: React.MouseEvent<HTMLElement>) => void;
30
+ /** Turns the action into a `DropdownMenu` trigger instead of a plain button. */
31
+ items?: readonly DropdownMenuItem[];
32
+ /**
33
+ * Whether the control waits for a hover. `always` never fades it out — the
34
+ * focus / open-menu escapes below become inert rather than wrong.
35
+ * @default "hover"
36
+ */
37
+ reveal?: NavActionReveal;
38
+ }
39
+ /** One navigation row. With `items` it becomes a disclosure (expanded) or a
40
+ * flyout menu (collapsed) instead of a plain link. */
41
+ interface NavLink {
42
+ /** Row text. Also the accessible name, and the tooltip label when collapsed. */
43
+ label: string;
44
+ /** Destination. Renders the row as an `<a>`; omit it for a pure `onClick` row. */
45
+ href?: string;
46
+ /**
47
+ * `prefix` (the default) also matches deeper routes, so a `/employee` row stays
48
+ * current at `/employee/create`. Use `exact` for a row that must NOT own its
49
+ * descendants — typically because a sibling row already covers them.
50
+ * @default "prefix"
51
+ */
52
+ match?: NavMatch;
53
+ /** Leading node — an icon, an `<Indicator>`, an `<Avatar size="xxs">`. The caller owns its size and a11y. */
54
+ leading?: React.ReactNode;
55
+ /** Trailing node — a count is `<Badge seamless shape="pill" size="sm">N</Badge>`, which inherits the
56
+ * row's color. That is the same chip a tab strip uses (UUI ships one badge for both): the row label
57
+ * is `text-sm`, so a `size="md"` chip would sit a text step too large and 2px too tall in the line. */
58
+ trailing?: React.ReactNode;
59
+ /** Hover-revealed interactive control at the row's trailing edge. */
60
+ action?: NavRowAction;
61
+ /** Renders inert: no link, no focus, faded. */
62
+ disabled?: boolean;
63
+ /** Fires in addition to the nav's `onNavigate`. */
64
+ onClick?: (event: React.MouseEvent<HTMLElement>) => void;
65
+ /** Layout/spacing overrides for this row only (merged via `cn()`). */
66
+ className?: string;
67
+ /** Nested rows. Recursive — a child may own children of its own. */
68
+ items?: NavLink[];
69
+ /** Start this section expanded, even when it holds no current row. @default false */
70
+ defaultOpen?: boolean;
71
+ }
72
+ /**
73
+ * How the break between two clusters is drawn. `line` is the solid hairline
74
+ * (Untitled UI's only divider); `dot` is the same rule drawn as dots — a
75
+ * quieter break for a nav that already uses `line` to mark its major seams,
76
+ * so the two weights can read as two levels of separation.
77
+ */
78
+ type NavSeparatorVariant = "line" | "dot";
79
+ /** A horizontal rule between clusters. */
80
+ interface NavSeparator {
81
+ separator: true;
82
+ /**
83
+ * The rule's texture — a solid hairline or a dotted one. Same footprint and
84
+ * same token either way; the dots simply lay down less ink.
85
+ * @default "line"
86
+ */
87
+ variant?: NavSeparatorVariant;
88
+ }
89
+ /** A titled cluster of rows, rendered under an uppercase subheading. */
90
+ interface NavGroup {
91
+ /** The subheading. */
92
+ group: React.ReactNode;
93
+ /** Rows in this cluster. */
94
+ items: NavLink[];
95
+ }
96
+ type NavItem = NavSeparator | NavGroup | NavLink;
97
+
98
+ export type { NavActionReveal as N, NavGroup as a, NavItem as b, NavLink as c, NavMatch as d, NavRowAction as e, NavSeparator as f, NavSeparatorVariant as g };
@@ -0,0 +1,80 @@
1
+ import { NumberFieldRootProps } from '@base-ui/react/number-field';
2
+ import * as React from 'react';
3
+
4
+ type NumberInputSize = "sm" | "md" | "lg";
5
+ type NumberInputVariant = "horizontal" | "vertical";
6
+ /** Same signature as Base UI's `NumberField.Root#onValueChange`. */
7
+ type NumberInputOnValueChange = NonNullable<NumberFieldRootProps["onValueChange"]>;
8
+ interface NumberInputProps {
9
+ /** Control height/padding/text size. @default "md" */
10
+ size?: NumberInputSize;
11
+ /** `horizontal` = Minus/Plus flanking the field; `vertical` = a stacked chevron column at the end. @default "vertical" */
12
+ variant?: NumberInputVariant;
13
+ /** Visible label (`Field.Label`), auto-associated with the control. */
14
+ label?: string;
15
+ /** Help-circle tooltip after the label (title line). @see tooltipDescription */
16
+ tooltip?: string;
17
+ /** Optional secondary line under {@link tooltip} in the tooltip surface. */
18
+ tooltipDescription?: string;
19
+ /** Helper text under the field (`Field.Description`). Accepts rich content; hidden while an `error` shows. */
20
+ hint?: React.ReactNode;
21
+ /** Error state: red border + error ring and `aria-invalid`. @default false */
22
+ invalid?: boolean;
23
+ /** Optional error message (`Field.Error`). A truthy `error` also implies `invalid`. */
24
+ error?: string;
25
+ /** Disables the field and both steppers. @default false */
26
+ disabled?: boolean;
27
+ /** Value stays readable but locked. @default false */
28
+ readOnly?: boolean;
29
+ /** Marks the hidden input required for form submission. @default false */
30
+ required?: boolean;
31
+ /** Suppress the label's visual `*` while keeping `required` semantics. @default false */
32
+ hideRequiredIndicator?: boolean;
33
+ /** Whether the field column takes `w-full`. Only OBSERVABLE where the parent would otherwise let
34
+ * the column shrink-to-fit (a flex row / grid cell) — in a plain block container it fills either
35
+ * way. Bound the field with a width in `className` (`w-32`). @default true */
36
+ fullWidth?: boolean;
37
+ /** Fade the overflowing edge of the value as a scroll hint instead of a hard clip. @default false */
38
+ scrollFade?: boolean;
39
+ /** Placeholder shown when empty. */
40
+ placeholder?: string;
41
+ /** Name of the hidden input (form integration). */
42
+ name?: string;
43
+ /** Id of the underlying input. */
44
+ id?: string;
45
+ /** Controlled numeric value (`null` = empty). */
46
+ value?: number | null;
47
+ /** Uncontrolled initial value. */
48
+ defaultValue?: number;
49
+ /** Minimum value (clamps stepping). */
50
+ min?: number;
51
+ /** Maximum value (clamps stepping). */
52
+ max?: number;
53
+ /** Amount per step. `"any"` disables step validation. @default 1 */
54
+ step?: number | "any";
55
+ /** Step while the Alt key is held. @default 0.1 */
56
+ smallStep?: number;
57
+ /** Step while the Shift key is held. @default 10 */
58
+ largeStep?: number;
59
+ /** `Intl.NumberFormat` options (e.g. currency, percent). */
60
+ format?: Intl.NumberFormatOptions;
61
+ /** Fires when the numeric value changes. */
62
+ onValueChange?: NumberInputOnValueChange;
63
+ /** Accessible name when no visible `label` is provided. */
64
+ "aria-label"?: string;
65
+ /** Start slot: a **node** renders as an icon, a **string** as a muted text affix (`"$"`). Sits
66
+ * INSIDE the stepper segment, which stays flush at the edge (the ordering rule). */
67
+ leading?: React.ReactNode;
68
+ /** End slot: a **node** renders as an icon; a **string** as a muted text affix (`"kg"`, `"%"`). */
69
+ trailing?: React.ReactNode;
70
+ /** Bordered/interactive segment flush to the START edge. Nests inside the stepper, so its outer
71
+ * corner stays square. @see InputAddon */
72
+ leadingAddon?: React.ReactNode;
73
+ /** Bordered/interactive segment flush to the END edge. @see InputAddon */
74
+ trailingAddon?: React.ReactNode;
75
+ /** Layout/spacing only (margin, width, flex/grid placement), merged via `cn()`. */
76
+ className?: string;
77
+ }
78
+ declare function NumberInput(props: NumberInputProps): React.JSX.Element;
79
+
80
+ export { NumberInput, type NumberInputOnValueChange, type NumberInputProps, type NumberInputSize, type NumberInputVariant };
@@ -0,0 +1,15 @@
1
+ "use client";export { NumberInput } from './chunk-JYGR44ZC.js';
2
+ import './chunk-7EUAMHMU.js';
3
+ import './chunk-QA74ITR4.js';
4
+ import './chunk-KNYKWUYX.js';
5
+ import './chunk-52IFGFTL.js';
6
+ import './chunk-O2LG3PNI.js';
7
+ import './chunk-EDSK6FEH.js';
8
+ import './chunk-J2BCKBHC.js';
9
+ import './chunk-24TO7E32.js';
10
+ import './chunk-ZZA2LUTL.js';
11
+ import './chunk-O4GRKO3I.js';
12
+ import './chunk-GCVA3OIV.js';
13
+ import './chunk-ZSNJ6UA3.js';
14
+ //# sourceMappingURL=number-input.js.map
15
+ //# sourceMappingURL=number-input.js.map
@@ -0,0 +1,68 @@
1
+ import * as React from 'react';
2
+
3
+ /** The irreducible identity every list option shares. Individual controls
4
+ * extend this with their own display metadata.
5
+ *
6
+ * **Generic in the value** so a control can tie its `value` prop to the options it was
7
+ * actually given: with a literal-typed `options` (an inline array, `as const`, or a
8
+ * `satisfies`), `V` infers to the union of those values and a typo in `value` is a compile
9
+ * error. A widened annotation (`const OPTS: SelectOption[]`) leaves `V = string`, i.e. the
10
+ * historical behaviour — the check appears where the data is precise and never blocks where
11
+ * it isn't. `Option<"a">` is assignable to `Option<string>`, so every `<O extends Option>`
12
+ * helper below keeps working unchanged. Full rationale: `docs/type-safety-policy.md`. */
13
+ interface Option<V extends string = string> {
14
+ /** Unique value submitted / selected. */
15
+ value: V;
16
+ /** Visible label. Falls back to `value` when omitted. */
17
+ label?: React.ReactNode;
18
+ /** Marks the option unselectable + dimmed. @default false */
19
+ disabled?: boolean;
20
+ }
21
+ /** A titled cluster of options (nested-group shape — AGENTS §11). Renders a
22
+ * group label followed by its options (Select / Combobox only). */
23
+ interface OptionGroup<O extends Option = Option> {
24
+ /** Group heading. */
25
+ label: string;
26
+ /** The options in this group. `readonly` so an `as const` options table — the way you get the
27
+ * literal value union that {@link Option}'s `V` infers from — is assignable here. */
28
+ options: readonly O[];
29
+ }
30
+ /** An `options` entry: either a bare option or a titled group of them. */
31
+ type OptionOrGroup<O extends Option = Option> = O | OptionGroup<O>;
32
+ /** The shape every control's `options` prop takes. `readonly` for the same reason as
33
+ * {@link OptionGroup.options}: `as const` produces a `readonly` tuple, and that is precisely the
34
+ * input that makes the value check bite. A mutable array is assignable to it, so this is strictly
35
+ * more permissive than the old `OptionOrGroup<O>[]`. */
36
+ type OptionList<O extends Option = Option> = readonly OptionOrGroup<O>[];
37
+ /** A pinned footer action row for the listbox controls (Select / Combobox) — the bounded
38
+ * replacement for a free-form footer: create / see-all / manage / bulk / load-more. The
39
+ * component owns the row's look + keyboard focus; the caller supplies label + intent. */
40
+ interface ListboxAction {
41
+ /** Row label (e.g. "Create new role", "See all results"). */
42
+ label: React.ReactNode;
43
+ /** Fired when the row is activated. */
44
+ onClick: () => void;
45
+ /** Optional leading glyph (no default — a generic action isn't always "+"). */
46
+ icon?: React.ReactNode;
47
+ }
48
+ /** Narrows an `options` entry to a group. */
49
+ declare function isOptionGroup<O extends Option>(entry: OptionOrGroup<O>): entry is OptionGroup<O>;
50
+ /** Display metadata shared by the TWO listbox controls (Select + Combobox).
51
+ * Radio/Tag do NOT use this — they extend {@link Option} with their own fields.
52
+ *
53
+ * Deliberately node-slot, not typed: the caller drops whatever they want into
54
+ * `leading` / `trailing` — an `<Avatar>`, a `<Badge>`, an icon, a status dot —
55
+ * and the control just places it (aria-hidden, `shrink-0`). You size the node;
56
+ * a bare `<svg>` icon auto-sizes to the control, composed components render as
57
+ * built. The node is rendered as-is in the row AND mirrored into the trigger /
58
+ * multi-select chip, so keep it small (e.g. `<Avatar size="xs">`). */
59
+ interface ListboxOption<V extends string = string> extends Option<V> {
60
+ /** Secondary muted text (or node) after the label. */
61
+ supporting?: React.ReactNode;
62
+ /** Leading node at the row's start — `<Avatar>`, `<Badge>`, icon, or a status dot. */
63
+ leading?: React.ReactNode;
64
+ /** Trailing node at the row's end, before the selection marker — a `<Badge>`, ⌘K, count, … */
65
+ trailing?: React.ReactNode;
66
+ }
67
+
68
+ export { type ListboxOption as L, type OptionList as O, type ListboxAction as a, type Option as b, type OptionGroup as c, type OptionOrGroup as d, isOptionGroup as i };