@povio/ui 6.0.0-rc.1 → 6.0.0-rc.2
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-DSwAc7jF.js} +7 -7
- package/dist/{Autocomplete.bound-CqhZtdd8.d.ts → Autocomplete.bound-Db5C6Jph.d.ts} +1 -1
- package/dist/{Autocomplete.bound-D0pgmsHB.js → Autocomplete.bound-e5WbxlBm.js} +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-ChmIflXX.js} +20 -24
- 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-Bc_E4UZ1.js} +9 -9
- package/dist/{DatePicker.bound-KLyoWNcX.d.ts → DatePicker.bound-C5-DL4SJ.d.ts} +1 -1
- package/dist/{DatePicker.bound-Yqckg7Mk.js → DatePicker.bound-CtBL5w-8.js} +1 -1
- package/dist/{DatePickerInput-DwHQvLzi.d.ts → DatePickerInput-8gKhZdGY.d.ts} +3 -3
- package/dist/{DatePickerInput-Cs9RwZfy.js → DatePickerInput-TND0rEMc.js} +38 -30
- package/dist/{DateRangePicker-s_4n-F_P.js → DateRangePicker-BNMTOQ2N.js} +16 -16
- 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-GeRw9Iuj.js} +1 -1
- package/dist/{DateTimePicker-411pU7VF.js → DateTimePicker-B3YjV4uj.js} +9 -9
- package/dist/{DateTimePicker-wgV0SUeZ.d.ts → DateTimePicker-CzGdmamp.d.ts} +3 -3
- package/dist/{DateTimePicker.bound-BDyUzidV.js → DateTimePicker.bound-ByjHsAnf.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-CG4Irgae.js → Input-BdCci6BF.js} +6 -6
- package/dist/{Input-BX3sZBEp.d.ts → Input-Bu4G9gcn.d.ts} +3 -3
- package/dist/{Input.bound-jZx8gJro.js → Input.bound-CnqI-L-b.js} +1 -1
- package/dist/{Input.bound-BE-espm0.d.ts → Input.bound-CxfKRXzI.d.ts} +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-BLAwsjns.js} +6 -6
- package/dist/{NumberField-qjvHhCfN.d.ts → NumberField-DCMQZPY9.d.ts} +3 -3
- package/dist/{NumberField.bound-zySl-v_q.js → NumberField.bound-DiDYEZM4.js} +1 -1
- package/dist/{NumberField.bound-DXPGF5YK.d.ts → NumberField.bound-fZLE6Odv.d.ts} +1 -1
- package/dist/{NumberRangeInput-CS4Kn427.d.ts → NumberRangeInput-CtSYPK2e.d.ts} +2 -2
- package/dist/{NumberRangeInput-BrW03wC6.js → NumberRangeInput-al32ZeSy.js} +12 -12
- package/dist/{NumberRangeInput.bound-CKywKEKI.js → NumberRangeInput.bound-B0e7yUDI.js} +1 -1
- package/dist/{NumberRangeInput.bound-C8I7m1cW.d.ts → NumberRangeInput.bound-CxAk_1_K.d.ts} +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-Bj3WO1zC.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/{RichTextEditor-hJtuB7Y6.d.ts → RichTextEditor-k9LvNCjg.d.ts} +1 -1
- package/dist/{RichTextEditor-BYIQW8QA.js → RichTextEditor-qoxzWBFP.js} +16 -16
- package/dist/{Select-Br_3eecr.js → Select-BAlYMh4h.js} +43 -36
- package/dist/{Select-DHYddedn.d.ts → Select-NNohxr1t.d.ts} +3 -3
- package/dist/{Select.bound-CgLKMzLn.js → Select.bound-CQPG2sWV.js} +1 -1
- package/dist/{Select.bound-CJ-tCsmX.d.ts → Select.bound-Dh5kywfV.d.ts} +1 -1
- 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-CmBGkxDC.js} +13 -13
- package/dist/{TimePicker.bound-B-BVLNbk.js → TimePicker.bound-3i1DJgrU.js} +1 -1
- package/dist/{TimePicker.bound-Bxtb6uJL.d.ts → TimePicker.bound-BMZWRtpJ.d.ts} +1 -1
- 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-OAQBDk1R.js → datePickerValue.utils-BxHR_BQZ.js} +9 -9
- 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/index.d.ts +70 -70
- package/dist/index.js +70 -70
- 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-CA_lwN-O.js} +8 -8
- 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 +70 -70
- 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/{useTableColumnConfig-CUINwVTR.js → useTableColumnConfig-DoTYVxqG.js} +13 -12
- 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,13 +1,13 @@
|
|
|
1
1
|
import { t as createLucideIcon } from "./createLucideIcon-LcezOE4z.js";
|
|
2
|
-
import { r as MenuItem, t as DropdownMenuDesktop } from "./DropdownMenuDesktop-
|
|
2
|
+
import { r as MenuItem, t as DropdownMenuDesktop } from "./DropdownMenuDesktop-BMkiHEuY.js";
|
|
3
3
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
4
4
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
5
|
-
import { t as IconSlot } from "./IconSlot-
|
|
5
|
+
import { t as IconSlot } from "./IconSlot-Cuvpj1gd.js";
|
|
6
6
|
import { s as $49319ee1285aa241$export$d9b273488cd8ce6f } from "./Dialog-lFYX-7Ax.js";
|
|
7
7
|
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-C1YB5dOw.js";
|
|
8
|
-
import { n as menuItemDefinition, t as dropdownMenuDefinition } from "./dropdownMenu.cva-
|
|
8
|
+
import { n as menuItemDefinition, t as dropdownMenuDefinition } from "./dropdownMenu.cva-CS5Q2b_3.js";
|
|
9
9
|
import { BottomSheet } from "./components/bottom-sheet.js";
|
|
10
|
-
import { t as useBreakpoint } from "./useBreakpoint-
|
|
10
|
+
import { t as useBreakpoint } from "./useBreakpoint-DOUmXVZ2.js";
|
|
11
11
|
import { useRef, useState } from "react";
|
|
12
12
|
import { c } from "react/compiler-runtime";
|
|
13
13
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as MenuPopoverWrapperVariantProps, h as MenuPopoverVariantProps, m as MenuItemVariantProps, p as DropdownMenuCvaVariantProps } from "./style-definitions-
|
|
2
|
-
import { t as BottomSheetProps } from "./BottomSheet-
|
|
1
|
+
import { g as MenuPopoverWrapperVariantProps, h as MenuPopoverVariantProps, m as MenuItemVariantProps, p as DropdownMenuCvaVariantProps } from "./style-definitions-DzsmGccZ.js";
|
|
2
|
+
import { t as BottomSheetProps } from "./BottomSheet-C-jdDmO7.js";
|
|
3
3
|
import { ReactElement } from "react";
|
|
4
4
|
import { Key, MenuItemProps } from "react-aria-components";
|
|
5
5
|
import { Placement } from "react-aria";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as createLucideIcon } from "./createLucideIcon-LcezOE4z.js";
|
|
2
2
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
3
3
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
4
|
-
import { t as IconSlot } from "./IconSlot-
|
|
4
|
+
import { t as IconSlot } from "./IconSlot-Cuvpj1gd.js";
|
|
5
5
|
import { a as $49319ee1285aa241$export$27d2ad3c5815583e, c as $49319ee1285aa241$export$ecabc99eeffab7ca, l as $542a13ca2fa5b484$export$5b6b19405a83ff9d, o as $49319ee1285aa241$export$2ce376c2cc3355c8, s as $49319ee1285aa241$export$d9b273488cd8ce6f } from "./Dialog-lFYX-7Ax.js";
|
|
6
|
-
import { i as menuPopoverWrapperDefinition, n as menuItemDefinition, r as menuPopoverDefinition, t as dropdownMenuDefinition } from "./dropdownMenu.cva-
|
|
6
|
+
import { i as menuPopoverWrapperDefinition, n as menuItemDefinition, r as menuPopoverDefinition, t as dropdownMenuDefinition } from "./dropdownMenu.cva-CS5Q2b_3.js";
|
|
7
7
|
import { t as popoverAnimationClassName } from "./popoverAnimation-DEZSvKP8.js";
|
|
8
8
|
import { useRef } from "react";
|
|
9
9
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as StyleMergeUtils, t as UIOverrides } from "./uiOverrides.context-Dmev7iRS.js";
|
|
2
|
-
import "./style-definitions-
|
|
3
|
-
import "./button.cva-
|
|
4
|
-
import { n as FormFieldProps } from "./FormField-
|
|
5
|
-
import { t as InputSizeProps } from "./input.cva-
|
|
2
|
+
import "./style-definitions-DzsmGccZ.js";
|
|
3
|
+
import "./button.cva-YpNNY6C-.js";
|
|
4
|
+
import { n as FormFieldProps } from "./FormField-BsR2Cjxm.js";
|
|
5
|
+
import { t as InputSizeProps } from "./input.cva-CEFEpKml.js";
|
|
6
6
|
import { FocusEventHandler, Ref } from "react";
|
|
7
7
|
import { DropZoneProps, FileTriggerProps } from "react-aria-components";
|
|
8
8
|
import { ClassProp } from "class-variance-authority/types";
|
|
@@ -22,8 +22,8 @@ declare const fileInputDropZoneDefinition: {
|
|
|
22
22
|
base: string[];
|
|
23
23
|
config: StyleMergeUtils.Config<{
|
|
24
24
|
readonly variant: {
|
|
25
|
-
default: ["rounded-
|
|
26
|
-
nested: ["rounded-
|
|
25
|
+
default: ["rounded-md border border-input border-solid bg-transparent shadow-xs dark:bg-input/30"];
|
|
26
|
+
nested: ["rounded-md border border-input border-solid bg-transparent shadow-xs dark:bg-input/30"];
|
|
27
27
|
};
|
|
28
28
|
}>;
|
|
29
29
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
1
|
+
import { t as UIConfig } from "./uiConfig.context-dxsO9puE.js";
|
|
2
2
|
import { n as $070c0dd15dc89b58$export$3c6489d84dc98b6, r as Upload, t as $b325d7bd7e74496a$export$6fb4a10d2c950550 } from "./FileTrigger-DBX1Io6E.js";
|
|
3
3
|
import { t as X } from "./x-B6vfz8Ps.js";
|
|
4
4
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
5
5
|
import { r as cva, t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
6
|
-
import { t as Typography } from "./Typography-
|
|
7
|
-
import { t as Button } from "./Button-
|
|
6
|
+
import { t as Typography } from "./Typography-Ba5l4rmj.js";
|
|
7
|
+
import { t as Button } from "./Button-DU1Q8GDB.js";
|
|
8
8
|
import { IconButton } from "./components/icon-button.js";
|
|
9
9
|
import { i as $a8ea2faf2ebe4d2f$re_export$useLabels } from "./import-D_3dPATF.js";
|
|
10
|
-
import { t as FormField } from "./FormField-
|
|
11
|
-
import { a as inputSizeDefinition } from "./input.cva-
|
|
10
|
+
import { t as FormField } from "./FormField-DyqEbqx3.js";
|
|
11
|
+
import { a as inputSizeDefinition } from "./input.cva-AHLI_M3K.js";
|
|
12
12
|
import "./i18n-BjNKHh_D.js";
|
|
13
13
|
import { t as FileUtils } from "./file.utils-DqQxnuAm.js";
|
|
14
14
|
import { memo, useState } from "react";
|
|
@@ -22,7 +22,7 @@ const inputButtonSizeMapping = {
|
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region src/components/inputs/File/shared/fileInputButton.cva.ts
|
|
24
24
|
const fileInputButtonDefinition = UIOverrides.defineConfig({
|
|
25
|
-
base: ["flex w-full items-center justify-between gap-
|
|
25
|
+
base: ["flex w-full items-center justify-between gap-2"],
|
|
26
26
|
config: {
|
|
27
27
|
variants: { variant: {
|
|
28
28
|
default: [],
|
|
@@ -41,14 +41,15 @@ const fileInputDropZoneDefinition = UIOverrides.defineConfig({
|
|
|
41
41
|
"relative",
|
|
42
42
|
"min-w-0 flex-1",
|
|
43
43
|
"flex items-center",
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
44
|
+
"outline-none transition-[color,box-shadow]",
|
|
45
|
+
"focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
|
|
46
|
+
"data-[drop-target]:border-ring data-[drop-target]:ring-[3px] data-[drop-target]:ring-ring/50",
|
|
47
|
+
"group-invalid/input-upload:border-destructive group-invalid/input-upload:ring-destructive/20 dark:group-invalid/input-upload:ring-destructive/40"
|
|
47
48
|
],
|
|
48
49
|
config: {
|
|
49
50
|
variants: { variant: {
|
|
50
|
-
default: ["rounded-
|
|
51
|
-
nested: ["rounded-
|
|
51
|
+
default: ["rounded-md border border-input border-solid bg-transparent shadow-xs dark:bg-input/30"],
|
|
52
|
+
nested: ["rounded-md border border-input border-solid bg-transparent shadow-xs dark:bg-input/30"]
|
|
52
53
|
} },
|
|
53
54
|
defaultVariants: { variant: "default" }
|
|
54
55
|
}
|
|
@@ -78,7 +79,7 @@ const FileInputContent = (props) => {
|
|
|
78
79
|
children: [/* @__PURE__ */ jsx(Typography, {
|
|
79
80
|
size: "large",
|
|
80
81
|
as: "span",
|
|
81
|
-
className: "min-w-0 flex-fill select-none truncate text-
|
|
82
|
+
className: "min-w-0 flex-fill select-none truncate text-muted-foreground",
|
|
82
83
|
children: placeholder ?? t(($) => $.ui.fileUpload.emptyText)
|
|
83
84
|
}), variant === "nested" && /* @__PURE__ */ jsx(Button, {
|
|
84
85
|
size: "none",
|
|
@@ -103,11 +104,11 @@ const FileInputContent = (props) => {
|
|
|
103
104
|
const FileInputFilled = ({ files, onRemove, isDisabled, size }) => {
|
|
104
105
|
const inputSizeCva = UIOverrides.useCva("input.sizeCva", inputSizeDefinition);
|
|
105
106
|
return /* @__PURE__ */ jsxs("div", {
|
|
106
|
-
className: clsx("flex items-center rounded-
|
|
107
|
+
className: clsx("flex items-center gap-2 rounded-md border border-input border-solid bg-transparent shadow-xs dark:bg-input/30", inputSizeCva({ size })),
|
|
107
108
|
children: [/* @__PURE__ */ jsx(Typography, {
|
|
108
109
|
size: "large",
|
|
109
110
|
as: "span",
|
|
110
|
-
className: "flex-fill select-none truncate text-ellipsis text-
|
|
111
|
+
className: "flex-fill select-none truncate text-ellipsis text-foreground input-disabled:text-muted-foreground",
|
|
111
112
|
children: files.map((file) => file.name).join(", ")
|
|
112
113
|
}), /* @__PURE__ */ jsx(IconButton, {
|
|
113
114
|
label: "Remove files",
|
|
@@ -118,7 +119,7 @@ const FileInputFilled = ({ files, onRemove, isDisabled, size }) => {
|
|
|
118
119
|
variant: "text",
|
|
119
120
|
width: "hug",
|
|
120
121
|
disableTooltip: true,
|
|
121
|
-
size: "
|
|
122
|
+
size: "none"
|
|
122
123
|
})]
|
|
123
124
|
});
|
|
124
125
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
|
|
2
2
|
import { t as FieldController } from "./form.binding-B-2id68q.js";
|
|
3
|
-
import { n as FileInputBase } from "./FileInput-
|
|
3
|
+
import { n as FileInputBase } from "./FileInput-Bpm2HJSB.js";
|
|
4
4
|
import { memo } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/inputs/File/FileInput.bound.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as FileInputBaseProps } from "./FileInput-
|
|
1
|
+
import { i as FileInputBaseProps } from "./FileInput-0o8-IJUh.js";
|
|
2
2
|
import { n as FieldValues, t as FormControlProps } from "./form.types-C8P4sznq.js";
|
|
3
3
|
//#region src/components/inputs/File/FileInput.bound.d.ts
|
|
4
4
|
type FileInputProps<TFieldValues extends FieldValues = FieldValues> = FormControlProps<FileInputBaseProps, TFieldValues>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as FileUploadBaseProps, o as FileUploadProps } from "./fileUpload.types-
|
|
1
|
+
import { n as FileUploadBaseProps, o as FileUploadProps } from "./fileUpload.types-DKICER1J.js";
|
|
2
2
|
//#region src/components/inputs/File/FileUpload.d.ts
|
|
3
3
|
declare const FileUploadBase: (props: FileUploadBaseProps & {
|
|
4
4
|
boundValue?: File | File[] | null;
|
|
@@ -1,19 +1,19 @@
|
|
|
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 { n as $070c0dd15dc89b58$export$3c6489d84dc98b6, r as Upload, t as $b325d7bd7e74496a$export$6fb4a10d2c950550 } from "./FileTrigger-DBX1Io6E.js";
|
|
4
4
|
import { t as X } from "./x-B6vfz8Ps.js";
|
|
5
5
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
6
6
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
7
|
-
import { t as IconSlot } from "./IconSlot-
|
|
8
|
-
import { t as Typography } from "./Typography-
|
|
9
|
-
import { t as Button } from "./Button-
|
|
7
|
+
import { t as IconSlot } from "./IconSlot-Cuvpj1gd.js";
|
|
8
|
+
import { t as Typography } from "./Typography-Ba5l4rmj.js";
|
|
9
|
+
import { t as Button } from "./Button-DU1Q8GDB.js";
|
|
10
10
|
import { IconButton } from "./components/icon-button.js";
|
|
11
11
|
import { i as $a8ea2faf2ebe4d2f$re_export$useLabels } from "./import-D_3dPATF.js";
|
|
12
|
-
import { t as FormField } from "./FormField-
|
|
12
|
+
import { t as FormField } from "./FormField-DyqEbqx3.js";
|
|
13
13
|
import "./i18n-BjNKHh_D.js";
|
|
14
14
|
import { t as FileUtils } from "./file.utils-DqQxnuAm.js";
|
|
15
|
-
import { t as Progress } from "./Progress-
|
|
16
|
-
import { t as fileUploadDropZoneDefinition } from "./fileUpload.cva-
|
|
15
|
+
import { t as Progress } from "./Progress-ZsKwo9ne.js";
|
|
16
|
+
import { t as fileUploadDropZoneDefinition } from "./fileUpload.cva-DVJcCCYz.js";
|
|
17
17
|
import { memo, useCallback, useEffect, useId, useMemo, useRef, useState } from "react";
|
|
18
18
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
19
19
|
import { useTranslation } from "react-i18next";
|
|
@@ -104,32 +104,32 @@ const FileUploadContentError = ({ variant, as, isDisabled, state, browseText, fi
|
|
|
104
104
|
return /* @__PURE__ */ jsx("div", {
|
|
105
105
|
className: clsx("flex w-full flex-fill flex-col items-start"),
|
|
106
106
|
children: /* @__PURE__ */ jsxs("div", {
|
|
107
|
-
className: clsx("flex w-full items-center", variant === "horizontal" && "flex-row gap-
|
|
107
|
+
className: clsx("flex w-full items-center", variant === "horizontal" && "flex-row gap-4", variant === "vertical" && "flex-col", variant === "vertical" && as === "button" && "gap-4", variant === "vertical" && as === "link" && "gap-1"),
|
|
108
108
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
109
|
-
className: clsx("flex min-w-0 max-w-full flex-grow items-center gap-
|
|
109
|
+
className: clsx("flex min-w-0 max-w-full flex-grow items-center gap-2", variant === "vertical" && "flex-col", variant === "horizontal" && "flex-row", isDisabled && "opacity-50"),
|
|
110
110
|
children: [/* @__PURE__ */ jsx(IconSlot, {
|
|
111
111
|
icon: CircleAlert,
|
|
112
|
-
className: "text-
|
|
112
|
+
className: "text-warning"
|
|
113
113
|
}), /* @__PURE__ */ jsxs("div", {
|
|
114
|
-
className: clsx("flex flex-col gap-
|
|
114
|
+
className: clsx("flex flex-col gap-1", variant === "vertical" && "max-w-full items-center", variant === "horizontal" && "max-w-[calc(100%_-_32px)]"),
|
|
115
115
|
children: [/* @__PURE__ */ jsx(Typography, {
|
|
116
116
|
size: "large",
|
|
117
117
|
as: "span",
|
|
118
|
-
className: clsx("self-stretch truncate text-
|
|
118
|
+
className: clsx("self-stretch truncate text-foreground font-medium", variant === "vertical" && "text-center"),
|
|
119
119
|
children: state.file?.name ?? state.displayName ?? ""
|
|
120
120
|
}), /* @__PURE__ */ jsx(Typography, {
|
|
121
121
|
size: singleFile ? "small" : "small",
|
|
122
122
|
as: "span",
|
|
123
|
-
className: clsx("text-
|
|
123
|
+
className: clsx("text-muted-foreground", variant === "vertical" && "text-center"),
|
|
124
124
|
children: state.error?.serverMessage ?? state.error?.message
|
|
125
125
|
})]
|
|
126
126
|
})]
|
|
127
127
|
}), /* @__PURE__ */ jsx("div", {
|
|
128
|
-
className: clsx("flex flex-none items-center justify-end", variant === "vertical" && as === "button" && "flex-col", as === "link" && "gap-
|
|
128
|
+
className: clsx("flex flex-none items-center justify-end", variant === "vertical" && as === "button" && "flex-col", as === "link" && "gap-1", as === "button" && "gap-4"),
|
|
129
129
|
children: as === "link" ? /* @__PURE__ */ jsxs(Fragment$1, { children: [fileTriggerProps && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx($b325d7bd7e74496a$export$6fb4a10d2c950550, {
|
|
130
130
|
...fileTriggerProps,
|
|
131
131
|
children: /* @__PURE__ */ jsx(Button, {
|
|
132
|
-
className: "text-
|
|
132
|
+
className: "text-primary",
|
|
133
133
|
variant: "text",
|
|
134
134
|
width: "hug",
|
|
135
135
|
children: browseText ?? ""
|
|
@@ -137,7 +137,7 @@ const FileUploadContentError = ({ variant, as, isDisabled, state, browseText, fi
|
|
|
137
137
|
}), /* @__PURE__ */ jsx(Typography, {
|
|
138
138
|
size: "small",
|
|
139
139
|
as: "span",
|
|
140
|
-
className: "text-
|
|
140
|
+
className: "text-foreground",
|
|
141
141
|
children: t(($) => $.ui.fileUpload.or)
|
|
142
142
|
})] }), removeWithIcon ? /* @__PURE__ */ jsx(IconButton, {
|
|
143
143
|
label: "Cancel",
|
|
@@ -151,7 +151,7 @@ const FileUploadContentError = ({ variant, as, isDisabled, state, browseText, fi
|
|
|
151
151
|
disableTooltip: true,
|
|
152
152
|
size: "sm"
|
|
153
153
|
}) : /* @__PURE__ */ jsx(Button, {
|
|
154
|
-
className: "text-
|
|
154
|
+
className: "text-primary lowercase",
|
|
155
155
|
onPress: () => {
|
|
156
156
|
onRemove(state.id ?? "");
|
|
157
157
|
},
|
|
@@ -159,7 +159,7 @@ const FileUploadContentError = ({ variant, as, isDisabled, state, browseText, fi
|
|
|
159
159
|
width: "hug",
|
|
160
160
|
children: t(($) => $.ui.fileUpload.removeFile)
|
|
161
161
|
})] }) : /* @__PURE__ */ jsxs("div", {
|
|
162
|
-
className: "flex items-center justify-center gap-
|
|
162
|
+
className: "flex items-center justify-center gap-2 self-stretch",
|
|
163
163
|
children: [fileTriggerProps && /* @__PURE__ */ jsx($b325d7bd7e74496a$export$6fb4a10d2c950550, {
|
|
164
164
|
...fileTriggerProps,
|
|
165
165
|
children: /* @__PURE__ */ jsx(Button, {
|
|
@@ -203,32 +203,32 @@ const FileUploadContentFilled = ({ variant, as, isDisabled, state, browseText, f
|
|
|
203
203
|
return /* @__PURE__ */ jsx("div", {
|
|
204
204
|
className: clsx("flex w-full flex-fill flex-col items-start"),
|
|
205
205
|
children: /* @__PURE__ */ jsxs("div", {
|
|
206
|
-
className: clsx("flex w-full items-center", variant === "horizontal" && "flex-row gap-
|
|
206
|
+
className: clsx("flex w-full items-center", variant === "horizontal" && "flex-row gap-4", variant === "vertical" && "flex-col", variant === "vertical" && as === "button" && "gap-4", variant === "vertical" && as === "link" && "gap-1"),
|
|
207
207
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
208
|
-
className: clsx("flex min-w-0 max-w-full grow items-center gap-
|
|
208
|
+
className: clsx("flex min-w-0 max-w-full grow items-center gap-2", variant === "vertical" && "flex-col", variant === "horizontal" && "flex-row", isDisabled && "opacity-50"),
|
|
209
209
|
children: [/* @__PURE__ */ jsx(IconSlot, {
|
|
210
210
|
icon: CircleCheckBig,
|
|
211
|
-
className: "text-
|
|
211
|
+
className: "text-muted-foreground"
|
|
212
212
|
}), /* @__PURE__ */ jsxs("div", {
|
|
213
|
-
className: clsx("flex flex-col gap-
|
|
213
|
+
className: clsx("flex flex-col gap-1", variant === "vertical" && "max-w-full items-center", variant === "horizontal" && "max-w-[calc(100%-32px)]"),
|
|
214
214
|
children: [/* @__PURE__ */ jsx(Typography, {
|
|
215
215
|
size: "large",
|
|
216
216
|
as: "span",
|
|
217
|
-
className: "self-stretch truncate text-center text-
|
|
217
|
+
className: "self-stretch truncate text-center text-foreground font-medium",
|
|
218
218
|
children: state.file?.name ?? state.displayName ?? ""
|
|
219
219
|
}), /* @__PURE__ */ jsx(Typography, {
|
|
220
220
|
size: singleFile ? "small" : "small",
|
|
221
221
|
as: "span",
|
|
222
|
-
className: "text-
|
|
222
|
+
className: "text-foreground",
|
|
223
223
|
children: FileUtils.getFileDisplaySize(state)
|
|
224
224
|
})]
|
|
225
225
|
})]
|
|
226
226
|
}), /* @__PURE__ */ jsx("div", {
|
|
227
|
-
className: clsx("flex flex-none items-center justify-end", variant === "vertical" && as === "button" && "flex-col", as === "link" && variant === "vertical" && "gap-
|
|
227
|
+
className: clsx("flex flex-none items-center justify-end", variant === "vertical" && as === "button" && "flex-col", as === "link" && variant === "vertical" && "gap-1", as === "button" && variant === "vertical" && "gap-4", variant === "horizontal" && "gap-2"),
|
|
228
228
|
children: as === "link" ? /* @__PURE__ */ jsxs(Fragment$1, { children: [fileTriggerProps && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx($b325d7bd7e74496a$export$6fb4a10d2c950550, {
|
|
229
229
|
...fileTriggerProps,
|
|
230
230
|
children: /* @__PURE__ */ jsx(Button, {
|
|
231
|
-
className: clsx("text-
|
|
231
|
+
className: clsx("text-primary", variant === "vertical" && "[&>span>span]:font-medium!"),
|
|
232
232
|
variant: "text",
|
|
233
233
|
width: "hug",
|
|
234
234
|
children: browseText ?? ""
|
|
@@ -236,7 +236,7 @@ const FileUploadContentFilled = ({ variant, as, isDisabled, state, browseText, f
|
|
|
236
236
|
}), variant === "vertical" && /* @__PURE__ */ jsx(Typography, {
|
|
237
237
|
size: "small",
|
|
238
238
|
as: "span",
|
|
239
|
-
className: "text-
|
|
239
|
+
className: "text-muted-foreground",
|
|
240
240
|
children: t(($) => $.ui.fileUpload.or)
|
|
241
241
|
})] }), removeWithIcon ? /* @__PURE__ */ jsx(IconButton, {
|
|
242
242
|
label: "Cancel",
|
|
@@ -250,7 +250,7 @@ const FileUploadContentFilled = ({ variant, as, isDisabled, state, browseText, f
|
|
|
250
250
|
disableTooltip: true,
|
|
251
251
|
size: "sm"
|
|
252
252
|
}) : /* @__PURE__ */ jsx(Button, {
|
|
253
|
-
className: clsx(variant === "vertical" && "text-
|
|
253
|
+
className: clsx(variant === "vertical" && "text-primary lowercase [&>span>span]:font-medium!"),
|
|
254
254
|
color: variant === "horizontal" ? "secondary" : "primary",
|
|
255
255
|
onPress: () => {
|
|
256
256
|
onRemove(state.id ?? "");
|
|
@@ -259,7 +259,7 @@ const FileUploadContentFilled = ({ variant, as, isDisabled, state, browseText, f
|
|
|
259
259
|
width: "hug",
|
|
260
260
|
children: t(($) => $.ui.fileUpload.removeFile)
|
|
261
261
|
})] }) : /* @__PURE__ */ jsxs("div", {
|
|
262
|
-
className: "flex items-center justify-center gap-
|
|
262
|
+
className: "flex items-center justify-center gap-2 self-stretch",
|
|
263
263
|
children: [fileTriggerProps && /* @__PURE__ */ jsx($b325d7bd7e74496a$export$6fb4a10d2c950550, {
|
|
264
264
|
...fileTriggerProps,
|
|
265
265
|
children: /* @__PURE__ */ jsx(Button, {
|
|
@@ -303,25 +303,25 @@ const FileUploadContentLoading = ({ index, variant, as, state, isDisabled, singl
|
|
|
303
303
|
const { t } = useTranslation("ui");
|
|
304
304
|
const { color: cancelButtonColor = "secondary", size: cancelButtonSize = "sm", variant: cancelButtonVariant = "outlined", width: cancelButtonWidth = "hug", ...cancelButtonRestProps } = cancelButtonProps ?? {};
|
|
305
305
|
return /* @__PURE__ */ jsxs("div", {
|
|
306
|
-
className: clsx("flex w-full flex-col items-center", variant === "vertical" && "flex-col", variant === "horizontal" && "flex-row", as === "button" && "gap-
|
|
306
|
+
className: clsx("flex w-full flex-col items-center", variant === "vertical" && "flex-col", variant === "horizontal" && "flex-row", as === "button" && "gap-4"),
|
|
307
307
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
308
|
-
className: clsx("flex w-full items-center justify-between", variant === "vertical" && "flex-col gap-
|
|
308
|
+
className: clsx("flex w-full items-center justify-between", variant === "vertical" && "flex-col gap-1", variant === "horizontal" && "flex-row gap-4", isDisabled && "opacity-50"),
|
|
309
309
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
310
|
-
className: clsx("flex items-center gap-
|
|
310
|
+
className: clsx("flex items-center gap-2", variant === "vertical" && "w-full flex-col", variant === "horizontal" && "w-1/2"),
|
|
311
311
|
children: [/* @__PURE__ */ jsx(IconSlot, {
|
|
312
312
|
icon: File,
|
|
313
|
-
className: "text-
|
|
313
|
+
className: "text-muted-foreground"
|
|
314
314
|
}), /* @__PURE__ */ jsxs("div", {
|
|
315
|
-
className: clsx("flex flex-col", variant === "vertical" && "max-w-full gap-
|
|
315
|
+
className: clsx("flex flex-col", variant === "vertical" && "max-w-full gap-2 text-center", variant === "horizontal" && "max-w-[calc(100%-32px)] gap-1"),
|
|
316
316
|
children: [/* @__PURE__ */ jsx(Typography, {
|
|
317
317
|
size: "large",
|
|
318
318
|
as: "span",
|
|
319
|
-
className: "self-stretch truncate text-center text-
|
|
319
|
+
className: "self-stretch truncate text-center text-foreground font-medium",
|
|
320
320
|
children: state.file?.name ?? state.displayName ?? ""
|
|
321
321
|
}), /* @__PURE__ */ jsx(Typography, {
|
|
322
322
|
size: singleFile ? "small" : "small",
|
|
323
323
|
as: "span",
|
|
324
|
-
className: "text-
|
|
324
|
+
className: "text-muted-foreground",
|
|
325
325
|
children: FileUtils.getFileDisplaySize(state)
|
|
326
326
|
})]
|
|
327
327
|
})]
|
|
@@ -400,7 +400,7 @@ const FileCardComponent = ({ index, as, state, onRemove, isDisabled, browseButto
|
|
|
400
400
|
onRemove
|
|
401
401
|
]);
|
|
402
402
|
return /* @__PURE__ */ jsx("div", {
|
|
403
|
-
className: clsx("flex items-center self-stretch", "bg-
|
|
403
|
+
className: clsx("flex items-center self-stretch", "bg-card", "px-3", "py-4", "rounded-lg border border-border border-solid"),
|
|
404
404
|
children: content
|
|
405
405
|
});
|
|
406
406
|
};
|
|
@@ -409,7 +409,7 @@ const FileCard = memo(FileCardComponent);
|
|
|
409
409
|
//#region src/components/inputs/File/shared/FileCardList.tsx
|
|
410
410
|
const FileCardList = memo(({ uploadState, as, isDisabled, browseButtonProps, cancelButtonProps, className, onRemove, onCancel }) => {
|
|
411
411
|
return /* @__PURE__ */ jsx("div", {
|
|
412
|
-
className: clsx("mt-
|
|
412
|
+
className: clsx("mt-4 flex flex-col items-start gap-2 self-stretch", className),
|
|
413
413
|
children: uploadState.map((state, index) => /* @__PURE__ */ jsx(FileCard, {
|
|
414
414
|
index,
|
|
415
415
|
as,
|
|
@@ -427,27 +427,27 @@ const FileCardList = memo(({ uploadState, as, isDisabled, browseButtonProps, can
|
|
|
427
427
|
const FileUploadContentEmpty = ({ variant, as, isDisabled, title, browseText, uploadText, hideButton = false, className, browseButtonProps }) => {
|
|
428
428
|
const { size: browseButtonSize = "sm", variant: browseButtonVariant = "outlined", width: browseButtonWidth = "hug", ...browseButtonRestProps } = browseButtonProps ?? {};
|
|
429
429
|
return /* @__PURE__ */ jsxs("div", {
|
|
430
|
-
className: clsx("flex w-full items-center gap-
|
|
430
|
+
className: clsx("flex w-full items-center gap-1", className, variant === "vertical" && "flex-col", variant === "horizontal" && "min-h-11 flex-row justify-between"),
|
|
431
431
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
432
|
-
className: clsx("flex items-center gap-
|
|
432
|
+
className: clsx("flex items-center gap-2", variant === "vertical" && "flex-col", variant === "horizontal" && "flex-row", isDisabled && "opacity-50"),
|
|
433
433
|
children: [/* @__PURE__ */ jsx(IconSlot, {
|
|
434
434
|
icon: Upload,
|
|
435
|
-
className: "text-
|
|
435
|
+
className: "text-foreground"
|
|
436
436
|
}), /* @__PURE__ */ jsx(Typography, {
|
|
437
437
|
size: "lead",
|
|
438
438
|
as: "span",
|
|
439
|
-
className: clsx("self-stretch text-
|
|
439
|
+
className: clsx("self-stretch text-foreground font-normal", variant === "vertical" && "text-center"),
|
|
440
440
|
children: title
|
|
441
441
|
})]
|
|
442
442
|
}), /* @__PURE__ */ jsxs("div", {
|
|
443
|
-
className: clsx("flex items-center justify-center", variant === "vertical" && as === "button" && "flex-col", as === "link" && "gap-
|
|
443
|
+
className: clsx("flex items-center justify-center", variant === "vertical" && as === "button" && "flex-col", as === "link" && "gap-1", as === "button" && "gap-4"),
|
|
444
444
|
children: [/* @__PURE__ */ jsx(Typography, {
|
|
445
445
|
size: "large",
|
|
446
446
|
as: "span",
|
|
447
|
-
className: clsx("text-
|
|
447
|
+
className: clsx("text-muted-foreground font-normal", variant === "vertical" && "text-center", isDisabled && "opacity-50"),
|
|
448
448
|
children: uploadText
|
|
449
449
|
}), !hideButton && browseText && (as === "link" ? /* @__PURE__ */ jsx(Button, {
|
|
450
|
-
className: "text-
|
|
450
|
+
className: "text-primary lowercase",
|
|
451
451
|
isDisabled,
|
|
452
452
|
variant: "text",
|
|
453
453
|
width: "hug",
|
|
@@ -759,7 +759,7 @@ const FileUploadBase = (props) => {
|
|
|
759
759
|
role: "group",
|
|
760
760
|
"aria-label": label,
|
|
761
761
|
"aria-describedby": [rest["aria-describedby"], resolvedError ? resolvedErrorId : void 0].filter(Boolean).join(" ") || void 0,
|
|
762
|
-
className: "flex w-full items-center justify-between gap-
|
|
762
|
+
className: "flex w-full items-center justify-between gap-2",
|
|
763
763
|
children: /* @__PURE__ */ jsx($070c0dd15dc89b58$export$3c6489d84dc98b6, {
|
|
764
764
|
...rest,
|
|
765
765
|
"data-rac": "",
|
|
@@ -774,7 +774,7 @@ const FileUploadBase = (props) => {
|
|
|
774
774
|
className: fileUploadDropZoneCva({
|
|
775
775
|
variant,
|
|
776
776
|
isContainer: !!children,
|
|
777
|
-
className: "group/
|
|
777
|
+
className: "group/upload-drop-zone"
|
|
778
778
|
}),
|
|
779
779
|
children: children ? /* @__PURE__ */ jsxs(Fragment$1, { children: [children({
|
|
780
780
|
files: uploadState,
|
|
@@ -790,7 +790,7 @@ const FileUploadBase = (props) => {
|
|
|
790
790
|
uploadText,
|
|
791
791
|
browseText,
|
|
792
792
|
browseButtonProps,
|
|
793
|
-
className: "group-drop-target/
|
|
793
|
+
className: "group-drop-target/upload-drop-zone:flex! absolute top-1/2 left-1/2 z-overlay-above hidden -translate-x-1/2 -translate-y-1/2 flex-col"
|
|
794
794
|
})] }) : /* @__PURE__ */ jsx(FileUploadContent, {
|
|
795
795
|
...rest,
|
|
796
796
|
variant,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as FileUploadBase } from "./FileUpload-
|
|
1
|
+
import { n as FileUploadBase } from "./FileUpload-G7tdtNKN.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
|
-
import { n as FileUploadBaseProps } from "./fileUpload.types-
|
|
2
|
-
import "./FileUpload
|
|
1
|
+
import { n as FileUploadBaseProps } from "./fileUpload.types-DKICER1J.js";
|
|
2
|
+
import "./FileUpload--AQJW3vz.js";
|
|
3
3
|
import { n as FieldValues, t as FormControlProps } from "./form.types-C8P4sznq.js";
|
|
4
4
|
//#region src/components/inputs/File/FileUpload.bound.d.ts
|
|
5
5
|
type UploadBindingProps<TProps extends FileUploadBaseProps = FileUploadBaseProps> = TProps extends unknown ? Omit<TProps, "value" | "defaultValue" | "defaultState"> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as FileUploadContainerProps } from "./fileUpload.types-
|
|
1
|
+
import { i as FileUploadContainerProps } from "./fileUpload.types-DKICER1J.js";
|
|
2
2
|
//#region src/components/inputs/File/FileUploadContainer.d.ts
|
|
3
3
|
declare const FileUploadContainer: import("react").MemoExoticComponent<(props: FileUploadContainerProps) => import("react").JSX.Element>;
|
|
4
4
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as FormFieldErrorProps } from "./FormFieldError-BT4uxbKY.js";
|
|
2
|
-
import { n as InputVariantProps } from "./input.cva-
|
|
2
|
+
import { n as InputVariantProps } from "./input.cva-CEFEpKml.js";
|
|
3
3
|
import { FocusEventHandler, LabelHTMLAttributes, MouseEventHandler, PropsWithChildren, ReactNode, Ref } from "react";
|
|
4
4
|
import { DOMAttributes } from "@react-types/shared";
|
|
5
5
|
//#region src/components/inputs/FormField/FormFieldHeader.d.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
2
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
3
3
|
import { n as $43a3b93638fe5db9$export$b04be29aa201d4f5 } from "./Label-BGvF9vWx.js";
|
|
4
|
-
import { t as typographyDefinition } from "./typography.cva-
|
|
5
|
-
import { t as Typography } from "./Typography-
|
|
6
|
-
import { t as FormFieldError } from "./FormFieldError-
|
|
7
|
-
import { i as formFieldHeaderDefinition, n as labelDefinition, r as labelTypography, t as formFieldHelperDefinition } from "./formFieldHelper.cva-
|
|
4
|
+
import { t as typographyDefinition } from "./typography.cva-CXolEQdT.js";
|
|
5
|
+
import { t as Typography } from "./Typography-Ba5l4rmj.js";
|
|
6
|
+
import { t as FormFieldError } from "./FormFieldError-BaVgIKrv.js";
|
|
7
|
+
import { i as formFieldHeaderDefinition, n as labelDefinition, r as labelTypography, t as formFieldHelperDefinition } from "./formFieldHelper.cva-5YaiUEcL.js";
|
|
8
8
|
import { Suspense, lazy } from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
//#region src/components/inputs/FormField/FormFieldLabel.tsx
|
|
@@ -16,28 +16,28 @@ const FormFieldLabel = ({ ref, as, label, isRequired, isDisabled, labelProps, cl
|
|
|
16
16
|
...labelProps,
|
|
17
17
|
ref,
|
|
18
18
|
className: clsx(typographyCva({
|
|
19
|
-
size: "
|
|
20
|
-
sizeMobile: "
|
|
21
|
-
className: "font-
|
|
19
|
+
size: "body",
|
|
20
|
+
sizeMobile: "body",
|
|
21
|
+
className: "font-medium leading-none",
|
|
22
22
|
...labelTypographyMap({ as })
|
|
23
23
|
}), labelBaseCva({ as }), className, labelProps?.className),
|
|
24
24
|
children: [label, isRequired && /* @__PURE__ */ jsx("span", {
|
|
25
|
-
className: clsx(!isDisabled && "text-
|
|
25
|
+
className: clsx("-ml-1", !isDisabled && "text-destructive"),
|
|
26
26
|
children: "*"
|
|
27
27
|
})]
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
//#endregion
|
|
31
31
|
//#region src/components/inputs/FormField/FormFieldHeader.tsx
|
|
32
|
-
const FormFieldHeaderTooltip = lazy(() => import("./FormFieldHeaderTooltip-
|
|
32
|
+
const FormFieldHeaderTooltip = lazy(() => import("./FormFieldHeaderTooltip-Bxc4f9i4.js"));
|
|
33
33
|
const FormFieldHeader = ({ label, tooltipText, helperText, helperTextId, isRequired, rightContent, isHeaderHidden, isDisabled, className, labelProps }) => {
|
|
34
34
|
const formFieldHeaderCva = UIOverrides.useCva("formField.headerCva", formFieldHeaderDefinition);
|
|
35
35
|
return /* @__PURE__ */ jsxs("div", {
|
|
36
36
|
className: clsx(formFieldHeaderCva({ visible: !isHeaderHidden }), className),
|
|
37
37
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
38
|
-
className: "flex items-
|
|
38
|
+
className: "flex items-center justify-between gap-2",
|
|
39
39
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
40
|
-
className: "flex items-
|
|
40
|
+
className: "flex items-center gap-1.5",
|
|
41
41
|
children: [/* @__PURE__ */ jsx(FormFieldLabel, {
|
|
42
42
|
label,
|
|
43
43
|
isRequired,
|
|
@@ -45,7 +45,7 @@ const FormFieldHeader = ({ label, tooltipText, helperText, helperTextId, isRequi
|
|
|
45
45
|
labelProps
|
|
46
46
|
}), tooltipText ? /* @__PURE__ */ jsx(Suspense, {
|
|
47
47
|
fallback: /* @__PURE__ */ jsx("span", {
|
|
48
|
-
className: "size-
|
|
48
|
+
className: "size-4",
|
|
49
49
|
"data-form-field-tooltip-loading": ""
|
|
50
50
|
}),
|
|
51
51
|
children: /* @__PURE__ */ jsx(FormFieldHeaderTooltip, {
|
|
@@ -57,8 +57,8 @@ const FormFieldHeader = ({ label, tooltipText, helperText, helperTextId, isRequi
|
|
|
57
57
|
}), helperText && /* @__PURE__ */ jsx(Typography, {
|
|
58
58
|
id: helperTextId,
|
|
59
59
|
slot: "description",
|
|
60
|
-
size: "
|
|
61
|
-
className: "text-
|
|
60
|
+
size: "body",
|
|
61
|
+
className: "mt-2 text-muted-foreground",
|
|
62
62
|
children: helperText
|
|
63
63
|
})]
|
|
64
64
|
});
|
|
@@ -80,8 +80,6 @@ const FormField = ({ ref, as, label, tooltipText, helperText, helperTextId, isRe
|
|
|
80
80
|
const headerProps = {
|
|
81
81
|
label,
|
|
82
82
|
tooltipText,
|
|
83
|
-
helperText,
|
|
84
|
-
helperTextId,
|
|
85
83
|
isRequired,
|
|
86
84
|
rightContent,
|
|
87
85
|
isHeaderHidden: hideLabel || isHeaderHidden,
|
|
@@ -93,7 +91,7 @@ const FormField = ({ ref, as, label, tooltipText, helperText, helperTextId, isRe
|
|
|
93
91
|
id: helperTextId,
|
|
94
92
|
helperText,
|
|
95
93
|
isDisabled,
|
|
96
|
-
isHidden:
|
|
94
|
+
isHidden: as === "inline",
|
|
97
95
|
hasError: !!error
|
|
98
96
|
};
|
|
99
97
|
const errorProps = {
|
|
@@ -112,7 +110,7 @@ const FormField = ({ ref, as, label, tooltipText, helperText, helperTextId, isRe
|
|
|
112
110
|
children: [
|
|
113
111
|
!["filter", "floating"].includes(as ?? "") && /* @__PURE__ */ jsx(FormFieldHeader, { ...headerProps }),
|
|
114
112
|
children,
|
|
115
|
-
|
|
113
|
+
/* @__PURE__ */ jsx(FormFieldHelper, { ...helperProps }),
|
|
116
114
|
/* @__PURE__ */ jsx(FormFieldError, { ...errorProps })
|
|
117
115
|
]
|
|
118
116
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
2
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
3
|
-
import { t as formFieldErrorDefinition } from "./formFieldError.cva-
|
|
3
|
+
import { t as formFieldErrorDefinition } from "./formFieldError.cva-Cc-dELdU.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/inputs/FormField/FormFieldError.tsx
|
|
6
6
|
const FormFieldError = ({ id, error, isDisabled, isHidden, className }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createLucideIcon } from "./createLucideIcon-LcezOE4z.js";
|
|
2
|
-
import { t as Tooltip } from "./Tooltip-
|
|
2
|
+
import { t as Tooltip } from "./Tooltip-CqbyoJhl.js";
|
|
3
3
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
4
|
-
import { t as IconSlot } from "./IconSlot-
|
|
4
|
+
import { t as IconSlot } from "./IconSlot-Cuvpj1gd.js";
|
|
5
5
|
import { t as $a3be900807531178$re_export$Focusable } from "./exports-BNrTn8Tj.js";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region ../../node_modules/.bun/lucide-react@1.43.0+83d5fd7b249dbeef/node_modules/lucide-react/dist/esm/icons/info.mjs
|
|
@@ -39,7 +39,7 @@ const FormFieldHeaderTooltip = ({ text, isDisabled }) => /* @__PURE__ */ jsx(Too
|
|
|
39
39
|
text,
|
|
40
40
|
children: /* @__PURE__ */ jsx($a3be900807531178$re_export$Focusable, { children: /* @__PURE__ */ jsx(IconSlot, {
|
|
41
41
|
icon: Info,
|
|
42
|
-
className: clsx(isDisabled ? "text-
|
|
42
|
+
className: clsx(isDisabled ? "text-muted-foreground" : "text-muted-foreground hover:text-foreground"),
|
|
43
43
|
tabIndex: 0
|
|
44
44
|
}) })
|
|
45
45
|
});
|