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,29 @@
1
+ /**
2
+ * How a control's label behaves when it is wider than the box that holds it.
3
+ *
4
+ * ONE union, not a pair of booleans. `wrap` and `truncate` are mutually exclusive answers to a
5
+ * single question, and the two-boolean spelling could express the contradiction (`wrap truncate`)
6
+ * — so every component that had it also shipped a dev-warn to police the state the type allowed.
7
+ * A union deletes the illegal state instead of reporting it, and lets the default be a real member
8
+ * (`Button` defaults to `truncate`, which a `truncate?: boolean = true` could not spell without
9
+ * `wrap` having to silently cancel it). See `docs/type-safety-policy.md` § mutually-exclusive.
10
+ *
11
+ * - **`truncate`** — one line, clipped with an ellipsis. Only fires when the box is actually
12
+ * BOUNDED (see {@link overflowClasses} `shrinkRoot`); unbounded, the control still sizes to its
13
+ * content, so this is a safe default rather than a behaviour change.
14
+ * - **`wrap`** — the label breaks onto multiple lines, **left-aligned** (`text-left`). The box grows;
15
+ * leading/trailing slots stay vertically centred against the whole multi-line block. `break-words`
16
+ * so an unbreakable token (a URL, an id) still breaks instead of overflowing onto the slots.
17
+ * Unlike `truncate` this needs NO explicit width bound: a shrink-to-fit inline-flex box already
18
+ * wraps against the space available to it.
19
+ *
20
+ * The alignment lives HERE, not in each host, so the whole library wraps the same way. Every host
21
+ * centres its single-line content (`justify-center`), and inheriting that for a multi-line block
22
+ * gives a ragged centred paragraph — worse to read, and it made a wrapped `Tag` disagree with a
23
+ * wrapped `Button`. `text-left` only affects the label span, so the SLOTS stay centred.
24
+ * - **`visible`** — no wrap, no clip: the label keeps its intrinsic width and overflows the box.
25
+ * The pre-union behaviour, now opt-in.
26
+ */
27
+ type OverflowMode = "truncate" | "wrap" | "visible";
28
+
29
+ export type { OverflowMode as O };
@@ -0,0 +1,77 @@
1
+ import * as React from 'react';
2
+
3
+ /**
4
+ * Page navigation for a table, a card grid, or any paged list.
5
+ *
6
+ * Standalone by design — `<Table pagination>` renders one in its footer, but nothing here knows
7
+ * about tables. State is always the caller's (or `useTable`'s); this component renders it and
8
+ * emits intent.
9
+ *
10
+ * Responsive via CONTAINER queries, not viewport breakpoints: the footer usually sits inside a
11
+ * card whose width has nothing to do with the window (a table beside a sidebar is narrow on a
12
+ * wide screen). Tiers, widest first: number strip → total readout → rows-per-page → the bare
13
+ * `‹ Page 3 of 24 ›` that always survives.
14
+ */
15
+ type PaginationVariant = "numbered" | "compact" | "minimal";
16
+ type PaginationAlign = "start" | "center" | "end" | "between";
17
+ type PaginationColor = "brand" | "neutral";
18
+ interface PaginationProps {
19
+ /** 1-based. */
20
+ page: number;
21
+ pageCount: number;
22
+ onPageChange: (page: number) => void;
23
+ pageSize?: number;
24
+ /** @default [10, 25, 50, 100] */
25
+ pageSizeOptions?: readonly number[];
26
+ onPageSizeChange?: (size: number) => void;
27
+ /** Total rows behind the pages — renders the "240 results" readout. */
28
+ totalItems?: number;
29
+ /** `numbered` — full strip · `compact` — arrows + "Page X of Y" · `minimal` — arrows only. @default "numbered" */
30
+ variant?: PaginationVariant;
31
+ /** @default "between" */
32
+ align?: PaginationAlign;
33
+ /**
34
+ * How every control in the strip is tinted — the current page's fill AND the hover state of the
35
+ * numbers, the arrows and the first/last buttons, from ONE table.
36
+ *
37
+ * Two members, not the library's six-tone `SemanticColor`: a page strip is navigation, and
38
+ * `success`/`warning`/`error` would state a condition the control cannot have. Same pair, same
39
+ * default and same reasoning as `SidebarNavigation`'s `accent`.
40
+ *
41
+ * @default "brand"
42
+ */
43
+ color?: PaginationColor;
44
+ /**
45
+ * Turn the page readout into an editable jump field.
46
+ *
47
+ * INDEPENDENT of {@link variant} (AGENTS §4: a boolean is right when setting both is
48
+ * meaningful) — it answers "can I type a page number?", not "how is the strip shaped":
49
+ * `numbered` keeps its strip and gains the field at every tier, `compact` swaps its static
50
+ * number for the field, and `minimal` renders the bare field with no words so it stays
51
+ * wordless. Without it, `numbered`'s narrow tier reads exactly like `compact`.
52
+ *
53
+ * @default false
54
+ */
55
+ goto?: boolean;
56
+ /** Pages shown either side of the current one. @default 1 */
57
+ siblingCount?: number;
58
+ disabled?: boolean;
59
+ /** Layout/spacing only. */
60
+ className?: string;
61
+ }
62
+ declare const ELLIPSIS: "\u2026";
63
+ type PageEntry = number | typeof ELLIPSIS;
64
+ /**
65
+ * The page window.
66
+ *
67
+ * Fixed width (`siblingCount * 2 + 5`) so the strip never reflows as you page through — the
68
+ * ellipsis occupies the same square as a page button precisely so the arrows stay put. Four
69
+ * cases: everything fits · near the start · near the end · somewhere in the middle.
70
+ */
71
+ declare function pageWindow(page: number, pageCount: number, siblingCount?: number): PageEntry[];
72
+ declare function Pagination({ page, pageCount, onPageChange, pageSize, pageSizeOptions, onPageSizeChange, totalItems, variant, align, color, goto, siblingCount, disabled, className, }: PaginationProps): React.JSX.Element;
73
+ declare namespace Pagination {
74
+ var displayName: string;
75
+ }
76
+
77
+ export { Pagination, type PaginationAlign, type PaginationColor, type PaginationProps, type PaginationVariant, pageWindow };
@@ -0,0 +1,17 @@
1
+ "use client";export { Pagination, pageWindow } from './chunk-WFY7DKQD.js';
2
+ import './chunk-7HOIZ3UO.js';
3
+ import './chunk-7EUAMHMU.js';
4
+ import './chunk-LME57Z6J.js';
5
+ import './chunk-QA74ITR4.js';
6
+ import './chunk-KNYKWUYX.js';
7
+ import './chunk-52IFGFTL.js';
8
+ import './chunk-O2LG3PNI.js';
9
+ import './chunk-EDSK6FEH.js';
10
+ import './chunk-J2BCKBHC.js';
11
+ import './chunk-24TO7E32.js';
12
+ import './chunk-ZZA2LUTL.js';
13
+ import './chunk-O4GRKO3I.js';
14
+ import './chunk-GCVA3OIV.js';
15
+ import './chunk-ZSNJ6UA3.js';
16
+ //# sourceMappingURL=pagination.js.map
17
+ //# sourceMappingURL=pagination.js.map
@@ -0,0 +1,7 @@
1
+ import { a as CardType } from './PaymentInput-CKPIPNWH.js';
2
+ export { C as CardNumberEdit, 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';
3
+ import 'react';
4
+
5
+ declare const CARD_ICON: Record<CardType, React.ReactNode>;
6
+
7
+ export { CARD_ICON, CardType };
@@ -0,0 +1,15 @@
1
+ "use client";export { CARD_ICON, DEFAULT_MAX_DIGITS, PaymentInput, applyCardNumberEdit, detectCardType, formatCardNumber, hasChecksumError, isCompleteCardNumber, isLengthSettled, luhnValid, onlyDigits } from './chunk-D6TPWNRK.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=payment-input.js.map
15
+ //# sourceMappingURL=payment-input.js.map
@@ -0,0 +1,60 @@
1
+ import * as React from 'react';
2
+ import { b as PopoverSide, P as PopoverAlign, c as PopoverSize, a as PopoverFooter } from './shared-BYXJPnsN.js';
3
+
4
+ interface PopoverProps {
5
+ /** Opens the popover from your own element (e.g. a `<Button>`) and wires focus-return
6
+ * automatically. Use for simple, sync cases; omit and control `open` for async flows. */
7
+ trigger?: React.ReactElement;
8
+ /** Controlled open state. */
9
+ open?: boolean;
10
+ /** Uncontrolled initial open state. @default false */
11
+ defaultOpen?: boolean;
12
+ /** Fires whenever the popover requests to open or close. */
13
+ onOpenChange?: (open: boolean) => void;
14
+ /** Side of the trigger to place the surface on. Flips automatically on collision. @default "bottom" */
15
+ side?: PopoverSide;
16
+ /** Alignment along that side. @default "center" */
17
+ align?: PopoverAlign;
18
+ /** Gap between the trigger and the surface, in px. @default 8 */
19
+ sideOffset?: number;
20
+ /** Extra shift along the alignment axis, in px. @default 0 */
21
+ alignOffset?: number;
22
+ /** Max width of the surface: `sm` 16rem · `md` 20rem · `lg` 24rem. @default "md" */
23
+ size?: PopoverSize;
24
+ /** Render the top-right close icon button. A popover already dismisses on outside-press
25
+ * and Esc and sits beside its trigger, so this is off unless you ask for it. @default false */
26
+ showClose?: boolean;
27
+ /** Draw a full-bleed hairline between the header and body, and the body and footer. Reads as
28
+ * a fence rather than a section across a short surface, so it is off by default. @default false */
29
+ dividers?: boolean;
30
+ /** Enter a modal state when open — scrim-free focus trap plus scroll lock, so `Tab` stays
31
+ * inside. Off by default: non-modal is what lets a footer or a preset rail be reachable
32
+ * without a trap, and it is the structural difference from `Dialog`. @default false */
33
+ modal?: boolean;
34
+ /** Keep the portal mounted (hidden) while closed, preserving body state instead of unmounting. @default false */
35
+ keepMounted?: boolean;
36
+ /** Allow closing via outside-press and `Esc`. The close icon and footer still close when `false`. @default true */
37
+ dismissible?: boolean;
38
+ /** Title text (wired to `aria-labelledby`). Provide this or `aria-label`. */
39
+ title?: React.ReactNode;
40
+ /** Supporting description (wired to `aria-describedby`). */
41
+ description?: React.ReactNode;
42
+ /** Leading header node — an `<Avatar>`, a feature icon. The node keeps its own a11y semantics. */
43
+ leading?: React.ReactNode;
44
+ /** Trailing header node — a `<Badge>`, a menu trigger. Sits left of the close icon when both show. */
45
+ trailing?: React.ReactNode;
46
+ /** Right-aligned action row; a render-fn receives a `close()` helper. */
47
+ footer?: PopoverFooter;
48
+ /** Accessible name when no `title` is rendered. */
49
+ "aria-label"?: string;
50
+ /** Layout/spacing overrides for the surface only (merged via `cn()`). Cannot recolor it. */
51
+ className?: string;
52
+ /** Main content — rendered in the scrollable body (auto scroll-fade). */
53
+ children?: React.ReactNode;
54
+ }
55
+ declare function Popover(props: PopoverProps): React.JSX.Element;
56
+ declare namespace Popover {
57
+ var displayName: string;
58
+ }
59
+
60
+ export { Popover, PopoverAlign, PopoverFooter, type PopoverProps, PopoverSide, PopoverSize };
@@ -0,0 +1,14 @@
1
+ "use client";export { Popover } from './chunk-3Y5X7B5C.js';
2
+ import './chunk-CYPPEUX5.js';
3
+ import './chunk-J7ZQQFPT.js';
4
+ import './chunk-MFJP5FA7.js';
5
+ import './chunk-MQGD2OUF.js';
6
+ import './chunk-S7NNXWIN.js';
7
+ import './chunk-52IFGFTL.js';
8
+ import './chunk-O2LG3PNI.js';
9
+ import './chunk-EDSK6FEH.js';
10
+ import './chunk-24TO7E32.js';
11
+ import './chunk-O4GRKO3I.js';
12
+ import './chunk-ZSNJ6UA3.js';
13
+ //# sourceMappingURL=popover.js.map
14
+ //# sourceMappingURL=popover.js.map
@@ -0,0 +1,87 @@
1
+ import * as React from 'react';
2
+
3
+ /**
4
+ * Where the value reads, relative to the bar.
5
+ *
6
+ * `none` is a real member, not the absence of one: a bar inside a host that already states the
7
+ * progress in words (a Toast title, a file row) must not repeat it, and that case needs a name.
8
+ *
9
+ * Named for the **value**, not for a "label": the printed `75%` is a readout of `aria-valuenow`,
10
+ * while the bar's label is its accessible name (`aria-label` / `aria-labelledby`). Calling the
11
+ * readout a label would give the library's one universal word — `label` is the visible name on
12
+ * every other control here — to the one thing on this component that is not it.
13
+ */
14
+ type ProgressValuePosition = "none" | "right" | "bottom" | "top-floating" | "bottom-floating";
15
+ /** Track height. `sm` is for a bar nested in another component's card; `md` stands alone. */
16
+ type ProgressSize = "sm" | "md";
17
+ interface ProgressProps {
18
+ /**
19
+ * How far along, in `min`…`max` units. Required — a `Progress` with no value would be an
20
+ * indeterminate bar, which is a different component (see the note above).
21
+ */
22
+ value: number;
23
+ /** Low end of the scale. @default 0 */
24
+ min?: number;
25
+ /** High end of the scale. @default 100 */
26
+ max?: number;
27
+ /**
28
+ * Renders a value ABOVE `max` instead of reporting it.
29
+ *
30
+ * Off (the default) a `value` past `max` is a caller mistake: the paint clamps to a full track and
31
+ * `warnRange` names the number. That is the right answer for a task — an upload cannot be 120%
32
+ * uploaded. But a quota, a budget, or a rate limit genuinely goes over, and there the overage IS
33
+ * the information.
34
+ *
35
+ * On, and only once `value` exceeds `max`, the track's scale stretches so its right edge is the
36
+ * value: the fill therefore paints full width and a hairline **notch** marks where `max` fell
37
+ * (`max` at 100 with `value` at 120 puts it 83% along). The fill stays brand on both sides of the
38
+ * notch — its position is the signal, so there is still no colour axis here.
39
+ *
40
+ * It also moves what the readout MEANS: `formatValue` (and the default `${percent}%`) receive
41
+ * percent-of-`max`, which may now exceed 100, because "120%" is the whole point of the call. The
42
+ * floating bubble keeps tracking the fill's edge, not that number.
43
+ *
44
+ * A boolean rather than a union: it is an independent switch (setting it alongside any other prop
45
+ * is meaningful) and it carries no settings of its own — the extended scale is derived from
46
+ * `value`, so there is no ceiling to declare.
47
+ *
48
+ * @default false
49
+ */
50
+ overage?: boolean;
51
+ /** Where the value reads. @default "none" */
52
+ valuePosition?: ProgressValuePosition;
53
+ /**
54
+ * Turns the numbers into the value's text — a function of DATA → STRING, the same category
55
+ * `Table`'s `cell` occupies. Receives the raw `value` and the derived `percent` so a caller can
56
+ * show either (`(v) => \`${v} of 12 files\``, or the default `${percent}%`).
57
+ *
58
+ * `percent` is bounded 0–100 — it follows the PAINT, so `value={150}` reads "100%" — unless
59
+ * `overage` is set, which is exactly the case where the number past 100 is the point.
60
+ *
61
+ * Verb-first (`formatValue`, like `createLabel`/`renderChip`) rather than a bare `format`, which
62
+ * in this library already means two other, non-substitutable things: a pattern string
63
+ * (`DateInput.format`) and an options bag (`NumberInput.format`).
64
+ *
65
+ * Independent of `valuePosition` — with `valuePosition="none"` this still customizes what is
66
+ * ANNOUNCED, because supplying it also sets `aria-valuetext`: a custom string is information
67
+ * `aria-valuenow` cannot carry, whereas a bare percentage is already implied by
68
+ * `valuenow`/`valuemin`/`valuemax`.
69
+ *
70
+ * @default (_, percent) => `${Math.round(percent)}%`
71
+ */
72
+ formatValue?: (value: number, percent: number) => string;
73
+ /** @default "md" */
74
+ size?: ProgressSize;
75
+ /**
76
+ * The bar's accessible name. A `role="progressbar"` with no name announces as a bare number, so
77
+ * one of this or `aria-labelledby` is required (dev-warned, per `warnNeedsName`).
78
+ */
79
+ "aria-label"?: string;
80
+ /** Names the bar from existing copy — the id of the heading/label that already says what this is. */
81
+ "aria-labelledby"?: string;
82
+ /** Layout/spacing only, merged via `cn()`. Never restyles the track or the fill. */
83
+ className?: string;
84
+ }
85
+ declare function Progress(props: ProgressProps): React.JSX.Element;
86
+
87
+ export { Progress, type ProgressProps, type ProgressSize, type ProgressValuePosition };
@@ -0,0 +1,5 @@
1
+ "use client";export { Progress } from './chunk-D5BTFSL7.js';
2
+ import './chunk-GCVA3OIV.js';
3
+ import './chunk-ZSNJ6UA3.js';
4
+ //# sourceMappingURL=progress.js.map
5
+ //# sourceMappingURL=progress.js.map
@@ -0,0 +1,77 @@
1
+ import * as React from 'react';
2
+ import { O as OptionList, b as Option } from './options-CPEIgjtd.js';
3
+
4
+ /** `md` = 16px control (the default; UUI's `sm`) · `lg` = 20px control (UUI's
5
+ * `md`). There is no `sm` — see the NAMING note in `field/option-row.tsx`. */
6
+ type RadioGroupSize = "md" | "lg";
7
+ type RadioGroupOrientation = "vertical" | "horizontal";
8
+ /** A data-first option for `RadioGroup` `options` — the flat-props shape each
9
+ * `RadioGroup.Item` already takes. `label` is a **required string** (the item's
10
+ * accessible name), not the base's optional `ReactNode`. */
11
+ interface RadioOption<V extends string = string> extends Option<V> {
12
+ /** Primary text; also the item's accessible name. */
13
+ label: string;
14
+ /** Optional secondary text rendered under the label. */
15
+ hint?: string;
16
+ /** Layout/spacing only for this item's row (margin, width, flex/grid placement),
17
+ * merged via `cn()`. Never restyles internals. */
18
+ className?: string;
19
+ }
20
+ interface RadioGroupProps<V extends string = string> extends Omit<React.ComponentPropsWithoutRef<"div">, "defaultValue" | "onChange" | "dir" | "color" | "children"> {
21
+ /** Controlled selected value. **Checked against `options`** — `V` is inferred from the values you
22
+ * passed there, so a typo is a compile error instead of a group that silently renders nothing
23
+ * selected. `NoInfer` keeps this prop out of inference so the union can't widen to admit the typo.
24
+ * A widened `options` annotation leaves `V = string` (unchanged behaviour).
25
+ * See `docs/type-safety-policy.md`. */
26
+ value?: NoInfer<V>;
27
+ /** Initial selected value (uncontrolled) — checked against `options` exactly like {@link value}. */
28
+ defaultValue?: NoInfer<V>;
29
+ /** Fires when the selection changes, with the new value and the native event. */
30
+ onValueChange?: (value: V, event: Event) => void;
31
+ /** Control + text scale (`md` = 16px, `lg` = 20px); inherited by every item. @default "md" */
32
+ size?: RadioGroupSize;
33
+ /** Stack items in a column or a wrapping row. @default "vertical" */
34
+ orientation?: RadioGroupOrientation;
35
+ /** Form field name for the emitted hidden input. */
36
+ name?: string;
37
+ /** Disables every item in the group. @default false */
38
+ disabled?: boolean;
39
+ /** Marks the group as required for form submission. @default false */
40
+ required?: boolean;
41
+ /** Visible label naming the whole group (`aria-labelledby`-associated). Omit and
42
+ * pass `aria-label`/`aria-labelledby` for a group with no visible heading. */
43
+ label?: React.ReactNode;
44
+ /** Suppress the visual required `*` while keeping `required` semantics. @default false */
45
+ hideRequiredIndicator?: boolean;
46
+ /** Help-circle tooltip after the group label (title line). */
47
+ tooltip?: string;
48
+ /** Optional secondary line under {@link tooltip}. */
49
+ tooltipDescription?: string;
50
+ /** Helper text under the group; hidden while an error shows. */
51
+ hint?: React.ReactNode;
52
+ /** Error state: red border + error focus ring and `aria-invalid`. @default false */
53
+ invalid?: boolean;
54
+ /** Optional error message (rendered below, linked via `aria-describedby`). A truthy `error` also implies `invalid`. */
55
+ error?: string;
56
+ /** Render each item as a bordered card whose border turns brand when selected. @default false */
57
+ bordered?: boolean;
58
+ /** Whether the group column takes `w-full`. Only OBSERVABLE where the parent would otherwise let
59
+ * the column shrink-to-fit (a flex row / grid cell) — in a plain block container it fills either
60
+ * way. Bound the group with a width in `className`. @default true */
61
+ fullWidth?: boolean;
62
+ /** Data-first options — the canonical (and only) API: renders one radio per
63
+ * entry. Accepts a flat list or nested `{ label, options }` groups (a titled
64
+ * cluster). `RadioGroup` is flat-only (no compound parts). */
65
+ options?: OptionList<RadioOption<V>>;
66
+ /** Layout/spacing only (margin, width, flex/grid placement), merged via `cn()`. */
67
+ className?: string;
68
+ }
69
+ declare function RadioGroupRoot<V extends string = string>(props: RadioGroupProps<V>): React.JSX.Element;
70
+ declare namespace RadioGroupRoot {
71
+ var displayName: string;
72
+ }
73
+ /** Data-first, flat-only (AGENTS §11 / docs/api-policy.md): `<RadioGroup options=… />`
74
+ * renders the whole radio set from data. No public compound parts. */
75
+ declare const RadioGroup: typeof RadioGroupRoot;
76
+
77
+ export { RadioGroup, type RadioGroupOrientation, type RadioGroupProps, type RadioGroupSize, type RadioOption };
package/dist/radio.js ADDED
@@ -0,0 +1,12 @@
1
+ "use client";export { RadioGroup } from './chunk-SV56BSUQ.js';
2
+ import './chunk-GTHJWR3Q.js';
3
+ import './chunk-MFJP5FA7.js';
4
+ import './chunk-7JBNLEJ7.js';
5
+ import './chunk-J2BCKBHC.js';
6
+ import './chunk-24TO7E32.js';
7
+ import './chunk-ZZA2LUTL.js';
8
+ import './chunk-O4GRKO3I.js';
9
+ import './chunk-GCVA3OIV.js';
10
+ import './chunk-ZSNJ6UA3.js';
11
+ //# sourceMappingURL=radio.js.map
12
+ //# sourceMappingURL=radio.js.map
@@ -0,0 +1,68 @@
1
+ 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';
2
+ import * as React from 'react';
3
+ import '@base-ui/react/select';
4
+ import './multi-value-CJb_tnvi.js';
5
+ import './options-CPEIgjtd.js';
6
+
7
+ type ControlSize = "sm" | "md" | "lg";
8
+
9
+ type NativeSelectSize = ControlSize;
10
+ /** A native `<option>` row. The native element can only render plain text, so
11
+ * `label` is a `string` (no rich metadata — that's the styled `Select`). */
12
+ interface NativeSelectOption {
13
+ /** The submitted value. Required, unique. */
14
+ value: string;
15
+ /** Visible option text. Falls back to `value`. */
16
+ label?: string;
17
+ /** Marks the option unselectable. */
18
+ disabled?: boolean;
19
+ }
20
+ interface NativeSelectProps extends Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "size" | "children" | "className"> {
21
+ /** The rows to render as native `<option>`s. */
22
+ options: NativeSelectOption[];
23
+ /** Control density: `sm` (h-9) · `md` (h-10, default) · `lg` (h-11). @default "md" */
24
+ size?: NativeSelectSize;
25
+ /** Visible label above the control (`Field.Label`). */
26
+ label?: string;
27
+ /** Suppress the visual required `*` while keeping `required` semantics (UUI parity). */
28
+ hideRequiredIndicator?: boolean;
29
+ /** Help-circle tooltip after the label (title line). @see tooltipDescription */
30
+ tooltip?: string;
31
+ /** Optional secondary line under {@link tooltip} in the tooltip surface. */
32
+ tooltipDescription?: string;
33
+ /** Helper text under the control (`Field.Description`). Hidden while an `error` shows. */
34
+ hint?: React.ReactNode;
35
+ /** Error state: red ring + error focus ring and `aria-invalid`. @default false */
36
+ invalid?: boolean;
37
+ /** Optional error message (Base UI `Field.Error`). A truthy `error` also implies `invalid`. */
38
+ error?: string;
39
+ /** Whether the field column takes `w-full`. Only OBSERVABLE where the parent would otherwise let
40
+ * the column shrink-to-fit (a flex row / grid cell) — in a plain block container it fills either
41
+ * way. Bound the field with a width in `className` (`w-40`). @default true */
42
+ fullWidth?: boolean;
43
+ /** Start slot: a **node** renders as an icon, a **string** as a muted text affix. */
44
+ leading?: React.ReactNode;
45
+ /** End slot; sits OUTSIDE the chevron, which shifts inward (the ordering rule —
46
+ * `src/components/field/shell.tsx`). Ignored while `seamless`, which has no shell. */
47
+ trailing?: React.ReactNode;
48
+ /** Bordered/interactive segment flush to the START edge. @see InputAddon */
49
+ leadingAddon?: React.ReactNode;
50
+ /** Bordered/interactive segment flush to the END edge. @see InputAddon */
51
+ trailingAddon?: React.ReactNode;
52
+ /** Drop the control's own box so it sits FLUSH inside an `<Input>` add-on slot (a protocol/
53
+ * currency picker). Bypasses the field chrome — no `label`/`hint`/`error`; use `aria-label`.
54
+ * Inside a slot it auto-adds the size-matched divider + bleed. See `docs/seamless-policy.md`.
55
+ * @default false */
56
+ seamless?: boolean;
57
+ /** Layout/spacing only (margin, width, flex/grid placement), merged via `cn()` onto the field root. */
58
+ className?: string;
59
+ }
60
+ /** Styled **native** `<select>` — Untitled UI `select-native.tsx` ported onto our
61
+ * Field scaffold. Behavior/a11y come from the platform (`<select>`/`<option>`,
62
+ * best for mobile pickers and plain forms); visuals match the styled `Select`
63
+ * bar 1:1 (inset `ring-primary`, `shadow-xs`, brand focus ring, static
64
+ * fg-quaternary chevron). Rows are plain text only — for rich options,
65
+ * multi-select, or a styled popup, use `Select`. */
66
+ declare function NativeSelect(props: NativeSelectProps): React.JSX.Element;
67
+
68
+ export { NativeSelect, type NativeSelectOption, type NativeSelectProps, type NativeSelectSize };
package/dist/select.js ADDED
@@ -0,0 +1,24 @@
1
+ "use client";export { Select } from './chunk-T7FCG7XV.js';
2
+ import './chunk-7S2TBALK.js';
3
+ export { NativeSelect } from './chunk-LME57Z6J.js';
4
+ import './chunk-S7NNXWIN.js';
5
+ import './chunk-ZZT2E5VT.js';
6
+ import './chunk-FHHAPGCR.js';
7
+ import './chunk-7JBNLEJ7.js';
8
+ import './chunk-R6RGJF4L.js';
9
+ import './chunk-W5GGOUUI.js';
10
+ import './chunk-4P2NBLBW.js';
11
+ import './chunk-DWKILXHE.js';
12
+ import './chunk-QA74ITR4.js';
13
+ import './chunk-KNYKWUYX.js';
14
+ import './chunk-52IFGFTL.js';
15
+ import './chunk-O2LG3PNI.js';
16
+ import './chunk-EDSK6FEH.js';
17
+ import './chunk-J2BCKBHC.js';
18
+ import './chunk-24TO7E32.js';
19
+ import './chunk-ZZA2LUTL.js';
20
+ import './chunk-O4GRKO3I.js';
21
+ import './chunk-GCVA3OIV.js';
22
+ import './chunk-ZSNJ6UA3.js';
23
+ //# sourceMappingURL=select.js.map
24
+ //# sourceMappingURL=select.js.map
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+
3
+ type DialogSize = "sm" | "md" | "lg";
4
+ /** A footer is a plain node, or a render-fn given a `close()` helper — the latter
5
+ * lets footer buttons dismiss the dialog in BOTH controlled and uncontrolled
6
+ * (`trigger`) modes without a `Dialog.Close` part. */
7
+ type DialogFooter = React.ReactNode | ((close: () => void) => React.ReactNode);
8
+
9
+ export type { DialogFooter as D, DialogSize as a };
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+
3
+ type PopoverSize = "sm" | "md" | "lg";
4
+ /** A footer is a plain node, or a render-fn given a `close()` helper — the latter lets
5
+ * footer buttons dismiss the popover in BOTH controlled and uncontrolled (`trigger`)
6
+ * modes without a `Popover.Close` part. Same contract as `DialogFooter`. */
7
+ type PopoverFooter = React.ReactNode | ((close: () => void) => React.ReactNode);
8
+ type PopoverSide = "top" | "right" | "bottom" | "left";
9
+ type PopoverAlign = "start" | "center" | "end";
10
+
11
+ export type { PopoverAlign as P, PopoverFooter as a, PopoverSide as b, PopoverSize as c };
@@ -0,0 +1,42 @@
1
+ import * as react from 'react';
2
+
3
+ interface IconProps {
4
+ /** Sizing/colour classes for the `<svg>` (e.g. `size-4 text-quaternary`). */
5
+ className?: string;
6
+ /** Stroke weight. Default 2; components that need a heavier glyph pass their own. */
7
+ strokeWidth?: number;
8
+ }
9
+ type IconComponent = react.FC<IconProps>;
10
+ /**
11
+ * A glyph whose stroke weight is baked into the drawing (set on the `<path>`, or expressed as a
12
+ * fill) rather than being a caller-tunable axis. It takes `className` and nothing else.
13
+ *
14
+ * This is a separate type on purpose: declaring `strokeWidth` on a glyph that ignores it would be
15
+ * a prop that lies, which is the failure mode §4 exists to prevent.
16
+ */
17
+ interface GlyphProps {
18
+ className?: string;
19
+ }
20
+ type GlyphComponent = react.FC<GlyphProps>;
21
+ /**
22
+ * A brand mark — a card network, an app logo, an integration. Not a glyph and not tone-able through
23
+ * `currentColor`: these are multi-colour trademarks, so they carry their own literal hex (the
24
+ * sanctioned exception to the token rule, annotated `raw-ramp-ok` at each site).
25
+ *
26
+ * They also do NOT sit on one grid. A payment mark is 34×24, an app mark 20×20 or 24×24 — the aspect
27
+ * ratios genuinely differ and normalising them would distort the trademark. So size a non-square
28
+ * mark on ONE axis (`className="h-6"`) and let the other follow its `viewBox`.
29
+ */
30
+ interface BrandIconProps {
31
+ /** Sizing classes for the `<svg>`. Layout only. */
32
+ className?: string;
33
+ /**
34
+ * `color` is the trademark as published; `mono` is the flat single-colour cut, for a dense row or a
35
+ * disabled state. Only the marks that upstream draws twice accept it — the rest ignore it because
36
+ * there is no second drawing to switch to.
37
+ * @default "color"
38
+ */
39
+ tone?: "color" | "mono";
40
+ }
41
+
42
+ export type { BrandIconProps as B, GlyphComponent as G, IconComponent as I, GlyphProps as a, IconProps as b };