jenosize-ui 0.1.0 → 0.2.1

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 (204) hide show
  1. package/README.md +13 -10
  2. package/dist/Cartesian-ZIKPEYWP.d.ts +26 -0
  3. package/dist/{PaymentInput-CKPIPNWH.d.ts → PaymentInput-Dn5WVQVy.d.ts} +4 -0
  4. package/dist/{Select-CVbEQ2Ep.d.ts → Select-Dt5ARIH8.d.ts} +4 -0
  5. package/dist/{TagInput-CTJYOB4J.d.ts → TagInput-BaBeve6L.d.ts} +4 -0
  6. package/dist/area-chart.d.ts +54 -0
  7. package/dist/area-chart.js +9 -0
  8. package/dist/avatar.d.ts +24 -0
  9. package/dist/avatar.js +13 -7
  10. package/dist/badge.d.ts +4 -0
  11. package/dist/badge.js +6 -5
  12. package/dist/bar-chart.d.ts +32 -0
  13. package/dist/bar-chart.js +9 -0
  14. package/dist/breadcrumb.d.ts +4 -0
  15. package/dist/breadcrumb.js +5 -3
  16. package/dist/button.d.ts +16 -1
  17. package/dist/button.js +10 -8
  18. package/dist/calendar.d.ts +5 -0
  19. package/dist/calendar.js +18 -14
  20. package/dist/callout.d.ts +6 -6
  21. package/dist/callout.js +12 -9
  22. package/dist/card-D56VxyAe.d.ts +123 -0
  23. package/dist/card.d.ts +3 -1
  24. package/dist/card.js +7 -3
  25. package/dist/checkbox.js +9 -7
  26. package/dist/chunk-22M75A3N.js +396 -0
  27. package/dist/{chunk-D5BTFSL7.js → chunk-33TOK7ES.js} +7 -5
  28. package/dist/{chunk-THC2ISYP.js → chunk-3H444OJA.js} +6 -4
  29. package/dist/{chunk-GFOAJVW5.js → chunk-3QXLIZIX.js} +4 -13
  30. package/dist/chunk-3ZEEGXYF.js +8 -0
  31. package/dist/chunk-45Y2ZGNK.js +34 -0
  32. package/dist/{chunk-FHHAPGCR.js → chunk-4RBIWI2Q.js} +3 -3
  33. package/dist/chunk-4VGEJG4M.js +1510 -0
  34. package/dist/{chunk-PWKWNDBS.js → chunk-54SIZR63.js} +16 -8
  35. package/dist/chunk-5AZKP4KZ.js +49 -0
  36. package/dist/chunk-5DP7W5HX.js +254 -0
  37. package/dist/{chunk-J2BCKBHC.js → chunk-5KSD4WKN.js} +14 -5
  38. package/dist/{chunk-ZOOX3TUB.js → chunk-5XPMY2LF.js} +6 -6
  39. package/dist/chunk-5ZEUTSCV.js +147 -0
  40. package/dist/chunk-5ZPUAGOP.js +19 -0
  41. package/dist/{chunk-JTNFJLIY.js → chunk-667ZHY3T.js} +114 -42
  42. package/dist/{chunk-JP26LPCY.js → chunk-6B6BWTXC.js} +30 -13
  43. package/dist/{chunk-W5GGOUUI.js → chunk-6H4LNWQ7.js} +3 -3
  44. package/dist/{chunk-WFY7DKQD.js → chunk-6MMBQVRO.js} +61 -51
  45. package/dist/{chunk-7HOIZ3UO.js → chunk-7GUPNTAH.js} +15 -7
  46. package/dist/chunk-7VLYQR4D.js +44 -0
  47. package/dist/{chunk-KNYKWUYX.js → chunk-7ZM7SNCZ.js} +3 -3
  48. package/dist/{chunk-E7ZSWBAK.js → chunk-A323V6AI.js} +6 -4
  49. package/dist/chunk-AFYXSZGW.js +23 -0
  50. package/dist/chunk-AIARANKE.js +33 -0
  51. package/dist/{chunk-4OLULPQG.js → chunk-AIGYMTCU.js} +10 -6
  52. package/dist/{chunk-JVJRHBTD.js → chunk-AZ7DKRBY.js} +21 -8
  53. package/dist/{chunk-JYGR44ZC.js → chunk-BBKE4W3B.js} +19 -11
  54. package/dist/{chunk-Z3ETJN5G.js → chunk-BFVJHH7S.js} +8 -12
  55. package/dist/chunk-BLIZ3CL3.js +49 -0
  56. package/dist/{chunk-F2K7VJUV.js → chunk-CFFWYXDW.js} +19 -7
  57. package/dist/{chunk-MQGD2OUF.js → chunk-CGHYXWTT.js} +11 -5
  58. package/dist/{chunk-CYPPEUX5.js → chunk-CKMWBVRR.js} +27 -12
  59. package/dist/{chunk-GTHJWR3Q.js → chunk-D7EE5GWU.js} +21 -22
  60. package/dist/{chunk-5NOBSXJN.js → chunk-E2YZ7IMT.js} +24 -8
  61. package/dist/{chunk-T7FCG7XV.js → chunk-FFMTYQXE.js} +31 -11
  62. package/dist/{chunk-J36M3KRX.js → chunk-FH7Z7SGQ.js} +67 -32
  63. package/dist/chunk-FKVPAEJ6.js +57 -0
  64. package/dist/{chunk-GRLSUQQE.js → chunk-FNQJJO63.js} +4 -4
  65. package/dist/{chunk-5RAPA22E.js → chunk-FWRHBMWT.js} +4 -4
  66. package/dist/chunk-GLKFFA7N.js +171 -0
  67. package/dist/{chunk-KDLPXXD2.js → chunk-GQRSABRN.js} +4 -4
  68. package/dist/{chunk-DRZCJCBO.js → chunk-GZMDZF2V.js} +8 -7
  69. package/dist/chunk-HHYEAFCL.js +525 -0
  70. package/dist/{chunk-LME57Z6J.js → chunk-I6WMNXC7.js} +6 -6
  71. package/dist/chunk-IQNVSQRK.js +605 -0
  72. package/dist/chunk-KHGW72BM.js +10 -0
  73. package/dist/{chunk-ZZA2LUTL.js → chunk-KZP6B6B3.js} +41 -16
  74. package/dist/chunk-LCG34A5T.js +98 -0
  75. package/dist/chunk-LLPWQDF7.js +26 -0
  76. package/dist/{chunk-J7ZQQFPT.js → chunk-LO22VQL5.js} +18 -18
  77. package/dist/{chunk-BVJWBYIG.js → chunk-LQURV7HQ.js} +9 -7
  78. package/dist/{chunk-R6RGJF4L.js → chunk-LYXPJERB.js} +15 -5
  79. package/dist/{chunk-CME4DIML.js → chunk-MCQG4H6T.js} +54 -3
  80. package/dist/{chunk-VWC72TR3.js → chunk-MVG5MABV.js} +11 -8
  81. package/dist/{chunk-5FATN5YD.js → chunk-N3RVMBPX.js} +6 -9
  82. package/dist/chunk-NKG4N6HA.js +188 -0
  83. package/dist/{chunk-W46K56XU.js → chunk-OACWA4TC.js} +15 -69
  84. package/dist/chunk-OLLD2BZN.js +33 -0
  85. package/dist/{chunk-KMSYEE23.js → chunk-P6CON2R2.js} +25 -11
  86. package/dist/chunk-PO2TYK3C.js +17 -0
  87. package/dist/{chunk-7EWQKTNQ.js → chunk-POQTE7JI.js} +66 -25
  88. package/dist/{chunk-HMUZE6EK.js → chunk-QDKETK7D.js} +4 -4
  89. package/dist/{chunk-GCVA3OIV.js → chunk-QDYE5LVT.js} +13 -3
  90. package/dist/{chunk-WEUJYDCV.js → chunk-QHH6AUR3.js} +16 -8
  91. package/dist/chunk-RJTVCA62.js +42 -0
  92. package/dist/{chunk-MUFHLP4S.js → chunk-S5TEWPWW.js} +50 -41
  93. package/dist/{chunk-D6TPWNRK.js → chunk-SB3DG572.js} +15 -8
  94. package/dist/chunk-SKRR3ZMP.js +10 -0
  95. package/dist/chunk-T4ZFZTY6.js +62 -0
  96. package/dist/{chunk-I7WU4GTY.js → chunk-T5574MXM.js} +34 -46
  97. package/dist/{chunk-MKC5HNA7.js → chunk-U4WSJAYK.js} +374 -147
  98. package/dist/{chunk-BJUZVYQC.js → chunk-UGKELBNC.js} +60 -44
  99. package/dist/chunk-ULGCGKOE.js +77 -0
  100. package/dist/{chunk-QA74ITR4.js → chunk-X2VMIBK5.js} +45 -17
  101. package/dist/chunk-X2X7Q7NW.js +17 -0
  102. package/dist/chunk-YHBI52P2.js +10 -0
  103. package/dist/chunk-YIHKQ63K.js +13 -0
  104. package/dist/{chunk-3Y5X7B5C.js → chunk-YQYVGWIC.js} +6 -11
  105. package/dist/{chunk-WZQFC7ZN.js → chunk-ZHAT2XZ4.js} +139 -66
  106. package/dist/{chunk-7IU5TMFL.js → chunk-ZMFY7WAY.js} +124 -40
  107. package/dist/{chunk-SV56BSUQ.js → chunk-ZZSNTCCL.js} +6 -5
  108. package/dist/combobox.d.ts +5 -0
  109. package/dist/combobox.js +15 -12
  110. package/dist/control-size-CaxQhkKh.d.ts +3 -0
  111. package/dist/date-input.d.ts +4 -0
  112. package/dist/date-input.js +12 -9
  113. package/dist/date-picker.d.ts +6 -0
  114. package/dist/date-picker.js +25 -20
  115. package/dist/dialog.d.ts +37 -5
  116. package/dist/dialog.js +12 -8
  117. package/dist/drawer.d.ts +20 -3
  118. package/dist/drawer.js +11 -7
  119. package/dist/dropdown-menu.d.ts +26 -2
  120. package/dist/dropdown-menu.js +9 -4
  121. package/dist/dropzone.d.ts +35 -0
  122. package/dist/dropzone.js +23 -0
  123. package/dist/form.d.ts +82 -3
  124. package/dist/form.js +205 -45
  125. package/dist/header-navigation.d.ts +19 -4
  126. package/dist/header-navigation.js +23 -16
  127. package/dist/helper.d.ts +36 -0
  128. package/dist/helper.js +3 -0
  129. package/dist/index.d.ts +32 -8
  130. package/dist/index.js +87 -62
  131. package/dist/indicator.js +4 -4
  132. package/dist/input.d.ts +4 -0
  133. package/dist/input.js +10 -8
  134. package/dist/kanban-board.d.ts +489 -0
  135. package/dist/kanban-board.js +25 -0
  136. package/dist/labels-DPrh0se9.d.ts +627 -0
  137. package/dist/line-chart.d.ts +36 -0
  138. package/dist/line-chart.js +9 -0
  139. package/dist/{nav-Bla0o_-1.d.ts → nav-CKKqjBs6.d.ts} +18 -11
  140. package/dist/number-input.d.ts +4 -0
  141. package/dist/number-input.js +10 -8
  142. package/dist/pagination.d.ts +7 -1
  143. package/dist/pagination.js +14 -10
  144. package/dist/panel-El4oI68p.d.ts +9 -0
  145. package/dist/payment-input.d.ts +3 -2
  146. package/dist/payment-input.js +10 -8
  147. package/dist/pie-chart.d.ts +64 -0
  148. package/dist/pie-chart.js +9 -0
  149. package/dist/popover.d.ts +9 -3
  150. package/dist/popover.js +11 -7
  151. package/dist/progress-steps.d.ts +275 -0
  152. package/dist/progress-steps.js +8 -0
  153. package/dist/progress.d.ts +21 -1
  154. package/dist/progress.js +3 -2
  155. package/dist/provider.d.ts +212 -0
  156. package/dist/provider.js +7 -0
  157. package/dist/radar-chart.d.ts +77 -0
  158. package/dist/radar-chart.js +9 -0
  159. package/dist/radial-chart.d.ts +73 -0
  160. package/dist/radial-chart.js +9 -0
  161. package/dist/radio.js +9 -7
  162. package/dist/rule-BqzaIwJy.d.ts +80 -0
  163. package/dist/scroll-area.d.ts +62 -0
  164. package/dist/scroll-area.js +7 -0
  165. package/dist/select.d.ts +3 -3
  166. package/dist/select.js +17 -14
  167. package/dist/separator.d.ts +114 -0
  168. package/dist/separator.js +5 -0
  169. package/dist/shared-CxAedkiy.d.ts +68 -0
  170. package/dist/sidebar-navigation.d.ts +80 -12
  171. package/dist/sidebar-navigation.js +18 -9
  172. package/dist/skeleton.d.ts +61 -0
  173. package/dist/skeleton.js +5 -0
  174. package/dist/styles.css +1 -1
  175. package/dist/switch.js +4 -4
  176. package/dist/table.d.ts +148 -42
  177. package/dist/table.js +39 -33
  178. package/dist/tabs.d.ts +22 -0
  179. package/dist/tabs.js +3 -3
  180. package/dist/tag-input.d.ts +3 -2
  181. package/dist/tag-input.js +13 -11
  182. package/dist/tag.d.ts +4 -0
  183. package/dist/tag.js +4 -3
  184. package/dist/textarea.js +7 -5
  185. package/dist/theme.css +151 -6
  186. package/dist/theme.js +11 -9
  187. package/dist/toast.d.ts +11 -2
  188. package/dist/toast.js +12 -9
  189. package/dist/tooltip-surface-C2I9o2QM.d.ts +35 -0
  190. package/dist/tooltip.d.ts +15 -1
  191. package/dist/tooltip.js +3 -2
  192. package/dist/tree.d.ts +5 -0
  193. package/dist/tree.js +8 -6
  194. package/dist/types-DR9rAEy1.d.ts +188 -0
  195. package/dist/use-uploads-KaPqDklo.d.ts +482 -0
  196. package/dist/verification-code-input.d.ts +84 -0
  197. package/dist/verification-code-input.js +14 -0
  198. package/package.json +70 -9
  199. package/dist/card-nWicloNi.d.ts +0 -80
  200. package/dist/chunk-24TO7E32.js +0 -42
  201. package/dist/chunk-FXIBGTS5.js +0 -14
  202. package/dist/chunk-MFJP5FA7.js +0 -20
  203. package/dist/chunk-ZZT2E5VT.js +0 -24
  204. package/dist/shared-BNXAdgh2.d.ts +0 -9
