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.
- package/README.md +183 -63
- package/THIRD-PARTY-NOTICES.md +15 -0
- package/dist/GradientPicker-CQm3GT7F.d.ts +144 -0
- package/dist/{PaymentInput-Dn5WVQVy.d.ts → PaymentInput-Cz5jFB3p.d.ts} +1 -1
- package/dist/{Select-Dt5ARIH8.d.ts → Select-CXOAMlk7.d.ts} +15 -1
- package/dist/{TagInput-BaBeve6L.d.ts → TagInput-CzIrONr-.d.ts} +1 -1
- package/dist/area-chart.d.ts +2 -2
- package/dist/area-chart.js +7 -6
- package/dist/at-least-one-BZ2dsck-.d.ts +18 -0
- package/dist/avatar.d.ts +1 -1
- package/dist/avatar.js +11 -10
- package/dist/badge.d.ts +1 -1
- package/dist/badge.js +6 -6
- package/dist/bar-chart.d.ts +2 -2
- package/dist/bar-chart.js +7 -6
- package/dist/breadcrumb.d.ts +1 -1
- package/dist/breadcrumb.js +4 -4
- package/dist/button.d.ts +1 -1
- package/dist/button.js +11 -10
- package/dist/calendar.d.ts +1 -1
- package/dist/calendar.js +15 -14
- package/dist/callout.d.ts +4 -2
- package/dist/callout.js +12 -11
- package/dist/card.d.ts +59 -3
- package/dist/card.js +3 -3
- package/dist/carousel.d.ts +169 -0
- package/dist/carousel.js +9 -0
- package/dist/catalog.json +11180 -0
- package/dist/checkbox.js +8 -7
- package/dist/{chunk-R4Z7BINC.js → chunk-26XQU3TC.js} +8 -8
- package/dist/{chunk-AIARANKE.js → chunk-3JQKVC2K.js} +4 -4
- package/dist/chunk-3P3QZPHV.js +109 -0
- package/dist/{chunk-GLKFFA7N.js → chunk-44AWXIQK.js} +5 -5
- package/dist/{chunk-FWRHBMWT.js → chunk-4Y32RIC7.js} +5 -19
- package/dist/{chunk-5XPMY2LF.js → chunk-5ECTNYKU.js} +5 -5
- package/dist/{chunk-ZD3MOLIB.js → chunk-5GBA6X6A.js} +4 -4
- package/dist/{chunk-LE44X5GS.js → chunk-5SGF47TZ.js} +9 -9
- package/dist/{chunk-POQTE7JI.js → chunk-5XSR757T.js} +7 -7
- package/dist/{chunk-3HOHLQVP.js → chunk-6FGLABYH.js} +3 -3
- package/dist/{chunk-MCQG4H6T.js → chunk-6T3QAO5K.js} +12 -4
- package/dist/{chunk-SKRR3ZMP.js → chunk-737A4YNC.js} +3 -3
- package/dist/{chunk-AFYXSZGW.js → chunk-7LSUUEAF.js} +7 -5
- package/dist/{chunk-7VLYQR4D.js → chunk-7OFGPDYJ.js} +3 -3
- package/dist/{chunk-54SIZR63.js → chunk-7UCKFULR.js} +7 -7
- package/dist/{chunk-LQURV7HQ.js → chunk-7ZA3QZRP.js} +4 -4
- package/dist/{chunk-X2VMIBK5.js → chunk-A4YPUS6C.js} +4 -4
- package/dist/{chunk-5ZEUTSCV.js → chunk-B4OVIE2X.js} +6 -6
- package/dist/{chunk-P6CON2R2.js → chunk-BH32X25C.js} +3 -3
- package/dist/{chunk-7QXOGAN6.js → chunk-BJHLW25G.js} +85 -538
- package/dist/{chunk-ULGCGKOE.js → chunk-BKBINQJZ.js} +4 -4
- package/dist/{chunk-CFFWYXDW.js → chunk-BXQFBFT7.js} +5 -5
- package/dist/{chunk-I6WMNXC7.js → chunk-CQGMOPLG.js} +6 -6
- package/dist/{chunk-FNQJJO63.js → chunk-CUONE6LA.js} +4 -4
- package/dist/{chunk-D6XO4JVM.js → chunk-CVCS5G3E.js} +42 -20
- package/dist/{chunk-33TOK7ES.js → chunk-DCKVNHV5.js} +5 -5
- package/dist/{chunk-ZR6HNKSN.js → chunk-DYRGHXT5.js} +3 -3
- package/dist/{chunk-T4ZFZTY6.js → chunk-EHML2DLR.js} +4 -4
- package/dist/{chunk-N3RVMBPX.js → chunk-EJKQGUUM.js} +4 -4
- package/dist/{chunk-E2YZ7IMT.js → chunk-ESDSTS5N.js} +6 -6
- package/dist/{chunk-LCG34A5T.js → chunk-EVINS473.js} +5 -3
- package/dist/chunk-EXRVOGJ5.js +325 -0
- package/dist/{chunk-YHBI52P2.js → chunk-GDW6NFYN.js} +3 -3
- package/dist/chunk-GOCO45FF.js +619 -0
- package/dist/{chunk-7ZM7SNCZ.js → chunk-GPHGPY6T.js} +3 -3
- package/dist/{chunk-CGZXQ7PA.js → chunk-HNNNJP3A.js} +3 -3
- package/dist/{chunk-ZZSNTCCL.js → chunk-IESEBPYA.js} +4 -4
- package/dist/{chunk-74AIU53R.js → chunk-JZ4HGFWK.js} +3 -3
- package/dist/chunk-KBQJIVUB.js +33 -0
- package/dist/{chunk-QNIKRB62.js → chunk-KCM4KEZ2.js} +4 -4
- package/dist/{chunk-3QXLIZIX.js → chunk-KNGJ3CSB.js} +3 -3
- package/dist/{chunk-5YWH2ANQ.js → chunk-KNW3IUWX.js} +11 -10
- package/dist/{chunk-KZP6B6B3.js → chunk-KTWTYK5U.js} +16 -5
- package/dist/{chunk-LYXPJERB.js → chunk-L7Z6XGBU.js} +5 -5
- package/dist/{chunk-TX57TNJS.js → chunk-LLUWBQK6.js} +9 -9
- package/dist/{chunk-NC63TYNW.js → chunk-MDKVYC6R.js} +7 -7
- package/dist/{chunk-22M75A3N.js → chunk-MS6DY4CE.js} +14 -11
- package/dist/{chunk-LLPWQDF7.js → chunk-MTOTPAYZ.js} +3 -3
- package/dist/{chunk-AZ7DKRBY.js → chunk-MVF7FA4D.js} +5 -5
- package/dist/{chunk-AIGYMTCU.js → chunk-MVUNB43J.js} +3 -3
- package/dist/{chunk-UGBNYSBN.js → chunk-O24HHIQG.js} +20 -34
- package/dist/{chunk-NKG4N6HA.js → chunk-O5EHNNPS.js} +4 -4
- package/dist/{chunk-5DP7W5HX.js → chunk-OIPFTJS6.js} +3 -3
- package/dist/{chunk-DD5KJVFV.js → chunk-OXNIEIOY.js} +19 -19
- package/dist/chunk-P2BGR77C.js +344 -0
- package/dist/{chunk-CGHYXWTT.js → chunk-PFAFTLN3.js} +4 -4
- package/dist/{chunk-4RBIWI2Q.js → chunk-Q2KR7PSX.js} +3 -3
- package/dist/{chunk-7GUPNTAH.js → chunk-QSOLK2I2.js} +7 -7
- package/dist/chunk-QTWRR7IS.js +1129 -0
- package/dist/{chunk-OLLD2BZN.js → chunk-QZHAL4BL.js} +3 -3
- package/dist/{chunk-OACWA4TC.js → chunk-R25NHHYT.js} +6 -6
- package/dist/{chunk-QDKETK7D.js → chunk-S55JKMG7.js} +5 -5
- package/dist/{chunk-HV2W6HUR.js → chunk-S5LLA36K.js} +10 -10
- package/dist/{chunk-QDYE5LVT.js → chunk-SF3HCW4G.js} +45 -4
- package/dist/{chunk-KHGW72BM.js → chunk-SGMVB7HD.js} +3 -3
- package/dist/chunk-SKPKL47Y.js +5671 -0
- package/dist/{chunk-6MMBQVRO.js → chunk-TCTTZHUS.js} +9 -9
- package/dist/chunk-U5X3MLM5.js +67 -0
- package/dist/chunk-UHSGD4CD.js +364 -0
- package/dist/chunk-UJ4WEQHR.js +525 -0
- package/dist/{chunk-IEAWNA3V.js → chunk-VDFWWWLL.js} +3 -3
- package/dist/{chunk-5KSD4WKN.js → chunk-VIKV25VP.js} +5 -5
- package/dist/chunk-WJB5GWAZ.js +20 -0
- package/dist/{chunk-HHYEAFCL.js → chunk-XAQQ4LYL.js} +11 -11
- package/dist/{chunk-KJ5JUS53.js → chunk-XCFFM2C7.js} +9 -9
- package/dist/chunk-XKTD3X6Z.js +183 -0
- package/dist/{chunk-GQRSABRN.js → chunk-XWXXKEG6.js} +4 -4
- package/dist/chunk-YGFTNICV.js +110 -0
- package/dist/{chunk-T5574MXM.js → chunk-YGJL7QS7.js} +8 -8
- package/dist/{chunk-SB3DG572.js → chunk-YKPTUANT.js} +6 -6
- package/dist/{chunk-YPNL2NBD.js → chunk-YQAYAJ2T.js} +33 -11
- package/dist/chunk-YXYZW6WU.js +998 -0
- package/dist/{chunk-IQNVSQRK.js → chunk-Z6NSOC6T.js} +5 -5
- package/dist/{chunk-BBKE4W3B.js → chunk-ZAWGG4H2.js} +7 -7
- package/dist/{chunk-MFFA5MXY.js → chunk-ZF362B2X.js} +5 -5
- package/dist/{chunk-RJTVCA62.js → chunk-ZJIY642R.js} +3 -3
- package/dist/color-input.d.ts +93 -0
- package/dist/color-input.js +35 -0
- package/dist/color-picker.d.ts +268 -0
- package/dist/color-picker.js +28 -0
- package/dist/color-value-DYzChVOW.d.ts +129 -0
- package/dist/combobox.d.ts +1 -1
- package/dist/combobox.js +13 -12
- package/dist/date-calendar.d.ts +49 -0
- package/dist/date-calendar.js +12 -0
- package/dist/date-input.d.ts +1 -1
- package/dist/date-input.js +11 -10
- package/dist/date-picker.d.ts +15 -131
- package/dist/date-picker.js +25 -21
- package/dist/date-types-DrDdF6WJ.d.ts +100 -0
- package/dist/dialog.d.ts +1 -1
- package/dist/dialog.js +9 -9
- package/dist/drawer.d.ts +1 -1
- package/dist/drawer.js +8 -8
- package/dist/dropdown-menu.d.ts +1 -1
- package/dist/dropdown-menu.js +4 -4
- package/dist/dropzone.d.ts +3 -3
- package/dist/dropzone.js +17 -16
- package/dist/form.d.ts +15 -5
- package/dist/form.js +74 -35
- package/dist/header-navigation.d.ts +2 -2
- package/dist/header-navigation.js +19 -18
- package/dist/helper.d.ts +1 -1
- package/dist/index.d.ts +25 -11
- package/dist/index.js +90 -77
- package/dist/indicator.js +4 -4
- package/dist/inline-banner.d.ts +68 -0
- package/dist/inline-banner.js +20 -0
- package/dist/input.d.ts +1 -1
- package/dist/input.js +10 -9
- package/dist/kanban-board.d.ts +2 -2
- package/dist/kanban-board.js +14 -13
- package/dist/labels-C992bt7G.d.ts +1160 -0
- package/dist/line-chart.d.ts +2 -2
- package/dist/line-chart.js +7 -6
- package/dist/mcp.js +231 -0
- package/dist/number-input.d.ts +1 -1
- package/dist/number-input.js +10 -9
- package/dist/pagination.d.ts +1 -1
- package/dist/pagination.js +14 -13
- package/dist/{card-D56VxyAe.d.ts → panel-CUGm_Mxy.d.ts} +9 -57
- package/dist/payment-input.d.ts +3 -3
- package/dist/payment-input.js +10 -9
- package/dist/picker-draft-BPV3MUPY.d.ts +9 -0
- package/dist/pie-chart.d.ts +2 -2
- package/dist/pie-chart.js +7 -6
- package/dist/popover.d.ts +65 -4
- package/dist/popover.js +8 -8
- package/dist/progress-steps.js +4 -4
- package/dist/progress.js +3 -3
- package/dist/provider.d.ts +1 -1
- package/dist/provider.js +3 -3
- package/dist/qr-code.d.ts +227 -0
- package/dist/qr-code.js +19 -0
- package/dist/radar-chart.d.ts +2 -2
- package/dist/radar-chart.js +7 -6
- package/dist/radial-chart.d.ts +2 -2
- package/dist/radial-chart.js +7 -6
- package/dist/radio.js +8 -7
- package/dist/rich-text-editor.d.ts +624 -0
- package/dist/rich-text-editor.js +51 -0
- package/dist/rich-text-highlight.d.ts +11 -0
- package/dist/rich-text-highlight.js +65 -0
- package/dist/rich-text-sanitize.d.ts +17 -0
- package/dist/rich-text-sanitize.js +176 -0
- package/dist/select.d.ts +2 -2
- package/dist/select.js +16 -15
- package/dist/separator.js +2 -2
- package/dist/shared-CGf2D8ZX.d.ts +20 -0
- package/dist/sidebar-navigation.d.ts +73 -32
- package/dist/sidebar-navigation.js +14 -13
- package/dist/sidebar-state.d.ts +76 -0
- package/dist/sidebar-state.js +27 -0
- package/dist/skeleton.js +2 -2
- package/dist/slider.d.ts +321 -0
- package/dist/slider.js +13 -0
- package/dist/styles.css +1 -1
- package/dist/switch.d.ts +1 -1
- package/dist/switch.js +2 -2
- package/dist/table.d.ts +3 -19
- package/dist/table.js +33 -32
- package/dist/tabs.js +2 -2
- package/dist/tag-input.d.ts +3 -3
- package/dist/tag-input.js +13 -12
- package/dist/tag.d.ts +1 -1
- package/dist/tag.js +4 -4
- package/dist/textarea.js +8 -7
- package/dist/theme.css +965 -0
- package/dist/theme.js +12 -11
- package/dist/toast.d.ts +1 -1
- package/dist/toast.js +12 -11
- package/dist/tooltip.js +4 -3
- package/dist/tree.d.ts +1 -1
- package/dist/tree.js +6 -6
- package/dist/{types-DR9rAEy1.d.ts → types-DYFl0CEB.d.ts} +1 -1
- package/dist/{use-uploads-KaPqDklo.d.ts → use-uploads-2E7n0PWT.d.ts} +1 -1
- package/dist/verification-code-input.js +10 -9
- package/package.json +92 -8
- package/dist/chunk-BLIZ3CL3.js +0 -49
- package/dist/labels-DPrh0se9.d.ts +0 -627
- package/dist/panel-El4oI68p.d.ts +0 -9
- package/dist/shared-BYXJPnsN.d.ts +0 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { seriesColor, useSeriesColors, paletteLength } from './chunk-
|
|
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-
|
|
33
|
-
//# sourceMappingURL=chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
5
|
+
import { LoaderCircleIcon } from './chunk-YGFTNICV.js';
|
|
6
6
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
7
|
-
import { warnNeedsName } from './chunk-
|
|
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-
|
|
162
|
-
//# sourceMappingURL=chunk-
|
|
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-
|
|
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 :
|
|
55
|
-
"aria-describedby": hasHint ? hintId :
|
|
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-
|
|
67
|
-
//# sourceMappingURL=chunk-
|
|
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-
|
|
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-
|
|
9
|
-
import { useFieldValidity, FieldFrame, LISTBOX_PX_SM, CONTROL_ICON, SLOT_ICON } from './chunk-
|
|
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-
|
|
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-
|
|
15
|
-
import { warnNonNegativeInt } from './chunk-
|
|
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-
|
|
575
|
-
//# sourceMappingURL=chunk-
|
|
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((
|
|
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-
|
|
82
|
-
//# sourceMappingURL=chunk-
|
|
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-
|
|
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-
|
|
10
|
-
//# sourceMappingURL=chunk-
|
|
9
|
+
//# sourceMappingURL=chunk-SGMVB7HD.js.map
|
|
10
|
+
//# sourceMappingURL=chunk-SGMVB7HD.js.map
|