@povio/ui 5.0.0-rc.2 → 5.0.0-rc.4
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 +3 -1
- package/README.md +50 -7
- package/dist/{Accordion-CzFKi8Bp.js → Accordion-BzwO4_ml.js} +20 -136
- package/dist/{Alert-T25LY8ZL.js → Alert-CnvEb1D_.js} +16 -12
- package/dist/{Alert-f1dG-4Uy.d.ts → Alert-DfiJbKH0.d.ts} +2 -1
- package/dist/{AlertDialog-B6R2MbNg.d.ts → AlertDialog-OWTbR4km.d.ts} +3 -3
- package/dist/{Autocomplete-CQ63Cynd.d.ts → Autocomplete-BwNHp8fy.d.ts} +1 -1
- package/dist/{Badge-YKlKz-Jy.d.ts → Badge-CBNpj823.d.ts} +8 -5
- package/dist/BadgeButton-Ccgt3oGO.d.ts +15 -0
- package/dist/{BottomSheet-DvqBvth_.js → BottomSheet-BXLE3161.js} +7 -6
- package/dist/{BottomSheet-xaymO7aQ.d.ts → BottomSheet-DbQuzfAB.d.ts} +1 -1
- package/dist/{BottomSheet.lazy-CGBRPve_.d.ts → BottomSheet.lazy-D9LCEo7s.d.ts} +1 -1
- package/dist/{Breadcrumbs-DyriI-Bi.d.ts → Breadcrumbs-CUV6CU8Q.d.ts} +1 -1
- package/dist/{Breadcrumbs-DiIYJAWf.js → Breadcrumbs-FF8hMfXd.js} +24 -38
- package/dist/Button-C5rv4Cr2.js +506 -0
- package/dist/{Button-BZ3is6IU.d.ts → Button-D-4qb0IR.d.ts} +3 -3
- package/dist/{ButtonContent-B2_dZ6vA.js → ButtonContent-c7lJayVQ.js} +10 -8
- package/dist/{Calendar-DzQApBCy.js → Calendar-BTjajO6i.js} +25 -148
- package/dist/{CheckContent-DZ7Gk8GS.js → CheckContent-D7sZPmzx.js} +2 -2
- package/dist/{Checkbox-BepzfVfK.js → Checkbox-CV1ILXXO.js} +6 -6
- package/dist/{Checkbox-CHpgW3fI.d.ts → Checkbox-DVTWaMKa.d.ts} +1 -1
- package/dist/{CheckboxCheckmark-B3lnOjsU.js → CheckboxCheckmark-CpC3wlMs.js} +11 -11
- package/dist/{CheckboxGroup-CXrR3A-c.d.ts → CheckboxGroup-DGF12cmB.d.ts} +3 -3
- package/dist/ComponentGallery-BWiPGUL8.js +3665 -0
- package/dist/{DatePicker-B3l9TEjW.d.ts → DatePicker-8xSs_jNd.d.ts} +3 -3
- package/dist/{DatePicker-CI87jC4_.js → DatePicker-DOLL7mkc.js} +17 -16
- package/dist/{DatePickerInput-UBZcTmdv.js → DatePickerInput-BLBcySA2.js} +16 -26
- package/dist/{DatePickerInput-CZTEsrS0.d.ts → DatePickerInput-D81ZJ3fT.d.ts} +3 -3
- package/dist/{DateRangePicker-BX2O5zA8.js → DateRangePicker-BF-1CztH.js} +23 -194
- package/dist/{DateRangePicker-DKkc2B3n.d.ts → DateRangePicker-Bfq-yDm7.d.ts} +3 -3
- package/dist/{DateTimePicker-CVfkp45w.js → DateTimePicker-Cj0qvJUz.js} +16 -15
- package/dist/{DateTimePicker-IHr-wPq8.d.ts → DateTimePicker-D4lHyf6P.d.ts} +3 -3
- package/dist/{Dialog-DdRP4YFC.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-zrodtd44.js → DropdownMenu-5jmtgLXd.js} +8 -6
- package/dist/{DropdownMenu-CWDhk3XA.d.ts → DropdownMenu-JNpYT4-3.d.ts} +3 -2
- package/dist/{DropdownMenuDesktop-CGYxsavQ.js → DropdownMenuDesktop-Cl9gZVq0.js} +9 -38
- package/dist/{FileInput-Dz1eESr_.js → FileInput-Br5DQaGQ.js} +10 -9
- package/dist/{FileInput-BQbn77bE.d.ts → FileInput-C4CE5kuP.d.ts} +5 -4
- package/dist/{FileTrigger-CDXcQthK.js → FileTrigger-Cthk5_Wp.js} +1 -30
- package/dist/{FileUpload-D3Io7Is5.js → FileUpload--7ub3EZO.js} +53 -140
- package/dist/{FileUpload-qySCMcLn.d.ts → FileUpload-CR7bZxV1.d.ts} +1 -1
- package/dist/{FileUploadContainer-qOyGvb5J.d.ts → FileUploadContainer-042ztsaL.d.ts} +1 -1
- package/dist/{Form-u_N_6mwo.d.ts → Form-BJ12MjE-.d.ts} +1 -1
- package/dist/{FormField-CHD4OJOt.js → FormField-B99dLt8o.js} +9 -9
- package/dist/{FormField-B0miX3gu.d.ts → FormField-Byiehm9y.d.ts} +1 -1
- package/dist/{FormFieldError-QRAFHUTt.js → FormFieldError-DeOHHLo2.js} +1 -1
- package/dist/FormFieldHeaderTooltip-BV2Ju4oB.js +17 -0
- package/dist/{IconButton-KXecZgYX.d.ts → IconButton-D4thBurp.d.ts} +2 -2
- package/dist/IconSlot-DSK7qNxc.js +79 -0
- package/dist/{InlineIconButton-CbKZ2U_a.d.ts → InlineIconButton-BeJCjl-q.d.ts} +2 -2
- package/dist/{InlineTooltipWrapper-g5yoeH1B.js → InlineTooltipWrapper-BpApaGXV.js} +3 -3
- package/dist/{Input-efmPwk8f.d.ts → Input-DOanwj3l.d.ts} +3 -3
- package/dist/{InputContent-DuBa9FuI.d.ts → InputContent-CXuP1ghQ.d.ts} +3 -3
- package/dist/{InputItem-2zf6QI5L.js → InputItem-CIxbTxZu.js} +11 -11
- package/dist/{Inputs-C-w03Q_F.d.ts → Inputs-DA73LmLc.d.ts} +1 -1
- package/dist/{Inputs-BceDTmdT.js → Inputs-DJSKiaWY.js} +1 -1
- package/dist/{Link-QYpprkN1.d.ts → Link-Ow9H7kNv.d.ts} +3 -2
- package/dist/{ListBox-B7DW1S7n.js → ListBox-CL8Ar4Q_.js} +5 -4
- package/dist/{MenuItem--Mjd_yK8.d.ts → MenuItem-DHyqOqln.d.ts} +1 -1
- package/dist/{Modal-CoFt5PGP.js → Modal-w60dVQcb.js} +1 -1
- package/dist/{NumberField-z2JatYK0.d.ts → NumberField-Cb9Gf6QJ.d.ts} +3 -3
- package/dist/NumberFormatter-CLDS_LRZ.js +265 -0
- package/dist/{NumberRangeInput-BxVrHq8R.js → NumberRangeInput-B8-LHfg3.js} +9 -8
- package/dist/{NumberRangeInput-Chai3iEi.d.ts → NumberRangeInput-BfbJQqzn.d.ts} +2 -2
- package/dist/{Pagination-CXtIDclf.d.ts → Pagination-CwQu5Py8.d.ts} +1 -1
- package/dist/{PaginationList-CXG4jWFD.d.ts → PaginationList-DMRUGtf8.d.ts} +1 -1
- package/dist/{PaginationList-0bAmvXC0.js → PaginationList-DtvuP63b.js} +2 -2
- package/dist/{PasswordInput-ub2TQxef.d.ts → PasswordInput-CLwFUgl0.d.ts} +1 -1
- package/dist/{Popover-DUKH0q9u.d.ts → Popover-BTHPteIh.d.ts} +2 -2
- package/dist/{Progress-DQWiFP0L.js → Progress-B3mY9rIP.js} +2 -2
- package/dist/{Progress-Dho39FDs.d.ts → Progress-CjWOR38H.d.ts} +2 -1
- package/dist/{QuerySelect-Bo1K6gi_.d.ts → QuerySelect-BGxb6Y0K.d.ts} +2 -2
- package/dist/{RadioGroup-B_zJdn4y.d.ts → RadioGroup-CZg2kIMk.d.ts} +3 -3
- package/dist/{RadioGroup-SSZYch-J.js → RadioGroup-DOw3PRoX.js} +13 -13
- package/dist/{RichTextEditor-D6RewmRj.js → RichTextEditor-D4yN7Wj7.js} +52 -133
- package/dist/{RichTextEditor-B_JX3nor.d.ts → RichTextEditor-YxuRUlI7.d.ts} +1 -1
- package/dist/{Select-CuZDkeQs.js → Select-UR0ec2Ux.js} +5 -4
- package/dist/{Select-DeapZMYx.d.ts → Select-pHbyJdZJ.d.ts} +1 -1
- package/dist/{SelectBase-7SE9Za2r.d.ts → SelectBase-Omiq2D3M.d.ts} +3 -3
- package/dist/{Slider-DJ9K_a-x.js → Slider-CzEmKYBF.js} +11 -11
- package/dist/{Slider-BFViQmM3.d.ts → Slider-EYlGCLWe.d.ts} +1 -1
- package/dist/{Spinner-BEYBu85B.js → Spinner-BeVTUzzx.js} +1 -1
- package/dist/{Spinner-BbcI6IOb.d.ts → Spinner-DbXeDOa2.d.ts} +2 -1
- package/dist/{SplitButton-lL87EcBL.d.ts → SplitButton-D9ngY1rJ.d.ts} +3 -3
- package/dist/{Stepper-C1YPgTBG.js → Stepper-Cp5vbL5g.js} +4 -117
- package/dist/{Stepper-hlhViuaK.d.ts → Stepper-TATlHZhQ.d.ts} +9 -8
- package/dist/{Switch-JxRmH1dX.js → Switch-CqnGEdeD.js} +11 -11
- package/dist/{Switch-DPftmB1b.d.ts → Switch-s_EPn0Jz.d.ts} +1 -1
- package/dist/Table-piX1SWvN.js +689 -0
- package/dist/Tag-AHfV_XSf.d.ts +44 -0
- package/dist/{Tag-HiDH438e.js → Tag-DPg5sL1Z.js} +22 -21
- package/dist/{TextArea-gikUKKDl.js → TextArea-D8WkKsGn.js} +7 -7
- package/dist/{TextArea-BhrCBGbq.d.ts → TextArea-l_keyLK7.d.ts} +2 -2
- package/dist/{TextButton-DnXRykhF.d.ts → TextButton-XUhV_1s0.d.ts} +4 -4
- package/dist/{TimePicker-CmT89X7v.d.ts → TimePicker-B1POvGWs.d.ts} +2 -2
- package/dist/{TimePicker-DtNTOOGr.js → TimePicker-C4taAOFQ.js} +15 -14
- package/dist/Toast-DtG3pA61.js +53 -0
- package/dist/{Toast-B4cXs2rj.d.ts → Toast-ruXqONDA.d.ts} +1 -1
- package/dist/{ToastContainer-BbsMIwtC.js → ToastContainer-qgpzMFD4.js} +4 -3
- package/dist/{ToggleButton-BGuzPJDO.d.ts → ToggleButton-7aP8Jb11.d.ts} +2 -2
- package/dist/{ToggleGroup-D9CFdM5-.d.ts → ToggleGroup-CRFDIPGZ.d.ts} +1 -1
- package/dist/{ToggleGroup-Cl0NS3fe.js → ToggleGroup-DOk27fgI.js} +29 -123
- package/dist/{Tooltip-aE1Vswxz.js → Tooltip-CpG1nz7Y.js} +8 -49
- package/dist/{Tooltip-D7dNwGy9.d.ts → Tooltip-DHv6vAqW.d.ts} +6 -5
- package/dist/{TooltipWrapper-CRf-JFeo.js → TooltipWrapper-3jyN0Wss.js} +4 -4
- package/dist/{Typography-B0Gp1lpc.js → Typography-LU4z2pR1.js} +2 -2
- package/dist/{Typography-BiuidzDC.d.ts → Typography-XljT9s02.d.ts} +1 -1
- package/dist/accordion.cva-CL1bVscW.js +129 -0
- package/dist/{autocomplete-BJ7rqWa4.d.ts → autocomplete-DeERHN8W.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-BvRI-3Gn.d.ts → button.cva-C7kEhgoA.d.ts} +7 -6
- package/dist/{buttonContent.cva-BDT_CReI.d.ts → buttonContent.cva-DPIlROA9.d.ts} +2 -2
- package/dist/{checkbox-BfcE8J5P.d.ts → checkbox-DxIPDTK5.d.ts} +1 -1
- package/dist/{checkbox-group-CHs2wFHS.d.ts → checkbox-group-B3BOVshI.d.ts} +1 -1
- package/dist/{checkbox.cva-gv87kr1W.d.ts → checkbox.cva-t1Ox50hy.d.ts} +4 -3
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.d.ts +1 -1
- package/dist/components/alert-dialog.js +4 -4
- 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 +5 -4
- 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 -37
- 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 +3 -3
- 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 +1 -1
- 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 +10 -9
- 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 +34 -30
- 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 +2 -2
- 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 -1
- package/dist/components/time-picker.d.ts +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/toast.d.ts +2 -2
- package/dist/components/toast.js +2 -2
- package/dist/components/toggle-button.d.ts +1 -1
- package/dist/components/toggle-button.js +1 -1
- package/dist/components/toggle-group.d.ts +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/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 +934 -0
- package/dist/config/ui-configurator.js +4555 -0
- package/dist/config/ui-overrides.d.ts +1 -1
- package/dist/config/ui-overrides.js +1 -1
- package/dist/config/ui-router.js +1 -1
- package/dist/{confirmation.context-DPAKsLYl.d.ts → confirmation.context-BOeEVczb.d.ts} +1 -1
- package/dist/{date-picker-BYFWSbN8.d.ts → date-picker-DnxDmlOW.d.ts} +1 -1
- package/dist/{date-range-picker-BaaXOObm.d.ts → date-range-picker-DHDOSvHN.d.ts} +1 -1
- package/dist/{date-time-picker-D42cTCgx.d.ts → date-time-picker-UkTa0OJ8.d.ts} +1 -1
- package/dist/datePickerInput.cva-Cd7UUN61.js +14 -0
- package/dist/{datePickerValue.utils-CFCY-fRJ.js → datePickerValue.utils-DCgoSrP3.js} +9 -9
- package/dist/{dialog.cva---xiOXMQ.js → dialog.cva-COhDZaVl.js} +4 -4
- package/dist/{dist-B8h0VT0E.js → dist-CAdwxJbe.js} +1 -208
- package/dist/{dom.utils-DjuRTR6U.js → dom.utils-D1AopHx9.js} +1 -1
- package/dist/dropdownMenu.cva-DvEmX0bs.js +34 -0
- package/dist/{dynamicInputs-wEEikYeg.d.ts → dynamicInputs-iP39lVKf.d.ts} +102 -100
- package/dist/{fieldAdapter-C0lCFmf0.js → fieldAdapter-DjYls12j.js} +1 -1
- package/dist/{file-input-C56GXRwz.d.ts → file-input-DkbkdI7l.d.ts} +1 -1
- package/dist/{file-upload-Bx0X534g.d.ts → file-upload-CTsPhxJk.d.ts} +2 -2
- package/dist/fileUpload.cva-ujmStxB1.js +42 -0
- package/dist/{fileUpload.types-DWuQKA2l.d.ts → fileUpload.types-n5FxK_F-.d.ts} +2 -2
- package/dist/hooks/use-filters.js +1 -1
- 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 +57 -46
- package/dist/info-iUmX3uDk.js +32 -0
- package/dist/{input-D2kGX0hW.d.ts → input-CdQNCPgH.d.ts} +1 -1
- package/dist/{input.cva-BhDJxc7r.d.ts → input.cva-BsHgYa-L.d.ts} +3 -2
- package/dist/{input.cva-BcXyC1vZ.js → input.cva-DJA8ovm_.js} +9 -9
- package/dist/{link.context-CDZn6oL2.d.ts → link.context-D5qyz9Rf.d.ts} +1 -1
- package/dist/link.cva-DMTHZiJG.js +12 -0
- package/dist/{number-field-Bw2GKr0s.d.ts → number-field-CUDbenNV.d.ts} +1 -1
- package/dist/{number-range-input-Dqe6x2dR.d.ts → number-range-input-DZGrcvjL.d.ts} +1 -1
- package/dist/numberStatic.utils-BX50PSee.js +421 -0
- package/dist/{password-input-DepKyhh3.d.ts → password-input-fYN20cQO.d.ts} +1 -1
- package/dist/{popover.cva-BJSkLndY.js → popover.cva-Bhud1wnp.js} +1 -1
- package/dist/popoverAnimation-DEZSvKP8.js +4 -0
- package/dist/{query-autocomplete-BSpHin_R.d.ts → query-autocomplete-CfuQeiYG.d.ts} +2 -2
- package/dist/{query-select-m1DCp4UF.d.ts → query-select-CuT_sE6a.d.ts} +2 -2
- package/dist/{queryAutocomplete.types-CrbVUmvl.d.ts → queryAutocomplete.types-tl3r6iaY.d.ts} +2 -2
- package/dist/{radio-group-Civ3Fb70.d.ts → radio-group-B3ccPf0p.d.ts} +1 -1
- package/dist/{radio.cva-BlOrmxzf.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-D8B7mLO1.js → rhf-t348TCCL.js} +1 -1
- package/dist/rhf.d.ts +87 -86
- package/dist/rhf.js +57 -46
- package/dist/{rich-text-editor-DvNEOIux.d.ts → rich-text-editor-B-Onl7T8.d.ts} +1 -1
- package/dist/rich-text-editor.d.ts +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/{router.context-B0jTMtE0.js → router.context-B4FvsTim.js} +2 -2
- package/dist/{select-DY5QtwqI.d.ts → select-B4a52eWW.d.ts} +2 -2
- package/dist/selectDesktop.cva-CHAMxhfO.js +69 -0
- package/dist/{slider-CrB-Gkcv.d.ts → slider-dNj9jruO.d.ts} +1 -1
- package/dist/staticDateTimeSegments-DtU63_dw.js +1764 -0
- package/dist/{staticSelect.utils-Cm7MoDVG.js → staticSelect.utils-uHa8f_c6.js} +33 -231
- package/dist/stepper.cva-CZ0Kj-s7.js +116 -0
- package/dist/style-merge.util-zLimKwt6.d.ts +40 -0
- package/dist/styles/color-utilities.css +13 -25
- package/dist/styles/configurator.css +2365 -0
- package/dist/styles/input.d.ts +1 -1
- package/dist/{switch-8WzXfTS8.d.ts → switch-C--iWnY8.d.ts} +1 -1
- package/dist/switch.cva-CWNzmdRc.d.ts +16 -0
- package/dist/table.cva-DlMT-zLD.js +48 -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 +68 -55
- package/dist/{text-area-CqnKRWKq.d.ts → text-area-DQAtpOQp.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-Cz1GIzpF.d.ts → time-picker-DoGfbil6.d.ts} +1 -1
- package/dist/{toast.cva-Cj6o2Rmu.d.ts → toast.cva-By5lvAfr.d.ts} +3 -2
- package/dist/toast.cva-C_L_RffH.js +163 -0
- package/dist/{toast.runtime-CIKvmkjo.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-jtp6WWUH.d.ts → typography.cva-D1JOEYl-.d.ts} +2 -1
- package/dist/{typography.cva-CJZZSGXW.js → typography.cva-iD15k56p.js} +1 -1
- package/dist/{uiConfig.context-D2eUIPHn.js → uiConfig.context-BS3r_kTS.js} +1 -1
- package/dist/{uiConfig.context-aoarCLYX.d.ts → uiConfig.context-DeBX2beU.d.ts} +8 -8
- 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-BOA-MyoT.js → useBreakpoint-DQoMN-BG.js} +1 -1
- package/dist/useControlledState-CzXkZCX8.js +30 -0
- package/dist/{useFieldAccessibility-D2_Qm26-.js → useFieldAccessibility-ScC6Mtd5.js} +15 -8
- package/dist/{useFilters-kkEUFKmQ.js → useFilters-XNH27Md2.js} +1 -1
- package/dist/{useFormAutosave-BYFn3LH8.js → useFormAutosave-DfuP7drj.js} +2 -2
- package/dist/{useStaticInputHandoff-DB9PgioW.js → useStaticInputHandoff-NeZVnci-.js} +14 -11
- package/dist/useTableColumnConfig-BTGZiluz.js +892 -0
- package/dist/{useTableNav-D9mICzNW.d.ts → useTableNav-Ckj5PBRk.d.ts} +3 -2
- package/dist/{useToast-DMSm59Y6.d.ts → useToast-yreVCUer.d.ts} +1 -1
- package/package.json +31 -5
- package/src/configurator/README.md +71 -0
- package/dist/Button-sn52l1Yv.js +0 -506
- package/dist/FocusScope-CO9oJ1sc.js +0 -343
- package/dist/FormFieldHeaderTooltip-Dl24v4_j.js +0 -45
- package/dist/Link-Btxj2gzg.js +0 -42
- package/dist/PillButton-DASBXLFB.d.ts +0 -15
- package/dist/Tag-Cch_68QO.d.ts +0 -43
- package/dist/chain-DIXr2VAT.js +0 -10
- package/dist/components/pill-button.d.ts +0 -2
- package/dist/focusSafely-DCGrr2bb.js +0 -447
- package/dist/getScrollParent-kSR7EtoT.js +0 -47
- package/dist/numberStatic.utils-BMgRzyd3.js +0 -902
- package/dist/openLink-CQhMhfzO.js +0 -121
- package/dist/pillButton.cva-BEWuu0qm.d.ts +0 -34
- package/dist/pillButton.cva-DlP5tOT5.js +0 -197
- package/dist/platform-BXNIIAfU.js +0 -42
- package/dist/staticDateTimeSegments-DR8bJw-F.js +0 -3605
- package/dist/switch.cva-8T0fw31t.d.ts +0 -15
- package/dist/useControlledState-DQxX6LMN.js +0 -189
- package/dist/useFocusable-Bd0UsrQ7.js +0 -63
- package/dist/useFormValidationState-D3z-gafz.js +0 -1341
- package/dist/useLayoutEffect-B2-1tbPJ.js +0 -83
- package/dist/useSyncRef-RGMv0rXK.js +0 -338
- package/dist/useTableColumnConfig-CcJxu14U.js +0 -1625
|
@@ -1,38 +1,37 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t as UIConfig } from "./uiConfig.context-D2eUIPHn.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-CpC3wlMs.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 {
|
|
18
|
-
import { n as $2add3ce32c6007eb$export$78551043582a6a98, s as $2add3ce32c6007eb$export$fedb369cb70207f1 } from "./platform-BXNIIAfU.js";
|
|
19
|
-
import { t as $a4e76a5424781910$export$e08e3b67e392101e } from "./chain-DIXr2VAT.js";
|
|
20
|
-
import { n as $901761b40e390936$export$2bb74740c4e19def, r as $2b2d34ff061957fb$export$2b85b721e524d74b, t as $3578607fe3d4b096$export$cfa2225e87938781 } from "./getScrollParent-kSR7EtoT.js";
|
|
21
|
-
import { t as Spinner } from "./Spinner-BEYBu85B.js";
|
|
18
|
+
import "./popoverAnimation-DEZSvKP8.js";
|
|
19
|
+
import { t as Spinner } from "./Spinner-BeVTUzzx.js";
|
|
22
20
|
import { BottomSheet } from "./components/bottom-sheet.js";
|
|
23
|
-
import { t as useBreakpoint } from "./useBreakpoint-
|
|
21
|
+
import { t as useBreakpoint } from "./useBreakpoint-DQoMN-BG.js";
|
|
24
22
|
import { TextButton } from "./components/text-button.js";
|
|
25
23
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-BE0r63d8.js";
|
|
26
|
-
import { r as FormFieldLabel, t as FormField } from "./FormField-
|
|
27
|
-
import { t as Tag } from "./Tag-
|
|
24
|
+
import { r as FormFieldLabel, t as FormField } from "./FormField-B99dLt8o.js";
|
|
25
|
+
import { t as Tag } from "./Tag-DPg5sL1Z.js";
|
|
28
26
|
import "./i18n-CX2EjhJI.js";
|
|
29
|
-
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-
|
|
30
|
-
import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-
|
|
27
|
+
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-DJA8ovm_.js";
|
|
28
|
+
import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-3jyN0Wss.js";
|
|
31
29
|
import { t as useIntersectionObserver } from "./useIntersectionObserver-DYfHnGGU.js";
|
|
32
|
-
import { t as popoverDefinition } from "./popover.cva-
|
|
30
|
+
import { t as popoverDefinition } from "./popover.cva-Bhud1wnp.js";
|
|
33
31
|
import { Input } from "./components/input.js";
|
|
34
32
|
import $ahdqC$react, { Fragment, createContext, use, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
35
33
|
import { c } from "react/compiler-runtime";
|
|
34
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
36
35
|
import "react-aria/mergeProps";
|
|
37
36
|
import { CollectionBuilder } from "react-aria/CollectionBuilder";
|
|
38
37
|
import { filterDOMProps } from "react-aria/filterDOMProps";
|
|
@@ -47,33 +46,10 @@ import "react-aria/useListFormatter";
|
|
|
47
46
|
import { useVirtualizerState } from "react-stately/useVirtualizerState";
|
|
48
47
|
import { useScrollView } from "react-aria/private/virtualizer/ScrollView";
|
|
49
48
|
import { VirtualizerItem } from "react-aria/private/virtualizer/VirtualizerItem";
|
|
50
|
-
import {
|
|
49
|
+
import { usePreventScroll } from "react-aria";
|
|
51
50
|
import { useLabel } from "@react-aria/label";
|
|
52
51
|
import { useFocusVisible, useFocusWithin, useHover as useHover$1 } from "@react-aria/interactions";
|
|
53
52
|
import { useTranslation } from "react-i18next";
|
|
54
|
-
//#region ../../node_modules/.bun/lucide-react@1.43.0+83d5fd7b249dbeef/node_modules/lucide-react/dist/esm/icons/search.mjs
|
|
55
|
-
/**
|
|
56
|
-
* @license lucide-react v1.43.0 - ISC
|
|
57
|
-
*
|
|
58
|
-
* This source code is licensed under the ISC license.
|
|
59
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
-
*/
|
|
61
|
-
const __iconData = {
|
|
62
|
-
name: "search",
|
|
63
|
-
size: 24,
|
|
64
|
-
node: [["path", {
|
|
65
|
-
d: "m21 21-4.34-4.34",
|
|
66
|
-
key: "14j7rj"
|
|
67
|
-
}], ["circle", {
|
|
68
|
-
cx: "11",
|
|
69
|
-
cy: "11",
|
|
70
|
-
r: "8",
|
|
71
|
-
key: "4ej97u"
|
|
72
|
-
}]]
|
|
73
|
-
};
|
|
74
|
-
__iconData.node;
|
|
75
|
-
const Search = createLucideIcon(__iconData);
|
|
76
|
-
//#endregion
|
|
77
53
|
//#region ../../node_modules/.bun/react-aria-components@1.21.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/Group.mjs
|
|
78
54
|
const $3a442827418ebe87$export$f9c6924e160136d1 = /*#__PURE__*/ createContext({});
|
|
79
55
|
//#endregion
|
|
@@ -355,142 +331,6 @@ function $143fb904d86051ce$var$renderDropIndicatorWrapper(parent, reusableView,
|
|
|
355
331
|
return indicator;
|
|
356
332
|
}
|
|
357
333
|
//#endregion
|
|
358
|
-
//#region ../../node_modules/.bun/react-aria@3.52.1+67f6792bdf102c28/node_modules/react-aria/dist/private/utils/keyboard.mjs
|
|
359
|
-
const $bb39c0fc1c19b34c$var$nonTextInputTypes = /* @__PURE__ */ new Set([
|
|
360
|
-
"checkbox",
|
|
361
|
-
"radio",
|
|
362
|
-
"range",
|
|
363
|
-
"color",
|
|
364
|
-
"file",
|
|
365
|
-
"image",
|
|
366
|
-
"button",
|
|
367
|
-
"submit",
|
|
368
|
-
"reset"
|
|
369
|
-
]);
|
|
370
|
-
function $bb39c0fc1c19b34c$export$c57958e35f31ed73(target) {
|
|
371
|
-
return target instanceof HTMLInputElement && !$bb39c0fc1c19b34c$var$nonTextInputTypes.has(target.type) || target instanceof HTMLTextAreaElement || target instanceof HTMLElement && target.isContentEditable;
|
|
372
|
-
}
|
|
373
|
-
//#endregion
|
|
374
|
-
//#region ../../node_modules/.bun/react-aria@3.52.1+67f6792bdf102c28/node_modules/react-aria/dist/private/overlays/usePreventScroll.mjs
|
|
375
|
-
const $0644e3663365bfe5$var$visualViewport = typeof document !== "undefined" && window.visualViewport;
|
|
376
|
-
let $0644e3663365bfe5$var$preventScrollCount = 0;
|
|
377
|
-
let $0644e3663365bfe5$var$restore;
|
|
378
|
-
function $0644e3663365bfe5$export$ee0f7cc6afcd1c18(options = {}) {
|
|
379
|
-
let { isDisabled } = options;
|
|
380
|
-
$c4867b2f328c2698$export$e5c5a5f917a5871c(() => {
|
|
381
|
-
if (isDisabled) return;
|
|
382
|
-
$0644e3663365bfe5$var$preventScrollCount++;
|
|
383
|
-
if ($0644e3663365bfe5$var$preventScrollCount === 1) {
|
|
384
|
-
if ($2add3ce32c6007eb$export$fedb369cb70207f1() && $2add3ce32c6007eb$export$78551043582a6a98()) $0644e3663365bfe5$var$restore = $0644e3663365bfe5$var$preventScrollMobileWebKit();
|
|
385
|
-
else $0644e3663365bfe5$var$restore = $0644e3663365bfe5$var$preventScrollStandard();
|
|
386
|
-
}
|
|
387
|
-
return () => {
|
|
388
|
-
$0644e3663365bfe5$var$preventScrollCount--;
|
|
389
|
-
if ($0644e3663365bfe5$var$preventScrollCount === 0) $0644e3663365bfe5$var$restore();
|
|
390
|
-
};
|
|
391
|
-
}, [isDisabled]);
|
|
392
|
-
}
|
|
393
|
-
function $0644e3663365bfe5$var$preventScrollStandard() {
|
|
394
|
-
let scrollbarWidth = window.innerWidth - document.documentElement.clientWidth;
|
|
395
|
-
return $a4e76a5424781910$export$e08e3b67e392101e(scrollbarWidth > 0 && ("scrollbarGutter" in document.documentElement.style ? $d447af545b77c9f1$export$37a5fde709c1db82(document.documentElement, "scrollbar-gutter", "stable") : $d447af545b77c9f1$export$37a5fde709c1db82(document.documentElement, "padding-right", `${scrollbarWidth}px`)), $d447af545b77c9f1$export$37a5fde709c1db82(document.documentElement, "overflow", "hidden"));
|
|
396
|
-
}
|
|
397
|
-
function $0644e3663365bfe5$var$preventScrollMobileWebKit() {
|
|
398
|
-
let restoreOverflow = $d447af545b77c9f1$export$37a5fde709c1db82(document.documentElement, "overflow", "hidden");
|
|
399
|
-
let scrollable;
|
|
400
|
-
let allowTouchMove = false;
|
|
401
|
-
let onTouchStart = (e) => {
|
|
402
|
-
let target = $23f2114a1b82827e$export$e58f029f0fbfdb29(e);
|
|
403
|
-
scrollable = $901761b40e390936$export$2bb74740c4e19def(target) ? target : $3578607fe3d4b096$export$cfa2225e87938781(target, true);
|
|
404
|
-
allowTouchMove = false;
|
|
405
|
-
let selection = target.ownerDocument.defaultView.getSelection();
|
|
406
|
-
if (selection && !selection.isCollapsed && selection.containsNode(target, true)) allowTouchMove = true;
|
|
407
|
-
if (e.composedPath().some((el) => el instanceof HTMLInputElement && el.type === "range")) allowTouchMove = true;
|
|
408
|
-
if ("selectionStart" in target && "selectionEnd" in target && target.selectionStart < target.selectionEnd && target.ownerDocument.activeElement === target) allowTouchMove = true;
|
|
409
|
-
};
|
|
410
|
-
let style = document.createElement("style");
|
|
411
|
-
let nonce = $2b2d34ff061957fb$export$2b85b721e524d74b();
|
|
412
|
-
if (nonce) style.nonce = nonce;
|
|
413
|
-
style.textContent = `
|
|
414
|
-
@layer {
|
|
415
|
-
* {
|
|
416
|
-
overscroll-behavior: contain;
|
|
417
|
-
}
|
|
418
|
-
}`.trim();
|
|
419
|
-
document.head.prepend(style);
|
|
420
|
-
let onTouchMove = (e) => {
|
|
421
|
-
if (e.touches.length === 2 || allowTouchMove) return;
|
|
422
|
-
if (!scrollable || scrollable === document.documentElement || scrollable === document.body) {
|
|
423
|
-
e.preventDefault();
|
|
424
|
-
return;
|
|
425
|
-
}
|
|
426
|
-
if (scrollable.scrollHeight === scrollable.clientHeight && scrollable.scrollWidth === scrollable.clientWidth) e.preventDefault();
|
|
427
|
-
};
|
|
428
|
-
let onBlur = (e) => {
|
|
429
|
-
let target = $23f2114a1b82827e$export$e58f029f0fbfdb29(e);
|
|
430
|
-
let relatedTarget = e.relatedTarget;
|
|
431
|
-
if (relatedTarget && $bb39c0fc1c19b34c$export$c57958e35f31ed73(relatedTarget)) {
|
|
432
|
-
relatedTarget.focus({ preventScroll: true });
|
|
433
|
-
$0644e3663365bfe5$var$scrollIntoViewWhenReady(relatedTarget, $bb39c0fc1c19b34c$export$c57958e35f31ed73(target));
|
|
434
|
-
} else if (!relatedTarget) (target.parentElement?.closest("[tabindex]"))?.focus({ preventScroll: true });
|
|
435
|
-
};
|
|
436
|
-
let focus = HTMLElement.prototype.focus;
|
|
437
|
-
Reflect.defineProperty(HTMLElement.prototype, "focus", {
|
|
438
|
-
configurable: true,
|
|
439
|
-
writable: true,
|
|
440
|
-
value: function(opts) {
|
|
441
|
-
let activeElement = $23f2114a1b82827e$export$cd4e5573fbe2b576();
|
|
442
|
-
let wasKeyboardVisible = activeElement != null && $bb39c0fc1c19b34c$export$c57958e35f31ed73(activeElement);
|
|
443
|
-
focus.call(this, {
|
|
444
|
-
...opts,
|
|
445
|
-
preventScroll: true
|
|
446
|
-
});
|
|
447
|
-
if (!opts || !opts.preventScroll) $0644e3663365bfe5$var$scrollIntoViewWhenReady(this, wasKeyboardVisible);
|
|
448
|
-
}
|
|
449
|
-
});
|
|
450
|
-
let removeEvents = $a4e76a5424781910$export$e08e3b67e392101e($d447af545b77c9f1$export$f531f92e2a15358f(document, "touchstart", onTouchStart, {
|
|
451
|
-
passive: false,
|
|
452
|
-
capture: true
|
|
453
|
-
}), $d447af545b77c9f1$export$f531f92e2a15358f(document, "touchmove", onTouchMove, {
|
|
454
|
-
passive: false,
|
|
455
|
-
capture: true
|
|
456
|
-
}), $d447af545b77c9f1$export$f531f92e2a15358f(document, "blur", onBlur, true));
|
|
457
|
-
return () => {
|
|
458
|
-
restoreOverflow();
|
|
459
|
-
removeEvents();
|
|
460
|
-
style.remove();
|
|
461
|
-
Reflect.defineProperty(HTMLElement.prototype, "focus", {
|
|
462
|
-
configurable: true,
|
|
463
|
-
writable: true,
|
|
464
|
-
value: focus
|
|
465
|
-
});
|
|
466
|
-
};
|
|
467
|
-
}
|
|
468
|
-
function $0644e3663365bfe5$var$scrollIntoViewWhenReady(target, wasKeyboardVisible) {
|
|
469
|
-
if (wasKeyboardVisible || !$0644e3663365bfe5$var$visualViewport) $0644e3663365bfe5$var$scrollIntoView(target);
|
|
470
|
-
else $0644e3663365bfe5$var$visualViewport.addEventListener("resize", () => $0644e3663365bfe5$var$scrollIntoView(target), { once: true });
|
|
471
|
-
}
|
|
472
|
-
function $0644e3663365bfe5$var$scrollIntoView(target) {
|
|
473
|
-
let root = document.scrollingElement || document.documentElement;
|
|
474
|
-
let nextTarget = target;
|
|
475
|
-
while (nextTarget && nextTarget !== root) {
|
|
476
|
-
let scrollable = $3578607fe3d4b096$export$cfa2225e87938781(nextTarget);
|
|
477
|
-
if (scrollable !== document.documentElement && scrollable !== document.body && scrollable !== nextTarget) {
|
|
478
|
-
let scrollableRect = scrollable.getBoundingClientRect();
|
|
479
|
-
let targetRect = nextTarget.getBoundingClientRect();
|
|
480
|
-
if (targetRect.top < scrollableRect.top || targetRect.bottom > scrollableRect.top + nextTarget.clientHeight) {
|
|
481
|
-
let bottom = scrollableRect.bottom;
|
|
482
|
-
if ($0644e3663365bfe5$var$visualViewport) bottom = Math.min(bottom, $0644e3663365bfe5$var$visualViewport.offsetTop + $0644e3663365bfe5$var$visualViewport.height);
|
|
483
|
-
let adjustment = targetRect.top - scrollableRect.top - ((bottom - scrollableRect.top) / 2 - targetRect.height / 2);
|
|
484
|
-
scrollable.scrollTo({
|
|
485
|
-
top: Math.max(0, Math.min(scrollable.scrollHeight - scrollable.clientHeight, scrollable.scrollTop + adjustment)),
|
|
486
|
-
behavior: "smooth"
|
|
487
|
-
});
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
nextTarget = scrollable.parentElement;
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
//#endregion
|
|
494
334
|
//#region src/components/inputs/Selection/shared/SelectInputTags.tsx
|
|
495
335
|
const SelectInputTags = ({ selectedItems, isDisabled, selectedTagsType, collapseAfter, onRemove }) => {
|
|
496
336
|
const { displayedItems, remainingCount } = useMemo(() => {
|
|
@@ -883,12 +723,6 @@ let SelectContext;
|
|
|
883
723
|
};
|
|
884
724
|
})(SelectContext || (SelectContext = {}));
|
|
885
725
|
//#endregion
|
|
886
|
-
//#region src/components/inputs/Selection/shared/selectInput.cva.ts
|
|
887
|
-
const selectInputTagsContentWrapperDefinition = UIOverrides.defineConfig({
|
|
888
|
-
base: ["flex flex-1 flex-wrap gap-input-gap-input-text-to-elements truncate"],
|
|
889
|
-
config: { variants: { isSearchable: { false: "pointer-events-none z-raised" } } }
|
|
890
|
-
});
|
|
891
|
-
//#endregion
|
|
892
726
|
//#region src/hooks/useKeyInteractions.ts
|
|
893
727
|
const KEY_TO_ACTION = {
|
|
894
728
|
ArrowUp: "up",
|
|
@@ -1127,50 +961,17 @@ const SelectInput = ({ ref, placeholder, variant, as, size, isDisabled, isInvali
|
|
|
1127
961
|
onPress: () => {
|
|
1128
962
|
if (!isSearchable) setIsOpen(!isOpen);
|
|
1129
963
|
},
|
|
1130
|
-
children: /* @__PURE__ */ jsx(
|
|
1131
|
-
|
|
1132
|
-
"
|
|
1133
|
-
|
|
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"
|
|
1134
969
|
})
|
|
1135
970
|
})
|
|
1136
971
|
]
|
|
1137
972
|
});
|
|
1138
973
|
};
|
|
1139
974
|
//#endregion
|
|
1140
|
-
//#region src/components/inputs/Selection/shared/selectItem.cva.ts
|
|
1141
|
-
const selectListBoxItemDefinition = UIOverrides.defineConfig({
|
|
1142
|
-
base: [
|
|
1143
|
-
"group flex cursor-pointer items-center gap-2 px-list-side-item-left py-list-height-item",
|
|
1144
|
-
"border-b border-b-border-default-subtle outline-none bg-support-transparent-outline",
|
|
1145
|
-
"font-body font-normal text-small",
|
|
1146
|
-
"disabled:cursor-default",
|
|
1147
|
-
"focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-interactive-ring"
|
|
1148
|
-
],
|
|
1149
|
-
config: {
|
|
1150
|
-
variants: {
|
|
1151
|
-
isSingle: {
|
|
1152
|
-
false: "",
|
|
1153
|
-
true: "selected:bg-interactive-primary-background selected:text-interactive-primary-foreground selected:disabled:text-tint-interactive-primary-foreground/50"
|
|
1154
|
-
},
|
|
1155
|
-
isNewItem: {
|
|
1156
|
-
true: "text-interactive-primary-background disabled:text-tint-interactive-primary-background/50",
|
|
1157
|
-
false: "text-surface-default-foreground disabled:text-tint-surface-default-foreground/50"
|
|
1158
|
-
}
|
|
1159
|
-
},
|
|
1160
|
-
compoundVariants: [{
|
|
1161
|
-
isSingle: false,
|
|
1162
|
-
className: ["not-disabled:not-focus-visible:hover:bg-tint-interactive-subtle-secondary-background/80 not-disabled:not-focus-visible:hover:text-tint-interactive-subtle-secondary-foreground/80", "not-disabled:focus-visible:bg-tint-interactive-subtle-secondary-background/60 not-disabled:focus-visible:text-tint-interactive-subtle-secondary-foreground/60"]
|
|
1163
|
-
}, {
|
|
1164
|
-
isSingle: true,
|
|
1165
|
-
className: ["not-selected:not-disabled:not-focus-visible:hover:bg-tint-interactive-subtle-secondary-background/80 not-selected:not-disabled:not-focus-visible:hover:text-tint-interactive-subtle-secondary-foreground/80", "not-selected:not-disabled:focus-visible:bg-tint-interactive-subtle-secondary-background/60 not-selected:not-disabled:focus-visible:text-tint-interactive-subtle-secondary-foreground/60"]
|
|
1166
|
-
}],
|
|
1167
|
-
defaultVariants: {
|
|
1168
|
-
isSingle: false,
|
|
1169
|
-
isNewItem: false
|
|
1170
|
-
}
|
|
1171
|
-
}
|
|
1172
|
-
});
|
|
1173
|
-
//#endregion
|
|
1174
975
|
//#region src/components/inputs/Selection/shared/SelectListBoxItem.tsx
|
|
1175
976
|
const SelectListBoxItem = ({ isSearchable, isNewItem, newItemRender, id, label, content, isDisabled }) => {
|
|
1176
977
|
const selectListItemCva = UIOverrides.useCva("select.listBoxItemCva", selectListBoxItemDefinition);
|
|
@@ -1419,9 +1220,6 @@ const SelectListBox = ({ label, selectionMode, isSearchable, isScrollable = true
|
|
|
1419
1220
|
});
|
|
1420
1221
|
};
|
|
1421
1222
|
//#endregion
|
|
1422
|
-
//#region src/components/inputs/Selection/shared/selectDesktop.cva.ts
|
|
1423
|
-
const selectPopoverDefinition = UIOverrides.defineConfig({ base: ["my-4 outline-none"] });
|
|
1424
|
-
//#endregion
|
|
1425
1223
|
//#region src/components/inputs/Selection/shared/SelectDesktop.tsx
|
|
1426
1224
|
const SelectDesktop = ({ ref, error, ignoreTriggerWidth, showSelectionContent, inputClassName, containerClassName, leadingContent, trailingContent, customTrigger, onBlur, onMouseEnter, onFocusCapture, ...props }) => {
|
|
1427
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;
|
|
@@ -1448,7 +1246,7 @@ const SelectDesktop = ({ ref, error, ignoreTriggerWidth, showSelectionContent, i
|
|
|
1448
1246
|
const [popoverWidth, setPopoverWidth] = useState(void 0);
|
|
1449
1247
|
const [isPopoverAbove, setIsPopoverAbove] = useState(false);
|
|
1450
1248
|
const { fieldState, isOpen, setIsOpen, onInputChange, onChange, onClear, onSelectAll, listItems, selectableListItems, selectedIds, isMultiple } = SelectContext.useSelect();
|
|
1451
|
-
|
|
1249
|
+
usePreventScroll({ isDisabled: !isOpen });
|
|
1452
1250
|
useLayoutEffect(() => {
|
|
1453
1251
|
if (!isOpen || !wrapperRef.current) return;
|
|
1454
1252
|
setPopoverWidth(wrapperRef.current.getBoundingClientRect().width);
|
|
@@ -1582,7 +1380,7 @@ const SelectDesktop = ({ ref, error, ignoreTriggerWidth, showSelectionContent, i
|
|
|
1582
1380
|
triggerRef,
|
|
1583
1381
|
isOpen,
|
|
1584
1382
|
onOpenChange: setIsOpen,
|
|
1585
|
-
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({})),
|
|
1586
1384
|
style: { width: !ignoreTriggerWidth ? popoverWidth : void 0 },
|
|
1587
1385
|
offset: 0,
|
|
1588
1386
|
children: /* @__PURE__ */ jsx(SelectListBox, {
|
|
@@ -1604,7 +1402,10 @@ const FormFieldHeaderClose = ({ onClose }) => {
|
|
|
1604
1402
|
onPress: onClose,
|
|
1605
1403
|
"aria-label": t(($) => $.ui.closeAlt),
|
|
1606
1404
|
className: "shrink-0 focus-visible:outline-interactive-ring",
|
|
1607
|
-
children: /* @__PURE__ */ jsx(
|
|
1405
|
+
children: /* @__PURE__ */ jsx(IconSlot, {
|
|
1406
|
+
icon: X,
|
|
1407
|
+
className: "text-surface-default-foreground"
|
|
1408
|
+
})
|
|
1608
1409
|
});
|
|
1609
1410
|
};
|
|
1610
1411
|
//#endregion
|
|
@@ -1783,9 +1584,10 @@ const StaticSelectTrailingContent = ({ trailingContent, hideDropdownIcon, size }
|
|
|
1783
1584
|
tabIndex: -1,
|
|
1784
1585
|
className: clsx("self-stretch border-0! pl-1.5 outline-none", inputSizeCva({ size })),
|
|
1785
1586
|
"aria-hidden": "true",
|
|
1786
|
-
children: /* @__PURE__ */ jsx(
|
|
1787
|
-
|
|
1788
|
-
|
|
1587
|
+
children: /* @__PURE__ */ jsx(IconSlot, {
|
|
1588
|
+
icon: ChevronDown,
|
|
1589
|
+
className: "text-inherit",
|
|
1590
|
+
iconClassName: "fill-current stroke-0"
|
|
1789
1591
|
})
|
|
1790
1592
|
}) : void 0] });
|
|
1791
1593
|
};
|
|
@@ -1841,4 +1643,4 @@ const getStaticSelectValue = ({ items, value, selectionMode, initialSelection, m
|
|
|
1841
1643
|
};
|
|
1842
1644
|
};
|
|
1843
1645
|
//#endregion
|
|
1844
|
-
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 };
|
|
@@ -1,32 +1,20 @@
|
|
|
1
|
-
/* /
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
@utility bg-tint-* {
|
|
6
|
-
background-color: color-mix(in srgb, --value(--color-*) calc(--modifier(integer) * 1%), white);
|
|
1
|
+
/* Example: hover:bg-state-interactive-primary-background/hover */
|
|
2
|
+
@utility bg-state-* {
|
|
3
|
+
background-color: color-mix(in srgb, --value(--color-*), --modifier(--state-color-*) --modifier(--state-opacity-*));
|
|
7
4
|
}
|
|
8
5
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
background-color: color-mix(in srgb, --value(--color-*) calc(--modifier(integer) * 1%), black);
|
|
6
|
+
@utility border-state-* {
|
|
7
|
+
border-color: color-mix(in srgb, --value(--color-*), --modifier(--state-color-*) --modifier(--state-opacity-*));
|
|
12
8
|
}
|
|
13
9
|
|
|
14
|
-
@utility border-
|
|
15
|
-
border-color: color-mix(
|
|
10
|
+
@utility border-b-state-* {
|
|
11
|
+
border-bottom-color: color-mix(
|
|
12
|
+
in srgb,
|
|
13
|
+
--value(--color-*),
|
|
14
|
+
--modifier(--state-color-*) --modifier(--state-opacity-*)
|
|
15
|
+
);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
@utility
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@utility border-b-tint-* {
|
|
23
|
-
border-bottom-color: color-mix(in srgb, --value(--color-*) calc(--modifier(integer) * 1%), white);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@utility text-tint-* {
|
|
27
|
-
color: color-mix(in srgb, --value(--color-*) calc(--modifier(integer) * 1%), white);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@utility text-shade-* {
|
|
31
|
-
color: color-mix(in srgb, --value(--color-*) calc(--modifier(integer) * 1%), black);
|
|
18
|
+
@utility text-state-* {
|
|
19
|
+
color: color-mix(in srgb, --value(--color-*), --modifier(--state-color-*) --modifier(--state-opacity-*));
|
|
32
20
|
}
|