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,218 @@
1
+ import * as React from 'react';
2
+
3
+ type DropdownMenuSize = "sm" | "md" | "lg";
4
+ type DropdownMenuSide = "top" | "right" | "bottom" | "left";
5
+ type DropdownMenuAlign = "start" | "center" | "end";
6
+ type DropdownMenuItemVariant = "default" | "destructive";
7
+ /** Selection marker on a checkbox item: brand checkmark (default) or a real checkbox box. */
8
+ type DropdownMenuSelectionIndicator = "checkmark" | "checkbox";
9
+ /** A horizontal rule between rows. */
10
+ interface DropdownMenuSeparatorItem {
11
+ separator: true;
12
+ }
13
+ /** A titled cluster (aria-labelledby-wired). Its `items` nest further. */
14
+ interface DropdownMenuGroupItem<V extends string = string> {
15
+ /**
16
+ * Stable identity for this row, used as its React key.
17
+ *
18
+ * Set it whenever `items` can be REORDERED or FILTERED and the row holds uncontrolled state
19
+ * (`defaultChecked` / `defaultValue`) or open state (a submenu). Without it a row keys by array
20
+ * POSITION, so React reuses the instance that was there before and the state stays with the
21
+ * slot rather than the row: filter a menu and item 3's toggle is now item 1's. Nothing errors,
22
+ * and the wrong row reads as checked.
23
+ *
24
+ * There is no identity to derive here — `label` is a `ReactNode`, not a string — which is why
25
+ * this is explicit rather than inferred. Controlled rows (`checked` / `value`) don't need it.
26
+ */
27
+ id?: string;
28
+ /** Group heading. */
29
+ group: React.ReactNode;
30
+ /** Rows in the cluster (any item kind, recursively). */
31
+ items: readonly DropdownMenuItem<V>[];
32
+ }
33
+ /** A submenu row — presence of `items` (with a `label`) makes it a submenu. Recursive. */
34
+ interface DropdownMenuSubmenuItem<V extends string = string> {
35
+ /**
36
+ * Stable identity for this row, used as its React key.
37
+ *
38
+ * Set it whenever `items` can be REORDERED or FILTERED and the row holds uncontrolled state
39
+ * (`defaultChecked` / `defaultValue`) or open state (a submenu). Without it a row keys by array
40
+ * POSITION, so React reuses the instance that was there before and the state stays with the
41
+ * slot rather than the row: filter a menu and item 3's toggle is now item 1's. Nothing errors,
42
+ * and the wrong row reads as checked.
43
+ *
44
+ * There is no identity to derive here — `label` is a `ReactNode`, not a string — which is why
45
+ * this is explicit rather than inferred. Controlled rows (`checked` / `value`) don't need it.
46
+ */
47
+ id?: string;
48
+ /** Row label. */
49
+ label: React.ReactNode;
50
+ /** Nested menu (same item union → multi-level). */
51
+ items: readonly DropdownMenuItem<V>[];
52
+ /** Leading icon, auto-sized to the menu `size`. */
53
+ leading?: React.ReactNode;
54
+ /**
55
+ * The branch that holds the current destination — takes the same brand mark as an
56
+ * active action row, but no `aria-current`: it is a path, not a destination, and
57
+ * only one element on a page may claim `aria-current`.
58
+ */
59
+ active?: boolean;
60
+ /** Disable the row (dimmed, not openable). */
61
+ disabled?: boolean;
62
+ /** Layout/spacing only, merged via `cn()`. */
63
+ className?: string;
64
+ }
65
+ /** A checkbox (toggle) row. */
66
+ interface DropdownMenuCheckboxItem {
67
+ type: "checkbox";
68
+ /**
69
+ * Stable identity for this row, used as its React key.
70
+ *
71
+ * Set it whenever `items` can be REORDERED or FILTERED and the row holds uncontrolled state
72
+ * (`defaultChecked` / `defaultValue`) or open state (a submenu). Without it a row keys by array
73
+ * POSITION, so React reuses the instance that was there before and the state stays with the
74
+ * slot rather than the row: filter a menu and item 3's toggle is now item 1's. Nothing errors,
75
+ * and the wrong row reads as checked.
76
+ *
77
+ * There is no identity to derive here — `label` is a `ReactNode`, not a string — which is why
78
+ * this is explicit rather than inferred. Controlled rows (`checked` / `value`) don't need it.
79
+ */
80
+ id?: string;
81
+ /** Row label. */
82
+ label: React.ReactNode;
83
+ /** Controlled checked state. */
84
+ checked?: boolean;
85
+ /** Uncontrolled initial state. @default false */
86
+ defaultChecked?: boolean;
87
+ /** Fires on toggle. */
88
+ onCheckedChange?: (checked: boolean) => void;
89
+ /** Optional leading icon (moves the selection marker trailing). */
90
+ leading?: React.ReactNode;
91
+ /** Selection marker: brand checkmark or a real checkbox box. @default "checkmark" */
92
+ selectionIndicator?: DropdownMenuSelectionIndicator;
93
+ /** Disable the row. */
94
+ disabled?: boolean;
95
+ /** Layout/spacing only, merged via `cn()`. */
96
+ className?: string;
97
+ }
98
+ /** A radio cluster — single-select among `options`.
99
+ *
100
+ * `V` is the union of radio values in the WHOLE menu, not just this cluster: `items` is one
101
+ * heterogeneous recursive array, so TypeScript infers a single `V` across every cluster in it and
102
+ * cannot give each cluster its own union without changing the authoring shape to a factory call
103
+ * (which AGENTS §11 rules out — `items` is plain data). The check that matters still lands: a
104
+ * `value` matching NO radio option anywhere in the menu is a compile error instead of a cluster
105
+ * that renders nothing selected. See `docs/type-safety-policy.md`. */
106
+ interface DropdownMenuRadioItem<V extends string = string> {
107
+ type: "radio";
108
+ /**
109
+ * Stable identity for this row, used as its React key.
110
+ *
111
+ * Set it whenever `items` can be REORDERED or FILTERED and the row holds uncontrolled state
112
+ * (`defaultChecked` / `defaultValue`) or open state (a submenu). Without it a row keys by array
113
+ * POSITION, so React reuses the instance that was there before and the state stays with the
114
+ * slot rather than the row: filter a menu and item 3's toggle is now item 1's. Nothing errors,
115
+ * and the wrong row reads as checked.
116
+ *
117
+ * There is no identity to derive here — `label` is a `ReactNode`, not a string — which is why
118
+ * this is explicit rather than inferred. Controlled rows (`checked` / `value`) don't need it.
119
+ */
120
+ id?: string;
121
+ /** Value → single-select cluster of `options`. */
122
+ options: ReadonlyArray<{
123
+ /** Value this row selects. */
124
+ value: V;
125
+ /** Row label. */
126
+ label: React.ReactNode;
127
+ /** Optional leading icon (moves the checkmark trailing). */
128
+ leading?: React.ReactNode;
129
+ /** Disable the row. */
130
+ disabled?: boolean;
131
+ /** Layout/spacing only, merged via `cn()`. */
132
+ className?: string;
133
+ }>;
134
+ /** Controlled selected value — checked against the menu's radio options. */
135
+ value?: NoInfer<V>;
136
+ /** Uncontrolled initial value — checked the same way. */
137
+ defaultValue?: NoInfer<V>;
138
+ /** Fires on selection change. */
139
+ onValueChange?: (value: V) => void;
140
+ /** Optional heading above the cluster. */
141
+ label?: React.ReactNode;
142
+ }
143
+ /** A plain action row (the default kind). */
144
+ interface DropdownMenuActionItem {
145
+ /**
146
+ * Stable identity for this row, used as its React key.
147
+ *
148
+ * Set it whenever `items` can be REORDERED or FILTERED and the row holds uncontrolled state
149
+ * (`defaultChecked` / `defaultValue`) or open state (a submenu). Without it a row keys by array
150
+ * POSITION, so React reuses the instance that was there before and the state stays with the
151
+ * slot rather than the row: filter a menu and item 3's toggle is now item 1's. Nothing errors,
152
+ * and the wrong row reads as checked.
153
+ *
154
+ * There is no identity to derive here — `label` is a `ReactNode`, not a string — which is why
155
+ * this is explicit rather than inferred. Controlled rows (`checked` / `value`) don't need it.
156
+ */
157
+ id?: string;
158
+ /** Row label. */
159
+ label: React.ReactNode;
160
+ /** Leading icon, auto-sized to the menu `size`. */
161
+ leading?: React.ReactNode;
162
+ /** Trailing node (icon/badge/kbd) — renders after `shortcut`. */
163
+ trailing?: React.ReactNode;
164
+ /** Trailing keyboard-shortcut hint (muted). */
165
+ shortcut?: string;
166
+ /** Tone; `destructive` renders error fg + error-soft highlight. @default "default" */
167
+ variant?: DropdownMenuItemVariant;
168
+ /**
169
+ * This row is where you already are — renders the brand current-destination mark and
170
+ * `aria-current="page"`. It is NOT selection (`type: "checkbox"` / `"radio"`), which
171
+ * answers "what did you pick": this answers "which one are you on", the state a menu
172
+ * used as navigation needs — a collapsed `<SidebarNavigation>` branch flies out as one of these.
173
+ */
174
+ active?: boolean;
175
+ /** Disable the row. */
176
+ disabled?: boolean;
177
+ /** Click handler (the menu closes on click unless `closeOnClick={false}`). */
178
+ onClick?: (event: React.MouseEvent<HTMLElement>) => void;
179
+ /** Render the row as a link to this href. */
180
+ href?: string;
181
+ /** Keep the menu open after a click. @default false (closes) */
182
+ closeOnClick?: boolean;
183
+ /** Layout/spacing only, merged via `cn()`. */
184
+ className?: string;
185
+ }
186
+ type DropdownMenuItem<V extends string = string> = DropdownMenuSeparatorItem | DropdownMenuGroupItem<V> | DropdownMenuCheckboxItem | DropdownMenuRadioItem<V> | DropdownMenuSubmenuItem<V> | DropdownMenuActionItem;
187
+ interface DropdownMenuProps<V extends string = string> {
188
+ /** The whole menu, as data (action / separator / group / submenu / checkbox / radio; recursive). */
189
+ items: readonly DropdownMenuItem<V>[];
190
+ /** Element that opens the menu (e.g. a `<Button>` / `<ButtonUtility>`), wired via Base UI's render. */
191
+ trigger?: React.ReactElement;
192
+ /** Density of every row. @default "md" */
193
+ size?: DropdownMenuSize;
194
+ /** Preferred placement against the trigger. @default "bottom" */
195
+ side?: DropdownMenuSide;
196
+ /** Alignment along the chosen side. @default "start" */
197
+ align?: DropdownMenuAlign;
198
+ /** Controlled open state. */
199
+ open?: boolean;
200
+ /** Uncontrolled initial open state. @default false */
201
+ defaultOpen?: boolean;
202
+ /** Fires when the open state changes. */
203
+ onOpenChange?: (open: boolean) => void;
204
+ /** Trap focus + lock background scroll while open. @default true */
205
+ modal?: boolean;
206
+ /** Pinned node above the item list (e.g. a profile card). Renders with a bottom hairline. */
207
+ header?: React.ReactNode;
208
+ /** Pinned node below the item list (e.g. an action button). Renders with a top hairline. */
209
+ footer?: React.ReactNode;
210
+ /** Layout/spacing overrides for the popup only (merged via `cn()`). */
211
+ className?: string;
212
+ }
213
+ declare function DropdownMenu<V extends string = string>(props: DropdownMenuProps<V>): React.JSX.Element;
214
+ declare namespace DropdownMenu {
215
+ var displayName: string;
216
+ }
217
+
218
+ export { DropdownMenu, type DropdownMenuActionItem, type DropdownMenuAlign, type DropdownMenuCheckboxItem, type DropdownMenuGroupItem, type DropdownMenuItem, type DropdownMenuItemVariant, type DropdownMenuProps, type DropdownMenuRadioItem, type DropdownMenuSelectionIndicator, type DropdownMenuSeparatorItem, type DropdownMenuSide, type DropdownMenuSize, type DropdownMenuSubmenuItem };
@@ -0,0 +1,10 @@
1
+ "use client";export { DropdownMenu } from './chunk-JP26LPCY.js';
2
+ import './chunk-ZZT2E5VT.js';
3
+ import './chunk-52IFGFTL.js';
4
+ import './chunk-O2LG3PNI.js';
5
+ import './chunk-EDSK6FEH.js';
6
+ import './chunk-24TO7E32.js';
7
+ import './chunk-O4GRKO3I.js';
8
+ import './chunk-ZSNJ6UA3.js';
9
+ //# sourceMappingURL=dropdown-menu.js.map
10
+ //# sourceMappingURL=dropdown-menu.js.map
@@ -0,0 +1,42 @@
1
+ import { useRender } from '@base-ui/react/use-render';
2
+ import * as React from 'react';
3
+
4
+ interface FileTriggerState {
5
+ /** Opens the OS file dialog. Wire it to every element that should pick a file. */
6
+ open: () => void;
7
+ }
8
+ interface FileTriggerProps extends Omit<useRender.ComponentProps<"button">, "children"> {
9
+ /** Accepted file types (native `accept` attribute, e.g. `"image/*"` or `".pdf,.docx"`). */
10
+ accept?: string;
11
+ /** Allow selecting more than one file. @default false */
12
+ multiple?: boolean;
13
+ /** Mobile capture: open the camera directly (native `capture` attribute) —
14
+ * `"user"` = front camera, `"environment"` = rear. Desktop falls back to the dialog. */
15
+ defaultCamera?: "user" | "environment";
16
+ /** Select a directory instead of individual files (`webkitdirectory`);
17
+ * the selection expands to every file inside it. @default false */
18
+ acceptDirectory?: boolean;
19
+ /** Fires with the selected files whenever the user picks. */
20
+ onFilesChange?: (files: File[]) => void;
21
+ /** Form name for the HIDDEN file input (not the trigger element) — set it and the
22
+ * selection rides a native `<form>` submit / `FormData`. The input is CSS-hidden, so
23
+ * it still submits, but the browser cannot anchor a `required` bubble to it: validate
24
+ * in `onFilesChange`, or bind the field through `jenosize-ui/form`. */
25
+ name?: string;
26
+ /**
27
+ * Trigger content, in one of two forms:
28
+ * - a **node** — it labels the trigger we render (a `<button>`, or whatever `render`
29
+ * supplies), which opens the dialog on click;
30
+ * - a **function** `({ open }) => …` — we render NO trigger; you compose your own UI
31
+ * and call `open()` from as many elements as you like (an `<Input>` plus its add-on
32
+ * `<Button>`, a card, a menu item). `render` is ignored in this form.
33
+ */
34
+ children?: React.ReactNode | ((state: FileTriggerState) => React.ReactNode);
35
+ }
36
+ /** A headless file-dialog opener: renders its trigger (a `<button>` by default, or
37
+ * anything via `render`) plus a hidden `<input type="file">`. Clearing the input
38
+ * before each open means re-selecting the same file still fires `onFilesChange`
39
+ * (UUI `FileTrigger` behavior). */
40
+ declare function FileTrigger(props: FileTriggerProps): React.JSX.Element;
41
+
42
+ export { FileTrigger, type FileTriggerProps, type FileTriggerState };
@@ -0,0 +1,3 @@
1
+ "use client";export { FileTrigger } from './chunk-DJSXIAFH.js';
2
+ //# sourceMappingURL=file-trigger.js.map
3
+ //# sourceMappingURL=file-trigger.js.map