@povio/ui 5.0.0-rc.9 → 5.0.1-rc.1
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/README.md +272 -58
- package/dist/{Accordion-BzwO4_ml.js → Accordion-ORBin0EZ.js} +13 -119
- package/dist/{Alert-DfiJbKH0.d.ts → Alert-24ruR0iF.d.ts} +3 -3
- package/dist/{AlertDialog-OWTbR4km.d.ts → AlertDialog-Co3gNMwE.d.ts} +3 -3
- package/dist/Autocomplete-BQ9ZQoJt.d.ts +23 -0
- package/dist/Autocomplete-XP-Qdlrm.js +145 -0
- package/dist/Autocomplete.bound-DCbFBXjJ.d.ts +9 -0
- package/dist/Autocomplete.bound-DFL87TOZ.js +28 -0
- package/dist/{Badge-CBNpj823.d.ts → Badge-DZLVacMd.d.ts} +2 -2
- package/dist/{BadgeButton-Ccgt3oGO.d.ts → BadgeButton-coK9Fzoc.d.ts} +2 -2
- package/dist/{BottomSheet-DbQuzfAB.d.ts → BottomSheet-BlcmdfAT.d.ts} +1 -1
- package/dist/{BottomSheet-BXLE3161.js → BottomSheet-CGipksM_.js} +12 -86
- package/dist/{BottomSheet.lazy-D9LCEo7s.d.ts → BottomSheet.lazy-CGjuurej.d.ts} +1 -1
- package/dist/{Breadcrumbs-CUV6CU8Q.d.ts → Breadcrumbs-DfREVuAC.d.ts} +1 -1
- package/dist/{Breadcrumbs-FF8hMfXd.js → Breadcrumbs-a1-q_he0.js} +20 -17
- package/dist/{Button-D6KlWSFL.js → Button-C1YB5dOw.js} +3 -3
- package/dist/Button-Cphxmj43.d.ts +13 -0
- package/dist/Button-dRFJundh.js +16 -0
- package/dist/ButtonBase-BCYFCbSV.js +87 -0
- package/dist/ButtonBase-CfSqmiom.d.ts +32 -0
- package/dist/{ButtonContent-c7lJayVQ.js → ButtonContent-Dztbuz3q.js} +5 -14
- package/dist/{Calendar-BTjajO6i.js → Calendar-DLlUsZP2.js} +29 -181
- package/dist/Calendar.lazy-Bl5amf0W.js +131 -0
- package/dist/{CheckContent-D7sZPmzx.js → CheckContent-BKLnTPZr.js} +2 -2
- package/dist/{Checkbox-DVTWaMKa.d.ts → Checkbox-D2VVq5Bi.d.ts} +9 -8
- package/dist/{Checkbox-CV1ILXXO.js → Checkbox-DYeofZzs.js} +21 -38
- package/dist/Checkbox.bound-DQYJMtCs.js +33 -0
- package/dist/Checkbox.bound-Hdvnrnwb.d.ts +9 -0
- package/dist/CheckboxCheckmark-DYhxLfZN.js +25 -0
- package/dist/CheckboxGroup-CK_tTvvI.js +141 -0
- package/dist/CheckboxGroup-CTkBMnBN.d.ts +30 -0
- package/dist/CheckboxGroup.bound-C6e91DCT.d.ts +9 -0
- package/dist/CheckboxGroup.bound-wGcpw5tY.js +32 -0
- package/dist/ComboBox-ChsdI0lt.js +212 -0
- package/dist/{DatePicker-8xSs_jNd.d.ts → DatePicker-1VbVBI4l.d.ts} +21 -10
- package/dist/{DatePicker-DOLL7mkc.js → DatePicker-CqkS8dCf.js} +49 -55
- package/dist/DatePicker.bound-Bg524WMN.js +36 -0
- package/dist/DatePicker.bound-ZvJi_V8D.d.ts +9 -0
- package/dist/{DatePickerInput-D81ZJ3fT.d.ts → DatePickerInput-B8UhMVP6.d.ts} +3 -3
- package/dist/{DatePickerInput-BLBcySA2.js → DatePickerInput-jrCYehXn.js} +69 -302
- package/dist/{DateRangePicker-Bfq-yDm7.d.ts → DateRangePicker-B8O8nA1M.d.ts} +30 -10
- package/dist/{DateRangePicker-BF-1CztH.js → DateRangePicker-DfLnonW1.js} +168 -354
- package/dist/DateRangePicker.bound-B_Lg8Tna.d.ts +9 -0
- package/dist/DateRangePicker.bound-Cahr-3cK.js +35 -0
- package/dist/{DateTimePicker-Cj0qvJUz.js → DateTimePicker-BL8koIhS.js} +49 -49
- package/dist/{DateTimePicker-D4lHyf6P.d.ts → DateTimePicker-BRy_VN63.d.ts} +21 -11
- package/dist/DateTimePicker.bound-BheJ0Rny.js +32 -0
- package/dist/DateTimePicker.bound-Bt9wdYeR.d.ts +9 -0
- package/dist/{Dialog-9manOgMA.js → Dialog-B10YV23i.js} +13 -10
- package/dist/{Dialog-CKLkS00H.js → Dialog-C9H9_BmK.js} +53 -29
- package/dist/Dialog-CDiUZFcf.d.ts +21 -0
- package/dist/Disclosure-BRSkMbZQ.js +109 -0
- package/dist/{DropdownMenu-5jmtgLXd.js → DropdownMenu-DS0RaEfH.js} +13 -31
- package/dist/DropdownMenu-oJzwpMXL.d.ts +25 -0
- package/dist/{DropdownMenuDesktop-Cl9gZVq0.js → DropdownMenuDesktop-DGPIfex-.js} +7 -28
- package/dist/{FileInput-Br5DQaGQ.js → FileInput-3wNdotBt.js} +37 -50
- package/dist/{FileInput-C4CE5kuP.d.ts → FileInput-Bm3_nNb4.d.ts} +26 -22
- package/dist/FileInput.bound-CJdou4D6.js +30 -0
- package/dist/FileInput.bound-puNboLYc.d.ts +8 -0
- package/dist/{FileTrigger-Cthk5_Wp.js → FileTrigger-DlryDp2T.js} +6 -6
- package/dist/{FileUpload--7ub3EZO.js → FileUpload-C3IMKBRp.js} +279 -249
- package/dist/FileUpload-ksjKICmv.d.ts +11 -0
- package/dist/FileUpload.bound-Bf4LzJUU.js +30 -0
- package/dist/FileUpload.bound-D4sr1tsH.d.ts +16 -0
- package/dist/{FileUploadContainer-042ztsaL.d.ts → FileUploadContainer-DRIxUmp2.d.ts} +1 -1
- package/dist/{Form-DlQcyN1f.js → Form-CqF1SaVw.js} +2 -2
- package/dist/{FormField-Byiehm9y.d.ts → FormField-DHCcfchm.d.ts} +7 -2
- package/dist/FormField-dduTMkNH.js +142 -0
- package/dist/{FormFieldError-DeOHHLo2.js → FormFieldError-DTT5TUQ1.js} +3 -14
- package/dist/{FormFieldHeaderTooltip-BV2Ju4oB.js → FormFieldHeaderTooltip-Dt-g40Tc.js} +4 -4
- package/dist/FormLayout-CBYgWvwW.d.ts +47 -0
- package/dist/{Heading-nI1_VOaE.js → Heading-D4XFYv__.js} +2 -2
- package/dist/IconButton-BqmX_sMz.d.ts +25 -0
- package/dist/{IconSlot-DSK7qNxc.js → IconSlot-CqNuZl0E.js} +4 -4
- package/dist/{iconSlot.cva-CnpFzAOR.d.ts → IconSlot-DcEDPaNb.d.ts} +3 -10
- package/dist/{InlineTooltipWrapper-BpApaGXV.js → InlineTooltipWrapper-CKTiFpZn.js} +3 -3
- package/dist/{Input-BsbLZDtC.js → Input-BG0Xjw5X.js} +2 -2
- package/dist/{Input-DOanwj3l.d.ts → Input-DKNzGXy-.d.ts} +16 -9
- package/dist/Input-DRR8_MgG.js +248 -0
- package/dist/Input.bound-3CTdQnA8.js +31 -0
- package/dist/Input.bound-BxngTsaq.d.ts +9 -0
- package/dist/InputContent-BkNnqXt3.js +104 -0
- package/dist/{InputContent-CXuP1ghQ.d.ts → InputContent-C5wdgK9u.d.ts} +5 -5
- package/dist/{Label-B2-B-uFY.js → Label-BGvF9vWx.js} +2 -2
- package/dist/{Link-FupWOW1f.js → Link-Chux-Clm.js} +2 -2
- package/dist/{Link-Ow9H7kNv.d.ts → Link-n1MxiBY_.d.ts} +5 -3
- package/dist/{ListBox-CL8Ar4Q_.js → ListBox-DhR5kojP.js} +10 -11
- package/dist/{MenuItem-DHyqOqln.d.ts → MenuItem-Cj7ytjH0.d.ts} +1 -1
- package/dist/{Modal-w60dVQcb.js → Modal-DcLWF9cB.js} +58 -20
- package/dist/{NumberField-Cb9Gf6QJ.d.ts → NumberField-BUTmx-kv.d.ts} +13 -9
- package/dist/NumberField-OjtbK2Uh.js +250 -0
- package/dist/NumberField.bound-D-uZoLYH.js +32 -0
- package/dist/NumberField.bound-DhGXXd4v.d.ts +9 -0
- package/dist/{NumberFormatter-CLDS_LRZ.js → NumberFormatter-DYarfm5F.js} +2 -36
- package/dist/{NumberRangeInput-BfbJQqzn.d.ts → NumberRangeInput-BwUPbB0M.d.ts} +13 -8
- package/dist/{NumberRangeInput-B8-LHfg3.js → NumberRangeInput-EKzbxaN0.js} +30 -56
- package/dist/NumberRangeInput.bound-CmXDNvF1.js +32 -0
- package/dist/NumberRangeInput.bound-j_WC6iJC.d.ts +9 -0
- package/dist/{OverlayArrow-D8z7cCsw.js → OverlayArrow-DF0jMwul.js} +2 -2
- package/dist/PageHeader-DtV-4JEh.d.ts +61 -0
- package/dist/PasswordInput-DNt_CfI8.d.ts +11 -0
- package/dist/{PasswordInput-CLwFUgl0.d.ts → PasswordInput.bound-EOqjNEVC.d.ts} +5 -6
- package/dist/PasswordInput.bound-lnJeVf4k.js +23 -0
- package/dist/{Popover-BTHPteIh.d.ts → Popover-DRqROtxR.d.ts} +2 -2
- package/dist/{Progress-B3mY9rIP.js → Progress-RiEGGxNG.js} +4 -29
- package/dist/{Progress-CjWOR38H.d.ts → Progress-uzAAtLNk.d.ts} +4 -4
- package/dist/{RadioGroup-DOw3PRoX.js → RadioGroup-Dvq0TiEB.js} +18 -120
- package/dist/RadioGroup-skcBf54J.d.ts +26 -0
- package/dist/RadioGroup.bound-CpxN2p6t.d.ts +9 -0
- package/dist/RadioGroup.bound-Dya9IgZr.js +32 -0
- package/dist/RangeCalendar-BuRiCB7z.js +315 -0
- package/dist/RichTextEditor-B9zaBMWl.d.ts +28 -0
- package/dist/{RichTextEditor-D4yN7Wj7.js → RichTextEditor-Cg-S5lhK.js} +66 -370
- package/dist/Select-DNF-GpuC.d.ts +137 -0
- package/dist/{staticSelect.utils-uHa8f_c6.js → Select-DfgTo2X3.js} +343 -635
- package/dist/Select.bound-CpN6KalY.d.ts +17 -0
- package/dist/Select.bound-XC8lgM6E.js +34 -0
- package/dist/SelectListBox-B_bqWSLU.js +399 -0
- package/dist/SelectionIndicator-C3hniBa2.js +18 -0
- package/dist/SharedElementTransition-CZ2bE7yo.js +96 -0
- package/dist/SidebarWorkspaces-DJknAfS9.js +1298 -0
- package/dist/SidebarWorkspaces-Drgog0IO.d.ts +132 -0
- package/dist/{Slider-CzEmKYBF.js → Slider-DCsCCPFx.js} +18 -42
- package/dist/{Slider-EYlGCLWe.d.ts → Slider-JlRCD72s.d.ts} +9 -8
- package/dist/Slider.bound-BChOUGvm.d.ts +9 -0
- package/dist/Slider.bound-DO1l_qJQ.js +31 -0
- package/dist/{Spinner-DbXeDOa2.d.ts → Spinner-DNguPtBP.d.ts} +5 -5
- package/dist/{Spinner-BeVTUzzx.js → Spinner-DqjP06T1.js} +29 -41
- package/dist/{SplitButton-D9ngY1rJ.d.ts → SplitButton-BTuc5oYU.d.ts} +3 -3
- package/dist/{Stepper-TATlHZhQ.d.ts → Stepper-DNu5YlbG.d.ts} +18 -18
- package/dist/{Stepper-Cp5vbL5g.js → Stepper-Dyhxp0Tl.js} +14 -13
- package/dist/{Switch-CqnGEdeD.js → Switch-BfpSMMpv.js} +10 -59
- package/dist/Switch-CVt-dT9Z.d.ts +24 -0
- package/dist/Switch.bound-56C86rOe.d.ts +9 -0
- package/dist/Switch.bound-D8QsLsS4.js +33 -0
- package/dist/TableRowDetails-A_FdBE_d.d.ts +109 -0
- package/dist/TabsFilters-BDoCGfRA.d.ts +30 -0
- package/dist/TabsFilters-DtZrvnTC.js +223 -0
- package/dist/Tag-BxYYX-i7.d.ts +44 -0
- package/dist/{Text-D2MPZ3sY.js → Text-D72yc4S6.js} +1 -1
- package/dist/{TextArea-l_keyLK7.d.ts → TextArea-DxAHDgz4.d.ts} +11 -9
- package/dist/{TextArea-D8WkKsGn.js → TextArea-nySHbed0.js} +33 -35
- package/dist/TextArea.bound-DbSMg_Kz.js +28 -0
- package/dist/TextArea.bound-oSnqk1Un.d.ts +9 -0
- package/dist/TextArea.cva-ENXI55ec.js +5 -0
- package/dist/{TimePicker-C4taAOFQ.js → TimePicker-Fnj3QZ3G.js} +70 -58
- package/dist/TimePicker-Yg84ntZH.d.ts +45 -0
- package/dist/TimePicker.bound-5b_qcmeo.d.ts +9 -0
- package/dist/TimePicker.bound-DLflOXZm.js +32 -0
- package/dist/{datePickerValue.utils-DCgoSrP3.js → TimePickerForm-Bv8S3M_p.js} +23 -19
- package/dist/{Toast-ruXqONDA.d.ts → Toast-DbIZorlS.d.ts} +1 -1
- package/dist/{ToastContainer-qgpzMFD4.js → ToastContainer-DtpZaefx.js} +5 -5
- package/dist/ToggleButton-CdcLn-PW.d.ts +17 -0
- package/dist/{ToggleButton-BW1ensey.js → ToggleButton-P1z1pxzT.js} +5 -5
- package/dist/ToggleGroup-Cbx9Keza.d.ts +42 -0
- package/dist/ToggleGroup-Co1-A0Ti.js +333 -0
- package/dist/ToggleGroup.bound-DNxhSz1h.js +67 -0
- package/dist/ToggleGroup.bound-dDLGgcJm.d.ts +9 -0
- package/dist/Tooltip-Bg9AFtGw.d.ts +16 -0
- package/dist/{Tooltip-CpG1nz7Y.js → Tooltip-DRB6lo0U.js} +10 -11
- package/dist/{TooltipWrapper-3jyN0Wss.js → TooltipWrapper-DmcWMIp0.js} +21 -10
- package/dist/{Typography-LU4z2pR1.js → Typography-DCLnPa3P.js} +2 -2
- package/dist/{Typography-XljT9s02.d.ts → Typography-MkA6LnHW.d.ts} +2 -2
- package/dist/{accordion.cva-CL1bVscW.js → accordion.cva-DwxY-k1e.js} +17 -25
- package/dist/{badgeButton.cva-B2bgCQP6.d.ts → badgeButton.cva-Bjhs4ops.d.ts} +8 -8
- package/dist/badgeButton.cva-CqaR8KBt.js +138 -0
- package/dist/{breadcrumbs.cva-7zzdDhVR.js → breadcrumbs.cva-CnBIZUB3.js} +9 -9
- package/dist/button.cva-CMkwxrFU.js +263 -0
- package/dist/{button.cva-C7kEhgoA.d.ts → button.cva-DoDFPTm5.d.ts} +18 -17
- package/dist/{buttonContent.cva-DPIlROA9.d.ts → buttonContent.cva-Dj7Eve71.d.ts} +2 -2
- package/dist/checkbox.cva-Bj7bLZNf.js +128 -0
- package/dist/{checkbox.cva-t1Ox50hy.d.ts → checkbox.cva-DUvQJdT-.d.ts} +7 -7
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.d.ts +1 -1
- package/dist/components/alert-dialog.js +102 -100
- package/dist/components/alert.d.ts +1 -1
- package/dist/components/alert.js +116 -1
- package/dist/components/autocomplete.d.ts +2 -2
- package/dist/components/autocomplete.js +1 -134
- package/dist/components/badge-button.d.ts +1 -1
- package/dist/components/badge-button.js +6 -6
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.js +10 -10
- package/dist/components/bottom-sheet-header.d.ts +16 -0
- package/dist/components/bottom-sheet-header.js +80 -0
- package/dist/components/bottom-sheet.d.ts +2 -2
- package/dist/components/bottom-sheet.js +3 -3
- package/dist/components/breadcrumb/react-aria.js +1 -1
- package/dist/components/breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/button-group.d.ts +12 -0
- package/dist/components/button-group.js +46 -0
- package/dist/components/button.d.ts +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/checkbox-group.d.ts +2 -2
- package/dist/components/checkbox-group.js +1 -163
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/checkbox.js +2 -2
- package/dist/components/combo-box/react-aria.js +1 -1
- package/dist/components/date-picker/react-aria.js +1 -1
- package/dist/components/date-picker.d.ts +2 -2
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker/react-aria.js +1 -1
- package/dist/components/date-range-picker.d.ts +16 -2
- package/dist/components/date-range-picker.js +2 -2
- package/dist/components/date-time-picker.d.ts +2 -2
- package/dist/components/date-time-picker.js +1 -1
- package/dist/components/dialog-trigger/react-aria.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 +2 -2
- 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 +3 -3
- package/dist/components/file-upload.js +1 -1
- package/dist/components/form-field.d.ts +1 -1
- package/dist/components/form-field.js +1 -1
- package/dist/components/form-layout.d.ts +2 -0
- package/dist/components/form-layout.js +80 -0
- package/dist/components/icon-button.d.ts +1 -1
- package/dist/components/icon-button.js +17 -15
- package/dist/components/icon-slot.d.ts +2 -1
- package/dist/components/icon-slot.js +1 -1
- package/dist/components/input-frame.d.ts +94 -0
- package/dist/{useStaticInputHandoff-NeZVnci-.js → components/input-frame.js} +83 -116
- package/dist/components/input.d.ts +2 -2
- package/dist/components/input.js +1 -241
- package/dist/components/link.d.ts +1 -1
- package/dist/components/link.js +4 -4
- package/dist/components/menu-trigger/react-aria.js +1 -1
- package/dist/components/modal/react-aria.js +1 -1
- package/dist/components/modal-overlay/react-aria.js +1 -1
- package/dist/components/number-field.d.ts +2 -2
- package/dist/components/number-field.js +1 -245
- package/dist/components/number-range-input.d.ts +2 -2
- package/dist/components/number-range-input.js +1 -1
- package/dist/components/page-header.d.ts +2 -0
- package/dist/components/page-header.js +210 -0
- package/dist/components/password-input.d.ts +2 -2
- package/dist/components/password-input.js +22 -1
- package/dist/components/popover/react-aria.js +1 -1
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.js +40 -32
- package/dist/components/progress.d.ts +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/radio-group.d.ts +2 -2
- package/dist/components/radio-group.js +1 -1
- package/dist/components/select/react-aria.js +1 -1
- package/dist/components/select.d.ts +2 -3
- package/dist/components/select.js +1 -1
- package/dist/components/sidebar.d.ts +2 -0
- package/dist/components/sidebar.js +2 -0
- package/dist/components/slider.d.ts +2 -2
- package/dist/components/slider.js +1 -1
- package/dist/components/spinner.d.ts +1 -1
- package/dist/components/spinner.js +1 -1
- package/dist/components/split-button.d.ts +1 -1
- package/dist/components/split-button.js +3 -3
- package/dist/components/stepper.d.ts +1 -1
- package/dist/components/stepper.js +1 -1
- package/dist/components/style-definitions.d.ts +3 -0
- package/dist/components/style-definitions.js +122 -0
- package/dist/components/submenu-trigger/react-aria.js +1 -1
- package/dist/components/switch.d.ts +2 -2
- package/dist/components/switch.js +1 -1
- package/dist/components/tabs-filters.d.ts +2 -0
- package/dist/components/tabs-filters.js +2 -0
- package/dist/components/tag.d.ts +1 -1
- package/dist/components/tag.js +93 -1
- package/dist/components/text-area.d.ts +2 -2
- package/dist/components/text-area.js +1 -1
- package/dist/components/time-picker.d.ts +2 -2
- 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 +17 -30
- package/dist/components/toggle-group.d.ts +2 -3
- package/dist/components/toggle-group.js +1 -1
- package/dist/components/tooltip-ellipsis.js +2 -2
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/typography.d.ts +2 -2
- package/dist/components/typography.js +1 -1
- package/dist/components/use-toast.d.ts +1 -1
- package/dist/components/use-toast.js +2 -2
- package/dist/config/component-configuration.d.ts +30 -0
- package/dist/config/component-configuration.js +69 -0
- package/dist/config/confirmation.d.ts +1 -1
- package/dist/config/confirmation.js +1 -1
- package/dist/config/link-context.d.ts +2 -2
- package/dist/config/link-context.js +1 -1
- package/dist/config/resources.d.ts +1 -1
- package/dist/config/resources.js +1 -1
- package/dist/config/theme-context.js +1 -1
- package/dist/config/ui-config.d.ts +2 -2
- package/dist/config/ui-config.js +1 -1
- package/dist/config/ui-overrides.d.ts +1 -1
- package/dist/config/ui-overrides.js +1 -1
- package/dist/config/ui-router.js +1 -1
- package/dist/{confirmation.context-BuzgCfYl.js → confirmation.context-ByjNx2uA.js} +2 -2
- package/dist/{confirmation.context-BOeEVczb.d.ts → confirmation.context-CAt_T5qZ.d.ts} +1 -1
- package/dist/{datePickerInput.cva-Cd7UUN61.js → datePickerInput.cva-CWkV2fut.js} +3 -3
- package/dist/datePickerValue.utils-CkmPaD6I.js +4 -0
- package/dist/{dialog.cva-COhDZaVl.js → dialog.cva-BIpz6HcA.js} +7 -7
- package/dist/{dist-CAdwxJbe.js → dist-fFtzh872.js} +54 -1
- package/dist/{dom.utils-D1AopHx9.js → dom.utils-BPooTXtC.js} +2 -2
- package/dist/dropdownMenu.cva-DwSOcbmR.js +31 -0
- package/dist/{fileUpload.cva-ujmStxB1.js → fileUpload.cva-BYzXGc9C.js} +11 -11
- package/dist/{fileUpload.types-n5FxK_F-.d.ts → fileUpload.types-CfUkihds.d.ts} +22 -17
- package/dist/form.binding-Ddx5NGCq.js +49 -0
- package/dist/form.types-C8P4sznq.d.ts +22 -0
- package/dist/formFieldError.cva-BB6Ghqwq.js +14 -0
- package/dist/formFieldHelper.cva-DRmSyRZN.js +14 -0
- package/dist/formLayout.context--CN08Mtb.js +14 -0
- package/dist/hooks/use-async-list.d.ts +2 -0
- package/dist/hooks/use-async-list.js +2 -0
- package/dist/hooks/use-filters.js +1 -1
- package/dist/hooks/use-local-storage.js +1 -1
- package/dist/{i18n-CX2EjhJI.js → i18n-DxbqkvyK.js} +38 -24
- package/dist/{i18n-CX1vFM9r.d.ts → i18n-JT8Yui4a.d.ts} +36 -18
- package/dist/iconSlot.cva-I0pFwkGy.d.ts +9 -0
- package/dist/icons.d.ts +2 -1
- package/dist/icons.js +3 -3
- package/dist/import-Duf36Dbs.js +255 -0
- package/dist/index.d.ts +98 -91
- package/dist/index.js +100 -96
- package/dist/input.cva-2C6_W5jD.js +185 -0
- package/dist/input.cva-cNv7yhcp.d.ts +80 -0
- package/dist/inputLayout-KdAtunGk.js +5 -0
- package/dist/inputRow.clsx-BbcaXVta.js +6 -0
- package/dist/{intlStrings-chfsan9H.js → intlStrings-Cu1YN1tA.js} +35 -35
- package/dist/isEqual-LFw0W5rU.js +97 -0
- package/dist/label.cva-DTfT6FrX.js +85 -0
- package/dist/{link.context-D5qyz9Rf.d.ts → link.context-LSbvpZCL.d.ts} +1 -1
- package/dist/link.cva-C24YVAsJ.js +16 -0
- package/dist/{logger-CqZjM-sn.js → logger-CW24po62.js} +10 -1
- package/dist/{numberStatic.utils-BX50PSee.js → numberStatic.utils-BIyZuILs.js} +5 -5
- package/dist/outline.clsx-DGGQQRkM.js +6 -0
- package/dist/popover.cva-DAbfSma6.js +5 -0
- package/dist/progress.cva-CsGaGVJ-.js +28 -0
- package/dist/{radio.cva-DN9VQ3Kb.d.ts → radio.cva-CtBwM88n.d.ts} +9 -5
- package/dist/radio.cva-DistaZtZ.js +96 -0
- package/dist/rich-text-editor.d.ts +2 -2
- package/dist/rich-text-editor.js +1 -1
- package/dist/{routing.utils-UTQonIhB.js → routing.utils-DfxEt0_Y.js} +5 -0
- package/dist/selectDesktop.cva-DStkOdwm.js +14 -0
- package/dist/selectItem.cva-B6vxey2R.js +27 -0
- package/dist/{staticDateTimeSegments-DtU63_dw.js → staticDateTimeSegments-DeeSpTzj.js} +61 -57
- package/dist/status.cva-CYgi3Htz.js +130 -0
- package/dist/stepper.cva-Cecphqeo.js +104 -0
- package/dist/style-definitions-DJOlAxCG.d.ts +1034 -0
- package/dist/styles/editor.css +9 -9
- package/dist/styles/input.d.ts +1 -1
- package/dist/styles/outline.js +1 -1
- package/dist/switch.cva-BT0kGRIk.js +24 -0
- package/dist/switch.cva-DmuYW9tg.d.ts +16 -0
- package/dist/table.cva-DkcsOmZG.js +147 -0
- package/dist/tag.cva-ExMNsTN-.js +24 -0
- package/dist/tanstack/autocomplete.d.ts +3 -2
- package/dist/tanstack/autocomplete.js +1 -1
- package/dist/tanstack/checkbox-group.d.ts +3 -2
- package/dist/tanstack/checkbox-group.js +1 -1
- package/dist/tanstack/checkbox.d.ts +3 -2
- package/dist/tanstack/checkbox.js +2 -2
- package/dist/tanstack/date-picker.d.ts +3 -2
- package/dist/tanstack/date-picker.js +1 -1
- package/dist/tanstack/date-range-picker.d.ts +3 -2
- package/dist/tanstack/date-range-picker.js +1 -1
- package/dist/tanstack/date-time-picker.d.ts +3 -2
- package/dist/tanstack/date-time-picker.js +1 -1
- package/dist/tanstack/file-input.d.ts +3 -2
- package/dist/tanstack/file-input.js +1 -1
- package/dist/tanstack/file-upload.d.ts +4 -3
- package/dist/tanstack/file-upload.js +1 -1
- package/dist/tanstack/form.d.ts +3 -3
- package/dist/tanstack/form.js +3 -3
- package/dist/tanstack/input.d.ts +3 -2
- package/dist/tanstack/input.js +1 -1
- package/dist/tanstack/number-field.d.ts +3 -2
- package/dist/tanstack/number-field.js +1 -1
- package/dist/tanstack/number-range-input.d.ts +3 -2
- package/dist/tanstack/number-range-input.js +1 -1
- package/dist/tanstack/password-input.d.ts +1 -1
- package/dist/tanstack/password-input.js +1 -1
- package/dist/tanstack/radio-group.d.ts +3 -2
- package/dist/tanstack/radio-group.js +1 -1
- package/dist/tanstack/rich-text-editor.d.ts +9 -2
- package/dist/tanstack/rich-text-editor.js +27 -1
- package/dist/tanstack/select.d.ts +3 -2
- package/dist/tanstack/select.js +1 -1
- package/dist/tanstack/slider.d.ts +3 -2
- package/dist/tanstack/slider.js +1 -1
- package/dist/tanstack/switch.d.ts +3 -2
- package/dist/tanstack/switch.js +1 -1
- package/dist/tanstack/table.d.ts +3 -2
- package/dist/tanstack/table.js +2 -3
- package/dist/tanstack/text-area.d.ts +3 -2
- package/dist/tanstack/text-area.js +1 -1
- package/dist/tanstack/time-picker.d.ts +3 -2
- package/dist/tanstack/time-picker.js +1 -1
- package/dist/tanstack/toggle-group.d.ts +3 -3
- package/dist/tanstack/toggle-group.js +1 -1
- package/dist/{queries.utils-CmbhAoHU.js → tanstack-Bgdv0qU1.js} +2 -1
- package/dist/tanstack-DzNVI2Rj.d.ts +566 -0
- package/dist/tanstack.d.ts +82 -78
- package/dist/tanstack.js +100 -94
- package/dist/{theme.context-B3wQDJ-i.js → theme.context--VEyStJB.js} +2 -2
- package/dist/{toast.cva-C_L_RffH.js → toast.cva-B6NXTwbZ.js} +22 -38
- package/dist/{toast.cva-By5lvAfr.d.ts → toast.cva-BnXRIWVy.d.ts} +10 -10
- package/dist/{toast.runtime-cxex9e4E.js → toast.runtime-BWQLlbZW.js} +1 -2
- package/dist/toggleGroup.cva-BZcOUjIS.d.ts +26 -0
- package/dist/toggleGroup.cva-CINSHakM.js +35 -0
- package/dist/{tooltip.cva-BIzlOXHH.js → tooltip.cva-BEyxvcG2.js} +11 -11
- package/dist/{tooltipWrapper.cva-BBQ4ic3D.js → tooltipWrapper.cva-t4NQ9zz9.js} +1 -1
- package/dist/tw-ui-plugin.js +5 -1
- package/dist/typography.cva-CHsHX_Wp.js +31 -0
- package/dist/typography.cva-DcBCiskp.d.ts +36 -0
- package/dist/uiConfig.context-3DN9w6oU.js +180 -0
- package/dist/{uiConfig.context-DeBX2beU.d.ts → uiConfig.context-CoE2HBL4.d.ts} +26 -20
- package/dist/{uiOverrides.context-DEp139He.d.ts → uiOverrides.context-DHHzLSnq.d.ts} +67 -6
- package/dist/useAsyncList-BVZ1va2U.js +498 -0
- package/dist/useAsyncList-Cu-Y8If2.d.ts +9 -0
- package/dist/{useBreakpoint-DQoMN-BG.js → useBreakpoint-CJ3mx7UF.js} +6 -6
- package/dist/{useControlledState-CzXkZCX8.js → useControlledState-CuU1VIh1.js} +2 -2
- package/dist/useFieldAccessibility-eZIMECmG.js +19 -0
- package/dist/{useFilters-XNH27Md2.js → useFilters-DMi94RZK.js} +3 -3
- package/dist/{form.binding-CG1RPv6o.js → useForm-C7wrpJ2t.js} +80 -43
- package/dist/{form.binding-DVJ5F0JE.d.ts → useForm-I6z23FXf.d.ts} +15 -15
- package/dist/useFormAutosave-BBLm3Ujo.d.ts +34 -0
- package/dist/useFormAutosave-Cy0wTigY.js +216 -0
- package/dist/useScrollableListBox-oYKqU3Hp.js +47 -0
- package/dist/useStaticInputHandoff-BN0fOerH.js +76 -0
- package/dist/useTableColumnConfig-xvu1zw0E.js +2377 -0
- package/dist/useTableNav-DxuUTKn5.d.ts +200 -0
- package/dist/{useToast-yreVCUer.d.ts → useToast-CjyrMHdh.d.ts} +1 -1
- package/dist/utils/logger.js +1 -1
- package/dist/{utils-Czcqspm7.js → utils-BkLF-JA3.js} +1 -1
- package/package.json +86 -247
- package/.rulesync/rules/ui-buttons-and-content.md +0 -56
- package/.rulesync/rules/ui-inputs-and-forms.md +0 -62
- package/.rulesync/rules/ui-overlays-navigation-and-styling.md +0 -49
- package/.rulesync/rules/ui-overview.md +0 -33
- package/dist/Alert-CnvEb1D_.js +0 -244
- package/dist/AppCanvasPage--RG31Yyv.js +0 -2421
- package/dist/AppCanvasPage-BIFYeEeS.d.ts +0 -80
- package/dist/Autocomplete-BwNHp8fy.d.ts +0 -15
- package/dist/Button-C5rv4Cr2.js +0 -506
- package/dist/Button-D-4qb0IR.d.ts +0 -42
- package/dist/CheckboxCheckmark-CpC3wlMs.js +0 -178
- package/dist/CheckboxGroup-DGF12cmB.d.ts +0 -28
- package/dist/ComponentGallery-C6exitZN.js +0 -3513
- package/dist/Dialog-CW93T9X1.d.ts +0 -56
- package/dist/DropdownMenu-JNpYT4-3.d.ts +0 -62
- package/dist/FileUpload-CR7bZxV1.d.ts +0 -7
- package/dist/Form-DbEWnCKc.d.ts +0 -49
- package/dist/FormField-B99dLt8o.js +0 -212
- package/dist/IconButton-D4thBurp.d.ts +0 -16
- package/dist/InlineIconButton-BeJCjl-q.d.ts +0 -15
- package/dist/InputItem-CIxbTxZu.js +0 -63
- package/dist/Inputs-DJSKiaWY.js +0 -17
- package/dist/Inputs-O84btFJL.d.ts +0 -13
- package/dist/Pagination-CwQu5Py8.d.ts +0 -12
- package/dist/PaginationList-DMRUGtf8.d.ts +0 -18
- package/dist/PaginationList-DtvuP63b.js +0 -220
- package/dist/PasswordInput-DYwUZ4-k.js +0 -78
- package/dist/QuerySelect-BGxb6Y0K.d.ts +0 -24
- package/dist/RadioGroup-CZg2kIMk.d.ts +0 -24
- package/dist/RichTextEditor-YxuRUlI7.d.ts +0 -26
- package/dist/Select-UR0ec2Ux.js +0 -154
- package/dist/Select-pHbyJdZJ.d.ts +0 -15
- package/dist/SelectBase-Omiq2D3M.d.ts +0 -96
- package/dist/SelectionIndicator-JblvLKCu.js +0 -5
- package/dist/SharedElementTransition-Da1c_cOO.js +0 -12
- package/dist/Switch-s_EPn0Jz.d.ts +0 -22
- package/dist/Table-BN2_J_Ne.js +0 -636
- package/dist/TableDnd-CuHxANWh.js +0 -133
- package/dist/Tag-AHfV_XSf.d.ts +0 -44
- package/dist/Tag-DPg5sL1Z.js +0 -146
- package/dist/TextButton-XUhV_1s0.d.ts +0 -15
- package/dist/TimePicker-B1POvGWs.d.ts +0 -33
- package/dist/Toast-DtG3pA61.js +0 -53
- package/dist/ToggleButton-7aP8Jb11.d.ts +0 -11
- package/dist/ToggleGroup-CRFDIPGZ.d.ts +0 -7
- package/dist/ToggleGroup-DOk27fgI.js +0 -346
- package/dist/Tooltip-DHv6vAqW.d.ts +0 -57
- package/dist/UIConfigurator-BwLRfe-a.js +0 -6704
- package/dist/autocomplete-DeERHN8W.d.ts +0 -16
- package/dist/badgeButton.cva-CvN4CTx5.js +0 -300
- package/dist/check-DYMBkp_Z.js +0 -20
- package/dist/checkbox-DxIPDTK5.d.ts +0 -9
- package/dist/checkbox-group-B3BOVshI.d.ts +0 -9
- package/dist/chevron-down-B4Pr8bD3.js +0 -20
- package/dist/chevron-left-Dgo_b9wJ.js +0 -20
- package/dist/chevron-right-3nKJR5Bb.js +0 -20
- package/dist/chevron-up-D_Gqpb5M.js +0 -20
- package/dist/chevrons-right-DJPPn2fD.js +0 -44
- package/dist/components/inline-icon-button.d.ts +0 -2
- package/dist/components/inline-icon-button.js +0 -40
- package/dist/components/pagination-list.d.ts +0 -2
- package/dist/components/pagination-list.js +0 -2
- package/dist/components/pagination.d.ts +0 -2
- package/dist/components/pagination.js +0 -134
- package/dist/components/query-autocomplete.d.ts +0 -8
- package/dist/components/query-autocomplete.js +0 -134
- package/dist/components/query-select.d.ts +0 -2
- package/dist/components/query-select.js +0 -147
- package/dist/components/text-button.d.ts +0 -2
- package/dist/components/text-button.js +0 -35
- package/dist/config/app-canvas-tanstack.d.ts +0 -23
- package/dist/config/app-canvas-tanstack.js +0 -62
- package/dist/config/app-canvas.d.ts +0 -12
- package/dist/config/app-canvas.js +0 -2
- package/dist/config/ui-configurator-theme.d.ts +0 -2
- package/dist/config/ui-configurator-theme.js +0 -2
- package/dist/config/ui-configurator-vite.d.ts +0 -10
- package/dist/config/ui-configurator-vite.js +0 -174
- package/dist/config/ui-configurator.d.ts +0 -15
- package/dist/config/ui-configurator.js +0 -3
- package/dist/configuration.context-f_FSPWhQ.d.ts +0 -926
- package/dist/createLucideIcon-LcezOE4z.js +0 -240
- package/dist/date-picker-DnxDmlOW.d.ts +0 -9
- package/dist/date-range-picker-DHDOSvHN.d.ts +0 -9
- package/dist/date-time-picker-UkTa0OJ8.d.ts +0 -9
- package/dist/date.transforms-DLg-eFcE.js +0 -15
- package/dist/dropdownMenu.cva-DvEmX0bs.js +0 -34
- package/dist/dynamicInputs-ByVMnx4Z.d.ts +0 -772
- package/dist/dynamicInputs-CRMWIpHA.js +0 -194
- package/dist/dynamicInputs-m_DQu5q0.js +0 -214
- package/dist/fieldAdapter-C4sDFC8f.d.ts +0 -9
- package/dist/fieldAdapter-DjYls12j.js +0 -63
- package/dist/file-input-DkbkdI7l.d.ts +0 -9
- package/dist/file-upload-CTsPhxJk.d.ts +0 -10
- package/dist/form.types-CecYaerF.d.ts +0 -13
- package/dist/form.types-ZNGbcqJS.d.ts +0 -13
- package/dist/info-iUmX3uDk.js +0 -32
- package/dist/input-CdQNCPgH.d.ts +0 -8
- package/dist/input.cva-BsHgYa-L.d.ts +0 -80
- package/dist/input.cva-DJA8ovm_.js +0 -208
- package/dist/link.cva-DMTHZiJG.js +0 -12
- package/dist/number-field-CUDbenNV.d.ts +0 -8
- package/dist/number-range-input-DZGrcvjL.d.ts +0 -8
- package/dist/outline.clsx-50W_vNDl.js +0 -6
- package/dist/password-input-fYN20cQO.d.ts +0 -8
- package/dist/popover.cva-Bhud1wnp.js +0 -5
- package/dist/query-autocomplete-CfuQeiYG.d.ts +0 -14
- package/dist/query-select-CuT_sE6a.d.ts +0 -15
- package/dist/queryAutocomplete.types-tl3r6iaY.d.ts +0 -27
- package/dist/radio-group-B3ccPf0p.d.ts +0 -9
- package/dist/rhf/autocomplete.d.ts +0 -3
- package/dist/rhf/autocomplete.js +0 -8
- package/dist/rhf/checkbox-group.d.ts +0 -3
- package/dist/rhf/checkbox-group.js +0 -8
- package/dist/rhf/checkbox.d.ts +0 -3
- package/dist/rhf/checkbox.js +0 -8
- package/dist/rhf/date-picker.d.ts +0 -3
- package/dist/rhf/date-picker.js +0 -9
- package/dist/rhf/date-range-picker.d.ts +0 -3
- package/dist/rhf/date-range-picker.js +0 -9
- package/dist/rhf/date-time-picker.d.ts +0 -3
- package/dist/rhf/date-time-picker.js +0 -9
- package/dist/rhf/file-input.d.ts +0 -3
- package/dist/rhf/file-input.js +0 -6
- package/dist/rhf/file-upload.d.ts +0 -3
- package/dist/rhf/file-upload.js +0 -6
- package/dist/rhf/input.d.ts +0 -3
- package/dist/rhf/input.js +0 -6
- package/dist/rhf/inputs.d.ts +0 -4
- package/dist/rhf/inputs.js +0 -2
- package/dist/rhf/number-field.d.ts +0 -3
- package/dist/rhf/number-field.js +0 -6
- package/dist/rhf/number-range-input.d.ts +0 -3
- package/dist/rhf/number-range-input.js +0 -6
- package/dist/rhf/password-input.d.ts +0 -3
- package/dist/rhf/password-input.js +0 -6
- package/dist/rhf/query-autocomplete.d.ts +0 -2
- package/dist/rhf/query-autocomplete.js +0 -8
- package/dist/rhf/query-select.d.ts +0 -2
- package/dist/rhf/query-select.js +0 -8
- package/dist/rhf/radio-group.d.ts +0 -3
- package/dist/rhf/radio-group.js +0 -8
- package/dist/rhf/rich-text-editor.d.ts +0 -3
- package/dist/rhf/rich-text-editor.js +0 -6
- package/dist/rhf/select.d.ts +0 -3
- package/dist/rhf/select.js +0 -8
- package/dist/rhf/slider.d.ts +0 -3
- package/dist/rhf/slider.js +0 -6
- package/dist/rhf/switch.d.ts +0 -3
- package/dist/rhf/switch.js +0 -8
- package/dist/rhf/text-area.d.ts +0 -3
- package/dist/rhf/text-area.js +0 -6
- package/dist/rhf/time-picker.d.ts +0 -3
- package/dist/rhf/time-picker.js +0 -9
- package/dist/rhf/toggle-group.d.ts +0 -3
- package/dist/rhf/toggle-group.js +0 -6
- package/dist/rhf-t348TCCL.js +0 -256
- package/dist/rhf.d.ts +0 -106
- package/dist/rhf.js +0 -112
- package/dist/rich-text-editor-B-Onl7T8.d.ts +0 -8
- package/dist/select-B4a52eWW.d.ts +0 -16
- package/dist/selectDesktop.cva-CHAMxhfO.js +0 -69
- package/dist/slider-dNj9jruO.d.ts +0 -8
- package/dist/stepper.cva-CZ0Kj-s7.js +0 -116
- package/dist/style-merge.util-zLimKwt6.d.ts +0 -40
- package/dist/styles/app-canvas.css +0 -740
- package/dist/styles/color-utilities.css +0 -20
- package/dist/styles/configurator.css +0 -3280
- package/dist/switch-C--iWnY8.d.ts +0 -9
- package/dist/switch.cva-CWNzmdRc.d.ts +0 -16
- package/dist/table.cva-D5oQ-QvA.js +0 -101
- package/dist/tanstack/inputs.d.ts +0 -5
- package/dist/tanstack/inputs.js +0 -3
- package/dist/tanstack/query-autocomplete.d.ts +0 -2
- package/dist/tanstack/query-autocomplete.js +0 -2
- package/dist/tanstack/query-select.d.ts +0 -2
- package/dist/tanstack/query-select.js +0 -2
- package/dist/text-area-DQAtpOQp.d.ts +0 -8
- package/dist/theme-model-DtYPxNvH.js +0 -406
- package/dist/theme-model-T1zIdBg8.d.ts +0 -12
- package/dist/time-picker-DoGfbil6.d.ts +0 -9
- package/dist/toggle-group-C1nMDOwz.d.ts +0 -9
- package/dist/toggleGroup.cva-MbpaEBg1.js +0 -35
- package/dist/toggleGroup.types-Bp43zbSQ.d.ts +0 -59
- package/dist/typography.cva-D1JOEYl-.d.ts +0 -36
- package/dist/typography.cva-iD15k56p.js +0 -51
- package/dist/uiConfig.context-BS3r_kTS.js +0 -381
- package/dist/underline-66hmELxa.js +0 -81
- package/dist/upload-CXU83BJ4.js +0 -30
- package/dist/useFieldAccessibility-ScC6Mtd5.js +0 -102
- package/dist/useFormAutosave-DfuP7drj.js +0 -198
- package/dist/useQueryAutocomplete-CraXvRm_.js +0 -152
- package/dist/useTableColumnConfig-Di0_w80v.js +0 -892
- package/dist/useTableNav-Ckj5PBRk.d.ts +0 -292
- package/dist/x-B6vfz8Ps.js +0 -23
- package/dist/zod.utils-DrrPDT9v.js +0 -24
- package/rulesync.jsonc +0 -11
- package/scripts/generate-rules.mjs +0 -34
- package/src/configurator/README.md +0 -77
- package/dist/{import-BE0r63d8.js → import-D_3dPATF.js} +2 -2
- package/dist/{link.context-J7aQtMOr.js → link.context-TPjDtjw3.js} +1 -1
- package/dist/{router.context-B4FvsTim.js → router.context-MckTbHw9.js} +1 -1
- package/dist/{uiOverrides.context-BTCH9y5a.js → uiOverrides.context-DNEQlTx0.js} +1 -1
- package/dist/{useIntersectionObserver-DYfHnGGU.js → useIntersectionObserver-DFAhTsV0.js} +1 -1
- package/dist/{useLocalStorage-PlcaJ1tP.js → useLocalStorage-CctQvyqD.js} +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# @povio/ui
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
React Aria components styled with shadcn/ui design tokens and Tailwind's default scales.
|
|
4
|
+
|
|
5
|
+
Release notes and migration instructions are maintained in [GitHub Releases](https://github.com/povio/monorepo-template/releases).
|
|
4
6
|
|
|
5
7
|
## Installation
|
|
6
8
|
|
|
@@ -14,17 +16,101 @@ Use component and feature subpaths in application code. Each subpath resolves to
|
|
|
14
16
|
import { Button } from "@povio/ui/button";
|
|
15
17
|
import { BadgeButton } from "@povio/ui/badge-button";
|
|
16
18
|
import { Dialog } from "@povio/ui/dialog";
|
|
17
|
-
import { Select } from "@povio/ui/
|
|
19
|
+
import { Select } from "@povio/ui/select";
|
|
18
20
|
import { useForm } from "@povio/ui/tanstack/form";
|
|
19
21
|
import { Table } from "@povio/ui/tanstack/table";
|
|
20
22
|
import { RichTextEditor } from "@povio/ui/rich-text-editor";
|
|
21
23
|
```
|
|
22
24
|
|
|
23
|
-
Form
|
|
25
|
+
TanStack Form is the supported form integration. Import form inputs from `@povio/ui/tanstack/input` and other component subpaths, hooks from `@povio/ui/tanstack/form`.
|
|
26
|
+
|
|
27
|
+
Ordinary component subpaths expose standalone controls: `@povio/ui/input` accepts `value`/`onChange` or an uncontrolled `defaultValue`, and rejects `field`. The corresponding `@povio/ui/tanstack/input` requires `field={{ form, name }}` and rejects top-level values, change/blur handlers, and defaults; initialize values through `useForm({ defaultValues })`. Boolean controls use `isSelected`/`onChange` and `defaultSelected` when standalone. Date/time controls use string values and defaults; number controls use numbers or null. The broad root and TanStack barrels expose the bound versions.
|
|
28
|
+
|
|
29
|
+
Optional side effects belong inside the binding: `field={{ form, name: "name", onValueChange: value => ..., onBlur: () => ... }}`. Change callbacks receive the native control value after the raw form update; blur callbacks run after actual focus loss marks the field touched. Selection commits can validate/flush autosave without firing the blur callback. Form resets and programmatic setters do not call either callback.
|
|
30
|
+
|
|
31
|
+
`FileInput` binds native `File`/`File[]` values. `FileUpload` also binds files while managing upload progress, cancellation, and server IDs internally. Its standalone `value` accepts upload state records for existing uploads, while `onChange` emits selected native files; changes to supplied upload state are reflected in its display.
|
|
32
|
+
|
|
33
|
+
The broad `@povio/ui` and `@povio/ui/tanstack` entries remain for compatibility. They are not recommended for new application imports because they reconnect otherwise independent feature graphs.
|
|
34
|
+
|
|
35
|
+
Feature dependencies are optional peers. Install the matching packages when using date/calendar entries, `@povio/ui/tanstack/table`, TanStack Form inputs, or the rich text editor. Basic components such as Button, Typography, and Dialog do not require table, drag-and-drop, calendar, or TipTap packages.
|
|
36
|
+
|
|
37
|
+
```tsx
|
|
38
|
+
import { useForm } from "@povio/ui/tanstack/form";
|
|
39
|
+
import { Input } from "@povio/ui/tanstack/input";
|
|
40
|
+
import { z } from "zod";
|
|
41
|
+
|
|
42
|
+
const schema = z.object({ name: z.string().min(1) });
|
|
43
|
+
|
|
44
|
+
function NameForm({ onSubmit }: { onSubmit: (values: z.output<typeof schema>) => void }) {
|
|
45
|
+
const form = useForm({ defaultValues: { name: "" }, zodSchema: schema });
|
|
46
|
+
return (
|
|
47
|
+
<form onSubmit={form.handleSubmit(onSubmit)}>
|
|
48
|
+
<Input
|
|
49
|
+
label="Name"
|
|
50
|
+
field={{ form, name: "name" }}
|
|
51
|
+
/>
|
|
52
|
+
<button type="submit">Save</button>
|
|
53
|
+
</form>
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Deferred input activation
|
|
59
|
+
|
|
60
|
+
Inputs default to `renderStaticInput={true}` through `UIConfig.renderStaticInput`. This renders a lightweight field first and mounts the interactive React Aria control on hover, keyboard focus, or interaction. The handoff preserves focus and replays the initiating edit/action. It is a performance optimization, not read-only presentation; use `isReadOnly` for that.
|
|
61
|
+
|
|
62
|
+
Use `renderStaticInput={false}` when a control must be live immediately, especially for mount-time autofocus or imperative access through its input ref. Disable it across input types with `<UIConfig.Provider config={{ renderStaticInput: false, select: { renderStaticInput: false } }}>`. Select has its own `UIConfig.select.renderStaticInput` setting, which takes precedence over the global setting. The option determines the initial rendering mode, rather than toggling an already activated field back to static.
|
|
63
|
+
|
|
64
|
+
Input accepts `disabled` / `isDisabled`, `required` / `isRequired`, and `readOnly` / `isReadOnly` on both paths. Explicit React Aria flags take precedence over their aliases, including `false`. `layout` takes precedence over the historical visual `as` prop. `isInvalid` marks an input invalid even without a message; `errorMessage` or `error` also marks it invalid and supplies associated error text.
|
|
65
|
+
|
|
66
|
+
## Select search callbacks
|
|
67
|
+
|
|
68
|
+
`onInputChange` reports displayed text immediately, including selected labels and clears. `onSearchChange` reports the search query after `searchDebounceDelay` (500ms by default), including query resets after selection; use it for remote searches. Neither replaces `onChange`, which emits selected IDs. `multiSelectAutoConfirm` (default false) lets Enter toggle an exact label match or the sole remaining option in multiple mode; it does not select automatically while typing.
|
|
69
|
+
|
|
70
|
+
## Saved uploads
|
|
71
|
+
|
|
72
|
+
A separate image preview does not register a saved attachment with FileUpload. Pass saved metadata to the standalone `@povio/ui/file-upload` control so its remove action has an uploaded record and stable ID:
|
|
73
|
+
|
|
74
|
+
```tsx
|
|
75
|
+
import { useMemo } from "react";
|
|
76
|
+
import { FileUpload, type FileUploadState } from "@povio/ui/file-upload";
|
|
77
|
+
|
|
78
|
+
// Inside the attachment editor:
|
|
79
|
+
const savedUploadState = useMemo<FileUploadState[] | null>(
|
|
80
|
+
() =>
|
|
81
|
+
savedImage
|
|
82
|
+
? [
|
|
83
|
+
{
|
|
84
|
+
state: "uploaded",
|
|
85
|
+
id: savedImage.id,
|
|
86
|
+
displayName: savedImage.name,
|
|
87
|
+
displayType: "image/png",
|
|
88
|
+
src: savedImage.url,
|
|
89
|
+
},
|
|
90
|
+
]
|
|
91
|
+
: null,
|
|
92
|
+
[savedImage],
|
|
93
|
+
);
|
|
94
|
+
|
|
95
|
+
<FileUpload
|
|
96
|
+
label="Image"
|
|
97
|
+
value={savedUploadState}
|
|
98
|
+
fileRemove={async () => {
|
|
99
|
+
setSavedImage(null);
|
|
100
|
+
form.setFieldValue("attachment", null);
|
|
101
|
+
}}
|
|
102
|
+
/>;
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Keep this metadata stable between changes (state or memoized values). Use `defaultState` only for initial metadata; use `value` for fetched or replaced attachments. `onChange` emits native files, not saved metadata. Store upload response IDs in your application's attachment field, and clear that field in `fileRemove`; decide separately whether removal also deletes a server resource.
|
|
24
106
|
|
|
25
|
-
|
|
107
|
+
## Migrating existing forms
|
|
26
108
|
|
|
27
|
-
|
|
109
|
+
The web UI package no longer maintains React Hook Form (RHF) integration. The root entry now exports the TanStack barrel. Replace imports from `@povio/ui/rhf` and its subpaths with the TanStack paths above, and replace `formControl={{ control: form.control, name }}` with `field={{ form, name }}`. Keep component names such as `Input`. Compose fields explicitly in JSX and declare TanStack table columns directly.
|
|
110
|
+
|
|
111
|
+
Use `zodSchema` for validation and `form.handleSubmit(onSubmit, onInvalid)` for submission; the valid callback receives transformed schema values. Replace `form.watch(...)` with `useFormValue(form, values => values.name)` and form-state subscriptions with `useFormState(form, state => state.isSubmitting)`, both from `@povio/ui/tanstack/form`. Replace values through `form.reset(values)`, which clears dirty and touched state. Autosave hooks remain available from the TanStack barrel.
|
|
112
|
+
|
|
113
|
+
Standalone controls keep their existing `value` / `onChange` or `isSelected` / `onChange` props. Consumers can build an external RHF adapter using those props. Mobile and `@povio/rn-ui` retain their own RHF integrations.
|
|
28
114
|
|
|
29
115
|
React Aria is an internal `@povio/ui` dependency and does not need to be installed separately. The build keeps `react-aria` and all its subpaths external so providers and Povio components share the installed module contexts. Component-scoped escape-hatch entries expose only the corresponding React Aria primitive and its types for custom implementations:
|
|
30
116
|
|
|
@@ -41,58 +127,175 @@ The React Aria hooks used by Povio are similarly isolated under `use-text-field`
|
|
|
41
127
|
|
|
42
128
|
Each emitted entry is independently bundled and tree-shaken; it does not forward React Aria's aggregate barrel or share a generated aggregate chunk with unrelated controls. Ordinary Povio component imports do not include the escape-hatch entries.
|
|
43
129
|
|
|
44
|
-
Use `Badge` for display content, `BadgeButton` for a compact, badge-styled action, and `ToggleButton` or `ToggleGroup` for selection. `BadgeButton` uses
|
|
130
|
+
Use `Badge` for display content, `BadgeButton` for a compact, badge-styled action, and `ToggleButton` or `ToggleGroup` for selection. `BadgeButton` uses compact shadcn badge styling; customize its recipe through `UIOverrides.badgeButton`.
|
|
131
|
+
|
|
132
|
+
## Selection and text suggestions
|
|
133
|
+
|
|
134
|
+
Use `Select` to store an item ID, or an array of IDs with `selectionMode="multiple"`. Set `isSearchable` to filter the choices. Typing a search query does not change the selected ID.
|
|
135
|
+
|
|
136
|
+
Use `Autocomplete` to store free text. Its `value` and `onChange` use strings, selecting a suggestion emits its label, and clearing emits `""`. Text need not match a suggestion. Suggestion IDs identify rows; they are never the submitted value.
|
|
137
|
+
|
|
138
|
+
```tsx
|
|
139
|
+
import { Select } from "@povio/ui/select";
|
|
140
|
+
import { Autocomplete } from "@povio/ui/autocomplete";
|
|
141
|
+
|
|
142
|
+
const cities = [{ id: "city-1", label: "Ljubljana" }];
|
|
143
|
+
// Choosing Ljubljana stores "city-1".
|
|
144
|
+
<Select
|
|
145
|
+
label="City"
|
|
146
|
+
items={cities}
|
|
147
|
+
value={cityId}
|
|
148
|
+
onChange={setCityId}
|
|
149
|
+
isSearchable
|
|
150
|
+
/>;
|
|
151
|
+
// Choosing Ljubljana stores "Ljubljana"; arbitrary city names are also allowed.
|
|
152
|
+
<Autocomplete
|
|
153
|
+
label="City name"
|
|
154
|
+
items={cities}
|
|
155
|
+
value={cityName}
|
|
156
|
+
onChange={setCityName}
|
|
157
|
+
/>;
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
Migrate ID-valued autocomplete controls to `Select isSearchable`, including controls with multiple selections. Form bindings follow the same distinction: bind `Select` to an ID field and `Autocomplete` to a text field.
|
|
161
|
+
|
|
162
|
+
### Async choices
|
|
163
|
+
|
|
164
|
+
Supply an explicit loader through `useAsyncList` and pass its result to `Select` as `list`. The loader controls the request, response mapping, cancellation, and pagination; it returns `{ items, cursor }`, with an omitted cursor for the last page. Each control should have its own list so searches remain independent.
|
|
165
|
+
|
|
166
|
+
```tsx
|
|
167
|
+
import { Select } from "@povio/ui/select";
|
|
168
|
+
import { useAsyncList } from "@povio/ui/use-async-list";
|
|
169
|
+
|
|
170
|
+
const list = useAsyncList({
|
|
171
|
+
initialSelectedKeys: cityId ? [cityId] : [],
|
|
172
|
+
load: async ({ signal, filterText, cursor, selectedKeys }) => {
|
|
173
|
+
const page = await loadCities({ signal, search: filterText, cursor, selectedKeys });
|
|
174
|
+
return { items: page.items, cursor: page.nextCursor ?? undefined };
|
|
175
|
+
},
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
<Select
|
|
179
|
+
label="City"
|
|
180
|
+
value={cityId}
|
|
181
|
+
onChange={setCityId}
|
|
182
|
+
list={list}
|
|
183
|
+
isSearchable
|
|
184
|
+
/>;
|
|
185
|
+
{
|
|
186
|
+
list.error && (
|
|
187
|
+
<div role="alert">
|
|
188
|
+
{list.error.message}
|
|
189
|
+
<button onClick={() => list.reload()}>Retry</button>
|
|
190
|
+
</div>
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
The hook starts loading when mounted. The control forwards search changes and scroll pagination to the list and leaves server-ranked items unfiltered. Display `list.error` and a retry action beside the control; `list.reload()` retries the current filter. If a saved ID is outside the first page, supply its label through `initialSelection`, or resolve `selectedKeys` in your loader and merge the selected items with the page. Selecting still emits IDs, and selected labels remain visible when subsequent searches exclude those IDs. Use `field={{ form, name }}` with the bound `@povio/ui/tanstack/select` entry instead of value callbacks for a form field.
|
|
196
|
+
|
|
197
|
+
`QuerySelect`, `QueryAutocomplete`, and their query-hook adapters have been removed. Call regular API functions inside loaders; query hooks belong at component scope. Applications can retain their existing query cache, authorization checks, and response validation around those API calls, as the admin application's `useAsyncLabelList` does.
|
|
45
198
|
|
|
46
199
|
## Theme configurator
|
|
47
200
|
|
|
48
|
-
The live theme editor ships separately as `@povio/ui
|
|
201
|
+
Install it as a development dependency with `bun add -d @povio/ui-configurator`. The live theme editor ships separately as `@povio/ui-configurator`, with its stylesheet at `@povio/ui-configurator/styles`. It is independent of Storybook and is excluded from ordinary component imports. For only the `parseThemeCss` / `exportCss` helpers and token types, use the lightweight `@povio/ui-configurator/theme` entry.
|
|
49
202
|
|
|
50
203
|
To save its Tailwind CSS export directly to your app's theme during development, add the bundled Vite plugin:
|
|
51
204
|
|
|
52
205
|
```ts
|
|
53
|
-
import { uiConfigurator } from "@povio/ui
|
|
206
|
+
import { uiConfigurator } from "@povio/ui-configurator/vite";
|
|
54
207
|
|
|
55
208
|
// In your Vite plugins array:
|
|
56
209
|
uiConfigurator({ themeFile: "src/styles/theme.css" });
|
|
57
210
|
```
|
|
58
211
|
|
|
59
|
-
The path defaults to `src/styles/theme.css` relative to this app's Vite root. **Advanced → Export → Tailwind CSS → Save theme** updates that file's token declarations and lets Vite reload the CSS. Each app writes only its own configured theme. Apply remains session-only; Cancel does not undo a file save. The plugin and save action are absent from builds and preview servers. See [the configurator guide](
|
|
212
|
+
The path defaults to `src/styles/theme.css` relative to this app's Vite root. **Advanced → Export → Tailwind CSS → Save theme** updates that file's token declarations and lets Vite reload the CSS. Each app writes only its own configured theme. Apply remains session-only; Cancel does not undo a file save. The plugin and save action are absent from builds and preview servers. See [the configurator guide](../ui-configurator/README.md) for provider setup, preview behavior, and supported theme blocks.
|
|
213
|
+
|
|
214
|
+
## Choosing buttons
|
|
215
|
+
|
|
216
|
+
Choose a button by its interaction:
|
|
217
|
+
|
|
218
|
+
| Interaction | Component |
|
|
219
|
+
| -------------------------------------------------- | ------------------------------------------------------------------------------------------ |
|
|
220
|
+
| Action with a visible label, optionally with icons | `Button` from `@povio/ui/button` |
|
|
221
|
+
| Action displayed as an icon | `IconButton` from `@povio/ui/icon-button`, with an accessible name such as `label="Close"` |
|
|
222
|
+
| Persistent selected/unselected state | `ToggleButton` from `@povio/ui/toggle-button` |
|
|
223
|
+
| Primary action with a separate menu trigger | `SplitButton` from `@povio/ui/split-button` |
|
|
224
|
+
|
|
225
|
+
`BadgeButton` remains available for interactive badges, including its existing selection behavior. Use ordinary badge/status components for information without an action. An icon-only selected action uses `ToggleButton iconOnly` with an accessible name; `Button` itself does not accept `iconOnly`, `toggle`, or selection props.
|
|
226
|
+
|
|
227
|
+
Text appearance is `Button variant="text"`. For the former TextButton defaults, also specify `width="hug"`. The former InlineIconButton appearance is `IconButton variant="text" size="sm" width="hug" disableTooltip`; preserve any explicitly supplied size. `IconButton` provides a tooltip by default, so disable it when an enclosing tooltip already supplies one or when preserving the old inline appearance.
|
|
60
228
|
|
|
61
229
|
## Button sizes
|
|
62
230
|
|
|
63
|
-
`Button` supports `sm
|
|
231
|
+
`Button` supports `sm`, `default`, and `none` (zero padding). Omitting `size` uses `default`. The same sizes apply to `IconButton`, `ToggleButton`, and `SplitButton`.
|
|
64
232
|
|
|
65
|
-
When migrating, replace `xs
|
|
233
|
+
When migrating, replace `s`, `xs`, and `small` with `sm`; remove explicit `default`, `m`, `md`, `l`, and `lg` size props to use the default. `sm` is 32px high; `default` is 36px high.
|
|
66
234
|
|
|
67
|
-
Use `<
|
|
235
|
+
Use `<Button variant="text" width="hug" size="none">Read more</Button>` for a text action without button padding. Variant names and `UIOverrides` keys remain available for customization.
|
|
68
236
|
|
|
69
237
|
## Input sizes
|
|
70
238
|
|
|
71
|
-
Inputs
|
|
239
|
+
Inputs and buttons share `size="sm"` and `default`. Omit `size` for the default. This applies to text and number inputs, selects, autocomplete, date/time pickers, file inputs, checkbox groups, and radio groups that share the input size API. `none` remains button-only because inputs need their field spacing.
|
|
72
240
|
|
|
73
|
-
|
|
241
|
+
Use `sm` for compact inputs. The `s` and `small` aliases are removed; migrate `s`, `small`, and `extra-small` to `sm`. Remove `size="large"` or `size="default"` to use the default. Typography sizes are a separate API and still include `small`.
|
|
74
242
|
|
|
75
|
-
##
|
|
243
|
+
## Date and time values
|
|
76
244
|
|
|
77
|
-
|
|
245
|
+
The standalone date/time subpaths accept `value`/`onChange` or an initial `defaultValue`. Passing `null` clears a control; omitting `value` leaves it uncontrolled. TanStack versions take their values/defaults from the bound field, and `field.onValueChange` receives the same output after the form updates.
|
|
78
246
|
|
|
79
|
-
|
|
247
|
+
| Control | Input and output format | Empty output |
|
|
248
|
+
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- |
|
|
249
|
+
| `DatePicker` | `fullIso=true` (default): UTC-calendar date, emitted as `YYYY-MM-DDT00:00:00.000Z`. `fullIso=false`: `YYYY-MM-DD`. | `null` |
|
|
250
|
+
| `DateRangePicker` | `{ start, end }`; `fullIso=true` (default) emits start at UTC `00:00:00.000Z` and end at UTC `23:59:59.999Z`. `fullIso=false` emits `YYYY-MM-DD` endpoints. | `null`; a null endpoint is allowed with `allowPartialRange` |
|
|
251
|
+
| `DateTimePicker` | Input ISO timestamp with `Z` or an explicit offset; output UTC instant as `YYYY-MM-DDTHH:mm:ss.sssZ`. | `null` |
|
|
252
|
+
| `TimePicker` | Input ISO timestamp with `Z` or an explicit offset; output edited clock time on the date anchor as `YYYY-MM-DDTHH:mm:ss.sssZ`. | `null` |
|
|
80
253
|
|
|
81
|
-
|
|
254
|
+
`fullIso` is supported by `DatePicker` and `DateRangePicker`. Remove it from `DateTimePicker` and `TimePicker`: it previously had no effect, and their output always contains a full UTC timestamp.
|
|
82
255
|
|
|
83
|
-
|
|
256
|
+
Date-only controls use UTC calendar fields for parsing and output. In full ISO mode, the UTC date of an input timestamp determines the selected day. Month granularity normalizes to the first of the month, and year granularity to January 1. Range outputs represent inclusive whole UTC days. Partial ranges emit `null` unless `allowPartialRange` is enabled (default: false). With relative mode enabled, `onRelativeChange` emits the preset key and `onChange` emits its resolved range in the selected `fullIso` format; clearing or switching modes resets both to `null`.
|
|
84
257
|
|
|
85
|
-
|
|
258
|
+
`DateTimePicker` and `TimePicker` display and edit in `timeZone`, falling back to `UIConfig.dateInput.timeZone` (default: `"clientLocal"`, the browser's zone). Changing the zone changes displayed clock fields, while emitted timestamps remain UTC. For example, `2025-07-04T08:30:00.000Z` displays as 10:30 in `Europe/Ljubljana`; editing it to 11:30 emits `2025-07-04T09:30:00.000Z`. Display locale and `format` do not change the value format.
|
|
86
259
|
|
|
87
|
-
|
|
260
|
+
`TimePicker` uses `date` as its calendar anchor: it parses that string as a JavaScript `Date` instant, converts it into the effective zone, then replaces the clock fields. Use an explicit offset or `Z` to avoid ambiguous local timestamps. For example, `date="2025-03-04T00:00:00.000Z"` falls on March 3 in `America/Los_Angeles`; entering 10:30 emits `2025-03-03T18:30:00.000Z`. Without `date` (or with `null`), edits use today's date in the effective zone, even if the supplied `value` has another date. Once the editable input is mounted, changing `date` re-emits the current clock time on the new anchor. `isTimeOptional` on `DateTimePicker` completes a date with midnight in the effective zone when time is omitted.
|
|
88
261
|
|
|
89
|
-
```
|
|
90
|
-
|
|
262
|
+
```tsx
|
|
263
|
+
import { DatePicker } from "@povio/ui/date-picker";
|
|
264
|
+
import { DateTimePicker } from "@povio/ui/date-time-picker";
|
|
265
|
+
import { TimePicker } from "@povio/ui/time-picker";
|
|
266
|
+
|
|
267
|
+
<DatePicker
|
|
268
|
+
label="Birthday"
|
|
269
|
+
fullIso={false}
|
|
270
|
+
defaultValue="2025-03-04"
|
|
271
|
+
/>;
|
|
272
|
+
<DateTimePicker
|
|
273
|
+
label="Meeting"
|
|
274
|
+
timeZone="Europe/Ljubljana"
|
|
275
|
+
defaultValue="2025-07-04T08:30:00.000Z"
|
|
276
|
+
/>;
|
|
277
|
+
<TimePicker
|
|
278
|
+
label="Departure"
|
|
279
|
+
timeZone="America/Los_Angeles"
|
|
280
|
+
date="2025-03-04T12:00:00.000Z"
|
|
281
|
+
/>;
|
|
91
282
|
```
|
|
92
283
|
|
|
93
|
-
|
|
284
|
+
## Table selection
|
|
285
|
+
|
|
286
|
+
Table selection is internally managed by default. Supply `defaultSelectedRows` alone for an initial selection, or `onRowSelectionChange` alone to observe changes. Defaults are read only when mounted. When both props are supplied, selection is controlled: pass the current state through the legacy `defaultSelectedRows` prop and its React state setter through `onRowSelectionChange`. That callback receives TanStack selection values or updater functions. Use stable `getRowId` values for selection keys.
|
|
287
|
+
|
|
288
|
+
## Lists
|
|
289
|
+
|
|
290
|
+
Load server lists with `InfiniteTable` and an `...Infinite` query; pass the page size as a constant in the query parameters, not through the URL. Use `Table` only for short, fixed data loaded at once.
|
|
291
|
+
|
|
292
|
+
## Built-package tests
|
|
293
|
+
|
|
294
|
+
From `packages/ui`, run `bun run test:package` to build the publishable package and run its Chromium regressions. The tests resolve public imports through `dist/package.json`, covering both date pickers with empty and populated values in static and editable modes, including locale switches without remounting.
|
|
295
|
+
|
|
296
|
+
## Versioning
|
|
94
297
|
|
|
95
|
-
|
|
298
|
+
The current web theme uses shadcn/ui roles. Breaking changes follow semantic versioning; release-specific upgrade instructions live in GitHub Releases.
|
|
96
299
|
|
|
97
300
|
## Publishing
|
|
98
301
|
|
|
@@ -100,7 +303,7 @@ Within this monorepo, the equivalent package-local commands are `bun run --filte
|
|
|
100
303
|
|
|
101
304
|
Create a GitHub release with a tag matching `v*.*.*-ui`. This triggers the publish workflow and releases the package to NPM.
|
|
102
305
|
|
|
103
|
-
|
|
306
|
+
For the 5.0.0 stable release, use `v5.0.0-ui`. The build derives the package version from this tag and publishes to npm's `latest` tag.
|
|
104
307
|
|
|
105
308
|
### Release candidate
|
|
106
309
|
|
|
@@ -146,32 +349,13 @@ We also use a custom tailwind plugin to shorten some selectors inside the @povio
|
|
|
146
349
|
@plugin "@povio/ui/tw-ui-plugin";
|
|
147
350
|
```
|
|
148
351
|
|
|
149
|
-
###
|
|
150
|
-
|
|
151
|
-
Import the color utilities in your application's Tailwind stylesheet. This import is required because `@povio/ui` components use these utilities:
|
|
152
|
-
|
|
153
|
-
```css
|
|
154
|
-
@import "tailwindcss";
|
|
155
|
-
@import "./theme.css";
|
|
156
|
-
@import "@povio/ui/color-utilities";
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
Use `bg-state-<color>/<state>`, `border-state-<color>/<state>`, `border-b-state-<color>/<state>`, or `text-state-<color>/<state>` to mix a theme color with a named state color in sRGB. The color resolves to `--color-<color>`. For each state, define `--states-<state>-color` and `--states-<state>-opacity` in the light and dark themes, then expose them as `--state-color-<state>` and `--state-opacity-<state>` in `@theme inline`. The theme export supplies these aliases, so additional state names require no change to the utilities.
|
|
352
|
+
### Theme
|
|
160
353
|
|
|
161
|
-
|
|
162
|
-
<button
|
|
163
|
-
type="button"
|
|
164
|
-
className="bg-interactive-primary-background border-interactive-primary-background text-interactive-primary-foreground hover:bg-state-interactive-primary-background/hover hover:border-state-interactive-primary-background/hover"
|
|
165
|
-
>
|
|
166
|
-
Hover to change state color
|
|
167
|
-
</button>
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
The utilities support standard Tailwind variants such as `hover:`, `focus-visible:`, and `dark:`. With an opaque starting color and state mix color, the result remains opaque. Using the same base color and state for background and border gives them exactly the same result. The state mix color can be white, black, or another color supplied by the theme.
|
|
354
|
+
Components use the shadcn/ui colour roles (`bg-primary`, `text-muted-foreground`, `border-input`, `ring-ring`, …) plus `success`, `warning`, `info` and `destructive-foreground`, and Tailwind's default spacing, radius, text and shadow scales. Provide them by pasting a shadcn theme (`:root` / `.dark` CSS variables and the `@theme inline` mapping) into your stylesheet — see `apps/storybook/src/styles/theme.css`. States use plain Tailwind (`hover:bg-primary/90`, `hover:bg-accent`, `disabled:opacity-50`), so no extra utilities are needed.
|
|
171
355
|
|
|
172
356
|
### Icon slots
|
|
173
357
|
|
|
174
|
-
`IconSlot` reserves
|
|
358
|
+
`IconSlot` reserves a `size-4` box (16px, as in shadcn/ui) and centers the SVG in it at full size (`--icons-scale`, default 1). Buttons and input icon props use it automatically, whether you pass a component reference or an element.
|
|
175
359
|
|
|
176
360
|
```tsx
|
|
177
361
|
import { Plus } from "lucide-react";
|
|
@@ -184,11 +368,11 @@ import { IconSlot } from "@povio/ui/icon-slot";
|
|
|
184
368
|
/>;
|
|
185
369
|
```
|
|
186
370
|
|
|
187
|
-
`IconSlot` is also exported from `@povio/ui`, `@povio/ui/
|
|
371
|
+
`IconSlot` is also exported from `@povio/ui`, `@povio/ui/tanstack`, and `@povio/ui/icons`. `className` styles the outer slot; `iconClassName` styles the SVG. The slot controls SVG dimensions, including supplied SVGs with their own size classes. Use the inherited CSS variable `--icons-scale` to change the default ratio throughout a theme, or `scale` to override one slot. The default 16px slot at `0.8` produces a 12.8px SVG. Stroke width continues to follow the icon's own configuration.
|
|
188
372
|
|
|
189
373
|
Override the shared recipe through `UIOverrides` at `iconSlot.cva`. Component-specific icon recipes, such as `button.iconSize`, now style the outer slot. An explicitly configured slot passed to a button or input keeps its configuration without nesting another slot.
|
|
190
374
|
|
|
191
|
-
Storybook's **UI / Components / Icons / IconSlot** page includes a playground, raw-versus-slotted comparisons, and button/input examples. Adjust
|
|
375
|
+
Storybook's **UI / Components / Icons / IconSlot** page includes a playground, raw-versus-slotted comparisons, and button/input examples. Adjust the slot size and `scale` in Controls and enable slot outlines to inspect the geometry.
|
|
192
376
|
|
|
193
377
|
### Z-Index
|
|
194
378
|
|
|
@@ -271,13 +455,13 @@ We're using a helper class for flex, so make sure to add this into your base css
|
|
|
271
455
|
|
|
272
456
|
## App canvas page (`/_canvas`)
|
|
273
457
|
|
|
274
|
-
|
|
458
|
+
The separate `@povio/ui-configurator` package includes a ready-made page for inspecting all your TanStack Router pages. Install it as a development dependency alongside a compatible `@povio/ui` release, and retain your application's existing `@tanstack/react-router` dependency (an optional peer for this integration).
|
|
275
459
|
|
|
276
460
|
For file-based routing, create `src/routes/[_]canvas.tsx` (or use your configured routes directory). The brackets escape TanStack's pathless-layout underscore convention:
|
|
277
461
|
|
|
278
462
|
```tsx
|
|
279
|
-
import "@povio/ui/app-canvas/styles";
|
|
280
|
-
import { appCanvasRouteOptions } from "@povio/ui/app-canvas/tanstack";
|
|
463
|
+
import "@povio/ui-configurator/app-canvas/styles";
|
|
464
|
+
import { appCanvasRouteOptions } from "@povio/ui-configurator/app-canvas/tanstack";
|
|
281
465
|
import { createFileRoute } from "@tanstack/react-router";
|
|
282
466
|
|
|
283
467
|
export const Route = createFileRoute("/_canvas")(appCanvasRouteOptions({ enabled: import.meta.env.DEV }));
|
|
@@ -286,8 +470,8 @@ export const Route = createFileRoute("/_canvas")(appCanvasRouteOptions({ enabled
|
|
|
286
470
|
Mount `AppCanvasBridge` once beneath the existing router and `UIConfigurationProvider`, alongside the root `Outlet`. The provider must be shared by the canvas route and the normal application pages; keep its existing theme defaults and persistence. If the app does not yet have this provider, add one using `parseThemeCss` on its theme source.
|
|
287
471
|
|
|
288
472
|
```tsx
|
|
289
|
-
import { isAppCanvasFrame } from "@povio/ui/app-canvas";
|
|
290
|
-
import { AppCanvasBridge, useIsAppCanvasPage } from "@povio/ui/app-canvas/tanstack";
|
|
473
|
+
import { isAppCanvasFrame } from "@povio/ui-configurator/app-canvas";
|
|
474
|
+
import { AppCanvasBridge, useIsAppCanvasPage } from "@povio/ui-configurator/app-canvas/tanstack";
|
|
291
475
|
|
|
292
476
|
// Inside the app's root component, under its UIConfigurationProvider:
|
|
293
477
|
const canvasPage = useIsAppCanvasPage();
|
|
@@ -305,8 +489,8 @@ return (
|
|
|
305
489
|
For code-based routing, add the package route to the existing root's children **before** creating the router:
|
|
306
490
|
|
|
307
491
|
```tsx
|
|
308
|
-
import "@povio/ui/app-canvas/styles";
|
|
309
|
-
import { createAppCanvasRoute } from "@povio/ui/app-canvas/tanstack";
|
|
492
|
+
import "@povio/ui-configurator/app-canvas/styles";
|
|
493
|
+
import { createAppCanvasRoute } from "@povio/ui-configurator/app-canvas/tanstack";
|
|
310
494
|
const canvasRoute = createAppCanvasRoute({
|
|
311
495
|
getParentRoute: () => rootRoute,
|
|
312
496
|
enabled: import.meta.env.DEV,
|
|
@@ -315,4 +499,34 @@ const canvasRoute = createAppCanvasRoute({
|
|
|
315
499
|
const routeTree = rootRoute.addChildren([homeRoute, projectsRoute, canvasRoute]);
|
|
316
500
|
```
|
|
317
501
|
|
|
318
|
-
Then open `/_canvas` directly. `enabled` accepts a boolean or a synchronous predicate; false produces a not-found route. Apply your existing access policy if enabling it outside development. Normal page authentication and loaders still run inside the frames. The canvas excludes its own pathname, and dynamic pages without example parameters remain explicitly unresolved. The lower-level `AppCanvasPage` and `AppCanvas` components remain available from `@povio/ui/app-canvas` for custom integrations.
|
|
502
|
+
Then open `/_canvas` directly. `enabled` accepts a boolean or a synchronous predicate; false produces a not-found route. Apply your existing access policy if enabling it outside development. Normal page authentication and loaders still run inside the frames. The canvas excludes its own pathname, and dynamic pages without example parameters remain explicitly unresolved. The lower-level `AppCanvasPage` and `AppCanvas` components remain available from `@povio/ui-configurator/app-canvas` for custom integrations.
|
|
503
|
+
|
|
504
|
+
### Canvas workspaces
|
|
505
|
+
|
|
506
|
+
The canvas supports named workspaces, enabled pages per workspace, and independent positions per breakpoint. The selected page's HTML layers expand directly beneath its row in the sidebar.
|
|
507
|
+
|
|
508
|
+
The existing `uiConfigurator` Vite plugin also saves canvas settings to `povio.canvas.json` in the app root. Configure an alternate file with `uiConfigurator({ canvasFile: "povio.canvas.json" })`, or disable this with `canvasFile: false`. No Git commands run: review and commit this file through the normal repository workflow. Conflicting writes from different sessions are rejected instead of silently overwriting settings. Without this development-server connection, settings stay in browser storage; export/import remains available.
|
|
509
|
+
|
|
510
|
+
### Fontsource font families
|
|
511
|
+
|
|
512
|
+
In Configure UI, open Typography → Font families → Browse Fontsource. Search or filter the catalog, select a family to preview it, then choose Heading, Body, or Add to available fonts and click **Add font to app**. In development, this installs the verified Fontsource package with the application's existing package manager, updates its package.json and lockfile, and adds CSS imports. Variable families with a weight axis are preferred; static families load their supported weights and styles. Existing compatible packages and imports are reused.
|
|
513
|
+
|
|
514
|
+
The selected role changes the live preview. **Save changes** writes it to the app's theme CSS. Adding a font makes its assets available; role assignments are saved explicitly with the theme. Package installation scripts are disabled, and no Git commit or push is performed. Catalog browsing and temporary CDN previews also work without the development installer.
|
|
515
|
+
|
|
516
|
+
The Vite plugin uses `src/styles/globals.css` by default. For another CSS entrypoint, configure `uiConfigurator({ fontCssFile: "src/app.css" })`; it must exist inside the application's Vite root. Set `fontCssFile: false` to disable font installation. Restart Vite after adding or changing the plugin configuration.
|
|
517
|
+
|
|
518
|
+
## Styling overrides and precedence
|
|
519
|
+
|
|
520
|
+
Import `UIOverrides` from `@povio/ui/ui-overrides`. Each slot (for example `button.cva` or `input.sizeCva`) accepts a recipe override:
|
|
521
|
+
|
|
522
|
+
- `mode: "merge"` appends classes to the base and matching variant/compound entries. It does not resolve Tailwind conflicts: `p-2 p-4` retains both classes, and CSS precedence determines the result.
|
|
523
|
+
- `mode: "overrideEntry"` replaces the supplied base or variant/compound entries while retaining unspecified portions. This is the current name for the partial replacement behavior sometimes described as “override”.
|
|
524
|
+
- `mode: "overrideCva"` replaces the entire recipe, including its base, variants, compound variants, and defaults. A supplied CVA function also replaces the recipe.
|
|
525
|
+
|
|
526
|
+
With the configurator's `resolveUIConfiguration`, saved edits take precedence over TypeScript overrides at the same slot. Each edited slot becomes an `overrideCva` definition; other slots remain intact. Remove/reset a saved slot to let the corresponding TypeScript override apply again. Use entry replacement when replacing conflicting classes; `merge` is for additive styling.
|
|
527
|
+
|
|
528
|
+
## Application conventions
|
|
529
|
+
|
|
530
|
+
Use component subpath imports in examples and application code, including `@povio/ui/typography`, `@povio/ui/ui-config`, and `@povio/ui/ui-overrides`. Use `Drawer` from `@povio/ui/drawer` for a new right-side form or details panel, and `Dialog` for a centered modal. Existing `Dialog aside="right"` compositions remain supported; migrate deliberately when touching their layout and preserve focus/close behavior.
|
|
531
|
+
|
|
532
|
+
Typography supports `headline-l`, `h1`–`h4`, `lead`, `body`, `large`, and `small`; `title-4` is not supported. For example, use `<Typography as="h4" size="h4">Details</Typography>`. Web layouts use standard Tailwind radii such as `rounded-md` and `rounded-xl`, with semantic foreground/background role pairs.
|
|
@@ -1,120 +1,14 @@
|
|
|
1
|
-
import { t as ChevronDown } from "./chevron-down-B4Pr8bD3.js";
|
|
2
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
3
|
-
import { t as UIOverrides } from "./uiOverrides.context-
|
|
4
|
-
import { t as IconSlot } from "./IconSlot-
|
|
5
|
-
import { n as $
|
|
6
|
-
import {
|
|
7
|
-
import { t as $
|
|
8
|
-
import { t as Typography } from "./Typography-
|
|
9
|
-
import { a as accordionHeadingTitleDefinition, c as accordionPanelContentDefinition, i as accordionHeadingSubtitleDefinition, l as accordionPanelDefinition, n as accordionDefinition, o as accordionIconDefinition, r as accordionHeadingDefinition, s as accordionItemDefinition, t as accordionChevronDefinition, u as accordionTriggerDefinition } from "./accordion.cva-
|
|
10
|
-
import
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
+
import { t as IconSlot } from "./IconSlot-CqNuZl0E.js";
|
|
4
|
+
import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-C1YB5dOw.js";
|
|
5
|
+
import { t as $2ec61d1d4f780267$export$a8a3e93435678ff9 } from "./Heading-D4XFYv__.js";
|
|
6
|
+
import { n as $a3e16eab0ea4036c$export$944aceb4f8c89f10, r as $a3e16eab0ea4036c$export$feabaa331e1d464c, t as $a3e16eab0ea4036c$export$74a362b31437ec83 } from "./Disclosure-BRSkMbZQ.js";
|
|
7
|
+
import { t as Typography } from "./Typography-DCLnPa3P.js";
|
|
8
|
+
import { a as accordionHeadingTitleDefinition, c as accordionPanelContentDefinition, i as accordionHeadingSubtitleDefinition, l as accordionPanelDefinition, n as accordionDefinition, o as accordionIconDefinition, r as accordionHeadingDefinition, s as accordionItemDefinition, t as accordionChevronDefinition, u as accordionTriggerDefinition } from "./accordion.cva-DwxY-k1e.js";
|
|
9
|
+
import { ChevronDown } from "lucide-react";
|
|
11
10
|
import { c } from "react/compiler-runtime";
|
|
12
|
-
import { Fragment
|
|
13
|
-
import { mergeProps } from "react-aria/mergeProps";
|
|
14
|
-
import { mergeRefs } from "react-aria/mergeRefs";
|
|
15
|
-
import { filterDOMProps } from "react-aria/filterDOMProps";
|
|
16
|
-
import { useFocusRing } from "react-aria/useFocusRing";
|
|
17
|
-
import { useId as useId$1 } from "react-aria/useId";
|
|
18
|
-
import { useDisclosure } from "react-aria/useDisclosure";
|
|
19
|
-
import { useDisclosureGroupState } from "react-stately/useDisclosureGroupState";
|
|
20
|
-
import { useDisclosureState } from "react-stately/useDisclosureState";
|
|
21
|
-
//#region ../../node_modules/.bun/react-aria-components@1.21.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/Disclosure.mjs
|
|
22
|
-
const $a3e16eab0ea4036c$export$1d40e3e0cc4d5de = /*#__PURE__*/ createContext(null);
|
|
23
|
-
const $a3e16eab0ea4036c$export$944aceb4f8c89f10 = /*#__PURE__*/ forwardRef(function DisclosureGroup(props, ref) {
|
|
24
|
-
let state = useDisclosureGroupState(props);
|
|
25
|
-
let renderProps = $7230ffa83bc0c2cf$export$4d86445c2cf5e3({
|
|
26
|
-
...props,
|
|
27
|
-
defaultClassName: "react-aria-DisclosureGroup",
|
|
28
|
-
values: {
|
|
29
|
-
isDisabled: state.isDisabled,
|
|
30
|
-
state
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
let domProps = filterDOMProps(props, { global: true });
|
|
34
|
-
return /*#__PURE__*/ $ahdqC$react.createElement($7230ffa83bc0c2cf$export$df3a06d6289f983e.div, {
|
|
35
|
-
...domProps,
|
|
36
|
-
...renderProps,
|
|
37
|
-
ref,
|
|
38
|
-
"data-disabled": props.isDisabled || void 0
|
|
39
|
-
}, /*#__PURE__*/ $ahdqC$react.createElement($a3e16eab0ea4036c$export$1d40e3e0cc4d5de.Provider, { value: state }, renderProps.children));
|
|
40
|
-
});
|
|
41
|
-
const $a3e16eab0ea4036c$export$d665dd135a51b28a = /*#__PURE__*/ createContext(null);
|
|
42
|
-
const $a3e16eab0ea4036c$export$dab3ea4a6ef094da = /*#__PURE__*/ createContext(null);
|
|
43
|
-
const $a3e16eab0ea4036c$var$InternalDisclosureContext = /*#__PURE__*/ createContext(null);
|
|
44
|
-
const $a3e16eab0ea4036c$export$74a362b31437ec83 = /*#__PURE__*/ forwardRef(function Disclosure(props, ref) {
|
|
45
|
-
[props, ref] = $7230ffa83bc0c2cf$export$29f1550f4b0d4415(props, ref, $a3e16eab0ea4036c$export$d665dd135a51b28a);
|
|
46
|
-
let groupState = useContext($a3e16eab0ea4036c$export$1d40e3e0cc4d5de);
|
|
47
|
-
let { id, ...otherProps } = props;
|
|
48
|
-
let defaultId = useId$1();
|
|
49
|
-
id ||= defaultId;
|
|
50
|
-
let isExpanded = groupState ? groupState.expandedKeys.has(id) : props.isExpanded;
|
|
51
|
-
let state = useDisclosureState({
|
|
52
|
-
...props,
|
|
53
|
-
isExpanded,
|
|
54
|
-
onExpandedChange(isExpanded) {
|
|
55
|
-
if (groupState) groupState.toggleKey(id);
|
|
56
|
-
props.onExpandedChange?.(isExpanded);
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
let panelRef = $ahdqC$react.useRef(null);
|
|
60
|
-
let isDisabled = props.isDisabled || groupState?.isDisabled || false;
|
|
61
|
-
let { buttonProps, panelProps } = useDisclosure({
|
|
62
|
-
...props,
|
|
63
|
-
isExpanded,
|
|
64
|
-
isDisabled
|
|
65
|
-
}, state, panelRef);
|
|
66
|
-
let { isFocusVisible: isFocusVisibleWithin, focusProps: focusWithinProps } = useFocusRing({ within: true });
|
|
67
|
-
let renderProps = $7230ffa83bc0c2cf$export$4d86445c2cf5e3({
|
|
68
|
-
...props,
|
|
69
|
-
id: void 0,
|
|
70
|
-
defaultClassName: "react-aria-Disclosure",
|
|
71
|
-
values: {
|
|
72
|
-
isExpanded: state.isExpanded,
|
|
73
|
-
isDisabled,
|
|
74
|
-
isFocusVisibleWithin,
|
|
75
|
-
state
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
let domProps = filterDOMProps(otherProps, { global: true });
|
|
79
|
-
return /*#__PURE__*/ $ahdqC$react.createElement($7230ffa83bc0c2cf$export$2881499e37b75b9a, { values: [
|
|
80
|
-
[$7705c033048f6da7$export$24d547caef80ccd1, { slots: {
|
|
81
|
-
[$7230ffa83bc0c2cf$export$c62b8e45d58ddad9]: {},
|
|
82
|
-
trigger: buttonProps
|
|
83
|
-
} }],
|
|
84
|
-
[$a3e16eab0ea4036c$var$InternalDisclosureContext, {
|
|
85
|
-
panelProps,
|
|
86
|
-
panelRef
|
|
87
|
-
}],
|
|
88
|
-
[$a3e16eab0ea4036c$export$dab3ea4a6ef094da, state]
|
|
89
|
-
] }, /*#__PURE__*/ $ahdqC$react.createElement($7230ffa83bc0c2cf$export$df3a06d6289f983e.div, {
|
|
90
|
-
...mergeProps(domProps, renderProps, focusWithinProps),
|
|
91
|
-
ref,
|
|
92
|
-
"data-expanded": state.isExpanded || void 0,
|
|
93
|
-
"data-disabled": isDisabled || void 0,
|
|
94
|
-
"data-focus-visible-within": isFocusVisibleWithin || void 0
|
|
95
|
-
}, renderProps.children));
|
|
96
|
-
});
|
|
97
|
-
const $a3e16eab0ea4036c$export$feabaa331e1d464c = /*#__PURE__*/ forwardRef(function DisclosurePanel(props, ref) {
|
|
98
|
-
let { role = "group" } = props;
|
|
99
|
-
let { panelProps, panelRef } = useContext($a3e16eab0ea4036c$var$InternalDisclosureContext);
|
|
100
|
-
let { isFocusVisible: isFocusVisibleWithin, focusProps: focusWithinProps } = useFocusRing({ within: true });
|
|
101
|
-
let renderProps = $7230ffa83bc0c2cf$export$4d86445c2cf5e3({
|
|
102
|
-
...props,
|
|
103
|
-
defaultClassName: "react-aria-DisclosurePanel",
|
|
104
|
-
values: { isFocusVisibleWithin }
|
|
105
|
-
});
|
|
106
|
-
let DOMProps = filterDOMProps(props, {
|
|
107
|
-
global: true,
|
|
108
|
-
labelable: true
|
|
109
|
-
});
|
|
110
|
-
return /*#__PURE__*/ $ahdqC$react.createElement($7230ffa83bc0c2cf$export$df3a06d6289f983e.div, {
|
|
111
|
-
...mergeProps(DOMProps, renderProps, panelProps, focusWithinProps),
|
|
112
|
-
ref: mergeRefs(ref, panelRef),
|
|
113
|
-
role,
|
|
114
|
-
"data-focus-visible-within": isFocusVisibleWithin || void 0
|
|
115
|
-
}, /*#__PURE__*/ $ahdqC$react.createElement($7230ffa83bc0c2cf$export$2881499e37b75b9a, { values: [[$7705c033048f6da7$export$24d547caef80ccd1, null]] }, props.children));
|
|
116
|
-
});
|
|
117
|
-
//#endregion
|
|
11
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
118
12
|
//#region src/components/navigation/Accordion/AccordionItem.tsx
|
|
119
13
|
const AccordionItem = (t0) => {
|
|
120
14
|
const $ = c(25);
|
|
@@ -145,7 +39,7 @@ const AccordionItem = (t0) => {
|
|
|
145
39
|
if ($[4] !== Icon || $[5] !== actionPosition || $[6] !== chevronCva || $[7] !== children || $[8] !== disabled || $[9] !== heading || $[10] !== headingCva || $[11] !== headingSubtitleCva || $[12] !== headingTitleCva || $[13] !== iconCva || $[14] !== panelContentCva || $[15] !== panelCva || $[16] !== subheading || $[17] !== triggerCva || $[18] !== variant) {
|
|
146
40
|
t4 = (t5) => {
|
|
147
41
|
const { isExpanded } = t5;
|
|
148
|
-
return /* @__PURE__ */ jsxs(Fragment
|
|
42
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx($2ec61d1d4f780267$export$a8a3e93435678ff9, { children: /* @__PURE__ */ jsxs($7705c033048f6da7$export$353f5b6fc5456de1, {
|
|
149
43
|
slot: "trigger",
|
|
150
44
|
className: triggerCva({
|
|
151
45
|
variant,
|
|
@@ -155,19 +49,19 @@ const AccordionItem = (t0) => {
|
|
|
155
49
|
children: [/* @__PURE__ */ jsx("div", {
|
|
156
50
|
className: headingCva({}),
|
|
157
51
|
children: /* @__PURE__ */ jsxs("div", {
|
|
158
|
-
className: "flex flex-1 items-center gap-
|
|
52
|
+
className: "flex flex-1 items-center gap-2",
|
|
159
53
|
children: [
|
|
160
54
|
Icon && /* @__PURE__ */ jsx(IconSlot, {
|
|
161
55
|
icon: Icon,
|
|
162
56
|
className: iconCva({})
|
|
163
57
|
}),
|
|
164
58
|
/* @__PURE__ */ jsx(Typography, {
|
|
165
|
-
size: "
|
|
59
|
+
size: "body",
|
|
166
60
|
className: headingTitleCva({}),
|
|
167
61
|
children: heading
|
|
168
62
|
}),
|
|
169
63
|
subheading && /* @__PURE__ */ jsx(Typography, {
|
|
170
|
-
size: "
|
|
64
|
+
size: "body",
|
|
171
65
|
className: headingSubtitleCva({}),
|
|
172
66
|
children: subheading
|
|
173
67
|
})
|