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