jenosize-ui 0.2.2 → 0.3.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 (221) hide show
  1. package/README.md +183 -63
  2. package/THIRD-PARTY-NOTICES.md +15 -0
  3. package/dist/GradientPicker-CQm3GT7F.d.ts +144 -0
  4. package/dist/{PaymentInput-Dn5WVQVy.d.ts → PaymentInput-Cz5jFB3p.d.ts} +1 -1
  5. package/dist/{Select-Dt5ARIH8.d.ts → Select-CXOAMlk7.d.ts} +15 -1
  6. package/dist/{TagInput-BaBeve6L.d.ts → TagInput-CzIrONr-.d.ts} +1 -1
  7. package/dist/area-chart.d.ts +2 -2
  8. package/dist/area-chart.js +7 -6
  9. package/dist/at-least-one-BZ2dsck-.d.ts +18 -0
  10. package/dist/avatar.d.ts +1 -1
  11. package/dist/avatar.js +11 -10
  12. package/dist/badge.d.ts +1 -1
  13. package/dist/badge.js +6 -6
  14. package/dist/bar-chart.d.ts +2 -2
  15. package/dist/bar-chart.js +7 -6
  16. package/dist/breadcrumb.d.ts +1 -1
  17. package/dist/breadcrumb.js +4 -4
  18. package/dist/button.d.ts +1 -1
  19. package/dist/button.js +11 -10
  20. package/dist/calendar.d.ts +1 -1
  21. package/dist/calendar.js +15 -14
  22. package/dist/callout.d.ts +4 -2
  23. package/dist/callout.js +12 -11
  24. package/dist/card.d.ts +59 -3
  25. package/dist/card.js +3 -3
  26. package/dist/carousel.d.ts +169 -0
  27. package/dist/carousel.js +9 -0
  28. package/dist/catalog.json +11180 -0
  29. package/dist/checkbox.js +8 -7
  30. package/dist/{chunk-R4Z7BINC.js → chunk-26XQU3TC.js} +8 -8
  31. package/dist/{chunk-AIARANKE.js → chunk-3JQKVC2K.js} +4 -4
  32. package/dist/chunk-3P3QZPHV.js +109 -0
  33. package/dist/{chunk-GLKFFA7N.js → chunk-44AWXIQK.js} +5 -5
  34. package/dist/{chunk-FWRHBMWT.js → chunk-4Y32RIC7.js} +5 -19
  35. package/dist/{chunk-5XPMY2LF.js → chunk-5ECTNYKU.js} +5 -5
  36. package/dist/{chunk-ZD3MOLIB.js → chunk-5GBA6X6A.js} +4 -4
  37. package/dist/{chunk-LE44X5GS.js → chunk-5SGF47TZ.js} +9 -9
  38. package/dist/{chunk-POQTE7JI.js → chunk-5XSR757T.js} +7 -7
  39. package/dist/{chunk-3HOHLQVP.js → chunk-6FGLABYH.js} +3 -3
  40. package/dist/{chunk-MCQG4H6T.js → chunk-6T3QAO5K.js} +12 -4
  41. package/dist/{chunk-SKRR3ZMP.js → chunk-737A4YNC.js} +3 -3
  42. package/dist/{chunk-AFYXSZGW.js → chunk-7LSUUEAF.js} +7 -5
  43. package/dist/{chunk-7VLYQR4D.js → chunk-7OFGPDYJ.js} +3 -3
  44. package/dist/{chunk-54SIZR63.js → chunk-7UCKFULR.js} +7 -7
  45. package/dist/{chunk-LQURV7HQ.js → chunk-7ZA3QZRP.js} +4 -4
  46. package/dist/{chunk-X2VMIBK5.js → chunk-A4YPUS6C.js} +4 -4
  47. package/dist/{chunk-5ZEUTSCV.js → chunk-B4OVIE2X.js} +6 -6
  48. package/dist/{chunk-P6CON2R2.js → chunk-BH32X25C.js} +3 -3
  49. package/dist/{chunk-7QXOGAN6.js → chunk-BJHLW25G.js} +85 -538
  50. package/dist/{chunk-ULGCGKOE.js → chunk-BKBINQJZ.js} +4 -4
  51. package/dist/{chunk-CFFWYXDW.js → chunk-BXQFBFT7.js} +5 -5
  52. package/dist/{chunk-I6WMNXC7.js → chunk-CQGMOPLG.js} +6 -6
  53. package/dist/{chunk-FNQJJO63.js → chunk-CUONE6LA.js} +4 -4
  54. package/dist/{chunk-D6XO4JVM.js → chunk-CVCS5G3E.js} +42 -20
  55. package/dist/{chunk-33TOK7ES.js → chunk-DCKVNHV5.js} +5 -5
  56. package/dist/{chunk-ZR6HNKSN.js → chunk-DYRGHXT5.js} +3 -3
  57. package/dist/{chunk-T4ZFZTY6.js → chunk-EHML2DLR.js} +4 -4
  58. package/dist/{chunk-N3RVMBPX.js → chunk-EJKQGUUM.js} +4 -4
  59. package/dist/{chunk-E2YZ7IMT.js → chunk-ESDSTS5N.js} +6 -6
  60. package/dist/{chunk-LCG34A5T.js → chunk-EVINS473.js} +5 -3
  61. package/dist/chunk-EXRVOGJ5.js +325 -0
  62. package/dist/{chunk-YHBI52P2.js → chunk-GDW6NFYN.js} +3 -3
  63. package/dist/chunk-GOCO45FF.js +619 -0
  64. package/dist/{chunk-7ZM7SNCZ.js → chunk-GPHGPY6T.js} +3 -3
  65. package/dist/{chunk-CGZXQ7PA.js → chunk-HNNNJP3A.js} +3 -3
  66. package/dist/{chunk-ZZSNTCCL.js → chunk-IESEBPYA.js} +4 -4
  67. package/dist/{chunk-74AIU53R.js → chunk-JZ4HGFWK.js} +3 -3
  68. package/dist/chunk-KBQJIVUB.js +33 -0
  69. package/dist/{chunk-QNIKRB62.js → chunk-KCM4KEZ2.js} +4 -4
  70. package/dist/{chunk-3QXLIZIX.js → chunk-KNGJ3CSB.js} +3 -3
  71. package/dist/{chunk-5YWH2ANQ.js → chunk-KNW3IUWX.js} +11 -10
  72. package/dist/{chunk-KZP6B6B3.js → chunk-KTWTYK5U.js} +16 -5
  73. package/dist/{chunk-LYXPJERB.js → chunk-L7Z6XGBU.js} +5 -5
  74. package/dist/{chunk-TX57TNJS.js → chunk-LLUWBQK6.js} +9 -9
  75. package/dist/{chunk-NC63TYNW.js → chunk-MDKVYC6R.js} +7 -7
  76. package/dist/{chunk-22M75A3N.js → chunk-MS6DY4CE.js} +14 -11
  77. package/dist/{chunk-LLPWQDF7.js → chunk-MTOTPAYZ.js} +3 -3
  78. package/dist/{chunk-AZ7DKRBY.js → chunk-MVF7FA4D.js} +5 -5
  79. package/dist/{chunk-AIGYMTCU.js → chunk-MVUNB43J.js} +3 -3
  80. package/dist/{chunk-UGBNYSBN.js → chunk-O24HHIQG.js} +20 -34
  81. package/dist/{chunk-NKG4N6HA.js → chunk-O5EHNNPS.js} +4 -4
  82. package/dist/{chunk-5DP7W5HX.js → chunk-OIPFTJS6.js} +3 -3
  83. package/dist/{chunk-DD5KJVFV.js → chunk-OXNIEIOY.js} +19 -19
  84. package/dist/chunk-P2BGR77C.js +344 -0
  85. package/dist/{chunk-CGHYXWTT.js → chunk-PFAFTLN3.js} +4 -4
  86. package/dist/{chunk-4RBIWI2Q.js → chunk-Q2KR7PSX.js} +3 -3
  87. package/dist/{chunk-7GUPNTAH.js → chunk-QSOLK2I2.js} +7 -7
  88. package/dist/chunk-QTWRR7IS.js +1129 -0
  89. package/dist/{chunk-OLLD2BZN.js → chunk-QZHAL4BL.js} +3 -3
  90. package/dist/{chunk-OACWA4TC.js → chunk-R25NHHYT.js} +6 -6
  91. package/dist/{chunk-QDKETK7D.js → chunk-S55JKMG7.js} +5 -5
  92. package/dist/{chunk-HV2W6HUR.js → chunk-S5LLA36K.js} +10 -10
  93. package/dist/{chunk-QDYE5LVT.js → chunk-SF3HCW4G.js} +45 -4
  94. package/dist/{chunk-KHGW72BM.js → chunk-SGMVB7HD.js} +3 -3
  95. package/dist/chunk-SKPKL47Y.js +5671 -0
  96. package/dist/{chunk-6MMBQVRO.js → chunk-TCTTZHUS.js} +9 -9
  97. package/dist/chunk-U5X3MLM5.js +67 -0
  98. package/dist/chunk-UHSGD4CD.js +364 -0
  99. package/dist/chunk-UJ4WEQHR.js +525 -0
  100. package/dist/{chunk-IEAWNA3V.js → chunk-VDFWWWLL.js} +3 -3
  101. package/dist/{chunk-5KSD4WKN.js → chunk-VIKV25VP.js} +5 -5
  102. package/dist/chunk-WJB5GWAZ.js +20 -0
  103. package/dist/{chunk-HHYEAFCL.js → chunk-XAQQ4LYL.js} +11 -11
  104. package/dist/{chunk-KJ5JUS53.js → chunk-XCFFM2C7.js} +9 -9
  105. package/dist/chunk-XKTD3X6Z.js +183 -0
  106. package/dist/{chunk-GQRSABRN.js → chunk-XWXXKEG6.js} +4 -4
  107. package/dist/chunk-YGFTNICV.js +110 -0
  108. package/dist/{chunk-T5574MXM.js → chunk-YGJL7QS7.js} +8 -8
  109. package/dist/{chunk-SB3DG572.js → chunk-YKPTUANT.js} +6 -6
  110. package/dist/{chunk-YPNL2NBD.js → chunk-YQAYAJ2T.js} +33 -11
  111. package/dist/chunk-YXYZW6WU.js +998 -0
  112. package/dist/{chunk-IQNVSQRK.js → chunk-Z6NSOC6T.js} +5 -5
  113. package/dist/{chunk-BBKE4W3B.js → chunk-ZAWGG4H2.js} +7 -7
  114. package/dist/{chunk-MFFA5MXY.js → chunk-ZF362B2X.js} +5 -5
  115. package/dist/{chunk-RJTVCA62.js → chunk-ZJIY642R.js} +3 -3
  116. package/dist/color-input.d.ts +93 -0
  117. package/dist/color-input.js +35 -0
  118. package/dist/color-picker.d.ts +268 -0
  119. package/dist/color-picker.js +28 -0
  120. package/dist/color-value-DYzChVOW.d.ts +129 -0
  121. package/dist/combobox.d.ts +1 -1
  122. package/dist/combobox.js +13 -12
  123. package/dist/date-calendar.d.ts +49 -0
  124. package/dist/date-calendar.js +12 -0
  125. package/dist/date-input.d.ts +1 -1
  126. package/dist/date-input.js +11 -10
  127. package/dist/date-picker.d.ts +15 -131
  128. package/dist/date-picker.js +25 -21
  129. package/dist/date-types-DrDdF6WJ.d.ts +100 -0
  130. package/dist/dialog.d.ts +1 -1
  131. package/dist/dialog.js +9 -9
  132. package/dist/drawer.d.ts +1 -1
  133. package/dist/drawer.js +8 -8
  134. package/dist/dropdown-menu.d.ts +1 -1
  135. package/dist/dropdown-menu.js +4 -4
  136. package/dist/dropzone.d.ts +3 -3
  137. package/dist/dropzone.js +17 -16
  138. package/dist/form.d.ts +15 -5
  139. package/dist/form.js +74 -35
  140. package/dist/header-navigation.d.ts +2 -2
  141. package/dist/header-navigation.js +19 -18
  142. package/dist/helper.d.ts +1 -1
  143. package/dist/index.d.ts +25 -11
  144. package/dist/index.js +90 -77
  145. package/dist/indicator.js +4 -4
  146. package/dist/inline-banner.d.ts +68 -0
  147. package/dist/inline-banner.js +20 -0
  148. package/dist/input.d.ts +1 -1
  149. package/dist/input.js +10 -9
  150. package/dist/kanban-board.d.ts +2 -2
  151. package/dist/kanban-board.js +14 -13
  152. package/dist/labels-C992bt7G.d.ts +1160 -0
  153. package/dist/line-chart.d.ts +2 -2
  154. package/dist/line-chart.js +7 -6
  155. package/dist/mcp.js +231 -0
  156. package/dist/number-input.d.ts +1 -1
  157. package/dist/number-input.js +10 -9
  158. package/dist/pagination.d.ts +1 -1
  159. package/dist/pagination.js +14 -13
  160. package/dist/{card-D56VxyAe.d.ts → panel-CUGm_Mxy.d.ts} +9 -57
  161. package/dist/payment-input.d.ts +3 -3
  162. package/dist/payment-input.js +10 -9
  163. package/dist/picker-draft-BPV3MUPY.d.ts +9 -0
  164. package/dist/pie-chart.d.ts +2 -2
  165. package/dist/pie-chart.js +7 -6
  166. package/dist/popover.d.ts +65 -4
  167. package/dist/popover.js +8 -8
  168. package/dist/progress-steps.js +4 -4
  169. package/dist/progress.js +3 -3
  170. package/dist/provider.d.ts +1 -1
  171. package/dist/provider.js +3 -3
  172. package/dist/qr-code.d.ts +227 -0
  173. package/dist/qr-code.js +19 -0
  174. package/dist/radar-chart.d.ts +2 -2
  175. package/dist/radar-chart.js +7 -6
  176. package/dist/radial-chart.d.ts +2 -2
  177. package/dist/radial-chart.js +7 -6
  178. package/dist/radio.js +8 -7
  179. package/dist/rich-text-editor.d.ts +624 -0
  180. package/dist/rich-text-editor.js +51 -0
  181. package/dist/rich-text-highlight.d.ts +11 -0
  182. package/dist/rich-text-highlight.js +65 -0
  183. package/dist/rich-text-sanitize.d.ts +17 -0
  184. package/dist/rich-text-sanitize.js +176 -0
  185. package/dist/select.d.ts +2 -2
  186. package/dist/select.js +16 -15
  187. package/dist/separator.js +2 -2
  188. package/dist/shared-CGf2D8ZX.d.ts +20 -0
  189. package/dist/sidebar-navigation.d.ts +73 -32
  190. package/dist/sidebar-navigation.js +14 -13
  191. package/dist/sidebar-state.d.ts +76 -0
  192. package/dist/sidebar-state.js +27 -0
  193. package/dist/skeleton.js +2 -2
  194. package/dist/slider.d.ts +321 -0
  195. package/dist/slider.js +13 -0
  196. package/dist/styles.css +1 -1
  197. package/dist/switch.d.ts +1 -1
  198. package/dist/switch.js +2 -2
  199. package/dist/table.d.ts +3 -19
  200. package/dist/table.js +33 -32
  201. package/dist/tabs.js +2 -2
  202. package/dist/tag-input.d.ts +3 -3
  203. package/dist/tag-input.js +13 -12
  204. package/dist/tag.d.ts +1 -1
  205. package/dist/tag.js +4 -4
  206. package/dist/textarea.js +8 -7
  207. package/dist/theme.css +965 -0
  208. package/dist/theme.js +12 -11
  209. package/dist/toast.d.ts +1 -1
  210. package/dist/toast.js +12 -11
  211. package/dist/tooltip.js +4 -3
  212. package/dist/tree.d.ts +1 -1
  213. package/dist/tree.js +6 -6
  214. package/dist/{types-DR9rAEy1.d.ts → types-DYFl0CEB.d.ts} +1 -1
  215. package/dist/{use-uploads-KaPqDklo.d.ts → use-uploads-2E7n0PWT.d.ts} +1 -1
  216. package/dist/verification-code-input.js +10 -9
  217. package/package.json +92 -8
  218. package/dist/chunk-BLIZ3CL3.js +0 -49
  219. package/dist/labels-DPrh0se9.d.ts +0 -627
  220. package/dist/panel-El4oI68p.d.ts +0 -9
  221. package/dist/shared-BYXJPnsN.d.ts +0 -11
