@godxjp/ui 7.0.0 → 8.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/index.d.ts +2 -2
- package/dist/{app.prop-IobwLwaM.d.ts → app.prop-DnIXFzLi.d.ts} +9 -9
- package/dist/{checkbox-CK2mYEpD.d.ts → checkbox-ChRsR7Nk.d.ts} +2 -2
- package/dist/{chunk-3UGU5TYP.js → chunk-25RYBC5T.js} +2 -2
- package/dist/{chunk-CQBADMFG.js → chunk-26CPAKUP.js} +3 -2
- package/dist/{chunk-TT2L7JM6.js → chunk-3TS3G4U3.js} +3 -3
- package/dist/{chunk-ZS6DTAM2.js → chunk-4MMIMZMK.js} +1 -1
- package/dist/{chunk-6TSU4IHV.js → chunk-4R7RQDXI.js} +23 -21
- package/dist/{chunk-OXKY5QMK.js → chunk-6QXQQAOQ.js} +6 -6
- package/dist/{chunk-JJCGMCTL.js → chunk-A22MCA3X.js} +6 -6
- package/dist/{chunk-VXXKR5U4.js → chunk-A7PKMT7Y.js} +4 -4
- package/dist/{chunk-HKQITNB3.js → chunk-AINW5WYN.js} +5 -4
- package/dist/{chunk-OGFWIXRO.js → chunk-C5H655GK.js} +218 -53
- package/dist/{chunk-ZLK5SPT6.js → chunk-EOTOCNT7.js} +1 -1
- package/dist/{chunk-ARDVPIF4.js → chunk-G2WYOCDL.js} +5 -5
- package/dist/{chunk-V6UWJKZF.js → chunk-HTEL5DQI.js} +1 -1
- package/dist/{chunk-ICM6XBST.js → chunk-IBK5D2Q6.js} +2 -1
- package/dist/{chunk-IK7I3ABN.js → chunk-IOGU3ZWF.js} +2 -2
- package/dist/chunk-KKMQLQ7F.js +137 -0
- package/dist/{chunk-HJEBRCXL.js → chunk-M4PZNAMV.js} +1 -0
- package/dist/{chunk-2QG3OVAD.js → chunk-N43OKOFT.js} +7 -5
- package/dist/{chunk-ZR2TIBPG.js → chunk-NG23LVTM.js} +4 -4
- package/dist/{chunk-E76QIYSY.js → chunk-O24Z3ULJ.js} +4 -4
- package/dist/{chunk-L6J44O74.js → chunk-OJZ6C2HM.js} +2 -2
- package/dist/{chunk-2HLWHQJA.js → chunk-P4HFJQID.js} +5 -4
- package/dist/{chunk-EXBWDW5E.js → chunk-RGIYKJPW.js} +7 -7
- package/dist/{chunk-ZKIAZDVU.js → chunk-RGPF3HU6.js} +4 -4
- package/dist/{chunk-FBHN6OO4.js → chunk-SKIRU7GC.js} +2 -2
- package/dist/{chunk-NTUHJ37K.js → chunk-SMWKD2HG.js} +9 -9
- package/dist/chunk-TILFZBTE.js +50 -0
- package/dist/{chunk-6UFKWOEW.js → chunk-TMDGV4CN.js} +15 -11
- package/dist/{chunk-7AMHT5Z5.js → chunk-UIYEAUWA.js} +30 -13
- package/dist/chunk-WFUIE252.js +61 -0
- package/dist/{chunk-25ZZ2W3M.js → chunk-WN52SCGE.js} +5 -5
- package/dist/{chunk-EQRQM6RF.js → chunk-WTVLZVBA.js} +28 -8
- package/dist/{chunk-Y3XBNUTD.js → chunk-XDUZ7JJL.js} +2 -2
- package/dist/{chunk-RVY4F7LK.js → chunk-XZM2GNAY.js} +7 -7
- package/dist/components/admin/index.d.ts +19 -19
- package/dist/components/admin/index.js +30 -30
- package/dist/components/data-display/badge.d.ts +7 -4
- package/dist/components/data-display/badge.js +2 -2
- package/dist/components/data-display/card.d.ts +2 -2
- package/dist/components/data-display/index.d.ts +18 -7
- package/dist/components/data-display/index.js +65 -12
- package/dist/components/data-display/table.js +2 -2
- package/dist/components/data-entry/autocomplete.d.ts +5 -5
- package/dist/components/data-entry/autocomplete.js +6 -6
- package/dist/components/data-entry/calendar.d.ts +5 -5
- package/dist/components/data-entry/calendar.js +3 -3
- package/dist/components/data-entry/cascader.d.ts +6 -6
- package/dist/components/data-entry/cascader.js +7 -7
- package/dist/components/data-entry/checkbox.d.ts +6 -6
- package/dist/components/data-entry/checkbox.js +2 -2
- package/dist/components/data-entry/color-picker.d.ts +6 -6
- package/dist/components/data-entry/color-picker.js +2 -2
- package/dist/components/data-entry/command.d.ts +11 -11
- package/dist/components/data-entry/command.js +2 -2
- package/dist/components/data-entry/date-picker.d.ts +6 -6
- package/dist/components/data-entry/date-picker.js +5 -5
- package/dist/components/data-entry/date-range-picker.d.ts +6 -6
- package/dist/components/data-entry/date-range-picker.js +5 -5
- package/dist/components/data-entry/index.d.ts +50 -22
- package/dist/components/data-entry/index.js +25 -83
- package/dist/components/data-entry/radio.d.ts +5 -5
- package/dist/components/data-entry/radio.js +2 -2
- package/dist/components/data-entry/select.d.ts +5 -5
- package/dist/components/data-entry/select.js +6 -6
- package/dist/components/data-entry/slider.d.ts +5 -5
- package/dist/components/data-entry/switch.d.ts +5 -5
- package/dist/components/data-entry/textarea.js +2 -2
- package/dist/components/data-entry/time-picker.d.ts +6 -6
- package/dist/components/data-entry/time-picker.js +3 -3
- package/dist/components/data-entry/transfer.d.ts +7 -7
- package/dist/components/data-entry/transfer.js +4 -4
- package/dist/components/data-entry/tree-select.d.ts +6 -6
- package/dist/components/data-entry/tree-select.js +7 -7
- package/dist/components/data-entry/upload.d.ts +7 -7
- package/dist/components/data-entry/upload.js +5 -5
- package/dist/components/feedback/alert.d.ts +7 -5
- package/dist/components/feedback/alert.js +3 -3
- package/dist/components/feedback/dialog.d.ts +9 -6
- package/dist/components/feedback/dialog.js +2 -2
- package/dist/components/feedback/index.d.ts +24 -8
- package/dist/components/feedback/index.js +7 -6
- package/dist/components/general/button.d.ts +4 -4
- package/dist/components/general/button.js +1 -1
- package/dist/components/general/index.d.ts +3 -3
- package/dist/components/general/index.js +1 -1
- package/dist/components/layout/index.d.ts +10 -9
- package/dist/components/layout/index.js +3 -3
- package/dist/components/navigation/index.d.ts +13 -13
- package/dist/components/navigation/index.js +9 -9
- package/dist/components/navigation/pagination.d.ts +5 -5
- package/dist/components/navigation/pagination.js +7 -7
- package/dist/components/navigation/steps.d.ts +6 -6
- package/dist/components/navigation/steps.js +2 -2
- package/dist/components/query/index.d.ts +12 -7
- package/dist/components/query/index.js +4 -4
- package/dist/components/ui/index.d.ts +12 -12
- package/dist/components/ui/index.js +30 -30
- package/dist/{data-display.prop-CXP9Jfdn.d.ts → data-display.prop-Cf2p9QC4.d.ts} +6 -5
- package/dist/{data-entry.prop-CpSx5dX6.d.ts → data-entry.prop-CDkOajPj.d.ts} +38 -28
- package/dist/{data-table-C5lcmAwE.d.ts → data-table-B_q7j992.d.ts} +4 -4
- package/dist/{data.prop-BmLaGLb7.d.ts → data.prop-DMYMNl6L.d.ts} +2 -2
- package/dist/{feedback.prop-BnBpUzNK.d.ts → feedback.prop-BR5JOpPl.d.ts} +8 -5
- package/dist/filter-bar-DvVXm_d1.d.ts +14 -0
- package/dist/form/index.d.ts +3 -3
- package/dist/{form.prop-BHgpuFFm.d.ts → form.prop-Bc6r6JJW.d.ts} +1 -1
- package/dist/{general.prop-D7brMPNL.d.ts → general.prop-DoHDCRmL.d.ts} +2 -2
- package/dist/index.d.ts +22 -22
- package/dist/index.js +43 -30
- package/dist/inline-DqfYlGKj.d.ts +18 -0
- package/dist/{interaction.prop-Cdn7wOtq.d.ts → interaction.prop-DSFizzP6.d.ts} +8 -6
- package/dist/{layout.prop-MwHm4-Zl.d.ts → layout.prop-Baq9muDN.d.ts} +27 -13
- package/dist/layout.prop-CXvl2rVR.d.ts +16 -0
- package/dist/{navigation.prop-DAH4ysXj.d.ts → navigation.prop-8DgElO0c.d.ts} +12 -8
- package/dist/{navigation.prop-Hu7s7MJa.d.ts → navigation.prop-BKlxd-j7.d.ts} +2 -5
- package/dist/props/components/index.d.ts +14 -14
- package/dist/props/index.d.ts +14 -14
- package/dist/props/index.js +1 -1
- package/dist/props/registry.d.ts +251 -56
- package/dist/props/registry.js +1 -1
- package/dist/props/vocabulary/index.d.ts +5 -5
- package/dist/{query.prop-hIPrk2zI.d.ts → query.prop-DuODxsiU.d.ts} +12 -8
- package/dist/{search-input-rR2XDrjv.d.ts → search-input-cezAxpgb.d.ts} +7 -2
- package/dist/{shared.prop-BNRJc9K0.d.ts → shared.prop-BsNSXeqD.d.ts} +9 -3
- package/dist/{skeleton-CqFO4dRc.d.ts → skeleton-uWAjSacg.d.ts} +4 -2
- package/dist/styles/alert-layout.css +38 -18
- package/dist/styles/badge-layout.css +2 -2
- package/dist/styles/card-layout.css +5 -5
- package/dist/styles/control.css +31 -0
- package/dist/styles/data-display-layout.css +25 -0
- package/dist/styles/density.css +10 -10
- package/dist/styles/dialog-layout.css +4 -4
- package/dist/styles/feedback-layout.css +17 -0
- package/dist/styles/index.css +6 -9
- package/dist/styles/layout.css +95 -14
- package/dist/styles/table-layout.css +3 -3
- package/dist/theme/example.service.css +0 -5
- package/dist/tokens/base.css +7 -7
- package/dist/tokens/components/badge.css +7 -0
- package/dist/tokens/{primitives → components}/card.css +2 -3
- package/dist/tokens/{primitives → components}/control.css +10 -0
- package/dist/tokens/components/feedback.css +17 -0
- package/dist/tokens/{primitives → components}/table.css +2 -2
- package/dist/tokens/foundation.css +7 -22
- package/package.json +10 -4
- package/scripts/ui-audit.mjs +22 -0
- package/dist/chunk-S66TJXJU.js +0 -33
- package/dist/filter-bar-zSKz7YCR.d.ts +0 -10
- package/dist/inline-CV3A46np.d.ts +0 -10
- package/dist/layout.prop-4TCNvyQZ.d.ts +0 -20
- package/dist/tokens/primitives/badge.css +0 -13
- package/dist/tokens/primitives/feedback.css +0 -17
- /package/dist/{chunk-LDSLS6HE.js → chunk-HKD6ERY7.js} +0 -0
- /package/dist/tokens/{primitives → components}/navigation.css +0 -0
- /package/dist/tokens/{primitives → semantic}/layout.css +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { b as CascaderProp } from '../../data-entry.prop-
|
|
2
|
+
import { b as CascaderProp } from '../../data-entry.prop-CDkOajPj.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import '@radix-ui/react-checkbox';
|
|
5
5
|
import '@radix-ui/react-radio-group';
|
|
6
6
|
import '@radix-ui/react-slider';
|
|
7
7
|
import '@radix-ui/react-switch';
|
|
8
8
|
import 'react-day-picker';
|
|
9
|
-
import '../../shared.prop-
|
|
9
|
+
import '../../shared.prop-BsNSXeqD.js';
|
|
10
10
|
import '../../content.prop-DrV_zDy-.js';
|
|
11
|
-
import '../../data.prop-
|
|
12
|
-
import '../../interaction.prop-
|
|
13
|
-
import '../../layout.prop-
|
|
11
|
+
import '../../data.prop-DMYMNl6L.js';
|
|
12
|
+
import '../../interaction.prop-DSFizzP6.js';
|
|
13
|
+
import '../../layout.prop-CXvl2rVR.js';
|
|
14
14
|
|
|
15
15
|
/** Normalized tree node — Ant Design `treeData` / Cascader `options`. */
|
|
16
16
|
type TreeOption = {
|
|
@@ -28,6 +28,6 @@ type TreeFieldNames = {
|
|
|
28
28
|
children?: string;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
declare function Cascader({ options: optionsProp, value, defaultValue,
|
|
31
|
+
declare function Cascader({ options: optionsProp, value, defaultValue, onValueChange, multiple, changeOnSelect, showSearch, placeholder, disabled, className, id, expandTrigger, fieldNames, allowClear, }: CascaderProp): react_jsx_runtime.JSX.Element;
|
|
32
32
|
|
|
33
33
|
export { Cascader, CascaderProp, CascaderProp as CascaderProps, type TreeFieldNames, type TreeOption };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { Cascader } from '../../chunk-
|
|
1
|
+
export { Cascader } from '../../chunk-XZM2GNAY.js';
|
|
2
2
|
import '../../chunk-SMLKNECP.js';
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-V6UWJKZF.js';
|
|
6
|
-
import '../../chunk-DY5C44UP.js';
|
|
3
|
+
import '../../chunk-O24Z3ULJ.js';
|
|
4
|
+
import '../../chunk-26CPAKUP.js';
|
|
7
5
|
import '../../chunk-3KPEZ5CF.js';
|
|
8
|
-
import '../../chunk-
|
|
9
|
-
import '../../chunk-
|
|
6
|
+
import '../../chunk-HTEL5DQI.js';
|
|
7
|
+
import '../../chunk-DY5C44UP.js';
|
|
8
|
+
import '../../chunk-M4PZNAMV.js';
|
|
9
|
+
import '../../chunk-IBK5D2Q6.js';
|
|
10
10
|
import '../../chunk-7PWBC4BY.js';
|
|
11
11
|
import '../../chunk-RLGHEV4A.js';
|
|
12
12
|
import '../../chunk-FXFJF4YA.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import '@radix-ui/react-checkbox';
|
|
3
|
-
export { C as Checkbox } from '../../checkbox-
|
|
3
|
+
export { C as Checkbox } from '../../checkbox-ChRsR7Nk.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
|
-
import '../../data-entry.prop-
|
|
5
|
+
import '../../data-entry.prop-CDkOajPj.js';
|
|
6
6
|
import '@radix-ui/react-radio-group';
|
|
7
7
|
import '@radix-ui/react-slider';
|
|
8
8
|
import '@radix-ui/react-switch';
|
|
9
9
|
import 'react-day-picker';
|
|
10
|
-
import '../../shared.prop-
|
|
10
|
+
import '../../shared.prop-BsNSXeqD.js';
|
|
11
11
|
import '../../content.prop-DrV_zDy-.js';
|
|
12
|
-
import '../../data.prop-
|
|
13
|
-
import '../../interaction.prop-
|
|
14
|
-
import '../../layout.prop-
|
|
12
|
+
import '../../data.prop-DMYMNl6L.js';
|
|
13
|
+
import '../../interaction.prop-DSFizzP6.js';
|
|
14
|
+
import '../../layout.prop-CXvl2rVR.js';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { g as ColorPickerProp } from '../../data-entry.prop-CDkOajPj.js';
|
|
3
3
|
import '@radix-ui/react-checkbox';
|
|
4
4
|
import '@radix-ui/react-radio-group';
|
|
5
5
|
import '@radix-ui/react-slider';
|
|
6
6
|
import '@radix-ui/react-switch';
|
|
7
7
|
import 'react-day-picker';
|
|
8
8
|
import 'react';
|
|
9
|
-
import '../../shared.prop-
|
|
9
|
+
import '../../shared.prop-BsNSXeqD.js';
|
|
10
10
|
import '../../content.prop-DrV_zDy-.js';
|
|
11
|
-
import '../../data.prop-
|
|
12
|
-
import '../../interaction.prop-
|
|
13
|
-
import '../../layout.prop-
|
|
11
|
+
import '../../data.prop-DMYMNl6L.js';
|
|
12
|
+
import '../../interaction.prop-DSFizzP6.js';
|
|
13
|
+
import '../../layout.prop-CXvl2rVR.js';
|
|
14
14
|
|
|
15
|
-
declare function ColorPicker({ value,
|
|
15
|
+
declare function ColorPicker({ value, onValueChange, disabled, className, id, showHexInput, }: ColorPickerProp): react_jsx_runtime.JSX.Element;
|
|
16
16
|
|
|
17
17
|
export { ColorPicker, ColorPickerProp, ColorPickerProp as ColorPickerProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { ColorPicker } from '../../chunk-
|
|
2
|
-
import '../../chunk-ICM6XBST.js';
|
|
1
|
+
export { ColorPicker } from '../../chunk-3TS3G4U3.js';
|
|
3
2
|
import '../../chunk-VOHTRR5X.js';
|
|
3
|
+
import '../../chunk-IBK5D2Q6.js';
|
|
4
4
|
import '../../chunk-RLGHEV4A.js';
|
|
5
5
|
import '../../chunk-FXFJF4YA.js';
|
|
6
6
|
import '../../chunk-U7N2A7A3.js';
|
|
@@ -2,11 +2,11 @@ import * as React from 'react';
|
|
|
2
2
|
|
|
3
3
|
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
4
4
|
children?: React.ReactNode;
|
|
5
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
5
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
6
6
|
ref?: React.Ref<HTMLDivElement>;
|
|
7
7
|
} & {
|
|
8
8
|
asChild?: boolean;
|
|
9
|
-
},
|
|
9
|
+
}, keyof React.HTMLAttributes<HTMLDivElement> | "key" | "asChild"> & {
|
|
10
10
|
label?: string;
|
|
11
11
|
shouldFilter?: boolean;
|
|
12
12
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -21,44 +21,44 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
21
21
|
ref?: React.Ref<HTMLInputElement>;
|
|
22
22
|
} & {
|
|
23
23
|
asChild?: boolean;
|
|
24
|
-
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "
|
|
24
|
+
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
|
|
25
25
|
value?: string;
|
|
26
26
|
onValueChange?: (search: string) => void;
|
|
27
27
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
28
28
|
declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
29
29
|
children?: React.ReactNode;
|
|
30
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
30
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
31
31
|
ref?: React.Ref<HTMLDivElement>;
|
|
32
32
|
} & {
|
|
33
33
|
asChild?: boolean;
|
|
34
|
-
},
|
|
34
|
+
}, keyof React.HTMLAttributes<HTMLDivElement> | "key" | "asChild"> & {
|
|
35
35
|
label?: string;
|
|
36
36
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
37
37
|
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
38
38
|
children?: React.ReactNode;
|
|
39
|
-
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
39
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
40
40
|
ref?: React.Ref<HTMLDivElement>;
|
|
41
41
|
} & {
|
|
42
42
|
asChild?: boolean;
|
|
43
|
-
},
|
|
43
|
+
}, keyof React.HTMLAttributes<HTMLDivElement> | "key" | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
44
44
|
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
45
45
|
children?: React.ReactNode;
|
|
46
|
-
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
46
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
47
47
|
ref?: React.Ref<HTMLDivElement>;
|
|
48
48
|
} & {
|
|
49
49
|
asChild?: boolean;
|
|
50
|
-
},
|
|
50
|
+
}, keyof React.HTMLAttributes<HTMLDivElement> | "key" | "asChild">, "heading" | "value"> & {
|
|
51
51
|
heading?: React.ReactNode;
|
|
52
52
|
value?: string;
|
|
53
53
|
forceMount?: boolean;
|
|
54
54
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
55
55
|
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
56
56
|
children?: React.ReactNode;
|
|
57
|
-
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
57
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement> | "key"> & {
|
|
58
58
|
ref?: React.Ref<HTMLDivElement>;
|
|
59
59
|
} & {
|
|
60
60
|
asChild?: boolean;
|
|
61
|
-
},
|
|
61
|
+
}, keyof React.HTMLAttributes<HTMLDivElement> | "key" | "asChild">, "onSelect" | "disabled" | "value"> & {
|
|
62
62
|
disabled?: boolean;
|
|
63
63
|
onSelect?: (value: string) => void;
|
|
64
64
|
value?: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from '../../chunk-HTEL5DQI.js';
|
|
2
|
+
import '../../chunk-IBK5D2Q6.js';
|
|
3
3
|
import '../../chunk-U7N2A7A3.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { D as DatePickerProp } from '../../data-entry.prop-
|
|
2
|
+
import { D as DatePickerProp } from '../../data-entry.prop-CDkOajPj.js';
|
|
3
3
|
import '@radix-ui/react-checkbox';
|
|
4
4
|
import '@radix-ui/react-radio-group';
|
|
5
5
|
import '@radix-ui/react-slider';
|
|
6
6
|
import '@radix-ui/react-switch';
|
|
7
7
|
import 'react-day-picker';
|
|
8
8
|
import 'react';
|
|
9
|
-
import '../../shared.prop-
|
|
9
|
+
import '../../shared.prop-BsNSXeqD.js';
|
|
10
10
|
import '../../content.prop-DrV_zDy-.js';
|
|
11
|
-
import '../../data.prop-
|
|
12
|
-
import '../../interaction.prop-
|
|
13
|
-
import '../../layout.prop-
|
|
11
|
+
import '../../data.prop-DMYMNl6L.js';
|
|
12
|
+
import '../../interaction.prop-DSFizzP6.js';
|
|
13
|
+
import '../../layout.prop-CXvl2rVR.js';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* DatePicker — WAI-ARIA date combobox. A real, typeable `<input>` holds the value as an
|
|
@@ -18,6 +18,6 @@ import '../../layout.prop-4TCNvyQZ.js';
|
|
|
18
18
|
* `name`), screen-reader friendly, and e2e-testable by simply filling the input. The calendar
|
|
19
19
|
* popover is the visual affordance; typing and the calendar stay in sync.
|
|
20
20
|
*/
|
|
21
|
-
declare function DatePicker({ value,
|
|
21
|
+
declare function DatePicker({ value, onValueChange, placeholder, disabled, className, id, name, locale: localeProp, fromDate, toDate, }: DatePickerProp): react_jsx_runtime.JSX.Element;
|
|
22
22
|
|
|
23
23
|
export { DatePicker, DatePickerProp, DatePickerProp as DatePickerProps };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { DatePicker } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-DY5C44UP.js';
|
|
4
|
-
import '../../chunk-ICM6XBST.js';
|
|
1
|
+
export { DatePicker } from '../../chunk-RGIYKJPW.js';
|
|
2
|
+
import '../../chunk-IOGU3ZWF.js';
|
|
5
3
|
import '../../chunk-VOHTRR5X.js';
|
|
6
|
-
import '../../chunk-
|
|
4
|
+
import '../../chunk-DY5C44UP.js';
|
|
5
|
+
import '../../chunk-M4PZNAMV.js';
|
|
6
|
+
import '../../chunk-IBK5D2Q6.js';
|
|
7
7
|
import '../../chunk-RLGHEV4A.js';
|
|
8
8
|
import '../../chunk-FXFJF4YA.js';
|
|
9
9
|
import '../../chunk-U7N2A7A3.js';
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { k as DateRangePickerProp } from '../../data-entry.prop-CDkOajPj.js';
|
|
3
3
|
import '@radix-ui/react-checkbox';
|
|
4
4
|
import '@radix-ui/react-radio-group';
|
|
5
5
|
import '@radix-ui/react-slider';
|
|
6
6
|
import '@radix-ui/react-switch';
|
|
7
7
|
import 'react-day-picker';
|
|
8
8
|
import 'react';
|
|
9
|
-
import '../../shared.prop-
|
|
9
|
+
import '../../shared.prop-BsNSXeqD.js';
|
|
10
10
|
import '../../content.prop-DrV_zDy-.js';
|
|
11
|
-
import '../../data.prop-
|
|
12
|
-
import '../../interaction.prop-
|
|
13
|
-
import '../../layout.prop-
|
|
11
|
+
import '../../data.prop-DMYMNl6L.js';
|
|
12
|
+
import '../../interaction.prop-DSFizzP6.js';
|
|
13
|
+
import '../../layout.prop-CXvl2rVR.js';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* DateRangePicker — WAI-ARIA date-range combobox. Two real, typeable ISO `yyyy-MM-dd` inputs
|
|
17
17
|
* hold the start/end values (form-submittable via `${name}_from` / `${name}_to`, screen-reader
|
|
18
18
|
* friendly, e2e-testable by filling either input). The range calendar is the visual affordance.
|
|
19
19
|
*/
|
|
20
|
-
declare function DateRangePicker({ value,
|
|
20
|
+
declare function DateRangePicker({ value, onValueChange, placeholder, disabled, className, id, name, locale: localeProp, fromDate, toDate, }: DateRangePickerProp): react_jsx_runtime.JSX.Element;
|
|
21
21
|
|
|
22
22
|
export { DateRangePicker, DateRangePickerProp, DateRangePickerProp as DateRangePickerProps };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { DateRangePicker } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-DY5C44UP.js';
|
|
4
|
-
import '../../chunk-ICM6XBST.js';
|
|
1
|
+
export { DateRangePicker } from '../../chunk-WN52SCGE.js';
|
|
2
|
+
import '../../chunk-IOGU3ZWF.js';
|
|
5
3
|
import '../../chunk-VOHTRR5X.js';
|
|
6
|
-
import '../../chunk-
|
|
4
|
+
import '../../chunk-DY5C44UP.js';
|
|
5
|
+
import '../../chunk-M4PZNAMV.js';
|
|
6
|
+
import '../../chunk-IBK5D2Q6.js';
|
|
7
7
|
import '../../chunk-RLGHEV4A.js';
|
|
8
8
|
import '../../chunk-FXFJF4YA.js';
|
|
9
9
|
import '../../chunk-U7N2A7A3.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import { Input } from './input.js';
|
|
2
|
+
export { InputProps } from './input.js';
|
|
2
3
|
export { Label } from './label.js';
|
|
3
4
|
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from './select.js';
|
|
4
|
-
export { C as Checkbox, a as CheckboxGroup } from '../../checkbox-
|
|
5
|
+
export { C as Checkbox, a as CheckboxGroup } from '../../checkbox-ChRsR7Nk.js';
|
|
5
6
|
export { Radio, RadioGroup, RadioGroupRoot, RadioItem } from './radio.js';
|
|
6
7
|
export { Textarea, TextareaProps } from './textarea.js';
|
|
7
|
-
export { F as FormField, S as SearchInput } from '../../search-input-
|
|
8
|
+
export { C as ChoiceField, F as Field, a as FormField, S as SearchInput } from '../../search-input-cezAxpgb.js';
|
|
8
9
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
export { a as AutocompleteProps, C as CalendarProps, b as CascaderProps, f as ColorPickerProps, h as CountryOptionProp, D as DatePickerProps, j as DateRangePickerProps, l as SearchSelectLoadParamsProp, m as SearchSelectLoadResultProp, n as SearchSelectOption, r as SliderProps, s as SwitchProps, t as TimePickerProps, u as TransferItemProp, v as TransferProps, y as TreeSelectProps, U as UploadCommitAction, z as UploadFileItem, E as UploadProps, G as UploadVariant, J as collectUploadCommitActions, K as createUploadItem } from '../../data-entry.prop-CpSx5dX6.js';
|
|
10
|
+
import { h as CountryOptionLabelProp, j as CountrySelectProp, q as SearchSelectProp } from '../../data-entry.prop-CDkOajPj.js';
|
|
11
|
+
export { a as AutocompleteProps, C as CalendarProps, b as CascaderProps, e as ChoiceFieldProps, g as ColorPickerProps, i as CountryOptionProp, D as DatePickerProps, k as DateRangePickerProps, F as FieldProps, n as SearchSelectLoadParamsProp, o as SearchSelectLoadResultProp, p as SearchSelectOption, t as SliderProps, u as SwitchProps, v as TimePickerProps, w as TransferItemProp, x as TransferProps, B as TreeSelectProps, U as UploadCommitAction, E as UploadFileItem, H as UploadProps, J as UploadVariant, L as collectUploadCommitActions, M as createUploadItem } from '../../data-entry.prop-CDkOajPj.js';
|
|
12
12
|
export { Switch } from './switch.js';
|
|
13
13
|
export { T as Toggle, a as ToggleGroup, b as ToggleGroupItem, c as ToggleProps } from '../../toggle-group-BulJgKh3.js';
|
|
14
14
|
export { Slider } from './slider.js';
|
|
@@ -23,6 +23,8 @@ export { Cascader, TreeFieldNames, TreeOption } from './cascader.js';
|
|
|
23
23
|
export { SHOW_ALL, SHOW_CHILD, SHOW_PARENT, TreeSelect } from './tree-select.js';
|
|
24
24
|
export { Transfer } from './transfer.js';
|
|
25
25
|
export { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from './command.js';
|
|
26
|
+
import * as React from 'react';
|
|
27
|
+
import * as input_otp from 'input-otp';
|
|
26
28
|
import 'class-variance-authority/types';
|
|
27
29
|
import '@radix-ui/react-label';
|
|
28
30
|
import 'class-variance-authority';
|
|
@@ -32,24 +34,14 @@ import '@radix-ui/react-radio-group';
|
|
|
32
34
|
import '@radix-ui/react-slider';
|
|
33
35
|
import '@radix-ui/react-switch';
|
|
34
36
|
import 'react-day-picker';
|
|
35
|
-
import '../../shared.prop-
|
|
37
|
+
import '../../shared.prop-BsNSXeqD.js';
|
|
36
38
|
import '../../content.prop-DrV_zDy-.js';
|
|
37
|
-
import '../../data.prop-
|
|
38
|
-
import '../../interaction.prop-
|
|
39
|
-
import '../../layout.prop-
|
|
39
|
+
import '../../data.prop-DMYMNl6L.js';
|
|
40
|
+
import '../../interaction.prop-DSFizzP6.js';
|
|
41
|
+
import '../../layout.prop-CXvl2rVR.js';
|
|
40
42
|
import '@radix-ui/react-toggle-group';
|
|
41
43
|
import '@radix-ui/react-toggle';
|
|
42
44
|
|
|
43
|
-
interface ChoiceFieldProps {
|
|
44
|
-
id: string;
|
|
45
|
-
label: React.ReactNode;
|
|
46
|
-
description?: React.ReactNode;
|
|
47
|
-
className?: string;
|
|
48
|
-
children: React.ReactNode;
|
|
49
|
-
}
|
|
50
|
-
/** Label + optional description beside a checkbox/radio/switch control. */
|
|
51
|
-
declare function ChoiceField({ id, label, description, className, children }: ChoiceFieldProps): react_jsx_runtime.JSX.Element;
|
|
52
|
-
|
|
53
45
|
/** Flag + name (+ optional code) — accepts a select-option or a country summary. */
|
|
54
46
|
declare function CountryOptionLabel({ country, showCode, className, }: CountryOptionLabelProp): react_jsx_runtime.JSX.Element;
|
|
55
47
|
/** Country picker on top of Select; submits the country code via a hidden form value. */
|
|
@@ -63,6 +55,42 @@ declare function CountrySelect({ id, name, options, defaultValue, required, allo
|
|
|
63
55
|
* Custom per-option rendering via `renderOption` (Ant-Design style). Form-submittable via
|
|
64
56
|
* `name`; e2e-testable by the trigger's `data-testid` + each option's `${data-testid}-option-${value}`.
|
|
65
57
|
*/
|
|
66
|
-
declare function SearchSelect({ value,
|
|
58
|
+
declare function SearchSelect({ value, onValueChange, options: staticOptions, loadOptions, renderOption, selectedLabel, placeholder, searchPlaceholder, emptyMessage, loadingMessage, clearLabel, clearable, disabled, name, id, className, "data-testid": dataTestId, }: SearchSelectProp): react_jsx_runtime.JSX.Element;
|
|
59
|
+
|
|
60
|
+
type PasswordInputProps = Omit<React.ComponentPropsWithoutRef<typeof Input>, "type">;
|
|
61
|
+
declare const PasswordInput: React.ForwardRefExoticComponent<PasswordInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
62
|
+
|
|
63
|
+
declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
64
|
+
value?: string;
|
|
65
|
+
onChange?: (newValue: string) => unknown;
|
|
66
|
+
maxLength: number;
|
|
67
|
+
textAlign?: "left" | "center" | "right";
|
|
68
|
+
onComplete?: (...args: any[]) => unknown;
|
|
69
|
+
pushPasswordManagerStrategy?: "increase-width" | "none";
|
|
70
|
+
pasteTransformer?: (pasted: string) => string;
|
|
71
|
+
containerClassName?: string;
|
|
72
|
+
noScriptCSSFallback?: string | null;
|
|
73
|
+
} & {
|
|
74
|
+
render: (props: input_otp.RenderProps) => React.ReactNode;
|
|
75
|
+
children?: never;
|
|
76
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
77
|
+
value?: string;
|
|
78
|
+
onChange?: (newValue: string) => unknown;
|
|
79
|
+
maxLength: number;
|
|
80
|
+
textAlign?: "left" | "center" | "right";
|
|
81
|
+
onComplete?: (...args: any[]) => unknown;
|
|
82
|
+
pushPasswordManagerStrategy?: "increase-width" | "none";
|
|
83
|
+
pasteTransformer?: (pasted: string) => string;
|
|
84
|
+
containerClassName?: string;
|
|
85
|
+
noScriptCSSFallback?: string | null;
|
|
86
|
+
} & {
|
|
87
|
+
render?: never;
|
|
88
|
+
children: React.ReactNode;
|
|
89
|
+
} & React.RefAttributes<HTMLInputElement>, "ref">) & React.RefAttributes<HTMLInputElement>>;
|
|
90
|
+
declare const InputOTPGroup: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
91
|
+
declare const InputOTPSlot: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
92
|
+
index: number;
|
|
93
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
94
|
+
declare const InputOTPSeparator: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
67
95
|
|
|
68
|
-
export {
|
|
96
|
+
export { CountryOptionLabel, CountryOptionLabelProp, CountrySelect, CountrySelectProp as CountrySelectProps, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, PasswordInput, type PasswordInputProps, SearchSelect, SearchSelectProp as SearchSelectProps };
|
|
@@ -1,93 +1,35 @@
|
|
|
1
|
+
export { CountryOptionLabel, CountrySelect, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, PasswordInput } from '../../chunk-KKMQLQ7F.js';
|
|
1
2
|
export { Toggle, ToggleGroup, ToggleGroupItem } from '../../chunk-FYM3MJSK.js';
|
|
2
|
-
export { Radio, RadioGroupOptions as RadioGroup, RadioGroupRoot, RadioItem } from '../../chunk-
|
|
3
|
+
export { Radio, RadioGroupOptions as RadioGroup, RadioGroupRoot, RadioItem } from '../../chunk-25RYBC5T.js';
|
|
3
4
|
export { Switch } from '../../chunk-R2W2FX5Q.js';
|
|
4
|
-
export { Textarea } from '../../chunk-
|
|
5
|
-
export { TimePicker } from '../../chunk-
|
|
6
|
-
export { ColorPicker } from '../../chunk-
|
|
7
|
-
export { DatePicker } from '../../chunk-
|
|
8
|
-
export { DateRangePicker } from '../../chunk-
|
|
9
|
-
export { Autocomplete } from '../../chunk-
|
|
10
|
-
export { Calendar } from '../../chunk-
|
|
11
|
-
export { SHOW_ALL, SHOW_CHILD, SHOW_PARENT, TreeSelect } from '../../chunk-
|
|
12
|
-
export { Upload, collectUploadCommitActions, createUploadItem, useUploadDraft } from '../../chunk-
|
|
13
|
-
import
|
|
14
|
-
|
|
5
|
+
export { Textarea } from '../../chunk-EOTOCNT7.js';
|
|
6
|
+
export { TimePicker } from '../../chunk-RGPF3HU6.js';
|
|
7
|
+
export { ColorPicker } from '../../chunk-3TS3G4U3.js';
|
|
8
|
+
export { DatePicker } from '../../chunk-RGIYKJPW.js';
|
|
9
|
+
export { DateRangePicker } from '../../chunk-WN52SCGE.js';
|
|
10
|
+
export { Autocomplete } from '../../chunk-XDUZ7JJL.js';
|
|
11
|
+
export { Calendar } from '../../chunk-IOGU3ZWF.js';
|
|
12
|
+
export { SHOW_ALL, SHOW_CHILD, SHOW_PARENT, TreeSelect } from '../../chunk-A22MCA3X.js';
|
|
13
|
+
export { Upload, collectUploadCommitActions, createUploadItem, useUploadDraft } from '../../chunk-SMWKD2HG.js';
|
|
14
|
+
import '../../chunk-P4HFJQID.js';
|
|
15
|
+
import '../../chunk-4R7QL3MW.js';
|
|
16
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from '../../chunk-G2WYOCDL.js';
|
|
15
17
|
export { Slider } from '../../chunk-CRERCLIZ.js';
|
|
16
|
-
export { SearchInput, Transfer } from '../../chunk-
|
|
17
|
-
export { Cascader } from '../../chunk-
|
|
18
|
+
export { SearchInput, Transfer } from '../../chunk-NG23LVTM.js';
|
|
19
|
+
export { Cascader } from '../../chunk-XZM2GNAY.js';
|
|
18
20
|
import '../../chunk-SMLKNECP.js';
|
|
19
|
-
export { Checkbox, CheckboxGroup } from '../../chunk-
|
|
20
|
-
export { ChoiceField } from '../../chunk-
|
|
21
|
-
|
|
22
|
-
export { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from '../../chunk-V6UWJKZF.js';
|
|
23
|
-
import '../../chunk-DY5C44UP.js';
|
|
21
|
+
export { Checkbox, CheckboxGroup } from '../../chunk-O24Z3ULJ.js';
|
|
22
|
+
export { ChoiceField, Field } from '../../chunk-26CPAKUP.js';
|
|
23
|
+
import '../../chunk-TILFZBTE.js';
|
|
24
24
|
import '../../chunk-3KPEZ5CF.js';
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
import { Inline } from '../../chunk-S66TJXJU.js';
|
|
28
|
-
import '../../chunk-2HLWHQJA.js';
|
|
25
|
+
export { SearchSelect } from '../../chunk-6QXQQAOQ.js';
|
|
26
|
+
export { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from '../../chunk-HTEL5DQI.js';
|
|
29
27
|
export { Input } from '../../chunk-VOHTRR5X.js';
|
|
30
|
-
import '../../chunk-
|
|
28
|
+
import '../../chunk-DY5C44UP.js';
|
|
29
|
+
import '../../chunk-M4PZNAMV.js';
|
|
30
|
+
import '../../chunk-IBK5D2Q6.js';
|
|
31
31
|
export { FormField } from '../../chunk-F7PG4OEV.js';
|
|
32
32
|
export { Label } from '../../chunk-7PWBC4BY.js';
|
|
33
33
|
import '../../chunk-RLGHEV4A.js';
|
|
34
34
|
import '../../chunk-FXFJF4YA.js';
|
|
35
|
-
import
|
|
36
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
37
|
-
|
|
38
|
-
function CountryOptionLabel({
|
|
39
|
-
country,
|
|
40
|
-
showCode = false,
|
|
41
|
-
className
|
|
42
|
-
}) {
|
|
43
|
-
const code = country.value ?? country.code ?? "";
|
|
44
|
-
const text = country.nativeName != null && country.nativeName !== "" ? `${country.name} (${country.nativeName})` : country.name;
|
|
45
|
-
return /* @__PURE__ */ jsxs(Inline, { gap: "xs", className: cn("items-center", className), children: [
|
|
46
|
-
country.flagSvgPath != null && country.flagSvgPath !== "" && /* @__PURE__ */ jsx(
|
|
47
|
-
"img",
|
|
48
|
-
{
|
|
49
|
-
src: country.flagSvgPath,
|
|
50
|
-
alt: "",
|
|
51
|
-
className: "h-3 w-5 shrink-0 rounded-sm object-cover",
|
|
52
|
-
"aria-hidden": "true"
|
|
53
|
-
}
|
|
54
|
-
),
|
|
55
|
-
/* @__PURE__ */ jsxs("span", { className: "truncate", children: [
|
|
56
|
-
text,
|
|
57
|
-
showCode && code !== "" && /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground", children: [
|
|
58
|
-
" \xB7 ",
|
|
59
|
-
code
|
|
60
|
-
] })
|
|
61
|
-
] })
|
|
62
|
-
] });
|
|
63
|
-
}
|
|
64
|
-
function CountrySelect({
|
|
65
|
-
id,
|
|
66
|
-
name,
|
|
67
|
-
options,
|
|
68
|
-
defaultValue,
|
|
69
|
-
required = false,
|
|
70
|
-
allowEmpty = false,
|
|
71
|
-
emptyLabel = "\u2014",
|
|
72
|
-
placeholder,
|
|
73
|
-
invalid = false
|
|
74
|
-
}) {
|
|
75
|
-
const emptyValue = "0";
|
|
76
|
-
const resolvedDefault = defaultValue && defaultValue !== "" ? defaultValue : emptyValue;
|
|
77
|
-
return /* @__PURE__ */ jsxs(
|
|
78
|
-
Select,
|
|
79
|
-
{
|
|
80
|
-
name,
|
|
81
|
-
defaultValue: allowEmpty ? resolvedDefault : defaultValue ?? options[0]?.value,
|
|
82
|
-
children: [
|
|
83
|
-
/* @__PURE__ */ jsx(SelectTrigger, { id, className: "w-full", "aria-invalid": invalid, "aria-required": required, children: /* @__PURE__ */ jsx(SelectValue, { placeholder }) }),
|
|
84
|
-
/* @__PURE__ */ jsx(SelectContent, { children: /* @__PURE__ */ jsxs(SelectGroup, { children: [
|
|
85
|
-
allowEmpty && /* @__PURE__ */ jsx(SelectItem, { value: emptyValue, children: emptyLabel }),
|
|
86
|
-
options.map((option) => /* @__PURE__ */ jsx(SelectItem, { value: option.value ?? "", children: /* @__PURE__ */ jsx(CountryOptionLabel, { country: option }) }, option.value))
|
|
87
|
-
] }) })
|
|
88
|
-
]
|
|
89
|
-
}
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export { CountryOptionLabel, CountrySelect };
|
|
35
|
+
import '../../chunk-U7N2A7A3.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
4
|
-
import { R as RadioGroupProp } from '../../data-entry.prop-
|
|
4
|
+
import { R as RadioGroupProp } from '../../data-entry.prop-CDkOajPj.js';
|
|
5
5
|
import '@radix-ui/react-checkbox';
|
|
6
6
|
import '@radix-ui/react-slider';
|
|
7
7
|
import '@radix-ui/react-switch';
|
|
8
8
|
import 'react-day-picker';
|
|
9
|
-
import '../../shared.prop-
|
|
9
|
+
import '../../shared.prop-BsNSXeqD.js';
|
|
10
10
|
import '../../content.prop-DrV_zDy-.js';
|
|
11
|
-
import '../../data.prop-
|
|
12
|
-
import '../../interaction.prop-
|
|
13
|
-
import '../../layout.prop-
|
|
11
|
+
import '../../data.prop-DMYMNl6L.js';
|
|
12
|
+
import '../../interaction.prop-DSFizzP6.js';
|
|
13
|
+
import '../../layout.prop-CXvl2rVR.js';
|
|
14
14
|
|
|
15
15
|
declare const RadioGroupRoot: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
16
16
|
declare const RadioItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Radio, RadioGroupOptions as RadioGroup, RadioGroupRoot, RadioItem } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { Radio, RadioGroupOptions as RadioGroup, RadioGroupRoot, RadioItem } from '../../chunk-25RYBC5T.js';
|
|
2
|
+
import '../../chunk-26CPAKUP.js';
|
|
3
3
|
import '../../chunk-7PWBC4BY.js';
|
|
4
4
|
import '../../chunk-U7N2A7A3.js';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
4
|
-
import {
|
|
4
|
+
import { r as SelectDataProp } from '../../data-entry.prop-CDkOajPj.js';
|
|
5
5
|
import '@radix-ui/react-checkbox';
|
|
6
6
|
import '@radix-ui/react-radio-group';
|
|
7
7
|
import '@radix-ui/react-slider';
|
|
8
8
|
import '@radix-ui/react-switch';
|
|
9
9
|
import 'react-day-picker';
|
|
10
|
-
import '../../shared.prop-
|
|
10
|
+
import '../../shared.prop-BsNSXeqD.js';
|
|
11
11
|
import '../../content.prop-DrV_zDy-.js';
|
|
12
|
-
import '../../data.prop-
|
|
13
|
-
import '../../interaction.prop-
|
|
14
|
-
import '../../layout.prop-
|
|
12
|
+
import '../../data.prop-DMYMNl6L.js';
|
|
13
|
+
import '../../interaction.prop-DSFizzP6.js';
|
|
14
|
+
import '../../layout.prop-CXvl2rVR.js';
|
|
15
15
|
|
|
16
16
|
type SelectProp = SelectDataProp | React.ComponentProps<typeof SelectPrimitive.Root>;
|
|
17
17
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-DY5C44UP.js';
|
|
5
|
-
import '../../chunk-ICM6XBST.js';
|
|
1
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from '../../chunk-G2WYOCDL.js';
|
|
2
|
+
import '../../chunk-6QXQQAOQ.js';
|
|
3
|
+
import '../../chunk-HTEL5DQI.js';
|
|
6
4
|
import '../../chunk-VOHTRR5X.js';
|
|
7
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-DY5C44UP.js';
|
|
6
|
+
import '../../chunk-M4PZNAMV.js';
|
|
7
|
+
import '../../chunk-IBK5D2Q6.js';
|
|
8
8
|
import '../../chunk-RLGHEV4A.js';
|
|
9
9
|
import '../../chunk-FXFJF4YA.js';
|
|
10
10
|
import '../../chunk-U7N2A7A3.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
3
|
-
export {
|
|
3
|
+
export { t as SliderProp, t as SliderProps } from '../../data-entry.prop-CDkOajPj.js';
|
|
4
4
|
import '@radix-ui/react-checkbox';
|
|
5
5
|
import '@radix-ui/react-radio-group';
|
|
6
6
|
import '@radix-ui/react-switch';
|
|
7
7
|
import 'react-day-picker';
|
|
8
|
-
import '../../shared.prop-
|
|
8
|
+
import '../../shared.prop-BsNSXeqD.js';
|
|
9
9
|
import '../../content.prop-DrV_zDy-.js';
|
|
10
|
-
import '../../data.prop-
|
|
11
|
-
import '../../interaction.prop-
|
|
12
|
-
import '../../layout.prop-
|
|
10
|
+
import '../../data.prop-DMYMNl6L.js';
|
|
11
|
+
import '../../interaction.prop-DSFizzP6.js';
|
|
12
|
+
import '../../layout.prop-CXvl2rVR.js';
|
|
13
13
|
|
|
14
14
|
/** Numeric range slider (Radix Slider). */
|
|
15
15
|
declare const Slider: React.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|