@povio/ui 4.0.3 → 5.0.0-rc.10
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/.rulesync/rules/ui-buttons-and-content.md +56 -0
- package/.rulesync/rules/ui-inputs-and-forms.md +62 -0
- package/.rulesync/rules/ui-overlays-navigation-and-styling.md +49 -0
- package/.rulesync/rules/ui-overview.md +33 -0
- package/README.md +128 -10
- package/dist/{Accordion-CB1F5YAY.js → Accordion-BzwO4_ml.js} +22 -140
- package/dist/{Alert-BALBsBrP.js → Alert-CnvEb1D_.js} +34 -30
- package/dist/{Alert-CbEhRaU5.d.ts → Alert-DfiJbKH0.d.ts} +4 -3
- package/dist/{AlertDialog-PjYM6lDo.d.ts → AlertDialog-OWTbR4km.d.ts} +3 -3
- package/dist/AppCanvasPage-BEER5hHp.js +2421 -0
- package/dist/AppCanvasPage-BIFYeEeS.d.ts +80 -0
- package/dist/{Autocomplete-DE2lQi5o.d.ts → Autocomplete-C6RRxImn.d.ts} +1 -1
- package/dist/{Badge-CjPpYa50.d.ts → Badge-CBNpj823.d.ts} +8 -6
- package/dist/BadgeButton-Ccgt3oGO.d.ts +15 -0
- package/dist/{BottomSheet-CVTF1wQe.js → BottomSheet-BXLE3161.js} +15 -14
- package/dist/{BottomSheet-CT0zuola.d.ts → BottomSheet-DbQuzfAB.d.ts} +1 -1
- package/dist/{BottomSheet.lazy-7AwnB4vS.d.ts → BottomSheet.lazy-D9LCEo7s.d.ts} +1 -1
- package/dist/{Breadcrumbs-D-3YEuem.d.ts → Breadcrumbs-CUV6CU8Q.d.ts} +1 -1
- package/dist/{Breadcrumbs-C-mZtdCc.js → Breadcrumbs-FF8hMfXd.js} +26 -42
- package/dist/Button-C5rv4Cr2.js +506 -0
- package/dist/{Button-DTNjsGx5.d.ts → Button-D-4qb0IR.d.ts} +3 -3
- package/dist/{ButtonContent-CohuJJzG.js → ButtonContent-c7lJayVQ.js} +12 -10
- package/dist/{Calendar-BYcN64W5.js → Calendar-DRHruqr_.js} +28 -20
- package/dist/{CheckContent-DzWpxKGq.js → CheckContent-D7sZPmzx.js} +4 -5
- package/dist/{Checkbox-DBV_Nxtq.js → Checkbox-D3f2Plbc.js} +6 -6
- package/dist/{Checkbox-CBybJbLm.d.ts → Checkbox-x2MuL477.d.ts} +1 -1
- package/dist/{CheckboxCheckmark-DJue5Aej.js → CheckboxCheckmark-FwKjPVbV.js} +34 -55
- package/dist/{CheckboxGroup-4xoWgmxr.d.ts → CheckboxGroup-Dio2rvF5.d.ts} +3 -3
- package/dist/ComponentGallery-CMFrbwEN.js +3513 -0
- package/dist/{DatePicker-CjmXaZ9T.d.ts → DatePicker-1LJ2LqST.d.ts} +3 -3
- package/dist/{DatePicker-DGlMtlvy.js → DatePicker-xDEqzNJv.js} +12 -11
- package/dist/{DatePickerInput-Nj_rVUyU.js → DatePickerInput-B0fEeCOf.js} +27 -40
- package/dist/{DatePickerInput-CdCtVE9z.d.ts → DatePickerInput-ai4apf8B.d.ts} +3 -3
- package/dist/{DateRangePicker-D1kjkFfS.d.ts → DateRangePicker-Dfptit_Z.d.ts} +3 -3
- package/dist/{DateRangePicker-CE9XvAy9.js → DateRangePicker-DxuVhRaf.js} +25 -22
- package/dist/{DateTimePicker-CtUPjVp1.js → DateTimePicker-4N1Pka07.js} +11 -10
- package/dist/{DateTimePicker-CT_Pm3KB.d.ts → DateTimePicker-DpsfukpQ.d.ts} +3 -3
- package/dist/{Dialog-BE9BSDDl.js → Dialog-9manOgMA.js} +4 -4
- package/dist/{Dialog-CXoVeIkU.js → Dialog-CKLkS00H.js} +10 -2
- package/dist/{Dialog-DEbI_9S-.d.ts → Dialog-CW93T9X1.d.ts} +3 -2
- package/dist/{DropdownMenu-tuf1W-IL.js → DropdownMenu-5jmtgLXd.js} +8 -6
- package/dist/{DropdownMenu-CZQRzOBb.d.ts → DropdownMenu-JNpYT4-3.d.ts} +4 -3
- package/dist/{DropdownMenuDesktop-C9ttysuk.js → DropdownMenuDesktop-Cl9gZVq0.js} +9 -38
- package/dist/{FileInput-BUs7wL0_.js → FileInput-DUyc_sVu.js} +20 -22
- package/dist/{FileInput-CI8D_wf_.d.ts → FileInput-Dt3UDg2s.d.ts} +7 -6
- package/dist/{FileTrigger-CDXcQthK.js → FileTrigger-Cthk5_Wp.js} +1 -30
- package/dist/{FileUpload-BrnJdN3M.d.ts → FileUpload-BXlKtQ4L.d.ts} +1 -1
- package/dist/{FileUpload-C3HzeFeb.js → FileUpload-Cx98L1jz.js} +76 -173
- package/dist/{FileUploadContainer-CkBENy6n.d.ts → FileUploadContainer-BURZAS2M.d.ts} +1 -1
- package/dist/{Form-mzpVGNjX.d.ts → Form-DmcByQts.d.ts} +1 -1
- package/dist/{FormField-DTO2cbXC.js → FormField-9h3JAhaY.js} +40 -38
- package/dist/{FormField-DTDj3F0A.d.ts → FormField-C8_T6by9.d.ts} +1 -1
- package/dist/{FormFieldError-CFg0Wn3i.js → FormFieldError-DeOHHLo2.js} +3 -3
- package/dist/FormFieldHeaderTooltip-BV2Ju4oB.js +17 -0
- package/dist/{IconButton-CYazzM7I.d.ts → IconButton-D4thBurp.d.ts} +2 -2
- package/dist/IconSlot-DSK7qNxc.js +79 -0
- package/dist/{InlineIconButton-Rp5bXWcQ.d.ts → InlineIconButton-BeJCjl-q.d.ts} +2 -2
- package/dist/{InlineTooltipWrapper-Ct6zi24f.js → InlineTooltipWrapper-BpApaGXV.js} +3 -3
- package/dist/{Input-DSHFNEVl.d.ts → Input-CHD67H4o.d.ts} +3 -3
- package/dist/{InputContent-CvWm6GAv.d.ts → InputContent-B6CIQNnE.d.ts} +3 -3
- package/dist/{InputItem-DAunP0iy.js → InputItem-Cv19Hwnx.js} +11 -11
- package/dist/{Inputs-CHEDcuP0.d.ts → Inputs-C0sUmuPv.d.ts} +1 -1
- package/dist/{Inputs-_IqA6JRE.js → Inputs-D1aE_J9f.js} +1 -1
- package/dist/{Link-DS9-0Ijl.d.ts → Link-Ow9H7kNv.d.ts} +3 -2
- package/dist/{ListBox-B7DW1S7n.js → ListBox-CL8Ar4Q_.js} +5 -4
- package/dist/{MenuItem-CROWrE2A.d.ts → MenuItem-DHyqOqln.d.ts} +1 -1
- package/dist/{Modal-CoFt5PGP.js → Modal-w60dVQcb.js} +1 -1
- package/dist/{NumberField-BICDQ2gN.d.ts → NumberField-4SX3R6IR.d.ts} +3 -3
- package/dist/{NumberRangeInput-Bu-3Y0zf.js → NumberRangeInput-Bzfe-RlV.js} +8 -8
- package/dist/{NumberRangeInput-BlGXChNR.d.ts → NumberRangeInput-CKmLfgVD.d.ts} +2 -2
- package/dist/{Pagination-CumQED8X.d.ts → Pagination-CwQu5Py8.d.ts} +1 -1
- package/dist/{PaginationList-D79ApWLm.d.ts → PaginationList-DMRUGtf8.d.ts} +2 -2
- package/dist/{PaginationList-CmOJo2r2.js → PaginationList-DtvuP63b.js} +13 -21
- package/dist/{PasswordInput-BdrYD1D3.d.ts → PasswordInput-tLGcHS6H.d.ts} +1 -1
- package/dist/{Popover-C0_-TLl_.d.ts → Popover-BTHPteIh.d.ts} +2 -2
- package/dist/{Progress-_jkt2pQw.js → Progress-B3mY9rIP.js} +6 -7
- package/dist/{Progress-CYfDXJKs.d.ts → Progress-CjWOR38H.d.ts} +3 -2
- package/dist/{QuerySelect-Bpz-qI9h.d.ts → QuerySelect-CgfnA3d-.d.ts} +2 -2
- package/dist/{RadioGroup-WHWosz7K.d.ts → RadioGroup-CvmI9i_U.d.ts} +3 -3
- package/dist/{RadioGroup-DiF7ILto.js → RadioGroup-efBKgTYA.js} +21 -24
- package/dist/{RichTextEditor-eM9d2umr.js → RichTextEditor-Bd7F5D8f.js} +68 -141
- package/dist/{RichTextEditor-CbgjRfiU.d.ts → RichTextEditor-CsDZcgyf.d.ts} +1 -1
- package/dist/{Select-CyBtGHk9.js → Select-CgIhoWgk.js} +10 -15
- package/dist/{Select-wzB2aQ_X.d.ts → Select-DKBPfNUe.d.ts} +1 -1
- package/dist/{SelectBase-DefgAEzh.d.ts → SelectBase-BkIhS9Dg.d.ts} +3 -3
- package/dist/{Slider-CZMNmk6P.d.ts → Slider-BtUXzztJ.d.ts} +1 -1
- package/dist/{Slider-KkWtEm09.js → Slider-CMg0BXJO.js} +12 -12
- package/dist/{Spinner-owSXOEzg.js → Spinner-BeVTUzzx.js} +2 -2
- package/dist/{Spinner-BOgO9bS6.d.ts → Spinner-DbXeDOa2.d.ts} +3 -2
- package/dist/{SplitButton-BPZbQeYC.d.ts → SplitButton-D9ngY1rJ.d.ts} +3 -3
- package/dist/{Stepper-BbO9TlOM.js → Stepper-Cp5vbL5g.js} +9 -125
- package/dist/{Stepper-PcHlxDD5.d.ts → Stepper-TATlHZhQ.d.ts} +13 -12
- package/dist/{Switch-Cylpjatb.js → Switch-CqnGEdeD.js} +17 -25
- package/dist/{Switch-C0S5Juhf.d.ts → Switch-s_EPn0Jz.d.ts} +1 -1
- package/dist/Table-BN2_J_Ne.js +636 -0
- package/dist/Tag-AHfV_XSf.d.ts +44 -0
- package/dist/Tag-DPg5sL1Z.js +146 -0
- package/dist/{TextArea-CBWJ7w-p.d.ts → TextArea-D6kcAwGn.d.ts} +2 -2
- package/dist/{TextArea-DvqDGp4M.js → TextArea-uPffb457.js} +9 -9
- package/dist/{TextButton-D7e_YBLe.d.ts → TextButton-XUhV_1s0.d.ts} +4 -4
- package/dist/{TimePicker-WirUMDrH.js → TimePicker-DN-i98z5.js} +12 -12
- package/dist/{TimePicker-BZ4WrI5Z.d.ts → TimePicker-Dex9aU7D.d.ts} +2 -2
- package/dist/Toast-DtG3pA61.js +53 -0
- package/dist/{Toast-DIlYlUQk.d.ts → Toast-ruXqONDA.d.ts} +1 -1
- package/dist/{ToastContainer-8X5jGBe7.js → ToastContainer-qgpzMFD4.js} +4 -3
- package/dist/{ToggleButton-D4y2fLmN.d.ts → ToggleButton-7aP8Jb11.d.ts} +2 -2
- package/dist/{ToggleGroup-D9CFdM5-.d.ts → ToggleGroup-CRFDIPGZ.d.ts} +1 -1
- package/dist/{ToggleGroup-BK6Ka7WA.js → ToggleGroup-DmVPNWok.js} +27 -55
- package/dist/{Tooltip--PSxkQA3.js → Tooltip-CpG1nz7Y.js} +7 -49
- package/dist/{Tooltip-B-2AxyjP.d.ts → Tooltip-DHv6vAqW.d.ts} +10 -9
- package/dist/{TooltipWrapper-BVc_Aln-.js → TooltipWrapper-CDHFaUKZ.js} +5 -5
- package/dist/{Typography-AcUd9df8.js → Typography-LU4z2pR1.js} +2 -2
- package/dist/{Typography-BWmZd20e.d.ts → Typography-XljT9s02.d.ts} +1 -1
- package/dist/UIConfigurator-CTlq-hrG.js +6704 -0
- package/dist/accordion.cva-CL1bVscW.js +129 -0
- package/dist/{autocomplete-CaQSVRrw.d.ts → autocomplete-B-JuxTYN.d.ts} +2 -2
- package/dist/badgeButton.cva-B2bgCQP6.d.ts +41 -0
- package/dist/badgeButton.cva-CvN4CTx5.js +300 -0
- package/dist/breadcrumbs.cva-7zzdDhVR.js +27 -0
- package/dist/{button.cva-ChabF4Am.d.ts → button.cva-C7kEhgoA.d.ts} +15 -32
- package/dist/{buttonContent.cva-CP857foM.d.ts → buttonContent.cva-DPIlROA9.d.ts} +2 -2
- package/dist/{checkbox-D8CPWRlM.d.ts → checkbox-CRP4QRfP.d.ts} +1 -1
- package/dist/{checkbox-group-BuPUA_Qj.d.ts → checkbox-group-BI_RwIJ4.d.ts} +1 -1
- package/dist/{checkbox.cva-DwnPS5df.d.ts → checkbox.cva-DBqfmYHY.d.ts} +6 -7
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.d.ts +1 -1
- package/dist/components/alert-dialog.js +7 -7
- package/dist/components/alert.d.ts +1 -1
- package/dist/components/alert.js +1 -1
- package/dist/components/autocomplete.d.ts +1 -1
- package/dist/components/autocomplete.js +6 -5
- package/dist/components/badge-button.d.ts +2 -0
- package/dist/components/{pill-button.js → badge-button.js} +13 -12
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.js +56 -40
- package/dist/components/bottom-sheet.d.ts +2 -2
- package/dist/components/bottom-sheet.js +2 -2
- 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 +6 -6
- 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 +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/icon-button.d.ts +1 -1
- package/dist/components/icon-button.js +2 -2
- package/dist/components/icon-slot.d.ts +2 -0
- package/dist/components/icon-slot.js +2 -0
- package/dist/components/inline-icon-button.d.ts +1 -1
- package/dist/components/inline-icon-button.js +2 -2
- package/dist/components/input.d.ts +1 -1
- package/dist/components/input.js +7 -7
- package/dist/components/link.d.ts +1 -1
- package/dist/components/link.js +32 -1
- package/dist/components/number-field.d.ts +1 -1
- package/dist/components/number-field.js +7 -7
- 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 +36 -33
- package/dist/components/password-input.d.ts +1 -1
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.js +6 -5
- package/dist/components/progress.d.ts +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/query-autocomplete.d.ts +2 -2
- package/dist/components/query-autocomplete.js +10 -5
- package/dist/components/query-select.d.ts +1 -1
- package/dist/components/query-select.js +3 -3
- package/dist/components/radio-group.d.ts +1 -1
- package/dist/components/radio-group.js +1 -1
- package/dist/components/select.d.ts +2 -2
- 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 +3 -3
- package/dist/components/stepper.d.ts +1 -1
- package/dist/components/stepper.js +1 -1
- 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 +1 -1
- package/dist/components/text-area.d.ts +1 -1
- package/dist/components/text-area.js +1 -1
- package/dist/components/text-button.d.ts +1 -1
- package/dist/components/text-button.js +1 -2
- 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 +2 -2
- 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/app-canvas-tanstack.d.ts +23 -0
- package/dist/config/app-canvas-tanstack.js +62 -0
- package/dist/config/app-canvas.d.ts +12 -0
- package/dist/config/app-canvas.js +2 -0
- 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/config/ui-configurator-theme.d.ts +2 -0
- package/dist/config/ui-configurator-theme.js +2 -0
- package/dist/config/ui-configurator-vite.d.ts +10 -0
- package/dist/config/ui-configurator-vite.js +174 -0
- package/dist/config/ui-configurator.d.ts +15 -0
- package/dist/config/ui-configurator.js +3 -0
- package/dist/config/ui-overrides.d.ts +1 -1
- package/dist/config/ui-overrides.js +1 -1
- package/dist/configuration.context-DP4p1cIe.d.ts +926 -0
- package/dist/{confirmation.context-fKfUTsLF.d.ts → confirmation.context-BOeEVczb.d.ts} +1 -1
- package/dist/{date-picker-MXt02b7Z.d.ts → date-picker-BhIA01qs.d.ts} +1 -1
- package/dist/{date-range-picker-BjT0t21q.d.ts → date-range-picker-BsuZ2h_3.d.ts} +1 -1
- package/dist/{date-time-picker-CMmIuZtT.d.ts → date-time-picker-Bi-qW6vO.d.ts} +1 -1
- package/dist/datePickerInput.cva-Cd7UUN61.js +14 -0
- package/dist/{datePickerValue.utils-1z4mwZZs.js → datePickerValue.utils-QWR2q5Vv.js} +9 -11
- package/dist/{dialog.cva-5qNq9YfM.js → dialog.cva-COhDZaVl.js} +4 -4
- package/dist/{dist-C6GfeeEC.js → dist-CAdwxJbe.js} +1 -256
- package/dist/{dom.utils-D3mELNBA.js → dom.utils-D1AopHx9.js} +1 -1
- package/dist/dropdownMenu.cva-DvEmX0bs.js +34 -0
- package/dist/{dynamicInputs-CQMTixlW.d.ts → dynamicInputs-DdcsSoYu.d.ts} +112 -111
- package/dist/{fieldAdapter-BYVPxvYi.js → fieldAdapter-DjYls12j.js} +1 -1
- package/dist/{file-input-D-46wS5j.d.ts → file-input-BTYsGgr7.d.ts} +1 -1
- package/dist/{file-upload-BG20Bhrn.d.ts → file-upload-CqGdt1Ue.d.ts} +2 -2
- package/dist/fileUpload.cva-ujmStxB1.js +42 -0
- package/dist/{fileUpload.types-xFzuCT_m.d.ts → fileUpload.types-rIGu4MgY.d.ts} +2 -2
- package/dist/iconSlot.cva-CnpFzAOR.d.ts +21 -0
- package/dist/icons.d.ts +2 -1
- package/dist/icons.js +2 -1
- package/dist/index.d.ts +87 -86
- package/dist/index.js +55 -44
- package/dist/info-iUmX3uDk.js +32 -0
- package/dist/{input-CKGPYwfB.d.ts → input-CqNMORk8.d.ts} +1 -1
- package/dist/{input.cva-ByFuAEIS.d.ts → input.cva-CQPV5gW7.d.ts} +6 -9
- package/dist/input.cva-CbMTwuQU.js +227 -0
- package/dist/{link.context-C5ZgwVM5.d.ts → link.context-D5qyz9Rf.d.ts} +1 -1
- package/dist/link.cva-DMTHZiJG.js +12 -0
- package/dist/{number-field-CyP6XgJh.d.ts → number-field-BcMnahI8.d.ts} +1 -1
- package/dist/{number-range-input-DMmlk7Bl.d.ts → number-range-input-CLfuacKv.d.ts} +1 -1
- package/dist/{password-input-BWpfQe0G.d.ts → password-input-BV1Amdc8.d.ts} +1 -1
- package/dist/popover.cva-Bhud1wnp.js +5 -0
- package/dist/popoverAnimation-DEZSvKP8.js +4 -0
- package/dist/{query-autocomplete-DV8fEkK2.d.ts → query-autocomplete-CJSJeSXW.d.ts} +2 -2
- package/dist/{query-select-BZ3-5WTu.d.ts → query-select-B-VLz1PW.d.ts} +2 -2
- package/dist/{queryAutocomplete.types-Dm8Ttx4v.d.ts → queryAutocomplete.types-D2w1_hau.d.ts} +2 -2
- package/dist/{radio-group-CmUtsjqP.d.ts → radio-group-DZZdQMub.d.ts} +1 -1
- package/dist/{radio.cva-DAq2M13H.d.ts → radio.cva-DN9VQ3Kb.d.ts} +4 -3
- package/dist/rhf/autocomplete.d.ts +2 -2
- package/dist/rhf/autocomplete.js +1 -1
- package/dist/rhf/checkbox-group.d.ts +2 -2
- package/dist/rhf/checkbox-group.js +1 -1
- package/dist/rhf/checkbox.d.ts +2 -2
- package/dist/rhf/checkbox.js +2 -2
- package/dist/rhf/date-picker.d.ts +2 -2
- package/dist/rhf/date-picker.js +2 -2
- package/dist/rhf/date-range-picker.d.ts +2 -2
- package/dist/rhf/date-range-picker.js +2 -2
- package/dist/rhf/date-time-picker.d.ts +2 -2
- package/dist/rhf/date-time-picker.js +2 -2
- package/dist/rhf/file-input.d.ts +2 -2
- package/dist/rhf/file-input.js +2 -2
- package/dist/rhf/file-upload.d.ts +2 -2
- package/dist/rhf/file-upload.js +2 -2
- package/dist/rhf/input.d.ts +2 -2
- package/dist/rhf/input.js +1 -1
- package/dist/rhf/inputs.d.ts +2 -2
- package/dist/rhf/number-field.d.ts +2 -2
- package/dist/rhf/number-field.js +1 -1
- package/dist/rhf/number-range-input.d.ts +2 -2
- package/dist/rhf/number-range-input.js +2 -2
- package/dist/rhf/password-input.d.ts +2 -2
- package/dist/rhf/password-input.js +1 -1
- package/dist/rhf/query-autocomplete.d.ts +1 -1
- package/dist/rhf/query-autocomplete.js +1 -1
- package/dist/rhf/query-select.d.ts +1 -1
- package/dist/rhf/query-select.js +1 -1
- package/dist/rhf/radio-group.d.ts +2 -2
- package/dist/rhf/radio-group.js +2 -2
- package/dist/rhf/rich-text-editor.d.ts +2 -2
- package/dist/rhf/rich-text-editor.js +2 -2
- package/dist/rhf/select.d.ts +2 -2
- package/dist/rhf/select.js +2 -2
- package/dist/rhf/slider.d.ts +2 -2
- package/dist/rhf/slider.js +2 -2
- package/dist/rhf/switch.d.ts +2 -2
- package/dist/rhf/switch.js +2 -2
- package/dist/rhf/text-area.d.ts +2 -2
- package/dist/rhf/text-area.js +2 -2
- package/dist/rhf/time-picker.d.ts +2 -2
- package/dist/rhf/time-picker.js +2 -2
- package/dist/rhf/toggle-group.d.ts +2 -2
- package/dist/rhf/toggle-group.js +2 -2
- package/dist/{rhf-1_ZO8GhU.js → rhf-t348TCCL.js} +1 -1
- package/dist/rhf.d.ts +87 -86
- package/dist/rhf.js +55 -44
- package/dist/{rich-text-editor-Db3XWWFo.d.ts → rich-text-editor-Cp5dYHQI.d.ts} +1 -1
- package/dist/rich-text-editor.d.ts +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/{select-DXGbGkZM.d.ts → select-FjDx5oe4.d.ts} +2 -2
- package/dist/selectDesktop.cva-CHAMxhfO.js +69 -0
- package/dist/{slider-JQh0ypfU.d.ts → slider-BVJiBswZ.d.ts} +1 -1
- package/dist/{staticDateTimeSegments-vP2f1woD.js → staticDateTimeSegments-BWea3HAt.js} +34 -33
- package/dist/{staticSelect.utils-DOt6f-ck.js → staticSelect.utils-BfTCi26B.js} +41 -92
- package/dist/stepper.cva-CZ0Kj-s7.js +116 -0
- package/dist/style-merge.util-zLimKwt6.d.ts +40 -0
- package/dist/styles/app-canvas.css +740 -0
- package/dist/styles/color-utilities.css +20 -0
- package/dist/styles/configurator.css +3280 -0
- package/dist/styles/editor.css +9 -9
- package/dist/styles/input.d.ts +1 -1
- package/dist/{switch-Lm3xl1rQ.d.ts → switch-C--iWnY8.d.ts} +1 -1
- package/dist/switch.cva-CWNzmdRc.d.ts +16 -0
- package/dist/table.cva-D5oQ-QvA.js +101 -0
- package/dist/tanstack/autocomplete.d.ts +1 -1
- package/dist/tanstack/checkbox-group.d.ts +1 -1
- package/dist/tanstack/checkbox.d.ts +1 -1
- package/dist/tanstack/checkbox.js +1 -1
- package/dist/tanstack/date-picker.d.ts +1 -1
- package/dist/tanstack/date-picker.js +1 -1
- package/dist/tanstack/date-range-picker.d.ts +1 -1
- package/dist/tanstack/date-range-picker.js +1 -1
- package/dist/tanstack/date-time-picker.d.ts +1 -1
- package/dist/tanstack/date-time-picker.js +1 -1
- package/dist/tanstack/file-input.d.ts +1 -1
- package/dist/tanstack/file-input.js +1 -1
- package/dist/tanstack/file-upload.d.ts +2 -2
- package/dist/tanstack/file-upload.js +1 -1
- package/dist/tanstack/form.d.ts +1 -1
- package/dist/tanstack/form.js +1 -1
- package/dist/tanstack/input.d.ts +1 -1
- package/dist/tanstack/inputs.d.ts +3 -3
- package/dist/tanstack/inputs.js +1 -1
- package/dist/tanstack/number-field.d.ts +1 -1
- package/dist/tanstack/number-range-input.d.ts +1 -1
- package/dist/tanstack/number-range-input.js +1 -1
- package/dist/tanstack/password-input.d.ts +1 -1
- package/dist/tanstack/query-select.d.ts +1 -1
- package/dist/tanstack/radio-group.d.ts +1 -1
- 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 +1 -1
- package/dist/tanstack/select.js +1 -1
- package/dist/tanstack/slider.d.ts +1 -1
- package/dist/tanstack/slider.js +1 -1
- package/dist/tanstack/switch.d.ts +1 -1
- package/dist/tanstack/switch.js +1 -1
- package/dist/tanstack/table.d.ts +1 -1
- package/dist/tanstack/table.js +2 -1
- package/dist/tanstack/text-area.d.ts +1 -1
- package/dist/tanstack/text-area.js +1 -1
- package/dist/tanstack/time-picker.d.ts +1 -1
- 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.d.ts +71 -70
- package/dist/tanstack.js +66 -53
- package/dist/{text-area-I5MNcGp_.d.ts → text-area-DhSVRB6X.d.ts} +1 -1
- package/dist/theme-model-DtYPxNvH.js +406 -0
- package/dist/theme-model-T1zIdBg8.d.ts +12 -0
- package/dist/{time-picker-DdhW8GmD.d.ts → time-picker-DhnDKh97.d.ts} +1 -1
- package/dist/{toast.cva-LU7TGprV.d.ts → toast.cva-By5lvAfr.d.ts} +10 -9
- package/dist/toast.cva-C_L_RffH.js +163 -0
- package/dist/{toast.runtime-QMYrNvoQ.js → toast.runtime-cxex9e4E.js} +2 -1
- package/dist/{toggle-group-CPkKHm1t.d.ts → toggle-group-C1nMDOwz.d.ts} +1 -1
- package/dist/toggleGroup.cva-MbpaEBg1.js +35 -0
- package/dist/{toggleGroup.types-DD6uRI5G.d.ts → toggleGroup.types-Bp43zbSQ.d.ts} +2 -1
- package/dist/tooltip.cva-BIzlOXHH.js +48 -0
- package/dist/{tooltipWrapper.cva-CUu8pI-a.js → tooltipWrapper.cva-BBQ4ic3D.js} +1 -1
- package/dist/typography.cva-D1JOEYl-.d.ts +36 -0
- package/dist/typography.cva-iD15k56p.js +51 -0
- package/dist/{uiConfig.context-RFvaQYzD.js → uiConfig.context-BS3r_kTS.js} +12 -21
- package/dist/{uiConfig.context-CIoMqe1_.d.ts → uiConfig.context-BqKWd_MO.d.ts} +11 -12
- package/dist/{uiOverrides.context-Bfm2n-n8.js → uiOverrides.context-BTCH9y5a.js} +2 -2
- package/dist/{uiOverrides.context-C3xb4Ttq.d.ts → uiOverrides.context-DEp139He.d.ts} +11 -44
- package/dist/underline-66hmELxa.js +81 -0
- package/dist/upload-CXU83BJ4.js +30 -0
- package/dist/{useBreakpoint-3kpqzjoC.js → useBreakpoint-DQoMN-BG.js} +1 -1
- package/dist/{useFieldAccessibility-BTs_WC_5.js → useFieldAccessibility-B-bjtrNw.js} +18 -12
- package/dist/{useFormAutosave-BRlM0nmq.js → useFormAutosave-pmh35PXp.js} +2 -2
- package/dist/{useStaticInputHandoff-_stbpoX4.js → useStaticInputHandoff-B7DEm75m.js} +18 -16
- package/dist/useTableColumnConfig-6zn3zKl3.js +892 -0
- package/dist/{useTableNav-Tu8UZxHA.d.ts → useTableNav-Ckj5PBRk.d.ts} +9 -8
- package/dist/{useToast-NBGlVeFP.d.ts → useToast-yreVCUer.d.ts} +1 -1
- package/package.json +54 -6
- package/rulesync.jsonc +11 -0
- package/scripts/generate-rules.mjs +34 -0
- package/src/configurator/README.md +77 -0
- package/dist/Button-CcZBqoQp.js +0 -761
- package/dist/FormFieldHeaderTooltip-h6e5hq9V.js +0 -45
- package/dist/Link-C5YsZ4pr.js +0 -42
- package/dist/PillButton-CihEPQye.d.ts +0 -15
- package/dist/Tag-CgPeLVXM.d.ts +0 -44
- package/dist/Tag-DNuHvt6J.js +0 -148
- package/dist/components/pill-button.d.ts +0 -2
- package/dist/input.cva-KYGD4Bdz.js +0 -324
- package/dist/pillButton.cva-6tjADUQ6.js +0 -265
- package/dist/pillButton.cva-BVsxGnqF.d.ts +0 -36
- package/dist/popover.cva-CXha_UMQ.js +0 -5
- package/dist/switch.cva-BIioyegR.d.ts +0 -15
- package/dist/typography.cva-BI0FyIqm.js +0 -129
- package/dist/typography.cva-YaO6JLqU.d.ts +0 -51
- package/dist/useTableColumnConfig-CiAr7Dbi.js +0 -1627
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import { t as createLucideIcon } from "./createLucideIcon-LcezOE4z.js";
|
|
2
|
-
import { t as UIConfig } from "./uiConfig.context-
|
|
3
|
-
import {
|
|
2
|
+
import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
3
|
+
import { t as Upload } from "./upload-CXU83BJ4.js";
|
|
4
4
|
import { t as X } from "./x-B6vfz8Ps.js";
|
|
5
5
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
6
|
-
import { t as UIOverrides } from "./uiOverrides.context-
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
6
|
+
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
7
|
+
import { t as IconSlot } from "./IconSlot-DSK7qNxc.js";
|
|
8
|
+
import { n as $070c0dd15dc89b58$export$3c6489d84dc98b6, t as $b325d7bd7e74496a$export$6fb4a10d2c950550 } from "./FileTrigger-Cthk5_Wp.js";
|
|
9
|
+
import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
10
|
+
import { t as Button } from "./Button-C5rv4Cr2.js";
|
|
9
11
|
import { InlineIconButton } from "./components/inline-icon-button.js";
|
|
10
12
|
import { TextButton } from "./components/text-button.js";
|
|
11
13
|
import { i as $a8ea2faf2ebe4d2f$re_export$useLabels, r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
12
14
|
import { t as FieldController } from "./form.binding-CG1RPv6o.js";
|
|
13
|
-
import { t as FormField } from "./FormField-
|
|
15
|
+
import { t as FormField } from "./FormField-9h3JAhaY.js";
|
|
14
16
|
import "./i18n-CX2EjhJI.js";
|
|
15
17
|
import { t as FileUtils } from "./file.utils-DqQxnuAm.js";
|
|
16
|
-
import { t as Progress } from "./Progress-
|
|
18
|
+
import { t as Progress } from "./Progress-B3mY9rIP.js";
|
|
19
|
+
import { t as fileUploadDropZoneDefinition } from "./fileUpload.cva-ujmStxB1.js";
|
|
17
20
|
import { memo, useCallback, useMemo, useState } from "react";
|
|
18
21
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
19
22
|
import { useTranslation } from "react-i18next";
|
|
@@ -100,58 +103,42 @@ const File = createLucideIcon(__iconData);
|
|
|
100
103
|
//#region src/components/inputs/File/shared/FileUploadContentError.tsx
|
|
101
104
|
const FileUploadContentError = ({ variant, as, isDisabled, state, browseText, fileTriggerProps, removeWithIcon = false, singleFile, onRemove, browseButtonProps }) => {
|
|
102
105
|
const { t } = useTranslation("ui");
|
|
103
|
-
const { size: browseButtonSize = "
|
|
106
|
+
const { size: browseButtonSize = "sm", variant: browseButtonVariant = "outlined", width: browseButtonWidth = "hug", ...browseButtonRestProps } = browseButtonProps ?? {};
|
|
104
107
|
return /* @__PURE__ */ jsx("div", {
|
|
105
108
|
className: clsx("flex w-full flex-fill flex-col items-start"),
|
|
106
109
|
children: /* @__PURE__ */ jsxs("div", {
|
|
107
|
-
className: clsx("flex w-full items-center",
|
|
108
|
-
"flex-row gap-file-upload-content-gap-left-to-right-content": variant === "horizontal",
|
|
109
|
-
"flex-col": variant === "vertical",
|
|
110
|
-
"gap-file-upload-content-gap-content-to-button": variant === "vertical" && as === "button",
|
|
111
|
-
"gap-file-upload-content-gap-text-to-text": variant === "vertical" && as === "link"
|
|
112
|
-
}),
|
|
110
|
+
className: clsx("flex w-full items-center", variant === "horizontal" && "flex-row gap-file-upload-content-gap-left-to-right-content", variant === "vertical" && "flex-col", variant === "vertical" && as === "button" && "gap-file-upload-content-gap-content-to-button", variant === "vertical" && as === "link" && "gap-file-upload-content-gap-text-to-text"),
|
|
113
111
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
114
|
-
className: clsx("flex min-w-0 max-w-full flex-grow items-center gap-file-upload-content-gap-icon-to-content",
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
"
|
|
118
|
-
}),
|
|
119
|
-
|
|
120
|
-
className: clsx("flex flex-col gap-file-upload-content-gap-text-to-text", {
|
|
121
|
-
"max-w-full items-center": variant === "vertical",
|
|
122
|
-
"max-w-[calc(100%_-_32px)]": variant === "horizontal"
|
|
123
|
-
}),
|
|
112
|
+
className: clsx("flex min-w-0 max-w-full flex-grow items-center gap-file-upload-content-gap-icon-to-content", variant === "vertical" && "flex-col", variant === "horizontal" && "flex-row", isDisabled && "opacity-50"),
|
|
113
|
+
children: [/* @__PURE__ */ jsx(IconSlot, {
|
|
114
|
+
icon: CircleAlert,
|
|
115
|
+
className: "text-surface-warning-base"
|
|
116
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
117
|
+
className: clsx("flex flex-col gap-file-upload-content-gap-text-to-text", variant === "vertical" && "max-w-full items-center", variant === "horizontal" && "max-w-[calc(100%_-_32px)]"),
|
|
124
118
|
children: [/* @__PURE__ */ jsx(Typography, {
|
|
125
|
-
|
|
126
|
-
size: "label-1",
|
|
119
|
+
size: "large",
|
|
127
120
|
as: "span",
|
|
128
|
-
className: clsx("self-stretch truncate text-
|
|
121
|
+
className: clsx("self-stretch truncate text-surface-default-card-foreground font-bold", variant === "vertical" && "text-center"),
|
|
129
122
|
children: state.file?.name ?? state.displayName ?? ""
|
|
130
123
|
}), /* @__PURE__ */ jsx(Typography, {
|
|
131
|
-
|
|
132
|
-
size: singleFile ? "label-2" : "label-3",
|
|
124
|
+
size: singleFile ? "small" : "small",
|
|
133
125
|
as: "span",
|
|
134
|
-
className: clsx("text-
|
|
126
|
+
className: clsx("text-surface-default-foreground", variant === "vertical" && "text-center"),
|
|
135
127
|
children: state.error?.serverMessage ?? state.error?.message
|
|
136
128
|
})]
|
|
137
129
|
})]
|
|
138
130
|
}), /* @__PURE__ */ jsx("div", {
|
|
139
|
-
className: clsx("flex flex-none items-center justify-end",
|
|
140
|
-
"flex-col": variant === "vertical" && as === "button",
|
|
141
|
-
"gap-file-upload-content-gap-text-to-text": as === "link",
|
|
142
|
-
"gap-file-upload-content-gap-content-to-button": as === "button"
|
|
143
|
-
}),
|
|
131
|
+
className: clsx("flex flex-none items-center justify-end", variant === "vertical" && as === "button" && "flex-col", as === "link" && "gap-file-upload-content-gap-text-to-text", as === "button" && "gap-file-upload-content-gap-content-to-button"),
|
|
144
132
|
children: as === "link" ? /* @__PURE__ */ jsxs(Fragment$1, { children: [fileTriggerProps && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx($b325d7bd7e74496a$export$6fb4a10d2c950550, {
|
|
145
133
|
...fileTriggerProps,
|
|
146
134
|
children: /* @__PURE__ */ jsx(TextButton, {
|
|
147
|
-
className: "text-interactive-
|
|
135
|
+
className: "text-interactive-primary-background",
|
|
148
136
|
children: browseText ?? ""
|
|
149
137
|
})
|
|
150
138
|
}), /* @__PURE__ */ jsx(Typography, {
|
|
151
|
-
|
|
152
|
-
size: "label-2",
|
|
139
|
+
size: "small",
|
|
153
140
|
as: "span",
|
|
154
|
-
className: "text-
|
|
141
|
+
className: "text-surface-default-foreground",
|
|
155
142
|
children: t(($) => $.ui.fileUpload.or)
|
|
156
143
|
})] }), removeWithIcon ? /* @__PURE__ */ jsx(InlineIconButton, {
|
|
157
144
|
label: "Cancel",
|
|
@@ -161,7 +148,7 @@ const FileUploadContentError = ({ variant, as, isDisabled, state, browseText, fi
|
|
|
161
148
|
},
|
|
162
149
|
icon: X
|
|
163
150
|
}) : /* @__PURE__ */ jsx(TextButton, {
|
|
164
|
-
className: "text-interactive-
|
|
151
|
+
className: "text-interactive-primary-background lowercase",
|
|
165
152
|
onPress: () => {
|
|
166
153
|
onRemove(state.id ?? "");
|
|
167
154
|
},
|
|
@@ -201,59 +188,42 @@ const FileUploadContentError = ({ variant, as, isDisabled, state, browseText, fi
|
|
|
201
188
|
//#region src/components/inputs/File/shared/FileUploadContentFilled.tsx
|
|
202
189
|
const FileUploadContentFilled = ({ variant, as, isDisabled, state, browseText, fileTriggerProps, removeWithIcon = false, singleFile, onRemove, browseButtonProps }) => {
|
|
203
190
|
const { t } = useTranslation("ui");
|
|
204
|
-
const { size: browseButtonSize = "
|
|
191
|
+
const { size: browseButtonSize = "sm", variant: browseButtonVariant = "outlined", width: browseButtonWidth = "hug", ...browseButtonRestProps } = browseButtonProps ?? {};
|
|
205
192
|
return /* @__PURE__ */ jsx("div", {
|
|
206
193
|
className: clsx("flex w-full flex-fill flex-col items-start"),
|
|
207
194
|
children: /* @__PURE__ */ jsxs("div", {
|
|
208
|
-
className: clsx("flex w-full items-center",
|
|
209
|
-
"flex-row gap-file-upload-content-gap-left-to-right-content": variant === "horizontal",
|
|
210
|
-
"flex-col": variant === "vertical",
|
|
211
|
-
"gap-file-upload-content-gap-content-to-button": variant === "vertical" && as === "button",
|
|
212
|
-
"gap-file-upload-content-gap-text-to-text": variant === "vertical" && as === "link"
|
|
213
|
-
}),
|
|
195
|
+
className: clsx("flex w-full items-center", variant === "horizontal" && "flex-row gap-file-upload-content-gap-left-to-right-content", variant === "vertical" && "flex-col", variant === "vertical" && as === "button" && "gap-file-upload-content-gap-content-to-button", variant === "vertical" && as === "link" && "gap-file-upload-content-gap-text-to-text"),
|
|
214
196
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
215
|
-
className: clsx("flex min-w-0 max-w-full grow items-center gap-file-upload-content-gap-icon-to-content",
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
"
|
|
219
|
-
}),
|
|
220
|
-
|
|
221
|
-
className: clsx("flex flex-col gap-file-upload-content-gap-text-to-text", {
|
|
222
|
-
"max-w-full items-center": variant === "vertical",
|
|
223
|
-
"max-w-[calc(100%-32px)]": variant === "horizontal"
|
|
224
|
-
}),
|
|
197
|
+
className: clsx("flex min-w-0 max-w-full grow items-center gap-file-upload-content-gap-icon-to-content", variant === "vertical" && "flex-col", variant === "horizontal" && "flex-row", isDisabled && "opacity-50"),
|
|
198
|
+
children: [/* @__PURE__ */ jsx(IconSlot, {
|
|
199
|
+
icon: CircleCheckBig,
|
|
200
|
+
className: "text-surface-default-card-foreground"
|
|
201
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
202
|
+
className: clsx("flex flex-col gap-file-upload-content-gap-text-to-text", variant === "vertical" && "max-w-full items-center", variant === "horizontal" && "max-w-[calc(100%-32px)]"),
|
|
225
203
|
children: [/* @__PURE__ */ jsx(Typography, {
|
|
226
|
-
|
|
227
|
-
size: "label-1",
|
|
204
|
+
size: "large",
|
|
228
205
|
as: "span",
|
|
229
|
-
className: "self-stretch truncate text-center text-
|
|
206
|
+
className: "self-stretch truncate text-center text-surface-default-card-foreground font-bold",
|
|
230
207
|
children: state.file?.name ?? state.displayName ?? ""
|
|
231
208
|
}), /* @__PURE__ */ jsx(Typography, {
|
|
232
|
-
|
|
233
|
-
size: singleFile ? "label-2" : "label-3",
|
|
209
|
+
size: singleFile ? "small" : "small",
|
|
234
210
|
as: "span",
|
|
235
|
-
className: "text-
|
|
211
|
+
className: "text-surface-default-foreground",
|
|
236
212
|
children: FileUtils.getFileDisplaySize(state)
|
|
237
213
|
})]
|
|
238
214
|
})]
|
|
239
215
|
}), /* @__PURE__ */ jsx("div", {
|
|
240
|
-
className: clsx("flex flex-none items-center justify-end",
|
|
241
|
-
"flex-col": variant === "vertical" && as === "button",
|
|
242
|
-
"gap-file-upload-content-gap-text-to-text": as === "link" && variant === "vertical",
|
|
243
|
-
"gap-file-upload-content-gap-content-to-button": as === "button" && variant === "vertical",
|
|
244
|
-
"gap-file-upload-content-gap-button-to-button": variant === "horizontal"
|
|
245
|
-
}),
|
|
216
|
+
className: clsx("flex flex-none items-center justify-end", variant === "vertical" && as === "button" && "flex-col", as === "link" && variant === "vertical" && "gap-file-upload-content-gap-text-to-text", as === "button" && variant === "vertical" && "gap-file-upload-content-gap-content-to-button", variant === "horizontal" && "gap-file-upload-content-gap-button-to-button"),
|
|
246
217
|
children: as === "link" ? /* @__PURE__ */ jsxs(Fragment$1, { children: [fileTriggerProps && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx($b325d7bd7e74496a$export$6fb4a10d2c950550, {
|
|
247
218
|
...fileTriggerProps,
|
|
248
219
|
children: /* @__PURE__ */ jsx(TextButton, {
|
|
249
|
-
className: clsx("text-interactive-
|
|
220
|
+
className: clsx("text-interactive-primary-background", variant === "vertical" && "[&>span>span]:font-medium!"),
|
|
250
221
|
children: browseText ?? ""
|
|
251
222
|
})
|
|
252
223
|
}), variant === "vertical" && /* @__PURE__ */ jsx(Typography, {
|
|
253
|
-
|
|
254
|
-
size: "label-2",
|
|
224
|
+
size: "small",
|
|
255
225
|
as: "span",
|
|
256
|
-
className: "text-
|
|
226
|
+
className: "text-surface-default-foreground",
|
|
257
227
|
children: t(($) => $.ui.fileUpload.or)
|
|
258
228
|
})] }), removeWithIcon ? /* @__PURE__ */ jsx(InlineIconButton, {
|
|
259
229
|
label: "Cancel",
|
|
@@ -263,7 +233,7 @@ const FileUploadContentFilled = ({ variant, as, isDisabled, state, browseText, f
|
|
|
263
233
|
},
|
|
264
234
|
icon: X
|
|
265
235
|
}) : /* @__PURE__ */ jsx(TextButton, {
|
|
266
|
-
className: clsx(variant === "vertical" && "text-interactive-
|
|
236
|
+
className: clsx(variant === "vertical" && "text-interactive-primary-background lowercase [&>span>span]:font-medium!"),
|
|
267
237
|
color: variant === "horizontal" ? "secondary" : "primary",
|
|
268
238
|
onPress: () => {
|
|
269
239
|
onRemove(state.id ?? "");
|
|
@@ -306,48 +276,32 @@ const FileUploadContentFilled = ({ variant, as, isDisabled, state, browseText, f
|
|
|
306
276
|
//#region src/components/inputs/File/shared/FileUploadContentLoading.tsx
|
|
307
277
|
const FileUploadContentLoading = ({ index, variant, as, state, isDisabled, singleFile, onCancel, cancelButtonProps }) => {
|
|
308
278
|
const { t } = useTranslation("ui");
|
|
309
|
-
const { color: cancelButtonColor = "secondary", size: cancelButtonSize = "
|
|
279
|
+
const { color: cancelButtonColor = "secondary", size: cancelButtonSize = "sm", variant: cancelButtonVariant = "outlined", width: cancelButtonWidth = "hug", ...cancelButtonRestProps } = cancelButtonProps ?? {};
|
|
310
280
|
return /* @__PURE__ */ jsxs("div", {
|
|
311
|
-
className: clsx("flex w-full flex-col items-center",
|
|
312
|
-
"flex-col": variant === "vertical",
|
|
313
|
-
"flex-row": variant === "horizontal",
|
|
314
|
-
"gap-file-upload-content-gap-content-to-button": as === "button"
|
|
315
|
-
}),
|
|
281
|
+
className: clsx("flex w-full flex-col items-center", variant === "vertical" && "flex-col", variant === "horizontal" && "flex-row", as === "button" && "gap-file-upload-content-gap-content-to-button"),
|
|
316
282
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
317
|
-
className: clsx("flex w-full items-center justify-between",
|
|
318
|
-
"flex-col gap-file-upload-content-gap-text-to-progress": variant === "vertical",
|
|
319
|
-
"flex-row gap-file-upload-content-gap-left-to-right-content": variant === "horizontal",
|
|
320
|
-
"opacity-50": isDisabled
|
|
321
|
-
}),
|
|
283
|
+
className: clsx("flex w-full items-center justify-between", variant === "vertical" && "flex-col gap-file-upload-content-gap-text-to-progress", variant === "horizontal" && "flex-row gap-file-upload-content-gap-left-to-right-content", isDisabled && "opacity-50"),
|
|
322
284
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
323
|
-
className: clsx("flex items-center gap-file-upload-content-gap-icon-to-content",
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
className: clsx("flex flex-col",
|
|
329
|
-
"max-w-full gap-file-upload-content-gap-icon-to-content text-center": variant === "vertical",
|
|
330
|
-
"max-w-[calc(100%-32px)] gap-file-upload-content-gap-text-to-text": variant === "horizontal"
|
|
331
|
-
}),
|
|
285
|
+
className: clsx("flex items-center gap-file-upload-content-gap-icon-to-content", variant === "vertical" && "w-full flex-col", variant === "horizontal" && "w-1/2"),
|
|
286
|
+
children: [/* @__PURE__ */ jsx(IconSlot, {
|
|
287
|
+
icon: File,
|
|
288
|
+
className: "text-surface-default-card-foreground"
|
|
289
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
290
|
+
className: clsx("flex flex-col", variant === "vertical" && "max-w-full gap-file-upload-content-gap-icon-to-content text-center", variant === "horizontal" && "max-w-[calc(100%-32px)] gap-file-upload-content-gap-text-to-text"),
|
|
332
291
|
children: [/* @__PURE__ */ jsx(Typography, {
|
|
333
|
-
|
|
334
|
-
size: "label-1",
|
|
292
|
+
size: "large",
|
|
335
293
|
as: "span",
|
|
336
|
-
className: "self-stretch truncate text-center text-
|
|
294
|
+
className: "self-stretch truncate text-center text-surface-default-card-foreground font-bold",
|
|
337
295
|
children: state.file?.name ?? state.displayName ?? ""
|
|
338
296
|
}), /* @__PURE__ */ jsx(Typography, {
|
|
339
|
-
|
|
340
|
-
size: singleFile ? "label-2" : "label-3",
|
|
297
|
+
size: singleFile ? "small" : "small",
|
|
341
298
|
as: "span",
|
|
342
|
-
className: "text-
|
|
299
|
+
className: "text-surface-default-foreground",
|
|
343
300
|
children: FileUtils.getFileDisplaySize(state)
|
|
344
301
|
})]
|
|
345
302
|
})]
|
|
346
303
|
}), /* @__PURE__ */ jsxs("div", {
|
|
347
|
-
className: clsx("flex items-center gap-1",
|
|
348
|
-
"w-1/2": variant === "horizontal",
|
|
349
|
-
"w-full": variant === "vertical"
|
|
350
|
-
}),
|
|
304
|
+
className: clsx("flex items-center gap-1", variant === "horizontal" && "w-1/2", variant === "vertical" && "w-full"),
|
|
351
305
|
children: [/* @__PURE__ */ jsx(Progress, { progress: state.progress }), (as === "link" || variant === "horizontal") && /* @__PURE__ */ jsx(InlineIconButton, {
|
|
352
306
|
label: "Cancel",
|
|
353
307
|
color: "secondary",
|
|
@@ -416,7 +370,7 @@ const FileCardComponent = ({ index, as, state, onRemove, isDisabled, browseButto
|
|
|
416
370
|
onRemove
|
|
417
371
|
]);
|
|
418
372
|
return /* @__PURE__ */ jsx("div", {
|
|
419
|
-
className: clsx("flex items-center self-stretch", "bg-
|
|
373
|
+
className: clsx("flex items-center self-stretch", "bg-surface-default-card", "px-file-upload-file-card-side-default", "py-4", "rounded-file-upload-file-card-rounding-default border border-border-default-subtle border-solid"),
|
|
420
374
|
children: content
|
|
421
375
|
});
|
|
422
376
|
};
|
|
@@ -440,43 +394,31 @@ const FileCardList = memo(({ uploadState, as, isDisabled, browseButtonProps, can
|
|
|
440
394
|
});
|
|
441
395
|
//#endregion
|
|
442
396
|
//#region src/components/inputs/File/shared/FileUploadContentEmpty.tsx
|
|
443
|
-
const FileUploadContentEmpty = ({ variant, as, isDisabled, title, browseText, uploadText,
|
|
444
|
-
const { size: browseButtonSize = "
|
|
397
|
+
const FileUploadContentEmpty = ({ variant, as, isDisabled, title, browseText, uploadText, hideButton = false, className, browseButtonProps }) => {
|
|
398
|
+
const { size: browseButtonSize = "sm", variant: browseButtonVariant = "outlined", width: browseButtonWidth = "hug", ...browseButtonRestProps } = browseButtonProps ?? {};
|
|
445
399
|
return /* @__PURE__ */ jsxs("div", {
|
|
446
|
-
className: clsx("flex w-full items-center gap-file-upload-content-gap-text-to-text", className,
|
|
447
|
-
"flex-col": variant === "vertical",
|
|
448
|
-
"min-h-11 flex-row justify-between": variant === "horizontal"
|
|
449
|
-
}),
|
|
400
|
+
className: clsx("flex w-full items-center gap-file-upload-content-gap-text-to-text", className, variant === "vertical" && "flex-col", variant === "horizontal" && "min-h-11 flex-row justify-between"),
|
|
450
401
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
451
|
-
className: clsx("flex items-center gap-file-upload-content-gap-icon-to-content",
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
"
|
|
455
|
-
}),
|
|
456
|
-
|
|
457
|
-
variant: "prominent-1",
|
|
458
|
-
size: "label-1",
|
|
402
|
+
className: clsx("flex items-center gap-file-upload-content-gap-icon-to-content", variant === "vertical" && "flex-col", variant === "horizontal" && "flex-row", isDisabled && "opacity-50"),
|
|
403
|
+
children: [/* @__PURE__ */ jsx(IconSlot, {
|
|
404
|
+
icon: Upload,
|
|
405
|
+
className: "text-surface-default-card-foreground"
|
|
406
|
+
}), /* @__PURE__ */ jsx(Typography, {
|
|
407
|
+
size: "lead",
|
|
459
408
|
as: "span",
|
|
460
|
-
className: clsx("self-stretch text-
|
|
409
|
+
className: clsx("self-stretch text-surface-default-card-foreground font-normal", variant === "vertical" && "text-center"),
|
|
461
410
|
children: title
|
|
462
411
|
})]
|
|
463
412
|
}), /* @__PURE__ */ jsxs("div", {
|
|
464
|
-
className: clsx("flex items-center justify-center",
|
|
465
|
-
"flex-col": variant === "vertical" && as === "button",
|
|
466
|
-
"gap-file-upload-content-gap-text-to-text": as === "link",
|
|
467
|
-
"gap-file-upload-content-gap-content-to-button": as === "button"
|
|
468
|
-
}),
|
|
413
|
+
className: clsx("flex items-center justify-center", variant === "vertical" && as === "button" && "flex-col", as === "link" && "gap-file-upload-content-gap-text-to-text", as === "button" && "gap-file-upload-content-gap-content-to-button"),
|
|
469
414
|
children: [/* @__PURE__ */ jsx(Typography, {
|
|
470
|
-
|
|
471
|
-
size: singleFile ? "label-2" : "label-3",
|
|
415
|
+
size: "large",
|
|
472
416
|
as: "span",
|
|
473
|
-
className: clsx("text-
|
|
474
|
-
"text-center": variant === "vertical",
|
|
475
|
-
"opacity-50": isDisabled
|
|
476
|
-
}),
|
|
417
|
+
className: clsx("text-surface-default-foreground font-normal", variant === "vertical" && "text-center", isDisabled && "opacity-50"),
|
|
477
418
|
children: uploadText
|
|
478
419
|
}), !hideButton && browseText && (as === "link" ? /* @__PURE__ */ jsx(TextButton, {
|
|
479
|
-
className: "text-interactive-
|
|
420
|
+
className: "text-interactive-primary-background lowercase",
|
|
421
|
+
isDisabled,
|
|
480
422
|
children: browseText
|
|
481
423
|
}) : /* @__PURE__ */ jsx(Button, {
|
|
482
424
|
variant: browseButtonVariant,
|
|
@@ -550,46 +492,6 @@ const FileUploadContent = ({ variant, as, isDisabled, browseText, uploadText, em
|
|
|
550
492
|
});
|
|
551
493
|
};
|
|
552
494
|
//#endregion
|
|
553
|
-
//#region src/components/inputs/File/shared/fileUpload.cva.ts
|
|
554
|
-
const fileUploadDropZoneDefinition = UIOverrides.defineConfig({
|
|
555
|
-
base: ["relative w-full rounded-file-upload-container-rounding-default"],
|
|
556
|
-
config: {
|
|
557
|
-
variants: {
|
|
558
|
-
variant: {
|
|
559
|
-
vertical: ["flex-col justify-center"],
|
|
560
|
-
horizontal: ["flex-row justify-between"]
|
|
561
|
-
},
|
|
562
|
-
isContainer: {
|
|
563
|
-
true: [
|
|
564
|
-
"data-[drop-target]:before:content-['']",
|
|
565
|
-
"data-[drop-target]:before:absolute",
|
|
566
|
-
"data-[drop-target]:before:z-drop-target",
|
|
567
|
-
"data-[drop-target]:before:width-full",
|
|
568
|
-
"data-[drop-target]:before:height-full",
|
|
569
|
-
"data-[drop-target]:before:top-0",
|
|
570
|
-
"data-[drop-target]:before:left-0",
|
|
571
|
-
"data-[drop-target]:border data-[drop-target]:border-dashed",
|
|
572
|
-
"data-[drop-target]:border-elevation-outline-default-2",
|
|
573
|
-
"data-[drop-target]:before:pointer-events-none data-[drop-target]:before:inset-0",
|
|
574
|
-
"data-[drop-target]:before:bg-elevation-fill-default-2"
|
|
575
|
-
],
|
|
576
|
-
false: [
|
|
577
|
-
"flex items-center",
|
|
578
|
-
"py-file-upload-container-height-top-bottom",
|
|
579
|
-
"px-file-upload-container-side-default",
|
|
580
|
-
"gap-gap-file-upload-content-gap-icon-to-content",
|
|
581
|
-
"border border-input-outlined-outline-idle border-dashed bg-input-outlined-idle",
|
|
582
|
-
"hover:border-elevation-outline-default-2 hover:bg-elevation-fill-default-2",
|
|
583
|
-
"invalid:border invalid:border-input-outlined-outline-error",
|
|
584
|
-
"data-[drop-target]:border-elevation-outline-default-2 data-[drop-target]:bg-elevation-fill-default-2",
|
|
585
|
-
"data-[has-files]:border-solid"
|
|
586
|
-
]
|
|
587
|
-
}
|
|
588
|
-
},
|
|
589
|
-
defaultVariants: { variant: "vertical" }
|
|
590
|
-
}
|
|
591
|
-
});
|
|
592
|
-
//#endregion
|
|
593
495
|
//#region src/components/inputs/File/FileUpload.tsx
|
|
594
496
|
const FileUploadBase = (props) => {
|
|
595
497
|
const { t } = useTranslation("ui");
|
|
@@ -735,6 +637,7 @@ const FileUploadBase = (props) => {
|
|
|
735
637
|
"data-invalid": !!error || void 0,
|
|
736
638
|
"data-multiple": allowsMultiple || void 0,
|
|
737
639
|
"data-has-files": uploadState.length > 0 || void 0,
|
|
640
|
+
"data-filled": !allowsMultiple && uploadState[0]?.state === "uploaded" || void 0,
|
|
738
641
|
isDisabled,
|
|
739
642
|
onDrop: handleDrop,
|
|
740
643
|
className: fileUploadDropZoneCva({
|
|
@@ -813,4 +716,4 @@ const FileUploadComponent = (props) => {
|
|
|
813
716
|
};
|
|
814
717
|
const FileUpload = memo(FileUploadComponent);
|
|
815
718
|
//#endregion
|
|
816
|
-
export {
|
|
719
|
+
export { FileUpload as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as FileUploadContainerProps } from "./fileUpload.types-
|
|
1
|
+
import { i as FileUploadContainerProps } from "./fileUpload.types-rIGu4MgY.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 { c as UIForm, l as UseFormProps, o as FormSubmitErrorHandler, s as FormSubmitHandler } from "./form.binding-DVJ5F0JE.js";
|
|
2
|
-
import { c as InputComponentProps, i as DefaultComponentType, r as AllowedComponentType, u as InputDefBaseProps } from "./dynamicInputs-
|
|
2
|
+
import { c as InputComponentProps, i as DefaultComponentType, r as AllowedComponentType, u as InputDefBaseProps } from "./dynamicInputs-DdcsSoYu.js";
|
|
3
3
|
import { DependencyList, ReactNode } from "react";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/hooks/useAutosave.d.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
2
3
|
import { n as $43a3b93638fe5db9$export$b04be29aa201d4f5 } from "./Label-B2-B-uFY.js";
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as Typography } from "./Typography-AcUd9df8.js";
|
|
4
|
+
import { t as typographyDefinition } from "./typography.cva-iD15k56p.js";
|
|
5
|
+
import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
6
6
|
import { t as compoundMapper } from "./compoundMapper-Di3SKZnS.js";
|
|
7
|
-
import { t as FormFieldError } from "./FormFieldError-
|
|
7
|
+
import { t as FormFieldError } from "./FormFieldError-DeOHHLo2.js";
|
|
8
8
|
import { Suspense, lazy } from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
//#region src/components/inputs/FormField/formFieldHeader.cva.ts
|
|
@@ -24,20 +24,20 @@ const labelDefinition = UIOverrides.defineConfig({
|
|
|
24
24
|
base: [""],
|
|
25
25
|
config: {
|
|
26
26
|
variants: { as: {
|
|
27
|
-
default: ["flex items-start gap-1 text-
|
|
28
|
-
filter: ["text-
|
|
29
|
-
inline: ["flex items-start gap-1 text-text-default-
|
|
27
|
+
default: ["flex items-start gap-1 text-surface-default-card-foreground input-disabled:text-state-surface-default-card-foreground/disabled"],
|
|
28
|
+
filter: ["text-surface-default-foreground input-disabled:text-state-surface-default-foreground/disabled"],
|
|
29
|
+
inline: ["flex items-start gap-1 text-surface-default-card-foreground input-disabled:text-state-surface-default-card-foreground/disabled"],
|
|
30
30
|
floating: [
|
|
31
|
-
"pointer-events-none",
|
|
31
|
+
"pointer-events-none font-normal!",
|
|
32
32
|
"absolute transition-all duration-75",
|
|
33
33
|
"top-1/2 -translate-y-1/2",
|
|
34
|
-
"text-
|
|
35
|
-
"input-disabled:text-
|
|
34
|
+
"text-surface-default-card-foreground",
|
|
35
|
+
"input-disabled:text-state-surface-default-card-foreground/disabled!",
|
|
36
36
|
"input-filled:top-[calc(var(--spacing-floating-label-input-height-filled)+var(--spacing-floating-label-input-offset-top))]",
|
|
37
37
|
"input-filled:translate-y-0",
|
|
38
|
-
"input-filled:text-
|
|
39
|
-
"input-filled:font-
|
|
40
|
-
"input-filled:text-
|
|
38
|
+
"input-filled:text-surface-default-card-foreground",
|
|
39
|
+
"input-filled:font-bold!",
|
|
40
|
+
"input-filled:text-small!",
|
|
41
41
|
"group-data-[text-area]/text-area:top-floating-label-input-height-empty group-data-[text-area]/text-area:translate-y-0",
|
|
42
42
|
"group-has-[textarea:not(:placeholder-shown)]/text-area:hidden",
|
|
43
43
|
"group-data-[text-editor]/text-editor:top-floating-label-input-height-empty group-data-[text-editor]/text-editor:left-input-side-default group-data-[text-editor]/text-editor:translate-y-0",
|
|
@@ -52,40 +52,39 @@ const labelTypography = compoundMapper({
|
|
|
52
52
|
{
|
|
53
53
|
as: "default",
|
|
54
54
|
value: {
|
|
55
|
-
size: "
|
|
56
|
-
sizeMobile: "
|
|
57
|
-
|
|
55
|
+
size: "small",
|
|
56
|
+
sizeMobile: "small",
|
|
57
|
+
className: "font-bold"
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
as: "filter",
|
|
62
62
|
value: {
|
|
63
|
-
size: "
|
|
64
|
-
sizeMobile: "
|
|
65
|
-
|
|
63
|
+
size: "large",
|
|
64
|
+
sizeMobile: "large",
|
|
65
|
+
className: "font-normal"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
as: "inline",
|
|
70
70
|
value: {
|
|
71
|
-
size: "
|
|
72
|
-
sizeMobile: "
|
|
73
|
-
|
|
71
|
+
size: "small",
|
|
72
|
+
sizeMobile: "small",
|
|
73
|
+
className: "font-bold"
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
as: "floating",
|
|
78
78
|
value: {
|
|
79
|
-
size: "
|
|
80
|
-
sizeMobile: "
|
|
81
|
-
variant: "default"
|
|
79
|
+
size: "large",
|
|
80
|
+
sizeMobile: "large"
|
|
82
81
|
}
|
|
83
82
|
}
|
|
84
83
|
],
|
|
85
84
|
default: {
|
|
86
|
-
size: "
|
|
87
|
-
sizeMobile: "
|
|
88
|
-
|
|
85
|
+
size: "small",
|
|
86
|
+
sizeMobile: "small",
|
|
87
|
+
className: "font-bold"
|
|
89
88
|
},
|
|
90
89
|
defaultVariants: { as: "default" }
|
|
91
90
|
});
|
|
@@ -99,20 +98,20 @@ const FormFieldLabel = ({ ref, as, label, isRequired, isDisabled, labelProps, cl
|
|
|
99
98
|
...labelProps,
|
|
100
99
|
ref,
|
|
101
100
|
className: clsx(typographyCva({
|
|
102
|
-
size: "
|
|
103
|
-
sizeMobile: "
|
|
104
|
-
|
|
101
|
+
size: "small",
|
|
102
|
+
sizeMobile: "small",
|
|
103
|
+
className: "font-bold",
|
|
105
104
|
...labelTypographyMap({ as })
|
|
106
105
|
}), labelBaseCva({ as }), className, labelProps?.className),
|
|
107
106
|
children: [label, isRequired && /* @__PURE__ */ jsx("span", {
|
|
108
|
-
className: clsx(!isDisabled && "text-
|
|
107
|
+
className: clsx(!isDisabled && "text-surface-destructive-base"),
|
|
109
108
|
children: "*"
|
|
110
109
|
})]
|
|
111
110
|
});
|
|
112
111
|
};
|
|
113
112
|
//#endregion
|
|
114
113
|
//#region src/components/inputs/FormField/FormFieldHeader.tsx
|
|
115
|
-
const FormFieldHeaderTooltip = lazy(() => import("./FormFieldHeaderTooltip-
|
|
114
|
+
const FormFieldHeaderTooltip = lazy(() => import("./FormFieldHeaderTooltip-BV2Ju4oB.js"));
|
|
116
115
|
const FormFieldHeader = ({ label, tooltipText, helperText, isRequired, rightContent, isHeaderHidden, isDisabled, className, labelProps }) => {
|
|
117
116
|
const formFieldHeaderCva = UIOverrides.useCva("formField.headerCva", formFieldHeaderDefinition);
|
|
118
117
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -127,7 +126,10 @@ const FormFieldHeader = ({ label, tooltipText, helperText, isRequired, rightCont
|
|
|
127
126
|
isDisabled,
|
|
128
127
|
labelProps
|
|
129
128
|
}), tooltipText ? /* @__PURE__ */ jsx(Suspense, {
|
|
130
|
-
fallback: /* @__PURE__ */ jsx("span", {
|
|
129
|
+
fallback: /* @__PURE__ */ jsx("span", {
|
|
130
|
+
className: "size-6",
|
|
131
|
+
"data-form-field-tooltip-loading": ""
|
|
132
|
+
}),
|
|
131
133
|
children: /* @__PURE__ */ jsx(FormFieldHeaderTooltip, {
|
|
132
134
|
text: tooltipText,
|
|
133
135
|
isDisabled
|
|
@@ -136,8 +138,8 @@ const FormFieldHeader = ({ label, tooltipText, helperText, isRequired, rightCont
|
|
|
136
138
|
}), rightContent]
|
|
137
139
|
}), helperText && /* @__PURE__ */ jsx(Typography, {
|
|
138
140
|
slot: "description",
|
|
139
|
-
size: "
|
|
140
|
-
className: "text-
|
|
141
|
+
size: "small",
|
|
142
|
+
className: "text-surface-default-foreground",
|
|
141
143
|
children: helperText
|
|
142
144
|
})]
|
|
143
145
|
});
|
|
@@ -145,10 +147,10 @@ const FormFieldHeader = ({ label, tooltipText, helperText, isRequired, rightCont
|
|
|
145
147
|
//#endregion
|
|
146
148
|
//#region src/components/inputs/FormField/formFieldHelper.cva.ts
|
|
147
149
|
const formFieldHelperDefinition = UIOverrides.defineConfig({
|
|
148
|
-
base: ["text-
|
|
150
|
+
base: ["text-small text-surface-default-foreground"],
|
|
149
151
|
config: {
|
|
150
152
|
variants: { visible: {
|
|
151
|
-
true: "mt-1
|
|
153
|
+
true: "mt-1.5",
|
|
152
154
|
false: "sr-only"
|
|
153
155
|
} },
|
|
154
156
|
defaultVariants: { visible: false }
|
|
@@ -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-CQPV5gW7.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,12 +1,12 @@
|
|
|
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-BTCH9y5a.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/inputs/FormField/formFieldError.cva.ts
|
|
5
5
|
const formFieldErrorDefinition = UIOverrides.defineConfig({
|
|
6
|
-
base: ["text-
|
|
6
|
+
base: ["text-small text-surface-destructive-base"],
|
|
7
7
|
config: {
|
|
8
8
|
variants: { visible: {
|
|
9
|
-
true: "mt-1
|
|
9
|
+
true: "mt-1.5",
|
|
10
10
|
false: "sr-only"
|
|
11
11
|
} },
|
|
12
12
|
defaultVariants: { visible: false }
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { t as Info } from "./info-iUmX3uDk.js";
|
|
2
|
+
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
3
|
+
import { t as IconSlot } from "./IconSlot-DSK7qNxc.js";
|
|
4
|
+
import { t as Tooltip } from "./Tooltip-CpG1nz7Y.js";
|
|
5
|
+
import { t as $a3be900807531178$re_export$Focusable } from "./exports-BNrTn8Tj.js";
|
|
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-state-surface-default-popover-foreground/disabled" : "text-surface-default-popover-foreground hover:text-state-surface-default-popover-foreground/hover"),
|
|
13
|
+
tabIndex: 0
|
|
14
|
+
}) })
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { FormFieldHeaderTooltip as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as LinkNavigationProps } from "./Link-
|
|
2
|
-
import { n as ButtonAppearanceProps } from "./Button-
|
|
1
|
+
import { n as LinkNavigationProps } from "./Link-Ow9H7kNv.js";
|
|
2
|
+
import { n as ButtonAppearanceProps } from "./Button-D-4qb0IR.js";
|
|
3
3
|
import { FC, ReactElement, SVGProps } from "react";
|
|
4
4
|
import { ButtonProps } from "react-aria-components";
|
|
5
5
|
//#region src/components/buttons/IconButton/IconButton.d.ts
|