@@ -1,4 +1,4 @@
1
- import { seriesColor, useSeriesColors, paletteLength } from './chunk-22M75A3N.js';
1
+ import { seriesColor, useSeriesColors, paletteLength } from './chunk-MS6DY4CE.js';
2
2
  import * as React from 'react';
3
3
 
4
4
  function usePolarData(component, data, palette) {
@@ -29,5 +29,5 @@ function resolveMax(max, values) {
29
29
  }
30
30
 
31
31
  export { resolveMax, usePolarData };
32
- //# sourceMappingURL=chunk-OLLD2BZN.js.map
33
- //# sourceMappingURL=chunk-OLLD2BZN.js.map
32
+ //# sourceMappingURL=chunk-QZHAL4BL.js.map
33
+ //# sourceMappingURL=chunk-QZHAL4BL.js.map
@@ -1,10 +1,10 @@
1
- import { FG_HOVER, WASH_HOVER, BOXED_BOX, BOX_RING, SOLID, SOLID_HOVER, SOLID_BOX, SOLID_GLOSS } from './chunk-MCQG4H6T.js';
1
+ import { FG_HOVER, WASH_HOVER, BOXED_BOX, BOX_RING, SOLID, SOLID_HOVER, SOLID_BOX, SOLID_GLOSS } from './chunk-6T3QAO5K.js';
2
2
  import { overflowClasses } from './chunk-DWKILXHE.js';
3
- import { useSeamlessSlot, SEAMLESS_CONTROL, SEAMLESS_INHERIT_FG, SEAMLESS_FILL_COUPLED_FG } from './chunk-7ZM7SNCZ.js';
3
+ import { useSeamlessSlot, SEAMLESS_CONTROL, SEAMLESS_INHERIT_FG, SEAMLESS_FILL_COUPLED_FG } from './chunk-GPHGPY6T.js';
4
4
  import { Slot } from './chunk-52IFGFTL.js';
5
- import { LoaderCircleIcon } from './chunk-BLIZ3CL3.js';
5
+ import { LoaderCircleIcon } from './chunk-YGFTNICV.js';
6
6
  import { cn } from './chunk-ZSNJ6UA3.js';
7
- import { warnNeedsName } from './chunk-QDYE5LVT.js';
7
+ import { warnNeedsName } from './chunk-SF3HCW4G.js';
8
8
  import { mergeProps } from '@base-ui/react/merge-props';
9
9
  import { useRender } from '@base-ui/react/use-render';
10
10
  import 'react';
@@ -158,5 +158,5 @@ function Button(props) {
158
158
  }
159
159
 
160
160
  export { Button };
161
- //# sourceMappingURL=chunk-OACWA4TC.js.map
162
- //# sourceMappingURL=chunk-OACWA4TC.js.map
161
+ //# sourceMappingURL=chunk-R25NHHYT.js.map
162
+ //# sourceMappingURL=chunk-R25NHHYT.js.map
@@ -1,6 +1,6 @@
1
1
  import { OptionRow } from './chunk-D7EE5GWU.js';
2
2
  import { cn } from './chunk-ZSNJ6UA3.js';
3
- import { warnNeedsName } from './chunk-QDYE5LVT.js';
3
+ import { warnNeedsName } from './chunk-SF3HCW4G.js';
4
4
  import { Switch as Switch$1 } from '@base-ui/react/switch';
5
5
  import * as React from 'react';
6
6
  import { jsx } from 'react/jsx-runtime';
@@ -51,8 +51,8 @@ function Switch(props) {
51
51
  ...rest,
52
52
  id: resolvedId,
53
53
  disabled,
54
- "aria-labelledby": hasLabel ? labelId : void 0,
55
- "aria-describedby": hasHint ? hintId : void 0,
54
+ "aria-labelledby": hasLabel ? labelId : rest["aria-labelledby"],
55
+ "aria-describedby": hasHint ? hintId : rest["aria-describedby"],
56
56
  onCheckedChange: onCheckedChange ? (checked, details) => onCheckedChange(checked, details.event) : void 0,
57
57
  className: track,
58
58
  children: /* @__PURE__ */ jsx(Switch$1.Thumb, { className: thumb })
@@ -63,5 +63,5 @@ function Switch(props) {
63
63
  }
64
64
 
65
65
  export { Switch };
66
- //# sourceMappingURL=chunk-QDKETK7D.js.map
67
- //# sourceMappingURL=chunk-QDKETK7D.js.map
66
+ //# sourceMappingURL=chunk-S55JKMG7.js.map
67
+ //# sourceMappingURL=chunk-S55JKMG7.js.map
@@ -1,18 +1,18 @@
1
1
  import { useDebouncedCallback } from './chunk-F6NLE6XJ.js';
2
- import { ListboxFooter, MultiValueCount } from './chunk-4RBIWI2Q.js';
3
- import { useTagRow } from './chunk-IEAWNA3V.js';
4
- import { tagSlotClass, tagContentClass, tagCloseClass, tagRootClass } from './chunk-4P2NBLBW.js';
2
+ import { ListboxFooter, MultiValueCount } from './chunk-Q2KR7PSX.js';
5
3
  import { ScrollView } from './chunk-SKJC2KYD.js';
4
+ import { useTagRow } from './chunk-VDFWWWLL.js';
5
+ import { tagSlotClass, tagContentClass, tagCloseClass, tagRootClass } from './chunk-4P2NBLBW.js';
6
6
  import { mapOptions, isOptionGroup, buildOptionMap } from './chunk-7JBNLEJ7.js';
7
7
  import { useControlScrollFade } from './chunk-7EUAMHMU.js';
8
- import { FieldShell } from './chunk-X2VMIBK5.js';
9
- import { useFieldValidity, FieldFrame, LISTBOX_PX_SM, CONTROL_ICON, SLOT_ICON } from './chunk-5KSD4WKN.js';
8
+ import { FieldShell } from './chunk-A4YPUS6C.js';
9
+ import { useFieldValidity, FieldFrame, LISTBOX_PX_SM, CONTROL_ICON, SLOT_ICON } from './chunk-VIKV25VP.js';
10
10
  import { Slot } from './chunk-52IFGFTL.js';
11
11
  import { POPUP_MOTION } from './chunk-O4GRKO3I.js';
12
- import { PlusIcon, XIcon, ChevronDownIcon, LoaderCircleIcon, CheckIcon } from './chunk-BLIZ3CL3.js';
12
+ import { PlusIcon, XIcon, ChevronDownIcon, LoaderCircleIcon, CheckIcon } from './chunk-YGFTNICV.js';
13
13
  import { cn } from './chunk-ZSNJ6UA3.js';
14
- import { useLabels, usePublishedLabels, LabelsContext } from './chunk-RJTVCA62.js';
15
- import { warnNonNegativeInt } from './chunk-QDYE5LVT.js';
14
+ import { useLabels, usePublishedLabels, LabelsContext } from './chunk-ZJIY642R.js';
15
+ import { warnNonNegativeInt } from './chunk-SF3HCW4G.js';
16
16
  import { Combobox as Combobox$1 } from '@base-ui/react/combobox';
17
17
  import * as React from 'react';
18
18
  import { jsx, jsxs } from 'react/jsx-runtime';
@@ -571,5 +571,5 @@ ComboboxLoading.displayName = "ComboboxLoading";
571
571
  var Combobox = ComboboxFlat;
572
572
 
573
573
  export { Combobox };
574
- //# sourceMappingURL=chunk-HV2W6HUR.js.map
575
- //# sourceMappingURL=chunk-HV2W6HUR.js.map
574
+ //# sourceMappingURL=chunk-S5LLA36K.js.map
575
+ //# sourceMappingURL=chunk-S5LLA36K.js.map
@@ -61,13 +61,33 @@ function warnExclusive(component, slot, set) {
61
61
  if (!isDev()) return;
62
62
  const on = set.filter(([, present]) => present).map(([name]) => name);
63
63
  if (on.length > 1) {
64
- devWarn(`<${component}> got ${on.map((n) => `\`${n}\``).join(" + ")} but has one ${slot} \u2014 \`${on[0]}\` wins and the rest are ignored.`);
64
+ devWarn(`<${component}> got ${on.map((n2) => `\`${n2}\``).join(" + ")} but has one ${slot} \u2014 \`${on[0]}\` wins and the rest are ignored.`);
65
65
  }