@@ -1,19 +1,28 @@
1
- import { Tabs } from './chunk-4OLULPQG.js';
2
- import { Drawer } from './chunk-Z3ETJN5G.js';
3
- import { resolveActive, SidebarNavigation, linkMatches } from './chunk-7IU5TMFL.js';
4
- import { ButtonUtility } from './chunk-JVJRHBTD.js';
1
+ import { resolveActive, SidebarNavigation, linkMatches } from './chunk-ZMFY7WAY.js';
2
+ import { Tabs } from './chunk-AIGYMTCU.js';
3
+ import { Drawer } from './chunk-BFVJHH7S.js';
4
+ import { ruleEdge } from './chunk-LCG34A5T.js';
5
+ import { useLinkElement, useLinkResolver, LinkOrButton } from './chunk-5AZKP4KZ.js';
6
+ import { ButtonUtility } from './chunk-AZ7DKRBY.js';
5
7
  import { Slot } from './chunk-52IFGFTL.js';
6
- import { MenuIcon } from './chunk-24TO7E32.js';
8
+ import { MenuIcon } from './chunk-BLIZ3CL3.js';
7
9
  import { cn } from './chunk-ZSNJ6UA3.js';
8
- import 'react';
9
- import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
10
+ import { useLabels } from './chunk-RJTVCA62.js';
11
+ import * as React from 'react';
12
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
10
13
 
