@povio/ui 6.0.0-rc.1 → 6.0.0-rc.3
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/MIGRATION.md +28 -0
- package/README.md +10 -37
- package/dist/{Accordion-DQRdeDs1.js → Accordion-DycXjzGK.js} +6 -6
- package/dist/{Alert-Cee_nKWj.d.ts → Alert-BpPHCE5-.d.ts} +2 -2
- package/dist/{AlertDialog-uNDUIyng.d.ts → AlertDialog-CDCbfARJ.d.ts} +3 -3
- package/dist/{Autocomplete-D_4gEL7D.d.ts → Autocomplete-BUslodfn.d.ts} +1 -1
- package/dist/{Autocomplete-CWU9Ev3J.js → Autocomplete-DuCidYx5.js} +7 -7
- package/dist/{Autocomplete.bound-D0pgmsHB.js → Autocomplete.bound-DTKSW9Sb.js} +1 -1
- package/dist/{Autocomplete.bound-CqhZtdd8.d.ts → Autocomplete.bound-Db5C6Jph.d.ts} +1 -1
- package/dist/{Badge-C4HI9XX4.d.ts → Badge-Dp091PcC.d.ts} +2 -2
- package/dist/{BadgeButton-h3MeQYcp.d.ts → BadgeButton-DZm_aw29.d.ts} +2 -2
- package/dist/{BottomSheet-BQXSdxoX.d.ts → BottomSheet-C-jdDmO7.d.ts} +1 -1
- package/dist/{BottomSheet-z5brMtDt.js → BottomSheet-DB0Cdlgx.js} +5 -5
- package/dist/{BottomSheet.lazy-BzvLg8Ea.d.ts → BottomSheet.lazy-C0_6p_UQ.d.ts} +1 -1
- package/dist/{Breadcrumbs-B9O0_VSN.d.ts → Breadcrumbs-CuupIZuv.d.ts} +1 -1
- package/dist/{Breadcrumbs-AbUBqBTq.js → Breadcrumbs-V-Bea_bs.js} +10 -7
- package/dist/{Button-f7FPTaiN.d.ts → Button-BL5ils-5.d.ts} +1 -1
- package/dist/{Button-DER_6cxv.js → Button-DU1Q8GDB.js} +1 -1
- package/dist/{ButtonBase-CeFSNcVs.js → ButtonBase-BhlpPPDi.js} +5 -4
- package/dist/{ButtonBase-CYTFS-xK.d.ts → ButtonBase-C_ODj77A.d.ts} +3 -3
- package/dist/{ButtonContent-c7lJayVQ.js → ButtonContent-BBup-vN6.js} +4 -13
- package/dist/{Calendar-DRQ536wk.js → Calendar-u-UcoZhB.js} +22 -176
- package/dist/Calendar.lazy-B9YqgHbn.js +131 -0
- package/dist/{CheckContent-D7sZPmzx.js → CheckContent-DHKG_FY6.js} +1 -1
- package/dist/{Checkbox-CCvC7OVT.d.ts → Checkbox-BjZVQ-6_.d.ts} +1 -1
- package/dist/{Checkbox-BI3DQPLa.js → Checkbox-Bo03jrPX.js} +5 -5
- package/dist/{Checkbox.bound-CMZnF2_d.js → Checkbox.bound-DN4OVaMs.js} +1 -1
- package/dist/{Checkbox.bound-DBt33Inx.d.ts → Checkbox.bound-DTO008Tl.d.ts} +1 -1
- package/dist/{CheckboxCheckmark-BzT6MwH5.js → CheckboxCheckmark-C4yFclkZ.js} +5 -8
- package/dist/{CheckboxGroup-MJ6crCZk.d.ts → CheckboxGroup-B_rzZgta.d.ts} +3 -3
- package/dist/{CheckboxGroup-DQw4hsFa.js → CheckboxGroup-D3LxgocB.js} +5 -5
- package/dist/{CheckboxGroup.bound-CTCdezUN.js → CheckboxGroup.bound-8hjoP-xP.js} +1 -1
- package/dist/{CheckboxGroup.bound-j2Sc8QtU.d.ts → CheckboxGroup.bound-CiA60XsD.d.ts} +1 -1
- package/dist/{DatePicker-umTISfvn.d.ts → DatePicker-B_caFHFY.d.ts} +3 -3
- package/dist/{DatePicker-CSm9c37c.js → DatePicker-BaLQOOJJ.js} +12 -10
- package/dist/{DatePicker.bound-KLyoWNcX.d.ts → DatePicker.bound-C5-DL4SJ.d.ts} +1 -1
- package/dist/{DatePicker.bound-Yqckg7Mk.js → DatePicker.bound-NquZAtFK.js} +1 -1
- package/dist/{DatePickerInput-DwHQvLzi.d.ts → DatePickerInput-8gKhZdGY.d.ts} +3 -3
- package/dist/{DatePickerInput-Cs9RwZfy.js → DatePickerInput-B0e_huQt.js} +16 -252
- package/dist/{DateRangePicker-s_4n-F_P.js → DateRangePicker-4CrjSCAx.js} +34 -296
- package/dist/{DateRangePicker-hV_U1IK0.d.ts → DateRangePicker-CzWwO5bA.d.ts} +3 -3
- package/dist/{DateRangePicker.bound-D-GPENNe.d.ts → DateRangePicker.bound-C4mHtr-b.d.ts} +1 -1
- package/dist/{DateRangePicker.bound-C1klxYW0.js → DateRangePicker.bound-D530tUJL.js} +1 -1
- package/dist/{DateTimePicker-411pU7VF.js → DateTimePicker-CtU096IU.js} +12 -10
- package/dist/{DateTimePicker-wgV0SUeZ.d.ts → DateTimePicker-CzGdmamp.d.ts} +3 -3
- package/dist/{DateTimePicker.bound-BDyUzidV.js → DateTimePicker.bound-BJzw56_u.js} +1 -1
- package/dist/{DateTimePicker.bound-cF2X_ncj.d.ts → DateTimePicker.bound-DwClL-pe.d.ts} +1 -1
- package/dist/{Dialog-V-2cgGk1.d.ts → Dialog-2XpWsphI.d.ts} +1 -1
- package/dist/{Dialog-DSl1Fkqi.js → Dialog-COvYzwNU.js} +4 -4
- package/dist/{DropdownMenu-DH7E2aXb.js → DropdownMenu-DtZdv5mo.js} +4 -4
- package/dist/{DropdownMenu-Bl_C5W_E.d.ts → DropdownMenu-gKIXzj63.d.ts} +2 -2
- package/dist/{DropdownMenuDesktop-nMoCa6N5.js → DropdownMenuDesktop-BMkiHEuY.js} +2 -2
- package/dist/{FileInput-Q72yXorH.d.ts → FileInput-0o8-IJUh.d.ts} +6 -6
- package/dist/{FileInput-CqRrQRM-.js → FileInput-Bpm2HJSB.js} +16 -15
- package/dist/{FileInput.bound-BZ7-g-dq.js → FileInput.bound-B6oGPCP8.js} +1 -1
- package/dist/{FileInput.bound-CG2G5E2K.d.ts → FileInput.bound-BEeceBBO.d.ts} +1 -1
- package/dist/{FileUpload-B4ibHWQn.d.ts → FileUpload--AQJW3vz.d.ts} +1 -1
- package/dist/{FileUpload-CG60c6wM.js → FileUpload-G7tdtNKN.js} +48 -48
- package/dist/{FileUpload.bound-DQ6uuH2W.js → FileUpload.bound-DqqPejvc.js} +1 -1
- package/dist/{FileUpload.bound-C-Zy1n5Y.d.ts → FileUpload.bound-i5zfLhoY.d.ts} +2 -2
- package/dist/{FileUploadContainer-CtUhDntB.d.ts → FileUploadContainer-D1eYflb2.d.ts} +1 -1
- package/dist/{FormField-BIRMlgu4.d.ts → FormField-BsR2Cjxm.d.ts} +1 -1
- package/dist/{FormField-D7KKJ6kG.js → FormField-DyqEbqx3.js} +16 -18
- package/dist/{FormFieldError-Bqjg9cMb.js → FormFieldError-BaVgIKrv.js} +1 -1
- package/dist/{FormFieldHeaderTooltip-k8Snf_oM.js → FormFieldHeaderTooltip-Bxc4f9i4.js} +3 -3
- package/dist/{IconButton-BM2DUNtN.d.ts → IconButton-DdvODpP7.d.ts} +1 -1
- package/dist/{IconSlot-DSK7qNxc.js → IconSlot-Cuvpj1gd.js} +2 -2
- package/dist/{InlineTooltipWrapper-DBuQX2yo.js → InlineTooltipWrapper-HDHIaQtS.js} +1 -1
- package/dist/{Input-BX3sZBEp.d.ts → Input-Bu4G9gcn.d.ts} +3 -3
- package/dist/{Input-CG4Irgae.js → Input-CPPDOg7b.js} +6 -6
- package/dist/{Input.bound-BE-espm0.d.ts → Input.bound-CxfKRXzI.d.ts} +1 -1
- package/dist/{Input.bound-jZx8gJro.js → Input.bound-DCTT5J62.js} +1 -1
- package/dist/{InputContent-DDFr0kml.d.ts → InputContent-BGTEvv6a.d.ts} +3 -3
- package/dist/{InputContent-KhD4_YvO.js → InputContent-Ca4oVqIe.js} +15 -15
- package/dist/{Link-Bw2m9W4B.d.ts → Link-D0Kk3F5w.d.ts} +2 -2
- package/dist/{MenuItem-DPZzOqp2.d.ts → MenuItem-Bo5a7_Nw.d.ts} +1 -1
- package/dist/{NumberField-CxwTlqud.js → NumberField-BbeePjH2.js} +7 -7
- package/dist/{NumberField-qjvHhCfN.d.ts → NumberField-DCMQZPY9.d.ts} +3 -3
- package/dist/{NumberField.bound-zySl-v_q.js → NumberField.bound-CQcKgZ--.js} +1 -1
- package/dist/{NumberField.bound-DXPGF5YK.d.ts → NumberField.bound-fZLE6Odv.d.ts} +1 -1
- package/dist/{NumberRangeInput-BrW03wC6.js → NumberRangeInput-Cpqrom84.js} +13 -13
- package/dist/{NumberRangeInput-CS4Kn427.d.ts → NumberRangeInput-CtSYPK2e.d.ts} +2 -2
- package/dist/{NumberRangeInput.bound-C8I7m1cW.d.ts → NumberRangeInput.bound-CxAk_1_K.d.ts} +1 -1
- package/dist/{NumberRangeInput.bound-CKywKEKI.js → NumberRangeInput.bound-D-Lj5_KL.js} +1 -1
- package/dist/{Pagination-DkpAg2x6.d.ts → Pagination-DikJEIWD.d.ts} +1 -1
- package/dist/{PaginationList-DNmZRcS6.d.ts → PaginationList-D7PVQ5WX.d.ts} +1 -1
- package/dist/{PaginationList-PjOxNQwB.js → PaginationList-vfqgyTIP.js} +109 -70
- package/dist/{PasswordInput-BHPFkVbM.d.ts → PasswordInput-Dy5hMeFP.d.ts} +1 -1
- package/dist/{PasswordInput.bound-DC57m4NT.d.ts → PasswordInput.bound-B5sHHU26.d.ts} +1 -1
- package/dist/{PasswordInput.bound-CrXKvfil.js → PasswordInput.bound-WJ_VYQpn.js} +1 -1
- package/dist/{Popover-pjd0Hu61.d.ts → Popover-DxTsc2y6.d.ts} +2 -2
- package/dist/{Progress-1WGRZE8l.d.ts → Progress-CtxPBAgr.d.ts} +3 -3
- package/dist/{Progress-De76pCfX.js → Progress-ZsKwo9ne.js} +2 -2
- package/dist/{RadioGroup-DEwQ6B1F.d.ts → RadioGroup-BYS8ha2C.d.ts} +3 -3
- package/dist/{RadioGroup-BPSvcre6.js → RadioGroup-D0X47mm7.js} +5 -5
- package/dist/{RadioGroup.bound-Dj6CEG6M.d.ts → RadioGroup.bound-CibzUsQL.d.ts} +1 -1
- package/dist/{RadioGroup.bound-CN4K9dV2.js → RadioGroup.bound-aK3GC6i7.js} +1 -1
- package/dist/RangeCalendar-CXLwzK5Z.js +291 -0
- package/dist/{RichTextEditor-BYIQW8QA.js → RichTextEditor-DDGSNZyF.js} +17 -17
- package/dist/{RichTextEditor-hJtuB7Y6.d.ts → RichTextEditor-k9LvNCjg.d.ts} +1 -1
- package/dist/{Select-Br_3eecr.js → Select-DbZOJ-0u.js} +61 -381
- package/dist/{Select-DHYddedn.d.ts → Select-NNohxr1t.d.ts} +3 -3
- package/dist/{Select.bound-CgLKMzLn.js → Select.bound-B9c9mP8o.js} +1 -1
- package/dist/{Select.bound-CJ-tCsmX.d.ts → Select.bound-Dh5kywfV.d.ts} +1 -1
- package/dist/SelectListBox-CFOH3brT.js +362 -0
- package/dist/{Slider-CqB2TPTR.js → Slider-DMrnZn3I.js} +8 -9
- package/dist/{Slider-CcoNTFVN.d.ts → Slider-zbLmrW6J.d.ts} +1 -1
- package/dist/{Slider.bound-8B5qzQ-8.d.ts → Slider.bound-BaJHbE6d.d.ts} +1 -1
- package/dist/{Slider.bound-Bp7Zrs9_.js → Slider.bound-BoIYW8I5.js} +1 -1
- package/dist/{Spinner-BeVTUzzx.js → Spinner-CFj5Iu77.js} +28 -40
- package/dist/{Spinner-B-crRcdG.d.ts → Spinner-b365xHHG.d.ts} +4 -4
- package/dist/{SplitButton-BzhbtpFA.d.ts → SplitButton-CzvD7LIK.d.ts} +3 -3
- package/dist/{Stepper-LORgYAJr.d.ts → Stepper-Bk1JUf6K.d.ts} +17 -17
- package/dist/{Stepper-CMw6QnCu.js → Stepper-DlyScdAM.js} +10 -9
- package/dist/{Switch-R0kAicgM.js → Switch-Ck_zSDuw.js} +5 -5
- package/dist/{Switch-CSitpm4o.d.ts → Switch-uqTGk-H6.d.ts} +1 -1
- package/dist/{Switch.bound-Dk-BmxJd.js → Switch.bound-Brw5UUA6.js} +1 -1
- package/dist/{Switch.bound-DVjqsum1.d.ts → Switch.bound-DWuDmr2C.d.ts} +1 -1
- package/dist/Tag--FasSNEh.d.ts +44 -0
- package/dist/{TextArea-DCnqXuHC.js → TextArea-33uOXvnc.js} +4 -4
- package/dist/{TextArea-e8sQm205.d.ts → TextArea-t5IYaVds.d.ts} +2 -2
- package/dist/{TextArea.bound-BJZ9m_FE.js → TextArea.bound-DPALjcvO.js} +1 -1
- package/dist/{TextArea.bound-DEZuRYm_.d.ts → TextArea.bound-DcflHR7X.d.ts} +1 -1
- package/dist/{TimePicker-Zi7B6VTr.d.ts → TimePicker-BK4AnHQa.d.ts} +2 -2
- package/dist/{TimePicker-BwF-Crbg.js → TimePicker-BjWuzBv_.js} +15 -14
- package/dist/{TimePicker.bound-Bxtb6uJL.d.ts → TimePicker.bound-BMZWRtpJ.d.ts} +1 -1
- package/dist/{TimePicker.bound-B-BVLNbk.js → TimePicker.bound-DBovZwLJ.js} +1 -1
- package/dist/{datePickerValue.utils-OAQBDk1R.js → TimePickerForm-BReCXELG.js} +10 -13
- package/dist/{Toast-Dl6KMa58.d.ts → Toast-6rYk8AAG.d.ts} +1 -1
- package/dist/{ToastContainer-BDvta6st.js → ToastContainer-D1Jl3PPk.js} +3 -3
- package/dist/{ToggleButton-Cce9bnBw.d.ts → ToggleButton-DZ340rQr.d.ts} +1 -1
- package/dist/{ToggleGroup-BJ8cqXaO.d.ts → ToggleGroup-BTqYh6FH.d.ts} +3 -3
- package/dist/{ToggleGroup-s5sDSB6l.js → ToggleGroup-cvzIyIhi.js} +6 -6
- package/dist/{ToggleGroup.bound-Cv09n91n.d.ts → ToggleGroup.bound-BEtnF-L-.d.ts} +1 -1
- package/dist/{ToggleGroup.bound-DEc7rdNF.js → ToggleGroup.bound-DjwakG--.js} +1 -1
- package/dist/{Tooltip-CMigoyri.js → Tooltip-CqbyoJhl.js} +4 -4
- package/dist/{Tooltip-BiS7isYB.d.ts → Tooltip-DP5RDkXs.d.ts} +1 -1
- package/dist/{TooltipWrapper-D7HUZLsP.js → TooltipWrapper-BrftXInI.js} +6 -6
- package/dist/{Typography-D2FfZr7a.d.ts → Typography-BD-MSuTp.d.ts} +1 -1
- package/dist/{Typography-LU4z2pR1.js → Typography-Ba5l4rmj.js} +1 -1
- package/dist/{accordion.cva-CeBWV9EO.js → accordion.cva-C-gUiXk5.js} +16 -24
- package/dist/badgeButton.cva-C1BuYx1N.js +138 -0
- package/dist/{badgeButton.cva-B8EQLwPv.d.ts → badgeButton.cva-Cj5AWgfv.d.ts} +7 -7
- package/dist/{breadcrumbs.cva-DPwJJK_D.js → breadcrumbs.cva-DCAdmxWR.js} +8 -8
- package/dist/{button.cva-CBckM91c.d.ts → button.cva-YpNNY6C-.d.ts} +20 -15
- package/dist/button.cva-fkUW5b2d.js +267 -0
- package/dist/{buttonContent.cva-DG-4lRz4.d.ts → buttonContent.cva-CxgT-rxJ.d.ts} +1 -1
- package/dist/{checkbox.cva-CJy87xUo.d.ts → checkbox.cva-CZnnBl8g.d.ts} +5 -5
- package/dist/{checkbox.cva-D-D9Qgaf.js → checkbox.cva-DCVi4-4z.js} +23 -32
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.d.ts +1 -1
- package/dist/components/alert-dialog.js +97 -102
- package/dist/components/alert.d.ts +1 -1
- package/dist/components/alert.js +10 -10
- package/dist/components/autocomplete.d.ts +1 -1
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/badge-button.d.ts +1 -1
- package/dist/components/badge-button.js +2 -2
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.js +6 -6
- package/dist/components/bottom-sheet-header.d.ts +1 -1
- package/dist/components/bottom-sheet-header.js +11 -10
- package/dist/components/bottom-sheet.d.ts +2 -2
- package/dist/components/bottom-sheet.js +1 -1
- package/dist/components/breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/button.d.ts +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/checkbox-group.d.ts +1 -1
- package/dist/components/checkbox-group.js +1 -1
- package/dist/components/checkbox.d.ts +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/date-picker.d.ts +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.d.ts +1 -1
- package/dist/components/date-range-picker.js +1 -1
- package/dist/components/date-time-picker.d.ts +1 -1
- package/dist/components/date-time-picker.js +1 -1
- package/dist/components/dialog.d.ts +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/drawer.js +2 -2
- package/dist/components/dropdown-menu.d.ts +2 -2
- package/dist/components/dropdown-menu.js +2 -2
- package/dist/components/file-input.d.ts +1 -1
- package/dist/components/file-input.js +1 -1
- package/dist/components/file-upload-container.d.ts +2 -2
- package/dist/components/file-upload-container.js +1 -1
- package/dist/components/file-upload.d.ts +2 -2
- package/dist/components/file-upload.js +1 -1
- package/dist/components/form-field.d.ts +1 -1
- package/dist/components/form-field.js +1 -1
- package/dist/components/icon-button.d.ts +1 -1
- package/dist/components/icon-button.js +2 -2
- package/dist/components/icon-slot.d.ts +1 -1
- package/dist/components/icon-slot.js +1 -1
- package/dist/components/input-frame.d.ts +4 -4
- package/dist/components/input-frame.js +15 -15
- package/dist/components/input.d.ts +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/link.d.ts +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/number-field.d.ts +1 -1
- package/dist/components/number-field.js +1 -1
- package/dist/components/number-range-input.d.ts +1 -1
- package/dist/components/number-range-input.js +1 -1
- package/dist/components/pagination-list.d.ts +1 -1
- package/dist/components/pagination-list.js +1 -1
- package/dist/components/pagination.d.ts +1 -1
- package/dist/components/pagination.js +7 -7
- package/dist/components/password-input.d.ts +1 -1
- package/dist/components/password-input.js +1 -1
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.js +2 -2
- package/dist/components/progress.d.ts +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/radio-group.d.ts +1 -1
- package/dist/components/radio-group.js +1 -1
- package/dist/components/select.d.ts +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/slider.d.ts +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/spinner.d.ts +1 -1
- package/dist/components/spinner.js +1 -1
- package/dist/components/split-button.d.ts +1 -1
- package/dist/components/split-button.js +2 -2
- package/dist/components/stepper.d.ts +1 -1
- package/dist/components/stepper.js +1 -1
- package/dist/components/style-definitions.d.ts +1 -1
- package/dist/components/style-definitions.js +27 -27
- package/dist/components/switch.d.ts +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/tag.d.ts +1 -1
- package/dist/components/tag.js +5 -5
- package/dist/components/text-area.d.ts +1 -1
- package/dist/components/text-area.js +1 -1
- package/dist/components/time-picker.d.ts +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/toast.d.ts +2 -2
- package/dist/components/toast.js +2 -2
- package/dist/components/toggle-button.d.ts +1 -1
- package/dist/components/toggle-button.js +1 -1
- package/dist/components/toggle-group.d.ts +1 -1
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/tooltip-ellipsis.js +1 -1
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/typography.d.ts +2 -2
- package/dist/components/typography.js +1 -1
- package/dist/components/use-toast.d.ts +1 -1
- package/dist/components/use-toast.js +2 -2
- package/dist/config/component-configuration.d.ts +1 -1
- package/dist/config/confirmation.d.ts +1 -1
- package/dist/config/link-context.d.ts +2 -2
- package/dist/config/ui-config.d.ts +2 -2
- package/dist/config/ui-config.js +1 -1
- package/dist/{confirmation.context-B2z9A1v3.d.ts → confirmation.context-DdxzxDWB.d.ts} +1 -1
- package/dist/{datePickerInput.cva-Cd7UUN61.js → datePickerInput.cva--gCeAsRx.js} +1 -1
- package/dist/datePickerValue.utils-CkmPaD6I.js +4 -0
- package/dist/{dialog.cva-sioU_5R7.js → dialog.cva-DzJlaK5a.js} +6 -6
- package/dist/{dist-CAFUM34b.js → dist-D35rjADF.js} +14 -13
- package/dist/dropdownMenu.cva-CS5Q2b_3.js +31 -0
- package/dist/{fileUpload.cva-ujmStxB1.js → fileUpload.cva-DVJcCCYz.js} +10 -10
- package/dist/{fileUpload.types-BT8P1o7a.d.ts → fileUpload.types-DKICER1J.d.ts} +2 -2
- package/dist/{formFieldError.cva-CTl0VeyG.js → formFieldError.cva-Cc-dELdU.js} +2 -2
- package/dist/{formFieldHelper.cva-CxAmrG2H.js → formFieldHelper.cva-5YaiUEcL.js} +29 -29
- package/dist/{iconSlot.cva-BA9NahZH.d.ts → iconSlot.cva-BrT0X2qq.d.ts} +3 -3
- package/dist/icons.d.ts +1 -1
- package/dist/icons.js +1 -1
- package/dist/import-DflE4Gl2.js +251 -0
- package/dist/index.d.ts +70 -70
- package/dist/index.js +73 -73
- package/dist/input.cva-AHLI_M3K.js +185 -0
- package/dist/{input.cva-L7jKDv6q.d.ts → input.cva-CEFEpKml.d.ts} +9 -9
- package/dist/{link.context-C4fE_aMo.d.ts → link.context-pIX2TUSb.d.ts} +1 -1
- package/dist/link.cva-isgDrId6.js +12 -0
- package/dist/outline.clsx-DGGQQRkM.js +6 -0
- package/dist/{popover.cva-Bhud1wnp.js → popover.cva-Ciu9Ro5G.js} +1 -1
- package/dist/{progress.cva-D7iiX6Lh.js → progress.cva-D0PKV_ET.js} +6 -6
- package/dist/{radio.cva-Ctdop1xV.js → radio.cva-Dn2Auqxw.js} +14 -17
- package/dist/{radio.cva-DO3UEac-.d.ts → radio.cva-VUie6k1Y.d.ts} +3 -3
- package/dist/rich-text-editor.d.ts +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/{selectDesktop.cva-RzxvSBkd.js → selectDesktop.cva-CGBkscBY.js} +1 -1
- package/dist/selectItem.cva-Ch6oK4jP.js +27 -0
- package/dist/{staticDateTimeSegments-Bt5wCZvg.js → staticDateTimeSegments-FE-F61iH.js} +9 -9
- package/dist/{status.cva-BFGMKZO_.js → status.cva-CUpcOT4W.js} +20 -20
- package/dist/{stepper.cva-CpRi0fGb.js → stepper.cva-CQGechUm.js} +22 -34
- package/dist/{style-definitions-_RXJdSk-.d.ts → style-definitions-DzsmGccZ.d.ts} +147 -142
- package/dist/styles/editor.css +9 -9
- package/dist/styles/input.d.ts +1 -1
- package/dist/styles/outline.js +1 -1
- package/dist/switch.cva-C9bO_QI-.js +24 -0
- package/dist/switch.cva-x4SdjrQp.d.ts +16 -0
- package/dist/table.cva-BMIizuGy.js +111 -0
- package/dist/{table.cva-CmfeWLyW.d.ts → table.cva-HHTd92di.d.ts} +17 -17
- package/dist/tag.cva-BVa0EWBU.js +24 -0
- package/dist/tanstack/autocomplete.d.ts +2 -2
- package/dist/tanstack/autocomplete.js +1 -1
- package/dist/tanstack/checkbox-group.d.ts +2 -2
- package/dist/tanstack/checkbox-group.js +1 -1
- package/dist/tanstack/checkbox.d.ts +2 -2
- package/dist/tanstack/checkbox.js +1 -1
- package/dist/tanstack/date-picker.d.ts +2 -2
- package/dist/tanstack/date-picker.js +1 -1
- package/dist/tanstack/date-range-picker.d.ts +2 -2
- package/dist/tanstack/date-range-picker.js +1 -1
- package/dist/tanstack/date-time-picker.d.ts +2 -2
- package/dist/tanstack/date-time-picker.js +1 -1
- package/dist/tanstack/file-input.d.ts +2 -2
- package/dist/tanstack/file-input.js +1 -1
- package/dist/tanstack/file-upload.d.ts +3 -3
- package/dist/tanstack/file-upload.js +1 -1
- package/dist/tanstack/input.d.ts +2 -2
- package/dist/tanstack/input.js +1 -1
- package/dist/tanstack/number-field.d.ts +2 -2
- package/dist/tanstack/number-field.js +1 -1
- package/dist/tanstack/number-range-input.d.ts +2 -2
- package/dist/tanstack/number-range-input.js +1 -1
- package/dist/tanstack/password-input.d.ts +1 -1
- package/dist/tanstack/password-input.js +1 -1
- package/dist/tanstack/radio-group.d.ts +2 -2
- package/dist/tanstack/radio-group.js +1 -1
- package/dist/tanstack/rich-text-editor.d.ts +1 -1
- package/dist/tanstack/rich-text-editor.js +1 -1
- package/dist/tanstack/select.d.ts +2 -2
- package/dist/tanstack/select.js +1 -1
- package/dist/tanstack/slider.d.ts +2 -2
- package/dist/tanstack/slider.js +1 -1
- package/dist/tanstack/switch.d.ts +2 -2
- package/dist/tanstack/switch.js +1 -1
- package/dist/tanstack/table.d.ts +2 -2
- package/dist/tanstack/table.js +1 -1
- package/dist/tanstack/text-area.d.ts +2 -2
- package/dist/tanstack/text-area.js +1 -1
- package/dist/tanstack/time-picker.d.ts +2 -2
- package/dist/tanstack/time-picker.js +1 -1
- package/dist/tanstack/toggle-group.d.ts +2 -2
- package/dist/tanstack/toggle-group.js +1 -1
- package/dist/{tanstack-DQu9PNjn.d.ts → tanstack-CSiB125i.d.ts} +90 -90
- package/dist/tanstack.d.ts +70 -70
- package/dist/tanstack.js +73 -73
- package/dist/{toast.cva-L0k_TBiW.d.ts → toast.cva-B8i61tEN.d.ts} +9 -9
- package/dist/{toast.cva-aC4NMpLb.js → toast.cva-BMOx7_9f.js} +21 -37
- package/dist/{toast.runtime-DKOeUnk6.js → toast.runtime-D18gn2Ty.js} +1 -1
- package/dist/toggleGroup.cva-C9Y5-kpk.js +26 -0
- package/dist/{tooltip.cva-ClcaR72U.js → tooltip.cva-Clfcn_r2.js} +10 -10
- package/dist/typography.cva-CKCCpIMj.d.ts +36 -0
- package/dist/typography.cva-CXolEQdT.js +31 -0
- package/dist/{uiConfig.context-CQU9Tzq_.d.ts → uiConfig.context-B1SCCG5j.d.ts} +9 -9
- package/dist/{uiConfig.context-CT9EVqC5.js → uiConfig.context-dxsO9puE.js} +9 -9
- package/dist/{useBreakpoint-BzYqQEBO.js → useBreakpoint-DOUmXVZ2.js} +5 -5
- package/dist/useScrollableListBox-BfCLMZgv.js +47 -0
- package/dist/{useTableColumnConfig-CUINwVTR.js → useTableColumnConfig-CGtkUBG8.js} +15 -14
- package/dist/{useTableNav-rU9WmCj6.d.ts → useTableNav-D2zCwy63.d.ts} +2 -2
- package/dist/{useToast-DfQif03I.d.ts → useToast-CA0BGCDK.d.ts} +1 -1
- package/package.json +2 -3
- package/dist/Tag-CoqCTZRm.d.ts +0 -44
- package/dist/badgeButton.cva-BPyVejxO.js +0 -300
- package/dist/button.cva-vO0fPUTn.js +0 -423
- package/dist/dropdownMenu.cva-Bi3a21lO.js +0 -34
- package/dist/input.cva-w7ZEVQAM.js +0 -227
- package/dist/link.cva-D3XRgcAv.js +0 -12
- package/dist/outline.clsx-50W_vNDl.js +0 -6
- package/dist/selectItem.cva-BWfEkNs_.js +0 -36
- package/dist/styles/color-utilities.css +0 -20
- package/dist/switch.cva-BsJ4iAFl.js +0 -27
- package/dist/switch.cva-psw67dK9.d.ts +0 -16
- package/dist/table.cva-DFQM8VbM.js +0 -111
- package/dist/tag.cva-BCCH7ku3.js +0 -55
- package/dist/toggleGroup.cva-CEhjMT4j.js +0 -35
- package/dist/typography.cva-GpC6QQNx.d.ts +0 -36
- package/dist/typography.cva-iD15k56p.js +0 -51
|
@@ -1,45 +1,37 @@
|
|
|
1
1
|
import { t as createLucideIcon } from "./createLucideIcon-LcezOE4z.js";
|
|
2
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
2
|
+
import { t as UIConfig } from "./uiConfig.context-dxsO9puE.js";
|
|
3
3
|
import { t as ChevronDown } from "./chevron-down-B4Pr8bD3.js";
|
|
4
|
-
import { t as CheckboxCheckmark } from "./CheckboxCheckmark-BzT6MwH5.js";
|
|
5
4
|
import { t as X } from "./x-B6vfz8Ps.js";
|
|
6
5
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
7
6
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
8
|
-
import { t as IconSlot } from "./IconSlot-
|
|
9
|
-
import { l as $542a13ca2fa5b484$export$5b6b19405a83ff9d,
|
|
7
|
+
import { t as IconSlot } from "./IconSlot-Cuvpj1gd.js";
|
|
8
|
+
import { l as $542a13ca2fa5b484$export$5b6b19405a83ff9d, t as $f2ff30fde7b014be$export$2e1e1122cf0cba88 } from "./Dialog-lFYX-7Ax.js";
|
|
10
9
|
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-C1YB5dOw.js";
|
|
11
10
|
import { n as $dbdc5e6e7ce01b4b$export$c02625b26074192c, t as $dbdc5e6e7ce01b4b$export$72b9695b8216309a } from "./ComboBox-DFlz6HJ8.js";
|
|
12
11
|
import { n as $41fb335299a4a39e$export$f5b8910cec6cf069 } from "./Input-BG0Xjw5X.js";
|
|
13
|
-
import { i as $
|
|
14
|
-
import { i as $a3be900807531178$re_export$useFilter, n as $a3be900807531178$re_export$ListLayout, r as $a3be900807531178$re_export$Rect } from "./exports-BNrTn8Tj.js";
|
|
12
|
+
import { i as $a3be900807531178$re_export$useFilter } from "./exports-BNrTn8Tj.js";
|
|
15
13
|
import "./popoverAnimation-DEZSvKP8.js";
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as Button } from "./Button-DER_6cxv.js";
|
|
14
|
+
import { t as Button } from "./Button-DU1Q8GDB.js";
|
|
18
15
|
import { BottomSheet } from "./components/bottom-sheet.js";
|
|
19
|
-
import { t as useBreakpoint } from "./useBreakpoint-
|
|
16
|
+
import { t as useBreakpoint } from "./useBreakpoint-DOUmXVZ2.js";
|
|
20
17
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
|
|
21
|
-
import { n as FormFieldLabel, t as FormField } from "./FormField-
|
|
22
|
-
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-
|
|
18
|
+
import { n as FormFieldLabel, t as FormField } from "./FormField-DyqEbqx3.js";
|
|
19
|
+
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-AHLI_M3K.js";
|
|
23
20
|
import "./i18n-BjNKHh_D.js";
|
|
21
|
+
import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-BrftXInI.js";
|
|
22
|
+
import { t as popoverDefinition } from "./popover.cva-Ciu9Ro5G.js";
|
|
24
23
|
import { n as useStaticInputHandoff, t as getStaticInputFocusTarget } from "./useStaticInputHandoff-DyYxfwv6.js";
|
|
25
|
-
import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-D7HUZLsP.js";
|
|
26
|
-
import { t as popoverDefinition } from "./popover.cva-Bhud1wnp.js";
|
|
27
24
|
import { InputFrame } from "./components/input-frame.js";
|
|
25
|
+
import { t as Input } from "./Input-CPPDOg7b.js";
|
|
28
26
|
import { Tag } from "./components/tag.js";
|
|
29
|
-
import { n as selectInputTagsContentWrapperDefinition, t as selectPopoverDefinition } from "./selectDesktop.cva-
|
|
30
|
-
import {
|
|
31
|
-
import { t as useIntersectionObserver } from "./useIntersectionObserver-DYfHnGGU.js";
|
|
32
|
-
import { t as Input } from "./Input-CG4Irgae.js";
|
|
33
|
-
import $ahdqC$react, { Fragment, createContext, use, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
27
|
+
import { n as selectInputTagsContentWrapperDefinition, t as selectPopoverDefinition } from "./selectDesktop.cva-CGBkscBY.js";
|
|
28
|
+
import { Fragment, Suspense, createContext, lazy, use, useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
34
29
|
import { c } from "react/compiler-runtime";
|
|
35
30
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
36
|
-
import { useVirtualizerState } from "react-stately/useVirtualizerState";
|
|
37
|
-
import { useScrollView } from "react-aria/private/virtualizer/ScrollView";
|
|
38
|
-
import { VirtualizerItem } from "react-aria/private/virtualizer/VirtualizerItem";
|
|
39
31
|
import { usePreventScroll } from "react-aria";
|
|
40
32
|
import { useLabel } from "@react-aria/label";
|
|
41
|
-
import { useTranslation } from "react-i18next";
|
|
42
33
|
import { useFocusVisible, useFocusWithin, useHover } from "@react-aria/interactions";
|
|
34
|
+
import { useTranslation } from "react-i18next";
|
|
43
35
|
//#region ../../node_modules/.bun/lucide-react@1.43.0+83d5fd7b249dbeef/node_modules/lucide-react/dist/esm/icons/search.mjs
|
|
44
36
|
/**
|
|
45
37
|
* @license lucide-react v1.43.0 - ISC
|
|
@@ -63,96 +55,6 @@ const __iconData = {
|
|
|
63
55
|
__iconData.node;
|
|
64
56
|
const Search = createLucideIcon(__iconData);
|
|
65
57
|
//#endregion
|
|
66
|
-
//#region ../../node_modules/.bun/react-aria-components@1.22.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/Virtualizer.mjs
|
|
67
|
-
const $143fb904d86051ce$var$VirtualizerContext = /*#__PURE__*/ createContext(null);
|
|
68
|
-
const $143fb904d86051ce$var$VirtualizerOptionsContext = /*#__PURE__*/ createContext(null);
|
|
69
|
-
function $143fb904d86051ce$export$89be5a243e59c4b2(props) {
|
|
70
|
-
let { children, layout: layoutProp, layoutOptions, shouldObserveItemSize } = props;
|
|
71
|
-
let layout = useMemo(() => typeof layoutProp === "function" ? new layoutProp() : layoutProp, [layoutProp]);
|
|
72
|
-
let renderer = useMemo(() => ({
|
|
73
|
-
isVirtualized: true,
|
|
74
|
-
layoutDelegate: layout,
|
|
75
|
-
dropTargetDelegate: layout.getDropTargetFromPoint ? layout : void 0,
|
|
76
|
-
CollectionRoot: $143fb904d86051ce$var$CollectionRoot,
|
|
77
|
-
CollectionBranch: $143fb904d86051ce$var$CollectionBranch
|
|
78
|
-
}), [layout]);
|
|
79
|
-
return /*#__PURE__*/ $ahdqC$react.createElement($263ab7fc0f95ccdb$export$4feb769f8ddf26c5.Provider, { value: renderer }, /*#__PURE__*/ $ahdqC$react.createElement($143fb904d86051ce$var$VirtualizerOptionsContext.Provider, { value: {
|
|
80
|
-
layout,
|
|
81
|
-
layoutOptions,
|
|
82
|
-
shouldObserveItemSize
|
|
83
|
-
} }, children));
|
|
84
|
-
}
|
|
85
|
-
function $143fb904d86051ce$var$CollectionRoot({ collection, persistedKeys, scrollRef, renderDropIndicator }) {
|
|
86
|
-
let { layout, layoutOptions, shouldObserveItemSize } = useContext($143fb904d86051ce$var$VirtualizerOptionsContext);
|
|
87
|
-
let layoutOptions2 = layout.useLayoutOptions?.();
|
|
88
|
-
let state = useVirtualizerState({
|
|
89
|
-
allowsWindowScrolling: true,
|
|
90
|
-
layout,
|
|
91
|
-
collection,
|
|
92
|
-
renderView: (type, item) => {
|
|
93
|
-
return item?.render?.(item);
|
|
94
|
-
},
|
|
95
|
-
onVisibleRectChange(rect) {
|
|
96
|
-
let element = scrollRef?.current;
|
|
97
|
-
if (element) {
|
|
98
|
-
element.scrollLeft = rect.x;
|
|
99
|
-
element.scrollTop = rect.y;
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
persistedKeys,
|
|
103
|
-
layoutOptions: useMemo(() => layoutOptions && layoutOptions2 ? {
|
|
104
|
-
...layoutOptions,
|
|
105
|
-
...layoutOptions2
|
|
106
|
-
} : layoutOptions || layoutOptions2, [layoutOptions, layoutOptions2])
|
|
107
|
-
});
|
|
108
|
-
let { contentProps } = useScrollView({
|
|
109
|
-
onVisibleRectChange: state.setVisibleRect,
|
|
110
|
-
onSizeChange: state.setSize,
|
|
111
|
-
contentSize: state.contentSize,
|
|
112
|
-
onScrollStart: state.startScrolling,
|
|
113
|
-
onScrollEnd: state.endScrolling,
|
|
114
|
-
allowsWindowScrolling: true
|
|
115
|
-
}, scrollRef);
|
|
116
|
-
return /*#__PURE__*/ $ahdqC$react.createElement("div", contentProps, /*#__PURE__*/ $ahdqC$react.createElement($143fb904d86051ce$var$VirtualizerContext.Provider, { value: state }, $143fb904d86051ce$var$renderChildren(null, state.visibleViews, renderDropIndicator, shouldObserveItemSize)));
|
|
117
|
-
}
|
|
118
|
-
function $143fb904d86051ce$var$CollectionBranch({ parent, renderDropIndicator }) {
|
|
119
|
-
let parentView = useContext($143fb904d86051ce$var$VirtualizerContext).virtualizer.getVisibleView(parent.key);
|
|
120
|
-
let { shouldObserveItemSize } = useContext($143fb904d86051ce$var$VirtualizerOptionsContext);
|
|
121
|
-
return $143fb904d86051ce$var$renderChildren(parentView, Array.from(parentView.children), renderDropIndicator, shouldObserveItemSize);
|
|
122
|
-
}
|
|
123
|
-
function $143fb904d86051ce$var$renderChildren(parent, children, renderDropIndicator, shouldObserveItemSize) {
|
|
124
|
-
return children.map((view) => $143fb904d86051ce$var$renderWrapper(parent, view, renderDropIndicator, shouldObserveItemSize));
|
|
125
|
-
}
|
|
126
|
-
function $143fb904d86051ce$var$renderWrapper(parent, reusableView, renderDropIndicator, shouldObserveItemSize) {
|
|
127
|
-
let rendered = /*#__PURE__*/ $ahdqC$react.createElement(VirtualizerItem, {
|
|
128
|
-
key: reusableView.key,
|
|
129
|
-
layoutInfo: reusableView.layoutInfo,
|
|
130
|
-
virtualizer: reusableView.virtualizer,
|
|
131
|
-
parent: parent?.layoutInfo,
|
|
132
|
-
shouldObserveItemSize
|
|
133
|
-
}, reusableView.rendered);
|
|
134
|
-
let { collection, layout } = reusableView.virtualizer;
|
|
135
|
-
let node = reusableView.content;
|
|
136
|
-
if (node?.type === "item" && renderDropIndicator && layout.getDropTargetLayoutInfo) rendered = /*#__PURE__*/ $ahdqC$react.createElement($ahdqC$react.Fragment, { key: reusableView.key }, $143fb904d86051ce$var$renderDropIndicatorWrapper(parent, reusableView, {
|
|
137
|
-
type: "item",
|
|
138
|
-
key: reusableView.content.key,
|
|
139
|
-
dropPosition: "before"
|
|
140
|
-
}, renderDropIndicator), rendered, $263ab7fc0f95ccdb$export$2dbbd341daed716d(collection, node, (target) => $143fb904d86051ce$var$renderDropIndicatorWrapper(parent, reusableView, target, renderDropIndicator)));
|
|
141
|
-
return rendered;
|
|
142
|
-
}
|
|
143
|
-
function $143fb904d86051ce$var$renderDropIndicatorWrapper(parent, reusableView, target, renderDropIndicator) {
|
|
144
|
-
let indicator = renderDropIndicator(target);
|
|
145
|
-
if (indicator) {
|
|
146
|
-
let layoutInfo = reusableView.virtualizer.layout.getDropTargetLayoutInfo(target);
|
|
147
|
-
indicator = /*#__PURE__*/ $ahdqC$react.createElement(VirtualizerItem, {
|
|
148
|
-
layoutInfo,
|
|
149
|
-
virtualizer: reusableView.virtualizer,
|
|
150
|
-
parent: parent?.layoutInfo
|
|
151
|
-
}, indicator);
|
|
152
|
-
}
|
|
153
|
-
return indicator;
|
|
154
|
-
}
|
|
155
|
-
//#endregion
|
|
156
58
|
//#region src/components/inputs/Selection/shared/SelectInputTags.tsx
|
|
157
59
|
const SelectInputTags = ({ selectedItems, isDisabled, selectedTagsType, collapseAfter, onRemove }) => {
|
|
158
60
|
const { displayedItems, remainingCount } = useMemo(() => {
|
|
@@ -717,7 +619,7 @@ const SelectInput = ({ ref, placeholder, variant, as, size, isDisabled, isInvali
|
|
|
717
619
|
...focusWithinProps,
|
|
718
620
|
children: [
|
|
719
621
|
/* @__PURE__ */ jsxs("div", {
|
|
720
|
-
className: clsx("relative flex flex-1 items-center gap-
|
|
622
|
+
className: clsx("relative flex flex-1 items-center gap-2 truncate pr-2!", !isDisabled && isSearchable && "cursor-text", !isDisabled && !isSearchable && "cursor-pointer", inputSizeCva({
|
|
721
623
|
as,
|
|
722
624
|
size,
|
|
723
625
|
...props
|
|
@@ -730,7 +632,7 @@ const SelectInput = ({ ref, placeholder, variant, as, size, isDisabled, isInvali
|
|
|
730
632
|
labelProps
|
|
731
633
|
}),
|
|
732
634
|
leadingContent && /* @__PURE__ */ jsx("div", {
|
|
733
|
-
className: "
|
|
635
|
+
className: "flex shrink-0 items-center",
|
|
734
636
|
children: leadingContent
|
|
735
637
|
}),
|
|
736
638
|
(showTags || isSearchable) && /* @__PURE__ */ jsxs("div", {
|
|
@@ -745,7 +647,7 @@ const SelectInput = ({ ref, placeholder, variant, as, size, isDisabled, isInvali
|
|
|
745
647
|
ref: inputRef,
|
|
746
648
|
placeholder: as === "floating" ? void 0 : placeholder,
|
|
747
649
|
onBlur,
|
|
748
|
-
className: clsx("min-w-0 w-full flex-1 bg-transparent outline-none placeholder:text-
|
|
650
|
+
className: clsx("min-w-0 w-full flex-1 bg-transparent outline-none placeholder:text-muted-foreground", "disabled:text-inherit disabled:placeholder:text-muted-foreground", inputClassName),
|
|
749
651
|
onKeyDown,
|
|
750
652
|
onKeyDownCapture: onInputKeyDownCapture,
|
|
751
653
|
...fieldProps
|
|
@@ -760,7 +662,7 @@ const SelectInput = ({ ref, placeholder, variant, as, size, isDisabled, isInvali
|
|
|
760
662
|
onKeyDown: onTriggerKeyDown,
|
|
761
663
|
...fieldProps,
|
|
762
664
|
children: [(as === "floating" && isEmpty || isMultiple && !isEmpty) && /* @__PURE__ */ jsx(Fragment$1, { children: "\xA0" }), (isEmpty || !isMultiple) && (as !== "floating" || !isEmpty) && /* @__PURE__ */ jsxs("span", {
|
|
763
|
-
className: clsx("block truncate empty:before:inline-block empty:before:content-['']", isEmpty && "text-
|
|
665
|
+
className: clsx("block truncate empty:before:inline-block empty:before:content-['']", isEmpty && "text-muted-foreground"),
|
|
764
666
|
children: [isEmpty && placeholder, !isEmpty && (showSelectionContent ? selectedItems[0].content : selectedItems[0].label)]
|
|
765
667
|
})]
|
|
766
668
|
})
|
|
@@ -771,7 +673,8 @@ const SelectInput = ({ ref, placeholder, variant, as, size, isDisabled, isInvali
|
|
|
771
673
|
onClear();
|
|
772
674
|
},
|
|
773
675
|
as,
|
|
774
|
-
show: showClearButton
|
|
676
|
+
show: showClearButton,
|
|
677
|
+
className: "mr-2"
|
|
775
678
|
}),
|
|
776
679
|
trailingContent && /* @__PURE__ */ jsx("div", {
|
|
777
680
|
className: "flex shrink-0 items-center",
|
|
@@ -780,15 +683,14 @@ const SelectInput = ({ ref, placeholder, variant, as, size, isDisabled, isInvali
|
|
|
780
683
|
!hideDropdownIcon && /* @__PURE__ */ jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
781
684
|
excludeFromTabOrder: true,
|
|
782
685
|
"aria-label": t(($) => isOpen ? $.ui.closeAlt : $.ui.openAlt),
|
|
783
|
-
className: clsx("flex shrink-0 items-center justify-center self-stretch py-0! pl-
|
|
686
|
+
className: clsx("flex shrink-0 items-center justify-center self-stretch py-0! pl-0! outline-none disabled:text-inherit", inputSizeCva({ size })),
|
|
784
687
|
isDisabled,
|
|
785
688
|
onPress: () => {
|
|
786
689
|
if (!isSearchable) setIsOpen(!isOpen);
|
|
787
690
|
},
|
|
788
691
|
children: /* @__PURE__ */ jsx(IconSlot, {
|
|
789
692
|
icon: ChevronDown,
|
|
790
|
-
className: clsx("
|
|
791
|
-
iconClassName: "fill-current stroke-0",
|
|
693
|
+
className: clsx("opacity-50 transition-transform", isOpen && "rotate-180"),
|
|
792
694
|
"aria-hidden": "true"
|
|
793
695
|
})
|
|
794
696
|
})
|
|
@@ -796,253 +698,21 @@ const SelectInput = ({ ref, placeholder, variant, as, size, isDisabled, isInvali
|
|
|
796
698
|
});
|
|
797
699
|
};
|
|
798
700
|
//#endregion
|
|
799
|
-
//#region src/components/inputs/Selection/shared/
|
|
800
|
-
const
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
const itemContent = useMemo(() => {
|
|
806
|
-
if (isNewItem) return newItemRender?.(label) ?? `${t(($) => $.ui.autocomplete.createNewBtn)} '${label}'`;
|
|
807
|
-
return content ?? label;
|
|
808
|
-
}, [
|
|
809
|
-
isNewItem,
|
|
810
|
-
newItemRender,
|
|
811
|
-
label,
|
|
812
|
-
content,
|
|
813
|
-
t
|
|
814
|
-
]);
|
|
815
|
-
return /* @__PURE__ */ jsxs($928221da08ecbc62$export$a11e76429ed99b4, {
|
|
816
|
-
ref,
|
|
817
|
-
id,
|
|
818
|
-
textValue: label,
|
|
819
|
-
isDisabled,
|
|
820
|
-
className: selectListItemCva({
|
|
821
|
-
isSingle: !isMultiple,
|
|
822
|
-
isNewItem
|
|
823
|
-
}),
|
|
824
|
-
children: [
|
|
825
|
-
isMultiple && !isSearchable && /* @__PURE__ */ jsx(CheckboxCheckmark, {
|
|
826
|
-
variant: "default",
|
|
827
|
-
className: "group-focus-visible:outline-none!"
|
|
828
|
-
}),
|
|
829
|
-
isMultiple && isSearchable && /* @__PURE__ */ jsx("div", {
|
|
830
|
-
className: "group",
|
|
831
|
-
"data-rac": "",
|
|
832
|
-
"data-selected": selectedIds.includes(id) || void 0,
|
|
833
|
-
children: /* @__PURE__ */ jsx(CheckboxCheckmark, {
|
|
834
|
-
variant: "default",
|
|
835
|
-
className: "group-focus-visible:outline-none!"
|
|
836
|
-
})
|
|
837
|
-
}),
|
|
838
|
-
itemContent
|
|
839
|
-
]
|
|
840
|
-
});
|
|
841
|
-
};
|
|
842
|
-
//#endregion
|
|
843
|
-
//#region src/components/inputs/Selection/shared/SelectListBoxItemSelectAll.tsx
|
|
844
|
-
const SelectListBoxItemSelectAll = ({ id, label, isDisabled }) => {
|
|
845
|
-
const selectListItemCva = UIOverrides.useCva("select.listBoxItemCva", selectListBoxItemDefinition);
|
|
846
|
-
const ref = useRef(null);
|
|
847
|
-
const { t } = useTranslation("ui");
|
|
848
|
-
const { selectableListItems, selectedIds } = SelectContext.useSelect();
|
|
849
|
-
return /* @__PURE__ */ jsxs($928221da08ecbc62$export$a11e76429ed99b4, {
|
|
850
|
-
ref,
|
|
851
|
-
id,
|
|
852
|
-
textValue: label || t(($) => $.ui.select.allOption),
|
|
853
|
-
isDisabled,
|
|
854
|
-
className: selectListItemCva({}),
|
|
855
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
856
|
-
className: "group",
|
|
857
|
-
"data-rac": "",
|
|
858
|
-
"data-selected": selectedIds.length === selectableListItems.length || void 0,
|
|
859
|
-
"data-indeterminate": selectedIds.length > 0 && selectedIds.length < selectableListItems.length || void 0,
|
|
860
|
-
children: /* @__PURE__ */ jsx(CheckboxCheckmark, {
|
|
861
|
-
variant: "default",
|
|
862
|
-
className: "group-focus-visible:outline-none!"
|
|
863
|
-
})
|
|
864
|
-
}), t(($) => $.ui.select.allOption)]
|
|
865
|
-
});
|
|
866
|
-
};
|
|
867
|
-
//#endregion
|
|
868
|
-
//#region src/components/inputs/Selection/shared/SelectListBoxLoadingItem.tsx
|
|
869
|
-
const SelectListBoxLoadingItem = ({ id, label, onLoadMore }) => {
|
|
870
|
-
const selectListItemCva = UIOverrides.useCva("select.listBoxItemCva", selectListBoxItemDefinition);
|
|
871
|
-
const { t } = useTranslation("ui");
|
|
872
|
-
const { isDebouncing, isLoading, hasLoadMore } = SelectContext.useSelect();
|
|
873
|
-
const onIntersection = useCallback(() => {
|
|
874
|
-
if (!isDebouncing && !isLoading && hasLoadMore) onLoadMore?.();
|
|
875
|
-
}, [
|
|
876
|
-
isDebouncing,
|
|
877
|
-
isLoading,
|
|
878
|
-
hasLoadMore,
|
|
879
|
-
onLoadMore
|
|
880
|
-
]);
|
|
881
|
-
const { ref } = useIntersectionObserver({
|
|
882
|
-
onIntersection,
|
|
883
|
-
rootMargin: "40px"
|
|
884
|
-
});
|
|
885
|
-
return /* @__PURE__ */ jsx($928221da08ecbc62$export$a11e76429ed99b4, {
|
|
886
|
-
id,
|
|
887
|
-
textValue: label || t(($) => $.ui.loadingState.text),
|
|
888
|
-
isDisabled: true,
|
|
889
|
-
className: selectListItemCva({}),
|
|
890
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
891
|
-
ref,
|
|
892
|
-
className: "flex flex-1 justify-center text-interactive-subtle-primary-foreground",
|
|
893
|
-
children: /* @__PURE__ */ jsx(Spinner, {})
|
|
894
|
-
})
|
|
895
|
-
});
|
|
896
|
-
};
|
|
897
|
-
//#endregion
|
|
898
|
-
//#region src/components/inputs/Selection/shared/SelectListBox.tsx
|
|
899
|
-
var ReversedListLayout = class extends $a3be900807531178$re_export$ListLayout {
|
|
900
|
-
reverseLayoutInfo(layoutInfo) {
|
|
901
|
-
const reversedLayoutInfo = layoutInfo.copy();
|
|
902
|
-
reversedLayoutInfo.rect.y = this.getContentSize().height - reversedLayoutInfo.rect.maxY;
|
|
903
|
-
return reversedLayoutInfo;
|
|
904
|
-
}
|
|
905
|
-
getLayoutInfo(key) {
|
|
906
|
-
const layoutInfo = super.getLayoutInfo(key);
|
|
907
|
-
return layoutInfo ? this.reverseLayoutInfo(layoutInfo) : null;
|
|
908
|
-
}
|
|
909
|
-
getVisibleLayoutInfos(rect) {
|
|
910
|
-
const mirroredRect = new $a3be900807531178$re_export$Rect(rect.x, Math.max(0, this.getContentSize().height - rect.maxY), rect.width, rect.height);
|
|
911
|
-
return super.getVisibleLayoutInfos(mirroredRect).map((layoutInfo) => this.reverseLayoutInfo(layoutInfo));
|
|
912
|
-
}
|
|
913
|
-
};
|
|
914
|
-
const SelectListBox = ({ label, selectionMode, isSearchable, isScrollable = true, isReversed = false, virtualizerOptions, totalItems, newItemRender, onLoadMore, className, onClose, ...props }) => {
|
|
915
|
-
const { fieldState, onChange, listItems, selectableListItems, selectedIds, isMultiple, onClear, onSelectAll, hasLoadMore, isLoading } = SelectContext.useSelect();
|
|
916
|
-
const listBoxRef = useRef(null);
|
|
917
|
-
const hasRequestedAtTopRef = useRef(false);
|
|
918
|
-
const isReverseScrollAnchoredRef = useRef(!isReversed);
|
|
919
|
-
const reverseScrollBottomOffsetRef = useRef(0);
|
|
920
|
-
const previousLoadedItemIdsRef = useRef([]);
|
|
921
|
-
const shouldVirtualize = !!virtualizerOptions || (totalItems ?? listItems.length) > 100 || hasLoadMore;
|
|
922
|
-
const usesReversedLayout = isReversed && isSearchable && shouldVirtualize;
|
|
923
|
-
const displayedListItems = isReversed && !usesReversedLayout ? listItems.toReversed() : listItems;
|
|
924
|
-
const loadedItemIds = useMemo(() => listItems.filter((item) => item.id !== LoadingItemId).map((item) => item.id), [listItems]);
|
|
925
|
-
const loadMoreResetKey = loadedItemIds.join("\0");
|
|
926
|
-
useLayoutEffect(() => {
|
|
927
|
-
hasRequestedAtTopRef.current = false;
|
|
928
|
-
}, [loadMoreResetKey]);
|
|
929
|
-
useLayoutEffect(() => {
|
|
930
|
-
const previousLoadedItemIds = previousLoadedItemIdsRef.current;
|
|
931
|
-
const preservesExistingItems = previousLoadedItemIds.length > 0 && previousLoadedItemIds.every((itemId, index) => loadedItemIds[index] === itemId);
|
|
932
|
-
previousLoadedItemIdsRef.current = loadedItemIds;
|
|
933
|
-
if (!preservesExistingItems) reverseScrollBottomOffsetRef.current = 0;
|
|
934
|
-
const listBox = listBoxRef.current;
|
|
935
|
-
if (!listBox) {
|
|
936
|
-
isReverseScrollAnchoredRef.current = true;
|
|
937
|
-
return;
|
|
938
|
-
}
|
|
939
|
-
if (!isReversed) {
|
|
940
|
-
listBox.scrollTop = 0;
|
|
941
|
-
isReverseScrollAnchoredRef.current = true;
|
|
942
|
-
return;
|
|
943
|
-
}
|
|
944
|
-
isReverseScrollAnchoredRef.current = false;
|
|
945
|
-
const finishAnchoring = () => {
|
|
946
|
-
if (listBox.scrollHeight <= listBox.clientHeight) return false;
|
|
947
|
-
listBox.scrollTop = listBox.scrollHeight - listBox.clientHeight - reverseScrollBottomOffsetRef.current;
|
|
948
|
-
isReverseScrollAnchoredRef.current = true;
|
|
949
|
-
return true;
|
|
950
|
-
};
|
|
951
|
-
let scrollFrame = requestAnimationFrame(() => {
|
|
952
|
-
scrollFrame = requestAnimationFrame(() => {
|
|
953
|
-
if (!finishAnchoring()) isReverseScrollAnchoredRef.current = true;
|
|
954
|
-
});
|
|
955
|
-
});
|
|
956
|
-
return () => {
|
|
957
|
-
cancelAnimationFrame(scrollFrame);
|
|
958
|
-
reverseScrollBottomOffsetRef.current = listBox.scrollHeight - listBox.clientHeight - listBox.scrollTop;
|
|
959
|
-
};
|
|
960
|
-
}, [
|
|
961
|
-
isReversed,
|
|
962
|
-
loadMoreResetKey,
|
|
963
|
-
loadedItemIds
|
|
964
|
-
]);
|
|
965
|
-
const onSelectionChange = (value) => {
|
|
966
|
-
const ids = Array.from(value);
|
|
967
|
-
if (!isMultiple && ids.length === 0) {
|
|
968
|
-
if (fieldState.value) {
|
|
969
|
-
onClose?.();
|
|
970
|
-
onChange(fieldState.value);
|
|
971
|
-
}
|
|
972
|
-
return;
|
|
973
|
-
}
|
|
974
|
-
if (isMultiple && ids.includes("all-item-id")) {
|
|
975
|
-
if (ids.length > selectableListItems.length) onClear();
|
|
976
|
-
else onSelectAll();
|
|
977
|
-
return;
|
|
978
|
-
}
|
|
979
|
-
if (isMultiple) onChange(ids);
|
|
980
|
-
else {
|
|
981
|
-
onClose?.();
|
|
982
|
-
onChange(ids[0]);
|
|
983
|
-
}
|
|
984
|
-
};
|
|
985
|
-
const requestLoadMore = useCallback(() => {
|
|
986
|
-
if (isLoading) return;
|
|
987
|
-
if (isReversed && (!isReverseScrollAnchoredRef.current || (listBoxRef.current?.scrollTop ?? 0) > 1 || hasRequestedAtTopRef.current)) return;
|
|
988
|
-
if (isReversed) hasRequestedAtTopRef.current = true;
|
|
989
|
-
onLoadMore?.();
|
|
990
|
-
}, [
|
|
991
|
-
isLoading,
|
|
992
|
-
isReversed,
|
|
993
|
-
onLoadMore
|
|
994
|
-
]);
|
|
995
|
-
const onScroll = (event) => {
|
|
996
|
-
if (!isReversed || !hasLoadMore || !isReverseScrollAnchoredRef.current) return;
|
|
997
|
-
if (event.currentTarget.scrollTop > 48) hasRequestedAtTopRef.current = false;
|
|
998
|
-
else requestLoadMore();
|
|
999
|
-
};
|
|
1000
|
-
const renderItem = (item) => {
|
|
1001
|
-
if (item.isSelectAllItem) return /* @__PURE__ */ jsx(SelectListBoxItemSelectAll, { ...item }, item.id);
|
|
1002
|
-
if (item.isLoadingItem) return /* @__PURE__ */ jsx(SelectListBoxLoadingItem, {
|
|
1003
|
-
...item,
|
|
1004
|
-
onLoadMore: requestLoadMore
|
|
1005
|
-
}, item.id);
|
|
1006
|
-
return /* @__PURE__ */ jsx(SelectListBoxItem, {
|
|
1007
|
-
...item,
|
|
1008
|
-
isSearchable,
|
|
1009
|
-
isNewItem: item.isNewItem,
|
|
1010
|
-
newItemRender
|
|
1011
|
-
}, item.id);
|
|
1012
|
-
};
|
|
1013
|
-
if (shouldVirtualize) return /* @__PURE__ */ jsx($143fb904d86051ce$export$89be5a243e59c4b2, {
|
|
1014
|
-
layout: usesReversedLayout ? ReversedListLayout : $a3be900807531178$re_export$ListLayout,
|
|
1015
|
-
layoutOptions: virtualizerOptions,
|
|
1016
|
-
children: /* @__PURE__ */ jsx($928221da08ecbc62$export$41f133550aa26f48, {
|
|
1017
|
-
ref: listBoxRef,
|
|
1018
|
-
...props,
|
|
1019
|
-
"aria-label": label,
|
|
1020
|
-
selectionMode,
|
|
1021
|
-
className: clsx("flex-1 outline-none [&>div:last-child>*]:border-b-0", isScrollable ? "max-h-full overflow-y-auto overflow-x-hidden" : "overflow-hidden", className),
|
|
1022
|
-
items: displayedListItems,
|
|
1023
|
-
selectedKeys: selectedIds,
|
|
1024
|
-
onSelectionChange,
|
|
1025
|
-
onScroll,
|
|
1026
|
-
escapeKeyBehavior: "none",
|
|
1027
|
-
shouldSelectOnPressUp: true,
|
|
1028
|
-
children: renderItem
|
|
1029
|
-
})
|
|
1030
|
-
});
|
|
1031
|
-
return /* @__PURE__ */ jsx($928221da08ecbc62$export$41f133550aa26f48, {
|
|
1032
|
-
ref: listBoxRef,
|
|
1033
|
-
...props,
|
|
1034
|
-
"aria-label": label,
|
|
1035
|
-
selectionMode,
|
|
1036
|
-
className: clsx("flex-1 outline-none [&>div:last-child]:border-b-0", isScrollable ? "max-h-full overflow-y-auto overflow-x-hidden" : "overflow-hidden", className),
|
|
1037
|
-
items: displayedListItems,
|
|
1038
|
-
selectedKeys: selectedIds,
|
|
1039
|
-
onSelectionChange,
|
|
1040
|
-
onScroll,
|
|
1041
|
-
escapeKeyBehavior: "none",
|
|
1042
|
-
shouldSelectOnPressUp: true,
|
|
1043
|
-
children: renderItem
|
|
1044
|
-
});
|
|
701
|
+
//#region src/components/inputs/Selection/shared/SelectListBox.lazy.tsx
|
|
702
|
+
const loadSelectListBox = () => import("./SelectListBox-CFOH3brT.js");
|
|
703
|
+
const SelectListBoxRenderer = lazy(() => loadSelectListBox().then(({ SelectListBox }) => ({ default: SelectListBox })));
|
|
704
|
+
/** Fetches the list box chunk ahead of the list opening (hover, focus). */
|
|
705
|
+
const preloadSelectListBox = () => {
|
|
706
|
+
loadSelectListBox();
|
|
1045
707
|
};
|
|
708
|
+
/**
|
|
709
|
+
* List box (items, virtualizer and list layouts) that only loads when a select opens.
|
|
710
|
+
* The popover and bottom sheet already render nothing while closed, so the fallback is empty.
|
|
711
|
+
*/
|
|
712
|
+
const SelectListBox = (props) => /* @__PURE__ */ jsx(Suspense, {
|
|
713
|
+
fallback: null,
|
|
714
|
+
children: /* @__PURE__ */ jsx(SelectListBoxRenderer, { ...props })
|
|
715
|
+
});
|
|
1046
716
|
//#endregion
|
|
1047
717
|
//#region src/components/inputs/Selection/shared/SelectDesktop.tsx
|
|
1048
718
|
const SelectDesktop = ({ ref, error, ignoreTriggerWidth, showSelectionContent, inputClassName, containerClassName, leadingContent, trailingContent, customTrigger, onBlur, onMouseEnter, onFocusCapture, ...props }) => {
|
|
@@ -1161,8 +831,14 @@ const SelectDesktop = ({ ref, error, ignoreTriggerWidth, showSelectionContent, i
|
|
|
1161
831
|
className: clsx("group w-full", containerClassName)
|
|
1162
832
|
},
|
|
1163
833
|
as,
|
|
1164
|
-
onMouseEnter
|
|
1165
|
-
|
|
834
|
+
onMouseEnter: (event) => {
|
|
835
|
+
preloadSelectListBox();
|
|
836
|
+
onMouseEnter?.(event);
|
|
837
|
+
},
|
|
838
|
+
onFocusCapture: (event) => {
|
|
839
|
+
preloadSelectListBox();
|
|
840
|
+
onFocusCapture?.(event);
|
|
841
|
+
},
|
|
1166
842
|
ref: wrapperRef,
|
|
1167
843
|
children: [customTrigger ? /* @__PURE__ */ jsx($f2ff30fde7b014be$export$2e1e1122cf0cba88, {
|
|
1168
844
|
...dialogTriggerProps,
|
|
@@ -1225,10 +901,10 @@ const FormFieldHeaderClose = ({ onClose }) => {
|
|
|
1225
901
|
return /* @__PURE__ */ jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
1226
902
|
onPress: onClose,
|
|
1227
903
|
"aria-label": t(($) => $.ui.closeAlt),
|
|
1228
|
-
className: "shrink-0 focus-visible:
|
|
904
|
+
className: "shrink-0 rounded-sm opacity-70 transition-opacity outline-none hover:opacity-100 focus-visible:ring-[3px] focus-visible:ring-ring/50",
|
|
1229
905
|
children: /* @__PURE__ */ jsx(IconSlot, {
|
|
1230
906
|
icon: X,
|
|
1231
|
-
className: "text-
|
|
907
|
+
className: "text-muted-foreground"
|
|
1232
908
|
})
|
|
1233
909
|
});
|
|
1234
910
|
};
|
|
@@ -1238,7 +914,7 @@ const SelectListBoxSelectionBar = ({ className }) => {
|
|
|
1238
914
|
const { t } = useTranslation("ui");
|
|
1239
915
|
const { onClear, onSelectAll } = SelectContext.useSelect();
|
|
1240
916
|
return /* @__PURE__ */ jsxs("div", {
|
|
1241
|
-
className: clsx("flex items-center justify-between border-border
|
|
917
|
+
className: clsx("flex items-center justify-between border-border border-b px-4 py-3", className),
|
|
1242
918
|
children: [/* @__PURE__ */ jsx(Button, {
|
|
1243
919
|
type: "button",
|
|
1244
920
|
color: "primary",
|
|
@@ -1303,7 +979,10 @@ const SelectMobile = ({ ref, error, showSelectionContent, inputClassName, contai
|
|
|
1303
979
|
labelProps,
|
|
1304
980
|
className: clsx("group w-full", containerClassName),
|
|
1305
981
|
onMouseEnter,
|
|
1306
|
-
onFocusCapture
|
|
982
|
+
onFocusCapture: (event) => {
|
|
983
|
+
preloadSelectListBox();
|
|
984
|
+
onFocusCapture?.(event);
|
|
985
|
+
},
|
|
1307
986
|
children: /* @__PURE__ */ jsxs($f2ff30fde7b014be$export$2e1e1122cf0cba88, {
|
|
1308
987
|
...dialogTriggerProps,
|
|
1309
988
|
children: [customTrigger ? /* @__PURE__ */ jsx("div", {
|
|
@@ -1354,8 +1033,8 @@ const SelectMobile = ({ ref, error, showSelectionContent, inputClassName, contai
|
|
|
1354
1033
|
onChange: onInputChange,
|
|
1355
1034
|
rightContent: /* @__PURE__ */ jsx(FormFieldHeaderClose, { onClose: close }),
|
|
1356
1035
|
inputClassName,
|
|
1357
|
-
className: "mb-
|
|
1358
|
-
leadingIcon: !hideSearchIcon ? /* @__PURE__ */ jsx(Search, { className: "size-
|
|
1036
|
+
className: "mb-2 px-4",
|
|
1037
|
+
leadingIcon: !hideSearchIcon ? /* @__PURE__ */ jsx(Search, { className: "size-4" }) : void 0,
|
|
1359
1038
|
isClearable
|
|
1360
1039
|
}), /* @__PURE__ */ jsx(SelectListBox, {
|
|
1361
1040
|
...props,
|
|
@@ -1410,13 +1089,12 @@ const StaticSelectTrailingContent = ({ trailingContent, hideDropdownIcon, size,
|
|
|
1410
1089
|
}), !hideDropdownIcon ? /* @__PURE__ */ jsx("button", {
|
|
1411
1090
|
type: "button",
|
|
1412
1091
|
tabIndex: -1,
|
|
1413
|
-
className: clsx("flex shrink-0 items-center justify-center self-stretch border-0! py-0! pl-
|
|
1092
|
+
className: clsx("flex shrink-0 items-center justify-center self-stretch border-0! py-0! pl-0! outline-none disabled:text-inherit", inputSizeCva({ size })),
|
|
1414
1093
|
disabled: isDisabled,
|
|
1415
1094
|
"aria-hidden": "true",
|
|
1416
1095
|
children: /* @__PURE__ */ jsx(IconSlot, {
|
|
1417
1096
|
icon: ChevronDown,
|
|
1418
|
-
className: "
|
|
1419
|
-
iconClassName: "fill-current stroke-0"
|
|
1097
|
+
className: "opacity-50"
|
|
1420
1098
|
})
|
|
1421
1099
|
}) : void 0] });
|
|
1422
1100
|
};
|
|
@@ -1541,7 +1219,7 @@ function SelectInner({ renderStaticInput, isFormControlDisabled, list, ...inputP
|
|
|
1541
1219
|
dataHasSearch: false
|
|
1542
1220
|
};
|
|
1543
1221
|
const buttonContent = as === "floating" && isEmpty || isMultiple && !isEmpty ? /* @__PURE__ */ jsx(Fragment$1, { children: "\xA0" }) : isEmpty ? /* @__PURE__ */ jsx("span", {
|
|
1544
|
-
className: "block truncate text-
|
|
1222
|
+
className: "block truncate text-muted-foreground empty:before:inline-block empty:before:content-['']",
|
|
1545
1223
|
children: placeholder
|
|
1546
1224
|
}) : /* @__PURE__ */ jsx("span", {
|
|
1547
1225
|
className: "block truncate",
|
|
@@ -1555,13 +1233,15 @@ function SelectInner({ renderStaticInput, isFormControlDisabled, list, ...inputP
|
|
|
1555
1233
|
inputClassName: clsx(props.className, props.inputClassName),
|
|
1556
1234
|
contentWrapperClassName: selectInputTagsContentWrapperCva({ isSearchable }),
|
|
1557
1235
|
contentGroup: "select",
|
|
1236
|
+
contentClassName: "pr-2!",
|
|
1237
|
+
clearClassName: "mr-2",
|
|
1558
1238
|
labelPlacement: "content-row",
|
|
1559
1239
|
dataAttributes,
|
|
1560
1240
|
wrapTrailingContent: false,
|
|
1561
1241
|
onStaticInteract: renderRealInput,
|
|
1562
1242
|
onStaticPress: replayStaticInputPress,
|
|
1563
1243
|
leadingContent: props.leadingContent && /* @__PURE__ */ jsx("div", {
|
|
1564
|
-
className: "
|
|
1244
|
+
className: "flex shrink-0 items-center",
|
|
1565
1245
|
children: props.leadingContent
|
|
1566
1246
|
}),
|
|
1567
1247
|
onClear: () => props.onChange?.(isMultiple ? [] : null),
|
|
@@ -1576,7 +1256,7 @@ function SelectInner({ renderStaticInput, isFormControlDisabled, list, ...inputP
|
|
|
1576
1256
|
"aria-expanded": false,
|
|
1577
1257
|
value: inputValue,
|
|
1578
1258
|
placeholder: shouldRenderPlaceholderAfterValue ? props.placeholder : placeholder ?? void 0,
|
|
1579
|
-
className: clsx("min-w-0 w-full flex-1 bg-transparent outline-none placeholder:text-
|
|
1259
|
+
className: clsx("min-w-0 w-full flex-1 bg-transparent outline-none placeholder:text-muted-foreground disabled:text-inherit", props.inputClassName),
|
|
1580
1260
|
onChange: (event) => replayStaticInputChange(event.target.value),
|
|
1581
1261
|
...dataAttributeProps,
|
|
1582
1262
|
"data-rac": true
|
|
@@ -1602,4 +1282,4 @@ function Select(props) {
|
|
|
1602
1282
|
return /* @__PURE__ */ jsx(SelectInner, { ...props });
|
|
1603
1283
|
}
|
|
1604
1284
|
//#endregion
|
|
1605
|
-
export { useKeyInteractions as a, getKeyInteractionAction as i, SelectInner as n,
|
|
1285
|
+
export { useKeyInteractions as a, LoadingItemId as c, getKeyInteractionAction as i, SelectAllItemId as l, SelectInner as n, SelectContext as o, createKeyInteractionsHandler as r, useDebounceCallback as s, Select as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as BottomSheetProps } from "./BottomSheet-
|
|
2
|
-
import { n as FormFieldProps } from "./FormField-
|
|
3
|
-
import { n as InputVariantProps } from "./input.cva-
|
|
1
|
+
import { t as BottomSheetProps } from "./BottomSheet-C-jdDmO7.js";
|
|
2
|
+
import { n as FormFieldProps } from "./FormField-BsR2Cjxm.js";
|
|
3
|
+
import { n as InputVariantProps } from "./input.cva-CEFEpKml.js";
|
|
4
4
|
import { s as OmitDiscriminatedUnion } from "./common-UBFya8WY.js";
|
|
5
5
|
import { t as AsyncList } from "./useAsyncList-Cu-Y8If2.js";
|
|
6
6
|
import { FocusEventHandler, MouseEventHandler, ReactElement, ReactNode, Ref } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as SelectInner } from "./Select-
|
|
1
|
+
import { n as SelectInner } from "./Select-DbZOJ-0u.js";
|
|
2
2
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
|
|
3
3
|
import { t as FieldController } from "./form.binding-B-2id68q.js";
|
|
4
4
|
import { memo } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { s as OmitDiscriminatedUnion } from "./common-UBFya8WY.js";
|
|
2
|
-
import { a as SelectProps$1, c as MultiSelectProps, f as SingleSelectProps, n as SelectDataProps, o as DefaultInitialSelectItem, s as GroupedSelectProps } from "./Select-
|
|
2
|
+
import { a as SelectProps$1, c as MultiSelectProps, f as SingleSelectProps, n as SelectDataProps, o as DefaultInitialSelectItem, s as GroupedSelectProps } from "./Select-NNohxr1t.js";
|
|
3
3
|
import { n as FieldValues, t as FormControlProps } from "./form.types-C8P4sznq.js";
|
|
4
4
|
import { ReactElement } from "react";
|
|
5
5
|
import { Key } from "react-aria-components";
|