66
66
  }
67
67
  function warnNeedsName(component, has, props = "`label`, `aria-label`, or `aria-labelledby`") {
68
68
  if (has || !isDev()) return;
69
69
  devWarn(`<${component}> needs an accessible name \u2014 pass ${props}.`);
70
70
  }
71
+ var ASPECT_TOLERANCE = 0.15;
72
+ function warnAspectOverflow(component, prop, declared, el) {
73
+ if (!el || !isDev()) return;
74
+ const { width, height } = el.getBoundingClientRect();
75
+ if (width === 0 || height === 0) return;
76
+ const actual = width / height;
77
+ if (actual <= declared * (1 + ASPECT_TOLERANCE)) return;
78
+ devWarn(
79
+ `<${component}> \`${prop}\` is ${declared}, but the mark renders at ${actual.toFixed(2)} \u2014 wider than the box that ratio cleared. The mark is scaled down to fit rather than allowed to spill, so nothing breaks; what it costs is size, because the hole was punched the wrong shape and the height goes unused. Set \`${prop}={${Number(actual.toFixed(2))}}\`.`
80
+ );
81
+ }
82
+ function warnHostPadded(component, el) {
83
+ if (!el?.parentElement || !isDev()) return;
84
+ const cs = getComputedStyle(el.parentElement);
85
+ const padded = [cs.paddingTop, cs.paddingRight, cs.paddingBottom, cs.paddingLeft].some((v) => Number(v.replace("px", "")) > 0);
86
+ if (!padded) return;
87
+ devWarn(
88
+ `<${component}> draws its own row padding and expects an UNPADDED host, but its parent is padded (${cs.padding}) \u2014 so every row is inset twice and the full-bleed rule stops short of both edges. Pass \`padding="none"\` to the enclosing \`Popover\` or \`Card\`.`
89
+ );
90
+ }
71
91
  function warnStickyNoScrollport(component, prop, el) {
72
92
  if (!el || !isDev()) return;
73
93
  const port = nearestScrollport(el);
@@ -76,7 +96,28 @@ function warnStickyNoScrollport(component, prop, el) {
76
96
  `<${component}> \`${prop}\` has no scrollable ancestor \u2014 the nearest one is \`overflow-y: ${port.overflowY}\`, which clips its content instead of scrolling it, so the reader can never scroll it into a pinned state. Make that box \`overflow-y: auto\` (or drop the clip).`
77
97
  );
78
98
  }
