jenosize-ui 0.1.0 → 0.2.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 (169) hide show
  1. package/README.md +10 -7
  2. package/dist/Cartesian-ZIKPEYWP.d.ts +26 -0
  3. package/dist/area-chart.d.ts +53 -0
  4. package/dist/area-chart.js +8 -0
  5. package/dist/avatar.d.ts +19 -0
  6. package/dist/avatar.js +12 -7
  7. package/dist/badge.js +5 -5
  8. package/dist/bar-chart.d.ts +31 -0
  9. package/dist/bar-chart.js +8 -0
  10. package/dist/breadcrumb.js +3 -3
  11. package/dist/button.d.ts +11 -1
  12. package/dist/button.js +9 -8
  13. package/dist/calendar.js +14 -12
  14. package/dist/callout.js +10 -9
  15. package/dist/card.d.ts +52 -2
  16. package/dist/card.js +6 -2
  17. package/dist/checkbox.js +6 -5
  18. package/dist/chunk-34J5AANZ.js +605 -0
  19. package/dist/{chunk-D6TPWNRK.js → chunk-3GT43XPK.js} +5 -5
  20. package/dist/{chunk-3Y5X7B5C.js → chunk-3Z3SDKIA.js} +6 -11
  21. package/dist/{chunk-MQGD2OUF.js → chunk-42FCPC77.js} +3 -3
  22. package/dist/{chunk-Z3ETJN5G.js → chunk-4BRMM3I5.js} +6 -11
  23. package/dist/{chunk-WZQFC7ZN.js → chunk-4HKDD3PR.js} +55 -16
  24. package/dist/chunk-4K6V6NNK.js +169 -0
  25. package/dist/{chunk-ZZA2LUTL.js → chunk-4R7WDDCW.js} +41 -16
  26. package/dist/{chunk-BJUZVYQC.js → chunk-4W6AYGLR.js} +12 -12
  27. package/dist/{chunk-4OLULPQG.js → chunk-54S5CUY6.js} +8 -5
  28. package/dist/{chunk-GRLSUQQE.js → chunk-5JRM3OES.js} +4 -4
  29. package/dist/chunk-5ZPUAGOP.js +19 -0
  30. package/dist/{chunk-W5GGOUUI.js → chunk-6HJA7NPL.js} +3 -3
  31. package/dist/{chunk-CME4DIML.js → chunk-6IUTVDNI.js} +22 -3
  32. package/dist/chunk-6UBYHSBX.js +147 -0
  33. package/dist/{chunk-HMUZE6EK.js → chunk-74HPBSVY.js} +3 -3
  34. package/dist/chunk-75M43ELV.js +366 -0
  35. package/dist/chunk-763VS2FY.js +10 -0
  36. package/dist/chunk-7HV6EIGZ.js +26 -0
  37. package/dist/chunk-7VLYQR4D.js +44 -0
  38. package/dist/{chunk-D5BTFSL7.js → chunk-A46ED5JQ.js} +3 -3
  39. package/dist/{chunk-W46K56XU.js → chunk-A5WQLN4B.js} +8 -24
  40. package/dist/chunk-AC6ZWKRN.js +23 -0
  41. package/dist/{chunk-E7ZSWBAK.js → chunk-BD5YKFRA.js} +4 -4
  42. package/dist/chunk-BLIZ3CL3.js +49 -0
  43. package/dist/{chunk-DRZCJCBO.js → chunk-BNIWT6CW.js} +4 -4
  44. package/dist/{chunk-JVJRHBTD.js → chunk-C6OTOTKI.js} +21 -8
  45. package/dist/chunk-CTENRS34.js +60 -0
  46. package/dist/{chunk-7IU5TMFL.js → chunk-CWMFEF6R.js} +75 -27
  47. package/dist/{chunk-JTNFJLIY.js → chunk-DCGTB7P7.js} +13 -13
  48. package/dist/{chunk-GFOAJVW5.js → chunk-DJYWPJZ3.js} +3 -3
  49. package/dist/{chunk-MUFHLP4S.js → chunk-DTMYD63D.js} +11 -22
  50. package/dist/{chunk-KDLPXXD2.js → chunk-EDOUI2BG.js} +4 -4
  51. package/dist/{chunk-R6RGJF4L.js → chunk-EDT5J5WK.js} +4 -4
  52. package/dist/{chunk-PWKWNDBS.js → chunk-EX374YWB.js} +6 -6
  53. package/dist/{chunk-F2K7VJUV.js → chunk-FFTRB2UU.js} +4 -4
  54. package/dist/chunk-FIGBJGH2.js +1474 -0
  55. package/dist/chunk-FKVPAEJ6.js +57 -0
  56. package/dist/{chunk-J7ZQQFPT.js → chunk-FZBZGA3P.js} +17 -17
  57. package/dist/{chunk-T7FCG7XV.js → chunk-GAFGIT4Q.js} +10 -10
  58. package/dist/chunk-HSVBTIP2.js +482 -0
  59. package/dist/{chunk-FHHAPGCR.js → chunk-ILICYNK7.js} +3 -3
  60. package/dist/{chunk-WFY7DKQD.js → chunk-JAVNGTOE.js} +9 -14
  61. package/dist/{chunk-7HOIZ3UO.js → chunk-JMWYCT63.js} +6 -6
  62. package/dist/{chunk-QA74ITR4.js → chunk-JUWDRRD6.js} +45 -17
  63. package/dist/{chunk-BVJWBYIG.js → chunk-JXHZHUB3.js} +4 -4
  64. package/dist/{chunk-VWC72TR3.js → chunk-JYBGO6GY.js} +7 -7
  65. package/dist/{chunk-J36M3KRX.js → chunk-L53Y7KUV.js} +13 -11
  66. package/dist/chunk-LBYCCLVI.js +33 -0
  67. package/dist/chunk-LCG34A5T.js +98 -0
  68. package/dist/chunk-M5TVCASC.js +75 -0
  69. package/dist/chunk-MCUASLZH.js +10 -0
  70. package/dist/{chunk-5RAPA22E.js → chunk-MD4AR43X.js} +4 -4
  71. package/dist/{chunk-JP26LPCY.js → chunk-MYQ3FD4Y.js} +25 -11
  72. package/dist/chunk-NA35YZRD.js +252 -0
  73. package/dist/chunk-NKDW6C7K.js +10 -0
  74. package/dist/{chunk-5NOBSXJN.js → chunk-NMERLWT7.js} +6 -6
  75. package/dist/{chunk-KMSYEE23.js → chunk-P6CON2R2.js} +25 -11
  76. package/dist/{chunk-LME57Z6J.js → chunk-P7DH62UY.js} +6 -6
  77. package/dist/chunk-PO2TYK3C.js +17 -0
  78. package/dist/{chunk-5FATN5YD.js → chunk-PXEJ5RKO.js} +4 -4
  79. package/dist/{chunk-JYGR44ZC.js → chunk-QBHQOX23.js} +6 -6
  80. package/dist/{chunk-GCVA3OIV.js → chunk-QDYE5LVT.js} +13 -3
  81. package/dist/{chunk-J2BCKBHC.js → chunk-QKDEQFOQ.js} +4 -4
  82. package/dist/{chunk-ZOOX3TUB.js → chunk-RIXEUAPY.js} +5 -5
  83. package/dist/{chunk-THC2ISYP.js → chunk-RNXRZGXN.js} +4 -4
  84. package/dist/{chunk-7EWQKTNQ.js → chunk-T2WAD4QP.js} +15 -13
  85. package/dist/{chunk-KNYKWUYX.js → chunk-TBN644IN.js} +3 -3
  86. package/dist/{chunk-MKC5HNA7.js → chunk-USL3TDZM.js} +101 -90
  87. package/dist/{chunk-CYPPEUX5.js → chunk-VEOYCAJP.js} +4 -9
  88. package/dist/{chunk-WEUJYDCV.js → chunk-VH35QHD4.js} +6 -6
  89. package/dist/chunk-VWGAMOSE.js +188 -0
  90. package/dist/{chunk-SV56BSUQ.js → chunk-WKWAUU64.js} +4 -4
  91. package/dist/chunk-X2X7Q7NW.js +17 -0
  92. package/dist/{chunk-I7WU4GTY.js → chunk-YLEHYDXC.js} +5 -5
  93. package/dist/combobox.js +12 -10
  94. package/dist/control-size-CaxQhkKh.d.ts +3 -0
  95. package/dist/date-input.js +9 -8
  96. package/dist/date-picker.js +20 -17
  97. package/dist/dialog.d.ts +16 -4
  98. package/dist/dialog.js +8 -6
  99. package/dist/drawer.d.ts +9 -2
  100. package/dist/drawer.js +7 -5
  101. package/dist/dropdown-menu.d.ts +14 -2
  102. package/dist/dropdown-menu.js +7 -3
  103. package/dist/dropzone.d.ts +34 -0
  104. package/dist/dropzone.js +22 -0
  105. package/dist/form.d.ts +78 -0
  106. package/dist/form.js +176 -32
  107. package/dist/header-navigation.d.ts +15 -4
  108. package/dist/header-navigation.js +19 -14
  109. package/dist/index.d.ts +26 -4
  110. package/dist/index.js +76 -56
  111. package/dist/indicator.js +4 -4
  112. package/dist/input.js +8 -7
  113. package/dist/kanban-board.d.ts +549 -0
  114. package/dist/kanban-board.js +23 -0
  115. package/dist/line-chart.d.ts +35 -0
  116. package/dist/line-chart.js +8 -0
  117. package/dist/{nav-Bla0o_-1.d.ts → nav-DcCyt00p.d.ts} +8 -11
  118. package/dist/number-input.js +8 -7
  119. package/dist/pagination.js +12 -9
  120. package/dist/panel-El4oI68p.d.ts +9 -0
  121. package/dist/payment-input.js +8 -7
  122. package/dist/pie-chart.d.ts +60 -0
  123. package/dist/pie-chart.js +8 -0
  124. package/dist/popover.d.ts +9 -3
  125. package/dist/popover.js +7 -5
  126. package/dist/progress-steps.d.ts +275 -0
  127. package/dist/progress-steps.js +8 -0
  128. package/dist/progress.js +2 -2
  129. package/dist/radar-chart.d.ts +73 -0
  130. package/dist/radar-chart.js +8 -0
  131. package/dist/radial-chart.d.ts +69 -0
  132. package/dist/radial-chart.js +8 -0
  133. package/dist/radio.js +6 -5
  134. package/dist/rule-BqzaIwJy.d.ts +80 -0
  135. package/dist/scroll-area.d.ts +62 -0
  136. package/dist/scroll-area.js +7 -0
  137. package/dist/select.d.ts +1 -2
  138. package/dist/select.js +15 -13
  139. package/dist/separator.d.ts +114 -0
  140. package/dist/separator.js +5 -0
  141. package/dist/sidebar-navigation.d.ts +54 -7
  142. package/dist/sidebar-navigation.js +15 -8
  143. package/dist/skeleton.d.ts +61 -0
  144. package/dist/skeleton.js +5 -0
  145. package/dist/styles.css +1 -1
  146. package/dist/surface-DFyDnrTJ.d.ts +34 -0
  147. package/dist/switch.js +2 -2
  148. package/dist/table.d.ts +94 -38
  149. package/dist/table.js +32 -28
  150. package/dist/tabs.js +2 -2
  151. package/dist/tag-input.js +11 -10
  152. package/dist/tag.js +3 -3
  153. package/dist/textarea.js +6 -5
  154. package/dist/theme.css +82 -0
  155. package/dist/theme.js +10 -9
  156. package/dist/toast.js +10 -9
  157. package/dist/tooltip-surface-Dmvb8v5K.d.ts +35 -0
  158. package/dist/tooltip.d.ts +15 -1
  159. package/dist/tooltip.js +3 -2
  160. package/dist/tree.js +6 -5
  161. package/dist/types-6kvYwtRH.d.ts +156 -0
  162. package/dist/use-uploads-ButS4dGe.d.ts +473 -0
  163. package/dist/verification-code-input.d.ts +84 -0
  164. package/dist/verification-code-input.js +13 -0
  165. package/package.json +59 -9
  166. package/dist/card-nWicloNi.d.ts +0 -80
  167. package/dist/chunk-24TO7E32.js +0 -42
  168. package/dist/chunk-FXIBGTS5.js +0 -14
  169. package/dist/chunk-ZZT2E5VT.js +0 -24
