jenosize-ui 0.2.2 → 0.3.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.
- package/README.md +183 -63
- package/THIRD-PARTY-NOTICES.md +95 -0
- package/dist/GradientPicker-Bv3V3vL_.d.ts +144 -0
- package/dist/{PaymentInput-Dn5WVQVy.d.ts → PaymentInput-s7_s3UDi.d.ts} +1 -1
- package/dist/{Select-Dt5ARIH8.d.ts → Select-r233iMaU.d.ts} +15 -1
- package/dist/{TagInput-BaBeve6L.d.ts → TagInput-w_l9Fp5i.d.ts} +1 -1
- package/dist/area-chart.d.ts +2 -2
- package/dist/area-chart.js +8 -6
- package/dist/at-least-one-BZ2dsck-.d.ts +18 -0
- package/dist/avatar.d.ts +1 -1
- package/dist/avatar.js +12 -10
- package/dist/badge.d.ts +1 -1
- package/dist/badge.js +7 -6
- package/dist/bar-chart.d.ts +2 -2
- package/dist/bar-chart.js +8 -6
- package/dist/breadcrumb.d.ts +1 -1
- package/dist/breadcrumb.js +5 -4
- package/dist/button.d.ts +1 -1
- package/dist/button.js +12 -10
- package/dist/calendar.d.ts +1 -1
- package/dist/calendar.js +16 -14
- package/dist/callout.d.ts +4 -2
- package/dist/callout.js +13 -11
- package/dist/card.d.ts +59 -3
- package/dist/card.js +4 -3
- package/dist/carousel.d.ts +169 -0
- package/dist/carousel.js +10 -0
- package/dist/catalog.json +11976 -0
- package/dist/checkbox.js +9 -7
- package/dist/{chunk-AIARANKE.js → chunk-2EUVBRKG.js} +4 -4
- package/dist/{chunk-5ZEUTSCV.js → chunk-2RRPWOKT.js} +6 -6
- package/dist/{chunk-DD5KJVFV.js → chunk-3JFSKCVU.js} +19 -19
- package/dist/{chunk-OACWA4TC.js → chunk-3ZZZPT5G.js} +6 -6
- package/dist/{chunk-LQURV7HQ.js → chunk-47EOHGXM.js} +4 -4
- package/dist/{chunk-CGHYXWTT.js → chunk-4KRCT3Q2.js} +4 -4
- package/dist/chunk-4P3JA653.js +1129 -0
- package/dist/{chunk-FWRHBMWT.js → chunk-4Y32RIC7.js} +5 -19
- package/dist/{chunk-BBKE4W3B.js → chunk-5Z26DU23.js} +7 -7
- package/dist/{chunk-7QXOGAN6.js → chunk-6CJYVYVN.js} +87 -538
- package/dist/{chunk-3HOHLQVP.js → chunk-6FGLABYH.js} +3 -3
- package/dist/{chunk-GQRSABRN.js → chunk-6Q4VVBFO.js} +4 -4
- package/dist/{chunk-MCQG4H6T.js → chunk-6T3QAO5K.js} +12 -4
- package/dist/chunk-7JOW3LEH.js +4852 -0
- package/dist/{chunk-AFYXSZGW.js → chunk-7LSUUEAF.js} +7 -5
- package/dist/{chunk-7VLYQR4D.js → chunk-7OFGPDYJ.js} +3 -3
- package/dist/{chunk-7GUPNTAH.js → chunk-7RD5RTHU.js} +7 -7
- package/dist/{chunk-X2VMIBK5.js → chunk-A36W77MQ.js} +4 -4
- package/dist/chunk-AZFHRLYF.js +67 -0
- package/dist/{chunk-CFFWYXDW.js → chunk-B6LYO33Y.js} +5 -5
- package/dist/{chunk-P6CON2R2.js → chunk-BH32X25C.js} +3 -3
- package/dist/{chunk-KHGW72BM.js → chunk-CH2XMCWX.js} +3 -3
- package/dist/{chunk-FNQJJO63.js → chunk-D46OKHTH.js} +4 -4
- package/dist/{chunk-LE44X5GS.js → chunk-D4YGYNNY.js} +9 -9
- package/dist/{chunk-T5574MXM.js → chunk-D7WD4SUC.js} +8 -8
- package/dist/{chunk-33TOK7ES.js → chunk-DCKVNHV5.js} +5 -5
- package/dist/chunk-EBZNUQ6E.js +525 -0
- package/dist/{chunk-22M75A3N.js → chunk-ED5UCYAV.js} +14 -11
- package/dist/{chunk-IQNVSQRK.js → chunk-EDVYLO2N.js} +5 -5
- package/dist/{chunk-N3RVMBPX.js → chunk-EJKQGUUM.js} +4 -4
- package/dist/{chunk-POQTE7JI.js → chunk-EKQLIUV5.js} +7 -7
- package/dist/{chunk-ULGCGKOE.js → chunk-EKV3CVTY.js} +4 -4
- package/dist/{chunk-LCG34A5T.js → chunk-EVINS473.js} +5 -3
- package/dist/{chunk-ZZSNTCCL.js → chunk-G7B2QUQP.js} +4 -4
- package/dist/{chunk-SB3DG572.js → chunk-GHRZC5LS.js} +6 -6
- package/dist/{chunk-5YWH2ANQ.js → chunk-GIC6T647.js} +11 -10
- package/dist/{chunk-7ZM7SNCZ.js → chunk-GPHGPY6T.js} +3 -3
- package/dist/chunk-GV2KTRRP.js +325 -0
- package/dist/{chunk-4RBIWI2Q.js → chunk-GYL4KOPT.js} +3 -3
- package/dist/{chunk-5KSD4WKN.js → chunk-HB6UA6EF.js} +5 -5
- package/dist/{chunk-CGZXQ7PA.js → chunk-HNNNJP3A.js} +3 -3
- package/dist/chunk-HTWGTTSF.js +1011 -0
- package/dist/chunk-IH2F5UNQ.js +109 -0
- package/dist/{chunk-QNIKRB62.js → chunk-INYUL4DX.js} +4 -4
- package/dist/{chunk-SKRR3ZMP.js → chunk-IUB5TSSH.js} +3 -3
- package/dist/chunk-JGGSRKHW.js +344 -0
- package/dist/{chunk-ZR6HNKSN.js → chunk-JHHJNIW2.js} +3 -3
- package/dist/chunk-KBI442IB.js +113 -0
- package/dist/chunk-KBQJIVUB.js +33 -0
- package/dist/{chunk-3QXLIZIX.js → chunk-KNGJ3CSB.js} +3 -3
- package/dist/chunk-KNKR5TUM.js +183 -0
- package/dist/{chunk-KZP6B6B3.js → chunk-KTWTYK5U.js} +16 -5
- package/dist/{chunk-5XPMY2LF.js → chunk-LKUAVDWP.js} +5 -5
- package/dist/{chunk-YHBI52P2.js → chunk-LPWSP523.js} +3 -3
- package/dist/{chunk-GLKFFA7N.js → chunk-LY7IJOUF.js} +5 -5
- package/dist/{chunk-R4Z7BINC.js → chunk-LYWQD5KL.js} +8 -8
- 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-T4ZFZTY6.js → chunk-N7DLNDER.js} +4 -4
- package/dist/{chunk-E2YZ7IMT.js → chunk-NDRQETOQ.js} +15 -11
- package/dist/{chunk-ZD3MOLIB.js → chunk-O7CPRU67.js} +4 -4
- package/dist/{chunk-OLLD2BZN.js → chunk-OEYKTHG7.js} +3 -3
- package/dist/{chunk-TX57TNJS.js → chunk-OG3H3RP2.js} +9 -9
- package/dist/{chunk-UGBNYSBN.js → chunk-PFKPKE6O.js} +20 -34
- package/dist/chunk-PRWPFBA5.js +619 -0
- package/dist/{chunk-QDKETK7D.js → chunk-S55JKMG7.js} +5 -5
- package/dist/{chunk-QDYE5LVT.js → chunk-SF3HCW4G.js} +45 -4
- package/dist/{chunk-6MMBQVRO.js → chunk-TDKKZA63.js} +9 -9
- package/dist/{chunk-HHYEAFCL.js → chunk-TDXHBS2C.js} +11 -11
- package/dist/{chunk-74AIU53R.js → chunk-THGGU64E.js} +3 -3
- package/dist/chunk-UHSGD4CD.js +364 -0
- package/dist/{chunk-HV2W6HUR.js → chunk-URAURI6G.js} +10 -10
- package/dist/{chunk-D6XO4JVM.js → chunk-UU6KUS5O.js} +42 -20
- package/dist/{chunk-NKG4N6HA.js → chunk-V7KEEDSF.js} +5 -4
- package/dist/{chunk-IEAWNA3V.js → chunk-VDFWWWLL.js} +3 -3
- package/dist/chunk-VHAA22YE.js +11 -0
- package/dist/chunk-WJB5GWAZ.js +20 -0
- package/dist/{chunk-KJ5JUS53.js → chunk-WM6DGNIA.js} +9 -9
- package/dist/{chunk-MFFA5MXY.js → chunk-WUXMLJEC.js} +5 -5
- package/dist/{chunk-YPNL2NBD.js → chunk-XNXBO44X.js} +33 -11
- package/dist/chunk-XPY3XT7L.js +5671 -0
- package/dist/{chunk-54SIZR63.js → chunk-XVFRDKZJ.js} +7 -7
- package/dist/{chunk-LYXPJERB.js → chunk-YDD46AX2.js} +5 -5
- package/dist/{chunk-NC63TYNW.js → chunk-YHQJGNXD.js} +7 -7
- package/dist/{chunk-I6WMNXC7.js → chunk-YKRE5NIH.js} +6 -6
- package/dist/{chunk-RJTVCA62.js → chunk-ZIEGUI25.js} +3 -3
- package/dist/{chunk-5DP7W5HX.js → chunk-ZLDWYTDA.js} +3 -3
- package/dist/color-input.d.ts +93 -0
- package/dist/color-input.js +36 -0
- package/dist/color-picker.d.ts +268 -0
- package/dist/color-picker.js +29 -0
- package/dist/color-value-DYzChVOW.d.ts +129 -0
- package/dist/combobox.d.ts +1 -1
- package/dist/combobox.js +14 -12
- package/dist/data-map.d.ts +1673 -0
- package/dist/data-map.js +36 -0
- package/dist/date-calendar.d.ts +49 -0
- package/dist/date-calendar.js +13 -0
- package/dist/date-input.d.ts +1 -1
- package/dist/date-input.js +12 -10
- package/dist/date-picker.d.ts +15 -131
- package/dist/date-picker.js +26 -21
- package/dist/date-types-CLZek3W2.d.ts +100 -0
- package/dist/dialog.d.ts +1 -1
- package/dist/dialog.js +10 -9
- package/dist/drawer.d.ts +1 -1
- package/dist/drawer.js +9 -8
- package/dist/dropdown-menu.d.ts +1 -1
- package/dist/dropdown-menu.js +5 -4
- package/dist/dropzone.d.ts +3 -3
- package/dist/dropzone.js +18 -16
- package/dist/file-trigger.js +1 -0
- package/dist/form.d.ts +15 -5
- package/dist/form.js +75 -35
- package/dist/header-navigation.d.ts +2 -2
- package/dist/header-navigation.js +20 -18
- package/dist/helper.d.ts +1 -1
- package/dist/helper.js +1 -0
- package/dist/illustration.js +1 -0
- package/dist/index.d.ts +26 -11
- package/dist/index.js +92 -77
- package/dist/indicator.js +5 -4
- package/dist/inline-banner.d.ts +68 -0
- package/dist/inline-banner.js +21 -0
- package/dist/input.d.ts +1 -1
- package/dist/input.js +11 -9
- package/dist/kanban-board.d.ts +2 -2
- package/dist/kanban-board.js +15 -13
- package/dist/labels-CuSlirP_.d.ts +1381 -0
- package/dist/line-chart.d.ts +2 -2
- package/dist/line-chart.js +8 -6
- package/dist/mcp.js +231 -0
- package/dist/number-input.d.ts +1 -1
- package/dist/number-input.js +11 -9
- package/dist/pagination.d.ts +1 -1
- package/dist/pagination.js +15 -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 +11 -9
- package/dist/picker-draft-BPV3MUPY.d.ts +9 -0
- package/dist/pie-chart.d.ts +2 -2
- package/dist/pie-chart.js +8 -6
- package/dist/popover.d.ts +65 -4
- package/dist/popover.js +9 -8
- package/dist/progress-steps.js +5 -4
- package/dist/progress.js +4 -3
- package/dist/provider.d.ts +1 -1
- package/dist/provider.js +4 -3
- package/dist/qr-code.d.ts +227 -0
- package/dist/qr-code.js +20 -0
- package/dist/radar-chart.d.ts +2 -2
- package/dist/radar-chart.js +8 -6
- package/dist/radial-chart.d.ts +2 -2
- package/dist/radial-chart.js +8 -6
- package/dist/radio.js +9 -7
- package/dist/rich-text-editor.d.ts +624 -0
- package/dist/rich-text-editor.js +52 -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/scroll-area.js +1 -0
- package/dist/select.d.ts +2 -2
- package/dist/select.js +17 -15
- package/dist/separator.js +3 -2
- package/dist/shared-CGf2D8ZX.d.ts +20 -0
- package/dist/sidebar-navigation.d.ts +73 -32
- package/dist/sidebar-navigation.js +15 -13
- package/dist/sidebar-state.d.ts +76 -0
- package/dist/sidebar-state.js +27 -0
- package/dist/skeleton.js +3 -2
- package/dist/slider.d.ts +321 -0
- package/dist/slider.js +14 -0
- package/dist/styles.css +1 -1
- package/dist/switch.d.ts +1 -1
- package/dist/switch.js +3 -2
- package/dist/table.d.ts +3 -19
- package/dist/table.js +34 -32
- package/dist/tabs.js +3 -2
- package/dist/tag-input.d.ts +3 -3
- package/dist/tag-input.js +14 -12
- package/dist/tag.d.ts +1 -1
- package/dist/tag.js +5 -4
- package/dist/textarea.js +9 -7
- package/dist/theme.css +965 -0
- package/dist/theme.js +13 -11
- package/dist/toast.d.ts +1 -1
- package/dist/toast.js +13 -11
- package/dist/tooltip.js +5 -3
- package/dist/tree.d.ts +1 -1
- package/dist/tree.js +7 -6
- package/dist/{types-DR9rAEy1.d.ts → types-BoZ6XeLB.d.ts} +1 -1
- package/dist/{use-uploads-KaPqDklo.d.ts → use-uploads-cHo2p7Gn.d.ts} +1 -1
- package/dist/verification-code-input.js +11 -9
- package/package.json +105 -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,11 +1,11 @@
|
|
|
1
|
-
import { ACCENT, DISMISS, SOLID, OUTLINE, SUBTLE } from './chunk-
|
|
1
|
+
import { ACCENT, DISMISS, SOLID, OUTLINE, SUBTLE } from './chunk-6T3QAO5K.js';
|
|
2
2
|
import { overflowClasses, overflowBounded } from './chunk-DWKILXHE.js';
|
|
3
|
-
import { SEAMLESS_COLOR, SEAMLESS_CHIP_PX, SEAMLESS_CHIP_NUM, SEAMLESS_CHIP } from './chunk-
|
|
3
|
+
import { SEAMLESS_COLOR, SEAMLESS_CHIP_PX, SEAMLESS_CHIP_NUM, SEAMLESS_CHIP } from './chunk-GPHGPY6T.js';
|
|
4
4
|
import { Slot } from './chunk-52IFGFTL.js';
|
|
5
|
-
import { ArrowRightIcon, XIcon } from './chunk-
|
|
5
|
+
import { ArrowRightIcon, XIcon } from './chunk-KBI442IB.js';
|
|
6
6
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
7
|
-
import { useLabels } from './chunk-
|
|
8
|
-
import { devWarn } from './chunk-
|
|
7
|
+
import { useLabels } from './chunk-ZIEGUI25.js';
|
|
8
|
+
import { devWarn } from './chunk-SF3HCW4G.js';
|
|
9
9
|
import 'react';
|
|
10
10
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
11
11
|
|
|
@@ -247,5 +247,5 @@ function Badge(props) {
|
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
export { Badge, BadgeGroup };
|
|
250
|
-
//# sourceMappingURL=chunk-
|
|
251
|
-
//# sourceMappingURL=chunk-
|
|
250
|
+
//# sourceMappingURL=chunk-XVFRDKZJ.js.map
|
|
251
|
+
//# sourceMappingURL=chunk-XVFRDKZJ.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { tagSlotClass, tagLabelClass, tagContentClass, tagCloseClass, tagRootClass, TAG_SELECTED, tagCheckboxGlyphClass, tagCheckboxBoxClass } from './chunk-4P2NBLBW.js';
|
|
2
2
|
import { overflowBounded } from './chunk-DWKILXHE.js';
|
|
3
3
|
import { Slot } from './chunk-52IFGFTL.js';
|
|
4
|
-
import { XIcon, CheckIcon } from './chunk-
|
|
4
|
+
import { XIcon, CheckIcon } from './chunk-KBI442IB.js';
|
|
5
5
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
6
|
-
import { useLabels } from './chunk-
|
|
7
|
-
import { warnNeedsName } from './chunk-
|
|
6
|
+
import { useLabels } from './chunk-ZIEGUI25.js';
|
|
7
|
+
import { warnNeedsName } from './chunk-SF3HCW4G.js';
|
|
8
8
|
import { Toggle } from '@base-ui/react/toggle';
|
|
9
9
|
import { ToggleGroup } from '@base-ui/react/toggle-group';
|
|
10
10
|
import * as React from 'react';
|
|
@@ -176,5 +176,5 @@ TagGroupItem.displayName = "TagGroupItem";
|
|
|
176
176
|
var TagGroup = TagGroupRoot;
|
|
177
177
|
|
|
178
178
|
export { Tag, TagGroup };
|
|
179
|
-
//# sourceMappingURL=chunk-
|
|
180
|
-
//# sourceMappingURL=chunk-
|
|
179
|
+
//# sourceMappingURL=chunk-YDD46AX2.js.map
|
|
180
|
+
//# sourceMappingURL=chunk-YDD46AX2.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Tag } from './chunk-
|
|
2
|
-
import { useTagRow } from './chunk-
|
|
3
|
-
import { FieldShell } from './chunk-
|
|
1
|
+
import { Tag } from './chunk-YDD46AX2.js';
|
|
2
|
+
import { useTagRow } from './chunk-VDFWWWLL.js';
|
|
3
|
+
import { FieldShell } from './chunk-A36W77MQ.js';
|
|
4
4
|
import { useIsomorphicLayoutEffect } from './chunk-EDSK6FEH.js';
|
|
5
|
-
import { CONTROL_TEXT, CONTROL_RADIUS, useFieldValidity, FieldFrame } from './chunk-
|
|
5
|
+
import { CONTROL_TEXT, CONTROL_RADIUS, useFieldValidity, FieldFrame } from './chunk-HB6UA6EF.js';
|
|
6
6
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
7
|
-
import { useLabels } from './chunk-
|
|
7
|
+
import { useLabels } from './chunk-ZIEGUI25.js';
|
|
8
8
|
import { Field } from '@base-ui/react/field';
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
@@ -273,5 +273,5 @@ function TagInput(props) {
|
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
export { TAG_INPUT_LABELS, TAG_PILL_FOCUS_RING, TagInput, useTagInput };
|
|
276
|
-
//# sourceMappingURL=chunk-
|
|
277
|
-
//# sourceMappingURL=chunk-
|
|
276
|
+
//# sourceMappingURL=chunk-YHQJGNXD.js.map
|
|
277
|
+
//# sourceMappingURL=chunk-YHQJGNXD.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FieldShell } from './chunk-
|
|
2
|
-
import { useFieldValidity, FieldFrame } from './chunk-
|
|
3
|
-
import { useSeamlessSlot, warnSeamlessFieldChrome, SEAMLESS_BOX } from './chunk-
|
|
4
|
-
import { ChevronDownIcon } from './chunk-
|
|
1
|
+
import { FieldShell } from './chunk-A36W77MQ.js';
|
|
2
|
+
import { useFieldValidity, FieldFrame } from './chunk-HB6UA6EF.js';
|
|
3
|
+
import { useSeamlessSlot, warnSeamlessFieldChrome, SEAMLESS_BOX } from './chunk-GPHGPY6T.js';
|
|
4
|
+
import { ChevronDownIcon } from './chunk-KBI442IB.js';
|
|
5
5
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
6
6
|
import { Field } from '@base-ui/react/field';
|
|
7
7
|
import 'react';
|
|
@@ -134,5 +134,5 @@ function NativeSelect(props) {
|
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
export { NativeSelect };
|
|
137
|
-
//# sourceMappingURL=chunk-
|
|
138
|
-
//# sourceMappingURL=chunk-
|
|
137
|
+
//# sourceMappingURL=chunk-YKRE5NIH.js.map
|
|
138
|
+
//# sourceMappingURL=chunk-YKRE5NIH.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { devWarn } from './chunk-
|
|
1
|
+
import { devWarn } from './chunk-SF3HCW4G.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
4
|
var LabelsContext = React.createContext(void 0);
|
|
@@ -38,5 +38,5 @@ function mergeLabels(outer, inner) {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export { LabelsContext, mergeLabels, useLabels, usePublishedLabels };
|
|
41
|
-
//# sourceMappingURL=chunk-
|
|
42
|
-
//# sourceMappingURL=chunk-
|
|
41
|
+
//# sourceMappingURL=chunk-ZIEGUI25.js.map
|
|
42
|
+
//# sourceMappingURL=chunk-ZIEGUI25.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useCartesianColors, DEFAULT_PALETTE, BarChart, LineChart, AreaChart, MARGIN, ChartDataTable, formatNumber, ChartFrame, BAR_LAYOUT, CHART_ROOT, AREA_GRADIENT_STOPS, CartesianGrid, GRID, XAxis, X_AXIS_PADDING, AXIS_TICK, AXIS, Label, AXIS_LABEL, YAxis, ReferenceLine, ZERO_LINE, Tooltip, TOOLTIP_CURSOR, NO_ANIMATION, ChartTooltipContent, Area, AREA_FILL_OPACITY, AREA_SOLID_OPACITY, AREA_BAND, ACTIVE_DOT, Line, LINE_DASH, DOT, Bar, BAR_RADIUS_HORIZONTAL, BAR_RADIUS, MAX_BAR_SIZE, ChartLegendContent, BAND_SEPARATOR } from './chunk-
|
|
1
|
+
import { useCartesianColors, DEFAULT_PALETTE, BarChart, LineChart, AreaChart, MARGIN, ChartDataTable, formatNumber, ChartFrame, BAR_LAYOUT, CHART_ROOT, AREA_GRADIENT_STOPS, CartesianGrid, GRID, XAxis, X_AXIS_PADDING, AXIS_TICK, AXIS, Label, AXIS_LABEL, YAxis, ReferenceLine, ZERO_LINE, Tooltip, TOOLTIP_CURSOR, NO_ANIMATION, ChartTooltipContent, Area, AREA_FILL_OPACITY, AREA_SOLID_OPACITY, AREA_BAND, ACTIVE_DOT, Line, LINE_DASH, DOT, Bar, BAR_RADIUS_HORIZONTAL, BAR_RADIUS, MAX_BAR_SIZE, ChartLegendContent, BAND_SEPARATOR } from './chunk-ED5UCYAV.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
4
4
|
|
|
@@ -250,5 +250,5 @@ function Cartesian({
|
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
export { Cartesian };
|
|
253
|
-
//# sourceMappingURL=chunk-
|
|
254
|
-
//# sourceMappingURL=chunk-
|
|
253
|
+
//# sourceMappingURL=chunk-ZLDWYTDA.js.map
|
|
254
|
+
//# sourceMappingURL=chunk-ZLDWYTDA.js.map
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { c as ColorPickerValue, a as ColorFormat, b as ColorKind } from './color-value-DYzChVOW.js';
|
|
3
|
+
export { C as COLOR_FORMATS, f as formatColor, p as parseColor, g as parseCss, t as toCss, i as toHex } from './color-value-DYzChVOW.js';
|
|
4
|
+
import { C as CommitMode } from './picker-draft-BPV3MUPY.js';
|
|
5
|
+
import { C as ControlSize } from './control-size-CaxQhkKh.js';
|
|
6
|
+
import { c as PopoverSide, P as PopoverAlign } from './shared-CGf2D8ZX.js';
|
|
7
|
+
import { a as ColorSwatch, d as GradientValue, c as GradientSwatch } from './GradientPicker-Bv3V3vL_.js';
|
|
8
|
+
import { e as ColorPickerLabels } from './labels-CuSlirP_.js';
|
|
9
|
+
import '@base-ui/react/popover';
|
|
10
|
+
|
|
11
|
+
interface ColorInputProps {
|
|
12
|
+
/** The committed value. A solid today; a gradient once `modes` includes one. */
|
|
13
|
+
value?: ColorPickerValue;
|
|
14
|
+
defaultValue?: ColorPickerValue;
|
|
15
|
+
/**
|
|
16
|
+
* Fires when the value COMMITS — live under `commit="instant"`, on Apply under `"confirm"`.
|
|
17
|
+
*
|
|
18
|
+
* **No pick `meta` here, unlike `<ColorPicker>`'s.** Under `"confirm"` the emission belongs to Apply
|
|
19
|
+
* rather than to the pick, so a "which swatch" report would arrive attached to a different gesture
|
|
20
|
+
* than the one that produced it; under `"instant"` it would arrive once per drag frame. A caller who
|
|
21
|
+
* needs the token a swatch came from uses `<ColorPicker>` directly, where the emission IS the pick.
|
|
22
|
+
*/
|
|
23
|
+
onValueChange?: (value: ColorPickerValue) => void;
|
|
24
|
+
/**
|
|
25
|
+
* `"instant"` commits every drag frame. `"confirm"` stages a draft and commits only on Apply,
|
|
26
|
+
* rendering the Cancel/Apply footer; Esc and outside-press then behave as Cancel.
|
|
27
|
+
* @default "instant"
|
|
28
|
+
*/
|
|
29
|
+
commit?: CommitMode;
|
|
30
|
+
/** Text shown in the trigger when there is no value. @default "Select color" */
|
|
31
|
+
placeholder?: string;
|
|
32
|
+
/** Side of the trigger the popover opens on. @default "bottom" */
|
|
33
|
+
side?: PopoverSide;
|
|
34
|
+
/** Alignment along that side. @default "start" */
|
|
35
|
+
align?: PopoverAlign;
|
|
36
|
+
formats?: readonly ColorFormat[];
|
|
37
|
+
alpha?: boolean;
|
|
38
|
+
modes?: readonly ColorKind[];
|
|
39
|
+
eyedropper?: boolean;
|
|
40
|
+
/** A CSS colour, or a `{ color, label }` whose `color` may be a `var()` — `token("brand-600")` for a house one. See `ColorPicker`. */
|
|
41
|
+
swatches?: readonly (string | ColorSwatch)[];
|
|
42
|
+
onAddSwatch?: (color: string) => void;
|
|
43
|
+
/** Saved GRADIENTS, on the Gradient tab — a whole value, or a `{ gradient, label }`. See `ColorPicker`. */
|
|
44
|
+
gradientSwatches?: readonly (GradientValue | GradientSwatch)[];
|
|
45
|
+
onAddGradientSwatch?: (gradient: GradientValue) => void;
|
|
46
|
+
/** Visible label (`Field.Label`), associated with the trigger via `aria-labelledby`. */
|
|
47
|
+
label?: string;
|
|
48
|
+
/** Help-circle tooltip after the label (title line). @see tooltipDescription */
|
|
49
|
+
tooltip?: string;
|
|
50
|
+
/** Optional secondary line under {@link tooltip} in the tooltip surface. */
|
|
51
|
+
tooltipDescription?: string;
|
|
52
|
+
/** Helper text under the field (`Field.Description`). Hidden while an `error` shows. */
|
|
53
|
+
hint?: React.ReactNode;
|
|
54
|
+
/** Marks the field required for form submission. @default false */
|
|
55
|
+
required?: boolean;
|
|
56
|
+
/** Suppress the visual required `*` while keeping `required` semantics. @default false */
|
|
57
|
+
hideRequiredIndicator?: boolean;
|
|
58
|
+
/** Error state: red edge + error ring and `aria-invalid`. @default false */
|
|
59
|
+
invalid?: boolean;
|
|
60
|
+
/** Optional error message (`Field.Error`). A non-empty `error` also implies `invalid`. */
|
|
61
|
+
error?: string;
|
|
62
|
+
/** Disables the trigger; the popover cannot open. @default false */
|
|
63
|
+
disabled?: boolean;
|
|
64
|
+
/** Whether the field column takes `w-full`. Bound the field with a width in `className` instead of
|
|
65
|
+
* reading this as a hug switch. @default true */
|
|
66
|
+
fullWidth?: boolean;
|
|
67
|
+
/** Start slot: a **node** renders as an icon; a **string** as a muted text affix. */
|
|
68
|
+
leading?: React.ReactNode;
|
|
69
|
+
/** End slot: a node renders as an icon; a string as a muted text affix. */
|
|
70
|
+
trailing?: React.ReactNode;
|
|
71
|
+
/** Bordered/interactive segment flush to the START edge. @see InputAddon */
|
|
72
|
+
leadingAddon?: React.ReactNode;
|
|
73
|
+
/** Bordered/interactive segment flush to the END edge. */
|
|
74
|
+
trailingAddon?: React.ReactNode;
|
|
75
|
+
/** Control density: `sm` (h-9) · `md` (h-10, default) · `lg` (h-11). @default "md" */
|
|
76
|
+
size?: ControlSize;
|
|
77
|
+
/** Name of the hidden input, for uncontrolled form submission. */
|
|
78
|
+
name?: string;
|
|
79
|
+
/** Id of the field group. */
|
|
80
|
+
id?: string;
|
|
81
|
+
labels?: ColorPickerLabels;
|
|
82
|
+
/** Layout/spacing only (margin, width, flex/grid placement), merged via `cn()`. */
|
|
83
|
+
className?: string;
|
|
84
|
+
}
|
|
85
|
+
/** The bar ladder every Field control shares. Spelled out rather than re-exported so the public type
|
|
86
|
+
* is this component's own, the way `InputSize` and `SelectSize` are. */
|
|
87
|
+
type ColorInputSize = ControlSize;
|
|
88
|
+
declare function ColorInput(props: ColorInputProps): React.JSX.Element;
|
|
89
|
+
declare namespace ColorInput {
|
|
90
|
+
var displayName: string;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export { ColorFormat, ColorInput, type ColorInputProps, type ColorInputSize, ColorKind, ColorPickerLabels, ColorPickerValue };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";export { ColorInput } from './chunk-KNKR5TUM.js';
|
|
2
|
+
import './chunk-KBQJIVUB.js';
|
|
3
|
+
import './chunk-WJB5GWAZ.js';
|
|
4
|
+
import './chunk-4P3JA653.js';
|
|
5
|
+
export { COLOR_FORMATS, formatColor, parseColor, parseCss, toCss, toHex } from './chunk-UHSGD4CD.js';
|
|
6
|
+
import './chunk-XNXBO44X.js';
|
|
7
|
+
import './chunk-INYUL4DX.js';
|
|
8
|
+
import './chunk-HNNNJP3A.js';
|
|
9
|
+
import './chunk-MVUNB43J.js';
|
|
10
|
+
import './chunk-EVINS473.js';
|
|
11
|
+
import './chunk-YKRE5NIH.js';
|
|
12
|
+
import './chunk-S7NNXWIN.js';
|
|
13
|
+
import './chunk-SKJC2KYD.js';
|
|
14
|
+
import './chunk-45Y2ZGNK.js';
|
|
15
|
+
import './chunk-3ZZZPT5G.js';
|
|
16
|
+
import './chunk-4KRCT3Q2.js';
|
|
17
|
+
import './chunk-MVF7FA4D.js';
|
|
18
|
+
import './chunk-6T3QAO5K.js';
|
|
19
|
+
import './chunk-DWKILXHE.js';
|
|
20
|
+
import './chunk-A36W77MQ.js';
|
|
21
|
+
import './chunk-O2LG3PNI.js';
|
|
22
|
+
import './chunk-EDSK6FEH.js';
|
|
23
|
+
import './chunk-HB6UA6EF.js';
|
|
24
|
+
import './chunk-GPHGPY6T.js';
|
|
25
|
+
import './chunk-52IFGFTL.js';
|
|
26
|
+
import './chunk-KTWTYK5U.js';
|
|
27
|
+
import './chunk-7LSUUEAF.js';
|
|
28
|
+
import './chunk-O4GRKO3I.js';
|
|
29
|
+
import './chunk-KBI442IB.js';
|
|
30
|
+
import './chunk-ZSNJ6UA3.js';
|
|
31
|
+
import './chunk-ZIEGUI25.js';
|
|
32
|
+
import './chunk-SF3HCW4G.js';
|
|
33
|
+
import './chunk-3ZEEGXYF.js';
|
|
34
|
+
import './chunk-VHAA22YE.js';
|
|
35
|
+
//# sourceMappingURL=color-input.js.map
|
|
36
|
+
//# sourceMappingURL=color-input.js.map
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { c as ColorPickerValue, a as ColorFormat, b as ColorKind } from './color-value-DYzChVOW.js';
|
|
3
|
+
export { C as COLOR_FORMATS, G as GradientStop, d as GradientType, e as convertKind, f as formatColor, p as parseColor, g as parseCss, r as reverseStops, s as sampleStops, h as sortStops, t as toCss, i as toHex } from './color-value-DYzChVOW.js';
|
|
4
|
+
import { C as ColorPickMeta, a as ColorSwatch, d as GradientValue, c as GradientSwatch } from './GradientPicker-Bv3V3vL_.js';
|
|
5
|
+
export { G as GradientPicker, b as GradientPickerProps, M as MIN_STOPS } from './GradientPicker-Bv3V3vL_.js';
|
|
6
|
+
import { e as ColorPickerLabels } from './labels-CuSlirP_.js';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* `EyeDropper` is not in TypeScript's `lib.dom.d.ts` (verified 2026-08-13).
|
|
10
|
+
*
|
|
11
|
+
* An ambient declaration rather than a `@ts-expect-error`: the latter reads as "this line is broken"
|
|
12
|
+
* to anyone maintaining it, when in fact the API is real, shipping and simply not typed yet.
|
|
13
|
+
*/
|
|
14
|
+
declare global {
|
|
15
|
+
var EyeDropper: (new () => {
|
|
16
|
+
open: () => Promise<{
|
|
17
|
+
sRGBHex: string;
|
|
18
|
+
}>;
|
|
19
|
+
}) | undefined;
|
|
20
|
+
}
|
|
21
|
+
interface ColorPickerProps {
|
|
22
|
+
value: ColorPickerValue;
|
|
23
|
+
/**
|
|
24
|
+
* `meta` is present only when the change came from a swatch, and carries its `token` (the `var()`
|
|
25
|
+
* string, for a var-backed chip) and its `label`. **The value stays canonical hex either way** — a
|
|
26
|
+
* `var()` in `value.color` would reopen the 8-bit echo guard, the 1% alpha quantisation and all five
|
|
27
|
+
* display notations, so the REFERENCE travels on its own channel instead. A caller who stores it gets
|
|
28
|
+
* the theme axis for free (`--color-utility-blue-700` is blue-700 in light and blue-300 in dark);
|
|
29
|
+
* one who ignores the second argument sees no change at all.
|
|
30
|
+
*/
|
|
31
|
+
onValueChange: (value: ColorPickerValue, meta?: ColorPickMeta) => void;
|
|
32
|
+
/**
|
|
33
|
+
* Which notations the value row offers, in order. One entry pins the output shape and renders a
|
|
34
|
+
* static label instead of a dropdown.
|
|
35
|
+
* @default all five
|
|
36
|
+
*/
|
|
37
|
+
formats?: readonly ColorFormat[];
|
|
38
|
+
/** Show the alpha track and the opacity segment. @default true */
|
|
39
|
+
alpha?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Which tabs EXIST — a capability list, never a selection. The active tab is `value.kind`, because
|
|
42
|
+
* a `mode` prop beside `value` would be two channels answering one question and they could
|
|
43
|
+
* contradict each other. Fewer than two modes renders no strip: one tab is not a choice, so
|
|
44
|
+
* `modes={["solid"]}` is how a picker that must only ever emit a solid says so.
|
|
45
|
+
* @default ["solid", "gradient"]
|
|
46
|
+
*/
|
|
47
|
+
modes?: readonly ColorKind[];
|
|
48
|
+
/** Render the screen-sampling button where the browser supports it. @default true */
|
|
49
|
+
eyedropper?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* The saved-colour shortcuts. `undefined` drops the whole section; `[]` renders its empty message.
|
|
52
|
+
*
|
|
53
|
+
* **Persistence is the caller's.** A saved palette is a preference, and a preference the server
|
|
54
|
+
* must render is a cookie that arrives as a prop — `localStorage` is invisible to `renderToString`.
|
|
55
|
+
*
|
|
56
|
+
* A plain CSS colour, or a `{ color, label }` whose `color` may be a **custom-property reference** —
|
|
57
|
+
* a house token or the app's own (`var(--brand-hero)`). One mechanism for both: the library ships the
|
|
58
|
+
* grid, never the colour data. A var-backed chip is announced by its `label` and reports itself
|
|
59
|
+
* through `onValueChange`'s second argument.
|
|
60
|
+
*
|
|
61
|
+
* **Spell a house colour with `token("brand-600")`, not a hand-written `var(--color-…)`** — that
|
|
62
|
+
* argument is a generated closed union, so a name that does not exist is a type error rather than a
|
|
63
|
+
* chip that silently cannot be picked.
|
|
64
|
+
*/
|
|
65
|
+
swatches?: readonly (string | ColorSwatch)[];
|
|
66
|
+
/** Adds the "Add" affordance. Without it the grid stays selectable, it just cannot grow. */
|
|
67
|
+
onAddSwatch?: (color: string) => void;
|
|
68
|
+
/**
|
|
69
|
+
* A save is in flight: Add shows its spinner and stops taking presses.
|
|
70
|
+
*
|
|
71
|
+
* The panel does not know it — `swatches` is CONTROLLED and `onAddSwatch` only reports the press,
|
|
72
|
+
* so whether a colour appears before or after the round trip is entirely the caller's order. What
|
|
73
|
+
* the caller cannot express from outside is the AFFORDANCE: the only lever is withholding
|
|
74
|
+
* `onAddSwatch`, which removes the button mid-interaction rather than disabling it — a control
|
|
75
|
+
* that vanishes under the cursor. Hence one boolean, and a boolean is exact here: it describes a
|
|
76
|
+
* binary (is a request out), not the colour, which the caller already holds.
|
|
77
|
+
*
|
|
78
|
+
* @default false
|
|
79
|
+
*/
|
|
80
|
+
addingSwatch?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* The saved-GRADIENT shortcuts, on the Gradient tab. `undefined` drops the section; `[]` renders its
|
|
83
|
+
* empty message.
|
|
84
|
+
*
|
|
85
|
+
* A SECOND list rather than a wider `swatches`, because the two are different things and a caller
|
|
86
|
+
* persists them separately: `ColorSwatch.color` is one colour, and a gradient is a whole value —
|
|
87
|
+
* type, angle and every stop. Flattening a ramp into a colour would name the swatch after a stop it
|
|
88
|
+
* does not look like, and the chip has a different SHAPE for the same reason (a bar, not a dot).
|
|
89
|
+
*
|
|
90
|
+
* The pick reports only a `label` in its `meta`, never a `token`: a ramp has no single reference to
|
|
91
|
+
* echo. See {@link GradientSwatch}.
|
|
92
|
+
*/
|
|
93
|
+
gradientSwatches?: readonly (GradientValue | GradientSwatch)[];
|
|
94
|
+
/** Adds "Add" to that section, reporting the gradient in force. */
|
|
95
|
+
onAddGradientSwatch?: (gradient: GradientValue) => void;
|
|
96
|
+
/** That save is in flight: its Add spins and stops taking presses. @default false */
|
|
97
|
+
addingGradientSwatch?: boolean;
|
|
98
|
+
labels?: ColorPickerLabels;
|
|
99
|
+
/** Layout and spacing only, merged via `cn()`. */
|
|
100
|
+
className?: string;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* The colour panel — saturation plane, eyedropper, hue and alpha tracks, value row, saved swatches.
|
|
104
|
+
*
|
|
105
|
+
* **It draws no surface and it holds no draft.** A `<Popover padding="none">` or
|
|
106
|
+
* `<Card padding="none">` gives it a box, and `<ColorInput>` is what stages a change behind
|
|
107
|
+
* Cancel/Apply — exactly the split `DateCalendar` and `DatePicker` already ship, whose rule is that
|
|
108
|
+
* staging is a PICKER concern. Every row owns its own padding, which is what makes each of them
|
|
109
|
+
* full-bleed and lets the mode strip's rule run edge to edge.
|
|
110
|
+
*/
|
|
111
|
+
declare function ColorPicker({ value, onValueChange, formats, alpha, modes, eyedropper, swatches, onAddSwatch, addingSwatch, gradientSwatches, onAddGradientSwatch, addingGradientSwatch, labels, className, }: ColorPickerProps): React.JSX.Element;
|
|
112
|
+
declare namespace ColorPicker {
|
|
113
|
+
var displayName: string;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
declare const SWATCH_SIZE: {
|
|
117
|
+
readonly sm: "size-4";
|
|
118
|
+
readonly md: "size-5";
|
|
119
|
+
};
|
|
120
|
+
type SwatchSize = keyof typeof SWATCH_SIZE;
|
|
121
|
+
|
|
122
|
+
interface ColorSwatchPickerProps {
|
|
123
|
+
/**
|
|
124
|
+
* The colours on offer. Required — the grid IS the component.
|
|
125
|
+
*
|
|
126
|
+
* A plain CSS colour, or a `{ color, label }` whose `color` may be a **custom-property reference** —
|
|
127
|
+
* a house token or the app's own (`var(--brand-hero)`). Those are ONE mechanism: the library ships
|
|
128
|
+
* the grid, never the colour data.
|
|
129
|
+
*
|
|
130
|
+
* **Spell a house colour with `token("brand-600")`, not a hand-written `var(--color-…)`** — a checked
|
|
131
|
+
* generated union against a string that fails silently.
|
|
132
|
+
*/
|
|
133
|
+
swatches: readonly (string | ColorSwatch)[];
|
|
134
|
+
/**
|
|
135
|
+
* Any CSS colour, not only one of `swatches`: the value row can still type a colour freehand. A
|
|
136
|
+
* `var()` is accepted here too and is displayed resolved — the picker EMITS canonical hex either way.
|
|
137
|
+
*/
|
|
138
|
+
value?: string;
|
|
139
|
+
defaultValue?: string;
|
|
140
|
+
/**
|
|
141
|
+
* `meta` is present only when the change came from a swatch, and carries its `token` (the `var()`
|
|
142
|
+
* string, for a var-backed chip) and its `label`. The colour itself is always canonical hex.
|
|
143
|
+
*/
|
|
144
|
+
onValueChange?: (color: string, meta?: ColorPickMeta) => void;
|
|
145
|
+
/** Which notations the value row offers. @default all five */
|
|
146
|
+
formats?: readonly ColorFormat[];
|
|
147
|
+
/** Show the opacity segment in the value row. @default true */
|
|
148
|
+
alpha?: boolean;
|
|
149
|
+
/** The 128px colour preview above the grid, with the hex overlaid. @default true */
|
|
150
|
+
preview?: boolean;
|
|
151
|
+
/** Chip diameter — 20px (`md`) or 16px (`sm`). @default "md" */
|
|
152
|
+
swatchSize?: SwatchSize;
|
|
153
|
+
labels?: ColorPickerLabels;
|
|
154
|
+
/** Layout and spacing only, merged via `cn()`. */
|
|
155
|
+
className?: string;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* A colour picked from a fixed set — a preview, a grid of chips, and the value row.
|
|
159
|
+
*
|
|
160
|
+
* **The preview's readout is a deliberate departure from the reference**, which paints it a
|
|
161
|
+
* hard-coded white. White on an arbitrary user colour fails contrast on anything pale, and the
|
|
162
|
+
* background here is runtime data rather than a token pair — so `pnpm contrast` cannot catch it and
|
|
163
|
+
* the component has to choose. `readableOn()` picks light or near-black from the swatch's WCAG
|
|
164
|
+
* luminance, at the crossover point of the two contrast ratios rather than an eyeballed midpoint.
|
|
165
|
+
* The `opacity-50` on the `#` stays: the sigil is not data.
|
|
166
|
+
*/
|
|
167
|
+
declare function ColorSwatchPicker({ swatches, value: valueProp, defaultValue, onValueChange, formats, alpha, preview, swatchSize, labels, className, }: ColorSwatchPickerProps): React.JSX.Element;
|
|
168
|
+
declare namespace ColorSwatchPicker {
|
|
169
|
+
var displayName: string;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
interface ColorPalettePickerProps {
|
|
173
|
+
/**
|
|
174
|
+
* Rows of colours, rendered as one clipped tessellated block.
|
|
175
|
+
*
|
|
176
|
+
* **Default `[]`, and that is the whole opinion:** the library ships the grid renderer, never the
|
|
177
|
+
* colour data. Shipping a built-in ramp would put ~187 literal hexes inside `src/components/**`
|
|
178
|
+
* and an opinion the library does not hold; an empty palette renders its own empty message.
|
|
179
|
+
*/
|
|
180
|
+
palette?: readonly (readonly string[])[];
|
|
181
|
+
/** Any CSS colour, not only a cell: the value row can still type a colour freehand. */
|
|
182
|
+
value?: string;
|
|
183
|
+
defaultValue?: string;
|
|
184
|
+
/**
|
|
185
|
+
* `meta` is present only when the change came from a saved swatch, and carries its `token` (the
|
|
186
|
+
* `var()` string, for a var-backed chip) and its `label`. The colour itself is always canonical hex.
|
|
187
|
+
*/
|
|
188
|
+
onValueChange?: (color: string, meta?: ColorPickMeta) => void;
|
|
189
|
+
formats?: readonly ColorFormat[];
|
|
190
|
+
/** Show the Opacity track and the value row's opacity segment. @default true */
|
|
191
|
+
alpha?: boolean;
|
|
192
|
+
/**
|
|
193
|
+
* The saved-colour shortcuts under the grid. `undefined` drops the section.
|
|
194
|
+
*
|
|
195
|
+
* Takes the same shape as `<ColorPicker>`'s: a plain CSS colour, or a `{ color, label }` whose
|
|
196
|
+
* `color` may be a `var()` reference (use `token("brand-600")` for a house one). **`palette`
|
|
197
|
+
* deliberately does not** — a tessellated ramp is
|
|
198
|
+
* bulk colour DATA, laid out by row length, and a row of named objects there would be a second way
|
|
199
|
+
* to say the same thing in the one place where the compact form is the readable one.
|
|
200
|
+
*/
|
|
201
|
+
swatches?: readonly (string | ColorSwatch)[];
|
|
202
|
+
onAddSwatch?: (color: string) => void;
|
|
203
|
+
/** A save is in flight: Add shows its spinner and stops taking presses. Same contract as `<ColorPicker>`'s. @default false */
|
|
204
|
+
addingSwatch?: boolean;
|
|
205
|
+
labels?: ColorPickerLabels;
|
|
206
|
+
/** Layout and spacing only, merged via `cn()`. */
|
|
207
|
+
className?: string;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* A colour picked from a tessellated ramp — the grid, an Opacity track, the value row, and saved.
|
|
211
|
+
*
|
|
212
|
+
* **The column count is DERIVED from the first row's length, never a prop.** A `columns` prop would
|
|
213
|
+
* be a second channel describing data the caller already passed, and the two could disagree; the row
|
|
214
|
+
* itself is the only honest source. Ragged rows are a caller error the type cannot express, so they
|
|
215
|
+
* are reported and rendered against the first row's width — short rows leave holes rather than
|
|
216
|
+
* silently reflowing the whole grid, because a clamp would hide the mistake instead of showing it.
|
|
217
|
+
*/
|
|
218
|
+
declare function ColorPalettePicker({ palette, value: valueProp, defaultValue, onValueChange, formats, alpha, swatches, onAddSwatch, addingSwatch, labels, className, }: ColorPalettePickerProps): React.JSX.Element;
|
|
219
|
+
declare namespace ColorPalettePicker {
|
|
220
|
+
var displayName: string;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/** Which channel a track edits. Two members, and each brings its own range, paint and readout. */
|
|
224
|
+
type ColorChannel = "hue" | "alpha";
|
|
225
|
+
interface ColorSliderProps {
|
|
226
|
+
/** `"hue"` runs 0–360 degrees; `"alpha"` runs 0–1. */
|
|
227
|
+
channel: ColorChannel;
|
|
228
|
+
/** Degrees for `hue`, a 0–1 fraction for `alpha`. */
|
|
229
|
+
value?: number;
|
|
230
|
+
defaultValue?: number;
|
|
231
|
+
onValueChange?: (value: number) => void;
|
|
232
|
+
/**
|
|
233
|
+
* The colour the alpha ramp fades — **required when `channel="alpha"`**, ignored for `hue`.
|
|
234
|
+
*
|
|
235
|
+
* Named `baseColor` rather than `color` deliberately: `props:check`'s open-prop allowlist is keyed
|
|
236
|
+
* by prop NAME globally, so a `color` entry here would excuse every future `color` prop in the
|
|
237
|
+
* library.
|
|
238
|
+
*/
|
|
239
|
+
baseColor?: string;
|
|
240
|
+
/** The leading colour chip. Independent of {@link readout} — both on is meaningful. */
|
|
241
|
+
swatch?: boolean;
|
|
242
|
+
/** The trailing `259°` / `100%` value. */
|
|
243
|
+
readout?: boolean;
|
|
244
|
+
disabled?: boolean;
|
|
245
|
+
labels?: ColorPickerLabels;
|
|
246
|
+
/** Layout and spacing only, merged via `cn()`. */
|
|
247
|
+
className?: string;
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* One colour track, standalone — `channel="hue"` or `channel="alpha"`.
|
|
251
|
+
*
|
|
252
|
+
* The same track the panel draws twice, exported because it is genuinely useful alone (an opacity
|
|
253
|
+
* row in a toolbar, a hue rail beside a preview) and because a sibling component can express that
|
|
254
|
+
* where a `body` union on one picker could not.
|
|
255
|
+
*
|
|
256
|
+
* **The readout is width-floored, and that is a fix rather than a detail.** The row is
|
|
257
|
+
* `swatch · flex-1 track · readout`, so as the value moves `9°` → `359°` an auto-width readout
|
|
258
|
+
* widens, the track shrinks, and the thumb slides out from under a pointer mid-drag. The reference
|
|
259
|
+
* has exactly that defect. Flooring the readout to the widest string the channel can print is the
|
|
260
|
+
* same reasoning as `src/lib/intrinsic-width.tsx` — size to the widest member of a closed set, not
|
|
261
|
+
* to the current value — and 361 possible strings do not need the hidden-grid machinery to do it.
|
|
262
|
+
*/
|
|
263
|
+
declare function ColorSlider({ channel, value: valueProp, defaultValue, onValueChange, baseColor, swatch, readout, disabled, labels, className, }: ColorSliderProps): React.JSX.Element;
|
|
264
|
+
declare namespace ColorSlider {
|
|
265
|
+
var displayName: string;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export { type ColorChannel, ColorFormat, ColorKind, ColorPalettePicker, type ColorPalettePickerProps, ColorPickMeta, ColorPicker, ColorPickerLabels, type ColorPickerProps, ColorPickerValue, ColorSlider, type ColorSliderProps, ColorSwatch, ColorSwatchPicker, type ColorSwatchPickerProps, GradientSwatch, GradientValue };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";export { ColorPalettePicker, ColorSlider, ColorSwatchPicker } from './chunk-GV2KTRRP.js';
|
|
2
|
+
import './chunk-WJB5GWAZ.js';
|
|
3
|
+
export { ColorPicker, GradientPicker, MIN_STOPS } from './chunk-4P3JA653.js';
|
|
4
|
+
export { COLOR_FORMATS, convertKind, formatColor, parseColor, parseCss, reverseStops, sampleStops, sortStops, toCss, toHex } from './chunk-UHSGD4CD.js';
|
|
5
|
+
import './chunk-MVUNB43J.js';
|
|
6
|
+
import './chunk-EVINS473.js';
|
|
7
|
+
import './chunk-YKRE5NIH.js';
|
|
8
|
+
import './chunk-3ZZZPT5G.js';
|
|
9
|
+
import './chunk-4KRCT3Q2.js';
|
|
10
|
+
import './chunk-MVF7FA4D.js';
|
|
11
|
+
import './chunk-6T3QAO5K.js';
|
|
12
|
+
import './chunk-DWKILXHE.js';
|
|
13
|
+
import './chunk-A36W77MQ.js';
|
|
14
|
+
import './chunk-O2LG3PNI.js';
|
|
15
|
+
import './chunk-EDSK6FEH.js';
|
|
16
|
+
import './chunk-HB6UA6EF.js';
|
|
17
|
+
import './chunk-GPHGPY6T.js';
|
|
18
|
+
import './chunk-52IFGFTL.js';
|
|
19
|
+
import './chunk-KTWTYK5U.js';
|
|
20
|
+
import './chunk-7LSUUEAF.js';
|
|
21
|
+
import './chunk-O4GRKO3I.js';
|
|
22
|
+
import './chunk-KBI442IB.js';
|
|
23
|
+
import './chunk-ZSNJ6UA3.js';
|
|
24
|
+
import './chunk-ZIEGUI25.js';
|
|
25
|
+
import './chunk-SF3HCW4G.js';
|
|
26
|
+
import './chunk-3ZEEGXYF.js';
|
|
27
|
+
import './chunk-VHAA22YE.js';
|
|
28
|
+
//# sourceMappingURL=color-picker.js.map
|
|
29
|
+
//# sourceMappingURL=color-picker.js.map
|