@bigbinary/neeto-atoms 1.0.133-beta1 → 1.0.133-beta2
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/Accordion-DVMgPBum.js +45 -0
- package/dist/Accordion-DVMgPBum.js.map +1 -0
- package/dist/Alert-DYROpfTf.js +128 -0
- package/dist/Alert-DYROpfTf.js.map +1 -0
- package/dist/Avatar-Dg5-X_dH.js +99 -0
- package/dist/Avatar-Dg5-X_dH.js.map +1 -0
- package/dist/Badge-ChmtKioK.js +134 -0
- package/dist/Badge-ChmtKioK.js.map +1 -0
- package/dist/Button-ZssOVkG0.js +217 -0
- package/dist/Button-ZssOVkG0.js.map +1 -0
- package/dist/Callout-DJGi3MQR.js +81 -0
- package/dist/Callout-DJGi3MQR.js.map +1 -0
- package/dist/Checkbox-BalUzegZ.js +97 -0
- package/dist/Checkbox-BalUzegZ.js.map +1 -0
- package/dist/ColorPicker-ClnRUq9y.js +437 -0
- package/dist/ColorPicker-ClnRUq9y.js.map +1 -0
- package/dist/Combobox-CUcCC9-A.js +5492 -0
- package/dist/Combobox-CUcCC9-A.js.map +1 -0
- package/dist/DataTable-DKYkrFfk.js +9362 -0
- package/dist/DataTable-DKYkrFfk.js.map +1 -0
- package/dist/DatePicker-B3kUEuKH.js +1326 -0
- package/dist/DatePicker-B3kUEuKH.js.map +1 -0
- package/dist/Dialog-Yw34WDqY.js +126 -0
- package/dist/Dialog-Yw34WDqY.js.map +1 -0
- package/dist/DialogTrigger-a3diAOif.js +992 -0
- package/dist/DialogTrigger-a3diAOif.js.map +1 -0
- package/dist/DirectionProvider-weqLz_BJ.js +8 -0
- package/dist/DirectionProvider-weqLz_BJ.js.map +1 -0
- package/dist/Empty-XqdCD2dj.js +86 -0
- package/dist/Empty-XqdCD2dj.js.map +1 -0
- package/dist/HelpIcon-CB6wsVSF.js +81 -0
- package/dist/HelpIcon-CB6wsVSF.js.map +1 -0
- package/dist/Input-Dm5ILPH3.js +278 -0
- package/dist/Input-Dm5ILPH3.js.map +1 -0
- package/dist/Kbd-CKfR8HlC.js +48 -0
- package/dist/Kbd-CKfR8HlC.js.map +1 -0
- package/dist/Label-BUf6CzV9.js +17 -0
- package/dist/Label-BUf6CzV9.js.map +1 -0
- package/dist/MultiEmailInput-CLBZnyXh.js +345 -0
- package/dist/MultiEmailInput-CLBZnyXh.js.map +1 -0
- package/dist/Pagination-yjG8uCpV.js +116 -0
- package/dist/Pagination-yjG8uCpV.js.map +1 -0
- package/dist/Popover-BHGvcdV2.js +132 -0
- package/dist/Popover-BHGvcdV2.js.map +1 -0
- package/dist/Progress-DbtLbWf8.js +26 -0
- package/dist/Progress-DbtLbWf8.js.map +1 -0
- package/dist/RadioGroup-CBXByAMW.js +136 -0
- package/dist/RadioGroup-CBXByAMW.js.map +1 -0
- package/dist/Select-CD5chrpw.js +1355 -0
- package/dist/Select-CD5chrpw.js.map +1 -0
- package/dist/SelectFieldWrapper-D370CD4o.js +88 -0
- package/dist/SelectFieldWrapper-D370CD4o.js.map +1 -0
- package/dist/Sheet-D1MWtg1q.js +138 -0
- package/dist/Sheet-D1MWtg1q.js.map +1 -0
- package/dist/Slider-CxQdlyHZ.js +115 -0
- package/dist/Slider-CxQdlyHZ.js.map +1 -0
- package/dist/Spinner-vfggfvEp.js +27 -0
- package/dist/Spinner-vfggfvEp.js.map +1 -0
- package/dist/Stepper-GK8gDn-s.js +111 -0
- package/dist/Stepper-GK8gDn-s.js.map +1 -0
- package/dist/Switch-C9fqpoNR.js +101 -0
- package/dist/Switch-C9fqpoNR.js.map +1 -0
- package/dist/Tabs-DaXiF_67.js +82 -0
- package/dist/Tabs-DaXiF_67.js.map +1 -0
- package/dist/Textarea-CUe09-sr.js +209 -0
- package/dist/Textarea-CUe09-sr.js.map +1 -0
- package/dist/TimePicker-BA7JhrYd.js +463 -0
- package/dist/TimePicker-BA7JhrYd.js.map +1 -0
- package/dist/TimePickerPanel-n-Dz1p5N.js +552 -0
- package/dist/TimePickerPanel-n-Dz1p5N.js.map +1 -0
- package/dist/Toastr-Dhl8V1V2.js +269 -0
- package/dist/Toastr-Dhl8V1V2.js.map +1 -0
- package/dist/Tooltip-DWDsgyx7.js +89 -0
- package/dist/Tooltip-DWDsgyx7.js.map +1 -0
- package/dist/TranslationProvider-Dd0ITHC0.js +113 -0
- package/dist/TranslationProvider-Dd0ITHC0.js.map +1 -0
- package/dist/Tree-D95PpI3W.js +8174 -0
- package/dist/Tree-D95PpI3W.js.map +1 -0
- package/dist/TreeSelect-LTSl-QJA.js +340 -0
- package/dist/TreeSelect-LTSl-QJA.js.map +1 -0
- package/dist/Typography-CmILccNh.js +98 -0
- package/dist/Typography-CmILccNh.js.map +1 -0
- package/dist/button-DTkEk06V.js +68 -0
- package/dist/button-DTkEk06V.js.map +1 -0
- package/dist/check-Cpkv29p1.js +15 -0
- package/dist/check-Cpkv29p1.js.map +1 -0
- package/dist/chevron-down-BNi0ntys.js +15 -0
- package/dist/chevron-down-BNi0ntys.js.map +1 -0
- package/dist/chevron-left-BDoT8E2-.js +15 -0
- package/dist/chevron-left-BDoT8E2-.js.map +1 -0
- package/dist/chevron-right-DQnrO-ek.js +15 -0
- package/dist/chevron-right-DQnrO-ek.js.map +1 -0
- package/dist/chevron-up-Bf2G3AAU.js +15 -0
- package/dist/chevron-up-Bf2G3AAU.js.map +1 -0
- package/dist/cjs/Accordion-D75SDnkY.js +51 -0
- package/dist/cjs/Accordion-D75SDnkY.js.map +1 -0
- package/dist/cjs/Alert-D_2cJF7J.js +130 -0
- package/dist/cjs/Alert-D_2cJF7J.js.map +1 -0
- package/dist/cjs/Avatar-D2k6WnzD.js +101 -0
- package/dist/cjs/Avatar-D2k6WnzD.js.map +1 -0
- package/dist/cjs/Badge-DAm1E10J.js +136 -0
- package/dist/cjs/Badge-DAm1E10J.js.map +1 -0
- package/dist/cjs/Button-BQ4rpzsl.js +221 -0
- package/dist/cjs/Button-BQ4rpzsl.js.map +1 -0
- package/dist/cjs/Callout-Bci3POCo.js +83 -0
- package/dist/cjs/Callout-Bci3POCo.js.map +1 -0
- package/dist/cjs/Checkbox-83g1FDsc.js +99 -0
- package/dist/cjs/Checkbox-83g1FDsc.js.map +1 -0
- package/dist/cjs/ColorPicker-rhCnblTv.js +439 -0
- package/dist/cjs/ColorPicker-rhCnblTv.js.map +1 -0
- package/dist/cjs/Combobox-ChtPjQlO.js +5531 -0
- package/dist/cjs/Combobox-ChtPjQlO.js.map +1 -0
- package/dist/cjs/DataTable-BXNU34g-.js +9389 -0
- package/dist/cjs/DataTable-BXNU34g-.js.map +1 -0
- package/dist/cjs/DatePicker-Da8-hSjF.js +1333 -0
- package/dist/cjs/DatePicker-Da8-hSjF.js.map +1 -0
- package/dist/cjs/Dialog-ZUHGaoAE.js +128 -0
- package/dist/cjs/Dialog-ZUHGaoAE.js.map +1 -0
- package/dist/cjs/DialogTrigger-B0Q6yIrx.js +1026 -0
- package/dist/cjs/DialogTrigger-B0Q6yIrx.js.map +1 -0
- package/dist/cjs/DirectionProvider-BTtE4FcN.js +10 -0
- package/dist/cjs/DirectionProvider-BTtE4FcN.js.map +1 -0
- package/dist/cjs/Empty-DGvhPdiG.js +88 -0
- package/dist/cjs/Empty-DGvhPdiG.js.map +1 -0
- package/dist/cjs/HelpIcon-fsWWgStQ.js +83 -0
- package/dist/cjs/HelpIcon-fsWWgStQ.js.map +1 -0
- package/dist/cjs/Input-DFvMBpiU.js +280 -0
- package/dist/cjs/Input-DFvMBpiU.js.map +1 -0
- package/dist/cjs/Kbd--A8Gl8TV.js +50 -0
- package/dist/cjs/Kbd--A8Gl8TV.js.map +1 -0
- package/dist/cjs/Label-Dfq_eZzp.js +19 -0
- package/dist/cjs/Label-Dfq_eZzp.js.map +1 -0
- package/dist/cjs/MultiEmailInput-N9amBO6Q.js +347 -0
- package/dist/cjs/MultiEmailInput-N9amBO6Q.js.map +1 -0
- package/dist/cjs/Pagination-WyQlBpvK.js +118 -0
- package/dist/cjs/Pagination-WyQlBpvK.js.map +1 -0
- package/dist/cjs/Popover-5BUgIW60.js +138 -0
- package/dist/cjs/Popover-5BUgIW60.js.map +1 -0
- package/dist/cjs/Progress-n_VwK9_E.js +28 -0
- package/dist/cjs/Progress-n_VwK9_E.js.map +1 -0
- package/dist/cjs/RadioGroup-B-u8rdbf.js +138 -0
- package/dist/cjs/RadioGroup-B-u8rdbf.js.map +1 -0
- package/dist/cjs/Select-C56LAdEy.js +1361 -0
- package/dist/cjs/Select-C56LAdEy.js.map +1 -0
- package/dist/cjs/SelectFieldWrapper-CIh_atln.js +90 -0
- package/dist/cjs/SelectFieldWrapper-CIh_atln.js.map +1 -0
- package/dist/cjs/Sheet-D-NWMprq.js +140 -0
- package/dist/cjs/Sheet-D-NWMprq.js.map +1 -0
- package/dist/cjs/Slider-DIUSlx_m.js +117 -0
- package/dist/cjs/Slider-DIUSlx_m.js.map +1 -0
- package/dist/cjs/Spinner-DRoghJA8.js +29 -0
- package/dist/cjs/Spinner-DRoghJA8.js.map +1 -0
- package/dist/cjs/Stepper-BZBdL6JW.js +117 -0
- package/dist/cjs/Stepper-BZBdL6JW.js.map +1 -0
- package/dist/cjs/Switch-BbRK3HUZ.js +103 -0
- package/dist/cjs/Switch-BbRK3HUZ.js.map +1 -0
- package/dist/cjs/Tabs-BQl63Ewe.js +84 -0
- package/dist/cjs/Tabs-BQl63Ewe.js.map +1 -0
- package/dist/cjs/Textarea-bxleSw86.js +211 -0
- package/dist/cjs/Textarea-bxleSw86.js.map +1 -0
- package/dist/cjs/TimePicker-CVGXEgk5.js +465 -0
- package/dist/cjs/TimePicker-CVGXEgk5.js.map +1 -0
- package/dist/cjs/TimePickerPanel-DvVRLqeM.js +577 -0
- package/dist/cjs/TimePickerPanel-DvVRLqeM.js.map +1 -0
- package/dist/cjs/Toastr-DgllCbfd.js +275 -0
- package/dist/cjs/Toastr-DgllCbfd.js.map +1 -0
- package/dist/cjs/Tooltip-B6uv_2Jz.js +95 -0
- package/dist/cjs/Tooltip-B6uv_2Jz.js.map +1 -0
- package/dist/cjs/TranslationProvider-DOeyGtbV.js +120 -0
- package/dist/cjs/TranslationProvider-DOeyGtbV.js.map +1 -0
- package/dist/cjs/Tree-BCeV70TF.js +8182 -0
- package/dist/cjs/Tree-BCeV70TF.js.map +1 -0
- package/dist/cjs/TreeSelect-B8ScKK9l.js +342 -0
- package/dist/cjs/TreeSelect-B8ScKK9l.js.map +1 -0
- package/dist/cjs/Typography-BW6xEk10.js +101 -0
- package/dist/cjs/Typography-BW6xEk10.js.map +1 -0
- package/dist/cjs/button-CDZTqJzs.js +91 -0
- package/dist/cjs/button-CDZTqJzs.js.map +1 -0
- package/dist/cjs/check-BQgcDXys.js +17 -0
- package/dist/cjs/check-BQgcDXys.js.map +1 -0
- package/dist/cjs/chevron-down-CPsWSS51.js +17 -0
- package/dist/cjs/chevron-down-CPsWSS51.js.map +1 -0
- package/dist/cjs/chevron-left-BldoOh5p.js +17 -0
- package/dist/cjs/chevron-left-BldoOh5p.js.map +1 -0
- package/dist/cjs/chevron-right-0jNdwX2Q.js +17 -0
- package/dist/cjs/chevron-right-0jNdwX2Q.js.map +1 -0
- package/dist/cjs/chevron-up-BpwpBnZU.js +17 -0
- package/dist/cjs/chevron-up-BpwpBnZU.js.map +1 -0
- package/dist/cjs/components/Accordion.js +27 -0
- package/dist/cjs/components/Accordion.js.map +1 -0
- package/dist/cjs/components/Alert.js +50 -0
- package/dist/cjs/components/Alert.js.map +1 -0
- package/dist/cjs/components/Avatar.js +33 -0
- package/dist/cjs/components/Avatar.js.map +1 -0
- package/dist/cjs/components/Badge.js +19 -0
- package/dist/cjs/components/Badge.js.map +1 -0
- package/dist/cjs/components/Button.js +42 -0
- package/dist/cjs/components/Button.js.map +1 -0
- package/dist/cjs/components/Callout.js +17 -0
- package/dist/cjs/components/Callout.js.map +1 -0
- package/dist/cjs/components/Checkbox.js +53 -0
- package/dist/cjs/components/Checkbox.js.map +1 -0
- package/dist/cjs/components/ColorPicker.js +37 -0
- package/dist/cjs/components/ColorPicker.js.map +1 -0
- package/dist/cjs/components/DataTable.js +67 -0
- package/dist/cjs/components/DataTable.js.map +1 -0
- package/dist/cjs/components/DatePicker.js +64 -0
- package/dist/cjs/components/DatePicker.js.map +1 -0
- package/dist/cjs/components/Dialog.js +28 -0
- package/dist/cjs/components/Dialog.js.map +1 -0
- package/dist/cjs/components/DirectionProvider.js +11 -0
- package/dist/cjs/components/DirectionProvider.js.map +1 -0
- package/dist/cjs/components/DropdownMenu.js +356 -0
- package/dist/cjs/components/DropdownMenu.js.map +1 -0
- package/dist/cjs/components/Empty.js +43 -0
- package/dist/cjs/components/Empty.js.map +1 -0
- package/dist/cjs/components/Input.js +55 -0
- package/dist/cjs/components/Input.js.map +1 -0
- package/dist/cjs/components/Kbd.js +31 -0
- package/dist/cjs/components/Kbd.js.map +1 -0
- package/dist/cjs/components/Label.js +47 -0
- package/dist/cjs/components/Label.js.map +1 -0
- package/dist/cjs/components/MultiEmailInput.js +52 -0
- package/dist/cjs/components/MultiEmailInput.js.map +1 -0
- package/dist/cjs/components/Pagination.js +22 -0
- package/dist/cjs/components/Pagination.js.map +1 -0
- package/dist/cjs/components/Popover.js +30 -0
- package/dist/cjs/components/Popover.js.map +1 -0
- package/dist/cjs/components/Progress.js +16 -0
- package/dist/cjs/components/Progress.js.map +1 -0
- package/dist/cjs/components/RadioGroup.js +56 -0
- package/dist/cjs/components/RadioGroup.js.map +1 -0
- package/dist/cjs/components/Select.js +63 -0
- package/dist/cjs/components/Select.js.map +1 -0
- package/dist/cjs/components/Sheet.js +28 -0
- package/dist/cjs/components/Sheet.js.map +1 -0
- package/dist/cjs/components/Slider.js +55 -0
- package/dist/cjs/components/Slider.js.map +1 -0
- package/dist/cjs/components/Spinner.js +15 -0
- package/dist/cjs/components/Spinner.js.map +1 -0
- package/dist/cjs/components/Stepper.js +13 -0
- package/dist/cjs/components/Stepper.js.map +1 -0
- package/dist/cjs/components/Switch.js +53 -0
- package/dist/cjs/components/Switch.js.map +1 -0
- package/dist/cjs/components/Tabs.js +29 -0
- package/dist/cjs/components/Tabs.js.map +1 -0
- package/dist/cjs/components/Textarea.js +52 -0
- package/dist/cjs/components/Textarea.js.map +1 -0
- package/dist/cjs/components/TimePicker.js +61 -0
- package/dist/cjs/components/TimePicker.js.map +1 -0
- package/dist/cjs/components/Toastr.js +19 -0
- package/dist/cjs/components/Toastr.js.map +1 -0
- package/dist/cjs/components/Tooltip.js +30 -0
- package/dist/cjs/components/Tooltip.js.map +1 -0
- package/dist/cjs/components/TranslationProvider.js +12 -0
- package/dist/cjs/components/TranslationProvider.js.map +1 -0
- package/dist/cjs/components/Tree.js +34 -0
- package/dist/cjs/components/Tree.js.map +1 -0
- package/dist/cjs/components/TreeSelect.js +61 -0
- package/dist/cjs/components/TreeSelect.js.map +1 -0
- package/dist/cjs/components/Typography.js +15 -0
- package/dist/cjs/components/Typography.js.map +1 -0
- package/dist/cjs/components/index.js +195 -0
- package/dist/cjs/components/index.js.map +1 -0
- package/dist/cjs/createLucideIcon-D0tRgV6l.js +149 -0
- package/dist/cjs/createLucideIcon-D0tRgV6l.js.map +1 -0
- package/dist/cjs/dialog-Bnk4GUFC.js +155 -0
- package/dist/cjs/dialog-Bnk4GUFC.js.map +1 -0
- package/dist/cjs/ellipsis-4aubOI2n.js +21 -0
- package/dist/cjs/ellipsis-4aubOI2n.js.map +1 -0
- package/dist/cjs/fieldIds-DiVU6GVS.js +14 -0
- package/dist/cjs/fieldIds-DiVU6GVS.js.map +1 -0
- package/dist/cjs/floating-ui.react-dom--alWUjS1.js +1977 -0
- package/dist/cjs/floating-ui.react-dom--alWUjS1.js.map +1 -0
- package/dist/cjs/floating-ui.utils.dom-BGEmL7pd.js +339 -0
- package/dist/cjs/floating-ui.utils.dom-BGEmL7pd.js.map +1 -0
- package/dist/cjs/formik/ActionBlock.js +100 -0
- package/dist/cjs/formik/ActionBlock.js.map +1 -0
- package/dist/cjs/formik/BlockNavigation.js +187 -0
- package/dist/cjs/formik/BlockNavigation.js.map +1 -0
- package/dist/cjs/formik/Button.js +59 -0
- package/dist/cjs/formik/Button.js.map +1 -0
- package/dist/cjs/formik/Checkbox.js +83 -0
- package/dist/cjs/formik/Checkbox.js.map +1 -0
- package/dist/cjs/formik/Form.js +147 -0
- package/dist/cjs/formik/Form.js.map +1 -0
- package/dist/cjs/formik/Input.js +80 -0
- package/dist/cjs/formik/Input.js.map +1 -0
- package/dist/cjs/formik/MultiEmailInput.js +74 -0
- package/dist/cjs/formik/MultiEmailInput.js.map +1 -0
- package/dist/cjs/formik/RadioGroup.js +88 -0
- package/dist/cjs/formik/RadioGroup.js.map +1 -0
- package/dist/cjs/formik/Select.js +90 -0
- package/dist/cjs/formik/Select.js.map +1 -0
- package/dist/cjs/formik/Slider.js +86 -0
- package/dist/cjs/formik/Slider.js.map +1 -0
- package/dist/cjs/formik/Switch.js +80 -0
- package/dist/cjs/formik/Switch.js.map +1 -0
- package/dist/cjs/formik/Textarea.js +77 -0
- package/dist/cjs/formik/Textarea.js.map +1 -0
- package/dist/cjs/formik/TreeSelect.js +84 -0
- package/dist/cjs/formik/TreeSelect.js.map +1 -0
- package/dist/cjs/formik/index.js +120 -0
- package/dist/cjs/formik/index.js.map +1 -0
- package/dist/cjs/hyphenize-BTrVNVv3.js +13 -0
- package/dist/cjs/hyphenize-BTrVNVv3.js.map +1 -0
- package/dist/cjs/index-BY6wgiQV.js +40 -0
- package/dist/cjs/index-BY6wgiQV.js.map +1 -0
- package/dist/cjs/index-Bf0WsHta.js +63 -0
- package/dist/cjs/index-Bf0WsHta.js.map +1 -0
- package/dist/cjs/index-BiGm7NEA.js +173 -0
- package/dist/cjs/index-BiGm7NEA.js.map +1 -0
- package/dist/cjs/index-BrpkRQoS.js +99 -0
- package/dist/cjs/index-BrpkRQoS.js.map +1 -0
- package/dist/cjs/index-Bvu9MiFi.js +247 -0
- package/dist/cjs/index-Bvu9MiFi.js.map +1 -0
- package/dist/cjs/index-BwAq9ba8.js +38 -0
- package/dist/cjs/index-BwAq9ba8.js.map +1 -0
- package/dist/cjs/index-CB9xFokC.js +59 -0
- package/dist/cjs/index-CB9xFokC.js.map +1 -0
- package/dist/cjs/index-CCdG4z4E.js +30 -0
- package/dist/cjs/index-CCdG4z4E.js.map +1 -0
- package/dist/cjs/index-CF951Pw9.js +38 -0
- package/dist/cjs/index-CF951Pw9.js.map +1 -0
- package/dist/cjs/index-CGUGhyIp.js +103 -0
- package/dist/cjs/index-CGUGhyIp.js.map +1 -0
- package/dist/cjs/index-CMFCdiR6.js +953 -0
- package/dist/cjs/index-CMFCdiR6.js.map +1 -0
- package/dist/cjs/index-COPkC3I5.js +14 -0
- package/dist/cjs/index-COPkC3I5.js.map +1 -0
- package/dist/cjs/index-CPmGpPzg.js +1183 -0
- package/dist/cjs/index-CPmGpPzg.js.map +1 -0
- package/dist/cjs/index-CS_WSHYi.js +1153 -0
- package/dist/cjs/index-CS_WSHYi.js.map +1 -0
- package/dist/cjs/index-Ch55j1or.js +176 -0
- package/dist/cjs/index-Ch55j1or.js.map +1 -0
- package/dist/cjs/index-CyrAgb4H.js +93 -0
- package/dist/cjs/index-CyrAgb4H.js.map +1 -0
- package/dist/cjs/index-D-iDn9RI.js +63 -0
- package/dist/cjs/index-D-iDn9RI.js.map +1 -0
- package/dist/cjs/index-DMbj7vXd.js +152 -0
- package/dist/cjs/index-DMbj7vXd.js.map +1 -0
- package/dist/cjs/index-DcCSSgb7.js +153 -0
- package/dist/cjs/index-DcCSSgb7.js.map +1 -0
- package/dist/cjs/index-DdQaz0iQ.js +431 -0
- package/dist/cjs/index-DdQaz0iQ.js.map +1 -0
- package/dist/cjs/index-Df-Ffa3s.js +43 -0
- package/dist/cjs/index-Df-Ffa3s.js.map +1 -0
- package/dist/cjs/index-DnKJmaCq.js +8 -0
- package/dist/cjs/index-DnKJmaCq.js.map +1 -0
- package/dist/cjs/index-DoVhdseB.js +248 -0
- package/dist/cjs/index-DoVhdseB.js.map +1 -0
- package/dist/cjs/index-DuNgWCXZ.js +113 -0
- package/dist/cjs/index-DuNgWCXZ.js.map +1 -0
- package/dist/cjs/index-EyWRfsCG.js +9 -0
- package/dist/cjs/index-EyWRfsCG.js.map +1 -0
- package/dist/cjs/index-lWVw05cs.js +35 -0
- package/dist/cjs/index-lWVw05cs.js.map +1 -0
- package/dist/cjs/index-owSUsE-n.js +328 -0
- package/dist/cjs/index-owSUsE-n.js.map +1 -0
- package/dist/cjs/index-vioSzJOw.js +47 -0
- package/dist/cjs/index-vioSzJOw.js.map +1 -0
- package/dist/cjs/index.js +202 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/info-DGfDptn1.js +21 -0
- package/dist/cjs/info-DGfDptn1.js.map +1 -0
- package/dist/cjs/input-CgaZr1ov.js +45 -0
- package/dist/cjs/input-CgaZr1ov.js.map +1 -0
- package/dist/cjs/input-group-BU6uw1MA.js +162 -0
- package/dist/cjs/input-group-BU6uw1MA.js.map +1 -0
- package/dist/cjs/label-BdcX4_ud.js +62 -0
- package/dist/cjs/label-BdcX4_ud.js.map +1 -0
- package/dist/cjs/loader-circle-Bw7zP2Gn.js +17 -0
- package/dist/cjs/loader-circle-Bw7zP2Gn.js.map +1 -0
- package/dist/cjs/primitives/Accordion.js +412 -0
- package/dist/cjs/primitives/Accordion.js.map +1 -0
- package/dist/cjs/primitives/Alert.js +85 -0
- package/dist/cjs/primitives/Alert.js.map +1 -0
- package/dist/cjs/primitives/AlertDialog.js +317 -0
- package/dist/cjs/primitives/AlertDialog.js.map +1 -0
- package/dist/cjs/primitives/AspectRatio.js +77 -0
- package/dist/cjs/primitives/AspectRatio.js.map +1 -0
- package/dist/cjs/primitives/Avatar.js +266 -0
- package/dist/cjs/primitives/Avatar.js.map +1 -0
- package/dist/cjs/primitives/Badge.js +118 -0
- package/dist/cjs/primitives/Badge.js.map +1 -0
- package/dist/cjs/primitives/Breadcrumb.js +135 -0
- package/dist/cjs/primitives/Breadcrumb.js.map +1 -0
- package/dist/cjs/primitives/Button.js +44 -0
- package/dist/cjs/primitives/Button.js.map +1 -0
- package/dist/cjs/primitives/ButtonGroup.js +87 -0
- package/dist/cjs/primitives/ButtonGroup.js.map +1 -0
- package/dist/cjs/primitives/Calendar.js +8139 -0
- package/dist/cjs/primitives/Calendar.js.map +1 -0
- package/dist/cjs/primitives/Card.js +115 -0
- package/dist/cjs/primitives/Card.js.map +1 -0
- package/dist/cjs/primitives/Carousel.js +1972 -0
- package/dist/cjs/primitives/Carousel.js.map +1 -0
- package/dist/cjs/primitives/Chart.js +19228 -0
- package/dist/cjs/primitives/Chart.js.map +1 -0
- package/dist/cjs/primitives/Checkbox.js +334 -0
- package/dist/cjs/primitives/Checkbox.js.map +1 -0
- package/dist/cjs/primitives/Collapsible.js +51 -0
- package/dist/cjs/primitives/Collapsible.js.map +1 -0
- package/dist/cjs/primitives/Combobox.js +45 -0
- package/dist/cjs/primitives/Combobox.js.map +1 -0
- package/dist/cjs/primitives/Command.js +395 -0
- package/dist/cjs/primitives/Command.js.map +1 -0
- package/dist/cjs/primitives/ContextMenu.js +577 -0
- package/dist/cjs/primitives/ContextMenu.js.map +1 -0
- package/dist/cjs/primitives/Dialog.js +114 -0
- package/dist/cjs/primitives/Dialog.js.map +1 -0
- package/dist/cjs/primitives/Drawer.js +1800 -0
- package/dist/cjs/primitives/Drawer.js.map +1 -0
- package/dist/cjs/primitives/DropdownMenu.js +673 -0
- package/dist/cjs/primitives/DropdownMenu.js.map +1 -0
- package/dist/cjs/primitives/Empty.js +144 -0
- package/dist/cjs/primitives/Empty.js.map +1 -0
- package/dist/cjs/primitives/Field.js +270 -0
- package/dist/cjs/primitives/Field.js.map +1 -0
- package/dist/cjs/primitives/HoverCard.js +313 -0
- package/dist/cjs/primitives/HoverCard.js.map +1 -0
- package/dist/cjs/primitives/Input.js +11 -0
- package/dist/cjs/primitives/Input.js.map +1 -0
- package/dist/cjs/primitives/InputGroup.js +49 -0
- package/dist/cjs/primitives/InputGroup.js.map +1 -0
- package/dist/cjs/primitives/InputOTP.js +141 -0
- package/dist/cjs/primitives/InputOTP.js.map +1 -0
- package/dist/cjs/primitives/Item.js +208 -0
- package/dist/cjs/primitives/Item.js.map +1 -0
- package/dist/cjs/primitives/Kbd.js +64 -0
- package/dist/cjs/primitives/Kbd.js.map +1 -0
- package/dist/cjs/primitives/Label.js +35 -0
- package/dist/cjs/primitives/Label.js.map +1 -0
- package/dist/cjs/primitives/Menubar.js +736 -0
- package/dist/cjs/primitives/Menubar.js.map +1 -0
- package/dist/cjs/primitives/NativeSelect.js +62 -0
- package/dist/cjs/primitives/NativeSelect.js.map +1 -0
- package/dist/cjs/primitives/NavigationMenu.js +978 -0
- package/dist/cjs/primitives/NavigationMenu.js.map +1 -0
- package/dist/cjs/primitives/Pagination.js +179 -0
- package/dist/cjs/primitives/Pagination.js.map +1 -0
- package/dist/cjs/primitives/Popover.js +492 -0
- package/dist/cjs/primitives/Popover.js.map +1 -0
- package/dist/cjs/primitives/Progress.js +148 -0
- package/dist/cjs/primitives/Progress.js.map +1 -0
- package/dist/cjs/primitives/RadioGroup.js +375 -0
- package/dist/cjs/primitives/RadioGroup.js.map +1 -0
- package/dist/cjs/primitives/Resizable.js +2100 -0
- package/dist/cjs/primitives/Resizable.js.map +1 -0
- package/dist/cjs/primitives/ScrollArea.js +800 -0
- package/dist/cjs/primitives/ScrollArea.js.map +1 -0
- package/dist/cjs/primitives/Select.js +1465 -0
- package/dist/cjs/primitives/Select.js.map +1 -0
- package/dist/cjs/primitives/Separator.js +14 -0
- package/dist/cjs/primitives/Separator.js.map +1 -0
- package/dist/cjs/primitives/Sheet.js +119 -0
- package/dist/cjs/primitives/Sheet.js.map +1 -0
- package/dist/cjs/primitives/Sidebar.js +768 -0
- package/dist/cjs/primitives/Sidebar.js.map +1 -0
- package/dist/cjs/primitives/Skeleton.js +10 -0
- package/dist/cjs/primitives/Skeleton.js.map +1 -0
- package/dist/cjs/primitives/Slider.js +631 -0
- package/dist/cjs/primitives/Slider.js.map +1 -0
- package/dist/cjs/primitives/Sonner.js +81 -0
- package/dist/cjs/primitives/Sonner.js.map +1 -0
- package/dist/cjs/primitives/Spinner.js +18 -0
- package/dist/cjs/primitives/Spinner.js.map +1 -0
- package/dist/cjs/primitives/Switch.js +221 -0
- package/dist/cjs/primitives/Switch.js.map +1 -0
- package/dist/cjs/primitives/Table.js +137 -0
- package/dist/cjs/primitives/Table.js.map +1 -0
- package/dist/cjs/primitives/Tabs.js +315 -0
- package/dist/cjs/primitives/Tabs.js.map +1 -0
- package/dist/cjs/primitives/Textarea.js +32 -0
- package/dist/cjs/primitives/Textarea.js.map +1 -0
- package/dist/cjs/primitives/Toggle.js +28 -0
- package/dist/cjs/primitives/Toggle.js.map +1 -0
- package/dist/cjs/primitives/ToggleGroup.js +281 -0
- package/dist/cjs/primitives/ToggleGroup.js.map +1 -0
- package/dist/cjs/primitives/Tooltip.js +34 -0
- package/dist/cjs/primitives/Tooltip.js.map +1 -0
- package/dist/cjs/primitives/index.js +434 -0
- package/dist/cjs/primitives/index.js.map +1 -0
- package/dist/cjs/redux-DEF7lAd1.js +240 -0
- package/dist/cjs/redux-DEF7lAd1.js.map +1 -0
- package/dist/cjs/renderIcon-BRrpZu9a.js +32 -0
- package/dist/cjs/renderIcon-BRrpZu9a.js.map +1 -0
- package/dist/cjs/search-DVHH0ihN.js +33 -0
- package/dist/cjs/search-DVHH0ihN.js.map +1 -0
- package/dist/cjs/separator-DSL-aG1J.js +75 -0
- package/dist/cjs/separator-DSL-aG1J.js.map +1 -0
- package/dist/cjs/sheet-CQ82jJkC.js +138 -0
- package/dist/cjs/sheet-CQ82jJkC.js.map +1 -0
- package/dist/cjs/skeleton-CL0H_mC4.js +18 -0
- package/dist/cjs/skeleton-CL0H_mC4.js.map +1 -0
- package/dist/cjs/textarea-DW3Fg4w6.js +42 -0
- package/dist/cjs/textarea-DW3Fg4w6.js.map +1 -0
- package/dist/cjs/toggle-Cq38rmIj.js +99 -0
- package/dist/cjs/toggle-Cq38rmIj.js.map +1 -0
- package/dist/cjs/tooltip-BFE6UArF.js +582 -0
- package/dist/cjs/tooltip-BFE6UArF.js.map +1 -0
- package/dist/cjs/triangle-alert-CC-cck8p.js +27 -0
- package/dist/cjs/triangle-alert-CC-cck8p.js.map +1 -0
- package/dist/cjs/use-mobile-Be9CI6km.js +41 -0
- package/dist/cjs/use-mobile-Be9CI6km.js.map +1 -0
- package/dist/cjs/useAriaHiddenCleanup-CT0To2AH.js +47 -0
- package/dist/cjs/useAriaHiddenCleanup-CT0To2AH.js.map +1 -0
- package/dist/cjs/useOpenInteractionType-D4z6FTrA.js +4877 -0
- package/dist/cjs/useOpenInteractionType-D4z6FTrA.js.map +1 -0
- package/dist/cjs/utils-BhM0B89p.js +3210 -0
- package/dist/cjs/utils-BhM0B89p.js.map +1 -0
- package/dist/cjs/with-selector-DeKHbQY7.js +121 -0
- package/dist/cjs/with-selector-DeKHbQY7.js.map +1 -0
- package/dist/cjs/withIconSize-C6LP0R7o.js +23 -0
- package/dist/cjs/withIconSize-C6LP0R7o.js.map +1 -0
- package/dist/cjs/x-Brw3FJst.js +20 -0
- package/dist/cjs/x-Brw3FJst.js.map +1 -0
- package/dist/components/Accordion/Accordion.d.ts +20 -0
- package/dist/components/Accordion/index.d.ts +2 -0
- package/dist/components/Accordion.js +21 -0
- package/dist/components/Accordion.js.map +1 -0
- package/dist/components/Alert/Alert.d.ts +51 -0
- package/dist/components/Alert/constants.d.ts +3 -0
- package/dist/components/Alert/index.d.ts +2 -0
- package/dist/components/Alert.js +44 -0
- package/dist/components/Alert.js.map +1 -0
- package/dist/components/Avatar/Avatar.d.ts +33 -0
- package/dist/components/Avatar/constants.d.ts +3 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Avatar/utils.d.ts +3 -0
- package/dist/components/Avatar.js +27 -0
- package/dist/components/Avatar.js.map +1 -0
- package/dist/components/Badge/Badge.d.ts +32 -0
- package/dist/components/Badge/constants.d.ts +25 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Badge.js +13 -0
- package/dist/components/Badge.js.map +1 -0
- package/dist/components/Button/Button.d.ts +63 -0
- package/dist/components/Button/constants.d.ts +5 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button.js +34 -0
- package/dist/components/Button.js.map +1 -0
- package/dist/components/Callout/Callout.d.ts +17 -0
- package/dist/components/Callout/constants.d.ts +8 -0
- package/dist/components/Callout/index.d.ts +2 -0
- package/dist/components/Callout.js +11 -0
- package/dist/components/Callout.js.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +21 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Checkbox.js +47 -0
- package/dist/components/Checkbox.js.map +1 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +3 -0
- package/dist/components/ColorPicker/Palette.d.ts +12 -0
- package/dist/components/ColorPicker/Target.d.ts +15 -0
- package/dist/components/ColorPicker/constants.d.ts +10 -0
- package/dist/components/ColorPicker/hooks/useEyeDropper.d.ts +15 -0
- package/dist/components/ColorPicker/hooks/useRecentlyUsedColors.d.ts +11 -0
- package/dist/components/ColorPicker/index.d.ts +2 -0
- package/dist/components/ColorPicker/types.d.ts +47 -0
- package/dist/components/ColorPicker/utils.d.ts +31 -0
- package/dist/components/ColorPicker.js +31 -0
- package/dist/components/ColorPicker.js.map +1 -0
- package/dist/components/DataTable/DataTable.d.ts +2 -0
- package/dist/components/DataTable/components/BulkSelectCallout.d.ts +10 -0
- package/dist/components/DataTable/components/DataTablePagination.d.ts +7 -0
- package/dist/components/DataTable/components/EmptyState.d.ts +7 -0
- package/dist/components/DataTable/components/HeaderCellMenu.d.ts +19 -0
- package/dist/components/DataTable/components/HeaderDescription.d.ts +6 -0
- package/dist/components/DataTable/components/LoadingOverlay.d.ts +1 -0
- package/dist/components/DataTable/components/ResizeHandle.d.ts +7 -0
- package/dist/components/DataTable/components/SelectionCheckbox.d.ts +7 -0
- package/dist/components/DataTable/components/SortIndicator.d.ts +6 -0
- package/dist/components/DataTable/components/SortableColumnLabel.d.ts +8 -0
- package/dist/components/DataTable/constants.d.ts +13 -0
- package/dist/components/DataTable/hooks/useColumnDrag.d.ts +11 -0
- package/dist/components/DataTable/hooks/useColumnOrdering.d.ts +13 -0
- package/dist/components/DataTable/hooks/useColumnPinning.d.ts +15 -0
- package/dist/components/DataTable/hooks/useColumnResize.d.ts +18 -0
- package/dist/components/DataTable/hooks/useColumnSizingPersistence.d.ts +15 -0
- package/dist/components/DataTable/hooks/useColumnVisibility.d.ts +14 -0
- package/dist/components/DataTable/hooks/useTablePagination.d.ts +18 -0
- package/dist/components/DataTable/hooks/useTableSelection.d.ts +15 -0
- package/dist/components/DataTable/hooks/useTableSort.d.ts +16 -0
- package/dist/components/DataTable/index.d.ts +9 -0
- package/dist/components/DataTable/types.d.ts +74 -0
- package/dist/components/DataTable/utils.d.ts +24 -0
- package/dist/components/DataTable.js +55 -0
- package/dist/components/DataTable.js.map +1 -0
- package/dist/components/DatePicker/DatePicker.d.ts +4 -0
- package/dist/components/DatePicker/DatePickerField.d.ts +16 -0
- package/dist/components/DatePicker/DatePickerFooter.d.ts +14 -0
- package/dist/components/DatePicker/DatePickerTrigger.d.ts +26 -0
- package/dist/components/DatePicker/MonthPicker.d.ts +16 -0
- package/dist/components/DatePicker/RangeCalendar.d.ts +18 -0
- package/dist/components/DatePicker/TimezoneSelect.d.ts +8 -0
- package/dist/components/DatePicker/YearPicker.d.ts +14 -0
- package/dist/components/DatePicker/constants.d.ts +21 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/DatePicker/types.d.ts +80 -0
- package/dist/components/DatePicker/useRangePicker.d.ts +28 -0
- package/dist/components/DatePicker/utils.d.ts +54 -0
- package/dist/components/DatePicker.js +58 -0
- package/dist/components/DatePicker.js.map +1 -0
- package/dist/components/Dialog/Dialog.d.ts +56 -0
- package/dist/components/Dialog/constants.d.ts +2 -0
- package/dist/components/Dialog/index.d.ts +2 -0
- package/dist/components/Dialog.js +22 -0
- package/dist/components/Dialog.js.map +1 -0
- package/dist/components/DirectionProvider/DirectionProvider.d.ts +6 -0
- package/dist/components/DirectionProvider/index.d.ts +2 -0
- package/dist/components/DirectionProvider/types.d.ts +7 -0
- package/dist/components/DirectionProvider.js +5 -0
- package/dist/components/DirectionProvider.js.map +1 -0
- package/dist/components/DropdownMenu/Divider.d.ts +3 -0
- package/dist/components/DropdownMenu/DropdownBase.d.ts +3 -0
- package/dist/components/DropdownMenu/Label.d.ts +13 -0
- package/dist/components/DropdownMenu/Menu.d.ts +7 -0
- package/dist/components/DropdownMenu/MenuItem.d.ts +3 -0
- package/dist/components/DropdownMenu/SplitTrigger.d.ts +13 -0
- package/dist/components/DropdownMenu/SubMenu.d.ts +13 -0
- package/dist/components/DropdownMenu/TriggerButton.d.ts +10 -0
- package/dist/components/DropdownMenu/constants.d.ts +2 -0
- package/dist/components/DropdownMenu/index.d.ts +17 -0
- package/dist/components/DropdownMenu/types.d.ts +118 -0
- package/dist/components/DropdownMenu.js +354 -0
- package/dist/components/DropdownMenu.js.map +1 -0
- package/dist/components/Empty/Empty.d.ts +31 -0
- package/dist/components/Empty/index.d.ts +2 -0
- package/dist/components/Empty.js +37 -0
- package/dist/components/Empty.js.map +1 -0
- package/dist/components/Input/Input.d.ts +51 -0
- package/dist/components/Input/constants.d.ts +23 -0
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/Input/utils.d.ts +7 -0
- package/dist/components/Input.js +49 -0
- package/dist/components/Input.js.map +1 -0
- package/dist/components/Kbd/Kbd.d.ts +15 -0
- package/dist/components/Kbd/constants.d.ts +1 -0
- package/dist/components/Kbd/index.d.ts +2 -0
- package/dist/components/Kbd.js +25 -0
- package/dist/components/Kbd.js.map +1 -0
- package/dist/components/Label/Label.d.ts +14 -0
- package/dist/components/Label/constants.d.ts +1 -0
- package/dist/components/Label/index.d.ts +2 -0
- package/dist/components/Label.js +41 -0
- package/dist/components/Label.js.map +1 -0
- package/dist/components/MultiEmailInput/MultiEmailInput.d.ts +2 -0
- package/dist/components/MultiEmailInput/constants.d.ts +18 -0
- package/dist/components/MultiEmailInput/index.d.ts +2 -0
- package/dist/components/MultiEmailInput/types.d.ts +64 -0
- package/dist/components/MultiEmailInput/useMultiEmailState.d.ts +18 -0
- package/dist/components/MultiEmailInput/utils.d.ts +9 -0
- package/dist/components/MultiEmailInput.js +46 -0
- package/dist/components/MultiEmailInput.js.map +1 -0
- package/dist/components/Pagination/Pagination.d.ts +22 -0
- package/dist/components/Pagination/constants.d.ts +1 -0
- package/dist/components/Pagination/hooks/usePaginationQueryParams.d.ts +11 -0
- package/dist/components/Pagination/hooks/usePaginationRange.d.ts +7 -0
- package/dist/components/Pagination/index.d.ts +2 -0
- package/dist/components/Pagination/utils.d.ts +1 -0
- package/dist/components/Pagination.js +16 -0
- package/dist/components/Pagination.js.map +1 -0
- package/dist/components/Popover/Popover.d.ts +45 -0
- package/dist/components/Popover/constants.d.ts +2 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Popover.js +24 -0
- package/dist/components/Popover.js.map +1 -0
- package/dist/components/Progress/Progress.d.ts +12 -0
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/Progress.js +10 -0
- package/dist/components/Progress.js.map +1 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +39 -0
- package/dist/components/RadioGroup/index.d.ts +2 -0
- package/dist/components/RadioGroup.js +50 -0
- package/dist/components/RadioGroup.js.map +1 -0
- package/dist/components/Select/MultiSelectCombobox.d.ts +2 -0
- package/dist/components/Select/MultiSelectCombobox.types.d.ts +51 -0
- package/dist/components/Select/MultiSelectDropdown.d.ts +9 -0
- package/dist/components/Select/OptionItem.d.ts +10 -0
- package/dist/components/Select/Select.d.ts +4 -0
- package/dist/components/Select/SelectAnchor.d.ts +26 -0
- package/dist/components/Select/SelectCombobox.d.ts +2 -0
- package/dist/components/Select/SelectCombobox.types.d.ts +87 -0
- package/dist/components/Select/SelectFieldWrapper.d.ts +24 -0
- package/dist/components/Select/constants.d.ts +8 -0
- package/dist/components/Select/dropdown.types.d.ts +12 -0
- package/dist/components/Select/hooks/useAsyncOptions.d.ts +13 -0
- package/dist/components/Select/hooks/useCreatableItems.d.ts +33 -0
- package/dist/components/Select/hooks/useLazyLoadSentinel.d.ts +6 -0
- package/dist/components/Select/hooks/useMultiSelectOptions.d.ts +33 -0
- package/dist/components/Select/hooks/useMultiSelectState.d.ts +50 -0
- package/dist/components/Select/hooks/useSelectState.d.ts +63 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Select/types.d.ts +201 -0
- package/dist/components/Select/utils.d.ts +35 -0
- package/dist/components/Select.js +57 -0
- package/dist/components/Select.js.map +1 -0
- package/dist/components/Sheet/Sheet.d.ts +54 -0
- package/dist/components/Sheet/constants.d.ts +3 -0
- package/dist/components/Sheet/index.d.ts +2 -0
- package/dist/components/Sheet.js +22 -0
- package/dist/components/Sheet.js.map +1 -0
- package/dist/components/Slider/Slider.d.ts +31 -0
- package/dist/components/Slider/index.d.ts +2 -0
- package/dist/components/Slider.js +49 -0
- package/dist/components/Slider.js.map +1 -0
- package/dist/components/Spinner/Spinner.d.ts +10 -0
- package/dist/components/Spinner/constants.d.ts +1 -0
- package/dist/components/Spinner/index.d.ts +2 -0
- package/dist/components/Spinner.js +9 -0
- package/dist/components/Spinner.js.map +1 -0
- package/dist/components/Stepper/Stepper.d.ts +18 -0
- package/dist/components/Stepper/index.d.ts +2 -0
- package/dist/components/Stepper.js +7 -0
- package/dist/components/Stepper.js.map +1 -0
- package/dist/components/Switch/Switch.d.ts +23 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Switch.js +47 -0
- package/dist/components/Switch.js.map +1 -0
- package/dist/components/Tabs/Tabs.d.ts +26 -0
- package/dist/components/Tabs/constants.d.ts +5 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tabs.js +23 -0
- package/dist/components/Tabs.js.map +1 -0
- package/dist/components/Textarea/Textarea.d.ts +40 -0
- package/dist/components/Textarea/constants.d.ts +5 -0
- package/dist/components/Textarea/index.d.ts +2 -0
- package/dist/components/Textarea/utils.d.ts +2 -0
- package/dist/components/Textarea.js +46 -0
- package/dist/components/Textarea.js.map +1 -0
- package/dist/components/TimePicker/TimeColumn.d.ts +11 -0
- package/dist/components/TimePicker/TimePicker.d.ts +4 -0
- package/dist/components/TimePicker/TimePickerPanel.d.ts +3 -0
- package/dist/components/TimePicker/constants.d.ts +20 -0
- package/dist/components/TimePicker/index.d.ts +3 -0
- package/dist/components/TimePicker/types.d.ts +82 -0
- package/dist/components/TimePicker/utils.d.ts +30 -0
- package/dist/components/TimePicker.js +54 -0
- package/dist/components/TimePicker.js.map +1 -0
- package/dist/components/Toastr/Toastr.d.ts +35 -0
- package/dist/components/Toastr/ToastrBody.d.ts +15 -0
- package/dist/components/Toastr/index.d.ts +2 -0
- package/dist/components/Toastr/utils.d.ts +10 -0
- package/dist/components/Toastr.js +13 -0
- package/dist/components/Toastr.js.map +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +36 -0
- package/dist/components/Tooltip/constants.d.ts +2 -0
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/Tooltip.js +24 -0
- package/dist/components/Tooltip.js.map +1 -0
- package/dist/components/TranslationProvider/TranslationProvider.d.ts +6 -0
- package/dist/components/TranslationProvider/i18n.d.ts +1 -0
- package/dist/components/TranslationProvider/index.d.ts +2 -0
- package/dist/components/TranslationProvider/types.d.ts +7 -0
- package/dist/components/TranslationProvider.js +6 -0
- package/dist/components/TranslationProvider.js.map +1 -0
- package/dist/components/Tree/Tree.d.ts +2 -0
- package/dist/components/Tree/TreeContext.d.ts +26 -0
- package/dist/components/Tree/components/SwitcherIcon.d.ts +6 -0
- package/dist/components/Tree/components/TreeCheckbox.d.ts +8 -0
- package/dist/components/Tree/components/TreeNode.d.ts +3 -0
- package/dist/components/Tree/constants.d.ts +3 -0
- package/dist/components/Tree/hooks/useTreeCheck.d.ts +18 -0
- package/dist/components/Tree/hooks/useTreeExpansion.d.ts +18 -0
- package/dist/components/Tree/hooks/useTreeSelection.d.ts +16 -0
- package/dist/components/Tree/index.d.ts +3 -0
- package/dist/components/Tree/types.d.ts +110 -0
- package/dist/components/Tree/utils/adapter.d.ts +10 -0
- package/dist/components/Tree/utils/checkCascade.d.ts +5 -0
- package/dist/components/Tree/utils/search.d.ts +10 -0
- package/dist/components/Tree.js +25 -0
- package/dist/components/Tree.js.map +1 -0
- package/dist/components/TreeSelect/TreeSelect.d.ts +3 -0
- package/dist/components/TreeSelect/TreeSelectTrigger.d.ts +14 -0
- package/dist/components/TreeSelect/constants.d.ts +5 -0
- package/dist/components/TreeSelect/hooks/useTreeSelectState.d.ts +30 -0
- package/dist/components/TreeSelect/hooks/useTreeSelectValue.d.ts +18 -0
- package/dist/components/TreeSelect/index.d.ts +2 -0
- package/dist/components/TreeSelect/types.d.ts +51 -0
- package/dist/components/TreeSelect/utils/pruneTree.d.ts +2 -0
- package/dist/components/TreeSelect/utils/resolveFieldNames.d.ts +7 -0
- package/dist/components/TreeSelect.js +55 -0
- package/dist/components/TreeSelect.js.map +1 -0
- package/dist/components/Typography/Typography.d.ts +28 -0
- package/dist/components/Typography/index.d.ts +1 -0
- package/dist/components/Typography.js +8 -0
- package/dist/components/Typography.js.map +1 -0
- package/dist/components/index.d.ts +36 -0
- package/dist/components/index.js +141 -0
- package/dist/components/index.js.map +1 -0
- package/dist/createLucideIcon-C8ycilSN.js +147 -0
- package/dist/createLucideIcon-C8ycilSN.js.map +1 -0
- package/dist/dialog-BG8Tjl78.js +144 -0
- package/dist/dialog-BG8Tjl78.js.map +1 -0
- package/dist/ellipsis-lb8Ws6br.js +19 -0
- package/dist/ellipsis-lb8Ws6br.js.map +1 -0
- package/dist/fieldIds-VpluAAMl.js +11 -0
- package/dist/fieldIds-VpluAAMl.js.map +1 -0
- package/dist/floating-ui.react-dom-BtFUJRfb.js +1947 -0
- package/dist/floating-ui.react-dom-BtFUJRfb.js.map +1 -0
- package/dist/floating-ui.utils.dom-Bw_Rc4bg.js +299 -0
- package/dist/floating-ui.utils.dom-Bw_Rc4bg.js.map +1 -0
- package/dist/formik/ActionBlock.d.ts +18 -0
- package/dist/formik/ActionBlock.js +98 -0
- package/dist/formik/ActionBlock.js.map +1 -0
- package/dist/formik/BlockNavigation/BlockNavigationAlert.d.ts +23 -0
- package/dist/formik/BlockNavigation/hooks/useNavPrompt.d.ts +15 -0
- package/dist/formik/BlockNavigation/index.d.ts +11 -0
- package/dist/formik/BlockNavigation.js +185 -0
- package/dist/formik/BlockNavigation.js.map +1 -0
- package/dist/formik/Button.d.ts +7 -0
- package/dist/formik/Button.js +57 -0
- package/dist/formik/Button.js.map +1 -0
- package/dist/formik/Checkbox.d.ts +10 -0
- package/dist/formik/Checkbox.js +81 -0
- package/dist/formik/Checkbox.js.map +1 -0
- package/dist/formik/Form/FormWrapper.d.ts +9 -0
- package/dist/formik/Form/ScrollToErrorField/index.d.ts +5 -0
- package/dist/formik/Form/ScrollToErrorField/utils.d.ts +2 -0
- package/dist/formik/Form/index.d.ts +16 -0
- package/dist/formik/Form.js +145 -0
- package/dist/formik/Form.js.map +1 -0
- package/dist/formik/Input.d.ts +8 -0
- package/dist/formik/Input.js +78 -0
- package/dist/formik/Input.js.map +1 -0
- package/dist/formik/MultiEmailInput.d.ts +7 -0
- package/dist/formik/MultiEmailInput.js +72 -0
- package/dist/formik/MultiEmailInput.js.map +1 -0
- package/dist/formik/RadioGroup.d.ts +13 -0
- package/dist/formik/RadioGroup.js +86 -0
- package/dist/formik/RadioGroup.js.map +1 -0
- package/dist/formik/Select.d.ts +7 -0
- package/dist/formik/Select.js +88 -0
- package/dist/formik/Select.js.map +1 -0
- package/dist/formik/Slider.d.ts +11 -0
- package/dist/formik/Slider.js +84 -0
- package/dist/formik/Slider.js.map +1 -0
- package/dist/formik/Switch.d.ts +12 -0
- package/dist/formik/Switch.js +78 -0
- package/dist/formik/Switch.js.map +1 -0
- package/dist/formik/Textarea.d.ts +8 -0
- package/dist/formik/Textarea.js +75 -0
- package/dist/formik/Textarea.js.map +1 -0
- package/dist/formik/TreeSelect.d.ts +7 -0
- package/dist/formik/TreeSelect.js +82 -0
- package/dist/formik/TreeSelect.js.map +1 -0
- package/dist/formik/index.d.ts +26 -0
- package/dist/formik/index.js +102 -0
- package/dist/formik/index.js.map +1 -0
- package/dist/hooks/useAriaHiddenCleanup.d.ts +20 -0
- package/dist/hooks/useControlledOpen.d.ts +5 -0
- package/dist/hooks/useCursorRestore.d.ts +8 -0
- package/dist/hooks/useOutsideClickClose.d.ts +8 -0
- package/dist/hyphenize-TRhMI0tl.js +11 -0
- package/dist/hyphenize-TRhMI0tl.js.map +1 -0
- package/dist/index-0o2E3Cnw.js +146 -0
- package/dist/index-0o2E3Cnw.js.map +1 -0
- package/dist/index-30QpKM0j.js +16 -0
- package/dist/index-30QpKM0j.js.map +1 -0
- package/dist/index-BNPynZWM.js +225 -0
- package/dist/index-BNPynZWM.js.map +1 -0
- package/dist/index-BQtGUR27.js +915 -0
- package/dist/index-BQtGUR27.js.map +1 -0
- package/dist/index-BYZaLNq1.js +41 -0
- package/dist/index-BYZaLNq1.js.map +1 -0
- package/dist/index-BfAAoDv6.js +7 -0
- package/dist/index-BfAAoDv6.js.map +1 -0
- package/dist/index-Bo3AAQJp.js +45 -0
- package/dist/index-Bo3AAQJp.js.map +1 -0
- package/dist/index-BtkPdosV.js +40 -0
- package/dist/index-BtkPdosV.js.map +1 -0
- package/dist/index-CDo_esrR.js +1173 -0
- package/dist/index-CDo_esrR.js.map +1 -0
- package/dist/index-CLV7U7i7.js +402 -0
- package/dist/index-CLV7U7i7.js.map +1 -0
- package/dist/index-CSMSzzKM.js +93 -0
- package/dist/index-CSMSzzKM.js.map +1 -0
- package/dist/index-CSUSJzOJ.js +13 -0
- package/dist/index-CSUSJzOJ.js.map +1 -0
- package/dist/index-CSggBaQF.js +36 -0
- package/dist/index-CSggBaQF.js.map +1 -0
- package/dist/index-CfriMyrd.js +91 -0
- package/dist/index-CfriMyrd.js.map +1 -0
- package/dist/index-CiyxEyB0.js +80 -0
- package/dist/index-CiyxEyB0.js.map +1 -0
- package/dist/index-Cor698lu.js +71 -0
- package/dist/index-Cor698lu.js.map +1 -0
- package/dist/index-DNzunGHb.js +12 -0
- package/dist/index-DNzunGHb.js.map +1 -0
- package/dist/index-DOzu5J1s.js +8 -0
- package/dist/index-DOzu5J1s.js.map +1 -0
- package/dist/index-DT56XkyA.js +224 -0
- package/dist/index-DT56XkyA.js.map +1 -0
- package/dist/index-DZXbzIgC.js +6 -0
- package/dist/index-DZXbzIgC.js.map +1 -0
- package/dist/index-Dd1i1d2M.js +155 -0
- package/dist/index-Dd1i1d2M.js.map +1 -0
- package/dist/index-DhnfW8wQ.js +128 -0
- package/dist/index-DhnfW8wQ.js.map +1 -0
- package/dist/index-Jr4soqx3.js +1129 -0
- package/dist/index-Jr4soqx3.js.map +1 -0
- package/dist/index-XvwNqU74.js +302 -0
- package/dist/index-XvwNqU74.js.map +1 -0
- package/dist/index-d0BBQf5t.js +17 -0
- package/dist/index-d0BBQf5t.js.map +1 -0
- package/dist/index-fV_U4ZJM.js +18 -0
- package/dist/index-fV_U4ZJM.js.map +1 -0
- package/dist/index-yFgkK_AM.js +131 -0
- package/dist/index-yFgkK_AM.js.map +1 -0
- package/dist/index-zW4GjM5L.js +16 -0
- package/dist/index-zW4GjM5L.js.map +1 -0
- package/dist/index.css +249 -0
- package/dist/index.d.ts +78 -0
- package/dist/index.js +150 -0
- package/dist/index.js.map +1 -0
- package/dist/info-BlwkmMZr.js +19 -0
- package/dist/info-BlwkmMZr.js.map +1 -0
- package/dist/input-BNPBqcmC.js +23 -0
- package/dist/input-BNPBqcmC.js.map +1 -0
- package/dist/input-group-CFQrWXbU.js +135 -0
- package/dist/input-group-CFQrWXbU.js.map +1 -0
- package/dist/label-YEsizr2c.js +40 -0
- package/dist/label-YEsizr2c.js.map +1 -0
- package/dist/loader-circle-DycHUAWN.js +15 -0
- package/dist/loader-circle-DycHUAWN.js.map +1 -0
- package/dist/primitives/Accordion.d.ts +7 -0
- package/dist/primitives/Accordion.js +403 -0
- package/dist/primitives/Accordion.js.map +1 -0
- package/dist/primitives/Alert.d.ts +7 -0
- package/dist/primitives/Alert.js +80 -0
- package/dist/primitives/Alert.js.map +1 -0
- package/dist/primitives/AlertDialog.d.ts +15 -0
- package/dist/primitives/AlertDialog.js +284 -0
- package/dist/primitives/AlertDialog.js.map +1 -0
- package/dist/primitives/AspectRatio.d.ts +4 -0
- package/dist/primitives/AspectRatio.js +55 -0
- package/dist/primitives/AspectRatio.js.map +1 -0
- package/dist/primitives/Avatar.d.ts +9 -0
- package/dist/primitives/Avatar.js +239 -0
- package/dist/primitives/Avatar.js.map +1 -0
- package/dist/primitives/Badge.d.ts +18 -0
- package/dist/primitives/Badge.js +115 -0
- package/dist/primitives/Badge.js.map +1 -0
- package/dist/primitives/Breadcrumb.d.ts +10 -0
- package/dist/primitives/Breadcrumb.js +127 -0
- package/dist/primitives/Breadcrumb.js.map +1 -0
- package/dist/primitives/Button.d.ts +17 -0
- package/dist/primitives/Button.js +42 -0
- package/dist/primitives/Button.js.map +1 -0
- package/dist/primitives/ButtonGroup.d.ts +7 -0
- package/dist/primitives/ButtonGroup.js +82 -0
- package/dist/primitives/ButtonGroup.js.map +1 -0
- package/dist/primitives/Calendar.d.ts +5 -0
- package/dist/primitives/Calendar.js +8117 -0
- package/dist/primitives/Calendar.js.map +1 -0
- package/dist/primitives/Card.d.ts +10 -0
- package/dist/primitives/Card.js +107 -0
- package/dist/primitives/Card.js.map +1 -0
- package/dist/primitives/Carousel.d.ts +10 -0
- package/dist/primitives/Carousel.js +1946 -0
- package/dist/primitives/Carousel.js.map +1 -0
- package/dist/primitives/Chart.d.ts +10 -0
- package/dist/primitives/Chart.js +19202 -0
- package/dist/primitives/Chart.js.map +1 -0
- package/dist/primitives/Checkbox.d.ts +3 -0
- package/dist/primitives/Checkbox.js +312 -0
- package/dist/primitives/Checkbox.js.map +1 -0
- package/dist/primitives/Collapsible.d.ts +6 -0
- package/dist/primitives/Collapsible.js +47 -0
- package/dist/primitives/Collapsible.js.map +1 -0
- package/dist/primitives/Combobox.d.ts +18 -0
- package/dist/primitives/Combobox.js +24 -0
- package/dist/primitives/Combobox.js.map +1 -0
- package/dist/primitives/Command.d.ts +12 -0
- package/dist/primitives/Command.js +365 -0
- package/dist/primitives/Command.js.map +1 -0
- package/dist/primitives/ContextMenu.d.ts +18 -0
- package/dist/primitives/ContextMenu.js +541 -0
- package/dist/primitives/ContextMenu.js.map +1 -0
- package/dist/primitives/Dialog.d.ts +23 -0
- package/dist/primitives/Dialog.js +103 -0
- package/dist/primitives/Dialog.js.map +1 -0
- package/dist/primitives/Drawer.d.ts +13 -0
- package/dist/primitives/Drawer.js +1770 -0
- package/dist/primitives/Drawer.js.map +1 -0
- package/dist/primitives/DropdownMenu.d.ts +36 -0
- package/dist/primitives/DropdownMenu.js +637 -0
- package/dist/primitives/DropdownMenu.js.map +1 -0
- package/dist/primitives/Empty.d.ts +12 -0
- package/dist/primitives/Empty.js +137 -0
- package/dist/primitives/Empty.js.map +1 -0
- package/dist/primitives/Field.d.ts +18 -0
- package/dist/primitives/Field.js +259 -0
- package/dist/primitives/Field.js.map +1 -0
- package/dist/primitives/HoverCard.d.ts +6 -0
- package/dist/primitives/HoverCard.js +289 -0
- package/dist/primitives/HoverCard.js.map +1 -0
- package/dist/primitives/Input.d.ts +4 -0
- package/dist/primitives/Input.js +9 -0
- package/dist/primitives/Input.js.map +1 -0
- package/dist/primitives/InputGroup.d.ts +9 -0
- package/dist/primitives/InputGroup.js +22 -0
- package/dist/primitives/InputGroup.js.map +1 -0
- package/dist/primitives/InputOTP.d.ts +7 -0
- package/dist/primitives/InputOTP.js +116 -0
- package/dist/primitives/InputOTP.js.map +1 -0
- package/dist/primitives/Item.d.ts +13 -0
- package/dist/primitives/Item.js +197 -0
- package/dist/primitives/Item.js.map +1 -0
- package/dist/primitives/Kbd.d.ts +4 -0
- package/dist/primitives/Kbd.js +42 -0
- package/dist/primitives/Kbd.js.map +1 -0
- package/dist/primitives/Label.d.ts +4 -0
- package/dist/primitives/Label.js +13 -0
- package/dist/primitives/Label.js.map +1 -0
- package/dist/primitives/Menubar.d.ts +19 -0
- package/dist/primitives/Menubar.js +699 -0
- package/dist/primitives/Menubar.js.map +1 -0
- package/dist/primitives/NativeSelect.d.ts +6 -0
- package/dist/primitives/NativeSelect.js +58 -0
- package/dist/primitives/NativeSelect.js.map +1 -0
- package/dist/primitives/NavigationMenu.d.ts +12 -0
- package/dist/primitives/NavigationMenu.js +945 -0
- package/dist/primitives/NavigationMenu.js.map +1 -0
- package/dist/primitives/Pagination.d.ts +10 -0
- package/dist/primitives/Pagination.js +171 -0
- package/dist/primitives/Pagination.js.map +1 -0
- package/dist/primitives/Popover.d.ts +10 -0
- package/dist/primitives/Popover.js +464 -0
- package/dist/primitives/Popover.js.map +1 -0
- package/dist/primitives/Progress.d.ts +4 -0
- package/dist/primitives/Progress.js +126 -0
- package/dist/primitives/Progress.js.map +1 -0
- package/dist/primitives/RadioGroup.d.ts +9 -0
- package/dist/primitives/RadioGroup.js +352 -0
- package/dist/primitives/RadioGroup.js.map +1 -0
- package/dist/primitives/Resizable.d.ts +6 -0
- package/dist/primitives/Resizable.js +2096 -0
- package/dist/primitives/Resizable.js.map +1 -0
- package/dist/primitives/ScrollArea.d.ts +5 -0
- package/dist/primitives/ScrollArea.js +777 -0
- package/dist/primitives/ScrollArea.js.map +1 -0
- package/dist/primitives/Select.d.ts +13 -0
- package/dist/primitives/Select.js +1433 -0
- package/dist/primitives/Select.js.map +1 -0
- package/dist/primitives/Separator.d.ts +4 -0
- package/dist/primitives/Separator.js +12 -0
- package/dist/primitives/Separator.js.map +1 -0
- package/dist/primitives/Sheet.d.ts +21 -0
- package/dist/primitives/Sheet.js +110 -0
- package/dist/primitives/Sheet.js.map +1 -0
- package/dist/primitives/Sidebar.d.ts +26 -0
- package/dist/primitives/Sidebar.js +723 -0
- package/dist/primitives/Sidebar.js.map +1 -0
- package/dist/primitives/Skeleton.d.ts +4 -0
- package/dist/primitives/Skeleton.js +8 -0
- package/dist/primitives/Skeleton.js.map +1 -0
- package/dist/primitives/Slider.d.ts +3 -0
- package/dist/primitives/Slider.js +609 -0
- package/dist/primitives/Slider.js.map +1 -0
- package/dist/primitives/Sonner.d.ts +4 -0
- package/dist/primitives/Sonner.js +59 -0
- package/dist/primitives/Sonner.js.map +1 -0
- package/dist/primitives/Spinner.d.ts +4 -0
- package/dist/primitives/Spinner.js +16 -0
- package/dist/primitives/Spinner.js.map +1 -0
- package/dist/primitives/Switch.d.ts +7 -0
- package/dist/primitives/Switch.js +199 -0
- package/dist/primitives/Switch.js.map +1 -0
- package/dist/primitives/Table.d.ts +11 -0
- package/dist/primitives/Table.js +128 -0
- package/dist/primitives/Table.js.map +1 -0
- package/dist/primitives/Tabs.d.ts +8 -0
- package/dist/primitives/Tabs.js +289 -0
- package/dist/primitives/Tabs.js.map +1 -0
- package/dist/primitives/Textarea.d.ts +3 -0
- package/dist/primitives/Textarea.js +10 -0
- package/dist/primitives/Textarea.js.map +1 -0
- package/dist/primitives/Toggle.d.ts +5 -0
- package/dist/primitives/Toggle.js +26 -0
- package/dist/primitives/Toggle.js.map +1 -0
- package/dist/primitives/ToggleGroup.d.ts +5 -0
- package/dist/primitives/ToggleGroup.js +259 -0
- package/dist/primitives/ToggleGroup.js.map +1 -0
- package/dist/primitives/Tooltip.d.ts +7 -0
- package/dist/primitives/Tooltip.js +29 -0
- package/dist/primitives/Tooltip.js.map +1 -0
- package/dist/primitives/index.d.ts +54 -0
- package/dist/primitives/index.js +124 -0
- package/dist/primitives/index.js.map +1 -0
- package/dist/redux-BKH6DnBB.js +235 -0
- package/dist/redux-BKH6DnBB.js.map +1 -0
- package/dist/renderIcon-C6twJSqH.js +26 -0
- package/dist/renderIcon-C6twJSqH.js.map +1 -0
- package/dist/search-B5K8FsJs.js +29 -0
- package/dist/search-B5K8FsJs.js.map +1 -0
- package/dist/separator-ByRsc-y-.js +53 -0
- package/dist/separator-ByRsc-y-.js.map +1 -0
- package/dist/shadcn/components/accordion.d.ts +7 -0
- package/dist/shadcn/components/alert-dialog.d.ts +18 -0
- package/dist/shadcn/components/alert.d.ts +10 -0
- package/dist/shadcn/components/aspect-ratio.d.ts +3 -0
- package/dist/shadcn/components/avatar.d.ts +11 -0
- package/dist/shadcn/components/badge.d.ts +9 -0
- package/dist/shadcn/components/breadcrumb.d.ts +11 -0
- package/dist/shadcn/components/button-group.d.ts +11 -0
- package/dist/shadcn/components/button.d.ts +13 -0
- package/dist/shadcn/components/calendar.d.ts +10 -0
- package/dist/shadcn/components/card.d.ts +11 -0
- package/dist/shadcn/components/carousel.d.ts +28 -0
- package/dist/shadcn/components/chart.d.ts +44 -0
- package/dist/shadcn/components/checkbox.d.ts +4 -0
- package/dist/shadcn/components/collapsible.d.ts +5 -0
- package/dist/shadcn/components/combobox.d.ts +24 -0
- package/dist/shadcn/components/command.d.ts +20 -0
- package/dist/shadcn/components/context-menu.d.ts +31 -0
- package/dist/shadcn/components/dialog.d.ts +18 -0
- package/dist/shadcn/components/drawer.d.ts +13 -0
- package/dist/shadcn/components/dropdown-menu.d.ts +29 -0
- package/dist/shadcn/components/empty.d.ts +11 -0
- package/dist/shadcn/components/field.d.ts +24 -0
- package/dist/shadcn/components/hover-card.d.ts +6 -0
- package/dist/shadcn/components/input-group.d.ts +16 -0
- package/dist/shadcn/components/input-otp.d.ts +11 -0
- package/dist/shadcn/components/input.d.ts +3 -0
- package/dist/shadcn/components/item.d.ts +23 -0
- package/dist/shadcn/components/kbd.d.ts +4 -0
- package/dist/shadcn/components/label.d.ts +4 -0
- package/dist/shadcn/components/menubar.d.ts +30 -0
- package/dist/shadcn/components/native-select.d.ts +8 -0
- package/dist/shadcn/components/navigation-menu.d.ts +14 -0
- package/dist/shadcn/components/pagination.d.ts +17 -0
- package/dist/shadcn/components/popover.d.ts +10 -0
- package/dist/shadcn/components/progress.d.ts +4 -0
- package/dist/shadcn/components/radio-group.d.ts +5 -0
- package/dist/shadcn/components/resizable.d.ts +7 -0
- package/dist/shadcn/components/scroll-area.d.ts +5 -0
- package/dist/shadcn/components/select.d.ts +15 -0
- package/dist/shadcn/components/separator.d.ts +4 -0
- package/dist/shadcn/components/sheet.d.ts +14 -0
- package/dist/shadcn/components/sidebar.d.ts +69 -0
- package/dist/shadcn/components/skeleton.d.ts +2 -0
- package/dist/shadcn/components/slider.d.ts +4 -0
- package/dist/shadcn/components/sonner.d.ts +3 -0
- package/dist/shadcn/components/spinner.d.ts +3 -0
- package/dist/shadcn/components/switch.d.ts +6 -0
- package/dist/shadcn/components/table.d.ts +10 -0
- package/dist/shadcn/components/tabs.d.ts +11 -0
- package/dist/shadcn/components/textarea.d.ts +3 -0
- package/dist/shadcn/components/toggle-group.d.ts +10 -0
- package/dist/shadcn/components/toggle.d.ts +9 -0
- package/dist/shadcn/components/tooltip.d.ts +7 -0
- package/dist/shadcn/hooks/use-mobile.d.ts +1 -0
- package/dist/shadcn/lib/utils.d.ts +2 -0
- package/dist/shared/HelpIcon.d.ts +30 -0
- package/dist/shared/renderIcon.d.ts +5 -0
- package/dist/sheet-BD8c3_Va.js +129 -0
- package/dist/sheet-BD8c3_Va.js.map +1 -0
- package/dist/skeleton-D9P1ZyiS.js +16 -0
- package/dist/skeleton-D9P1ZyiS.js.map +1 -0
- package/dist/stubs/dayjs.d.ts +2 -0
- package/dist/textarea-ByEw7FT-.js +20 -0
- package/dist/textarea-ByEw7FT-.js.map +1 -0
- package/dist/toggle-bESUdU4A.js +75 -0
- package/dist/toggle-bESUdU4A.js.map +1 -0
- package/dist/tooltip-BUYRFmEv.js +557 -0
- package/dist/tooltip-BUYRFmEv.js.map +1 -0
- package/dist/translations/index.d.ts +80 -0
- package/dist/triangle-alert-C434HydH.js +25 -0
- package/dist/triangle-alert-C434HydH.js.map +1 -0
- package/dist/use-mobile-QbHL72cX.js +19 -0
- package/dist/use-mobile-QbHL72cX.js.map +1 -0
- package/dist/useAriaHiddenCleanup-BIUbPJ6V.js +45 -0
- package/dist/useAriaHiddenCleanup-BIUbPJ6V.js.map +1 -0
- package/dist/useOpenInteractionType-CVfxIsuz.js +4766 -0
- package/dist/useOpenInteractionType-CVfxIsuz.js.map +1 -0
- package/dist/utils/fieldIds.d.ts +2 -0
- package/dist/utils/hyphenize.d.ts +1 -0
- package/dist/utils/inputMask.d.ts +38 -0
- package/dist/utils/timezone.d.ts +7 -0
- package/dist/utils/withIconSize.d.ts +16 -0
- package/dist/utils-BJnb9o5c.js +3207 -0
- package/dist/utils-BJnb9o5c.js.map +1 -0
- package/dist/with-selector-Dv0G_V_o.js +115 -0
- package/dist/with-selector-Dv0G_V_o.js.map +1 -0
- package/dist/withIconSize-BonoFXeH.js +17 -0
- package/dist/withIconSize-BonoFXeH.js.map +1 -0
- package/dist/x-_o2T3n6D.js +18 -0
- package/dist/x-_o2T3n6D.js.map +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1,1361 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var fieldIds = require('./fieldIds-DiVU6GVS.js');
|
|
6
|
+
var primitives_Combobox = require('./Combobox-ChtPjQlO.js');
|
|
7
|
+
var SelectFieldWrapper = require('./SelectFieldWrapper-CIh_atln.js');
|
|
8
|
+
var utils = require('./utils-BhM0B89p.js');
|
|
9
|
+
var primitives_Spinner = require('./primitives/Spinner.js');
|
|
10
|
+
var x = require('./x-Brw3FJst.js');
|
|
11
|
+
var chevronDown = require('./chevron-down-CPsWSS51.js');
|
|
12
|
+
|
|
13
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
|
|
15
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
16
|
+
|
|
17
|
+
function useAsyncOptions({
|
|
18
|
+
loadOptions,
|
|
19
|
+
defaultOptions = false,
|
|
20
|
+
cacheOptions = false
|
|
21
|
+
}) {
|
|
22
|
+
const [asyncOptions, setAsyncOptions] = React.useState(
|
|
23
|
+
() => Array.isArray(defaultOptions) ? defaultOptions : []
|
|
24
|
+
);
|
|
25
|
+
const [isLoading, setIsLoading] = React.useState(false);
|
|
26
|
+
const cacheRef = React.useRef({});
|
|
27
|
+
const debounceRef = React.useRef(null);
|
|
28
|
+
const latestRequestRef = React.useRef(0);
|
|
29
|
+
const mountedRef = React.useRef(true);
|
|
30
|
+
React.useEffect(() => {
|
|
31
|
+
if (!loadOptions || defaultOptions !== true) return;
|
|
32
|
+
let cancelled = false;
|
|
33
|
+
setIsLoading(true);
|
|
34
|
+
loadOptions("").then((results) => {
|
|
35
|
+
if (cancelled) return;
|
|
36
|
+
setAsyncOptions(results);
|
|
37
|
+
if (cacheOptions) cacheRef.current[""] = results;
|
|
38
|
+
setIsLoading(false);
|
|
39
|
+
}).catch(() => {
|
|
40
|
+
if (!cancelled) setIsLoading(false);
|
|
41
|
+
});
|
|
42
|
+
return () => {
|
|
43
|
+
cancelled = true;
|
|
44
|
+
};
|
|
45
|
+
}, []);
|
|
46
|
+
React.useEffect(() => {
|
|
47
|
+
return () => {
|
|
48
|
+
mountedRef.current = false;
|
|
49
|
+
if (debounceRef.current) clearTimeout(debounceRef.current);
|
|
50
|
+
};
|
|
51
|
+
}, []);
|
|
52
|
+
const handleAsyncInputChange = React.useCallback(
|
|
53
|
+
(value) => {
|
|
54
|
+
if (!loadOptions) return;
|
|
55
|
+
const query = value.trim();
|
|
56
|
+
if (cacheOptions && query in cacheRef.current) {
|
|
57
|
+
setAsyncOptions(cacheRef.current[query]);
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
if (debounceRef.current) clearTimeout(debounceRef.current);
|
|
61
|
+
debounceRef.current = setTimeout(() => {
|
|
62
|
+
const requestId = ++latestRequestRef.current;
|
|
63
|
+
setIsLoading(true);
|
|
64
|
+
loadOptions(query).then((results) => {
|
|
65
|
+
if (requestId !== latestRequestRef.current || !mountedRef.current)
|
|
66
|
+
return;
|
|
67
|
+
setAsyncOptions(results);
|
|
68
|
+
if (cacheOptions) cacheRef.current[query] = results;
|
|
69
|
+
setIsLoading(false);
|
|
70
|
+
}).catch(() => {
|
|
71
|
+
if (requestId === latestRequestRef.current && mountedRef.current) {
|
|
72
|
+
setIsLoading(false);
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}, 300);
|
|
76
|
+
},
|
|
77
|
+
[loadOptions, cacheOptions]
|
|
78
|
+
);
|
|
79
|
+
return { asyncOptions, isLoading, handleAsyncInputChange };
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function useLazyLoadSentinel({
|
|
83
|
+
fetchMore,
|
|
84
|
+
isEnabled
|
|
85
|
+
}) {
|
|
86
|
+
const observerRef = React.useRef(null);
|
|
87
|
+
const fetchMoreRef = React.useRef(fetchMore);
|
|
88
|
+
fetchMoreRef.current = fetchMore;
|
|
89
|
+
const sentinelRef = React.useCallback(
|
|
90
|
+
(node) => {
|
|
91
|
+
observerRef.current?.disconnect();
|
|
92
|
+
observerRef.current = null;
|
|
93
|
+
if (!node || !isEnabled) return;
|
|
94
|
+
const observer = new IntersectionObserver(
|
|
95
|
+
(entries) => {
|
|
96
|
+
if (entries[0]?.isIntersecting) fetchMoreRef.current?.();
|
|
97
|
+
},
|
|
98
|
+
{ root: null, rootMargin: "0px", threshold: 0.1 }
|
|
99
|
+
);
|
|
100
|
+
observer.observe(node);
|
|
101
|
+
observerRef.current = observer;
|
|
102
|
+
},
|
|
103
|
+
[isEnabled]
|
|
104
|
+
);
|
|
105
|
+
React.useEffect(() => {
|
|
106
|
+
return () => {
|
|
107
|
+
observerRef.current?.disconnect();
|
|
108
|
+
};
|
|
109
|
+
}, []);
|
|
110
|
+
return sentinelRef;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const INPUT_CHANGE_REASON = "input-change";
|
|
114
|
+
const SIZE_CONFIG = {
|
|
115
|
+
small: {
|
|
116
|
+
chips: "min-h-8 md:min-h-7 text-base md:text-xs gap-0.5 px-1 py-0.5",
|
|
117
|
+
input: "text-base md:text-xs",
|
|
118
|
+
chip: "h-4.5 text-[0.6875rem] px-1",
|
|
119
|
+
icon: "size-3.5",
|
|
120
|
+
clearIcon: "size-3"
|
|
121
|
+
},
|
|
122
|
+
medium: {
|
|
123
|
+
chips: "min-h-8 text-base md:text-sm gap-1 px-2.5 py-1",
|
|
124
|
+
input: "text-base md:text-sm",
|
|
125
|
+
chip: "h-5.25 text-xs px-1.5",
|
|
126
|
+
icon: "size-4",
|
|
127
|
+
clearIcon: "size-3.5"
|
|
128
|
+
},
|
|
129
|
+
large: {
|
|
130
|
+
chips: "min-h-10 text-base md:text-sm gap-1 px-2.5 py-1.5",
|
|
131
|
+
input: "text-base md:text-sm",
|
|
132
|
+
chip: "h-6 text-xs px-2",
|
|
133
|
+
icon: "size-5",
|
|
134
|
+
clearIcon: "size-4"
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
const CREATE_PREFIX = "__create__:";
|
|
139
|
+
const isCreateValue = (val) => typeof val === "string" && val.startsWith(CREATE_PREFIX);
|
|
140
|
+
function useCreatableItems({
|
|
141
|
+
isCreatable,
|
|
142
|
+
isGrouped,
|
|
143
|
+
flatOptions,
|
|
144
|
+
selectedValues,
|
|
145
|
+
baseUiItems,
|
|
146
|
+
onCreateOption,
|
|
147
|
+
onChange,
|
|
148
|
+
onAsyncInputChange,
|
|
149
|
+
children
|
|
150
|
+
}) {
|
|
151
|
+
const [inputValue, setInputValue] = React.useState("");
|
|
152
|
+
const handleInputValueChange = React.useCallback(
|
|
153
|
+
(value, details) => {
|
|
154
|
+
const isTyping = details?.reason === INPUT_CHANGE_REASON;
|
|
155
|
+
const nextValue = isTyping ? value : "";
|
|
156
|
+
setInputValue(nextValue);
|
|
157
|
+
if (isTyping) onAsyncInputChange?.(nextValue);
|
|
158
|
+
},
|
|
159
|
+
[onAsyncInputChange]
|
|
160
|
+
);
|
|
161
|
+
const trimmedInput = inputValue.trim();
|
|
162
|
+
const showCreateOption = React.useMemo(() => {
|
|
163
|
+
if (!isCreatable || trimmedInput.length === 0) return false;
|
|
164
|
+
const lower = trimmedInput.toLowerCase();
|
|
165
|
+
return !flatOptions.some(
|
|
166
|
+
(o) => String(o.label).toLowerCase() === lower || String(o.value).toLowerCase() === lower
|
|
167
|
+
) && !selectedValues.includes(trimmedInput);
|
|
168
|
+
}, [isCreatable, trimmedInput, flatOptions, selectedValues]);
|
|
169
|
+
const effectiveItems = React__default.default.useMemo(
|
|
170
|
+
() => computeEffectiveItems(
|
|
171
|
+
children,
|
|
172
|
+
baseUiItems,
|
|
173
|
+
showCreateOption,
|
|
174
|
+
isGrouped,
|
|
175
|
+
trimmedInput
|
|
176
|
+
),
|
|
177
|
+
[baseUiItems, children, isGrouped, showCreateOption, trimmedInput]
|
|
178
|
+
);
|
|
179
|
+
const baseFilter = primitives_Combobox.useComboboxFilter({ multiple: true });
|
|
180
|
+
const optionFilter = React.useCallback(
|
|
181
|
+
(itemValue, _query, itemToString) => isCreateValue(itemValue) || baseFilter.contains(itemValue, trimmedInput, itemToString),
|
|
182
|
+
[baseFilter, trimmedInput]
|
|
183
|
+
);
|
|
184
|
+
const handleValueChange = React.useCallback(
|
|
185
|
+
(next) => {
|
|
186
|
+
const raw = next ?? [];
|
|
187
|
+
const createEntry = raw.find((v) => isCreateValue(v));
|
|
188
|
+
if (createEntry) {
|
|
189
|
+
const newValue = createEntry.slice(CREATE_PREFIX.length);
|
|
190
|
+
const withNewValue = raw.map((v) => v === createEntry ? newValue : v);
|
|
191
|
+
onCreateOption?.(newValue);
|
|
192
|
+
onChange?.(withNewValue);
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
onChange?.(raw);
|
|
196
|
+
},
|
|
197
|
+
[onChange, onCreateOption]
|
|
198
|
+
);
|
|
199
|
+
return {
|
|
200
|
+
inputValue,
|
|
201
|
+
showCreateOption,
|
|
202
|
+
effectiveItems,
|
|
203
|
+
optionFilter,
|
|
204
|
+
handleInputValueChange,
|
|
205
|
+
handleValueChange
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
function isOptionGroup(opt) {
|
|
210
|
+
return "options" in opt && Array.isArray(opt.options);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
function assignRef(ref, element) {
|
|
214
|
+
if (typeof ref === "function") {
|
|
215
|
+
ref(element);
|
|
216
|
+
} else if (ref) {
|
|
217
|
+
ref.current = element;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
function normalizeOption(option, getValue, getLabel) {
|
|
221
|
+
if (!getValue && !getLabel) return option;
|
|
222
|
+
return {
|
|
223
|
+
...option,
|
|
224
|
+
value: getValue ? getValue(option) : option?.value,
|
|
225
|
+
label: getLabel ? getLabel(option) : option?.label
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
function normalizeOptions(options, getValue, getLabel) {
|
|
229
|
+
if (!options) return options;
|
|
230
|
+
if (!getValue && !getLabel) return options;
|
|
231
|
+
return options.map(
|
|
232
|
+
(opt) => opt && Array.isArray(opt.options) ? {
|
|
233
|
+
...opt,
|
|
234
|
+
options: opt.options.map(
|
|
235
|
+
(o) => normalizeOption(o, getValue, getLabel)
|
|
236
|
+
)
|
|
237
|
+
} : normalizeOption(opt, getValue, getLabel)
|
|
238
|
+
);
|
|
239
|
+
}
|
|
240
|
+
function flattenOptions(options) {
|
|
241
|
+
return options.flatMap((opt) => isOptionGroup(opt) ? opt.options : [opt]);
|
|
242
|
+
}
|
|
243
|
+
function hasGroups(options) {
|
|
244
|
+
return options.some(isOptionGroup);
|
|
245
|
+
}
|
|
246
|
+
function toBaseUiItems(options) {
|
|
247
|
+
if (hasGroups(options)) {
|
|
248
|
+
return options.filter(isOptionGroup).map((g) => ({
|
|
249
|
+
label: g.label,
|
|
250
|
+
items: g.options.map((o) => o.value)
|
|
251
|
+
}));
|
|
252
|
+
}
|
|
253
|
+
return options.map((o) => o.value);
|
|
254
|
+
}
|
|
255
|
+
function resolveIsSearchable({
|
|
256
|
+
isSearchable,
|
|
257
|
+
searchThreshold,
|
|
258
|
+
optionCount,
|
|
259
|
+
isCountKnown
|
|
260
|
+
}) {
|
|
261
|
+
if (!isSearchable) return false;
|
|
262
|
+
if (searchThreshold === void 0 || !isCountKnown) return true;
|
|
263
|
+
return optionCount >= searchThreshold;
|
|
264
|
+
}
|
|
265
|
+
function computeEffectiveItems(children, baseUiItems, showCreateOption, isGrouped, trimmedInput) {
|
|
266
|
+
if (children) return void 0;
|
|
267
|
+
const createValue = showCreateOption ? `${CREATE_PREFIX}${trimmedInput}` : null;
|
|
268
|
+
if (!baseUiItems && !createValue) return void 0;
|
|
269
|
+
const base = baseUiItems ?? [];
|
|
270
|
+
if (!createValue) return base;
|
|
271
|
+
if (!isGrouped) {
|
|
272
|
+
return [...base, createValue];
|
|
273
|
+
}
|
|
274
|
+
return [
|
|
275
|
+
...base,
|
|
276
|
+
{ label: "", items: [createValue] }
|
|
277
|
+
];
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
function useMultiSelectOptions(props) {
|
|
281
|
+
const isAsync = !!props.loadOptions;
|
|
282
|
+
const { asyncOptions, isLoading, handleAsyncInputChange } = useAsyncOptions({
|
|
283
|
+
loadOptions: props.loadOptions,
|
|
284
|
+
defaultOptions: props.defaultOptions ?? false,
|
|
285
|
+
cacheOptions: props.cacheOptions ?? false
|
|
286
|
+
});
|
|
287
|
+
const resolvedOptions = isAsync ? asyncOptions : props.options ?? [];
|
|
288
|
+
const flatOptions = flattenOptions(resolvedOptions);
|
|
289
|
+
const isGrouped = hasGroups(resolvedOptions);
|
|
290
|
+
const baseUiItems = React__default.default.useMemo(
|
|
291
|
+
() => resolvedOptions.length > 0 ? toBaseUiItems(resolvedOptions) : void 0,
|
|
292
|
+
[resolvedOptions]
|
|
293
|
+
);
|
|
294
|
+
const hasMoreLazy = (props.isAsyncLoadOptionEnabled ?? false) && typeof props.totalOptionsCount === "number" && flatOptions.length < props.totalOptionsCount;
|
|
295
|
+
const loaderCallbackRef = useLazyLoadSentinel({
|
|
296
|
+
fetchMore: props.fetchMore,
|
|
297
|
+
isEnabled: props.isAsyncLoadOptionEnabled ?? false
|
|
298
|
+
});
|
|
299
|
+
return {
|
|
300
|
+
isAsync,
|
|
301
|
+
resolvedOptions,
|
|
302
|
+
flatOptions,
|
|
303
|
+
isGrouped,
|
|
304
|
+
isLoading,
|
|
305
|
+
handleAsyncInputChange,
|
|
306
|
+
baseUiItems,
|
|
307
|
+
hasMoreLazy,
|
|
308
|
+
loaderCallbackRef
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
const defaultFormatCreateLabel$1 = (v) => `Create "${v}"`;
|
|
313
|
+
function useSelectState(props) {
|
|
314
|
+
const {
|
|
315
|
+
id: idProp,
|
|
316
|
+
size = "medium",
|
|
317
|
+
label = "",
|
|
318
|
+
error = "",
|
|
319
|
+
helpText = "",
|
|
320
|
+
value: valueProp,
|
|
321
|
+
defaultValue,
|
|
322
|
+
onChange,
|
|
323
|
+
dataTestId,
|
|
324
|
+
isCreatable = false,
|
|
325
|
+
onCreateOption,
|
|
326
|
+
formatCreateLabel = defaultFormatCreateLabel$1,
|
|
327
|
+
formatOptionLabel,
|
|
328
|
+
formatTriggerLabel,
|
|
329
|
+
isClearable = false,
|
|
330
|
+
isDisabled = false,
|
|
331
|
+
required = false,
|
|
332
|
+
isSearchable: isSearchableProp = true,
|
|
333
|
+
searchPosition = "trigger",
|
|
334
|
+
searchPlaceholder = "Search...",
|
|
335
|
+
searchThreshold,
|
|
336
|
+
isAsyncLoadOptionEnabled = false,
|
|
337
|
+
autoHighlight = true,
|
|
338
|
+
onOpenChange,
|
|
339
|
+
children
|
|
340
|
+
} = props;
|
|
341
|
+
const opt = useMultiSelectOptions(props);
|
|
342
|
+
const generatedId = React.useId();
|
|
343
|
+
const id = idProp ?? generatedId;
|
|
344
|
+
const errorId = `error_${id}`;
|
|
345
|
+
const helpTextId = `helpText_${id}`;
|
|
346
|
+
const labelId = `label_${id}`;
|
|
347
|
+
const sizeConfig = SIZE_CONFIG[size];
|
|
348
|
+
const isControlled = valueProp !== void 0;
|
|
349
|
+
const [internalValue, setInternalValue] = React.useState(
|
|
350
|
+
defaultValue ?? ""
|
|
351
|
+
);
|
|
352
|
+
const currentValue = isControlled ? valueProp ?? "" : internalValue;
|
|
353
|
+
const applyValue = React.useCallback(
|
|
354
|
+
(next) => {
|
|
355
|
+
if (!isControlled) setInternalValue(next);
|
|
356
|
+
onChange?.(next);
|
|
357
|
+
},
|
|
358
|
+
[isControlled, onChange]
|
|
359
|
+
);
|
|
360
|
+
const handleValueChange = React.useCallback(
|
|
361
|
+
(next) => {
|
|
362
|
+
const raw = next ?? "";
|
|
363
|
+
if (isCreateValue(raw)) {
|
|
364
|
+
const newValue = raw.slice(CREATE_PREFIX.length);
|
|
365
|
+
onCreateOption?.(newValue);
|
|
366
|
+
applyValue(newValue);
|
|
367
|
+
return;
|
|
368
|
+
}
|
|
369
|
+
applyValue(raw);
|
|
370
|
+
},
|
|
371
|
+
[applyValue, onCreateOption]
|
|
372
|
+
);
|
|
373
|
+
const [inputValue, setInputValueState] = React.useState("");
|
|
374
|
+
const trimmedInput = inputValue.trim();
|
|
375
|
+
const combinedHandleInputValueChange = React.useCallback(
|
|
376
|
+
(value, details) => {
|
|
377
|
+
const isTyping = details?.reason === INPUT_CHANGE_REASON;
|
|
378
|
+
const nextValue = isTyping ? value : "";
|
|
379
|
+
setInputValueState(nextValue);
|
|
380
|
+
if (isTyping && opt.isAsync) opt.handleAsyncInputChange(nextValue);
|
|
381
|
+
},
|
|
382
|
+
[opt.isAsync, opt.handleAsyncInputChange]
|
|
383
|
+
);
|
|
384
|
+
const handleClear = React.useCallback(() => {
|
|
385
|
+
applyValue("");
|
|
386
|
+
}, [applyValue]);
|
|
387
|
+
const showCreateOption = React.useMemo(() => {
|
|
388
|
+
if (!isCreatable || trimmedInput.length === 0 || currentValue === trimmedInput)
|
|
389
|
+
return false;
|
|
390
|
+
const lower = trimmedInput.toLowerCase();
|
|
391
|
+
return !opt.flatOptions.some(
|
|
392
|
+
(o) => String(o.label).toLowerCase() === lower || String(o.value).toLowerCase() === lower
|
|
393
|
+
);
|
|
394
|
+
}, [isCreatable, trimmedInput, currentValue, opt.flatOptions]);
|
|
395
|
+
const effectiveItems = React.useMemo(() => {
|
|
396
|
+
if (children) return void 0;
|
|
397
|
+
const base = opt.baseUiItems;
|
|
398
|
+
if (!showCreateOption) return base;
|
|
399
|
+
const createValue = `${CREATE_PREFIX}${trimmedInput}`;
|
|
400
|
+
if (!opt.isGrouped) {
|
|
401
|
+
return [...base ?? [], createValue];
|
|
402
|
+
}
|
|
403
|
+
return [
|
|
404
|
+
...base ?? [],
|
|
405
|
+
{ label: "", items: [createValue] }
|
|
406
|
+
];
|
|
407
|
+
}, [
|
|
408
|
+
children,
|
|
409
|
+
opt.baseUiItems,
|
|
410
|
+
opt.isGrouped,
|
|
411
|
+
showCreateOption,
|
|
412
|
+
trimmedInput
|
|
413
|
+
]);
|
|
414
|
+
const baseFilter = primitives_Combobox.useComboboxFilter({ multiple: true });
|
|
415
|
+
const optionFilter = React.useCallback(
|
|
416
|
+
(itemValue, _query, itemToString) => isCreateValue(itemValue) || baseFilter.contains(itemValue, trimmedInput, itemToString),
|
|
417
|
+
[baseFilter, trimmedInput]
|
|
418
|
+
);
|
|
419
|
+
const ariaDescribedBy = fieldIds.buildAriaDescribedBy(
|
|
420
|
+
error,
|
|
421
|
+
errorId,
|
|
422
|
+
helpText,
|
|
423
|
+
helpTextId
|
|
424
|
+
);
|
|
425
|
+
const testIdPrefix = fieldIds.buildTestIdPrefix(dataTestId, label);
|
|
426
|
+
const showClearButton = isClearable && currentValue !== "" && currentValue !== null && !isDisabled;
|
|
427
|
+
const isSearchable = resolveIsSearchable({
|
|
428
|
+
isSearchable: isSearchableProp,
|
|
429
|
+
searchThreshold,
|
|
430
|
+
optionCount: opt.flatOptions.length,
|
|
431
|
+
isCountKnown: !opt.isAsync && !isCreatable && !isAsyncLoadOptionEnabled
|
|
432
|
+
});
|
|
433
|
+
const flatOptionsMap = React.useMemo(
|
|
434
|
+
() => new Map(opt.flatOptions.map((o) => [o.value, o])),
|
|
435
|
+
[opt.flatOptions]
|
|
436
|
+
);
|
|
437
|
+
const labelForValue = React.useCallback(
|
|
438
|
+
(val) => {
|
|
439
|
+
if (isCreateValue(val)) {
|
|
440
|
+
return formatCreateLabel(val.slice(CREATE_PREFIX.length));
|
|
441
|
+
}
|
|
442
|
+
return String(flatOptionsMap.get(val)?.label ?? val ?? "");
|
|
443
|
+
},
|
|
444
|
+
[flatOptionsMap, formatCreateLabel]
|
|
445
|
+
);
|
|
446
|
+
const renderOption = React.useCallback(
|
|
447
|
+
(val) => {
|
|
448
|
+
if (formatOptionLabel && !isCreateValue(val)) {
|
|
449
|
+
const option = flatOptionsMap.get(val);
|
|
450
|
+
if (option) return formatOptionLabel(option);
|
|
451
|
+
}
|
|
452
|
+
return labelForValue(val);
|
|
453
|
+
},
|
|
454
|
+
[formatOptionLabel, flatOptionsMap, labelForValue]
|
|
455
|
+
);
|
|
456
|
+
const renderTrigger = React.useCallback(
|
|
457
|
+
(val) => {
|
|
458
|
+
if (formatTriggerLabel && !isCreateValue(val)) {
|
|
459
|
+
const option = flatOptionsMap.get(val);
|
|
460
|
+
if (option) return formatTriggerLabel(option);
|
|
461
|
+
}
|
|
462
|
+
return renderOption(val);
|
|
463
|
+
},
|
|
464
|
+
[formatTriggerLabel, flatOptionsMap, renderOption]
|
|
465
|
+
);
|
|
466
|
+
return {
|
|
467
|
+
...opt,
|
|
468
|
+
id,
|
|
469
|
+
errorId,
|
|
470
|
+
helpTextId,
|
|
471
|
+
labelId,
|
|
472
|
+
sizeConfig,
|
|
473
|
+
isControlled,
|
|
474
|
+
currentValue,
|
|
475
|
+
effectiveItems,
|
|
476
|
+
optionFilter,
|
|
477
|
+
handleValueChange,
|
|
478
|
+
handleInputValueChange: combinedHandleInputValueChange,
|
|
479
|
+
handleClear,
|
|
480
|
+
showCreateOption,
|
|
481
|
+
showClearButton,
|
|
482
|
+
ariaDescribedBy,
|
|
483
|
+
testIdPrefix,
|
|
484
|
+
labelForValue,
|
|
485
|
+
renderOption,
|
|
486
|
+
renderTrigger,
|
|
487
|
+
flatOptionsMap,
|
|
488
|
+
label,
|
|
489
|
+
error,
|
|
490
|
+
helpText,
|
|
491
|
+
isDisabled,
|
|
492
|
+
required,
|
|
493
|
+
isSearchable,
|
|
494
|
+
searchPosition,
|
|
495
|
+
searchPlaceholder,
|
|
496
|
+
inputValue,
|
|
497
|
+
autoHighlight,
|
|
498
|
+
onOpenChange,
|
|
499
|
+
isClearable
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
const defaultFormatCreateLabel = (v) => `Create "${v}"`;
|
|
504
|
+
function useMultiSelectState(props) {
|
|
505
|
+
const {
|
|
506
|
+
id: idProp,
|
|
507
|
+
size = "medium",
|
|
508
|
+
label = "",
|
|
509
|
+
error = "",
|
|
510
|
+
helpText = "",
|
|
511
|
+
value: valueProp,
|
|
512
|
+
defaultValue,
|
|
513
|
+
onChange,
|
|
514
|
+
dataTestId,
|
|
515
|
+
isCreatable = false,
|
|
516
|
+
onCreateOption,
|
|
517
|
+
formatCreateLabel = defaultFormatCreateLabel,
|
|
518
|
+
formatOptionLabel,
|
|
519
|
+
isSearchable: isSearchableProp = true,
|
|
520
|
+
searchPosition = "trigger",
|
|
521
|
+
searchPlaceholder = "Search...",
|
|
522
|
+
searchThreshold,
|
|
523
|
+
isAsyncLoadOptionEnabled = false,
|
|
524
|
+
children
|
|
525
|
+
} = props;
|
|
526
|
+
const opt = useMultiSelectOptions(props);
|
|
527
|
+
const generatedId = React.useId();
|
|
528
|
+
const id = idProp ?? generatedId;
|
|
529
|
+
const errorId = `error_${id}`;
|
|
530
|
+
const helpTextId = `helpText_${id}`;
|
|
531
|
+
const labelId = `label_${id}`;
|
|
532
|
+
const sizeConfig = SIZE_CONFIG[size];
|
|
533
|
+
const isSearchable = resolveIsSearchable({
|
|
534
|
+
isSearchable: isSearchableProp,
|
|
535
|
+
searchThreshold,
|
|
536
|
+
optionCount: opt.flatOptions.length,
|
|
537
|
+
isCountKnown: !opt.isAsync && !isCreatable && !isAsyncLoadOptionEnabled
|
|
538
|
+
});
|
|
539
|
+
const isControlled = valueProp !== void 0;
|
|
540
|
+
const [internalValue, setInternalValue] = React.useState(
|
|
541
|
+
defaultValue ?? []
|
|
542
|
+
);
|
|
543
|
+
const selectedValues = isControlled ? valueProp : internalValue;
|
|
544
|
+
const handleChange = React.useCallback(
|
|
545
|
+
(values) => {
|
|
546
|
+
setInternalValue(values);
|
|
547
|
+
onChange?.(values);
|
|
548
|
+
},
|
|
549
|
+
[onChange]
|
|
550
|
+
);
|
|
551
|
+
const {
|
|
552
|
+
showCreateOption,
|
|
553
|
+
effectiveItems,
|
|
554
|
+
optionFilter,
|
|
555
|
+
handleInputValueChange,
|
|
556
|
+
handleValueChange
|
|
557
|
+
} = useCreatableItems({
|
|
558
|
+
isCreatable,
|
|
559
|
+
isGrouped: opt.isGrouped,
|
|
560
|
+
flatOptions: opt.flatOptions,
|
|
561
|
+
selectedValues,
|
|
562
|
+
baseUiItems: opt.baseUiItems,
|
|
563
|
+
onCreateOption,
|
|
564
|
+
onChange: handleChange,
|
|
565
|
+
onAsyncInputChange: opt.isAsync ? opt.handleAsyncInputChange : void 0,
|
|
566
|
+
children
|
|
567
|
+
});
|
|
568
|
+
const ariaDescribedBy = fieldIds.buildAriaDescribedBy(
|
|
569
|
+
error,
|
|
570
|
+
errorId,
|
|
571
|
+
helpText,
|
|
572
|
+
helpTextId
|
|
573
|
+
);
|
|
574
|
+
const testIdPrefix = fieldIds.buildTestIdPrefix(dataTestId, label);
|
|
575
|
+
const flatOptionsMap = React.useMemo(
|
|
576
|
+
() => new Map(opt.flatOptions.map((o) => [o.value, o])),
|
|
577
|
+
[opt.flatOptions]
|
|
578
|
+
);
|
|
579
|
+
const labelForValue = React.useCallback(
|
|
580
|
+
(val) => {
|
|
581
|
+
if (isCreateValue(val)) {
|
|
582
|
+
return formatCreateLabel(val.slice(CREATE_PREFIX.length));
|
|
583
|
+
}
|
|
584
|
+
return String(flatOptionsMap.get(val)?.label ?? val ?? "");
|
|
585
|
+
},
|
|
586
|
+
[flatOptionsMap, formatCreateLabel]
|
|
587
|
+
);
|
|
588
|
+
const renderOption = React.useCallback(
|
|
589
|
+
(val) => {
|
|
590
|
+
if (formatOptionLabel && !isCreateValue(val)) {
|
|
591
|
+
const option = flatOptionsMap.get(val);
|
|
592
|
+
if (option) return formatOptionLabel(option);
|
|
593
|
+
}
|
|
594
|
+
return labelForValue(val);
|
|
595
|
+
},
|
|
596
|
+
[formatOptionLabel, flatOptionsMap, labelForValue]
|
|
597
|
+
);
|
|
598
|
+
return {
|
|
599
|
+
...opt,
|
|
600
|
+
id,
|
|
601
|
+
errorId,
|
|
602
|
+
helpTextId,
|
|
603
|
+
labelId,
|
|
604
|
+
sizeConfig,
|
|
605
|
+
isControlled,
|
|
606
|
+
selectedValues,
|
|
607
|
+
isSearchable,
|
|
608
|
+
searchPosition,
|
|
609
|
+
searchPlaceholder,
|
|
610
|
+
effectiveItems,
|
|
611
|
+
optionFilter,
|
|
612
|
+
handleInputValueChange,
|
|
613
|
+
handleValueChange,
|
|
614
|
+
showCreateOption,
|
|
615
|
+
ariaDescribedBy,
|
|
616
|
+
testIdPrefix,
|
|
617
|
+
labelForValue,
|
|
618
|
+
renderOption,
|
|
619
|
+
flatOptionsMap,
|
|
620
|
+
label,
|
|
621
|
+
error,
|
|
622
|
+
helpText
|
|
623
|
+
};
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
function OptionItem({
|
|
627
|
+
val,
|
|
628
|
+
flatOptionsMap,
|
|
629
|
+
renderOption,
|
|
630
|
+
testIdPrefix
|
|
631
|
+
}) {
|
|
632
|
+
const isCreateItem = isCreateValue(val);
|
|
633
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
634
|
+
primitives_Combobox.ComboboxItem,
|
|
635
|
+
{
|
|
636
|
+
value: val,
|
|
637
|
+
disabled: !isCreateItem && flatOptionsMap.get(val)?.disabled,
|
|
638
|
+
className: isCreateItem ? "text-primary" : void 0,
|
|
639
|
+
...testIdPrefix ? { "data-testid": `${testIdPrefix}-select-option` } : {},
|
|
640
|
+
children: renderOption(val)
|
|
641
|
+
},
|
|
642
|
+
val
|
|
643
|
+
);
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
function MultiSelectDropdown({
|
|
647
|
+
resolvedOptions,
|
|
648
|
+
flatOptionsMap,
|
|
649
|
+
isGrouped,
|
|
650
|
+
isLoading,
|
|
651
|
+
loadingMessage,
|
|
652
|
+
emptyMessage,
|
|
653
|
+
showCreateOption,
|
|
654
|
+
renderOption,
|
|
655
|
+
testIdPrefix,
|
|
656
|
+
hasMoreLazy,
|
|
657
|
+
loaderCallbackRef,
|
|
658
|
+
children
|
|
659
|
+
}) {
|
|
660
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
661
|
+
primitives_Combobox.ComboboxList,
|
|
662
|
+
{
|
|
663
|
+
...testIdPrefix ? { "data-testid": `${testIdPrefix}-select-menu` } : {},
|
|
664
|
+
children: [
|
|
665
|
+
isLoading && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex w-full justify-center py-2 text-center text-sm text-muted-foreground", children: loadingMessage }),
|
|
666
|
+
!isLoading && !showCreateOption && /* @__PURE__ */ jsxRuntime.jsx(primitives_Combobox.ComboboxEmpty, { children: emptyMessage }),
|
|
667
|
+
children ?? (resolvedOptions.length > 0 || showCreateOption ? isGrouped ? /* @__PURE__ */ jsxRuntime.jsx(primitives_Combobox.ComboboxCollection, { children: (group) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
668
|
+
primitives_Combobox.ComboboxGroup,
|
|
669
|
+
{
|
|
670
|
+
items: group.items,
|
|
671
|
+
children: [
|
|
672
|
+
group.label && /* @__PURE__ */ jsxRuntime.jsx(primitives_Combobox.ComboboxLabel, { children: group.label }),
|
|
673
|
+
/* @__PURE__ */ jsxRuntime.jsx(primitives_Combobox.ComboboxCollection, { children: (val) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
674
|
+
OptionItem,
|
|
675
|
+
{
|
|
676
|
+
val,
|
|
677
|
+
flatOptionsMap,
|
|
678
|
+
renderOption,
|
|
679
|
+
testIdPrefix
|
|
680
|
+
},
|
|
681
|
+
val
|
|
682
|
+
) })
|
|
683
|
+
]
|
|
684
|
+
},
|
|
685
|
+
group.label || "__create__"
|
|
686
|
+
) }) : /* @__PURE__ */ jsxRuntime.jsx(primitives_Combobox.ComboboxCollection, { children: (val) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
687
|
+
OptionItem,
|
|
688
|
+
{
|
|
689
|
+
val,
|
|
690
|
+
flatOptionsMap,
|
|
691
|
+
renderOption,
|
|
692
|
+
testIdPrefix
|
|
693
|
+
},
|
|
694
|
+
val
|
|
695
|
+
) }) : null),
|
|
696
|
+
hasMoreLazy && /* @__PURE__ */ jsxRuntime.jsx(
|
|
697
|
+
"div",
|
|
698
|
+
{
|
|
699
|
+
ref: loaderCallbackRef,
|
|
700
|
+
className: "flex w-full items-center justify-center py-3",
|
|
701
|
+
"data-testid": `${testIdPrefix}-lazy-loader`,
|
|
702
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(primitives_Spinner.Spinner, {})
|
|
703
|
+
}
|
|
704
|
+
)
|
|
705
|
+
]
|
|
706
|
+
}
|
|
707
|
+
);
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
const omitUndefined = (props) => Object.fromEntries(
|
|
711
|
+
Object.entries(props).filter(([, value]) => value !== void 0)
|
|
712
|
+
);
|
|
713
|
+
const SelectAnchor = React.forwardRef(
|
|
714
|
+
({ renderAsTrigger, className, dataTestId, triggerFieldProps, children }, ref) => {
|
|
715
|
+
if (!renderAsTrigger) {
|
|
716
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
717
|
+
"div",
|
|
718
|
+
{
|
|
719
|
+
ref,
|
|
720
|
+
className,
|
|
721
|
+
...dataTestId ? { "data-testid": dataTestId } : {},
|
|
722
|
+
children
|
|
723
|
+
}
|
|
724
|
+
);
|
|
725
|
+
}
|
|
726
|
+
const { id, ...ariaProps } = triggerFieldProps ?? {};
|
|
727
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
728
|
+
primitives_Combobox.ComboboxTrigger$1,
|
|
729
|
+
{
|
|
730
|
+
nativeButton: false,
|
|
731
|
+
...id ? { id } : {},
|
|
732
|
+
render: ({ ref: baseUiRef, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
733
|
+
"div",
|
|
734
|
+
{
|
|
735
|
+
...props,
|
|
736
|
+
...omitUndefined(ariaProps),
|
|
737
|
+
ref: (element) => {
|
|
738
|
+
assignRef(baseUiRef, element);
|
|
739
|
+
assignRef(ref, element);
|
|
740
|
+
},
|
|
741
|
+
className,
|
|
742
|
+
...dataTestId ? { "data-testid": dataTestId } : {}
|
|
743
|
+
}
|
|
744
|
+
),
|
|
745
|
+
children
|
|
746
|
+
}
|
|
747
|
+
);
|
|
748
|
+
}
|
|
749
|
+
);
|
|
750
|
+
SelectAnchor.displayName = "SelectAnchor";
|
|
751
|
+
|
|
752
|
+
const SelectCombobox = React.forwardRef(
|
|
753
|
+
({
|
|
754
|
+
name,
|
|
755
|
+
id,
|
|
756
|
+
labelId,
|
|
757
|
+
effectiveItems,
|
|
758
|
+
labelForValue,
|
|
759
|
+
renderOption,
|
|
760
|
+
renderTrigger,
|
|
761
|
+
isSearchable,
|
|
762
|
+
searchPosition,
|
|
763
|
+
searchPlaceholder,
|
|
764
|
+
inputValue,
|
|
765
|
+
isAsync,
|
|
766
|
+
optionFilter,
|
|
767
|
+
currentValue,
|
|
768
|
+
handleValueChange,
|
|
769
|
+
handleInputValueChange,
|
|
770
|
+
handleClear,
|
|
771
|
+
onOpenChange,
|
|
772
|
+
isDisabled,
|
|
773
|
+
autoHighlight,
|
|
774
|
+
required,
|
|
775
|
+
showClearButton,
|
|
776
|
+
sizeConfig,
|
|
777
|
+
error,
|
|
778
|
+
placeholder,
|
|
779
|
+
ariaDescribedBy,
|
|
780
|
+
testIdPrefix,
|
|
781
|
+
inputClassName,
|
|
782
|
+
contentProps,
|
|
783
|
+
dropdownProps,
|
|
784
|
+
children
|
|
785
|
+
}, ref) => {
|
|
786
|
+
const [anchorEl, setAnchorEl] = React.useState(null);
|
|
787
|
+
const isContentSearch = isSearchable && searchPosition === "content";
|
|
788
|
+
const renderTriggerInput = searchPosition !== "content";
|
|
789
|
+
const isTriggerSearch = isSearchable && renderTriggerInput;
|
|
790
|
+
const useTriggerAnchor = !isTriggerSearch;
|
|
791
|
+
const hasValue = currentValue !== "" && currentValue !== null;
|
|
792
|
+
const showValue = hasValue && (!isTriggerSearch || inputValue === "");
|
|
793
|
+
const showPlaceholder = !hasValue && !isTriggerSearch;
|
|
794
|
+
const setTriggerEl = React.useCallback(
|
|
795
|
+
(element) => {
|
|
796
|
+
setAnchorEl(element);
|
|
797
|
+
if (renderTriggerInput) return;
|
|
798
|
+
assignRef(ref, element);
|
|
799
|
+
},
|
|
800
|
+
[ref, renderTriggerInput]
|
|
801
|
+
);
|
|
802
|
+
const handleClearClick = React.useCallback(
|
|
803
|
+
(event) => {
|
|
804
|
+
event.stopPropagation();
|
|
805
|
+
event.preventDefault();
|
|
806
|
+
handleClear();
|
|
807
|
+
},
|
|
808
|
+
[handleClear]
|
|
809
|
+
);
|
|
810
|
+
return (
|
|
811
|
+
// @ts-expect-error — conditional spread creates a union that TS cannot narrow to the Combobox discriminated-union props
|
|
812
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
813
|
+
primitives_Combobox.Combobox,
|
|
814
|
+
{
|
|
815
|
+
name,
|
|
816
|
+
...effectiveItems && !children ? {
|
|
817
|
+
items: effectiveItems,
|
|
818
|
+
itemToStringLabel: labelForValue,
|
|
819
|
+
...!isSearchable || isAsync ? { filter: null } : { filter: optionFilter }
|
|
820
|
+
} : {},
|
|
821
|
+
value: currentValue,
|
|
822
|
+
onValueChange: handleValueChange,
|
|
823
|
+
inputValue,
|
|
824
|
+
onInputValueChange: handleInputValueChange,
|
|
825
|
+
onOpenChange,
|
|
826
|
+
disabled: isDisabled,
|
|
827
|
+
autoHighlight,
|
|
828
|
+
children: [
|
|
829
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
830
|
+
SelectAnchor,
|
|
831
|
+
{
|
|
832
|
+
ref: setTriggerEl,
|
|
833
|
+
dataTestId: testIdPrefix,
|
|
834
|
+
renderAsTrigger: useTriggerAnchor,
|
|
835
|
+
className: useTriggerAnchor ? "cursor-pointer" : void 0,
|
|
836
|
+
triggerFieldProps: renderTriggerInput ? void 0 : {
|
|
837
|
+
id,
|
|
838
|
+
"aria-labelledby": labelId,
|
|
839
|
+
"aria-describedby": ariaDescribedBy,
|
|
840
|
+
"aria-required": required || void 0,
|
|
841
|
+
"aria-invalid": !!error || void 0
|
|
842
|
+
},
|
|
843
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
844
|
+
primitives_Combobox.ComboboxChips,
|
|
845
|
+
{
|
|
846
|
+
className: utils.cn(
|
|
847
|
+
sizeConfig.chips,
|
|
848
|
+
!!error && "border-destructive ring-3 ring-destructive/20 dark:border-destructive/50 dark:ring-destructive/40",
|
|
849
|
+
inputClassName
|
|
850
|
+
),
|
|
851
|
+
...testIdPrefix ? { "data-testid": `${testIdPrefix}-select-container` } : {},
|
|
852
|
+
children: [
|
|
853
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid min-w-0 flex-1 items-center [&>*]:col-start-1 [&>*]:row-start-1", children: [
|
|
854
|
+
showValue && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 truncate", children: renderTrigger(currentValue) }),
|
|
855
|
+
showPlaceholder && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 truncate text-placeholder", children: placeholder }),
|
|
856
|
+
renderTriggerInput && /* @__PURE__ */ jsxRuntime.jsx(
|
|
857
|
+
primitives_Combobox.ComboboxChipsInput,
|
|
858
|
+
{
|
|
859
|
+
ref,
|
|
860
|
+
id,
|
|
861
|
+
placeholder: isTriggerSearch && !hasValue ? placeholder : void 0,
|
|
862
|
+
"aria-invalid": !!error || void 0,
|
|
863
|
+
"aria-describedby": ariaDescribedBy,
|
|
864
|
+
"aria-required": required || void 0,
|
|
865
|
+
className: utils.cn(
|
|
866
|
+
sizeConfig.input,
|
|
867
|
+
"w-full min-w-0",
|
|
868
|
+
!isSearchable && "w-0 overflow-hidden p-0 opacity-0"
|
|
869
|
+
),
|
|
870
|
+
disabled: isDisabled,
|
|
871
|
+
...testIdPrefix ? { "data-testid": `${testIdPrefix}-select-input` } : {}
|
|
872
|
+
}
|
|
873
|
+
)
|
|
874
|
+
] }),
|
|
875
|
+
showClearButton && /* @__PURE__ */ jsxRuntime.jsx(
|
|
876
|
+
"button",
|
|
877
|
+
{
|
|
878
|
+
type: "button",
|
|
879
|
+
tabIndex: -1,
|
|
880
|
+
"aria-label": "Clear selection",
|
|
881
|
+
className: "shrink-0 text-muted-foreground hover:text-foreground",
|
|
882
|
+
onClick: handleClearClick,
|
|
883
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(x.X, { className: sizeConfig.clearIcon })
|
|
884
|
+
}
|
|
885
|
+
),
|
|
886
|
+
isTriggerSearch ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
887
|
+
primitives_Combobox.ComboboxTrigger,
|
|
888
|
+
{
|
|
889
|
+
className: utils.cn(
|
|
890
|
+
"shrink-0 bg-transparent p-0 text-muted-foreground hover:bg-transparent",
|
|
891
|
+
sizeConfig.icon
|
|
892
|
+
)
|
|
893
|
+
}
|
|
894
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
895
|
+
chevronDown.ChevronDown,
|
|
896
|
+
{
|
|
897
|
+
"aria-hidden": true,
|
|
898
|
+
className: utils.cn(
|
|
899
|
+
"pointer-events-none shrink-0 text-muted-foreground",
|
|
900
|
+
sizeConfig.icon
|
|
901
|
+
)
|
|
902
|
+
}
|
|
903
|
+
)
|
|
904
|
+
]
|
|
905
|
+
}
|
|
906
|
+
)
|
|
907
|
+
}
|
|
908
|
+
),
|
|
909
|
+
/* @__PURE__ */ jsxRuntime.jsxs(primitives_Combobox.ComboboxContent, { anchor: anchorEl, ...contentProps, children: [
|
|
910
|
+
isContentSearch && /* @__PURE__ */ jsxRuntime.jsx(
|
|
911
|
+
primitives_Combobox.ComboboxInput,
|
|
912
|
+
{
|
|
913
|
+
showTrigger: false,
|
|
914
|
+
placeholder: searchPlaceholder,
|
|
915
|
+
...labelId ? { "aria-labelledby": labelId } : { "aria-label": searchPlaceholder },
|
|
916
|
+
...testIdPrefix ? { "data-testid": `${testIdPrefix}-select-input` } : {}
|
|
917
|
+
}
|
|
918
|
+
),
|
|
919
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
920
|
+
MultiSelectDropdown,
|
|
921
|
+
{
|
|
922
|
+
...dropdownProps,
|
|
923
|
+
renderOption,
|
|
924
|
+
testIdPrefix,
|
|
925
|
+
children
|
|
926
|
+
}
|
|
927
|
+
)
|
|
928
|
+
] })
|
|
929
|
+
]
|
|
930
|
+
}
|
|
931
|
+
)
|
|
932
|
+
);
|
|
933
|
+
}
|
|
934
|
+
);
|
|
935
|
+
SelectCombobox.displayName = "SelectCombobox";
|
|
936
|
+
|
|
937
|
+
const MultiSelectCombobox = React.forwardRef(
|
|
938
|
+
({
|
|
939
|
+
name,
|
|
940
|
+
id,
|
|
941
|
+
labelId,
|
|
942
|
+
effectiveItems,
|
|
943
|
+
labelForValue,
|
|
944
|
+
renderOption,
|
|
945
|
+
isSearchable,
|
|
946
|
+
searchPosition,
|
|
947
|
+
searchPlaceholder,
|
|
948
|
+
isAsync,
|
|
949
|
+
optionFilter,
|
|
950
|
+
isControlled,
|
|
951
|
+
valueProp,
|
|
952
|
+
defaultValue,
|
|
953
|
+
selectedValues,
|
|
954
|
+
handleValueChange,
|
|
955
|
+
handleInputValueChange,
|
|
956
|
+
onOpenChange,
|
|
957
|
+
isDisabled,
|
|
958
|
+
autoHighlight,
|
|
959
|
+
required,
|
|
960
|
+
sizeConfig,
|
|
961
|
+
error,
|
|
962
|
+
chipsClassName,
|
|
963
|
+
inputClassName,
|
|
964
|
+
placeholder,
|
|
965
|
+
hideChipRemove,
|
|
966
|
+
ariaDescribedBy,
|
|
967
|
+
testIdPrefix,
|
|
968
|
+
contentProps,
|
|
969
|
+
dropdownProps,
|
|
970
|
+
children
|
|
971
|
+
}, ref) => {
|
|
972
|
+
const [anchorEl, setAnchorEl] = React.useState(null);
|
|
973
|
+
const isContentSearch = isSearchable && searchPosition === "content";
|
|
974
|
+
const renderTriggerInput = searchPosition !== "content";
|
|
975
|
+
const isTriggerSearch = isSearchable && renderTriggerInput;
|
|
976
|
+
const useTriggerAnchor = !isTriggerSearch;
|
|
977
|
+
const setTriggerEl = React.useCallback(
|
|
978
|
+
(element) => {
|
|
979
|
+
setAnchorEl(element);
|
|
980
|
+
if (renderTriggerInput) return;
|
|
981
|
+
assignRef(ref, element);
|
|
982
|
+
},
|
|
983
|
+
[ref, renderTriggerInput]
|
|
984
|
+
);
|
|
985
|
+
return (
|
|
986
|
+
// @ts-expect-error — conditional spread creates a union that TS cannot narrow to the Combobox discriminated-union props
|
|
987
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
988
|
+
primitives_Combobox.Combobox,
|
|
989
|
+
{
|
|
990
|
+
multiple: true,
|
|
991
|
+
name,
|
|
992
|
+
...effectiveItems && !children ? {
|
|
993
|
+
items: effectiveItems,
|
|
994
|
+
itemToStringLabel: labelForValue,
|
|
995
|
+
...!isSearchable || isAsync ? { filter: null } : { filter: optionFilter }
|
|
996
|
+
} : {},
|
|
997
|
+
...isControlled ? { value: valueProp } : { defaultValue },
|
|
998
|
+
onValueChange: handleValueChange,
|
|
999
|
+
onInputValueChange: handleInputValueChange,
|
|
1000
|
+
onOpenChange,
|
|
1001
|
+
disabled: isDisabled,
|
|
1002
|
+
autoHighlight,
|
|
1003
|
+
children: [
|
|
1004
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1005
|
+
SelectAnchor,
|
|
1006
|
+
{
|
|
1007
|
+
ref: setTriggerEl,
|
|
1008
|
+
renderAsTrigger: useTriggerAnchor,
|
|
1009
|
+
className: useTriggerAnchor ? "cursor-pointer" : void 0,
|
|
1010
|
+
triggerFieldProps: renderTriggerInput ? void 0 : {
|
|
1011
|
+
id,
|
|
1012
|
+
"aria-labelledby": labelId,
|
|
1013
|
+
"aria-describedby": ariaDescribedBy,
|
|
1014
|
+
"aria-required": required || void 0,
|
|
1015
|
+
"aria-invalid": !!error || void 0
|
|
1016
|
+
},
|
|
1017
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1018
|
+
primitives_Combobox.ComboboxChips,
|
|
1019
|
+
{
|
|
1020
|
+
className: utils.cn(
|
|
1021
|
+
sizeConfig.chips,
|
|
1022
|
+
!!error && "border-destructive ring-3 ring-destructive/20 dark:border-destructive/50 dark:ring-destructive/40",
|
|
1023
|
+
chipsClassName,
|
|
1024
|
+
inputClassName
|
|
1025
|
+
),
|
|
1026
|
+
...testIdPrefix ? { "data-testid": `${testIdPrefix}-select-container` } : {},
|
|
1027
|
+
children: [
|
|
1028
|
+
selectedValues.map((val, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1029
|
+
primitives_Combobox.ComboboxChip,
|
|
1030
|
+
{
|
|
1031
|
+
className: sizeConfig.chip,
|
|
1032
|
+
showRemove: !hideChipRemove,
|
|
1033
|
+
...renderTriggerInput || isDisabled ? {} : { tabIndex: index === 0 ? 0 : -1 },
|
|
1034
|
+
...testIdPrefix ? { "data-testid": `${testIdPrefix}-chip` } : {},
|
|
1035
|
+
children: renderOption(val)
|
|
1036
|
+
},
|
|
1037
|
+
val
|
|
1038
|
+
)),
|
|
1039
|
+
renderTriggerInput ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1040
|
+
primitives_Combobox.ComboboxChipsInput,
|
|
1041
|
+
{
|
|
1042
|
+
ref,
|
|
1043
|
+
id,
|
|
1044
|
+
placeholder: isTriggerSearch && selectedValues.length === 0 ? placeholder : void 0,
|
|
1045
|
+
"aria-invalid": !!error || void 0,
|
|
1046
|
+
"aria-describedby": ariaDescribedBy,
|
|
1047
|
+
"aria-required": required || void 0,
|
|
1048
|
+
className: utils.cn(
|
|
1049
|
+
sizeConfig.input,
|
|
1050
|
+
!isSearchable && "w-0 min-w-0 overflow-hidden p-0 opacity-0"
|
|
1051
|
+
),
|
|
1052
|
+
disabled: isDisabled,
|
|
1053
|
+
...testIdPrefix ? { "data-testid": `${testIdPrefix}-select-input` } : {}
|
|
1054
|
+
}
|
|
1055
|
+
) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1056
|
+
selectedValues.length === 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 flex-1 truncate text-placeholder", children: placeholder }),
|
|
1057
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1058
|
+
chevronDown.ChevronDown,
|
|
1059
|
+
{
|
|
1060
|
+
"aria-hidden": true,
|
|
1061
|
+
className: utils.cn(
|
|
1062
|
+
"pointer-events-none ms-auto shrink-0 text-muted-foreground",
|
|
1063
|
+
sizeConfig.icon
|
|
1064
|
+
)
|
|
1065
|
+
}
|
|
1066
|
+
)
|
|
1067
|
+
] })
|
|
1068
|
+
]
|
|
1069
|
+
}
|
|
1070
|
+
)
|
|
1071
|
+
}
|
|
1072
|
+
),
|
|
1073
|
+
/* @__PURE__ */ jsxRuntime.jsxs(primitives_Combobox.ComboboxContent, { anchor: anchorEl, ...contentProps, children: [
|
|
1074
|
+
isContentSearch && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1075
|
+
primitives_Combobox.ComboboxInput,
|
|
1076
|
+
{
|
|
1077
|
+
showTrigger: false,
|
|
1078
|
+
placeholder: searchPlaceholder,
|
|
1079
|
+
...labelId ? { "aria-labelledby": labelId } : { "aria-label": searchPlaceholder },
|
|
1080
|
+
...testIdPrefix ? { "data-testid": `${testIdPrefix}-select-input` } : {}
|
|
1081
|
+
}
|
|
1082
|
+
),
|
|
1083
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1084
|
+
MultiSelectDropdown,
|
|
1085
|
+
{
|
|
1086
|
+
...dropdownProps,
|
|
1087
|
+
renderOption,
|
|
1088
|
+
testIdPrefix,
|
|
1089
|
+
children
|
|
1090
|
+
}
|
|
1091
|
+
)
|
|
1092
|
+
] })
|
|
1093
|
+
]
|
|
1094
|
+
}
|
|
1095
|
+
)
|
|
1096
|
+
);
|
|
1097
|
+
}
|
|
1098
|
+
);
|
|
1099
|
+
MultiSelectCombobox.displayName = "MultiSelectCombobox";
|
|
1100
|
+
|
|
1101
|
+
const SingleSelectInner = React.forwardRef(
|
|
1102
|
+
(props, ref) => {
|
|
1103
|
+
const {
|
|
1104
|
+
id,
|
|
1105
|
+
label,
|
|
1106
|
+
error,
|
|
1107
|
+
helpText,
|
|
1108
|
+
errorId,
|
|
1109
|
+
helpTextId,
|
|
1110
|
+
labelId,
|
|
1111
|
+
isDisabled,
|
|
1112
|
+
required,
|
|
1113
|
+
testIdPrefix,
|
|
1114
|
+
effectiveItems,
|
|
1115
|
+
labelForValue,
|
|
1116
|
+
renderOption,
|
|
1117
|
+
renderTrigger,
|
|
1118
|
+
isSearchable,
|
|
1119
|
+
searchPosition,
|
|
1120
|
+
searchPlaceholder,
|
|
1121
|
+
inputValue,
|
|
1122
|
+
isAsync,
|
|
1123
|
+
optionFilter,
|
|
1124
|
+
isControlled,
|
|
1125
|
+
currentValue,
|
|
1126
|
+
handleValueChange,
|
|
1127
|
+
handleInputValueChange,
|
|
1128
|
+
handleClear,
|
|
1129
|
+
autoHighlight,
|
|
1130
|
+
showClearButton,
|
|
1131
|
+
sizeConfig,
|
|
1132
|
+
ariaDescribedBy,
|
|
1133
|
+
resolvedOptions,
|
|
1134
|
+
flatOptionsMap,
|
|
1135
|
+
isGrouped,
|
|
1136
|
+
isLoading,
|
|
1137
|
+
showCreateOption,
|
|
1138
|
+
hasMoreLazy,
|
|
1139
|
+
loaderCallbackRef
|
|
1140
|
+
} = useSelectState(props);
|
|
1141
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1142
|
+
SelectFieldWrapper.SelectFieldWrapper,
|
|
1143
|
+
{
|
|
1144
|
+
id,
|
|
1145
|
+
label,
|
|
1146
|
+
error,
|
|
1147
|
+
helpText,
|
|
1148
|
+
errorId,
|
|
1149
|
+
helpTextId,
|
|
1150
|
+
isDisabled,
|
|
1151
|
+
required,
|
|
1152
|
+
testIdPrefix,
|
|
1153
|
+
labelProps: props.labelProps,
|
|
1154
|
+
className: props.className,
|
|
1155
|
+
labelId,
|
|
1156
|
+
focusTargetOnLabelClick: searchPosition === "content",
|
|
1157
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1158
|
+
SelectCombobox,
|
|
1159
|
+
{
|
|
1160
|
+
ref,
|
|
1161
|
+
name: props.name,
|
|
1162
|
+
id,
|
|
1163
|
+
labelId: label ? labelId : void 0,
|
|
1164
|
+
effectiveItems,
|
|
1165
|
+
labelForValue,
|
|
1166
|
+
renderOption,
|
|
1167
|
+
renderTrigger,
|
|
1168
|
+
isSearchable,
|
|
1169
|
+
searchPosition,
|
|
1170
|
+
searchPlaceholder,
|
|
1171
|
+
inputValue,
|
|
1172
|
+
isAsync,
|
|
1173
|
+
optionFilter,
|
|
1174
|
+
isControlled,
|
|
1175
|
+
valueProp: props.value,
|
|
1176
|
+
defaultValue: props.defaultValue,
|
|
1177
|
+
currentValue,
|
|
1178
|
+
handleValueChange,
|
|
1179
|
+
handleInputValueChange,
|
|
1180
|
+
handleClear,
|
|
1181
|
+
onOpenChange: props.onOpenChange,
|
|
1182
|
+
isDisabled,
|
|
1183
|
+
autoHighlight,
|
|
1184
|
+
required,
|
|
1185
|
+
isClearable: props.isClearable ?? false,
|
|
1186
|
+
showClearButton,
|
|
1187
|
+
sizeConfig,
|
|
1188
|
+
error,
|
|
1189
|
+
placeholder: props.placeholder ?? "",
|
|
1190
|
+
ariaDescribedBy,
|
|
1191
|
+
testIdPrefix,
|
|
1192
|
+
inputClassName: props.inputClassName,
|
|
1193
|
+
contentProps: props.contentProps,
|
|
1194
|
+
dropdownProps: {
|
|
1195
|
+
resolvedOptions,
|
|
1196
|
+
flatOptionsMap,
|
|
1197
|
+
isGrouped,
|
|
1198
|
+
isLoading,
|
|
1199
|
+
loadingMessage: props.loadingMessage ?? "Loading\u2026",
|
|
1200
|
+
emptyMessage: props.emptyMessage ?? "No results found.",
|
|
1201
|
+
showCreateOption,
|
|
1202
|
+
hasMoreLazy,
|
|
1203
|
+
loaderCallbackRef
|
|
1204
|
+
},
|
|
1205
|
+
children: props.children
|
|
1206
|
+
}
|
|
1207
|
+
)
|
|
1208
|
+
}
|
|
1209
|
+
);
|
|
1210
|
+
}
|
|
1211
|
+
);
|
|
1212
|
+
SingleSelectInner.displayName = "SingleSelectInner";
|
|
1213
|
+
const MultiSelectInner = React.forwardRef(
|
|
1214
|
+
(props, ref) => {
|
|
1215
|
+
const {
|
|
1216
|
+
id,
|
|
1217
|
+
label,
|
|
1218
|
+
error,
|
|
1219
|
+
helpText,
|
|
1220
|
+
errorId,
|
|
1221
|
+
helpTextId,
|
|
1222
|
+
labelId,
|
|
1223
|
+
testIdPrefix,
|
|
1224
|
+
effectiveItems,
|
|
1225
|
+
labelForValue,
|
|
1226
|
+
renderOption,
|
|
1227
|
+
isSearchable,
|
|
1228
|
+
searchPosition,
|
|
1229
|
+
searchPlaceholder,
|
|
1230
|
+
isAsync,
|
|
1231
|
+
optionFilter,
|
|
1232
|
+
isControlled,
|
|
1233
|
+
selectedValues,
|
|
1234
|
+
handleValueChange,
|
|
1235
|
+
handleInputValueChange,
|
|
1236
|
+
sizeConfig,
|
|
1237
|
+
ariaDescribedBy,
|
|
1238
|
+
resolvedOptions,
|
|
1239
|
+
flatOptionsMap,
|
|
1240
|
+
isGrouped,
|
|
1241
|
+
isLoading,
|
|
1242
|
+
showCreateOption,
|
|
1243
|
+
hasMoreLazy,
|
|
1244
|
+
loaderCallbackRef
|
|
1245
|
+
} = useMultiSelectState(props);
|
|
1246
|
+
const { isDisabled = false, required = false } = props;
|
|
1247
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1248
|
+
SelectFieldWrapper.SelectFieldWrapper,
|
|
1249
|
+
{
|
|
1250
|
+
id,
|
|
1251
|
+
label,
|
|
1252
|
+
error,
|
|
1253
|
+
helpText,
|
|
1254
|
+
errorId,
|
|
1255
|
+
helpTextId,
|
|
1256
|
+
isDisabled,
|
|
1257
|
+
required,
|
|
1258
|
+
testIdPrefix,
|
|
1259
|
+
labelProps: props.labelProps,
|
|
1260
|
+
className: props.className,
|
|
1261
|
+
labelId,
|
|
1262
|
+
focusTargetOnLabelClick: searchPosition === "content",
|
|
1263
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1264
|
+
MultiSelectCombobox,
|
|
1265
|
+
{
|
|
1266
|
+
ref,
|
|
1267
|
+
name: props.name,
|
|
1268
|
+
id,
|
|
1269
|
+
labelId: label ? labelId : void 0,
|
|
1270
|
+
effectiveItems,
|
|
1271
|
+
labelForValue,
|
|
1272
|
+
renderOption,
|
|
1273
|
+
isSearchable,
|
|
1274
|
+
searchPosition,
|
|
1275
|
+
searchPlaceholder,
|
|
1276
|
+
isAsync,
|
|
1277
|
+
optionFilter,
|
|
1278
|
+
isControlled,
|
|
1279
|
+
valueProp: props.value,
|
|
1280
|
+
defaultValue: props.defaultValue,
|
|
1281
|
+
selectedValues,
|
|
1282
|
+
handleValueChange,
|
|
1283
|
+
handleInputValueChange,
|
|
1284
|
+
onOpenChange: props.onOpenChange,
|
|
1285
|
+
isDisabled,
|
|
1286
|
+
autoHighlight: props.autoHighlight ?? true,
|
|
1287
|
+
sizeConfig,
|
|
1288
|
+
error,
|
|
1289
|
+
chipsClassName: props.chipsClassName,
|
|
1290
|
+
inputClassName: props.inputClassName,
|
|
1291
|
+
placeholder: props.placeholder ?? "",
|
|
1292
|
+
hideChipRemove: props.hideChipRemove ?? false,
|
|
1293
|
+
ariaDescribedBy,
|
|
1294
|
+
required,
|
|
1295
|
+
testIdPrefix,
|
|
1296
|
+
contentProps: props.contentProps,
|
|
1297
|
+
dropdownProps: {
|
|
1298
|
+
resolvedOptions,
|
|
1299
|
+
flatOptionsMap,
|
|
1300
|
+
isGrouped,
|
|
1301
|
+
isLoading,
|
|
1302
|
+
loadingMessage: props.loadingMessage ?? "Loading\u2026",
|
|
1303
|
+
emptyMessage: props.emptyMessage ?? "No results found.",
|
|
1304
|
+
showCreateOption,
|
|
1305
|
+
hasMoreLazy,
|
|
1306
|
+
loaderCallbackRef
|
|
1307
|
+
},
|
|
1308
|
+
children: props.children
|
|
1309
|
+
}
|
|
1310
|
+
)
|
|
1311
|
+
}
|
|
1312
|
+
);
|
|
1313
|
+
}
|
|
1314
|
+
);
|
|
1315
|
+
MultiSelectInner.displayName = "MultiSelectInner";
|
|
1316
|
+
const Select = React.forwardRef((props, ref) => {
|
|
1317
|
+
const {
|
|
1318
|
+
getOptionValue,
|
|
1319
|
+
getOptionLabel,
|
|
1320
|
+
options,
|
|
1321
|
+
defaultOptions,
|
|
1322
|
+
loadOptions,
|
|
1323
|
+
...rest
|
|
1324
|
+
} = props;
|
|
1325
|
+
const hasAccessors = Boolean(getOptionValue || getOptionLabel);
|
|
1326
|
+
const normalizedOptions = React.useMemo(
|
|
1327
|
+
() => hasAccessors ? normalizeOptions(options, getOptionValue, getOptionLabel) : options,
|
|
1328
|
+
[hasAccessors, options, getOptionValue, getOptionLabel]
|
|
1329
|
+
);
|
|
1330
|
+
const normalizedDefaultOptions = React.useMemo(() => {
|
|
1331
|
+
if (!hasAccessors || !Array.isArray(defaultOptions)) {
|
|
1332
|
+
return defaultOptions;
|
|
1333
|
+
}
|
|
1334
|
+
return defaultOptions.map(
|
|
1335
|
+
(o) => normalizeOption(o, getOptionValue, getOptionLabel)
|
|
1336
|
+
);
|
|
1337
|
+
}, [hasAccessors, defaultOptions, getOptionValue, getOptionLabel]);
|
|
1338
|
+
const normalizedLoadOptions = React.useMemo(() => {
|
|
1339
|
+
if (!hasAccessors || !loadOptions) return loadOptions;
|
|
1340
|
+
return async (input) => {
|
|
1341
|
+
const result = await loadOptions(input);
|
|
1342
|
+
return result.map(
|
|
1343
|
+
(o) => normalizeOption(o, getOptionValue, getOptionLabel)
|
|
1344
|
+
);
|
|
1345
|
+
};
|
|
1346
|
+
}, [hasAccessors, loadOptions, getOptionValue, getOptionLabel]);
|
|
1347
|
+
const nextProps = {
|
|
1348
|
+
...rest,
|
|
1349
|
+
options: normalizedOptions,
|
|
1350
|
+
defaultOptions: normalizedDefaultOptions,
|
|
1351
|
+
loadOptions: normalizedLoadOptions
|
|
1352
|
+
};
|
|
1353
|
+
if (nextProps.isMulti === true) {
|
|
1354
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MultiSelectInner, { ...nextProps, ref });
|
|
1355
|
+
}
|
|
1356
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SingleSelectInner, { ...nextProps, ref });
|
|
1357
|
+
});
|
|
1358
|
+
Select.displayName = "Select";
|
|
1359
|
+
|
|
1360
|
+
exports.Select = Select;
|
|
1361
|
+
//# sourceMappingURL=Select-C56LAdEy.js.map
|