14
+ // src/components/header-navigation/labels.ts
15
+ var HEADER_NAVIGATION_LABELS = {
16
+ /** The mobile drawer trigger's tooltip, which is also its accessible name. */
17
+ openNavigation: "Open navigation",
18
+ /** The brand lockup, which is a link with a logo inside and therefore no text of its own. */
19
+ homepage: "Go to homepage"
20
+ };
11
21
  var HEADER_BASE = "w-full bg-primary";
12
22
  var TIER = "flex w-full items-center gap-4 px-4 md:px-6";
13
23
  var TIER_1 = cn(TIER, "h-16");
14
- var TIER_2 = cn(TIER, "h-16 border-t border-secondary");
24
+ var TIER_2 = cn(TIER, "h-16");
15
25
  var TIER_2_TABS = "w-full px-4 md:px-6";
16
- var DIVIDER = "border-b border-secondary";
17
26
  var STICKY = "sticky top-0 z-20";
18
27
  var ROW_BASE = "flex cursor-pointer items-center gap-1.5 rounded-lg px-2 py-1.5 text-sm whitespace-nowrap outline-focus-ring transition-colors duration-100 ease-linear select-none focus-visible:z-10 focus-visible:outline-2 focus-visible:outline-offset-2";
19
28
  var ROW_IDLE = "font-medium text-secondary hover:bg-ghost-hover hover:text-secondary_hover";