99
+ var STEPS_PER_PIXEL_BUDGET = 10;
100
+ var n = (value) => value.toLocaleString("en-US");
101
+ function niceStep(raw) {
102
+ const magnitude = 10 ** Math.floor(Math.log10(raw));
103
+ const normalized = raw / magnitude;
104
+ return (normalized <= 1 ? 1 : normalized <= 2 ? 2 : normalized <= 5 ? 5 : 10) * magnitude;
105
+ }
106
+ function warnStepFinerThanTrack(component, prop, el, scale, axis, span) {
107
+ if (!el || !isDev()) return;
108
+ const { min, max, step } = scale;
109
+ if (!Number.isFinite(step) || step <= 0 || !Number.isFinite(max - min) || max <= min) return;
110
+ const travel = el.getBoundingClientRect()[axis] * (span?.portion ?? 1);
111
+ if (travel === 0) return;
112
+ const steps = (max - min) / step;
113
+ if (steps <= travel * STEPS_PER_PIXEL_BUDGET) return;
114
+ const px = Math.round(travel);
115
+ const perPixel = steps / travel;
116
+ devWarn(
117
+ `<${component}> \`${prop}\`${span ? ` in the ${span.band} band` : ""} is ${n(step)} across ${n(min)}\u2026${n(max)} \u2014 ${n(Math.round(steps))} steps along ${n(px)}px of travel, so one pixel is ${n(Math.round(perPixel))} steps and a drag can only ever land on about ${n(px)} of them. The grid is still honoured (arrow keys and a typed readout hit every value); what it is not is reachable by pointer, and the readout prints numbers a drag cannot reproduce. Use a coarser \`${prop}\` (\u2248${n(niceStep((max - min) / travel))} here) with \`format\`, or \`stops\` if the stops are a named set.`
118
+ );
119
+ }
79
120
 
