@povio/ui 5.0.0-rc.9 → 6.0.0-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/MIGRATION.md +673 -0
- package/README.md +206 -55
- package/dist/{Accordion-BzwO4_ml.js → Accordion-ORBin0EZ.js} +13 -119
- package/dist/{Alert-DfiJbKH0.d.ts → Alert-D4X7OWiv.d.ts} +3 -3
- package/dist/{AlertDialog-OWTbR4km.d.ts → AlertDialog-DklLDjmw.d.ts} +3 -3
- package/dist/Autocomplete-BgFz3kuR.d.ts +23 -0
- package/dist/Autocomplete-CsJAU233.js +145 -0
- package/dist/Autocomplete.bound-CGC8m4dK.js +28 -0
- package/dist/Autocomplete.bound-CpHZZ3C9.d.ts +9 -0
- package/dist/{Badge-CBNpj823.d.ts → Badge-Db1ndK67.d.ts} +2 -2
- package/dist/{BadgeButton-Ccgt3oGO.d.ts → BadgeButton-BPhWDAnc.d.ts} +2 -2
- package/dist/{BottomSheet-DbQuzfAB.d.ts → BottomSheet-BZmDJBR-.d.ts} +1 -1
- package/dist/{BottomSheet-BXLE3161.js → BottomSheet-CGipksM_.js} +12 -86
- package/dist/{BottomSheet.lazy-D9LCEo7s.d.ts → BottomSheet.lazy-CuJMUeJP.d.ts} +1 -1
- package/dist/{Breadcrumbs-CUV6CU8Q.d.ts → Breadcrumbs-CcB0oOF8.d.ts} +1 -1
- package/dist/{Breadcrumbs-FF8hMfXd.js → Breadcrumbs-a1-q_he0.js} +20 -17
- package/dist/Button-0SswSdDg.d.ts +13 -0
- package/dist/Button-BaODzvZd.js +16 -0
- package/dist/{Button-D6KlWSFL.js → Button-C1YB5dOw.js} +3 -3
- package/dist/ButtonBase-CZuEy3Pk.d.ts +32 -0
- package/dist/ButtonBase-s-VV7oCa.js +87 -0
- package/dist/{ButtonContent-c7lJayVQ.js → ButtonContent-Dztbuz3q.js} +5 -14
- package/dist/{Calendar-BTjajO6i.js → Calendar-Cr6B7SDx.js} +29 -181
- package/dist/Calendar.lazy-MJisXRJK.js +131 -0
- package/dist/{CheckContent-D7sZPmzx.js → CheckContent-BKLnTPZr.js} +2 -2
- package/dist/{Checkbox-CV1ILXXO.js → Checkbox-Bjsbx-wK.js} +21 -38
- package/dist/{Checkbox-DVTWaMKa.d.ts → Checkbox-w2j5hLOQ.d.ts} +9 -8
- package/dist/Checkbox.bound-D2nBglJz.js +33 -0
- package/dist/Checkbox.bound-DD_RCjVm.d.ts +9 -0
- package/dist/CheckboxCheckmark-DWsYVZuu.js +25 -0
- package/dist/CheckboxGroup-B3O3IUiu.js +141 -0
- package/dist/CheckboxGroup-BYI15Y09.d.ts +30 -0
- package/dist/CheckboxGroup.bound-DY0HKGSh.js +32 -0
- package/dist/CheckboxGroup.bound-QiJ-P0KR.d.ts +9 -0
- package/dist/ComboBox-ChsdI0lt.js +212 -0
- package/dist/{DatePicker-DOLL7mkc.js → DatePicker-D-YXdY2z.js} +47 -54
- package/dist/{DatePicker-8xSs_jNd.d.ts → DatePicker-QzfQf21b.d.ts} +21 -10
- package/dist/DatePicker.bound-DoCAqhM4.d.ts +9 -0
- package/dist/DatePicker.bound-a-6NJTgy.js +36 -0
- package/dist/{DatePickerInput-BLBcySA2.js → DatePickerInput-2CZtsxdK.js} +66 -301
- package/dist/{DatePickerInput-D81ZJ3fT.d.ts → DatePickerInput-vLlL5ATh.d.ts} +3 -3
- package/dist/{DateRangePicker-Bfq-yDm7.d.ts → DateRangePicker-3pPW0ZBV.d.ts} +30 -10
- package/dist/{DateRangePicker-BF-1CztH.js → DateRangePicker-tuM8Qyvp.js} +80 -330
- package/dist/DateRangePicker.bound-B5SKOkVM.js +35 -0
- package/dist/DateRangePicker.bound-vFyFw4wA.d.ts +9 -0
- package/dist/{DateTimePicker-Cj0qvJUz.js → DateTimePicker-8BVP2qeR.js} +47 -48
- package/dist/{DateTimePicker-D4lHyf6P.d.ts → DateTimePicker-BTRIUagV.d.ts} +21 -11
- package/dist/DateTimePicker.bound-C3y8TqPk.js +32 -0
- package/dist/DateTimePicker.bound-X4DTyQ1b.d.ts +9 -0
- package/dist/{Dialog-9manOgMA.js → Dialog-Bn43feu0.js} +13 -10
- package/dist/{Dialog-CKLkS00H.js → Dialog-C9H9_BmK.js} +53 -29
- package/dist/Dialog-CO9xljD3.d.ts +21 -0
- package/dist/Disclosure-BRSkMbZQ.js +109 -0
- package/dist/{DropdownMenu-5jmtgLXd.js → DropdownMenu-DS0RaEfH.js} +13 -31
- package/dist/DropdownMenu-D_9z9ond.d.ts +25 -0
- package/dist/{DropdownMenuDesktop-Cl9gZVq0.js → DropdownMenuDesktop-DGPIfex-.js} +7 -28
- package/dist/{FileInput-C4CE5kuP.d.ts → FileInput-BEaECoBS.d.ts} +26 -22
- package/dist/{FileInput-Br5DQaGQ.js → FileInput-DNCKhAq-.js} +36 -49
- package/dist/FileInput.bound-D2HuuqSb.d.ts +8 -0
- package/dist/FileInput.bound-DCSair97.js +30 -0
- package/dist/{FileTrigger-Cthk5_Wp.js → FileTrigger-DlryDp2T.js} +6 -6
- package/dist/FileUpload-BUTSqHVk.d.ts +11 -0
- package/dist/{FileUpload--7ub3EZO.js → FileUpload-CQFCrvCI.js} +279 -249
- package/dist/FileUpload.bound-BwetBdi7.js +30 -0
- package/dist/FileUpload.bound-CGQXb4iT.d.ts +16 -0
- package/dist/{FileUploadContainer-042ztsaL.d.ts → FileUploadContainer-Dzg5aXXZ.d.ts} +1 -1
- package/dist/{Form-DlQcyN1f.js → Form-CqF1SaVw.js} +2 -2
- package/dist/{FormField-Byiehm9y.d.ts → FormField-DGyCDxOp.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-shH_9wcl.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-BIuNQb5u.js +245 -0
- package/dist/{Input-DOanwj3l.d.ts → Input-CTp_9mS9.d.ts} +13 -9
- package/dist/Input.bound-B9a62ylL.d.ts +9 -0
- package/dist/Input.bound-QpE3qJqT.js +31 -0
- package/dist/{InputContent-CXuP1ghQ.d.ts → InputContent-BCNkN4Fx.d.ts} +5 -5
- package/dist/InputContent-C5JlwN5b.js +102 -0
- 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-PvYB_M-j.d.ts} +5 -3
- package/dist/{ListBox-CL8Ar4Q_.js → ListBox-DhR5kojP.js} +10 -11
- package/dist/{MenuItem-DHyqOqln.d.ts → MenuItem-U3-pu1j5.d.ts} +1 -1
- package/dist/{Modal-w60dVQcb.js → Modal-DcLWF9cB.js} +58 -20
- package/dist/NumberField-CpkLBjIM.js +249 -0
- package/dist/{NumberField-Cb9Gf6QJ.d.ts → NumberField-WXebfxjK.d.ts} +13 -9
- package/dist/NumberField.bound-BbZLqewF.js +32 -0
- package/dist/NumberField.bound-Dy0A5iVc.d.ts +9 -0
- package/dist/{NumberFormatter-CLDS_LRZ.js → NumberFormatter-DYarfm5F.js} +2 -36
- package/dist/{NumberRangeInput-B8-LHfg3.js → NumberRangeInput-47xOaSXq.js} +28 -55
- package/dist/{NumberRangeInput-BfbJQqzn.d.ts → NumberRangeInput-BCKQaGpy.d.ts} +13 -8
- package/dist/NumberRangeInput.bound-B21y7xkb.js +32 -0
- package/dist/NumberRangeInput.bound-BNXxIQ0b.d.ts +9 -0
- package/dist/{OverlayArrow-D8z7cCsw.js → OverlayArrow-DF0jMwul.js} +2 -2
- package/dist/PageHeader-BwzxymWY.d.ts +58 -0
- package/dist/{Pagination-CwQu5Py8.d.ts → Pagination-BCGUVYOF.d.ts} +1 -1
- package/dist/PaginationList-BTmrmOGl.js +220 -0
- package/dist/{PaginationList-DMRUGtf8.d.ts → PaginationList-CvlSkJGn.d.ts} +1 -1
- package/dist/PasswordInput-EhQjYyJS.d.ts +11 -0
- package/dist/{PasswordInput-CLwFUgl0.d.ts → PasswordInput.bound-CK5GwKL4.d.ts} +5 -6
- package/dist/PasswordInput.bound-DVkRv16z.js +23 -0
- package/dist/{Popover-BTHPteIh.d.ts → Popover-D_t1XDPA.d.ts} +2 -2
- package/dist/{Progress-CjWOR38H.d.ts → Progress-Ckfpi_-M.d.ts} +4 -4
- package/dist/{Progress-B3mY9rIP.js → Progress-RiEGGxNG.js} +4 -29
- package/dist/RadioGroup-6e-Z6jW8.d.ts +26 -0
- package/dist/{RadioGroup-DOw3PRoX.js → RadioGroup-IL4Y8XHO.js} +18 -120
- package/dist/RadioGroup.bound-BFWSq-on.js +32 -0
- package/dist/RadioGroup.bound-w3SZqSkH.d.ts +9 -0
- package/dist/RangeCalendar-CAWTz3pq.js +288 -0
- package/dist/{RichTextEditor-D4yN7Wj7.js → RichTextEditor-16feWcDW.js} +57 -365
- package/dist/RichTextEditor-DHhuBeT6.d.ts +28 -0
- package/dist/{SelectBase-Omiq2D3M.d.ts → Select-C34ENdjq.d.ts} +34 -11
- package/dist/{staticSelect.utils-uHa8f_c6.js → Select-CSdr0OcD.js} +343 -635
- package/dist/Select.bound-D-Wl7nLz.js +34 -0
- package/dist/Select.bound-qOihchei.d.ts +17 -0
- package/dist/SelectListBox-DeiPWhOP.js +390 -0
- package/dist/SelectionIndicator-C3hniBa2.js +18 -0
- package/dist/SharedElementTransition-CZ2bE7yo.js +96 -0
- package/dist/SidebarWorkspaces-DDHJAdNH.d.ts +132 -0
- package/dist/SidebarWorkspaces-DJknAfS9.js +1298 -0
- package/dist/{Slider-CzEmKYBF.js → Slider-DCsCCPFx.js} +18 -42
- package/dist/{Slider-EYlGCLWe.d.ts → Slider-DRg8zKRM.d.ts} +9 -8
- package/dist/Slider.bound-CByTXPTr.js +31 -0
- package/dist/Slider.bound-CaEF19um.d.ts +9 -0
- package/dist/{Spinner-DbXeDOa2.d.ts → Spinner-Cvy_6zgD.d.ts} +5 -5
- package/dist/{Spinner-BeVTUzzx.js → Spinner-DqjP06T1.js} +29 -41
- package/dist/{SplitButton-D9ngY1rJ.d.ts → SplitButton-V1f2NWfh.d.ts} +3 -3
- package/dist/{Stepper-Cp5vbL5g.js → Stepper-Dyhxp0Tl.js} +14 -13
- package/dist/{Stepper-TATlHZhQ.d.ts → Stepper-k91x_m-E.d.ts} +18 -18
- package/dist/{Switch-CqnGEdeD.js → Switch-BfpSMMpv.js} +10 -59
- package/dist/Switch-ELVPkPx0.d.ts +24 -0
- package/dist/Switch.bound-DeEdVvZV.d.ts +9 -0
- package/dist/Switch.bound-Dv0cHsMM.js +33 -0
- package/dist/TableRowDetails-D8HFTghI.d.ts +109 -0
- package/dist/TabsFilters-CvYxvrud.js +223 -0
- package/dist/TabsFilters-DePddjCk.d.ts +30 -0
- package/dist/Tag-B2_ZiSE-.d.ts +44 -0
- package/dist/{Text-D2MPZ3sY.js → Text-D72yc4S6.js} +1 -1
- package/dist/{TextArea-D8WkKsGn.js → TextArea-ciY0kt-D.js} +33 -35
- package/dist/{TextArea-l_keyLK7.d.ts → TextArea-iqUeB2QY.d.ts} +11 -9
- package/dist/TextArea.bound-BJHyCogp.d.ts +9 -0
- package/dist/TextArea.bound-DQ_ULvue.js +28 -0
- package/dist/TextArea.cva-ENXI55ec.js +5 -0
- package/dist/{TimePicker-C4taAOFQ.js → TimePicker-BKRPMduC.js} +65 -55
- package/dist/TimePicker-BZ1ocsBX.d.ts +45 -0
- package/dist/TimePicker.bound-8DmjMXuE.d.ts +9 -0
- package/dist/TimePicker.bound-PtJTz6s3.js +32 -0
- package/dist/{datePickerValue.utils-DCgoSrP3.js → TimePickerForm-itDjoV7V.js} +23 -19
- package/dist/{Toast-ruXqONDA.d.ts → Toast-D9pdadZ4.d.ts} +1 -1
- package/dist/{ToastContainer-qgpzMFD4.js → ToastContainer-Dd0LPykL.js} +5 -5
- package/dist/ToggleButton-HUZ8ij6i.d.ts +17 -0
- package/dist/{ToggleButton-BW1ensey.js → ToggleButton-P1z1pxzT.js} +5 -5
- package/dist/ToggleGroup-CrDoeLN0.js +333 -0
- package/dist/ToggleGroup-DvjnSinl.d.ts +42 -0
- package/dist/ToggleGroup.bound-B03ISHQ8.d.ts +9 -0
- package/dist/ToggleGroup.bound-DCnYwmBt.js +67 -0
- package/dist/Tooltip-B8DTURLQ.d.ts +16 -0
- package/dist/{Tooltip-CpG1nz7Y.js → Tooltip-DRB6lo0U.js} +10 -11
- package/dist/{TooltipWrapper-3jyN0Wss.js → TooltipWrapper-BvGO_LUx.js} +21 -10
- package/dist/{Typography-LU4z2pR1.js → Typography-DCLnPa3P.js} +2 -2
- package/dist/{Typography-XljT9s02.d.ts → Typography-DJojwiXV.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-CBFIhr1S.d.ts} +8 -8
- package/dist/badgeButton.cva-t5PQOH4M.js +138 -0
- package/dist/{breadcrumbs.cva-7zzdDhVR.js → breadcrumbs.cva-CnBIZUB3.js} +9 -9
- package/dist/{button.cva-C7kEhgoA.d.ts → button.cva-C8LGtNJ3.d.ts} +21 -16
- package/dist/button.cva-Ciga0rdG.js +267 -0
- package/dist/{buttonContent.cva-DPIlROA9.d.ts → buttonContent.cva-BapnODby.d.ts} +2 -2
- package/dist/{checkbox.cva-t1Ox50hy.d.ts → checkbox.cva-CCh_UlrC.d.ts} +6 -6
- package/dist/checkbox.cva-aLJS7v4z.js +128 -0
- 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 +2 -2
- package/dist/components/date-range-picker.js +1 -1
- 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} +82 -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 +205 -0
- package/dist/components/pagination-list.d.ts +1 -1
- package/dist/components/pagination-list.js +1 -1
- package/dist/components/pagination.d.ts +1 -1
- package/dist/components/pagination.js +14 -10
- 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-CByUxDcn.js} +2 -2
- package/dist/{confirmation.context-BOeEVczb.d.ts → confirmation.context-C_GDRn3a.d.ts} +1 -1
- package/dist/{datePickerInput.cva-Cd7UUN61.js → datePickerInput.cva-Du0Zn04v.js} +2 -2
- 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-DEZzXa0W.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-C-ke21yY.d.ts} +17 -17
- package/dist/form.binding-DOR5gIQf.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-D1FWVTPi.js} +24 -4
- package/dist/{i18n-CX1vFM9r.d.ts → i18n-DE45mOCM.d.ts} +24 -0
- package/dist/iconSlot.cva-CLB5Tlsr.d.ts +9 -0
- package/dist/icons.d.ts +2 -1
- package/dist/icons.js +3 -3
- package/dist/import-C14g8ng0.js +251 -0
- package/dist/index.d.ts +100 -91
- package/dist/index.js +100 -94
- package/dist/{input.cva-BsHgYa-L.d.ts → input.cva-BjuHsDGy.d.ts} +11 -11
- package/dist/input.cva-DZii82eS.js +185 -0
- package/dist/inputLayout-KdAtunGk.js +5 -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-BCHn7NSy.d.ts} +1 -1
- package/dist/link.cva-C24YVAsJ.js +16 -0
- 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-D7M1hqLe.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-bPuA-a2Y.js} +61 -57
- package/dist/status.cva-CYgi3Htz.js +130 -0
- package/dist/stepper.cva-Cecphqeo.js +104 -0
- package/dist/style-definitions-Dx6aFDiR.d.ts +1038 -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-r6vcS25Q.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-zusJduSB.d.ts +568 -0
- package/dist/tanstack.d.ts +84 -78
- package/dist/tanstack.js +100 -92
- package/dist/{theme.context-B3wQDJ-i.js → theme.context--VEyStJB.js} +2 -2
- package/dist/{toast.cva-By5lvAfr.d.ts → toast.cva-AmLw6Cf5.d.ts} +10 -10
- package/dist/{toast.cva-C_L_RffH.js → toast.cva-B6NXTwbZ.js} +22 -38
- package/dist/{toast.runtime-cxex9e4E.js → toast.runtime-Drd2IJ_j.js} +1 -2
- package/dist/toggleGroup.cva-CJ-3Ps7j.js +35 -0
- package/dist/toggleGroup.cva-DA4U21gn.d.ts +26 -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-BCHlTHdM.d.ts +36 -0
- package/dist/typography.cva-CHsHX_Wp.js +31 -0
- package/dist/uiConfig.context-3DN9w6oU.js +180 -0
- package/dist/{uiConfig.context-DeBX2beU.d.ts → uiConfig.context-BnCORTNm.d.ts} +25 -20
- package/dist/{uiOverrides.context-DEp139He.d.ts → uiOverrides.context-DHHzLSnq.d.ts} +67 -6
- package/dist/useAsyncList-Ct74ve3i.js +445 -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-Cb7KWLds.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-BPGlChiY.js +216 -0
- package/dist/useScrollableListBox-oYKqU3Hp.js +47 -0
- package/dist/useStaticInputHandoff-BN0fOerH.js +76 -0
- package/dist/useTableColumnConfig-D5NxR1Co.js +2060 -0
- package/dist/useTableNav-H5DrogZU.d.ts +215 -0
- package/dist/{useToast-yreVCUer.d.ts → useToast-DsA8CVoY.d.ts} +1 -1
- package/dist/{utils-Czcqspm7.js → utils-BkLF-JA3.js} +1 -1
- package/package.json +86 -236
- 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/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/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/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/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-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
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { a as DateRangePickerProps$1 } from "./DateRangePicker-3pPW0ZBV.js";
|
|
2
|
+
import { n as FieldValues, t as FormControlProps } from "./form.types-C8P4sznq.js";
|
|
3
|
+
//#region src/components/inputs/DateTime/DateRangePicker/DateRangePicker.bound.d.ts
|
|
4
|
+
type ControlledDateRangePickerProps<TFieldValues extends FieldValues> = FormControlProps<DateRangePickerProps$1, TFieldValues>;
|
|
5
|
+
type DateRangePickerProps<TFieldValues extends FieldValues = FieldValues> = ControlledDateRangePickerProps<TFieldValues>;
|
|
6
|
+
declare const DateRangePickerComponent: <TFieldValues extends FieldValues>({ fullIso, minValue, maxValue, renderStaticInput, ...props }: ControlledDateRangePickerProps<TFieldValues>) => import("react").JSX.Element;
|
|
7
|
+
declare const DateRangePicker: typeof DateRangePickerComponent;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { DateRangePicker as n, DateRangePickerProps as r, ControlledDateRangePickerProps as t };
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
|
|
2
|
-
import { n as renderDatePickerTodayIcon, o as $ea0ea6e62ae0d7ca$export$6d095e787d2b5e1f, t as DatePickerInput } from "./DatePickerInput-BLBcySA2.js";
|
|
3
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
4
|
-
import { t as UIOverrides } from "./uiOverrides.context-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import {
|
|
10
|
-
import { i as
|
|
11
|
-
import {
|
|
12
|
-
import { t as
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
+
import { t as UIConfig } from "./uiConfig.context-3DN9w6oU.js";
|
|
4
|
+
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
|
|
5
|
+
import { t as useFieldAccessibility } from "./useFieldAccessibility-eZIMECmG.js";
|
|
6
|
+
import { t as FormField } from "./FormField-dduTMkNH.js";
|
|
7
|
+
import { t as resolveInputLayout } from "./inputLayout-KdAtunGk.js";
|
|
8
|
+
import { i as $ea0ea6e62ae0d7ca$export$6d095e787d2b5e1f, n as renderDatePickerTodayIcon, t as DatePickerInput } from "./DatePickerInput-2CZtsxdK.js";
|
|
9
|
+
import { i as getStaticDateTimeFocusTarget, n as getStaticCalendarDateTimeSegments, o as DateTimeDialogFooter, s as DateTimeDialog } from "./staticDateTimeSegments-bPuA-a2Y.js";
|
|
10
|
+
import { n as preloadCalendar, r as $28aae683a942e141$export$87194bb378cc3ac2, t as Calendar } from "./Calendar.lazy-MJisXRJK.js";
|
|
13
11
|
import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
|
|
14
|
-
import { t as datePickerInputContentRowDefinition } from "./datePickerInput.cva-
|
|
12
|
+
import { t as datePickerInputContentRowDefinition } from "./datePickerInput.cva-Du0Zn04v.js";
|
|
13
|
+
import { t as TooltipWrapper } from "./TooltipWrapper-BvGO_LUx.js";
|
|
14
|
+
import { t as normalizeDatePickerValue } from "./datePickerValue.utils-CkmPaD6I.js";
|
|
15
|
+
import { n as useStaticInputHandoff } from "./useStaticInputHandoff-BN0fOerH.js";
|
|
16
|
+
import { InputFrame } from "./components/input-frame.js";
|
|
15
17
|
import { memo, useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
16
18
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
19
|
import { Time, createCalendar, getLocalTimeZone, toCalendarDate, toCalendarDateTime, today } from "@internationalized/date";
|
|
@@ -19,10 +21,10 @@ import { useDatePicker, useLocale } from "react-aria";
|
|
|
19
21
|
//#region src/components/inputs/DateTime/DateTimePicker/DateTimePicker.tsx
|
|
20
22
|
const DateTimePickerBase = (props) => {
|
|
21
23
|
const ui = UIConfig.useConfig();
|
|
22
|
-
const { ref, label, tooltipText, helperText, isRequired, rightContent, isDisabled, isDirty, headerClassName, errorClassName, isHeaderHidden, error, onChange, onBlur, onValueCommit, value, disableDropdown, isTimeOptional, placeholder, inputClassName, shouldShrinkInput, hideLabel: hideLabelProp, variant: variantProp, as: asProp, size: sizeProp, isClearable: isClearableProp, isClearableIfDisabled, showWeekNumbers = ui.dateInput.showWeekNumbers, todayIcon: todayIconProp, todayIconButtonSize: todayIconButtonSizeProp, todayIconButtonComponent: todayIconButtonComponentProp, todayIconPlacement: todayIconPlacementProp, shouldForceLeadingZeros: shouldForceLeadingZerosProp, disableManualEntry: disableManualEntryProp, shouldUpdateDateOnMonthYearChange: shouldUpdateDateOnMonthYearChangeProp, timeZone: timeZoneProp, autoFixYear: autoFixYearProp, format, setDateValueOnDateSelection: setDateValueOnDateSelectionProp, ...rest } = props;
|
|
24
|
+
const { ref, label, tooltipText, helperText, isRequired, rightContent, isDisabled, isDirty, headerClassName, errorClassName, isHeaderHidden, error, onChange, onBlur, onValueCommit, value, disableDropdown, isTimeOptional, placeholder, inputClassName, shouldShrinkInput, hideLabel: hideLabelProp, variant: variantProp, as: asProp, layout: layoutProp, size: sizeProp, isClearable: isClearableProp, isClearableIfDisabled, showWeekNumbers = ui.dateInput.showWeekNumbers, todayIcon: todayIconProp, todayIconButtonSize: todayIconButtonSizeProp, todayIconButtonComponent: todayIconButtonComponentProp, todayIconPlacement: todayIconPlacementProp, shouldForceLeadingZeros: shouldForceLeadingZerosProp, disableManualEntry: disableManualEntryProp, shouldUpdateDateOnMonthYearChange: shouldUpdateDateOnMonthYearChangeProp, timeZone: timeZoneProp, autoFixYear: autoFixYearProp, format, setDateValueOnDateSelection: setDateValueOnDateSelectionProp, ...rest } = props;
|
|
23
25
|
const hideLabel = hideLabelProp ?? ui.input.hideLabel;
|
|
24
26
|
const variant = variantProp ?? ui.input.variant;
|
|
25
|
-
const as = asProp
|
|
27
|
+
const as = resolveInputLayout(layoutProp, asProp, ui.input.as);
|
|
26
28
|
const size = sizeProp ?? ui.input.size;
|
|
27
29
|
const isClearable = isClearableProp ?? ui.input.isClearable;
|
|
28
30
|
const todayIcon = todayIconProp ?? ui.dateInput.todayIcon;
|
|
@@ -37,7 +39,14 @@ const DateTimePickerBase = (props) => {
|
|
|
37
39
|
const timeZone = timeZoneProp ?? ui.dateInput.timeZone;
|
|
38
40
|
let effectiveTimeZone = getLocalTimeZone();
|
|
39
41
|
if (timeZone !== "clientLocal") effectiveTimeZone = timeZone;
|
|
42
|
+
const accessibility = useFieldAccessibility({
|
|
43
|
+
error,
|
|
44
|
+
helperText,
|
|
45
|
+
describedBy: rest["aria-describedby"]
|
|
46
|
+
});
|
|
40
47
|
const formFieldProps = {
|
|
48
|
+
errorMessageId: accessibility.errorMessageId,
|
|
49
|
+
helperTextId: accessibility.helperTextId,
|
|
41
50
|
error,
|
|
42
51
|
label,
|
|
43
52
|
tooltipText,
|
|
@@ -91,7 +100,8 @@ const DateTimePickerBase = (props) => {
|
|
|
91
100
|
});
|
|
92
101
|
const { groupProps, labelProps, fieldProps, buttonProps, dialogProps } = useDatePicker({
|
|
93
102
|
...rest,
|
|
94
|
-
label,
|
|
103
|
+
label: rest["aria-label"] || rest["aria-labelledby"] ? void 0 : label,
|
|
104
|
+
"aria-label": rest["aria-labelledby"] ? void 0 : rest["aria-label"],
|
|
95
105
|
granularity: "minute",
|
|
96
106
|
hideTimeZone: true,
|
|
97
107
|
shouldForceLeadingZeros
|
|
@@ -179,14 +189,22 @@ const DateTimePickerBase = (props) => {
|
|
|
179
189
|
...formFieldProps,
|
|
180
190
|
as,
|
|
181
191
|
labelProps,
|
|
182
|
-
className: "group relative
|
|
192
|
+
className: "group relative flex w-full flex-col text-left",
|
|
183
193
|
tabIndex: as === "inline" ? -1 : void 0,
|
|
194
|
+
onMouseEnter: preloadCalendar,
|
|
195
|
+
onFocusCapture: preloadCalendar,
|
|
184
196
|
children: [/* @__PURE__ */ jsx(DatePickerInput, {
|
|
185
197
|
ref: $a8ea2faf2ebe4d2f$re_export$mergeRefs(ref, datePickerInputRef),
|
|
186
198
|
as,
|
|
187
|
-
groupProps
|
|
199
|
+
groupProps: {
|
|
200
|
+
...groupProps,
|
|
201
|
+
"aria-describedby": accessibility.describedBy,
|
|
202
|
+
"aria-errormessage": accessibility.errorMessageId,
|
|
203
|
+
"aria-invalid": !!error
|
|
204
|
+
},
|
|
188
205
|
fieldProps: {
|
|
189
206
|
...fieldProps,
|
|
207
|
+
"aria-describedby": accessibility.describedBy,
|
|
190
208
|
onBlur: (e) => {
|
|
191
209
|
fieldProps.onBlur?.(e);
|
|
192
210
|
handleBlur(state.value);
|
|
@@ -250,7 +268,7 @@ const DateTimePickerBase = (props) => {
|
|
|
250
268
|
})
|
|
251
269
|
});
|
|
252
270
|
};
|
|
253
|
-
const DateTimePickerInner = ({
|
|
271
|
+
const DateTimePickerInner = ({ defaultValue: _defaultValue, renderStaticInput, isFormControlDisabled, ...props }) => {
|
|
254
272
|
const ui = UIConfig.useConfig();
|
|
255
273
|
const datePickerInputContentRowCva = UIOverrides.useCva("datePickerInput.contentRowCva", datePickerInputContentRowDefinition);
|
|
256
274
|
const { locale } = useLocale();
|
|
@@ -285,7 +303,7 @@ const DateTimePickerInner = ({ fullIso: _fullIso = true, renderStaticInput, isFo
|
|
|
285
303
|
};
|
|
286
304
|
if (!renderInput) {
|
|
287
305
|
const dateTimeValue = normalizedValue ? parseDateValue(normalizedValue) : null;
|
|
288
|
-
const as = props.as
|
|
306
|
+
const as = resolveInputLayout(props.layout, props.as, ui.input.as);
|
|
289
307
|
const size = props.size ?? ui.input.size;
|
|
290
308
|
const isDisabled = isFormControlDisabled || !!props.isDisabled;
|
|
291
309
|
const todayIcon = props.todayIcon ?? ui.dateInput.todayIcon;
|
|
@@ -294,7 +312,6 @@ const DateTimePickerInner = ({ fullIso: _fullIso = true, renderStaticInput, isFo
|
|
|
294
312
|
const todayIconPlacement = props.todayIconPlacement ?? ui.dateInput.todayIconPlacement;
|
|
295
313
|
const staticTodayIcon = renderDatePickerTodayIcon(todayIcon, {
|
|
296
314
|
isDisabled,
|
|
297
|
-
renderStatic: true,
|
|
298
315
|
size: todayIconButtonSize,
|
|
299
316
|
todayIconButtonComponent
|
|
300
317
|
});
|
|
@@ -316,8 +333,8 @@ const DateTimePickerInner = ({ fullIso: _fullIso = true, renderStaticInput, isFo
|
|
|
316
333
|
props.onValueCommit?.();
|
|
317
334
|
},
|
|
318
335
|
isDisabled,
|
|
319
|
-
className: clsx("group relative
|
|
320
|
-
inputClassName: clsx(props.shouldShrinkInput ? "min-w-0" : "min-w-
|
|
336
|
+
className: clsx("group relative flex w-full flex-col text-left", props.className),
|
|
337
|
+
inputClassName: clsx(props.shouldShrinkInput ? "min-w-0" : "min-w-51", props.inputClassName),
|
|
321
338
|
contentClassName: "pr-0!",
|
|
322
339
|
contentWrapperClassName: datePickerInputContentRowCva({ size }),
|
|
323
340
|
contentGroup: "date-picker",
|
|
@@ -356,35 +373,17 @@ const DateTimePickerInner = ({ fullIso: _fullIso = true, renderStaticInput, isFo
|
|
|
356
373
|
onChange: (value) => props.onChange?.(formatDateValue(value))
|
|
357
374
|
});
|
|
358
375
|
};
|
|
359
|
-
const DateTimePickerComponent = ({
|
|
360
|
-
|
|
361
|
-
const { field, ref, ...innerProps } = props;
|
|
362
|
-
const controlWithOptions = field.form;
|
|
363
|
-
return /* @__PURE__ */ jsx(FieldController, {
|
|
364
|
-
control: field.form,
|
|
365
|
-
name: field.name,
|
|
366
|
-
render: ({ field, fieldState: { error, isDirty } }) => /* @__PURE__ */ jsx(DateTimePickerInner, {
|
|
367
|
-
...innerProps,
|
|
368
|
-
ref: $a8ea2faf2ebe4d2f$re_export$mergeRefs(ref, field.ref),
|
|
369
|
-
value: field.value ?? null,
|
|
370
|
-
onChange: (value) => field.onChange(value ?? null),
|
|
371
|
-
onBlur: field.onBlur,
|
|
372
|
-
onValueCommit: field.onBlur,
|
|
373
|
-
isDirty,
|
|
374
|
-
isDisabled: field.disabled || props.isDisabled,
|
|
375
|
-
isFormControlDisabled: !!controlWithOptions._options?.disabled,
|
|
376
|
-
error: props.error ?? error?.message,
|
|
377
|
-
fullIso,
|
|
378
|
-
renderStaticInput
|
|
379
|
-
})
|
|
380
|
-
});
|
|
381
|
-
}
|
|
376
|
+
const DateTimePickerComponent = ({ defaultValue, value, onChange, ...props }) => {
|
|
377
|
+
const [internalValue, setInternalValue] = useState(defaultValue ?? null);
|
|
382
378
|
return /* @__PURE__ */ jsx(DateTimePickerInner, {
|
|
383
379
|
...props,
|
|
384
|
-
|
|
385
|
-
|
|
380
|
+
value: value === void 0 ? internalValue : value,
|
|
381
|
+
onChange: (nextValue) => {
|
|
382
|
+
if (value === void 0) setInternalValue(nextValue);
|
|
383
|
+
onChange?.(nextValue);
|
|
384
|
+
}
|
|
386
385
|
});
|
|
387
386
|
};
|
|
388
387
|
const DateTimePicker = memo(DateTimePickerComponent);
|
|
389
388
|
//#endregion
|
|
390
|
-
export { DateTimePicker as t };
|
|
389
|
+
export { DateTimePickerInner as n, DateTimePicker as t };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import {
|
|
3
|
-
import { n as
|
|
4
|
-
import { n as InputVariantProps } from "./input.cva-BsHgYa-L.js";
|
|
5
|
-
import { a as DatePickerTodayIconPlacement, i as DatePickerTodayIconButtonSize, n as DatePickerTodayIcon, r as DatePickerTodayIconButtonComponent, t as DatePickerInputHandle } from "./DatePickerInput-D81ZJ3fT.js";
|
|
1
|
+
import { n as FormFieldProps } from "./FormField-DGyCDxOp.js";
|
|
2
|
+
import { n as InputVariantProps } from "./input.cva-BjuHsDGy.js";
|
|
3
|
+
import { a as DatePickerTodayIconPlacement, i as DatePickerTodayIconButtonSize, n as DatePickerTodayIcon, r as DatePickerTodayIconButtonComponent, t as DatePickerInputHandle } from "./DatePickerInput-vLlL5ATh.js";
|
|
6
4
|
import { FocusEvent, Ref } from "react";
|
|
7
5
|
import { DateValue } from "react-aria";
|
|
8
6
|
import { DatePickerStateOptions } from "react-stately";
|
|
9
7
|
//#region src/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts
|
|
10
8
|
interface DateTimePickerBaseProps extends FormFieldProps, InputVariantProps, Omit<DatePickerStateOptions<DateValue>, "granularity" | "shouldCloseOnSelect" | "label" | "onBlur"> {
|
|
9
|
+
"aria-describedby"?: string;
|
|
10
|
+
"aria-label"?: string;
|
|
11
|
+
"aria-labelledby"?: string;
|
|
11
12
|
ref?: Ref<DatePickerInputHandle & HTMLDivElement>;
|
|
12
13
|
disableDropdown?: boolean;
|
|
13
14
|
isTimeOptional?: boolean;
|
|
@@ -31,15 +32,24 @@ interface DateTimePickerBaseProps extends FormFieldProps, InputVariantProps, Omi
|
|
|
31
32
|
onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
|
|
32
33
|
onValueCommit?: () => void;
|
|
33
34
|
}
|
|
34
|
-
interface DateTimePickerProps extends Omit<DateTimePickerBaseProps, "value" | "onChange" | "onValueCommit"> {
|
|
35
|
+
interface DateTimePickerProps extends Omit<DateTimePickerBaseProps, "value" | "onChange" | "defaultValue" | "onValueCommit"> {
|
|
36
|
+
field?: never;
|
|
37
|
+
/** Initial ISO timestamp with Z or an explicit offset; used only when value is undefined. */
|
|
38
|
+
defaultValue?: string | null;
|
|
39
|
+
/** Controlled ISO timestamp with Z or an explicit offset; null clears the field. */
|
|
35
40
|
value?: string | null;
|
|
41
|
+
/** Emits a UTC ISO timestamp (YYYY-MM-DDTHH:mm:ss.sssZ), or null when cleared. */
|
|
36
42
|
onChange?: (value: string | null) => void;
|
|
37
|
-
fullIso?: boolean;
|
|
38
43
|
renderStaticInput?: boolean;
|
|
44
|
+
/** Display/edit zone; defaults to UIConfig.dateInput.timeZone (clientLocal uses the browser zone). Output stays UTC. */
|
|
39
45
|
timeZone?: string;
|
|
40
46
|
}
|
|
41
|
-
type
|
|
42
|
-
|
|
43
|
-
|
|
47
|
+
type DateTimePickerInnerProps = DateTimePickerProps & {
|
|
48
|
+
isFormControlDisabled?: boolean;
|
|
49
|
+
onValueCommit?: () => void;
|
|
50
|
+
};
|
|
51
|
+
declare const DateTimePickerInner: ({ defaultValue: _defaultValue, renderStaticInput, isFormControlDisabled, ...props }: DateTimePickerInnerProps) => import("react").JSX.Element;
|
|
52
|
+
declare const DateTimePickerComponent: ({ defaultValue, value, onChange, ...props }: DateTimePickerProps) => import("react").JSX.Element;
|
|
53
|
+
declare const DateTimePicker: import("react").MemoExoticComponent<typeof DateTimePickerComponent>;
|
|
44
54
|
//#endregion
|
|
45
|
-
export {
|
|
55
|
+
export { DateTimePickerProps as i, DateTimePickerComponent as n, DateTimePickerInner as r, DateTimePicker as t };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
|
|
2
|
+
import { t as FieldController } from "./form.binding-DOR5gIQf.js";
|
|
3
|
+
import { n as DateTimePickerInner } from "./DateTimePicker-8BVP2qeR.js";
|
|
4
|
+
import { memo } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/inputs/DateTime/DateTimePicker/DateTimePicker.bound.tsx
|
|
7
|
+
const DateTimePickerComponent = ({ renderStaticInput, ...props }) => {
|
|
8
|
+
const { field, ref, ...innerProps } = props;
|
|
9
|
+
const controlWithOptions = field.form;
|
|
10
|
+
return /* @__PURE__ */ jsx(FieldController, {
|
|
11
|
+
control: field.form,
|
|
12
|
+
name: field.name,
|
|
13
|
+
onValueChange: field.onValueChange,
|
|
14
|
+
onBlur: field.onBlur,
|
|
15
|
+
render: ({ field, fieldState: { error, isDirty } }) => /* @__PURE__ */ jsx(DateTimePickerInner, {
|
|
16
|
+
...innerProps,
|
|
17
|
+
ref: $a8ea2faf2ebe4d2f$re_export$mergeRefs(ref, field.ref),
|
|
18
|
+
value: field.value ?? null,
|
|
19
|
+
onChange: (value) => field.onChange(value ?? null),
|
|
20
|
+
onBlur: field.onBlur,
|
|
21
|
+
onValueCommit: field.onValueCommit,
|
|
22
|
+
isDirty,
|
|
23
|
+
isDisabled: field.disabled || props.isDisabled,
|
|
24
|
+
isFormControlDisabled: !!controlWithOptions._options?.disabled,
|
|
25
|
+
error: props.error ?? error?.message,
|
|
26
|
+
renderStaticInput
|
|
27
|
+
})
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
const DateTimePicker = memo(DateTimePickerComponent);
|
|
31
|
+
//#endregion
|
|
32
|
+
export { DateTimePicker as t };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { i as DateTimePickerProps$1 } from "./DateTimePicker-BTRIUagV.js";
|
|
2
|
+
import { n as FieldValues, t as FormControlProps } from "./form.types-C8P4sznq.js";
|
|
3
|
+
//#region src/components/inputs/DateTime/DateTimePicker/DateTimePicker.bound.d.ts
|
|
4
|
+
type ControlledDateTimePickerProps<TFieldValues extends FieldValues> = FormControlProps<DateTimePickerProps$1, TFieldValues>;
|
|
5
|
+
type DateTimePickerProps<TFieldValues extends FieldValues = FieldValues> = ControlledDateTimePickerProps<TFieldValues>;
|
|
6
|
+
declare const DateTimePickerComponent: <TFieldValues extends FieldValues>({ renderStaticInput, ...props }: ControlledDateTimePickerProps<TFieldValues>) => import("react").JSX.Element;
|
|
7
|
+
declare const DateTimePicker: typeof DateTimePickerComponent;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { DateTimePicker as n, DateTimePickerProps as r, ControlledDateTimePickerProps as t };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as X } from "./x-B6vfz8Ps.js";
|
|
2
1
|
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
3
|
-
import { t as UIOverrides } from "./uiOverrides.context-
|
|
4
|
-
import { n as $f2ff30fde7b014be$export$3ddf2d174ce01153 } from "./Dialog-
|
|
5
|
-
import { n as $8b8d26808cb8cb53$export$8948f78d83984c69, t as $8b8d26808cb8cb53$export$2b77a92f1a5ad772 } from "./Modal-
|
|
6
|
-
import {
|
|
7
|
-
import "./i18n-
|
|
8
|
-
import { i as dialogOverlayDefinition, n as dialogMainDefinition, t as dialogContentDefinition } from "./dialog.cva-
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
+
import { n as $f2ff30fde7b014be$export$3ddf2d174ce01153 } from "./Dialog-C9H9_BmK.js";
|
|
4
|
+
import { n as $8b8d26808cb8cb53$export$8948f78d83984c69, t as $8b8d26808cb8cb53$export$2b77a92f1a5ad772 } from "./Modal-DcLWF9cB.js";
|
|
5
|
+
import { IconButton } from "./components/icon-button.js";
|
|
6
|
+
import "./i18n-D1FWVTPi.js";
|
|
7
|
+
import { i as dialogOverlayDefinition, n as dialogMainDefinition, t as dialogContentDefinition } from "./dialog.cva-BIpz6HcA.js";
|
|
8
|
+
import { X } from "lucide-react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
11
|
//#region src/components/overlays/Dialog/Dialog.tsx
|
|
@@ -44,13 +44,16 @@ const Dialog = ({ isOpen, portalContainerRef, onClose, onOpenChange, aside, chil
|
|
|
44
44
|
aside,
|
|
45
45
|
className: dialogClassName
|
|
46
46
|
}),
|
|
47
|
-
children: [showCloseIcon && /* @__PURE__ */ jsx(
|
|
47
|
+
children: [showCloseIcon && /* @__PURE__ */ jsx(IconButton, {
|
|
48
48
|
color: "secondary",
|
|
49
49
|
onPress: () => handleOpenChange(false),
|
|
50
50
|
icon: X,
|
|
51
|
-
className: clsx("absolute top-
|
|
51
|
+
className: clsx("absolute top-4 right-4 size-4 rounded-xs opacity-70 hover:opacity-100", closeIconClassName),
|
|
52
52
|
label: t(($) => $.ui.modal.closeBtn),
|
|
53
|
-
|
|
53
|
+
variant: "ghost",
|
|
54
|
+
width: "hug",
|
|
55
|
+
disableTooltip: true,
|
|
56
|
+
size: "none"
|
|
54
57
|
}), children]
|
|
55
58
|
})
|
|
56
59
|
})
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, l as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$c62b8e45d58ddad9, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a } from "./utils-
|
|
2
|
-
import { t as $7705c033048f6da7$export$24d547caef80ccd1 } from "./Button-
|
|
3
|
-
import { n as $2ec61d1d4f780267$export$d688439359537581 } from "./Heading-
|
|
4
|
-
import { t as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-
|
|
5
|
-
import { t as $792f28e438b9ad5f$export$758399f318e6385a } from "./SharedElementTransition-
|
|
6
|
-
import {
|
|
7
|
-
import { t as $4fcfe18fac72dabd$export$2de4954e8ae13b9f } from "./OverlayArrow-
|
|
1
|
+
import { c as $7230ffa83bc0c2cf$export$ef03459518577ad4, i as $7230ffa83bc0c2cf$export$9d4c57ee4c6ffdd8, l as $7230ffa83bc0c2cf$export$fabf2dc03a41866e, n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$c62b8e45d58ddad9, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a } from "./utils-BkLF-JA3.js";
|
|
2
|
+
import { t as $7705c033048f6da7$export$24d547caef80ccd1 } from "./Button-C1YB5dOw.js";
|
|
3
|
+
import { n as $2ec61d1d4f780267$export$d688439359537581 } from "./Heading-D4XFYv__.js";
|
|
4
|
+
import { t as $efe09c6d1c304b50$export$9afb8bc826b033ea } from "./Text-D72yc4S6.js";
|
|
5
|
+
import { t as $792f28e438b9ad5f$export$758399f318e6385a } from "./SharedElementTransition-CZ2bE7yo.js";
|
|
6
|
+
import { n as $91fe5e721c7f36c1$export$c9549807523555e0 } from "./SelectionIndicator-C3hniBa2.js";
|
|
7
|
+
import { t as $4fcfe18fac72dabd$export$2de4954e8ae13b9f } from "./OverlayArrow-DF0jMwul.js";
|
|
8
8
|
import $ahdqC$react, { cloneElement, createContext, forwardRef, isValidElement, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
9
9
|
import { mergeProps } from "react-aria/mergeProps";
|
|
10
10
|
import { useLayoutEffect as useLayoutEffect$1 } from "react-aria/private/utils/useLayoutEffect";
|
|
11
11
|
import { useObjectRef } from "react-aria/useObjectRef";
|
|
12
|
-
import "react-aria/useAutocomplete";
|
|
13
|
-
import "react-stately/private/autocomplete/useAutocompleteState";
|
|
12
|
+
import { useAutocomplete } from "react-aria/useAutocomplete";
|
|
13
|
+
import { useAutocompleteState } from "react-stately/private/autocomplete/useAutocompleteState";
|
|
14
14
|
import { CollectionBuilder, createBranchComponent, createLeafComponent } from "react-aria/CollectionBuilder";
|
|
15
15
|
import { useCachedChildren } from "react-aria/private/collections/useCachedChildren";
|
|
16
16
|
import { filterDOMProps } from "react-aria/filterDOMProps";
|
|
17
17
|
import { useHover } from "react-aria/useHover";
|
|
18
18
|
import { Collection } from "react-aria/Collection";
|
|
19
|
-
import { CollectionNode,
|
|
19
|
+
import { CollectionNode, ItemNode, LoaderNode } from "react-aria/private/collections/BaseCollection";
|
|
20
20
|
import { useIsHidden } from "react-aria/private/collections/Hidden";
|
|
21
21
|
import { useId as useId$1 } from "react-aria/useId";
|
|
22
22
|
import { useLocale } from "react-aria/I18nProvider";
|
|
@@ -30,6 +30,7 @@ import { focusSafely } from "react-aria/private/interactions/focusSafely";
|
|
|
30
30
|
import { getInteractionModality } from "react-aria/private/interactions/useFocusVisible";
|
|
31
31
|
import { isFocusWithin } from "react-aria/private/utils/shadowdom/DOMFunctions";
|
|
32
32
|
import { useOverlayTriggerState } from "react-stately/useOverlayTriggerState";
|
|
33
|
+
import { runAfterKeyboard } from "react-aria/private/utils/runAfterKeyboard";
|
|
33
34
|
import { useEnterAnimation, useExitAnimation } from "react-aria/private/utils/animation";
|
|
34
35
|
import { useResizeObserver } from "react-aria/private/utils/useResizeObserver";
|
|
35
36
|
import { useMenu, useMenuItem, useMenuSection, useMenuTrigger, useSubmenuTrigger } from "react-aria/useMenu";
|
|
@@ -40,11 +41,40 @@ import { useTreeState } from "react-stately/useTreeState";
|
|
|
40
41
|
import { useMultipleSelectionState } from "react-stately/useMultipleSelectionState";
|
|
41
42
|
import { useDialog } from "react-aria/useDialog";
|
|
42
43
|
import { useOverlayTrigger } from "react-aria/useOverlayTrigger";
|
|
43
|
-
//#region ../../node_modules/.bun/react-aria-components@1.
|
|
44
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/Autocomplete.mjs
|
|
45
|
+
const $4b38b5b75ecc6208$export$36e687af51cd0967 = /*#__PURE__*/ createContext(null);
|
|
46
|
+
const $4b38b5b75ecc6208$export$68ee3368b6d68148 = /*#__PURE__*/ createContext(null);
|
|
44
47
|
const $4b38b5b75ecc6208$export$b0d3ecf7112093a7 = /*#__PURE__*/ createContext(null);
|
|
45
48
|
const $4b38b5b75ecc6208$export$698f465ec27e93df = /*#__PURE__*/ createContext(null);
|
|
49
|
+
function $4b38b5b75ecc6208$export$2f2b9559550c7bbc(props) {
|
|
50
|
+
let ctx = $7230ffa83bc0c2cf$export$fabf2dc03a41866e($4b38b5b75ecc6208$export$36e687af51cd0967, props.slot);
|
|
51
|
+
props = mergeProps(ctx, props);
|
|
52
|
+
let { filter, disableAutoFocusFirst } = props;
|
|
53
|
+
let state = useAutocompleteState(props);
|
|
54
|
+
let inputRef = useRef(null);
|
|
55
|
+
let collectionRef = useRef(null);
|
|
56
|
+
let { inputProps, collectionProps, collectionRef: mergedCollectionRef, filter: filterFn } = useAutocomplete({
|
|
57
|
+
...$7230ffa83bc0c2cf$export$ef03459518577ad4(props),
|
|
58
|
+
filter,
|
|
59
|
+
disableAutoFocusFirst,
|
|
60
|
+
inputRef,
|
|
61
|
+
collectionRef
|
|
62
|
+
}, state);
|
|
63
|
+
return /*#__PURE__*/ $ahdqC$react.createElement($7230ffa83bc0c2cf$export$2881499e37b75b9a, { values: [
|
|
64
|
+
[$4b38b5b75ecc6208$export$68ee3368b6d68148, state],
|
|
65
|
+
[$4b38b5b75ecc6208$export$698f465ec27e93df, {
|
|
66
|
+
...inputProps,
|
|
67
|
+
ref: inputRef
|
|
68
|
+
}],
|
|
69
|
+
[$4b38b5b75ecc6208$export$b0d3ecf7112093a7, {
|
|
70
|
+
...collectionProps,
|
|
71
|
+
filter: filterFn,
|
|
72
|
+
ref: mergedCollectionRef
|
|
73
|
+
}]
|
|
74
|
+
] }, props.children);
|
|
75
|
+
}
|
|
46
76
|
//#endregion
|
|
47
|
-
//#region ../../node_modules/.bun/react-aria-components@1.
|
|
77
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/Collection.mjs
|
|
48
78
|
const $263ab7fc0f95ccdb$export$d40e14dec8b060a8 = /*#__PURE__*/ createContext(null);
|
|
49
79
|
const $263ab7fc0f95ccdb$export$a164736487e3f0ae = {
|
|
50
80
|
CollectionRoot({ collection, renderDropIndicator }) {
|
|
@@ -100,18 +130,10 @@ function $263ab7fc0f95ccdb$export$90e00781bc59d8f9(focusedKey) {
|
|
|
100
130
|
return useMemo(() => focusedKey != null ? /* @__PURE__ */ new Set([focusedKey]) : null, [focusedKey]);
|
|
101
131
|
}
|
|
102
132
|
//#endregion
|
|
103
|
-
//#region ../../node_modules/.bun/react-aria-components@1.
|
|
133
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/Header.mjs
|
|
104
134
|
const $53e61d82d8b8611d$export$e0e4026c12a8bdbb = /*#__PURE__*/ createContext({});
|
|
105
|
-
const $53e61d82d8b8611d$export$8b251419efc915eb = /*#__PURE__*/ createLeafComponent(HeaderNode, function Header(props, ref) {
|
|
106
|
-
[props, ref] = $7230ffa83bc0c2cf$export$29f1550f4b0d4415(props, ref, $53e61d82d8b8611d$export$e0e4026c12a8bdbb);
|
|
107
|
-
return /*#__PURE__*/ $ahdqC$react.createElement($7230ffa83bc0c2cf$export$df3a06d6289f983e.header, {
|
|
108
|
-
className: "react-aria-Header",
|
|
109
|
-
...props,
|
|
110
|
-
ref
|
|
111
|
-
}, props.children);
|
|
112
|
-
});
|
|
113
135
|
//#endregion
|
|
114
|
-
//#region ../../node_modules/.bun/react-aria-components@1.
|
|
136
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/Separator.mjs
|
|
115
137
|
const $e28ab3efe3e87743$export$6615d83f6de245ce = /*#__PURE__*/ createContext({});
|
|
116
138
|
var $e28ab3efe3e87743$export$7750289ca694c0b5 = class extends CollectionNode {
|
|
117
139
|
static {
|
|
@@ -128,7 +150,7 @@ var $e28ab3efe3e87743$export$7750289ca694c0b5 = class extends CollectionNode {
|
|
|
128
150
|
}
|
|
129
151
|
};
|
|
130
152
|
//#endregion
|
|
131
|
-
//#region ../../node_modules/.bun/react-aria-components@1.
|
|
153
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/Popover.mjs
|
|
132
154
|
const $542a13ca2fa5b484$export$9b9a0cd73afb7ca4 = /*#__PURE__*/ createContext(null);
|
|
133
155
|
const $542a13ca2fa5b484$var$PopoverGroupContext = /*#__PURE__*/ createContext(null);
|
|
134
156
|
const $542a13ca2fa5b484$export$5b6b19405a83ff9d = /*#__PURE__*/ forwardRef(function Popover(props, ref) {
|
|
@@ -166,6 +188,7 @@ function $542a13ca2fa5b484$var$PopoverInner({ state, isExiting, UNSTABLE_portalC
|
|
|
166
188
|
let containerRef = useRef(null);
|
|
167
189
|
let groupCtx = useContext($542a13ca2fa5b484$var$PopoverGroupContext);
|
|
168
190
|
let isSubPopover = groupCtx && props.trigger === "SubmenuTrigger";
|
|
191
|
+
let [isOpen, setIsOpen] = useState(false);
|
|
169
192
|
let { popoverProps, underlayProps, arrowProps, placement, triggerAnchorPoint } = usePopover({
|
|
170
193
|
...props,
|
|
171
194
|
offset: props.offset ?? 8,
|
|
@@ -173,7 +196,7 @@ function $542a13ca2fa5b484$var$PopoverInner({ state, isExiting, UNSTABLE_portalC
|
|
|
173
196
|
groupRef: isSubPopover ? groupCtx : containerRef
|
|
174
197
|
}, state);
|
|
175
198
|
let ref = props.popoverRef;
|
|
176
|
-
let enterAnimation = useEnterAnimation(ref, !!placement);
|
|
199
|
+
let enterAnimation = useEnterAnimation(ref, !!placement && isOpen);
|
|
177
200
|
let isEntering = props.isEntering || !props.shouldSkipAnimation && enterAnimation || false;
|
|
178
201
|
let renderProps = $7230ffa83bc0c2cf$export$4d86445c2cf5e3({
|
|
179
202
|
...props,
|
|
@@ -199,7 +222,7 @@ function $542a13ca2fa5b484$var$PopoverInner({ state, isExiting, UNSTABLE_portalC
|
|
|
199
222
|
]);
|
|
200
223
|
let children = useMemo(() => {
|
|
201
224
|
let children = renderProps.children;
|
|
202
|
-
|
|
225
|
+
for (let Context of [$542a13ca2fa5b484$export$9b9a0cd73afb7ca4, ...clearContexts ?? []]) children = /*#__PURE__*/ $ahdqC$react.createElement(Context.Provider, { value: null }, children);
|
|
203
226
|
return children;
|
|
204
227
|
}, [renderProps.children, clearContexts]);
|
|
205
228
|
let [triggerWidth, setTriggerWidth] = useState(null);
|
|
@@ -217,6 +240,7 @@ function $542a13ca2fa5b484$var$PopoverInner({ state, isExiting, UNSTABLE_portalC
|
|
|
217
240
|
...renderProps.style,
|
|
218
241
|
"--trigger-width": renderProps.style?.["--trigger-width"] || triggerWidth
|
|
219
242
|
};
|
|
243
|
+
useLayoutEffect$1(() => runAfterKeyboard(() => setIsOpen(true)), []);
|
|
220
244
|
let overlay = /*#__PURE__*/ $ahdqC$react.createElement($7230ffa83bc0c2cf$export$df3a06d6289f983e.div, {
|
|
221
245
|
...mergeProps(filterDOMProps(props, { global: true }), popoverProps),
|
|
222
246
|
...renderProps,
|
|
@@ -262,10 +286,10 @@ function $542a13ca2fa5b484$var$PopoverInner({ state, isExiting, UNSTABLE_portalC
|
|
|
262
286
|
}, overlay);
|
|
263
287
|
}
|
|
264
288
|
//#endregion
|
|
265
|
-
//#region ../../node_modules/.bun/react-aria-components@1.
|
|
289
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/Keyboard.mjs
|
|
266
290
|
const $650bea62ab5f5f0f$export$744d98a3b8a94e1c = /*#__PURE__*/ createContext({});
|
|
267
291
|
//#endregion
|
|
268
|
-
//#region ../../node_modules/.bun/react-aria-components@1.
|
|
292
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/Menu.mjs
|
|
269
293
|
const $49319ee1285aa241$export$c7e742effb1c51e2 = /*#__PURE__*/ createContext(null);
|
|
270
294
|
const $49319ee1285aa241$export$24aad8519b95b41b = /*#__PURE__*/ createContext(null);
|
|
271
295
|
const $49319ee1285aa241$export$795aec4671cbae19 = /*#__PURE__*/ createContext(null);
|
|
@@ -577,7 +601,7 @@ createLeafComponent(LoaderNode, function MenuLoadingIndicator(props, ref, item)
|
|
|
577
601
|
}, renderProps.children)));
|
|
578
602
|
});
|
|
579
603
|
//#endregion
|
|
580
|
-
//#region ../../node_modules/.bun/react-aria-components@1.
|
|
604
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/Dialog.mjs
|
|
581
605
|
const $f2ff30fde7b014be$export$8b93a07348a7730c = /*#__PURE__*/ createContext(null);
|
|
582
606
|
const $f2ff30fde7b014be$export$d2f961adcb0afbe = /*#__PURE__*/ createContext(null);
|
|
583
607
|
function $f2ff30fde7b014be$export$2e1e1122cf0cba88(props) {
|
|
@@ -647,4 +671,4 @@ const $f2ff30fde7b014be$export$3ddf2d174ce01153 = /*#__PURE__*/ forwardRef(funct
|
|
|
647
671
|
] }, renderProps.children));
|
|
648
672
|
});
|
|
649
673
|
//#endregion
|
|
650
|
-
export { $4b38b5b75ecc6208$export$
|
|
674
|
+
export { $4b38b5b75ecc6208$export$698f465ec27e93df as _, $49319ee1285aa241$export$27d2ad3c5815583e as a, $49319ee1285aa241$export$ecabc99eeffab7ca as c, $e28ab3efe3e87743$export$6615d83f6de245ce as d, $53e61d82d8b8611d$export$e0e4026c12a8bdbb as f, $4b38b5b75ecc6208$export$2f2b9559550c7bbc as g, $263ab7fc0f95ccdb$export$d40e14dec8b060a8 as h, $f2ff30fde7b014be$export$d2f961adcb0afbe as i, $542a13ca2fa5b484$export$5b6b19405a83ff9d as l, $263ab7fc0f95ccdb$export$4feb769f8ddf26c5 as m, $f2ff30fde7b014be$export$3ddf2d174ce01153 as n, $49319ee1285aa241$export$2ce376c2cc3355c8 as o, $263ab7fc0f95ccdb$export$2dbbd341daed716d as p, $f2ff30fde7b014be$export$8b93a07348a7730c as r, $49319ee1285aa241$export$d9b273488cd8ce6f as s, $f2ff30fde7b014be$export$2e1e1122cf0cba88 as t, $542a13ca2fa5b484$export$9b9a0cd73afb7ca4 as u, $4b38b5b75ecc6208$export$b0d3ecf7112093a7 as v };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { l as DialogVariantProps } from "./style-definitions-Dx6aFDiR.js";
|
|
2
|
+
import { PropsWithChildren, RefObject } from "react";
|
|
3
|
+
import { DialogProps } from "react-aria-components";
|
|
4
|
+
//#region src/components/overlays/Dialog/Dialog.d.ts
|
|
5
|
+
interface DialogProps$1 extends DialogVariantProps, Partial<Pick<DialogProps, "aria-label" | "aria-labelledby">> {
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
portalContainerRef?: RefObject<HTMLElement>;
|
|
8
|
+
/** Standard controlled-overlay callback. */
|
|
9
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
10
|
+
onClose?: () => void;
|
|
11
|
+
dialogClassName?: string;
|
|
12
|
+
closeIconClassName?: string;
|
|
13
|
+
overlayClassName?: string;
|
|
14
|
+
showCloseIcon?: boolean;
|
|
15
|
+
isDismissable?: boolean;
|
|
16
|
+
isKeyboardDismissable?: boolean;
|
|
17
|
+
shouldCloseOnInteractOutside?: () => boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const Dialog: ({ isOpen, portalContainerRef, onClose, onOpenChange, aside, children, dialogClassName, closeIconClassName, overlayClassName, showCloseIcon, isDismissable, isKeyboardDismissable, shouldCloseOnInteractOutside, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy }: PropsWithChildren<DialogProps$1>) => import("react").JSX.Element;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { DialogProps$1 as n, Dialog as t };
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415, o as $7230ffa83bc0c2cf$export$c62b8e45d58ddad9, r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e, t as $7230ffa83bc0c2cf$export$2881499e37b75b9a } from "./utils-BkLF-JA3.js";
|
|
2
|
+
import { t as $7705c033048f6da7$export$24d547caef80ccd1 } from "./Button-C1YB5dOw.js";
|
|
3
|
+
import $ahdqC$react, { createContext, forwardRef, useContext } from "react";
|
|
4
|
+
import { mergeProps } from "react-aria/mergeProps";
|
|
5
|
+
import { mergeRefs } from "react-aria/mergeRefs";
|
|
6
|
+
import { filterDOMProps } from "react-aria/filterDOMProps";
|
|
7
|
+
import { useFocusRing } from "react-aria/useFocusRing";
|
|
8
|
+
import { useId as useId$1 } from "react-aria/useId";
|
|
9
|
+
import { useDisclosure } from "react-aria/useDisclosure";
|
|
10
|
+
import { useDisclosureGroupState } from "react-stately/useDisclosureGroupState";
|
|
11
|
+
import { useDisclosureState } from "react-stately/useDisclosureState";
|
|
12
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/Disclosure.mjs
|
|
13
|
+
const $a3e16eab0ea4036c$export$1d40e3e0cc4d5de = /*#__PURE__*/ createContext(null);
|
|
14
|
+
const $a3e16eab0ea4036c$export$944aceb4f8c89f10 = /*#__PURE__*/ forwardRef(function DisclosureGroup(props, ref) {
|
|
15
|
+
let state = useDisclosureGroupState(props);
|
|
16
|
+
let renderProps = $7230ffa83bc0c2cf$export$4d86445c2cf5e3({
|
|
17
|
+
...props,
|
|
18
|
+
defaultClassName: "react-aria-DisclosureGroup",
|
|
19
|
+
values: {
|
|
20
|
+
isDisabled: state.isDisabled,
|
|
21
|
+
state
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
let domProps = filterDOMProps(props, { global: true });
|
|
25
|
+
return /*#__PURE__*/ $ahdqC$react.createElement($7230ffa83bc0c2cf$export$df3a06d6289f983e.div, {
|
|
26
|
+
...domProps,
|
|
27
|
+
...renderProps,
|
|
28
|
+
ref,
|
|
29
|
+
"data-disabled": props.isDisabled || void 0
|
|
30
|
+
}, /*#__PURE__*/ $ahdqC$react.createElement($a3e16eab0ea4036c$export$1d40e3e0cc4d5de.Provider, { value: state }, renderProps.children));
|
|
31
|
+
});
|
|
32
|
+
const $a3e16eab0ea4036c$export$d665dd135a51b28a = /*#__PURE__*/ createContext(null);
|
|
33
|
+
const $a3e16eab0ea4036c$export$dab3ea4a6ef094da = /*#__PURE__*/ createContext(null);
|
|
34
|
+
const $a3e16eab0ea4036c$var$InternalDisclosureContext = /*#__PURE__*/ createContext(null);
|
|
35
|
+
const $a3e16eab0ea4036c$export$74a362b31437ec83 = /*#__PURE__*/ forwardRef(function Disclosure(props, ref) {
|
|
36
|
+
[props, ref] = $7230ffa83bc0c2cf$export$29f1550f4b0d4415(props, ref, $a3e16eab0ea4036c$export$d665dd135a51b28a);
|
|
37
|
+
let groupState = useContext($a3e16eab0ea4036c$export$1d40e3e0cc4d5de);
|
|
38
|
+
let { id, ...otherProps } = props;
|
|
39
|
+
let defaultId = useId$1();
|
|
40
|
+
id ||= defaultId;
|
|
41
|
+
let isExpanded = groupState ? groupState.expandedKeys.has(id) : props.isExpanded;
|
|
42
|
+
let state = useDisclosureState({
|
|
43
|
+
...props,
|
|
44
|
+
isExpanded,
|
|
45
|
+
onExpandedChange(isExpanded) {
|
|
46
|
+
if (groupState) groupState.toggleKey(id);
|
|
47
|
+
props.onExpandedChange?.(isExpanded);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
let panelRef = $ahdqC$react.useRef(null);
|
|
51
|
+
let isDisabled = props.isDisabled || groupState?.isDisabled || false;
|
|
52
|
+
let { buttonProps, panelProps } = useDisclosure({
|
|
53
|
+
...props,
|
|
54
|
+
isExpanded,
|
|
55
|
+
isDisabled
|
|
56
|
+
}, state, panelRef);
|
|
57
|
+
let { isFocusVisible: isFocusVisibleWithin, focusProps: focusWithinProps } = useFocusRing({ within: true });
|
|
58
|
+
let renderProps = $7230ffa83bc0c2cf$export$4d86445c2cf5e3({
|
|
59
|
+
...props,
|
|
60
|
+
id: void 0,
|
|
61
|
+
defaultClassName: "react-aria-Disclosure",
|
|
62
|
+
values: {
|
|
63
|
+
isExpanded: state.isExpanded,
|
|
64
|
+
isDisabled,
|
|
65
|
+
isFocusVisibleWithin,
|
|
66
|
+
state
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
let domProps = filterDOMProps(otherProps, { global: true });
|
|
70
|
+
return /*#__PURE__*/ $ahdqC$react.createElement($7230ffa83bc0c2cf$export$2881499e37b75b9a, { values: [
|
|
71
|
+
[$7705c033048f6da7$export$24d547caef80ccd1, { slots: {
|
|
72
|
+
[$7230ffa83bc0c2cf$export$c62b8e45d58ddad9]: {},
|
|
73
|
+
trigger: buttonProps
|
|
74
|
+
} }],
|
|
75
|
+
[$a3e16eab0ea4036c$var$InternalDisclosureContext, {
|
|
76
|
+
panelProps,
|
|
77
|
+
panelRef
|
|
78
|
+
}],
|
|
79
|
+
[$a3e16eab0ea4036c$export$dab3ea4a6ef094da, state]
|
|
80
|
+
] }, /*#__PURE__*/ $ahdqC$react.createElement($7230ffa83bc0c2cf$export$df3a06d6289f983e.div, {
|
|
81
|
+
...mergeProps(domProps, renderProps, focusWithinProps),
|
|
82
|
+
ref,
|
|
83
|
+
"data-expanded": state.isExpanded || void 0,
|
|
84
|
+
"data-disabled": isDisabled || void 0,
|
|
85
|
+
"data-focus-visible-within": isFocusVisibleWithin || void 0
|
|
86
|
+
}, renderProps.children));
|
|
87
|
+
});
|
|
88
|
+
const $a3e16eab0ea4036c$export$feabaa331e1d464c = /*#__PURE__*/ forwardRef(function DisclosurePanel(props, ref) {
|
|
89
|
+
let { role = "group" } = props;
|
|
90
|
+
let { panelProps, panelRef } = useContext($a3e16eab0ea4036c$var$InternalDisclosureContext);
|
|
91
|
+
let { isFocusVisible: isFocusVisibleWithin, focusProps: focusWithinProps } = useFocusRing({ within: true });
|
|
92
|
+
let renderProps = $7230ffa83bc0c2cf$export$4d86445c2cf5e3({
|
|
93
|
+
...props,
|
|
94
|
+
defaultClassName: "react-aria-DisclosurePanel",
|
|
95
|
+
values: { isFocusVisibleWithin }
|
|
96
|
+
});
|
|
97
|
+
let DOMProps = filterDOMProps(props, {
|
|
98
|
+
global: true,
|
|
99
|
+
labelable: true
|
|
100
|
+
});
|
|
101
|
+
return /*#__PURE__*/ $ahdqC$react.createElement($7230ffa83bc0c2cf$export$df3a06d6289f983e.div, {
|
|
102
|
+
...mergeProps(DOMProps, renderProps, panelProps, focusWithinProps),
|
|
103
|
+
ref: mergeRefs(ref, panelRef),
|
|
104
|
+
role,
|
|
105
|
+
"data-focus-visible-within": isFocusVisibleWithin || void 0
|
|
106
|
+
}, /*#__PURE__*/ $ahdqC$react.createElement($7230ffa83bc0c2cf$export$2881499e37b75b9a, { values: [[$7705c033048f6da7$export$24d547caef80ccd1, null]] }, props.children));
|
|
107
|
+
});
|
|
108
|
+
//#endregion
|
|
109
|
+
export { $a3e16eab0ea4036c$export$944aceb4f8c89f10 as n, $a3e16eab0ea4036c$export$feabaa331e1d464c as r, $a3e16eab0ea4036c$export$74a362b31437ec83 as t };
|