@povio/ui 6.0.0-rc.1 → 6.0.0-rc.11
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-ORBin0EZ.js} +12 -118
- package/dist/{Alert-Cee_nKWj.d.ts → Alert-D4X7OWiv.d.ts} +3 -3
- package/dist/{AlertDialog-uNDUIyng.d.ts → AlertDialog-DklLDjmw.d.ts} +3 -3
- package/dist/{Autocomplete-D_4gEL7D.d.ts → Autocomplete-BgFz3kuR.d.ts} +1 -1
- package/dist/{Autocomplete-CWU9Ev3J.js → Autocomplete-BxRjxjtp.js} +15 -12
- package/dist/{Autocomplete.bound-CqhZtdd8.d.ts → Autocomplete.bound-CpHZZ3C9.d.ts} +1 -1
- package/dist/{Autocomplete.bound-D0pgmsHB.js → Autocomplete.bound-DweyHUI5.js} +2 -2
- package/dist/{Badge-C4HI9XX4.d.ts → Badge-Db1ndK67.d.ts} +2 -2
- package/dist/{BadgeButton-h3MeQYcp.d.ts → BadgeButton-BPhWDAnc.d.ts} +2 -2
- package/dist/{BottomSheet-BQXSdxoX.d.ts → BottomSheet-BZmDJBR-.d.ts} +1 -1
- package/dist/{BottomSheet-z5brMtDt.js → BottomSheet-CGipksM_.js} +10 -10
- package/dist/{BottomSheet.lazy-BzvLg8Ea.d.ts → BottomSheet.lazy-CuJMUeJP.d.ts} +1 -1
- package/dist/{Breadcrumbs-B9O0_VSN.d.ts → Breadcrumbs-CcB0oOF8.d.ts} +1 -1
- package/dist/{Breadcrumbs-AbUBqBTq.js → Breadcrumbs-a1-q_he0.js} +15 -12
- package/dist/{Button-f7FPTaiN.d.ts → Button-0SswSdDg.d.ts} +1 -1
- package/dist/{Button-DER_6cxv.js → Button-BaODzvZd.js} +1 -1
- package/dist/{ButtonBase-CYTFS-xK.d.ts → ButtonBase-CZuEy3Pk.d.ts} +3 -3
- package/dist/{ButtonBase-CeFSNcVs.js → ButtonBase-s-VV7oCa.js} +8 -7
- package/dist/{ButtonContent-c7lJayVQ.js → ButtonContent-Dztbuz3q.js} +5 -14
- package/dist/{Calendar-DRQ536wk.js → Calendar-DX0dVo6z.js} +25 -181
- package/dist/Calendar.lazy-W51M56GQ.js +131 -0
- package/dist/{CheckContent-D7sZPmzx.js → CheckContent-BKLnTPZr.js} +2 -2
- package/dist/{Checkbox-BI3DQPLa.js → Checkbox-Bjsbx-wK.js} +6 -6
- package/dist/{Checkbox-CCvC7OVT.d.ts → Checkbox-w2j5hLOQ.d.ts} +1 -1
- package/dist/{Checkbox.bound-CMZnF2_d.js → Checkbox.bound-D2nBglJz.js} +2 -2
- package/dist/{Checkbox.bound-DBt33Inx.d.ts → Checkbox.bound-DD_RCjVm.d.ts} +1 -1
- package/dist/CheckboxCheckmark-DWsYVZuu.js +25 -0
- package/dist/{CheckboxGroup-DQw4hsFa.js → CheckboxGroup-B3O3IUiu.js} +10 -8
- package/dist/{CheckboxGroup-MJ6crCZk.d.ts → CheckboxGroup-BYI15Y09.d.ts} +3 -3
- package/dist/{CheckboxGroup.bound-CTCdezUN.js → CheckboxGroup.bound-DY0HKGSh.js} +2 -2
- package/dist/{CheckboxGroup.bound-j2Sc8QtU.d.ts → CheckboxGroup.bound-QiJ-P0KR.d.ts} +1 -1
- package/dist/{ComboBox-DFlz6HJ8.js → ComboBox-ChsdI0lt.js} +2 -2
- package/dist/{DatePicker-CSm9c37c.js → DatePicker-CqNS7lgR.js} +17 -14
- package/dist/{DatePicker-umTISfvn.d.ts → DatePicker-QzfQf21b.d.ts} +3 -3
- package/dist/{DatePicker.bound-KLyoWNcX.d.ts → DatePicker.bound-DoCAqhM4.d.ts} +1 -1
- package/dist/{DatePicker.bound-Yqckg7Mk.js → DatePicker.bound-Dxg2LM89.js} +2 -2
- package/dist/{DatePickerInput-Cs9RwZfy.js → DatePickerInput-B2Pc_aJr.js} +41 -288
- package/dist/{DatePickerInput-DwHQvLzi.d.ts → DatePickerInput-vLlL5ATh.d.ts} +3 -3
- package/dist/{DateRangePicker-hV_U1IK0.d.ts → DateRangePicker-32D4pWJg.d.ts} +5 -5
- package/dist/{DateRangePicker-s_4n-F_P.js → DateRangePicker-C3ClfSfj.js} +133 -327
- package/dist/{DateRangePicker.bound-D-GPENNe.d.ts → DateRangePicker.bound-CVtoVsho.d.ts} +1 -1
- package/dist/{DateRangePicker.bound-C1klxYW0.js → DateRangePicker.bound-PR9rBoXc.js} +2 -2
- package/dist/{DateTimePicker-wgV0SUeZ.d.ts → DateTimePicker-BTRIUagV.d.ts} +3 -3
- package/dist/{DateTimePicker-411pU7VF.js → DateTimePicker-CYa2J-1r.js} +17 -14
- package/dist/{DateTimePicker.bound-BDyUzidV.js → DateTimePicker.bound-CQxnRveH.js} +2 -2
- package/dist/{DateTimePicker.bound-cF2X_ncj.d.ts → DateTimePicker.bound-X4DTyQ1b.d.ts} +1 -1
- package/dist/{Dialog-DSl1Fkqi.js → Dialog-96c4Pzfm.js} +9 -9
- package/dist/{Dialog-lFYX-7Ax.js → Dialog-C9H9_BmK.js} +35 -6
- package/dist/{Dialog-V-2cgGk1.d.ts → Dialog-CO9xljD3.d.ts} +1 -1
- package/dist/Disclosure-BRSkMbZQ.js +109 -0
- package/dist/{DropdownMenu-DH7E2aXb.js → DropdownMenu-DS0RaEfH.js} +11 -29
- package/dist/{DropdownMenu-Bl_C5W_E.d.ts → DropdownMenu-D_9z9ond.d.ts} +2 -2
- package/dist/{DropdownMenuDesktop-nMoCa6N5.js → DropdownMenuDesktop-DGPIfex-.js} +6 -27
- package/dist/{FileInput-Q72yXorH.d.ts → FileInput-BEaECoBS.d.ts} +7 -7
- package/dist/{FileInput-CqRrQRM-.js → FileInput-IRM0C9W6.js} +20 -19
- package/dist/{FileInput.bound-BZ7-g-dq.js → FileInput.bound-CctyulN9.js} +2 -2
- package/dist/{FileInput.bound-CG2G5E2K.d.ts → FileInput.bound-D2HuuqSb.d.ts} +1 -1
- package/dist/{FileTrigger-DBX1Io6E.js → FileTrigger-DlryDp2T.js} +1 -30
- package/dist/{FileUpload-B4ibHWQn.d.ts → FileUpload-BUTSqHVk.d.ts} +1 -1
- package/dist/{FileUpload-CG60c6wM.js → FileUpload-Dfs3FvJ7.js} +53 -134
- package/dist/{FileUpload.bound-C-Zy1n5Y.d.ts → FileUpload.bound-CGQXb4iT.d.ts} +2 -2
- package/dist/{FileUpload.bound-DQ6uuH2W.js → FileUpload.bound-vik_sTkm.js} +2 -2
- package/dist/{FileUploadContainer-CtUhDntB.d.ts → FileUploadContainer-Dzg5aXXZ.d.ts} +1 -1
- package/dist/{FormField-BIRMlgu4.d.ts → FormField-DGyCDxOp.d.ts} +5 -2
- package/dist/{FormField-D7KKJ6kG.js → FormField-dduTMkNH.js} +58 -37
- package/dist/{FormFieldError-Bqjg9cMb.js → FormFieldError-DTT5TUQ1.js} +2 -2
- package/dist/FormFieldHeaderTooltip-Dt-g40Tc.js +17 -0
- package/dist/FormLayout-CBYgWvwW.d.ts +47 -0
- package/dist/{IconButton-BM2DUNtN.d.ts → IconButton-shH_9wcl.d.ts} +1 -1
- package/dist/{IconSlot-DSK7qNxc.js → IconSlot-CqNuZl0E.js} +4 -4
- package/dist/{iconSlot.cva-BA9NahZH.d.ts → IconSlot-DcEDPaNb.d.ts} +3 -11
- package/dist/{InlineTooltipWrapper-DBuQX2yo.js → InlineTooltipWrapper-CKTiFpZn.js} +3 -3
- package/dist/{Input-BX3sZBEp.d.ts → Input-CTp_9mS9.d.ts} +3 -3
- package/dist/{Input-CG4Irgae.js → Input-UbFhc_J2.js} +29 -13
- package/dist/{Input.bound-jZx8gJro.js → Input.bound-0iJO2-ia.js} +2 -2
- package/dist/{Input.bound-BE-espm0.d.ts → Input.bound-B9a62ylL.d.ts} +1 -1
- package/dist/{InputContent-DDFr0kml.d.ts → InputContent-BCNkN4Fx.d.ts} +4 -4
- package/dist/{InputContent-KhD4_YvO.js → InputContent-D7lnNLWk.js} +35 -22
- package/dist/{Link-Bw2m9W4B.d.ts → Link-PvYB_M-j.d.ts} +5 -3
- package/dist/{ListBox-CoUk0kkt.js → ListBox-DhR5kojP.js} +3 -3
- package/dist/{MenuItem-DPZzOqp2.d.ts → MenuItem-U3-pu1j5.d.ts} +1 -1
- package/dist/{Modal-B4p1zFqi.js → Modal-DcLWF9cB.js} +1 -1
- package/dist/{NumberField-qjvHhCfN.d.ts → NumberField-WXebfxjK.d.ts} +4 -4
- package/dist/{NumberField-CxwTlqud.js → NumberField-twW8zuJ9.js} +38 -14
- package/dist/{NumberField.bound-zySl-v_q.js → NumberField.bound-DHDsBNvI.js} +2 -2
- package/dist/{NumberField.bound-DXPGF5YK.d.ts → NumberField.bound-Dy0A5iVc.d.ts} +1 -1
- package/dist/{NumberRangeInput-CS4Kn427.d.ts → NumberRangeInput-BCKQaGpy.d.ts} +2 -2
- package/dist/{NumberRangeInput-BrW03wC6.js → NumberRangeInput-gT6gEJIz.js} +18 -17
- package/dist/{NumberRangeInput.bound-CKywKEKI.js → NumberRangeInput.bound-5Yv3Og73.js} +2 -2
- package/dist/{NumberRangeInput.bound-C8I7m1cW.d.ts → NumberRangeInput.bound-BNXxIQ0b.d.ts} +1 -1
- package/dist/PageHeader-DTfzf-dA.d.ts +61 -0
- package/dist/{Pagination-DkpAg2x6.d.ts → Pagination-BCGUVYOF.d.ts} +1 -1
- package/dist/{PaginationList-DNmZRcS6.d.ts → PaginationList-CvlSkJGn.d.ts} +1 -1
- package/dist/{PaginationList-PjOxNQwB.js → PaginationList-D7SRwySe.js} +75 -74
- package/dist/{PasswordInput-BHPFkVbM.d.ts → PasswordInput-EhQjYyJS.d.ts} +1 -1
- package/dist/{PasswordInput.bound-DC57m4NT.d.ts → PasswordInput.bound-CK5GwKL4.d.ts} +1 -1
- package/dist/{PasswordInput.bound-CrXKvfil.js → PasswordInput.bound-CXtbMCD6.js} +3 -3
- package/dist/{Popover-pjd0Hu61.d.ts → Popover-D_t1XDPA.d.ts} +2 -2
- package/dist/{Progress-1WGRZE8l.d.ts → Progress-Ckfpi_-M.d.ts} +4 -4
- package/dist/{Progress-De76pCfX.js → Progress-RiEGGxNG.js} +3 -3
- package/dist/{RadioGroup-DEwQ6B1F.d.ts → RadioGroup-6e-Z6jW8.d.ts} +3 -3
- package/dist/{RadioGroup-BPSvcre6.js → RadioGroup-IL4Y8XHO.js} +11 -9
- package/dist/{RadioGroup.bound-CN4K9dV2.js → RadioGroup.bound-BFWSq-on.js} +2 -2
- package/dist/{RadioGroup.bound-Dj6CEG6M.d.ts → RadioGroup.bound-w3SZqSkH.d.ts} +1 -1
- package/dist/RangeCalendar-0W1YFZqn.js +288 -0
- package/dist/{RichTextEditor-BYIQW8QA.js → RichTextEditor-BuqZth3X.js} +32 -409
- package/dist/{RichTextEditor-hJtuB7Y6.d.ts → RichTextEditor-DHhuBeT6.d.ts} +1 -1
- package/dist/{Select-Br_3eecr.js → Select-B-TuE_Fh.js} +217 -468
- package/dist/{Select-DHYddedn.d.ts → Select-C34ENdjq.d.ts} +5 -3
- package/dist/{Select.bound-CgLKMzLn.js → Select.bound-CNCChZww.js} +2 -2
- package/dist/{Select.bound-CJ-tCsmX.d.ts → Select.bound-qOihchei.d.ts} +1 -1
- package/dist/SelectListBox-Dlonoc5z.js +390 -0
- package/dist/SelectionIndicator-C3hniBa2.js +18 -0
- package/dist/SharedElementTransition-CZ2bE7yo.js +96 -0
- package/dist/SidebarWorkspaces-DDHJAdNH.d.ts +132 -0
- package/dist/SidebarWorkspaces-DJknAfS9.js +1298 -0
- package/dist/{Slider-CqB2TPTR.js → Slider-DCsCCPFx.js} +10 -11
- package/dist/{Slider-CcoNTFVN.d.ts → Slider-DRg8zKRM.d.ts} +1 -1
- package/dist/{Slider.bound-Bp7Zrs9_.js → Slider.bound-CByTXPTr.js} +2 -2
- package/dist/{Slider.bound-8B5qzQ-8.d.ts → Slider.bound-CaEF19um.d.ts} +1 -1
- package/dist/{Spinner-B-crRcdG.d.ts → Spinner-Cvy_6zgD.d.ts} +5 -5
- package/dist/{Spinner-BeVTUzzx.js → Spinner-DqjP06T1.js} +29 -41
- package/dist/{SplitButton-BzhbtpFA.d.ts → SplitButton-V1f2NWfh.d.ts} +3 -3
- package/dist/{Stepper-CMw6QnCu.js → Stepper-Dyhxp0Tl.js} +13 -12
- package/dist/{Stepper-LORgYAJr.d.ts → Stepper-k91x_m-E.d.ts} +18 -18
- package/dist/{Switch-R0kAicgM.js → Switch-BfpSMMpv.js} +6 -6
- package/dist/{Switch-CSitpm4o.d.ts → Switch-ELVPkPx0.d.ts} +1 -1
- package/dist/{Switch.bound-DVjqsum1.d.ts → Switch.bound-DeEdVvZV.d.ts} +1 -1
- package/dist/{Switch.bound-Dk-BmxJd.js → Switch.bound-Dv0cHsMM.js} +2 -2
- package/dist/TableRowDetails-D8HFTghI.d.ts +109 -0
- package/dist/TabsFilters-CWUNeqYa.js +223 -0
- package/dist/TabsFilters-DePddjCk.d.ts +30 -0
- package/dist/Tag-B2_ZiSE-.d.ts +44 -0
- package/dist/{TextArea-DCnqXuHC.js → TextArea-DakA3nzZ.js} +8 -7
- package/dist/{TextArea-e8sQm205.d.ts → TextArea-iqUeB2QY.d.ts} +2 -2
- package/dist/{TextArea.bound-DEZuRYm_.d.ts → TextArea.bound-BJHyCogp.d.ts} +1 -1
- package/dist/{TextArea.bound-BJZ9m_FE.js → TextArea.bound-CDVPP_qb.js} +2 -2
- package/dist/{TextArea.cva-Bb73hriz.js → TextArea.cva-ENXI55ec.js} +1 -1
- package/dist/{TimePicker-Zi7B6VTr.d.ts → TimePicker-BZ1ocsBX.d.ts} +2 -2
- package/dist/{TimePicker-BwF-Crbg.js → TimePicker-RFzfDezn.js} +20 -18
- package/dist/{TimePicker.bound-Bxtb6uJL.d.ts → TimePicker.bound-8DmjMXuE.d.ts} +1 -1
- package/dist/{TimePicker.bound-B-BVLNbk.js → TimePicker.bound-DPia51Qs.js} +2 -2
- package/dist/{datePickerValue.utils-OAQBDk1R.js → TimePickerForm-DohOZViU.js} +12 -16
- package/dist/{Toast-Dl6KMa58.d.ts → Toast-D9pdadZ4.d.ts} +1 -1
- package/dist/{ToastContainer-BDvta6st.js → ToastContainer-Dd0LPykL.js} +5 -5
- package/dist/{ToggleButton-Cce9bnBw.d.ts → ToggleButton-HUZ8ij6i.d.ts} +1 -1
- package/dist/{ToggleButton-DUQ8nwKY.js → ToggleButton-P1z1pxzT.js} +2 -2
- package/dist/{ToggleGroup-s5sDSB6l.js → ToggleGroup-CrDoeLN0.js} +127 -114
- package/dist/{ToggleGroup-BJ8cqXaO.d.ts → ToggleGroup-DvjnSinl.d.ts} +5 -23
- package/dist/{ToggleGroup.bound-Cv09n91n.d.ts → ToggleGroup.bound-B03ISHQ8.d.ts} +1 -1
- package/dist/{ToggleGroup.bound-DEc7rdNF.js → ToggleGroup.bound-DCnYwmBt.js} +2 -2
- package/dist/{Tooltip-BiS7isYB.d.ts → Tooltip-B8DTURLQ.d.ts} +1 -1
- package/dist/{Tooltip-CMigoyri.js → Tooltip-DRB6lo0U.js} +8 -44
- package/dist/{TooltipWrapper-D7HUZLsP.js → TooltipWrapper-DLBksJsF.js} +21 -10
- package/dist/{Typography-LU4z2pR1.js → Typography-DCLnPa3P.js} +2 -2
- package/dist/{Typography-D2FfZr7a.d.ts → Typography-DJojwiXV.d.ts} +2 -2
- package/dist/{accordion.cva-CeBWV9EO.js → accordion.cva-DwxY-k1e.js} +17 -25
- package/dist/{badgeButton.cva-B8EQLwPv.d.ts → badgeButton.cva-CBFIhr1S.d.ts} +8 -8
- package/dist/badgeButton.cva-t5PQOH4M.js +138 -0
- package/dist/{breadcrumbs.cva-DPwJJK_D.js → breadcrumbs.cva-CnBIZUB3.js} +9 -9
- package/dist/{button.cva-CBckM91c.d.ts → button.cva-C8LGtNJ3.d.ts} +21 -16
- package/dist/button.cva-Ciga0rdG.js +267 -0
- package/dist/{buttonContent.cva-DG-4lRz4.d.ts → buttonContent.cva-BapnODby.d.ts} +2 -2
- package/dist/{checkbox.cva-CJy87xUo.d.ts → checkbox.cva-CCh_UlrC.d.ts} +6 -6
- package/dist/{checkbox.cva-D-D9Qgaf.js → checkbox.cva-aLJS7v4z.js} +24 -33
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.d.ts +1 -1
- package/dist/components/alert-dialog.js +98 -103
- package/dist/components/alert.d.ts +1 -1
- package/dist/components/alert.js +11 -11
- 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 +5 -5
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.js +9 -9
- package/dist/components/bottom-sheet-header.d.ts +1 -1
- package/dist/components/bottom-sheet-header.js +13 -12
- package/dist/components/bottom-sheet.d.ts +2 -2
- package/dist/components/bottom-sheet.js +3 -3
- 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 +16 -2
- package/dist/components/date-range-picker.js +2 -2
- 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 +4 -4
- 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/form-layout.d.ts +2 -0
- package/dist/components/form-layout.js +80 -0
- package/dist/components/icon-button.d.ts +1 -1
- package/dist/components/icon-button.js +2 -2
- package/dist/components/icon-slot.d.ts +2 -1
- package/dist/components/icon-slot.js +1 -1
- package/dist/components/input-frame.d.ts +5 -4
- package/dist/components/input-frame.js +48 -33
- 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 +3 -3
- 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/page-header.d.ts +2 -0
- package/dist/components/page-header.js +210 -0
- 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 +8 -8
- package/dist/components/password-input.d.ts +1 -1
- package/dist/components/password-input.js +3 -3
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.js +4 -4
- 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/sidebar.d.ts +2 -0
- package/dist/components/sidebar.js +2 -0
- 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 +3 -3
- package/dist/components/stepper.d.ts +1 -1
- package/dist/components/stepper.js +1 -1
- package/dist/components/style-definitions.d.ts +2 -2
- package/dist/components/style-definitions.js +31 -30
- package/dist/components/switch.d.ts +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/tabs-filters.d.ts +2 -0
- package/dist/components/tabs-filters.js +2 -0
- package/dist/components/tag.d.ts +1 -1
- package/dist/components/tag.js +8 -8
- 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 +2 -2
- 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 +2 -2
- package/dist/config/confirmation.d.ts +1 -1
- package/dist/config/confirmation.js +1 -1
- package/dist/config/link-context.d.ts +2 -2
- package/dist/config/link-context.js +1 -1
- package/dist/config/resources.d.ts +1 -1
- package/dist/config/resources.js +1 -1
- package/dist/config/theme-context.js +1 -1
- package/dist/config/ui-config.d.ts +2 -2
- package/dist/config/ui-config.js +1 -1
- package/dist/config/ui-overrides.d.ts +1 -1
- package/dist/config/ui-overrides.js +1 -1
- package/dist/config/ui-router.js +1 -1
- package/dist/{confirmation.context-BSn1s-ip.js → confirmation.context-BwlIEVeF.js} +2 -2
- package/dist/{confirmation.context-B2z9A1v3.d.ts → confirmation.context-C_GDRn3a.d.ts} +1 -1
- package/dist/{datePickerInput.cva-Cd7UUN61.js → datePickerInput.cva-Du0Zn04v.js} +2 -2
- package/dist/datePickerValue.utils-CkmPaD6I.js +4 -0
- package/dist/{dialog.cva-sioU_5R7.js → dialog.cva-BIpz6HcA.js} +7 -7
- package/dist/{dist-CAFUM34b.js → dist-DEZzXa0W.js} +15 -14
- package/dist/dropdownMenu.cva-DwSOcbmR.js +31 -0
- package/dist/{fileUpload.cva-ujmStxB1.js → fileUpload.cva-BYzXGc9C.js} +11 -11
- package/dist/{fileUpload.types-BT8P1o7a.d.ts → fileUpload.types-C-ke21yY.d.ts} +2 -2
- package/dist/{form.binding-B-2id68q.js → form.binding-DOR5gIQf.js} +1 -1
- package/dist/{formFieldError.cva-CTl0VeyG.js → formFieldError.cva-BB6Ghqwq.js} +3 -3
- package/dist/formFieldHelper.cva-DRmSyRZN.js +14 -0
- package/dist/formLayout.context--CN08Mtb.js +14 -0
- package/dist/hooks/use-async-list.js +1 -1
- package/dist/hooks/use-filters.js +1 -1
- package/dist/hooks/use-local-storage.js +1 -1
- package/dist/{i18n-BjNKHh_D.js → i18n-BE9Wvs9L.js} +6 -2
- package/dist/{i18n-2z5on9No.d.ts → i18n-EDC8xyfH.d.ts} +8 -0
- package/dist/iconSlot.cva-CLB5Tlsr.d.ts +9 -0
- package/dist/icons.d.ts +2 -1
- package/dist/icons.js +3 -3
- package/dist/import-Dkfk7PHt.js +255 -0
- package/dist/index.d.ts +78 -73
- package/dist/index.js +95 -91
- package/dist/{input.cva-L7jKDv6q.d.ts → input.cva-BjuHsDGy.d.ts} +11 -11
- package/dist/input.cva-DZii82eS.js +185 -0
- package/dist/inputLayout-KdAtunGk.js +5 -0
- package/dist/label.cva-DTfT6FrX.js +85 -0
- package/dist/{link.context-C4fE_aMo.d.ts → link.context-BCHn7NSy.d.ts} +1 -1
- package/dist/link.cva-C24YVAsJ.js +16 -0
- package/dist/outline.clsx-DGGQQRkM.js +6 -0
- package/dist/popover.cva-DAbfSma6.js +5 -0
- package/dist/{progress.cva-D7iiX6Lh.js → progress.cva-CsGaGVJ-.js} +7 -7
- package/dist/{radio.cva-DO3UEac-.d.ts → radio.cva-D7M1hqLe.d.ts} +9 -5
- package/dist/{radio.cva-Ctdop1xV.js → radio.cva-DistaZtZ.js} +33 -19
- 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-DStkOdwm.js} +2 -2
- package/dist/selectItem.cva-B6vxey2R.js +27 -0
- package/dist/{staticDateTimeSegments-Bt5wCZvg.js → staticDateTimeSegments-4tIzPL8l.js} +12 -12
- package/dist/{status.cva-BFGMKZO_.js → status.cva-CYgi3Htz.js} +21 -21
- package/dist/{stepper.cva-CpRi0fGb.js → stepper.cva-Cecphqeo.js} +23 -35
- package/dist/{style-definitions-_RXJdSk-.d.ts → style-definitions-Dx6aFDiR.d.ts} +159 -144
- 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-BT0kGRIk.js +24 -0
- package/dist/switch.cva-r6vcS25Q.d.ts +16 -0
- package/dist/table.cva-DkcsOmZG.js +147 -0
- package/dist/tag.cva-ExMNsTN-.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/form.js +2 -2
- 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 +2 -2
- 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 +3 -3
- 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-CmbhAoHU.js → tanstack-Bgdv0qU1.js} +2 -1
- package/dist/{tanstack-DQu9PNjn.d.ts → tanstack-CtuKX9Ss.d.ts} +195 -96
- package/dist/tanstack.d.ts +78 -73
- package/dist/tanstack.js +95 -91
- package/dist/{theme.context-B3wQDJ-i.js → theme.context--VEyStJB.js} +2 -2
- package/dist/{toast.cva-L0k_TBiW.d.ts → toast.cva-AmLw6Cf5.d.ts} +10 -10
- package/dist/{toast.cva-aC4NMpLb.js → toast.cva-B6NXTwbZ.js} +22 -38
- package/dist/{toast.runtime-DKOeUnk6.js → toast.runtime-Drd2IJ_j.js} +1 -1
- package/dist/toggleGroup.cva-CJ-3Ps7j.js +35 -0
- package/dist/toggleGroup.cva-DA4U21gn.d.ts +26 -0
- package/dist/{tooltip.cva-ClcaR72U.js → tooltip.cva-BEyxvcG2.js} +11 -11
- package/dist/{tooltipWrapper.cva-BBQ4ic3D.js → tooltipWrapper.cva-t4NQ9zz9.js} +1 -1
- package/dist/typography.cva-BCHlTHdM.d.ts +36 -0
- package/dist/typography.cva-CHsHX_Wp.js +31 -0
- package/dist/{uiConfig.context-CT9EVqC5.js → uiConfig.context-3DN9w6oU.js} +19 -114
- package/dist/{uiConfig.context-CQU9Tzq_.d.ts → uiConfig.context-BnCORTNm.d.ts} +22 -9
- package/dist/{uiOverrides.context-Dmev7iRS.d.ts → uiOverrides.context-DHHzLSnq.d.ts} +23 -0
- package/dist/{useBreakpoint-BzYqQEBO.js → useBreakpoint-CJ3mx7UF.js} +6 -6
- package/dist/{useFilters-HIngImwn.js → useFilters-DMi94RZK.js} +2 -2
- package/dist/{useFormAutosave-XEQqk1lK.js → useFormAutosave-BPGlChiY.js} +1 -1
- package/dist/useScrollableListBox-oYKqU3Hp.js +47 -0
- package/dist/{useStaticInputHandoff-DyYxfwv6.js → useStaticInputHandoff-BN0fOerH.js} +9 -10
- package/dist/useTableColumnConfig-D3KH4Rpo.js +2060 -0
- package/dist/{useTableNav-rU9WmCj6.d.ts → useTableNav-H5DrogZU.d.ts} +29 -44
- package/dist/{useToast-DfQif03I.d.ts → useToast-DsA8CVoY.d.ts} +1 -1
- package/package.json +22 -5
- package/dist/CheckboxCheckmark-BzT6MwH5.js +0 -47
- package/dist/FormFieldHeaderTooltip-k8Snf_oM.js +0 -47
- package/dist/SelectionIndicator-B7C5Y0JM.js +0 -5
- package/dist/SharedElementTransition-DJ9CCbEa.js +0 -12
- 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/check-DYMBkp_Z.js +0 -20
- package/dist/chevron-down-B4Pr8bD3.js +0 -20
- package/dist/chevron-right-3nKJR5Bb.js +0 -20
- package/dist/chevrons-right-DJPPn2fD.js +0 -44
- package/dist/createLucideIcon-LcezOE4z.js +0 -240
- package/dist/dropdownMenu.cva-Bi3a21lO.js +0 -34
- package/dist/eye-BA4nRlMX.js +0 -57
- package/dist/formFieldHelper.cva-CxAmrG2H.js +0 -97
- 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/popover.cva-Bhud1wnp.js +0 -5
- 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-CmfeWLyW.d.ts +0 -84
- 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
- package/dist/useTableColumnConfig-CUINwVTR.js +0 -1348
- package/dist/x-B6vfz8Ps.js +0 -23
- package/dist/{dom.utils-BbfrA6RP.js → dom.utils-BPooTXtC.js} +1 -1
- package/dist/{link.context-J7aQtMOr.js → link.context-TPjDtjw3.js} +1 -1
- package/dist/{router.context-B4FvsTim.js → router.context-MckTbHw9.js} +1 -1
- package/dist/{uiOverrides.context-BTCH9y5a.js → uiOverrides.context-DNEQlTx0.js} +1 -1
- package/dist/{useAsyncList-yHz7twsj.js → useAsyncList-Ct74ve3i.js} +1 -1
- package/dist/{useForm-eW4KpH1u.js → useForm-Cb7KWLds.js} +1 -1
- package/dist/{useIntersectionObserver-DYfHnGGU.js → useIntersectionObserver-DFAhTsV0.js} +1 -1
- package/dist/{useLocalStorage-PlcaJ1tP.js → useLocalStorage-CctQvyqD.js} +1 -1
|
@@ -1,102 +1,21 @@
|
|
|
1
|
-
import { t as createLucideIcon } from "./createLucideIcon-LcezOE4z.js";
|
|
2
|
-
import { t as UIConfig } from "./uiConfig.context-CT9EVqC5.js";
|
|
3
|
-
import { n as $070c0dd15dc89b58$export$3c6489d84dc98b6, r as Upload, t as $b325d7bd7e74496a$export$6fb4a10d2c950550 } from "./FileTrigger-DBX1Io6E.js";
|
|
4
|
-
import { t as X } from "./x-B6vfz8Ps.js";
|
|
5
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
6
|
-
import { t as UIOverrides } from "./uiOverrides.context-
|
|
7
|
-
import { t as IconSlot } from "./IconSlot-
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
+
import { t as IconSlot } from "./IconSlot-CqNuZl0E.js";
|
|
4
|
+
import { n as $070c0dd15dc89b58$export$3c6489d84dc98b6, t as $b325d7bd7e74496a$export$6fb4a10d2c950550 } from "./FileTrigger-DlryDp2T.js";
|
|
5
|
+
import { t as Typography } from "./Typography-DCLnPa3P.js";
|
|
6
|
+
import { t as UIConfig } from "./uiConfig.context-3DN9w6oU.js";
|
|
7
|
+
import { t as Button } from "./Button-BaODzvZd.js";
|
|
10
8
|
import { IconButton } from "./components/icon-button.js";
|
|
11
9
|
import { i as $a8ea2faf2ebe4d2f$re_export$useLabels } from "./import-D_3dPATF.js";
|
|
12
|
-
import { t as FormField } from "./FormField-
|
|
13
|
-
import "./i18n-
|
|
10
|
+
import { t as FormField } from "./FormField-dduTMkNH.js";
|
|
11
|
+
import "./i18n-BE9Wvs9L.js";
|
|
14
12
|
import { t as FileUtils } from "./file.utils-DqQxnuAm.js";
|
|
15
|
-
import { t as Progress } from "./Progress-
|
|
16
|
-
import { t as fileUploadDropZoneDefinition } from "./fileUpload.cva-
|
|
13
|
+
import { t as Progress } from "./Progress-RiEGGxNG.js";
|
|
14
|
+
import { t as fileUploadDropZoneDefinition } from "./fileUpload.cva-BYzXGc9C.js";
|
|
15
|
+
import { CheckCircle, CircleAlert, File, Upload, X } from "lucide-react";
|
|
17
16
|
import { memo, useCallback, useEffect, useId, useMemo, useRef, useState } from "react";
|
|
18
17
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
19
18
|
import { useTranslation } from "react-i18next";
|
|
20
|
-
//#region ../../node_modules/.bun/lucide-react@1.43.0+83d5fd7b249dbeef/node_modules/lucide-react/dist/esm/icons/circle-alert.mjs
|
|
21
|
-
/**
|
|
22
|
-
* @license lucide-react v1.43.0 - ISC
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the ISC license.
|
|
25
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/
|
|
27
|
-
const __iconData$2 = {
|
|
28
|
-
name: "circle-alert",
|
|
29
|
-
size: 24,
|
|
30
|
-
node: [
|
|
31
|
-
["circle", {
|
|
32
|
-
cx: "12",
|
|
33
|
-
cy: "12",
|
|
34
|
-
r: "10",
|
|
35
|
-
key: "1mglay"
|
|
36
|
-
}],
|
|
37
|
-
["line", {
|
|
38
|
-
x1: "12",
|
|
39
|
-
x2: "12",
|
|
40
|
-
y1: "8",
|
|
41
|
-
y2: "12",
|
|
42
|
-
key: "1pkeuh"
|
|
43
|
-
}],
|
|
44
|
-
["line", {
|
|
45
|
-
x1: "12",
|
|
46
|
-
x2: "12.01",
|
|
47
|
-
y1: "16",
|
|
48
|
-
y2: "16",
|
|
49
|
-
key: "4dfq90"
|
|
50
|
-
}]
|
|
51
|
-
],
|
|
52
|
-
aliases: ["alert-circle"]
|
|
53
|
-
};
|
|
54
|
-
__iconData$2.node;
|
|
55
|
-
const CircleAlert = createLucideIcon(__iconData$2);
|
|
56
|
-
//#endregion
|
|
57
|
-
//#region ../../node_modules/.bun/lucide-react@1.43.0+83d5fd7b249dbeef/node_modules/lucide-react/dist/esm/icons/circle-check-big.mjs
|
|
58
|
-
/**
|
|
59
|
-
* @license lucide-react v1.43.0 - ISC
|
|
60
|
-
*
|
|
61
|
-
* This source code is licensed under the ISC license.
|
|
62
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
63
|
-
*/
|
|
64
|
-
const __iconData$1 = {
|
|
65
|
-
name: "circle-check-big",
|
|
66
|
-
size: 24,
|
|
67
|
-
node: [["path", {
|
|
68
|
-
d: "M21.801 10A10 10 0 1 1 17 3.335",
|
|
69
|
-
key: "yps3ct"
|
|
70
|
-
}], ["path", {
|
|
71
|
-
d: "m9 11 3 3L22 4",
|
|
72
|
-
key: "1pflzl"
|
|
73
|
-
}]],
|
|
74
|
-
aliases: ["check-circle"]
|
|
75
|
-
};
|
|
76
|
-
__iconData$1.node;
|
|
77
|
-
const CircleCheckBig = createLucideIcon(__iconData$1);
|
|
78
|
-
//#endregion
|
|
79
|
-
//#region ../../node_modules/.bun/lucide-react@1.43.0+83d5fd7b249dbeef/node_modules/lucide-react/dist/esm/icons/file.mjs
|
|
80
|
-
/**
|
|
81
|
-
* @license lucide-react v1.43.0 - ISC
|
|
82
|
-
*
|
|
83
|
-
* This source code is licensed under the ISC license.
|
|
84
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
-
*/
|
|
86
|
-
const __iconData = {
|
|
87
|
-
name: "file",
|
|
88
|
-
size: 24,
|
|
89
|
-
node: [["path", {
|
|
90
|
-
d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
|
|
91
|
-
key: "1oefj6"
|
|
92
|
-
}], ["path", {
|
|
93
|
-
d: "M14 2v5a1 1 0 0 0 1 1h5",
|
|
94
|
-
key: "wfsgrz"
|
|
95
|
-
}]]
|
|
96
|
-
};
|
|
97
|
-
__iconData.node;
|
|
98
|
-
const File = createLucideIcon(__iconData);
|
|
99
|
-
//#endregion
|
|
100
19
|
//#region src/components/inputs/File/shared/FileUploadContentError.tsx
|
|
101
20
|
const FileUploadContentError = ({ variant, as, isDisabled, state, browseText, fileTriggerProps, removeWithIcon = false, singleFile, onRemove, browseButtonProps }) => {
|
|
102
21
|
const { t } = useTranslation("ui");
|
|
@@ -104,32 +23,32 @@ const FileUploadContentError = ({ variant, as, isDisabled, state, browseText, fi
|
|
|
104
23
|
return /* @__PURE__ */ jsx("div", {
|
|
105
24
|
className: clsx("flex w-full flex-fill flex-col items-start"),
|
|
106
25
|
children: /* @__PURE__ */ jsxs("div", {
|
|
107
|
-
className: clsx("flex w-full items-center", variant === "horizontal" && "flex-row gap-
|
|
26
|
+
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
27
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
109
|
-
className: clsx("flex min-w-0 max-w-full flex-grow items-center gap-
|
|
28
|
+
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
29
|
children: [/* @__PURE__ */ jsx(IconSlot, {
|
|
111
30
|
icon: CircleAlert,
|
|
112
|
-
className: "text-
|
|
31
|
+
className: "text-warning"
|
|
113
32
|
}), /* @__PURE__ */ jsxs("div", {
|
|
114
|
-
className: clsx("flex flex-col gap-
|
|
33
|
+
className: clsx("flex flex-col gap-1", variant === "vertical" && "max-w-full items-center", variant === "horizontal" && "max-w-[calc(100%_-_32px)]"),
|
|
115
34
|
children: [/* @__PURE__ */ jsx(Typography, {
|
|
116
35
|
size: "large",
|
|
117
36
|
as: "span",
|
|
118
|
-
className: clsx("self-stretch truncate text-
|
|
37
|
+
className: clsx("self-stretch truncate text-foreground font-medium", variant === "vertical" && "text-center"),
|
|
119
38
|
children: state.file?.name ?? state.displayName ?? ""
|
|
120
39
|
}), /* @__PURE__ */ jsx(Typography, {
|
|
121
40
|
size: singleFile ? "small" : "small",
|
|
122
41
|
as: "span",
|
|
123
|
-
className: clsx("text-
|
|
42
|
+
className: clsx("text-muted-foreground", variant === "vertical" && "text-center"),
|
|
124
43
|
children: state.error?.serverMessage ?? state.error?.message
|
|
125
44
|
})]
|
|
126
45
|
})]
|
|
127
46
|
}), /* @__PURE__ */ jsx("div", {
|
|
128
|
-
className: clsx("flex flex-none items-center justify-end", variant === "vertical" && as === "button" && "flex-col", as === "link" && "gap-
|
|
47
|
+
className: clsx("flex flex-none items-center justify-end", variant === "vertical" && as === "button" && "flex-col", as === "link" && "gap-1", as === "button" && "gap-4"),
|
|
129
48
|
children: as === "link" ? /* @__PURE__ */ jsxs(Fragment$1, { children: [fileTriggerProps && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx($b325d7bd7e74496a$export$6fb4a10d2c950550, {
|
|
130
49
|
...fileTriggerProps,
|
|
131
50
|
children: /* @__PURE__ */ jsx(Button, {
|
|
132
|
-
className: "text-
|
|
51
|
+
className: "text-primary",
|
|
133
52
|
variant: "text",
|
|
134
53
|
width: "hug",
|
|
135
54
|
children: browseText ?? ""
|
|
@@ -137,7 +56,7 @@ const FileUploadContentError = ({ variant, as, isDisabled, state, browseText, fi
|
|
|
137
56
|
}), /* @__PURE__ */ jsx(Typography, {
|
|
138
57
|
size: "small",
|
|
139
58
|
as: "span",
|
|
140
|
-
className: "text-
|
|
59
|
+
className: "text-foreground",
|
|
141
60
|
children: t(($) => $.ui.fileUpload.or)
|
|
142
61
|
})] }), removeWithIcon ? /* @__PURE__ */ jsx(IconButton, {
|
|
143
62
|
label: "Cancel",
|
|
@@ -151,7 +70,7 @@ const FileUploadContentError = ({ variant, as, isDisabled, state, browseText, fi
|
|
|
151
70
|
disableTooltip: true,
|
|
152
71
|
size: "sm"
|
|
153
72
|
}) : /* @__PURE__ */ jsx(Button, {
|
|
154
|
-
className: "text-
|
|
73
|
+
className: "text-primary lowercase",
|
|
155
74
|
onPress: () => {
|
|
156
75
|
onRemove(state.id ?? "");
|
|
157
76
|
},
|
|
@@ -159,7 +78,7 @@ const FileUploadContentError = ({ variant, as, isDisabled, state, browseText, fi
|
|
|
159
78
|
width: "hug",
|
|
160
79
|
children: t(($) => $.ui.fileUpload.removeFile)
|
|
161
80
|
})] }) : /* @__PURE__ */ jsxs("div", {
|
|
162
|
-
className: "flex items-center justify-center gap-
|
|
81
|
+
className: "flex items-center justify-center gap-2 self-stretch",
|
|
163
82
|
children: [fileTriggerProps && /* @__PURE__ */ jsx($b325d7bd7e74496a$export$6fb4a10d2c950550, {
|
|
164
83
|
...fileTriggerProps,
|
|
165
84
|
children: /* @__PURE__ */ jsx(Button, {
|
|
@@ -203,32 +122,32 @@ const FileUploadContentFilled = ({ variant, as, isDisabled, state, browseText, f
|
|
|
203
122
|
return /* @__PURE__ */ jsx("div", {
|
|
204
123
|
className: clsx("flex w-full flex-fill flex-col items-start"),
|
|
205
124
|
children: /* @__PURE__ */ jsxs("div", {
|
|
206
|
-
className: clsx("flex w-full items-center", variant === "horizontal" && "flex-row gap-
|
|
125
|
+
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
126
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
208
|
-
className: clsx("flex min-w-0 max-w-full grow items-center gap-
|
|
127
|
+
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
128
|
children: [/* @__PURE__ */ jsx(IconSlot, {
|
|
210
|
-
icon:
|
|
211
|
-
className: "text-
|
|
129
|
+
icon: CheckCircle,
|
|
130
|
+
className: "text-muted-foreground"
|
|
212
131
|
}), /* @__PURE__ */ jsxs("div", {
|
|
213
|
-
className: clsx("flex flex-col gap-
|
|
132
|
+
className: clsx("flex flex-col gap-1", variant === "vertical" && "max-w-full items-center", variant === "horizontal" && "max-w-[calc(100%-32px)]"),
|
|
214
133
|
children: [/* @__PURE__ */ jsx(Typography, {
|
|
215
134
|
size: "large",
|
|
216
135
|
as: "span",
|
|
217
|
-
className: "self-stretch truncate text-center text-
|
|
136
|
+
className: "self-stretch truncate text-center text-foreground font-medium",
|
|
218
137
|
children: state.file?.name ?? state.displayName ?? ""
|
|
219
138
|
}), /* @__PURE__ */ jsx(Typography, {
|
|
220
139
|
size: singleFile ? "small" : "small",
|
|
221
140
|
as: "span",
|
|
222
|
-
className: "text-
|
|
141
|
+
className: "text-foreground",
|
|
223
142
|
children: FileUtils.getFileDisplaySize(state)
|
|
224
143
|
})]
|
|
225
144
|
})]
|
|
226
145
|
}), /* @__PURE__ */ jsx("div", {
|
|
227
|
-
className: clsx("flex flex-none items-center justify-end", variant === "vertical" && as === "button" && "flex-col", as === "link" && variant === "vertical" && "gap-
|
|
146
|
+
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
147
|
children: as === "link" ? /* @__PURE__ */ jsxs(Fragment$1, { children: [fileTriggerProps && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx($b325d7bd7e74496a$export$6fb4a10d2c950550, {
|
|
229
148
|
...fileTriggerProps,
|
|
230
149
|
children: /* @__PURE__ */ jsx(Button, {
|
|
231
|
-
className: clsx("text-
|
|
150
|
+
className: clsx("text-primary", variant === "vertical" && "[&>span>span]:font-medium!"),
|
|
232
151
|
variant: "text",
|
|
233
152
|
width: "hug",
|
|
234
153
|
children: browseText ?? ""
|
|
@@ -236,7 +155,7 @@ const FileUploadContentFilled = ({ variant, as, isDisabled, state, browseText, f
|
|
|
236
155
|
}), variant === "vertical" && /* @__PURE__ */ jsx(Typography, {
|
|
237
156
|
size: "small",
|
|
238
157
|
as: "span",
|
|
239
|
-
className: "text-
|
|
158
|
+
className: "text-muted-foreground",
|
|
240
159
|
children: t(($) => $.ui.fileUpload.or)
|
|
241
160
|
})] }), removeWithIcon ? /* @__PURE__ */ jsx(IconButton, {
|
|
242
161
|
label: "Cancel",
|
|
@@ -250,7 +169,7 @@ const FileUploadContentFilled = ({ variant, as, isDisabled, state, browseText, f
|
|
|
250
169
|
disableTooltip: true,
|
|
251
170
|
size: "sm"
|
|
252
171
|
}) : /* @__PURE__ */ jsx(Button, {
|
|
253
|
-
className: clsx(variant === "vertical" && "text-
|
|
172
|
+
className: clsx(variant === "vertical" && "text-primary lowercase [&>span>span]:font-medium!"),
|
|
254
173
|
color: variant === "horizontal" ? "secondary" : "primary",
|
|
255
174
|
onPress: () => {
|
|
256
175
|
onRemove(state.id ?? "");
|
|
@@ -259,7 +178,7 @@ const FileUploadContentFilled = ({ variant, as, isDisabled, state, browseText, f
|
|
|
259
178
|
width: "hug",
|
|
260
179
|
children: t(($) => $.ui.fileUpload.removeFile)
|
|
261
180
|
})] }) : /* @__PURE__ */ jsxs("div", {
|
|
262
|
-
className: "flex items-center justify-center gap-
|
|
181
|
+
className: "flex items-center justify-center gap-2 self-stretch",
|
|
263
182
|
children: [fileTriggerProps && /* @__PURE__ */ jsx($b325d7bd7e74496a$export$6fb4a10d2c950550, {
|
|
264
183
|
...fileTriggerProps,
|
|
265
184
|
children: /* @__PURE__ */ jsx(Button, {
|
|
@@ -303,25 +222,25 @@ const FileUploadContentLoading = ({ index, variant, as, state, isDisabled, singl
|
|
|
303
222
|
const { t } = useTranslation("ui");
|
|
304
223
|
const { color: cancelButtonColor = "secondary", size: cancelButtonSize = "sm", variant: cancelButtonVariant = "outlined", width: cancelButtonWidth = "hug", ...cancelButtonRestProps } = cancelButtonProps ?? {};
|
|
305
224
|
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-
|
|
225
|
+
className: clsx("flex w-full flex-col items-center", variant === "vertical" && "flex-col", variant === "horizontal" && "flex-row", as === "button" && "gap-4"),
|
|
307
226
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
308
|
-
className: clsx("flex w-full items-center justify-between", variant === "vertical" && "flex-col gap-
|
|
227
|
+
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
228
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
310
|
-
className: clsx("flex items-center gap-
|
|
229
|
+
className: clsx("flex items-center gap-2", variant === "vertical" && "w-full flex-col", variant === "horizontal" && "w-1/2"),
|
|
311
230
|
children: [/* @__PURE__ */ jsx(IconSlot, {
|
|
312
231
|
icon: File,
|
|
313
|
-
className: "text-
|
|
232
|
+
className: "text-muted-foreground"
|
|
314
233
|
}), /* @__PURE__ */ jsxs("div", {
|
|
315
|
-
className: clsx("flex flex-col", variant === "vertical" && "max-w-full gap-
|
|
234
|
+
className: clsx("flex flex-col", variant === "vertical" && "max-w-full gap-2 text-center", variant === "horizontal" && "max-w-[calc(100%-32px)] gap-1"),
|
|
316
235
|
children: [/* @__PURE__ */ jsx(Typography, {
|
|
317
236
|
size: "large",
|
|
318
237
|
as: "span",
|
|
319
|
-
className: "self-stretch truncate text-center text-
|
|
238
|
+
className: "self-stretch truncate text-center text-foreground font-medium",
|
|
320
239
|
children: state.file?.name ?? state.displayName ?? ""
|
|
321
240
|
}), /* @__PURE__ */ jsx(Typography, {
|
|
322
241
|
size: singleFile ? "small" : "small",
|
|
323
242
|
as: "span",
|
|
324
|
-
className: "text-
|
|
243
|
+
className: "text-muted-foreground",
|
|
325
244
|
children: FileUtils.getFileDisplaySize(state)
|
|
326
245
|
})]
|
|
327
246
|
})]
|
|
@@ -400,7 +319,7 @@ const FileCardComponent = ({ index, as, state, onRemove, isDisabled, browseButto
|
|
|
400
319
|
onRemove
|
|
401
320
|
]);
|
|
402
321
|
return /* @__PURE__ */ jsx("div", {
|
|
403
|
-
className: clsx("flex items-center self-stretch", "bg-
|
|
322
|
+
className: clsx("flex items-center self-stretch", "bg-card", "px-3", "py-4", "rounded-lg border border-border border-solid"),
|
|
404
323
|
children: content
|
|
405
324
|
});
|
|
406
325
|
};
|
|
@@ -409,7 +328,7 @@ const FileCard = memo(FileCardComponent);
|
|
|
409
328
|
//#region src/components/inputs/File/shared/FileCardList.tsx
|
|
410
329
|
const FileCardList = memo(({ uploadState, as, isDisabled, browseButtonProps, cancelButtonProps, className, onRemove, onCancel }) => {
|
|
411
330
|
return /* @__PURE__ */ jsx("div", {
|
|
412
|
-
className: clsx("mt-
|
|
331
|
+
className: clsx("mt-4 flex flex-col items-start gap-2 self-stretch", className),
|
|
413
332
|
children: uploadState.map((state, index) => /* @__PURE__ */ jsx(FileCard, {
|
|
414
333
|
index,
|
|
415
334
|
as,
|
|
@@ -427,27 +346,27 @@ const FileCardList = memo(({ uploadState, as, isDisabled, browseButtonProps, can
|
|
|
427
346
|
const FileUploadContentEmpty = ({ variant, as, isDisabled, title, browseText, uploadText, hideButton = false, className, browseButtonProps }) => {
|
|
428
347
|
const { size: browseButtonSize = "sm", variant: browseButtonVariant = "outlined", width: browseButtonWidth = "hug", ...browseButtonRestProps } = browseButtonProps ?? {};
|
|
429
348
|
return /* @__PURE__ */ jsxs("div", {
|
|
430
|
-
className: clsx("flex w-full items-center gap-
|
|
349
|
+
className: clsx("flex w-full items-center gap-1", className, variant === "vertical" && "flex-col", variant === "horizontal" && "min-h-11 flex-row justify-between"),
|
|
431
350
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
432
|
-
className: clsx("flex items-center gap-
|
|
351
|
+
className: clsx("flex items-center gap-2", variant === "vertical" && "flex-col", variant === "horizontal" && "flex-row", isDisabled && "opacity-50"),
|
|
433
352
|
children: [/* @__PURE__ */ jsx(IconSlot, {
|
|
434
353
|
icon: Upload,
|
|
435
|
-
className: "text-
|
|
354
|
+
className: "text-foreground"
|
|
436
355
|
}), /* @__PURE__ */ jsx(Typography, {
|
|
437
356
|
size: "lead",
|
|
438
357
|
as: "span",
|
|
439
|
-
className: clsx("self-stretch text-
|
|
358
|
+
className: clsx("self-stretch text-foreground font-normal", variant === "vertical" && "text-center"),
|
|
440
359
|
children: title
|
|
441
360
|
})]
|
|
442
361
|
}), /* @__PURE__ */ jsxs("div", {
|
|
443
|
-
className: clsx("flex items-center justify-center", variant === "vertical" && as === "button" && "flex-col", as === "link" && "gap-
|
|
362
|
+
className: clsx("flex items-center justify-center", variant === "vertical" && as === "button" && "flex-col", as === "link" && "gap-1", as === "button" && "gap-4"),
|
|
444
363
|
children: [/* @__PURE__ */ jsx(Typography, {
|
|
445
364
|
size: "large",
|
|
446
365
|
as: "span",
|
|
447
|
-
className: clsx("text-
|
|
366
|
+
className: clsx("text-muted-foreground font-normal", variant === "vertical" && "text-center", isDisabled && "opacity-50"),
|
|
448
367
|
children: uploadText
|
|
449
368
|
}), !hideButton && browseText && (as === "link" ? /* @__PURE__ */ jsx(Button, {
|
|
450
|
-
className: "text-
|
|
369
|
+
className: "text-primary lowercase",
|
|
451
370
|
isDisabled,
|
|
452
371
|
variant: "text",
|
|
453
372
|
width: "hug",
|
|
@@ -759,7 +678,7 @@ const FileUploadBase = (props) => {
|
|
|
759
678
|
role: "group",
|
|
760
679
|
"aria-label": label,
|
|
761
680
|
"aria-describedby": [rest["aria-describedby"], resolvedError ? resolvedErrorId : void 0].filter(Boolean).join(" ") || void 0,
|
|
762
|
-
className: "flex w-full items-center justify-between gap-
|
|
681
|
+
className: "flex w-full items-center justify-between gap-2",
|
|
763
682
|
children: /* @__PURE__ */ jsx($070c0dd15dc89b58$export$3c6489d84dc98b6, {
|
|
764
683
|
...rest,
|
|
765
684
|
"data-rac": "",
|
|
@@ -774,7 +693,7 @@ const FileUploadBase = (props) => {
|
|
|
774
693
|
className: fileUploadDropZoneCva({
|
|
775
694
|
variant,
|
|
776
695
|
isContainer: !!children,
|
|
777
|
-
className: "group/
|
|
696
|
+
className: "group/upload-drop-zone"
|
|
778
697
|
}),
|
|
779
698
|
children: children ? /* @__PURE__ */ jsxs(Fragment$1, { children: [children({
|
|
780
699
|
files: uploadState,
|
|
@@ -790,7 +709,7 @@ const FileUploadBase = (props) => {
|
|
|
790
709
|
uploadText,
|
|
791
710
|
browseText,
|
|
792
711
|
browseButtonProps,
|
|
793
|
-
className: "group-drop-target/
|
|
712
|
+
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
713
|
})] }) : /* @__PURE__ */ jsx(FileUploadContent, {
|
|
795
714
|
...rest,
|
|
796
715
|
variant,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as FileUploadBaseProps } from "./fileUpload.types-
|
|
2
|
-
import "./FileUpload-
|
|
1
|
+
import { n as FileUploadBaseProps } from "./fileUpload.types-C-ke21yY.js";
|
|
2
|
+
import "./FileUpload-BUTSqHVk.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,6 +1,6 @@
|
|
|
1
|
-
import { n as FileUploadBase } from "./FileUpload-CG60c6wM.js";
|
|
2
1
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
|
|
3
|
-
import { t as FieldController } from "./form.binding-
|
|
2
|
+
import { t as FieldController } from "./form.binding-DOR5gIQf.js";
|
|
3
|
+
import { n as FileUploadBase } from "./FileUpload-Dfs3FvJ7.js";
|
|
4
4
|
import { memo } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/inputs/File/FileUpload.bound.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as FileUploadContainerProps } from "./fileUpload.types-
|
|
1
|
+
import { i as FileUploadContainerProps } from "./fileUpload.types-C-ke21yY.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-BjuHsDGy.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
|
|
@@ -30,10 +30,13 @@ interface FormFieldComponentProps extends PropsWithChildren<FormFieldProps> {
|
|
|
30
30
|
labelProps?: FormFieldHeaderProps["labelProps"];
|
|
31
31
|
as?: InputVariantProps["as"];
|
|
32
32
|
tabIndex?: number;
|
|
33
|
+
/** A list of radios or checkboxes; with side labels a faint line runs under it. */
|
|
34
|
+
isChoiceList?: boolean;
|
|
33
35
|
onMouseEnter?: MouseEventHandler<HTMLDivElement>;
|
|
36
|
+
onMouseLeave?: MouseEventHandler<HTMLDivElement>;
|
|
34
37
|
onFocusCapture?: FocusEventHandler<HTMLDivElement>;
|
|
35
38
|
onBlurCapture?: FocusEventHandler<HTMLDivElement>;
|
|
36
39
|
}
|
|
37
|
-
declare const FormField: ({ ref, as, label, tooltipText, helperText, helperTextId, isRequired, rightContent, isDisabled, error, errorMessageId, hideLabel, headerClassName, errorClassName, children, className, labelProps, isHeaderHidden, tabIndex, onMouseEnter, onFocusCapture, onBlurCapture }: FormFieldComponentProps) => import("react").JSX.Element;
|
|
40
|
+
declare const FormField: ({ ref, as, label, tooltipText, helperText, helperTextId, isRequired, rightContent, isDisabled, error, errorMessageId, hideLabel, headerClassName, errorClassName, children, className, labelProps, isHeaderHidden, tabIndex, isChoiceList, onMouseEnter, onMouseLeave, onFocusCapture, onBlurCapture }: FormFieldComponentProps) => import("react").JSX.Element;
|
|
38
41
|
//#endregion
|
|
39
42
|
export { FormFieldProps as n, FormFieldHeaderProps as r, FormField as t };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
|
-
import { t as UIOverrides } from "./uiOverrides.context-
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.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 {
|
|
4
|
+
import { t as typographyDefinition } from "./typography.cva-CHsHX_Wp.js";
|
|
5
|
+
import { t as Typography } from "./Typography-DCLnPa3P.js";
|
|
6
|
+
import { t as FormFieldError } from "./FormFieldError-DTT5TUQ1.js";
|
|
7
|
+
import { n as labelTypography, r as formFieldHeaderDefinition, t as labelDefinition } from "./label.cva-DTfT6FrX.js";
|
|
8
|
+
import { n as formLayoutChoicesLineClass, r as formLayoutSideGridClass, t as FormLayoutContext } from "./formLayout.context--CN08Mtb.js";
|
|
8
9
|
import { Suspense, lazy } from "react";
|
|
9
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
11
|
//#region src/components/inputs/FormField/FormFieldLabel.tsx
|
|
@@ -16,28 +17,28 @@ const FormFieldLabel = ({ ref, as, label, isRequired, isDisabled, labelProps, cl
|
|
|
16
17
|
...labelProps,
|
|
17
18
|
ref,
|
|
18
19
|
className: clsx(typographyCva({
|
|
19
|
-
size: "
|
|
20
|
-
sizeMobile: "
|
|
21
|
-
className: "font-
|
|
20
|
+
size: "body",
|
|
21
|
+
sizeMobile: "body",
|
|
22
|
+
className: "font-medium leading-none",
|
|
22
23
|
...labelTypographyMap({ as })
|
|
23
24
|
}), labelBaseCva({ as }), className, labelProps?.className),
|
|
24
25
|
children: [label, isRequired && /* @__PURE__ */ jsx("span", {
|
|
25
|
-
className: clsx(!isDisabled && "text-
|
|
26
|
+
className: clsx("-ml-1", !isDisabled && "text-destructive"),
|
|
26
27
|
children: "*"
|
|
27
28
|
})]
|
|
28
29
|
});
|
|
29
30
|
};
|
|
30
31
|
//#endregion
|
|
31
32
|
//#region src/components/inputs/FormField/FormFieldHeader.tsx
|
|
32
|
-
const FormFieldHeaderTooltip = lazy(() => import("./FormFieldHeaderTooltip-
|
|
33
|
+
const FormFieldHeaderTooltip = lazy(() => import("./FormFieldHeaderTooltip-Dt-g40Tc.js"));
|
|
33
34
|
const FormFieldHeader = ({ label, tooltipText, helperText, helperTextId, isRequired, rightContent, isHeaderHidden, isDisabled, className, labelProps }) => {
|
|
34
35
|
const formFieldHeaderCva = UIOverrides.useCva("formField.headerCva", formFieldHeaderDefinition);
|
|
35
36
|
return /* @__PURE__ */ jsxs("div", {
|
|
36
37
|
className: clsx(formFieldHeaderCva({ visible: !isHeaderHidden }), className),
|
|
37
38
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
38
|
-
className: "flex items-
|
|
39
|
+
className: "flex items-center justify-between gap-2",
|
|
39
40
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
40
|
-
className: "flex items-
|
|
41
|
+
className: "flex items-center gap-1.5",
|
|
41
42
|
children: [/* @__PURE__ */ jsx(FormFieldLabel, {
|
|
42
43
|
label,
|
|
43
44
|
isRequired,
|
|
@@ -45,7 +46,7 @@ const FormFieldHeader = ({ label, tooltipText, helperText, helperTextId, isRequi
|
|
|
45
46
|
labelProps
|
|
46
47
|
}), tooltipText ? /* @__PURE__ */ jsx(Suspense, {
|
|
47
48
|
fallback: /* @__PURE__ */ jsx("span", {
|
|
48
|
-
className: "size-
|
|
49
|
+
className: "size-4",
|
|
49
50
|
"data-form-field-tooltip-loading": ""
|
|
50
51
|
}),
|
|
51
52
|
children: /* @__PURE__ */ jsx(FormFieldHeaderTooltip, {
|
|
@@ -58,61 +59,81 @@ const FormFieldHeader = ({ label, tooltipText, helperText, helperTextId, isRequi
|
|
|
58
59
|
id: helperTextId,
|
|
59
60
|
slot: "description",
|
|
60
61
|
size: "small",
|
|
61
|
-
className: "text-
|
|
62
|
+
className: "mt-1 mb-1 text-foreground",
|
|
62
63
|
children: helperText
|
|
63
64
|
})]
|
|
64
65
|
});
|
|
65
66
|
};
|
|
66
67
|
//#endregion
|
|
67
|
-
//#region src/components/inputs/FormField/FormFieldHelper.tsx
|
|
68
|
-
const FormFieldHelper = ({ id, helperText, isDisabled, isHidden, hasError, className }) => {
|
|
69
|
-
const formFieldHelperCva = UIOverrides.useCva("formField.helperLabelCva", formFieldHelperDefinition);
|
|
70
|
-
return /* @__PURE__ */ jsx("p", {
|
|
71
|
-
id,
|
|
72
|
-
className: clsx(formFieldHelperCva({ visible: !!helperText && !isDisabled && !isHidden && !hasError }), className),
|
|
73
|
-
slot: "description",
|
|
74
|
-
children: helperText
|
|
75
|
-
});
|
|
76
|
-
};
|
|
77
|
-
//#endregion
|
|
78
68
|
//#region src/components/inputs/FormField/FormField.tsx
|
|
79
|
-
const FormField = ({ ref, as, label, tooltipText, helperText, helperTextId, isRequired, rightContent, isDisabled, error, errorMessageId, hideLabel, headerClassName, errorClassName, children, className, labelProps, isHeaderHidden, tabIndex, onMouseEnter, onFocusCapture, onBlurCapture }) => {
|
|
69
|
+
const FormField = ({ ref, as, label, tooltipText, helperText, helperTextId, isRequired, rightContent, isDisabled, error, errorMessageId, hideLabel, headerClassName, errorClassName, children, className, labelProps, isHeaderHidden, tabIndex, isChoiceList, onMouseEnter, onMouseLeave, onFocusCapture, onBlurCapture }) => {
|
|
70
|
+
const { labelPosition } = FormLayoutContext.useFormLayout();
|
|
71
|
+
const isHeaderVisible = !hideLabel && !isHeaderHidden;
|
|
72
|
+
const isSide = labelPosition === "side" && (as ?? "default") === "default" && isHeaderVisible;
|
|
80
73
|
const headerProps = {
|
|
81
74
|
label,
|
|
82
75
|
tooltipText,
|
|
83
|
-
helperText,
|
|
76
|
+
helperText: isSide ? void 0 : helperText,
|
|
84
77
|
helperTextId,
|
|
85
78
|
isRequired,
|
|
86
79
|
rightContent,
|
|
87
|
-
isHeaderHidden:
|
|
80
|
+
isHeaderHidden: !isHeaderVisible,
|
|
88
81
|
isDisabled,
|
|
89
|
-
className: headerClassName,
|
|
82
|
+
className: clsx(isSide && "@min-[480px]:mb-0!", headerClassName),
|
|
90
83
|
labelProps
|
|
91
84
|
};
|
|
92
|
-
const helperProps = {
|
|
93
|
-
id: helperTextId,
|
|
94
|
-
helperText,
|
|
95
|
-
isDisabled,
|
|
96
|
-
isHidden: !["filter", "floating"].includes(as ?? ""),
|
|
97
|
-
hasError: !!error
|
|
98
|
-
};
|
|
99
85
|
const errorProps = {
|
|
100
86
|
id: errorMessageId,
|
|
101
87
|
error,
|
|
102
88
|
isDisabled,
|
|
103
89
|
className: errorClassName
|
|
104
90
|
};
|
|
91
|
+
if (isSide) return /* @__PURE__ */ jsxs("div", {
|
|
92
|
+
ref,
|
|
93
|
+
className: clsx(formLayoutSideGridClass, className),
|
|
94
|
+
tabIndex,
|
|
95
|
+
onMouseEnter,
|
|
96
|
+
onMouseLeave,
|
|
97
|
+
onFocusCapture,
|
|
98
|
+
onBlurCapture,
|
|
99
|
+
"data-form-field-side": "",
|
|
100
|
+
children: [/* @__PURE__ */ jsx(FormFieldHeader, { ...headerProps }), /* @__PURE__ */ jsxs("div", {
|
|
101
|
+
className: "min-w-0",
|
|
102
|
+
children: [
|
|
103
|
+
helperText && /* @__PURE__ */ jsx(Typography, {
|
|
104
|
+
id: helperTextId,
|
|
105
|
+
slot: "description",
|
|
106
|
+
size: "small",
|
|
107
|
+
className: "mb-2 text-foreground",
|
|
108
|
+
children: helperText
|
|
109
|
+
}),
|
|
110
|
+
isChoiceList ? /* @__PURE__ */ jsx("div", {
|
|
111
|
+
className: formLayoutChoicesLineClass,
|
|
112
|
+
"data-form-field-choices": "",
|
|
113
|
+
children
|
|
114
|
+
}) : children,
|
|
115
|
+
/* @__PURE__ */ jsx(FormFieldError, { ...errorProps })
|
|
116
|
+
]
|
|
117
|
+
})]
|
|
118
|
+
});
|
|
105
119
|
return /* @__PURE__ */ jsxs("div", {
|
|
106
120
|
ref,
|
|
107
121
|
className,
|
|
108
122
|
tabIndex,
|
|
109
123
|
onMouseEnter,
|
|
124
|
+
onMouseLeave,
|
|
110
125
|
onFocusCapture,
|
|
111
126
|
onBlurCapture,
|
|
112
127
|
children: [
|
|
113
128
|
!["filter", "floating"].includes(as ?? "") && /* @__PURE__ */ jsx(FormFieldHeader, { ...headerProps }),
|
|
129
|
+
helperText && ["filter", "floating"].includes(as ?? "") && /* @__PURE__ */ jsx(Typography, {
|
|
130
|
+
id: helperTextId,
|
|
131
|
+
slot: "description",
|
|
132
|
+
size: "small",
|
|
133
|
+
className: "mb-2 text-muted-foreground",
|
|
134
|
+
children: helperText
|
|
135
|
+
}),
|
|
114
136
|
children,
|
|
115
|
-
["filter", "floating"].includes(as ?? "") && /* @__PURE__ */ jsx(FormFieldHelper, { ...helperProps }),
|
|
116
137
|
/* @__PURE__ */ jsx(FormFieldError, { ...errorProps })
|
|
117
138
|
]
|
|
118
139
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
|
-
import { t as UIOverrides } from "./uiOverrides.context-
|
|
3
|
-
import { t as formFieldErrorDefinition } from "./formFieldError.cva-
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
+
import { t as formFieldErrorDefinition } from "./formFieldError.cva-BB6Ghqwq.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 }) => {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
|
+
import { t as IconSlot } from "./IconSlot-CqNuZl0E.js";
|
|
3
|
+
import { t as Tooltip } from "./Tooltip-DRB6lo0U.js";
|
|
4
|
+
import { t as $a3be900807531178$re_export$Focusable } from "./exports-BNrTn8Tj.js";
|
|
5
|
+
import { Info } from "lucide-react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
//#region src/components/inputs/FormField/FormFieldHeaderTooltip.tsx
|
|
8
|
+
const FormFieldHeaderTooltip = ({ text, isDisabled }) => /* @__PURE__ */ jsx(Tooltip, {
|
|
9
|
+
text,
|
|
10
|
+
children: /* @__PURE__ */ jsx($a3be900807531178$re_export$Focusable, { children: /* @__PURE__ */ jsx(IconSlot, {
|
|
11
|
+
icon: Info,
|
|
12
|
+
className: clsx(isDisabled ? "text-muted-foreground" : "text-muted-foreground hover:text-foreground"),
|
|
13
|
+
tabIndex: 0
|
|
14
|
+
}) })
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { FormFieldHeaderTooltip as default };
|