@bigbinary/neeto-atoms 1.0.103 → 1.0.105
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/{Avatar-ChF94Ken.js → Avatar-Dg5-X_dH.js} +8 -2
- package/dist/Avatar-Dg5-X_dH.js.map +1 -0
- package/dist/{Checkbox-DiAngQvO.js → Checkbox-BalUzegZ.js} +26 -7
- package/dist/Checkbox-BalUzegZ.js.map +1 -0
- package/dist/{Combobox-DriZMj4f.js → Combobox-NgubHftk.js} +2 -2
- package/dist/{Combobox-DriZMj4f.js.map → Combobox-NgubHftk.js.map} +1 -1
- package/dist/{DataTable-CwWARMEv.js → DataTable-mxDU-16D.js} +75 -55
- package/dist/DataTable-mxDU-16D.js.map +1 -0
- package/dist/{DatePicker-Uf_h3ohA.js → DatePicker-BoXx1Wve.js} +13 -4
- package/dist/DatePicker-BoXx1Wve.js.map +1 -0
- package/dist/{Dialog-D8C0-nEo.js → Dialog-Yw34WDqY.js} +2 -2
- package/dist/Dialog-Yw34WDqY.js.map +1 -0
- package/dist/{HelpIcon-CbnRiSjn.js → HelpIcon-xh488VXs.js} +11 -3
- package/dist/HelpIcon-xh488VXs.js.map +1 -0
- package/dist/{Input-CuIurquS.js → Input-W8foyOcS.js} +35 -7
- package/dist/Input-W8foyOcS.js.map +1 -0
- package/dist/{Label-DjOaTM4Q.js → Label-B-R4PNNq.js} +2 -2
- package/dist/{Label-DjOaTM4Q.js.map → Label-B-R4PNNq.js.map} +1 -1
- package/dist/{MultiEmailInput-BB334s4C.js → MultiEmailInput-Bzd2dPFC.js} +68 -25
- package/dist/MultiEmailInput-Bzd2dPFC.js.map +1 -0
- package/dist/{RadioGroup-CpgVdPzz.js → RadioGroup-CBXByAMW.js} +63 -34
- package/dist/RadioGroup-CBXByAMW.js.map +1 -0
- package/dist/{Select-YWCfd2p1.js → Select-ZWR0HFCa.js} +255 -94
- package/dist/Select-ZWR0HFCa.js.map +1 -0
- package/dist/{SelectFieldWrapper-D98IWsW5.js → SelectFieldWrapper-D370CD4o.js} +8 -1
- package/dist/SelectFieldWrapper-D370CD4o.js.map +1 -0
- package/dist/{Slider-Bokg8-oi.js → Slider-CxQdlyHZ.js} +32 -7
- package/dist/Slider-CxQdlyHZ.js.map +1 -0
- package/dist/{Stepper-DO7EBWYL.js → Stepper-GK8gDn-s.js} +2 -1
- package/dist/Stepper-GK8gDn-s.js.map +1 -0
- package/dist/{Switch-Am2l2UdV.js → Switch-C9fqpoNR.js} +16 -2
- package/dist/Switch-C9fqpoNR.js.map +1 -0
- package/dist/{Tabs-ModAabFc.js → Tabs-DaXiF_67.js} +3 -3
- package/dist/Tabs-DaXiF_67.js.map +1 -0
- package/dist/{Textarea-CMGZZ4rL.js → Textarea-CUe09-sr.js} +34 -7
- package/dist/Textarea-CUe09-sr.js.map +1 -0
- package/dist/{TimePicker-Ca7iF-a_.js → TimePicker-BixF9wdU.js} +21 -4
- package/dist/TimePicker-BixF9wdU.js.map +1 -0
- package/dist/{Toastr-Cka6pudu.js → Toastr-CXqmoXjn.js} +9 -2
- package/dist/Toastr-CXqmoXjn.js.map +1 -0
- package/dist/{TreeSelect-wYDOZ5yD.js → TreeSelect-rrTHwY42.js} +3 -2
- package/dist/TreeSelect-rrTHwY42.js.map +1 -0
- package/dist/cjs/{Avatar-DGuMcBnh.js → Avatar-D2k6WnzD.js} +8 -2
- package/dist/cjs/Avatar-D2k6WnzD.js.map +1 -0
- package/dist/cjs/{Checkbox-7lX2aMKA.js → Checkbox-83g1FDsc.js} +26 -7
- package/dist/cjs/Checkbox-83g1FDsc.js.map +1 -0
- package/dist/cjs/{Combobox-BE8LT4yq.js → Combobox-PAGcNUr6.js} +2 -2
- package/dist/cjs/{Combobox-BE8LT4yq.js.map → Combobox-PAGcNUr6.js.map} +1 -1
- package/dist/cjs/{DataTable-ChgPVrRB.js → DataTable-OtA15NKE.js} +75 -55
- package/dist/cjs/DataTable-OtA15NKE.js.map +1 -0
- package/dist/cjs/{DatePicker-Czp9QLy0.js → DatePicker-DtmJ-VkV.js} +13 -4
- package/dist/cjs/DatePicker-DtmJ-VkV.js.map +1 -0
- package/dist/cjs/{Dialog-DNv7j7ts.js → Dialog-ZUHGaoAE.js} +2 -2
- package/dist/cjs/Dialog-ZUHGaoAE.js.map +1 -0
- package/dist/cjs/{HelpIcon-QpZY6Zmc.js → HelpIcon-BF1ePUQf.js} +11 -3
- package/dist/cjs/HelpIcon-BF1ePUQf.js.map +1 -0
- package/dist/cjs/{Input-lWo0YoZ9.js → Input-DIq7T9D0.js} +35 -7
- package/dist/cjs/Input-DIq7T9D0.js.map +1 -0
- package/dist/cjs/{Label-D8RFE9hd.js → Label-CpsdGBV8.js} +2 -2
- package/dist/cjs/{Label-D8RFE9hd.js.map → Label-CpsdGBV8.js.map} +1 -1
- package/dist/cjs/{MultiEmailInput-BlIqzq-o.js → MultiEmailInput-FNRR9b74.js} +68 -25
- package/dist/cjs/MultiEmailInput-FNRR9b74.js.map +1 -0
- package/dist/cjs/{RadioGroup-DCEw94Dk.js → RadioGroup-B-u8rdbf.js} +63 -34
- package/dist/cjs/RadioGroup-B-u8rdbf.js.map +1 -0
- package/dist/cjs/{Select-Bs5Fp3wj.js → Select-VQCROyX1.js} +258 -97
- package/dist/cjs/Select-VQCROyX1.js.map +1 -0
- package/dist/cjs/{SelectFieldWrapper-BLVvwUcK.js → SelectFieldWrapper-CIh_atln.js} +8 -1
- package/dist/cjs/SelectFieldWrapper-CIh_atln.js.map +1 -0
- package/dist/cjs/{Slider-CRmd_VMs.js → Slider-DIUSlx_m.js} +32 -7
- package/dist/cjs/Slider-DIUSlx_m.js.map +1 -0
- package/dist/cjs/{Stepper-BtZG_XmC.js → Stepper-BZBdL6JW.js} +2 -1
- package/dist/cjs/Stepper-BZBdL6JW.js.map +1 -0
- package/dist/cjs/{Switch-DY7bdiEz.js → Switch-BbRK3HUZ.js} +16 -2
- package/dist/cjs/Switch-BbRK3HUZ.js.map +1 -0
- package/dist/cjs/{Tabs-CA0QAWp0.js → Tabs-BQl63Ewe.js} +3 -3
- package/dist/cjs/Tabs-BQl63Ewe.js.map +1 -0
- package/dist/cjs/{Textarea-Cw7Uea82.js → Textarea-bxleSw86.js} +34 -7
- package/dist/cjs/Textarea-bxleSw86.js.map +1 -0
- package/dist/cjs/{TimePicker-DW7OM3IE.js → TimePicker-lJ2985nh.js} +21 -4
- package/dist/cjs/TimePicker-lJ2985nh.js.map +1 -0
- package/dist/cjs/{Toastr-E0yLh_MW.js → Toastr-9DXjD-Mq.js} +9 -2
- package/dist/cjs/Toastr-9DXjD-Mq.js.map +1 -0
- package/dist/cjs/{TreeSelect-C9BSJt1d.js → TreeSelect-DDQx8FPS.js} +3 -2
- package/dist/cjs/TreeSelect-DDQx8FPS.js.map +1 -0
- package/dist/cjs/components/Avatar.js +1 -1
- package/dist/cjs/components/Checkbox.js +4 -2
- package/dist/cjs/components/Checkbox.js.map +1 -1
- package/dist/cjs/components/DataTable.js +2 -1
- package/dist/cjs/components/DataTable.js.map +1 -1
- package/dist/cjs/components/DatePicker.js +4 -2
- package/dist/cjs/components/DatePicker.js.map +1 -1
- package/dist/cjs/components/Dialog.js +1 -1
- package/dist/cjs/components/DropdownMenu.js +3 -1
- package/dist/cjs/components/DropdownMenu.js.map +1 -1
- package/dist/cjs/components/Input.js +4 -2
- package/dist/cjs/components/Input.js.map +1 -1
- package/dist/cjs/components/Label.js +2 -2
- package/dist/cjs/components/MultiEmailInput.js +4 -2
- package/dist/cjs/components/MultiEmailInput.js.map +1 -1
- package/dist/cjs/components/RadioGroup.js +4 -2
- package/dist/cjs/components/RadioGroup.js.map +1 -1
- package/dist/cjs/components/Select.js +7 -6
- package/dist/cjs/components/Select.js.map +1 -1
- package/dist/cjs/components/Slider.js +4 -2
- package/dist/cjs/components/Slider.js.map +1 -1
- package/dist/cjs/components/Stepper.js +1 -1
- package/dist/cjs/components/Switch.js +4 -2
- package/dist/cjs/components/Switch.js.map +1 -1
- package/dist/cjs/components/Tabs.js +2 -2
- package/dist/cjs/components/Textarea.js +4 -2
- package/dist/cjs/components/Textarea.js.map +1 -1
- package/dist/cjs/components/TimePicker.js +4 -2
- package/dist/cjs/components/TimePicker.js.map +1 -1
- package/dist/cjs/components/Toastr.js +1 -1
- package/dist/cjs/components/TreeSelect.js +3 -3
- package/dist/cjs/components/index.js +23 -22
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/fieldIds-DiVU6GVS.js +14 -0
- package/dist/cjs/fieldIds-DiVU6GVS.js.map +1 -0
- package/dist/cjs/formik/BlockNavigation.js +1 -1
- package/dist/cjs/formik/Checkbox.js +4 -2
- package/dist/cjs/formik/Checkbox.js.map +1 -1
- package/dist/cjs/formik/Input.js +4 -2
- package/dist/cjs/formik/Input.js.map +1 -1
- package/dist/cjs/formik/MultiEmailInput.js +4 -2
- package/dist/cjs/formik/MultiEmailInput.js.map +1 -1
- package/dist/cjs/formik/RadioGroup.js +4 -2
- package/dist/cjs/formik/RadioGroup.js.map +1 -1
- package/dist/cjs/formik/Select.js +7 -6
- package/dist/cjs/formik/Select.js.map +1 -1
- package/dist/cjs/formik/Slider.js +4 -2
- package/dist/cjs/formik/Slider.js.map +1 -1
- package/dist/cjs/formik/Switch.js +4 -2
- package/dist/cjs/formik/Switch.js.map +1 -1
- package/dist/cjs/formik/Textarea.js +4 -2
- package/dist/cjs/formik/Textarea.js.map +1 -1
- package/dist/cjs/formik/TreeSelect.js +3 -3
- package/dist/cjs/formik/index.js +16 -15
- package/dist/cjs/formik/index.js.map +1 -1
- package/dist/cjs/hyphenize-BTrVNVv3.js +13 -0
- package/dist/cjs/hyphenize-BTrVNVv3.js.map +1 -0
- package/dist/cjs/index.js +23 -22
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/primitives/AlertDialog.js +6 -38
- package/dist/cjs/primitives/AlertDialog.js.map +1 -1
- package/dist/cjs/primitives/Combobox.js +2 -2
- package/dist/cjs/primitives/Field.js +1 -1
- package/dist/cjs/primitives/index.js +2 -2
- package/dist/components/Avatar.js +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +2 -0
- package/dist/components/Checkbox.js +4 -2
- package/dist/components/Checkbox.js.map +1 -1
- package/dist/components/DataTable.js +2 -1
- package/dist/components/DataTable.js.map +1 -1
- package/dist/components/DatePicker/DatePickerField.d.ts +1 -0
- package/dist/components/DatePicker/DatePickerTrigger.d.ts +1 -0
- package/dist/components/DatePicker/types.d.ts +2 -0
- package/dist/components/DatePicker.js +4 -2
- package/dist/components/DatePicker.js.map +1 -1
- package/dist/components/Dialog.js +1 -1
- package/dist/components/DropdownMenu.js +3 -1
- package/dist/components/DropdownMenu.js.map +1 -1
- package/dist/components/Input/Input.d.ts +2 -0
- package/dist/components/Input.js +4 -2
- package/dist/components/Input.js.map +1 -1
- package/dist/components/Label.js +2 -2
- package/dist/components/MultiEmailInput/types.d.ts +2 -0
- package/dist/components/MultiEmailInput.js +4 -2
- package/dist/components/MultiEmailInput.js.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +4 -0
- package/dist/components/RadioGroup.js +4 -2
- package/dist/components/RadioGroup.js.map +1 -1
- package/dist/components/Select/MultiSelectCombobox.types.d.ts +6 -0
- package/dist/components/Select/SelectAnchor.d.ts +19 -1
- package/dist/components/Select/SelectCombobox.types.d.ts +12 -2
- package/dist/components/Select/SelectFieldWrapper.d.ts +7 -1
- package/dist/components/Select/constants.d.ts +1 -0
- package/dist/components/Select/hooks/useCreatableItems.d.ts +3 -1
- package/dist/components/Select/hooks/useMultiSelectState.d.ts +8 -2
- package/dist/components/Select/hooks/useSelectState.d.ts +8 -2
- package/dist/components/Select/types.d.ts +23 -0
- package/dist/components/Select/utils.d.ts +13 -0
- package/dist/components/Select.js +7 -6
- package/dist/components/Select.js.map +1 -1
- package/dist/components/Slider/Slider.d.ts +2 -0
- package/dist/components/Slider.js +4 -2
- package/dist/components/Slider.js.map +1 -1
- package/dist/components/Stepper.js +1 -1
- package/dist/components/Switch/Switch.d.ts +2 -0
- package/dist/components/Switch.js +4 -2
- package/dist/components/Switch.js.map +1 -1
- package/dist/components/Tabs.js +2 -2
- package/dist/components/Textarea/Textarea.d.ts +2 -0
- package/dist/components/Textarea.js +4 -2
- package/dist/components/Textarea.js.map +1 -1
- package/dist/components/TimePicker/types.d.ts +2 -0
- package/dist/components/TimePicker.js +4 -2
- package/dist/components/TimePicker.js.map +1 -1
- package/dist/components/Toastr.js +1 -1
- package/dist/components/TreeSelect.js +3 -3
- package/dist/components/index.js +23 -22
- package/dist/components/index.js.map +1 -1
- package/dist/fieldIds-VpluAAMl.js +11 -0
- package/dist/fieldIds-VpluAAMl.js.map +1 -0
- package/dist/formik/BlockNavigation.js +1 -1
- package/dist/formik/Checkbox.js +4 -2
- package/dist/formik/Checkbox.js.map +1 -1
- package/dist/formik/Input.js +4 -2
- package/dist/formik/Input.js.map +1 -1
- package/dist/formik/MultiEmailInput.js +4 -2
- package/dist/formik/MultiEmailInput.js.map +1 -1
- package/dist/formik/RadioGroup.js +4 -2
- package/dist/formik/RadioGroup.js.map +1 -1
- package/dist/formik/Select.js +7 -6
- package/dist/formik/Select.js.map +1 -1
- package/dist/formik/Slider.js +4 -2
- package/dist/formik/Slider.js.map +1 -1
- package/dist/formik/Switch.js +4 -2
- package/dist/formik/Switch.js.map +1 -1
- package/dist/formik/Textarea.js +4 -2
- package/dist/formik/Textarea.js.map +1 -1
- package/dist/formik/TreeSelect.js +3 -3
- package/dist/formik/index.js +16 -15
- package/dist/formik/index.js.map +1 -1
- package/dist/hyphenize-TRhMI0tl.js +11 -0
- package/dist/hyphenize-TRhMI0tl.js.map +1 -0
- package/dist/index.js +23 -22
- package/dist/index.js.map +1 -1
- package/dist/primitives/AlertDialog.js +6 -38
- package/dist/primitives/AlertDialog.js.map +1 -1
- package/dist/primitives/Combobox.js +2 -2
- package/dist/primitives/Field.js +1 -1
- package/dist/primitives/index.js +2 -2
- package/dist/utils/fieldIds.d.ts +1 -1
- package/dist/utils/hyphenize.d.ts +1 -1
- package/package.json +1 -1
- package/dist/Avatar-ChF94Ken.js.map +0 -1
- package/dist/Checkbox-DiAngQvO.js.map +0 -1
- package/dist/DataTable-CwWARMEv.js.map +0 -1
- package/dist/DatePicker-Uf_h3ohA.js.map +0 -1
- package/dist/Dialog-D8C0-nEo.js.map +0 -1
- package/dist/HelpIcon-CbnRiSjn.js.map +0 -1
- package/dist/Input-CuIurquS.js.map +0 -1
- package/dist/MultiEmailInput-BB334s4C.js.map +0 -1
- package/dist/RadioGroup-CpgVdPzz.js.map +0 -1
- package/dist/Select-YWCfd2p1.js.map +0 -1
- package/dist/SelectFieldWrapper-D98IWsW5.js.map +0 -1
- package/dist/Slider-Bokg8-oi.js.map +0 -1
- package/dist/Stepper-DO7EBWYL.js.map +0 -1
- package/dist/Switch-Am2l2UdV.js.map +0 -1
- package/dist/Tabs-ModAabFc.js.map +0 -1
- package/dist/Textarea-CMGZZ4rL.js.map +0 -1
- package/dist/TimePicker-Ca7iF-a_.js.map +0 -1
- package/dist/Toastr-Cka6pudu.js.map +0 -1
- package/dist/TreeSelect-wYDOZ5yD.js.map +0 -1
- package/dist/cjs/Avatar-DGuMcBnh.js.map +0 -1
- package/dist/cjs/Checkbox-7lX2aMKA.js.map +0 -1
- package/dist/cjs/DataTable-ChgPVrRB.js.map +0 -1
- package/dist/cjs/DatePicker-Czp9QLy0.js.map +0 -1
- package/dist/cjs/Dialog-DNv7j7ts.js.map +0 -1
- package/dist/cjs/HelpIcon-QpZY6Zmc.js.map +0 -1
- package/dist/cjs/Input-lWo0YoZ9.js.map +0 -1
- package/dist/cjs/MultiEmailInput-BlIqzq-o.js.map +0 -1
- package/dist/cjs/RadioGroup-DCEw94Dk.js.map +0 -1
- package/dist/cjs/Select-Bs5Fp3wj.js.map +0 -1
- package/dist/cjs/SelectFieldWrapper-BLVvwUcK.js.map +0 -1
- package/dist/cjs/Slider-CRmd_VMs.js.map +0 -1
- package/dist/cjs/Stepper-BtZG_XmC.js.map +0 -1
- package/dist/cjs/Switch-DY7bdiEz.js.map +0 -1
- package/dist/cjs/Tabs-CA0QAWp0.js.map +0 -1
- package/dist/cjs/Textarea-Cw7Uea82.js.map +0 -1
- package/dist/cjs/TimePicker-DW7OM3IE.js.map +0 -1
- package/dist/cjs/Toastr-E0yLh_MW.js.map +0 -1
- package/dist/cjs/TreeSelect-C9BSJt1d.js.map +0 -1
- package/dist/cjs/hyphenize-B8IGPzjp.js +0 -8
- package/dist/cjs/hyphenize-B8IGPzjp.js.map +0 -1
- package/dist/hyphenize-BU4K8zjb.js +0 -6
- package/dist/hyphenize-BU4K8zjb.js.map +0 -1
|
@@ -7,6 +7,8 @@ export interface SelectComboboxProps {
|
|
|
7
7
|
name?: string;
|
|
8
8
|
/** ID for the combobox input, forwarded from the field wrapper. */
|
|
9
9
|
id: string;
|
|
10
|
+
/** ID of the field label, used to label the trigger in content-search mode. */
|
|
11
|
+
labelId?: string;
|
|
10
12
|
/** Base-UI items array for filtering (derived from options). */
|
|
11
13
|
effectiveItems?: string[] | {
|
|
12
14
|
label: string;
|
|
@@ -20,6 +22,12 @@ export interface SelectComboboxProps {
|
|
|
20
22
|
renderTrigger: (val: string) => React.ReactNode;
|
|
21
23
|
/** Whether the search input is visible. */
|
|
22
24
|
isSearchable: boolean;
|
|
25
|
+
/** Whether search happens in the control or inside the dropdown. */
|
|
26
|
+
searchPosition: "trigger" | "content";
|
|
27
|
+
/** Placeholder for the in-dropdown search field. */
|
|
28
|
+
searchPlaceholder: string;
|
|
29
|
+
/** The current search query. Empty unless the user is typing. */
|
|
30
|
+
inputValue: string;
|
|
23
31
|
/** Whether options are loaded asynchronously. */
|
|
24
32
|
isAsync: boolean;
|
|
25
33
|
/** Whether new options can be created by typing. */
|
|
@@ -36,8 +44,10 @@ export interface SelectComboboxProps {
|
|
|
36
44
|
currentValue: string;
|
|
37
45
|
/** Called by the combobox when the selected value changes. */
|
|
38
46
|
handleValueChange: (next: string | null) => void;
|
|
39
|
-
/** Called when the search input value changes
|
|
40
|
-
handleInputValueChange: (value: string
|
|
47
|
+
/** Called by the combobox when the search input value changes. */
|
|
48
|
+
handleInputValueChange: (value: string, details?: {
|
|
49
|
+
reason?: string;
|
|
50
|
+
}) => void;
|
|
41
51
|
/** Called when the clear button is clicked. */
|
|
42
52
|
handleClear: () => void;
|
|
43
53
|
/** Callback when the dropdown opens or closes. */
|
|
@@ -7,12 +7,18 @@ interface SelectFieldWrapperProps {
|
|
|
7
7
|
helpText: React.ReactNode;
|
|
8
8
|
errorId: string;
|
|
9
9
|
helpTextId: string;
|
|
10
|
+
labelId?: string;
|
|
10
11
|
isDisabled: boolean;
|
|
11
12
|
required: boolean;
|
|
12
13
|
testIdPrefix?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Focus the element with `id` when the label is clicked. Needed when the
|
|
16
|
+
* control is the combobox trigger (a `div`), which `htmlFor` cannot target.
|
|
17
|
+
*/
|
|
18
|
+
focusTargetOnLabelClick?: boolean;
|
|
13
19
|
labelProps?: Omit<React.ComponentProps<typeof FieldLabel>, "htmlFor" | "children">;
|
|
14
20
|
className?: string;
|
|
15
21
|
children: React.ReactNode;
|
|
16
22
|
}
|
|
17
|
-
export declare function SelectFieldWrapper({ id, label, error, helpText, errorId, helpTextId, isDisabled, required, testIdPrefix, labelProps, className, children, }: SelectFieldWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare function SelectFieldWrapper({ id, label, error, helpText, errorId, helpTextId, labelId, isDisabled, required, testIdPrefix, focusTargetOnLabelClick, labelProps, className, children, }: SelectFieldWrapperProps): import("react/jsx-runtime").JSX.Element;
|
|
18
24
|
export {};
|
|
@@ -24,7 +24,9 @@ interface UseCreatableItemsReturn {
|
|
|
24
24
|
items: string[];
|
|
25
25
|
}[] | undefined;
|
|
26
26
|
creatableFilter: (itemValue: string, query: string, itemToString?: (v: string) => string) => boolean;
|
|
27
|
-
handleInputValueChange: (value: string
|
|
27
|
+
handleInputValueChange: (value: string, details?: {
|
|
28
|
+
reason?: string;
|
|
29
|
+
}) => void;
|
|
28
30
|
handleValueChange: (next: string[] | null) => void;
|
|
29
31
|
}
|
|
30
32
|
export declare function useCreatableItems({ isCreatable, isGrouped, flatOptions, selectedValues, baseUiItems, onCreateOption, onChange, onAsyncInputChange, children, }: UseCreatableItemsConfig): UseCreatableItemsReturn;
|
|
@@ -4,6 +4,7 @@ export declare function useMultiSelectState(props: MultiSelectProps): {
|
|
|
4
4
|
id: string;
|
|
5
5
|
errorId: string;
|
|
6
6
|
helpTextId: string;
|
|
7
|
+
labelId: string;
|
|
7
8
|
sizeConfig: {
|
|
8
9
|
chips: string;
|
|
9
10
|
input: string;
|
|
@@ -12,16 +13,21 @@ export declare function useMultiSelectState(props: MultiSelectProps): {
|
|
|
12
13
|
};
|
|
13
14
|
isControlled: boolean;
|
|
14
15
|
selectedValues: string[];
|
|
16
|
+
isSearchable: boolean;
|
|
17
|
+
searchPosition: "content" | "trigger";
|
|
18
|
+
searchPlaceholder: string;
|
|
15
19
|
effectiveItems: string[] | {
|
|
16
20
|
label: string;
|
|
17
21
|
items: string[];
|
|
18
22
|
}[] | undefined;
|
|
19
23
|
creatableFilter: (itemValue: string, query: string, itemToString?: (v: string) => string) => boolean;
|
|
20
|
-
handleInputValueChange: (value: string
|
|
24
|
+
handleInputValueChange: (value: string, details?: {
|
|
25
|
+
reason?: string;
|
|
26
|
+
}) => void;
|
|
21
27
|
handleValueChange: (next: string[] | null) => void;
|
|
22
28
|
showCreateOption: boolean;
|
|
23
29
|
ariaDescribedBy: string | undefined;
|
|
24
|
-
testIdPrefix: string
|
|
30
|
+
testIdPrefix: string;
|
|
25
31
|
labelForValue: (val: string) => string;
|
|
26
32
|
renderOption: (val: string) => React.ReactNode;
|
|
27
33
|
flatOptionsMap: Map<string, import("src/components/Select/types").OptionBase>;
|
|
@@ -7,6 +7,7 @@ export declare function useSelectState(props: SingleSelectProps): {
|
|
|
7
7
|
id: string;
|
|
8
8
|
errorId: string;
|
|
9
9
|
helpTextId: string;
|
|
10
|
+
labelId: string;
|
|
10
11
|
sizeConfig: {
|
|
11
12
|
chips: string;
|
|
12
13
|
input: string;
|
|
@@ -21,12 +22,14 @@ export declare function useSelectState(props: SingleSelectProps): {
|
|
|
21
22
|
}[] | undefined;
|
|
22
23
|
creatableFilter: (itemValue: string, query: string, itemToString?: (v: string) => string) => boolean;
|
|
23
24
|
handleValueChange: (next: string | null) => void;
|
|
24
|
-
handleInputValueChange: (value: string
|
|
25
|
+
handleInputValueChange: (value: string, details?: {
|
|
26
|
+
reason?: string;
|
|
27
|
+
}) => void;
|
|
25
28
|
handleClear: () => void;
|
|
26
29
|
showCreateOption: boolean;
|
|
27
30
|
showClearButton: boolean;
|
|
28
31
|
ariaDescribedBy: string | undefined;
|
|
29
|
-
testIdPrefix: string
|
|
32
|
+
testIdPrefix: string;
|
|
30
33
|
labelForValue: (val: string) => string;
|
|
31
34
|
renderOption: (val: string) => React.ReactNode;
|
|
32
35
|
renderTrigger: (val: string) => React.ReactNode;
|
|
@@ -37,6 +40,9 @@ export declare function useSelectState(props: SingleSelectProps): {
|
|
|
37
40
|
isDisabled: boolean;
|
|
38
41
|
required: boolean;
|
|
39
42
|
isSearchable: boolean;
|
|
43
|
+
searchPosition: "content" | "trigger";
|
|
44
|
+
searchPlaceholder: string;
|
|
45
|
+
inputValue: string;
|
|
40
46
|
autoHighlight: boolean;
|
|
41
47
|
onOpenChange: ((open: boolean) => void) | undefined;
|
|
42
48
|
isClearable: boolean;
|
|
@@ -48,6 +48,29 @@ interface SelectSharedProps {
|
|
|
48
48
|
* @default true
|
|
49
49
|
*/
|
|
50
50
|
isSearchable?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Where the search field lives.
|
|
53
|
+
* - `"trigger"`: type directly in the control, like react-select.
|
|
54
|
+
* - `"content"`: the control becomes a read-only trigger showing the
|
|
55
|
+
* selection, and the search field renders at the top of the dropdown.
|
|
56
|
+
* The trigger itself is then the form control, so a forwarded `ref`
|
|
57
|
+
* resolves to that element (a focusable `div`, not an `<input>`).
|
|
58
|
+
* @default "trigger"
|
|
59
|
+
*/
|
|
60
|
+
searchPosition?: "trigger" | "content";
|
|
61
|
+
/**
|
|
62
|
+
* Placeholder for the in-dropdown search field.
|
|
63
|
+
* Only used when `searchPosition` is `"content"`.
|
|
64
|
+
* @default "Search..."
|
|
65
|
+
*/
|
|
66
|
+
searchPlaceholder?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Hide the search field when there are fewer than this many options, so
|
|
69
|
+
* short dropdowns stay clean. Ignored when options are async, creatable or
|
|
70
|
+
* lazy-loaded, since the total count isn't known upfront.
|
|
71
|
+
* @default undefined (search is always shown)
|
|
72
|
+
*/
|
|
73
|
+
searchThreshold?: number;
|
|
51
74
|
/** Whether the first matching item is highlighted automatically. @default true */
|
|
52
75
|
autoHighlight?: boolean;
|
|
53
76
|
/** Callback fired when the dropdown opens or closes. */
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import type React from "react";
|
|
1
2
|
import type { SelectOption as MultiSelectOption, SelectOptionBase as MultiSelectOptionBase } from "./types";
|
|
3
|
+
/** Write an element into a callback or object ref, ignoring `null` refs. */
|
|
4
|
+
export declare function assignRef<T>(ref: React.Ref<T> | undefined, element: T | null): void;
|
|
2
5
|
type AccessorFn = (option: any) => string;
|
|
3
6
|
export declare function normalizeOption(option: any, getValue?: AccessorFn, getLabel?: AccessorFn): MultiSelectOptionBase;
|
|
4
7
|
export declare function normalizeOptions(options: MultiSelectOption[] | undefined, getValue?: AccessorFn, getLabel?: AccessorFn): MultiSelectOption[] | undefined;
|
|
@@ -11,6 +14,16 @@ export declare function toBaseUiItems(options: MultiSelectOption[]): string[] |
|
|
|
11
14
|
label: string;
|
|
12
15
|
items: string[];
|
|
13
16
|
}[];
|
|
17
|
+
interface ResolveIsSearchableConfig {
|
|
18
|
+
isSearchable: boolean;
|
|
19
|
+
searchThreshold?: number;
|
|
20
|
+
optionCount: number;
|
|
21
|
+
/** Async, creatable and lazy-loaded lists grow after mount, so `optionCount`
|
|
22
|
+
* isn't the real list size and the threshold must not apply. */
|
|
23
|
+
isCountKnown: boolean;
|
|
24
|
+
}
|
|
25
|
+
/** Apply `searchThreshold` on top of `isSearchable`. */
|
|
26
|
+
export declare function resolveIsSearchable({ isSearchable, searchThreshold, optionCount, isCountKnown, }: ResolveIsSearchableConfig): boolean;
|
|
14
27
|
/** Build the effective items array, appending a "Create" entry when needed. */
|
|
15
28
|
export declare function computeEffectiveItems(children: unknown, baseUiItems: string[] | {
|
|
16
29
|
label: string;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export { S as Select } from '../Select-
|
|
1
|
+
export { S as Select } from '../Select-ZWR0HFCa.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
|
-
import '../
|
|
5
|
-
import '../
|
|
4
|
+
import '../fieldIds-VpluAAMl.js';
|
|
5
|
+
import '../hyphenize-TRhMI0tl.js';
|
|
6
|
+
import '../SelectFieldWrapper-D370CD4o.js';
|
|
6
7
|
import '../primitives/Field.js';
|
|
7
8
|
import '../utils-BJnb9o5c.js';
|
|
8
|
-
import '../HelpIcon-
|
|
9
|
+
import '../HelpIcon-xh488VXs.js';
|
|
9
10
|
import '../primitives/Tooltip.js';
|
|
10
11
|
import '../tooltip-0DecQ06t.js';
|
|
11
12
|
import '../index-DNzunGHb.js';
|
|
@@ -41,13 +42,13 @@ import 'react-i18next';
|
|
|
41
42
|
import '../loader-circle-DycHUAWN.js';
|
|
42
43
|
import '../label-YEsizr2c.js';
|
|
43
44
|
import '../separator-ByRsc-y-.js';
|
|
44
|
-
import '../Combobox-
|
|
45
|
+
import '../Combobox-NgubHftk.js';
|
|
45
46
|
import '../input-group-DuITGkyB.js';
|
|
46
47
|
import '../input-CNbQc_tG.js';
|
|
47
48
|
import '../textarea-BZIsQ5UD.js';
|
|
48
49
|
import '../chevron-down-BNi0ntys.js';
|
|
49
|
-
import '../check-Cpkv29p1.js';
|
|
50
50
|
import '../x-_o2T3n6D.js';
|
|
51
|
+
import '../check-Cpkv29p1.js';
|
|
51
52
|
import '../useOpenInteractionType-CVfxIsuz.js';
|
|
52
53
|
import '../index-DZXbzIgC.js';
|
|
53
54
|
import '../index-CSMSzzKM.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Select.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -24,6 +24,8 @@ export interface SliderProps extends Omit<PrimitiveSliderProps, "value" | "defau
|
|
|
24
24
|
className?: string;
|
|
25
25
|
/** Props forwarded to the FieldLabel element. */
|
|
26
26
|
labelProps?: React.ComponentProps<typeof FieldLabel>;
|
|
27
|
+
/** Prefix for the field's testid family(slider-label, input-error, input-help). Falls back to the hyphenized label. */
|
|
28
|
+
dataTestId?: string;
|
|
27
29
|
}
|
|
28
30
|
declare const Slider: React.ForwardRefExoticComponent<Omit<SliderProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
29
31
|
export { Slider };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { S as Slider } from '../Slider-
|
|
1
|
+
export { S as Slider } from '../Slider-CxQdlyHZ.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../primitives/Slider.js';
|
|
@@ -16,7 +16,7 @@ import '../index-DhnfW8wQ.js';
|
|
|
16
16
|
import 'react-dom';
|
|
17
17
|
import '../index-Dd1i1d2M.js';
|
|
18
18
|
import '../primitives/Field.js';
|
|
19
|
-
import '../HelpIcon-
|
|
19
|
+
import '../HelpIcon-xh488VXs.js';
|
|
20
20
|
import '../primitives/Tooltip.js';
|
|
21
21
|
import '../tooltip-0DecQ06t.js';
|
|
22
22
|
import '../index-BNPynZWM.js';
|
|
@@ -44,4 +44,6 @@ import 'react-i18next';
|
|
|
44
44
|
import '../loader-circle-DycHUAWN.js';
|
|
45
45
|
import '../label-YEsizr2c.js';
|
|
46
46
|
import '../separator-ByRsc-y-.js';
|
|
47
|
+
import '../fieldIds-VpluAAMl.js';
|
|
48
|
+
import '../hyphenize-TRhMI0tl.js';
|
|
47
49
|
//# sourceMappingURL=Slider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Slider.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -16,6 +16,8 @@ export interface SwitchProps extends Omit<React.ComponentProps<typeof PrimitiveS
|
|
|
16
16
|
size?: "sm" | "default" | "lg";
|
|
17
17
|
/** Props forwarded to the Label element. */
|
|
18
18
|
labelProps?: React.ComponentProps<typeof FieldLabel>;
|
|
19
|
+
/** Prefix for the field's testid family(switch, switch-label, switch-error). Falls back to the hyphenized label. */
|
|
20
|
+
dataTestId?: string;
|
|
19
21
|
}
|
|
20
22
|
declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
21
23
|
export { Switch };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { S as Switch } from '../Switch-
|
|
1
|
+
export { S as Switch } from '../Switch-C9fqpoNR.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../primitives/Field.js';
|
|
5
5
|
import '../utils-BJnb9o5c.js';
|
|
6
|
-
import '../HelpIcon-
|
|
6
|
+
import '../HelpIcon-xh488VXs.js';
|
|
7
7
|
import '../primitives/Tooltip.js';
|
|
8
8
|
import '../tooltip-0DecQ06t.js';
|
|
9
9
|
import '../index-DNzunGHb.js';
|
|
@@ -41,4 +41,6 @@ import '../label-YEsizr2c.js';
|
|
|
41
41
|
import '../separator-ByRsc-y-.js';
|
|
42
42
|
import '../primitives/Switch.js';
|
|
43
43
|
import '../index-30QpKM0j.js';
|
|
44
|
+
import '../fieldIds-VpluAAMl.js';
|
|
45
|
+
import '../hyphenize-TRhMI0tl.js';
|
|
44
46
|
//# sourceMappingURL=Switch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Switch.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/components/Tabs.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { T as Tabs } from '../Tabs-
|
|
1
|
+
export { T as Tabs } from '../Tabs-DaXiF_67.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'react-router-dom';
|
|
5
5
|
import '../utils-BJnb9o5c.js';
|
|
6
6
|
import '../renderIcon-C6twJSqH.js';
|
|
7
|
-
import '../hyphenize-
|
|
7
|
+
import '../hyphenize-TRhMI0tl.js';
|
|
8
8
|
import '../primitives/Tabs.js';
|
|
9
9
|
import '../index-Bo3AAQJp.js';
|
|
10
10
|
import '../index-DNzunGHb.js';
|
|
@@ -33,6 +33,8 @@ export interface TextareaProps extends Omit<PrimitiveTextareaProps, "size" | "ch
|
|
|
33
33
|
labelProps?: React.ComponentProps<typeof FieldLabel>;
|
|
34
34
|
/** Additional class name for the outermost wrapper. */
|
|
35
35
|
className?: string;
|
|
36
|
+
/** Prefix for the field's testid family(label, input, error, help). Falls back to the hyphenized label. */
|
|
37
|
+
dataTestId?: string;
|
|
36
38
|
}
|
|
37
39
|
declare const Textarea: React.ForwardRefExoticComponent<Omit<TextareaProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
38
40
|
export { Textarea };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { T as Textarea } from '../Textarea-
|
|
1
|
+
export { T as Textarea } from '../Textarea-CUe09-sr.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../utils-BJnb9o5c.js';
|
|
5
5
|
import '../primitives/Field.js';
|
|
6
|
-
import '../HelpIcon-
|
|
6
|
+
import '../HelpIcon-xh488VXs.js';
|
|
7
7
|
import '../primitives/Tooltip.js';
|
|
8
8
|
import '../tooltip-0DecQ06t.js';
|
|
9
9
|
import '../index-DNzunGHb.js';
|
|
@@ -41,4 +41,6 @@ import '../label-YEsizr2c.js';
|
|
|
41
41
|
import '../separator-ByRsc-y-.js';
|
|
42
42
|
import '../primitives/Textarea.js';
|
|
43
43
|
import '../textarea-BZIsQ5UD.js';
|
|
44
|
+
import '../fieldIds-VpluAAMl.js';
|
|
45
|
+
import '../hyphenize-TRhMI0tl.js';
|
|
44
46
|
//# sourceMappingURL=Textarea.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Textarea.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { T as TimePicker } from '../TimePicker-
|
|
1
|
+
export { T as TimePicker } from '../TimePicker-BixF9wdU.js';
|
|
2
2
|
export { T as TimePickerPanel } from '../TimePickerPanel--KDX5QwS.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -22,7 +22,7 @@ import '../index-fV_U4ZJM.js';
|
|
|
22
22
|
import '../index-yFgkK_AM.js';
|
|
23
23
|
import '../index-Cor698lu.js';
|
|
24
24
|
import '../primitives/Field.js';
|
|
25
|
-
import '../HelpIcon-
|
|
25
|
+
import '../HelpIcon-xh488VXs.js';
|
|
26
26
|
import '../primitives/Tooltip.js';
|
|
27
27
|
import '../tooltip-0DecQ06t.js';
|
|
28
28
|
import '../index-CSggBaQF.js';
|
|
@@ -42,6 +42,8 @@ import 'react-i18next';
|
|
|
42
42
|
import '../loader-circle-DycHUAWN.js';
|
|
43
43
|
import '../label-YEsizr2c.js';
|
|
44
44
|
import '../separator-ByRsc-y-.js';
|
|
45
|
+
import '../fieldIds-VpluAAMl.js';
|
|
46
|
+
import '../hyphenize-TRhMI0tl.js';
|
|
45
47
|
import '../x-_o2T3n6D.js';
|
|
46
48
|
import '../primitives/ScrollArea.js';
|
|
47
49
|
import '../index-d0BBQf5t.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimePicker.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TimePicker.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { T as TreeSelect } from '../TreeSelect-
|
|
1
|
+
export { T as TreeSelect } from '../TreeSelect-rrTHwY42.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../utils-BJnb9o5c.js';
|
|
@@ -20,9 +20,9 @@ import '../index-BYZaLNq1.js';
|
|
|
20
20
|
import '../index-fV_U4ZJM.js';
|
|
21
21
|
import '../index-yFgkK_AM.js';
|
|
22
22
|
import '../index-Cor698lu.js';
|
|
23
|
-
import '../SelectFieldWrapper-
|
|
23
|
+
import '../SelectFieldWrapper-D370CD4o.js';
|
|
24
24
|
import '../primitives/Field.js';
|
|
25
|
-
import '../HelpIcon-
|
|
25
|
+
import '../HelpIcon-xh488VXs.js';
|
|
26
26
|
import '../primitives/Tooltip.js';
|
|
27
27
|
import '../tooltip-0DecQ06t.js';
|
|
28
28
|
import '../index-CSggBaQF.js';
|
package/dist/components/index.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
export { DropdownMenu } from './DropdownMenu.js';
|
|
2
2
|
export { A as Accordion } from '../Accordion-DVMgPBum.js';
|
|
3
3
|
export { A as Alert } from '../Alert-BN00VOZx.js';
|
|
4
|
-
export { A as Avatar } from '../Avatar-
|
|
4
|
+
export { A as Avatar } from '../Avatar-Dg5-X_dH.js';
|
|
5
5
|
export { B as BUTTON_SIZES, a as BUTTON_VARIANTS, b as Button } from '../Button-C4c_dj-f.js';
|
|
6
6
|
export { B as Badge } from '../Badge-Bl5cyQ5Q.js';
|
|
7
7
|
export { C as Callout } from '../Callout-DJGi3MQR.js';
|
|
8
|
-
export { C as Checkbox } from '../Checkbox-
|
|
8
|
+
export { C as Checkbox } from '../Checkbox-BalUzegZ.js';
|
|
9
9
|
export { C as ColorPicker } from '../ColorPicker-ClnRUq9y.js';
|
|
10
|
-
export { D as DataTable, u as useColumnOrdering, a as useColumnPinning, b as useColumnVisibility, c as useTablePagination, d as useTableSelection, e as useTableSort } from '../DataTable-
|
|
11
|
-
export { D as DatePicker } from '../DatePicker-
|
|
12
|
-
export { D as Dialog } from '../Dialog-
|
|
10
|
+
export { D as DataTable, u as useColumnOrdering, a as useColumnPinning, b as useColumnVisibility, c as useTablePagination, d as useTableSelection, e as useTableSort } from '../DataTable-mxDU-16D.js';
|
|
11
|
+
export { D as DatePicker } from '../DatePicker-BoXx1Wve.js';
|
|
12
|
+
export { D as Dialog } from '../Dialog-Yw34WDqY.js';
|
|
13
13
|
export { E as Empty } from '../Empty-DINS0Uu4.js';
|
|
14
|
-
export { I as Input } from '../Input-
|
|
14
|
+
export { I as Input } from '../Input-W8foyOcS.js';
|
|
15
15
|
export { K as Kbd } from '../Kbd-CKfR8HlC.js';
|
|
16
|
-
export { L as Label } from '../Label-
|
|
17
|
-
export { M as MultiEmailInput } from '../MultiEmailInput-
|
|
16
|
+
export { L as Label } from '../Label-B-R4PNNq.js';
|
|
17
|
+
export { M as MultiEmailInput } from '../MultiEmailInput-Bzd2dPFC.js';
|
|
18
18
|
export { P as Pagination } from '../Pagination-yjG8uCpV.js';
|
|
19
19
|
export { P as Popover } from '../Popover-BHGvcdV2.js';
|
|
20
20
|
export { P as Progress } from '../Progress-DbtLbWf8.js';
|
|
21
|
-
export { R as RadioGroup } from '../RadioGroup-
|
|
22
|
-
export { S as Select } from '../Select-
|
|
21
|
+
export { R as RadioGroup } from '../RadioGroup-CBXByAMW.js';
|
|
22
|
+
export { S as Select } from '../Select-ZWR0HFCa.js';
|
|
23
23
|
export { S as Sheet } from '../Sheet-D1MWtg1q.js';
|
|
24
|
-
export { S as Slider } from '../Slider-
|
|
24
|
+
export { S as Slider } from '../Slider-CxQdlyHZ.js';
|
|
25
25
|
export { S as Spinner } from '../Spinner-vfggfvEp.js';
|
|
26
|
-
export { S as Stepper } from '../Stepper-
|
|
27
|
-
export { S as Switch } from '../Switch-
|
|
28
|
-
export { T as Tabs } from '../Tabs-
|
|
29
|
-
export { T as Textarea } from '../Textarea-
|
|
30
|
-
export { T as TimePicker } from '../TimePicker-
|
|
26
|
+
export { S as Stepper } from '../Stepper-GK8gDn-s.js';
|
|
27
|
+
export { S as Switch } from '../Switch-C9fqpoNR.js';
|
|
28
|
+
export { T as Tabs } from '../Tabs-DaXiF_67.js';
|
|
29
|
+
export { T as Textarea } from '../Textarea-CUe09-sr.js';
|
|
30
|
+
export { T as TimePicker } from '../TimePicker-BixF9wdU.js';
|
|
31
31
|
export { T as TimePickerPanel } from '../TimePickerPanel--KDX5QwS.js';
|
|
32
|
-
export { T as Toastr } from '../Toastr-
|
|
32
|
+
export { T as Toastr } from '../Toastr-CXqmoXjn.js';
|
|
33
33
|
export { T as Tooltip } from '../Tooltip-DWDsgyx7.js';
|
|
34
34
|
export { T as TranslationProvider } from '../TranslationProvider-CtJI6HJ4.js';
|
|
35
35
|
export { T as Tree } from '../Tree-Cb1Zkayi.js';
|
|
36
|
-
export { T as TreeSelect } from '../TreeSelect-
|
|
36
|
+
export { T as TreeSelect } from '../TreeSelect-rrTHwY42.js';
|
|
37
37
|
export { T as Typography, t as typographyVariants } from '../Typography-CmILccNh.js';
|
|
38
38
|
export { f as flattenTreeData, g as getExpandedKeysFromSearch, a as getParentKey } from '../search-B5K8FsJs.js';
|
|
39
39
|
import 'react/jsx-runtime';
|
|
@@ -64,6 +64,7 @@ import '../index-BYZaLNq1.js';
|
|
|
64
64
|
import '../index-fV_U4ZJM.js';
|
|
65
65
|
import '../index-yFgkK_AM.js';
|
|
66
66
|
import '../index-DT56XkyA.js';
|
|
67
|
+
import '../hyphenize-TRhMI0tl.js';
|
|
67
68
|
import 'react-i18next';
|
|
68
69
|
import '../primitives/Button.js';
|
|
69
70
|
import '../button-CePY5zne.js';
|
|
@@ -97,8 +98,9 @@ import '../triangle-alert-C434HydH.js';
|
|
|
97
98
|
import '../info-BlwkmMZr.js';
|
|
98
99
|
import '../primitives/Checkbox.js';
|
|
99
100
|
import '../index-30QpKM0j.js';
|
|
101
|
+
import '../fieldIds-VpluAAMl.js';
|
|
100
102
|
import '../primitives/Field.js';
|
|
101
|
-
import '../HelpIcon-
|
|
103
|
+
import '../HelpIcon-xh488VXs.js';
|
|
102
104
|
import '../label-YEsizr2c.js';
|
|
103
105
|
import 'react-colorful';
|
|
104
106
|
import '../primitives/Popover.js';
|
|
@@ -121,9 +123,8 @@ import '../primitives/Label.js';
|
|
|
121
123
|
import '../primitives/HoverCard.js';
|
|
122
124
|
import '../primitives/Progress.js';
|
|
123
125
|
import '../primitives/RadioGroup.js';
|
|
124
|
-
import '../
|
|
125
|
-
import '../
|
|
126
|
-
import '../Combobox-DriZMj4f.js';
|
|
126
|
+
import '../SelectFieldWrapper-D370CD4o.js';
|
|
127
|
+
import '../Combobox-NgubHftk.js';
|
|
127
128
|
import '../primitives/Sheet.js';
|
|
128
129
|
import '../sheet-B9oDGvvX.js';
|
|
129
130
|
import '../primitives/Slider.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { h as hyphenize } from './hyphenize-TRhMI0tl.js';
|
|
2
|
+
|
|
3
|
+
function buildAriaDescribedBy(error, errorId, helpText, helpTextId) {
|
|
4
|
+
return [error ? errorId : null, helpText ? helpTextId : null].filter(Boolean).join(" ") || void 0;
|
|
5
|
+
}
|
|
6
|
+
function buildTestIdPrefix(dataTestId, label) {
|
|
7
|
+
return dataTestId ?? hyphenize(label);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { buildAriaDescribedBy as a, buildTestIdPrefix as b };
|
|
11
|
+
//# sourceMappingURL=fieldIds-VpluAAMl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldIds-VpluAAMl.js","sources":["../src/utils/fieldIds.ts"],"sourcesContent":["import { hyphenize } from \"./hyphenize\";\n\nexport function buildAriaDescribedBy(\n error: string,\n errorId: string,\n helpText: React.ReactNode,\n helpTextId: string\n): string | undefined {\n return (\n [error ? errorId : null, helpText ? helpTextId : null]\n .filter(Boolean)\n .join(\" \") || undefined\n );\n}\n\nexport function buildTestIdPrefix(dataTestId?: string, label?: string): string {\n return dataTestId ?? hyphenize(label);\n}\n"],"names":[],"mappings":";;AAEO,SAAS,oBAAA,CACd,KAAA,EACA,OAAA,EACA,QAAA,EACA,UAAA,EACoB;AACpB,EAAA,OACE,CAAC,KAAA,GAAQ,OAAA,GAAU,IAAA,EAAM,QAAA,GAAW,UAAA,GAAa,IAAI,CAAA,CAClD,MAAA,CAAO,OAAO,CAAA,CACd,IAAA,CAAK,GAAG,CAAA,IAAK,MAAA;AAEpB;AAEO,SAAS,iBAAA,CAAkB,YAAqB,KAAA,EAAwB;AAC7E,EAAA,OAAO,UAAA,IAAc,UAAU,KAAK,CAAA;AACtC;;;;"}
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useFormikContext } from 'formik';
|
|
3
3
|
import { useState, useRef, useCallback, useEffect } from 'react';
|
|
4
4
|
import { useHistory } from 'react-router-dom';
|
|
5
|
-
import { D as Dialog } from '../Dialog-
|
|
5
|
+
import { D as Dialog } from '../Dialog-Yw34WDqY.js';
|
|
6
6
|
import { b as Button } from '../Button-C4c_dj-f.js';
|
|
7
7
|
import '../utils-BJnb9o5c.js';
|
|
8
8
|
import '../primitives/Dialog.js';
|
package/dist/formik/Checkbox.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import { Field, getIn } from 'formik';
|
|
4
4
|
import { dissoc } from 'ramda';
|
|
5
|
-
import { C as Checkbox } from '../Checkbox-
|
|
5
|
+
import { C as Checkbox } from '../Checkbox-BalUzegZ.js';
|
|
6
6
|
import '../utils-BJnb9o5c.js';
|
|
7
7
|
import '../primitives/Checkbox.js';
|
|
8
8
|
import '../check-Cpkv29p1.js';
|
|
@@ -17,8 +17,10 @@ import '../index-BYZaLNq1.js';
|
|
|
17
17
|
import '../index-yFgkK_AM.js';
|
|
18
18
|
import '../index-DhnfW8wQ.js';
|
|
19
19
|
import 'react-dom';
|
|
20
|
+
import '../fieldIds-VpluAAMl.js';
|
|
21
|
+
import '../hyphenize-TRhMI0tl.js';
|
|
20
22
|
import '../primitives/Field.js';
|
|
21
|
-
import '../HelpIcon-
|
|
23
|
+
import '../HelpIcon-xh488VXs.js';
|
|
22
24
|
import '../primitives/Tooltip.js';
|
|
23
25
|
import '../tooltip-0DecQ06t.js';
|
|
24
26
|
import '../index-BNPynZWM.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.js","sources":["../../src/formik/Checkbox.tsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport { Field, getIn, FieldProps } from \"formik\";\nimport { dissoc } from \"ramda\";\n\nimport { Checkbox, CheckboxProps } from \"src/components/Checkbox\";\n\nexport interface FormikCheckboxProps extends Omit<CheckboxProps, \"name\"> {\n /** Formik field name. */\n name: string;\n /** Callback fired when the checked state changes. Also supports onChange for compatibility. */\n onChange?: () => void;\n}\n\nconst FormikCheckbox = forwardRef<\n React.ComponentRef<typeof Checkbox>,\n FormikCheckboxProps\n>(\n (\n {\n name,\n onCheckedChange: onCheckedChangeProp,\n onChange: onChangeProp,\n ...rest\n },\n ref\n ) => (\n <Field name={name}>\n {({ field, meta, form }: FieldProps) => {\n const { status = {}, setStatus } = form;\n const fieldStatus = getIn(status, name);\n\n return (\n <Checkbox\n ref={ref}\n checked={!!field.value}\n error={meta.touched ? meta.error || fieldStatus : \"\"}\n name={field.name}\n onBlur={field.onBlur}\n onCheckedChange={(checked: boolean) => {\n setStatus(dissoc(name, status));\n form.setFieldValue(name, checked);\n onCheckedChangeProp?.(checked);\n onChangeProp?.();\n }}\n {...rest}\n />\n );\n }}\n </Field>\n )\n);\n\nFormikCheckbox.displayName = \"FormikCheckbox\";\n\nexport { FormikCheckbox };\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Checkbox.js","sources":["../../src/formik/Checkbox.tsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport { Field, getIn, FieldProps } from \"formik\";\nimport { dissoc } from \"ramda\";\n\nimport { Checkbox, CheckboxProps } from \"src/components/Checkbox\";\n\nexport interface FormikCheckboxProps extends Omit<CheckboxProps, \"name\"> {\n /** Formik field name. */\n name: string;\n /** Callback fired when the checked state changes. Also supports onChange for compatibility. */\n onChange?: () => void;\n}\n\nconst FormikCheckbox = forwardRef<\n React.ComponentRef<typeof Checkbox>,\n FormikCheckboxProps\n>(\n (\n {\n name,\n onCheckedChange: onCheckedChangeProp,\n onChange: onChangeProp,\n ...rest\n },\n ref\n ) => (\n <Field name={name}>\n {({ field, meta, form }: FieldProps) => {\n const { status = {}, setStatus } = form;\n const fieldStatus = getIn(status, name);\n\n return (\n <Checkbox\n ref={ref}\n checked={!!field.value}\n error={meta.touched ? meta.error || fieldStatus : \"\"}\n name={field.name}\n onBlur={field.onBlur}\n onCheckedChange={(checked: boolean) => {\n setStatus(dissoc(name, status));\n form.setFieldValue(name, checked);\n onCheckedChangeProp?.(checked);\n onChangeProp?.();\n }}\n {...rest}\n />\n );\n }}\n </Field>\n )\n);\n\nFormikCheckbox.displayName = \"FormikCheckbox\";\n\nexport { FormikCheckbox };\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,MAAM,cAAA,GAAiB,UAAA;AAAA,EAIrB,CACE;AAAA,IACE,IAAA;AAAA,IACA,eAAA,EAAiB,mBAAA;AAAA,IACjB,QAAA,EAAU,YAAA;AAAA,IACV,GAAG;AAAA,GACL,EACA,GAAA,qBAEA,GAAA,CAAC,KAAA,EAAA,EAAM,IAAA,EACJ,WAAC,EAAE,KAAA,EAAO,IAAA,EAAM,IAAA,EAAK,KAAkB;AACtC,IAAA,MAAM,EAAE,MAAA,GAAS,EAAC,EAAG,WAAU,GAAI,IAAA;AACnC,IAAA,MAAM,WAAA,GAAc,KAAA,CAAM,MAAA,EAAQ,IAAI,CAAA;AAEtC,IAAA,uBACE,GAAA;AAAA,MAAC,QAAA;AAAA,MAAA;AAAA,QACC,GAAA;AAAA,QACA,OAAA,EAAS,CAAC,CAAC,KAAA,CAAM,KAAA;AAAA,QACjB,KAAA,EAAO,IAAA,CAAK,OAAA,GAAU,IAAA,CAAK,SAAS,WAAA,GAAc,EAAA;AAAA,QAClD,MAAM,KAAA,CAAM,IAAA;AAAA,QACZ,QAAQ,KAAA,CAAM,MAAA;AAAA,QACd,eAAA,EAAiB,CAAC,OAAA,KAAqB;AACrC,UAAA,SAAA,CAAU,MAAA,CAAO,IAAA,EAAM,MAAM,CAAC,CAAA;AAC9B,UAAA,IAAA,CAAK,aAAA,CAAc,MAAM,OAAO,CAAA;AAChC,UAAA,mBAAA,GAAsB,OAAO,CAAA;AAC7B,UAAA,YAAA,IAAe;AAAA,QACjB,CAAA;AAAA,QACC,GAAG;AAAA;AAAA,KACN;AAAA,EAEJ,CAAA,EACF;AAEJ;AAEA,cAAA,CAAe,WAAA,GAAc,gBAAA;;;;"}
|
package/dist/formik/Input.js
CHANGED
|
@@ -2,10 +2,10 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import { Field, getIn } from 'formik';
|
|
4
4
|
import { dissoc } from 'ramda';
|
|
5
|
-
import { I as Input } from '../Input-
|
|
5
|
+
import { I as Input } from '../Input-W8foyOcS.js';
|
|
6
6
|
import '../utils-BJnb9o5c.js';
|
|
7
7
|
import '../primitives/Field.js';
|
|
8
|
-
import '../HelpIcon-
|
|
8
|
+
import '../HelpIcon-xh488VXs.js';
|
|
9
9
|
import '../primitives/Tooltip.js';
|
|
10
10
|
import '../tooltip-0DecQ06t.js';
|
|
11
11
|
import '../index-DNzunGHb.js';
|
|
@@ -45,6 +45,8 @@ import '../primitives/InputGroup.js';
|
|
|
45
45
|
import '../input-group-DuITGkyB.js';
|
|
46
46
|
import '../input-CNbQc_tG.js';
|
|
47
47
|
import '../textarea-BZIsQ5UD.js';
|
|
48
|
+
import '../fieldIds-VpluAAMl.js';
|
|
49
|
+
import '../hyphenize-TRhMI0tl.js';
|
|
48
50
|
import '../withIconSize-BonoFXeH.js';
|
|
49
51
|
|
|
50
52
|
const FormikInput = forwardRef(
|
package/dist/formik/Input.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.js","sources":["../../src/formik/Input.tsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport { Field, getIn, FieldProps } from \"formik\";\nimport { dissoc } from \"ramda\";\n\nimport { Input, InputProps } from \"src/components/Input\";\n\nexport interface FormikInputProps extends Omit<InputProps, \"name\"> {\n /** Formik field name. */\n name: string;\n}\n\nconst FormikInput = forwardRef<HTMLInputElement, FormikInputProps>(\n ({ name, onChange: onChangeProp, ...rest }, ref) => (\n <Field name={name}>\n {({ field, meta, form }: FieldProps) => {\n const { status = {}, setStatus } = form;\n const fieldStatus = getIn(status, name);\n\n const fieldProps = {\n ...field,\n onChange: (e: React.ChangeEvent<HTMLInputElement>) => {\n setStatus(dissoc(name, status));\n field.onChange(e);\n onChangeProp?.(e);\n },\n };\n\n return (\n <Input\n ref={ref}\n {...fieldProps}\n error={meta.touched ? meta.error || fieldStatus : \"\"}\n {...rest}\n />\n );\n }}\n </Field>\n )\n);\n\nFormikInput.displayName = \"FormikInput\";\n\nexport { FormikInput };\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Input.js","sources":["../../src/formik/Input.tsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport { Field, getIn, FieldProps } from \"formik\";\nimport { dissoc } from \"ramda\";\n\nimport { Input, InputProps } from \"src/components/Input\";\n\nexport interface FormikInputProps extends Omit<InputProps, \"name\"> {\n /** Formik field name. */\n name: string;\n}\n\nconst FormikInput = forwardRef<HTMLInputElement, FormikInputProps>(\n ({ name, onChange: onChangeProp, ...rest }, ref) => (\n <Field name={name}>\n {({ field, meta, form }: FieldProps) => {\n const { status = {}, setStatus } = form;\n const fieldStatus = getIn(status, name);\n\n const fieldProps = {\n ...field,\n onChange: (e: React.ChangeEvent<HTMLInputElement>) => {\n setStatus(dissoc(name, status));\n field.onChange(e);\n onChangeProp?.(e);\n },\n };\n\n return (\n <Input\n ref={ref}\n {...fieldProps}\n error={meta.touched ? meta.error || fieldStatus : \"\"}\n {...rest}\n />\n );\n }}\n </Field>\n )\n);\n\nFormikInput.displayName = \"FormikInput\";\n\nexport { FormikInput };\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,MAAM,WAAA,GAAc,UAAA;AAAA,EAClB,CAAC,EAAE,IAAA,EAAM,QAAA,EAAU,YAAA,EAAc,GAAG,IAAA,EAAK,EAAG,GAAA,qBAC1C,GAAA,CAAC,SAAM,IAAA,EACJ,QAAA,EAAA,CAAC,EAAE,KAAA,EAAO,IAAA,EAAM,MAAK,KAAkB;AACtC,IAAA,MAAM,EAAE,MAAA,GAAS,EAAC,EAAG,WAAU,GAAI,IAAA;AACnC,IAAA,MAAM,WAAA,GAAc,KAAA,CAAM,MAAA,EAAQ,IAAI,CAAA;AAEtC,IAAA,MAAM,UAAA,GAAa;AAAA,MACjB,GAAG,KAAA;AAAA,MACH,QAAA,EAAU,CAAC,CAAA,KAA2C;AACpD,QAAA,SAAA,CAAU,MAAA,CAAO,IAAA,EAAM,MAAM,CAAC,CAAA;AAC9B,QAAA,KAAA,CAAM,SAAS,CAAC,CAAA;AAChB,QAAA,YAAA,GAAe,CAAC,CAAA;AAAA,MAClB;AAAA,KACF;AAEA,IAAA,uBACE,GAAA;AAAA,MAAC,KAAA;AAAA,MAAA;AAAA,QACC,GAAA;AAAA,QACC,GAAG,UAAA;AAAA,QACJ,KAAA,EAAO,IAAA,CAAK,OAAA,GAAU,IAAA,CAAK,SAAS,WAAA,GAAc,EAAA;AAAA,QACjD,GAAG;AAAA;AAAA,KACN;AAAA,EAEJ,CAAA,EACF;AAEJ;AAEA,WAAA,CAAY,WAAA,GAAc,aAAA;;;;"}
|