@povio/ui 6.0.0-rc.1 → 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 +28 -0
- package/README.md +10 -37
- package/dist/{Accordion-DQRdeDs1.js → Accordion-ORBin0EZ.js} +12 -118
- package/dist/{Alert-Cee_nKWj.d.ts → Alert-D4X7OWiv.d.ts} +3 -3
- package/dist/{AlertDialog-uNDUIyng.d.ts → AlertDialog-DklLDjmw.d.ts} +3 -3
- package/dist/{Autocomplete-D_4gEL7D.d.ts → Autocomplete-BgFz3kuR.d.ts} +1 -1
- package/dist/{Autocomplete-CWU9Ev3J.js → Autocomplete-CsJAU233.js} +15 -12
- package/dist/{Autocomplete.bound-D0pgmsHB.js → Autocomplete.bound-CGC8m4dK.js} +2 -2
- package/dist/{Autocomplete.bound-CqhZtdd8.d.ts → Autocomplete.bound-CpHZZ3C9.d.ts} +1 -1
- package/dist/{Badge-C4HI9XX4.d.ts → Badge-Db1ndK67.d.ts} +2 -2
- package/dist/{BadgeButton-h3MeQYcp.d.ts → BadgeButton-BPhWDAnc.d.ts} +2 -2
- package/dist/{BottomSheet-BQXSdxoX.d.ts → BottomSheet-BZmDJBR-.d.ts} +1 -1
- package/dist/{BottomSheet-z5brMtDt.js → BottomSheet-CGipksM_.js} +10 -10
- package/dist/{BottomSheet.lazy-BzvLg8Ea.d.ts → BottomSheet.lazy-CuJMUeJP.d.ts} +1 -1
- package/dist/{Breadcrumbs-B9O0_VSN.d.ts → Breadcrumbs-CcB0oOF8.d.ts} +1 -1
- package/dist/{Breadcrumbs-AbUBqBTq.js → Breadcrumbs-a1-q_he0.js} +15 -12
- package/dist/{Button-f7FPTaiN.d.ts → Button-0SswSdDg.d.ts} +1 -1
- package/dist/{Button-DER_6cxv.js → Button-BaODzvZd.js} +1 -1
- package/dist/{ButtonBase-CYTFS-xK.d.ts → ButtonBase-CZuEy3Pk.d.ts} +3 -3
- package/dist/{ButtonBase-CeFSNcVs.js → ButtonBase-s-VV7oCa.js} +8 -7
- package/dist/{ButtonContent-c7lJayVQ.js → ButtonContent-Dztbuz3q.js} +5 -14
- package/dist/{Calendar-DRQ536wk.js → Calendar-Cr6B7SDx.js} +25 -181
- package/dist/Calendar.lazy-MJisXRJK.js +131 -0
- package/dist/{CheckContent-D7sZPmzx.js → CheckContent-BKLnTPZr.js} +2 -2
- package/dist/{Checkbox-BI3DQPLa.js → Checkbox-Bjsbx-wK.js} +6 -6
- package/dist/{Checkbox-CCvC7OVT.d.ts → Checkbox-w2j5hLOQ.d.ts} +1 -1
- package/dist/{Checkbox.bound-CMZnF2_d.js → Checkbox.bound-D2nBglJz.js} +2 -2
- package/dist/{Checkbox.bound-DBt33Inx.d.ts → Checkbox.bound-DD_RCjVm.d.ts} +1 -1
- package/dist/CheckboxCheckmark-DWsYVZuu.js +25 -0
- package/dist/{CheckboxGroup-DQw4hsFa.js → CheckboxGroup-B3O3IUiu.js} +10 -8
- package/dist/{CheckboxGroup-MJ6crCZk.d.ts → CheckboxGroup-BYI15Y09.d.ts} +3 -3
- package/dist/{CheckboxGroup.bound-CTCdezUN.js → CheckboxGroup.bound-DY0HKGSh.js} +2 -2
- package/dist/{CheckboxGroup.bound-j2Sc8QtU.d.ts → CheckboxGroup.bound-QiJ-P0KR.d.ts} +1 -1
- package/dist/{ComboBox-DFlz6HJ8.js → ComboBox-ChsdI0lt.js} +2 -2
- package/dist/{DatePicker-CSm9c37c.js → DatePicker-D-YXdY2z.js} +17 -14
- package/dist/{DatePicker-umTISfvn.d.ts → DatePicker-QzfQf21b.d.ts} +3 -3
- package/dist/{DatePicker.bound-KLyoWNcX.d.ts → DatePicker.bound-DoCAqhM4.d.ts} +1 -1
- package/dist/{DatePicker.bound-Yqckg7Mk.js → DatePicker.bound-a-6NJTgy.js} +2 -2
- package/dist/{DatePickerInput-Cs9RwZfy.js → DatePickerInput-2CZtsxdK.js} +41 -288
- package/dist/{DatePickerInput-DwHQvLzi.d.ts → DatePickerInput-vLlL5ATh.d.ts} +3 -3
- package/dist/{DateRangePicker-hV_U1IK0.d.ts → DateRangePicker-3pPW0ZBV.d.ts} +3 -3
- package/dist/{DateRangePicker-s_4n-F_P.js → DateRangePicker-tuM8Qyvp.js} +45 -306
- package/dist/{DateRangePicker.bound-C1klxYW0.js → DateRangePicker.bound-B5SKOkVM.js} +2 -2
- package/dist/{DateRangePicker.bound-D-GPENNe.d.ts → DateRangePicker.bound-vFyFw4wA.d.ts} +1 -1
- package/dist/{DateTimePicker-411pU7VF.js → DateTimePicker-8BVP2qeR.js} +17 -14
- package/dist/{DateTimePicker-wgV0SUeZ.d.ts → DateTimePicker-BTRIUagV.d.ts} +3 -3
- package/dist/{DateTimePicker.bound-BDyUzidV.js → DateTimePicker.bound-C3y8TqPk.js} +2 -2
- package/dist/{DateTimePicker.bound-cF2X_ncj.d.ts → DateTimePicker.bound-X4DTyQ1b.d.ts} +1 -1
- package/dist/{Dialog-DSl1Fkqi.js → Dialog-Bn43feu0.js} +9 -9
- package/dist/{Dialog-lFYX-7Ax.js → Dialog-C9H9_BmK.js} +35 -6
- package/dist/{Dialog-V-2cgGk1.d.ts → Dialog-CO9xljD3.d.ts} +1 -1
- package/dist/Disclosure-BRSkMbZQ.js +109 -0
- package/dist/{DropdownMenu-DH7E2aXb.js → DropdownMenu-DS0RaEfH.js} +11 -29
- package/dist/{DropdownMenu-Bl_C5W_E.d.ts → DropdownMenu-D_9z9ond.d.ts} +2 -2
- package/dist/{DropdownMenuDesktop-nMoCa6N5.js → DropdownMenuDesktop-DGPIfex-.js} +6 -27
- package/dist/{FileInput-Q72yXorH.d.ts → FileInput-BEaECoBS.d.ts} +7 -7
- package/dist/{FileInput-CqRrQRM-.js → FileInput-DNCKhAq-.js} +20 -19
- package/dist/{FileInput.bound-CG2G5E2K.d.ts → FileInput.bound-D2HuuqSb.d.ts} +1 -1
- package/dist/{FileInput.bound-BZ7-g-dq.js → FileInput.bound-DCSair97.js} +2 -2
- package/dist/{FileTrigger-DBX1Io6E.js → FileTrigger-DlryDp2T.js} +1 -30
- package/dist/{FileUpload-B4ibHWQn.d.ts → FileUpload-BUTSqHVk.d.ts} +1 -1
- package/dist/{FileUpload-CG60c6wM.js → FileUpload-CQFCrvCI.js} +53 -134
- package/dist/{FileUpload.bound-DQ6uuH2W.js → FileUpload.bound-BwetBdi7.js} +2 -2
- package/dist/{FileUpload.bound-C-Zy1n5Y.d.ts → FileUpload.bound-CGQXb4iT.d.ts} +2 -2
- package/dist/{FileUploadContainer-CtUhDntB.d.ts → FileUploadContainer-Dzg5aXXZ.d.ts} +1 -1
- package/dist/{FormField-BIRMlgu4.d.ts → FormField-DGyCDxOp.d.ts} +5 -2
- package/dist/{FormField-D7KKJ6kG.js → FormField-dduTMkNH.js} +58 -37
- package/dist/{FormFieldError-Bqjg9cMb.js → FormFieldError-DTT5TUQ1.js} +2 -2
- package/dist/FormFieldHeaderTooltip-Dt-g40Tc.js +17 -0
- package/dist/FormLayout-CBYgWvwW.d.ts +47 -0
- package/dist/{IconButton-BM2DUNtN.d.ts → IconButton-shH_9wcl.d.ts} +1 -1
- package/dist/{IconSlot-DSK7qNxc.js → IconSlot-CqNuZl0E.js} +4 -4
- package/dist/{iconSlot.cva-BA9NahZH.d.ts → IconSlot-DcEDPaNb.d.ts} +3 -11
- package/dist/{InlineTooltipWrapper-DBuQX2yo.js → InlineTooltipWrapper-CKTiFpZn.js} +3 -3
- package/dist/{Input-CG4Irgae.js → Input-BIuNQb5u.js} +29 -13
- package/dist/{Input-BX3sZBEp.d.ts → Input-CTp_9mS9.d.ts} +3 -3
- package/dist/{Input.bound-BE-espm0.d.ts → Input.bound-B9a62ylL.d.ts} +1 -1
- package/dist/{Input.bound-jZx8gJro.js → Input.bound-QpE3qJqT.js} +2 -2
- package/dist/{InputContent-DDFr0kml.d.ts → InputContent-BCNkN4Fx.d.ts} +4 -4
- package/dist/{InputContent-KhD4_YvO.js → InputContent-C5JlwN5b.js} +35 -22
- package/dist/{Link-Bw2m9W4B.d.ts → Link-PvYB_M-j.d.ts} +5 -3
- package/dist/{ListBox-CoUk0kkt.js → ListBox-DhR5kojP.js} +3 -3
- package/dist/{MenuItem-DPZzOqp2.d.ts → MenuItem-U3-pu1j5.d.ts} +1 -1
- package/dist/{Modal-B4p1zFqi.js → Modal-DcLWF9cB.js} +1 -1
- package/dist/{NumberField-CxwTlqud.js → NumberField-CpkLBjIM.js} +38 -14
- package/dist/{NumberField-qjvHhCfN.d.ts → NumberField-WXebfxjK.d.ts} +4 -4
- package/dist/{NumberField.bound-zySl-v_q.js → NumberField.bound-BbZLqewF.js} +2 -2
- package/dist/{NumberField.bound-DXPGF5YK.d.ts → NumberField.bound-Dy0A5iVc.d.ts} +1 -1
- package/dist/{NumberRangeInput-BrW03wC6.js → NumberRangeInput-47xOaSXq.js} +18 -17
- package/dist/{NumberRangeInput-CS4Kn427.d.ts → NumberRangeInput-BCKQaGpy.d.ts} +2 -2
- package/dist/{NumberRangeInput.bound-CKywKEKI.js → NumberRangeInput.bound-B21y7xkb.js} +2 -2
- package/dist/{NumberRangeInput.bound-C8I7m1cW.d.ts → NumberRangeInput.bound-BNXxIQ0b.d.ts} +1 -1
- package/dist/PageHeader-BwzxymWY.d.ts +58 -0
- package/dist/{Pagination-DkpAg2x6.d.ts → Pagination-BCGUVYOF.d.ts} +1 -1
- package/dist/{PaginationList-PjOxNQwB.js → PaginationList-BTmrmOGl.js} +75 -74
- package/dist/{PaginationList-DNmZRcS6.d.ts → PaginationList-CvlSkJGn.d.ts} +1 -1
- package/dist/{PasswordInput-BHPFkVbM.d.ts → PasswordInput-EhQjYyJS.d.ts} +1 -1
- package/dist/{PasswordInput.bound-DC57m4NT.d.ts → PasswordInput.bound-CK5GwKL4.d.ts} +1 -1
- package/dist/{PasswordInput.bound-CrXKvfil.js → PasswordInput.bound-DVkRv16z.js} +3 -3
- package/dist/{Popover-pjd0Hu61.d.ts → Popover-D_t1XDPA.d.ts} +2 -2
- package/dist/{Progress-1WGRZE8l.d.ts → Progress-Ckfpi_-M.d.ts} +4 -4
- package/dist/{Progress-De76pCfX.js → Progress-RiEGGxNG.js} +3 -3
- package/dist/{RadioGroup-DEwQ6B1F.d.ts → RadioGroup-6e-Z6jW8.d.ts} +3 -3
- package/dist/{RadioGroup-BPSvcre6.js → RadioGroup-IL4Y8XHO.js} +11 -9
- package/dist/{RadioGroup.bound-CN4K9dV2.js → RadioGroup.bound-BFWSq-on.js} +2 -2
- package/dist/{RadioGroup.bound-Dj6CEG6M.d.ts → RadioGroup.bound-w3SZqSkH.d.ts} +1 -1
- package/dist/RangeCalendar-CAWTz3pq.js +288 -0
- package/dist/{RichTextEditor-BYIQW8QA.js → RichTextEditor-16feWcDW.js} +32 -409
- package/dist/{RichTextEditor-hJtuB7Y6.d.ts → RichTextEditor-DHhuBeT6.d.ts} +1 -1
- package/dist/{Select-DHYddedn.d.ts → Select-C34ENdjq.d.ts} +5 -3
- package/dist/{Select-Br_3eecr.js → Select-CSdr0OcD.js} +217 -468
- package/dist/{Select.bound-CgLKMzLn.js → Select.bound-D-Wl7nLz.js} +2 -2
- package/dist/{Select.bound-CJ-tCsmX.d.ts → Select.bound-qOihchei.d.ts} +1 -1
- 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-CqB2TPTR.js → Slider-DCsCCPFx.js} +10 -11
- package/dist/{Slider-CcoNTFVN.d.ts → Slider-DRg8zKRM.d.ts} +1 -1
- package/dist/{Slider.bound-Bp7Zrs9_.js → Slider.bound-CByTXPTr.js} +2 -2
- package/dist/{Slider.bound-8B5qzQ-8.d.ts → Slider.bound-CaEF19um.d.ts} +1 -1
- package/dist/{Spinner-B-crRcdG.d.ts → Spinner-Cvy_6zgD.d.ts} +5 -5
- package/dist/{Spinner-BeVTUzzx.js → Spinner-DqjP06T1.js} +29 -41
- package/dist/{SplitButton-BzhbtpFA.d.ts → SplitButton-V1f2NWfh.d.ts} +3 -3
- package/dist/{Stepper-CMw6QnCu.js → Stepper-Dyhxp0Tl.js} +13 -12
- package/dist/{Stepper-LORgYAJr.d.ts → Stepper-k91x_m-E.d.ts} +18 -18
- package/dist/{Switch-R0kAicgM.js → Switch-BfpSMMpv.js} +6 -6
- package/dist/{Switch-CSitpm4o.d.ts → Switch-ELVPkPx0.d.ts} +1 -1
- package/dist/{Switch.bound-DVjqsum1.d.ts → Switch.bound-DeEdVvZV.d.ts} +1 -1
- package/dist/{Switch.bound-Dk-BmxJd.js → Switch.bound-Dv0cHsMM.js} +2 -2
- 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/{TextArea-DCnqXuHC.js → TextArea-ciY0kt-D.js} +8 -7
- package/dist/{TextArea-e8sQm205.d.ts → TextArea-iqUeB2QY.d.ts} +2 -2
- package/dist/{TextArea.bound-DEZuRYm_.d.ts → TextArea.bound-BJHyCogp.d.ts} +1 -1
- package/dist/{TextArea.bound-BJZ9m_FE.js → TextArea.bound-DQ_ULvue.js} +2 -2
- package/dist/{TextArea.cva-Bb73hriz.js → TextArea.cva-ENXI55ec.js} +1 -1
- package/dist/{TimePicker-BwF-Crbg.js → TimePicker-BKRPMduC.js} +20 -18
- package/dist/{TimePicker-Zi7B6VTr.d.ts → TimePicker-BZ1ocsBX.d.ts} +2 -2
- package/dist/{TimePicker.bound-Bxtb6uJL.d.ts → TimePicker.bound-8DmjMXuE.d.ts} +1 -1
- package/dist/{TimePicker.bound-B-BVLNbk.js → TimePicker.bound-PtJTz6s3.js} +2 -2
- package/dist/{datePickerValue.utils-OAQBDk1R.js → TimePickerForm-itDjoV7V.js} +12 -16
- package/dist/{Toast-Dl6KMa58.d.ts → Toast-D9pdadZ4.d.ts} +1 -1
- package/dist/{ToastContainer-BDvta6st.js → ToastContainer-Dd0LPykL.js} +5 -5
- package/dist/{ToggleButton-Cce9bnBw.d.ts → ToggleButton-HUZ8ij6i.d.ts} +1 -1
- package/dist/{ToggleButton-DUQ8nwKY.js → ToggleButton-P1z1pxzT.js} +2 -2
- package/dist/{ToggleGroup-s5sDSB6l.js → ToggleGroup-CrDoeLN0.js} +127 -114
- package/dist/{ToggleGroup-BJ8cqXaO.d.ts → ToggleGroup-DvjnSinl.d.ts} +5 -23
- package/dist/{ToggleGroup.bound-Cv09n91n.d.ts → ToggleGroup.bound-B03ISHQ8.d.ts} +1 -1
- package/dist/{ToggleGroup.bound-DEc7rdNF.js → ToggleGroup.bound-DCnYwmBt.js} +2 -2
- package/dist/{Tooltip-BiS7isYB.d.ts → Tooltip-B8DTURLQ.d.ts} +1 -1
- package/dist/{Tooltip-CMigoyri.js → Tooltip-DRB6lo0U.js} +8 -44
- package/dist/{TooltipWrapper-D7HUZLsP.js → TooltipWrapper-BvGO_LUx.js} +21 -10
- package/dist/{Typography-LU4z2pR1.js → Typography-DCLnPa3P.js} +2 -2
- package/dist/{Typography-D2FfZr7a.d.ts → Typography-DJojwiXV.d.ts} +2 -2
- package/dist/{accordion.cva-CeBWV9EO.js → accordion.cva-DwxY-k1e.js} +17 -25
- package/dist/{badgeButton.cva-B8EQLwPv.d.ts → badgeButton.cva-CBFIhr1S.d.ts} +8 -8
- package/dist/badgeButton.cva-t5PQOH4M.js +138 -0
- package/dist/{breadcrumbs.cva-DPwJJK_D.js → breadcrumbs.cva-CnBIZUB3.js} +9 -9
- package/dist/{button.cva-CBckM91c.d.ts → button.cva-C8LGtNJ3.d.ts} +21 -16
- package/dist/button.cva-Ciga0rdG.js +267 -0
- package/dist/{buttonContent.cva-DG-4lRz4.d.ts → buttonContent.cva-BapnODby.d.ts} +2 -2
- package/dist/{checkbox.cva-CJy87xUo.d.ts → checkbox.cva-CCh_UlrC.d.ts} +6 -6
- package/dist/{checkbox.cva-D-D9Qgaf.js → checkbox.cva-aLJS7v4z.js} +24 -33
- package/dist/components/accordion.js +1 -1
- package/dist/components/alert-dialog.d.ts +1 -1
- package/dist/components/alert-dialog.js +98 -103
- package/dist/components/alert.d.ts +1 -1
- package/dist/components/alert.js +11 -11
- package/dist/components/autocomplete.d.ts +1 -1
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/badge-button.d.ts +1 -1
- package/dist/components/badge-button.js +5 -5
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.js +9 -9
- package/dist/components/bottom-sheet-header.d.ts +1 -1
- package/dist/components/bottom-sheet-header.js +13 -12
- package/dist/components/bottom-sheet.d.ts +2 -2
- package/dist/components/bottom-sheet.js +3 -3
- package/dist/components/breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/button.d.ts +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/checkbox-group.d.ts +1 -1
- package/dist/components/checkbox-group.js +1 -1
- package/dist/components/checkbox.d.ts +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/date-picker.d.ts +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.d.ts +1 -1
- package/dist/components/date-range-picker.js +1 -1
- package/dist/components/date-time-picker.d.ts +1 -1
- package/dist/components/date-time-picker.js +1 -1
- package/dist/components/dialog.d.ts +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/drawer.js +4 -4
- package/dist/components/dropdown-menu.d.ts +2 -2
- package/dist/components/dropdown-menu.js +2 -2
- package/dist/components/file-input.d.ts +1 -1
- package/dist/components/file-input.js +1 -1
- package/dist/components/file-upload-container.d.ts +2 -2
- package/dist/components/file-upload-container.js +1 -1
- package/dist/components/file-upload.d.ts +2 -2
- package/dist/components/file-upload.js +1 -1
- package/dist/components/form-field.d.ts +1 -1
- package/dist/components/form-field.js +1 -1
- package/dist/components/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 +2 -2
- package/dist/components/icon-slot.d.ts +2 -1
- package/dist/components/icon-slot.js +1 -1
- package/dist/components/input-frame.d.ts +5 -4
- package/dist/components/input-frame.js +48 -33
- package/dist/components/input.d.ts +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/link.d.ts +1 -1
- package/dist/components/link.js +3 -3
- package/dist/components/number-field.d.ts +1 -1
- package/dist/components/number-field.js +1 -1
- package/dist/components/number-range-input.d.ts +1 -1
- 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 +8 -8
- package/dist/components/password-input.d.ts +1 -1
- package/dist/components/password-input.js +3 -3
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.js +4 -4
- package/dist/components/progress.d.ts +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/radio-group.d.ts +1 -1
- package/dist/components/radio-group.js +1 -1
- package/dist/components/select.d.ts +1 -1
- 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 +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/spinner.d.ts +1 -1
- package/dist/components/spinner.js +1 -1
- package/dist/components/split-button.d.ts +1 -1
- package/dist/components/split-button.js +3 -3
- package/dist/components/stepper.d.ts +1 -1
- package/dist/components/stepper.js +1 -1
- package/dist/components/style-definitions.d.ts +2 -2
- package/dist/components/style-definitions.js +31 -30
- package/dist/components/switch.d.ts +1 -1
- 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 +8 -8
- package/dist/components/text-area.d.ts +1 -1
- package/dist/components/text-area.js +1 -1
- package/dist/components/time-picker.d.ts +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/toast.d.ts +2 -2
- package/dist/components/toast.js +2 -2
- package/dist/components/toggle-button.d.ts +1 -1
- package/dist/components/toggle-button.js +1 -1
- package/dist/components/toggle-group.d.ts +1 -1
- 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 +2 -2
- 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-BSn1s-ip.js → confirmation.context-CByUxDcn.js} +2 -2
- package/dist/{confirmation.context-B2z9A1v3.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-sioU_5R7.js → dialog.cva-BIpz6HcA.js} +7 -7
- package/dist/{dist-CAFUM34b.js → dist-DEZzXa0W.js} +15 -14
- package/dist/dropdownMenu.cva-DwSOcbmR.js +31 -0
- package/dist/{fileUpload.cva-ujmStxB1.js → fileUpload.cva-BYzXGc9C.js} +11 -11
- package/dist/{fileUpload.types-BT8P1o7a.d.ts → fileUpload.types-C-ke21yY.d.ts} +2 -2
- package/dist/{form.binding-B-2id68q.js → form.binding-DOR5gIQf.js} +1 -1
- package/dist/{formFieldError.cva-CTl0VeyG.js → formFieldError.cva-BB6Ghqwq.js} +3 -3
- package/dist/formFieldHelper.cva-DRmSyRZN.js +14 -0
- package/dist/formLayout.context--CN08Mtb.js +14 -0
- package/dist/hooks/use-async-list.js +1 -1
- package/dist/hooks/use-filters.js +1 -1
- package/dist/hooks/use-local-storage.js +1 -1
- package/dist/{i18n-BjNKHh_D.js → i18n-D1FWVTPi.js} +4 -2
- package/dist/{i18n-2z5on9No.d.ts → i18n-DE45mOCM.d.ts} +6 -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 +78 -73
- package/dist/index.js +95 -91
- package/dist/{input.cva-L7jKDv6q.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/label.cva-DTfT6FrX.js +85 -0
- package/dist/{link.context-C4fE_aMo.d.ts → link.context-BCHn7NSy.d.ts} +1 -1
- package/dist/link.cva-C24YVAsJ.js +16 -0
- package/dist/outline.clsx-DGGQQRkM.js +6 -0
- package/dist/popover.cva-DAbfSma6.js +5 -0
- package/dist/{progress.cva-D7iiX6Lh.js → progress.cva-CsGaGVJ-.js} +7 -7
- package/dist/{radio.cva-DO3UEac-.d.ts → radio.cva-D7M1hqLe.d.ts} +9 -5
- package/dist/{radio.cva-Ctdop1xV.js → radio.cva-DistaZtZ.js} +33 -19
- package/dist/rich-text-editor.d.ts +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/{selectDesktop.cva-RzxvSBkd.js → selectDesktop.cva-DStkOdwm.js} +2 -2
- package/dist/selectItem.cva-B6vxey2R.js +27 -0
- package/dist/{staticDateTimeSegments-Bt5wCZvg.js → staticDateTimeSegments-bPuA-a2Y.js} +12 -12
- package/dist/{status.cva-BFGMKZO_.js → status.cva-CYgi3Htz.js} +21 -21
- package/dist/{stepper.cva-CpRi0fGb.js → stepper.cva-Cecphqeo.js} +23 -35
- package/dist/{style-definitions-_RXJdSk-.d.ts → style-definitions-Dx6aFDiR.d.ts} +159 -144
- 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 +2 -2
- package/dist/tanstack/autocomplete.js +1 -1
- package/dist/tanstack/checkbox-group.d.ts +2 -2
- package/dist/tanstack/checkbox-group.js +1 -1
- package/dist/tanstack/checkbox.d.ts +2 -2
- package/dist/tanstack/checkbox.js +1 -1
- package/dist/tanstack/date-picker.d.ts +2 -2
- package/dist/tanstack/date-picker.js +1 -1
- package/dist/tanstack/date-range-picker.d.ts +2 -2
- package/dist/tanstack/date-range-picker.js +1 -1
- package/dist/tanstack/date-time-picker.d.ts +2 -2
- package/dist/tanstack/date-time-picker.js +1 -1
- package/dist/tanstack/file-input.d.ts +2 -2
- package/dist/tanstack/file-input.js +1 -1
- package/dist/tanstack/file-upload.d.ts +3 -3
- package/dist/tanstack/file-upload.js +1 -1
- package/dist/tanstack/form.js +2 -2
- package/dist/tanstack/input.d.ts +2 -2
- package/dist/tanstack/input.js +1 -1
- package/dist/tanstack/number-field.d.ts +2 -2
- package/dist/tanstack/number-field.js +1 -1
- package/dist/tanstack/number-range-input.d.ts +2 -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 +2 -2
- package/dist/tanstack/radio-group.js +1 -1
- package/dist/tanstack/rich-text-editor.d.ts +1 -1
- package/dist/tanstack/rich-text-editor.js +2 -2
- package/dist/tanstack/select.d.ts +2 -2
- package/dist/tanstack/select.js +1 -1
- package/dist/tanstack/slider.d.ts +2 -2
- package/dist/tanstack/slider.js +1 -1
- package/dist/tanstack/switch.d.ts +2 -2
- package/dist/tanstack/switch.js +1 -1
- package/dist/tanstack/table.d.ts +3 -3
- package/dist/tanstack/table.js +1 -1
- package/dist/tanstack/text-area.d.ts +2 -2
- package/dist/tanstack/text-area.js +1 -1
- package/dist/tanstack/time-picker.d.ts +2 -2
- package/dist/tanstack/time-picker.js +1 -1
- package/dist/tanstack/toggle-group.d.ts +2 -2
- package/dist/tanstack/toggle-group.js +1 -1
- package/dist/{tanstack-CmbhAoHU.js → tanstack-Bgdv0qU1.js} +2 -1
- package/dist/{tanstack-DQu9PNjn.d.ts → tanstack-zusJduSB.d.ts} +195 -96
- package/dist/tanstack.d.ts +78 -73
- package/dist/tanstack.js +95 -91
- package/dist/{theme.context-B3wQDJ-i.js → theme.context--VEyStJB.js} +2 -2
- package/dist/{toast.cva-L0k_TBiW.d.ts → toast.cva-AmLw6Cf5.d.ts} +10 -10
- package/dist/{toast.cva-aC4NMpLb.js → toast.cva-B6NXTwbZ.js} +22 -38
- package/dist/{toast.runtime-DKOeUnk6.js → toast.runtime-Drd2IJ_j.js} +1 -1
- package/dist/toggleGroup.cva-CJ-3Ps7j.js +35 -0
- package/dist/toggleGroup.cva-DA4U21gn.d.ts +26 -0
- package/dist/{tooltip.cva-ClcaR72U.js → tooltip.cva-BEyxvcG2.js} +11 -11
- package/dist/{tooltipWrapper.cva-BBQ4ic3D.js → tooltipWrapper.cva-t4NQ9zz9.js} +1 -1
- package/dist/typography.cva-BCHlTHdM.d.ts +36 -0
- package/dist/typography.cva-CHsHX_Wp.js +31 -0
- package/dist/{uiConfig.context-CT9EVqC5.js → uiConfig.context-3DN9w6oU.js} +19 -114
- package/dist/{uiConfig.context-CQU9Tzq_.d.ts → uiConfig.context-BnCORTNm.d.ts} +22 -9
- package/dist/{uiOverrides.context-Dmev7iRS.d.ts → uiOverrides.context-DHHzLSnq.d.ts} +23 -0
- package/dist/{useBreakpoint-BzYqQEBO.js → useBreakpoint-CJ3mx7UF.js} +6 -6
- package/dist/{useFilters-HIngImwn.js → useFilters-DMi94RZK.js} +2 -2
- package/dist/{useFormAutosave-XEQqk1lK.js → useFormAutosave-BPGlChiY.js} +1 -1
- package/dist/useScrollableListBox-oYKqU3Hp.js +47 -0
- package/dist/{useStaticInputHandoff-DyYxfwv6.js → useStaticInputHandoff-BN0fOerH.js} +9 -10
- package/dist/useTableColumnConfig-D5NxR1Co.js +2060 -0
- package/dist/{useTableNav-rU9WmCj6.d.ts → useTableNav-H5DrogZU.d.ts} +29 -44
- package/dist/{useToast-DfQif03I.d.ts → useToast-DsA8CVoY.d.ts} +1 -1
- package/package.json +22 -5
- package/dist/CheckboxCheckmark-BzT6MwH5.js +0 -47
- package/dist/FormFieldHeaderTooltip-k8Snf_oM.js +0 -47
- package/dist/SelectionIndicator-B7C5Y0JM.js +0 -5
- package/dist/SharedElementTransition-DJ9CCbEa.js +0 -12
- package/dist/Tag-CoqCTZRm.d.ts +0 -44
- package/dist/badgeButton.cva-BPyVejxO.js +0 -300
- package/dist/button.cva-vO0fPUTn.js +0 -423
- package/dist/check-DYMBkp_Z.js +0 -20
- package/dist/chevron-down-B4Pr8bD3.js +0 -20
- package/dist/chevron-right-3nKJR5Bb.js +0 -20
- package/dist/chevrons-right-DJPPn2fD.js +0 -44
- package/dist/createLucideIcon-LcezOE4z.js +0 -240
- package/dist/dropdownMenu.cva-Bi3a21lO.js +0 -34
- package/dist/eye-BA4nRlMX.js +0 -57
- package/dist/formFieldHelper.cva-CxAmrG2H.js +0 -97
- package/dist/input.cva-w7ZEVQAM.js +0 -227
- package/dist/link.cva-D3XRgcAv.js +0 -12
- package/dist/outline.clsx-50W_vNDl.js +0 -6
- package/dist/popover.cva-Bhud1wnp.js +0 -5
- package/dist/selectItem.cva-BWfEkNs_.js +0 -36
- package/dist/styles/color-utilities.css +0 -20
- package/dist/switch.cva-BsJ4iAFl.js +0 -27
- package/dist/switch.cva-psw67dK9.d.ts +0 -16
- package/dist/table.cva-CmfeWLyW.d.ts +0 -84
- package/dist/table.cva-DFQM8VbM.js +0 -111
- package/dist/tag.cva-BCCH7ku3.js +0 -55
- package/dist/toggleGroup.cva-CEhjMT4j.js +0 -35
- package/dist/typography.cva-GpC6QQNx.d.ts +0 -36
- package/dist/typography.cva-iD15k56p.js +0 -51
- package/dist/useTableColumnConfig-CUINwVTR.js +0 -1348
- package/dist/x-B6vfz8Ps.js +0 -23
- package/dist/{dom.utils-BbfrA6RP.js → dom.utils-BPooTXtC.js} +1 -1
- 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/{useAsyncList-yHz7twsj.js → useAsyncList-Ct74ve3i.js} +1 -1
- package/dist/{useForm-eW4KpH1u.js → useForm-Cb7KWLds.js} +1 -1
- package/dist/{useIntersectionObserver-DYfHnGGU.js → useIntersectionObserver-DFAhTsV0.js} +1 -1
- package/dist/{useLocalStorage-PlcaJ1tP.js → useLocalStorage-CctQvyqD.js} +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as SelectInner } from "./Select-Br_3eecr.js";
|
|
2
1
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js";
|
|
3
|
-
import { t as FieldController } from "./form.binding-
|
|
2
|
+
import { t as FieldController } from "./form.binding-DOR5gIQf.js";
|
|
3
|
+
import { n as SelectInner } from "./Select-CSdr0OcD.js";
|
|
4
4
|
import { memo } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/inputs/Selection/Select/Select.bound.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { s as OmitDiscriminatedUnion } from "./common-UBFya8WY.js";
|
|
2
|
-
import { a as SelectProps$1, c as MultiSelectProps, f as SingleSelectProps, n as SelectDataProps, o as DefaultInitialSelectItem, s as GroupedSelectProps } from "./Select-
|
|
2
|
+
import { a as SelectProps$1, c as MultiSelectProps, f as SingleSelectProps, n as SelectDataProps, o as DefaultInitialSelectItem, s as GroupedSelectProps } from "./Select-C34ENdjq.js";
|
|
3
3
|
import { n as FieldValues, t as FormControlProps } from "./form.types-C8P4sznq.js";
|
|
4
4
|
import { ReactElement } from "react";
|
|
5
5
|
import { Key } from "react-aria-components";
|
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
|
+
import { t as UIOverrides } from "./uiOverrides.context-DNEQlTx0.js";
|
|
3
|
+
import { m as $263ab7fc0f95ccdb$export$4feb769f8ddf26c5, p as $263ab7fc0f95ccdb$export$2dbbd341daed716d } from "./Dialog-C9H9_BmK.js";
|
|
4
|
+
import { i as $928221da08ecbc62$export$a11e76429ed99b4, t as $928221da08ecbc62$export$41f133550aa26f48 } from "./ListBox-DhR5kojP.js";
|
|
5
|
+
import { n as $a3be900807531178$re_export$ListLayout, r as $a3be900807531178$re_export$Rect } from "./exports-BNrTn8Tj.js";
|
|
6
|
+
import { t as Spinner } from "./Spinner-DqjP06T1.js";
|
|
7
|
+
import { t as CheckboxCheckmark } from "./CheckboxCheckmark-DWsYVZuu.js";
|
|
8
|
+
import "./i18n-D1FWVTPi.js";
|
|
9
|
+
import { t as selectListBoxItemDefinition } from "./selectItem.cva-B6vxey2R.js";
|
|
10
|
+
import { c as LoadingItemId, o as SelectContext } from "./Select-CSdr0OcD.js";
|
|
11
|
+
import { t as useIntersectionObserver } from "./useIntersectionObserver-DFAhTsV0.js";
|
|
12
|
+
import { Check } from "lucide-react";
|
|
13
|
+
import $ahdqC$react, { createContext, useCallback, useContext, useLayoutEffect, useMemo, useRef } from "react";
|
|
14
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
+
import { useVirtualizerState } from "react-stately/useVirtualizerState";
|
|
16
|
+
import { useScrollView } from "react-aria/private/virtualizer/ScrollView";
|
|
17
|
+
import { VirtualizerItem } from "react-aria/private/virtualizer/VirtualizerItem";
|
|
18
|
+
import { useTranslation } from "react-i18next";
|
|
19
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/Virtualizer.mjs
|
|
20
|
+
const $143fb904d86051ce$var$VirtualizerContext = /*#__PURE__*/ createContext(null);
|
|
21
|
+
const $143fb904d86051ce$var$VirtualizerOptionsContext = /*#__PURE__*/ createContext(null);
|
|
22
|
+
function $143fb904d86051ce$export$89be5a243e59c4b2(props) {
|
|
23
|
+
let { children, layout: layoutProp, layoutOptions, shouldObserveItemSize } = props;
|
|
24
|
+
let layout = useMemo(() => typeof layoutProp === "function" ? new layoutProp() : layoutProp, [layoutProp]);
|
|
25
|
+
let renderer = useMemo(() => ({
|
|
26
|
+
isVirtualized: true,
|
|
27
|
+
layoutDelegate: layout,
|
|
28
|
+
dropTargetDelegate: layout.getDropTargetFromPoint ? layout : void 0,
|
|
29
|
+
CollectionRoot: $143fb904d86051ce$var$CollectionRoot,
|
|
30
|
+
CollectionBranch: $143fb904d86051ce$var$CollectionBranch
|
|
31
|
+
}), [layout]);
|
|
32
|
+
return /*#__PURE__*/ $ahdqC$react.createElement($263ab7fc0f95ccdb$export$4feb769f8ddf26c5.Provider, { value: renderer }, /*#__PURE__*/ $ahdqC$react.createElement($143fb904d86051ce$var$VirtualizerOptionsContext.Provider, { value: {
|
|
33
|
+
layout,
|
|
34
|
+
layoutOptions,
|
|
35
|
+
shouldObserveItemSize
|
|
36
|
+
} }, children));
|
|
37
|
+
}
|
|
38
|
+
function $143fb904d86051ce$var$CollectionRoot({ collection, persistedKeys, scrollRef, renderDropIndicator }) {
|
|
39
|
+
let { layout, layoutOptions, shouldObserveItemSize } = useContext($143fb904d86051ce$var$VirtualizerOptionsContext);
|
|
40
|
+
let layoutOptions2 = layout.useLayoutOptions?.();
|
|
41
|
+
let state = useVirtualizerState({
|
|
42
|
+
allowsWindowScrolling: true,
|
|
43
|
+
layout,
|
|
44
|
+
collection,
|
|
45
|
+
renderView: (type, item) => {
|
|
46
|
+
return item?.render?.(item);
|
|
47
|
+
},
|
|
48
|
+
onVisibleRectChange(rect) {
|
|
49
|
+
let element = scrollRef?.current;
|
|
50
|
+
if (element) {
|
|
51
|
+
element.scrollLeft = rect.x;
|
|
52
|
+
element.scrollTop = rect.y;
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
persistedKeys,
|
|
56
|
+
layoutOptions: useMemo(() => layoutOptions && layoutOptions2 ? {
|
|
57
|
+
...layoutOptions,
|
|
58
|
+
...layoutOptions2
|
|
59
|
+
} : layoutOptions || layoutOptions2, [layoutOptions, layoutOptions2])
|
|
60
|
+
});
|
|
61
|
+
let { contentProps } = useScrollView({
|
|
62
|
+
onVisibleRectChange: state.setVisibleRect,
|
|
63
|
+
onSizeChange: state.setSize,
|
|
64
|
+
contentSize: state.contentSize,
|
|
65
|
+
onScrollStart: state.startScrolling,
|
|
66
|
+
onScrollEnd: state.endScrolling,
|
|
67
|
+
allowsWindowScrolling: true
|
|
68
|
+
}, scrollRef);
|
|
69
|
+
return /*#__PURE__*/ $ahdqC$react.createElement("div", contentProps, /*#__PURE__*/ $ahdqC$react.createElement($143fb904d86051ce$var$VirtualizerContext.Provider, { value: state }, $143fb904d86051ce$var$renderChildren(null, state.visibleViews, renderDropIndicator, shouldObserveItemSize)));
|
|
70
|
+
}
|
|
71
|
+
function $143fb904d86051ce$var$CollectionBranch({ parent, renderDropIndicator }) {
|
|
72
|
+
let parentView = useContext($143fb904d86051ce$var$VirtualizerContext).virtualizer.getVisibleView(parent.key);
|
|
73
|
+
let { shouldObserveItemSize } = useContext($143fb904d86051ce$var$VirtualizerOptionsContext);
|
|
74
|
+
return $143fb904d86051ce$var$renderChildren(parentView, Array.from(parentView.children), renderDropIndicator, shouldObserveItemSize);
|
|
75
|
+
}
|
|
76
|
+
function $143fb904d86051ce$var$renderChildren(parent, children, renderDropIndicator, shouldObserveItemSize) {
|
|
77
|
+
return children.map((view) => $143fb904d86051ce$var$renderWrapper(parent, view, renderDropIndicator, shouldObserveItemSize));
|
|
78
|
+
}
|
|
79
|
+
function $143fb904d86051ce$var$renderWrapper(parent, reusableView, renderDropIndicator, shouldObserveItemSize) {
|
|
80
|
+
let rendered = /*#__PURE__*/ $ahdqC$react.createElement(VirtualizerItem, {
|
|
81
|
+
key: reusableView.key,
|
|
82
|
+
layoutInfo: reusableView.layoutInfo,
|
|
83
|
+
virtualizer: reusableView.virtualizer,
|
|
84
|
+
parent: parent?.layoutInfo,
|
|
85
|
+
shouldObserveItemSize
|
|
86
|
+
}, reusableView.rendered);
|
|
87
|
+
let { collection, layout } = reusableView.virtualizer;
|
|
88
|
+
let node = reusableView.content;
|
|
89
|
+
if (node?.type === "item" && renderDropIndicator && layout.getDropTargetLayoutInfo) rendered = /*#__PURE__*/ $ahdqC$react.createElement($ahdqC$react.Fragment, { key: reusableView.key }, $143fb904d86051ce$var$renderDropIndicatorWrapper(parent, reusableView, {
|
|
90
|
+
type: "item",
|
|
91
|
+
key: reusableView.content.key,
|
|
92
|
+
dropPosition: "before"
|
|
93
|
+
}, renderDropIndicator), rendered, $263ab7fc0f95ccdb$export$2dbbd341daed716d(collection, node, (target) => $143fb904d86051ce$var$renderDropIndicatorWrapper(parent, reusableView, target, renderDropIndicator)));
|
|
94
|
+
return rendered;
|
|
95
|
+
}
|
|
96
|
+
function $143fb904d86051ce$var$renderDropIndicatorWrapper(parent, reusableView, target, renderDropIndicator) {
|
|
97
|
+
let indicator = renderDropIndicator(target);
|
|
98
|
+
if (indicator) {
|
|
99
|
+
let layoutInfo = reusableView.virtualizer.layout.getDropTargetLayoutInfo(target);
|
|
100
|
+
indicator = /*#__PURE__*/ $ahdqC$react.createElement(VirtualizerItem, {
|
|
101
|
+
layoutInfo,
|
|
102
|
+
virtualizer: reusableView.virtualizer,
|
|
103
|
+
parent: parent?.layoutInfo
|
|
104
|
+
}, indicator);
|
|
105
|
+
}
|
|
106
|
+
return indicator;
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/components/inputs/Selection/shared/SelectListBoxItem.tsx
|
|
110
|
+
const SelectListBoxItem = ({ isSearchable, isNewItem, newItemRender, id, label, content, isDisabled }) => {
|
|
111
|
+
const selectListItemCva = UIOverrides.useCva("select.listBoxItemCva", selectListBoxItemDefinition);
|
|
112
|
+
const ref = useRef(null);
|
|
113
|
+
const { t } = useTranslation("ui");
|
|
114
|
+
const { selectedIds, isMultiple } = SelectContext.useSelection();
|
|
115
|
+
const itemContent = useMemo(() => {
|
|
116
|
+
if (isNewItem) return newItemRender?.(label) ?? `${t(($) => $.ui.autocomplete.createNewBtn)} '${label}'`;
|
|
117
|
+
return content ?? label;
|
|
118
|
+
}, [
|
|
119
|
+
isNewItem,
|
|
120
|
+
newItemRender,
|
|
121
|
+
label,
|
|
122
|
+
content,
|
|
123
|
+
t
|
|
124
|
+
]);
|
|
125
|
+
return /* @__PURE__ */ jsxs($928221da08ecbc62$export$a11e76429ed99b4, {
|
|
126
|
+
ref,
|
|
127
|
+
id,
|
|
128
|
+
textValue: label,
|
|
129
|
+
isDisabled,
|
|
130
|
+
className: selectListItemCva({
|
|
131
|
+
isSingle: !isMultiple,
|
|
132
|
+
isNewItem
|
|
133
|
+
}),
|
|
134
|
+
children: [
|
|
135
|
+
isMultiple && !isSearchable && /* @__PURE__ */ jsx(CheckboxCheckmark, {
|
|
136
|
+
variant: "default",
|
|
137
|
+
className: "group-focus-visible:outline-none!"
|
|
138
|
+
}),
|
|
139
|
+
isMultiple && isSearchable && /* @__PURE__ */ jsx("div", {
|
|
140
|
+
className: "group",
|
|
141
|
+
"data-rac": "",
|
|
142
|
+
"data-selected": selectedIds.includes(id) || void 0,
|
|
143
|
+
children: /* @__PURE__ */ jsx(CheckboxCheckmark, {
|
|
144
|
+
variant: "default",
|
|
145
|
+
className: "group-focus-visible:outline-none!"
|
|
146
|
+
})
|
|
147
|
+
}),
|
|
148
|
+
itemContent,
|
|
149
|
+
!isMultiple && /* @__PURE__ */ jsx("span", {
|
|
150
|
+
"aria-hidden": true,
|
|
151
|
+
className: "pointer-events-none absolute right-2 flex size-3.5 items-center justify-center opacity-0 group-selected:opacity-100",
|
|
152
|
+
children: /* @__PURE__ */ jsx(Check, { className: "size-4" })
|
|
153
|
+
})
|
|
154
|
+
]
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
//#endregion
|
|
158
|
+
//#region src/components/inputs/Selection/shared/SelectListBoxItemSelectAll.tsx
|
|
159
|
+
const SelectListBoxItemSelectAll = ({ id, label, isDisabled }) => {
|
|
160
|
+
const selectListItemCva = UIOverrides.useCva("select.listBoxItemCva", selectListBoxItemDefinition);
|
|
161
|
+
const ref = useRef(null);
|
|
162
|
+
const { t } = useTranslation("ui");
|
|
163
|
+
const { selectableListItems, selectedIds } = SelectContext.useSelect();
|
|
164
|
+
return /* @__PURE__ */ jsxs($928221da08ecbc62$export$a11e76429ed99b4, {
|
|
165
|
+
ref,
|
|
166
|
+
id,
|
|
167
|
+
textValue: label || t(($) => $.ui.select.allOption),
|
|
168
|
+
isDisabled,
|
|
169
|
+
className: selectListItemCva({}),
|
|
170
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
171
|
+
className: "group",
|
|
172
|
+
"data-rac": "",
|
|
173
|
+
"data-selected": selectedIds.length === selectableListItems.length || void 0,
|
|
174
|
+
"data-indeterminate": selectedIds.length > 0 && selectedIds.length < selectableListItems.length || void 0,
|
|
175
|
+
children: /* @__PURE__ */ jsx(CheckboxCheckmark, {
|
|
176
|
+
variant: "default",
|
|
177
|
+
className: "group-focus-visible:outline-none!"
|
|
178
|
+
})
|
|
179
|
+
}), t(($) => $.ui.select.allOption)]
|
|
180
|
+
});
|
|
181
|
+
};
|
|
182
|
+
//#endregion
|
|
183
|
+
//#region src/components/inputs/Selection/shared/SelectListBoxLoadingItem.tsx
|
|
184
|
+
const SelectListBoxLoadingItem = ({ id, label, onLoadMore }) => {
|
|
185
|
+
const selectListItemCva = UIOverrides.useCva("select.listBoxItemCva", selectListBoxItemDefinition);
|
|
186
|
+
const { t } = useTranslation("ui");
|
|
187
|
+
const { isDebouncing, isLoading, hasLoadMore } = SelectContext.useSelect();
|
|
188
|
+
const onIntersection = useCallback(() => {
|
|
189
|
+
if (!isDebouncing && !isLoading && hasLoadMore) onLoadMore?.();
|
|
190
|
+
}, [
|
|
191
|
+
isDebouncing,
|
|
192
|
+
isLoading,
|
|
193
|
+
hasLoadMore,
|
|
194
|
+
onLoadMore
|
|
195
|
+
]);
|
|
196
|
+
const { ref } = useIntersectionObserver({
|
|
197
|
+
onIntersection,
|
|
198
|
+
rootMargin: "40px"
|
|
199
|
+
});
|
|
200
|
+
return /* @__PURE__ */ jsx($928221da08ecbc62$export$a11e76429ed99b4, {
|
|
201
|
+
id,
|
|
202
|
+
textValue: label || t(($) => $.ui.loadingState.text),
|
|
203
|
+
isDisabled: true,
|
|
204
|
+
className: selectListItemCva({}),
|
|
205
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
206
|
+
ref,
|
|
207
|
+
className: "flex flex-1 justify-center text-muted-foreground",
|
|
208
|
+
children: /* @__PURE__ */ jsx(Spinner, {})
|
|
209
|
+
})
|
|
210
|
+
});
|
|
211
|
+
};
|
|
212
|
+
//#endregion
|
|
213
|
+
//#region src/components/inputs/Selection/shared/SelectListBox.tsx
|
|
214
|
+
var ReversedListLayout = class extends $a3be900807531178$re_export$ListLayout {
|
|
215
|
+
reverseLayoutInfo(layoutInfo) {
|
|
216
|
+
const reversedLayoutInfo = layoutInfo.copy();
|
|
217
|
+
reversedLayoutInfo.rect.y = this.getContentSize().height - reversedLayoutInfo.rect.maxY;
|
|
218
|
+
return reversedLayoutInfo;
|
|
219
|
+
}
|
|
220
|
+
getLayoutInfo(key) {
|
|
221
|
+
const layoutInfo = super.getLayoutInfo(key);
|
|
222
|
+
return layoutInfo ? this.reverseLayoutInfo(layoutInfo) : null;
|
|
223
|
+
}
|
|
224
|
+
getVisibleLayoutInfos(rect) {
|
|
225
|
+
const mirroredRect = new $a3be900807531178$re_export$Rect(rect.x, Math.max(0, this.getContentSize().height - rect.maxY), rect.width, rect.height);
|
|
226
|
+
return super.getVisibleLayoutInfos(mirroredRect).map((layoutInfo) => this.reverseLayoutInfo(layoutInfo));
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
const SelectListBox = ({ label, selectionMode, isSearchable, isScrollable = true, isReversed = false, virtualizerOptions, totalItems, newItemRender, onLoadMore, className, onClose, ...props }) => {
|
|
230
|
+
const { fieldState, onChange, listItems, selectableListItems, selectedIds, isMultiple, onClear, onSelectAll, hasLoadMore, isLoading } = SelectContext.useSelect();
|
|
231
|
+
const listBoxRef = useRef(null);
|
|
232
|
+
const hasRequestedAtTopRef = useRef(false);
|
|
233
|
+
const isReverseScrollAnchoredRef = useRef(!isReversed);
|
|
234
|
+
const reverseScrollBottomOffsetRef = useRef(0);
|
|
235
|
+
const previousLoadedItemIdsRef = useRef([]);
|
|
236
|
+
const loadMoreStateRef = useRef(null);
|
|
237
|
+
useLayoutEffect(() => {
|
|
238
|
+
loadMoreStateRef.current = {
|
|
239
|
+
isLoading,
|
|
240
|
+
hasLoadMore,
|
|
241
|
+
isReversed,
|
|
242
|
+
onLoadMore
|
|
243
|
+
};
|
|
244
|
+
return () => {
|
|
245
|
+
loadMoreStateRef.current = null;
|
|
246
|
+
};
|
|
247
|
+
}, [
|
|
248
|
+
isLoading,
|
|
249
|
+
hasLoadMore,
|
|
250
|
+
isReversed,
|
|
251
|
+
onLoadMore
|
|
252
|
+
]);
|
|
253
|
+
const shouldVirtualize = !!virtualizerOptions || (totalItems ?? listItems.length) > 100 || hasLoadMore;
|
|
254
|
+
const usesReversedLayout = isReversed && isSearchable && shouldVirtualize;
|
|
255
|
+
const displayedListItems = isReversed && !usesReversedLayout ? listItems.toReversed() : listItems;
|
|
256
|
+
const loadedItemIds = useMemo(() => listItems.filter((item) => item.id !== LoadingItemId).map((item) => item.id), [listItems]);
|
|
257
|
+
const loadMoreResetKey = loadedItemIds.join("\0");
|
|
258
|
+
useLayoutEffect(() => {
|
|
259
|
+
hasRequestedAtTopRef.current = false;
|
|
260
|
+
}, [loadMoreResetKey]);
|
|
261
|
+
useLayoutEffect(() => {
|
|
262
|
+
const previousLoadedItemIds = previousLoadedItemIdsRef.current;
|
|
263
|
+
const preservesExistingItems = previousLoadedItemIds.length > 0 && previousLoadedItemIds.every((itemId, index) => loadedItemIds[index] === itemId);
|
|
264
|
+
previousLoadedItemIdsRef.current = loadedItemIds;
|
|
265
|
+
if (!preservesExistingItems) reverseScrollBottomOffsetRef.current = 0;
|
|
266
|
+
const listBox = listBoxRef.current;
|
|
267
|
+
if (!listBox) {
|
|
268
|
+
isReverseScrollAnchoredRef.current = true;
|
|
269
|
+
return;
|
|
270
|
+
}
|
|
271
|
+
if (!isReversed) {
|
|
272
|
+
listBox.scrollTop = 0;
|
|
273
|
+
isReverseScrollAnchoredRef.current = true;
|
|
274
|
+
return;
|
|
275
|
+
}
|
|
276
|
+
isReverseScrollAnchoredRef.current = false;
|
|
277
|
+
const finishAnchoring = () => {
|
|
278
|
+
if (listBox.scrollHeight <= listBox.clientHeight) return false;
|
|
279
|
+
listBox.scrollTop = listBox.scrollHeight - listBox.clientHeight - reverseScrollBottomOffsetRef.current;
|
|
280
|
+
isReverseScrollAnchoredRef.current = true;
|
|
281
|
+
return true;
|
|
282
|
+
};
|
|
283
|
+
let scrollFrame = requestAnimationFrame(() => {
|
|
284
|
+
scrollFrame = requestAnimationFrame(() => {
|
|
285
|
+
if (!finishAnchoring()) isReverseScrollAnchoredRef.current = true;
|
|
286
|
+
});
|
|
287
|
+
});
|
|
288
|
+
return () => {
|
|
289
|
+
cancelAnimationFrame(scrollFrame);
|
|
290
|
+
reverseScrollBottomOffsetRef.current = listBox.scrollHeight - listBox.clientHeight - listBox.scrollTop;
|
|
291
|
+
};
|
|
292
|
+
}, [
|
|
293
|
+
isReversed,
|
|
294
|
+
loadMoreResetKey,
|
|
295
|
+
loadedItemIds
|
|
296
|
+
]);
|
|
297
|
+
const onSelectionChange = (value) => {
|
|
298
|
+
const ids = Array.from(value);
|
|
299
|
+
if (!isMultiple && ids.length === 0) {
|
|
300
|
+
if (fieldState.value) {
|
|
301
|
+
onClose?.();
|
|
302
|
+
onChange(fieldState.value);
|
|
303
|
+
}
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
306
|
+
if (isMultiple && ids.includes("all-item-id")) {
|
|
307
|
+
if (ids.length > selectableListItems.length) onClear();
|
|
308
|
+
else onSelectAll();
|
|
309
|
+
return;
|
|
310
|
+
}
|
|
311
|
+
if (isMultiple) onChange(ids);
|
|
312
|
+
else {
|
|
313
|
+
onClose?.();
|
|
314
|
+
onChange(ids[0]);
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
const requestLoadMore = useCallback(() => {
|
|
318
|
+
const current = loadMoreStateRef.current;
|
|
319
|
+
if (!current || current.isLoading || !current.hasLoadMore) return;
|
|
320
|
+
if (current.isReversed && (!isReverseScrollAnchoredRef.current || (listBoxRef.current?.scrollTop ?? 0) > 1 || hasRequestedAtTopRef.current)) return;
|
|
321
|
+
if (current.isReversed) hasRequestedAtTopRef.current = true;
|
|
322
|
+
current.onLoadMore?.();
|
|
323
|
+
}, []);
|
|
324
|
+
const onScroll = (event) => {
|
|
325
|
+
if (!isReversed || !hasLoadMore || !isReverseScrollAnchoredRef.current) return;
|
|
326
|
+
if (event.currentTarget.scrollTop > 48) hasRequestedAtTopRef.current = false;
|
|
327
|
+
else requestLoadMore();
|
|
328
|
+
};
|
|
329
|
+
const renderItem = useCallback((item) => {
|
|
330
|
+
if (item.isSelectAllItem) return /* @__PURE__ */ jsx(SelectListBoxItemSelectAll, { ...item }, item.id);
|
|
331
|
+
if (item.isLoadingItem) return /* @__PURE__ */ jsx(SelectListBoxLoadingItem, {
|
|
332
|
+
...item,
|
|
333
|
+
onLoadMore: requestLoadMore
|
|
334
|
+
}, item.id);
|
|
335
|
+
return /* @__PURE__ */ jsx(SelectListBoxItem, {
|
|
336
|
+
...item,
|
|
337
|
+
isSearchable,
|
|
338
|
+
isNewItem: item.isNewItem,
|
|
339
|
+
newItemRender
|
|
340
|
+
}, item.id);
|
|
341
|
+
}, [
|
|
342
|
+
isSearchable,
|
|
343
|
+
newItemRender,
|
|
344
|
+
requestLoadMore
|
|
345
|
+
]);
|
|
346
|
+
if (shouldVirtualize) return /* @__PURE__ */ jsx($143fb904d86051ce$export$89be5a243e59c4b2, {
|
|
347
|
+
layout: usesReversedLayout ? ReversedListLayout : $a3be900807531178$re_export$ListLayout,
|
|
348
|
+
layoutOptions: virtualizerOptions,
|
|
349
|
+
children: /* @__PURE__ */ jsx($928221da08ecbc62$export$41f133550aa26f48, {
|
|
350
|
+
ref: listBoxRef,
|
|
351
|
+
...props,
|
|
352
|
+
"aria-label": label,
|
|
353
|
+
selectionMode,
|
|
354
|
+
className: clsx("flex-1 p-1 outline-none", isScrollable ? "max-h-full overflow-y-auto overflow-x-hidden" : "overflow-hidden", className),
|
|
355
|
+
dependencies: [
|
|
356
|
+
isSearchable,
|
|
357
|
+
newItemRender,
|
|
358
|
+
requestLoadMore
|
|
359
|
+
],
|
|
360
|
+
items: displayedListItems,
|
|
361
|
+
selectedKeys: selectedIds,
|
|
362
|
+
onSelectionChange,
|
|
363
|
+
onScroll,
|
|
364
|
+
escapeKeyBehavior: "none",
|
|
365
|
+
shouldSelectOnPressUp: true,
|
|
366
|
+
children: renderItem
|
|
367
|
+
})
|
|
368
|
+
});
|
|
369
|
+
return /* @__PURE__ */ jsx($928221da08ecbc62$export$41f133550aa26f48, {
|
|
370
|
+
ref: listBoxRef,
|
|
371
|
+
...props,
|
|
372
|
+
"aria-label": label,
|
|
373
|
+
selectionMode,
|
|
374
|
+
className: clsx("flex-1 p-1 outline-none", isScrollable ? "max-h-full overflow-y-auto overflow-x-hidden" : "overflow-hidden", className),
|
|
375
|
+
dependencies: [
|
|
376
|
+
isSearchable,
|
|
377
|
+
newItemRender,
|
|
378
|
+
requestLoadMore
|
|
379
|
+
],
|
|
380
|
+
items: displayedListItems,
|
|
381
|
+
selectedKeys: selectedIds,
|
|
382
|
+
onSelectionChange,
|
|
383
|
+
onScroll,
|
|
384
|
+
escapeKeyBehavior: "none",
|
|
385
|
+
shouldSelectOnPressUp: true,
|
|
386
|
+
children: renderItem
|
|
387
|
+
});
|
|
388
|
+
};
|
|
389
|
+
//#endregion
|
|
390
|
+
export { SelectListBox };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { n as $7230ffa83bc0c2cf$export$29f1550f4b0d4415 } from "./utils-BkLF-JA3.js";
|
|
2
|
+
import { n as $792f28e438b9ad5f$export$c34620ff8881d89f } from "./SharedElementTransition-CZ2bE7yo.js";
|
|
3
|
+
import $ahdqC$react, { createContext, forwardRef } from "react";
|
|
4
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/SelectionIndicator.mjs
|
|
5
|
+
const $91fe5e721c7f36c1$export$c9549807523555e0 = /*#__PURE__*/ createContext({ isSelected: false });
|
|
6
|
+
const $91fe5e721c7f36c1$export$17f80983afe4e444 = /*#__PURE__*/ forwardRef(function SelectionIndicator(props, ref) {
|
|
7
|
+
[props, ref] = $7230ffa83bc0c2cf$export$29f1550f4b0d4415(props, ref, $91fe5e721c7f36c1$export$c9549807523555e0);
|
|
8
|
+
let { isSelected, ...otherProps } = props;
|
|
9
|
+
return /*#__PURE__*/ $ahdqC$react.createElement($792f28e438b9ad5f$export$c34620ff8881d89f, {
|
|
10
|
+
...otherProps,
|
|
11
|
+
ref,
|
|
12
|
+
className: props.className || "react-aria-SelectionIndicator",
|
|
13
|
+
name: "SelectionIndicator",
|
|
14
|
+
isVisible: isSelected
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
export { $91fe5e721c7f36c1$export$c9549807523555e0 as n, $91fe5e721c7f36c1$export$17f80983afe4e444 as t };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { r as $7230ffa83bc0c2cf$export$4d86445c2cf5e3, s as $7230ffa83bc0c2cf$export$df3a06d6289f983e } from "./utils-BkLF-JA3.js";
|
|
2
|
+
import $ahdqC$react, { createContext, forwardRef, useContext, useRef, useState } from "react";
|
|
3
|
+
import { useLayoutEffect as useLayoutEffect$1 } from "react-aria/private/utils/useLayoutEffect";
|
|
4
|
+
import { useObjectRef } from "react-aria/useObjectRef";
|
|
5
|
+
import { flushSync } from "react-dom";
|
|
6
|
+
//#region ../../node_modules/.bun/react-aria-components@1.22.1+67f6792bdf102c28/node_modules/react-aria-components/dist/private/SharedElementTransition.mjs
|
|
7
|
+
const $792f28e438b9ad5f$var$SharedElementContext = /*#__PURE__*/ createContext(null);
|
|
8
|
+
function $792f28e438b9ad5f$export$758399f318e6385a(props) {
|
|
9
|
+
let ref = useRef({});
|
|
10
|
+
return /*#__PURE__*/ $ahdqC$react.createElement($792f28e438b9ad5f$var$SharedElementContext.Provider, { value: ref }, props.children);
|
|
11
|
+
}
|
|
12
|
+
const $792f28e438b9ad5f$export$c34620ff8881d89f = /*#__PURE__*/ forwardRef(function SharedElement(props, ref) {
|
|
13
|
+
let { name, isVisible = true, children, className, style, render, ...divProps } = props;
|
|
14
|
+
let [state, setState] = useState(isVisible ? "visible" : "hidden");
|
|
15
|
+
let scopeRef = useContext($792f28e438b9ad5f$var$SharedElementContext);
|
|
16
|
+
if (!scopeRef) throw new Error("<SharedElement> must be rendered inside a <SharedElementTransition>");
|
|
17
|
+
if (isVisible && state === "hidden") setState("visible");
|
|
18
|
+
ref = useObjectRef(ref);
|
|
19
|
+
useLayoutEffect$1(() => {
|
|
20
|
+
let element = ref.current;
|
|
21
|
+
let scope = scopeRef.current;
|
|
22
|
+
let prevSnapshot = scope[name];
|
|
23
|
+
let frame = null;
|
|
24
|
+
if (element && isVisible && prevSnapshot) {
|
|
25
|
+
setState("visible");
|
|
26
|
+
let animations = element.getAnimations();
|
|
27
|
+
let values = prevSnapshot.style.map(([property, prevValue]) => {
|
|
28
|
+
let value = element.style[property];
|
|
29
|
+
if (property === "translate") {
|
|
30
|
+
let prevRect = prevSnapshot.rect;
|
|
31
|
+
let currentItem = element.getBoundingClientRect();
|
|
32
|
+
let deltaX = prevRect.left - currentItem?.left;
|
|
33
|
+
let deltaY = prevRect.top - currentItem?.top;
|
|
34
|
+
element.style.translate = `${deltaX}px ${deltaY}px`;
|
|
35
|
+
} else element.style[property] = prevValue;
|
|
36
|
+
return [property, value];
|
|
37
|
+
});
|
|
38
|
+
for (let a of element.getAnimations()) if (!animations.includes(a)) a.cancel();
|
|
39
|
+
frame = requestAnimationFrame(() => {
|
|
40
|
+
frame = null;
|
|
41
|
+
for (let [property, value] of values) element.style[property] = value;
|
|
42
|
+
});
|
|
43
|
+
delete scope[name];
|
|
44
|
+
} else if (element && isVisible && !prevSnapshot) {
|
|
45
|
+
queueMicrotask(() => flushSync(() => setState("entering")));
|
|
46
|
+
frame = requestAnimationFrame(() => {
|
|
47
|
+
frame = null;
|
|
48
|
+
setState("visible");
|
|
49
|
+
});
|
|
50
|
+
} else if (element && !isVisible) queueMicrotask(() => {
|
|
51
|
+
if (scope[name]) {
|
|
52
|
+
delete scope[name];
|
|
53
|
+
flushSync(() => setState("exiting"));
|
|
54
|
+
Promise.all(element.getAnimations().map((a) => a.finished)).then(() => setState("hidden")).catch(() => {});
|
|
55
|
+
} else setState("hidden");
|
|
56
|
+
});
|
|
57
|
+
return () => {
|
|
58
|
+
if (frame != null) cancelAnimationFrame(frame);
|
|
59
|
+
if (element && element.isConnected && !element.hasAttribute("data-exiting")) {
|
|
60
|
+
let style = window.getComputedStyle(element);
|
|
61
|
+
if (style.transitionProperty !== "none") {
|
|
62
|
+
let transitionProperty = style.transitionProperty.split(/\s*,\s*/);
|
|
63
|
+
scope[name] = {
|
|
64
|
+
rect: element.getBoundingClientRect(),
|
|
65
|
+
style: transitionProperty.map((p) => [p, style[p]])
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
}, [
|
|
71
|
+
ref,
|
|
72
|
+
scopeRef,
|
|
73
|
+
name,
|
|
74
|
+
isVisible
|
|
75
|
+
]);
|
|
76
|
+
let renderProps = $7230ffa83bc0c2cf$export$4d86445c2cf5e3({
|
|
77
|
+
children,
|
|
78
|
+
className,
|
|
79
|
+
style,
|
|
80
|
+
render,
|
|
81
|
+
values: {
|
|
82
|
+
isEntering: state === "entering",
|
|
83
|
+
isExiting: state === "exiting"
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
if (state === "hidden") return null;
|
|
87
|
+
return /*#__PURE__*/ $ahdqC$react.createElement($7230ffa83bc0c2cf$export$df3a06d6289f983e.div, {
|
|
88
|
+
...divProps,
|
|
89
|
+
...renderProps,
|
|
90
|
+
ref,
|
|
91
|
+
"data-entering": state === "entering" || void 0,
|
|
92
|
+
"data-exiting": state === "exiting" || void 0
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
//#endregion
|
|
96
|
+
export { $792f28e438b9ad5f$export$c34620ff8881d89f as n, $792f28e438b9ad5f$export$758399f318e6385a as t };
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { n as LinkNavigationProps } from "./Link-PvYB_M-j.js";
|
|
2
|
+
import { n as IconSlotIcon } from "./IconSlot-DcEDPaNb.js";
|
|
3
|
+
import { HTMLAttributes, ReactNode } from "react";
|
|
4
|
+
import { ButtonProps, Key } from "react-aria-components";
|
|
5
|
+
//#region src/hooks/useBreakpoint.d.ts
|
|
6
|
+
type Breakpoint = "sm" | "md" | "lg" | "xl";
|
|
7
|
+
declare function useBreakpoint(breakpointKey: Breakpoint): boolean;
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/components/navigation/Sidebar/sidebar.types.d.ts
|
|
10
|
+
interface SidebarProps extends HTMLAttributes<HTMLElement> {
|
|
11
|
+
"aria-label"?: string;
|
|
12
|
+
}
|
|
13
|
+
interface SidebarSectionProps extends HTMLAttributes<HTMLDivElement> {}
|
|
14
|
+
interface SidebarItemBaseProps {
|
|
15
|
+
label: ReactNode;
|
|
16
|
+
icon?: IconSlotIcon;
|
|
17
|
+
isActive?: boolean;
|
|
18
|
+
/** Content aligned to the end of the row, e.g. a count badge */
|
|
19
|
+
trailing?: ReactNode;
|
|
20
|
+
/** Keyboard shortcut shown at the end of the row, e.g. `"⌘K"`; hidden from assistive tech */
|
|
21
|
+
shortcut?: string;
|
|
22
|
+
/** `search` renders the filled search-field look */
|
|
23
|
+
variant?: "default" | "search";
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
/** Renders a router link when `href` (or a router `to`) is set. */
|
|
27
|
+
interface SidebarLinkItemProps extends SidebarItemBaseProps, Omit<LinkNavigationProps, "children" | "className"> {}
|
|
28
|
+
/** Renders a button when no link target is set. */
|
|
29
|
+
interface SidebarButtonItemProps extends SidebarItemBaseProps, Omit<ButtonProps, "children" | "className"> {
|
|
30
|
+
href?: never;
|
|
31
|
+
}
|
|
32
|
+
type SidebarItemProps = SidebarLinkItemProps | SidebarButtonItemProps;
|
|
33
|
+
interface SidebarGroupProps {
|
|
34
|
+
/** Group heading; omit for an untitled group */
|
|
35
|
+
label?: ReactNode;
|
|
36
|
+
/** Lets the user collapse the group. Ignored without a label. */
|
|
37
|
+
isCollapsible?: boolean;
|
|
38
|
+
defaultExpanded?: boolean;
|
|
39
|
+
isExpanded?: boolean;
|
|
40
|
+
onExpandedChange?: (isExpanded: boolean) => void;
|
|
41
|
+
/** Action shown next to the heading on hover or focus, e.g. an `IconButton` */
|
|
42
|
+
action?: ReactNode;
|
|
43
|
+
headingLevel?: 2 | 3 | 4 | 5 | 6;
|
|
44
|
+
children: ReactNode;
|
|
45
|
+
className?: string;
|
|
46
|
+
}
|
|
47
|
+
interface SidebarAvatarProps {
|
|
48
|
+
/** Initials or an image element */
|
|
49
|
+
children: ReactNode;
|
|
50
|
+
shape?: "square" | "circle";
|
|
51
|
+
/** Shows a presence dot */
|
|
52
|
+
status?: "online" | "offline";
|
|
53
|
+
"aria-hidden"?: boolean;
|
|
54
|
+
className?: string;
|
|
55
|
+
}
|
|
56
|
+
interface SidebarWorkspaceProps extends Omit<ButtonProps, "children" | "className" | "name"> {
|
|
57
|
+
name: ReactNode;
|
|
58
|
+
/** Logo element; falls back to the first letter of `name` when it is a string. `false` hides it. */
|
|
59
|
+
logo?: ReactNode | false;
|
|
60
|
+
className?: string;
|
|
61
|
+
}
|
|
62
|
+
interface SidebarUserProps {
|
|
63
|
+
name: ReactNode;
|
|
64
|
+
/** Initials or an image element shown in the avatar */
|
|
65
|
+
avatar: ReactNode;
|
|
66
|
+
status?: "online" | "offline";
|
|
67
|
+
/** Trailing action, e.g. a settings `IconButton` */
|
|
68
|
+
action?: ReactNode;
|
|
69
|
+
className?: string;
|
|
70
|
+
}
|
|
71
|
+
interface SidebarWorkspaceOption {
|
|
72
|
+
id: Key;
|
|
73
|
+
name: string;
|
|
74
|
+
/** Logo element; falls back to the first letter of `name` */
|
|
75
|
+
logo?: ReactNode;
|
|
76
|
+
}
|
|
77
|
+
interface SidebarWorkspacesProps {
|
|
78
|
+
items: SidebarWorkspaceOption[];
|
|
79
|
+
selectedKey?: Key;
|
|
80
|
+
defaultSelectedKey?: Key;
|
|
81
|
+
onSelectionChange?: (key: Key) => void;
|
|
82
|
+
/** Shows the "add workspace" tile when set */
|
|
83
|
+
onAdd?: () => void;
|
|
84
|
+
addLabel?: string;
|
|
85
|
+
/** Controlled expansion state; collapsed shows tiles only */
|
|
86
|
+
isExpanded?: boolean;
|
|
87
|
+
defaultExpanded?: boolean;
|
|
88
|
+
onExpandedChange?: (isExpanded: boolean) => void;
|
|
89
|
+
user?: Pick<SidebarUserProps, "name" | "avatar" | "status">;
|
|
90
|
+
"aria-label"?: string;
|
|
91
|
+
className?: string;
|
|
92
|
+
}
|
|
93
|
+
interface SidebarLayoutProps {
|
|
94
|
+
/** Workspace rail and/or `Sidebar`; shown beside the page, or in a drawer below `breakpoint` */
|
|
95
|
+
navigation: ReactNode;
|
|
96
|
+
children: ReactNode;
|
|
97
|
+
/** Shown next to the menu button in the mobile top bar, e.g. the current page */
|
|
98
|
+
mobileTitle?: ReactNode;
|
|
99
|
+
menuLabel?: string;
|
|
100
|
+
/** Width from which the navigation stays visible */
|
|
101
|
+
breakpoint?: Breakpoint;
|
|
102
|
+
className?: string;
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region src/components/navigation/Sidebar/Sidebar.d.ts
|
|
106
|
+
declare const Sidebar: ({ className, children, ...props }: SidebarProps) => import("react").JSX.Element;
|
|
107
|
+
declare const SidebarHeader: ({ className, ...props }: SidebarSectionProps) => import("react").JSX.Element;
|
|
108
|
+
declare const SidebarContent: ({ className, ...props }: SidebarSectionProps) => import("react").JSX.Element;
|
|
109
|
+
declare const SidebarFooter: ({ className, ...props }: SidebarSectionProps) => import("react").JSX.Element;
|
|
110
|
+
declare const SidebarAvatar: ({ children, shape, status, className, "aria-hidden": ariaHidden }: SidebarAvatarProps) => import("react").JSX.Element;
|
|
111
|
+
/** Header trigger for a workspace switcher; pass it as a `DropdownMenu` trigger. */
|
|
112
|
+
declare const SidebarWorkspace: ({ name, logo, className, ...props }: SidebarWorkspaceProps) => import("react").JSX.Element;
|
|
113
|
+
declare const SidebarUser: ({ name, avatar, status, action, className }: SidebarUserProps) => import("react").JSX.Element;
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region src/components/navigation/Sidebar/SidebarGroup.d.ts
|
|
116
|
+
declare const SidebarGroup: ({ label, isCollapsible, defaultExpanded, isExpanded, onExpandedChange, action, headingLevel, children, className }: SidebarGroupProps) => import("react").JSX.Element;
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region src/components/navigation/Sidebar/SidebarItem.d.ts
|
|
119
|
+
declare const SidebarItem: (props: SidebarItemProps) => import("react").JSX.Element;
|
|
120
|
+
//#endregion
|
|
121
|
+
//#region src/components/navigation/Sidebar/SidebarLayout.d.ts
|
|
122
|
+
interface SidebarLayoutContextValue {
|
|
123
|
+
isMobile: boolean;
|
|
124
|
+
closeNavigation: () => void;
|
|
125
|
+
}
|
|
126
|
+
declare const useSidebarLayout: () => SidebarLayoutContextValue | null;
|
|
127
|
+
declare const SidebarLayout: ({ navigation, children, mobileTitle, menuLabel, breakpoint, className }: SidebarLayoutProps) => import("react").JSX.Element;
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region src/components/navigation/Sidebar/SidebarWorkspaces.d.ts
|
|
130
|
+
declare const SidebarWorkspaces: ({ items, selectedKey, defaultSelectedKey, onSelectionChange, onAdd, addLabel, isExpanded: isExpandedProp, defaultExpanded, onExpandedChange, user, "aria-label": ariaLabel, className }: SidebarWorkspacesProps) => import("react").JSX.Element;
|
|
131
|
+
//#endregion
|
|
132
|
+
export { useBreakpoint as C, SidebarWorkspacesProps as S, SidebarProps as _, SidebarGroup as a, SidebarWorkspaceOption as b, SidebarContent as c, SidebarUser as d, SidebarWorkspace as f, SidebarLayoutProps as g, SidebarItemProps as h, SidebarItem as i, SidebarFooter as l, SidebarGroupProps as m, SidebarLayout as n, Sidebar as o, SidebarAvatarProps as p, useSidebarLayout as r, SidebarAvatar as s, SidebarWorkspaces as t, SidebarHeader as u, SidebarSectionProps as v, SidebarWorkspaceProps as x, SidebarUserProps as y };
|