package/dist/combobox.js CHANGED
@@ -1,21 +1,23 @@
1
- "use client";export { Combobox } from './chunk-MUFHLP4S.js';
1
+ "use client";export { Combobox } from './chunk-DTMYD63D.js';
2
2
  import './chunk-F6NLE6XJ.js';
3
3
  import './chunk-7EUAMHMU.js';
4
- import './chunk-FHHAPGCR.js';
5
- import './chunk-7JBNLEJ7.js';
6
- import './chunk-W5GGOUUI.js';
4
+ import './chunk-ILICYNK7.js';
5
+ import './chunk-6HJA7NPL.js';
7
6
  import './chunk-4P2NBLBW.js';
7
+ import './chunk-FKVPAEJ6.js';
8
+ import './chunk-7JBNLEJ7.js';
8
9
  import './chunk-DWKILXHE.js';
9
- import './chunk-QA74ITR4.js';
10
- import './chunk-KNYKWUYX.js';
10
+ import './chunk-JUWDRRD6.js';
11
+ import './chunk-TBN644IN.js';
11
12
  import './chunk-52IFGFTL.js';
12
13
  import './chunk-O2LG3PNI.js';
13
14
  import './chunk-EDSK6FEH.js';
14
- import './chunk-J2BCKBHC.js';
15
- import './chunk-24TO7E32.js';
16
- import './chunk-ZZA2LUTL.js';
15
+ import './chunk-QKDEQFOQ.js';
16
+ import './chunk-4R7WDDCW.js';
17
+ import './chunk-AC6ZWKRN.js';
17
18
  import './chunk-O4GRKO3I.js';
