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
@@ -1,8 +1,9 @@
1
- import { Input } from './chunk-7HOIZ3UO.js';
2
- import { NativeSelect } from './chunk-LME57Z6J.js';
3
- import { ChevronsLeftIcon, ChevronLeftIcon, ChevronRightIcon, ChevronsRightIcon } from './chunk-24TO7E32.js';
4
- import { TooltipExport } from './chunk-ZZA2LUTL.js';
5
- import { warnPositiveInt, warnNonNegativeInt } from './chunk-GCVA3OIV.js';
1
+ import { Separator } from './chunk-7VLYQR4D.js';
2
+ import { Input } from './chunk-JMWYCT63.js';
3
+ import { NativeSelect } from './chunk-P7DH62UY.js';
4
+ import { TooltipExport } from './chunk-4R7WDDCW.js';
5
+ import { ChevronsLeftIcon, ChevronLeftIcon, ChevronRightIcon, ChevronsRightIcon } from './chunk-BLIZ3CL3.js';
6
+ import { warnPositiveInt, warnNonNegativeInt } from './chunk-QDYE5LVT.js';
6
7
  import { cn } from './chunk-ZSNJ6UA3.js';
7
8
  import * as React from 'react';
8
9
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -181,13 +182,7 @@ function Pagination({
181
182
  /* @__PURE__ */ jsx("div", { className: "flex items-center gap-3", children: metadata.map((member, index) => {
182
183
  const previous = metadata[index - 1];
183
184
  return /* @__PURE__ */ jsxs(React.Fragment, { children: [
184
- previous ? /* @__PURE__ */ jsx(
185
- "span",
186
- {
187
- "aria-hidden": "true",
188
- className: cn("h-5 w-px shrink-0 bg-border-secondary", TIER_SHOW[Math.max(previous.tier, member.tier)])
189
- }
190
- ) : null,
185
+ previous ? /* @__PURE__ */ jsx(Separator, { orientation: "vertical", decorative: true, className: TIER_SHOW[Math.max(previous.tier, member.tier)] }) : null,
191
186
  member.node(TIER_SHOW[member.tier])
192
187
  ] }, member.id);
193
188
  }) }),
@@ -275,5 +270,5 @@ function Pagination({
275
270
  Pagination.displayName = "Pagination";
276
271
 
277
272
  export { Pagination, pageWindow };
278
- //# sourceMappingURL=chunk-WFY7DKQD.js.map
279
- //# sourceMappingURL=chunk-WFY7DKQD.js.map
273
+ //# sourceMappingURL=chunk-JAVNGTOE.js.map
274
+ //# sourceMappingURL=chunk-JAVNGTOE.js.map
@@ -1,8 +1,8 @@
1
1
  import { useControlScrollFade } from './chunk-7EUAMHMU.js';
2
- import { FieldShell } from './chunk-QA74ITR4.js';
3
- import { useSeamlessSlot } from './chunk-KNYKWUYX.js';
4
- import { useFieldValidity, FieldFrame } from './chunk-J2BCKBHC.js';
5
- import { EyeOffIcon, EyeIcon } from './chunk-24TO7E32.js';
2
+ import { FieldShell } from './chunk-JUWDRRD6.js';
3
+ import { useSeamlessSlot } from './chunk-TBN644IN.js';
4
+ import { useFieldValidity, FieldFrame } from './chunk-QKDEQFOQ.js';
5
+ import { EyeOffIcon, EyeIcon } from './chunk-BLIZ3CL3.js';
6
6
  import { cn } from './chunk-ZSNJ6UA3.js';
7
7
  import { Field } from '@base-ui/react/field';
8
8
  import * as React from 'react';
@@ -106,5 +106,5 @@ function Input(props) {
106
106
  }
107
107
 
108
108
  export { Input, InputAddon };
109
- //# sourceMappingURL=chunk-7HOIZ3UO.js.map
110
- //# sourceMappingURL=chunk-7HOIZ3UO.js.map
109
+ //# sourceMappingURL=chunk-JMWYCT63.js.map
110
+ //# sourceMappingURL=chunk-JMWYCT63.js.map
@@ -1,6 +1,6 @@
1
- import { SeamlessProvider, addonSlotClasses } from './chunk-KNYKWUYX.js';
1
+ import { SeamlessProvider, addonSlotClasses } from './chunk-TBN644IN.js';
2
2
  import { Slot } from './chunk-52IFGFTL.js';
3
- import { SHELL_SIZE, BAR_SIZE, SLOT_ICON } from './chunk-J2BCKBHC.js';
3
+ import { CONTROL_RADIUS, CONTROL_TEXT, SHELL_SIZE, BAR_SIZE, SLOT_ICON } from './chunk-QKDEQFOQ.js';
4
4
  import { cn } from './chunk-ZSNJ6UA3.js';
5
5
  import { mergeProps } from '@base-ui/react/merge-props';
6
6
  import { useRender } from '@base-ui/react/use-render';
@@ -9,6 +9,42 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
9
9
 
10
10
  var ADDON_EDGE_PL = { sm: "pl-3", md: "pl-3", lg: "pl-3.5" };
11
11
  var ADDON_EDGE_PR = { sm: "pr-3", md: "pr-3", lg: "pr-3.5" };
12
+ var FOCUS_WIDEN = {
13
+ within: "focus-within:outline-2 focus-within:-outline-offset-2",
14
+ self: "focus:outline-2 focus:-outline-offset-2"
15
+ };
16
+ var FOCUS_VALID = {
17
+ within: "outline-primary focus-within:outline-focus-ring",
18
+ self: "outline-primary focus:outline-focus-ring"
19
+ };
20
+ var FOCUS_INVALID = {
21
+ within: "outline-error_subtle focus-within:outline-focus-ring-error",
22
+ self: "outline-error_subtle focus:outline-focus-ring-error"
23
+ };
24
+ var FOCUS_DATA_INVALID = {
25
+ within: "data-[invalid]:outline-error_subtle data-[invalid]:focus-within:outline-focus-ring-error",
26
+ self: "data-[invalid]:outline-error_subtle data-[invalid]:focus:outline-focus-ring-error"
27
+ };
28
+ function controlBoxClasses(opts) {
29
+ const { size, invalid = false, disabled = false, focus = "within" } = opts;
30
+ return cn(
31
+ "bg-primary text-primary shadow-xs transition-all duration-100 ease-linear",
32
+ // See the file header: an OUTLINE (not a ring) is what lets a full-height add-on divider sit
33
+ // under the edge instead of eating it. Focus widens it to 2px brand — one clean line.
34
+ "outline-1 -outline-offset-1",
35
+ FOCUS_WIDEN[focus],
36
+ invalid ? FOCUS_INVALID[focus] : FOCUS_VALID[focus],
37
+ disabled && "cursor-not-allowed opacity-50",
38
+ // Data-attribute forms for hosts whose box element is a Base UI part that sets them itself
39
+ // (Combobox's `InputGroup`, NumberInput's `Group`, `OTPField.Input`). Harmless where the
40
+ // selector never matches, and they are VARIANT classes, so tailwind-merge keeps them alongside
41
+ // the boolean-driven base colors above rather than collapsing one into the other.
42
+ FOCUS_DATA_INVALID[focus],
43
+ "data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
44
+ CONTROL_RADIUS,
45
+ CONTROL_TEXT[size]
46
+ );
47
+ }
12
48
  function Affix({ size, tone = "node", children }) {
13
49
  return /* @__PURE__ */ jsx(
14
50
  Slot,
@@ -50,22 +86,14 @@ function FieldShell(props) {
50
86
  const hasTrailingAddon = trailingAddon != null || segmentTrailing != null;
51
87
  const hasAddon = hasLeadingAddon || hasTrailingAddon;
52
88
  const className_ = cn(
53
- "flex w-full items-center bg-primary text-primary shadow-xs transition-all duration-100 ease-linear",
54
- // See the file header: an OUTLINE (not a ring) is what lets a full-height add-on divider sit
55
- // under the edge instead of eating it. Focus widens it to 2px brand — one clean line.
56
- "outline-1 -outline-offset-1 focus-within:outline-2 focus-within:-outline-offset-2",
89
+ "flex w-full items-center",
90
+ // The box itself — see `controlBoxClasses`. `focus` defaults to `"within"`: a shell WRAPS its
91
+ // focusable control.
92
+ controlBoxClasses({ size, invalid, disabled }),
57
93
  // Clip full-height add-on fills/dividers to the rounded corners (outlines are NOT clipped, so
58
94
  // the edge survives). This is also what squares off a nested add-on's inner corner for free.
59
95
  hasAddon && "overflow-hidden",
60
96
  fluid ? SHELL_SIZE[size] : BAR_SIZE[size],
61
- invalid ? "outline-error_subtle focus-within:outline-focus-ring-error" : "outline-primary focus-within:outline-focus-ring",
62
- disabled && "cursor-not-allowed opacity-50",
63
- // Data-attribute forms for hosts whose shell element is a Base UI part that sets them itself
64
- // (Combobox's `InputGroup`, NumberInput's `Group`). Harmless on a plain <div> — the selector
65
- // simply never matches — and they are VARIANT classes, so tailwind-merge keeps them alongside
66
- // the boolean-driven base colors above rather than collapsing one into the other.
67
- "data-[invalid]:outline-error_subtle data-[invalid]:focus-within:outline-focus-ring-error",
68
- "data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
69
97
  className,
70
98
  // AFTER `className` on purpose — an edge that carries an add-on belongs to the SHELL, not the
71
99
  // caller. `addonSlotClasses`'s negative bleed is calibrated against the standard `BAR_PX`, so a
@@ -98,6 +126,6 @@ function FieldShell(props) {
98
126
  });
99
127
  }
100
128
 
101
- export { FieldShell };
102
- //# sourceMappingURL=chunk-QA74ITR4.js.map
103
- //# sourceMappingURL=chunk-QA74ITR4.js.map
129
+ export { FieldShell, controlBoxClasses };
130
+ //# sourceMappingURL=chunk-JUWDRRD6.js.map
131
+ //# sourceMappingURL=chunk-JUWDRRD6.js.map
@@ -1,6 +1,6 @@
1
1
  import { Illustration } from './chunk-OHUFNYGN.js';
2
- import { Button } from './chunk-W46K56XU.js';
3
- import { FG } from './chunk-CME4DIML.js';
2
+ import { Button } from './chunk-A5WQLN4B.js';
3
+ import { FG } from './chunk-6IUTVDNI.js';
4
4
  import { cn } from './chunk-ZSNJ6UA3.js';
5
5
  import 'react';
6
6
  import { jsxs, jsx } from 'react/jsx-runtime';
@@ -62,5 +62,5 @@ function Callout({ title, description, icon, illustration, tone = "neutral", siz
62
62
  Callout.displayName = "Callout";
63
63
 
64
64
  export { Callout };
65
- //# sourceMappingURL=chunk-BVJWBYIG.js.map
66
- //# sourceMappingURL=chunk-BVJWBYIG.js.map
65
+ //# sourceMappingURL=chunk-JXHZHUB3.js.map
66
+ //# sourceMappingURL=chunk-JXHZHUB3.js.map
@@ -1,8 +1,8 @@
1
- import { useTagInput, TAG_PILL_FOCUS_RING } from './chunk-WEUJYDCV.js';
2
- import { Tag } from './chunk-R6RGJF4L.js';
3
- import { useTagRow } from './chunk-W5GGOUUI.js';
4
- import { FieldShell } from './chunk-QA74ITR4.js';
5
- import { useFieldValidity, FieldFrame } from './chunk-J2BCKBHC.js';
1
+ import { useTagInput, TAG_PILL_FOCUS_RING } from './chunk-VH35QHD4.js';
2
+ import { Tag } from './chunk-EDT5J5WK.js';
3
+ import { useTagRow } from './chunk-6HJA7NPL.js';
4
+ import { FieldShell } from './chunk-JUWDRRD6.js';
5
+ import { useFieldValidity, FieldFrame } from './chunk-QKDEQFOQ.js';
6
6
  import { cn } from './chunk-ZSNJ6UA3.js';
7
7
  import { Field } from '@base-ui/react/field';
8
8
  import 'react';
@@ -111,5 +111,5 @@ function TagInputOuter(props) {
111
111
  }
112
112
 
113
113
  export { TagInputOuter };
114
- //# sourceMappingURL=chunk-VWC72TR3.js.map
115
- //# sourceMappingURL=chunk-VWC72TR3.js.map
114
+ //# sourceMappingURL=chunk-JYBGO6GY.js.map
115
+ //# sourceMappingURL=chunk-JYBGO6GY.js.map
@@ -1,12 +1,13 @@
1
- import { useAutoScroll, useDrag, snapToStep } from './chunk-KMSYEE23.js';
2
- import { DEFAULT_WEEK_START, resolveTimeZone, useControllable, startOfDayIn, dayKey, formatIn, displayYear, monthOf, differenceInDaysIn, startOfMonthIn, startOfLastDayOfMonthIn, toWireDate, toWireInstant, addDaysIn, startOfWeekIn, addMonthsIn, minutesFromMidnight, earlierOf, laterOf } from './chunk-5RAPA22E.js';
3
- import { Card } from './chunk-DRZCJCBO.js';
4
- import { Popover } from './chunk-3Y5X7B5C.js';
5
- import { ACCENT, SUBTLE } from './chunk-CME4DIML.js';
1
+ import { Card } from './chunk-BNIWT6CW.js';
2
+ import { useAutoScroll, useDrag, snapToStep } from './chunk-P6CON2R2.js';
3
+ import { DEFAULT_WEEK_START, resolveTimeZone, useControllable, startOfDayIn, dayKey, formatIn, displayYear, monthOf, differenceInDaysIn, startOfMonthIn, startOfLastDayOfMonthIn, toWireDate, toWireInstant, addDaysIn, startOfWeekIn, addMonthsIn, minutesFromMidnight, earlierOf, laterOf } from './chunk-MD4AR43X.js';
4
+ import { Popover } from './chunk-3Z3SDKIA.js';
5
+ import { ACCENT, SUBTLE } from './chunk-6IUTVDNI.js';
6
+ import { ScrollView } from './chunk-FKVPAEJ6.js';
6
7
  import { Slot } from './chunk-52IFGFTL.js';
7
8
  import { useIsomorphicLayoutEffect } from './chunk-EDSK6FEH.js';
8
- import { ChevronLeftIcon, ChevronRightIcon } from './chunk-24TO7E32.js';
9
- import { devWarn, warnStickyNoScrollport } from './chunk-GCVA3OIV.js';
9
+ import { ChevronLeftIcon, ChevronRightIcon } from './chunk-BLIZ3CL3.js';
10
+ import { devWarn, warnStickyNoScrollport } from './chunk-QDYE5LVT.js';
10
11
  import { cn } from './chunk-ZSNJ6UA3.js';
11
12
  import { enUS } from 'date-fns/locale';
12
13
  import * as React from 'react';
@@ -513,7 +514,8 @@ var NOW_LINE = "pointer-events-none absolute inset-x-0 z-0 h-px bg-brand-solid";
513
514
  var NOW_DOT = "absolute -top-1 left-0 size-2 rounded-full bg-brand-solid";
514
515
  var ALL_DAY_ROW = "sticky top-0 z-3 border-b border-secondary bg-primary";
515
516
  var HOUR_GUTTER = "sticky left-0 z-3 shrink-0 bg-primary text-quaternary text-xs tabular-nums";
516
- var SCROLLER = "relative min-h-0 flex-1 overflow-y-auto overscroll-contain rounded-[inherit]";
517
+ var SCROLLER_ROOT = "min-h-0 flex-1 rounded-[inherit]";
518
+ var SCROLLER_VIEWPORT = "relative rounded-[inherit]";
517
519
  var CHIP_BASE = "group/chip relative flex min-w-0 cursor-pointer touch-manipulation items-center gap-1.5 rounded-md text-left font-medium transition-colors duration-100 ease-linear";
518
520
  var BLOCK_POSITION = "absolute right-0 left-(--cal-inset) z-1 px-px";
519
521
  var CHIP_VARIANT = {
@@ -1157,7 +1159,7 @@ function TimeGridView({ instance, size, showNowLine, focusRef }) {
1157
1159
  ]
1158
1160
  }
1159
1161
  ),
1160
- /* @__PURE__ */ jsxs("div", { ref: scrollerRef, className: cn(SCROLLER), children: [
1162
+ /* @__PURE__ */ jsxs(ScrollView, { className: SCROLLER_ROOT, viewportClassName: SCROLLER_VIEWPORT, viewportRef: scrollerRef, children: [
1161
1163
  /* @__PURE__ */ jsxs(
1162
1164
  "div",
1163
1165
  {
@@ -1311,5 +1313,5 @@ function Calendar(props) {
1311
1313
  Calendar.displayName = "Calendar";
1312
1314
 
1313
1315
  export { Calendar, isWireDate, parseEvent, serializeEvent, useCalendar };
1314
- //# sourceMappingURL=chunk-J36M3KRX.js.map
1315
- //# sourceMappingURL=chunk-J36M3KRX.js.map
1316
+ //# sourceMappingURL=chunk-L53Y7KUV.js.map
1317
+ //# sourceMappingURL=chunk-L53Y7KUV.js.map
@@ -0,0 +1,33 @@
1
+ import { seriesColorClass, useSeriesColors } from './chunk-75M43ELV.js';
2
+ import * as React from 'react';
3
+
4
+ function usePolarData(component, data, palette) {
5
+ const resolve = React.useCallback((i) => seriesColorClass(data[i]?.color, i, palette), [data, palette]);
6
+ const colors = useSeriesColors(component, data.length, resolve);
7
+ return React.useMemo(() => {
8
+ const rows = [];
9
+ const legendItems = [];
10
+ const colorMap = {};
11
+ const labelMap = {};
12
+ for (const [i, datum] of data.entries()) {
13
+ const className = colors[i] ?? "";
14
+ rows.push({ name: datum.label, value: datum.value, className });
15
+ legendItems.push({ label: datum.label, colorClass: className });
16
+ colorMap[datum.label] = className;
17
+ labelMap[datum.label] = datum.label;
18
+ }
19
+ return { rows, legendItems, colorMap, labelMap };
20
+ }, [data, colors]);
21
+ }
22
+ function resolveMax(max, values) {
23
+ if (max !== "auto") return max;
24
+ let largest = 0;
25
+ for (const v of values) {
26
+ if (Number.isFinite(v) && v > largest) largest = v;
27
+ }
28
+ return largest > 0 ? largest : 1;
29
+ }
30
+
31
+ export { resolveMax, usePolarData };
32
+ //# sourceMappingURL=chunk-LBYCCLVI.js.map
33
+ //# sourceMappingURL=chunk-LBYCCLVI.js.map
@@ -0,0 +1,98 @@
1
+ // src/lib/rule.ts
2
+ var RULE_TEXTURE = {
3
+ line: {
4
+ y: "[--rule-image:initial] [--rule-size:auto]",
5
+ x: "[--rule-image:initial] [--rule-size:auto]"
6
+ },
7
+ dot: {
8
+ y: "[--rule-image:radial-gradient(circle,var(--rule,var(--color-border-secondary))_1px,transparent_1px)] [--rule-size:5px_3px]",
9
+ x: "[--rule-image:radial-gradient(circle,var(--rule,var(--color-border-secondary))_1px,transparent_1px)] [--rule-size:3px_5px]"
10
+ },
11
+ dashed: {
12
+ y: "[--rule-image:repeating-linear-gradient(to_right,var(--rule,var(--color-border-secondary))_0_3px,transparent_3px_6px)] [--rule-size:auto]",
13
+ x: "[--rule-image:repeating-linear-gradient(to_bottom,var(--rule,var(--color-border-secondary))_0_3px,transparent_3px_6px)] [--rule-size:auto]"
14
+ }
15
+ };
16
+ var RULE_TONE = {
17
+ default: "[--rule:var(--color-border-secondary)]",
18
+ strong: "[--rule:var(--color-border-strong)]"
19
+ };
20
+ var RULE_PAINT = { y: "rule-y", x: "rule-x" };
21
+ var RULE_PAINT_AFTER = { y: "after:rule-y", x: "after:rule-x" };
22
+ var RULE_WEIGHT = {
23
+ line: { y: "h-px", x: "w-px" },
24
+ dot: { y: "h-[3px]", x: "w-[3px]" },
25
+ dashed: { y: "h-px", x: "w-px" }
26
+ };
27
+ var RULE_WEIGHT_AFTER = {
28
+ line: { y: "after:h-px", x: "after:w-px" },
29
+ dot: { y: "after:h-[3px]", x: "after:w-[3px]" },
30
+ dashed: { y: "after:h-px", x: "after:w-px" }
31
+ };
32
+ var RULE_WEIGHT_THICK = {
33
+ line: { y: "h-0.5", x: "w-0.5" },
34
+ dot: { y: "h-[5px]", x: "w-[5px]" },
35
+ dashed: { y: "h-0.5", x: "w-0.5" }
36
+ };
37
+ var RULE_TEXTURE_THICK = {
38
+ dot: {
39
+ y: "[--rule-image:radial-gradient(circle,var(--rule,var(--color-border-secondary))_2px,transparent_2px)] [--rule-size:10px_5px]",
40
+ x: "[--rule-image:radial-gradient(circle,var(--rule,var(--color-border-secondary))_2px,transparent_2px)] [--rule-size:5px_10px]"
41
+ },
42
+ dashed: {
43
+ y: "[--rule-image:repeating-linear-gradient(to_right,var(--rule,var(--color-border-secondary))_0_6px,transparent_6px_12px)] [--rule-size:auto]",
44
+ x: "[--rule-image:repeating-linear-gradient(to_bottom,var(--rule,var(--color-border-secondary))_0_6px,transparent_6px_12px)] [--rule-size:auto]"
45
+ }
46
+ };
47
+ function ruleBox(texture, axis, weight = "hairline") {
48
+ return (weight === "thick" ? RULE_WEIGHT_THICK : RULE_WEIGHT)[texture][axis];
49
+ }
50
+ function rulePaint({ texture = "line", axis = "y", tone = "default", weight = "hairline" } = {}) {
51
+ return `${RULE_PAINT[axis]} ${ruleTexture(texture, axis, weight)} ${RULE_TONE[tone]}`;
52
+ }
53
+ function ruleTexture(texture, axis, weight) {
54
+ if (weight === "thick") return RULE_TEXTURE_THICK[texture]?.[axis] ?? RULE_TEXTURE[texture][axis];
55
+ return RULE_TEXTURE[texture][axis];
56
+ }
57
+ function rulePaintAfter({ texture = "line", axis = "y", tone = "default", weight = "hairline" } = {}) {
58
+ return `${RULE_PAINT_AFTER[axis]} ${ruleTexture(texture, axis, weight)} ${RULE_TONE[tone]}`;
59
+ }
60
+ var EDGE_AXIS = { top: "y", bottom: "y", left: "x", right: "x" };
61
+ var EDGE_BORDER = {
62
+ top: "border-t",
63
+ bottom: "border-b",
64
+ left: "border-l",
65
+ right: "border-r"
66
+ };
67
+ var EDGE_SPAN = {
68
+ top: "after:inset-x-0",
69
+ bottom: "after:inset-x-0",
70
+ left: "after:inset-y-0",
71
+ right: "after:inset-y-0"
72
+ };
73
+ var EDGE_OFFSET = {
74
+ line: { top: "after:-top-px", bottom: "after:-bottom-px", left: "after:-left-px", right: "after:-right-px" },
75
+ dot: { top: "after:-top-[2px]", bottom: "after:-bottom-[2px]", left: "after:-left-[2px]", right: "after:-right-[2px]" },
76
+ dashed: { top: "after:-top-px", bottom: "after:-bottom-px", left: "after:-left-px", right: "after:-right-px" }
77
+ };
78
+ function ruleEdge(texture, edge, tone = "default") {
79
+ if (texture === "none") return "";
80
+ const offset = EDGE_OFFSET[texture];
81
+ if (!offset) return "";
82
+ const axis = EDGE_AXIS[edge];
83
+ return [
84
+ // `relative` so the pseudo positions against THIS box, not some distant ancestor.
85
+ "relative",
86
+ EDGE_BORDER[edge],
87
+ "border-transparent",
88
+ "after:pointer-events-none after:absolute",
89
+ EDGE_SPAN[edge],
90
+ offset[edge],
91
+ RULE_WEIGHT_AFTER[texture][axis],
92
+ rulePaintAfter({ texture, axis, tone })
93
+ ].join(" ");
94
+ }
95
+
96
+ export { RULE_PAINT, RULE_TEXTURE, RULE_TONE, RULE_WEIGHT, ruleBox, ruleEdge, rulePaint };
97
+ //# sourceMappingURL=chunk-LCG34A5T.js.map
98
+ //# sourceMappingURL=chunk-LCG34A5T.js.map
@@ -0,0 +1,75 @@
1
+ import { usePolarData, resolveMax } from './chunk-LBYCCLVI.js';
2
+ import { RADIAL_SIZE, ChartDataTable, formatNumber, ChartFrame, RadialBarChart, MARGIN, PolarAngleAxis, Tooltip, NO_ANIMATION, ChartTooltipContent, RadialBar, RADIAL_TRACK, POLAR_ROOT, POLAR_HOVER, ChartLegendContent } from './chunk-75M43ELV.js';
3
+ import { cn } from './chunk-ZSNJ6UA3.js';
4
+ import { jsx, jsxs } from 'react/jsx-runtime';
5
+
6
+ function RadialChart({
7
+ data,
8
+ size = "md",
9
+ palette = "brand",
10
+ label,
11
+ description,
12
+ max = "auto",
13
+ track = true,
14
+ legend = "bottom",
15
+ formatValue = formatNumber,
16
+ tooltip = true,
17
+ tooltipTone = "surface",
18
+ emptyMessage = "No data to display",
19
+ className,
20
+ "aria-label": ariaLabel
21
+ }) {
22
+ const { rows, legendItems, colorMap, labelMap } = usePolarData("RadialChart", data, palette);
23
+ const geometry = RADIAL_SIZE[size];
24
+ const domainMax = resolveMax(
25
+ max,
26
+ rows.map((row) => row.value)
27
+ );
28
+ const table = /* @__PURE__ */ jsx(ChartDataTable, { caption: ariaLabel, rowHeader: "Ring", columns: ["Value"], rows: rows.map((row) => [row.name, formatValue(row.value)]) });
29
+ return /* @__PURE__ */ jsx(
30
+ ChartFrame,
31
+ {
32
+ component: "RadialChart",
33
+ ariaLabel,
34
+ height: geometry.height,
35
+ isEmpty: data.length === 0,
36
+ emptyMessage,
37
+ className,
38
+ table,
39
+ legendPlacement: legend === "none" ? void 0 : legend,
40
+ legend: legend === "none" ? void 0 : /* @__PURE__ */ jsx(ChartLegendContent, { items: legendItems, placement: legend }),
41
+ children: () => /* @__PURE__ */ jsxs(
42
+ RadialBarChart,
43
+ {
44
+ data: rows,
45
+ className: cn(POLAR_ROOT, POLAR_HOVER),
46
+ margin: MARGIN.polar,
47
+ innerRadius: geometry.inner,
48
+ outerRadius: geometry.outer,
49
+ startAngle: 90,
50
+ endAngle: 450,
51
+ children: [
52
+ /* @__PURE__ */ jsx(PolarAngleAxis, { tick: false, type: "number", domain: [0, domainMax], reversed: true }),
53
+ tooltip ? /* @__PURE__ */ jsx(
54
+ Tooltip,
55
+ {
56
+ ...NO_ANIMATION,
57
+ cursor: false,
58
+ content: /* @__PURE__ */ jsx(ChartTooltipContent, { colors: colorMap, labels: labelMap, formatValue, tone: tooltipTone })
59
+ }
60
+ ) : null,
61
+ /* @__PURE__ */ jsx(RadialBar, { ...NO_ANIMATION, dataKey: "value", cornerRadius: 99, fill: "currentColor", background: track ? RADIAL_TRACK : false }),
62
+ label || description ? /* @__PURE__ */ jsxs("text", { x: "50%", y: "50%", textAnchor: "middle", dominantBaseline: "middle", children: [
63
+ description ? /* @__PURE__ */ jsx("tspan", { x: "50%", dy: geometry.descriptionDy, className: `fill-current text-tertiary ${geometry.description}`, children: description }) : null,
64
+ label ? /* @__PURE__ */ jsx("tspan", { x: "50%", dy: description ? geometry.labelDy : "1%", className: `fill-current text-primary ${geometry.label}`, children: label }) : null
65
+ ] }) : null
66
+ ]
67
+ }
68
+ )
69
+ }
70
+ );
71
+ }
72
+
73
+ export { RadialChart };
74
+ //# sourceMappingURL=chunk-M5TVCASC.js.map
75
+ //# sourceMappingURL=chunk-M5TVCASC.js.map
@@ -0,0 +1,10 @@
1
+ import { Cartesian } from './chunk-NA35YZRD.js';
2
+ import { jsx } from 'react/jsx-runtime';
3
+
4
+ function AreaChart({ fill = "gradient", band = "detached", stacked = false, curve = "monotone", ...rest }) {
5
+ return /* @__PURE__ */ jsx(Cartesian, { ...rest, component: "AreaChart", mark: { kind: "area", fill: stacked && fill === "none" ? "solid" : fill, band, stacked, curve } });
6
+ }
7
+
8
+ export { AreaChart };
9
+ //# sourceMappingURL=chunk-MCUASLZH.js.map
10
+ //# sourceMappingURL=chunk-MCUASLZH.js.map
@@ -1,5 +1,5 @@
1
- import { BE_OFFSET } from './chunk-GFOAJVW5.js';
2
- import { devWarn } from './chunk-GCVA3OIV.js';
1
+ import { BE_OFFSET } from './chunk-DJYWPJZ3.js';
2
+ import { devWarn } from './chunk-QDYE5LVT.js';
3
3
  import { TZDate } from '@date-fns/tz';
4
4
  import { format, startOfDay, startOfWeek, startOfMonth, endOfMonth, addDays, addMonths, differenceInCalendarDays } from 'date-fns';
5
5
  import * as React from 'react';
@@ -102,5 +102,5 @@ function useControllable(controlled, uncontrolledInitial, onChange) {
102
102
  }
103
103
 
104
104
  export { DEFAULT_WEEK_START, DEFAULT_WEEK_START_INDEX, addDaysIn, addMonthsIn, dayKey, differenceInDaysIn, displayYear, earlierOf, formatIn, laterOf, minutesFromMidnight, monthOf, resolveTimeZone, startOfDayIn, startOfLastDayOfMonthIn, startOfMonthIn, startOfWeekIn, toWireDate, toWireInstant, useControllable, weekStartIndex };
105
- //# sourceMappingURL=chunk-5RAPA22E.js.map
106
- //# sourceMappingURL=chunk-5RAPA22E.js.map
105
+ //# sourceMappingURL=chunk-MD4AR43X.js.map
106
+ //# sourceMappingURL=chunk-MD4AR43X.js.map
@@ -1,7 +1,8 @@
1
- import { PopupScrollViewport } from './chunk-ZZT2E5VT.js';
1
+ import { ruleEdge, RULE_WEIGHT, rulePaint } from './chunk-LCG34A5T.js';
2
+ import { PopupScrollViewport } from './chunk-PO2TYK3C.js';
2
3
  import { Slot } from './chunk-52IFGFTL.js';
3
- import { ChevronRightIcon, CheckIcon } from './chunk-24TO7E32.js';
4
4
  import { POPUP_MOTION, POPUP_MOTION_HOST } from './chunk-O4GRKO3I.js';
5
+ import { ChevronRightIcon, CheckIcon } from './chunk-BLIZ3CL3.js';
5
6
  import { cn } from './chunk-ZSNJ6UA3.js';
6
7
  import { Menu } from '@base-ui/react/menu';
7
8
  import 'react';
@@ -174,12 +175,12 @@ function SubmenuRow({ item, size }) {
174
175
  /* @__PURE__ */ jsx(MenuPopup, { items, size, side: "right", align: "start", inSub: true })
175
176
  ] });
176
177
  }
177
- var POPUP_BOX = "w-fit max-w-[min(var(--available-width),22rem)] min-w-48 rounded-lg bg-primary shadow-lg ring-1 ring-secondary_alt ring-inset";
178
+ var POPUP_BOX = "w-fit max-w-[min(var(--available-width),22rem)] min-w-36 rounded-lg bg-primary shadow-lg ring-1 ring-secondary_alt ring-inset";
178
179
  function ItemList({ items, size }) {
179
180
  return /* @__PURE__ */ jsx(Fragment, { children: items.map((item, i) => {
180
181
  const id = "separator" in item ? void 0 : item.id;
181
182
  const key = id === void 0 ? `ix:${i}` : `id:${id}`;
182
- if ("separator" in item) return /* @__PURE__ */ jsx(Menu.Separator, { className: "my-1 h-px w-full bg-border-secondary" }, key);
183
+ if ("separator" in item) return /* @__PURE__ */ jsx(Menu.Separator, { className: cn("my-1 w-full", RULE_WEIGHT.line.y, rulePaint()) }, key);
183
184
  if ("type" in item)
184
185
  return item.type === "checkbox" ? /* @__PURE__ */ jsx(CheckboxRow, { item, size }, key) : /* @__PURE__ */ jsx(RadioCluster, { item, size }, key);
185
186
  if ("group" in item) return /* @__PURE__ */ jsx(GroupCluster, { item, size }, key);
@@ -195,7 +196,8 @@ function MenuPopup({
195
196
  className,
196
197
  inSub = false,
197
198
  header,
198
- footer
199
+ footer,
200
+ dividers = "line"
199
201
  }) {
200
202
  const resolvedSide = side ?? (inSub ? "right" : "bottom");
201
203
  const sideOffset = inSub ? -6 : 8;
@@ -214,21 +216,33 @@ function MenuPopup({
214
216
  * with pinned chrome is a container that HOLDS a menu. Base UI keeps every bit of the
215
217
  * behaviour it owns; only our own box moves out. */
216
218
  /* @__PURE__ */ jsxs("div", { className: cn(POPUP_BOX, "overflow-hidden", POPUP_MOTION_HOST, className), children: [
217
- header != null ? /* @__PURE__ */ jsx("div", { className: "border-b border-secondary p-3", children: header }) : null,
219
+ header != null ? /* @__PURE__ */ jsx("div", { className: cn("p-3", ruleEdge(dividers, "bottom")), children: header }) : null,
218
220
  /* @__PURE__ */ jsx(Menu.Popup, { className: cn("text-primary outline-none", POPUP_MOTION), children: /* @__PURE__ */ jsx(PopupScrollViewport, { max: "var(--available-height)", className: "flex flex-col py-1", children: /* @__PURE__ */ jsx(ItemList, { items, size }) }) }),
219
- footer != null ? /* @__PURE__ */ jsx("div", { className: "border-t border-secondary p-3", children: footer }) : null
221
+ footer != null ? /* @__PURE__ */ jsx("div", { className: cn("p-3", ruleEdge(dividers, "top")), children: footer }) : null
220
222
  ] })
221
223
  ) : /* @__PURE__ */ jsx(Menu.Popup, { className: cn(POPUP_BOX, "text-primary outline-none", POPUP_MOTION, className), children: /* @__PURE__ */ jsx(PopupScrollViewport, { max: "var(--available-height)", className: "flex flex-col py-1", children: /* @__PURE__ */ jsx(ItemList, { items, size }) }) }) }) });
222
224
  }
223
225
  function DropdownMenu(props) {
224
- const { items, trigger, size = "md", side, align, open, defaultOpen, onOpenChange, modal = true, header, footer, className } = props;
226
+ const { items, trigger, size = "md", side, align, open, defaultOpen, onOpenChange, modal = true, header, footer, dividers, className } = props;
225
227
  return /* @__PURE__ */ jsxs(Menu.Root, { open, defaultOpen, modal, onOpenChange: onOpenChange ? (next) => onOpenChange(next) : void 0, children: [
226
228
  trigger ? /* @__PURE__ */ jsx(Menu.Trigger, { render: trigger }) : null,
227
- /* @__PURE__ */ jsx(MenuPopup, { items, size, side, align, className, header, footer })
229
+ /* @__PURE__ */ jsx(
230
+ MenuPopup,
231
+ {
232
+ items,
233
+ size,
234
+ side,
235
+ align,
236
+ className,
237
+ header,
238
+ footer,
239
+ dividers
240
+ }
241
+ )
228
242
  ] });
229
243
  }
230
244
  DropdownMenu.displayName = "DropdownMenu";
231
245
 
232
246
  export { DropdownMenu };
233
- //# sourceMappingURL=chunk-JP26LPCY.js.map
234
- //# sourceMappingURL=chunk-JP26LPCY.js.map
247
+ //# sourceMappingURL=chunk-MYQ3FD4Y.js.map
248
+ //# sourceMappingURL=chunk-MYQ3FD4Y.js.map