@povio/ui 3.4.0-rc.2 → 3.4.0-rc.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -2
- package/dist/Accordion-CgNQw-pZ.d.ts +58 -0
- package/dist/Accordion-DT1wcBFP.js +552 -0
- package/dist/ActionModal-DLeVinly.d.ts +26 -0
- package/dist/Alert-1gjUqXaO.js +240 -0
- package/dist/Alert-C0GAvkdO.d.ts +33 -0
- package/dist/Autocomplete-CYT1Vk1F.d.ts +15 -0
- package/dist/BottomSheet-BWKej2PR.d.ts +34 -0
- package/dist/BottomSheet-Cwci3M8j.js +448 -0
- package/dist/Breadcrumbs-DrmLNtmQ.js +534 -0
- package/dist/Breadcrumbs-pSLRyeOe.d.ts +19 -0
- package/dist/Button-C_FOjIn-.d.ts +30 -0
- package/dist/Button-Cq7t4Xxl.js +160 -0
- package/dist/Button-Dlm1NyTJ.js +690 -0
- package/dist/ButtonContent-17xvQXod.js +122 -0
- package/dist/Calendar-C9Dbdkkl.js +654 -0
- package/dist/CheckContent-DzWpxKGq.js +19 -0
- package/dist/Checkbox-DyEipBjR.js +403 -0
- package/dist/Checkbox-Ee9K3u2J.d.ts +24 -0
- package/dist/CheckboxCheckmark-C7Oq15ms.js +195 -0
- package/dist/CheckboxGroup-D-sNgUMN.d.ts +28 -0
- package/dist/DatePicker-DM_tCN-6.js +426 -0
- package/dist/DatePicker-DclmenVd.d.ts +43 -0
- package/dist/DatePickerInput-BC-q8HcY.d.ts +18 -0
- package/dist/DatePickerInput-C2z1kgaC.js +598 -0
- package/dist/DateRangePicker-BmScgvEH.js +1322 -0
- package/dist/DateRangePicker-DjkIlnMl.d.ts +47 -0
- package/dist/DateTimePicker-CAFB33ih.js +380 -0
- package/dist/DateTimePicker-aDvcYnVk.d.ts +42 -0
- package/dist/Dialog-BQN4Z3bO.js +4505 -0
- package/dist/Drawer-DnSLe85M.d.ts +18 -0
- package/dist/FileTrigger-eHfAkdXd.js +2186 -0
- package/dist/FileUpload-CHgnF4Nm.d.ts +7 -0
- package/dist/FileUpload-Cb--_Mbk.js +766 -0
- package/dist/FileUploadContainer-Co33mh7x.d.ts +5 -0
- package/dist/Form-B4Sbjn__.d.ts +49 -0
- package/dist/Form-CKUcoaMX.js +8 -0
- package/dist/FormField-DoGaUqFm.js +235 -0
- package/dist/FormField-FvutosEE.d.ts +80 -0
- package/dist/FormFieldError-BT4uxbKY.d.ts +10 -0
- package/dist/FormFieldError-CFg0Wn3i.js +26 -0
- package/dist/HeaderText-BrZaEuIn.d.ts +19 -0
- package/dist/Hidden-BtagiSrf.js +32 -0
- package/dist/IconButton-uO0Mjcqw.d.ts +14 -0
- package/dist/InlineIconButton-CLiZzTVJ.d.ts +16 -0
- package/dist/Input-TO1R-KsB.js +45 -0
- package/dist/InputItem-DYNprOmw.js +63 -0
- package/dist/InputUpload-BqKQcew0.d.ts +66 -0
- package/dist/InputUpload-k_RRfoeF.js +233 -0
- package/dist/Inputs-BapBcBa7.js +17 -0
- package/dist/Inputs-DncFwdP2.d.ts +13 -0
- package/dist/Label-C0MdchIz.js +17 -0
- package/dist/Link-BBMgG7TX.js +82 -0
- package/dist/Link-BvAKCJcB.js +42 -0
- package/dist/Link-DwUGkr9s.d.ts +23 -0
- package/dist/ListBox-HE5uFtiS.js +739 -0
- package/dist/Loader-C6YkWZOO.js +113 -0
- package/dist/Loader-Sbr1b0iU.d.ts +29 -0
- package/dist/Menu-CLA3gTYc.d.ts +58 -0
- package/dist/Menu-Db_stvqw.js +178 -0
- package/dist/MenuDesktop-BjK3K8gs.js +248 -0
- package/dist/MenuItem-ChgmtbQw.d.ts +6 -0
- package/dist/Modal-BVL1P0ls.d.ts +53 -0
- package/dist/Modal-CYvIKx5Z.js +204 -0
- package/dist/Modal-CkSO1C1n.js +58 -0
- package/dist/NumberFormatter-KUrW7GbE.js +122 -0
- package/dist/NumberInput-mTYSZkqH.d.ts +26 -0
- package/dist/NumberRangeInput-BsATw2M1.js +403 -0
- package/dist/NumberRangeInput-DS6_DIEc.d.ts +44 -0
- package/dist/OverlayArrow-BrSp26z2.js +654 -0
- package/dist/Pagination-YrWwwM_f.d.ts +12 -0
- package/dist/PaginationList-71pjqcQ0.d.ts +18 -0
- package/dist/PaginationList-DJfUpGY9.js +218 -0
- package/dist/PasswordInput-BUZPRoOL.js +63 -0
- package/dist/PasswordInput-XI0n5I1s.d.ts +10 -0
- package/dist/Pill-DSt6f4Eq.d.ts +18 -0
- package/dist/PillButton-NdrR6uVR.d.ts +15 -0
- package/dist/PressResponder-q8UTUsf0.js +63 -0
- package/dist/ProgressBar-C8dtVA-1.js +58 -0
- package/dist/ProgressBar-DG-ClG9v.d.ts +44 -0
- package/dist/QuerySelect-W0euIrkL.d.ts +23 -0
- package/dist/RSPContexts-DHQi1l7F.js +12 -0
- package/dist/RadioGroup-CNSTNHYN.js +569 -0
- package/dist/RadioGroup-D6-jU_Hb.d.ts +73 -0
- package/dist/ResponsivePopover-CokwzUr4.d.ts +19 -0
- package/dist/Segment-Cndlojxv.js +348 -0
- package/dist/Segment-IpdajE4h.d.ts +7 -0
- package/dist/Select-CCNQ4Bso.js +155 -0
- package/dist/Select-CNTaUjfL.d.ts +15 -0
- package/dist/SelectBase-C4lPY7Hc.d.ts +97 -0
- package/dist/SelectionIndicator-qJF4qfyY.js +758 -0
- package/dist/Slider-C2VnHdQq.js +818 -0
- package/dist/Slider-HF31GF1t.d.ts +22 -0
- package/dist/SplitButton-CnyLnCrQ.d.ts +15 -0
- package/dist/Stepper-JUO4MbZx.d.ts +113 -0
- package/dist/Stepper-yN3fNyGt.js +336 -0
- package/dist/Tag-CXfTBg6q.d.ts +34 -0
- package/dist/Tag-DCo_fVLl.js +95 -0
- package/dist/Text-BTtw_Syz.js +5 -0
- package/dist/TextArea-8_TYSixS.d.ts +20 -0
- package/dist/TextArea-CS-2txl7.js +175 -0
- package/dist/TextButton-BdefN7SL.d.ts +15 -0
- package/dist/TextEditor-CXDFpX_q.d.ts +26 -0
- package/dist/TextEditor-p0CqH_71.js +3439 -0
- package/dist/TimePicker-Bspfhoo_.d.ts +32 -0
- package/dist/TimePicker-DLzbOPrC.js +375 -0
- package/dist/Toast-4Q3O7cKx.js +957 -0
- package/dist/Toast-DDkev3SZ.d.ts +75 -0
- package/dist/Toggle-CgD4ykP4.js +177 -0
- package/dist/Toggle-TDp5YtaQ.d.ts +32 -0
- package/dist/ToggleButton-BuEhb8eu.d.ts +12 -0
- package/dist/ToggleButton-D94yRla8.js +216 -0
- package/dist/Tooltip-KfGHmXdx.js +539 -0
- package/dist/Tooltip-zaZ0d1jz.d.ts +56 -0
- package/dist/TooltipEllipsis-Di9Dvd4x.d.ts +11 -0
- package/dist/TooltipWrapper-CLMp_zj4.js +71 -0
- package/dist/Typography-AcUd9df8.js +31 -0
- package/dist/Typography-BiHrVFpz.d.ts +12 -0
- package/dist/VisuallyHidden-DjaDVPQT.js +43 -0
- package/dist/autocomplete-B2Ol8qjV.d.ts +16 -0
- package/dist/button.cva-zMNkoZH8.d.ts +92 -0
- package/dist/buttonContent.cva-CIOaLH0a.d.ts +6 -0
- package/dist/check-M2G7r3oH.js +13 -0
- package/dist/checkbox-CGea408G.d.ts +9 -0
- package/dist/checkbox-group-BdjjQ24I.d.ts +9 -0
- package/dist/checkbox.cva-Caaf2Ysq.d.ts +77 -0
- package/dist/chevron-down-Ciz9yP9R.js +13 -0
- package/dist/chevron-left-VO8YZrXZ.js +13 -0
- package/dist/chevron-right-C_M98bh3.js +13 -0
- package/dist/chevron-up-CHRnDSA3.js +13 -0
- package/dist/chevrons-right-BXdmZ2TS.js +29 -0
- package/dist/clsx-CnD0nOiA.js +16 -0
- package/dist/common-UBFya8WY.d.ts +11 -0
- package/dist/components/accordion.d.ts +2 -0
- package/dist/components/accordion.js +2 -0
- package/dist/components/action-modal.d.ts +2 -0
- package/dist/components/action-modal.js +188 -0
- package/dist/components/alert.d.ts +2 -0
- package/dist/components/alert.js +2 -0
- package/dist/components/autocomplete/react-aria.d.ts +1 -0
- package/dist/components/autocomplete/react-aria.js +1 -0
- package/dist/components/autocomplete.d.ts +2 -0
- package/dist/components/autocomplete.js +131 -0
- package/dist/components/bottom-sheet.d.ts +2 -0
- package/dist/components/bottom-sheet.js +2 -0
- package/dist/components/breadcrumb/react-aria.d.ts +1 -0
- package/dist/components/breadcrumb/react-aria.js +11 -0
- package/dist/components/breadcrumbs/react-aria.d.ts +1 -0
- package/dist/components/breadcrumbs/react-aria.js +11 -0
- package/dist/components/breadcrumbs.d.ts +2 -0
- package/dist/components/breadcrumbs.js +2 -0
- package/dist/components/button/react-aria.d.ts +1 -0
- package/dist/components/button/react-aria.js +1 -0
- package/dist/components/button.d.ts +3 -0
- package/dist/components/button.js +2 -0
- package/dist/components/calendar/react-aria.d.ts +1 -0
- package/dist/components/calendar/react-aria.js +1 -0
- package/dist/components/calendar-cell/react-aria.d.ts +1 -0
- package/dist/components/calendar-cell/react-aria.js +1 -0
- package/dist/components/calendar-grid/react-aria.d.ts +1 -0
- package/dist/components/calendar-grid/react-aria.js +1 -0
- package/dist/components/calendar-grid-body/react-aria.d.ts +1 -0
- package/dist/components/calendar-grid-body/react-aria.js +1 -0
- package/dist/components/calendar-grid-header/react-aria.d.ts +1 -0
- package/dist/components/calendar-grid-header/react-aria.js +1 -0
- package/dist/components/calendar-header-cell/react-aria.d.ts +1 -0
- package/dist/components/calendar-header-cell/react-aria.js +1 -0
- package/dist/components/cell/react-aria.d.ts +1 -0
- package/dist/components/cell/react-aria.js +11 -0
- package/dist/components/checkbox/react-aria.d.ts +1 -0
- package/dist/components/checkbox/react-aria.js +1 -0
- package/dist/components/checkbox-group/react-aria.d.ts +1 -0
- package/dist/components/checkbox-group/react-aria.js +1 -0
- package/dist/components/checkbox-group.d.ts +2 -0
- package/dist/components/checkbox-group.js +161 -0
- package/dist/components/checkbox.d.ts +2 -0
- package/dist/components/checkbox.js +2 -0
- package/dist/components/collection/react-aria.d.ts +1 -0
- package/dist/components/collection/react-aria.js +11 -0
- package/dist/components/color-area/react-aria.d.ts +1 -0
- package/dist/components/color-area/react-aria.js +1 -0
- package/dist/components/color-field/react-aria.d.ts +1 -0
- package/dist/components/color-field/react-aria.js +1 -0
- package/dist/components/color-picker/react-aria.d.ts +1 -0
- package/dist/components/color-picker/react-aria.js +1 -0
- package/dist/components/color-slider/react-aria.d.ts +1 -0
- package/dist/components/color-slider/react-aria.js +1 -0
- package/dist/components/color-swatch/react-aria.d.ts +1 -0
- package/dist/components/color-swatch/react-aria.js +1 -0
- package/dist/components/color-swatch-picker/react-aria.d.ts +5 -0
- package/dist/components/color-swatch-picker/react-aria.js +11 -0
- package/dist/components/color-swatch-picker-item/react-aria.d.ts +5 -0
- package/dist/components/color-swatch-picker-item/react-aria.js +11 -0
- package/dist/components/color-thumb/react-aria.d.ts +1 -0
- package/dist/components/color-thumb/react-aria.js +1 -0
- package/dist/components/color-wheel/react-aria.d.ts +1 -0
- package/dist/components/color-wheel/react-aria.js +1 -0
- package/dist/components/color-wheel-track/react-aria.d.ts +1 -0
- package/dist/components/color-wheel-track/react-aria.js +1 -0
- package/dist/components/column/react-aria.d.ts +1 -0
- package/dist/components/column/react-aria.js +11 -0
- package/dist/components/column-resizer/react-aria.d.ts +1 -0
- package/dist/components/column-resizer/react-aria.js +11 -0
- package/dist/components/combo-box/react-aria.d.ts +1 -0
- package/dist/components/combo-box/react-aria.js +11 -0
- package/dist/components/date-field/react-aria.d.ts +1 -0
- package/dist/components/date-field/react-aria.js +1 -0
- package/dist/components/date-input/react-aria.d.ts +1 -0
- package/dist/components/date-input/react-aria.js +1 -0
- package/dist/components/date-picker/react-aria.d.ts +1 -0
- package/dist/components/date-picker/react-aria.js +1 -0
- package/dist/components/date-picker.d.ts +2 -0
- package/dist/components/date-picker.js +2 -0
- package/dist/components/date-range-picker/react-aria.d.ts +1 -0
- package/dist/components/date-range-picker/react-aria.js +1 -0
- package/dist/components/date-range-picker.d.ts +2 -0
- package/dist/components/date-range-picker.js +2 -0
- package/dist/components/date-segment/react-aria.d.ts +1 -0
- package/dist/components/date-segment/react-aria.js +1 -0
- package/dist/components/date-time-picker.d.ts +2 -0
- package/dist/components/date-time-picker.js +2 -0
- package/dist/components/default-collection-renderer/react-aria.d.ts +1 -0
- package/dist/components/default-collection-renderer/react-aria.js +1 -0
- package/dist/components/dialog/react-aria.d.ts +1 -0
- package/dist/components/dialog/react-aria.js +1 -0
- package/dist/components/dialog-trigger/react-aria.d.ts +1 -0
- package/dist/components/dialog-trigger/react-aria.js +1 -0
- package/dist/components/disclosure/react-aria.d.ts +1 -0
- package/dist/components/disclosure/react-aria.js +1 -0
- package/dist/components/disclosure-group/react-aria.d.ts +1 -0
- package/dist/components/disclosure-group/react-aria.js +1 -0
- package/dist/components/disclosure-panel/react-aria.d.ts +1 -0
- package/dist/components/disclosure-panel/react-aria.js +1 -0
- package/dist/components/drawer.d.ts +2 -0
- package/dist/components/drawer.js +96 -0
- package/dist/components/drop-indicator/react-aria.d.ts +1 -0
- package/dist/components/drop-indicator/react-aria.js +1 -0
- package/dist/components/drop-zone/react-aria.d.ts +1 -0
- package/dist/components/drop-zone/react-aria.js +1 -0
- package/dist/components/field-error/react-aria.d.ts +1 -0
- package/dist/components/field-error/react-aria.js +1 -0
- package/dist/components/file-trigger/react-aria.d.ts +1 -0
- package/dist/components/file-trigger/react-aria.js +1 -0
- package/dist/components/file-upload-container.d.ts +3 -0
- package/dist/components/file-upload-container.js +15 -0
- package/dist/components/file-upload.d.ts +3 -0
- package/dist/components/file-upload.js +2 -0
- package/dist/components/focusable/react-aria.d.ts +1 -0
- package/dist/components/focusable/react-aria.js +1 -0
- package/dist/components/form/react-aria.d.ts +1 -0
- package/dist/components/form/react-aria.js +1 -0
- package/dist/components/form-field.d.ts +2 -0
- package/dist/components/form-field.js +2 -0
- package/dist/components/grid-list/react-aria.d.ts +1 -0
- package/dist/components/grid-list/react-aria.js +11 -0
- package/dist/components/grid-list-header/react-aria.d.ts +1 -0
- package/dist/components/grid-list-header/react-aria.js +11 -0
- package/dist/components/grid-list-item/react-aria.d.ts +1 -0
- package/dist/components/grid-list-item/react-aria.js +11 -0
- package/dist/components/grid-list-load-more-item/react-aria.d.ts +1 -0
- package/dist/components/grid-list-load-more-item/react-aria.js +11 -0
- package/dist/components/grid-list-section/react-aria.d.ts +1 -0
- package/dist/components/grid-list-section/react-aria.js +11 -0
- package/dist/components/group/react-aria.d.ts +1 -0
- package/dist/components/group/react-aria.js +1 -0
- package/dist/components/header/react-aria.d.ts +1 -0
- package/dist/components/header/react-aria.js +11 -0
- package/dist/components/heading/react-aria.d.ts +1 -0
- package/dist/components/heading/react-aria.js +1 -0
- package/dist/components/i18n-provider/react-aria.d.ts +1 -0
- package/dist/components/i18n-provider/react-aria.js +1 -0
- package/dist/components/icon-button.d.ts +2 -0
- package/dist/components/icon-button.js +51 -0
- package/dist/components/inline-icon-button.d.ts +2 -0
- package/dist/components/inline-icon-button.js +40 -0
- package/dist/components/input/react-aria.d.ts +1 -0
- package/dist/components/input/react-aria.js +1 -0
- package/dist/components/input-upload.d.ts +2 -0
- package/dist/components/input-upload.js +2 -0
- package/dist/components/keyboard/react-aria.d.ts +1 -0
- package/dist/components/keyboard/react-aria.js +1 -0
- package/dist/components/label/react-aria.d.ts +1 -0
- package/dist/components/label/react-aria.js +1 -0
- package/dist/components/link/react-aria.d.ts +1 -0
- package/dist/components/link/react-aria.js +1 -0
- package/dist/components/link.d.ts +2 -0
- package/dist/components/link.js +2 -0
- package/dist/components/list-box/react-aria.d.ts +1 -0
- package/dist/components/list-box/react-aria.js +11 -0
- package/dist/components/list-box-item/react-aria.d.ts +1 -0
- package/dist/components/list-box-item/react-aria.js +11 -0
- package/dist/components/list-box-load-more-item/react-aria.d.ts +1 -0
- package/dist/components/list-box-load-more-item/react-aria.js +11 -0
- package/dist/components/list-box-section/react-aria.d.ts +1 -0
- package/dist/components/list-box-section/react-aria.js +11 -0
- package/dist/components/loader.d.ts +2 -0
- package/dist/components/loader.js +2 -0
- package/dist/components/menu/react-aria.d.ts +1 -0
- package/dist/components/menu/react-aria.js +11 -0
- package/dist/components/menu-item/react-aria.d.ts +1 -0
- package/dist/components/menu-item/react-aria.js +11 -0
- package/dist/components/menu-section/react-aria.d.ts +1 -0
- package/dist/components/menu-section/react-aria.js +11 -0
- package/dist/components/menu-trigger/react-aria.d.ts +1 -0
- package/dist/components/menu-trigger/react-aria.js +1 -0
- package/dist/components/menu.d.ts +3 -0
- package/dist/components/menu.js +3 -0
- package/dist/components/meter/react-aria.d.ts +1 -0
- package/dist/components/meter/react-aria.js +1 -0
- package/dist/components/modal/react-aria.d.ts +1 -0
- package/dist/components/modal/react-aria.js +1 -0
- package/dist/components/modal-overlay/react-aria.d.ts +1 -0
- package/dist/components/modal-overlay/react-aria.js +1 -0
- package/dist/components/modal.d.ts +2 -0
- package/dist/components/modal.js +2 -0
- package/dist/components/number-field/react-aria.d.ts +1 -0
- package/dist/components/number-field/react-aria.js +1 -0
- package/dist/components/number-input.d.ts +2 -0
- package/dist/components/number-input.js +242 -0
- package/dist/components/number-range-input.d.ts +2 -0
- package/dist/components/number-range-input.js +2 -0
- package/dist/components/overlay-arrow/react-aria.d.ts +1 -0
- package/dist/components/overlay-arrow/react-aria.js +1 -0
- package/dist/components/pagination-list.d.ts +2 -0
- package/dist/components/pagination-list.js +2 -0
- package/dist/components/pagination.d.ts +2 -0
- package/dist/components/pagination.js +131 -0
- package/dist/components/password-input.d.ts +2 -0
- package/dist/components/password-input.js +2 -0
- package/dist/components/pill-button.d.ts +2 -0
- package/dist/components/pill-button.js +73 -0
- package/dist/components/pill.d.ts +2 -0
- package/dist/components/pill.js +44 -0
- package/dist/components/popover/react-aria.d.ts +1 -0
- package/dist/components/popover/react-aria.js +1 -0
- package/dist/components/pressable/react-aria.d.ts +1 -0
- package/dist/components/pressable/react-aria.js +1 -0
- package/dist/components/progress-bar/react-aria.d.ts +1 -0
- package/dist/components/progress-bar/react-aria.js +1 -0
- package/dist/components/progress-bar.d.ts +2 -0
- package/dist/components/progress-bar.js +2 -0
- package/dist/components/provider/react-aria.d.ts +1 -0
- package/dist/components/provider/react-aria.js +1 -0
- package/dist/components/query-autocomplete.d.ts +8 -0
- package/dist/components/query-autocomplete.js +104 -0
- package/dist/components/query-select.d.ts +2 -0
- package/dist/components/query-select.js +114 -0
- package/dist/components/radio/react-aria.d.ts +1 -0
- package/dist/components/radio/react-aria.js +1 -0
- package/dist/components/radio-group/react-aria.d.ts +1 -0
- package/dist/components/radio-group/react-aria.js +1 -0
- package/dist/components/radio-group.d.ts +2 -0
- package/dist/components/radio-group.js +2 -0
- package/dist/components/range-calendar/react-aria.d.ts +1 -0
- package/dist/components/range-calendar/react-aria.js +1 -0
- package/dist/components/resizable-table-container/react-aria.d.ts +1 -0
- package/dist/components/resizable-table-container/react-aria.js +11 -0
- package/dist/components/responsive-popover.d.ts +2 -0
- package/dist/components/responsive-popover.js +126 -0
- package/dist/components/router-provider/react-aria.d.ts +1 -0
- package/dist/components/router-provider/react-aria.js +1 -0
- package/dist/components/row/react-aria.d.ts +1 -0
- package/dist/components/row/react-aria.js +11 -0
- package/dist/components/search-field/react-aria.d.ts +1 -0
- package/dist/components/search-field/react-aria.js +1 -0
- package/dist/components/section/react-aria.d.ts +1 -0
- package/dist/components/section/react-aria.js +11 -0
- package/dist/components/segment.d.ts +3 -0
- package/dist/components/segment.js +2 -0
- package/dist/components/select/react-aria.d.ts +1 -0
- package/dist/components/select/react-aria.js +11 -0
- package/dist/components/select-value/react-aria.d.ts +1 -0
- package/dist/components/select-value/react-aria.js +1 -0
- package/dist/components/select.d.ts +3 -0
- package/dist/components/select.js +2 -0
- package/dist/components/selection-indicator/react-aria.d.ts +1 -0
- package/dist/components/selection-indicator/react-aria.js +1 -0
- package/dist/components/separator/react-aria.d.ts +1 -0
- package/dist/components/separator/react-aria.js +11 -0
- package/dist/components/shared-element/react-aria.d.ts +1 -0
- package/dist/components/shared-element/react-aria.js +1 -0
- package/dist/components/shared-element-transition/react-aria.d.ts +1 -0
- package/dist/components/shared-element-transition/react-aria.js +1 -0
- package/dist/components/slider/react-aria.d.ts +1 -0
- package/dist/components/slider/react-aria.js +1 -0
- package/dist/components/slider-output/react-aria.d.ts +1 -0
- package/dist/components/slider-output/react-aria.js +1 -0
- package/dist/components/slider-thumb/react-aria.d.ts +1 -0
- package/dist/components/slider-thumb/react-aria.js +1 -0
- package/dist/components/slider-track/react-aria.d.ts +1 -0
- package/dist/components/slider-track/react-aria.js +1 -0
- package/dist/components/slider.d.ts +2 -0
- package/dist/components/slider.js +2 -0
- package/dist/components/split-button.d.ts +2 -0
- package/dist/components/split-button.js +123 -0
- package/dist/components/ssr-provider/react-aria.d.ts +1 -0
- package/dist/components/ssr-provider/react-aria.js +1 -0
- package/dist/components/stepper.d.ts +2 -0
- package/dist/components/stepper.js +2 -0
- package/dist/components/submenu-trigger/react-aria.d.ts +1 -0
- package/dist/components/submenu-trigger/react-aria.js +11 -0
- package/dist/components/switch/react-aria.d.ts +1 -0
- package/dist/components/switch/react-aria.js +1 -0
- package/dist/components/tab/react-aria.d.ts +1 -0
- package/dist/components/tab/react-aria.js +11 -0
- package/dist/components/tab-list/react-aria.d.ts +1 -0
- package/dist/components/tab-list/react-aria.js +11 -0
- package/dist/components/tab-panel/react-aria.d.ts +1 -0
- package/dist/components/tab-panel/react-aria.js +1 -0
- package/dist/components/tab-panels/react-aria.d.ts +1 -0
- package/dist/components/tab-panels/react-aria.js +11 -0
- package/dist/components/table/react-aria.d.ts +1 -0
- package/dist/components/table/react-aria.js +11 -0
- package/dist/components/table-body/react-aria.d.ts +1 -0
- package/dist/components/table-body/react-aria.js +11 -0
- package/dist/components/table-header/react-aria.d.ts +1 -0
- package/dist/components/table-header/react-aria.js +11 -0
- package/dist/components/table-load-more-item/react-aria.d.ts +1 -0
- package/dist/components/table-load-more-item/react-aria.js +11 -0
- package/dist/components/tabs/react-aria.d.ts +1 -0
- package/dist/components/tabs/react-aria.js +11 -0
- package/dist/components/tag/react-aria.d.ts +1 -0
- package/dist/components/tag/react-aria.js +11 -0
- package/dist/components/tag-group/react-aria.d.ts +1 -0
- package/dist/components/tag-group/react-aria.js +11 -0
- package/dist/components/tag-list/react-aria.d.ts +1 -0
- package/dist/components/tag-list/react-aria.js +11 -0
- package/dist/components/tag.d.ts +2 -0
- package/dist/components/tag.js +2 -0
- package/dist/components/text/react-aria.d.ts +1 -0
- package/dist/components/text/react-aria.js +1 -0
- package/dist/components/text-area/react-aria.d.ts +1 -0
- package/dist/components/text-area/react-aria.js +1 -0
- package/dist/components/text-area.d.ts +2 -0
- package/dist/components/text-area.js +2 -0
- package/dist/components/text-button.d.ts +2 -0
- package/dist/components/text-button.js +36 -0
- package/dist/components/text-field/react-aria.d.ts +1 -0
- package/dist/components/text-field/react-aria.js +1 -0
- package/dist/components/text-input.d.ts +2 -0
- package/dist/components/text-input.js +239 -0
- package/dist/components/time-field/react-aria.d.ts +1 -0
- package/dist/components/time-field/react-aria.js +1 -0
- package/dist/components/time-picker.d.ts +2 -0
- package/dist/components/time-picker.js +2 -0
- package/dist/components/toast/react-aria.d.ts +1 -0
- package/dist/components/toast/react-aria.js +1 -0
- package/dist/components/toast-content/react-aria.d.ts +1 -0
- package/dist/components/toast-content/react-aria.js +1 -0
- package/dist/components/toast-list/react-aria.d.ts +1 -0
- package/dist/components/toast-list/react-aria.js +1 -0
- package/dist/components/toast-region/react-aria.d.ts +1 -0
- package/dist/components/toast-region/react-aria.js +1 -0
- package/dist/components/toast.d.ts +2 -0
- package/dist/components/toast.js +2 -0
- package/dist/components/toggle-button/react-aria.d.ts +1 -0
- package/dist/components/toggle-button/react-aria.js +1 -0
- package/dist/components/toggle-button-group/react-aria.d.ts +5 -0
- package/dist/components/toggle-button-group/react-aria.js +1 -0
- package/dist/components/toggle-button.d.ts +2 -0
- package/dist/components/toggle-button.js +34 -0
- package/dist/components/toggle.d.ts +2 -0
- package/dist/components/toggle.js +2 -0
- package/dist/components/toolbar/react-aria.d.ts +1 -0
- package/dist/components/toolbar/react-aria.js +1 -0
- package/dist/components/tooltip/react-aria.d.ts +1 -0
- package/dist/components/tooltip/react-aria.js +1 -0
- package/dist/components/tooltip-ellipsis.d.ts +2 -0
- package/dist/components/tooltip-ellipsis.js +46 -0
- package/dist/components/tooltip-trigger/react-aria.d.ts +1 -0
- package/dist/components/tooltip-trigger/react-aria.js +1 -0
- package/dist/components/tooltip.d.ts +2 -0
- package/dist/components/tooltip.js +2 -0
- package/dist/components/tree/react-aria.d.ts +1 -0
- package/dist/components/tree/react-aria.js +11 -0
- package/dist/components/tree-item/react-aria.d.ts +1 -0
- package/dist/components/tree-item/react-aria.js +11 -0
- package/dist/components/tree-item-content/react-aria.d.ts +1 -0
- package/dist/components/tree-item-content/react-aria.js +11 -0
- package/dist/components/tree-load-more-item/react-aria.d.ts +1 -0
- package/dist/components/tree-load-more-item/react-aria.js +11 -0
- package/dist/components/typography.d.ts +3 -0
- package/dist/components/typography.js +2 -0
- package/dist/components/use-toast.d.ts +2 -0
- package/dist/components/use-toast.js +69 -0
- package/dist/components/virtualizer/react-aria.d.ts +1 -0
- package/dist/components/virtualizer/react-aria.js +1 -0
- package/dist/components/visually-hidden/react-aria.d.ts +1 -0
- package/dist/components/visually-hidden/react-aria.js +1 -0
- package/dist/compoundMapper-CMoX98D2.d.ts +17 -0
- package/dist/compoundMapper-Di3SKZnS.js +13 -0
- package/dist/config/confirmation.d.ts +2 -0
- package/dist/config/confirmation.js +2 -0
- package/dist/config/link-context.d.ts +3 -0
- package/dist/config/link-context.js +2 -0
- package/dist/config/resources.d.ts +2 -0
- package/dist/config/resources.js +2 -0
- package/dist/config/theme-context.d.ts +2 -0
- package/dist/config/theme-context.js +2 -0
- package/dist/config/ui-config.d.ts +2 -0
- package/dist/config/ui-config.js +2 -0
- package/dist/config/ui-overrides.d.ts +2 -0
- package/dist/config/ui-overrides.js +2 -0
- package/dist/config/ui-router.d.ts +2 -0
- package/dist/config/ui-router.js +2 -0
- package/dist/confirmation.context-BJ8gTx7U.d.ts +23 -0
- package/dist/confirmation.context-C1-ZF9CW.js +80 -0
- package/dist/context-CLFkoJMP.js +93 -0
- package/dist/createLucideIcon-CskCrR9z.js +125 -0
- package/dist/date-picker-BpSowet-.d.ts +9 -0
- package/dist/date-range-picker-aO65H4wV.d.ts +9 -0
- package/dist/date-time-picker-DWo2GFg7.d.ts +9 -0
- package/dist/date-time.utils-0F9qduim.js +190 -0
- package/dist/date-time.utils-Cu9TVj46.d.ts +45 -0
- package/dist/date.transforms-DLg-eFcE.js +15 -0
- package/dist/date.utils-B8_QF9y6.js +42 -0
- package/dist/date.utils-BoQnMRlF.d.ts +7 -0
- package/dist/datePickerValue.utils-Dh-nA1Yv.js +223 -0
- package/dist/dynamicInputs-4JB41qRW.js +214 -0
- package/dist/dynamicInputs-BekIlDGf.d.ts +753 -0
- package/dist/dynamicInputs-D8j0ko24.js +194 -0
- package/dist/fieldAdapter-C4sDFC8f.d.ts +9 -0
- package/dist/fieldAdapter-C_3uizcT.js +61 -0
- package/dist/file-upload-DDIJKLW8.d.ts +10 -0
- package/dist/file.utils-Crb-mIHs.d.ts +21 -0
- package/dist/file.utils-DqQxnuAm.js +61 -0
- package/dist/fileUpload.types-CQkPqELk.d.ts +106 -0
- package/dist/form.binding-DWlFTecs.d.ts +47 -0
- package/dist/form.binding-DyZ4fH8l.js +34 -0
- package/dist/form.types-B9Vp8q2g.d.ts +13 -0
- package/dist/form.types-ZNGbcqJS.d.ts +13 -0
- package/dist/hooks/use-filters.d.ts +2 -0
- package/dist/hooks/use-filters.js +2 -0
- package/dist/hooks/use-local-storage.d.ts +2 -0
- package/dist/hooks/use-local-storage.js +2 -0
- package/dist/hooks/use-translation-memo.d.ts +2 -0
- package/dist/hooks/use-translation-memo.js +2 -0
- package/dist/i18n-C2TBJvnh.js +300 -0
- package/dist/i18n-DjqhCCJq.d.ts +316 -0
- package/dist/icons.d.ts +2 -0
- package/dist/icons.js +2 -0
- package/dist/index-B8r_kiw4.d.ts +193 -0
- package/dist/index.d.ts +101 -263
- package/dist/index.js +99 -180
- package/dist/input-upload-Apyx1Mvy.d.ts +9 -0
- package/dist/input.cva-CfgCOIQW.d.ts +80 -0
- package/dist/input.cva-KYGD4Bdz.js +324 -0
- package/dist/intl.utils-NaOZUD2G.d.ts +9 -0
- package/dist/intl.utils-zwAFoZ0U.js +38 -0
- package/dist/intlStrings-DrQB127v.js +346 -0
- package/dist/link.context-BFXwgVLP.d.ts +12 -0
- package/dist/link.context-J7aQtMOr.js +35 -0
- package/dist/logger-BPhG2izn.js +309 -0
- package/dist/logger-N35Xhi14.d.ts +10 -0
- package/dist/lucide-react-BJRvqSeV.d.ts +23 -0
- package/dist/modal.cva-CbziPHSN.js +43 -0
- package/dist/number-input-D0YwMCGh.d.ts +8 -0
- package/dist/number-range-input-BtPXUX0k.d.ts +8 -0
- package/dist/numberStatic.utils-C9_kWMXJ.js +723 -0
- package/dist/openLink-BFEMFlhB.js +187 -0
- package/dist/outline.clsx-50W_vNDl.js +6 -0
- package/dist/outline.clsx-B1hjrX9t.d.ts +4 -0
- package/dist/password-input-euv4tHdl.d.ts +8 -0
- package/dist/pillButton.cva-Da0WFN39.d.ts +34 -0
- package/dist/pillButton.cva-DbwzixcK.js +263 -0
- package/dist/popover.cva-CXha_UMQ.js +5 -0
- package/dist/queries.utils-CmbhAoHU.js +18 -0
- package/dist/query-autocomplete-BwU-94pi.d.ts +14 -0
- package/dist/query-select-CBgR2Tua.d.ts +15 -0
- package/dist/queryAutocomplete.types-3ezR8y7k.d.ts +26 -0
- package/dist/radio-group-DVGKZRnt.d.ts +9 -0
- package/dist/rhf/autocomplete.d.ts +3 -0
- package/dist/rhf/autocomplete.js +8 -0
- package/dist/rhf/checkbox-group.d.ts +3 -0
- package/dist/rhf/checkbox-group.js +8 -0
- package/dist/rhf/checkbox.d.ts +3 -0
- package/dist/rhf/checkbox.js +8 -0
- package/dist/rhf/date-picker.d.ts +3 -0
- package/dist/rhf/date-picker.js +9 -0
- package/dist/rhf/date-range-picker.d.ts +3 -0
- package/dist/rhf/date-range-picker.js +9 -0
- package/dist/rhf/date-time-picker.d.ts +3 -0
- package/dist/rhf/date-time-picker.js +9 -0
- package/dist/rhf/file-upload.d.ts +3 -0
- package/dist/rhf/file-upload.js +6 -0
- package/dist/rhf/input-upload.d.ts +3 -0
- package/dist/rhf/input-upload.js +6 -0
- package/dist/rhf/inputs.d.ts +4 -0
- package/dist/rhf/inputs.js +2 -0
- package/dist/rhf/number-input.d.ts +3 -0
- package/dist/rhf/number-input.js +6 -0
- package/dist/rhf/number-range-input.d.ts +3 -0
- package/dist/rhf/number-range-input.js +6 -0
- package/dist/rhf/password-input.d.ts +3 -0
- package/dist/rhf/password-input.js +6 -0
- package/dist/rhf/query-autocomplete.d.ts +2 -0
- package/dist/rhf/query-autocomplete.js +8 -0
- package/dist/rhf/query-select.d.ts +2 -0
- package/dist/rhf/query-select.js +8 -0
- package/dist/rhf/radio-group.d.ts +3 -0
- package/dist/rhf/radio-group.js +8 -0
- package/dist/rhf/segment.d.ts +3 -0
- package/dist/rhf/segment.js +6 -0
- package/dist/rhf/select.d.ts +3 -0
- package/dist/rhf/select.js +8 -0
- package/dist/rhf/slider.d.ts +3 -0
- package/dist/rhf/slider.js +6 -0
- package/dist/rhf/text-area.d.ts +3 -0
- package/dist/rhf/text-area.js +6 -0
- package/dist/rhf/text-editor.d.ts +3 -0
- package/dist/rhf/text-editor.js +6 -0
- package/dist/rhf/text-input.d.ts +3 -0
- package/dist/rhf/text-input.js +6 -0
- package/dist/rhf/time-picker.d.ts +3 -0
- package/dist/rhf/time-picker.js +9 -0
- package/dist/rhf/toggle.d.ts +3 -0
- package/dist/rhf/toggle.js +8 -0
- package/dist/rhf-Ca72CryM.js +256 -0
- package/dist/rhf.d.ts +101 -0
- package/dist/rhf.js +99 -0
- package/dist/rolldown-runtime-DUp30N8C.js +28 -0
- package/dist/router.context-BOYRh2p9.d.ts +16 -0
- package/dist/router.context-DSE1y7gW.js +63 -0
- package/dist/routing.utils-UTQonIhB.js +25 -0
- package/dist/schemas-BkfyFvBp.js +4004 -0
- package/dist/schemas-CAtYiHoz.d.ts +2127 -0
- package/dist/segment-CSZWTNMz.d.ts +9 -0
- package/dist/segment.types-POFeFf4n.d.ts +58 -0
- package/dist/select-ZL6iOiG0.d.ts +16 -0
- package/dist/slider--ZPodYa6.d.ts +8 -0
- package/dist/staticDateTimeSegments-CKL9PuGV.js +1501 -0
- package/dist/staticSelect.utils-DkiDwfGr.js +4041 -0
- package/dist/string.utils-BPgv6QwA.js +12 -0
- package/dist/string.utils-Cj6AB7uZ.d.ts +7 -0
- package/dist/styles/input.d.ts +2 -0
- package/dist/styles/input.js +0 -0
- package/dist/styles/outline.d.ts +2 -0
- package/dist/styles/outline.js +2 -0
- package/dist/tanstack/autocomplete.d.ts +2 -0
- package/dist/tanstack/autocomplete.js +2 -0
- package/dist/tanstack/checkbox-group.d.ts +2 -0
- package/dist/tanstack/checkbox-group.js +2 -0
- package/dist/tanstack/checkbox.d.ts +2 -0
- package/dist/tanstack/checkbox.js +2 -0
- package/dist/tanstack/date-picker.d.ts +2 -0
- package/dist/tanstack/date-picker.js +2 -0
- package/dist/tanstack/date-range-picker.d.ts +2 -0
- package/dist/tanstack/date-range-picker.js +2 -0
- package/dist/tanstack/date-time-picker.d.ts +2 -0
- package/dist/tanstack/date-time-picker.js +2 -0
- package/dist/tanstack/file-upload.d.ts +3 -0
- package/dist/tanstack/file-upload.js +2 -0
- package/dist/tanstack/form.d.ts +3 -0
- package/dist/tanstack/form.js +2 -0
- package/dist/tanstack/input-upload.d.ts +2 -0
- package/dist/tanstack/input-upload.js +2 -0
- package/dist/tanstack/inputs.d.ts +5 -0
- package/dist/tanstack/inputs.js +3 -0
- package/dist/tanstack/number-input.d.ts +2 -0
- package/dist/tanstack/number-input.js +2 -0
- package/dist/tanstack/number-range-input.d.ts +2 -0
- package/dist/tanstack/number-range-input.js +2 -0
- package/dist/tanstack/password-input.d.ts +2 -0
- package/dist/tanstack/password-input.js +2 -0
- package/dist/tanstack/query-autocomplete.d.ts +2 -0
- package/dist/tanstack/query-autocomplete.js +2 -0
- package/dist/tanstack/query-select.d.ts +2 -0
- package/dist/tanstack/query-select.js +2 -0
- package/dist/tanstack/radio-group.d.ts +2 -0
- package/dist/tanstack/radio-group.js +2 -0
- package/dist/tanstack/segment.d.ts +3 -0
- package/dist/tanstack/segment.js +2 -0
- package/dist/tanstack/select.d.ts +2 -0
- package/dist/tanstack/select.js +2 -0
- package/dist/tanstack/slider.d.ts +2 -0
- package/dist/tanstack/slider.js +2 -0
- package/dist/tanstack/table.d.ts +3 -0
- package/dist/tanstack/table.js +2 -0
- package/dist/tanstack/text-area.d.ts +2 -0
- package/dist/tanstack/text-area.js +2 -0
- package/dist/tanstack/text-editor.d.ts +2 -0
- package/dist/tanstack/text-editor.js +2 -0
- package/dist/tanstack/text-input.d.ts +2 -0
- package/dist/tanstack/text-input.js +2 -0
- package/dist/tanstack/time-picker.d.ts +2 -0
- package/dist/tanstack/time-picker.js +2 -0
- package/dist/tanstack/toggle.d.ts +2 -0
- package/dist/tanstack/toggle.js +2 -0
- package/dist/tanstack.d.ts +87 -0
- package/dist/tanstack.js +94 -0
- package/dist/text-area-BhZAEqfI.d.ts +8 -0
- package/dist/text-editor-Dq-YYIuF.d.ts +8 -0
- package/dist/text-editor.d.ts +2 -2
- package/dist/text-editor.js +1 -1
- package/dist/text-input-F-mBSHby.d.ts +8 -0
- package/dist/theme.context-CCXz56lV.js +120 -0
- package/dist/theme.context-rPpAYJZo.d.ts +20 -0
- package/dist/time-picker-5w_eDDNn.d.ts +9 -0
- package/dist/toggle-D-Dg5YGf.d.ts +9 -0
- package/dist/tw-ui-plugin.d.ts +4 -2
- package/dist/tw-ui-plugin.js +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +0 -0
- package/dist/types-BV15_DBT.d.ts +1150 -0
- package/dist/typography.cva-7RYwLrA7.d.ts +51 -0
- package/dist/typography.cva-BI0FyIqm.js +129 -0
- package/dist/uiConfig.context-SBtRegKv.js +359 -0
- package/dist/uiConfig.context-pJj1iUnQ.d.ts +84 -0
- package/dist/uiOverrides.context-BdokYcGO.d.ts +243 -0
- package/dist/uiOverrides.context-Bfm2n-n8.js +399 -0
- package/dist/useBreakpoint-D0s71F97.js +70 -0
- package/dist/useButton-iUReggbG.js +55 -0
- package/dist/useControlledState-Bk39gTui.js +31 -0
- package/dist/useEvent-BROAXUSg.js +22 -0
- package/dist/useFieldAccessibility-CmbhtqBy.js +96 -0
- package/dist/useFilter-BOG2VldJ.js +44 -0
- package/dist/useFilters-6IOuvBTm.d.ts +11 -0
- package/dist/useFilters-AA70NuXo.js +190 -0
- package/dist/useFocusRing-DuXtCnJj.js +141 -0
- package/dist/useFormAutosave-BXqu0xAQ.js +296 -0
- package/dist/useFormReset-BhJH8XnS.js +18 -0
- package/dist/useFormValidation-DLZqyNVp.js +115 -0
- package/dist/useFormValidationState-Bpry7Uk5.js +142 -0
- package/dist/useHover-DwfnacVy.js +1210 -0
- package/dist/useIntersectionObserver-DYfHnGGU.js +98 -0
- package/dist/useLabel-BFvzYK5u.js +27 -0
- package/dist/useLabels-B3G1H2cw.js +16 -0
- package/dist/useLocalStorage-PlcaJ1tP.js +70 -0
- package/dist/useLocalStorage-kcEdRxqC.d.ts +13 -0
- package/dist/useLocalizedStringFormatter-C2M9mXF2.js +108 -0
- package/dist/useNumberFormatter-CTdFIKV_.js +10 -0
- package/dist/usePress-CANxCO5-.js +491 -0
- package/dist/useQueryAutocomplete-CraXvRm_.js +152 -0
- package/dist/useSpinButton-C3wyKHU7.js +577 -0
- package/dist/useStaticInputHandoff-COJdSrME.js +321 -0
- package/dist/useTableColumnConfig-_XJr8Cor.js +1638 -0
- package/dist/useTableNav-BoQOVqZF.d.ts +274 -0
- package/dist/useTextField-De01RThI.js +77 -0
- package/dist/useToast-gQ9gzrbt.d.ts +16 -0
- package/dist/useToggle-DDay--cY.js +62 -0
- package/dist/useToggleState-Dyx-sAjp.js +23 -0
- package/dist/useTranslationMemo-CrZbeyBv.js +32 -0
- package/dist/useTranslationMemo-Dy3p6m1g.d.ts +6 -0
- package/dist/utils/compound-mapper.d.ts +2 -0
- package/dist/utils/compound-mapper.js +2 -0
- package/dist/utils/date-time.d.ts +2 -0
- package/dist/utils/date-time.js +2 -0
- package/dist/utils/date.d.ts +2 -0
- package/dist/utils/date.js +2 -0
- package/dist/utils/file.d.ts +2 -0
- package/dist/utils/file.js +2 -0
- package/dist/utils/intl.d.ts +2 -0
- package/dist/utils/intl.js +2 -0
- package/dist/utils/logger.d.ts +2 -7
- package/dist/utils/logger.js +1 -18
- package/dist/utils/string.d.ts +2 -0
- package/dist/utils/string.js +2 -0
- package/dist/x-BYOEO0gW.js +16 -0
- package/dist/zod.utils-Nz_Tbo_v.js +24 -0
- package/package.json +1314 -17
- package/dist/assets/icons/Account.d.ts +0 -2
- package/dist/assets/icons/AlignCenter.d.ts +0 -2
- package/dist/assets/icons/AlignCenter.js +0 -30
- package/dist/assets/icons/AlignLeft.d.ts +0 -2
- package/dist/assets/icons/AlignLeft.js +0 -30
- package/dist/assets/icons/AlignLeftRight.d.ts +0 -2
- package/dist/assets/icons/AlignLeftRight.js +0 -30
- package/dist/assets/icons/AlignRight.d.ts +0 -2
- package/dist/assets/icons/AlignRight.js +0 -30
- package/dist/assets/icons/ArrowDropDown.d.ts +0 -2
- package/dist/assets/icons/ArrowDropDown.js +0 -30
- package/dist/assets/icons/ArrowDropUp.d.ts +0 -2
- package/dist/assets/icons/ArrowDropUp.js +0 -30
- package/dist/assets/icons/ArrowLeft.d.ts +0 -2
- package/dist/assets/icons/ArrowLeft.js +0 -30
- package/dist/assets/icons/ArrowRight.d.ts +0 -2
- package/dist/assets/icons/ArrowRight.js +0 -30
- package/dist/assets/icons/Board.d.ts +0 -2
- package/dist/assets/icons/Bold.d.ts +0 -2
- package/dist/assets/icons/Bold.js +0 -30
- package/dist/assets/icons/BulletedList.d.ts +0 -2
- package/dist/assets/icons/BulletedList.js +0 -30
- package/dist/assets/icons/Calendar.d.ts +0 -2
- package/dist/assets/icons/Calendar.js +0 -32
- package/dist/assets/icons/Check.d.ts +0 -2
- package/dist/assets/icons/Check.js +0 -32
- package/dist/assets/icons/CheckCircle.d.ts +0 -2
- package/dist/assets/icons/CheckCircle.js +0 -30
- package/dist/assets/icons/CheckboxCheckmark.d.ts +0 -2
- package/dist/assets/icons/CheckboxCheckmark.js +0 -33
- package/dist/assets/icons/CheckboxIndeterminate.d.ts +0 -2
- package/dist/assets/icons/CheckboxIndeterminate.js +0 -33
- package/dist/assets/icons/ChevronDown.d.ts +0 -2
- package/dist/assets/icons/ChevronDown.js +0 -32
- package/dist/assets/icons/ChevronLeft.d.ts +0 -2
- package/dist/assets/icons/ChevronLeft.js +0 -32
- package/dist/assets/icons/ChevronRight.d.ts +0 -2
- package/dist/assets/icons/ChevronRight.js +0 -32
- package/dist/assets/icons/ChevronUp.d.ts +0 -2
- package/dist/assets/icons/ChevronUp.js +0 -32
- package/dist/assets/icons/ChevronsLeft.d.ts +0 -2
- package/dist/assets/icons/ChevronsLeft.js +0 -32
- package/dist/assets/icons/ChevronsRight.d.ts +0 -2
- package/dist/assets/icons/ChevronsRight.js +0 -32
- package/dist/assets/icons/Clock.d.ts +0 -2
- package/dist/assets/icons/Clock.js +0 -30
- package/dist/assets/icons/Close.d.ts +0 -2
- package/dist/assets/icons/Close.js +0 -30
- package/dist/assets/icons/DateTime.d.ts +0 -2
- package/dist/assets/icons/DateTime.js +0 -39
- package/dist/assets/icons/DragIndicator.d.ts +0 -2
- package/dist/assets/icons/DragIndicator.js +0 -30
- package/dist/assets/icons/Edit.d.ts +0 -2
- package/dist/assets/icons/Emoji.d.ts +0 -2
- package/dist/assets/icons/File.d.ts +0 -2
- package/dist/assets/icons/File.js +0 -32
- package/dist/assets/icons/Grid.d.ts +0 -2
- package/dist/assets/icons/Highlight.d.ts +0 -2
- package/dist/assets/icons/Highlight.js +0 -30
- package/dist/assets/icons/HighlightOn.d.ts +0 -6
- package/dist/assets/icons/HighlightOn.js +0 -55
- package/dist/assets/icons/Home.d.ts +0 -2
- package/dist/assets/icons/Home.js +0 -30
- package/dist/assets/icons/Image.d.ts +0 -2
- package/dist/assets/icons/ImageError.d.ts +0 -2
- package/dist/assets/icons/Info.d.ts +0 -2
- package/dist/assets/icons/Info.js +0 -41
- package/dist/assets/icons/Italic.d.ts +0 -2
- package/dist/assets/icons/Italic.js +0 -30
- package/dist/assets/icons/Link.d.ts +0 -2
- package/dist/assets/icons/Link.js +0 -30
- package/dist/assets/icons/Loader.d.ts +0 -2
- package/dist/assets/icons/MapPin.d.ts +0 -2
- package/dist/assets/icons/Menu.d.ts +0 -2
- package/dist/assets/icons/Menu.js +0 -30
- package/dist/assets/icons/Minus.d.ts +0 -2
- package/dist/assets/icons/MoreHoriz.d.ts +0 -2
- package/dist/assets/icons/NumberedList.d.ts +0 -2
- package/dist/assets/icons/NumberedList.js +0 -30
- package/dist/assets/icons/Pause.d.ts +0 -2
- package/dist/assets/icons/Plus.d.ts +0 -2
- package/dist/assets/icons/PointerHorizontal.d.ts +0 -2
- package/dist/assets/icons/PointerHorizontal.js +0 -30
- package/dist/assets/icons/PointerVertical.d.ts +0 -2
- package/dist/assets/icons/PointerVertical.js +0 -30
- package/dist/assets/icons/Retry.d.ts +0 -2
- package/dist/assets/icons/Search.d.ts +0 -2
- package/dist/assets/icons/Search.js +0 -30
- package/dist/assets/icons/Send.d.ts +0 -2
- package/dist/assets/icons/Send.js +0 -32
- package/dist/assets/icons/Share.d.ts +0 -2
- package/dist/assets/icons/Slash.d.ts +0 -2
- package/dist/assets/icons/Strikethrough.d.ts +0 -2
- package/dist/assets/icons/Strikethrough.js +0 -30
- package/dist/assets/icons/TextColor.d.ts +0 -6
- package/dist/assets/icons/TextColor.js +0 -52
- package/dist/assets/icons/Today.d.ts +0 -2
- package/dist/assets/icons/Today.js +0 -30
- package/dist/assets/icons/Trash.d.ts +0 -2
- package/dist/assets/icons/Underlined.d.ts +0 -2
- package/dist/assets/icons/Underlined.js +0 -32
- package/dist/assets/icons/Upload.d.ts +0 -2
- package/dist/assets/icons/Upload.js +0 -39
- package/dist/assets/icons/User.d.ts +0 -2
- package/dist/assets/icons/Visibility.d.ts +0 -2
- package/dist/assets/icons/Visibility.js +0 -30
- package/dist/assets/icons/VisibilityOff.d.ts +0 -2
- package/dist/assets/icons/VisibilityOff.js +0 -30
- package/dist/assets/icons/WarningFilled.d.ts +0 -2
- package/dist/assets/icons/WarningFilled.js +0 -32
- package/dist/assets/icons/WarningOutlined.d.ts +0 -2
- package/dist/assets/locales/en/translation.json.js +0 -147
- package/dist/assets/locales/sl/translation.json.js +0 -145
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +0 -16
- package/dist/components/Breadcrumbs/Breadcrumbs.js +0 -112
- package/dist/components/Breadcrumbs/breadcrumbs.cva.d.ts +0 -45
- package/dist/components/Breadcrumbs/breadcrumbs.cva.js +0 -27
- package/dist/components/Menu/Menu.d.ts +0 -21
- package/dist/components/Menu/Menu.js +0 -27
- package/dist/components/Menu/MenuDesktop.d.ts +0 -2
- package/dist/components/Menu/MenuDesktop.js +0 -48
- package/dist/components/Menu/MenuItem.d.ts +0 -3
- package/dist/components/Menu/MenuItem.js +0 -46
- package/dist/components/Menu/MenuMobile.d.ts +0 -2
- package/dist/components/Menu/MenuMobile.js +0 -142
- package/dist/components/Menu/MenuPopover.d.ts +0 -5
- package/dist/components/Menu/MenuPopover.js +0 -121
- package/dist/components/Menu/menu.cva.d.ts +0 -39
- package/dist/components/Menu/menu.cva.js +0 -34
- package/dist/components/buttons/Button/Button.d.ts +0 -28
- package/dist/components/buttons/Button/Button.js +0 -66
- package/dist/components/buttons/Button/button.cva.d.ts +0 -99
- package/dist/components/buttons/Button/button.cva.js +0 -661
- package/dist/components/buttons/IconButton/IconButton.d.ts +0 -11
- package/dist/components/buttons/IconButton/IconButton.js +0 -51
- package/dist/components/buttons/InlineIconButton/InlineIconButton.d.ts +0 -13
- package/dist/components/buttons/InlineIconButton/InlineIconButton.js +0 -15
- package/dist/components/buttons/PillButton/PillButton.d.ts +0 -12
- package/dist/components/buttons/PillButton/PillButton.js +0 -72
- package/dist/components/buttons/PillButton/pillButton.cva.d.ts +0 -40
- package/dist/components/buttons/PillButton/pillButton.cva.js +0 -264
- package/dist/components/buttons/SplitButton/SplitButton.d.ts +0 -12
- package/dist/components/buttons/SplitButton/SplitButton.js +0 -123
- package/dist/components/buttons/TextButton/TextButton.d.ts +0 -12
- package/dist/components/buttons/TextButton/TextButton.js +0 -36
- package/dist/components/buttons/ToggleButton/ToggleButton.d.ts +0 -9
- package/dist/components/buttons/ToggleButton/ToggleButton.js +0 -34
- package/dist/components/buttons/shared/ButtonContent.d.ts +0 -14
- package/dist/components/buttons/shared/ButtonContent.js +0 -37
- package/dist/components/buttons/shared/buttonContent.cva.d.ts +0 -8
- package/dist/components/buttons/shared/buttonContent.cva.js +0 -30
- package/dist/components/inputs/Checkbox/Checkbox.d.ts +0 -20
- package/dist/components/inputs/Checkbox/Checkbox.js +0 -236
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.d.ts +0 -9
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +0 -26
- package/dist/components/inputs/Checkbox/CheckboxGroup.d.ts +0 -26
- package/dist/components/inputs/Checkbox/CheckboxGroup.js +0 -392
- package/dist/components/inputs/Checkbox/checkbox.cva.d.ts +0 -94
- package/dist/components/inputs/Checkbox/checkbox.cva.js +0 -161
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +0 -40
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +0 -422
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +0 -45
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +0 -883
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +0 -40
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +0 -382
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +0 -28
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +0 -644
- package/dist/components/inputs/DateTime/shared/Calendar.d.ts +0 -29
- package/dist/components/inputs/DateTime/shared/Calendar.js +0 -177
- package/dist/components/inputs/DateTime/shared/CalendarCell.d.ts +0 -22
- package/dist/components/inputs/DateTime/shared/CalendarCell.js +0 -145
- package/dist/components/inputs/DateTime/shared/CalendarGrid.d.ts +0 -27
- package/dist/components/inputs/DateTime/shared/CalendarGrid.js +0 -54
- package/dist/components/inputs/DateTime/shared/CalendarHeader.d.ts +0 -18
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +0 -121
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.d.ts +0 -17
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +0 -177
- package/dist/components/inputs/DateTime/shared/DateField.d.ts +0 -21
- package/dist/components/inputs/DateTime/shared/DateField.js +0 -156
- package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +0 -45
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +0 -197
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.d.ts +0 -28
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +0 -124
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.d.ts +0 -18
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +0 -101
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.d.ts +0 -8
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +0 -27
- package/dist/components/inputs/DateTime/shared/MonthPicker.d.ts +0 -11
- package/dist/components/inputs/DateTime/shared/MonthPicker.js +0 -135
- package/dist/components/inputs/DateTime/shared/RangeCalendar.d.ts +0 -26
- package/dist/components/inputs/DateTime/shared/RangeCalendar.js +0 -209
- package/dist/components/inputs/DateTime/shared/TimeField.d.ts +0 -12
- package/dist/components/inputs/DateTime/shared/TimeField.js +0 -38
- package/dist/components/inputs/DateTime/shared/TimePickerForm.d.ts +0 -10
- package/dist/components/inputs/DateTime/shared/TimePickerForm.js +0 -329
- package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +0 -24
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +0 -242
- package/dist/components/inputs/DateTime/shared/YearPicker.d.ts +0 -12
- package/dist/components/inputs/DateTime/shared/YearPicker.js +0 -151
- package/dist/components/inputs/DateTime/shared/datePicker.types.d.ts +0 -5
- package/dist/components/inputs/DateTime/shared/datePickerInput.cva.d.ts +0 -16
- package/dist/components/inputs/DateTime/shared/datePickerInput.cva.js +0 -16
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.d.ts +0 -15
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +0 -32
- package/dist/components/inputs/DateTime/shared/dateSegment.utils.d.ts +0 -2
- package/dist/components/inputs/DateTime/shared/dateSegment.utils.spec.d.ts +0 -1
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.d.ts +0 -41
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.js +0 -99
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.spec.d.ts +0 -1
- package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.d.ts +0 -2
- package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.js +0 -33
- package/dist/components/inputs/File/FileUpload.d.ts +0 -4
- package/dist/components/inputs/File/FileUpload.js +0 -253
- package/dist/components/inputs/File/FileUploadContainer.d.ts +0 -3
- package/dist/components/inputs/File/FileUploadContainer.js +0 -22
- package/dist/components/inputs/File/InputUpload.d.ts +0 -4
- package/dist/components/inputs/File/InputUpload.js +0 -157
- package/dist/components/inputs/File/fileUpload.types.d.ts +0 -96
- package/dist/components/inputs/File/index.d.ts +0 -9
- package/dist/components/inputs/File/inputUpload.types.d.ts +0 -37
- package/dist/components/inputs/File/inputUpload.types.js +0 -9
- package/dist/components/inputs/File/shared/FileCard.d.ts +0 -9
- package/dist/components/inputs/File/shared/FileCard.js +0 -121
- package/dist/components/inputs/File/shared/FileCardList.d.ts +0 -9
- package/dist/components/inputs/File/shared/FileCardList.js +0 -60
- package/dist/components/inputs/File/shared/FileUploadContent.d.ts +0 -10
- package/dist/components/inputs/File/shared/FileUploadContent.js +0 -208
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.d.ts +0 -9
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +0 -58
- package/dist/components/inputs/File/shared/FileUploadContentError.d.ts +0 -11
- package/dist/components/inputs/File/shared/FileUploadContentError.js +0 -113
- package/dist/components/inputs/File/shared/FileUploadContentFilled.d.ts +0 -11
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +0 -118
- package/dist/components/inputs/File/shared/FileUploadContentLoading.d.ts +0 -9
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +0 -80
- package/dist/components/inputs/File/shared/InputUploadContent.d.ts +0 -9
- package/dist/components/inputs/File/shared/InputUploadContent.js +0 -169
- package/dist/components/inputs/File/shared/InputUploadFilled.d.ts +0 -8
- package/dist/components/inputs/File/shared/InputUploadFilled.js +0 -69
- package/dist/components/inputs/File/shared/ProgressBar.d.ts +0 -6
- package/dist/components/inputs/File/shared/ProgressBar.js +0 -33
- package/dist/components/inputs/File/shared/fileUpload.cva.d.ts +0 -17
- package/dist/components/inputs/File/shared/fileUpload.cva.js +0 -42
- package/dist/components/inputs/File/shared/inputUploadButton.cva.d.ts +0 -27
- package/dist/components/inputs/File/shared/inputUploadButton.cva.js +0 -39
- package/dist/components/inputs/File/shared/progressBar.cva.d.ts +0 -38
- package/dist/components/inputs/File/shared/progressBar.cva.js +0 -28
- package/dist/components/inputs/FormField/FormField.d.ts +0 -20
- package/dist/components/inputs/FormField/FormField.js +0 -127
- package/dist/components/inputs/FormField/FormFieldError.d.ts +0 -7
- package/dist/components/inputs/FormField/FormFieldError.js +0 -33
- package/dist/components/inputs/FormField/FormFieldHeader.d.ts +0 -14
- package/dist/components/inputs/FormField/FormFieldHeader.js +0 -97
- package/dist/components/inputs/FormField/FormFieldHeaderClose.d.ts +0 -5
- package/dist/components/inputs/FormField/FormFieldHeaderClose.js +0 -41
- package/dist/components/inputs/FormField/FormFieldHelper.d.ts +0 -8
- package/dist/components/inputs/FormField/FormFieldHelper.js +0 -34
- package/dist/components/inputs/FormField/FormFieldLabel.d.ts +0 -13
- package/dist/components/inputs/FormField/FormFieldLabel.js +0 -59
- package/dist/components/inputs/FormField/formFieldError.cva.d.ts +0 -13
- package/dist/components/inputs/FormField/formFieldError.cva.js +0 -14
- package/dist/components/inputs/FormField/formFieldHeader.cva.d.ts +0 -13
- package/dist/components/inputs/FormField/formFieldHeader.cva.js +0 -14
- package/dist/components/inputs/FormField/formFieldHelper.cva.d.ts +0 -13
- package/dist/components/inputs/FormField/formFieldHelper.cva.js +0 -14
- package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +0 -23
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +0 -492
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +0 -45
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +0 -571
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +0 -35
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +0 -337
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.d.ts +0 -7
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +0 -62
- package/dist/components/inputs/Input/TextArea/TextArea.cva.d.ts +0 -8
- package/dist/components/inputs/Input/TextArea/TextArea.cva.js +0 -5
- package/dist/components/inputs/Input/TextArea/TextArea.d.ts +0 -18
- package/dist/components/inputs/Input/TextArea/TextArea.js +0 -345
- package/dist/components/inputs/Input/TextInput/TextInput.d.ts +0 -23
- package/dist/components/inputs/Input/TextInput/TextInput.js +0 -468
- package/dist/components/inputs/Input/shared/InputContent.d.ts +0 -28
- package/dist/components/inputs/Input/shared/InputContent.js +0 -211
- package/dist/components/inputs/Input/shared/numberStatic.utils.d.ts +0 -1
- package/dist/components/inputs/Input/shared/numberStatic.utils.js +0 -7
- package/dist/components/inputs/Inputs/Form.d.ts +0 -26
- package/dist/components/inputs/Inputs/Form.js +0 -73
- package/dist/components/inputs/Inputs/InputItem.d.ts +0 -67
- package/dist/components/inputs/Inputs/InputItem.js +0 -112
- package/dist/components/inputs/Inputs/Inputs.d.ts +0 -10
- package/dist/components/inputs/Inputs/Inputs.js +0 -43
- package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +0 -22
- package/dist/components/inputs/RadioGroup/RadioGroup.js +0 -371
- package/dist/components/inputs/RadioGroup/radio.cva.d.ts +0 -62
- package/dist/components/inputs/RadioGroup/radio.cva.js +0 -85
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +0 -12
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +0 -165
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +0 -4
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +0 -176
- package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +0 -39
- package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +0 -15
- package/dist/components/inputs/Selection/Select/QuerySelect.js +0 -172
- package/dist/components/inputs/Selection/Select/Select.d.ts +0 -12
- package/dist/components/inputs/Selection/Select/Select.js +0 -235
- package/dist/components/inputs/Selection/shared/SelectBase.d.ts +0 -37
- package/dist/components/inputs/Selection/shared/SelectBase.js +0 -82
- package/dist/components/inputs/Selection/shared/SelectDesktop.d.ts +0 -5
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +0 -419
- package/dist/components/inputs/Selection/shared/SelectInput.d.ts +0 -15
- package/dist/components/inputs/Selection/shared/SelectInput.js +0 -469
- package/dist/components/inputs/Selection/shared/SelectInputTags.d.ts +0 -12
- package/dist/components/inputs/Selection/shared/SelectInputTags.js +0 -105
- package/dist/components/inputs/Selection/shared/SelectListBox.d.ts +0 -9
- package/dist/components/inputs/Selection/shared/SelectListBox.js +0 -75
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.d.ts +0 -7
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +0 -104
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.d.ts +0 -4
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +0 -88
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.d.ts +0 -6
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +0 -89
- package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.d.ts +0 -5
- package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +0 -76
- package/dist/components/inputs/Selection/shared/SelectMobile.d.ts +0 -5
- package/dist/components/inputs/Selection/shared/SelectMobile.js +0 -127
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.d.ts +0 -9
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +0 -47
- package/dist/components/inputs/Selection/shared/querySelect.utils.d.ts +0 -15
- package/dist/components/inputs/Selection/shared/querySelect.utils.js +0 -44
- package/dist/components/inputs/Selection/shared/select.context.d.ts +0 -32
- package/dist/components/inputs/Selection/shared/select.context.js +0 -231
- package/dist/components/inputs/Selection/shared/select.types.d.ts +0 -64
- package/dist/components/inputs/Selection/shared/selectDesktop.cva.d.ts +0 -6
- package/dist/components/inputs/Selection/shared/selectDesktop.cva.js +0 -5
- package/dist/components/inputs/Selection/shared/selectInput.cva.d.ts +0 -12
- package/dist/components/inputs/Selection/shared/selectInput.cva.js +0 -8
- package/dist/components/inputs/Selection/shared/selectItem.cva.d.ts +0 -16
- package/dist/components/inputs/Selection/shared/selectItem.cva.js +0 -24
- package/dist/components/inputs/Selection/shared/staticSelect.utils.d.ts +0 -23
- package/dist/components/inputs/Selection/shared/staticSelect.utils.js +0 -54
- package/dist/components/inputs/Selection/shared/staticSelect.utils.spec.d.ts +0 -1
- package/dist/components/inputs/Selection/shared/useSelectItems.d.ts +0 -23
- package/dist/components/inputs/Selection/shared/useSelectItems.js +0 -84
- package/dist/components/inputs/Skeleton/InputFrame.d.ts +0 -83
- package/dist/components/inputs/Skeleton/InputFrame.js +0 -242
- package/dist/components/inputs/Slider/Slider.d.ts +0 -19
- package/dist/components/inputs/Slider/Slider.js +0 -285
- package/dist/components/inputs/TextEditor/TextEditor.d.ts +0 -22
- package/dist/components/inputs/TextEditor/TextEditor.js +0 -199
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.d.ts +0 -7
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +0 -44
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.d.ts +0 -10
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +0 -128
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.d.ts +0 -2
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +0 -221
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.d.ts +0 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +0 -106
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.d.ts +0 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +0 -58
- package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.d.ts +0 -6
- package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +0 -79
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.d.ts +0 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +0 -60
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.d.ts +0 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +0 -104
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.d.ts +0 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +0 -141
- package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.d.ts +0 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +0 -157
- package/dist/components/inputs/TextEditor/textEditor.types.d.ts +0 -5
- package/dist/components/inputs/TextEditor/textEditor.types.js +0 -40
- package/dist/components/inputs/Toggle/Toggle.d.ts +0 -16
- package/dist/components/inputs/Toggle/Toggle.js +0 -234
- package/dist/components/inputs/Toggle/toggle.cva.d.ts +0 -19
- package/dist/components/inputs/Toggle/toggle.cva.js +0 -35
- package/dist/components/inputs/shared/CheckContent.d.ts +0 -9
- package/dist/components/inputs/shared/CheckContent.js +0 -29
- package/dist/components/inputs/shared/InputClear.d.ts +0 -10
- package/dist/components/inputs/shared/InputClear.js +0 -115
- package/dist/components/inputs/shared/TooltipWrapper.d.ts +0 -10
- package/dist/components/inputs/shared/TooltipWrapper.js +0 -60
- package/dist/components/inputs/shared/form.binding.d.ts +0 -27
- package/dist/components/inputs/shared/form.binding.js +0 -57
- package/dist/components/inputs/shared/form.types.d.ts +0 -13
- package/dist/components/inputs/shared/form.types.js +0 -8
- package/dist/components/inputs/shared/input.cva.d.ts +0 -90
- package/dist/components/inputs/shared/input.cva.js +0 -334
- package/dist/components/inputs/shared/label.cva.d.ts +0 -19
- package/dist/components/inputs/shared/label.cva.js +0 -74
- package/dist/components/inputs/shared/tooltipWrapper.cva.d.ts +0 -8
- package/dist/components/inputs/shared/tooltipWrapper.cva.js +0 -5
- package/dist/components/inputs/shared/useStaticInputHandoff.d.ts +0 -15
- package/dist/components/inputs/shared/useStaticInputHandoff.js +0 -112
- package/dist/components/navigation/Accordion/Accordion.d.ts +0 -3
- package/dist/components/navigation/Accordion/Accordion.js +0 -34
- package/dist/components/navigation/Accordion/AccordionItem.d.ts +0 -2
- package/dist/components/navigation/Accordion/AccordionItem.js +0 -63
- package/dist/components/navigation/Accordion/accordion.cva.d.ts +0 -110
- package/dist/components/navigation/Accordion/accordion.cva.js +0 -129
- package/dist/components/navigation/Accordion/accordion.types.d.ts +0 -52
- package/dist/components/navigation/Stepper/Stepper.d.ts +0 -2
- package/dist/components/navigation/Stepper/Stepper.js +0 -34
- package/dist/components/navigation/Stepper/StepperItem.d.ts +0 -2
- package/dist/components/navigation/Stepper/StepperItem.js +0 -126
- package/dist/components/navigation/Stepper/StepperSeparator.d.ts +0 -5
- package/dist/components/navigation/Stepper/StepperSeparator.js +0 -30
- package/dist/components/navigation/Stepper/stepper.cva.d.ts +0 -93
- package/dist/components/navigation/Stepper/stepper.cva.js +0 -116
- package/dist/components/navigation/Stepper/stepper.types.d.ts +0 -41
- package/dist/components/outline.clsx.d.ts +0 -2
- package/dist/components/outline.clsx.js +0 -6
- package/dist/components/overlays/ActionModal/ActionModal.d.ts +0 -24
- package/dist/components/overlays/ActionModal/ActionModal.js +0 -54
- package/dist/components/overlays/BottomSheet/BottomSheet.d.ts +0 -32
- package/dist/components/overlays/BottomSheet/BottomSheet.js +0 -328
- package/dist/components/overlays/BottomSheet/BottomSheetHeader.d.ts +0 -13
- package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +0 -78
- package/dist/components/overlays/Drawer/Drawer.d.ts +0 -15
- package/dist/components/overlays/Drawer/Drawer.js +0 -95
- package/dist/components/overlays/Modal/Modal.d.ts +0 -15
- package/dist/components/overlays/Modal/Modal.js +0 -55
- package/dist/components/overlays/Modal/modal.cva.d.ts +0 -37
- package/dist/components/overlays/Modal/modal.cva.js +0 -44
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.d.ts +0 -17
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +0 -45
- package/dist/components/overlays/Tooltip/Tooltip.d.ts +0 -13
- package/dist/components/overlays/Tooltip/Tooltip.js +0 -163
- package/dist/components/overlays/Tooltip/TooltipEllipsis.d.ts +0 -8
- package/dist/components/overlays/Tooltip/TooltipEllipsis.js +0 -46
- package/dist/components/overlays/Tooltip/tooltip.cva.d.ts +0 -49
- package/dist/components/overlays/Tooltip/tooltip.cva.js +0 -44
- package/dist/components/segment/Segment.d.ts +0 -4
- package/dist/components/segment/Segment.js +0 -245
- package/dist/components/segment/SegmentItem.d.ts +0 -2
- package/dist/components/segment/SegmentItem.js +0 -85
- package/dist/components/segment/segment.cva.d.ts +0 -20
- package/dist/components/segment/segment.cva.js +0 -30
- package/dist/components/segment/segment.types.d.ts +0 -36
- package/dist/components/shared/pagination/Pagination.d.ts +0 -9
- package/dist/components/shared/pagination/Pagination.js +0 -45
- package/dist/components/shared/pagination/PaginationList.d.ts +0 -15
- package/dist/components/shared/pagination/PaginationList.js +0 -210
- package/dist/components/shared/pagination/minWidth.cva.d.ts +0 -3
- package/dist/components/shared/pagination/minWidth.cva.js +0 -11
- package/dist/components/shared/popover.cva.d.ts +0 -8
- package/dist/components/shared/popover.cva.js +0 -5
- package/dist/components/status/Alert/Alert.d.ts +0 -11
- package/dist/components/status/Alert/Alert.js +0 -47
- package/dist/components/status/Alert/alert.cva.d.ts +0 -19
- package/dist/components/status/Alert/alert.cva.js +0 -67
- package/dist/components/status/Loader/Loader.d.ts +0 -5
- package/dist/components/status/Loader/Loader.js +0 -89
- package/dist/components/status/Loader/loader.cva.d.ts +0 -28
- package/dist/components/status/Loader/loader.cva.js +0 -27
- package/dist/components/status/Toast/Toast.d.ts +0 -14
- package/dist/components/status/Toast/Toast.js +0 -82
- package/dist/components/status/Toast/toast.cva.d.ts +0 -80
- package/dist/components/status/Toast/toast.cva.js +0 -211
- package/dist/components/status/Toast/useToast.d.ts +0 -13
- package/dist/components/status/Toast/useToast.js +0 -70
- package/dist/components/status/shared/status.cva.d.ts +0 -30
- package/dist/components/status/shared/status.cva.js +0 -65
- package/dist/components/table/CellText.d.ts +0 -8
- package/dist/components/table/CellText.js +0 -21
- package/dist/components/table/ColumnConfig.d.ts +0 -10
- package/dist/components/table/ColumnConfig.js +0 -187
- package/dist/components/table/HeaderText.d.ts +0 -8
- package/dist/components/table/HeaderText.js +0 -20
- package/dist/components/table/InfiniteTable.d.ts +0 -9
- package/dist/components/table/InfiniteTable.js +0 -28
- package/dist/components/table/PaginatedTable.d.ts +0 -11
- package/dist/components/table/PaginatedTable.js +0 -94
- package/dist/components/table/Table.d.ts +0 -37
- package/dist/components/table/Table.js +0 -267
- package/dist/components/table/table.cva.d.ts +0 -65
- package/dist/components/table/table.cva.js +0 -49
- package/dist/components/text/Link/Link.d.ts +0 -9
- package/dist/components/text/Link/Link.js +0 -33
- package/dist/components/text/Link/link.cva.d.ts +0 -12
- package/dist/components/text/Link/link.cva.js +0 -12
- package/dist/components/text/Pill/Pill.d.ts +0 -15
- package/dist/components/text/Pill/Pill.js +0 -44
- package/dist/components/text/Tag/Tag.d.ts +0 -15
- package/dist/components/text/Tag/Tag.js +0 -43
- package/dist/components/text/Tag/tag.cva.d.ts +0 -16
- package/dist/components/text/Tag/tag.cva.js +0 -55
- package/dist/components/text/Typography/Typography.d.ts +0 -11
- package/dist/components/text/Typography/Typography.js +0 -16
- package/dist/components/text/Typography/typography.cva.d.ts +0 -49
- package/dist/components/text/Typography/typography.cva.js +0 -129
- package/dist/config/confirmation.context.d.ts +0 -20
- package/dist/config/confirmation.context.js +0 -80
- package/dist/config/i18n.d.ts +0 -313
- package/dist/config/i18n.js +0 -10
- package/dist/config/link.context.d.ts +0 -10
- package/dist/config/link.context.js +0 -35
- package/dist/config/router.context.d.ts +0 -14
- package/dist/config/router.context.js +0 -63
- package/dist/config/theme.context.d.ts +0 -17
- package/dist/config/theme.context.js +0 -67
- package/dist/config/uiConfig.context.d.ts +0 -68
- package/dist/config/uiConfig.context.js +0 -125
- package/dist/config/uiOverrides.context.d.ts +0 -205
- package/dist/config/uiOverrides.context.js +0 -113
- package/dist/helpers/dynamicColumns.d.ts +0 -44
- package/dist/helpers/dynamicColumns.js +0 -275
- package/dist/helpers/dynamicInputs.d.ts +0 -86
- package/dist/helpers/dynamicInputs.js +0 -193
- package/dist/hooks/useAutosave.d.ts +0 -10
- package/dist/hooks/useAutosave.js +0 -87
- package/dist/hooks/useBreakpoint.d.ts +0 -3
- package/dist/hooks/useBreakpoint.js +0 -43
- package/dist/hooks/useDebounceCallback.d.ts +0 -6
- package/dist/hooks/useDebounceCallback.js +0 -25
- package/dist/hooks/useDeepCompare.d.ts +0 -4
- package/dist/hooks/useDeepCompare.js +0 -23
- package/dist/hooks/useFilters.d.ts +0 -8
- package/dist/hooks/useFilters.js +0 -188
- package/dist/hooks/useForm.d.ts +0 -42
- package/dist/hooks/useForm.js +0 -101
- package/dist/hooks/useFormAutosave.d.ts +0 -14
- package/dist/hooks/useFormAutosave.js +0 -73
- package/dist/hooks/useFormAutosave.spec.d.ts +0 -1
- package/dist/hooks/useIntersectionObserver.d.ts +0 -8
- package/dist/hooks/useIntersectionObserver.js +0 -98
- package/dist/hooks/useKeyInteractions.d.ts +0 -20
- package/dist/hooks/useKeyInteractions.js +0 -54
- package/dist/hooks/useKeyInteractions.spec.d.ts +0 -1
- package/dist/hooks/useLocalStorage.d.ts +0 -11
- package/dist/hooks/useLocalStorage.js +0 -70
- package/dist/hooks/useLongPressRepeat.d.ts +0 -9
- package/dist/hooks/useLongPressRepeat.js +0 -29
- package/dist/hooks/usePagination.d.ts +0 -7
- package/dist/hooks/usePagination.js +0 -62
- package/dist/hooks/useQueryAutocomplete.d.ts +0 -13
- package/dist/hooks/useQueryAutocomplete.js +0 -103
- package/dist/hooks/useScrollableListBox.d.ts +0 -3
- package/dist/hooks/useScrollableListBox.js +0 -47
- package/dist/hooks/useSorting.d.ts +0 -6
- package/dist/hooks/useSorting.js +0 -80
- package/dist/hooks/useStateAndRef.d.ts +0 -4
- package/dist/hooks/useStateAndRef.js +0 -31
- package/dist/hooks/useTableColumnConfig.d.ts +0 -16
- package/dist/hooks/useTableColumnConfig.js +0 -133
- package/dist/hooks/useTableNav.d.ts +0 -84
- package/dist/hooks/useTableNav.js +0 -383
- package/dist/hooks/useTranslationMemo.d.ts +0 -4
- package/dist/hooks/useTranslationMemo.js +0 -32
- package/dist/types/common.d.ts +0 -12
- package/dist/types/error-handling.d.ts +0 -6
- package/dist/types/react-query.d.ts +0 -6
- package/dist/utils/array.utils.d.ts +0 -3
- package/dist/utils/array.utils.js +0 -10
- package/dist/utils/array.utils.spec.d.ts +0 -1
- package/dist/utils/compoundMapper.d.ts +0 -19
- package/dist/utils/compoundMapper.js +0 -13
- package/dist/utils/compoundMapper.spec.d.ts +0 -1
- package/dist/utils/date-time.utils.d.ts +0 -42
- package/dist/utils/date-time.utils.js +0 -192
- package/dist/utils/date-time.utils.spec.d.ts +0 -1
- package/dist/utils/date.utils.d.ts +0 -5
- package/dist/utils/date.utils.js +0 -19
- package/dist/utils/date.utils.spec.d.ts +0 -1
- package/dist/utils/dom.utils.d.ts +0 -5
- package/dist/utils/dom.utils.js +0 -19
- package/dist/utils/file.utils.d.ts +0 -13
- package/dist/utils/file.utils.js +0 -50
- package/dist/utils/intl.utils.d.ts +0 -7
- package/dist/utils/intl.utils.js +0 -38
- package/dist/utils/intl.utils.spec.d.ts +0 -1
- package/dist/utils/isEqual.d.ts +0 -1
- package/dist/utils/isEqual.js +0 -59
- package/dist/utils/object.utils.d.ts +0 -10
- package/dist/utils/object.utils.js +0 -38
- package/dist/utils/queries.utils.d.ts +0 -4
- package/dist/utils/queries.utils.js +0 -9
- package/dist/utils/query.utils.d.ts +0 -4
- package/dist/utils/query.utils.js +0 -8
- package/dist/utils/rest.utils.d.ts +0 -10
- package/dist/utils/rest.utils.js +0 -33
- package/dist/utils/routing.utils.d.ts +0 -4
- package/dist/utils/routing.utils.js +0 -25
- package/dist/utils/string.utils.d.ts +0 -4
- package/dist/utils/string.utils.js +0 -12
- package/dist/utils/style-merge.util.d.ts +0 -43
- package/dist/utils/style-merge.util.js +0 -233
- package/dist/utils/style-merge.util.spec.d.ts +0 -1
- package/dist/utils/zod.utils.d.ts +0 -20
- package/dist/utils/zod.utils.js +0 -24
- /package/dist/styles/{editor.css → styles/editor.css} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ToggleButton, type ToggleButtonProps, type ToggleButtonRenderProps } from "react-aria-components";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{createContext as t,forwardRef as n,useContext as r,useMemo as i,useRef as a}from"react";import{filterDOMProps as o,mergeProps as s,mergeRefs as c,useLayoutEffect as l,useObjectRef as u}from"@react-aria/utils";import{mergeProps as d,useFocusRing as f,useHover as p,useToggleButton as m,useToggleButtonGroupItem as h}from"react-aria";import{useToggleState as g}from"react-stately";const _=Symbol(`default`);function v(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return i(()=>{let e,i,u;return e=typeof t==`function`?t({...c,defaultClassName:a}):t,i=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:o}):r??o,{className:e??a,style:i||s?{...s,...i}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,a,o,s,c,l])}function y(e,t){let n=r(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||_;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function b(e,t,n){let{ref:r,...a}=y(n,e.slot)||{},o=u(i(()=>c(t,r),[t,r])),l=s(a,e);return`style`in a&&a.style&&`style`in e&&e.style&&(l.style=typeof a.style==`function`||typeof e.style==`function`?t=>{let n=typeof a.style==`function`?a.style(t):a.style,r={...t.defaultStyle,...n},i=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...i}}:{...a.style,...e.style}),[l,o]}function x(t,n,r){let{render:o,...s}=n,u=a(null),d=i(()=>c(r,u),[r,u]);l(()=>{},[t,o]);let f={...s,ref:d};return o?o(f,void 0):e.createElement(t,f)}const S={},C=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=S[t];return r||(r=n(x.bind(null,t)),S[t]=r),r}}),w=t({isSelected:!1}),T=t(null),E=t({}),D=n(function(t,n){[t,n]=b(t,n,E);let i=r(T),a=g(i&&t.id!=null?{isSelected:i.selectedKeys.has(t.id),onChange(e){i.setSelected(t.id,e)}}:t),{buttonProps:s,isPressed:c,isSelected:l,isDisabled:u}=i&&t.id!=null?h({...t,id:t.id},i,n):m({...t,id:t.id==null?void 0:String(t.id)},a,n),{focusProps:_,isFocused:y,isFocusVisible:x}=f(t),{hoverProps:S,isHovered:D}=p({...t,isDisabled:u}),O=v({...t,id:void 0,values:{isHovered:D,isPressed:c,isFocused:y,isSelected:a.isSelected,isFocusVisible:x,isDisabled:u,state:a},defaultClassName:`react-aria-ToggleButton`}),k=o(t,{global:!0});return delete k.id,delete k.onClick,e.createElement(C.button,{...d(k,O,s,_,S),ref:n,slot:t.slot||void 0,"data-focused":y||void 0,"data-disabled":u||void 0,"data-pressed":c||void 0,"data-selected":l||void 0,"data-hovered":D||void 0,"data-focus-visible":x||void 0},e.createElement(w.Provider,{value:{isSelected:l}},O.children))});export{D as ToggleButton};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{createContext as t,forwardRef as n,useContext as r,useMemo as i,useRef as a}from"react";import{filterDOMProps as o,mergeProps as s,mergeRefs as c,useLayoutEffect as l,useObjectRef as u}from"@react-aria/utils";import"react-dom";import{useToggleButtonGroup as d}from"react-aria";import{useToggleGroupState as f}from"react-stately";const p=Symbol(`default`);function m(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return i(()=>{let e,i,u;return e=typeof t==`function`?t({...c,defaultClassName:a}):t,i=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:o}):r??o,{className:e??a,style:i||s?{...s,...i}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,a,o,s,c,l])}function h(e,t){let n=r(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||p;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function g(e,t,n){let{ref:r,...a}=h(n,e.slot)||{},o=u(i(()=>c(t,r),[t,r])),l=s(a,e);return`style`in a&&a.style&&`style`in e&&e.style&&(l.style=typeof a.style==`function`||typeof e.style==`function`?t=>{let n=typeof a.style==`function`?a.style(t):a.style,r={...t.defaultStyle,...n},i=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...i}}:{...a.style,...e.style}),[l,o]}function _(t,n,r){let{render:o,...s}=n,u=a(null),d=i(()=>c(r,u),[r,u]);l(()=>{},[t,o]);let f={...s,ref:d};return o?o(f,void 0):e.createElement(t,f)}const v={},y=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=v[t];return r||(r=n(_.bind(null,t)),v[t]=r),r}}),b=t(null);function x(t){let n=a({});return e.createElement(b.Provider,{value:n},t.children)}const S=t({}),C=t(null),w=n(function(t,n){[t,n]=g(t,n,S);let r=f(t),{groupProps:i}=d(t,r,n),a=m({...t,values:{orientation:t.orientation||`horizontal`,isDisabled:r.isDisabled,state:r},defaultClassName:`react-aria-ToggleButtonGroup`}),c=o(t,{global:!0});return e.createElement(y.div,{...s(c,a,i),ref:n,slot:t.slot||void 0,"data-orientation":t.orientation||`horizontal`,"data-disabled":t.isDisabled||void 0},e.createElement(C.Provider,{value:r},e.createElement(x,null,a.children)))});export{w as ToggleButtonGroup};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { t as Button } from "../Button-Dlm1NyTJ.js";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/buttons/ToggleButton/ToggleButton.tsx
|
|
5
|
+
const ToggleButton = (t0) => {
|
|
6
|
+
const $ = c(6);
|
|
7
|
+
let children;
|
|
8
|
+
let props;
|
|
9
|
+
if ($[0] !== t0) {
|
|
10
|
+
({children, ...props} = t0);
|
|
11
|
+
$[0] = t0;
|
|
12
|
+
$[1] = children;
|
|
13
|
+
$[2] = props;
|
|
14
|
+
} else {
|
|
15
|
+
children = $[1];
|
|
16
|
+
props = $[2];
|
|
17
|
+
}
|
|
18
|
+
let t1;
|
|
19
|
+
if ($[3] !== children || $[4] !== props) {
|
|
20
|
+
t1 = /* @__PURE__ */ jsx(Button, {
|
|
21
|
+
...props,
|
|
22
|
+
toggle: true,
|
|
23
|
+
variant: "outlined",
|
|
24
|
+
color: "primary",
|
|
25
|
+
children
|
|
26
|
+
});
|
|
27
|
+
$[3] = children;
|
|
28
|
+
$[4] = props;
|
|
29
|
+
$[5] = t1;
|
|
30
|
+
} else t1 = $[5];
|
|
31
|
+
return t1;
|
|
32
|
+
};
|
|
33
|
+
//#endregion
|
|
34
|
+
export { ToggleButton };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Toolbar, type ToolbarProps, type ToolbarRenderProps } from "react-aria-components";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{createContext as t,forwardRef as n,useContext as r,useMemo as i,useRef as a,useState as o}from"react";import{filterDOMProps as s,mergeProps as c,mergeRefs as l,nodeContains as u,useLayoutEffect as d,useObjectRef as f}from"@react-aria/utils";import{useLocale as p}from"@react-aria/i18n";import{createFocusManager as m}from"@react-aria/focus";const h=Symbol(`default`);function g(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return i(()=>{let e,i,u;return e=typeof t==`function`?t({...c,defaultClassName:a}):t,i=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:o}):r??o,{className:e??a,style:i||s?{...s,...i}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,a,o,s,c,l])}function _(e,t){let n=r(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||h;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function v(e,t,n){let{ref:r,...a}=_(n,e.slot)||{},o=f(i(()=>l(t,r),[t,r])),s=c(a,e);return`style`in a&&a.style&&`style`in e&&e.style&&(s.style=typeof a.style==`function`||typeof e.style==`function`?t=>{let n=typeof a.style==`function`?a.style(t):a.style,r={...t.defaultStyle,...n},i=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...i}}:{...a.style,...e.style}),[s,o]}function y(t,n,r){let{render:o,...s}=n,c=a(null),u=i(()=>l(r,c),[r,c]);d(()=>{},[t,o]);let f={...s,ref:u};return o?o(f,void 0):e.createElement(t,f)}const b={},x=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=b[t];return r||(r=n(y.bind(null,t)),b[t]=r),r}});function S(e,t){let{"aria-label":n,"aria-labelledby":r,orientation:i=`horizontal`}=e,[c,l]=o(!1);d(()=>{l(!!(t.current&&t.current.parentElement?.closest(`[role="toolbar"]`)))});let{direction:f}=p(),h=f===`rtl`&&i===`horizontal`,g=m(t),_=e=>{if(u(e.currentTarget,e.target)){if(i===`horizontal`&&e.key===`ArrowRight`||i===`vertical`&&e.key===`ArrowDown`)h?g.focusPrevious():g.focusNext();else if(i===`horizontal`&&e.key===`ArrowLeft`||i===`vertical`&&e.key===`ArrowUp`)h?g.focusNext():g.focusPrevious();else if(e.key===`Tab`){e.stopPropagation(),v.current=document.activeElement,e.shiftKey?g.focusFirst():g.focusLast();return}else return;e.stopPropagation(),e.preventDefault()}},v=a(null),y=e=>{!u(e.currentTarget,e.relatedTarget)&&!v.current&&(v.current=e.target)},b=e=>{if(v.current&&!u(e.currentTarget,e.relatedTarget)&&u(t.current,e.target)){var n;(n=v.current)==null||n.focus(),v.current=null}};return{toolbarProps:{...s(e,{labelable:!0}),role:c?`group`:`toolbar`,"aria-orientation":i,"aria-label":n,"aria-labelledby":n==null?r:void 0,onKeyDownCapture:c?void 0:_,onFocusCapture:c?void 0:b,onBlurCapture:c?void 0:y}}}const C=t({}),w=n(function(t,n){[t,n]=v(t,n,C);let{toolbarProps:r}=S(t,n),i=g({...t,values:{orientation:t.orientation||`horizontal`},defaultClassName:`react-aria-Toolbar`}),a=s(t,{global:!0});return delete a.id,e.createElement(x.div,{...c(a,i,r),ref:n,slot:t.slot||void 0,"data-orientation":t.orientation||`horizontal`},i.children)});export{w as Toolbar};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tooltip, type TooltipProps, type TooltipRenderProps } from "react-aria-components";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{createContext as t,forwardRef as n,useContext as r,useMemo as i,useRef as a}from"react";import{filterDOMProps as o,mergeProps as s,mergeRefs as c,useEnterAnimation as l,useExitAnimation as u,useLayoutEffect as d,useObjectRef as f}from"@react-aria/utils";import"@react-aria/focus";import{OverlayContainer as p,mergeProps as m,useOverlayPosition as h,useTooltip as g}from"react-aria";import{useTooltipTriggerState as _}from"react-stately";const v=Symbol(`default`);function y(e){let{className:t,style:n,children:r,defaultClassName:a,defaultChildren:o,defaultStyle:s,values:c,render:l}=e;return i(()=>{let e,i,u;return e=typeof t==`function`?t({...c,defaultClassName:a}):t,i=typeof n==`function`?n({...c,defaultStyle:s||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:o}):r??o,{className:e??a,style:i||s?{...s,...i}:void 0,children:u??o,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,a,o,s,c,l])}function b(e,t){let n=r(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||v;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function x(e,t,n){let{ref:r,...a}=b(n,e.slot)||{},o=f(i(()=>c(t,r),[t,r])),l=s(a,e);return`style`in a&&a.style&&`style`in e&&e.style&&(l.style=typeof a.style==`function`||typeof e.style==`function`?t=>{let n=typeof a.style==`function`?a.style(t):a.style,r={...t.defaultStyle,...n},i=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...i}}:{...a.style,...e.style}),[l,o]}function S(t,n,r){let{render:o,...s}=n,l=a(null),u=i(()=>c(r,l),[r,l]);d(()=>{},[t,o]);let f={...s,ref:u};return o?o(f,void 0):e.createElement(t,f)}const C={},w=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=C[t];return r||(r=n(S.bind(null,t)),C[t]=r),r}}),T=t({placement:`bottom`}),E=t(null),D=t(null),O=n(function({UNSTABLE_portalContainer:t,...n},i){[n,i]=x(n,i,D);let a=r(E),o=_(n),s=n.isOpen!=null||n.defaultOpen!=null||!a?o:a,c=u(i,s.isOpen)||n.isExiting||!1;return!s.isOpen&&!c?null:e.createElement(p,{portalContainer:t},e.createElement(k,{...n,tooltipRef:i,isExiting:c}))});function k(t){let n=r(E),i=a(null),{overlayProps:s,arrowProps:c,placement:u,triggerAnchorPoint:d}=h({placement:t.placement||`top`,targetRef:t.triggerRef,overlayRef:t.tooltipRef,arrowRef:i,offset:t.offset,crossOffset:t.crossOffset,isOpen:n.isOpen,arrowBoundaryOffset:t.arrowBoundaryOffset,shouldFlip:t.shouldFlip,containerPadding:t.containerPadding,onClose:()=>n.close(!0)}),f=l(t.tooltipRef,!!u)||t.isEntering||!1,p=y({...t,defaultClassName:`react-aria-Tooltip`,values:{placement:u,isEntering:f,isExiting:t.isExiting,state:n}});t=m(t,s);let{tooltipProps:_}=g(t,n),v=o(t,{global:!0});return e.createElement(w.div,{...m(v,p,_),ref:t.tooltipRef,style:{...s.style,"--trigger-anchor-point":d?`${d.x}px ${d.y}px`:void 0,...p.style},"data-placement":u??void 0,"data-entering":f||void 0,"data-exiting":t.isExiting||void 0},e.createElement(T.Provider,{value:{...c,placement:u,ref:i}},p.children))}export{O as Tooltip};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { t as Tooltip } from "../Tooltip-KfGHmXdx.js";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/overlays/Tooltip/TooltipEllipsis.tsx
|
|
6
|
+
const TooltipEllipsis = (t0) => {
|
|
7
|
+
const $ = c(8);
|
|
8
|
+
const { text, children, isDisabled, isNonInteractiveTrigger } = t0;
|
|
9
|
+
const [isEllipsisActive, setIsEllipsisActive] = useState(false);
|
|
10
|
+
let t1;
|
|
11
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
12
|
+
t1 = (ref) => {
|
|
13
|
+
if (ref) setIsEllipsisActive(ref.offsetWidth < ref.scrollWidth);
|
|
14
|
+
};
|
|
15
|
+
$[0] = t1;
|
|
16
|
+
} else t1 = $[0];
|
|
17
|
+
const onContentRef = t1;
|
|
18
|
+
let t2;
|
|
19
|
+
if ($[1] !== children) {
|
|
20
|
+
t2 = children(onContentRef);
|
|
21
|
+
$[1] = children;
|
|
22
|
+
$[2] = t2;
|
|
23
|
+
} else t2 = $[2];
|
|
24
|
+
const content = t2;
|
|
25
|
+
if (isEllipsisActive && !isDisabled) {
|
|
26
|
+
let t3;
|
|
27
|
+
if ($[3] !== content || $[4] !== isDisabled || $[5] !== isNonInteractiveTrigger || $[6] !== text) {
|
|
28
|
+
t3 = /* @__PURE__ */ jsx(Tooltip, {
|
|
29
|
+
text,
|
|
30
|
+
placement: "bottom",
|
|
31
|
+
isDisabled,
|
|
32
|
+
isNonInteractiveTrigger,
|
|
33
|
+
children: content
|
|
34
|
+
});
|
|
35
|
+
$[3] = content;
|
|
36
|
+
$[4] = isDisabled;
|
|
37
|
+
$[5] = isNonInteractiveTrigger;
|
|
38
|
+
$[6] = text;
|
|
39
|
+
$[7] = t3;
|
|
40
|
+
} else t3 = $[7];
|
|
41
|
+
return t3;
|
|
42
|
+
}
|
|
43
|
+
return content;
|
|
44
|
+
};
|
|
45
|
+
//#endregion
|
|
46
|
+
export { TooltipEllipsis };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TooltipTrigger, type TooltipTriggerComponentProps } from "react-aria-components";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{createContext as t,forwardRef as n,useMemo as r,useRef as i}from"react";import{mergeRefs as a,useLayoutEffect as o}from"@react-aria/utils";import{FocusableProvider as s}from"@react-aria/focus";import{useTooltipTrigger as c}from"react-aria";import{useTooltipTriggerState as l}from"react-stately";function u({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function d(t,n,s){let{render:c,...l}=n,u=i(null),d=r(()=>a(s,u),[s,u]);o(()=>{},[t,c]);let f={...l,ref:d};return c?c(f,void 0):e.createElement(t,f)}const f={};new Proxy({},{get(e,t){if(typeof t!=`string`)return;let r=f[t];return r||(r=n(d.bind(null,t)),f[t]=r),r}});const p=t(null),m=t(null);function h(t){let n=l(t),r=i(null),{triggerProps:a,tooltipProps:o}=c(t,n,r);return e.createElement(u,{values:[[p,n],[m,{...o,triggerRef:r}]]},e.createElement(s,{...a,ref:r},t.children))}export{h as TooltipTrigger};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tree, type TreeProps, type TreeRenderProps } from "react-aria-components";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import e,{cloneElement as t,createContext as n,forwardRef as r,isValidElement as i,useCallback as a,useContext as o,useEffect as s,useMemo as c,useReducer as l,useRef as u,useState as d}from"react";import{filterDOMProps as f,inertValue as p,mergeProps as m,mergeRefs as h,useLayoutEffect as g,useLoadMoreSentinel as _,useObjectRef as v}from"@react-aria/utils";import{createPortal as y}from"react-dom";import{FocusScope as ee,ListKeyboardDelegate as b,mergeProps as x,useCollator as S,useFocusRing as C,useLocale as w,useTree as te,useTreeItem as T,useVisuallyHidden as E}from"react-aria";import{useTreeState as ne}from"react-stately";var D=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),re=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});const O=Symbol(`default`);function ie({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function k(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:o,values:s,render:l}=e;return c(()=>{let e,c,u;return e=typeof t==`function`?t({...s,defaultClassName:i}):t,c=typeof n==`function`?n({...s,defaultStyle:o||{}}):n,u=typeof r==`function`?r({...s,defaultChildren:a}):r??a,{className:e??i,style:c||o?{...o,...c}:void 0,children:u??a,"data-rac":``,render:l?e=>l(e,s):void 0}},[t,n,r,i,a,o,s,l])}function A(e,t){let n=o(e);if(t===null)return null;if(n&&typeof n==`object`&&`slots`in n&&n.slots){let e=t||O;if(!n.slots[e]){let e=new Intl.ListFormat().format(Object.keys(n.slots).map(e=>`"${e}"`)),r=t?`Invalid slot "${t}".`:`A slot prop is required.`;throw Error(`${r} Valid slot names are ${e}.`)}return n.slots[e]}return n}function j(e,t,n){let{ref:r,...i}=A(n,e.slot)||{},a=v(c(()=>h(t,r),[t,r])),o=m(i,e);return`style`in i&&i.style&&`style`in e&&e.style&&(o.style=typeof i.style==`function`||typeof e.style==`function`?t=>{let n=typeof i.style==`function`?i.style(t):i.style,r={...t.defaultStyle,...n},a=typeof e.style==`function`?e.style({...t,defaultStyle:r}):e.style;return{...r,...a}}:{...i.style,...e.style}),[o,a]}function ae(t,n,r){let{render:i,...a}=n,o=u(null),s=c(()=>h(r,o),[r,o]);g(()=>{},[t,i]);let l={...a,ref:s};return i?i(l,void 0):e.createElement(t,l)}const M={},N=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=M[t];return n||(n=r(ae.bind(null,t)),M[t]=n),n}});String(Math.round(Math.random()*1e10));const P=e.createContext(!1);typeof window<`u`&&window.document&&window.document.createElement,e.useId;function oe(){return!1}function F(){return!0}function I(e){return()=>{}}function L(){return typeof e.useSyncExternalStore==`function`?e.useSyncExternalStore(I,oe,F):o(P)}let R=e.createContext(null);const z=typeof document<`u`?e.useInsertionEffect??e.useLayoutEffect:()=>{};function se(e,t,n){let[r,i]=d(e||t),o=u(r),c=u(e!==void 0),f=e!==void 0;s(()=>{c.current,c.current=f},[f]);let p=f?e:r;z(()=>{o.current=p});let[,m]=l(()=>({}),{});return[p,a((e,...t)=>{let r=typeof e==`function`?e(o.current):e;Object.is(o.current,r)||(o.current=r,i(r),m(),n?.(r,...t))},[n])]}var B=class{get childNodes(){throw Error(`childNodes is not supported`)}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e[`aria-label`]=this[`aria-label`],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue=``,this[`aria-label`]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},V=class extends B{filter(e,t,n){let[r,i]=q(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},H=class extends B{};H.type=`header`;var U=class extends B{};U.type=`loader`;var W=class extends V{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};W.type=`item`;var G=class extends V{filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}};G.type=`section`;var K=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey==null?void 0:this.keyMap.get(this.firstKey);for(;e;)yield e,e=e.nextKey==null?void 0:this.keyMap.get(e.nextKey)}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let n=t.get(e),r=n?.firstChildKey==null?null:t.get(n.firstChildKey);for(;r;)yield r,r=r.nextKey==null?void 0:t.get(r.nextKey)}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!==`item`&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);return t?.key??null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!==`item`&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey==null?null:this.keyMap.get(this.lastKey);for(;e?.lastChildKey!=null;)e=this.keyMap.get(e.lastChildKey);return e?.key??null}getItem(e){return this.keyMap.get(e)??null}at(){throw Error(`Not implemented`)}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw Error(`Cannot add a node to a frozen collection`);e.type===`item`&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let n=t.getChildren(e.key);for(let e of n)this.addDescendants(e,t)}removeNode(e){if(this.frozen)throw Error(`Cannot remove a node to a frozen collection`);let t=this.keyMap.get(e);t!=null&&t.type===`item`&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,n=!1){if(this.frozen)throw Error(`Cannot commit a frozen collection`);this.firstKey=e,this.lastKey=t,this.frozen=!n}filter(e){let t=new this.constructor,[n,r]=q(this,t,this.firstKey,e);return t?.commit(n,r),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function q(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey?e.getItem(o.nextKey):null}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e?(a=t.getItem(e),a.nextKey=null):a=null}return[i?.key??null,a?.key??null]}var J=class{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){return this.parentNode?.isConnected||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild??=e,this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode===this&&(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}},Y=class e extends J{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof e?this.parentNode.level+ +(this.node?.type===`item`):0}getMutableNode(){return this.node==null?null:(this.isMutated||=(this.node=this.node.clone(),!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){let t=this.nextVisibleSibling,n=this.getMutableNode();if(n!=null&&(n.index=this.index,n.level=this.level,n.parentKey=this.parentNode instanceof e?this.parentNode.node?.key??null:null,n.prevKey=this.previousVisibleSibling?.node?.key??null,n.nextKey=t?.node?.key??null,n.hasChildNodes=!!this.firstChild,n.firstChildKey=this.firstVisibleChild?.node?.key??null,n.lastChildKey=this.lastVisibleChild?.node?.key??null,(n.colSpan!=null||n.colIndex!=null)&&t)){let e=(n.colIndex??n.index)+(n.colSpan??1);if(t.node!=null&&e!==t.node.colIndex){let n=t.getMutableNode();n.colIndex=e}}}setProps(e,t,n,r,i){let a,{value:o,textValue:s,id:c,...l}=e;if(this.node==null?(a=new n(c??`react-aria-${++this.ownerDocument.nodeId}`),this.node=a):a=this.getMutableNode(),l.ref=t,a.props=l,a.rendered=r,a.render=i,a.value=o,e[`aria-label`]&&(a[`aria-label`]=e[`aria-label`]),a.textValue=s||(typeof l.children==`string`?l.children:``)||e[`aria-label`]||``,c!=null&&c!==a.key)throw Error(`Cannot change the id of an item`);l.colSpan!=null&&(a.colSpan=l.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let e=this;return{get display(){return e.isHidden?`none`:``},set display(t){let n=t===`none`;if(e.isHidden!==n){(e.parentNode?.firstVisibleChild===e||e.parentNode?.lastVisibleChild===e)&&e.ownerDocument.markDirty(e.parentNode);let t=e.previousVisibleSibling,r=e.nextVisibleSibling;t&&e.ownerDocument.markDirty(t),r&&e.ownerDocument.markDirty(r),e.isHidden=n,e.ownerDocument.markDirty(e)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,t){super(t),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}},ce=class extends J{get isConnected(){return!0}createElement(e){return new Y(e,this)}getMutableCollection(){return this.nextCollection||=this.collection.clone(),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let t of e)this.addNode(t);t.addNode(e.node)}removeNode(e){for(let t of e)this.removeNode(t);e.node&&this.getMutableCollection().removeNode(e.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let e of this.dirtyNodes)e instanceof Y&&(!e.isConnected||e.isHidden)?this.removeNode(e):e.updateChildIndices();for(let e of this.dirtyNodes)e instanceof Y?(e.isConnected&&!e.isHidden&&(e.updateNode(),this.addNode(e)),e.node&&this.dirtyNodes.delete(e),e.isMutated=!1):this.dirtyNodes.delete(e);this.nextCollection&&(this.nextCollection.commit(this.firstVisibleChild?.node?.key??null,this.lastVisibleChild?.node?.key??null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null))}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}};function X(e){let{children:n,items:r,idScope:i,addIdAndValue:a,dependencies:o=[]}=e,s=c(()=>new WeakMap,o);return c(()=>{if(r&&typeof n==`function`){let e=[];for(let o of r){let r=s.get(o);if(!r){r=n(o);let e=r.props.id??o.key??o.id;if(e==null)throw Error(`Could not determine key for item`);i!=null&&(e=i+`:`+e),r=t(r,a?{key:e,id:e,value:o}:{key:e}),s.set(o,r)}e.push(r)}return e}if(typeof n!=`function`)return n},[n,r,s,i,a])}if(typeof HTMLTemplateElement<`u`){let e=Object.getOwnPropertyDescriptor(Node.prototype,`firstChild`).get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const le=n(!1);function ue(t){if(o(le))return e.createElement(e.Fragment,null,t.children);let n=e.createElement(le.Provider,{value:!0},t.children);return e.createElement(`template`,{"data-react-aria-hidden":!0},n)}
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* use-sync-external-store-shim.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
var de=D((e=>{var t=re(`react`);function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),fe=D(((e,t)=>{t.exports=de()}))();const pe=n(!1),Z=n(null);function me(t){if(o(Z))return t.content;let{collection:n,document:r}=ve(t.createCollection);return e.createElement(e.Fragment,null,e.createElement(ue,null,e.createElement(Z.Provider,{value:r},t.content)),e.createElement(he,{render:t.children,collection:n}))}function he({collection:e,render:t}){return t(e)}function ge(e,t,n){let r=L(),i=u(r);i.current=r;let o=a(()=>i.current?n():t(),[t,n]);return(0,fe.useSyncExternalStore)(e,o)}const _e=typeof e.useSyncExternalStore==`function`?e.useSyncExternalStore:ge;function ve(e){let[t]=d(()=>new ce(e?.()||new K)),n=a(e=>t.subscribe(e),[t]),r=a(()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e},[t]),i=a(()=>(t.isSSR=!0,t.getCollection()),[t]);return{collection:_e(n,r,i),document:t}}const Q=n(null);function ye(e){var t;return t=class extends B{},t.type=e,t}function be(t,n,r,i,s,c){typeof t==`string`&&(t=ye(t));let l=a(e=>{e?.setProps(n,r,t,i,c)},[n,r,i,c,t]),u=o(Q);if(u){let a=u.ownerDocument.nodesByProps.get(n);return a||(a=u.ownerDocument.createElement(t.type),a.setProps(n,r,t,i,c),u.appendChild(a),u.ownerDocument.updateCollection(),u.ownerDocument.nodesByProps.set(n,a)),s?e.createElement(Q.Provider,{value:a},s):null}return e.createElement(t.type,{ref:l},s)}function xe(t,n){let i=({node:e})=>n(e.props,e.props.ref,e),a=r((r,a)=>{let s=o(R);if(!o(pe)){if(n.length>=3)throw Error(n.name+` cannot be rendered outside a collection.`);return n(r,a)}return be(t,r,a,`children`in r?r.children:null,null,t=>e.createElement(R.Provider,{value:s},e.createElement(i,{node:t})))});return a.displayName=n.name,a}function Se(e){return X({...e,addIdAndValue:!0})}const Ce=n(null);function we(t){let n=o(Ce),r=(n?.dependencies||[]).concat(t.dependencies),i=t.idScope??n?.idScope,a=Se({...t,idScope:i,dependencies:r});return o(Z)&&(a=e.createElement(Te,null,a)),n=c(()=>({dependencies:r,idScope:i}),[i,...r]),e.createElement(Ce.Provider,{value:n},a)}function Te({children:t}){let n=o(Z),r=c(()=>e.createElement(Z.Provider,{value:null},e.createElement(pe.Provider,{value:!0},t)),[t]);return L()?e.createElement(Q.Provider,{value:n},r):y(r,n)}const Ee={CollectionRoot({collection:e,renderDropIndicator:t}){return De(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return De(e,t,n)}};function De(t,n,r){return X({items:n?t.getChildren(n.key):t,dependencies:[r],children(n){let i=n.render(n);return!r||n.type!==`item`?i:e.createElement(e.Fragment,null,r({type:`item`,key:n.key,dropPosition:`before`}),i,Oe(t,n,r))}})}function Oe(e,n,r){let a=n.key,o=e.getKeyAfter(a),s=o==null?null:e.getItem(o);for(;s!=null&&s.type!==`item`;)o=e.getKeyAfter(s.key),s=o==null?null:e.getItem(o);let c=n.nextKey==null?null:e.getItem(n.nextKey);for(;c!=null&&c.type!==`item`;)c=c.nextKey==null?null:e.getItem(c.nextKey);let l=[];if(c==null){let a=n;for(;a?.type===`item`&&(!s||a.parentKey!==s.parentKey&&s.level<a.level);){let n=r({type:`item`,key:a.key,dropPosition:`after`});i(n)&&l.push(t(n,{key:`${a.key}-after`})),a=a.parentKey==null?null:e.getItem(a.parentKey)}}return l}const ke=n(Ee),$=n({}),Ae=n(null),je=r(function(t,n){let{render:r}=o(Ae);return e.createElement(e.Fragment,null,r(t,n))});function Me(t,n){let r=t?.renderDropIndicator,i=t?.isVirtualDragging?.call(t),o=a(t=>{if(i||n?.isDropTarget(t))return r?r(t):e.createElement(je,{target:t})},[n?.target,i,r]);return t?.useDropIndicator?o:void 0}function Ne(e,t,n){let r=e.focusedKey,i=null;if(t!=null&&t.isVirtualDragging?.call(t)&&n?.target?.type===`item`&&(i=n.target.key,n.target.dropPosition===`after`)){let e=n.collection.getKeyAfter(i),t=null;if(e!=null){let r=n.collection.getItem(i)?.level??0;for(;e;){let i=n.collection.getItem(e);if(!i)break;if(i.type!==`item`){e=n.collection.getKeyAfter(e);continue}if((i.level??0)<=r)break;t=e,e=n.collection.getKeyAfter(e)}}i=e??t??i}return c(()=>new Set([r,i].filter(e=>e!=null)),[r,i])}const Pe=n(null);function Fe(t){let n=u({});return e.createElement(Pe.Provider,{value:n},t.children)}var Ie=class{setup(e,t,n){this.delegate=e,this.state=t,this.direction=n}getDropTargetFromPoint(e,t,n){let r=this.delegate.getDropTargetFromPoint(e,t,n);return!r||r.type===`root`?r:this.resolveDropTarget(r,e,t,n)}resolveDropTarget(e,t,n,r){let i=this.pointerTracking,a=n-i.lastY,o=t-i.lastX,s=i.yDirection,c=i.xDirection;if(Math.abs(a)>5&&(s=a>0?`down`:`up`,i.yDirection=s,i.lastY=n),Math.abs(o)>10&&(c=o>0?`right`:`left`,i.xDirection=c,i.lastX=t),e.dropPosition===`before`){let t=this.state.collection.getKeyBefore(e.key);if(t!=null){let n={type:`item`,key:t,dropPosition:`after`};r(n)&&(e=n)}}let l=this.getPotentialTargets(e,r);if(l.length===0)return{type:`root`};let u;return l.length>1?u=this.selectTarget(l,e,t,n,s,c):(u=l[0],i.boundaryContext=null),u}getPotentialTargets(e,t){if(e.dropPosition===`on`)return[e];let n=e,r=this.state.collection,i=r.getItem(n.key);for(;i&&i?.type!==`item`&&i.nextKey!=null;)n.key=i.nextKey,i=r.getItem(i.nextKey);let a=[n];if(i&&i.hasChildNodes&&this.state.expandedKeys.has(i.key)&&r.getChildren&&n.dropPosition===`after`){let e=null;for(let t of r.getChildren(i.key))if(t.type===`item`){e=t;break}if(e){let n={type:`item`,key:e.key,dropPosition:`before`};return t(n)?[n]:[]}}if(i?.nextKey!=null)return[e];let o=i?.parentKey,s=[];for(;o;){let e=r.getItem(o),n=e?.nextKey?r.getItem(e.nextKey):null;if(!n||n.parentKey!==o){let e={type:`item`,key:o,dropPosition:`after`};if(t(e)&&s.push(e),n)break}o=e?.parentKey}if(s.length>0&&a.push(...s),a.length===1){let e=r.getKeyAfter(n.key),a=e?r.getItem(e):null;if(e!=null&&a&&i&&a.level!=null&&i.level!=null&&a.level>i.level){let n={type:`item`,key:e,dropPosition:`before`};if(t(n))return[n]}}return a.filter(t)}selectTarget(e,t,n,r,i,a){if(e.length<2)return e[0];let o=this.pointerTracking,s=this.state.collection.getItem(t.key)?.parentKey;if(!s)return e[0];(!o.boundaryContext||o.boundaryContext.parentKey!==s)&&(o.boundaryContext={parentKey:s,preferredTargetIndex:o.yDirection===`up`?e.length-1:0,lastSwitchY:r,lastSwitchX:n});let c=o.boundaryContext,l=Math.abs(n-c.lastSwitchX);if(Math.abs(r-c.lastSwitchY)>5&&i){let t=c.preferredTargetIndex||0;i===`down`&&t===0?c.preferredTargetIndex=e.length-1:i===`up`&&t===e.length-1&&(c.preferredTargetIndex=0),o.xDirection=null}if(l>10&&a){let t=c.preferredTargetIndex||0;a===`left`?this.direction===`ltr`?t<e.length-1&&(c.preferredTargetIndex=t+1,c.lastSwitchX=n):t>0&&(c.preferredTargetIndex=t-1,c.lastSwitchX=n):a===`right`&&(this.direction===`ltr`?t>0&&(c.preferredTargetIndex=t-1,c.lastSwitchX=n):t<e.length-1&&(c.preferredTargetIndex=t+1,c.lastSwitchX=n)),o.yDirection=null}return e[Math.max(0,Math.min(c.preferredTargetIndex||0,e.length-1))]}constructor(){this.delegate=null,this.state=null,this.direction=`ltr`,this.pointerTracking={lastY:0,lastX:0,yDirection:null,xDirection:null,boundaryContext:null}}},Le=class{*[Symbol.iterator](){yield*this.flattenedRows}get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}getItem(e){return this.keyMap.get(e)||null}at(e){return this.flattenedRows[e]}getFirstKey(){return this.flattenedRows[0]?.key}getLastKey(){return this.flattenedRows[this.flattenedRows.length-1]?.key}getKeyAfter(e){let t=this.flattenedRows.findIndex(t=>t.key===e);return this.flattenedRows[t+1]?.key}getKeyBefore(e){let t=this.flattenedRows.findIndex(t=>t.key===e);return this.flattenedRows[t-1]?.key}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let n=t.get(e),r=n?.firstChildKey==null?null:t.get(n.firstChildKey);for(;r;)yield r,r=r.nextKey==null?void 0:t.get(r.nextKey)}}}getTextValue(e){let t=this.getItem(e);return t?t.textValue:``}constructor(e){this.keyMap=new Map,this.itemCount=0;let{collection:t,expandedKeys:n}=e,{flattenedRows:r,keyMap:i,itemCount:a}=Ke(t,{expandedKeys:n});this.flattenedRows=r,this.keyMap=i,this.itemCount=a}};const Re=n(null),ze=n(null),Be=r(function(t,n){return[t,n]=j(t,n,Re),e.createElement(me,{content:e.createElement(we,t)},r=>e.createElement(He,{props:t,collection:r,treeRef:n}))}),Ve={expand:{ltr:`ArrowRight`,rtl:`ArrowLeft`},collapse:{ltr:`ArrowLeft`,rtl:`ArrowRight`}};function He({props:t,collection:n,treeRef:r}){let{dragAndDropHooks:i}=t,{direction:a}=w(),l=S({usage:`search`,sensitivity:`base`}),p=!!i?.useDraggableCollectionState,m=!!i?.useDroppableCollectionState,h=u(p),g=u(m);s(()=>{h.current!==p&&console.warn(`Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.`),g.current!==m&&console.warn(`Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.`)},[p,m]);let{selectionMode:_=`none`,expandedKeys:v,defaultExpandedKeys:y,onExpandedChange:T,disabledBehavior:E=`all`}=t,{CollectionRoot:D,isVirtualized:re,layoutDelegate:O,dropTargetDelegate:A}=o(ke),[j,ae]=se(v?Ge(v):void 0,y?Ge(y):new Set,T),M=c(()=>new Le({collection:n,expandedKeys:j}),[n,j]),P=ne({...t,selectionMode:_,expandedKeys:j,onExpandedChange:ae,collection:M,children:void 0,disabledBehavior:E}),{gridProps:oe}=te({...t,isVirtualized:re,layoutDelegate:O},P,r),F,I,L,R=!1,z=null,B=u(null);if(p&&i){F=i.useDraggableCollectionState({collection:P.collection,selectionManager:P.selectionManager,preview:i.renderDragPreview?B:void 0}),i.useDraggableCollection({},F,r);let t=i.DragPreview;z=i.renderDragPreview?e.createElement(t,{ref:B},i.renderDragPreview):null}let[V]=d(()=>new Ie);if(m&&i){I=i.useDroppableCollectionState({collection:P.collection,selectionManager:P.selectionManager});let e=i.dropTargetDelegate||A||new i.ListDropTargetDelegate(P.collection,r,{direction:a});V.setup(e,P,a);let t=new b({collection:P.collection,collator:l,ref:r,disabledKeys:P.selectionManager.disabledKeys,disabledBehavior:P.selectionManager.disabledBehavior,direction:a,layoutDelegate:O});L=i.useDroppableCollection({keyboardDelegate:t,dropTargetDelegate:V,onDropActivate:e=>{if(e.target.type===`item`){let t=e.target.key,n=P.collection.getItem(t),r=j!==`all`&&j.has(t);n&&n.hasChildNodes&&(!r||i!=null&&i.isVirtualDragging?.call(i))&&P.toggleKey(t)}},onKeyDown:e=>{let t=I?.target;if(t&&t.type===`item`&&t.dropPosition===`on`){let n=P.collection.getItem(t.key);(e.key===Ve.expand[a]&&n?.hasChildNodes&&!P.expandedKeys.has(t.key)||e.key===Ve.collapse[a]&&n?.hasChildNodes&&P.expandedKeys.has(t.key))&&P.toggleKey(t.key)}}},I,r);let n=I.getDropOperation;I.getDropOperation=e=>{let{target:t,isInternal:r}=e,i=F?.draggingKeys??new Set;if(r&&t.type===`item`&&i.size>0){if(i.has(t.key)&&t.dropPosition===`on`)return`cancel`;let e=t.key;for(;e!=null;){let t=P.collection.getItem(e)?.parentKey;if(t!=null&&i.has(t))return`cancel`;e=t??null}}return n(e)},R=I.isDropTarget({type:`root`})}let H=!!(p&&!F?.isDisabled),{focusProps:U,isFocused:W,isFocusVisible:G}=C(),K={isEmpty:P.collection.size===0,isFocused:W,isFocusVisible:G,isDropTarget:R,selectionMode:P.selectionManager.selectionMode,allowsDragging:!!H,state:P},q=k({...t,children:void 0,defaultClassName:`react-aria-Tree`,values:K}),J=null;if(P.collection.size===0&&t.renderEmptyState){let{isEmpty:n,...r}=K,i=t.renderEmptyState({...r});J=e.createElement(`div`,{role:`row`,style:{display:`contents`},"aria-level":1},e.createElement(`div`,{role:`gridcell`,style:{display:`contents`}},i))}let Y=f(t,{global:!0});return e.createElement(e.Fragment,null,e.createElement(ee,null,e.createElement(N.div,{...x(Y,q,oe,U,L?.collectionProps),ref:r,slot:t.slot||void 0,"data-empty":P.collection.size===0||void 0,"data-focused":W||void 0,"data-drop-target":R||void 0,"data-focus-visible":G||void 0,"data-selection-mode":P.selectionManager.selectionMode===`none`?void 0:P.selectionManager.selectionMode,"data-allows-dragging":!!H||void 0},e.createElement(ie,{values:[[ze,P],[$,{dragAndDropHooks:i,dragState:F,dropState:I}],[Ae,{render:qe}]]},m&&e.createElement(Xe,null),e.createElement(Fe,null,e.createElement(D,{collection:P.collection,persistedKeys:Ne(P.selectionManager,i,I),scrollRef:r,renderDropIndicator:Me(i,I)}))),J)),z)}var Ue=class extends B{};Ue.type=`content`;var We=class extends B{};We.type=`item`,xe(U,function(t,n,r){let{isVirtualized:i}=o(ke),a=o(ze),{isLoading:s,onLoadMore:l,scrollOffset:d,...m}=t,h=u(null),g=c(()=>({onLoadMore:l,collection:a?.collection,sentinelRef:h,scrollOffset:d}),[l,d,a?.collection]);_(g,h),n=v(n);let{rowProps:y,gridCellProps:ee}=T({node:r},a,n),b=y[`aria-level`]||1,S={role:`row`,"aria-level":y[`aria-level`]},C=k({...m,id:void 0,children:r.rendered,defaultClassName:`react-aria-TreeLoader`,values:{level:b}}),w={};return i&&(w={display:`contents`}),e.createElement(e.Fragment,null,e.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:p(!0)},e.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:h,style:{position:`absolute`,height:1,width:1}})),s&&C.children&&e.createElement(N.div,{ref:n,...x(f(t),S),...C,"data-level":b},e.createElement(`div`,{...ee,style:w},C.children)))});function Ge(e){return e?e===`all`?`all`:new Set(e):new Set}function Ke(e,t){let{expandedKeys:n=new Set}=t,r=new Map,i=[],a=0,o=new Map,s=t=>{if(t.type===`item`||t.type===`loader`){let s=t?.parentKey,c={...t};s==null?r.set(t.key,t):([...e.getChildren(s)][0].type!==`item`&&(c.index=t?.index==null?0:t?.index-1),t.type===`loader`&&(c.level=t.level+1),r.set(c.key,c));let l=r.get(t.key)||t;(l.level===0||l.parentKey!=null&&n.has(l.parentKey)&&o.get(l.parentKey))&&(l.type===`item`&&a++,i.push(l),o.set(l.key,!0))}else t.type!==null&&r.set(t.key,t);for(let n of e.getChildren(t.key))s(n)};for(let t of e)s(t);return{flattenedRows:i,keyMap:r,itemCount:a}}function qe(t,n){n=v(n);let{dragAndDropHooks:r,dropState:i}=o($),a=u(null),{dropIndicatorProps:s,isHidden:c,isDropTarget:l}=r.useDropIndicator(t,i,a);if(c)return null;let d=i&&t.target.type===`item`?(i.collection.getItem(t.target.key)?.level||0)+1:1;return e.createElement(Ye,{...t,dropIndicatorProps:s,isDropTarget:l,ref:n,buttonRef:a,level:d})}function Je(t,n){let{dropIndicatorProps:r,isDropTarget:i,buttonRef:a,level:o,...s}=t,{visuallyHiddenProps:c}=E(),l=k({...s,defaultClassName:`react-aria-DropIndicator`,defaultStyle:{position:`relative`,"--tree-item-level":o},values:{isDropTarget:i}});return e.createElement(N.div,{...l,role:`row`,"aria-level":o,ref:n,"data-drop-target":i||void 0},e.createElement(`div`,{role:`gridcell`},e.createElement(`div`,{...c,role:`button`,...r,ref:a}),l.children))}const Ye=r(Je);function Xe(){let{dragAndDropHooks:t,dropState:n}=o($),r=u(null),{dropIndicatorProps:i}=t.useDropIndicator({target:{type:`root`}},n,r),a=n.isDropTarget({type:`root`}),{visuallyHiddenProps:s}=E();return!a&&i[`aria-hidden`]?null:e.createElement(`div`,{role:`row`,"aria-hidden":i[`aria-hidden`],style:{position:`absolute`}},e.createElement(`div`,{role:`gridcell`},e.createElement(`div`,{role:`button`,...s,...i,ref:r})))}export{Be as Tree};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TreeItem, type TreeItemProps, type TreeItemRenderProps } from "react-aria-components";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import e,{cloneElement as t,createContext as n,forwardRef as r,isValidElement as i,useCallback as a,useContext as o,useEffect as s,useMemo as c,useRef as l}from"react";import{filterDOMProps as u,inertValue as d,mergeRefs as f,useLayoutEffect as p,useLoadMoreSentinel as m,useObjectRef as h}from"@react-aria/utils";import"react-dom";import{mergeProps as g,useFocusRing as _,useGridListSelectionCheckbox as v,useHover as y,useId as b,useTreeItem as x,useVisuallyHidden as S}from"react-aria";import"react-stately";var C=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),w=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});const T=n(null);n(null),n(null),n(null),n(null),n({}),n(null),n(null);const E=Symbol(`default`);function ee({values:t,children:n}){for(let[r,i]of t)n=e.createElement(r.Provider,{value:i},n);return n}function D(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:o,values:s,render:l}=e;return c(()=>{let e,c,u;return e=typeof t==`function`?t({...s,defaultClassName:i}):t,c=typeof n==`function`?n({...s,defaultStyle:o||{}}):n,u=typeof r==`function`?r({...s,defaultChildren:a}):r??a,{className:e??i,style:c||o?{...o,...c}:void 0,children:u??a,"data-rac":``,render:l?e=>l(e,s):void 0}},[t,n,r,i,a,o,s,l])}function O(t,n,r){let{render:i,...a}=n,o=l(null),s=c(()=>f(r,o),[r,o]);p(()=>{},[t,i]);let u={...a,ref:s};return i?i(u,void 0):e.createElement(t,u)}const k={},te=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=k[t];return n||(n=r(O.bind(null,t)),k[t]=n),n}});String(Math.round(Math.random()*1e10)),typeof window<`u`&&window.document&&window.document.createElement,e.useId;let A=e.createContext(null);var j=class{get childNodes(){throw Error(`childNodes is not supported`)}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e[`aria-label`]=this[`aria-label`],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue=``,this[`aria-label`]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},M=class extends j{filter(e,t,n){let[r,i]=L(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},N=class extends j{};N.type=`header`;var P=class extends j{};P.type=`loader`;var F=class extends M{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};F.type=`item`;var I=class extends M{filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}};I.type=`section`;function L(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey?e.getItem(o.nextKey):null}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e?(a=t.getItem(e),a.nextKey=null):a=null}return[i?.key??null,a?.key??null]}function R(e){let{children:n,items:r,idScope:i,addIdAndValue:a,dependencies:o=[]}=e,s=c(()=>new WeakMap,o);return c(()=>{if(r&&typeof n==`function`){let e=[];for(let o of r){let r=s.get(o);if(!r){r=n(o);let e=r.props.id??o.key??o.id;if(e==null)throw Error(`Could not determine key for item`);i!=null&&(e=i+`:`+e),r=t(r,a?{key:e,id:e,value:o}:{key:e}),s.set(o,r)}e.push(r)}return e}if(typeof n!=`function`)return n},[n,r,s,i,a])}
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* use-sync-external-store-shim.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
var z=C((e=>{var t=w(`react`);function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore}));C(((e,t)=>{t.exports=z()}))();const B=n(!1);typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const V=n(null);function H(e){var t;return t=class extends j{},t.type=e,t}function U(t,n,r,i,s,c){typeof t==`string`&&(t=H(t));let l=a(e=>{e?.setProps(n,r,t,i,c)},[n,r,i,c,t]),u=o(V);if(u){let a=u.ownerDocument.nodesByProps.get(n);return a||(a=u.ownerDocument.createElement(t.type),a.setProps(n,r,t,i,c),u.appendChild(a),u.ownerDocument.updateCollection(),u.ownerDocument.nodesByProps.set(n,a)),s?e.createElement(V.Provider,{value:a},s):null}return e.createElement(t.type,{ref:l},s)}function W(t,n){let i=({node:e})=>n(e.props,e.props.ref,e),a=r((r,a)=>{let s=o(A);if(!o(B)){if(n.length>=3)throw Error(n.name+` cannot be rendered outside a collection.`);return n(r,a)}return U(t,r,a,`children`in r?r.children:null,null,t=>e.createElement(A.Provider,{value:s},e.createElement(i,{node:t})))});return a.displayName=n.name,a}function G(t,n,i=K){let a=({node:e})=>n(e.props,e.props.ref,e),o=r((n,r)=>U(t,n,r,null,i(n),t=>e.createElement(a,{node:t}))??e.createElement(e.Fragment,null));return o.displayName=n.name,o}function K(e){return R({...e,addIdAndValue:!0})}const q={CollectionRoot({collection:e,renderDropIndicator:t}){return J(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return J(e,t,n)}};function J(t,n,r){return R({items:n?t.getChildren(n.key):t,dependencies:[r],children(n){let i=n.render(n);return!r||n.type!==`item`?i:e.createElement(e.Fragment,null,r({type:`item`,key:n.key,dropPosition:`before`}),i,Y(t,n,r))}})}function Y(e,n,r){let a=n.key,o=e.getKeyAfter(a),s=o==null?null:e.getItem(o);for(;s!=null&&s.type!==`item`;)o=e.getKeyAfter(s.key),s=o==null?null:e.getItem(o);let c=n.nextKey==null?null:e.getItem(n.nextKey);for(;c!=null&&c.type!==`item`;)c=c.nextKey==null?null:e.getItem(c.nextKey);let l=[];if(c==null){let a=n;for(;a?.type===`item`&&(!s||a.parentKey!==s.parentKey&&s.level<a.level);){let n=r({type:`item`,key:a.key,dropPosition:`after`});i(n)&&l.push(t(n,{key:`${a.key}-after`})),a=a.parentKey==null?null:e.getItem(a.parentKey)}}return l}const ne=n(q),re=n({}),ie=n({}),ae=n({isSelected:!1}),oe=n(null);var X=class extends j{};X.type=`content`;const se=n(null);var Z=class extends j{};Z.type=`item`;const Q=G(Z,(t,n,r)=>{let i=o(oe);n=h(n);let{dragAndDropHooks:a,dragState:c,dropState:d}=o(ie),{rowProps:f,gridCellProps:p,expandButtonProps:m,descriptionProps:C,...w}=x({node:r,shouldSelectOnPressUp:!!c},i,n),O=f[`aria-expanded`]===!0,k=t.hasChildItems||[...i.collection.getChildren(r.key)].length>1,A=f[`aria-level`]||1,{hoverProps:j,isHovered:M}=y({isDisabled:!w.allowsSelection&&!w.hasAction,onHoverStart:t.onHoverStart,onHoverChange:t.onHoverChange,onHoverEnd:t.onHoverEnd}),{isFocusVisible:N,focusProps:P}=_(),{isFocusVisible:F,focusProps:I}=_({within:!0}),{checkboxProps:L}=v({key:r.key},i),z=null;c&&a&&(z=a.useDraggableItem({key:r.key,hasDragButton:!0},c));let B=null,V=l(null),H=l(null),U=l(null),{visuallyHiddenProps:W}=S();d&&a&&(B=a.useDropIndicator({target:{type:`item`,key:r.key,dropPosition:`on`},activateButtonRef:U},d,H));let G=c&&c.isDragging(r.key),K=B?.isDropTarget,q=i.selectionManager.selectionMode,J=i.selectionManager.selectionBehavior,Y=e.useMemo(()=>({...w,isHovered:M,isFocusVisible:N,isExpanded:O,hasChildItems:k,level:A,selectionMode:q,selectionBehavior:J,isFocusVisibleWithin:F,state:i,id:r.key,allowsDragging:!!c,isDragging:G,isDropTarget:K}),[w,M,N,O,k,A,F,i,r.key,c,G,K,J,q]),ne=D({...t,id:void 0,children:r.rendered,defaultClassName:`react-aria-TreeItem`,defaultStyle:{"--tree-item-level":A},values:Y});s(()=>{r.textValue},[r.textValue]),s(()=>{k&&V.current},[]);let X=l(null);s(()=>{c&&X.current},[]);let Z=R({items:i.collection.getChildren(r.key),children:t=>{switch(t.type){case`content`:return t.render(t);case`loader`:case`item`:return e.createElement(e.Fragment,null);default:throw Error(`Unsupported element type in TreeRow: `+t.type)}}}),Q=b(),$=u(t,{global:!0});return delete $.id,delete $.onClick,e.createElement(e.Fragment,null,B&&!B.isHidden&&e.createElement(`div`,{role:`row`,"aria-level":f[`aria-level`],"aria-expanded":f[`aria-expanded`],"aria-label":B.dropIndicatorProps[`aria-label`]},e.createElement(`div`,{role:`gridcell`,"aria-colindex":1,style:{display:`contents`}},e.createElement(`div`,{role:`button`,...W,...B.dropIndicatorProps,ref:H}),f[`aria-expanded`]==null?null:e.createElement(`div`,{role:`button`,...W,id:Q,"aria-label":m[`aria-label`],"aria-labelledby":`${Q} ${f.id}`,tabIndex:-1,ref:U}))),e.createElement(te.div,{...g($,f,P,j,I,z?.dragProps),...ne,ref:n,"data-expanded":k&&O||void 0,"data-has-child-items":k||void 0,"data-level":A,"data-selected":w.isSelected||void 0,"data-disabled":w.isDisabled||void 0,"data-hovered":M||void 0,"data-focused":w.isFocused||void 0,"data-focus-visible":N||void 0,"data-pressed":w.isPressed||void 0,"data-selection-mode":i.selectionManager.selectionMode===`none`?void 0:i.selectionManager.selectionMode,"data-allows-dragging":!!c||void 0,"data-dragging":G||void 0,"data-drop-target":K||void 0},e.createElement(`div`,{...p,style:{display:`contents`}},e.createElement(ee,{values:[[T,{slots:{selection:L}}],[re,{slots:{[E]:{},chevron:{...m,ref:V},drag:{...z?.dragButtonProps,ref:X,style:{pointerEvents:`none`}}}}],[se,{...Y}],[ae,{isSelected:w.isSelected}]]},Z))))});W(P,function(t,n,r){let{isVirtualized:i}=o(ne),a=o(oe),{isLoading:s,onLoadMore:f,scrollOffset:p,..._}=t,v=l(null),y=c(()=>({onLoadMore:f,collection:a?.collection,sentinelRef:v,scrollOffset:p}),[f,p,a?.collection]);m(y,v),n=h(n);let{rowProps:b,gridCellProps:S}=x({node:r},a,n),C=b[`aria-level`]||1,w={role:`row`,"aria-level":b[`aria-level`]},T=D({..._,id:void 0,children:r.rendered,defaultClassName:`react-aria-TreeLoader`,values:{level:C}}),E={};return i&&(E={display:`contents`}),e.createElement(e.Fragment,null,e.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:d(!0)},e.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:v,style:{position:`absolute`,height:1,width:1}})),s&&T.children&&e.createElement(te.div,{ref:n,...g(u(t),w),...T,"data-level":C},e.createElement(`div`,{...S,style:E},T.children)))});export{Q as TreeItem};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TreeItemContent, type TreeItemContentProps, type TreeItemContentRenderProps } from "react-aria-components";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import e,{cloneElement as t,createContext as n,forwardRef as r,isValidElement as i,useCallback as a,useContext as o,useMemo as s,useRef as c}from"react";import{filterDOMProps as l,inertValue as u,mergeRefs as d,useLayoutEffect as f,useLoadMoreSentinel as p,useObjectRef as m}from"@react-aria/utils";import"react-dom";import{mergeProps as h,useTreeItem as g}from"react-aria";import"react-stately";var _=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),v=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});function y(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:o,values:c,render:l}=e;return s(()=>{let e,s,u;return e=typeof t==`function`?t({...c,defaultClassName:i}):t,s=typeof n==`function`?n({...c,defaultStyle:o||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:a}):r??a,{className:e??i,style:s||o?{...o,...s}:void 0,children:u??a,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,i,a,o,c,l])}function b(t,n,r){let{render:i,...a}=n,o=c(null),l=s(()=>d(r,o),[r,o]);f(()=>{},[t,i]);let u={...a,ref:l};return i?i(u,void 0):e.createElement(t,u)}const x={},S=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=x[t];return n||(n=r(b.bind(null,t)),x[t]=n),n}});String(Math.round(Math.random()*1e10)),typeof window<`u`&&window.document&&window.document.createElement,e.useId;let C=e.createContext(null);var w=class{get childNodes(){throw Error(`childNodes is not supported`)}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e[`aria-label`]=this[`aria-label`],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue=``,this[`aria-label`]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},T=class extends w{filter(e,t,n){let[r,i]=A(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},E=class extends w{};E.type=`header`;var D=class extends w{};D.type=`loader`;var O=class extends T{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};O.type=`item`;var k=class extends T{filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}};k.type=`section`;function A(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey?e.getItem(o.nextKey):null}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e?(a=t.getItem(e),a.nextKey=null):a=null}return[i?.key??null,a?.key??null]}function j(e){let{children:n,items:r,idScope:i,addIdAndValue:a,dependencies:o=[]}=e,c=s(()=>new WeakMap,o);return s(()=>{if(r&&typeof n==`function`){let e=[];for(let o of r){let r=c.get(o);if(!r){r=n(o);let e=r.props.id??o.key??o.id;if(e==null)throw Error(`Could not determine key for item`);i!=null&&(e=i+`:`+e),r=t(r,a?{key:e,id:e,value:o}:{key:e}),c.set(o,r)}e.push(r)}return e}if(typeof n!=`function`)return n},[n,r,c,i,a])}
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* use-sync-external-store-shim.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
var M=_((e=>{var t=v(`react`);function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore}));_(((e,t)=>{t.exports=M()}))();const N=n(!1);typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const P=n(null);function F(e){var t;return t=class extends w{},t.type=e,t}function I(t,n,r,i,s,c){typeof t==`string`&&(t=F(t));let l=a(e=>{e?.setProps(n,r,t,i,c)},[n,r,i,c,t]),u=o(P);if(u){let a=u.ownerDocument.nodesByProps.get(n);return a||(a=u.ownerDocument.createElement(t.type),a.setProps(n,r,t,i,c),u.appendChild(a),u.ownerDocument.updateCollection(),u.ownerDocument.nodesByProps.set(n,a)),s?e.createElement(P.Provider,{value:a},s):null}return e.createElement(t.type,{ref:l},s)}function L(t,n){let i=({node:e})=>n(e.props,e.props.ref,e),a=r((r,a)=>{let s=o(C);if(!o(N)){if(n.length>=3)throw Error(n.name+` cannot be rendered outside a collection.`);return n(r,a)}return I(t,r,a,`children`in r?r.children:null,null,t=>e.createElement(C.Provider,{value:s},e.createElement(i,{node:t})))});return a.displayName=n.name,a}const R={CollectionRoot({collection:e,renderDropIndicator:t}){return z(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return z(e,t,n)}};function z(t,n,r){return j({items:n?t.getChildren(n.key):t,dependencies:[r],children(n){let i=n.render(n);return!r||n.type!==`item`?i:e.createElement(e.Fragment,null,r({type:`item`,key:n.key,dropPosition:`before`}),i,B(t,n,r))}})}function B(e,n,r){let a=n.key,o=e.getKeyAfter(a),s=o==null?null:e.getItem(o);for(;s!=null&&s.type!==`item`;)o=e.getKeyAfter(s.key),s=o==null?null:e.getItem(o);let c=n.nextKey==null?null:e.getItem(n.nextKey);for(;c!=null&&c.type!==`item`;)c=c.nextKey==null?null:e.getItem(c.nextKey);let l=[];if(c==null){let a=n;for(;a?.type===`item`&&(!s||a.parentKey!==s.parentKey&&s.level<a.level);){let n=r({type:`item`,key:a.key,dropPosition:`after`});i(n)&&l.push(t(n,{key:`${a.key}-after`})),a=a.parentKey==null?null:e.getItem(a.parentKey)}}return l}const V=n(R),H=n(null);var U=class extends w{};U.type=`content`;const W=L(U,function(t){let n=o(G),r=y({children:t.children,values:n});return e.createElement(V.Provider,{value:R},r.children)}),G=n(null);var K=class extends w{};K.type=`item`,L(D,function(t,n,r){let{isVirtualized:i}=o(V),a=o(H),{isLoading:d,onLoadMore:f,scrollOffset:_,...v}=t,b=c(null),x=s(()=>({onLoadMore:f,collection:a?.collection,sentinelRef:b,scrollOffset:_}),[f,_,a?.collection]);p(x,b),n=m(n);let{rowProps:C,gridCellProps:w}=g({node:r},a,n),T=C[`aria-level`]||1,E={role:`row`,"aria-level":C[`aria-level`]},D=y({...v,id:void 0,children:r.rendered,defaultClassName:`react-aria-TreeLoader`,values:{level:T}}),O={};return i&&(O={display:`contents`}),e.createElement(e.Fragment,null,e.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:u(!0)},e.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:b,style:{position:`absolute`,height:1,width:1}})),d&&D.children&&e.createElement(S.div,{ref:n,...h(l(t),E),...D,"data-level":T},e.createElement(`div`,{...w,style:O},D.children)))});export{W as TreeItemContent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TreeLoadMoreItem, type TreeLoadMoreItemProps, type TreeLoadMoreItemRenderProps } from "react-aria-components";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import e,{cloneElement as t,createContext as n,forwardRef as r,isValidElement as i,useCallback as a,useContext as o,useMemo as s,useRef as c}from"react";import{filterDOMProps as l,inertValue as u,mergeRefs as d,useLayoutEffect as f,useLoadMoreSentinel as p,useObjectRef as m}from"@react-aria/utils";import"react-dom";import{mergeProps as h,useTreeItem as g}from"react-aria";import"react-stately";var _=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),v=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});function y(e){let{className:t,style:n,children:r,defaultClassName:i,defaultChildren:a,defaultStyle:o,values:c,render:l}=e;return s(()=>{let e,s,u;return e=typeof t==`function`?t({...c,defaultClassName:i}):t,s=typeof n==`function`?n({...c,defaultStyle:o||{}}):n,u=typeof r==`function`?r({...c,defaultChildren:a}):r??a,{className:e??i,style:s||o?{...o,...s}:void 0,children:u??a,"data-rac":``,render:l?e=>l(e,c):void 0}},[t,n,r,i,a,o,c,l])}function b(t,n,r){let{render:i,...a}=n,o=c(null),l=s(()=>d(r,o),[r,o]);f(()=>{},[t,i]);let u={...a,ref:l};return i?i(u,void 0):e.createElement(t,u)}const x={},S=new Proxy({},{get(e,t){if(typeof t!=`string`)return;let n=x[t];return n||(n=r(b.bind(null,t)),x[t]=n),n}});String(Math.round(Math.random()*1e10)),typeof window<`u`&&window.document&&window.document.createElement,e.useId;let C=e.createContext(null);var w=class{get childNodes(){throw Error(`childNodes is not supported`)}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e[`aria-label`]=this[`aria-label`],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,n){let r=this.clone();return t.addDescendants(r,e),r}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue=``,this[`aria-label`]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},T=class extends w{filter(e,t,n){let[r,i]=A(e,t,this.firstChildKey,n),a=this.clone();return a.firstChildKey=r,a.lastChildKey=i,a}},E=class extends w{};E.type=`header`;var D=class extends w{};D.type=`loader`;var O=class extends T{filter(e,t,n){if(n(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};O.type=`item`;var k=class extends T{filter(e,t,n){let r=super.filter(e,t,n);if(r&&r.lastChildKey!==null){let t=e.getItem(r.lastChildKey);if(t&&t.type!==`header`)return r}return null}};k.type=`section`;function A(e,t,n,r){if(n==null)return[null,null];let i=null,a=null,o=e.getItem(n);for(;o!=null;){let n=o.filter(e,t,r);n!=null&&(n.nextKey=null,a&&(n.prevKey=a.key,a.nextKey=n.key),i??=n,t.addNode(n),a=n),o=o.nextKey?e.getItem(o.nextKey):null}if(a&&a.type===`separator`){let e=a.prevKey;t.removeNode(a.key),e?(a=t.getItem(e),a.nextKey=null):a=null}return[i?.key??null,a?.key??null]}function j(e){let{children:n,items:r,idScope:i,addIdAndValue:a,dependencies:o=[]}=e,c=s(()=>new WeakMap,o);return s(()=>{if(r&&typeof n==`function`){let e=[];for(let o of r){let r=c.get(o);if(!r){r=n(o);let e=r.props.id??o.key??o.id;if(e==null)throw Error(`Could not determine key for item`);i!=null&&(e=i+`:`+e),r=t(r,a?{key:e,id:e,value:o}:{key:e}),c.set(o,r)}e.push(r)}return e}if(typeof n!=`function`)return n},[n,r,c,i,a])}
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* use-sync-external-store-shim.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/
|
|
11
|
+
var M=_((e=>{var t=v(`react`);function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore}));_(((e,t)=>{t.exports=M()}))();const N=n(!1);typeof e.useSyncExternalStore==`function`&&e.useSyncExternalStore;const P=n(null);function F(e){var t;return t=class extends w{},t.type=e,t}function I(t,n,r,i,s,c){typeof t==`string`&&(t=F(t));let l=a(e=>{e?.setProps(n,r,t,i,c)},[n,r,i,c,t]),u=o(P);if(u){let a=u.ownerDocument.nodesByProps.get(n);return a||(a=u.ownerDocument.createElement(t.type),a.setProps(n,r,t,i,c),u.appendChild(a),u.ownerDocument.updateCollection(),u.ownerDocument.nodesByProps.set(n,a)),s?e.createElement(P.Provider,{value:a},s):null}return e.createElement(t.type,{ref:l},s)}function L(t,n){let i=({node:e})=>n(e.props,e.props.ref,e),a=r((r,a)=>{let s=o(C);if(!o(N)){if(n.length>=3)throw Error(n.name+` cannot be rendered outside a collection.`);return n(r,a)}return I(t,r,a,`children`in r?r.children:null,null,t=>e.createElement(C.Provider,{value:s},e.createElement(i,{node:t})))});return a.displayName=n.name,a}const R={CollectionRoot({collection:e,renderDropIndicator:t}){return z(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return z(e,t,n)}};function z(t,n,r){return j({items:n?t.getChildren(n.key):t,dependencies:[r],children(n){let i=n.render(n);return!r||n.type!==`item`?i:e.createElement(e.Fragment,null,r({type:`item`,key:n.key,dropPosition:`before`}),i,B(t,n,r))}})}function B(e,n,r){let a=n.key,o=e.getKeyAfter(a),s=o==null?null:e.getItem(o);for(;s!=null&&s.type!==`item`;)o=e.getKeyAfter(s.key),s=o==null?null:e.getItem(o);let c=n.nextKey==null?null:e.getItem(n.nextKey);for(;c!=null&&c.type!==`item`;)c=c.nextKey==null?null:e.getItem(c.nextKey);let l=[];if(c==null){let a=n;for(;a?.type===`item`&&(!s||a.parentKey!==s.parentKey&&s.level<a.level);){let n=r({type:`item`,key:a.key,dropPosition:`after`});i(n)&&l.push(t(n,{key:`${a.key}-after`})),a=a.parentKey==null?null:e.getItem(a.parentKey)}}return l}const V=n(R),H=n(null);var U=class extends w{};U.type=`content`;var W=class extends w{};W.type=`item`;const G=L(D,function(t,n,r){let{isVirtualized:i}=o(V),a=o(H),{isLoading:d,onLoadMore:f,scrollOffset:_,...v}=t,b=c(null),x=s(()=>({onLoadMore:f,collection:a?.collection,sentinelRef:b,scrollOffset:_}),[f,_,a?.collection]);p(x,b),n=m(n);let{rowProps:C,gridCellProps:w}=g({node:r},a,n),T=C[`aria-level`]||1,E={role:`row`,"aria-level":C[`aria-level`]},D=y({...v,id:void 0,children:r.rendered,defaultClassName:`react-aria-TreeLoader`,values:{level:T}}),O={};return i&&(O={display:`contents`}),e.createElement(e.Fragment,null,e.createElement(`div`,{style:{position:`relative`,width:0,height:0},inert:u(!0)},e.createElement(`div`,{"data-testid":`loadMoreSentinel`,ref:b,style:{position:`absolute`,height:1,width:1}})),d&&D.children&&e.createElement(S.div,{ref:n,...h(l(t),E),...D,"data-level":T},e.createElement(`div`,{...w,style:O},D.children)))});export{G as TreeLoadMoreItem};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { o as y, t as Toast } from "../Toast-4Q3O7cKx.js";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/status/Toast/useToast.tsx
|
|
5
|
+
const useToast = () => {
|
|
6
|
+
const $ = c(1);
|
|
7
|
+
const successToast = _temp;
|
|
8
|
+
const errorToast = _temp2;
|
|
9
|
+
const warningToast = _temp3;
|
|
10
|
+
const neutralToast = _temp4;
|
|
11
|
+
const closeToast = _temp5;
|
|
12
|
+
let t0;
|
|
13
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
14
|
+
t0 = {
|
|
15
|
+
successToast,
|
|
16
|
+
errorToast,
|
|
17
|
+
warningToast,
|
|
18
|
+
neutralToast,
|
|
19
|
+
closeToast
|
|
20
|
+
};
|
|
21
|
+
$[0] = t0;
|
|
22
|
+
} else t0 = $[0];
|
|
23
|
+
return t0;
|
|
24
|
+
};
|
|
25
|
+
function _temp(params, options) {
|
|
26
|
+
return y.success(/* @__PURE__ */ jsx(Toast, {
|
|
27
|
+
color: "success",
|
|
28
|
+
...params
|
|
29
|
+
}), {
|
|
30
|
+
...options,
|
|
31
|
+
position: params.position,
|
|
32
|
+
data: { variant: params.variant }
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function _temp2(params_0, options_0) {
|
|
36
|
+
return y.error(/* @__PURE__ */ jsx(Toast, {
|
|
37
|
+
color: "error",
|
|
38
|
+
...params_0
|
|
39
|
+
}), {
|
|
40
|
+
...options_0,
|
|
41
|
+
position: params_0.position,
|
|
42
|
+
data: { variant: params_0.variant }
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function _temp3(params_1, options_1) {
|
|
46
|
+
return y.warning(/* @__PURE__ */ jsx(Toast, {
|
|
47
|
+
color: "warning",
|
|
48
|
+
...params_1
|
|
49
|
+
}), {
|
|
50
|
+
...options_1,
|
|
51
|
+
position: params_1.position,
|
|
52
|
+
data: { variant: params_1.variant }
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function _temp4(params_2, options_2) {
|
|
56
|
+
return y.info(/* @__PURE__ */ jsx(Toast, {
|
|
57
|
+
color: "neutral",
|
|
58
|
+
...params_2
|
|
59
|
+
}), {
|
|
60
|
+
...options_2,
|
|
61
|
+
position: params_2.position,
|
|
62
|
+
data: { variant: params_2.variant }
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
function _temp5(id) {
|
|
66
|
+
y.dismiss(id);
|
|
67
|
+
}
|
|
68
|
+
//#endregion
|
|
69
|
+
export { useToast };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Virtualizer, type VirtualizerProps } from "react-aria-components";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{cloneElement as t,createContext as n,isValidElement as r,useCallback as i,useContext as a,useEffect as o,useMemo as s,useRef as c,useState as l}from"react";import{useEffectEvent as u,useEvent as d,useLayoutEffect as f,useResizeObserver as p}from"@react-aria/utils";import{useLocale as m}from"@react-aria/i18n";import{flushSync as h}from"react-dom";function g(e){let{children:n,items:r,idScope:i,addIdAndValue:a,dependencies:o=[]}=e,c=s(()=>new WeakMap,o);return s(()=>{if(r&&typeof n==`function`){let e=[];for(let o of r){let r=c.get(o);if(!r){r=n(o);let e=r.props.id??o.key??o.id;if(e==null)throw Error(`Could not determine key for item`);i!=null&&(e=i+`:`+e),r=t(r,a?{key:e,id:e,value:o}:{key:e}),c.set(o,r)}e.push(r)}return e}if(typeof n!=`function`)return n},[n,r,c,i,a])}const _={CollectionRoot({collection:e,renderDropIndicator:t}){return v(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:n}){return v(e,t,n)}};function v(t,n,r){return g({items:n?t.getChildren(n.key):t,dependencies:[r],children(n){let i=n.render(n);return!r||n.type!==`item`?i:e.createElement(e.Fragment,null,r({type:`item`,key:n.key,dropPosition:`before`}),i,y(t,n,r))}})}function y(e,n,i){let a=n.key,o=e.getKeyAfter(a),s=o==null?null:e.getItem(o);for(;s!=null&&s.type!==`item`;)o=e.getKeyAfter(s.key),s=o==null?null:e.getItem(o);let c=n.nextKey==null?null:e.getItem(n.nextKey);for(;c!=null&&c.type!==`item`;)c=c.nextKey==null?null:e.getItem(c.nextKey);let l=[];if(c==null){let a=n;for(;a?.type===`item`&&(!s||a.parentKey!==s.parentKey&&s.level<a.level);){let n=i({type:`item`,key:a.key,dropPosition:`after`});r(n)&&l.push(t(n,{key:`${a.key}-after`})),a=a.parentKey==null?null:e.getItem(a.parentKey)}}return l}const b=n(_);var x=class e{copy(){return new e(this.x,this.y)}equals(e){return this.x===e.x&&this.y===e.y}isOrigin(){return this.x===0&&this.y===0}constructor(e=0,t=0){this.x=e,this.y=t}},S=class e{get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new x(this.x,this.y)}get topRight(){return new x(this.maxX,this.y)}get bottomLeft(){return new x(this.x,this.maxY)}get bottomRight(){return new x(this.maxX,this.maxY)}intersects(e){return this.area>0&&e.area>0&&this.x<=e.x+e.width&&e.x<=this.x+this.width&&this.y<=e.y+e.height&&e.y<=this.y+this.height}containsRect(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.maxX&&this.maxY>=e.maxY}containsPoint(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.x&&this.maxY>=e.y}getCornerInRect(e){for(let t of[`topLeft`,`topRight`,`bottomLeft`,`bottomRight`])if(e.containsPoint(this[t]))return t;return null}equals(e){return e.x===this.x&&e.y===this.y&&e.width===this.width&&e.height===this.height}pointEquals(e){return this.x===e.x&&this.y===e.y}sizeEquals(e){return this.width===e.width&&this.height===e.height}union(t){let n=Math.min(this.x,t.x),r=Math.min(this.y,t.y),i=Math.max(this.maxX,t.maxX)-n,a=Math.max(this.maxY,t.maxY)-r;return new e(n,r,i,a)}intersection(t){if(!this.intersects(t))return new e(0,0,0,0);let n=Math.max(this.x,t.x),r=Math.max(this.y,t.y);return new e(n,r,Math.min(this.maxX,t.maxX)-n,Math.min(this.maxY,t.maxY)-r)}copy(){return new e(this.x,this.y,this.width,this.height)}constructor(e=0,t=0,n=0,r=0){this.x=e,this.y=t,this.width=n,this.height=r}},C=class e{copy(){return new e(this.width,this.height)}equals(e){return this.width===e.width&&this.height===e.height}get area(){return this.width*this.height}constructor(e=0,t=0){this.width=Math.max(e,0),this.height=Math.max(t,0)}};let w=0;var T=class{prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null}getReusableView(e){let t=this.reusableViews.get(e);return t&&t.length>0?t.shift():new D(this.virtualizer,this,e)}reuseChild(e){e.prepareForReuse();let t=this.reusableViews.get(e.viewType);t||(t=[],this.reusableViews.set(e.viewType,t)),t.push(e)}constructor(e,t){this.virtualizer=e,this.key=++w,this.viewType=t,this.children=new Set,this.reusableViews=new Map,this.layoutInfo=null,this.content=null,this.rendered=null}},E=class extends T{constructor(e){super(e,`root`)}},D=class extends T{constructor(e,t,n){super(e,n),this.parent=t}};function O(e,t){if(e===t)return!0;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}var k=class{setVisibleRect(e){let t=performance.now()-this.startTime;t<500&&(e.x!==this.visibleRect.x&&t>0&&(this.velocity.x=(e.x-this.visibleRect.x)/t),e.y!==this.visibleRect.y&&t>0&&(this.velocity.y=(e.y-this.visibleRect.y)/t)),this.startTime=performance.now(),this.visibleRect=e}getOverscannedRect(){let e=this.visibleRect.copy(),t=this.visibleRect.height/3;if(e.height+=t,this.velocity.y<0&&(e.y-=t),this.velocity.x!==0){let t=this.visibleRect.width/3;e.width+=t,this.velocity.x<0&&(e.x-=t)}return e}constructor(){this.startTime=0,this.velocity=new x(0,0),this.visibleRect=new S}},A=class{isPersistedKey(e){if(this.persistedKeys.has(e))return!0;for(let t of this.persistedKeys)for(;t!=null;){let n=this.layout.getLayoutInfo(t);if(!n||n.parentKey==null)break;if(t=n.parentKey,t===e)return!0}return!1}getParentView(e){return e.parentKey==null?this._rootView:this._visibleViews.get(e.parentKey)}getReusableView(e){let t=this.getParentView(e).getReusableView(e.type);return t.layoutInfo=e,this._renderView(t),t}_renderView(e){if(e.layoutInfo){let{type:t,key:n,content:r}=e.layoutInfo;e.content=r||this.collection.getItem(n),e.rendered=this._renderContent(t,e.content)}}_renderContent(e,t){let n=t==null?null:this._renderedContent.get(t);if(n!=null)return n;let r=this.delegate.renderView(e,t);return t&&this._renderedContent.set(t,r),r}keyAtPoint(e){let t=new S(e.x,e.y,1,1),n=t.area===0?[]:this.layout.getVisibleLayoutInfos(t);for(let e of n)if(e.rect.intersects(t))return e.key;return null}relayout(e={}){this.layout.update(e),this.contentSize=this.layout.getContentSize();let t=this.visibleRect,n=e.contentChanged?0:t.x,r=e.contentChanged?0:t.y;if(n=Math.max(0,Math.min(this.contentSize.width-t.width,n)),r=Math.max(0,Math.min(this.contentSize.height-t.height,r)),n!==t.x||r!==t.y){let e=new S(n,r,t.width,t.height);this.delegate.setVisibleRect(e)}else this.updateSubviews()}getVisibleLayoutInfos(){let e;e=this._overscanManager.getOverscannedRect();let t=this.layout.getVisibleLayoutInfos(e),n=new Map;for(let e of t)n.set(e.key,e);return n}updateSubviews(){let e=this.getVisibleLayoutInfos(),t=new Set;for(let[n,r]of this._visibleViews){let i=e.get(n);(!i||r.parent!==this.getParentView(i))&&(this._visibleViews.delete(n),r.parent.reuseChild(r),t.add(r))}for(let[n,r]of e){let e=this._visibleViews.get(n);if(!e)e=this.getReusableView(r),e.parent.children.add(e),this._visibleViews.set(n,e),t.delete(e);else{e.layoutInfo=r;let t=this.collection.getItem(r.key);e.content!==t&&(e.content!=null&&this._renderedContent.delete(e.content),this._renderView(e))}}for(let e of t)e.parent.children.delete(e),e.parent.reusableViews.clear();if(!this._isScrolling)for(let t of e.keys()){let e=this._visibleViews.get(t);e.parent.children.delete(e),e.parent.children.add(e)}}render(e){let t=this,n=!1,r=!1,i=!1,a=!1,o=!1,s=!1;return e.collection!==this.collection&&(t.collection=e.collection,n=!0),(e.layout!==this.layout||this.layout.virtualizer!==this)&&(this.layout&&(this.layout.virtualizer=null),e.layout.virtualizer=this,t.layout=e.layout,n=!0),e.persistedKeys&&!O(e.persistedKeys,this.persistedKeys)&&(t.persistedKeys=e.persistedKeys,s=!0),this.visibleRect.equals(e.visibleRect)||(this._overscanManager.setVisibleRect(e.visibleRect),this.layout.shouldInvalidate(e.visibleRect,this.visibleRect)?(r=!e.visibleRect.pointEquals(this.visibleRect),i=!e.visibleRect.sizeEquals(this.visibleRect),n=!0):s=!0,t.visibleRect=e.visibleRect),e.invalidationContext!==this._invalidationContext&&(e.invalidationContext&&(i||=e.invalidationContext.sizeChanged||!1,r||=e.invalidationContext.offsetChanged||!1,a||=e.invalidationContext.itemSizeChanged||!1,o||=e.invalidationContext.layoutOptions!=null&&this._invalidationContext.layoutOptions!=null&&e.invalidationContext.layoutOptions!==this._invalidationContext.layoutOptions&&this.layout.shouldInvalidateLayoutOptions(e.invalidationContext.layoutOptions,this._invalidationContext.layoutOptions),n||=a||i||r||o),this._invalidationContext=e.invalidationContext),e.isScrolling!==this._isScrolling&&(this._isScrolling=e.isScrolling,e.isScrolling||(s=!0)),n?this.relayout({offsetChanged:r,sizeChanged:i,itemSizeChanged:a,layoutOptionsChanged:o,layoutOptions:this._invalidationContext.layoutOptions}):s&&this.updateSubviews(),Array.from(this._rootView.children)}getVisibleView(e){return this._visibleViews.get(e)}invalidate(e){this.delegate.invalidate(e)}updateItemSize(e,t){this.layout.updateItemSize&&this.layout.updateItemSize(e,t)&&this.invalidate({itemSizeChanged:!0})}constructor(e){this.delegate=e.delegate,this.collection=e.collection,this.layout=e.layout,this.contentSize=new C,this.visibleRect=new S,this.persistedKeys=new Set,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._rootView=new E(this),this._isScrolling=!1,this._invalidationContext={},this._overscanManager=new k}};const j=typeof document<`u`?e.useLayoutEffect:()=>{};function M(e){let[t,n]=l(new S(0,0,0,0)),[r,a]=l(!1),[o,u]=l({}),d=c(!1),[f]=l(()=>new A({collection:e.collection,layout:e.layout,delegate:{setVisibleRect(e){n(e),d.current=!0},renderView:e.renderView,invalidate:u}}));j(()=>{d.current&&(d.current=!1,e.onVisibleRectChange(t))});let p=s(()=>e.layoutOptions==null?o:{...o,layoutOptions:e.layoutOptions},[o,e.layoutOptions]),m=f.render({layout:e.layout,collection:e.collection,persistedKeys:e.persistedKeys,layoutOptions:e.layoutOptions,visibleRect:t,invalidationContext:p,isScrolling:r}),h=f.contentSize,g=i(()=>{a(!0)},[]),_=i(()=>{a(!1)},[]);return s(()=>({virtualizer:f,visibleViews:m,setVisibleRect:n,contentSize:h,isScrolling:r,startScrolling:g,endScrolling:_}),[f,m,n,h,r,g,_])}let N=null;function P(e=!1){if(N===null||e){let e=document.createElement(`div`),t=e.style;t.width=`50px`,t.height=`50px`,t.overflow=`scroll`,t.direction=`rtl`;let n=document.createElement(`div`),r=n.style;return r.width=`100px`,r.height=`100px`,e.appendChild(n),document.body.appendChild(e),e.scrollLeft>0?N=`positive-descending`:(e.scrollLeft=1,N=e.scrollLeft===0?`negative`:`positive-ascending`),document.body.removeChild(e),N}return N}function F(e,t){let{scrollLeft:n}=e;if(t===`rtl`){let{scrollWidth:t,clientWidth:r}=e;switch(P()){case`negative`:n=-n;break;case`positive-descending`:n=t-r-n}}return n}function I(e,t){let{contentSize:n,onVisibleRectChange:r,innerStyle:a,onScrollStart:s,onScrollEnd:g,scrollDirection:_=`both`,...v}=e,y=c({scrollTop:0,scrollLeft:0,scrollEndTime:0,scrollTimeout:null,width:0,height:0,isScrolling:!1}).current,{direction:b}=m(),[x,C]=l(!1),w=i(t=>{t.target===t.currentTarget&&(e.onScroll&&e.onScroll(t),h(()=>{let e=t.currentTarget.scrollTop,i=F(t.currentTarget,b);y.scrollTop=Math.max(0,Math.min(e,n.height-y.height)),y.scrollLeft=Math.max(0,Math.min(i,n.width-y.width)),r(new S(y.scrollLeft,y.scrollTop,y.width,y.height)),y.isScrolling||(y.isScrolling=!0,C(!0),window.dispatchEvent(new Event(`tk.disconnect-observer`)),s&&s());let a=Date.now();y.scrollEndTime<=a+50&&(y.scrollEndTime=a+300,y.scrollTimeout!=null&&clearTimeout(y.scrollTimeout),y.scrollTimeout=setTimeout(()=>{y.isScrolling=!1,C(!1),y.scrollTimeout=null,window.dispatchEvent(new Event(`tk.connect-observer`)),g&&g()},300))}))},[e,b,y,n,r,s,g]);d(t,`scroll`,w),o(()=>()=>{y.scrollTimeout!=null&&clearTimeout(y.scrollTimeout),y.isScrolling&&window.dispatchEvent(new Event(`tk.connect-observer`))},[]);let T=c(!1),E=i(e=>{let n=t.current;if(!n||T.current)return;T.current=!0,Object.getOwnPropertyNames(window.HTMLElement.prototype).includes(`clientWidth`),Object.getOwnPropertyNames(window.HTMLElement.prototype).includes(`clientHeight`);let i=n.clientWidth,a=n.clientHeight,o=i,s=a;(y.width!==o||y.height!==s)&&(y.width=o,y.height=s,e(()=>{r(new S(y.scrollLeft,y.scrollTop,o,s))}),(i!==n.clientWidth||a!==n.clientHeight)&&(y.width=n.clientWidth,y.height=n.clientHeight,e(()=>{r(new S(y.scrollLeft,y.scrollTop,y.width,y.height))}))),T.current=!1},[t,y,r]),D=u(E),O=c(null),[k,A]=l({});f(()=>{if(!T.current&&(O.current==null||!n.equals(O.current)))if(typeof IS_REACT_ACT_ENVIRONMENT==`boolean`?IS_REACT_ACT_ENVIRONMENT:typeof jest<`u`){A({}),O.current=n;return}else queueMicrotask(()=>D(h));O.current=n}),f(()=>{D(e=>e())},[k]);let j=i(()=>{E(h)},[E]);p({ref:t,box:`border-box`,onResize:j});let M={padding:0,...v.style};return _===`horizontal`?(M.overflowX=`auto`,M.overflowY=`hidden`):_===`vertical`||n.width===y.width?(M.overflowY=`auto`,M.overflowX=`hidden`):M.overflow=`auto`,a={width:Number.isFinite(n.width)?n.width:void 0,height:Number.isFinite(n.height)?n.height:void 0,pointerEvents:x?`none`:`auto`,position:`relative`,...a},{isScrolling:x,scrollViewProps:{...v,style:M},contentProps:{role:`presentation`,style:a}}}function L(e){let{layoutInfo:t,virtualizer:n,ref:r}=e,a=t?.key,o=i(()=>{if(a!=null&&r.current){let e=R(r.current);n.updateItemSize(a,e)}},[n,a,r]);return f(()=>{t?.estimatedSize&&o()}),{updateSize:o}}function R(e){let t=e.style.height;e.style.height=``;let n=new C(e.scrollWidth,e.scrollHeight);return e.style.height=t,n}function z(t){let{style:n,className:r,layoutInfo:i,virtualizer:a,parent:o,children:s}=t,{direction:l}=m(),u=c(null);return L({layoutInfo:i,virtualizer:a,ref:u}),e.createElement(`div`,{role:`presentation`,ref:u,className:r,style:{...V(i,l,o),...n}},s)}let B=new WeakMap;function V(e,t,n){let r=t===`rtl`?`right`:`left`,i=B.get(e);if(i&&i[r]!=null){if(!n)return i;let t=e.rect.y-n.rect.y,a=e.rect.x-n.rect.x;if(i.top===t&&i[r]===a)return i}let a={top:e.rect.y-(n&&!(n.allowOverflow&&e.isSticky)?n.rect.y:0),[r]:e.rect.x-(n&&!(n.allowOverflow&&e.isSticky)?n.rect.x:0),width:e.rect.width,height:e.rect.height};Object.entries(a).forEach(([e,t])=>{Number.isFinite(t)||(a[e]=void 0)});let o={position:e.isSticky?`sticky`:`absolute`,display:e.isSticky?`inline-block`:void 0,overflow:e.allowOverflow?`visible`:`hidden`,opacity:e.opacity,zIndex:e.zIndex,transform:e.transform??void 0,contain:`size layout style`,...a};return B.set(e,o),o}const H=n(null),U=n(null);function W(t){let{children:n,layout:r,layoutOptions:i}=t,a=s(()=>typeof r==`function`?new r:r,[r]),o=s(()=>({isVirtualized:!0,layoutDelegate:a,dropTargetDelegate:a.getDropTargetFromPoint?a:void 0,CollectionRoot:G,CollectionBranch:K}),[a]);return e.createElement(b.Provider,{value:o},e.createElement(U.Provider,{value:{layout:a,layoutOptions:i}},n))}function G({collection:t,persistedKeys:n,scrollRef:r,renderDropIndicator:i}){let{layout:o,layoutOptions:c}=a(U),l=o.useLayoutOptions?.call(o),u=M({layout:o,collection:t,renderView:(e,t)=>t?.render?.call(t,t),onVisibleRectChange(e){let t=r?.current;t&&(t.scrollLeft=e.x,t.scrollTop=e.y)},persistedKeys:n,layoutOptions:s(()=>c&&l?{...c,...l}:c||l,[c,l])}),{contentProps:d}=I({onVisibleRectChange:u.setVisibleRect,contentSize:u.contentSize,onScrollStart:u.startScrolling,onScrollEnd:u.endScrolling},r);return e.createElement(`div`,d,e.createElement(H.Provider,{value:u},q(null,u.visibleViews,i)))}function K({parent:e,renderDropIndicator:t}){let n=a(H).virtualizer.getVisibleView(e.key);return q(n,Array.from(n.children),t)}function q(e,t,n){return t.map(t=>J(e,t,n))}function J(t,n,r){let i=e.createElement(z,{key:n.key,layoutInfo:n.layoutInfo,virtualizer:n.virtualizer,parent:t?.layoutInfo},n.rendered),{collection:a,layout:o}=n.virtualizer,s=n.content;return s?.type===`item`&&r&&o.getDropTargetLayoutInfo&&(i=e.createElement(e.Fragment,{key:n.key},Y(t,n,{type:`item`,key:n.content.key,dropPosition:`before`},r),i,y(a,s,e=>Y(t,n,e,r)))),i}function Y(t,n,r,i){let a=i(r);if(a){let i=n.virtualizer.layout.getDropTargetLayoutInfo(r);a=e.createElement(z,{layoutInfo:i,virtualizer:n.virtualizer,parent:t?.layoutInfo},a)}return a}export{W as Virtualizer};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VisuallyHidden } from "react-aria-components";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{VisuallyHidden as e}from"react-aria";import"react-stately";export{e as VisuallyHidden};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/utils/compoundMapper.d.ts
|
|
2
|
+
interface Prop<T> {
|
|
3
|
+
value: T;
|
|
4
|
+
}
|
|
5
|
+
type ConfigSchema = Record<string, any>;
|
|
6
|
+
type ConfigVariants<T extends ConfigSchema> = { [Variant in keyof T]?: T[Variant] | null | undefined; };
|
|
7
|
+
type ConfigVariantsMulti<T extends ConfigSchema> = { [Variant in keyof T]?: T[Variant] | T[Variant][] | undefined; };
|
|
8
|
+
interface Config<T, R> {
|
|
9
|
+
default?: R;
|
|
10
|
+
compoundVariants?: (T extends ConfigSchema ? (ConfigVariants<T> | ConfigVariantsMulti<T>) & Prop<R> : Prop<R>)[];
|
|
11
|
+
defaultVariants?: Partial<T>;
|
|
12
|
+
}
|
|
13
|
+
type Props<T> = T extends ConfigSchema ? ConfigVariants<T> : never;
|
|
14
|
+
type CompoundMapper<ReturnType, Variants extends ConfigSchema> = (props: Props<Variants>) => NonNullable<ReturnType> | undefined;
|
|
15
|
+
declare const compoundMapper: <ReturnType, Variants extends ConfigSchema>(config: Config<Variants, NonNullable<ReturnType>>) => (props: Props<Variants>) => NonNullable<ReturnType> | undefined;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { ConfigSchema as n, compoundMapper as r, CompoundMapper as t };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/utils/compoundMapper.ts
|
|
2
|
+
const compoundMapper = (config) => {
|
|
3
|
+
return (props) => {
|
|
4
|
+
return (config.compoundVariants?.find((v) => {
|
|
5
|
+
return Object.entries(v).filter(([key]) => key !== "value").every(([key, value]) => {
|
|
6
|
+
const prop = props[key] || config.defaultVariants?.[key];
|
|
7
|
+
return Array.isArray(value) ? value.includes(prop) : prop === value;
|
|
8
|
+
});
|
|
9
|
+
}))?.value ?? config.default;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { compoundMapper as t };
|