18
- import './chunk-GCVA3OIV.js';
19
+ import './chunk-BLIZ3CL3.js';
20
+ import './chunk-QDYE5LVT.js';
19
21
  import './chunk-ZSNJ6UA3.js';
20
22
  //# sourceMappingURL=combobox.js.map
21
23
  //# sourceMappingURL=combobox.js.map
@@ -0,0 +1,3 @@
1
+ type ControlSize = "sm" | "md" | "lg";
2
+
3
+ export type { ControlSize as C };
@@ -1,16 +1,17 @@
1
- "use client";export { DateInput } from './chunk-5NOBSXJN.js';
2
- import './chunk-GFOAJVW5.js';
1
+ "use client";export { DateInput } from './chunk-NMERLWT7.js';
2
+ import './chunk-DJYWPJZ3.js';
3
3
  import './chunk-7EUAMHMU.js';
4
- import './chunk-QA74ITR4.js';
5
- import './chunk-KNYKWUYX.js';
4
+ import './chunk-JUWDRRD6.js';
5
+ import './chunk-TBN644IN.js';
6
6
  import './chunk-52IFGFTL.js';
7
7
  import './chunk-O2LG3PNI.js';
8
8
  import './chunk-EDSK6FEH.js';
9
- import './chunk-J2BCKBHC.js';
10
- import './chunk-24TO7E32.js';
11
- import './chunk-ZZA2LUTL.js';
9
+ import './chunk-QKDEQFOQ.js';
10
+ import './chunk-4R7WDDCW.js';
11
+ import './chunk-AC6ZWKRN.js';
12
12
  import './chunk-O4GRKO3I.js';
