@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
|
@@ -1 +1 @@
|
|
|
1
|
-
import{mergeProps as e}from"react-aria/mergeProps";import{mergeRefs as t}from"react-aria/mergeRefs";import n,{createContext as r,forwardRef as i,useContext as a,useMemo as o,useRef as s}from"react";import{useLayoutEffect as
|
|
1
|
+
import{mergeProps as e}from"react-aria/mergeProps";import{mergeRefs as t}from"react-aria/mergeRefs";import n,{createContext as r,forwardRef as i,useContext as a,useMemo as o,useRef as s,useState as c}from"react";import{useLayoutEffect as l}from"react-aria/private/utils/useLayoutEffect";import{useObjectRef as u}from"react-aria/useObjectRef";import{filterDOMProps as d}from"react-aria/filterDOMProps";import"react-aria/private/collections/Hidden";import"react-aria/useId";import{Overlay as f}from"react-aria/Overlay";import{useOverlayTriggerState as p}from"react-stately/useOverlayTriggerState";import{runAfterKeyboard as m}from"react-aria/private/utils/runAfterKeyboard";import{useEnterAnimation as h,useExitAnimation as g}from"react-aria/private/utils/animation";import"react-stately/useMenuTriggerState";import"react-aria/private/interactions/PressResponder";import"react-aria/useDialog";import"react-aria/useOverlayTrigger";import{useModalOverlay as _}from"react-aria/useModalOverlay";import{isScrollable as v}from"react-aria/private/utils/isScrollable";import{useIsSSR as y}from"react-aria/SSRProvider";import{useViewportSize as b}from"react-aria/private/utils/useViewportSize";const x=Symbol(`default`);function S({values:e,children:t}){for(let[r,i]of e)t=n.createElement(r.Provider,{value:i},t);return t}function C(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:s,values:c,render:l}=e;return o(()=>{let e,o,u;return e=typeof t==`function`?t({...c,defaultClassName:i}):t,o=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:a}):r??a,{className:e??i,style:o||s?{...s,...o}:void 0,children:u??a,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,i,a,s,c,l])}function w(e,t){let n=a(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||x;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function T(n,r,i){let{ref:a,...s}=w(i,n.slot)||{},c=u(o(()=>t(r,a),[r,a])),l=e(s,n);return`style`in s&&s.style&&`style`in n&&n.style&&(l.style=typeof s.style==`function`||typeof n.style==`function`?e=>{let t=typeof s.style==`function`?s.style(e):s.style,r={...e.defaultStyle,...t},i=typeof n.style==`function`?n.style({...e,defaultStyle:r}):n.style;return{...r,...i}}:{...s.style,...n.style}),[l,c]}function E(e,r,i){let{render:a,...c}=r,u=s(null),d=o(()=>t(i,u),[i,u]);l(()=>{},[e,a]);let f={...c,ref:d};return a?a(f,void 0):n.createElement(e,f)}const D={},O=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=D[t];return n||(n=i(E.bind(null,t)),D[t]=n),n}}),k=r(null),A=r(null),j=r(null),M=r(null);function N(e,t){[e,t]=T(e,t,j);let r=a(A),i=p(e),o=e.isOpen!=null||e.defaultOpen!=null||!r?i:r,c=u(t),l=s(null),d=g(c,o.isOpen,e.onExit),f=s(null),m=g(l,o.isOpen,e=>f.current?.(e)),h=d||m||e.isExiting||!1,_=y();return!o.isOpen&&!h||_?null:n.createElement(F,{...e,state:o,isExiting:h,overlayRef:c,modalRef:l,onExitRef:f})}const P=i(N);function F({UNSTABLE_portalContainer:t,UNSTABLE_deferUntilEntered:r,...i}){let o=i.modalRef,{state:s}=i,[u,p]=c(!1),g=h(i.overlayRef,u,i.onEnter)||i.isEntering||!1,y=!!r&&(!u||g),{modalProps:x,underlayProps:w}=_({...i,isEntering:y},s,o),T=a(k),E=r?I(T,{isEntering:y}):T,D=C({...i,defaultClassName:`react-aria-ModalOverlay`,values:{isEntering:g,isExiting:i.isExiting,state:s}}),j=b(),N,P;if(typeof document<`u`){let e=v(document.body)?document.body:document.scrollingElement||document.documentElement,t=e.getBoundingClientRect().width%1,n=e.getBoundingClientRect().height%1;N=e.scrollWidth-t,P=e.scrollHeight-n}let F={...D.style,"--visual-viewport-width":j.width+`px`,"--visual-viewport-height":j.height+`px`,"--page-width":N===void 0?void 0:N+`px`,"--page-height":P===void 0?void 0:P+`px`};return l(()=>m(()=>p(!0)),[]),n.createElement(f,{isExiting:i.isExiting,portalContainer:t},n.createElement(O.div,{...e(d(i,{global:!0}),w),...D,style:F,ref:i.overlayRef,"data-entering":g||void 0,"data-exiting":i.isExiting||void 0},n.createElement(S,{values:[[M,{modalProps:x,modalRef:o,isExiting:i.isExiting,onExitRef:i.onExitRef,isOpen:u,isDismissable:i.isDismissable}],[A,s],[k,E]]},D.children)))}function I(e,t){if(e&&`slots`in e&&e.slots){let n={};for(let r in e.slots)n[r]={...e.slots[r],...t};return{...e,slots:n}}return{...e,...t}}export{P as ModalOverlay};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as NumberFieldProps, n as
|
|
2
|
-
export {
|
|
1
|
+
import { i as NumberFieldProps, n as NumberFieldComponent, r as NumberFieldInner, t as NumberField } from "../NumberField-BUTmx-kv.js";
|
|
2
|
+
export { NumberField, NumberFieldComponent, type NumberFieldInner, type NumberFieldProps };
|
|
@@ -1,246 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t as clsx } from "../clsx-CnD0nOiA.js";
|
|
3
|
-
import { t as UIOverrides } from "../uiOverrides.context-BTCH9y5a.js";
|
|
4
|
-
import { n as $41fb335299a4a39e$export$f5b8910cec6cf069 } from "../Input-BsbLZDtC.js";
|
|
5
|
-
import { a as $a3be900807531178$re_export$useLocale } from "../exports-BNrTn8Tj.js";
|
|
6
|
-
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "../import-BE0r63d8.js";
|
|
7
|
-
import { t as FieldController } from "../form.binding-CG1RPv6o.js";
|
|
8
|
-
import { t as FormField } from "../FormField-B99dLt8o.js";
|
|
9
|
-
import { t as inputBaseDefinition } from "../input.cva-DJA8ovm_.js";
|
|
10
|
-
import { t as TooltipWrapper } from "../TooltipWrapper-3jyN0Wss.js";
|
|
11
|
-
import { n as InputContent, t as useFieldAccessibility } from "../useFieldAccessibility-ScC6Mtd5.js";
|
|
12
|
-
import { i as InputFrame, n as useStaticInputHandoff } from "../useStaticInputHandoff-NeZVnci-.js";
|
|
13
|
-
import { n as $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c, t as getStaticNumberDisplayValue } from "../numberStatic.utils-BX50PSee.js";
|
|
14
|
-
import { t as IntlUtils } from "../intl.utils-zwAFoZ0U.js";
|
|
15
|
-
import { memo, useCallback, useEffect, useRef, useState } from "react";
|
|
16
|
-
import { jsx } from "react/jsx-runtime";
|
|
17
|
-
import { useNumberField } from "react-aria";
|
|
18
|
-
import { useFocusVisible } from "@react-aria/interactions";
|
|
19
|
-
//#region src/components/inputs/Input/NumberField/NumberField.tsx
|
|
20
|
-
const NumberFieldBase = (props) => {
|
|
21
|
-
"use no memo";
|
|
22
|
-
const ui = UIConfig.useConfig();
|
|
23
|
-
const inputBaseCva = UIOverrides.useCva("input.baseCva", inputBaseDefinition);
|
|
24
|
-
const hasControlledValue = "value" in props;
|
|
25
|
-
const inputRef = useRef(null);
|
|
26
|
-
const { ref, inputClassName, label, tooltipText, helperText, isRequired, required, rightContent, isDisabled, disabled, isDirty, headerClassName, errorClassName, isHeaderHidden, error, errorMessage, className, unit, isLoading, action, leadingIcon, trailingIcon, value, onChange, onBlur, formatOptions: formatOptionsProp, variant: variantProp, as: asProp, layout: layoutProp, size: sizeProp, hideLabel: hideLabelProp, isClearable: isClearableProp, isClearableIfDisabled, autoFocusOnMount, ...rest } = props;
|
|
27
|
-
const formatOptions = formatOptionsProp ?? ui.numberField.formatOptions;
|
|
28
|
-
const variant = variantProp ?? ui.input.variant;
|
|
29
|
-
const as = layoutProp ?? asProp ?? ui.input.as;
|
|
30
|
-
const resolvedIsDisabled = isDisabled ?? disabled;
|
|
31
|
-
const resolvedIsRequired = isRequired ?? required;
|
|
32
|
-
const resolvedError = errorMessage ?? error;
|
|
33
|
-
const size = sizeProp ?? ui.input.size;
|
|
34
|
-
const hideLabel = hideLabelProp ?? ui.input.hideLabel;
|
|
35
|
-
const isClearable = isClearableProp ?? ui.input.isClearable;
|
|
36
|
-
const numberFieldRef = useRef(null);
|
|
37
|
-
const { isFocusVisible } = useFocusVisible();
|
|
38
|
-
const { locale } = $a3be900807531178$re_export$useLocale();
|
|
39
|
-
const numberProps = {
|
|
40
|
-
...rest,
|
|
41
|
-
value: hasControlledValue ? value ?? NaN : void 0,
|
|
42
|
-
label,
|
|
43
|
-
isDisabled: resolvedIsDisabled,
|
|
44
|
-
isInvalid: !!resolvedError,
|
|
45
|
-
isRequired: resolvedIsRequired,
|
|
46
|
-
onChange: (nextValue) => onChange?.(Number.isNaN(nextValue) ? null : nextValue),
|
|
47
|
-
onBlur: (e) => onBlur?.({ target: e.target }),
|
|
48
|
-
locale,
|
|
49
|
-
formatOptions
|
|
50
|
-
};
|
|
51
|
-
const state = $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c(numberProps);
|
|
52
|
-
const { labelProps, inputProps } = useNumberField(numberProps, state, numberFieldRef);
|
|
53
|
-
const { describedBy, errorMessageId, helperTextId } = useFieldAccessibility({
|
|
54
|
-
describedBy: inputProps["aria-describedby"],
|
|
55
|
-
error,
|
|
56
|
-
helperText
|
|
57
|
-
});
|
|
58
|
-
useEffect(() => {
|
|
59
|
-
if (!autoFocusOnMount || resolvedIsDisabled) return;
|
|
60
|
-
requestAnimationFrame(() => inputRef.current?.focus());
|
|
61
|
-
}, [autoFocusOnMount, resolvedIsDisabled]);
|
|
62
|
-
const formFieldProps = {
|
|
63
|
-
errorMessageId,
|
|
64
|
-
error: resolvedError,
|
|
65
|
-
label,
|
|
66
|
-
tooltipText,
|
|
67
|
-
helperText,
|
|
68
|
-
helperTextId,
|
|
69
|
-
isRequired: resolvedIsRequired,
|
|
70
|
-
rightContent,
|
|
71
|
-
isHeaderHidden: isHeaderHidden || as === "inline" || as === "filter" || as === "floating",
|
|
72
|
-
hideLabel,
|
|
73
|
-
isDisabled: resolvedIsDisabled,
|
|
74
|
-
headerClassName,
|
|
75
|
-
errorClassName
|
|
76
|
-
};
|
|
77
|
-
const handleInputBlur = useCallback((e) => {
|
|
78
|
-
const target = numberFieldRef.current ?? e?.target;
|
|
79
|
-
onBlur?.({ target });
|
|
80
|
-
}, [onBlur]);
|
|
81
|
-
const inputContentProps = {
|
|
82
|
-
unit,
|
|
83
|
-
isLoading,
|
|
84
|
-
isDisabled: resolvedIsDisabled,
|
|
85
|
-
action,
|
|
86
|
-
leadingIcon,
|
|
87
|
-
trailingIcon,
|
|
88
|
-
isClearable,
|
|
89
|
-
isClearableIfDisabled,
|
|
90
|
-
onChange: (nextValue) => {
|
|
91
|
-
if (nextValue === "") state.setInputValue("");
|
|
92
|
-
onChange?.(nextValue === "" ? null : Number(nextValue));
|
|
93
|
-
},
|
|
94
|
-
value: state.inputValue,
|
|
95
|
-
onBlur: handleInputBlur
|
|
96
|
-
};
|
|
97
|
-
const headerProps = {
|
|
98
|
-
label,
|
|
99
|
-
tooltipText,
|
|
100
|
-
helperText,
|
|
101
|
-
isRequired: resolvedIsRequired,
|
|
102
|
-
rightContent,
|
|
103
|
-
isHeaderHidden: hideLabel || isHeaderHidden,
|
|
104
|
-
isDisabled: resolvedIsDisabled,
|
|
105
|
-
className: headerClassName,
|
|
106
|
-
labelProps
|
|
107
|
-
};
|
|
108
|
-
const dataIsDisabled = resolvedIsDisabled || void 0;
|
|
109
|
-
return /* @__PURE__ */ jsx(TooltipWrapper, {
|
|
110
|
-
as,
|
|
111
|
-
error: resolvedError,
|
|
112
|
-
triggerTabIndex: as === "inline" ? -1 : void 0,
|
|
113
|
-
children: /* @__PURE__ */ jsx(FormField, {
|
|
114
|
-
...formFieldProps,
|
|
115
|
-
as,
|
|
116
|
-
labelProps,
|
|
117
|
-
className: clsx("group w-full", className),
|
|
118
|
-
tabIndex: as === "inline" ? -1 : void 0,
|
|
119
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
120
|
-
className: clsx("relative flex cursor-text has-disabled:cursor-default", inputBaseCva({
|
|
121
|
-
variant,
|
|
122
|
-
as,
|
|
123
|
-
...rest
|
|
124
|
-
}), inputClassName),
|
|
125
|
-
onClick: () => inputRef.current?.focus(),
|
|
126
|
-
"data-is-empty": value === null || value === void 0 || void 0,
|
|
127
|
-
"data-is-required": resolvedIsRequired || void 0,
|
|
128
|
-
"data-is-disabled": dataIsDisabled,
|
|
129
|
-
children: /* @__PURE__ */ jsx(InputContent, {
|
|
130
|
-
...inputContentProps,
|
|
131
|
-
headerProps,
|
|
132
|
-
as,
|
|
133
|
-
size,
|
|
134
|
-
children: /* @__PURE__ */ jsx($41fb335299a4a39e$export$f5b8910cec6cf069, {
|
|
135
|
-
...inputProps,
|
|
136
|
-
"aria-describedby": describedBy,
|
|
137
|
-
"aria-errormessage": errorMessageId,
|
|
138
|
-
ref: $a8ea2faf2ebe4d2f$re_export$mergeRefs(ref, inputRef, numberFieldRef),
|
|
139
|
-
"data-is-dirty": isDirty || void 0,
|
|
140
|
-
"data-is-required": resolvedIsRequired || void 0,
|
|
141
|
-
"data-is-empty": state.inputValue === "" || state.inputValue === void 0 || state.inputValue === null || void 0,
|
|
142
|
-
"data-is-filled": !("" + value === "" || value === null || value === void 0) || void 0,
|
|
143
|
-
"data-is-disabled": dataIsDisabled,
|
|
144
|
-
placeholder: as === "floating" ? "\xA0" : inputProps.placeholder,
|
|
145
|
-
className: "w-full bg-transparent outline-none",
|
|
146
|
-
onFocus: (e) => {
|
|
147
|
-
inputProps.onFocus?.(e);
|
|
148
|
-
if (isFocusVisible) e.target.select();
|
|
149
|
-
}
|
|
150
|
-
})
|
|
151
|
-
})
|
|
152
|
-
})
|
|
153
|
-
})
|
|
154
|
-
});
|
|
155
|
-
};
|
|
156
|
-
const NumberFieldInner = ({ renderStaticInput, isFormControlDisabled, ...props }) => {
|
|
157
|
-
"use no memo";
|
|
158
|
-
const ui = UIConfig.useConfig();
|
|
159
|
-
const { locale } = $a3be900807531178$re_export$useLocale();
|
|
160
|
-
const [renderInput, setRenderInput] = useState(!(renderStaticInput ?? ui.renderStaticInput));
|
|
161
|
-
const inputRef = useRef(null);
|
|
162
|
-
const { renderRealInput, replayStaticInputChange } = useStaticInputHandoff({
|
|
163
|
-
inputRef,
|
|
164
|
-
renderInput,
|
|
165
|
-
setRenderInput
|
|
166
|
-
});
|
|
167
|
-
if (!renderInput) {
|
|
168
|
-
const staticValue = props.value ?? props.defaultValue;
|
|
169
|
-
const formatOptions = props.formatOptions ?? ui.numberField.formatOptions;
|
|
170
|
-
const displayValue = getStaticNumberDisplayValue(staticValue, IntlUtils.getNumberFormatter(locale, formatOptions)) ?? "";
|
|
171
|
-
const hasValue = displayValue !== "";
|
|
172
|
-
const as = props.as ?? ui.input.as;
|
|
173
|
-
let isDisabled = !!props.isDisabled;
|
|
174
|
-
if (isFormControlDisabled) isDisabled = true;
|
|
175
|
-
const dataAttributes = {
|
|
176
|
-
dataIsEmpty: !hasValue,
|
|
177
|
-
dataIsFilled: hasValue,
|
|
178
|
-
dataIsDirty: props.isDirty,
|
|
179
|
-
dataIsRequired: props.isRequired,
|
|
180
|
-
dataIsDisabled: isDisabled,
|
|
181
|
-
dataDisabled: isDisabled,
|
|
182
|
-
dataInvalid: !!props.error,
|
|
183
|
-
dataHasSelection: hasValue
|
|
184
|
-
};
|
|
185
|
-
return /* @__PURE__ */ jsx(InputFrame, {
|
|
186
|
-
...props,
|
|
187
|
-
isDisabled,
|
|
188
|
-
className: clsx("group w-full", as === "inline" && "h-full", props.className),
|
|
189
|
-
dataAttributes,
|
|
190
|
-
onStaticInteract: renderRealInput,
|
|
191
|
-
inputClassName: props.inputClassName,
|
|
192
|
-
contentClassName: clsx(as === "inline" && "h-full", "pr-0!"),
|
|
193
|
-
trailingClassName: "py-0! pl-0!",
|
|
194
|
-
wrapContentAndTrailing: true,
|
|
195
|
-
reserveTrailingContent: true,
|
|
196
|
-
children: (dataAttributeProps) => /* @__PURE__ */ jsx("input", {
|
|
197
|
-
type: "text",
|
|
198
|
-
ref: inputRef,
|
|
199
|
-
disabled: isDisabled,
|
|
200
|
-
inputMode: "numeric",
|
|
201
|
-
tabIndex: -1,
|
|
202
|
-
value: displayValue,
|
|
203
|
-
placeholder: as === "floating" ? "" : props.placeholder,
|
|
204
|
-
className: "w-full bg-transparent outline-none",
|
|
205
|
-
onChange: (event) => replayStaticInputChange(event.target.value),
|
|
206
|
-
...dataAttributeProps,
|
|
207
|
-
"data-rac": true
|
|
208
|
-
})
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
|
-
return /* @__PURE__ */ jsx(NumberFieldBase, {
|
|
212
|
-
...props,
|
|
213
|
-
ref: $a8ea2faf2ebe4d2f$re_export$mergeRefs(props.ref, inputRef)
|
|
214
|
-
});
|
|
215
|
-
};
|
|
216
|
-
/** @internal Exported for production render benchmarks. */
|
|
217
|
-
const NumberFieldComponent = ({ renderStaticInput, ...props }) => {
|
|
218
|
-
"use no memo";
|
|
219
|
-
if ("field" in props && props.field) {
|
|
220
|
-
const { field, ref, ...innerProps } = props;
|
|
221
|
-
const controlWithOptions = field.form;
|
|
222
|
-
return /* @__PURE__ */ jsx(FieldController, {
|
|
223
|
-
control: field.form,
|
|
224
|
-
name: field.name,
|
|
225
|
-
render: ({ field, fieldState: { error, isDirty } }) => /* @__PURE__ */ jsx(NumberFieldInner, {
|
|
226
|
-
...innerProps,
|
|
227
|
-
ref: $a8ea2faf2ebe4d2f$re_export$mergeRefs(ref, field.ref),
|
|
228
|
-
value: field.value,
|
|
229
|
-
onChange: field.onChange,
|
|
230
|
-
onBlur: field.onBlur,
|
|
231
|
-
isDirty,
|
|
232
|
-
isDisabled: field.disabled || props.isDisabled,
|
|
233
|
-
isFormControlDisabled: !!controlWithOptions._options?.disabled,
|
|
234
|
-
error: props.error ?? error?.message,
|
|
235
|
-
renderStaticInput
|
|
236
|
-
})
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
return /* @__PURE__ */ jsx(NumberFieldInner, {
|
|
240
|
-
...props,
|
|
241
|
-
renderStaticInput
|
|
242
|
-
});
|
|
243
|
-
};
|
|
244
|
-
const NumberField = memo(NumberFieldComponent);
|
|
245
|
-
//#endregion
|
|
1
|
+
import { n as NumberFieldComponent, t as NumberField } from "../NumberField-OjtbK2Uh.js";
|
|
246
2
|
export { NumberField, NumberFieldComponent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { a as NumberRangeValue, i as NumberRangeInputProps, n as NumberRangeInputComponent, r as NumberRangeInputInner, t as NumberRangeInput } from "../NumberRangeInput-BwUPbB0M.js";
|
|
2
|
+
export { NumberRangeInput, type NumberRangeInputComponent, type NumberRangeInputInner, type NumberRangeInputProps, type NumberRangeValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as NumberRangeInput } from "../NumberRangeInput-
|
|
1
|
+
import { t as NumberRangeInput } from "../NumberRangeInput-EKzbxaN0.js";
|
|
2
2
|
export { NumberRangeInput };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as PageHeaderDetailsProps, c as PageHeaderSummary, i as PageHeaderDetails, l as PageHeaderSummaryProps, n as PageHeaderBackLink, o as PageHeaderProps, r as PageHeaderDetail, s as PageHeaderSize, t as PageHeader } from "../PageHeader-DtV-4JEh.js";
|
|
2
|
+
export { PageHeader, PageHeaderBackLink, PageHeaderDetail, PageHeaderDetails, PageHeaderDetailsProps, PageHeaderProps, PageHeaderSize, PageHeaderSummary, PageHeaderSummaryProps };
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { t as clsx } from "../clsx-CnD0nOiA.js";
|
|
2
|
+
import { t as Breadcrumbs } from "../Breadcrumbs-a1-q_he0.js";
|
|
3
|
+
import { t as Typography } from "../Typography-DCLnPa3P.js";
|
|
4
|
+
import { Link as Link$1 } from "./link.js";
|
|
5
|
+
import { ChevronLeft } from "lucide-react";
|
|
6
|
+
import { c } from "react/compiler-runtime";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
//#region src/components/navigation/PageHeader/PageHeader.tsx
|
|
9
|
+
const PageHeaderBack = (t0) => {
|
|
10
|
+
const $ = c(4);
|
|
11
|
+
const { label, link } = t0;
|
|
12
|
+
let t1;
|
|
13
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
14
|
+
t1 = /* @__PURE__ */ jsx(ChevronLeft, {
|
|
15
|
+
"aria-hidden": true,
|
|
16
|
+
className: "size-icons-size shrink-0"
|
|
17
|
+
});
|
|
18
|
+
$[0] = t1;
|
|
19
|
+
} else t1 = $[0];
|
|
20
|
+
let t2;
|
|
21
|
+
if ($[1] !== label || $[2] !== link) {
|
|
22
|
+
t2 = /* @__PURE__ */ jsxs(Link$1, {
|
|
23
|
+
...link,
|
|
24
|
+
variant: "subtle",
|
|
25
|
+
className: "inline-flex w-fit items-center gap-breadcrumbs-gap-icon-to-text font-sans font-medium text-xs",
|
|
26
|
+
children: [t1, label]
|
|
27
|
+
});
|
|
28
|
+
$[1] = label;
|
|
29
|
+
$[2] = link;
|
|
30
|
+
$[3] = t2;
|
|
31
|
+
} else t2 = $[3];
|
|
32
|
+
return t2;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* The top of a page: breadcrumbs or a back link, the title with its status, actions on the right (primary action
|
|
36
|
+
* last), then the page's details. Below 640px of the header's own width the actions move under the title.
|
|
37
|
+
*/
|
|
38
|
+
const PageHeader = (t0) => {
|
|
39
|
+
const $ = c(28);
|
|
40
|
+
const { title, status, breadcrumbs, backLink, actions, primaryAction, divider: t1, size: t2, className, children } = t0;
|
|
41
|
+
const divider = t1 === void 0 ? false : t1;
|
|
42
|
+
const size = t2 === void 0 ? "default" : t2;
|
|
43
|
+
let t3;
|
|
44
|
+
if ($[0] !== className) {
|
|
45
|
+
t3 = clsx("@container", className);
|
|
46
|
+
$[0] = className;
|
|
47
|
+
$[1] = t3;
|
|
48
|
+
} else t3 = $[1];
|
|
49
|
+
const t4 = size === "compact" ? "pt-2" : "pt-3";
|
|
50
|
+
const t5 = divider ? "border-b border-b-border pb-4" : size === "compact" ? "pb-1.5" : "pb-2";
|
|
51
|
+
let t6;
|
|
52
|
+
if ($[2] !== t4 || $[3] !== t5) {
|
|
53
|
+
t6 = clsx("flex flex-col gap-4", t4, t5);
|
|
54
|
+
$[2] = t4;
|
|
55
|
+
$[3] = t5;
|
|
56
|
+
$[4] = t6;
|
|
57
|
+
} else t6 = $[4];
|
|
58
|
+
let t7;
|
|
59
|
+
if ($[5] !== backLink || $[6] !== breadcrumbs) {
|
|
60
|
+
t7 = backLink ? /* @__PURE__ */ jsx(PageHeaderBack, { ...backLink }) : breadcrumbs && /* @__PURE__ */ jsx(Breadcrumbs, { items: breadcrumbs });
|
|
61
|
+
$[5] = backLink;
|
|
62
|
+
$[6] = breadcrumbs;
|
|
63
|
+
$[7] = t7;
|
|
64
|
+
} else t7 = $[7];
|
|
65
|
+
const t8 = size === "compact" ? "h2" : "h1";
|
|
66
|
+
let t9;
|
|
67
|
+
if ($[8] !== t8 || $[9] !== title) {
|
|
68
|
+
t9 = /* @__PURE__ */ jsx(Typography, {
|
|
69
|
+
as: "h1",
|
|
70
|
+
size: t8,
|
|
71
|
+
className: "min-w-0 truncate font-semibold text-card-foreground",
|
|
72
|
+
children: title
|
|
73
|
+
});
|
|
74
|
+
$[8] = t8;
|
|
75
|
+
$[9] = title;
|
|
76
|
+
$[10] = t9;
|
|
77
|
+
} else t9 = $[10];
|
|
78
|
+
let t10;
|
|
79
|
+
if ($[11] !== status || $[12] !== t9) {
|
|
80
|
+
t10 = /* @__PURE__ */ jsxs("div", {
|
|
81
|
+
className: "flex min-w-0 flex-wrap items-center gap-x-3 gap-y-1.5",
|
|
82
|
+
children: [t9, status]
|
|
83
|
+
});
|
|
84
|
+
$[11] = status;
|
|
85
|
+
$[12] = t9;
|
|
86
|
+
$[13] = t10;
|
|
87
|
+
} else t10 = $[13];
|
|
88
|
+
let t11;
|
|
89
|
+
if ($[14] !== actions || $[15] !== primaryAction) {
|
|
90
|
+
t11 = (actions || primaryAction) && /* @__PURE__ */ jsxs("div", {
|
|
91
|
+
className: "flex shrink-0 flex-wrap items-center gap-2",
|
|
92
|
+
children: [actions, primaryAction]
|
|
93
|
+
});
|
|
94
|
+
$[14] = actions;
|
|
95
|
+
$[15] = primaryAction;
|
|
96
|
+
$[16] = t11;
|
|
97
|
+
} else t11 = $[16];
|
|
98
|
+
let t12;
|
|
99
|
+
if ($[17] !== t10 || $[18] !== t11) {
|
|
100
|
+
t12 = /* @__PURE__ */ jsxs("div", {
|
|
101
|
+
className: "flex flex-col gap-3 @min-[640px]:flex-row @min-[640px]:items-center @min-[640px]:justify-between",
|
|
102
|
+
children: [t10, t11]
|
|
103
|
+
});
|
|
104
|
+
$[17] = t10;
|
|
105
|
+
$[18] = t11;
|
|
106
|
+
$[19] = t12;
|
|
107
|
+
} else t12 = $[19];
|
|
108
|
+
let t13;
|
|
109
|
+
if ($[20] !== children || $[21] !== t12 || $[22] !== t6 || $[23] !== t7) {
|
|
110
|
+
t13 = /* @__PURE__ */ jsxs("header", {
|
|
111
|
+
className: t6,
|
|
112
|
+
children: [
|
|
113
|
+
t7,
|
|
114
|
+
t12,
|
|
115
|
+
children
|
|
116
|
+
]
|
|
117
|
+
});
|
|
118
|
+
$[20] = children;
|
|
119
|
+
$[21] = t12;
|
|
120
|
+
$[22] = t6;
|
|
121
|
+
$[23] = t7;
|
|
122
|
+
$[24] = t13;
|
|
123
|
+
} else t13 = $[24];
|
|
124
|
+
let t14;
|
|
125
|
+
if ($[25] !== t13 || $[26] !== t3) {
|
|
126
|
+
t14 = /* @__PURE__ */ jsx("div", {
|
|
127
|
+
className: t3,
|
|
128
|
+
children: t13
|
|
129
|
+
});
|
|
130
|
+
$[25] = t13;
|
|
131
|
+
$[26] = t3;
|
|
132
|
+
$[27] = t14;
|
|
133
|
+
} else t14 = $[27];
|
|
134
|
+
return t14;
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* Page details that can be shaped like a table, as label–value rows. Labels sit in a column beside their values;
|
|
138
|
+
* below 640px of the header's width each label moves above its value.
|
|
139
|
+
*/
|
|
140
|
+
const PageHeaderDetails = (t0) => {
|
|
141
|
+
const $ = c(7);
|
|
142
|
+
const { items, className } = t0;
|
|
143
|
+
let t1;
|
|
144
|
+
if ($[0] !== className) {
|
|
145
|
+
t1 = clsx("m-0 flex flex-col gap-3 @min-[640px]:gap-2", className);
|
|
146
|
+
$[0] = className;
|
|
147
|
+
$[1] = t1;
|
|
148
|
+
} else t1 = $[1];
|
|
149
|
+
let t2;
|
|
150
|
+
if ($[2] !== items) {
|
|
151
|
+
t2 = items.map(_temp);
|
|
152
|
+
$[2] = items;
|
|
153
|
+
$[3] = t2;
|
|
154
|
+
} else t2 = $[3];
|
|
155
|
+
let t3;
|
|
156
|
+
if ($[4] !== t1 || $[5] !== t2) {
|
|
157
|
+
t3 = /* @__PURE__ */ jsx("dl", {
|
|
158
|
+
className: t1,
|
|
159
|
+
children: t2
|
|
160
|
+
});
|
|
161
|
+
$[4] = t1;
|
|
162
|
+
$[5] = t2;
|
|
163
|
+
$[6] = t3;
|
|
164
|
+
} else t3 = $[6];
|
|
165
|
+
return t3;
|
|
166
|
+
};
|
|
167
|
+
/** A short paragraph describing the page, kept to about 66 characters a line (`ch` is a digit's width, so 50ch). */
|
|
168
|
+
const PageHeaderSummary = (t0) => {
|
|
169
|
+
const $ = c(5);
|
|
170
|
+
const { className, children } = t0;
|
|
171
|
+
let t1;
|
|
172
|
+
if ($[0] !== className) {
|
|
173
|
+
t1 = clsx("m-0 max-w-[50ch] text-pretty text-card-foreground", className);
|
|
174
|
+
$[0] = className;
|
|
175
|
+
$[1] = t1;
|
|
176
|
+
} else t1 = $[1];
|
|
177
|
+
let t2;
|
|
178
|
+
if ($[2] !== children || $[3] !== t1) {
|
|
179
|
+
t2 = /* @__PURE__ */ jsx(Typography, {
|
|
180
|
+
size: "body",
|
|
181
|
+
className: t1,
|
|
182
|
+
children
|
|
183
|
+
});
|
|
184
|
+
$[2] = children;
|
|
185
|
+
$[3] = t1;
|
|
186
|
+
$[4] = t2;
|
|
187
|
+
} else t2 = $[4];
|
|
188
|
+
return t2;
|
|
189
|
+
};
|
|
190
|
+
function _temp(item) {
|
|
191
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
192
|
+
className: "grid gap-0.5 @min-[640px]:grid-cols-[10rem_1fr] @min-[640px]:gap-0",
|
|
193
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
194
|
+
as: "dt",
|
|
195
|
+
size: "body",
|
|
196
|
+
className: "text-foreground @max-[639px]:text-xs",
|
|
197
|
+
children: item.label
|
|
198
|
+
}), /* @__PURE__ */ jsxs(Typography, {
|
|
199
|
+
as: "dd",
|
|
200
|
+
size: "body",
|
|
201
|
+
className: "m-0 text-card-foreground",
|
|
202
|
+
children: [item.value, item.meta != null && item.meta !== false && /* @__PURE__ */ jsxs("span", {
|
|
203
|
+
className: "text-foreground",
|
|
204
|
+
children: [" · ", item.meta]
|
|
205
|
+
})]
|
|
206
|
+
})]
|
|
207
|
+
}, item.label);
|
|
208
|
+
}
|
|
209
|
+
//#endregion
|
|
210
|
+
export { PageHeader, PageHeaderDetails, PageHeaderSummary };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
export {
|
|
1
|
+
import { n as PasswordInputProps, t as PasswordInput } from "../PasswordInput-DNt_CfI8.js";
|
|
2
|
+
export { PasswordInput, type PasswordInputProps };
|
|
@@ -1,2 +1,23 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../i18n-DxbqkvyK.js";
|
|
2
|
+
import { t as Input } from "../Input-DRR8_MgG.js";
|
|
3
|
+
import { Eye, EyeOff } from "lucide-react";
|
|
4
|
+
import { memo, useState } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { useTranslation } from "react-i18next";
|
|
7
|
+
//#region src/components/inputs/Input/PasswordInput/PasswordInput.tsx
|
|
8
|
+
const PasswordInputComponent = (props) => {
|
|
9
|
+
const { t } = useTranslation("ui");
|
|
10
|
+
const [isRevealed, setIsRevealed] = useState(false);
|
|
11
|
+
return /* @__PURE__ */ jsx(Input, {
|
|
12
|
+
...props,
|
|
13
|
+
type: isRevealed ? "text" : "password",
|
|
14
|
+
action: {
|
|
15
|
+
icon: isRevealed ? Eye : EyeOff,
|
|
16
|
+
altText: t(($) => isRevealed ? $.ui.password.hide : $.ui.password.reveal),
|
|
17
|
+
onClick: () => setIsRevealed(!isRevealed)
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
const PasswordInput = memo(PasswordInputComponent);
|
|
22
|
+
//#endregion
|
|
2
23
|
export { PasswordInput };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{mergeProps as e}from"react-aria/mergeProps";import{mergeRefs as t}from"react-aria/mergeRefs";import n,{createContext as r,forwardRef as i,useCallback as a,useContext as o,useEffect as s,useMemo as c,useRef as l,useState as u}from"react";import{useLayoutEffect as d}from"react-aria/private/utils/useLayoutEffect";import{useObjectRef as f}from"react-aria/useObjectRef";import{filterDOMProps as p}from"react-aria/filterDOMProps";import{useIsHidden as m}from"react-aria/private/collections/Hidden";import"react-aria/useId";import{useLocale as h}from"react-aria/I18nProvider";import{usePopover as g}from"react-aria/usePopover";import{DismissButton as _,Overlay as v}from"react-aria/Overlay";import{focusSafely as y}from"react-aria/private/interactions/focusSafely";import{getInteractionModality as b}from"react-aria/private/interactions/useFocusVisible";import{isFocusWithin as x}from"react-aria/private/utils/shadowdom/DOMFunctions";import{useOverlayTriggerState as S}from"react-stately/useOverlayTriggerState";import{useEnterAnimation as
|
|
1
|
+
import{mergeProps as e}from"react-aria/mergeProps";import{mergeRefs as t}from"react-aria/mergeRefs";import n,{createContext as r,forwardRef as i,useCallback as a,useContext as o,useEffect as s,useMemo as c,useRef as l,useState as u}from"react";import{useLayoutEffect as d}from"react-aria/private/utils/useLayoutEffect";import{useObjectRef as f}from"react-aria/useObjectRef";import{filterDOMProps as p}from"react-aria/filterDOMProps";import{useIsHidden as m}from"react-aria/private/collections/Hidden";import"react-aria/useId";import{useLocale as h}from"react-aria/I18nProvider";import{usePopover as g}from"react-aria/usePopover";import{DismissButton as _,Overlay as v}from"react-aria/Overlay";import{focusSafely as y}from"react-aria/private/interactions/focusSafely";import{getInteractionModality as b}from"react-aria/private/interactions/useFocusVisible";import{isFocusWithin as x}from"react-aria/private/utils/shadowdom/DOMFunctions";import{useOverlayTriggerState as S}from"react-stately/useOverlayTriggerState";import{runAfterKeyboard as C}from"react-aria/private/utils/runAfterKeyboard";import{useEnterAnimation as w,useExitAnimation as T}from"react-aria/private/utils/animation";import{useResizeObserver as E}from"react-aria/private/utils/useResizeObserver";import"react-stately/useMenuTriggerState";import"react-aria/private/interactions/PressResponder";import"react-aria/useDialog";import"react-aria/useOverlayTrigger";const D=Symbol(`default`);function O(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:o,values:s,render:l}=e;return c(()=>{let e,c,u;return e=typeof t==`function`?t({...s,defaultClassName:i}):t,c=typeof n==`function`?n({...s,defaultStyle:o||{}}):n,u=typeof r==`function`?r({...s,defaultChildren:a}):r??a,{className:e??i,style:c||o?{...o,...c}:void 0,children:u??a,"data-rac":``,render:l?e=>l(e,s):void 0}},[t,n,r,i,a,o,s,l])}function k(e,t){let n=o(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||D;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function A(n,r,i){let{ref:a,...o}=k(i,n.slot)||{},s=f(c(()=>t(r,a),[r,a])),l=e(o,n);return`style`in o&&o.style&&`style`in n&&n.style&&(l.style=typeof o.style==`function`||typeof n.style==`function`?e=>{let t=typeof o.style==`function`?o.style(e):o.style,r={...e.defaultStyle,...t},i=typeof n.style==`function`?n.style({...e,defaultStyle:r}):n.style;return{...r,...i}}:{...o.style,...n.style}),[l,s]}function j(e,r,i){let{render:a,...o}=r,s=l(null),u=c(()=>t(i,s),[i,s]);d(()=>{},[e,a]);let f={...o,ref:u};return a?a(f,void 0):n.createElement(e,f)}const M={},N=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=M[t];return n||(n=i(j.bind(null,t)),M[t]=n),n}}),P=r({placement:`bottom`}),F=r(null),I=r(null),L=i(function(e,t){[e,t]=A(e,t,F);let r=o(z),i=S(e),a=e.isOpen!=null||e.defaultOpen!=null||!r?i:r,s=T(t,a.isOpen),c=e.isExiting||!e.shouldSkipAnimation&&s||!1,l=m(),{direction:u}=h();if(l){let t=e.children;return typeof t==`function`&&(t=t({trigger:e.trigger||null,placement:`bottom`,isEntering:!1,isExiting:!1,defaultChildren:null})),n.createElement(n.Fragment,null,t)}return a&&!a.isOpen&&!c?null:n.createElement(R,{...e,triggerRef:e.triggerRef,state:a,popoverRef:t,isExiting:c,dir:u})});function R({state:t,isExiting:r,UNSTABLE_portalContainer:i,clearContexts:f,...m}){let h=l(null),S=l(null),T=o(I),D=T&&m.trigger===`SubmenuTrigger`,[k,A]=u(!1),{popoverProps:j,underlayProps:M,arrowProps:L,placement:R,triggerAnchorPoint:z}=g({...m,offset:m.offset??8,arrowRef:h,groupRef:D?T:S},t),B=m.popoverRef,V=w(B,!!R&&k),H=m.isEntering||!m.shouldSkipAnimation&&V||!1,U=O({...m,defaultClassName:`react-aria-Popover`,values:{trigger:m.trigger||null,placement:R,isEntering:H,isExiting:r}}),W=!m.isNonModal||m.trigger===`SubmenuTrigger`||m.trigger===`PreviewTrigger`,[G,K]=u(m.trigger===`PreviewTrigger`);d(()=>{B.current&&K(W&&!B.current.querySelector(`[role=dialog]`))},[B,W]),s(()=>{G&&m.trigger!==`PreviewTrigger`&&(m.trigger!==`SubmenuTrigger`||b()!==`pointer`)&&B.current&&!x(B.current)&&y(B.current)},[G,B,m.trigger]);let q=c(()=>{let e=U.children;for(let t of[F,...f??[]])e=n.createElement(t.Provider,{value:null},e);return e},[U.children,f]),[J,Y]=u(null),X=a(()=>{m.triggerRef.current&&Y(m.triggerRef.current.getBoundingClientRect().width+`px`)},[m.triggerRef]);d(X,[X]),E({ref:U.style?.[`--trigger-width`]?void 0:m.triggerRef,onResize:X});let Z={...j.style,"--trigger-anchor-point":z?`${z.x}px ${z.y}px`:void 0,...U.style,"--trigger-width":U.style?.[`--trigger-width`]||J};d(()=>C(()=>A(!0)),[]);let Q=n.createElement(N.div,{...e(p(m,{global:!0}),j),...U,id:G?m.id:void 0,role:G?`dialog`:void 0,tabIndex:G?-1:void 0,"aria-label":m[`aria-label`],"aria-labelledby":m[`aria-labelledby`],ref:B,slot:m.slot||void 0,style:Z,dir:m.dir,"data-trigger":m.trigger,"data-placement":R,"data-entering":H||void 0,"data-exiting":r||void 0},!m.isNonModal&&n.createElement(_,{onDismiss:t.close}),n.createElement(P.Provider,{value:{...L,placement:R,ref:h}},q),n.createElement(_,{onDismiss:t.close}));return D?n.createElement(v,{...m,shouldContainFocus:G&&m.trigger!==`PreviewTrigger`,isExiting:r,portalContainer:i??T?.current??void 0},Q):n.createElement(v,{...m,shouldContainFocus:G&&m.trigger!==`PreviewTrigger`,isExiting:r,portalContainer:i},!m.isNonModal&&t.isOpen&&n.createElement(`div`,{"data-testid":`underlay`,...M,style:{position:`fixed`,inset:0}}),n.createElement(`div`,{ref:S,style:{display:`contents`}},n.createElement(I.Provider,{value:S},Q)))}const z=r(null);export{L as Popover};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as PopoverProps, t as Popover } from "../Popover-
|
|
1
|
+
import { n as PopoverProps, t as Popover } from "../Popover-DRqROtxR.js";
|
|
2
2
|
export { Popover, PopoverProps };
|