@@ -26,6 +35,7 @@ function NavRow({
26
35
  onNavigate
27
36
  }) {
28
37
  const className = cn(ROW_BASE, current ? ROW_CURRENT : ROW_IDLE, link.disabled && ROW_DISABLED, link.className);
38
+ const navLink = useLinkElement(link.href);
29
39
  const onClick = (event) => {
30
40
  if (link.disabled) {
31
41
  event.preventDefault();
@@ -39,10 +49,10 @@ function NavRow({
39
49
  /* @__PURE__ */ jsx("span", { className: "truncate", children: link.label }),
40
50
  link.trailing != null ? /* @__PURE__ */ jsx(Slot, { className: ROW_SLOT, children: link.trailing }) : null
41
51
  ] });
42
- if (link.href && !link.disabled) {
43
- return /* @__PURE__ */ jsx("a", { href: link.href, "aria-current": current ? "page" : void 0, onClick, className, children: content });
52
+ if (link.disabled) {
53
+ return /* @__PURE__ */ jsx("button", { type: "button", disabled: true, "aria-current": current ? "page" : void 0, onClick, className, children: content });
44
54
  }
45
- return /* @__PURE__ */ jsx("button", { type: "button", disabled: link.disabled, "aria-current": current ? "page" : void 0, onClick, className, children: content });
55
+ return /* @__PURE__ */ jsx(LinkOrButton, { render: link.render ?? navLink, className, ariaCurrent: current, onClick, children: content });
46
56
  }
47
57
  function NavRowList({
48
58
  links,
@@ -73,32 +83,54 @@ function HeaderNavigation(props) {
73
83
  subItems,
74
84
  secondaryActions,
75
85
  align = "start",
76
- divider = true,
86
+ dividers = "line",
77
87
  sticky = false,
78
88
  mobile = "sheet",
89
+ labels,
79
90
  className
80
91
  } = props;
81
92
  const ariaLabel = props["aria-label"] ?? "Main";
93
+ const t = useLabels("headerNavigation", HEADER_NAVIGATION_LABELS, labels);
94
+ const brandLink = useLinkElement(logoHref);
82
95
  const { current, trail } = resolveActive(items, activeHref);
83
96
  const activeTop = current && items.includes(current) ? current : items.find((item) => trail.has(item)) ?? null;
84
97
  const tier2 = subItems ?? activeTop?.items ?? [];
85
98
  const showTier2 = secondary !== "none" && tier2.length > 0;
86
99
  const tier2Label = subItems ? "Secondary" : activeTop?.label ?? "Secondary";
87
100
  const currentHref = current?.href ?? null;
88
- const tabItems = tier2.map((link) => ({
89
- value: link.href ?? link.label,
90
- label: link.label,
91
- leading: link.leading,
92
- trailing: link.trailing,
93
- disabled: link.disabled
94
- }));
101
+ const resolveTabLink = useLinkResolver();
102
+ const tabItems = tier2.map((link) => {
103
+ const element = link.disabled ? void 0 : link.render ?? resolveTabLink(link.href) ?? /* @__PURE__ */ jsx("button", { type: "button" });
104
+ return {
105
+ value: link.href ?? link.label,
106
+ label: link.label,
107
+ leading: link.leading,
108
+ trailing: link.trailing,
109
+ disabled: link.disabled,
110
+ render: element == null ? void 0 : React.cloneElement(element, {
111
+ /* `aria-selected` says which tab is SHOWING; only `aria-current` says "this is the page
112
+ * you are on". A route-backed strip owes both, and colour alone says neither. */
113
+ "aria-current": link.href != null && link.href === currentHref ? "page" : void 0,
114
+ /* The REAL event, from the element the user actually pressed. `onValueChange` hands
115
+ * back a native `Event`, which is why the old call site faked a
116
+ * `{} as React.MouseEvent` — so a caller following the documented interception
117
+ * pattern got `TypeError: event.preventDefault is not a function`. And nothing here
118
+ * needs to re-check `defaultPrevented`: the navigation IS the anchor's default action,
119
+ * so `preventDefault()` stops it by definition. */
120
+ onClick: (event) => {
121
+ onNavigate?.(link, event);
122
+ link.onClick?.(event);
123
+ }
124
+ })
125
+ };
126
+ });
95
127
  const activeTabValue = tabItems.find((tab) => tab.value === currentHref)?.value;
96
128
  return /* @__PURE__ */ jsxs(
97
129
  "header",
98
130
  {
99
131
  className: cn(
100
132
  HEADER_BASE,
101
- divider && DIVIDER,
133
+ ruleEdge(dividers, "bottom"),
102
134
  sticky && STICKY,
103
135
  // Tier 1's height, handed to a pinned `Tabs` strip so it docks BELOW the bar instead of at
104
136
  // the viewport's top edge. Set here because only the header knows its own height — which
@@ -117,16 +149,16 @@ function HeaderNavigation(props) {
117
149
  side: "left",
118
150
  size: "sm",
119
151
  "aria-label": ariaLabel,
120
- trigger: /* @__PURE__ */ jsx(ButtonUtility, { variant: "tertiary", size: "sm", icon: /* @__PURE__ */ jsx(MenuIcon, {}), tooltip: "Open navigation", tooltipSide: "bottom" }),
152
+ trigger: /* @__PURE__ */ jsx(ButtonUtility, { variant: "tertiary", size: "sm", icon: /* @__PURE__ */ jsx(MenuIcon, {}), tooltip: t.openNavigation, tooltipSide: "bottom" }),
121
153
  children: /* @__PURE__ */ jsx(SidebarNavigation, { items, activeHref, onNavigate, "aria-label": ariaLabel })
122
154
  }
123
155
  ) })
124
156
  ) : null,
125
157
  logo != null ? /* @__PURE__ */ jsx("div", { className: cn("flex shrink-0 items-center", align === "center" && "flex-1"), children: logoHref ? /* @__PURE__ */ jsx(
126
- "a",
158
+ LinkOrButton,
127
159
  {
128
- href: logoHref,
129
- "aria-label": "Go to homepage",
160
+ render: brandLink,
161
+ ariaLabel: t.homepage,
130
162
  className: "flex items-center rounded-md outline-focus-ring focus-visible:outline-2 focus-visible:outline-offset-2",
131
163
  children: logo
132
164
  }
@@ -147,23 +179,7 @@ function HeaderNavigation(props) {
147
179
  /* @__PURE__ */ jsx("div", { className: "flex-1" })
148
180
  ) : null
149
181
  ] }),
150
- showTier2 ? secondary === "tabs" ? /* @__PURE__ */ jsx("div", { className: TIER_2_TABS, children: /* @__PURE__ */ jsx(
151
- Tabs,
152
- {
153
- "aria-label": tier2Label,
154
- size: "sm",
155
- sticky,
156
- items: tabItems,
157
- value: activeTabValue,
158
- onValueChange: (value) => {
159
- const link = tier2.find((item) => (item.href ?? item.label) === value);
160
- if (!link || link.disabled) return;
161
- onNavigate?.(link, {});
162
- if (link.href) globalThis.location.assign(link.href);
163
- },
164
- className: "w-full"
165
- }
166
- ) }) : /* @__PURE__ */ jsxs("div", { className: TIER_2, children: [
182
+ showTier2 ? secondary === "tabs" ? /* @__PURE__ */ jsx("div", { className: TIER_2_TABS, children: /* @__PURE__ */ jsx(Tabs, { "aria-label": tier2Label, size: "sm", sticky, items: tabItems, value: activeTabValue, className: "w-full" }) }) : /* @__PURE__ */ jsxs("div", { className: cn(TIER_2, ruleEdge(dividers, "top")), children: [
167
183
  /* @__PURE__ */ jsx(
168
184
  NavRowList,
169
185
  {
@@ -184,5 +200,5 @@ function HeaderNavigation(props) {
184
200
  HeaderNavigation.displayName = "HeaderNavigation";
185
201
 
186
202
  export { HeaderNavigation };
187
- //# sourceMappingURL=chunk-BJUZVYQC.js.map
188
- //# sourceMappingURL=chunk-BJUZVYQC.js.map
203
+ //# sourceMappingURL=chunk-UGKELBNC.js.map
204
+ //# sourceMappingURL=chunk-UGKELBNC.js.map
@@ -0,0 +1,77 @@
1
+ import { usePolarData, resolveMax } from './chunk-OLLD2BZN.js';
2
+ import { DEFAULT_PALETTE, RADIAL_SIZE, ChartDataTable, formatNumber, ChartFrame, RadialBarChart, MARGIN, PolarAngleAxis, Tooltip, NO_ANIMATION, ChartTooltipContent, RadialBar, RADIAL_TRACK, POLAR_ROOT, POLAR_HOVER, ChartLegendContent } from './chunk-22M75A3N.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 = DEFAULT_PALETTE,
10
+ label,
11
+ description,
12
+ max = "auto",
13
+ track = true,
14
+ legend = "bottom",
15
+ formatValue = formatNumber,
16
+ tooltip = true,
17
+ tooltipTone = "surface",
18
+ emptyMessage,
19
+ labels,
20
+ className,
21
+ "aria-label": ariaLabel
22
+ }) {
23
+ const { rows, legendItems, colorMap, labelMap } = usePolarData("RadialChart", data, palette);
24
+ const geometry = RADIAL_SIZE[size];
25
+ const domainMax = resolveMax(
26
+ max,
27
+ rows.map((row) => row.value)
28
+ );
29
+ const table = /* @__PURE__ */ jsx(ChartDataTable, { caption: ariaLabel, rowHeader: "Ring", columns: ["Value"], rows: rows.map((row) => [row.name, formatValue(row.value)]) });
30
+ return /* @__PURE__ */ jsx(
31
+ ChartFrame,
32
+ {
33
+ component: "RadialChart",
34
+ ariaLabel,
35
+ height: geometry.height,
36
+ isEmpty: data.length === 0,
37
+ emptyMessage,
38
+ labels,
39
+ className,
40
+ table,
41
+ legendPlacement: legend === "none" ? void 0 : legend,
42
+ legend: legend === "none" ? void 0 : /* @__PURE__ */ jsx(ChartLegendContent, { items: legendItems, placement: legend }),
43
+ children: () => /* @__PURE__ */ jsxs(
44
+ RadialBarChart,
45
+ {
46
+ data: rows,
47
+ className: cn(POLAR_ROOT, POLAR_HOVER),
48
+ margin: MARGIN.polar,
49
+ innerRadius: geometry.inner,
50
+ outerRadius: geometry.outer,
51
+ startAngle: 90,
52
+ endAngle: 450,
53
+ children: [
54
+ /* @__PURE__ */ jsx(PolarAngleAxis, { tick: false, type: "number", domain: [0, domainMax], reversed: true }),
55
+ tooltip ? /* @__PURE__ */ jsx(
56
+ Tooltip,
57
+ {
58
+ ...NO_ANIMATION,
59
+ cursor: false,
60
+ content: /* @__PURE__ */ jsx(ChartTooltipContent, { colors: colorMap, labels: labelMap, formatValue, tone: tooltipTone })
61
+ }
62
+ ) : null,
63
+ /* @__PURE__ */ jsx(RadialBar, { ...NO_ANIMATION, dataKey: "value", cornerRadius: 99, fill: "currentColor", background: track ? RADIAL_TRACK : false }),
64
+ label || description ? /* @__PURE__ */ jsxs("text", { x: "50%", y: "50%", textAnchor: "middle", dominantBaseline: "middle", children: [
65
+ description ? /* @__PURE__ */ jsx("tspan", { x: "50%", dy: geometry.descriptionDy, className: `fill-current text-tertiary ${geometry.description}`, children: description }) : null,
66
+ label ? /* @__PURE__ */ jsx("tspan", { x: "50%", dy: description ? geometry.labelDy : "1%", className: `fill-current text-primary ${geometry.label}`, children: label }) : null
67
+ ] }) : null
68
+ ]
69
+ }
70
+ )
71
+ }
72
+ );
73
+ }
74
+
75
+ export { RadialChart };
76
+ //# sourceMappingURL=chunk-ULGCGKOE.js.map
77
+ //# sourceMappingURL=chunk-ULGCGKOE.js.map
@@ -1,6 +1,6 @@
1
- import { SeamlessProvider, addonSlotClasses } from './chunk-KNYKWUYX.js';
1
+ import { CONTROL_RADIUS, CONTROL_TEXT, SHELL_SIZE, BAR_SIZE, SLOT_ICON } from './chunk-5KSD4WKN.js';
2
+ import { SeamlessProvider, addonSlotClasses } from './chunk-7ZM7SNCZ.js';
2
3
  import { Slot } from './chunk-52IFGFTL.js';
3
- import { SHELL_SIZE, BAR_SIZE, SLOT_ICON } from './chunk-J2BCKBHC.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-X2VMIBK5.js.map
131
+ //# sourceMappingURL=chunk-X2VMIBK5.js.map
@@ -0,0 +1,17 @@
1
+ import { ScrollView } from './chunk-FKVPAEJ6.js';
2
+ import 'react';
3
+ import { jsx } from 'react/jsx-runtime';
4
+
5
+ // src/components/scroll-area/shared.ts
6
+ function maskAxis(axis, fade) {
7
+ if (fade === false) return false;
8
+ if (fade === void 0 && axis === "both") return false;
9
+ return axis === "both" ? "vertical" : axis;
10
+ }
11
+ function ScrollArea({ axis = "vertical", fade, composite = false, className, style, viewportRef, children }) {
12
+ return /* @__PURE__ */ jsx(ScrollView, { axis, fade: maskAxis(axis, fade), composite, className, style, viewportRef, children });
13
+ }
14
+
15
+ export { ScrollArea };
16
+ //# sourceMappingURL=chunk-X2X7Q7NW.js.map
17
+ //# sourceMappingURL=chunk-X2X7Q7NW.js.map
@@ -0,0 +1,10 @@
1
+ import { Cartesian } from './chunk-5DP7W5HX.js';
2
+ import { jsx } from 'react/jsx-runtime';
3
+
4
+ function LineChart({ curve = "monotone", dashed = false, dots = false, ...rest }) {
5
+ return /* @__PURE__ */ jsx(Cartesian, { ...rest, component: "LineChart", mark: { kind: "line", dashed, dots, curve } });
6
+ }
7
+
8
+ export { LineChart };
9
+ //# sourceMappingURL=chunk-YHBI52P2.js.map
10
+ //# sourceMappingURL=chunk-YHBI52P2.js.map
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+
3
+ // src/lib/locale.ts
4
+ var LocaleContext = React.createContext(void 0);
5
+ if (process.env.NODE_ENV !== "production") LocaleContext.displayName = "JenosizeUILocaleContext";
6
+ function useLocaleConfig() {
7
+ return React.useContext(LocaleContext) ?? EMPTY;
8
+ }
9
+ var EMPTY = Object.freeze({});
10
+
11
+ export { LocaleContext, useLocaleConfig };
12
+ //# sourceMappingURL=chunk-YIHKQ63K.js.map
13
+ //# sourceMappingURL=chunk-YIHKQ63K.js.map
@@ -1,8 +1,7 @@
1
- import { useControllableOpen } from './chunk-CYPPEUX5.js';
2
- import { PanelChrome } from './chunk-J7ZQQFPT.js';
3
- import { CloseButton } from './chunk-MQGD2OUF.js';
1
+ import { useControllableOpen } from './chunk-CKMWBVRR.js';
2
+ import { PanelChrome } from './chunk-LO22VQL5.js';
4
3
  import { EXPLICIT_CLOSE, NO_RETURN_FOCUS } from './chunk-S7NNXWIN.js';
5
- import { useScrollFade } from './chunk-O2LG3PNI.js';
4
+ import { CloseButton } from './chunk-CGHYXWTT.js';
6
5
  import { POPUP_MOTION } from './chunk-O4GRKO3I.js';
7
6
  import { cn } from './chunk-ZSNJ6UA3.js';
8
7
  import { Popover as Popover$1 } from '@base-ui/react/popover';
@@ -37,8 +36,6 @@ function PopoverSurface(props) {
37
36
  closeReasonRef
38
37
  } = props;
39
38
  const ariaLabel = props["aria-label"];
40
- const bodyRef = React2.useRef(null);
41
- const { maskImage } = useScrollFade(bodyRef, { axis: "vertical" });
42
39
  return /* @__PURE__ */ jsx(Popover$1.Portal, { keepMounted, children: /* @__PURE__ */ jsx(Popover$1.Positioner, { side, align, sideOffset, alignOffset, className: "z-50 outline-none", children: /* @__PURE__ */ jsx(
43
40
  PanelChrome,
44
41
  {
@@ -54,8 +51,6 @@ function PopoverSurface(props) {
54
51
  titleScale: "md",
55
52
  footerAlign: "end",
56
53
  scrollBody: true,
57
- bodyRef,
58
- bodyMask: maskImage,
59
54
  dividers,
60
55
  title,
61
56
  description,
@@ -81,7 +76,7 @@ function Popover(props) {
81
76
  alignOffset = 0,
82
77
  size = "md",
83
78
  showClose = false,
84
- dividers = false,
79
+ dividers = "none",
85
80
  modal = false,
86
81
  keepMounted = false,
87
82
  dismissible = true,
@@ -142,5 +137,5 @@ function Popover(props) {
142
137
  Popover.displayName = "Popover";
143
138
 
144
139
  export { Popover };
145
- //# sourceMappingURL=chunk-3Y5X7B5C.js.map
146
- //# sourceMappingURL=chunk-3Y5X7B5C.js.map
140
+ //# sourceMappingURL=chunk-YQYVGWIC.js.map
141
+ //# sourceMappingURL=chunk-YQYVGWIC.js.map