13
- import './chunk-GCVA3OIV.js';
13
+ import './chunk-BLIZ3CL3.js';
14
+ import './chunk-QDYE5LVT.js';
14
15
  import './chunk-ZSNJ6UA3.js';
15
16
  //# sourceMappingURL=date-input.js.map
16
17
  //# sourceMappingURL=date-input.js.map
@@ -1,29 +1,32 @@
1
- "use client";export { DATE_PRESETS, DateCalendar, DatePicker, DateRangeCalendar, DateRangePicker, resolvePreset } from './chunk-JTNFJLIY.js';
2
- import './chunk-5RAPA22E.js';
3
- import './chunk-3Y5X7B5C.js';
4
- import './chunk-CYPPEUX5.js';
5
- import './chunk-J7ZQQFPT.js';
1
+ "use client";export { DATE_PRESETS, DateCalendar, DatePicker, DateRangeCalendar, DateRangePicker, resolvePreset } from './chunk-DCGTB7P7.js';
2
+ import './chunk-MD4AR43X.js';
3
+ import './chunk-3Z3SDKIA.js';
4
+ import './chunk-VEOYCAJP.js';
5
+ import './chunk-FZBZGA3P.js';
6
6
  import './chunk-MFJP5FA7.js';
7
- import './chunk-5NOBSXJN.js';
8
- import './chunk-GFOAJVW5.js';
9
- import './chunk-W46K56XU.js';
10
- import './chunk-CME4DIML.js';
11
- import './chunk-MQGD2OUF.js';
12
- import './chunk-JVJRHBTD.js';
7
+ import './chunk-LCG34A5T.js';
8
+ import './chunk-NMERLWT7.js';
9
+ import './chunk-DJYWPJZ3.js';
10
+ import './chunk-A5WQLN4B.js';
11
+ import './chunk-42FCPC77.js';
12
+ import './chunk-C6OTOTKI.js';
13
+ import './chunk-6IUTVDNI.js';
13
14
  import './chunk-7EUAMHMU.js';
14
15
  import './chunk-7S2TBALK.js';
15
16
  import './chunk-S7NNXWIN.js';
17
+ import './chunk-FKVPAEJ6.js';
16
18
  import './chunk-DWKILXHE.js';
17
- import './chunk-QA74ITR4.js';
18
- import './chunk-KNYKWUYX.js';
19
+ import './chunk-JUWDRRD6.js';
20
+ import './chunk-TBN644IN.js';
19
21
  import './chunk-52IFGFTL.js';
20
22
  import './chunk-O2LG3PNI.js';
21
23
  import './chunk-EDSK6FEH.js';
22
- import './chunk-J2BCKBHC.js';
23
- import './chunk-24TO7E32.js';
24
- import './chunk-ZZA2LUTL.js';
24
+ import './chunk-QKDEQFOQ.js';
25
+ import './chunk-4R7WDDCW.js';
26
+ import './chunk-AC6ZWKRN.js';
25
27
  import './chunk-O4GRKO3I.js';
26
- import './chunk-GCVA3OIV.js';
28
+ import './chunk-BLIZ3CL3.js';
29
+ import './chunk-QDYE5LVT.js';
27
30
  import './chunk-ZSNJ6UA3.js';
28
31
  //# sourceMappingURL=date-picker.js.map
29
32
  //# sourceMappingURL=date-picker.js.map
package/dist/dialog.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { a as DialogSize, D as DialogFooter } from './shared-BNXAdgh2.js';
3
+ import { P as PanelDividers } from './panel-El4oI68p.js';
4
+ import './rule-BqzaIwJy.js';
3
5
 