80
- export { devWarn, nearestScrollableOn, nearestScrollport, scrollportScrolls, warnExclusive, warnNeedsName, warnNonNegativeInt, warnPositiveInt, warnPositiveNumber, warnRange, warnStickyNoScrollport };
81
- //# sourceMappingURL=chunk-QDYE5LVT.js.map
82
- //# sourceMappingURL=chunk-QDYE5LVT.js.map
121
+ export { devWarn, nearestScrollableOn, nearestScrollport, scrollportScrolls, warnAspectOverflow, warnExclusive, warnHostPadded, warnNeedsName, warnNonNegativeInt, warnPositiveInt, warnPositiveNumber, warnRange, warnStepFinerThanTrack, warnStickyNoScrollport };
122
+ //# sourceMappingURL=chunk-SF3HCW4G.js.map
123
+ //# sourceMappingURL=chunk-SF3HCW4G.js.map
@@ -1,4 +1,4 @@
1
- import { Cartesian } from './chunk-5DP7W5HX.js';
1
+ import { Cartesian } from './chunk-OIPFTJS6.js';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
 
4
4
  function AreaChart({ fill = "gradient", band = "detached", stacked = false, curve = "monotone", ...rest }) {
@@ -6,5 +6,5 @@ function AreaChart({ fill = "gradient", band = "detached", stacked = false, curv
6
6
  }
7
7
 
8
8
  export { AreaChart };
9
- //# sourceMappingURL=chunk-KHGW72BM.js.map
10
- //# sourceMappingURL=chunk-KHGW72BM.js.map
9
+ //# sourceMappingURL=chunk-SGMVB7HD.js.map
10
+ //# sourceMappingURL=chunk-SGMVB7HD.js.map