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.
- package/README.md +13 -10
- package/dist/Cartesian-ZIKPEYWP.d.ts +26 -0
- package/dist/{PaymentInput-CKPIPNWH.d.ts → PaymentInput-Dn5WVQVy.d.ts} +4 -0
- package/dist/{Select-CVbEQ2Ep.d.ts → Select-Dt5ARIH8.d.ts} +4 -0
- package/dist/{TagInput-CTJYOB4J.d.ts → TagInput-BaBeve6L.d.ts} +4 -0
- package/dist/area-chart.d.ts +54 -0
- package/dist/area-chart.js +9 -0
- package/dist/avatar.d.ts +24 -0
- package/dist/avatar.js +13 -7
- package/dist/badge.d.ts +4 -0
- package/dist/badge.js +6 -5
- package/dist/bar-chart.d.ts +32 -0
- package/dist/bar-chart.js +9 -0
- package/dist/breadcrumb.d.ts +4 -0
- package/dist/breadcrumb.js +5 -3
- package/dist/button.d.ts +16 -1
- package/dist/button.js +10 -8
- package/dist/calendar.d.ts +5 -0
- package/dist/calendar.js +18 -14
- package/dist/callout.d.ts +6 -6
- package/dist/callout.js +12 -9
- package/dist/card-D56VxyAe.d.ts +123 -0
- package/dist/card.d.ts +3 -1
- package/dist/card.js +7 -3
- package/dist/checkbox.js +9 -7
- package/dist/chunk-22M75A3N.js +396 -0
- package/dist/{chunk-D5BTFSL7.js → chunk-33TOK7ES.js} +7 -5
- package/dist/{chunk-THC2ISYP.js → chunk-3H444OJA.js} +6 -4
- package/dist/{chunk-GFOAJVW5.js → chunk-3QXLIZIX.js} +4 -13
- package/dist/chunk-3ZEEGXYF.js +8 -0
- package/dist/chunk-45Y2ZGNK.js +34 -0
- package/dist/{chunk-FHHAPGCR.js → chunk-4RBIWI2Q.js} +3 -3
- package/dist/chunk-4VGEJG4M.js +1510 -0
- package/dist/{chunk-PWKWNDBS.js → chunk-54SIZR63.js} +16 -8
- package/dist/chunk-5AZKP4KZ.js +49 -0
- package/dist/chunk-5DP7W5HX.js +254 -0
- package/dist/{chunk-J2BCKBHC.js → chunk-5KSD4WKN.js} +14 -5
- package/dist/{chunk-ZOOX3TUB.js → chunk-5XPMY2LF.js} +6 -6
- package/dist/chunk-5ZEUTSCV.js +147 -0
- package/dist/chunk-5ZPUAGOP.js +19 -0
- package/dist/{chunk-JTNFJLIY.js → chunk-667ZHY3T.js} +114 -42
- package/dist/{chunk-JP26LPCY.js → chunk-6B6BWTXC.js} +30 -13
- package/dist/{chunk-W5GGOUUI.js → chunk-6H4LNWQ7.js} +3 -3
- package/dist/{chunk-WFY7DKQD.js → chunk-6MMBQVRO.js} +61 -51
- package/dist/{chunk-7HOIZ3UO.js → chunk-7GUPNTAH.js} +15 -7
- package/dist/chunk-7VLYQR4D.js +44 -0
- package/dist/{chunk-KNYKWUYX.js → chunk-7ZM7SNCZ.js} +3 -3
- package/dist/{chunk-E7ZSWBAK.js → chunk-A323V6AI.js} +6 -4
- package/dist/chunk-AFYXSZGW.js +23 -0
- package/dist/chunk-AIARANKE.js +33 -0
- package/dist/{chunk-4OLULPQG.js → chunk-AIGYMTCU.js} +10 -6
- package/dist/{chunk-JVJRHBTD.js → chunk-AZ7DKRBY.js} +21 -8
- package/dist/{chunk-JYGR44ZC.js → chunk-BBKE4W3B.js} +19 -11
- package/dist/{chunk-Z3ETJN5G.js → chunk-BFVJHH7S.js} +8 -12
- package/dist/chunk-BLIZ3CL3.js +49 -0
- package/dist/{chunk-F2K7VJUV.js → chunk-CFFWYXDW.js} +19 -7
- package/dist/{chunk-MQGD2OUF.js → chunk-CGHYXWTT.js} +11 -5
- package/dist/{chunk-CYPPEUX5.js → chunk-CKMWBVRR.js} +27 -12
- package/dist/{chunk-GTHJWR3Q.js → chunk-D7EE5GWU.js} +21 -22
- package/dist/{chunk-5NOBSXJN.js → chunk-E2YZ7IMT.js} +24 -8
- package/dist/{chunk-T7FCG7XV.js → chunk-FFMTYQXE.js} +31 -11
- package/dist/{chunk-J36M3KRX.js → chunk-FH7Z7SGQ.js} +67 -32
- package/dist/chunk-FKVPAEJ6.js +57 -0
- package/dist/{chunk-GRLSUQQE.js → chunk-FNQJJO63.js} +4 -4
- package/dist/{chunk-5RAPA22E.js → chunk-FWRHBMWT.js} +4 -4
- package/dist/chunk-GLKFFA7N.js +171 -0
- package/dist/{chunk-KDLPXXD2.js → chunk-GQRSABRN.js} +4 -4
- package/dist/{chunk-DRZCJCBO.js → chunk-GZMDZF2V.js} +8 -7
- package/dist/chunk-HHYEAFCL.js +525 -0
- package/dist/{chunk-LME57Z6J.js → chunk-I6WMNXC7.js} +6 -6
- package/dist/chunk-IQNVSQRK.js +605 -0
- package/dist/chunk-KHGW72BM.js +10 -0
- package/dist/{chunk-ZZA2LUTL.js → chunk-KZP6B6B3.js} +41 -16
- package/dist/chunk-LCG34A5T.js +98 -0
- package/dist/chunk-LLPWQDF7.js +26 -0
- package/dist/{chunk-J7ZQQFPT.js → chunk-LO22VQL5.js} +18 -18
- package/dist/{chunk-BVJWBYIG.js → chunk-LQURV7HQ.js} +9 -7
- package/dist/{chunk-R6RGJF4L.js → chunk-LYXPJERB.js} +15 -5
- package/dist/{chunk-CME4DIML.js → chunk-MCQG4H6T.js} +54 -3
- package/dist/{chunk-VWC72TR3.js → chunk-MVG5MABV.js} +11 -8
- package/dist/{chunk-5FATN5YD.js → chunk-N3RVMBPX.js} +6 -9
- package/dist/chunk-NKG4N6HA.js +188 -0
- package/dist/{chunk-W46K56XU.js → chunk-OACWA4TC.js} +15 -69
- package/dist/chunk-OLLD2BZN.js +33 -0
- package/dist/{chunk-KMSYEE23.js → chunk-P6CON2R2.js} +25 -11
- package/dist/chunk-PO2TYK3C.js +17 -0
- package/dist/{chunk-7EWQKTNQ.js → chunk-POQTE7JI.js} +66 -25
- package/dist/{chunk-HMUZE6EK.js → chunk-QDKETK7D.js} +4 -4
- package/dist/{chunk-GCVA3OIV.js → chunk-QDYE5LVT.js} +13 -3
- package/dist/{chunk-WEUJYDCV.js → chunk-QHH6AUR3.js} +16 -8
- package/dist/chunk-RJTVCA62.js +42 -0
- package/dist/{chunk-MUFHLP4S.js → chunk-S5TEWPWW.js} +50 -41
- package/dist/{chunk-D6TPWNRK.js → chunk-SB3DG572.js} +15 -8
- package/dist/chunk-SKRR3ZMP.js +10 -0
- package/dist/chunk-T4ZFZTY6.js +62 -0
- package/dist/{chunk-I7WU4GTY.js → chunk-T5574MXM.js} +34 -46
- package/dist/{chunk-MKC5HNA7.js → chunk-U4WSJAYK.js} +374 -147
- package/dist/{chunk-BJUZVYQC.js → chunk-UGKELBNC.js} +60 -44
- package/dist/chunk-ULGCGKOE.js +77 -0
- package/dist/{chunk-QA74ITR4.js → chunk-X2VMIBK5.js} +45 -17
- package/dist/chunk-X2X7Q7NW.js +17 -0
- package/dist/chunk-YHBI52P2.js +10 -0
- package/dist/chunk-YIHKQ63K.js +13 -0
- package/dist/{chunk-3Y5X7B5C.js → chunk-YQYVGWIC.js} +6 -11
- package/dist/{chunk-WZQFC7ZN.js → chunk-ZHAT2XZ4.js} +139 -66
- package/dist/{chunk-7IU5TMFL.js → chunk-ZMFY7WAY.js} +124 -40
- package/dist/{chunk-SV56BSUQ.js → chunk-ZZSNTCCL.js} +6 -5
- package/dist/combobox.d.ts +5 -0
- package/dist/combobox.js +15 -12
- package/dist/control-size-CaxQhkKh.d.ts +3 -0
- package/dist/date-input.d.ts +4 -0
- package/dist/date-input.js +12 -9
- package/dist/date-picker.d.ts +6 -0
- package/dist/date-picker.js +25 -20
- package/dist/dialog.d.ts +37 -5
- package/dist/dialog.js +12 -8
- package/dist/drawer.d.ts +20 -3
- package/dist/drawer.js +11 -7
- package/dist/dropdown-menu.d.ts +26 -2
- package/dist/dropdown-menu.js +9 -4
- package/dist/dropzone.d.ts +35 -0
- package/dist/dropzone.js +23 -0
- package/dist/form.d.ts +82 -3
- package/dist/form.js +205 -45
- package/dist/header-navigation.d.ts +19 -4
- package/dist/header-navigation.js +23 -16
- package/dist/helper.d.ts +36 -0
- package/dist/helper.js +3 -0
- package/dist/index.d.ts +32 -8
- package/dist/index.js +87 -62
- package/dist/indicator.js +4 -4
- package/dist/input.d.ts +4 -0
- package/dist/input.js +10 -8
- package/dist/kanban-board.d.ts +489 -0
- package/dist/kanban-board.js +25 -0
- package/dist/labels-DPrh0se9.d.ts +627 -0
- package/dist/line-chart.d.ts +36 -0
- package/dist/line-chart.js +9 -0
- package/dist/{nav-Bla0o_-1.d.ts → nav-CKKqjBs6.d.ts} +18 -11
- package/dist/number-input.d.ts +4 -0
- package/dist/number-input.js +10 -8
- package/dist/pagination.d.ts +7 -1
- package/dist/pagination.js +14 -10
- package/dist/panel-El4oI68p.d.ts +9 -0
- package/dist/payment-input.d.ts +3 -2
- package/dist/payment-input.js +10 -8
- package/dist/pie-chart.d.ts +64 -0
- package/dist/pie-chart.js +9 -0
- package/dist/popover.d.ts +9 -3
- package/dist/popover.js +11 -7
- package/dist/progress-steps.d.ts +275 -0
- package/dist/progress-steps.js +8 -0
- package/dist/progress.d.ts +21 -1
- package/dist/progress.js +3 -2
- package/dist/provider.d.ts +212 -0
- package/dist/provider.js +7 -0
- package/dist/radar-chart.d.ts +77 -0
- package/dist/radar-chart.js +9 -0
- package/dist/radial-chart.d.ts +73 -0
- package/dist/radial-chart.js +9 -0
- package/dist/radio.js +9 -7
- package/dist/rule-BqzaIwJy.d.ts +80 -0
- package/dist/scroll-area.d.ts +62 -0
- package/dist/scroll-area.js +7 -0
- package/dist/select.d.ts +3 -3
- package/dist/select.js +17 -14
- package/dist/separator.d.ts +114 -0
- package/dist/separator.js +5 -0
- package/dist/shared-CxAedkiy.d.ts +68 -0
- package/dist/sidebar-navigation.d.ts +80 -12
- package/dist/sidebar-navigation.js +18 -9
- package/dist/skeleton.d.ts +61 -0
- package/dist/skeleton.js +5 -0
- package/dist/styles.css +1 -1
- package/dist/switch.js +4 -4
- package/dist/table.d.ts +148 -42
- package/dist/table.js +39 -33
- package/dist/tabs.d.ts +22 -0
- package/dist/tabs.js +3 -3
- package/dist/tag-input.d.ts +3 -2
- package/dist/tag-input.js +13 -11
- package/dist/tag.d.ts +4 -0
- package/dist/tag.js +4 -3
- package/dist/textarea.js +7 -5
- package/dist/theme.css +151 -6
- package/dist/theme.js +11 -9
- package/dist/toast.d.ts +11 -2
- package/dist/toast.js +12 -9
- package/dist/tooltip-surface-C2I9o2QM.d.ts +35 -0
- package/dist/tooltip.d.ts +15 -1
- package/dist/tooltip.js +3 -2
- package/dist/tree.d.ts +5 -0
- package/dist/tree.js +8 -6
- package/dist/types-DR9rAEy1.d.ts +188 -0
- package/dist/use-uploads-KaPqDklo.d.ts +482 -0
- package/dist/verification-code-input.d.ts +84 -0
- package/dist/verification-code-input.js +14 -0
- package/package.json +70 -9
- package/dist/card-nWicloNi.d.ts +0 -80
- package/dist/chunk-24TO7E32.js +0 -42
- package/dist/chunk-FXIBGTS5.js +0 -14
- package/dist/chunk-MFJP5FA7.js +0 -20
- package/dist/chunk-ZZT2E5VT.js +0 -24
- package/dist/shared-BNXAdgh2.d.ts +0 -9
package/dist/form.js
CHANGED
|
@@ -1,45 +1,53 @@
|
|
|
1
|
-
"use client";import {
|
|
2
|
-
import './chunk-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-MFJP5FA7.js';
|
|
8
|
-
import { FileTrigger } from './chunk-DJSXIAFH.js';
|
|
9
|
-
import { PaymentInput } from './chunk-D6TPWNRK.js';
|
|
10
|
-
import { DateInput } from './chunk-5NOBSXJN.js';
|
|
11
|
-
import './chunk-GFOAJVW5.js';
|
|
12
|
-
import { TagInput } from './chunk-WEUJYDCV.js';
|
|
13
|
-
import { Button } from './chunk-W46K56XU.js';
|
|
14
|
-
import './chunk-CME4DIML.js';
|
|
15
|
-
import './chunk-MQGD2OUF.js';
|
|
16
|
-
import './chunk-JVJRHBTD.js';
|
|
17
|
-
import { Input } from './chunk-7HOIZ3UO.js';
|
|
18
|
-
import { NumberInput } from './chunk-JYGR44ZC.js';
|
|
19
|
-
import { Textarea } from './chunk-KDLPXXD2.js';
|
|
20
|
-
import './chunk-7EUAMHMU.js';
|
|
21
|
-
import { Select } from './chunk-T7FCG7XV.js';
|
|
1
|
+
"use client";import { PaymentInput } from './chunk-SB3DG572.js';
|
|
2
|
+
import { DateInput } from './chunk-E2YZ7IMT.js';
|
|
3
|
+
import './chunk-3QXLIZIX.js';
|
|
4
|
+
import { TagInput } from './chunk-QHH6AUR3.js';
|
|
5
|
+
import { Textarea } from './chunk-GQRSABRN.js';
|
|
6
|
+
import { Select } from './chunk-FFMTYQXE.js';
|
|
22
7
|
import './chunk-7S2TBALK.js';
|
|
23
|
-
import './chunk-
|
|
8
|
+
import './chunk-I6WMNXC7.js';
|
|
9
|
+
import './chunk-PO2TYK3C.js';
|
|
10
|
+
import './chunk-LYXPJERB.js';
|
|
24
11
|
import './chunk-S7NNXWIN.js';
|
|
25
|
-
import './chunk-
|
|
26
|
-
import './chunk-
|
|
27
|
-
import './chunk-
|
|
28
|
-
import './chunk-
|
|
29
|
-
import './chunk-W5GGOUUI.js';
|
|
12
|
+
import { Combobox } from './chunk-S5TEWPWW.js';
|
|
13
|
+
import './chunk-F6NLE6XJ.js';
|
|
14
|
+
import './chunk-4RBIWI2Q.js';
|
|
15
|
+
import './chunk-6H4LNWQ7.js';
|
|
30
16
|
import './chunk-4P2NBLBW.js';
|
|
17
|
+
import './chunk-FKVPAEJ6.js';
|
|
18
|
+
import { CheckboxGroup, Checkbox } from './chunk-5XPMY2LF.js';
|
|
19
|
+
import { RadioGroup } from './chunk-ZZSNTCCL.js';
|
|
20
|
+
import './chunk-7JBNLEJ7.js';
|
|
21
|
+
import { Switch } from './chunk-QDKETK7D.js';
|
|
22
|
+
import './chunk-D7EE5GWU.js';
|
|
23
|
+
import './chunk-45Y2ZGNK.js';
|
|
24
|
+
import { Dropzone, FileList, formatFileSize } from './chunk-HHYEAFCL.js';
|
|
25
|
+
import './chunk-33TOK7ES.js';
|
|
26
|
+
import './chunk-7VLYQR4D.js';
|
|
27
|
+
import './chunk-LCG34A5T.js';
|
|
28
|
+
import { FileTrigger } from './chunk-DJSXIAFH.js';
|
|
29
|
+
import './chunk-YIHKQ63K.js';
|
|
30
|
+
import { Button } from './chunk-OACWA4TC.js';
|
|
31
|
+
import './chunk-AZ7DKRBY.js';
|
|
32
|
+
import './chunk-MCQG4H6T.js';
|
|
33
|
+
import './chunk-CGHYXWTT.js';
|
|
31
34
|
import './chunk-DWKILXHE.js';
|
|
32
|
-
import './chunk-
|
|
33
|
-
import './chunk-
|
|
34
|
-
import './chunk-
|
|
35
|
+
import { Input } from './chunk-7GUPNTAH.js';
|
|
36
|
+
import { NumberInput } from './chunk-BBKE4W3B.js';
|
|
37
|
+
import './chunk-7EUAMHMU.js';
|
|
38
|
+
import './chunk-X2VMIBK5.js';
|
|
35
39
|
import './chunk-O2LG3PNI.js';
|
|
36
40
|
import './chunk-EDSK6FEH.js';
|
|
37
|
-
import { FIELD_LABEL_CLASS } from './chunk-
|
|
38
|
-
import
|
|
39
|
-
import './chunk-
|
|
41
|
+
import { FIELD_LABEL_CLASS } from './chunk-5KSD4WKN.js';
|
|
42
|
+
import './chunk-7ZM7SNCZ.js';
|
|
43
|
+
import './chunk-52IFGFTL.js';
|
|
44
|
+
import './chunk-KZP6B6B3.js';
|
|
45
|
+
import './chunk-AFYXSZGW.js';
|
|
40
46
|
import './chunk-O4GRKO3I.js';
|
|
41
|
-
import {
|
|
47
|
+
import { CircleAlertIcon } from './chunk-BLIZ3CL3.js';
|
|
42
48
|
import { cn } from './chunk-ZSNJ6UA3.js';
|
|
49
|
+
import { useLabels } from './chunk-RJTVCA62.js';
|
|
50
|
+
import { devWarn } from './chunk-QDYE5LVT.js';
|
|
43
51
|
import * as React8 from 'react';
|
|
44
52
|
import { useForm as useForm$1, useFormContext, Controller, useFormState, FormProvider, useWatch, useFieldArray } from 'react-hook-form';
|
|
45
53
|
export { useWatch } from 'react-hook-form';
|
|
@@ -62,7 +70,7 @@ function useArrayPrefix() {
|
|
|
62
70
|
}
|
|
63
71
|
function useRegisterField(args) {
|
|
64
72
|
const registry = React8.useContext(RegistryContext);
|
|
65
|
-
const { name, kind, validate, label, messages, optionValues, disabled, errorPath } = args;
|
|
73
|
+
const { name, kind, validate, label, messages, optionValues, disabled, errorPath, guard } = args;
|
|
66
74
|
const entryRef = React8.useRef({ name, kind });
|
|
67
75
|
entryRef.current = {
|
|
68
76
|
name,
|
|
@@ -72,7 +80,8 @@ function useRegisterField(args) {
|
|
|
72
80
|
...messages && { messages },
|
|
73
81
|
...optionValues && { optionValues },
|
|
74
82
|
...disabled !== void 0 && { disabled },
|
|
75
|
-
...errorPath && { errorPath }
|
|
83
|
+
...errorPath && { errorPath },
|
|
84
|
+
...guard && { guard }
|
|
76
85
|
};
|
|
77
86
|
const context = useFormContext();
|
|
78
87
|
React8.useEffect(() => {
|
|
@@ -156,6 +165,17 @@ function FormField(props) {
|
|
|
156
165
|
}
|
|
157
166
|
);
|
|
158
167
|
}
|
|
168
|
+
|
|
169
|
+
// src/form/labels.ts
|
|
170
|
+
var FORM_LABELS = {
|
|
171
|
+
/** `FormArray`'s per-row remove button, when it renders icon-only and has no visible text. */
|
|
172
|
+
removeRow: "Remove row",
|
|
173
|
+
/** Default behind `FormArray`'s `addLabel` prop — the caller's own prop still wins. */
|
|
174
|
+
addRow: "Add",
|
|
175
|
+
/** Defaults behind `Form.FileInput`'s `buttonLabel` / `placeholder` props — each prop still wins. */
|
|
176
|
+
uploadButton: "Upload",
|
|
177
|
+
filePlaceholder: "Choose a file"
|
|
178
|
+
};
|
|
159
179
|
function useBound(args) {
|
|
160
180
|
const path = useFieldName(args.name);
|
|
161
181
|
useRegisterField({
|
|
@@ -165,7 +185,8 @@ function useBound(args) {
|
|
|
165
185
|
label: args.label,
|
|
166
186
|
messages: args.messages,
|
|
167
187
|
optionValues: args.partialOptions ? void 0 : optionValuesOf(args.options),
|
|
168
|
-
disabled: args.disabled
|
|
188
|
+
disabled: args.disabled,
|
|
189
|
+
guard: args.guard
|
|
169
190
|
});
|
|
170
191
|
const conditional = typeof args.validate?.required === "function";
|
|
171
192
|
const context = useFormContext();
|
|
@@ -561,10 +582,11 @@ function FormFileInput({
|
|
|
561
582
|
messages,
|
|
562
583
|
accept,
|
|
563
584
|
multiple = false,
|
|
564
|
-
buttonLabel
|
|
565
|
-
placeholder
|
|
585
|
+
buttonLabel,
|
|
586
|
+
placeholder,
|
|
566
587
|
...rest
|
|
567
588
|
}) {
|
|
589
|
+
const t = useLabels("form", FORM_LABELS, void 0);
|
|
568
590
|
const { path, required } = useBound({ name, kind: "file", validate, label: rest.label, messages, disabled: rest.disabled, control });
|
|
569
591
|
return /* @__PURE__ */ jsx(
|
|
570
592
|
FormField,
|
|
@@ -580,16 +602,148 @@ function FormFileInput({
|
|
|
580
602
|
required,
|
|
581
603
|
name: field.name,
|
|
582
604
|
value: fileDisplayValue(field.value),
|
|
583
|
-
placeholder,
|
|
605
|
+
placeholder: placeholder ?? t.filePlaceholder,
|
|
584
606
|
onClick: rest.disabled ? void 0 : open,
|
|
585
607
|
invalid,
|
|
586
608
|
error,
|
|
587
|
-
trailingAddon: /* @__PURE__ */ jsx(Button, { variant: "secondary", seamless: true, disabled: rest.disabled, onClick: open, children: buttonLabel })
|
|
609
|
+
trailingAddon: /* @__PURE__ */ jsx(Button, { variant: "secondary", seamless: true, disabled: rest.disabled, onClick: open, children: buttonLabel ?? t.uploadButton })
|
|
588
610
|
}
|
|
589
611
|
) })
|
|
590
612
|
}
|
|
591
613
|
);
|
|
592
614
|
}
|
|
615
|
+
var REJECT_MESSAGE = {
|
|
616
|
+
type: ({ name }) => `${name} isn't an accepted file type.`,
|
|
617
|
+
size: ({ name, maxSize }) => maxSize === void 0 ? `${name} is too large.` : `${name} is larger than ${formatFileSize(maxSize)}.`,
|
|
618
|
+
count: ({ maxFiles }) => maxFiles === void 0 ? "That's more files than this field accepts." : `You can upload at most ${maxFiles} files.`,
|
|
619
|
+
directory: () => "Folders can't be uploaded \u2014 drop files instead."
|
|
620
|
+
};
|
|
621
|
+
function rejectionMessage(rejections, bounds) {
|
|
622
|
+
const first = rejections[0];
|
|
623
|
+
if (!first) return "";
|
|
624
|
+
const head = REJECT_MESSAGE[first.reason]({ name: first.file.name, ...bounds });
|
|
625
|
+
return rejections.length > 1 ? `${head} (and ${rejections.length - 1} more)` : head;
|
|
626
|
+
}
|
|
627
|
+
function FormDropzone({
|
|
628
|
+
name,
|
|
629
|
+
control,
|
|
630
|
+
validate,
|
|
631
|
+
messages,
|
|
632
|
+
onReject,
|
|
633
|
+
...rest
|
|
634
|
+
}) {
|
|
635
|
+
const { path, required } = useBound({ name, kind: "file", validate, label: rest.label, messages, disabled: rest.disabled, control });
|
|
636
|
+
const [rejected, setRejected] = React8.useState();
|
|
637
|
+
const bounds = { maxSize: validate?.maxSize, maxFiles: validate?.maxFiles };
|
|
638
|
+
return /* @__PURE__ */ jsx(
|
|
639
|
+
FormField,
|
|
640
|
+
{
|
|
641
|
+
name: path,
|
|
642
|
+
control,
|
|
643
|
+
absolute: true,
|
|
644
|
+
render: ({ field, invalid, error }) => /* @__PURE__ */ jsx(
|
|
645
|
+
Dropzone,
|
|
646
|
+
{
|
|
647
|
+
...rest,
|
|
648
|
+
required,
|
|
649
|
+
accept: validate?.accept,
|
|
650
|
+
maxSize: validate?.maxSize,
|
|
651
|
+
maxFiles: validate?.maxFiles,
|
|
652
|
+
fileCount: field.value?.length ?? 0,
|
|
653
|
+
onFilesChange: (files) => {
|
|
654
|
+
setRejected(void 0);
|
|
655
|
+
field.onChange([...field.value ?? [], ...files]);
|
|
656
|
+
},
|
|
657
|
+
onReject: onReject ?? ((rejections) => setRejected(rejectionMessage(rejections, bounds))),
|
|
658
|
+
invalid,
|
|
659
|
+
error: error ?? rejected
|
|
660
|
+
}
|
|
661
|
+
)
|
|
662
|
+
}
|
|
663
|
+
);
|
|
664
|
+
}
|
|
665
|
+
function FormUploads({
|
|
666
|
+
name,
|
|
667
|
+
control,
|
|
668
|
+
validate,
|
|
669
|
+
messages,
|
|
670
|
+
uploads,
|
|
671
|
+
onReject,
|
|
672
|
+
hideList = false,
|
|
673
|
+
...rest
|
|
674
|
+
}) {
|
|
675
|
+
const live = React8.useRef(uploads);
|
|
676
|
+
live.current = uploads;
|
|
677
|
+
const guard = React8.useCallback(() => {
|
|
678
|
+
if (live.current.activeCount > 0) return "Wait for the uploads to finish.";
|
|
679
|
+
if (live.current.files.some((file) => file.status === "failed")) return "Retry or remove the failed upload.";
|
|
680
|
+
return;
|
|
681
|
+
}, []);
|
|
682
|
+
const { path, required } = useBound({
|
|
683
|
+
name,
|
|
684
|
+
kind: "array",
|
|
685
|
+
validate,
|
|
686
|
+
label: rest.label,
|
|
687
|
+
messages,
|
|
688
|
+
disabled: rest.disabled,
|
|
689
|
+
guard,
|
|
690
|
+
control
|
|
691
|
+
});
|
|
692
|
+
const [rejected, setRejected] = React8.useState();
|
|
693
|
+
const bounds = { maxFiles: validate?.maxItems };
|
|
694
|
+
const ids = React8.useMemo(
|
|
695
|
+
() => uploads.files.map((file) => uploads.results.get(file.id)).filter((id) => id !== void 0),
|
|
696
|
+
[uploads.files, uploads.results]
|
|
697
|
+
);
|
|
698
|
+
return /* @__PURE__ */ jsx(
|
|
699
|
+
FormField,
|
|
700
|
+
{
|
|
701
|
+
name: path,
|
|
702
|
+
control,
|
|
703
|
+
absolute: true,
|
|
704
|
+
render: ({ field, invalid, error }) => /* @__PURE__ */ jsx(
|
|
705
|
+
UploadsBinding,
|
|
706
|
+
{
|
|
707
|
+
field,
|
|
708
|
+
ids,
|
|
709
|
+
render: () => /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
710
|
+
/* @__PURE__ */ jsx(
|
|
711
|
+
Dropzone,
|
|
712
|
+
{
|
|
713
|
+
...rest,
|
|
714
|
+
required,
|
|
715
|
+
maxFiles: validate?.maxItems,
|
|
716
|
+
fileCount: uploads.files.length,
|
|
717
|
+
onFilesChange: (files) => {
|
|
718
|
+
setRejected(void 0);
|
|
719
|
+
uploads.add(files);
|
|
720
|
+
},
|
|
721
|
+
onReject: onReject ?? ((rejections) => setRejected(rejectionMessage(rejections, bounds))),
|
|
722
|
+
invalid,
|
|
723
|
+
error: error ?? rejected
|
|
724
|
+
}
|
|
725
|
+
),
|
|
726
|
+
!hideList && uploads.files.length > 0 && /* @__PURE__ */ jsx(FileList, { ...uploads.listProps })
|
|
727
|
+
] })
|
|
728
|
+
}
|
|
729
|
+
)
|
|
730
|
+
}
|
|
731
|
+
);
|
|
732
|
+
}
|
|
733
|
+
function UploadsBinding({
|
|
734
|
+
field,
|
|
735
|
+
ids,
|
|
736
|
+
render
|
|
737
|
+
}) {
|
|
738
|
+
const onChange = React8.useRef(field.onChange);
|
|
739
|
+
onChange.current = field.onChange;
|
|
740
|
+
const current = field.value;
|
|
741
|
+
const same = current?.length === ids.length && ids.every((id, i) => current?.[i] === id);
|
|
742
|
+
React8.useEffect(() => {
|
|
743
|
+
if (!same) onChange.current(ids);
|
|
744
|
+
}, [same, ids]);
|
|
745
|
+
return render();
|
|
746
|
+
}
|
|
593
747
|
function FormSubmit({ children, form, ...rest }) {
|
|
594
748
|
const { isSubmitting } = useFormState(form ? { control: form.control } : void 0);
|
|
595
749
|
return /* @__PURE__ */ jsx(Button, { type: "submit", loading: isSubmitting, ...form && { form: form.__jz.formId }, ...rest, children });
|
|
@@ -607,7 +761,9 @@ var BOUND_FIELDS = {
|
|
|
607
761
|
DateInput: FormDateInput,
|
|
608
762
|
TagInput: FormTagInput,
|
|
609
763
|
PaymentInput: FormPaymentInput,
|
|
610
|
-
FileInput: FormFileInput
|
|
764
|
+
FileInput: FormFileInput,
|
|
765
|
+
Dropzone: FormDropzone,
|
|
766
|
+
Uploads: FormUploads
|
|
611
767
|
};
|
|
612
768
|
var labelled = (ctx, suffix) => ctx.label ? `${ctx.label} ${suffix}` : `This field ${suffix}`;
|
|
613
769
|
var DEFAULT_MESSAGES = {
|
|
@@ -783,6 +939,8 @@ async function evaluateField(entry, value, values, makeMessage) {
|
|
|
783
939
|
if (entry.disabled) return void 0;
|
|
784
940
|
const v = entry.validate;
|
|
785
941
|
const emit = (rule, extra) => ({ rule, message: makeMessage(rule, extra) });
|
|
942
|
+
const blocked = entry.guard?.();
|
|
943
|
+
if (blocked) return { rule: "check", message: blocked };
|
|
786
944
|
const empty = isEmpty(entry.kind, value);
|
|
787
945
|
const required = call(v?.required, values) === true;
|
|
788
946
|
if (required && empty) return emit("required");
|
|
@@ -868,6 +1026,7 @@ async function evaluateField(entry, value, values, makeMessage) {
|
|
|
868
1026
|
}
|
|
869
1027
|
var RowContext = React8.createContext(null);
|
|
870
1028
|
function FormArrayRemove({ children, ...rest }) {
|
|
1029
|
+
const t = useLabels("form", FORM_LABELS, void 0);
|
|
871
1030
|
const row = React8.useContext(RowContext);
|
|
872
1031
|
if (!row) return null;
|
|
873
1032
|
return /* @__PURE__ */ jsx(
|
|
@@ -876,7 +1035,7 @@ function FormArrayRemove({ children, ...rest }) {
|
|
|
876
1035
|
type: "button",
|
|
877
1036
|
variant: "tertiary",
|
|
878
1037
|
iconOnly: !children,
|
|
879
|
-
"aria-label": children ? void 0 :
|
|
1038
|
+
"aria-label": children ? void 0 : t.removeRow,
|
|
880
1039
|
...rest,
|
|
881
1040
|
disabled: !row.canRemove || rest.disabled,
|
|
882
1041
|
onClick: row.remove,
|
|
@@ -885,7 +1044,8 @@ function FormArrayRemove({ children, ...rest }) {
|
|
|
885
1044
|
);
|
|
886
1045
|
}
|
|
887
1046
|
FormArrayRemove.displayName = "Form.Array.Remove";
|
|
888
|
-
function FormArray({ form, name, label, hint, min, max, unique, empty, addLabel
|
|
1047
|
+
function FormArray({ form, name, label, hint, min, max, unique, empty, addLabel, messages, className, children }) {
|
|
1048
|
+
const t = useLabels("form", FORM_LABELS, void 0);
|
|
889
1049
|
const prefix = useArrayPrefix();
|
|
890
1050
|
const path = `${prefix}${name}`;
|
|
891
1051
|
const context = useFormContext();
|
|
@@ -972,7 +1132,7 @@ function FormArray({ form, name, label, hint, min, max, unique, empty, addLabel
|
|
|
972
1132
|
Remove: FormArrayRemove
|
|
973
1133
|
}) }, field.id)) }),
|
|
974
1134
|
rootError ? /* @__PURE__ */ jsx("span", { id: errorId, className: "text-sm text-error-primary", children: rootError }) : null,
|
|
975
|
-
addLabel === null ? null : /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Button, { ref: addRef, type: "button", variant: "secondary", size: "sm", disabled: !canAdd, onClick: addRow, children: addLabel }) })
|
|
1135
|
+
addLabel === null ? null : /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Button, { ref: addRef, type: "button", variant: "secondary", size: "sm", disabled: !canAdd, onClick: addRow, children: addLabel ?? t.addRow }) })
|
|
976
1136
|
]
|
|
977
1137
|
}
|
|
978
1138
|
)
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { c as NavLink } from './nav-
|
|
2
|
+
import { c as NavLink } from './nav-CKKqjBs6.js';
|
|
3
|
+
import { P as PanelDividers } from './panel-El4oI68p.js';
|
|
4
|
+
import { H as HeaderNavigationLabels } from './labels-DPrh0se9.js';
|
|
5
|
+
import './rule-BqzaIwJy.js';
|
|
3
6
|
import './dropdown-menu.js';
|
|
4
7
|
|
|
5
8
|
/** How the second tier renders when the current item has children. */
|
|
@@ -47,9 +50,18 @@ interface HeaderNavigationProps {
|
|
|
47
50
|
/** Where the primary nav sits. `center` shares the free space either side of it (the
|
|
48
51
|
* reference's `centered`); `start` packs it beside the logo. @default "start" */
|
|
49
52
|
align?: HeaderNavigationAlign;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
|
|
53
|
+
/**
|
|
54
|
+
* The rules the bar draws — its bottom seam against the page, and the seam between tier 1 and a
|
|
55
|
+
* `secondary` tier. The library-wide texture vocabulary (`src/lib/rule.ts`), with `"none"` naming
|
|
56
|
+
* the off state: drop it when the header sits on a coloured hero that supplies its own edge.
|
|
57
|
+
*
|
|
58
|
+
* A union rather than the boolean this shipped as, for the same reason `dividers` is one on
|
|
59
|
+
* Card/Dialog/Drawer/Popover: `true` and `"line"` would be two spellings of one answer (AGENTS §4).
|
|
60
|
+
* Named `dividers` — plural, and the same word every other band seam in the library uses — because
|
|
61
|
+
* it governs both rules, and a caller moving between components must not have to guess.
|
|
62
|
+
* @default "line"
|
|
63
|
+
*/
|
|
64
|
+
dividers?: PanelDividers;
|
|
53
65
|
/**
|
|
54
66
|
* Pin the bar to the top of the nearest scrollable ancestor (usually the document) at `z-20`.
|
|
55
67
|
* When a `secondary="tabs"` strip is also showing, it is handed tier 1's height through
|
|
@@ -62,6 +74,9 @@ interface HeaderNavigationProps {
|
|
|
62
74
|
mobile?: HeaderNavigationMobile;
|
|
63
75
|
/** Accessible name for the primary `<nav>` landmark. @default "Main" */
|
|
64
76
|
"aria-label"?: string;
|
|
77
|
+
/** Override the component's own copy — the mobile trigger and the brand lockup's name. Merges
|
|
78
|
+
* under `<JenosizeUIProvider labels={{ headerNavigation }}>`; see `docs/i18n-policy.md`. */
|
|
79
|
+
labels?: HeaderNavigationLabels;
|
|
65
80
|
/** Layout/spacing overrides for the `<header>` only (merged via `cn()`) — the ONE class hook.
|
|
66
81
|
* Never restyles rows. */
|
|
67
82
|
className?: string;
|
|
@@ -1,23 +1,30 @@
|
|
|
1
|
-
"use client";export { HeaderNavigation } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-MQGD2OUF.js';
|
|
11
|
-
import './chunk-JVJRHBTD.js';
|
|
1
|
+
"use client";export { HeaderNavigation } from './chunk-UGKELBNC.js';
|
|
2
|
+
import './chunk-ZMFY7WAY.js';
|
|
3
|
+
import './chunk-6B6BWTXC.js';
|
|
4
|
+
import './chunk-AIGYMTCU.js';
|
|
5
|
+
import './chunk-LLPWQDF7.js';
|
|
6
|
+
import './chunk-BFVJHH7S.js';
|
|
7
|
+
import './chunk-CKMWBVRR.js';
|
|
8
|
+
import './chunk-LO22VQL5.js';
|
|
9
|
+
import './chunk-PO2TYK3C.js';
|
|
12
10
|
import './chunk-S7NNXWIN.js';
|
|
13
|
-
import './chunk-
|
|
14
|
-
import './chunk-
|
|
11
|
+
import './chunk-FKVPAEJ6.js';
|
|
12
|
+
import './chunk-45Y2ZGNK.js';
|
|
13
|
+
import './chunk-7VLYQR4D.js';
|
|
14
|
+
import './chunk-LCG34A5T.js';
|
|
15
|
+
import './chunk-5AZKP4KZ.js';
|
|
16
|
+
import './chunk-AZ7DKRBY.js';
|
|
17
|
+
import './chunk-MCQG4H6T.js';
|
|
18
|
+
import './chunk-CGHYXWTT.js';
|
|
15
19
|
import './chunk-O2LG3PNI.js';
|
|
16
20
|
import './chunk-EDSK6FEH.js';
|
|
17
|
-
import './chunk-
|
|
18
|
-
import './chunk-
|
|
21
|
+
import './chunk-52IFGFTL.js';
|
|
22
|
+
import './chunk-KZP6B6B3.js';
|
|
23
|
+
import './chunk-AFYXSZGW.js';
|
|
19
24
|
import './chunk-O4GRKO3I.js';
|
|
20
|
-
import './chunk-
|
|
25
|
+
import './chunk-BLIZ3CL3.js';
|
|
21
26
|
import './chunk-ZSNJ6UA3.js';
|
|
27
|
+
import './chunk-RJTVCA62.js';
|
|
28
|
+
import './chunk-QDYE5LVT.js';
|
|
22
29
|
//# sourceMappingURL=header-navigation.js.map
|
|
23
30
|
//# sourceMappingURL=header-navigation.js.map
|
package/dist/helper.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
type ColorToken = "brand-50" | "brand-100" | "brand-200" | "brand-300" | "brand-400" | "brand-500" | "brand-600" | "brand-700" | "brand-800" | "brand-900" | "brand-950" | "bg-primary" | "bg-primary_alt" | "bg-sunken" | "bg-secondary" | "bg-tertiary" | "bg-quaternary" | "bg-ghost-hover" | "bg-selected" | "bg-selected-hover" | "bg-brand-solid" | "bg-brand-solid_hover" | "bg-brand-primary" | "bg-primary-solid" | "bg-success-primary" | "bg-warning-primary" | "bg-error-primary" | "bg-error-solid" | "bg-error-solid_hover" | "bg-secondary-solid" | "bg-secondary-solid_hover" | "bg-success-solid" | "bg-success-solid_hover" | "bg-warning-solid" | "bg-warning-solid_hover" | "bg-overlay" | "bg-overlay-soft" | "text-primary" | "text-secondary" | "text-secondary_hover" | "text-tertiary" | "text-quaternary" | "text-placeholder" | "text-brand-secondary" | "text-brand-secondary_hover" | "text-brand-tertiary" | "text-success-primary" | "text-warning-primary" | "text-error-primary" | "fg-secondary" | "fg-quaternary" | "fg-quaternary_hover" | "fg-disabled" | "fg-white" | "fg-success-primary" | "fg-warning-primary" | "fg-error-primary" | "fg-success-primary_hover" | "fg-warning-primary_hover" | "fg-error-primary_hover" | "fg-brand-secondary" | "fg-brand-secondary_hover" | "fg-error-secondary" | "fg-success-secondary" | "border-secondary" | "border-primary" | "border-strong" | "border-tertiary" | "border-secondary_alt" | "border-brand" | "border-error_subtle" | "border-success" | "border-warning" | "focus-ring" | "focus-ring-error" | "tooltip-supporting-text" | "utility-neutral-50" | "utility-neutral-100" | "utility-neutral-200" | "utility-neutral-300" | "utility-neutral-400" | "utility-neutral-500" | "utility-neutral-600" | "utility-neutral-700" | "utility-brand-50" | "utility-brand-100" | "utility-brand-200" | "utility-brand-300" | "utility-brand-400" | "utility-brand-500" | "utility-brand-600" | "utility-brand-700" | "utility-red-50" | "utility-red-100" | "utility-red-200" | "utility-red-300" | "utility-red-400" | "utility-red-500" | "utility-red-600" | "utility-red-700" | "utility-amber-50" | "utility-amber-100" | "utility-amber-200" | "utility-amber-300" | "utility-amber-400" | "utility-amber-500" | "utility-amber-600" | "utility-amber-700" | "utility-green-50" | "utility-green-100" | "utility-green-200" | "utility-green-300" | "utility-green-400" | "utility-green-500" | "utility-green-600" | "utility-green-700" | "utility-blue-50" | "utility-blue-100" | "utility-blue-200" | "utility-blue-300" | "utility-blue-400" | "utility-blue-500" | "utility-blue-600" | "utility-blue-700" | "illustration-neutral-1" | "illustration-neutral-2" | "illustration-neutral-3" | "illustration-neutral-4";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A house colour as a CSS **value** — `token("utility-blue-600")` → `"var(--color-utility-blue-600)"`.
|
|
5
|
+
*
|
|
6
|
+
* **Why this exists.** Almost everything in this library is coloured by a Tailwind class over a
|
|
7
|
+
* semantic role, and that is still the right answer wherever a class can reach. But a few places
|
|
8
|
+
* take a colour as a *value* rather than as a class — a chart `palette`, a `style` a caller has to
|
|
9
|
+
* write themselves — and there a class is no help at all. This is the one supported way to spell a
|
|
10
|
+
* house colour there, so a consumer never has to hand-write `var(--color-…)` and never has to guess
|
|
11
|
+
* whether a name exists.
|
|
12
|
+
*
|
|
13
|
+
* **Why the argument is a closed, GENERATED union.** `var(--color-nope)` is perfectly valid CSS. It
|
|
14
|
+
* does not throw, does not warn and fails no gate — the declaration is simply invalid at
|
|
15
|
+
* computed-value time and the element keeps its inherited colour. That is the same silent-failure
|
|
16
|
+
* shape as an undeclared Tailwind token, and the same answer applies: the vocabulary is ours, so it
|
|
17
|
+
* is a type. `token.generated.ts` is emitted from `theme.css` by `scripts/build-tokens.mjs` and
|
|
18
|
+
* gated by `pnpm tokens:check`, so the union cannot drift from what the stylesheet declares.
|
|
19
|
+
*
|
|
20
|
+
* The set is exactly what `@theme` declares — **primitive ramp stops included**, because this is a
|
|
21
|
+
* consumer-facing escape hatch and not component source. AGENTS §7's "no raw ramp stops" governs
|
|
22
|
+
* `src/components/**`; it does not govern what an app may ask for. Tailwind's own stock palette is
|
|
23
|
+
* deliberately absent: `--color-neutral-950` resolves at build time but is only emitted when some
|
|
24
|
+
* class pulled it in, so it is a name that works right up until nothing uses it.
|
|
25
|
+
*
|
|
26
|
+
* Colours only. A radius, a shadow or a type step would each need its own prefix, and one function
|
|
27
|
+
* that guessed the prefix from the name would be two vocabularies wearing one name — if those are
|
|
28
|
+
* ever wanted they get their own helper.
|
|
29
|
+
*
|
|
30
|
+
* ```tsx
|
|
31
|
+
* <BarChart data={rows} series={series} palette={[token("utility-blue-600"), token("brand-500")]} />
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
declare function token(name: ColorToken): string;
|
|
35
|
+
|
|
36
|
+
export { type ColorToken, token };
|
package/dist/helper.js
ADDED
package/dist/index.d.ts
CHANGED
|
@@ -1,52 +1,74 @@
|
|
|
1
1
|
import { ClassValue } from 'clsx';
|
|
2
|
+
export { ColorToken, token } from './helper.js';
|
|
2
3
|
export { b as Option, c as OptionGroup, d as OptionOrGroup, i as isOptionGroup } from './options-CPEIgjtd.js';
|
|
3
4
|
export { a as SEMANTIC_COLORS, S as SemanticColor, i as isSemanticColor } from './color-CtSxc1Rh.js';
|
|
4
5
|
export { O as OverflowMode } from './overflow-Df0h42Oi.js';
|
|
5
|
-
export { C as
|
|
6
|
+
export { C as CARD_SURFACE_VARIANTS, a as Card, b as CardPadding, c as CardProps, d as CardShadow, e as CardSurfaceVariant, f as CardVariant, S as SURFACE_PADDINGS, g as SURFACE_SHADOWS, h as SurfacePadding, i as SurfaceShadow } from './card-D56VxyAe.js';
|
|
6
7
|
export { B as Button, a as ButtonProps, b as ButtonSize, c as ButtonVariant } from './Button-Bt7pzM4R.js';
|
|
7
8
|
export { Input, InputAddon, InputAddonProps, InputProps, InputSize } from './input.js';
|
|
8
9
|
export { NumberInput, NumberInputOnValueChange, NumberInputProps, NumberInputSize, NumberInputVariant } from './number-input.js';
|
|
9
10
|
export { Textarea, TextareaProps, TextareaResize, TextareaSize } from './textarea.js';
|
|
10
|
-
export { S as Select, a as SelectAction, b as SelectDisplay, c as SelectIndicator, d as SelectIndicatorAlign, e as SelectOption, f as SelectProps, g as SelectRootProps, h as SelectSize } from './Select-
|
|
11
|
+
export { S as Select, a as SelectAction, b as SelectDisplay, c as SelectIndicator, d as SelectIndicatorAlign, e as SelectOption, f as SelectProps, g as SelectRootProps, h as SelectSize } from './Select-Dt5ARIH8.js';
|
|
11
12
|
export { Combobox, ComboboxChip, ComboboxDisplay, ComboboxIndicator, ComboboxIndicatorAlign, ComboboxOption, ComboboxProps, ComboboxRootProps, ComboboxSize } from './combobox.js';
|
|
12
13
|
export { Checkbox, CheckboxGroup, CheckboxGroupOption, CheckboxGroupOrientation, CheckboxGroupProps, CheckboxProps, CheckboxSize } from './checkbox.js';
|
|
13
14
|
export { RadioGroup, RadioGroupOrientation, RadioGroupProps, RadioGroupSize, RadioOption } from './radio.js';
|
|
14
15
|
export { Switch, SwitchProps, SwitchSize } from './switch.js';
|
|
15
16
|
export { FileTrigger, FileTriggerProps, FileTriggerState } from './file-trigger.js';
|
|
16
|
-
export {
|
|
17
|
+
export { B as BucketResult, D as Dropzone, a as DropzoneProps, F as FILE_TONE, b as FILE_TONE_BUCKETS, c as FileExtension, d as FileList, e as FileListProps, f as FileListTreatment, g as FileRejectReason, h as FileRejection, i as FileRules, G as GLYPH_BOX, K as KnownFileExtension, U as UploadContext, j as UploadEvent, k as UploadFile, l as UploadStatus, m as UploadTransport, n as UseUploadsOptions, o as UseUploadsResult, p as bucketFiles, q as extensionTone, r as fileExtension, s as fileGlyphSource, t as fileTone, u as formatFileSize, v as invalidAcceptEntries, w as isFileTypeAccepted, x as reduceUpload, y as splitBatchProgress, z as toUploadFile, A as useUploads } from './use-uploads-KaPqDklo.js';
|
|
18
|
+
export { FileTypeGlyph, FileTypeGlyphProps } from './dropzone.js';
|
|
19
|
+
export { C as CardNumberEdit, a as CardType, D as DEFAULT_MAX_DIGITS, P as PaymentInput, b as PaymentInputChangeMeta, c as PaymentInputProps, d as PaymentInputSize, e as applyCardNumberEdit, f as detectCardType, g as formatCardNumber, h as hasChecksumError, i as isCompleteCardNumber, j as isLengthSettled, l as luhnValid, o as onlyDigits } from './PaymentInput-Dn5WVQVy.js';
|
|
17
20
|
export { DateInput, DateInputProps, DateInputSize } from './date-input.js';
|
|
18
|
-
export { T as TagInput, a as TagInputProps, b as TagInputSeparator, c as TagInputSize } from './TagInput-
|
|
21
|
+
export { T as TagInput, a as TagInputProps, b as TagInputSeparator, c as TagInputSize } from './TagInput-BaBeve6L.js';
|
|
19
22
|
export { TagInputOuter, TagInputOuterProps } from './tag-input.js';
|
|
23
|
+
export { VerificationCodeInput, VerificationCodeInputProps, VerificationCodeInputSize, VerificationCodeMask, VerificationCodeValidationType } from './verification-code-input.js';
|
|
20
24
|
export { Breadcrumb, BreadcrumbDivider, BreadcrumbItem, BreadcrumbProps, BreadcrumbVariant } from './breadcrumb.js';
|
|
25
|
+
export { D as DialogFooter, a as DialogSize, O as OVERLAY_BACKDROPS, b as OverlayBackdrop } from './shared-CxAedkiy.js';
|
|
21
26
|
export { AlertDialog, AlertDialogProps, Dialog, DialogProps } from './dialog.js';
|
|
22
27
|
export { Popover, PopoverProps } from './popover.js';
|
|
23
28
|
export { Drawer, DrawerContainer, DrawerFooter, DrawerProps, DrawerSide, DrawerSize } from './drawer.js';
|
|
24
29
|
export { DropdownMenu, DropdownMenuActionItem, DropdownMenuAlign, DropdownMenuCheckboxItem, DropdownMenuGroupItem, DropdownMenuItem, DropdownMenuItemVariant, DropdownMenuProps, DropdownMenuRadioItem, DropdownMenuSelectionIndicator, DropdownMenuSeparatorItem, DropdownMenuSide, DropdownMenuSize, DropdownMenuSubmenuItem } from './dropdown-menu.js';
|
|
25
30
|
export { Tooltip, TooltipAlign, TooltipProps, TooltipProviderProps, TooltipSide, TooltipSize } from './tooltip.js';
|
|
26
31
|
export { TabItem, Tabs, TabsOrientation, TabsProps, TabsSize, TabsVariant } from './tabs.js';
|
|
27
|
-
export { SidebarBreakpoint, SidebarContextValue, SidebarNavigation, SidebarNavigationAccent, SidebarNavigationGuide, SidebarNavigationProps, SidebarProvider, SidebarProviderProps, SidebarTrigger, SidebarTriggerProps, useSidebar } from './sidebar-navigation.js';
|
|
32
|
+
export { SidebarBreakpoint, SidebarContextValue, SidebarNavigation, SidebarNavigationAccent, SidebarNavigationBrand, SidebarNavigationGuide, SidebarNavigationProps, SidebarNavigationSlot, SidebarProvider, SidebarProviderProps, SidebarTrigger, SidebarTriggerProps, useSidebar } from './sidebar-navigation.js';
|
|
28
33
|
export { HeaderNavigation, HeaderNavigationAlign, HeaderNavigationMobile, HeaderNavigationProps, HeaderNavigationSecondary } from './header-navigation.js';
|
|
29
34
|
export { Tag, TagGroup, TagGroupProps, TagOption, TagProps, TagSize } from './tag.js';
|
|
30
35
|
export { Badge, BadgeColor, BadgeGroup, BadgeGroupAlign, BadgeGroupColor, BadgeGroupProps, BadgeGroupSize, BadgeProps, BadgeShape, BadgeSize, BadgeVariant } from './badge.js';
|
|
31
36
|
export { Indicator, IndicatorColor, IndicatorProps, IndicatorShape, IndicatorSize, IndicatorTone } from './indicator.js';
|
|
32
37
|
export { Avatar, AvatarAddButton, AvatarAddButtonProps, AvatarAddButtonSize, AvatarGroup, AvatarGroupProps, AvatarLabelGroup, AvatarLabelGroupProps, AvatarLabelGroupSize, AvatarProfilePhoto, AvatarProfilePhotoProps, AvatarProfilePhotoSize, AvatarProps, AvatarShape, AvatarSize, AvatarStatus } from './avatar.js';
|
|
33
38
|
export { Progress, ProgressProps, ProgressSize, ProgressValuePosition } from './progress.js';
|
|
39
|
+
export { ProgressSteps, ProgressStepsProps, StepConnector, StepItem, StepMarker, StepMount, StepOrientation, StepPanel, StepPanelProps, StepSize, StepStatus, StepStatusOverride, UseStepsOptions, UseStepsResult, buildStepMap, firstEnabledStep, resolveStepStatus, useSteps } from './progress-steps.js';
|
|
40
|
+
export { Skeleton, SkeletonProps, SkeletonShape, SkeletonText, SkeletonTextProps, SkeletonTextSize } from './skeleton.js';
|
|
34
41
|
export { LinkRel, ToastActionConfig, ToastFacade, ToastOptions, ToastPosition, ToastProvider, ToastProviderProps, ToastType, ToastUpdateOptions, toast } from './toast.js';
|
|
35
|
-
export { ActiveFilter, BulkAction, CardPriority, ColumnAlign, ColumnFilter, ColumnPin, DateRangeFilter, ExpansionResolver, FacetFilter, FilterValue, NumberFilter, RowAction, RowActions, RowExpansion, RowMenuItem, SelectionState, SortDirection, Table, TableColumn, TableColumnGroup, TableColumns, TableFilters, TablePaginateOptions, TablePaginationOptions, TableProps, TableResponsive, TableRowClick, TableRowHover, TableSize, TableSort, TableToolbar, TableTreatment, TextFilter, UseTableOptions, UseTableResult, expansionChildren, expansionDetail, flattenColumns, hasColumnGroups, isColumnGroup, useTable } from './table.js';
|
|
42
|
+
export { ActiveFilter, BulkAction, CardPriority, ColumnAlign, ColumnFilter, ColumnPin, DateRangeFilter, ExpansionResolver, FacetFilter, FilterValue, NumberFilter, RowAction, RowActionSlot, RowActions, RowExpansion, RowMenuItem, SelectionState, SortDirection, Table, TableColumn, TableColumnGroup, TableColumns, TableFilters, TablePaginateOptions, TablePaginationOptions, TableProps, TableResponsive, TableRowClick, TableRowHover, TableSize, TableSort, TableToolbar, TableTreatment, TextFilter, UseTableOptions, UseTableResult, expansionChildren, expansionDetail, flattenColumns, hasColumnGroups, isColumnGroup, useTable } from './table.js';
|
|
36
43
|
export { Tree, TreeCheckedState, TreeDragHandle, TreeGuide, TreeMove, TreeMovePosition, TreeNode, TreeNodeState, TreeProps, TreeReorderOptions, TreeSelectionMode, TreeSize, TreeSlot, TreeToggleOptions, UseTreeOptions, UseTreeResult, VisibleTreeNode, ancestorIds, applyTreeMove, attachChildren, isBranch, isDescendant, useTree, walkTree } from './tree.js';
|
|
44
|
+
export { KanbanBoard, KanbanBoardProps, KanbanCell, KanbanCellView, KanbanColumn, KanbanColumnActions, KanbanColumnMove, KanbanColumnReorder, KanbanDraft, KanbanHandle, KanbanHeight, KanbanLane, KanbanLaneView, KanbanLanesOptions, KanbanLoadMore, KanbanMove, KanbanPosition, KanbanSize, UseKanbanOptions, UseKanbanResult, cellKey, useKanban } from './kanban-board.js';
|
|
45
|
+
export { AreaChart, AreaChartProps } from './area-chart.js';
|
|
46
|
+
export { BarChart, BarChartProps } from './bar-chart.js';
|
|
47
|
+
export { LineChart, LineChartProps } from './line-chart.js';
|
|
48
|
+
export { PieChart, PieChartProps } from './pie-chart.js';
|
|
49
|
+
export { RadarChart, RadarChartProps } from './radar-chart.js';
|
|
50
|
+
export { RadialChart, RadialChartProps } from './radial-chart.js';
|
|
51
|
+
export { C as CartesianChartBaseProps, a as ChartColor, b as ChartCurve, c as ChartDatum, d as ChartLegendPlacement, e as ChartPalette, f as ChartSeries, g as ChartSize, P as PieDonut } from './types-DR9rAEy1.js';
|
|
37
52
|
export { Calendar, CalendarConfig, CalendarDay, CalendarEvent, CalendarLayout, CalendarProps, CalendarSize, CalendarView, SlotDuration, UseCalendarOptions, UseCalendarResult, WireDates, isWireDate, parseEvent, serializeEvent, useCalendar } from './calendar.js';
|
|
38
53
|
export { DATE_PRESETS, DateCalendar, DateCalendarProps, DateCalendarSize, DateCommit, DateCommonProps, DatePicker, DatePickerProps, DatePreset, DateRangeCalendar, DateRangeCalendarProps, DateRangePicker, DateRangePickerProps, DateRangeValue, resolvePreset } from './date-picker.js';
|
|
39
54
|
export { Pagination, PaginationAlign, PaginationColor, PaginationProps, PaginationVariant, pageWindow } from './pagination.js';
|
|
40
55
|
export { Callout, CalloutAction, CalloutProps, CalloutSize, CalloutVisual } from './callout.js';
|
|
41
56
|
export { ILLUSTRATION_TYPES, Illustration, IllustrationProps, IllustrationSize, IllustrationType } from './illustration.js';
|
|
57
|
+
export { ScrollArea, ScrollAreaAxis, ScrollAreaProps } from './scroll-area.js';
|
|
58
|
+
export { Separator, SeparatorLength, SeparatorOrientation, SeparatorProps } from './separator.js';
|
|
59
|
+
export { a as RuleAxis, R as RuleTexture, b as RuleTone, c as RuleWeight } from './rule-BqzaIwJy.js';
|
|
60
|
+
export { P as PanelDividers } from './panel-El4oI68p.js';
|
|
61
|
+
export { JenosizeUIProvider, JenosizeUIProviderProps, LinkComponent, LinkProps } from './provider.js';
|
|
62
|
+
export { A as AvatarLabels, B as BadgeLabels, a as BreadcrumbLabels, b as CalendarLabels, C as ChartLabels, c as CloseButtonLabels, d as ComboboxLabels, D as DateInputLabels, e as DatePickerLabels, f as DropzoneLabels, F as FieldLabels, g as FileListLabels, H as HeaderNavigationLabels, I as InputLabels, K as KanbanBoardLabels, L as Label, h as LabelOverrides, i as LibraryLabels, N as NumberInputLabels, P as PaginationLabels, j as PaymentInputLabels, k as SidebarNavigationLabels, T as TableLabels, l as TagLabels, m as ToastLabels, n as TreeLabels } from './labels-DPrh0se9.js';
|
|
42
63
|
export { ResolvedTheme, Theme, ThemeContextValue, ThemeProvider, ThemeProviderProps, ThemeScript, ThemeScriptOptions, ThemeScriptProps, ThemeToggle, ThemeToggleProps, buildThemeScript, useTheme } from './theme.js';
|
|
64
|
+
export { A as AreaBand, a as AreaFill, B as BarLayout } from './Cartesian-ZIKPEYWP.js';
|
|
43
65
|
export { ButtonUtility, ButtonUtilityProps, ButtonUtilitySize, ButtonUtilityVariant, CloseButton, CloseButtonProps, CloseButtonSize, CloseButtonTheme } from './button.js';
|
|
44
66
|
export { CARD_ICON } from './payment-input.js';
|
|
45
67
|
export { D as DateOrder, E as Era, H as HourCycle, P as ParsedFormat } from './date-utils-7hTFTXNK.js';
|
|
46
|
-
export { D as DialogFooter, a as DialogSize } from './shared-BNXAdgh2.js';
|
|
47
68
|
export { NativeSelect, NativeSelectOption, NativeSelectProps, NativeSelectSize } from './select.js';
|
|
48
|
-
export { N as NavActionReveal, a as NavGroup, b as NavItem, c as NavLink, d as NavMatch, e as NavRowAction, f as NavSeparator
|
|
69
|
+
export { N as NavActionReveal, a as NavGroup, b as NavItem, c as NavLink, d as NavMatch, e as NavRowAction, f as NavSeparator } from './nav-CKKqjBs6.js';
|
|
49
70
|
export { P as PopoverAlign, a as PopoverFooter, b as PopoverSide, c as PopoverSize } from './shared-BYXJPnsN.js';
|
|
71
|
+
export { T as TooltipTone } from './tooltip-surface-C2I9o2QM.js';
|
|
50
72
|
export { W as WeekStart } from './date-vMJBKAFK.js';
|
|
51
73
|
import 'react';
|
|
52
74
|
import '@base-ui/react/use-render';
|
|
@@ -55,8 +77,10 @@ import '@base-ui/react/select';
|
|
|
55
77
|
import './multi-value-CJb_tnvi.js';
|
|
56
78
|
import '@base-ui/react/combobox';
|
|
57
79
|
import '@base-ui/react/switch';
|
|
80
|
+
import './control-size-CaxQhkKh.js';
|
|
58
81
|
import '@base-ui/react/tooltip';
|
|
59
82
|
import 'date-fns';
|
|
83
|
+
import '@base-ui/react/separator';
|
|
60
84
|
|
|
61
85
|
/**
|
|
62
86
|
* Merge class strings: `clsx` resolves conditionals, `tailwind-merge` de-dupes
|