4
6
  interface AlertDialogProps {
5
7
  /** Opens the dialog from your own element (e.g. a `<Button>`) and wires focus-return
@@ -15,8 +17,13 @@ interface AlertDialogProps {
15
17
  size?: DialogSize;
16
18
  /** Render the top-right close icon button. @default false */
17
19
  showClose?: boolean;
18
- /** Draw a full-bleed hairline between the header and body, and the body and footer. @default true */
19
- dividers?: boolean;
20
+ /**
21
+ * Full-bleed rule between the header and body, and the body and footer — in the library-wide
22
+ * texture vocabulary (`line` · `dot` · `dashed`), with `"none"` naming the off state. All three
23
+ * draw the same token; the texture changes the ink, never the colour. See `docs/rule-policy.md`.
24
+ * @default "line"
25
+ */
26
+ dividers?: PanelDividers;
20
27
  /** Keep the portal mounted (hidden) while closed, preserving body state instead of unmounting. @default false */
21
28
  keepMounted?: boolean;
22
29
  /** Title text (wired to `aria-labelledby`). Provide this or `aria-label`. */
@@ -55,8 +62,13 @@ interface DialogProps {
55
62
  size?: DialogSize;
56
63
  /** Render the top-right close icon button. @default true */
57
64
  showClose?: boolean;
58
- /** Draw a full-bleed hairline between the header and body, and the body and footer. @default true */
59
- dividers?: boolean;
65
+ /**
66
+ * Full-bleed rule between the header and body, and the body and footer — in the library-wide
67
+ * texture vocabulary (`line` · `dot` · `dashed`), with `"none"` naming the off state. All three
68
+ * draw the same token; the texture changes the ink, never the colour. See `docs/rule-policy.md`.
69
+ * @default "line"
70
+ */
71
+ dividers?: PanelDividers;
60
72
  /** Keep the portal mounted (hidden) while closed, preserving body state instead of unmounting. @default false */
61
73
  keepMounted?: boolean;
62
74
  /** Allow closing via backdrop click and `Esc`. The close icon and footer still close when `false`. @default true */
package/dist/dialog.js CHANGED
@@ -1,15 +1,17 @@
1
- "use client";export { Dialog } from './chunk-E7ZSWBAK.js';
2
- export { AlertDialog } from './chunk-THC2ISYP.js';
3
- import './chunk-CYPPEUX5.js';
4
- import './chunk-J7ZQQFPT.js';
1
+ "use client";export { Dialog } from './chunk-BD5YKFRA.js';
2
+ export { AlertDialog } from './chunk-RNXRZGXN.js';
3
+ import './chunk-VEOYCAJP.js';
4
+ import './chunk-FZBZGA3P.js';
5
5
  import './chunk-MFJP5FA7.js';
6
- import './chunk-MQGD2OUF.js';
6
+ import './chunk-LCG34A5T.js';
7
+ import './chunk-42FCPC77.js';
7
8
  import './chunk-S7NNXWIN.js';
9
+ import './chunk-FKVPAEJ6.js';
8
10
  import './chunk-52IFGFTL.js';
9
11
  import './chunk-O2LG3PNI.js';
10
12
  import './chunk-EDSK6FEH.js';
11
- import './chunk-24TO7E32.js';
12
13
  import './chunk-O4GRKO3I.js';
14
+ import './chunk-BLIZ3CL3.js';
13
15
  import './chunk-ZSNJ6UA3.js';
14
16
  //# sourceMappingURL=dialog.js.map
15
17
  //# sourceMappingURL=dialog.js.map
package/dist/drawer.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import * as React from 'react';
2
+ import { P as PanelDividers } from './panel-El4oI68p.js';
2
3
  import { D as DialogFooter } from './shared-BNXAdgh2.js';
4
+ import './rule-BqzaIwJy.js';
3
5
 
4
6
  type DrawerSide = "left" | "right" | "top" | "bottom";
5
7
  type DrawerSize = "sm" | "md" | "lg" | "fit";
@@ -30,8 +32,13 @@ interface DrawerProps {
30
32
  size?: DrawerSize;
31
33
  /** Render the top-right close icon button. @default true */
32
34
  showClose?: boolean;
33
- /** Draw a full-bleed hairline between the header and body, and the body and footer. @default true */
34
- dividers?: boolean;
35
+ /**
36
+ * Full-bleed rule between the header and body, and the body and footer — in the library-wide
37
+ * texture vocabulary (`line` · `dot` · `dashed`), with `"none"` naming the off state. All three
38
+ * draw the same token; the texture changes the ink, never the colour. See `docs/rule-policy.md`.
39
+ * @default "line"
40
+ */
41
+ dividers?: PanelDividers;
35
42
  /** Keep the portal mounted (hidden) while closed, preserving body state instead of unmounting. @default false */
36
43
  keepMounted?: boolean;
37
44
  /** Allow closing via backdrop click, swipe, `Esc`, and the Android back gesture. The close icon,
package/dist/drawer.js CHANGED
@@ -1,14 +1,16 @@
1
- "use client";export { Drawer } from './chunk-Z3ETJN5G.js';
2
- import './chunk-CYPPEUX5.js';
3
- import './chunk-J7ZQQFPT.js';
1
+ "use client";export { Drawer } from './chunk-4BRMM3I5.js';
2
+ import './chunk-VEOYCAJP.js';
3
+ import './chunk-FZBZGA3P.js';
4
4
  import './chunk-MFJP5FA7.js';
5
- import './chunk-MQGD2OUF.js';
5
+ import './chunk-LCG34A5T.js';
6
+ import './chunk-42FCPC77.js';
6
7
  import './chunk-S7NNXWIN.js';
8
+ import './chunk-FKVPAEJ6.js';
7
9
  import './chunk-52IFGFTL.js';
8
10
  import './chunk-O2LG3PNI.js';
9
11
  import './chunk-EDSK6FEH.js';
10
- import './chunk-24TO7E32.js';
11
12
  import './chunk-O4GRKO3I.js';
13
+ import './chunk-BLIZ3CL3.js';
12
14
  import './chunk-ZSNJ6UA3.js';
13
15
  //# sourceMappingURL=drawer.js.map
14
16
  //# sourceMappingURL=drawer.js.map
@@ -1,4 +1,6 @@
1
1
  import * as React from 'react';
2
+ import { P as PanelDividers } from './panel-El4oI68p.js';
3
+ import './rule-BqzaIwJy.js';
2
4
 
3
5
  type DropdownMenuSize = "sm" | "md" | "lg";
4
6
  type DropdownMenuSide = "top" | "right" | "bottom" | "left";
@@ -203,10 +205,20 @@ interface DropdownMenuProps<V extends string = string> {
203
205
  onOpenChange?: (open: boolean) => void;
204
206
  /** Trap focus + lock background scroll while open. @default true */
205
207
  modal?: boolean;
206
- /** Pinned node above the item list (e.g. a profile card). Renders with a bottom hairline. */
208
+ /** Pinned node above the item list (e.g. a profile card). Renders with a bottom rule. */
207
209
  header?: React.ReactNode;
208
- /** Pinned node below the item list (e.g. an action button). Renders with a top hairline. */
210
+ /** Pinned node below the item list (e.g. an action button). Renders with a top rule. */
209
211
  footer?: React.ReactNode;
212
+ /**
213
+ * How the rules under `header` and above `footer` are drawn — the library-wide texture vocabulary
214
+ * (`src/lib/rule.ts`), with `"none"` naming the off state. Same prop, same type and same default
215
+ * spelling as `Card` / `Dialog` / `Drawer` / `Popover`, because it is the same band seam.
216
+ *
217
+ * Only ever visible when `header` or `footer` is set: with neither, the popup has no bands to
218
+ * separate. The rule BETWEEN two menu items is a `{ separator: true }` item, not this.
219
+ * @default "line"
220
+ */
221
+ dividers?: PanelDividers;
210
222
  /** Layout/spacing overrides for the popup only (merged via `cn()`). */
211
223
  className?: string;
212
224
  }
@@ -1,10 +1,14 @@
1
- "use client";export { DropdownMenu } from './chunk-JP26LPCY.js';
2
- import './chunk-ZZT2E5VT.js';
1
+ "use client";export { DropdownMenu } from './chunk-MYQ3FD4Y.js';
2
+ import './chunk-FZBZGA3P.js';
3
+ import './chunk-MFJP5FA7.js';
4
+ import './chunk-LCG34A5T.js';
5
+ import './chunk-PO2TYK3C.js';
6
+ import './chunk-FKVPAEJ6.js';
3
7
  import './chunk-52IFGFTL.js';
4
8
  import './chunk-O2LG3PNI.js';
5
9
  import './chunk-EDSK6FEH.js';
6
- import './chunk-24TO7E32.js';
7
10
  import './chunk-O4GRKO3I.js';
11
+ import './chunk-BLIZ3CL3.js';
8
12
  import './chunk-ZSNJ6UA3.js';
9
13
  //# sourceMappingURL=dropdown-menu.js.map
10
14
  //# sourceMappingURL=dropdown-menu.js.map
@@ -0,0 +1,34 @@
1
+ import { c as FileExtension } from './use-uploads-ButS4dGe.js';
2
+ export { B as BucketResult, D as Dropzone, a as DropzoneProps, F as FILE_TONE, b as FILE_TONE_BUCKETS, d as FileList, e as FileListProps, f as FileListTreatment, g as FileRejectReason, h as FileRejection, i as FileRules, G as GLYPH_BOX, K as KnownFileExtension, U as UploadContext, j as UploadEvent, k as UploadFile, l as UploadStatus, m as UploadTransport, n as UseUploadsOptions, o as UseUploadsResult, p as bucketFiles, q as extensionTone, r as fileExtension, s as fileGlyphSource, t as fileTone, u as formatFileSize, v as invalidAcceptEntries, w as isFileTypeAccepted, x as reduceUpload, y as splitBatchProgress, z as toUploadFile, A as useUploads } from './use-uploads-ButS4dGe.js';
3
+ import * as React from 'react';
4
+ import '@base-ui/react/use-render';
5
+ import './color-CtSxc1Rh.js';
6
+
7
+ interface FileTypeGlyphProps {
8
+ /**
9
+ * The file TYPE, and the only input — required, because it is the whole subject of the component:
10
+ * a glyph with no type to name is not a file glyph, it is a rectangle.
11
+ *
12
+ * A bare extension, no dot (`"xlsx"`, `"pdf"`). NOT a file name and NOT a MIME string: parsing one
13
+ * of those is the caller's step, and `fileExtension` / `fileGlyphSource` are exported for exactly
14
+ * that. Taking a name here meant sniffing a vocabulary we own out of caller data, which is the
15
+ * looseness AGENTS §4 warns about — the prop described a filename while the component only ever
16
+ * used four characters of it.
17
+ *
18
+ * {@link FileExtension} is the 27 members of {@link FILE_TONE} plus any other string: the known
19
+ * set autocompletes and a typo is visible beside it, while a real `.parquet` still renders. The
20
+ * tone follows from this value and nothing else — see {@link extensionTone}.
21
+ *
22
+ * `""` is legal and draws the bare page, which is what an extensionless file (`Makefile`,
23
+ * `.env`, a name ending in a dot) resolves to.
24
+ */
25
+ extension: FileExtension;
26
+ /** Layout/spacing only, merged via `cn()`. */
27
+ className?: string;
28
+ }
29
+ /** Our own fixed chrome, so the whole tile is `aria-hidden`: the row's `<p>` already announces the
30
+ * file name, and a duplicated "PDF" is noise. This is NOT the slot-policy violation §4 warns about
31
+ * — that rule is about a CALLER's node, and `fileIcon` (the caller's seam) is never wrapped. */
32
+ declare function FileTypeGlyph({ extension, className }: FileTypeGlyphProps): React.JSX.Element;
33
+
34
+ export { FileExtension, FileTypeGlyph, type FileTypeGlyphProps };
@@ -0,0 +1,22 @@
1
+ "use client";export { reduceUpload, splitBatchProgress, useUploads } from './chunk-VWGAMOSE.js';
2
+ export { Dropzone, FILE_TONE, FILE_TONE_BUCKETS, FileList, FileTypeGlyph, GLYPH_BOX, bucketFiles, extensionTone, fileExtension, fileGlyphSource, fileTone, formatFileSize, invalidAcceptEntries, isFileTypeAccepted, toUploadFile } from './chunk-HSVBTIP2.js';
3
+ import './chunk-A46ED5JQ.js';
4
+ import './chunk-7VLYQR4D.js';
5
+ import './chunk-LCG34A5T.js';
6
+ import './chunk-DJSXIAFH.js';
7
+ import './chunk-A5WQLN4B.js';
8
+ import './chunk-42FCPC77.js';
9
+ import './chunk-C6OTOTKI.js';
10
+ import './chunk-6IUTVDNI.js';
11
+ import './chunk-DWKILXHE.js';
12
+ import './chunk-TBN644IN.js';
13
+ import './chunk-52IFGFTL.js';
14
+ import './chunk-QKDEQFOQ.js';
15
+ import './chunk-4R7WDDCW.js';
16
+ import './chunk-AC6ZWKRN.js';
17
+ import './chunk-O4GRKO3I.js';
18
+ import './chunk-BLIZ3CL3.js';
19
+ import './chunk-QDYE5LVT.js';
20
+ import './chunk-ZSNJ6UA3.js';
21
+ //# sourceMappingURL=dropzone.js.map
22
+ //# sourceMappingURL=dropzone.js.map
package/dist/form.d.ts CHANGED
@@ -5,6 +5,7 @@ import { a as ButtonProps } from './Button-Bt7pzM4R.js';
5
5
  import { CheckboxProps, CheckboxGroupProps, CheckboxGroupOption } from './checkbox.js';
6
6
  import { ComboboxProps, ComboboxOption } from './combobox.js';
7
7
  import { DateInputProps } from './date-input.js';
8
+ import { a as DropzoneProps, h as FileRejection, o as UseUploadsResult } from './use-uploads-ButS4dGe.js';
8
9
  import { InputProps } from './input.js';
9
10
  import { NumberInputProps } from './number-input.js';
10
11
  import { c as PaymentInputProps } from './PaymentInput-CKPIPNWH.js';
@@ -151,6 +152,25 @@ interface RegisteredField<T extends FieldValues = FieldValues> {
151
152
  optionValues?: string[];
152
153
  /** Whether the control is disabled (disabled controls are never validated). */
153
154
  disabled?: boolean;
155
+ /**
156
+ * A verdict that does NOT come from the value — evaluated BEFORE every rule, `required` included.
157
+ *
158
+ * Internal, set by `Form.Uploads` and nothing else. Three things it has to be, and `check` is none
159
+ * of them:
160
+ * · **first.** While the only row is still uploading the value is `[]`, so `required` would fire
161
+ * and tell the user to attach a file they already attached. "Wait for the uploads to finish"
162
+ * outranks every rule, because no rule can be satisfied yet.
163
+ * · **run on an empty value.** The empty branch below skips everything on purpose — an untouched
164
+ * optional field is absent, not wrong — and in-flight is exactly the empty case.
165
+ * · **never memoized.** `useForm` caches a `check` verdict under `value|values`; removing a
166
+ * failed row leaves both at `[]`, so a cached answer would outlive the row it described and
167
+ * the form could never be submitted again.
168
+ *
169
+ * Kept out of `check` rather than bending it, because all three are RIGHT for a rule that
170
+ * describes the value, and the published `check` examples assume a non-empty one
171
+ * (`await slugTaken(value)` would query for the empty slug).
172
+ */
173
+ guard?: () => string | undefined;
154
174
  /** Where the error is stored, when that differs from the value's own path —
155
175
  * `<Form.Array>` reads values at `invites` but writes its error to
156
176
  * `invites.root` so it can't clobber the per-row errors. */
@@ -240,6 +260,60 @@ interface FormFileInputProps extends Omit<InputProps, "value" | "defaultValue" |
240
260
  /** Text shown when nothing is selected. @default "Choose a file" */
241
261
  placeholder?: string;
242
262
  }
263
+ /**
264
+ * The full drop surface, bound.
265
+ *
266
+ * Unlike `Form.FileInput` — a one-line picker BAR showing "3 files selected" — this binds
267
+ * `<Dropzone>`: a drop target with its own hero, hover and drag states. Same value type (`File[]`),
268
+ * same `kind: "file"`, same `FileValidate` rules. Pick by how much room the form has.
269
+ *
270
+ * `accept` / `maxSize` / `maxFiles` are NOT props here: they come from `validate`, so the numbers
271
+ * the drop is bucketed against and the numbers the resolver validates against cannot disagree
272
+ * (AGENTS §11 — a second channel is props that are silently dead and duplicates that can differ).
273
+ * `fileCount` is supplied from the form value for the same reason.
274
+ */
275
+ interface FormDropzoneProps extends Omit<DropzoneProps, "onFilesChange" | "onReject" | "invalid" | "error" | "fileCount" | "accept" | "maxSize" | "maxFiles"> {
276
+ /** Where a rejection goes. By default it becomes the field's message, so a bad drop reports
277
+ * through the same `Field.Error` a validation failure does. Pass a function to take over
278
+ * entirely — then nothing is set. */
279
+ onReject?: (rejections: readonly FileRejection[]) => void;
280
+ }
281
+ /**
282
+ * The drop surface bound to ALREADY-UPLOADED files: the field holds `string[]` — the ids your
283
+ * transport returned — not `File[]`.
284
+ *
285
+ * **This is the other upload timing, not a variant of `Form.Dropzone`.** `Form.Dropzone` uploads at
286
+ * SUBMIT: the field carries `File[]`, and one multipart POST sends everything (no progress, no
287
+ * cancel, one request a proxy can time out). `Form.Uploads` uploads at PICK: `useUploads` sends each
288
+ * file as it lands, and by the time Save is pressed the bytes are stored, so the form submits small
289
+ * JSON references. Two field types, so they are two components — a mode flag would make the value
290
+ * type depend on a boolean, and half the props dead on each side.
291
+ *
292
+ * **`uploads` is the single state owner (AGENTS §11), and it is REQUIRED.** The rows, the progress,
293
+ * the `AbortController`s and the retry all belong to the hook instance; this field renders its
294
+ * `<FileList>` and PROJECTS `uploads.results` onto the form value. There is no `File[]` mode here and
295
+ * no second data channel.
296
+ *
297
+ * Two guarantees the projection buys, both of which a hand-rolled version keeps missing:
298
+ * · **submit is blocked while anything is in flight** — otherwise Save posts a value that is still
299
+ * growing, and the last file is silently dropped;
300
+ * · **a failed row blocks it too** — the user must retry or remove it, because a form that submits
301
+ * "4 of 5 attachments" without saying so is worse than one that refuses.
302
+ *
303
+ * `accept` / `maxSize` stay PROPS here rather than moving into `validate` (which is where
304
+ * `Form.Dropzone` puts them): they describe a `File` at drop time, and the field's value is ids — a
305
+ * resolver reading `["att_9f3"]` has nothing left to check them against. `maxFiles` is NOT a prop,
306
+ * because the count IS checkable from ids: it comes from `validate.maxItems`, one number, one source.
307
+ */
308
+ interface FormUploadsProps extends Omit<DropzoneProps, "onFilesChange" | "onReject" | "invalid" | "error" | "fileCount" | "maxFiles"> {
309
+ /** **Required.** The hook instance that owns the rows. @see useUploads */
310
+ uploads: UseUploadsResult<string>;
311
+ /** Where a rejection goes. Defaults to the field's message, like `Form.Dropzone`. */
312
+ onReject?: (rejections: readonly FileRejection[]) => void;
313
+ /** Drop the `<FileList>` this field renders under the surface, to place it yourself.
314
+ * @default false */
315
+ hideList?: boolean;
316
+ }
243
317
  interface FormSubmitProps<TFieldValues extends FieldValues = FieldValues> extends Omit<ButtonProps, "type" | "form"> {
244
318
  /** Only needed when the button renders OUTSIDE `<Form>` (a `Dialog` footer):
245
319
  * pass the instance and the button owns the form through its `form` attribute. */
@@ -289,6 +363,10 @@ interface ScopedFields<TFieldValues extends FieldValues, TScope extends FieldVal
289
363
  TagInput: <TName extends PathOf<TScope, string[]>>(props: BoundProps<TagInputProps, TFieldValues, TName, ArrayValidate<TFieldValues>>) => React.ReactElement;
290
364
  PaymentInput: <TName extends PathOf<TScope, string>>(props: BoundProps<PaymentInputProps, TFieldValues, TName, StringValidate<TFieldValues>>) => React.ReactElement;
291
365
  FileInput: <TName extends PathOf<TScope, File[]>>(props: BoundProps<FormFileInputProps, TFieldValues, TName, FileValidate<TFieldValues>>) => React.ReactElement;
366
+ Dropzone: <TName extends PathOf<TScope, File[]>>(props: BoundProps<FormDropzoneProps, TFieldValues, TName, FileValidate<TFieldValues>>) => React.ReactElement;
367
+ /** Uploads at PICK, so the field holds the ids your transport returned. `Form.Dropzone` is the
368
+ * upload-at-SUBMIT sibling, whose field holds `File[]`. */
369
+ Uploads: <TName extends PathOf<TScope, string[]>>(props: BoundProps<FormUploadsProps, TFieldValues, TName, ArrayValidate<TFieldValues>>) => React.ReactElement;
292
370
  /** Dynamic rows. At the top level it is `Form.Array`; inside a row it is the
293
371
  * NESTED array (`orders.2.items` → `orders.2.items.5.qty`), already scoped by
294
372
  * its parent — either way there is no `form` prop to remember. */