@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
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { t as createLucideIcon } from "./createLucideIcon-LcezOE4z.js";
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
3
|
+
//#region ../../node_modules/.bun/lucide-react@1.43.0+83d5fd7b249dbeef/node_modules/lucide-react/dist/esm/icons/search.mjs
|
|
4
|
+
/**
|
|
5
|
+
* @license lucide-react v1.43.0 - ISC
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the ISC license.
|
|
8
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
const __iconData = {
|
|
11
|
+
name: "search",
|
|
12
|
+
size: 24,
|
|
13
|
+
node: [["path", {
|
|
14
|
+
d: "m21 21-4.34-4.34",
|
|
15
|
+
key: "14j7rj"
|
|
16
|
+
}], ["circle", {
|
|
17
|
+
cx: "11",
|
|
18
|
+
cy: "11",
|
|
19
|
+
r: "8",
|
|
20
|
+
key: "4ej97u"
|
|
21
|
+
}]]
|
|
22
|
+
};
|
|
23
|
+
__iconData.node;
|
|
24
|
+
const Search = createLucideIcon(__iconData);
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/components/inputs/Selection/shared/selectInput.cva.ts
|
|
27
|
+
const selectInputTagsContentWrapperDefinition = UIOverrides.defineConfig({
|
|
28
|
+
base: ["flex flex-1 flex-wrap gap-input-gap-input-text-to-elements truncate"],
|
|
29
|
+
config: { variants: { isSearchable: { false: "pointer-events-none z-raised" } } }
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/components/inputs/Selection/shared/selectItem.cva.ts
|
|
33
|
+
const selectListBoxItemDefinition = UIOverrides.defineConfig({
|
|
34
|
+
base: [
|
|
35
|
+
"group flex cursor-pointer items-center gap-2 px-list-side-item-left py-list-height-item",
|
|
36
|
+
"border-b border-b-border-default-subtle outline-none bg-support-transparent-outline",
|
|
37
|
+
"font-body font-normal text-small",
|
|
38
|
+
"disabled:cursor-default",
|
|
39
|
+
"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-interactive-ring"
|
|
40
|
+
],
|
|
41
|
+
config: {
|
|
42
|
+
variants: {
|
|
43
|
+
isSingle: {
|
|
44
|
+
false: "",
|
|
45
|
+
true: "selected:bg-interactive-primary-background selected:text-interactive-primary-foreground selected:disabled:text-state-interactive-primary-foreground/disabled"
|
|
46
|
+
},
|
|
47
|
+
isNewItem: {
|
|
48
|
+
true: "text-interactive-primary-background disabled:text-state-interactive-primary-background/disabled",
|
|
49
|
+
false: "text-surface-default-foreground disabled:text-state-surface-default-foreground/disabled"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
compoundVariants: [{
|
|
53
|
+
isSingle: false,
|
|
54
|
+
className: ["not-disabled:not-focus-visible:hover:bg-state-interactive-subtle-secondary-background/hover not-disabled:not-focus-visible:hover:text-state-interactive-subtle-secondary-foreground/hover", "not-disabled:focus-visible:bg-state-interactive-subtle-secondary-background/focus not-disabled:focus-visible:text-state-interactive-subtle-secondary-foreground/focus"]
|
|
55
|
+
}, {
|
|
56
|
+
isSingle: true,
|
|
57
|
+
className: ["not-selected:not-disabled:not-focus-visible:hover:bg-state-interactive-subtle-secondary-background/hover not-selected:not-disabled:not-focus-visible:hover:text-state-interactive-subtle-secondary-foreground/hover", "not-selected:not-disabled:focus-visible:bg-state-interactive-subtle-secondary-background/focus not-selected:not-disabled:focus-visible:text-state-interactive-subtle-secondary-foreground/focus"]
|
|
58
|
+
}],
|
|
59
|
+
defaultVariants: {
|
|
60
|
+
isSingle: false,
|
|
61
|
+
isNewItem: false
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/components/inputs/Selection/shared/selectDesktop.cva.ts
|
|
67
|
+
const selectPopoverDefinition = UIOverrides.defineConfig({ base: ["my-4 outline-none"] });
|
|
68
|
+
//#endregion
|
|
69
|
+
export { Search as i, selectListBoxItemDefinition as n, selectInputTagsContentWrapperDefinition as r, selectPopoverDefinition as t };
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
3
|
+
import { c as $542a13ca2fa5b484$export$5b6b19405a83ff9d, n as $f2ff30fde7b014be$export$3ddf2d174ce01153 } from "./Dialog-CKLkS00H.js";
|
|
4
|
+
import { t as popoverAnimationClassName } from "./popoverAnimation-DEZSvKP8.js";
|
|
5
|
+
import { t as Typography } from "./Typography-LU4z2pR1.js";
|
|
5
6
|
import { BottomSheet } from "./components/bottom-sheet.js";
|
|
6
|
-
import { t as useBreakpoint } from "./useBreakpoint-
|
|
7
|
+
import { t as useBreakpoint } from "./useBreakpoint-DQoMN-BG.js";
|
|
7
8
|
import { TextButton } from "./components/text-button.js";
|
|
8
9
|
import { t as $a8ea2faf2ebe4d2f$re_export$isFirefox } from "./import-BE0r63d8.js";
|
|
9
10
|
import "./i18n-CX2EjhJI.js";
|
|
10
|
-
import { t as popoverDefinition } from "./popover.cva-
|
|
11
|
-
import { t as getStaticInputFocusTarget } from "./useStaticInputHandoff-
|
|
11
|
+
import { t as popoverDefinition } from "./popover.cva-Bhud1wnp.js";
|
|
12
|
+
import { t as getStaticInputFocusTarget } from "./useStaticInputHandoff-B7DEm75m.js";
|
|
12
13
|
import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-CzXkZCX8.js";
|
|
13
14
|
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10, n as $fd2148440a13ec26$export$75ee7c75d68f5b0e, r as $fd2148440a13ec26$export$aca958c65c314e6c, t as $1dfb119a85e764e5$export$cc77c4ff7e8673c5 } from "./NumberFormatter-CLDS_LRZ.js";
|
|
14
15
|
import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
|
|
15
16
|
import { useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
16
|
-
import { CalendarDate, DateFormatter, GregorianCalendar, Time, getLocalTimeZone, isEqualCalendar, now, toCalendar, toCalendarDate, toCalendarDateTime } from "@internationalized/date";
|
|
17
17
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
+
import { CalendarDate, DateFormatter, GregorianCalendar, Time, getLocalTimeZone, isEqualCalendar, now, toCalendar, toCalendarDate, toCalendarDateTime } from "@internationalized/date";
|
|
18
19
|
import { useDateSegment } from "react-aria";
|
|
19
20
|
import { useTranslation } from "react-i18next";
|
|
20
21
|
//#region ../../node_modules/.bun/@internationalized+string@3.2.10/node_modules/@internationalized/string/dist/private/LocalizedStringDictionary.mjs
|
|
@@ -1574,14 +1575,14 @@ const DateSegmentItem = ({ segment, state, segmentGroup, isDisabled, timePickerO
|
|
|
1574
1575
|
hidePlaceholder
|
|
1575
1576
|
});
|
|
1576
1577
|
};
|
|
1577
|
-
const DateSegmentItemView = ({ ref, segmentProps, role, type, text, placeholder, isPlaceholder,
|
|
1578
|
+
const DateSegmentItemView = ({ ref, segmentProps, role, type, text, placeholder, isPlaceholder, isInputEmpty, segmentGroup, timePickerOnly, hidePlaceholder }) => {
|
|
1578
1579
|
return /* @__PURE__ */ jsx("div", {
|
|
1579
1580
|
...segmentProps,
|
|
1580
1581
|
role: role ?? segmentProps?.role,
|
|
1581
1582
|
ref,
|
|
1582
1583
|
"data-static-segment-type": type === "literal" ? void 0 : type,
|
|
1583
1584
|
"data-static-segment-group": type === "literal" ? void 0 : segmentGroup,
|
|
1584
|
-
className: clsx("box-content rounded-input-rounding-default",
|
|
1585
|
+
className: clsx("box-content rounded-input-rounding-default", isPlaceholder || type === "literal" && isInputEmpty ? "text-surface-default-popover-foreground" : "text-inherit", "focus-within:outline-1 focus-within:outline-interactive-ring focus-within:outline-offset-1", type && (type === "hour" && !timePickerOnly || type === "dayPeriod") && "ml-1", hidePlaceholder && "opacity-0"),
|
|
1585
1586
|
children: /* @__PURE__ */ jsxs(Fragment$1, { children: [isPlaceholder && /* @__PURE__ */ jsx("span", {
|
|
1586
1587
|
"aria-hidden": "true",
|
|
1587
1588
|
className: "pointer-events-none",
|
|
@@ -1609,27 +1610,25 @@ const useFirefoxDateSegmentSelectionGuard = (containerRef) => {
|
|
|
1609
1610
|
//#region src/components/inputs/DateTime/shared/DateTimeDialog.tsx
|
|
1610
1611
|
const DateTimeDialog = ({ hideSidebar, children, footer, sidebar, label, isOpen, triggerRef, dialogProps, bottomSheetProps, onOpenChange }) => {
|
|
1611
1612
|
const popoverCva = UIOverrides.useCva("popover.cva", popoverDefinition);
|
|
1612
|
-
if (useBreakpoint("md")) {
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
})]
|
|
1629
|
-
})
|
|
1613
|
+
if (useBreakpoint("md")) return /* @__PURE__ */ jsx($542a13ca2fa5b484$export$5b6b19405a83ff9d, {
|
|
1614
|
+
triggerRef,
|
|
1615
|
+
isOpen,
|
|
1616
|
+
placement: "bottom start",
|
|
1617
|
+
onOpenChange,
|
|
1618
|
+
className: popoverAnimationClassName,
|
|
1619
|
+
children: /* @__PURE__ */ jsx($f2ff30fde7b014be$export$3ddf2d174ce01153, {
|
|
1620
|
+
...dialogProps,
|
|
1621
|
+
className: "outline-none!",
|
|
1622
|
+
"aria-label": label,
|
|
1623
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
1624
|
+
className: clsx(popoverCva({}), "flex overflow-hidden"),
|
|
1625
|
+
children: [!hideSidebar && sidebar, /* @__PURE__ */ jsxs("div", {
|
|
1626
|
+
className: "flex flex-1 flex-col justify-between",
|
|
1627
|
+
children: [children, footer]
|
|
1628
|
+
})]
|
|
1630
1629
|
})
|
|
1631
|
-
})
|
|
1632
|
-
}
|
|
1630
|
+
})
|
|
1631
|
+
});
|
|
1633
1632
|
return /* @__PURE__ */ jsxs(BottomSheet, {
|
|
1634
1633
|
sheetMarginBottom: 0,
|
|
1635
1634
|
isScrollable: true,
|
|
@@ -1648,15 +1647,17 @@ const DateTimeDialog = ({ hideSidebar, children, footer, sidebar, label, isOpen,
|
|
|
1648
1647
|
const DateTimeDialogFooter = ({ isValid = true, isDisabled = false, onTodayPress, onApply }) => {
|
|
1649
1648
|
const { t } = useTranslation("ui");
|
|
1650
1649
|
return /* @__PURE__ */ jsxs("footer", {
|
|
1651
|
-
className: clsx("flex shrink-0 items-center gap-2 bg-
|
|
1650
|
+
className: clsx("flex shrink-0 items-center gap-2 bg-surface-default-background px-4 py-3 md:border-border-default-subtle md:border-t md:bg-surface-default-card md:py-1.5", onTodayPress ? "justify-between" : "justify-end"),
|
|
1652
1651
|
children: [onTodayPress && /* @__PURE__ */ jsx(TextButton, {
|
|
1653
1652
|
type: "button",
|
|
1653
|
+
size: "none",
|
|
1654
1654
|
color: "primary",
|
|
1655
1655
|
isDisabled,
|
|
1656
1656
|
onPress: onTodayPress,
|
|
1657
1657
|
children: t(($) => $.ui.datePicker.today)
|
|
1658
1658
|
}), /* @__PURE__ */ jsx(TextButton, {
|
|
1659
1659
|
type: "button",
|
|
1660
|
+
size: "none",
|
|
1660
1661
|
color: "secondary",
|
|
1661
1662
|
onPress: onApply,
|
|
1662
1663
|
isDisabled: !isValid,
|
|
@@ -1693,7 +1694,7 @@ const getStaticDateRangeSegments = ({ start, end, locale, shouldForceLeadingZero
|
|
|
1693
1694
|
segmentGroup: "start"
|
|
1694
1695
|
}),
|
|
1695
1696
|
showSeparator && /* @__PURE__ */ jsx("span", {
|
|
1696
|
-
className:
|
|
1697
|
+
className: !start && !end ? "pointer-events-none select-none text-surface-default-popover-foreground" : "pointer-events-none select-none text-inherit",
|
|
1697
1698
|
children: "–"
|
|
1698
1699
|
}),
|
|
1699
1700
|
renderStaticDateTimeParts(DateTimeUtils.formatCalendarDatePartsLocalized(end, locale, { shouldForceLeadingZeros }), {
|
|
@@ -1712,8 +1713,8 @@ const getStaticTimeSegments = ({ value, locale, shouldForceLeadingZeros, isDisab
|
|
|
1712
1713
|
});
|
|
1713
1714
|
};
|
|
1714
1715
|
const getStaticDateTimePlaceholder = (placeholder) => /* @__PURE__ */ jsx(Typography, {
|
|
1715
|
-
size: "
|
|
1716
|
-
className: "text-
|
|
1716
|
+
size: "large",
|
|
1717
|
+
className: "text-surface-default-popover-foreground",
|
|
1717
1718
|
children: placeholder
|
|
1718
1719
|
});
|
|
1719
1720
|
const getStaticDateTimeFocusTarget = (container, staticTarget, fromEnd = false) => {
|
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t as UIConfig } from "./uiConfig.context-RFvaQYzD.js";
|
|
1
|
+
import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
3
2
|
import { t as ChevronDown } from "./chevron-down-B4Pr8bD3.js";
|
|
4
|
-
import { t as CheckboxCheckmark } from "./CheckboxCheckmark-
|
|
3
|
+
import { t as CheckboxCheckmark } from "./CheckboxCheckmark-FwKjPVbV.js";
|
|
4
|
+
import { i as Search, n as selectListBoxItemDefinition, r as selectInputTagsContentWrapperDefinition, t as selectPopoverDefinition } from "./selectDesktop.cva-CHAMxhfO.js";
|
|
5
5
|
import { t as X } from "./x-B6vfz8Ps.js";
|
|
6
6
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
7
|
+
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
8
|
+
import { t as IconSlot } from "./IconSlot-DSK7qNxc.js";
|
|
7
9
|
import { c as $7230ffa83bc0c2cf$export$ef03459518577ad4, i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, l as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a } from "./utils-Czcqspm7.js";
|
|
8
|
-
import { c as $542a13ca2fa5b484$export$5b6b19405a83ff9d,
|
|
10
|
+
import { c as $542a13ca2fa5b484$export$5b6b19405a83ff9d, g as $4b38b5b75ecc6208$export$698f465ec27e93df, l as $542a13ca2fa5b484$export$9b9a0cd73afb7ca4, m as $263ab7fc0f95ccdb$export$4feb769f8ddf26c5, p as $263ab7fc0f95ccdb$export$2dbbd341daed716d, r as $f2ff30fde7b014be$export$d2f961adcb0afbe, t as $f2ff30fde7b014be$export$2e1e1122cf0cba88 } from "./Dialog-CKLkS00H.js";
|
|
9
11
|
import { t as $43a3b93638fe5db9$export$75b6ee27786ba447 } from "./Label-B2-B-uFY.js";
|
|
10
12
|
import { n as $7705c033048f6da7$export$353f5b6fc5456de1, t as $7705c033048f6da7$export$24d547caef80ccd1 } from "./Button-D6KlWSFL.js";
|
|
11
13
|
import { t as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-D2MPZ3sY.js";
|
|
12
14
|
import { n as $1f3c3b1a70cec653$export$ff05c3ac10437e03, t as $cdaed739b1139372$export$c24727297075ec6a } from "./Form-DlQcyN1f.js";
|
|
13
15
|
import { n as $41fb335299a4a39e$export$f5b8910cec6cf069, t as $41fb335299a4a39e$export$37fb8590cf2c088c } from "./Input-BsbLZDtC.js";
|
|
14
|
-
import { i as $928221da08ecbc62$export$a11e76429ed99b4, n as $928221da08ecbc62$export$7c5906fe4f1f2af2, r as $928221da08ecbc62$export$7ff8f37d2d81a48d, t as $928221da08ecbc62$export$41f133550aa26f48 } from "./ListBox-
|
|
16
|
+
import { i as $928221da08ecbc62$export$a11e76429ed99b4, n as $928221da08ecbc62$export$7c5906fe4f1f2af2, r as $928221da08ecbc62$export$7ff8f37d2d81a48d, t as $928221da08ecbc62$export$41f133550aa26f48 } from "./ListBox-CL8Ar4Q_.js";
|
|
15
17
|
import { i as $a3be900807531178$re_export$useFilter, n as $a3be900807531178$re_export$ListLayout, r as $a3be900807531178$re_export$Rect } from "./exports-BNrTn8Tj.js";
|
|
16
|
-
import
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as Spinner } from "./Spinner-owSXOEzg.js";
|
|
18
|
+
import "./popoverAnimation-DEZSvKP8.js";
|
|
19
|
+
import { t as Spinner } from "./Spinner-BeVTUzzx.js";
|
|
19
20
|
import { BottomSheet } from "./components/bottom-sheet.js";
|
|
20
|
-
import { t as useBreakpoint } from "./useBreakpoint-
|
|
21
|
+
import { t as useBreakpoint } from "./useBreakpoint-DQoMN-BG.js";
|
|
21
22
|
import { TextButton } from "./components/text-button.js";
|
|
22
23
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
23
|
-
import { r as FormFieldLabel, t as FormField } from "./FormField-
|
|
24
|
-
import { t as Tag } from "./Tag-
|
|
24
|
+
import { r as FormFieldLabel, t as FormField } from "./FormField-9h3JAhaY.js";
|
|
25
|
+
import { t as Tag } from "./Tag-DPg5sL1Z.js";
|
|
25
26
|
import "./i18n-CX2EjhJI.js";
|
|
26
|
-
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-
|
|
27
|
-
import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-
|
|
27
|
+
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-CbMTwuQU.js";
|
|
28
|
+
import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-CDHFaUKZ.js";
|
|
28
29
|
import { t as useIntersectionObserver } from "./useIntersectionObserver-DYfHnGGU.js";
|
|
29
|
-
import { t as popoverDefinition } from "./popover.cva-
|
|
30
|
+
import { t as popoverDefinition } from "./popover.cva-Bhud1wnp.js";
|
|
30
31
|
import { Input } from "./components/input.js";
|
|
31
32
|
import $ahdqC$react, { Fragment, createContext, use, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
32
33
|
import { c } from "react/compiler-runtime";
|
|
34
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
33
35
|
import "react-aria/mergeProps";
|
|
34
36
|
import { CollectionBuilder } from "react-aria/CollectionBuilder";
|
|
35
37
|
import { filterDOMProps } from "react-aria/filterDOMProps";
|
|
@@ -44,34 +46,10 @@ import "react-aria/useListFormatter";
|
|
|
44
46
|
import { useVirtualizerState } from "react-stately/useVirtualizerState";
|
|
45
47
|
import { useScrollView } from "react-aria/private/virtualizer/ScrollView";
|
|
46
48
|
import { VirtualizerItem } from "react-aria/private/virtualizer/VirtualizerItem";
|
|
47
|
-
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
48
49
|
import { usePreventScroll } from "react-aria";
|
|
49
50
|
import { useLabel } from "@react-aria/label";
|
|
50
51
|
import { useFocusVisible, useFocusWithin, useHover as useHover$1 } from "@react-aria/interactions";
|
|
51
52
|
import { useTranslation } from "react-i18next";
|
|
52
|
-
//#region ../../node_modules/.bun/lucide-react@1.43.0+83d5fd7b249dbeef/node_modules/lucide-react/dist/esm/icons/search.mjs
|
|
53
|
-
/**
|
|
54
|
-
* @license lucide-react v1.43.0 - ISC
|
|
55
|
-
*
|
|
56
|
-
* This source code is licensed under the ISC license.
|
|
57
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
58
|
-
*/
|
|
59
|
-
const __iconData = {
|
|
60
|
-
name: "search",
|
|
61
|
-
size: 24,
|
|
62
|
-
node: [["path", {
|
|
63
|
-
d: "m21 21-4.34-4.34",
|
|
64
|
-
key: "14j7rj"
|
|
65
|
-
}], ["circle", {
|
|
66
|
-
cx: "11",
|
|
67
|
-
cy: "11",
|
|
68
|
-
r: "8",
|
|
69
|
-
key: "4ej97u"
|
|
70
|
-
}]]
|
|
71
|
-
};
|
|
72
|
-
__iconData.node;
|
|
73
|
-
const Search = createLucideIcon(__iconData);
|
|
74
|
-
//#endregion
|
|
75
53
|
//#region ../../node_modules/.bun/react-aria-components@1.21.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/Group.mjs
|
|
76
54
|
const $3a442827418ebe87$export$f9c6924e160136d1 = /*#__PURE__*/ createContext({});
|
|
77
55
|
//#endregion
|
|
@@ -745,12 +723,6 @@ let SelectContext;
|
|
|
745
723
|
};
|
|
746
724
|
})(SelectContext || (SelectContext = {}));
|
|
747
725
|
//#endregion
|
|
748
|
-
//#region src/components/inputs/Selection/shared/selectInput.cva.ts
|
|
749
|
-
const selectInputTagsContentWrapperDefinition = UIOverrides.defineConfig({
|
|
750
|
-
base: ["flex flex-1 flex-wrap gap-input-gap-input-text-to-elements truncate"],
|
|
751
|
-
config: { variants: { isSearchable: { false: "pointer-events-none z-raised" } } }
|
|
752
|
-
});
|
|
753
|
-
//#endregion
|
|
754
726
|
//#region src/hooks/useKeyInteractions.ts
|
|
755
727
|
const KEY_TO_ACTION = {
|
|
756
728
|
ArrowUp: "up",
|
|
@@ -949,7 +921,7 @@ const SelectInput = ({ ref, placeholder, variant, as, size, isDisabled, isInvali
|
|
|
949
921
|
ref: inputRef,
|
|
950
922
|
placeholder: as === "floating" ? void 0 : placeholder,
|
|
951
923
|
onBlur,
|
|
952
|
-
className: clsx("w-full flex-1 bg-transparent outline-none placeholder:text-
|
|
924
|
+
className: clsx("w-full flex-1 bg-transparent outline-none placeholder:text-surface-default-popover-foreground", "disabled:text-inherit disabled:placeholder:text-surface-default-popover-foreground", inputClassName),
|
|
953
925
|
onKeyDown,
|
|
954
926
|
onKeyDownCapture: onInputKeyDownCapture,
|
|
955
927
|
...fieldProps
|
|
@@ -960,13 +932,11 @@ const SelectInput = ({ ref, placeholder, variant, as, size, isDisabled, isInvali
|
|
|
960
932
|
onPress: () => setIsOpen(!isOpen),
|
|
961
933
|
onBlur,
|
|
962
934
|
"data-type": "select-trigger",
|
|
963
|
-
className: clsx("group/select-trigger w-full truncate text-start outline-none disabled:text-
|
|
935
|
+
className: clsx("group/select-trigger w-full truncate text-start outline-none disabled:text-inherit", showTags && "absolute inset-0 z-base"),
|
|
964
936
|
onKeyDown: onTriggerKeyDown,
|
|
965
937
|
...fieldProps,
|
|
966
|
-
children: [(as === "floating" && isEmpty || isMultiple && !isEmpty) && /* @__PURE__ */ jsx(Fragment$1, { children: "\xA0" }), (isEmpty || !isMultiple) && (as !== "floating" || !isEmpty) && /* @__PURE__ */ jsxs(
|
|
967
|
-
|
|
968
|
-
as: "span",
|
|
969
|
-
className: clsx("truncate empty:before:inline-block empty:before:content-['']", isEmpty && "text-text-default-3 group-disabled/select-trigger:text-interactive-text-secondary-disabled"),
|
|
938
|
+
children: [(as === "floating" && isEmpty || isMultiple && !isEmpty) && /* @__PURE__ */ jsx(Fragment$1, { children: "\xA0" }), (isEmpty || !isMultiple) && (as !== "floating" || !isEmpty) && /* @__PURE__ */ jsxs("span", {
|
|
939
|
+
className: clsx("block truncate empty:before:inline-block empty:before:content-['']", isEmpty && "text-surface-default-popover-foreground"),
|
|
970
940
|
children: [isEmpty && placeholder, !isEmpty && (showSelectionContent ? selectedItems[0].content : selectedItems[0].label)]
|
|
971
941
|
})]
|
|
972
942
|
})
|
|
@@ -986,43 +956,22 @@ const SelectInput = ({ ref, placeholder, variant, as, size, isDisabled, isInvali
|
|
|
986
956
|
!hideDropdownIcon && /* @__PURE__ */ jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
987
957
|
excludeFromTabOrder: true,
|
|
988
958
|
"aria-label": t(($) => isOpen ? $.ui.closeAlt : $.ui.openAlt),
|
|
989
|
-
className: clsx("self-stretch pl-1
|
|
959
|
+
className: clsx("self-stretch pl-1.5 outline-none", inputSizeCva({ size })),
|
|
990
960
|
isDisabled,
|
|
991
961
|
onPress: () => {
|
|
992
962
|
if (!isSearchable) setIsOpen(!isOpen);
|
|
993
963
|
},
|
|
994
|
-
children: /* @__PURE__ */ jsx(
|
|
995
|
-
|
|
996
|
-
"
|
|
997
|
-
|
|
964
|
+
children: /* @__PURE__ */ jsx(IconSlot, {
|
|
965
|
+
icon: ChevronDown,
|
|
966
|
+
className: clsx("text-inherit", isOpen && "rotate-180"),
|
|
967
|
+
iconClassName: "fill-current stroke-0",
|
|
968
|
+
"aria-hidden": "true"
|
|
998
969
|
})
|
|
999
970
|
})
|
|
1000
971
|
]
|
|
1001
972
|
});
|
|
1002
973
|
};
|
|
1003
974
|
//#endregion
|
|
1004
|
-
//#region src/components/inputs/Selection/shared/selectItem.cva.ts
|
|
1005
|
-
const selectListBoxItemDefinition = UIOverrides.defineConfig({
|
|
1006
|
-
base: [
|
|
1007
|
-
"group flex cursor-pointer items-center gap-2 px-list-side-item-left py-list-height-item",
|
|
1008
|
-
"border-b border-b-elevation-outline-default-1 outline-none",
|
|
1009
|
-
"font-labels-default text-label-2",
|
|
1010
|
-
"hover:text-interactive-text-secondary-hover",
|
|
1011
|
-
"focus-visible:bg-interactive-contained-primary-focus focus-visible:text-interactive-text-secondary-idle-inverted",
|
|
1012
|
-
"disabled:cursor-default disabled:text-interactive-text-secondary-disabled"
|
|
1013
|
-
],
|
|
1014
|
-
config: {
|
|
1015
|
-
variants: {
|
|
1016
|
-
isSingle: { true: "selected:bg-interactive-contained-primary-idle selected:text-interactive-contained-primary-on-idle" },
|
|
1017
|
-
isNewItem: {
|
|
1018
|
-
true: "text-interactive-text-primary-idle",
|
|
1019
|
-
false: "text-interactive-text-secondary-idle"
|
|
1020
|
-
}
|
|
1021
|
-
},
|
|
1022
|
-
defaultVariants: { isNewItem: false }
|
|
1023
|
-
}
|
|
1024
|
-
});
|
|
1025
|
-
//#endregion
|
|
1026
975
|
//#region src/components/inputs/Selection/shared/SelectListBoxItem.tsx
|
|
1027
976
|
const SelectListBoxItem = ({ isSearchable, isNewItem, newItemRender, id, label, content, isDisabled }) => {
|
|
1028
977
|
const selectListItemCva = UIOverrides.useCva("select.listBoxItemCva", selectListBoxItemDefinition);
|
|
@@ -1116,7 +1065,7 @@ const SelectListBoxLoadingItem = ({ id, label, onLoadMore }) => {
|
|
|
1116
1065
|
className: selectListItemCva({}),
|
|
1117
1066
|
children: /* @__PURE__ */ jsx("div", {
|
|
1118
1067
|
ref,
|
|
1119
|
-
className: "flex flex-1 justify-center text-interactive-
|
|
1068
|
+
className: "flex flex-1 justify-center text-interactive-primary-background",
|
|
1120
1069
|
children: /* @__PURE__ */ jsx(Spinner, {})
|
|
1121
1070
|
})
|
|
1122
1071
|
});
|
|
@@ -1271,9 +1220,6 @@ const SelectListBox = ({ label, selectionMode, isSearchable, isScrollable = true
|
|
|
1271
1220
|
});
|
|
1272
1221
|
};
|
|
1273
1222
|
//#endregion
|
|
1274
|
-
//#region src/components/inputs/Selection/shared/selectDesktop.cva.ts
|
|
1275
|
-
const selectPopoverDefinition = UIOverrides.defineConfig({ base: ["my-4 outline-none"] });
|
|
1276
|
-
//#endregion
|
|
1277
1223
|
//#region src/components/inputs/Selection/shared/SelectDesktop.tsx
|
|
1278
1224
|
const SelectDesktop = ({ ref, error, ignoreTriggerWidth, showSelectionContent, inputClassName, containerClassName, leadingContent, trailingContent, customTrigger, onBlur, onMouseEnter, onFocusCapture, ...props }) => {
|
|
1279
1225
|
const { label, tooltipText, helperText, isDirty, isRequired, rightContent, isHeaderHidden, headerClassName, errorClassName, placeholder, variant, isDisabled, className, hideLabel, hideDropdownIcon, isSearchable, isClearable, isClearableIfDisabled, isLoading, as, size, collapseAfter, selectedTagsType } = props;
|
|
@@ -1434,7 +1380,7 @@ const SelectDesktop = ({ ref, error, ignoreTriggerWidth, showSelectionContent, i
|
|
|
1434
1380
|
triggerRef,
|
|
1435
1381
|
isOpen,
|
|
1436
1382
|
onOpenChange: setIsOpen,
|
|
1437
|
-
className: selectPopoverCva({}),
|
|
1383
|
+
className: clsx("origin-(--trigger-anchor-point) transition-[opacity,scale] duration-150 ease-out starting:scale-96 starting:opacity-0 entering:scale-96 entering:opacity-0 exiting:scale-96 exiting:opacity-0 exiting:duration-100 motion-reduce:transition-none", selectPopoverCva({})),
|
|
1438
1384
|
style: { width: !ignoreTriggerWidth ? popoverWidth : void 0 },
|
|
1439
1385
|
offset: 0,
|
|
1440
1386
|
children: /* @__PURE__ */ jsx(SelectListBox, {
|
|
@@ -1455,8 +1401,11 @@ const FormFieldHeaderClose = ({ onClose }) => {
|
|
|
1455
1401
|
return /* @__PURE__ */ jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
1456
1402
|
onPress: onClose,
|
|
1457
1403
|
"aria-label": t(($) => $.ui.closeAlt),
|
|
1458
|
-
className: "shrink-0 focus-visible:outline-interactive-
|
|
1459
|
-
children: /* @__PURE__ */ jsx(
|
|
1404
|
+
className: "shrink-0 focus-visible:outline-interactive-ring",
|
|
1405
|
+
children: /* @__PURE__ */ jsx(IconSlot, {
|
|
1406
|
+
icon: X,
|
|
1407
|
+
className: "text-surface-default-foreground"
|
|
1408
|
+
})
|
|
1460
1409
|
});
|
|
1461
1410
|
};
|
|
1462
1411
|
//#endregion
|
|
@@ -1465,7 +1414,7 @@ const SelectListBoxSelectionBar = ({ className }) => {
|
|
|
1465
1414
|
const { t } = useTranslation("ui");
|
|
1466
1415
|
const { onClear, onSelectAll } = SelectContext.useSelect();
|
|
1467
1416
|
return /* @__PURE__ */ jsxs("div", {
|
|
1468
|
-
className: clsx("flex items-center justify-between border-
|
|
1417
|
+
className: clsx("flex items-center justify-between border-border-default-subtle border-b px-4 py-3", className),
|
|
1469
1418
|
children: [/* @__PURE__ */ jsx(TextButton, {
|
|
1470
1419
|
type: "button",
|
|
1471
1420
|
color: "primary",
|
|
@@ -1579,7 +1528,6 @@ const SelectMobile = ({ ref, error, showSelectionContent, inputClassName, contai
|
|
|
1579
1528
|
inputClassName,
|
|
1580
1529
|
className: "mb-list-height-title-bottom px-list-side-title",
|
|
1581
1530
|
leadingIcon: !hideSearchIcon ? /* @__PURE__ */ jsx(Search, { className: "size-6" }) : void 0,
|
|
1582
|
-
size: "default",
|
|
1583
1531
|
isClearable
|
|
1584
1532
|
}), /* @__PURE__ */ jsx(SelectListBox, {
|
|
1585
1533
|
...props,
|
|
@@ -1625,7 +1573,7 @@ const SelectBase = (dProps) => {
|
|
|
1625
1573
|
};
|
|
1626
1574
|
//#endregion
|
|
1627
1575
|
//#region src/components/inputs/Selection/shared/StaticSelectTrailingContent.tsx
|
|
1628
|
-
const StaticSelectTrailingContent = ({ trailingContent, hideDropdownIcon,
|
|
1576
|
+
const StaticSelectTrailingContent = ({ trailingContent, hideDropdownIcon, size }) => {
|
|
1629
1577
|
const inputSizeCva = UIOverrides.useCva("input.sizeCva", inputSizeDefinition);
|
|
1630
1578
|
if (!trailingContent && hideDropdownIcon) return null;
|
|
1631
1579
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [trailingContent && /* @__PURE__ */ jsx("div", {
|
|
@@ -1634,11 +1582,12 @@ const StaticSelectTrailingContent = ({ trailingContent, hideDropdownIcon, isDisa
|
|
|
1634
1582
|
}), !hideDropdownIcon ? /* @__PURE__ */ jsx("button", {
|
|
1635
1583
|
type: "button",
|
|
1636
1584
|
tabIndex: -1,
|
|
1637
|
-
className: clsx("self-stretch border-0! pl-1
|
|
1585
|
+
className: clsx("self-stretch border-0! pl-1.5 outline-none", inputSizeCva({ size })),
|
|
1638
1586
|
"aria-hidden": "true",
|
|
1639
|
-
children: /* @__PURE__ */ jsx(
|
|
1640
|
-
|
|
1641
|
-
|
|
1587
|
+
children: /* @__PURE__ */ jsx(IconSlot, {
|
|
1588
|
+
icon: ChevronDown,
|
|
1589
|
+
className: "text-inherit",
|
|
1590
|
+
iconClassName: "fill-current stroke-0"
|
|
1642
1591
|
})
|
|
1643
1592
|
}) : void 0] });
|
|
1644
1593
|
};
|
|
@@ -1694,4 +1643,4 @@ const getStaticSelectValue = ({ items, value, selectionMode, initialSelection, m
|
|
|
1694
1643
|
};
|
|
1695
1644
|
};
|
|
1696
1645
|
//#endregion
|
|
1697
|
-
export {
|
|
1646
|
+
export { getKeyInteractionAction as a, createKeyInteractionsHandler as i, StaticSelectTrailingContent as n, useKeyInteractions as o, SelectBase as r, useDebounceCallback as s, getStaticSelectValue as t };
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
2
|
+
//#region src/components/navigation/Stepper/stepper.cva.ts
|
|
3
|
+
const stepperDefinition = UIOverrides.defineConfig({
|
|
4
|
+
base: [""],
|
|
5
|
+
config: {
|
|
6
|
+
variants: { orientation: {
|
|
7
|
+
horizontal: "flex flex-row items-center gap-stepper-gap-step-to-line-horizontal",
|
|
8
|
+
vertical: "inline-flex flex-col gap-stepper-gap-step-to-line-vertical"
|
|
9
|
+
} },
|
|
10
|
+
defaultVariants: { orientation: "horizontal" }
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
const stepperItemDefinition = UIOverrides.defineConfig({
|
|
14
|
+
base: ["flex shrink-0"],
|
|
15
|
+
config: {
|
|
16
|
+
variants: { contentOrientation: {
|
|
17
|
+
horizontal: "flex-row items-center gap-stepper-gap-icon-to-text-horizontal text-left",
|
|
18
|
+
vertical: "flex-col items-center gap-stepper-gap-icon-to-text-vertical text-center"
|
|
19
|
+
} },
|
|
20
|
+
defaultVariants: { contentOrientation: "horizontal" }
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const stepperIconDefinition = UIOverrides.defineConfig({
|
|
24
|
+
base: ["inline-flex size-5 shrink-0 items-center justify-center rounded-stepper-rounding-icon"],
|
|
25
|
+
config: {
|
|
26
|
+
variants: { status: {
|
|
27
|
+
completed: [
|
|
28
|
+
"border border-interactive-primary-background border-solid bg-interactive-primary-background",
|
|
29
|
+
"group-hover:border-state-interactive-primary-background/hover group-hover:bg-state-interactive-primary-background/hover",
|
|
30
|
+
"group-pressed:border-state-interactive-primary-background/pressed group-pressed:bg-state-interactive-primary-background/pressed"
|
|
31
|
+
],
|
|
32
|
+
active: "border border-interactive-subtle-primary-foreground border-solid bg-support-transparent-outline",
|
|
33
|
+
todo: "border border-state-interactive-subtle-primary-foreground/disabled border-solid bg-support-transparent-outline"
|
|
34
|
+
} },
|
|
35
|
+
defaultVariants: { status: "todo" }
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
const stepperNumberDefinition = UIOverrides.defineConfig({
|
|
39
|
+
base: ["text-center align-middle"],
|
|
40
|
+
config: {
|
|
41
|
+
variants: { status: {
|
|
42
|
+
completed: "",
|
|
43
|
+
active: "text-interactive-subtle-primary-foreground",
|
|
44
|
+
todo: "text-state-interactive-subtle-primary-foreground/disabled"
|
|
45
|
+
} },
|
|
46
|
+
defaultVariants: { status: "todo" }
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
const stepperTitleDefinition = UIOverrides.defineConfig({
|
|
50
|
+
base: [""],
|
|
51
|
+
config: {
|
|
52
|
+
variants: { status: {
|
|
53
|
+
completed: [
|
|
54
|
+
"text-surface-default-foreground",
|
|
55
|
+
"group-hover:text-state-surface-default-foreground/hover",
|
|
56
|
+
"group-pressed:text-state-surface-default-foreground/pressed"
|
|
57
|
+
],
|
|
58
|
+
active: "text-interactive-primary-background",
|
|
59
|
+
todo: "text-state-surface-default-popover-foreground/disabled"
|
|
60
|
+
} },
|
|
61
|
+
defaultVariants: { status: "todo" }
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
const stepperSubtextDefinition = UIOverrides.defineConfig({
|
|
65
|
+
base: [""],
|
|
66
|
+
config: {
|
|
67
|
+
variants: { status: {
|
|
68
|
+
completed: [
|
|
69
|
+
"text-surface-default-foreground",
|
|
70
|
+
"group-hover:text-state-surface-default-foreground/hover",
|
|
71
|
+
"group-pressed:text-state-surface-default-foreground/pressed"
|
|
72
|
+
],
|
|
73
|
+
active: "text-surface-default-foreground",
|
|
74
|
+
todo: "text-state-surface-default-popover-foreground/disabled"
|
|
75
|
+
} },
|
|
76
|
+
defaultVariants: { status: "todo" }
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
const stepperSeparatorDefinition = UIOverrides.defineConfig({
|
|
80
|
+
base: ["bg-border-default-subtle"],
|
|
81
|
+
config: {
|
|
82
|
+
variants: {
|
|
83
|
+
orientation: {
|
|
84
|
+
horizontal: "h-px min-w-4 flex-1",
|
|
85
|
+
vertical: "min-h-16 w-px"
|
|
86
|
+
},
|
|
87
|
+
contentOrientation: {
|
|
88
|
+
horizontal: "",
|
|
89
|
+
vertical: ""
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
defaultVariants: {
|
|
93
|
+
orientation: "horizontal",
|
|
94
|
+
contentOrientation: "horizontal"
|
|
95
|
+
},
|
|
96
|
+
compoundVariants: [
|
|
97
|
+
{
|
|
98
|
+
orientation: "horizontal",
|
|
99
|
+
contentOrientation: "vertical",
|
|
100
|
+
className: "mt-2.5 self-start"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
orientation: "vertical",
|
|
104
|
+
contentOrientation: "vertical",
|
|
105
|
+
className: "self-center"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
orientation: "vertical",
|
|
109
|
+
contentOrientation: "horizontal",
|
|
110
|
+
className: "ml-2.5"
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
//#endregion
|
|
116
|
+
export { stepperSeparatorDefinition as a, stepperNumberDefinition as i, stepperIconDefinition as n, stepperSubtextDefinition as o, stepperItemDefinition as r, stepperTitleDefinition as s, stepperDefinition as t };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ClassProp, ClassValue, StringToBoolean } from "class-variance-authority/types";
|
|
2
|
+
//#region src/utils/style-merge.util.d.ts
|
|
3
|
+
declare namespace StyleMergeUtils {
|
|
4
|
+
export type OverrideMode = "merge" | "overrideEntry" | "overrideCva";
|
|
5
|
+
export interface CvaVariantMap {
|
|
6
|
+
[variant: string]: {
|
|
7
|
+
[value: string]: ClassValue;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export type ConfigSchema = CvaVariantMap;
|
|
11
|
+
export type ConfigVariants<TSchema extends ConfigSchema> = { [K in keyof TSchema]?: StringToBoolean<keyof NonNullable<TSchema[K]>> | null | undefined; };
|
|
12
|
+
export type ConfigVariantsMulti<TSchema extends ConfigSchema> = { [K in keyof TSchema]?: StringToBoolean<keyof NonNullable<TSchema[K]>> | StringToBoolean<keyof NonNullable<TSchema[K]>>[] | undefined; };
|
|
13
|
+
export interface Config<TSchema extends ConfigSchema> {
|
|
14
|
+
variants?: TSchema;
|
|
15
|
+
defaultVariants?: ConfigVariants<TSchema>;
|
|
16
|
+
compoundVariants?: Array<(ConfigVariants<TSchema> | ConfigVariantsMulti<TSchema>) & ClassProp>;
|
|
17
|
+
}
|
|
18
|
+
export interface CvaCompoundEntry {
|
|
19
|
+
[key: string]: unknown;
|
|
20
|
+
class?: ClassValue;
|
|
21
|
+
className?: ClassValue;
|
|
22
|
+
}
|
|
23
|
+
export interface CvaConfigShape {
|
|
24
|
+
variants?: CvaVariantMap;
|
|
25
|
+
compoundVariants?: CvaCompoundEntry[];
|
|
26
|
+
defaultVariants?: Record<string, unknown>;
|
|
27
|
+
}
|
|
28
|
+
export interface CvaDefinition<TConfig extends CvaConfigShape> {
|
|
29
|
+
base: string[];
|
|
30
|
+
config?: TConfig;
|
|
31
|
+
}
|
|
32
|
+
type DeepOptionalOverride<T> = T extends string ? string : T extends (infer U)[] ? DeepOptionalOverride<U>[] : T extends object ? { [K in keyof T]?: DeepOptionalOverride<T[K]>; } : T;
|
|
33
|
+
export type CvaConfigOverride<TConfig extends CvaConfigShape = CvaConfigShape> = DeepOptionalOverride<CvaDefinition<TConfig>> & {
|
|
34
|
+
mode: OverrideMode;
|
|
35
|
+
};
|
|
36
|
+
export const mergeCvaDefinition: <TConfig extends CvaConfigShape>(baseDefinition: CvaDefinition<TConfig>, override?: CvaConfigOverride<TConfig>) => CvaDefinition<TConfig>;
|
|
37
|
+
export {};
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
|
+
export { StyleMergeUtils as t };
|