@optiaxiom/react 0.12.1 → 0.12.3
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/dist/cjs/IconMagnifyingGlass-DvYcw5N4.js +2414 -0
- package/dist/cjs/assets/src/alert-dialog-content/AlertDialogContent.css.ts.vanilla-XDtwkXZT.css +27 -0
- package/dist/cjs/assets/src/alert-dialog-footer/AlertDialogFooter.css.ts.vanilla-Dhzmhm6x.css +6 -0
- package/dist/cjs/assets/src/autocomplete-content/AutocompleteContent.css.ts.vanilla-sZjRVm5-.css +10 -0
- package/dist/cjs/assets/src/avatar/Avatar.css.ts.vanilla-Ci2pMJLn.css +27 -0
- package/dist/cjs/assets/src/avatar-group/AvatarGroup.css.ts.vanilla-Uzeu57xv.css +4 -0
- package/dist/{assets/src/backdrop/Backdrop.css.ts.vanilla-BRtjpvqV.css → cjs/assets/src/backdrop/Backdrop.css.ts.vanilla-CF2yV8a7.css} +3 -3
- package/dist/cjs/assets/src/badge/Badge.css.ts.vanilla-B0bjehof.css +46 -0
- package/dist/{assets/src/box/Box.css.ts.vanilla-Bd6l11eD.css → cjs/assets/src/box/Box.css.ts.vanilla-Cfl8r0-i.css} +22 -22
- package/dist/cjs/assets/src/breadcrumb-item/BreadcrumbItem.css.ts.vanilla-D8UwqbFF.css +8 -0
- package/dist/{assets/src/breadcrumb-link/BreadcrumbLink.css.ts.vanilla-efn6JmP1.css → cjs/assets/src/breadcrumb-link/BreadcrumbLink.css.ts.vanilla-DSmc16lZ.css} +5 -5
- package/dist/cjs/assets/src/button-base/ButtonBase.css.ts.vanilla-CLWcNZZI.css +147 -0
- package/dist/cjs/assets/src/button-loadable/ButtonLoadable.css.ts.vanilla-CLkp0G0_.css +9 -0
- package/dist/cjs/assets/src/calendar/CalendarDayButton.css.ts.vanilla-CS7DmgdI.css +6 -0
- package/dist/cjs/assets/src/calendar/CalendarMonths.css.ts.vanilla-BrqQQJav.css +6 -0
- package/dist/cjs/assets/src/calendar/CalendarNextMonthButton.css.ts.vanilla-BMhBOLOq.css +7 -0
- package/dist/cjs/assets/src/calendar/CalendarPreviousMonthButton.css.ts.vanilla-PaBKoHvJ.css +7 -0
- package/dist/cjs/assets/src/card/Card.css.ts.vanilla-BIDodemv.css +14 -0
- package/dist/cjs/assets/src/card/Card.css.ts.vanilla-CcXCcfXl.css +14 -0
- package/dist/{assets/src/card-checkbox/CardCheckbox.css.ts.vanilla-D9KN3kSK.css → cjs/assets/src/card-checkbox/CardCheckbox.css.ts.vanilla-B7ovfSlo.css} +8 -8
- package/dist/{assets/src/card-checkbox/CardCheckbox.css.ts.vanilla-CvqM8C7k.css → cjs/assets/src/card-checkbox/CardCheckbox.css.ts.vanilla-BiFYTqhx.css} +8 -8
- package/dist/cjs/assets/src/card-image/CardImage.css.ts.vanilla-DjvVKLyu.css +12 -0
- package/dist/{assets/src/card-overflow/CardOverflow.css.ts.vanilla-BzYFjK3J.css → cjs/assets/src/card-overflow/CardOverflow.css.ts.vanilla-Cjn_Id7x.css} +4 -4
- package/dist/{assets/src/checkbox-control/CheckboxControl.css.ts.vanilla-B6wwNXPr.css → cjs/assets/src/checkbox-control/CheckboxControl.css.ts.vanilla-Hd13ZaHc.css} +7 -7
- package/dist/cjs/assets/src/code/Code.css.ts.vanilla-BEhWJABt.css +10 -0
- package/dist/cjs/assets/src/command-focusable-item/CommandFocusableItem.css.ts.vanilla-CyJRzNBY.css +7 -0
- package/dist/{assets/src/data-table/DataTable.css.ts.vanilla-DpJ_X2-k.css → cjs/assets/src/data-table/DataTable.css.ts.vanilla-BrXUhcOh.css} +18 -18
- package/dist/{assets/src/data-table-header-cell/DataTableHeaderCell.css.ts.vanilla-BAqAdAvl.css → cjs/assets/src/data-table-header-cell/DataTableHeaderCell.css.ts.vanilla-BKGyXxhT.css} +12 -12
- package/dist/{assets/src/dialog-content/DialogContent.css.ts.vanilla-BZ49ODZk.css → cjs/assets/src/dialog-content/DialogContent.css.ts.vanilla-CSiw9TKj.css} +10 -10
- package/dist/cjs/assets/src/dialog-header/DialogHeader.css.ts.vanilla-DorISkI5.css +15 -0
- package/dist/{assets/src/disclosure-content/DisclosureContent.css.ts.vanilla-DkoPFgEq.css → cjs/assets/src/disclosure-content/DisclosureContent.css.ts.vanilla-pVEbtdvl.css} +4 -4
- package/dist/{assets/src/disclosure-trigger/DisclosureTrigger.css.ts.vanilla-BkIHQCpx.css → cjs/assets/src/disclosure-trigger/DisclosureTrigger.css.ts.vanilla-BXvVttwC.css} +7 -7
- package/dist/cjs/assets/src/drawer-actions/DrawerActions.css.ts.vanilla-DAILLjBX.css +6 -0
- package/dist/{assets/src/drawer-content/DrawerContent.css.ts.vanilla-BtkJUc2Z.css → cjs/assets/src/drawer-content/DrawerContent.css.ts.vanilla-ChTEpkKe.css} +6 -6
- package/dist/cjs/assets/src/drawer-description/DrawerDescription.css.ts.vanilla-ltxoq8Jd.css +6 -0
- package/dist/cjs/assets/src/drawer-title/DrawerTitle.css.ts.vanilla-CEIDs9yR.css +6 -0
- package/dist/cjs/assets/src/highlight/Highlight.css.ts.vanilla-CRzOHqbX.css +7 -0
- package/dist/cjs/assets/src/indicator/Indicator.css.ts.vanilla-BMN-sSCG.css +37 -0
- package/dist/{assets/src/inline-input/InlineInput.css.ts.vanilla-Bd4TmVBe.css → cjs/assets/src/inline-input/InlineInput.css.ts.vanilla-CjJ0Y3Bx.css} +4 -4
- package/dist/{assets/src/input-control/InputControl.css.ts.vanilla-CjmvJlqC.css → cjs/assets/src/input-control/InputControl.css.ts.vanilla-Bs_UqBe4.css} +8 -8
- package/dist/cjs/assets/src/input-root/InputRoot.css.ts.vanilla-B4uW-TL9.css +70 -0
- package/dist/cjs/assets/src/kbd/Kbd.css.ts.vanilla-C1lW56sH.css +12 -0
- package/dist/cjs/assets/src/layers/layers.css.ts.vanilla-Cd9ocVF0.css +1 -0
- package/dist/{assets/src/link/Link.css.ts.vanilla-CN29HUK1.css → cjs/assets/src/link/Link.css.ts.vanilla-mAttatgp.css} +18 -18
- package/dist/cjs/assets/src/listbox-item/ListboxItem.css.ts.vanilla-BYxqoONu.css +48 -0
- package/dist/cjs/assets/src/menu-listbox/MenuListbox.css.ts.vanilla-BH2uKGfQ.css +33 -0
- package/dist/cjs/assets/src/nav/Nav.css.ts.vanilla-BIlI-86A.css +6 -0
- package/dist/cjs/assets/src/nav-account-item/NavAccountItem.css.ts.vanilla-BemdL50R.css +9 -0
- package/dist/{assets/src/nav-item/NavItem.css.ts.vanilla-brz7ryuC.css → cjs/assets/src/nav-item/NavItem.css.ts.vanilla-9k4ZrF1W.css} +13 -13
- package/dist/{assets/src/pagination/Pagination.css.ts.vanilla-DPYZaMsb.css → cjs/assets/src/pagination/Pagination.css.ts.vanilla-Bb-clgKZ.css} +5 -5
- package/dist/{assets/src/pill/Pill.css.ts.vanilla-KJdK-EEg.css → cjs/assets/src/pill/Pill.css.ts.vanilla-D1aLEcuG.css} +4 -4
- package/dist/cjs/assets/src/progress/Progress.css.ts.vanilla-DA-MaOH4.css +6 -0
- package/dist/cjs/assets/src/radio/Radio.css.ts.vanilla-Bmg_JLtx.css +13 -0
- package/dist/cjs/assets/src/search-input/SearchInput.css.ts.vanilla-CKzvBGSv.css +6 -0
- package/dist/cjs/assets/src/select-content/SelectContent.css.ts.vanilla-DkK-DWvO.css +7 -0
- package/dist/{assets/src/separator/Separator.css.ts.vanilla-dG8voxGw.css → cjs/assets/src/separator/Separator.css.ts.vanilla-BNIxitNQ.css} +8 -8
- package/dist/cjs/assets/src/skeleton/Skeleton.css.ts.vanilla-CR581zcm.css +6 -0
- package/dist/{assets/src/spinner/Spinner.css.ts.vanilla-DfF7FBRM.css → cjs/assets/src/spinner/Spinner.css.ts.vanilla-BMpmw6Aw.css} +4 -4
- package/dist/cjs/assets/src/spotlight-input/SpotlightInput.css.ts.vanilla-B_pBGhuy.css +6 -0
- package/dist/cjs/assets/src/spotlight-radio-item/SpotlightRadioItem.css.ts.vanilla-DLfRb9S_.css +12 -0
- package/dist/cjs/assets/src/spotlight-sub-item/SpotlightSubItem.css.ts.vanilla-DC_Xji3I.css +9 -0
- package/dist/{assets/src/sprinkles/properties.css.ts.vanilla-4850gnWm.css → cjs/assets/src/sprinkles/properties.css.ts.vanilla-C2HIp2sT.css} +732 -732
- package/dist/cjs/assets/src/sub-nav/SubNav.css.ts.vanilla-B3lfRr9O.css +6 -0
- package/dist/cjs/assets/src/switch/Switch.css.ts.vanilla-DklDCREP.css +45 -0
- package/dist/{assets/src/table/Table.css.ts.vanilla-CxNUhQFA.css → cjs/assets/src/table/Table.css.ts.vanilla-BFGj4eJp.css} +6 -6
- package/dist/cjs/assets/src/table-body/TableBody.css.ts.vanilla-D-9RxT0N.css +6 -0
- package/dist/cjs/assets/src/table-cell/TableCell.css.ts.vanilla-B8Zf2yag.css +10 -0
- package/dist/{assets/src/table-header-cell/TableHeaderCell.css.ts.vanilla-DaNUTovm.css → cjs/assets/src/table-header-cell/TableHeaderCell.css.ts.vanilla-Tj2whqM4.css} +4 -4
- package/dist/{assets/src/table-row/TableRow.css.ts.vanilla-B0zLWMvn.css → cjs/assets/src/table-row/TableRow.css.ts.vanilla-BKuGEq5b.css} +3 -3
- package/dist/cjs/assets/src/tabs/Tabs.css.ts.vanilla-D1b-BtMi.css +9 -0
- package/dist/{assets/src/tabs-list/TabsList.css.ts.vanilla-BP_9vLY1.css → cjs/assets/src/tabs-list/TabsList.css.ts.vanilla-VbUN5KDH.css} +4 -4
- package/dist/{assets/src/tabs-trigger/TabsTrigger.css.ts.vanilla-Ckc0oCmI.css → cjs/assets/src/tabs-trigger/TabsTrigger.css.ts.vanilla-BrquDtlQ.css} +10 -10
- package/dist/{assets/src/text/Text.css.ts.vanilla-CGxoY6g3.css → cjs/assets/src/text/Text.css.ts.vanilla-6H3aFCbx.css} +8 -8
- package/dist/cjs/assets/src/textarea-autosize/TextareaAutosize.css.ts.vanilla-DRIckF2-.css +34 -0
- package/dist/cjs/assets/src/toast/Toast.css.ts.vanilla-Drfkmzq0.css +90 -0
- package/dist/{assets/src/toast-provider/ToastProvider.css.ts.vanilla-BgmegZre.css → cjs/assets/src/toast-provider/ToastProvider.css.ts.vanilla-2geFaG2J.css} +9 -9
- package/dist/cjs/assets/src/toggle-input/ToggleInput.css.ts.vanilla-BWOKluYb.css +25 -0
- package/dist/cjs/assets/src/toggle-input-control/ToggleInputControl.css.ts.vanilla-OvUXfGMV.css +10 -0
- package/dist/{assets/src/transition/Transition.css.ts.vanilla-CzNeaprk.css → cjs/assets/src/transition/Transition.css.ts.vanilla-BEDqm8-d.css} +21 -21
- package/dist/cjs/index.js +2170 -0
- package/dist/cjs/unstable.js +2525 -0
- package/dist/esm/assets/src/alert-dialog-content/AlertDialogContent.css.ts.vanilla-XDtwkXZT.css +27 -0
- package/dist/esm/assets/src/alert-dialog-footer/AlertDialogFooter.css.ts.vanilla-Dhzmhm6x.css +6 -0
- package/dist/esm/assets/src/autocomplete-content/AutocompleteContent.css.ts.vanilla-sZjRVm5-.css +10 -0
- package/dist/esm/assets/src/avatar/Avatar.css.ts.vanilla-Ci2pMJLn.css +27 -0
- package/dist/esm/assets/src/avatar-group/AvatarGroup.css.ts.vanilla-Uzeu57xv.css +4 -0
- package/dist/esm/assets/src/backdrop/Backdrop.css.ts.vanilla-CF2yV8a7.css +8 -0
- package/dist/esm/assets/src/badge/Badge.css.ts.vanilla-B0bjehof.css +46 -0
- package/dist/esm/assets/src/box/Box.css.ts.vanilla-Cfl8r0-i.css +86 -0
- package/dist/esm/assets/src/breadcrumb-item/BreadcrumbItem.css.ts.vanilla-D8UwqbFF.css +8 -0
- package/dist/esm/assets/src/breadcrumb-link/BreadcrumbLink.css.ts.vanilla-DSmc16lZ.css +14 -0
- package/dist/esm/assets/src/button-base/ButtonBase.css.ts.vanilla-CLWcNZZI.css +147 -0
- package/dist/esm/assets/src/button-loadable/ButtonLoadable.css.ts.vanilla-CLkp0G0_.css +9 -0
- package/dist/esm/assets/src/calendar/CalendarDayButton.css.ts.vanilla-CS7DmgdI.css +6 -0
- package/dist/esm/assets/src/calendar/CalendarMonths.css.ts.vanilla-BrqQQJav.css +6 -0
- package/dist/esm/assets/src/calendar/CalendarNextMonthButton.css.ts.vanilla-BMhBOLOq.css +7 -0
- package/dist/esm/assets/src/calendar/CalendarPreviousMonthButton.css.ts.vanilla-PaBKoHvJ.css +7 -0
- package/dist/esm/assets/src/card/Card.css.ts.vanilla-BIDodemv.css +14 -0
- package/dist/esm/assets/src/card/Card.css.ts.vanilla-CcXCcfXl.css +14 -0
- package/dist/esm/assets/src/card-checkbox/CardCheckbox.css.ts.vanilla-B7ovfSlo.css +28 -0
- package/dist/esm/assets/src/card-checkbox/CardCheckbox.css.ts.vanilla-BiFYTqhx.css +28 -0
- package/dist/esm/assets/src/card-image/CardImage.css.ts.vanilla-DjvVKLyu.css +12 -0
- package/dist/esm/assets/src/card-overflow/CardOverflow.css.ts.vanilla-Cjn_Id7x.css +13 -0
- package/dist/esm/assets/src/checkbox-control/CheckboxControl.css.ts.vanilla-Hd13ZaHc.css +22 -0
- package/dist/esm/assets/src/code/Code.css.ts.vanilla-BEhWJABt.css +10 -0
- package/dist/esm/assets/src/command-focusable-item/CommandFocusableItem.css.ts.vanilla-CyJRzNBY.css +7 -0
- package/dist/esm/assets/src/data-table/DataTable.css.ts.vanilla-BrXUhcOh.css +103 -0
- package/dist/esm/assets/src/data-table-header-cell/DataTableHeaderCell.css.ts.vanilla-BKGyXxhT.css +42 -0
- package/dist/esm/assets/src/dialog-content/DialogContent.css.ts.vanilla-CSiw9TKj.css +34 -0
- package/dist/esm/assets/src/dialog-header/DialogHeader.css.ts.vanilla-DorISkI5.css +15 -0
- package/dist/esm/assets/src/disclosure-content/DisclosureContent.css.ts.vanilla-pVEbtdvl.css +10 -0
- package/dist/esm/assets/src/disclosure-trigger/DisclosureTrigger.css.ts.vanilla-BXvVttwC.css +21 -0
- package/dist/esm/assets/src/drawer-actions/DrawerActions.css.ts.vanilla-DAILLjBX.css +6 -0
- package/dist/esm/assets/src/drawer-content/DrawerContent.css.ts.vanilla-ChTEpkKe.css +21 -0
- package/dist/esm/assets/src/drawer-description/DrawerDescription.css.ts.vanilla-ltxoq8Jd.css +6 -0
- package/dist/esm/assets/src/drawer-title/DrawerTitle.css.ts.vanilla-CEIDs9yR.css +6 -0
- package/dist/esm/assets/src/highlight/Highlight.css.ts.vanilla-CRzOHqbX.css +7 -0
- package/dist/esm/assets/src/indicator/Indicator.css.ts.vanilla-BMN-sSCG.css +37 -0
- package/dist/esm/assets/src/inline-input/InlineInput.css.ts.vanilla-CjJ0Y3Bx.css +13 -0
- package/dist/esm/assets/src/input-control/InputControl.css.ts.vanilla-Bs_UqBe4.css +26 -0
- package/dist/esm/assets/src/input-root/InputRoot.css.ts.vanilla-B4uW-TL9.css +70 -0
- package/dist/esm/assets/src/kbd/Kbd.css.ts.vanilla-C1lW56sH.css +12 -0
- package/dist/esm/assets/src/layers/layers.css.ts.vanilla-Cd9ocVF0.css +1 -0
- package/dist/esm/assets/src/link/Link.css.ts.vanilla-mAttatgp.css +57 -0
- package/dist/esm/assets/src/listbox-item/ListboxItem.css.ts.vanilla-BYxqoONu.css +48 -0
- package/dist/esm/assets/src/menu-listbox/MenuListbox.css.ts.vanilla-BH2uKGfQ.css +33 -0
- package/dist/esm/assets/src/nav/Nav.css.ts.vanilla-BIlI-86A.css +6 -0
- package/dist/esm/assets/src/nav-account-item/NavAccountItem.css.ts.vanilla-BemdL50R.css +9 -0
- package/dist/esm/assets/src/nav-item/NavItem.css.ts.vanilla-9k4ZrF1W.css +43 -0
- package/dist/esm/assets/src/pagination/Pagination.css.ts.vanilla-Bb-clgKZ.css +15 -0
- package/dist/esm/assets/src/pill/Pill.css.ts.vanilla-D1aLEcuG.css +12 -0
- package/dist/esm/assets/src/progress/Progress.css.ts.vanilla-DA-MaOH4.css +6 -0
- package/dist/esm/assets/src/radio/Radio.css.ts.vanilla-Bmg_JLtx.css +13 -0
- package/dist/esm/assets/src/search-input/SearchInput.css.ts.vanilla-CKzvBGSv.css +6 -0
- package/dist/esm/assets/src/select-content/SelectContent.css.ts.vanilla-DkK-DWvO.css +7 -0
- package/dist/esm/assets/src/separator/Separator.css.ts.vanilla-BNIxitNQ.css +40 -0
- package/dist/esm/assets/src/skeleton/Skeleton.css.ts.vanilla-CR581zcm.css +6 -0
- package/dist/esm/assets/src/spinner/Spinner.css.ts.vanilla-BMpmw6Aw.css +9 -0
- package/dist/esm/assets/src/spotlight-input/SpotlightInput.css.ts.vanilla-B_pBGhuy.css +6 -0
- package/dist/esm/assets/src/spotlight-radio-item/SpotlightRadioItem.css.ts.vanilla-DLfRb9S_.css +12 -0
- package/dist/esm/assets/src/spotlight-sub-item/SpotlightSubItem.css.ts.vanilla-DC_Xji3I.css +9 -0
- package/dist/esm/assets/src/sprinkles/properties.css.ts.vanilla-C2HIp2sT.css +2225 -0
- package/dist/esm/assets/src/sub-nav/SubNav.css.ts.vanilla-B3lfRr9O.css +6 -0
- package/dist/esm/assets/src/switch/Switch.css.ts.vanilla-DklDCREP.css +45 -0
- package/dist/esm/assets/src/table/Table.css.ts.vanilla-BFGj4eJp.css +16 -0
- package/dist/esm/assets/src/table-body/TableBody.css.ts.vanilla-D-9RxT0N.css +6 -0
- package/dist/esm/assets/src/table-cell/TableCell.css.ts.vanilla-B8Zf2yag.css +10 -0
- package/dist/esm/assets/src/table-header-cell/TableHeaderCell.css.ts.vanilla-Tj2whqM4.css +10 -0
- package/dist/esm/assets/src/table-row/TableRow.css.ts.vanilla-BKuGEq5b.css +8 -0
- package/dist/esm/assets/src/tabs/Tabs.css.ts.vanilla-D1b-BtMi.css +9 -0
- package/dist/esm/assets/src/tabs-list/TabsList.css.ts.vanilla-VbUN5KDH.css +14 -0
- package/dist/esm/assets/src/tabs-trigger/TabsTrigger.css.ts.vanilla-BrquDtlQ.css +37 -0
- package/dist/esm/assets/src/text/Text.css.ts.vanilla-6H3aFCbx.css +22 -0
- package/dist/esm/assets/src/textarea-autosize/TextareaAutosize.css.ts.vanilla-DRIckF2-.css +34 -0
- package/dist/esm/assets/src/toast/Toast.css.ts.vanilla-Drfkmzq0.css +90 -0
- package/dist/esm/assets/src/toast-provider/ToastProvider.css.ts.vanilla-2geFaG2J.css +34 -0
- package/dist/esm/assets/src/toggle-input/ToggleInput.css.ts.vanilla-BWOKluYb.css +25 -0
- package/dist/esm/assets/src/toggle-input-control/ToggleInputControl.css.ts.vanilla-OvUXfGMV.css +10 -0
- package/dist/esm/assets/src/transition/Transition.css.ts.vanilla-BEDqm8-d.css +81 -0
- package/dist/{index.js → esm/index.js} +1 -0
- package/dist/esm/packages/react/package.json.js +3 -0
- package/dist/{packages → esm/packages}/react/src/alert/Alert-css.js +1 -1
- package/dist/{packages → esm/packages}/react/src/alert-dialog-content/AlertDialogContent-css.js +6 -6
- package/dist/{packages → esm/packages}/react/src/alert-dialog-footer/AlertDialogFooter-css.js +3 -3
- package/dist/esm/packages/react/src/autocomplete-content/AutocompleteContent-css.js +7 -0
- package/dist/esm/packages/react/src/avatar/Avatar-css.js +10 -0
- package/dist/esm/packages/react/src/avatar-group/AvatarGroup-css.js +7 -0
- package/dist/{packages → esm/packages}/react/src/backdrop/Backdrop-css.js +3 -3
- package/dist/esm/packages/react/src/badge/Badge-css.js +7 -0
- package/dist/{packages → esm/packages}/react/src/banner/Banner-css.js +1 -1
- package/dist/esm/packages/react/src/box/Box-css.js +7 -0
- package/dist/{packages → esm/packages}/react/src/breadcrumb-item/BreadcrumbItem-css.js +3 -3
- package/dist/{packages → esm/packages}/react/src/breadcrumb-link/BreadcrumbLink-css.js +3 -3
- package/dist/esm/packages/react/src/button-base/ButtonBase-css.js +9 -0
- package/dist/{packages → esm/packages}/react/src/button-group/ButtonGroup-css.js +3 -3
- package/dist/{packages → esm/packages}/react/src/button-loadable/ButtonLoadable-css.js +5 -5
- package/dist/{packages → esm/packages}/react/src/calendar/CalendarDayButton-css.js +3 -3
- package/dist/{packages → esm/packages}/react/src/calendar/CalendarMonths-css.js +3 -3
- package/dist/esm/packages/react/src/calendar/CalendarNextMonthButton-css.js +7 -0
- package/dist/esm/packages/react/src/calendar/CalendarPreviousMonthButton-css.js +7 -0
- package/dist/esm/packages/react/src/card/Card-css.js +9 -0
- package/dist/esm/packages/react/src/card-checkbox/CardCheckbox-css.js +10 -0
- package/dist/{packages → esm/packages}/react/src/card-image/CardImage-css.js +3 -3
- package/dist/{packages → esm/packages}/react/src/card-overflow/CardOverflow-css.js +3 -3
- package/dist/{packages → esm/packages}/react/src/checkbox-control/CheckboxControl-css.js +6 -6
- package/dist/esm/packages/react/src/code/Code-css.js +7 -0
- package/dist/esm/packages/react/src/command-focusable-item/CommandFocusableItem-css.js +7 -0
- package/dist/esm/packages/react/src/data-table/DataTable-css.js +14 -0
- package/dist/{packages → esm/packages}/react/src/data-table-header-cell/DataTableHeaderCell-css.js +4 -4
- package/dist/esm/packages/react/src/dialog-content/DialogContent-css.js +9 -0
- package/dist/{packages → esm/packages}/react/src/dialog-footer/DialogFooter-css.js +1 -1
- package/dist/{packages → esm/packages}/react/src/dialog-header/DialogHeader-css.js +6 -6
- package/dist/{packages → esm/packages}/react/src/disclosure/Disclosure.js +10 -2
- package/dist/esm/packages/react/src/disclosure-content/DisclosureContent-css.js +8 -0
- package/dist/{packages → esm/packages}/react/src/disclosure-trigger/DisclosureTrigger-css.js +4 -4
- package/dist/{packages → esm/packages}/react/src/drawer-actions/DrawerActions-css.js +3 -3
- package/dist/esm/packages/react/src/drawer-content/DrawerContent-css.js +7 -0
- package/dist/{packages → esm/packages}/react/src/drawer-description/DrawerDescription-css.js +3 -3
- package/dist/esm/packages/react/src/drawer-title/DrawerTitle-css.js +7 -0
- package/dist/{packages → esm/packages}/react/src/field/Field.js +2 -1
- package/dist/{packages → esm/packages}/react/src/highlight/Highlight-css.js +3 -3
- package/dist/esm/packages/react/src/indicator/Indicator-css.js +9 -0
- package/dist/esm/packages/react/src/inline-input/InlineInput-css.js +8 -0
- package/dist/{packages → esm/packages}/react/src/input/Input-css.js +1 -1
- package/dist/esm/packages/react/src/input-control/InputControl-css.js +7 -0
- package/dist/{packages → esm/packages}/react/src/input-root/InputRoot-css.js +5 -5
- package/dist/esm/packages/react/src/kbd/Kbd-css.js +8 -0
- package/dist/esm/packages/react/src/layers/layers-css.js +9 -0
- package/dist/esm/packages/react/src/link/Link-css.js +8 -0
- package/dist/esm/packages/react/src/listbox-item/ListboxItem-css.js +9 -0
- package/dist/esm/packages/react/src/menu-listbox/MenuListbox-css.js +7 -0
- package/dist/esm/packages/react/src/nav/Nav-css.js +7 -0
- package/dist/{packages → esm/packages}/react/src/nav/Nav.js +2 -2
- package/dist/{packages → esm/packages}/react/src/nav-account-item/NavAccountItem-css.js +3 -3
- package/dist/{packages → esm/packages}/react/src/nav-account-item/NavAccountItem.js +2 -3
- package/dist/esm/packages/react/src/nav-body/NavBody-css.js +6 -0
- package/dist/{packages → esm/packages}/react/src/nav-body/NavBody.js +12 -1
- package/dist/{packages → esm/packages}/react/src/nav-footer/NavFooter.js +3 -1
- package/dist/{packages → esm/packages}/react/src/nav-group/NavGroup.js +4 -6
- package/dist/{packages → esm/packages}/react/src/nav-group-label/NavGroupLabel.js +1 -1
- package/dist/{packages → esm/packages}/react/src/nav-header/NavHeader.js +3 -1
- package/dist/{packages → esm/packages}/react/src/nav-item/NavItem-css.js +6 -6
- package/dist/{packages → esm/packages}/react/src/nav-item/NavItem.js +2 -2
- package/dist/esm/packages/react/src/nav-list/NavList.js +30 -0
- package/dist/{packages → esm/packages}/react/src/nav-separator/NavSeparator.js +1 -1
- package/dist/esm/packages/react/src/pagination/Pagination-css.js +9 -0
- package/dist/{packages → esm/packages}/react/src/paper/Paper-css.js +1 -1
- package/dist/esm/packages/react/src/pill/Pill-css.js +7 -0
- package/dist/{packages → esm/packages}/react/src/progress/Progress-css.js +3 -3
- package/dist/esm/packages/react/src/radio/Radio-css.js +12 -0
- package/dist/esm/packages/react/src/search-input/SearchInput-css.js +8 -0
- package/dist/{packages → esm/packages}/react/src/select-content/SelectContent-css.js +3 -3
- package/dist/{packages → esm/packages}/react/src/separator/Separator-css.js +3 -3
- package/dist/{packages → esm/packages}/react/src/sidebar/Sidebar.js +3 -0
- package/dist/{packages → esm/packages}/react/src/sidebar-toggle/SidebarToggle.js +3 -1
- package/dist/{packages → esm/packages}/react/src/skeleton/Skeleton-css.js +3 -3
- package/dist/esm/packages/react/src/spinner/Spinner-css.js +7 -0
- package/dist/{packages → esm/packages}/react/src/spotlight-input/SpotlightInput-css.js +3 -3
- package/dist/{packages → esm/packages}/react/src/spotlight-radio-item/SpotlightRadioItem-css.js +3 -3
- package/dist/esm/packages/react/src/spotlight-sub-item/SpotlightSubItem-css.js +8 -0
- package/dist/esm/packages/react/src/sprinkles/properties-css.js +7 -0
- package/dist/{packages → esm/packages}/react/src/sub-nav/SubNav-css.js +3 -3
- package/dist/{packages → esm/packages}/react/src/sub-nav/SubNav.js +11 -2
- package/dist/esm/packages/react/src/switch/Switch-css.js +12 -0
- package/dist/{packages → esm/packages}/react/src/table/Table-css.js +4 -4
- package/dist/{packages → esm/packages}/react/src/table-body/TableBody-css.js +3 -3
- package/dist/{packages → esm/packages}/react/src/table-cell/TableCell-css.js +4 -4
- package/dist/{packages → esm/packages}/react/src/table-header-cell/TableHeaderCell-css.js +4 -4
- package/dist/esm/packages/react/src/table-row/TableRow-css.js +7 -0
- package/dist/esm/packages/react/src/tabs/Tabs-css.js +7 -0
- package/dist/{packages → esm/packages}/react/src/tabs-list/TabsList-css.js +3 -3
- package/dist/{packages → esm/packages}/react/src/tabs-trigger/TabsTrigger-css.js +4 -4
- package/dist/esm/packages/react/src/text/Text-css.js +7 -0
- package/dist/esm/packages/react/src/textarea-autosize/TextareaAutosize-css.js +9 -0
- package/dist/esm/packages/react/src/toast/Toast-css.js +10 -0
- package/dist/{packages → esm/packages}/react/src/toast-provider/ToastProvider-css.js +3 -3
- package/dist/esm/packages/react/src/toggle-input/ToggleInput-css.js +8 -0
- package/dist/{packages → esm/packages}/react/src/toggle-input-control/ToggleInputControl-css.js +5 -5
- package/dist/esm/packages/react/src/toggle-input-hidden-input/ToggleInputHiddenInput-css.js +6 -0
- package/dist/{packages → esm/packages}/react/src/tooltip-content/TooltipContent-css.js +1 -1
- package/dist/esm/packages/react/src/transition/Transition-css.js +7 -0
- package/dist/{unstable.js → esm/unstable.js} +0 -1
- package/dist/index.d.ts +10 -1
- package/dist/unstable.d.ts +5 -8
- package/package.json +6 -4
- package/dist/assets/src/alert-dialog-content/AlertDialogContent.css.ts.vanilla-DBmOaykK.css +0 -27
- package/dist/assets/src/alert-dialog-footer/AlertDialogFooter.css.ts.vanilla-BPvsgtys.css +0 -6
- package/dist/assets/src/autocomplete-content/AutocompleteContent.css.ts.vanilla-DiCWKojJ.css +0 -10
- package/dist/assets/src/avatar/Avatar.css.ts.vanilla-D0IiOGrj.css +0 -27
- package/dist/assets/src/avatar-group/AvatarGroup.css.ts.vanilla-BgJJG2w1.css +0 -4
- package/dist/assets/src/badge/Badge.css.ts.vanilla-Diwj-TNR.css +0 -46
- package/dist/assets/src/breadcrumb-item/BreadcrumbItem.css.ts.vanilla-Coa3svbk.css +0 -8
- package/dist/assets/src/button-base/ButtonBase.css.ts.vanilla-CX-cT960.css +0 -147
- package/dist/assets/src/button-loadable/ButtonLoadable.css.ts.vanilla-2A2vR7Tp.css +0 -9
- package/dist/assets/src/calendar/CalendarDayButton.css.ts.vanilla-CUUTx8Jk.css +0 -6
- package/dist/assets/src/calendar/CalendarMonths.css.ts.vanilla-w1O5QHbX.css +0 -6
- package/dist/assets/src/calendar/CalendarNextMonthButton.css.ts.vanilla--u5FE0aq.css +0 -7
- package/dist/assets/src/calendar/CalendarPreviousMonthButton.css.ts.vanilla-eaPm9Eu9.css +0 -7
- package/dist/assets/src/card/Card.css.ts.vanilla-BuTlwQj7.css +0 -14
- package/dist/assets/src/card/Card.css.ts.vanilla-Bv7zejRh.css +0 -14
- package/dist/assets/src/card-image/CardImage.css.ts.vanilla-BmI8cxvJ.css +0 -12
- package/dist/assets/src/code/Code.css.ts.vanilla-y2R0caVb.css +0 -10
- package/dist/assets/src/command-focusable-item/CommandFocusableItem.css.ts.vanilla-BNOFzvUx.css +0 -7
- package/dist/assets/src/dialog-header/DialogHeader.css.ts.vanilla-CFcql3jI.css +0 -15
- package/dist/assets/src/drawer-actions/DrawerActions.css.ts.vanilla-WRfZ0uS8.css +0 -6
- package/dist/assets/src/drawer-description/DrawerDescription.css.ts.vanilla-CvKcovQs.css +0 -6
- package/dist/assets/src/drawer-title/DrawerTitle.css.ts.vanilla-CLGLl0zi.css +0 -6
- package/dist/assets/src/highlight/Highlight.css.ts.vanilla-_aRp6QYI.css +0 -7
- package/dist/assets/src/indicator/Indicator.css.ts.vanilla-CjtvQEZ9.css +0 -37
- package/dist/assets/src/input-root/InputRoot.css.ts.vanilla-DsBa61rD.css +0 -70
- package/dist/assets/src/kbd/Kbd.css.ts.vanilla-DUl9pW_8.css +0 -12
- package/dist/assets/src/layers/layers.css.ts.vanilla-xcn_ZlL-.css +0 -1
- package/dist/assets/src/listbox-item/ListboxItem.css.ts.vanilla-CYmLxt0f.css +0 -48
- package/dist/assets/src/menu-listbox/MenuListbox.css.ts.vanilla-Df9sANNY.css +0 -33
- package/dist/assets/src/nav/Nav.css.ts.vanilla-DdDIoa3G.css +0 -6
- package/dist/assets/src/nav-account-item/NavAccountItem.css.ts.vanilla-Cbg3QYdp.css +0 -9
- package/dist/assets/src/nav-body/NavBody.css.ts.vanilla-BuCKcvv7.css +0 -6
- package/dist/assets/src/progress/Progress.css.ts.vanilla-BtsGgP1D.css +0 -6
- package/dist/assets/src/radio/Radio.css.ts.vanilla-CganvZ0Q.css +0 -13
- package/dist/assets/src/search-input/SearchInput.css.ts.vanilla-CgPVEiFy.css +0 -6
- package/dist/assets/src/select-content/SelectContent.css.ts.vanilla-CThpq7Su.css +0 -7
- package/dist/assets/src/skeleton/Skeleton.css.ts.vanilla-Cc53biCs.css +0 -6
- package/dist/assets/src/spotlight-input/SpotlightInput.css.ts.vanilla-DYoxdFeh.css +0 -6
- package/dist/assets/src/spotlight-radio-item/SpotlightRadioItem.css.ts.vanilla-zfGQlYHN.css +0 -12
- package/dist/assets/src/spotlight-sub-item/SpotlightSubItem.css.ts.vanilla-BOxV-GNo.css +0 -9
- package/dist/assets/src/sub-nav/SubNav.css.ts.vanilla-BFsKY55B.css +0 -6
- package/dist/assets/src/switch/Switch.css.ts.vanilla-U9QbXRin.css +0 -45
- package/dist/assets/src/table-body/TableBody.css.ts.vanilla-CQ3vibs3.css +0 -6
- package/dist/assets/src/table-cell/TableCell.css.ts.vanilla-7P9gL7JQ.css +0 -10
- package/dist/assets/src/tabs/Tabs.css.ts.vanilla-BN7lVYAH.css +0 -9
- package/dist/assets/src/textarea-autosize/TextareaAutosize.css.ts.vanilla-IGQBMtlC.css +0 -34
- package/dist/assets/src/toast/Toast.css.ts.vanilla-HHPiOBA9.css +0 -90
- package/dist/assets/src/toggle-input/ToggleInput.css.ts.vanilla-DWjnMxMo.css +0 -25
- package/dist/assets/src/toggle-input-control/ToggleInputControl.css.ts.vanilla-X7r8qT4_.css +0 -10
- package/dist/packages/react/package.json.js +0 -3
- package/dist/packages/react/src/autocomplete-content/AutocompleteContent-css.js +0 -7
- package/dist/packages/react/src/avatar/Avatar-css.js +0 -10
- package/dist/packages/react/src/avatar-group/AvatarGroup-css.js +0 -7
- package/dist/packages/react/src/badge/Badge-css.js +0 -7
- package/dist/packages/react/src/box/Box-css.js +0 -7
- package/dist/packages/react/src/button-base/ButtonBase-css.js +0 -9
- package/dist/packages/react/src/calendar/CalendarNextMonthButton-css.js +0 -7
- package/dist/packages/react/src/calendar/CalendarPreviousMonthButton-css.js +0 -7
- package/dist/packages/react/src/card/Card-css.js +0 -9
- package/dist/packages/react/src/card-checkbox/CardCheckbox-css.js +0 -10
- package/dist/packages/react/src/code/Code-css.js +0 -7
- package/dist/packages/react/src/command-focusable-item/CommandFocusableItem-css.js +0 -7
- package/dist/packages/react/src/data-table/DataTable-css.js +0 -14
- package/dist/packages/react/src/dialog-content/DialogContent-css.js +0 -9
- package/dist/packages/react/src/disclosure-content/DisclosureContent-css.js +0 -8
- package/dist/packages/react/src/drawer-content/DrawerContent-css.js +0 -7
- package/dist/packages/react/src/drawer-title/DrawerTitle-css.js +0 -7
- package/dist/packages/react/src/indicator/Indicator-css.js +0 -9
- package/dist/packages/react/src/inline-input/InlineInput-css.js +0 -8
- package/dist/packages/react/src/input-control/InputControl-css.js +0 -7
- package/dist/packages/react/src/kbd/Kbd-css.js +0 -8
- package/dist/packages/react/src/layers/layers-css.js +0 -9
- package/dist/packages/react/src/link/Link-css.js +0 -8
- package/dist/packages/react/src/listbox-item/ListboxItem-css.js +0 -9
- package/dist/packages/react/src/menu-listbox/MenuListbox-css.js +0 -7
- package/dist/packages/react/src/nav/Nav-css.js +0 -7
- package/dist/packages/react/src/nav-body/NavBody-css.js +0 -7
- package/dist/packages/react/src/nav-group-content/NavGroupContent.js +0 -26
- package/dist/packages/react/src/pagination/Pagination-css.js +0 -9
- package/dist/packages/react/src/pill/Pill-css.js +0 -7
- package/dist/packages/react/src/radio/Radio-css.js +0 -12
- package/dist/packages/react/src/search-input/SearchInput-css.js +0 -8
- package/dist/packages/react/src/spinner/Spinner-css.js +0 -7
- package/dist/packages/react/src/spotlight-sub-item/SpotlightSubItem-css.js +0 -8
- package/dist/packages/react/src/sprinkles/properties-css.js +0 -7
- package/dist/packages/react/src/switch/Switch-css.js +0 -12
- package/dist/packages/react/src/table-row/TableRow-css.js +0 -7
- package/dist/packages/react/src/tabs/Tabs-css.js +0 -7
- package/dist/packages/react/src/text/Text-css.js +0 -7
- package/dist/packages/react/src/textarea-autosize/TextareaAutosize-css.js +0 -9
- package/dist/packages/react/src/toast/Toast-css.js +0 -10
- package/dist/packages/react/src/toggle-input/ToggleInput-css.js +0 -8
- package/dist/packages/react/src/toggle-input-hidden-input/ToggleInputHiddenInput-css.js +0 -6
- package/dist/packages/react/src/transition/Transition-css.js +0 -7
- /package/dist/{node_modules → esm/node_modules}/.pnpm/@mantine_hooks@7.16.2_react@18.3.1/node_modules/@mantine/hooks/esm/use-hotkeys/parse-hotkey.js +0 -0
- /package/dist/{node_modules → esm/node_modules}/.pnpm/@mantine_hooks@7.16.2_react@18.3.1/node_modules/@mantine/hooks/esm/use-hotkeys/use-hotkeys.js +0 -0
- /package/dist/{node_modules → esm/node_modules}/.pnpm/@mantine_hooks@7.16.2_react@18.3.1/node_modules/@mantine/hooks/esm/use-media-query/use-media-query.js +0 -0
- /package/dist/{node_modules → esm/node_modules}/.pnpm/@mantine_hooks@7.16.2_react@18.3.1/node_modules/@mantine/hooks/esm/use-pagination/use-pagination.js +0 -0
- /package/dist/{node_modules → esm/node_modules}/.pnpm/@mantine_hooks@7.16.2_react@18.3.1/node_modules/@mantine/hooks/esm/use-uncontrolled/use-uncontrolled.js +0 -0
- /package/dist/{node_modules → esm/node_modules}/.pnpm/@vanilla-extract_sprinkles@1.6.3_patch_hash_eh2tyazhmaumpwivglvpekok3e_@vanilla-extract_css@1_wcbutaohqjnkd6euht5r5xgz74/node_modules/@vanilla-extract/sprinkles/createRuntimeSprinkles/dist/vanilla-extract-sprinkles-createRuntimeSprinkles.esm.js +0 -0
- /package/dist/{node_modules → esm/node_modules}/.pnpm/@vanilla-extract_sprinkles@1.6.3_patch_hash_eh2tyazhmaumpwivglvpekok3e_@vanilla-extract_css@1_wcbutaohqjnkd6euht5r5xgz74/node_modules/@vanilla-extract/sprinkles/createUtils/dist/vanilla-extract-sprinkles-createUtils.esm.js +0 -0
- /package/dist/{node_modules → esm/node_modules}/.pnpm/@vanilla-extract_sprinkles@1.6.3_patch_hash_eh2tyazhmaumpwivglvpekok3e_@vanilla-extract_css@1_wcbutaohqjnkd6euht5r5xgz74/node_modules/@vanilla-extract/sprinkles/dist/createSprinkles-74286718.esm.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/alert/Alert.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/alert-dialog/AlertDialog.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/alert-dialog-action/AlertDialogAction.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/alert-dialog-body/AlertDialogBody.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/alert-dialog-cancel/AlertDialogCancel.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/alert-dialog-content/AlertDialogContent.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/alert-dialog-context/AlertDialogContext.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/alert-dialog-footer/AlertDialogFooter.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/alert-dialog-header/AlertDialogHeader.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/alert-dialog-trigger/AlertDialogTrigger.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/angle-menu-button/AngleMenuButton.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/autocomplete/Autocomplete.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/autocomplete-content/AutocompleteContent.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/autocomplete-context/AutocompleteContext.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/autocomplete-empty/AutocompleteEmpty.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/autocomplete-item/AutocompleteItem.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/autocomplete-radio-item/AutocompleteRadioItem.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/autocomplete-trigger/AutocompleteTrigger.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/autocomplete-virtualized/AutocompleteVirtualized.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/avatar/Avatar.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/avatar-context/AvatarContext.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/avatar-group/AvatarGroup.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/axiom-provider/AxiomProvider.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/backdrop/Backdrop.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/badge/Badge.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/banner/Banner.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/box/Box.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/box/extractBoxProps.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/breadcrumb/Breadcrumb.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/breadcrumb-ellipsis/BreadcrumbEllipsis.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/breadcrumb-item/BreadcrumbItem.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/breadcrumb-link/BreadcrumbLink.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/breadcrumb-page/BreadcrumbPage.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/button/Button.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/button-addon/ButtonAddon.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/button-base/ButtonBase.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/button-group/ButtonGroup.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/button-label/ButtonLabel.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/button-loadable/ButtonLoadable.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/calendar/Calendar.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/calendar/CalendarChevron.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/calendar/CalendarDay.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/calendar/CalendarDayButton.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/calendar/CalendarMonthCaption.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/calendar/CalendarMonthGrid.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/calendar/CalendarMonths.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/calendar/CalendarNextMonthButton.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/calendar/CalendarPreviousMonthButton.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/calendar/CalendarWeekday.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/card/Card.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/card-checkbox/CardCheckbox.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/card-content/CardContent.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/card-context/CardContext.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/card-description/CardDescription.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/card-image/CardImage.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/card-overflow/CardOverflow.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/card-title/CardTitle.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/checkbox/Checkbox.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/checkbox-content/CheckboxContent.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/checkbox-control/CheckboxControl.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/checkbox-root/CheckboxRoot.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/code/Code.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/combobox/Combobox.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/combobox-checkbox-item/ComboboxCheckboxItem.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/combobox-content/ComboboxContent.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/combobox-content/ComboboxContentImpl.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/combobox-context/ComboboxContext.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/combobox-dialog-content/ComboboxDialogContent.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/combobox-empty/ComboboxEmpty.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/combobox-footer/ComboboxFooter.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/combobox-group/ComboboxGroup.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/combobox-input/ComboboxInput.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/combobox-item/ComboboxItem.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/combobox-label/ComboboxLabel.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/combobox-popover/ComboboxPopover.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/combobox-popover-content/ComboboxPopoverContent.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/combobox-radio-item/ComboboxRadioItem.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/combobox-scroll-area/ComboboxScrollArea.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/combobox-separator/ComboboxSeparator.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/combobox-trigger/ComboboxTrigger.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/combobox-value/ComboboxValue.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/command/Command.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/command-context/CommandContext.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/command-focusable-item/CommandFocusableItem.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/command-input/CommandInput.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/command-item/CommandItem.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/command-listbox/CommandListbox.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/command-sub/CommandSub.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/command-sub-context/CommandSubContext.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/command-sub-item/CommandSubItem.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/command-toggle-button/CommandToggleButton.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/data-table/DataTable.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/data-table-header-cell/DataTableHeaderCell.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/date-input/DateInput.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/date-input/useCalendarSupported.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/date-input/utils.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/dialog/Dialog.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/dialog-body/DialogBody.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/dialog-close/DialogClose.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/dialog-content/DialogContent.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/dialog-context/DialogContext.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/dialog-footer/DialogFooter.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/dialog-form/DialogForm.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/dialog-header/DialogHeader.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/dialog-trigger/DialogTrigger.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/disclosure-content/DisclosureContent.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/disclosure-context/DisclosureContext.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/disclosure-trigger/DisclosureTrigger.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/downshift/usePortalPatch.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/drawer/Drawer.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/drawer-actions/DrawerActions.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/drawer-body/DrawerBody.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/drawer-close/DrawerClose.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/drawer-content/DrawerContent.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/drawer-context/DrawerContext.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/drawer-description/DrawerDescription.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/drawer-footer/DrawerFooter.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/drawer-header/DrawerHeader.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/drawer-title/DrawerTitle.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/drawer-trigger/DrawerTrigger.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/dropdown-menu/DropdownMenu.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/dropdown-menu-checkbox-item/DropdownMenuCheckboxItem.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/dropdown-menu-content/DropdownMenuContent.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/dropdown-menu-context/DropdownMenuContext.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/dropdown-menu-group/DropdownMenuGroup.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/dropdown-menu-item/DropdownMenuItem.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/dropdown-menu-label/DropdownMenuLabel.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/dropdown-menu-separator/DropdownMenuSeparator.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/dropdown-menu-sub/DropdownMenuSub.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/dropdown-menu-sub-content/DropdownMenuSubContent.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/dropdown-menu-sub-context/DropdownMenuSubContext.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/dropdown-menu-sub-trigger/DropdownMenuSubTrigger.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/dropdown-menu-trigger/DropdownMenuTrigger.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/ellipsis-menu-button/EllipsisMenuButton.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/field-context/FieldContext.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/field-context/useFieldContext.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/field-label/FieldLabel.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/filtered-slot/FilteredSlot.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/flex/Flex.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/grid/Grid.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/heading/Heading.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/highlight/Highlight.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/highlight/useHighlightedChunks.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/icon/Icon.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/icons/CheckboxCheck.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/icons/IconAngleDown.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/icons/IconAngleLeft.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/icons/IconAngleRight.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/icons/IconCalendar.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/icons/IconCheck.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/icons/IconCircleCheckSolid.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/icons/IconCircleExclamationSolid.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/icons/IconCircleInfoSolid.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/icons/IconCircleQuestion.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/icons/IconEllipsis.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/icons/IconEllipsisSolid.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/icons/IconMagnifyingGlass.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/icons/IconMinus.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/icons/IconSort.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/icons/IconSortDown.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/icons/IconSortUp.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/icons/IconTriangleExclamation.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/icons/IconTriangleExclamationSolid.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/icons/IconUpRightFromSquare.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/icons/IconUserSolid.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/icons/IconUsersSolid.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/icons/IconX.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/icons/withIcon.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/indicator/Indicator.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/inline-input/InlineInput.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/input/Input.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/input-addon/InputAddon.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/input-context/InputContext.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/input-control/InputControl.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/input-root/InputRoot.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/kbd/Kbd.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/link/Link.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/listbox/Listbox.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/listbox-checkbox-item/ListboxCheckboxItem.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/listbox-empty/ListboxEmpty.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/listbox-footer/ListboxFooter.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/listbox-group/ListboxGroup.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/listbox-group-context/ListboxGroupContext.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/listbox-item/ListboxItem.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/listbox-item-indicator/ListboxItemIndicator.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/listbox-label/ListboxLabel.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/listbox-radio-item/ListboxRadioItem.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/listbox-scroll-area/ListboxScrollArea.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/listbox-separator/ListboxSeparator.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/menu-listbox/MenuListbox.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/modal-layer/ModalLayer.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/nav-group-context/NavGroupContext.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/nested-dialog-context/NestedDialogContext.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/nested-dialog-context/useNestedDialogCount.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/pagination/Pagination.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/paper/Paper.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/pill/Pill.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/popover/Popover.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/popover-anchor/PopoverAnchor.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/popover-content/PopoverContent.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/popover-context/PopoverContext.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/popover-trigger/PopoverTrigger.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/progress/Progress.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/radio/Radio.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/radio-group/RadioGroup.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/radio-group-context/RadioGroupContext.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/search-input/SearchInput.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/segmented-control/SegmentedControl.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/segmented-control-context/SegmentedControlContext.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/segmented-control-item/SegmentedControlItem.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/select/Select.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/select-content/SelectContent.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/select-context/SelectContext.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/select-group/SelectGroup.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/select-item/SelectItem.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/select-label/SelectLabel.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/select-radio-item/SelectRadioItem.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/select-separator/SelectSeparator.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/select-trigger/SelectTrigger.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/select-value/SelectValue.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/separator/Separator.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/sidebar-context/SidebarContext.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/skeleton/Skeleton.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/spinner/Spinner.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/spotlight/Spotlight.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/spotlight-content/SpotlightContent.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/spotlight-context/SpotlightContext.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/spotlight-empty/SpotlightEmpty.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/spotlight-input/SpotlightInput.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/spotlight-item/SpotlightItem.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/spotlight-label/SpotlightLabel.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/spotlight-radio-item/SpotlightRadioItem.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/spotlight-scroll-area/SpotlightScrollArea.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/spotlight-sub/SpotlightSub.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/spotlight-sub-item/SpotlightSubItem.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/spotlight-trigger/SpotlightTrigger.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/sprinkles/createSprinklesMerge.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/sprinkles/sprinkles.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/sprinkles/sprinklesMerge.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/switch/Switch.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/table/Table.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/table-body/TableBody.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/table-cell/TableCell.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/table-header/TableHeader.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/table-header-cell/TableHeaderCell.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/table-row/TableRow.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/tabs/Tabs.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/tabs-content/TabsContent.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/tabs-list/TabsList.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/tabs-trigger/TabsTrigger.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/text/Text.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/textarea/Textarea.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/textarea-autosize/TextareaAutosize.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/theme-provider/ThemeProvider.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/toast/Toast.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/toast-action/ToastAction.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/toast-provider/ToastProvider.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/toast-provider/useOverflowAnchor.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/toast-title/ToastTitle.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/toggle-button/ToggleButton.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/toggle-input/ToggleInput.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/toggle-input-content/ToggleInputContent.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/toggle-input-context/ToggleInputContext.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/toggle-input-control/ToggleInputControl.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/toggle-input-description/ToggleInputDescription.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/toggle-input-hidden-input/ToggleInputHiddenInput.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/toggle-input-label/ToggleInputLabel.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/tooltip/Tooltip.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/tooltip-content/TooltipContent.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/tooltip-context/TooltipContext.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/tooltip-provider/TooltipProvider.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/tooltip-root/TooltipRoot.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/tooltip-trigger/TooltipTrigger.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/transition/Transition.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/transition/TransitionGlobalConfig.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/transition-group/TransitionGroup.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/transition-group-context/TransitionGroupContext.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/use-event/useEffectEvent.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/use-responsive-matches/useResponsiveMatches.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/use-transition-status/useTransitionStatus.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/utils/conditions.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/utils/decorateChildren.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/utils/fallbackSpan.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/utils/forceValueChange.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/utils/mapValues.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/utils/onReactSelectInputBlur.js +0 -0
- /package/dist/{packages → esm/packages}/react/src/vanilla-extract/recipeRuntime.js +0 -0
|
@@ -0,0 +1,2525 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
var reactPopper = require('@radix-ui/react-popper');
|
|
6
|
+
var reactUseControllableState = require('@radix-ui/react-use-controllable-state');
|
|
7
|
+
var React = require('react');
|
|
8
|
+
var reactContext = require('@radix-ui/react-context');
|
|
9
|
+
var downshift = require('downshift');
|
|
10
|
+
var IconMagnifyingGlass = require('./IconMagnifyingGlass-DvYcw5N4.js');
|
|
11
|
+
var reactPortal = require('@radix-ui/react-portal');
|
|
12
|
+
var reactVisuallyHidden = require('@radix-ui/react-visually-hidden');
|
|
13
|
+
require('./assets/src/layers/layers.css.ts.vanilla-Cd9ocVF0.css');
|
|
14
|
+
require('./assets/src/autocomplete-content/AutocompleteContent.css.ts.vanilla-sZjRVm5-.css');
|
|
15
|
+
require('./assets/src/command-focusable-item/CommandFocusableItem.css.ts.vanilla-CyJRzNBY.css');
|
|
16
|
+
var reactComposeRefs = require('@radix-ui/react-compose-refs');
|
|
17
|
+
var reactVirtual = require('@tanstack/react-virtual');
|
|
18
|
+
require('./assets/src/breadcrumb-item/BreadcrumbItem.css.ts.vanilla-D8UwqbFF.css');
|
|
19
|
+
require('./assets/src/breadcrumb-link/BreadcrumbLink.css.ts.vanilla-DSmc16lZ.css');
|
|
20
|
+
var reactDayPicker = require('react-day-picker');
|
|
21
|
+
require('./assets/src/calendar/CalendarDayButton.css.ts.vanilla-CS7DmgdI.css');
|
|
22
|
+
require('./assets/src/calendar/CalendarMonths.css.ts.vanilla-BrqQQJav.css');
|
|
23
|
+
require('./assets/src/calendar/CalendarNextMonthButton.css.ts.vanilla-BMhBOLOq.css');
|
|
24
|
+
require('./assets/src/calendar/CalendarPreviousMonthButton.css.ts.vanilla-PaBKoHvJ.css');
|
|
25
|
+
var reactId = require('@radix-ui/react-id');
|
|
26
|
+
require('./assets/src/card-checkbox/CardCheckbox.css.ts.vanilla-B7ovfSlo.css');
|
|
27
|
+
require('./assets/src/link/Link.css.ts.vanilla-mAttatgp.css');
|
|
28
|
+
require('./assets/src/card/Card.css.ts.vanilla-BIDodemv.css');
|
|
29
|
+
require('./assets/src/card-image/CardImage.css.ts.vanilla-DjvVKLyu.css');
|
|
30
|
+
require('./assets/src/card-overflow/CardOverflow.css.ts.vanilla-Cjn_Id7x.css');
|
|
31
|
+
var reactSlot = require('@radix-ui/react-slot');
|
|
32
|
+
var RadixDialog = require('@radix-ui/react-dialog');
|
|
33
|
+
var reactTable = require('@tanstack/react-table');
|
|
34
|
+
var dynamic = require('@vanilla-extract/dynamic');
|
|
35
|
+
require('./assets/src/table-header-cell/TableHeaderCell.css.ts.vanilla-Tj2whqM4.css');
|
|
36
|
+
require('./assets/src/data-table-header-cell/DataTableHeaderCell.css.ts.vanilla-BKGyXxhT.css');
|
|
37
|
+
require('./assets/src/table/Table.css.ts.vanilla-BFGj4eJp.css');
|
|
38
|
+
require('./assets/src/table-body/TableBody.css.ts.vanilla-D-9RxT0N.css');
|
|
39
|
+
require('./assets/src/table-row/TableRow.css.ts.vanilla-BKuGEq5b.css');
|
|
40
|
+
require('./assets/src/table-cell/TableCell.css.ts.vanilla-B8Zf2yag.css');
|
|
41
|
+
require('./assets/src/data-table/DataTable.css.ts.vanilla-BrXUhcOh.css');
|
|
42
|
+
require('./assets/src/highlight/Highlight.css.ts.vanilla-CRzOHqbX.css');
|
|
43
|
+
require('./assets/src/inline-input/InlineInput.css.ts.vanilla-CjJ0Y3Bx.css');
|
|
44
|
+
require('./assets/src/pill/Pill.css.ts.vanilla-D1aLEcuG.css');
|
|
45
|
+
require('./assets/src/select-content/SelectContent.css.ts.vanilla-DkK-DWvO.css');
|
|
46
|
+
require('./assets/src/spotlight-input/SpotlightInput.css.ts.vanilla-B_pBGhuy.css');
|
|
47
|
+
require('./assets/src/spotlight-radio-item/SpotlightRadioItem.css.ts.vanilla-DLfRb9S_.css');
|
|
48
|
+
require('./assets/src/badge/Badge.css.ts.vanilla-B0bjehof.css');
|
|
49
|
+
require('./assets/src/spotlight-sub-item/SpotlightSubItem.css.ts.vanilla-DC_Xji3I.css');
|
|
50
|
+
require('./assets/src/sub-nav/SubNav.css.ts.vanilla-B3lfRr9O.css');
|
|
51
|
+
require('./assets/src/backdrop/Backdrop.css.ts.vanilla-CF2yV8a7.css');
|
|
52
|
+
require('./assets/src/dialog-content/DialogContent.css.ts.vanilla-CSiw9TKj.css');
|
|
53
|
+
require('@radix-ui/react-collapsible');
|
|
54
|
+
require('./assets/src/disclosure-trigger/DisclosureTrigger.css.ts.vanilla-BXvVttwC.css');
|
|
55
|
+
require('./assets/src/avatar-group/AvatarGroup.css.ts.vanilla-Uzeu57xv.css');
|
|
56
|
+
require('./assets/src/toggle-input/ToggleInput.css.ts.vanilla-BWOKluYb.css');
|
|
57
|
+
require('./assets/src/toggle-input-control/ToggleInputControl.css.ts.vanilla-OvUXfGMV.css');
|
|
58
|
+
require('./assets/src/checkbox-control/CheckboxControl.css.ts.vanilla-Hd13ZaHc.css');
|
|
59
|
+
require('clsx');
|
|
60
|
+
require('@radix-ui/react-separator');
|
|
61
|
+
require('./assets/src/separator/Separator.css.ts.vanilla-BNIxitNQ.css');
|
|
62
|
+
require('./assets/src/input-control/InputControl.css.ts.vanilla-Bs_UqBe4.css');
|
|
63
|
+
require('./assets/src/avatar-group/AvatarGroup.css.ts.vanilla-Uzeu57xv.css');
|
|
64
|
+
require('./assets/src/input-root/InputRoot.css.ts.vanilla-B4uW-TL9.css');
|
|
65
|
+
require('./assets/src/listbox-item/ListboxItem.css.ts.vanilla-BYxqoONu.css');
|
|
66
|
+
require('@radix-ui/react-dismissable-layer');
|
|
67
|
+
require('@radix-ui/react-focus-guards');
|
|
68
|
+
require('react-remove-scroll');
|
|
69
|
+
require('@optiaxiom/globals');
|
|
70
|
+
require('@radix-ui/react-tooltip');
|
|
71
|
+
require('./assets/src/text/Text.css.ts.vanilla-6H3aFCbx.css');
|
|
72
|
+
require('./assets/src/pagination/Pagination.css.ts.vanilla-Bb-clgKZ.css');
|
|
73
|
+
require('@radix-ui/react-popover');
|
|
74
|
+
require('./assets/src/menu-listbox/MenuListbox.css.ts.vanilla-BH2uKGfQ.css');
|
|
75
|
+
require('@optiaxiom/globals/fonts');
|
|
76
|
+
require('./assets/src/sprinkles/properties.css.ts.vanilla-C2HIp2sT.css');
|
|
77
|
+
require('./assets/src/box/Box.css.ts.vanilla-Cfl8r0-i.css');
|
|
78
|
+
require('./assets/src/button-base/ButtonBase.css.ts.vanilla-CLWcNZZI.css');
|
|
79
|
+
require('./assets/src/button-loadable/ButtonLoadable.css.ts.vanilla-CLkp0G0_.css');
|
|
80
|
+
require('./assets/src/spinner/Spinner.css.ts.vanilla-BMpmw6Aw.css');
|
|
81
|
+
require('./assets/src/transition/Transition.css.ts.vanilla-BEDqm8-d.css');
|
|
82
|
+
|
|
83
|
+
function _interopNamespaceDefault(e) {
|
|
84
|
+
var n = Object.create(null);
|
|
85
|
+
if (e) {
|
|
86
|
+
Object.keys(e).forEach(function (k) {
|
|
87
|
+
if (k !== 'default') {
|
|
88
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
89
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
90
|
+
enumerable: true,
|
|
91
|
+
get: function () { return e[k]; }
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
n.default = e;
|
|
97
|
+
return Object.freeze(n);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
var RadixDialog__namespace = /*#__PURE__*/_interopNamespaceDefault(RadixDialog);
|
|
101
|
+
|
|
102
|
+
function attachMediaListener(query, callback) {
|
|
103
|
+
try {
|
|
104
|
+
query.addEventListener("change", callback);
|
|
105
|
+
return () => query.removeEventListener("change", callback);
|
|
106
|
+
} catch (e) {
|
|
107
|
+
query.addListener(callback);
|
|
108
|
+
return () => query.removeListener(callback);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
function getInitialValue(query, initialValue) {
|
|
112
|
+
if (typeof window !== "undefined" && "matchMedia" in window) {
|
|
113
|
+
return window.matchMedia(query).matches;
|
|
114
|
+
}
|
|
115
|
+
return false;
|
|
116
|
+
}
|
|
117
|
+
function useMediaQuery(query, initialValue, { getInitialValueInEffect } = {
|
|
118
|
+
getInitialValueInEffect: true
|
|
119
|
+
}) {
|
|
120
|
+
const [matches, setMatches] = React.useState(
|
|
121
|
+
getInitialValueInEffect ? initialValue : getInitialValue(query)
|
|
122
|
+
);
|
|
123
|
+
const queryRef = React.useRef(null);
|
|
124
|
+
React.useEffect(() => {
|
|
125
|
+
if ("matchMedia" in window) {
|
|
126
|
+
queryRef.current = window.matchMedia(query);
|
|
127
|
+
setMatches(queryRef.current.matches);
|
|
128
|
+
return attachMediaListener(queryRef.current, (event) => setMatches(event.matches));
|
|
129
|
+
}
|
|
130
|
+
return undefined;
|
|
131
|
+
}, [query]);
|
|
132
|
+
return matches;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
function parseHotkey(hotkey) {
|
|
136
|
+
const keys = hotkey.toLowerCase().split("+").map((part) => part.trim());
|
|
137
|
+
const modifiers = {
|
|
138
|
+
alt: keys.includes("alt"),
|
|
139
|
+
ctrl: keys.includes("ctrl"),
|
|
140
|
+
meta: keys.includes("meta"),
|
|
141
|
+
mod: keys.includes("mod"),
|
|
142
|
+
shift: keys.includes("shift"),
|
|
143
|
+
plus: keys.includes("[plus]")
|
|
144
|
+
};
|
|
145
|
+
const reservedKeys = ["alt", "ctrl", "meta", "shift", "mod"];
|
|
146
|
+
const freeKey = keys.find((key) => !reservedKeys.includes(key));
|
|
147
|
+
return {
|
|
148
|
+
...modifiers,
|
|
149
|
+
key: freeKey === "[plus]" ? "+" : freeKey
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
function isExactHotkey(hotkey, event, usePhysicalKeys) {
|
|
153
|
+
const { alt, ctrl, meta, mod, shift, key } = hotkey;
|
|
154
|
+
const { altKey, ctrlKey, metaKey, shiftKey, key: pressedKey, code: pressedCode } = event;
|
|
155
|
+
if (alt !== altKey) {
|
|
156
|
+
return false;
|
|
157
|
+
}
|
|
158
|
+
if (mod) {
|
|
159
|
+
if (!ctrlKey && !metaKey) {
|
|
160
|
+
return false;
|
|
161
|
+
}
|
|
162
|
+
} else {
|
|
163
|
+
if (ctrl !== ctrlKey) {
|
|
164
|
+
return false;
|
|
165
|
+
}
|
|
166
|
+
if (meta !== metaKey) {
|
|
167
|
+
return false;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
if (shift !== shiftKey) {
|
|
171
|
+
return false;
|
|
172
|
+
}
|
|
173
|
+
if (key && (!usePhysicalKeys && pressedKey.toLowerCase() === key.toLowerCase() || pressedCode.replace("Key", "").toLowerCase() === key.toLowerCase())) {
|
|
174
|
+
return true;
|
|
175
|
+
}
|
|
176
|
+
return false;
|
|
177
|
+
}
|
|
178
|
+
function getHotkeyMatcher(hotkey, usePhysicalKeys) {
|
|
179
|
+
return (event) => isExactHotkey(parseHotkey(hotkey), event, usePhysicalKeys);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
function shouldFireEvent(event, tagsToIgnore, triggerOnContentEditable = false) {
|
|
183
|
+
if (event.target instanceof HTMLElement) {
|
|
184
|
+
if (triggerOnContentEditable) {
|
|
185
|
+
return !tagsToIgnore.includes(event.target.tagName);
|
|
186
|
+
}
|
|
187
|
+
return !event.target.isContentEditable && !tagsToIgnore.includes(event.target.tagName);
|
|
188
|
+
}
|
|
189
|
+
return true;
|
|
190
|
+
}
|
|
191
|
+
function useHotkeys(hotkeys, tagsToIgnore = ["INPUT", "TEXTAREA", "SELECT"], triggerOnContentEditable = false) {
|
|
192
|
+
React.useEffect(() => {
|
|
193
|
+
const keydownListener = (event) => {
|
|
194
|
+
hotkeys.forEach(
|
|
195
|
+
([hotkey, handler, options = { preventDefault: true, usePhysicalKeys: false }]) => {
|
|
196
|
+
if (getHotkeyMatcher(hotkey, options.usePhysicalKeys)(event) && shouldFireEvent(event, tagsToIgnore, triggerOnContentEditable)) {
|
|
197
|
+
if (options.preventDefault) {
|
|
198
|
+
event.preventDefault();
|
|
199
|
+
}
|
|
200
|
+
handler(event);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
);
|
|
204
|
+
};
|
|
205
|
+
document.documentElement.addEventListener("keydown", keydownListener);
|
|
206
|
+
return () => document.documentElement.removeEventListener("keydown", keydownListener);
|
|
207
|
+
}, [hotkeys]);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
const [AutocompleteContextProvider, useAutocompleteContext] = reactContext.createContext("Autocomplete");
|
|
211
|
+
|
|
212
|
+
const [CommandContextProvider, useCommandContext] = reactContext.createContext("Command");
|
|
213
|
+
|
|
214
|
+
function usePortalPatch(open, initialHighlightedIndex = -1) {
|
|
215
|
+
const [placed, setPlaced] = React.useState(false);
|
|
216
|
+
React.useEffect(() => {
|
|
217
|
+
return () => setPlaced(false);
|
|
218
|
+
}, [open]);
|
|
219
|
+
const [highlightedIndex, setHighlightedIndex] = React.useState(
|
|
220
|
+
initialHighlightedIndex
|
|
221
|
+
);
|
|
222
|
+
return [
|
|
223
|
+
/**
|
|
224
|
+
* Downshift attempts to scroll to the currently selected item when the menu
|
|
225
|
+
* opens. But since we don't render the menu until it is open the `ref` will
|
|
226
|
+
* not be available yet.
|
|
227
|
+
*
|
|
228
|
+
* So we only return the index when it has been placed and return -1
|
|
229
|
+
* otherwise.
|
|
230
|
+
*/
|
|
231
|
+
placed ? highlightedIndex : -1,
|
|
232
|
+
setHighlightedIndex,
|
|
233
|
+
placed,
|
|
234
|
+
setPlaced
|
|
235
|
+
];
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
const isHoverSupported = typeof window !== "undefined" && window.matchMedia("(hover: hover)").matches;
|
|
239
|
+
function Command({
|
|
240
|
+
children,
|
|
241
|
+
inputValue: inputValueProp,
|
|
242
|
+
isItemDisabled = () => false,
|
|
243
|
+
items,
|
|
244
|
+
itemToKey = (value) => value,
|
|
245
|
+
itemToString = (value) => value ? String(value) : "",
|
|
246
|
+
itemToSubItems,
|
|
247
|
+
onInputValueChange,
|
|
248
|
+
onItemSelect,
|
|
249
|
+
onOpenChange,
|
|
250
|
+
open,
|
|
251
|
+
selectedItem,
|
|
252
|
+
value: valueProp,
|
|
253
|
+
...props
|
|
254
|
+
}) {
|
|
255
|
+
const value = React.useMemo(
|
|
256
|
+
() => Array.isArray(valueProp) ? new Set(valueProp) : valueProp,
|
|
257
|
+
[valueProp]
|
|
258
|
+
);
|
|
259
|
+
const [inputValue, setInputValue] = reactUseControllableState.useControllableState({
|
|
260
|
+
defaultProp: "",
|
|
261
|
+
onChange: onInputValueChange,
|
|
262
|
+
prop: inputValueProp
|
|
263
|
+
});
|
|
264
|
+
const [lastInteractionSource, setLastInteractionSource] = React.useState("pointer");
|
|
265
|
+
const [highlightedIndex, setHighlightedIndex, placed, setPlaced] = usePortalPatch(
|
|
266
|
+
open,
|
|
267
|
+
selectedItem ? items.findIndex((item) => itemToKey(selectedItem) === itemToKey(item)) : -1
|
|
268
|
+
);
|
|
269
|
+
const [highlightedSubIndex, setHighlightedSubIndex] = React.useState(-1);
|
|
270
|
+
const downshift$1 = downshift.useCombobox({
|
|
271
|
+
...props,
|
|
272
|
+
highlightedIndex: highlightedIndex === -1 && isHoverSupported ? items.findIndex((item, index) => !isItemDisabled(item, index)) : highlightedIndex,
|
|
273
|
+
inputValue,
|
|
274
|
+
isItemDisabled,
|
|
275
|
+
isOpen: placed,
|
|
276
|
+
items,
|
|
277
|
+
itemToKey,
|
|
278
|
+
itemToString,
|
|
279
|
+
onHighlightedIndexChange({ highlightedIndex: highlightedIndex2, type }) {
|
|
280
|
+
if (type !== downshift.useCombobox.stateChangeTypes.MenuMouseLeave) {
|
|
281
|
+
setHighlightedIndex(highlightedIndex2);
|
|
282
|
+
}
|
|
283
|
+
if (type === downshift.useCombobox.stateChangeTypes.InputKeyDownArrowDown || type === downshift.useCombobox.stateChangeTypes.InputKeyDownArrowUp || type === downshift.useCombobox.stateChangeTypes.InputKeyDownPageDown || type === downshift.useCombobox.stateChangeTypes.InputKeyDownPageUp) {
|
|
284
|
+
setLastInteractionSource("keyboard");
|
|
285
|
+
} else {
|
|
286
|
+
setLastInteractionSource("pointer");
|
|
287
|
+
}
|
|
288
|
+
if (highlightedIndex2 !== -1 && itemToSubItems?.(items[highlightedIndex2])?.length) {
|
|
289
|
+
setHighlightedSubIndex(0);
|
|
290
|
+
} else {
|
|
291
|
+
setHighlightedSubIndex(-1);
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
onIsOpenChange({ isOpen, type }) {
|
|
295
|
+
onOpenChange?.(isOpen);
|
|
296
|
+
if (isOpen) {
|
|
297
|
+
if (type === downshift.useCombobox.stateChangeTypes.InputClick || type === downshift.useCombobox.stateChangeTypes.ToggleButtonClick) {
|
|
298
|
+
setLastInteractionSource("pointer");
|
|
299
|
+
} else {
|
|
300
|
+
setLastInteractionSource("keyboard");
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
onSelectedItemChange({ selectedItem: selectedItem2, type }) {
|
|
305
|
+
if (type !== downshift.useCombobox.stateChangeTypes.InputBlur) {
|
|
306
|
+
onItemSelect?.(selectedItem2);
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
selectedItem
|
|
310
|
+
});
|
|
311
|
+
downshift$1.getMenuProps({}, { suppressRefError: true });
|
|
312
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
313
|
+
CommandContextProvider,
|
|
314
|
+
{
|
|
315
|
+
downshift: downshift$1,
|
|
316
|
+
highlightedItem: items[downshift$1.highlightedIndex],
|
|
317
|
+
highlightedSubIndex,
|
|
318
|
+
isItemDisabled,
|
|
319
|
+
items,
|
|
320
|
+
itemToSubItems,
|
|
321
|
+
lastInteractionSource,
|
|
322
|
+
setHighlightedIndex: (index, source) => {
|
|
323
|
+
setHighlightedIndex(index);
|
|
324
|
+
setLastInteractionSource(source);
|
|
325
|
+
},
|
|
326
|
+
setHighlightedSubIndex: (index, source) => {
|
|
327
|
+
setHighlightedSubIndex(index);
|
|
328
|
+
setLastInteractionSource(source);
|
|
329
|
+
},
|
|
330
|
+
setInputValue,
|
|
331
|
+
setPlaced,
|
|
332
|
+
value,
|
|
333
|
+
children
|
|
334
|
+
}
|
|
335
|
+
);
|
|
336
|
+
}
|
|
337
|
+
Command.displayName = "@optiaxiom/react/Command";
|
|
338
|
+
|
|
339
|
+
function useEffectEvent(callback) {
|
|
340
|
+
const callbackRef = React.useRef(callback);
|
|
341
|
+
React.useEffect(() => {
|
|
342
|
+
callbackRef.current = callback;
|
|
343
|
+
});
|
|
344
|
+
return React.useCallback((...args) => {
|
|
345
|
+
return callbackRef.current(...args);
|
|
346
|
+
}, []);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
function Autocomplete({
|
|
350
|
+
children,
|
|
351
|
+
defaultOpen = false,
|
|
352
|
+
defaultValue,
|
|
353
|
+
disabled,
|
|
354
|
+
isItemDisabled,
|
|
355
|
+
items,
|
|
356
|
+
itemToKey,
|
|
357
|
+
itemToString = (value2) => value2 ? String(value2) : "",
|
|
358
|
+
onInputValueChange,
|
|
359
|
+
onOpenChange,
|
|
360
|
+
onValueChange,
|
|
361
|
+
open,
|
|
362
|
+
value
|
|
363
|
+
}) {
|
|
364
|
+
const { inputId } = IconMagnifyingGlass.useFieldContext({});
|
|
365
|
+
const [selectedItem, setSelectedItem] = reactUseControllableState.useControllableState({
|
|
366
|
+
defaultProp: defaultValue,
|
|
367
|
+
onChange: onValueChange,
|
|
368
|
+
prop: value
|
|
369
|
+
});
|
|
370
|
+
const [isOpen, setIsOpen] = reactUseControllableState.useControllableState({
|
|
371
|
+
defaultProp: defaultOpen,
|
|
372
|
+
onChange: onOpenChange,
|
|
373
|
+
prop: open
|
|
374
|
+
});
|
|
375
|
+
const [inputValue, setInputValue] = React.useState(
|
|
376
|
+
itemToString(selectedItem ?? null)
|
|
377
|
+
);
|
|
378
|
+
const itemToStringStable = useEffectEvent(itemToString);
|
|
379
|
+
React.useEffect(() => {
|
|
380
|
+
if (!isOpen) {
|
|
381
|
+
setInputValue(itemToStringStable(selectedItem ?? null));
|
|
382
|
+
}
|
|
383
|
+
}, [isOpen, itemToStringStable, selectedItem]);
|
|
384
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactPopper.Popper, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
385
|
+
Command,
|
|
386
|
+
{
|
|
387
|
+
inputId,
|
|
388
|
+
inputValue,
|
|
389
|
+
isItemDisabled,
|
|
390
|
+
items,
|
|
391
|
+
itemToKey,
|
|
392
|
+
itemToString,
|
|
393
|
+
onInputValueChange: (value2) => {
|
|
394
|
+
setInputValue(value2);
|
|
395
|
+
onInputValueChange?.(value2);
|
|
396
|
+
},
|
|
397
|
+
onItemSelect: setSelectedItem,
|
|
398
|
+
onOpenChange: (open2) => {
|
|
399
|
+
setIsOpen(open2);
|
|
400
|
+
if (!open2) {
|
|
401
|
+
onInputValueChange?.("");
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
open: isOpen,
|
|
405
|
+
selectedItem: selectedItem ?? null,
|
|
406
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
407
|
+
AutocompleteContextProvider,
|
|
408
|
+
{
|
|
409
|
+
disabled,
|
|
410
|
+
isOpen,
|
|
411
|
+
items,
|
|
412
|
+
selectedItem,
|
|
413
|
+
setSelectedItem,
|
|
414
|
+
children
|
|
415
|
+
}
|
|
416
|
+
)
|
|
417
|
+
}
|
|
418
|
+
) });
|
|
419
|
+
}
|
|
420
|
+
Autocomplete.displayName = "@optiaxiom/react/Autocomplete";
|
|
421
|
+
|
|
422
|
+
const CommandListbox = React.forwardRef(
|
|
423
|
+
({ children, size, ...props }, ref) => {
|
|
424
|
+
const { downshift } = useCommandContext("CommandList");
|
|
425
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Listbox, { size, ...downshift.getMenuProps({ ref, ...props }), children });
|
|
426
|
+
}
|
|
427
|
+
);
|
|
428
|
+
CommandListbox.displayName = "@optiaxiom/react/CommandListbox";
|
|
429
|
+
|
|
430
|
+
var content$2 = IconMagnifyingGlass.recipeRuntime({base:[{p:'4'},'rm1ywd']});
|
|
431
|
+
|
|
432
|
+
const AutocompleteContent = React.forwardRef(
|
|
433
|
+
({
|
|
434
|
+
align = "center",
|
|
435
|
+
children,
|
|
436
|
+
className,
|
|
437
|
+
loading,
|
|
438
|
+
side = "bottom",
|
|
439
|
+
...props
|
|
440
|
+
}, ref) => {
|
|
441
|
+
const { isOpen, items } = useAutocompleteContext("AutocompleteContent");
|
|
442
|
+
const { setPlaced } = useCommandContext("AutocompleteContent");
|
|
443
|
+
return isOpen && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
444
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactPortal.Portal, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(reactVisuallyHidden.VisuallyHidden, { children: /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { role: "status", children: loading ? "Loading" : `${items.length} option${items.length === 1 ? "" : "s"} available` }) }) }),
|
|
445
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactPortal.Portal, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.ModalLayer, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
446
|
+
IconMagnifyingGlass.MenuListbox,
|
|
447
|
+
{
|
|
448
|
+
asChild: true,
|
|
449
|
+
maxH: "sm",
|
|
450
|
+
minW: "trigger",
|
|
451
|
+
provider: "popper",
|
|
452
|
+
...props,
|
|
453
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
454
|
+
CommandListbox,
|
|
455
|
+
{
|
|
456
|
+
asChild: true,
|
|
457
|
+
ref,
|
|
458
|
+
...content$2({}, className),
|
|
459
|
+
...props,
|
|
460
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
461
|
+
reactPopper.PopperContent,
|
|
462
|
+
{
|
|
463
|
+
align,
|
|
464
|
+
onPlaced: () => setPlaced(true),
|
|
465
|
+
side,
|
|
466
|
+
sideOffset: 5,
|
|
467
|
+
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { display: "flex", justifyContent: "center", p: "16", children: /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Spinner, {}) }) : children
|
|
468
|
+
}
|
|
469
|
+
)
|
|
470
|
+
}
|
|
471
|
+
)
|
|
472
|
+
}
|
|
473
|
+
) }) })
|
|
474
|
+
] });
|
|
475
|
+
}
|
|
476
|
+
);
|
|
477
|
+
AutocompleteContent.displayName = "@optiaxiom/react/AutocompleteContent";
|
|
478
|
+
|
|
479
|
+
const AutocompleteEmpty = React.forwardRef(({ children, ...props }, ref) => {
|
|
480
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
481
|
+
IconMagnifyingGlass.Box,
|
|
482
|
+
{
|
|
483
|
+
alignItems: "center",
|
|
484
|
+
color: "fg.disabled",
|
|
485
|
+
display: "flex",
|
|
486
|
+
flexDirection: "column",
|
|
487
|
+
fontSize: "md",
|
|
488
|
+
p: "16",
|
|
489
|
+
ref,
|
|
490
|
+
...props,
|
|
491
|
+
children: children || "No options"
|
|
492
|
+
}
|
|
493
|
+
);
|
|
494
|
+
});
|
|
495
|
+
AutocompleteEmpty.displayName = "@optiaxiom/react/AutocompleteEmpty";
|
|
496
|
+
|
|
497
|
+
var item$3 = IconMagnifyingGlass.recipeRuntime({base:'d4shc3'});
|
|
498
|
+
|
|
499
|
+
const CommandFocusableItem = React.forwardRef(({ children, className, ...props }, ref) => {
|
|
500
|
+
const { lastInteractionSource } = useCommandContext("CommandFocusableItem");
|
|
501
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
502
|
+
IconMagnifyingGlass.Box,
|
|
503
|
+
{
|
|
504
|
+
"data-focus-visible": lastInteractionSource === "keyboard" ? "" : undefined,
|
|
505
|
+
ref,
|
|
506
|
+
...item$3({}, className),
|
|
507
|
+
...props,
|
|
508
|
+
children
|
|
509
|
+
}
|
|
510
|
+
);
|
|
511
|
+
});
|
|
512
|
+
CommandFocusableItem.displayName = "@optiaxiom/react/CommandFocusableItem";
|
|
513
|
+
|
|
514
|
+
const CommandItem = React.forwardRef(
|
|
515
|
+
({ children, item, selected, size, ...props }, ref) => {
|
|
516
|
+
const { downshift, highlightedItem, value } = useCommandContext("CommandItem");
|
|
517
|
+
const itemProps = downshift.getItemProps({
|
|
518
|
+
"aria-selected": selected ?? value?.has(item),
|
|
519
|
+
item,
|
|
520
|
+
...props
|
|
521
|
+
});
|
|
522
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
523
|
+
CommandFocusableItem,
|
|
524
|
+
{
|
|
525
|
+
"data-disabled": itemProps["aria-disabled"] ? "" : undefined,
|
|
526
|
+
"data-highlighted": highlightedItem === item ? "" : undefined,
|
|
527
|
+
ref,
|
|
528
|
+
size,
|
|
529
|
+
tabIndex: -1,
|
|
530
|
+
...itemProps,
|
|
531
|
+
children
|
|
532
|
+
}
|
|
533
|
+
);
|
|
534
|
+
}
|
|
535
|
+
);
|
|
536
|
+
CommandItem.displayName = "@optiaxiom/react/CommandItem";
|
|
537
|
+
|
|
538
|
+
const AutocompleteItem = React.forwardRef((props, ref) => {
|
|
539
|
+
const { selectedItem } = useAutocompleteContext("AutocompleteItem");
|
|
540
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CommandItem, { ref, selected: props.item === selectedItem, ...props });
|
|
541
|
+
});
|
|
542
|
+
AutocompleteItem.displayName = "@optiaxiom/react/AutocompleteItem";
|
|
543
|
+
|
|
544
|
+
const AutocompleteRadioItem = React.forwardRef(({ children, ...props }, ref) => {
|
|
545
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AutocompleteItem, { asChild: true, ref, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.ListboxRadioItem, { children }) });
|
|
546
|
+
});
|
|
547
|
+
AutocompleteRadioItem.displayName = "@optiaxiom/react/AutocompleteRadioItem";
|
|
548
|
+
|
|
549
|
+
const CommandInput = React.forwardRef(
|
|
550
|
+
({ onKeyDown, size, ...props }, ref) => {
|
|
551
|
+
const {
|
|
552
|
+
downshift,
|
|
553
|
+
highlightedItem,
|
|
554
|
+
highlightedSubIndex,
|
|
555
|
+
itemToSubItems,
|
|
556
|
+
setHighlightedSubIndex,
|
|
557
|
+
setInputValue
|
|
558
|
+
} = useCommandContext("CommandInput");
|
|
559
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
560
|
+
IconMagnifyingGlass.Input,
|
|
561
|
+
{
|
|
562
|
+
addonBefore: /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.IconMagnifyingGlass, {}),
|
|
563
|
+
size,
|
|
564
|
+
...downshift.getInputProps({
|
|
565
|
+
...props,
|
|
566
|
+
onChange: (event) => {
|
|
567
|
+
setInputValue("value" in event.target ? event.target.value : "");
|
|
568
|
+
},
|
|
569
|
+
onKeyDown: (event) => {
|
|
570
|
+
onKeyDown?.(event);
|
|
571
|
+
if (event.defaultPrevented) {
|
|
572
|
+
return;
|
|
573
|
+
}
|
|
574
|
+
if (highlightedItem && highlightedSubIndex !== -1 && (event.key === "ArrowLeft" || event.key === "ArrowRight" || event.key === "Enter")) {
|
|
575
|
+
const subItems = itemToSubItems?.(highlightedItem) ?? [];
|
|
576
|
+
if (subItems.length === 0) {
|
|
577
|
+
return;
|
|
578
|
+
}
|
|
579
|
+
event.preventDefault();
|
|
580
|
+
Object.assign(event.nativeEvent, {
|
|
581
|
+
preventDownshiftDefault: true
|
|
582
|
+
});
|
|
583
|
+
if (event.key === "ArrowRight") {
|
|
584
|
+
setHighlightedSubIndex(
|
|
585
|
+
highlightedSubIndex === subItems.length - 1 ? 0 : highlightedSubIndex + 1,
|
|
586
|
+
"keyboard"
|
|
587
|
+
);
|
|
588
|
+
} else if (event.key === "ArrowLeft") {
|
|
589
|
+
setHighlightedSubIndex(
|
|
590
|
+
highlightedSubIndex === 0 ? subItems.length - 1 : highlightedSubIndex - 1,
|
|
591
|
+
"keyboard"
|
|
592
|
+
);
|
|
593
|
+
} else if (event.key === "Enter") {
|
|
594
|
+
downshift.selectItem(subItems[highlightedSubIndex]);
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
},
|
|
598
|
+
ref
|
|
599
|
+
})
|
|
600
|
+
}
|
|
601
|
+
);
|
|
602
|
+
}
|
|
603
|
+
);
|
|
604
|
+
CommandInput.displayName = "@optiaxiom/react/CommandInput";
|
|
605
|
+
|
|
606
|
+
const CommandToggleButton = React.forwardRef(({ children, className, ...props }, ref) => {
|
|
607
|
+
const { boxProps, restProps } = IconMagnifyingGlass.extractBoxProps(props);
|
|
608
|
+
const { downshift } = useCommandContext("CommandToggleButton");
|
|
609
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { asChild: true, className, ...boxProps, children: /* @__PURE__ */ jsxRuntime.jsx("button", { ref, ...downshift.getToggleButtonProps(restProps), children }) });
|
|
610
|
+
});
|
|
611
|
+
CommandToggleButton.displayName = "@optiaxiom/react/CommandToggleButton";
|
|
612
|
+
|
|
613
|
+
const AutocompleteTrigger = React.forwardRef((props, ref) => {
|
|
614
|
+
const { disabled, selectedItem, setSelectedItem } = useAutocompleteContext("AutocompleteInput");
|
|
615
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactPopper.PopperAnchor, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
616
|
+
CommandInput,
|
|
617
|
+
{
|
|
618
|
+
addonAfter: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
619
|
+
IconMagnifyingGlass.Flex,
|
|
620
|
+
{
|
|
621
|
+
alignItems: "stretch",
|
|
622
|
+
alignSelf: "stretch",
|
|
623
|
+
flexDirection: "row",
|
|
624
|
+
gap: "0",
|
|
625
|
+
children: [
|
|
626
|
+
selectedItem && /* @__PURE__ */ jsxRuntime.jsx(
|
|
627
|
+
IconMagnifyingGlass.Flex,
|
|
628
|
+
{
|
|
629
|
+
cursor: disabled ? "default" : "pointer",
|
|
630
|
+
onClick: () => setSelectedItem(null),
|
|
631
|
+
w: "md",
|
|
632
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Icon, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.IconX, { "aria-hidden": true, focusable: false }) })
|
|
633
|
+
}
|
|
634
|
+
),
|
|
635
|
+
/* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Separator, { my: "8", orientation: "vertical" }),
|
|
636
|
+
/* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Flex, { asChild: true, w: "md", children: /* @__PURE__ */ jsxRuntime.jsx(CommandToggleButton, { "aria-label": "Toggle", disabled, children: /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Icon, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.IconAngleDown, { "aria-hidden": true, focusable: false }) }) }) })
|
|
637
|
+
]
|
|
638
|
+
}
|
|
639
|
+
),
|
|
640
|
+
addonBefore: null,
|
|
641
|
+
disabled,
|
|
642
|
+
pr: "0",
|
|
643
|
+
ref,
|
|
644
|
+
...props
|
|
645
|
+
}
|
|
646
|
+
) });
|
|
647
|
+
});
|
|
648
|
+
AutocompleteTrigger.displayName = "@optiaxiom/react/AutocompleteTrigger";
|
|
649
|
+
|
|
650
|
+
const AutocompleteVirtualized = React.forwardRef(({ children, items, ...props }, outerRef) => {
|
|
651
|
+
const innerRef = React.useRef(null);
|
|
652
|
+
const ref = reactComposeRefs.useComposedRefs(outerRef, innerRef);
|
|
653
|
+
const [enabled, setEnabled] = React.useState(false);
|
|
654
|
+
React.useEffect(() => {
|
|
655
|
+
requestAnimationFrame(() => setEnabled(true));
|
|
656
|
+
}, []);
|
|
657
|
+
const rowVirtualizer = reactVirtual.useVirtualizer({
|
|
658
|
+
count: items.length,
|
|
659
|
+
enabled,
|
|
660
|
+
estimateSize: () => 40,
|
|
661
|
+
getScrollElement: () => innerRef.current
|
|
662
|
+
});
|
|
663
|
+
const { downshift } = useCommandContext("AutocompleteVirtualized");
|
|
664
|
+
React.useEffect(() => {
|
|
665
|
+
rowVirtualizer.scrollToIndex(downshift.highlightedIndex);
|
|
666
|
+
}, [downshift.highlightedIndex, enabled, rowVirtualizer]);
|
|
667
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.ListboxScrollArea, { ref, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
668
|
+
IconMagnifyingGlass.Box,
|
|
669
|
+
{
|
|
670
|
+
display: "flex",
|
|
671
|
+
flex: "none",
|
|
672
|
+
flexDirection: "column",
|
|
673
|
+
gap: "2",
|
|
674
|
+
style: {
|
|
675
|
+
height: `${rowVirtualizer.getTotalSize()}px`,
|
|
676
|
+
position: "relative"
|
|
677
|
+
},
|
|
678
|
+
children: rowVirtualizer.getVirtualItems().map((virtualItem) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
679
|
+
IconMagnifyingGlass.Box,
|
|
680
|
+
{
|
|
681
|
+
style: {
|
|
682
|
+
height: virtualItem.size,
|
|
683
|
+
left: 0,
|
|
684
|
+
position: "absolute",
|
|
685
|
+
top: 0,
|
|
686
|
+
transform: `translateY(${virtualItem.start}px)`
|
|
687
|
+
},
|
|
688
|
+
w: "full",
|
|
689
|
+
children: children(items[virtualItem.index])
|
|
690
|
+
},
|
|
691
|
+
virtualItem.key
|
|
692
|
+
))
|
|
693
|
+
}
|
|
694
|
+
) });
|
|
695
|
+
});
|
|
696
|
+
AutocompleteVirtualized.displayName = "@optiaxiom/react/AutocompleteVirtualized";
|
|
697
|
+
|
|
698
|
+
const Breadcrumb = React.forwardRef(
|
|
699
|
+
({ children, className, ...props }, ref) => {
|
|
700
|
+
const { boxProps, restProps } = IconMagnifyingGlass.extractBoxProps(props);
|
|
701
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { asChild: true, className, ...boxProps, children: /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "Breadcrumb", ref, ...restProps, children: /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { alignItems: "center", asChild: true, display: "flex", gap: "8", children: /* @__PURE__ */ jsxRuntime.jsx("ol", { children }) }) }) });
|
|
702
|
+
}
|
|
703
|
+
);
|
|
704
|
+
Breadcrumb.displayName = "@optiaxiom/react/Breadcrumb";
|
|
705
|
+
|
|
706
|
+
function BreadcrumbEllipsis({ ...props }) {
|
|
707
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
708
|
+
IconMagnifyingGlass.Box,
|
|
709
|
+
{
|
|
710
|
+
"aria-hidden": true,
|
|
711
|
+
color: "fg.tertiary",
|
|
712
|
+
display: "grid",
|
|
713
|
+
placeItems: "center",
|
|
714
|
+
...props,
|
|
715
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.IconEllipsis, {})
|
|
716
|
+
}
|
|
717
|
+
);
|
|
718
|
+
}
|
|
719
|
+
BreadcrumbEllipsis.displayName = "@optiaxiom/react/BreadcrumbEllipsis";
|
|
720
|
+
|
|
721
|
+
var item$2 = IconMagnifyingGlass.recipeRuntime({base:[{alignItems:'center',display:'inline-flex'},'nzwsgc']});
|
|
722
|
+
|
|
723
|
+
const BreadcrumbItem = React.forwardRef(
|
|
724
|
+
({ children, className, ...props }, ref) => {
|
|
725
|
+
const { boxProps, restProps } = IconMagnifyingGlass.extractBoxProps(props);
|
|
726
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { asChild: true, ...item$2({}, className), ...boxProps, children: /* @__PURE__ */ jsxRuntime.jsx("li", { ref, ...restProps, children }) });
|
|
727
|
+
}
|
|
728
|
+
);
|
|
729
|
+
BreadcrumbItem.displayName = "@optiaxiom/react/BreadcrumbItem";
|
|
730
|
+
|
|
731
|
+
var link = IconMagnifyingGlass.recipeRuntime({base:[{alignItems:'center',display:'flex',fontSize:'md',h:'md',rounded:'md'},'wfdij0']});
|
|
732
|
+
|
|
733
|
+
const BreadcrumbLink = React.forwardRef(({ className, ...props }, ref) => {
|
|
734
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Link, { ...link({}, className), ref, ...props });
|
|
735
|
+
});
|
|
736
|
+
BreadcrumbLink.displayName = "@optiaxiom/react/BreadcrumbLink";
|
|
737
|
+
|
|
738
|
+
const BreadcrumbPage = React.forwardRef(
|
|
739
|
+
({ ...props }, ref) => {
|
|
740
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { "aria-current": "page", asChild: true, color: "fg.default", fontSize: "md", children: /* @__PURE__ */ jsxRuntime.jsx("span", { ref, ...props }) });
|
|
741
|
+
}
|
|
742
|
+
);
|
|
743
|
+
BreadcrumbPage.displayName = "@optiaxiom/react/BreadcrumbPage";
|
|
744
|
+
|
|
745
|
+
function CalendarChevron({
|
|
746
|
+
orientation,
|
|
747
|
+
...props
|
|
748
|
+
}) {
|
|
749
|
+
return orientation === "left" ? /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.IconAngleLeft, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.IconAngleRight, { ...props });
|
|
750
|
+
}
|
|
751
|
+
CalendarChevron.displayName = "@optiaxiom/react/CalendarChevron";
|
|
752
|
+
|
|
753
|
+
function CalendarDay({ children, ...props }) {
|
|
754
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(reactDayPicker.Day, { ...props, children }) });
|
|
755
|
+
}
|
|
756
|
+
CalendarDay.displayName = "@optiaxiom/react/CalendarDay";
|
|
757
|
+
|
|
758
|
+
var button$3 = IconMagnifyingGlass.recipeRuntime({base:{mt:'8'},variants:{outside:{false:{},true:'w9k0kh'}}});
|
|
759
|
+
|
|
760
|
+
function CalendarDayButton({
|
|
761
|
+
children,
|
|
762
|
+
className,
|
|
763
|
+
color: _color,
|
|
764
|
+
day: _day,
|
|
765
|
+
modifiers,
|
|
766
|
+
...props
|
|
767
|
+
}) {
|
|
768
|
+
const ref = React.useRef(null);
|
|
769
|
+
React.useEffect(() => {
|
|
770
|
+
if (modifiers.focused) {
|
|
771
|
+
ref.current?.focus();
|
|
772
|
+
}
|
|
773
|
+
}, [modifiers.focused]);
|
|
774
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
775
|
+
IconMagnifyingGlass.Button,
|
|
776
|
+
{
|
|
777
|
+
appearance: modifiers.selected ? "primary" : "subtle",
|
|
778
|
+
"data-state": modifiers.today ? "active" : undefined,
|
|
779
|
+
ref,
|
|
780
|
+
square: true,
|
|
781
|
+
...button$3({ outside: modifiers.outside }, className),
|
|
782
|
+
...props,
|
|
783
|
+
children
|
|
784
|
+
}
|
|
785
|
+
);
|
|
786
|
+
}
|
|
787
|
+
CalendarDayButton.displayName = "@optiaxiom/react/CalendarDayButton";
|
|
788
|
+
|
|
789
|
+
function CalendarMonthCaption({
|
|
790
|
+
children,
|
|
791
|
+
...props
|
|
792
|
+
}) {
|
|
793
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
794
|
+
IconMagnifyingGlass.Box,
|
|
795
|
+
{
|
|
796
|
+
alignItems: "center",
|
|
797
|
+
asChild: true,
|
|
798
|
+
display: "flex",
|
|
799
|
+
fontSize: "lg",
|
|
800
|
+
fontWeight: "500",
|
|
801
|
+
h: "md",
|
|
802
|
+
justifyContent: "center",
|
|
803
|
+
mb: "16",
|
|
804
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(reactDayPicker.MonthCaption, { ...props, children })
|
|
805
|
+
}
|
|
806
|
+
);
|
|
807
|
+
}
|
|
808
|
+
CalendarMonthCaption.displayName = "@optiaxiom/react/CalendarMonthCaption";
|
|
809
|
+
|
|
810
|
+
function CalendarMonthGrid({
|
|
811
|
+
children,
|
|
812
|
+
...props
|
|
813
|
+
}) {
|
|
814
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(reactDayPicker.MonthGrid, { ...props, children }) });
|
|
815
|
+
}
|
|
816
|
+
CalendarMonthGrid.displayName = "@optiaxiom/react/CalendarMonthGrid";
|
|
817
|
+
|
|
818
|
+
var months = IconMagnifyingGlass.recipeRuntime({base:'_1x9xpt0'});
|
|
819
|
+
|
|
820
|
+
function CalendarMonths({ children, ...props }) {
|
|
821
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { asChild: true, ...months(), children: /* @__PURE__ */ jsxRuntime.jsx(reactDayPicker.Months, { ...props, children }) });
|
|
822
|
+
}
|
|
823
|
+
CalendarMonths.displayName = "@optiaxiom/react/CalendarMonths";
|
|
824
|
+
|
|
825
|
+
var button$2 = IconMagnifyingGlass.recipeRuntime({base:'_63q7tb'});
|
|
826
|
+
|
|
827
|
+
function CalendarNextMonthButton({
|
|
828
|
+
children,
|
|
829
|
+
className,
|
|
830
|
+
color: _color,
|
|
831
|
+
...props
|
|
832
|
+
}) {
|
|
833
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
834
|
+
IconMagnifyingGlass.Button,
|
|
835
|
+
{
|
|
836
|
+
appearance: "subtle",
|
|
837
|
+
asChild: true,
|
|
838
|
+
icon: children,
|
|
839
|
+
...button$2({}, className),
|
|
840
|
+
...props,
|
|
841
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(reactDayPicker.NextMonthButton, {})
|
|
842
|
+
}
|
|
843
|
+
);
|
|
844
|
+
}
|
|
845
|
+
CalendarNextMonthButton.displayName = "@optiaxiom/react/CalendarNextMonthButton";
|
|
846
|
+
|
|
847
|
+
var button$1 = IconMagnifyingGlass.recipeRuntime({base:'_1xhl0fi'});
|
|
848
|
+
|
|
849
|
+
function CalendarPreviousMonthButton({
|
|
850
|
+
children,
|
|
851
|
+
className,
|
|
852
|
+
color: _color,
|
|
853
|
+
...props
|
|
854
|
+
}) {
|
|
855
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
856
|
+
IconMagnifyingGlass.Button,
|
|
857
|
+
{
|
|
858
|
+
appearance: "subtle",
|
|
859
|
+
asChild: true,
|
|
860
|
+
icon: children,
|
|
861
|
+
...button$1({}, className),
|
|
862
|
+
...props,
|
|
863
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(reactDayPicker.PreviousMonthButton, {})
|
|
864
|
+
}
|
|
865
|
+
);
|
|
866
|
+
}
|
|
867
|
+
CalendarPreviousMonthButton.displayName = "@optiaxiom/react/CalendarPreviousMonthButton";
|
|
868
|
+
|
|
869
|
+
function CalendarWeekday({ children, ...props }) {
|
|
870
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { asChild: true, color: "fg.tertiary", fontSize: "sm", fontWeight: "400", children: /* @__PURE__ */ jsxRuntime.jsx(reactDayPicker.Weekday, { ...props, children }) });
|
|
871
|
+
}
|
|
872
|
+
CalendarWeekday.displayName = "@optiaxiom/react/CalendarWeekday";
|
|
873
|
+
|
|
874
|
+
const components = {
|
|
875
|
+
Chevron: CalendarChevron,
|
|
876
|
+
Day: CalendarDay,
|
|
877
|
+
DayButton: CalendarDayButton,
|
|
878
|
+
MonthCaption: CalendarMonthCaption,
|
|
879
|
+
MonthGrid: CalendarMonthGrid,
|
|
880
|
+
Months: CalendarMonths,
|
|
881
|
+
NextMonthButton: CalendarNextMonthButton,
|
|
882
|
+
PreviousMonthButton: CalendarPreviousMonthButton,
|
|
883
|
+
Weekday: CalendarWeekday
|
|
884
|
+
};
|
|
885
|
+
const Calendar = React.forwardRef(
|
|
886
|
+
({
|
|
887
|
+
defaultValue,
|
|
888
|
+
max,
|
|
889
|
+
min,
|
|
890
|
+
onValueChange,
|
|
891
|
+
today,
|
|
892
|
+
value: valueProp,
|
|
893
|
+
...props
|
|
894
|
+
}, ref) => {
|
|
895
|
+
const [value, setValue] = reactUseControllableState.useControllableState({
|
|
896
|
+
defaultProp: defaultValue,
|
|
897
|
+
onChange: onValueChange,
|
|
898
|
+
prop: valueProp
|
|
899
|
+
});
|
|
900
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
901
|
+
IconMagnifyingGlass.Box,
|
|
902
|
+
{
|
|
903
|
+
bg: "bg.default",
|
|
904
|
+
color: "fg.default",
|
|
905
|
+
fontSize: "md",
|
|
906
|
+
ref,
|
|
907
|
+
...props,
|
|
908
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
909
|
+
reactDayPicker.DayPicker,
|
|
910
|
+
{
|
|
911
|
+
autoFocus: true,
|
|
912
|
+
components,
|
|
913
|
+
defaultMonth: value,
|
|
914
|
+
endMonth: max,
|
|
915
|
+
fixedWeeks: true,
|
|
916
|
+
mode: "single",
|
|
917
|
+
onSelect: setValue,
|
|
918
|
+
required: true,
|
|
919
|
+
selected: value,
|
|
920
|
+
showOutsideDays: true,
|
|
921
|
+
startMonth: min,
|
|
922
|
+
today
|
|
923
|
+
}
|
|
924
|
+
)
|
|
925
|
+
}
|
|
926
|
+
);
|
|
927
|
+
}
|
|
928
|
+
);
|
|
929
|
+
Calendar.displayName = "@optiaxiom/react/Calendar";
|
|
930
|
+
|
|
931
|
+
const [CardContextProvider, useCardContext] = reactContext.createContext("Card");
|
|
932
|
+
|
|
933
|
+
var card = IconMagnifyingGlass.recipeRuntime({base:['_1jejsad',{border:'1',color:'fg.default',gap:'12',p:'16',transition:'transform'},'_1wp44ly']});
|
|
934
|
+
|
|
935
|
+
const mapOrientationToFlexDirection = {
|
|
936
|
+
horizontal: "row",
|
|
937
|
+
vertical: "column"
|
|
938
|
+
};
|
|
939
|
+
const Card = React.forwardRef(
|
|
940
|
+
({ children, className, orientation = "vertical", ...props }, ref) => {
|
|
941
|
+
const descriptionId = reactId.useId();
|
|
942
|
+
const labelId = reactId.useId();
|
|
943
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
944
|
+
CardContextProvider,
|
|
945
|
+
{
|
|
946
|
+
descriptionId,
|
|
947
|
+
labelId,
|
|
948
|
+
orientation,
|
|
949
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
950
|
+
IconMagnifyingGlass.Flex,
|
|
951
|
+
{
|
|
952
|
+
"aria-describedby": descriptionId,
|
|
953
|
+
"aria-labelledby": labelId,
|
|
954
|
+
flexDirection: mapOrientationToFlexDirection[orientation],
|
|
955
|
+
ref,
|
|
956
|
+
...card({}, className),
|
|
957
|
+
...props,
|
|
958
|
+
children
|
|
959
|
+
}
|
|
960
|
+
)
|
|
961
|
+
}
|
|
962
|
+
);
|
|
963
|
+
}
|
|
964
|
+
);
|
|
965
|
+
Card.displayName = "@optiaxiom/react/Card";
|
|
966
|
+
|
|
967
|
+
var control = IconMagnifyingGlass.recipeRuntime({base:['_1i3mg3x']});
|
|
968
|
+
var root = IconMagnifyingGlass.recipeRuntime({base:['an3ios',{rounded:'inherit',transition:'opacity'},'oknhts']});
|
|
969
|
+
|
|
970
|
+
const CardCheckbox = React.forwardRef(
|
|
971
|
+
({ children, className, description, indeterminate, ...props }, ref) => {
|
|
972
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
973
|
+
IconMagnifyingGlass.CheckboxRoot,
|
|
974
|
+
{
|
|
975
|
+
description: !!description,
|
|
976
|
+
ref,
|
|
977
|
+
...root({}, className),
|
|
978
|
+
...props,
|
|
979
|
+
children: [
|
|
980
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
981
|
+
IconMagnifyingGlass.CheckboxControl,
|
|
982
|
+
{
|
|
983
|
+
indeterminate,
|
|
984
|
+
shift: Boolean(children),
|
|
985
|
+
...control({}, className)
|
|
986
|
+
}
|
|
987
|
+
),
|
|
988
|
+
/* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.CheckboxContent, { description, children })
|
|
989
|
+
]
|
|
990
|
+
}
|
|
991
|
+
);
|
|
992
|
+
}
|
|
993
|
+
);
|
|
994
|
+
CardCheckbox.displayName = "@optiaxiom/react/CardCheckbox";
|
|
995
|
+
|
|
996
|
+
const CardContent = React.forwardRef(
|
|
997
|
+
({ children, ...props }, ref) => {
|
|
998
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Flex, { gap: "4", ref, ...props, children });
|
|
999
|
+
}
|
|
1000
|
+
);
|
|
1001
|
+
CardContent.displayName = "@optiaxiom/react/CardContent";
|
|
1002
|
+
|
|
1003
|
+
const CardDescription = React.forwardRef(({ children, ...props }, ref) => {
|
|
1004
|
+
const { descriptionId } = useCardContext("CardDescription");
|
|
1005
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1006
|
+
IconMagnifyingGlass.Text,
|
|
1007
|
+
{
|
|
1008
|
+
color: "fg.tertiary",
|
|
1009
|
+
fontSize: "sm",
|
|
1010
|
+
id: descriptionId,
|
|
1011
|
+
ref,
|
|
1012
|
+
...props,
|
|
1013
|
+
children
|
|
1014
|
+
}
|
|
1015
|
+
);
|
|
1016
|
+
});
|
|
1017
|
+
CardDescription.displayName = "@optiaxiom/react/CardDescription";
|
|
1018
|
+
|
|
1019
|
+
var cardImage = IconMagnifyingGlass.recipeRuntime({base:[{h:'full',rounded:'inherit'},'ewcga8'],variants:{orientation:{horizontal:[{w:'auto'},'t6epaj'],vertical:[{w:'full'},'s8fhr5']}}});
|
|
1020
|
+
|
|
1021
|
+
const CardImage = React.forwardRef(
|
|
1022
|
+
({ alt, asChild, children, className, src, ...props }, ref) => {
|
|
1023
|
+
const { orientation } = useCardContext("CardImage");
|
|
1024
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1025
|
+
IconMagnifyingGlass.Box,
|
|
1026
|
+
{
|
|
1027
|
+
asChild: true,
|
|
1028
|
+
ref,
|
|
1029
|
+
...cardImage({ orientation }, className),
|
|
1030
|
+
...props,
|
|
1031
|
+
children: asChild ? children : /* @__PURE__ */ jsxRuntime.jsx("img", { alt, src })
|
|
1032
|
+
}
|
|
1033
|
+
);
|
|
1034
|
+
}
|
|
1035
|
+
);
|
|
1036
|
+
CardImage.displayName = "@optiaxiom/react/CardImage";
|
|
1037
|
+
|
|
1038
|
+
var cardOverflow = IconMagnifyingGlass.recipeRuntime({base:[{alignSelf:'stretch'},'_1xgks22'],variants:{orientation:{horizontal:['_16f40mo'],vertical:['_3g0cj5']}}});
|
|
1039
|
+
|
|
1040
|
+
const CardOverflow = React.forwardRef(
|
|
1041
|
+
({ children, className, ...props }, ref) => {
|
|
1042
|
+
const { orientation } = useCardContext("CardOverflow");
|
|
1043
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1044
|
+
IconMagnifyingGlass.Box,
|
|
1045
|
+
{
|
|
1046
|
+
ref,
|
|
1047
|
+
...cardOverflow({ orientation }, className),
|
|
1048
|
+
...props,
|
|
1049
|
+
children
|
|
1050
|
+
}
|
|
1051
|
+
);
|
|
1052
|
+
}
|
|
1053
|
+
);
|
|
1054
|
+
CardOverflow.displayName = "@optiaxiom/react/CardOverflow";
|
|
1055
|
+
|
|
1056
|
+
const CardTitle = React.forwardRef(
|
|
1057
|
+
({ asChild, children, ...props }, ref) => {
|
|
1058
|
+
const Comp = asChild ? reactSlot.Slot : "h2";
|
|
1059
|
+
const { labelId } = useCardContext("CardTitle");
|
|
1060
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1061
|
+
IconMagnifyingGlass.Heading,
|
|
1062
|
+
{
|
|
1063
|
+
asChild: true,
|
|
1064
|
+
fontWeight: "500",
|
|
1065
|
+
id: labelId,
|
|
1066
|
+
level: "6",
|
|
1067
|
+
ref,
|
|
1068
|
+
...props,
|
|
1069
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Comp, { children })
|
|
1070
|
+
}
|
|
1071
|
+
);
|
|
1072
|
+
}
|
|
1073
|
+
);
|
|
1074
|
+
CardTitle.displayName = "@optiaxiom/react/CardTitle";
|
|
1075
|
+
|
|
1076
|
+
const [ComboboxContextProvider, useComboboxContext] = reactContext.createContext("Combobox");
|
|
1077
|
+
|
|
1078
|
+
const ComboboxDialogContent = React.forwardRef(({ "aria-label": ariaLabel, children, minW: _minW, ...props }, ref) => {
|
|
1079
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(IconMagnifyingGlass.DialogContent, { ref, ...props, children: [
|
|
1080
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactVisuallyHidden.VisuallyHidden, { children: /* @__PURE__ */ jsxRuntime.jsx(RadixDialog__namespace.Title, { children: ariaLabel }) }),
|
|
1081
|
+
children
|
|
1082
|
+
] });
|
|
1083
|
+
});
|
|
1084
|
+
ComboboxDialogContent.displayName = "@optiaxiom/react/ComboboxDialogContent";
|
|
1085
|
+
|
|
1086
|
+
function ComboboxPopover(props) {
|
|
1087
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Popover, { modal: true, ...props });
|
|
1088
|
+
}
|
|
1089
|
+
ComboboxPopover.displayName = "@optiaxiom/react/ComboboxPopover";
|
|
1090
|
+
|
|
1091
|
+
const ComboboxPopoverContent = React.forwardRef((props, ref) => {
|
|
1092
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.PopoverContent, { maxH: "sm", minW: "trigger", ref, ...props });
|
|
1093
|
+
});
|
|
1094
|
+
ComboboxPopoverContent.displayName = "@optiaxiom/react/ComboboxPopoverContent";
|
|
1095
|
+
|
|
1096
|
+
const list = ["md", "sm"];
|
|
1097
|
+
const useResponsiveMatches = (config) => {
|
|
1098
|
+
const matches = {
|
|
1099
|
+
base: true,
|
|
1100
|
+
sm: useMediaQuery(IconMagnifyingGlass.conditions.conditions.sm["@media"]),
|
|
1101
|
+
md: useMediaQuery(IconMagnifyingGlass.conditions.conditions.md["@media"])
|
|
1102
|
+
};
|
|
1103
|
+
for (const name of list) {
|
|
1104
|
+
if (config[name] && matches[name]) {
|
|
1105
|
+
return config[name];
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
return config.base;
|
|
1109
|
+
};
|
|
1110
|
+
|
|
1111
|
+
function Combobox({
|
|
1112
|
+
children,
|
|
1113
|
+
defaultOpen = false,
|
|
1114
|
+
isItemDisabled = () => false,
|
|
1115
|
+
items,
|
|
1116
|
+
itemToKey = (value) => value,
|
|
1117
|
+
itemToString = (value) => value ? String(value) : "",
|
|
1118
|
+
onInputValueChange,
|
|
1119
|
+
onItemSelect,
|
|
1120
|
+
onOpenChange,
|
|
1121
|
+
open: openProp,
|
|
1122
|
+
value: valueProp
|
|
1123
|
+
}) {
|
|
1124
|
+
const components = useResponsiveMatches({
|
|
1125
|
+
base: {
|
|
1126
|
+
Content: ComboboxDialogContent,
|
|
1127
|
+
Root: IconMagnifyingGlass.Dialog,
|
|
1128
|
+
Trigger: IconMagnifyingGlass.DialogTrigger
|
|
1129
|
+
},
|
|
1130
|
+
sm: {
|
|
1131
|
+
Content: ComboboxPopoverContent,
|
|
1132
|
+
Root: ComboboxPopover,
|
|
1133
|
+
Trigger: IconMagnifyingGlass.PopoverTrigger
|
|
1134
|
+
}
|
|
1135
|
+
});
|
|
1136
|
+
const value = React.useMemo(
|
|
1137
|
+
() => Array.isArray(valueProp) ? new Set(valueProp) : valueProp,
|
|
1138
|
+
[valueProp]
|
|
1139
|
+
);
|
|
1140
|
+
const [open, setOpen] = reactUseControllableState.useControllableState({
|
|
1141
|
+
defaultProp: defaultOpen,
|
|
1142
|
+
onChange: onOpenChange,
|
|
1143
|
+
prop: openProp
|
|
1144
|
+
});
|
|
1145
|
+
const onInputValueChangeStable = useEffectEvent(
|
|
1146
|
+
onInputValueChange ?? (() => {
|
|
1147
|
+
})
|
|
1148
|
+
);
|
|
1149
|
+
React.useEffect(() => {
|
|
1150
|
+
if (!open) {
|
|
1151
|
+
onInputValueChangeStable("");
|
|
1152
|
+
}
|
|
1153
|
+
}, [open, onInputValueChangeStable]);
|
|
1154
|
+
return /* @__PURE__ */ jsxRuntime.jsx(components.Root, { onOpenChange: setOpen, open, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1155
|
+
ComboboxContextProvider,
|
|
1156
|
+
{
|
|
1157
|
+
components,
|
|
1158
|
+
isItemDisabled,
|
|
1159
|
+
items,
|
|
1160
|
+
itemToKey,
|
|
1161
|
+
itemToString,
|
|
1162
|
+
onInputValueChange,
|
|
1163
|
+
onItemSelect,
|
|
1164
|
+
open,
|
|
1165
|
+
setOpen,
|
|
1166
|
+
value,
|
|
1167
|
+
children
|
|
1168
|
+
}
|
|
1169
|
+
) });
|
|
1170
|
+
}
|
|
1171
|
+
Combobox.displayName = "@optiaxiom/react/Combobox";
|
|
1172
|
+
|
|
1173
|
+
const ComboboxItem = React.forwardRef(
|
|
1174
|
+
(props, ref) => /* @__PURE__ */ jsxRuntime.jsx(CommandItem, { ref, ...props })
|
|
1175
|
+
);
|
|
1176
|
+
ComboboxItem.displayName = "@optiaxiom/react/ComboboxItem";
|
|
1177
|
+
|
|
1178
|
+
const ComboboxCheckboxItem = React.forwardRef(({ children, ...props }, ref) => {
|
|
1179
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ComboboxItem, { asChild: true, ref, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.ListboxCheckboxItem, { children }) });
|
|
1180
|
+
});
|
|
1181
|
+
ComboboxCheckboxItem.displayName = "@optiaxiom/react/ComboboxCheckboxItem";
|
|
1182
|
+
|
|
1183
|
+
const ComboboxContentImpl = React.forwardRef(({ children, ...props }, ref) => {
|
|
1184
|
+
const { setPlaced } = useCommandContext("ComboboxContentImpl");
|
|
1185
|
+
React.useEffect(() => {
|
|
1186
|
+
setPlaced(true);
|
|
1187
|
+
}, [setPlaced]);
|
|
1188
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CommandListbox, { ref, ...props, children });
|
|
1189
|
+
});
|
|
1190
|
+
ComboboxContentImpl.displayName = "@optiaxiom/react/ComboboxContentImpl";
|
|
1191
|
+
|
|
1192
|
+
const ComboboxContent = React.forwardRef(
|
|
1193
|
+
({ children, ...props }, ref) => {
|
|
1194
|
+
const p = useResponsiveMatches({
|
|
1195
|
+
base: "8",
|
|
1196
|
+
sm: "4"
|
|
1197
|
+
});
|
|
1198
|
+
const { labelId } = IconMagnifyingGlass.useFieldContext();
|
|
1199
|
+
const {
|
|
1200
|
+
components,
|
|
1201
|
+
isItemDisabled,
|
|
1202
|
+
items,
|
|
1203
|
+
itemToKey,
|
|
1204
|
+
itemToString,
|
|
1205
|
+
onInputValueChange,
|
|
1206
|
+
onItemSelect,
|
|
1207
|
+
value
|
|
1208
|
+
} = useComboboxContext("ComboboxContent");
|
|
1209
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1210
|
+
components.Content,
|
|
1211
|
+
{
|
|
1212
|
+
"aria-labelledby": labelId,
|
|
1213
|
+
overflow: "hidden",
|
|
1214
|
+
p,
|
|
1215
|
+
ref,
|
|
1216
|
+
...props,
|
|
1217
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1218
|
+
Command,
|
|
1219
|
+
{
|
|
1220
|
+
isItemDisabled,
|
|
1221
|
+
items,
|
|
1222
|
+
itemToKey,
|
|
1223
|
+
itemToString,
|
|
1224
|
+
onInputValueChange,
|
|
1225
|
+
onItemSelect,
|
|
1226
|
+
open: true,
|
|
1227
|
+
selectedItem: null,
|
|
1228
|
+
stateReducer: (state, actionAndChanges) => {
|
|
1229
|
+
const { changes, type } = actionAndChanges;
|
|
1230
|
+
switch (type) {
|
|
1231
|
+
case downshift.useCombobox.stateChangeTypes.InputKeyDownEnter:
|
|
1232
|
+
case downshift.useCombobox.stateChangeTypes.ItemClick:
|
|
1233
|
+
return {
|
|
1234
|
+
...changes,
|
|
1235
|
+
/**
|
|
1236
|
+
* Keep the selected option highlighted rather than resetting to -1
|
|
1237
|
+
*/
|
|
1238
|
+
highlightedIndex: state.highlightedIndex
|
|
1239
|
+
};
|
|
1240
|
+
default:
|
|
1241
|
+
return changes;
|
|
1242
|
+
}
|
|
1243
|
+
},
|
|
1244
|
+
value,
|
|
1245
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ComboboxContentImpl, { children })
|
|
1246
|
+
}
|
|
1247
|
+
)
|
|
1248
|
+
}
|
|
1249
|
+
);
|
|
1250
|
+
}
|
|
1251
|
+
);
|
|
1252
|
+
ComboboxContent.displayName = "@optiaxiom/react/ComboboxContent";
|
|
1253
|
+
|
|
1254
|
+
const ComboboxEmpty = React.forwardRef(
|
|
1255
|
+
(props, ref) => {
|
|
1256
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.ListboxEmpty, { ref, ...props });
|
|
1257
|
+
}
|
|
1258
|
+
);
|
|
1259
|
+
ComboboxEmpty.displayName = "@optiaxiom/react/ComboboxEmpty";
|
|
1260
|
+
|
|
1261
|
+
const ComboboxFooter = React.forwardRef(
|
|
1262
|
+
(props, ref) => {
|
|
1263
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.ListboxFooter, { ref, ...props });
|
|
1264
|
+
}
|
|
1265
|
+
);
|
|
1266
|
+
ComboboxFooter.displayName = "@optiaxiom/react/ComboboxFooter";
|
|
1267
|
+
|
|
1268
|
+
const ComboboxGroup = React.forwardRef(
|
|
1269
|
+
(props, ref) => {
|
|
1270
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.ListboxGroup, { ref, ...props });
|
|
1271
|
+
}
|
|
1272
|
+
);
|
|
1273
|
+
ComboboxGroup.displayName = "@optiaxiom/react/ComboboxGroup";
|
|
1274
|
+
|
|
1275
|
+
const ComboboxInput = React.forwardRef(
|
|
1276
|
+
(props, ref) => {
|
|
1277
|
+
const { downshift, highlightedItem } = useCommandContext("ComboboxInput");
|
|
1278
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1279
|
+
CommandInput,
|
|
1280
|
+
{
|
|
1281
|
+
htmlSize: 1,
|
|
1282
|
+
m: "4",
|
|
1283
|
+
onKeyDown: (event) => {
|
|
1284
|
+
if (event.key === " " && highlightedItem) {
|
|
1285
|
+
event.preventDefault();
|
|
1286
|
+
downshift.selectItem(highlightedItem);
|
|
1287
|
+
}
|
|
1288
|
+
},
|
|
1289
|
+
ref,
|
|
1290
|
+
...props
|
|
1291
|
+
}
|
|
1292
|
+
);
|
|
1293
|
+
}
|
|
1294
|
+
);
|
|
1295
|
+
ComboboxInput.displayName = "@optiaxiom/react/ComboboxInput";
|
|
1296
|
+
|
|
1297
|
+
const ComboboxLabel = React.forwardRef(
|
|
1298
|
+
(props, ref) => {
|
|
1299
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.ListboxLabel, { ref, ...props });
|
|
1300
|
+
}
|
|
1301
|
+
);
|
|
1302
|
+
ComboboxLabel.displayName = "@optiaxiom/react/ComboboxLabel";
|
|
1303
|
+
|
|
1304
|
+
const ComboboxRadioItem = React.forwardRef(({ children, ...props }, ref) => {
|
|
1305
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ComboboxItem, { asChild: true, ref, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.ListboxRadioItem, { children }) });
|
|
1306
|
+
});
|
|
1307
|
+
ComboboxRadioItem.displayName = "@optiaxiom/react/ComboboxRadioItem";
|
|
1308
|
+
|
|
1309
|
+
const ComboboxScrollArea = React.forwardRef((props, ref) => {
|
|
1310
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.ListboxScrollArea, { ref, ...props });
|
|
1311
|
+
});
|
|
1312
|
+
ComboboxScrollArea.displayName = "@optiaxiom/react/ComboboxScrollArea";
|
|
1313
|
+
|
|
1314
|
+
const ComboboxSeparator = React.forwardRef((props, ref) => {
|
|
1315
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.ListboxSeparator, { ref, ...props });
|
|
1316
|
+
});
|
|
1317
|
+
ComboboxSeparator.displayName = "@optiaxiom/react/ComboboxSeparator";
|
|
1318
|
+
|
|
1319
|
+
const ComboboxTrigger = React.forwardRef(({ asChild, children, ...props }, outerRef) => {
|
|
1320
|
+
const { components, setOpen } = useComboboxContext("ComboboxTrigger");
|
|
1321
|
+
const buttonRef = React.useRef(null);
|
|
1322
|
+
const ref = reactComposeRefs.useComposedRefs(outerRef, buttonRef);
|
|
1323
|
+
const { labelId } = IconMagnifyingGlass.useFieldContext();
|
|
1324
|
+
React.useEffect(() => {
|
|
1325
|
+
if (!labelId || !buttonRef.current) {
|
|
1326
|
+
return;
|
|
1327
|
+
}
|
|
1328
|
+
const button = buttonRef.current;
|
|
1329
|
+
const label = document.getElementById(labelId);
|
|
1330
|
+
if (!label) {
|
|
1331
|
+
return;
|
|
1332
|
+
}
|
|
1333
|
+
const onLabelClick = () => button.focus();
|
|
1334
|
+
label.addEventListener("click", onLabelClick);
|
|
1335
|
+
return () => label.removeEventListener("click", onLabelClick);
|
|
1336
|
+
}, [labelId]);
|
|
1337
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1338
|
+
components.Trigger,
|
|
1339
|
+
{
|
|
1340
|
+
"aria-labelledby": labelId,
|
|
1341
|
+
asChild: true,
|
|
1342
|
+
onKeyDown: (event) => {
|
|
1343
|
+
switch (event.key) {
|
|
1344
|
+
case "ArrowDown":
|
|
1345
|
+
case "ArrowUp":
|
|
1346
|
+
setOpen(true);
|
|
1347
|
+
}
|
|
1348
|
+
},
|
|
1349
|
+
ref,
|
|
1350
|
+
role: "combobox",
|
|
1351
|
+
...props,
|
|
1352
|
+
children: asChild ? children : /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.AngleMenuButton, { children })
|
|
1353
|
+
}
|
|
1354
|
+
);
|
|
1355
|
+
});
|
|
1356
|
+
ComboboxTrigger.displayName = "@optiaxiom/react/ComboboxTrigger";
|
|
1357
|
+
|
|
1358
|
+
const ComboboxValue = React.forwardRef(
|
|
1359
|
+
({ children, placeholder, ...props }, ref) => {
|
|
1360
|
+
const { itemToString, value: valueContext } = useComboboxContext("ComboboxValue");
|
|
1361
|
+
const value = React.useMemo(
|
|
1362
|
+
() => valueContext instanceof Set ? [...valueContext] : valueContext,
|
|
1363
|
+
[valueContext]
|
|
1364
|
+
);
|
|
1365
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Flex, { flexDirection: "row", flexWrap: "wrap", gap: "2", ref, ...props, children: Array.isArray(value) && value.length > 0 ? children ?? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: value.length === 1 ? itemToString(value[0]) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1366
|
+
value.length,
|
|
1367
|
+
" selected"
|
|
1368
|
+
] }) }) : placeholder });
|
|
1369
|
+
}
|
|
1370
|
+
);
|
|
1371
|
+
ComboboxValue.displayName = "@optiaxiom/react/ComboboxValue";
|
|
1372
|
+
|
|
1373
|
+
const IconSort = IconMagnifyingGlass.withIcon(
|
|
1374
|
+
{
|
|
1375
|
+
height: 12,
|
|
1376
|
+
name: "IconSort",
|
|
1377
|
+
width: 14
|
|
1378
|
+
},
|
|
1379
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1380
|
+
"path",
|
|
1381
|
+
{
|
|
1382
|
+
d: "M3.88274 5.25H10.0937C10.6562 5.25 10.9609 4.57031 10.539 4.14844L7.44524 0.960938C7.32805 0.820312 7.16399 0.75 6.99993 0.75C6.83586 0.75 6.64836 0.820312 6.53118 0.960938L3.43743 4.14844C3.01555 4.57031 3.32024 5.25 3.88274 5.25ZM10.0937 6.75H3.88274C3.32024 6.75 3.01555 7.45312 3.43743 7.875L6.53118 11.0625C6.64836 11.2031 6.81243 11.25 6.99993 11.25C7.16399 11.25 7.32805 11.2031 7.44524 11.0625L10.539 7.875C10.9609 7.45312 10.6562 6.75 10.0937 6.75Z",
|
|
1383
|
+
fill: "currentColor"
|
|
1384
|
+
}
|
|
1385
|
+
)
|
|
1386
|
+
);
|
|
1387
|
+
|
|
1388
|
+
const IconSortDown = IconMagnifyingGlass.withIcon(
|
|
1389
|
+
{
|
|
1390
|
+
height: 12,
|
|
1391
|
+
name: "IconSortDown",
|
|
1392
|
+
width: 14
|
|
1393
|
+
},
|
|
1394
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1395
|
+
"path",
|
|
1396
|
+
{
|
|
1397
|
+
d: "M10.5156 5.78906L7.53907 8.78906C7.375 8.92969 7.1875 9 7 9C6.78907 9 6.60157 8.92969 6.46094 8.78906L3.48438 5.78906C3.25 5.57812 3.17969 5.25 3.29688 4.96875C3.41407 4.6875 3.69532 4.5 4 4.5H9.97657C10.2813 4.5 10.5391 4.6875 10.6563 4.96875C10.7734 5.25 10.7266 5.57812 10.5156 5.78906Z",
|
|
1398
|
+
fill: "currentColor"
|
|
1399
|
+
}
|
|
1400
|
+
)
|
|
1401
|
+
);
|
|
1402
|
+
|
|
1403
|
+
const IconSortUp = IconMagnifyingGlass.withIcon(
|
|
1404
|
+
{
|
|
1405
|
+
height: 12,
|
|
1406
|
+
name: "IconSortUp",
|
|
1407
|
+
width: 14
|
|
1408
|
+
},
|
|
1409
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1410
|
+
"path",
|
|
1411
|
+
{
|
|
1412
|
+
d: "M3.46099 6.23438L6.43756 3.23438C6.60162 3.09375 6.78912 3 7.00006 3C7.18756 3 7.37506 3.09375 7.51568 3.23438L10.4922 6.23438C10.7032 6.44531 10.7735 6.77344 10.6563 7.05469C10.5391 7.33594 10.2813 7.5 9.97662 7.5H4.00006C3.69537 7.5 3.41412 7.33594 3.29693 7.05469C3.17974 6.77344 3.25006 6.44531 3.46099 6.23438Z",
|
|
1413
|
+
fill: "currentColor"
|
|
1414
|
+
}
|
|
1415
|
+
)
|
|
1416
|
+
);
|
|
1417
|
+
|
|
1418
|
+
var cell$2 = IconMagnifyingGlass.recipeRuntime({base:'_1lpeqgh'});
|
|
1419
|
+
var content$1 = IconMagnifyingGlass.recipeRuntime({base:[{alignItems:'center',bg:'bg.default',color:'fg.tertiary',display:'flex',fontSize:'sm',fontWeight:'400',h:'full',px:'16',py:'12'},'tu3a0n']});
|
|
1420
|
+
|
|
1421
|
+
const TableHeaderCell = React.forwardRef(({ children, className, colSpan, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { asChild: true, ...cell$2({}, className), ...props, children: /* @__PURE__ */ jsxRuntime.jsx("th", { colSpan, ref, children: /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { ...content$1(), children }) }) }));
|
|
1422
|
+
TableHeaderCell.displayName = "@optiaxiom/react/TableHeaderCell";
|
|
1423
|
+
|
|
1424
|
+
var button = IconMagnifyingGlass.recipeRuntime({base:[{alignItems:'center',display:'flex',gap:'4',justifyContent:'start',textAlign:'start',transition:'colors',w:'full'},'_1gf6pup','_10zqnqr']});
|
|
1425
|
+
var icon = IconMagnifyingGlass.recipeRuntime({base:[{h:'12',mx:'2',transition:'opacity'},'_1ahff16'],variants:{active:{false:'yjcsxq',true:'_1m4um4t'},muted:{false:{},true:'_1ghi170'}}});
|
|
1426
|
+
|
|
1427
|
+
const DataTableHeaderCell = React.forwardRef(({ children, header, ...props }, ref) => {
|
|
1428
|
+
const sortDir = header.column.getIsSorted();
|
|
1429
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1430
|
+
TableHeaderCell,
|
|
1431
|
+
{
|
|
1432
|
+
"aria-sort": header.column.columnDef.enableSorting ? sortDir === false ? "none" : sortDir === "asc" ? "ascending" : "descending" : undefined,
|
|
1433
|
+
colSpan: header.colSpan,
|
|
1434
|
+
ref,
|
|
1435
|
+
...props,
|
|
1436
|
+
children: header.column.columnDef.enableSorting ? /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { asChild: true, ...button(), children: /* @__PURE__ */ jsxRuntime.jsxs("button", { onClick: () => header.column.toggleSorting(), children: [
|
|
1437
|
+
children,
|
|
1438
|
+
sortDir && /* @__PURE__ */ jsxRuntime.jsxs(reactVisuallyHidden.VisuallyHidden, { children: [
|
|
1439
|
+
"sorted ",
|
|
1440
|
+
sortDir === "asc" ? "ascending" : "descending"
|
|
1441
|
+
] }),
|
|
1442
|
+
/* @__PURE__ */ jsxRuntime.jsxs(IconMagnifyingGlass.Grid, { placeItems: "center", children: [
|
|
1443
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1444
|
+
IconMagnifyingGlass.Icon,
|
|
1445
|
+
{
|
|
1446
|
+
asChild: true,
|
|
1447
|
+
...icon({
|
|
1448
|
+
active: sortDir === false,
|
|
1449
|
+
muted: !sortDir
|
|
1450
|
+
}),
|
|
1451
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(IconSort, {})
|
|
1452
|
+
}
|
|
1453
|
+
),
|
|
1454
|
+
/* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Icon, { asChild: true, ...icon({ active: sortDir === "asc" }), children: /* @__PURE__ */ jsxRuntime.jsx(IconSortUp, {}) }),
|
|
1455
|
+
/* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Icon, { asChild: true, ...icon({ active: sortDir === "desc" }), children: /* @__PURE__ */ jsxRuntime.jsx(IconSortDown, {}) })
|
|
1456
|
+
] })
|
|
1457
|
+
] }) }) : children
|
|
1458
|
+
}
|
|
1459
|
+
);
|
|
1460
|
+
});
|
|
1461
|
+
DataTableHeaderCell.displayName = "@optiaxiom/react/DataTableHeaderCell";
|
|
1462
|
+
|
|
1463
|
+
var table$1 = IconMagnifyingGlass.recipeRuntime({base:[{color:'fg.default',fontSize:'md'},'_8ofn3x'],variants:{layout:{auto:[{w:'full'},'nzuj0t'],fixed:[{w:'fit'},'_1xizzjw']}}});
|
|
1464
|
+
var wrapper = IconMagnifyingGlass.recipeRuntime({base:[{bg:'bg.default',border:'1',borderColor:'border.default',maxW:'full',overflow:'auto',rounded:'lg'},'_8heqlj']});
|
|
1465
|
+
|
|
1466
|
+
const Table = React.forwardRef(
|
|
1467
|
+
({ children, className, layout = "auto", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { ...wrapper({}, className), ref, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { asChild: true, ...table$1({ layout }), children: /* @__PURE__ */ jsxRuntime.jsx("table", { ref, children }) }) })
|
|
1468
|
+
);
|
|
1469
|
+
Table.displayName = "@optiaxiom/react/Table";
|
|
1470
|
+
|
|
1471
|
+
var body = IconMagnifyingGlass.recipeRuntime({base:['_1n9rf9d']});
|
|
1472
|
+
|
|
1473
|
+
const TableBody = React.forwardRef(
|
|
1474
|
+
({ children, className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { asChild: true, ...body({}, className), ...props, children: /* @__PURE__ */ jsxRuntime.jsx("tbody", { ref, children }) })
|
|
1475
|
+
);
|
|
1476
|
+
TableBody.displayName = "@optiaxiom/react/TableBody";
|
|
1477
|
+
|
|
1478
|
+
var cell$1 = IconMagnifyingGlass.recipeRuntime({base:[{borderColor:'border.default',p:'16'},'_14efa0b']});
|
|
1479
|
+
|
|
1480
|
+
const TableCell = React.forwardRef(
|
|
1481
|
+
({ children, className, colSpan, ...props }, ref) => {
|
|
1482
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { asChild: true, ...cell$1({}, className), ...props, children: /* @__PURE__ */ jsxRuntime.jsx("td", { colSpan, ref, children }) });
|
|
1483
|
+
}
|
|
1484
|
+
);
|
|
1485
|
+
TableCell.displayName = "@optiaxiom/react/TableCell";
|
|
1486
|
+
|
|
1487
|
+
const TableHeader = React.forwardRef(({ children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { asChild: true, ...props, children: /* @__PURE__ */ jsxRuntime.jsx("thead", { ref, children }) }));
|
|
1488
|
+
TableHeader.displayName = "@optiaxiom/react/TableHeader";
|
|
1489
|
+
|
|
1490
|
+
var row = IconMagnifyingGlass.recipeRuntime({base:['_6426li',{transition:'colors',w:'full'},'gnwgu0']});
|
|
1491
|
+
|
|
1492
|
+
const TableRow = React.forwardRef(
|
|
1493
|
+
({ children, className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { asChild: true, ...row({}, className), ...props, children: /* @__PURE__ */ jsxRuntime.jsx("tr", { ref, children }) })
|
|
1494
|
+
);
|
|
1495
|
+
TableRow.displayName = "@optiaxiom/react/TableRow";
|
|
1496
|
+
|
|
1497
|
+
var cell = IconMagnifyingGlass.recipeRuntime({base:['_1g4usb9'],variants:{pinned:{left:'yen15q',right:'ic9kq2'},pinnedType:{body:'_10ms838',header:{}}}});
|
|
1498
|
+
var cellOffsetVar = 'var(--_1sg2yos)';
|
|
1499
|
+
var cellSizeVar = 'var(--_1pz8zo9)';
|
|
1500
|
+
var header = IconMagnifyingGlass.recipeRuntime({base:['_2j50hz']});
|
|
1501
|
+
var leftTotalSizeVar = 'var(--_1415tmj)';
|
|
1502
|
+
var rightTotalSizeVar = 'var(--_1mua5pj)';
|
|
1503
|
+
var table = IconMagnifyingGlass.recipeRuntime({base:'_12rjkdq',variants:{pinned:{both:'_1vwdlsa',left:'_4ml1gc',none:{},right:'mc7hhh'}}});
|
|
1504
|
+
|
|
1505
|
+
const DataTable = React.forwardRef(
|
|
1506
|
+
({ table: table$1, ...props }, ref) => {
|
|
1507
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1508
|
+
IconMagnifyingGlass.Box,
|
|
1509
|
+
{
|
|
1510
|
+
alignItems: "center",
|
|
1511
|
+
display: "flex",
|
|
1512
|
+
flexDirection: "column",
|
|
1513
|
+
maxW: "full",
|
|
1514
|
+
ref,
|
|
1515
|
+
...props,
|
|
1516
|
+
children: [
|
|
1517
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1518
|
+
Table,
|
|
1519
|
+
{
|
|
1520
|
+
layout: "fixed",
|
|
1521
|
+
style: dynamic.assignInlineVars({
|
|
1522
|
+
[leftTotalSizeVar]: `${table$1.getLeftTotalSize()}px`,
|
|
1523
|
+
[rightTotalSizeVar]: `${table$1.getRightTotalSize()}px`
|
|
1524
|
+
}),
|
|
1525
|
+
...table({
|
|
1526
|
+
pinned: table$1.getLeftTotalSize() > 0 && table$1.getRightTotalSize() > 0 ? "both" : table$1.getLeftTotalSize() > 0 ? "left" : table$1.getRightTotalSize() > 0 ? "right" : "none"
|
|
1527
|
+
}),
|
|
1528
|
+
children: [
|
|
1529
|
+
/* @__PURE__ */ jsxRuntime.jsx(TableHeader, { ...header(), children: table$1.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsxRuntime.jsx(TableRow, { children: headerGroup.headers.map((header) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1530
|
+
DataTableHeaderCell,
|
|
1531
|
+
{
|
|
1532
|
+
header,
|
|
1533
|
+
style: {
|
|
1534
|
+
...dynamic.assignInlineVars({
|
|
1535
|
+
[cellOffsetVar]: `${header.column.getStart(header.column.getIsPinned() || "left")}px`,
|
|
1536
|
+
[cellSizeVar]: `${header.getSize()}px`
|
|
1537
|
+
})
|
|
1538
|
+
},
|
|
1539
|
+
...cell({
|
|
1540
|
+
pinned: header.column.getIsPinned() || undefined,
|
|
1541
|
+
pinnedType: header.column.getIsPinned() ? "header" : undefined
|
|
1542
|
+
}),
|
|
1543
|
+
children: header.isPlaceholder ? null : reactTable.flexRender(
|
|
1544
|
+
header.column.columnDef.header,
|
|
1545
|
+
header.getContext()
|
|
1546
|
+
)
|
|
1547
|
+
},
|
|
1548
|
+
header.id
|
|
1549
|
+
)) }, headerGroup.id)) }),
|
|
1550
|
+
/* @__PURE__ */ jsxRuntime.jsx(TableBody, { children: table$1.getRowModel().rows.map((row) => /* @__PURE__ */ jsxRuntime.jsx(TableRow, { children: row.getVisibleCells().map((cell$1) => {
|
|
1551
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1552
|
+
TableCell,
|
|
1553
|
+
{
|
|
1554
|
+
style: {
|
|
1555
|
+
...dynamic.assignInlineVars({
|
|
1556
|
+
[cellOffsetVar]: `${cell$1.column.getStart(cell$1.column.getIsPinned() || "left")}px`,
|
|
1557
|
+
[cellSizeVar]: `${cell$1.column.getSize()}px`
|
|
1558
|
+
})
|
|
1559
|
+
},
|
|
1560
|
+
...cell({
|
|
1561
|
+
pinned: cell$1.column.getIsPinned() || undefined,
|
|
1562
|
+
pinnedType: cell$1.column.getIsPinned() ? "body" : undefined
|
|
1563
|
+
}),
|
|
1564
|
+
children: reactTable.flexRender(
|
|
1565
|
+
cell$1.column.columnDef.cell,
|
|
1566
|
+
cell$1.getContext()
|
|
1567
|
+
)
|
|
1568
|
+
},
|
|
1569
|
+
cell$1.id
|
|
1570
|
+
);
|
|
1571
|
+
}) }, row.id)) })
|
|
1572
|
+
]
|
|
1573
|
+
}
|
|
1574
|
+
),
|
|
1575
|
+
table$1.getPageCount() > 1 && /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { mt: "8", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1576
|
+
IconMagnifyingGlass.Pagination,
|
|
1577
|
+
{
|
|
1578
|
+
onPageChange: (newPage) => table$1.setPageIndex(newPage - 1),
|
|
1579
|
+
page: table$1.getState().pagination.pageIndex + 1,
|
|
1580
|
+
total: table$1.getPageCount()
|
|
1581
|
+
}
|
|
1582
|
+
) })
|
|
1583
|
+
]
|
|
1584
|
+
}
|
|
1585
|
+
);
|
|
1586
|
+
}
|
|
1587
|
+
);
|
|
1588
|
+
DataTable.displayName = "@optiaxiom/react/DataTable";
|
|
1589
|
+
|
|
1590
|
+
const IconCalendar = IconMagnifyingGlass.withIcon(
|
|
1591
|
+
{
|
|
1592
|
+
name: "IconCalendar"
|
|
1593
|
+
},
|
|
1594
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1595
|
+
"path",
|
|
1596
|
+
{
|
|
1597
|
+
clipRule: "evenodd",
|
|
1598
|
+
d: "M13.5 0.5C13.5 0.223858 13.2761 0 13 0C12.7239 0 12.5 0.223858 12.5 0.5V2H7.5V0.5C7.5 0.223858 7.27614 0 7 0C6.72386 0 6.5 0.223858 6.5 0.5V2H5.33333C4.04467 2 3 3.04467 3 4.33333V13.6667C3 14.9553 4.04467 16 5.33333 16H14.6667C15.9553 16 17 14.9553 17 13.6667V4.33333C17 3.04467 15.9553 2 14.6667 2H13.5V0.5ZM5.33333 3H7H13H14.6667C15.403 3 16 3.59695 16 4.33333V5.16666H4V4.33333C4 3.59695 4.59695 3 5.33333 3ZM4 6.16666V13.6667C4 14.403 4.59695 15 5.33333 15H14.6667C15.403 15 16 14.403 16 13.6667V6.16666H4Z",
|
|
1599
|
+
fill: "currentColor",
|
|
1600
|
+
fillRule: "evenodd"
|
|
1601
|
+
}
|
|
1602
|
+
)
|
|
1603
|
+
);
|
|
1604
|
+
|
|
1605
|
+
const useCalendarSupported = () => {
|
|
1606
|
+
const [mounted, setMounted] = React.useState(false);
|
|
1607
|
+
React.useEffect(() => {
|
|
1608
|
+
setMounted(true);
|
|
1609
|
+
}, []);
|
|
1610
|
+
return mounted ? CSS.supports("selector(::-webkit-datetime-edit)") : null;
|
|
1611
|
+
};
|
|
1612
|
+
|
|
1613
|
+
function format(date) {
|
|
1614
|
+
return new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate())).toISOString().split("T")[0];
|
|
1615
|
+
}
|
|
1616
|
+
function parse(str) {
|
|
1617
|
+
const rawDate = str && typeof str === "string" ? new Date(str) : undefined;
|
|
1618
|
+
return isValidDate(rawDate) ? new Date(rawDate.getTime() + (/* @__PURE__ */ new Date()).getTimezoneOffset() * 60 * 1e3) : undefined;
|
|
1619
|
+
}
|
|
1620
|
+
const isValidDate = (date) => date ? !isNaN(+date) : false;
|
|
1621
|
+
|
|
1622
|
+
const DateInput = React.forwardRef(
|
|
1623
|
+
({ disabled, max, min, onChange, ...props }, outerRef) => {
|
|
1624
|
+
const [open, setOpen] = React.useState(false);
|
|
1625
|
+
const [value, setValue] = reactUseControllableState.useControllableState({
|
|
1626
|
+
defaultProp: props.defaultValue,
|
|
1627
|
+
prop: props.value
|
|
1628
|
+
});
|
|
1629
|
+
const innerRef = React.useRef(null);
|
|
1630
|
+
const ref = reactComposeRefs.useComposedRefs(innerRef, outerRef);
|
|
1631
|
+
const maxDate = max ? new Date(max) : undefined;
|
|
1632
|
+
const minDate = min ? new Date(min) : undefined;
|
|
1633
|
+
const supported = useCalendarSupported();
|
|
1634
|
+
if (supported === null) {
|
|
1635
|
+
return null;
|
|
1636
|
+
} else if (!supported) {
|
|
1637
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1638
|
+
IconMagnifyingGlass.Input,
|
|
1639
|
+
{
|
|
1640
|
+
disabled,
|
|
1641
|
+
max,
|
|
1642
|
+
min,
|
|
1643
|
+
onChange,
|
|
1644
|
+
ref,
|
|
1645
|
+
type: "date",
|
|
1646
|
+
...props
|
|
1647
|
+
}
|
|
1648
|
+
);
|
|
1649
|
+
}
|
|
1650
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(IconMagnifyingGlass.Popover, { onOpenChange: setOpen, open: !disabled && open, children: [
|
|
1651
|
+
/* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.PopoverAnchor, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1652
|
+
IconMagnifyingGlass.Input,
|
|
1653
|
+
{
|
|
1654
|
+
addonAfter: !disabled && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1655
|
+
IconMagnifyingGlass.PopoverTrigger,
|
|
1656
|
+
{
|
|
1657
|
+
appearance: "subtle",
|
|
1658
|
+
"aria-label": "Show date picker",
|
|
1659
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(IconCalendar, {}),
|
|
1660
|
+
size: "sm"
|
|
1661
|
+
}
|
|
1662
|
+
),
|
|
1663
|
+
disabled,
|
|
1664
|
+
max,
|
|
1665
|
+
min,
|
|
1666
|
+
onChange: (event) => {
|
|
1667
|
+
onChange?.(event);
|
|
1668
|
+
setValue(event.target.value);
|
|
1669
|
+
},
|
|
1670
|
+
onClick: (e) => {
|
|
1671
|
+
e.preventDefault();
|
|
1672
|
+
},
|
|
1673
|
+
onKeyDown: (e) => {
|
|
1674
|
+
if (e.key === " ") {
|
|
1675
|
+
e.preventDefault();
|
|
1676
|
+
setOpen(true);
|
|
1677
|
+
}
|
|
1678
|
+
},
|
|
1679
|
+
ref,
|
|
1680
|
+
type: "date",
|
|
1681
|
+
...props
|
|
1682
|
+
}
|
|
1683
|
+
) }),
|
|
1684
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1685
|
+
IconMagnifyingGlass.PopoverContent,
|
|
1686
|
+
{
|
|
1687
|
+
onCloseAutoFocus: (event) => {
|
|
1688
|
+
event.preventDefault();
|
|
1689
|
+
innerRef.current?.focus();
|
|
1690
|
+
},
|
|
1691
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1692
|
+
Calendar,
|
|
1693
|
+
{
|
|
1694
|
+
max: maxDate,
|
|
1695
|
+
min: minDate,
|
|
1696
|
+
onValueChange: (date) => {
|
|
1697
|
+
if (!date) {
|
|
1698
|
+
return;
|
|
1699
|
+
}
|
|
1700
|
+
if (innerRef.current) {
|
|
1701
|
+
IconMagnifyingGlass.forceValueChange(innerRef?.current, format(date));
|
|
1702
|
+
}
|
|
1703
|
+
setOpen(false);
|
|
1704
|
+
},
|
|
1705
|
+
value: parse(value)
|
|
1706
|
+
}
|
|
1707
|
+
)
|
|
1708
|
+
}
|
|
1709
|
+
)
|
|
1710
|
+
] });
|
|
1711
|
+
}
|
|
1712
|
+
);
|
|
1713
|
+
DateInput.displayName = "@optiaxiom/react/DateInput";
|
|
1714
|
+
|
|
1715
|
+
var mark = IconMagnifyingGlass.recipeRuntime({base:'fcabbe'});
|
|
1716
|
+
|
|
1717
|
+
const useHighlightedChunks = (content, query) => {
|
|
1718
|
+
const terms = React.useMemo(
|
|
1719
|
+
() => (Array.isArray(query) ? query : query ? [query] : []).map((q) => typeof q === "string" ? q.trim() : q).filter(Boolean),
|
|
1720
|
+
[query]
|
|
1721
|
+
);
|
|
1722
|
+
if (terms.length === 0) {
|
|
1723
|
+
return [{ chunk: content, highlighted: false }];
|
|
1724
|
+
}
|
|
1725
|
+
const pattern = new RegExp(
|
|
1726
|
+
"(" + terms.map(
|
|
1727
|
+
(term) => term instanceof RegExp ? term.source : `(?![^<>]*>)(^|\\b)(?=[^/.])${escapeRegExp(term)}`
|
|
1728
|
+
).join("|") + ")",
|
|
1729
|
+
"gi"
|
|
1730
|
+
);
|
|
1731
|
+
return content.split(pattern).map((chunk) => ({ chunk, highlighted: pattern.test(chunk) }));
|
|
1732
|
+
};
|
|
1733
|
+
function escapeRegExp(string) {
|
|
1734
|
+
return string.replace(/[/\-\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
const Highlight = React.forwardRef(
|
|
1738
|
+
({ children = (chunk) => chunk, content, query, ...props }, ref) => {
|
|
1739
|
+
const chunks = useHighlightedChunks(content || "", query);
|
|
1740
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { ref, ...props, children: chunks.map(({ chunk, highlighted }, index) => /* @__PURE__ */ jsxRuntime.jsx(React.Fragment, { children: highlighted ? children(
|
|
1741
|
+
/* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { asChild: true, ...mark(), children: /* @__PURE__ */ jsxRuntime.jsx("mark", { children: chunk }) })
|
|
1742
|
+
) : chunk }, index)) });
|
|
1743
|
+
}
|
|
1744
|
+
);
|
|
1745
|
+
Highlight.displayName = "@optiaxiom/react/Highlight";
|
|
1746
|
+
|
|
1747
|
+
var editor = IconMagnifyingGlass.recipeRuntime({base:'_18cego0',variants:{empty:{false:{},true:'_169j7ei'}}});
|
|
1748
|
+
var input$1 = IconMagnifyingGlass.recipeRuntime({base:'_9snqya'});
|
|
1749
|
+
|
|
1750
|
+
const InlineInput = React.forwardRef(
|
|
1751
|
+
({
|
|
1752
|
+
className,
|
|
1753
|
+
defaultValue = "",
|
|
1754
|
+
disabled,
|
|
1755
|
+
label,
|
|
1756
|
+
multiline,
|
|
1757
|
+
onValueChange,
|
|
1758
|
+
placeholder,
|
|
1759
|
+
value: valueProp,
|
|
1760
|
+
...props
|
|
1761
|
+
}, ref) => {
|
|
1762
|
+
const [value, setValue] = reactUseControllableState.useControllableState({
|
|
1763
|
+
defaultProp: defaultValue,
|
|
1764
|
+
onChange: onValueChange,
|
|
1765
|
+
prop: valueProp
|
|
1766
|
+
});
|
|
1767
|
+
const editorRef = React.useRef(null);
|
|
1768
|
+
React.useEffect(() => {
|
|
1769
|
+
if (!editorRef.current) {
|
|
1770
|
+
return;
|
|
1771
|
+
}
|
|
1772
|
+
const clippedValue = multiline || !value?.includes("\n") ? value : value?.slice(0, value.indexOf("\n"));
|
|
1773
|
+
if (getText(editorRef.current) !== clippedValue) {
|
|
1774
|
+
if (document.activeElement === editorRef.current) {
|
|
1775
|
+
const selection = window.getSelection();
|
|
1776
|
+
if (!selection) {
|
|
1777
|
+
return;
|
|
1778
|
+
}
|
|
1779
|
+
selection.getRangeAt(0).selectNodeContents(editorRef.current);
|
|
1780
|
+
document.execCommand("insertHTML", false, clippedValue);
|
|
1781
|
+
} else {
|
|
1782
|
+
editorRef.current.innerText = clippedValue ?? "null";
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
}, [multiline, value]);
|
|
1786
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { ref, ...input$1({}, className), ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1787
|
+
IconMagnifyingGlass.Box,
|
|
1788
|
+
{
|
|
1789
|
+
"aria-multiline": multiline,
|
|
1790
|
+
"aria-readonly": disabled,
|
|
1791
|
+
contentEditable: !disabled && "plaintext-only",
|
|
1792
|
+
"data-placeholder": placeholder ?? label,
|
|
1793
|
+
onInput: (event) => {
|
|
1794
|
+
setValue(getText(event.currentTarget));
|
|
1795
|
+
},
|
|
1796
|
+
onKeyDown: (event) => {
|
|
1797
|
+
if (!multiline && event.key === "Enter") {
|
|
1798
|
+
event.preventDefault();
|
|
1799
|
+
}
|
|
1800
|
+
},
|
|
1801
|
+
onPaste: (event) => {
|
|
1802
|
+
const value2 = event.clipboardData.getData("text");
|
|
1803
|
+
if (!multiline && value2.includes("\n")) {
|
|
1804
|
+
event.preventDefault();
|
|
1805
|
+
const clippedValue = value2.slice(0, value2.indexOf("\n"));
|
|
1806
|
+
document.execCommand("insertHTML", false, clippedValue);
|
|
1807
|
+
setValue(getText(event.currentTarget));
|
|
1808
|
+
}
|
|
1809
|
+
},
|
|
1810
|
+
ref: editorRef,
|
|
1811
|
+
role: "textbox",
|
|
1812
|
+
spellCheck: "true",
|
|
1813
|
+
...label && { "aria-label": label },
|
|
1814
|
+
...editor({ empty: !value?.length })
|
|
1815
|
+
}
|
|
1816
|
+
) });
|
|
1817
|
+
}
|
|
1818
|
+
);
|
|
1819
|
+
InlineInput.displayName = "@optiaxiom/react/InlineInput";
|
|
1820
|
+
function getText(element) {
|
|
1821
|
+
const text = element.innerText;
|
|
1822
|
+
if (text.endsWith("\n")) {
|
|
1823
|
+
return text.slice(0, -1);
|
|
1824
|
+
}
|
|
1825
|
+
return text;
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
const NavGroup = React.forwardRef(
|
|
1829
|
+
({ children, ...props }, ref) => {
|
|
1830
|
+
const groupId = reactId.useId();
|
|
1831
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.NavGroupContextProvider, { id: groupId, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1832
|
+
IconMagnifyingGlass.Disclosure,
|
|
1833
|
+
{
|
|
1834
|
+
alignItems: "stretch",
|
|
1835
|
+
"aria-labelledby": props["aria-label"] ? undefined : groupId,
|
|
1836
|
+
asChild: true,
|
|
1837
|
+
defaultOpen: true,
|
|
1838
|
+
display: "flex",
|
|
1839
|
+
flexDirection: "column",
|
|
1840
|
+
...props,
|
|
1841
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("li", { ref, children })
|
|
1842
|
+
}
|
|
1843
|
+
) });
|
|
1844
|
+
}
|
|
1845
|
+
);
|
|
1846
|
+
NavGroup.displayName = "@optiaxiom/react/NavGroup";
|
|
1847
|
+
|
|
1848
|
+
const NavGroupLabel = React.forwardRef(
|
|
1849
|
+
({ children, ...props }, ref) => {
|
|
1850
|
+
const { id } = IconMagnifyingGlass.useNavGroupContext("NavGroupLabel");
|
|
1851
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1852
|
+
IconMagnifyingGlass.DisclosureTrigger,
|
|
1853
|
+
{
|
|
1854
|
+
chevronPosition: "end",
|
|
1855
|
+
color: "fg.tertiary",
|
|
1856
|
+
fontSize: "sm",
|
|
1857
|
+
id,
|
|
1858
|
+
mb: "4",
|
|
1859
|
+
mt: "8",
|
|
1860
|
+
px: "12",
|
|
1861
|
+
py: "4",
|
|
1862
|
+
ref,
|
|
1863
|
+
w: "auto",
|
|
1864
|
+
...props,
|
|
1865
|
+
children
|
|
1866
|
+
}
|
|
1867
|
+
);
|
|
1868
|
+
}
|
|
1869
|
+
);
|
|
1870
|
+
NavGroupLabel.displayName = "@optiaxiom/react/NavGroupLabel";
|
|
1871
|
+
|
|
1872
|
+
const NavSeparator = React.forwardRef(
|
|
1873
|
+
(props, ref) => /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Separator, { flex: "none", mx: "12", my: "8", ref, ...props })
|
|
1874
|
+
);
|
|
1875
|
+
NavSeparator.displayName = "@optiaxiom/react/NavSeparator";
|
|
1876
|
+
|
|
1877
|
+
var pill = IconMagnifyingGlass.recipeRuntime({base:[{bg:'bg.secondary',border:'0',fontSize:'sm',rounded:'md'},'_28ewa1'],variants:{size:{md:{h:'xs'},lg:{h:'sm'}}}});
|
|
1878
|
+
|
|
1879
|
+
const Pill = React.forwardRef(
|
|
1880
|
+
({
|
|
1881
|
+
addonAfter,
|
|
1882
|
+
addonBefore,
|
|
1883
|
+
children,
|
|
1884
|
+
className,
|
|
1885
|
+
onRemove,
|
|
1886
|
+
size = "md",
|
|
1887
|
+
...props
|
|
1888
|
+
}, ref) => {
|
|
1889
|
+
const handleKeyDown = (e) => {
|
|
1890
|
+
if (e.key === "Backspace" && onRemove) {
|
|
1891
|
+
onRemove();
|
|
1892
|
+
}
|
|
1893
|
+
};
|
|
1894
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Tooltip, { auto: true, content: children, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1895
|
+
IconMagnifyingGlass.Button,
|
|
1896
|
+
{
|
|
1897
|
+
addonAfter,
|
|
1898
|
+
addonBefore,
|
|
1899
|
+
onKeyDown: handleKeyDown,
|
|
1900
|
+
ref,
|
|
1901
|
+
...pill({ size }, className),
|
|
1902
|
+
...props,
|
|
1903
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Text, { display: "block", fontSize: "inherit", truncate: true, children })
|
|
1904
|
+
}
|
|
1905
|
+
) });
|
|
1906
|
+
}
|
|
1907
|
+
);
|
|
1908
|
+
Pill.displayName = "@optiaxiom/react/Pill";
|
|
1909
|
+
|
|
1910
|
+
const [SelectContextProvider, useSelectContext] = reactContext.createContext("Select");
|
|
1911
|
+
|
|
1912
|
+
function Select({
|
|
1913
|
+
children,
|
|
1914
|
+
defaultOpen = false,
|
|
1915
|
+
defaultValue,
|
|
1916
|
+
disabled,
|
|
1917
|
+
items,
|
|
1918
|
+
itemToKey = (value2) => value2,
|
|
1919
|
+
itemToString = (value2) => value2 ? String(value2) : "",
|
|
1920
|
+
onOpenChange,
|
|
1921
|
+
onValueChange,
|
|
1922
|
+
open,
|
|
1923
|
+
value,
|
|
1924
|
+
...props
|
|
1925
|
+
}) {
|
|
1926
|
+
const [selectedItem, setSelectedItem] = reactUseControllableState.useControllableState({
|
|
1927
|
+
defaultProp: defaultValue,
|
|
1928
|
+
onChange: onValueChange,
|
|
1929
|
+
prop: value
|
|
1930
|
+
});
|
|
1931
|
+
const [isOpen, setIsOpen] = reactUseControllableState.useControllableState({
|
|
1932
|
+
defaultProp: defaultOpen,
|
|
1933
|
+
onChange: onOpenChange,
|
|
1934
|
+
prop: open
|
|
1935
|
+
});
|
|
1936
|
+
const [highlightedIndex, setHighlightedIndex, placed, setPlaced] = usePortalPatch(
|
|
1937
|
+
isOpen,
|
|
1938
|
+
selectedItem ? items.findIndex((item) => itemToKey(selectedItem) === itemToKey(item)) : -1
|
|
1939
|
+
);
|
|
1940
|
+
const downshift$1 = downshift.useSelect({
|
|
1941
|
+
...props,
|
|
1942
|
+
highlightedIndex,
|
|
1943
|
+
isOpen: placed,
|
|
1944
|
+
items,
|
|
1945
|
+
itemToKey,
|
|
1946
|
+
itemToString,
|
|
1947
|
+
onHighlightedIndexChange(changes) {
|
|
1948
|
+
setHighlightedIndex(changes.highlightedIndex);
|
|
1949
|
+
},
|
|
1950
|
+
onIsOpenChange({ isOpen: isOpen2 }) {
|
|
1951
|
+
setIsOpen(isOpen2);
|
|
1952
|
+
},
|
|
1953
|
+
onSelectedItemChange({ selectedItem: selectedItem2 }) {
|
|
1954
|
+
setSelectedItem(selectedItem2);
|
|
1955
|
+
},
|
|
1956
|
+
selectedItem: selectedItem ?? null
|
|
1957
|
+
});
|
|
1958
|
+
downshift$1.getMenuProps({}, { suppressRefError: true });
|
|
1959
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactPopper.Popper, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1960
|
+
SelectContextProvider,
|
|
1961
|
+
{
|
|
1962
|
+
disabled,
|
|
1963
|
+
downshift: downshift$1,
|
|
1964
|
+
highlightedItem: items[highlightedIndex],
|
|
1965
|
+
isOpen,
|
|
1966
|
+
items,
|
|
1967
|
+
itemToKey,
|
|
1968
|
+
itemToString,
|
|
1969
|
+
placed,
|
|
1970
|
+
selectedItem,
|
|
1971
|
+
setPlaced,
|
|
1972
|
+
children
|
|
1973
|
+
}
|
|
1974
|
+
) });
|
|
1975
|
+
}
|
|
1976
|
+
Select.displayName = "@optiaxiom/react/Select";
|
|
1977
|
+
|
|
1978
|
+
var content = IconMagnifyingGlass.recipeRuntime({base:['d4q71n']});
|
|
1979
|
+
|
|
1980
|
+
const SelectContent = React.forwardRef(
|
|
1981
|
+
({
|
|
1982
|
+
align = "start",
|
|
1983
|
+
children,
|
|
1984
|
+
className,
|
|
1985
|
+
loading,
|
|
1986
|
+
side = "bottom",
|
|
1987
|
+
...props
|
|
1988
|
+
}, ref) => {
|
|
1989
|
+
const { boxProps, restProps } = IconMagnifyingGlass.extractBoxProps(props);
|
|
1990
|
+
const { downshift, isOpen, placed, setPlaced } = useSelectContext("SelectContent");
|
|
1991
|
+
return isOpen && /* @__PURE__ */ jsxRuntime.jsx(reactPortal.Portal, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.ModalLayer, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1992
|
+
IconMagnifyingGlass.MenuListbox,
|
|
1993
|
+
{
|
|
1994
|
+
asChild: true,
|
|
1995
|
+
maxH: "sm",
|
|
1996
|
+
minW: loading ? "trigger" : undefined,
|
|
1997
|
+
provider: "popper",
|
|
1998
|
+
...content({}, className),
|
|
1999
|
+
...boxProps,
|
|
2000
|
+
...downshift.getMenuProps(
|
|
2001
|
+
{ ref, ...restProps },
|
|
2002
|
+
{ suppressRefError: !placed }
|
|
2003
|
+
),
|
|
2004
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2005
|
+
reactPopper.PopperContent,
|
|
2006
|
+
{
|
|
2007
|
+
align,
|
|
2008
|
+
onPlaced: () => setPlaced(true),
|
|
2009
|
+
side,
|
|
2010
|
+
sideOffset: 5,
|
|
2011
|
+
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { display: "flex", justifyContent: "center", p: "16", children: /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Spinner, {}) }) : children
|
|
2012
|
+
}
|
|
2013
|
+
)
|
|
2014
|
+
}
|
|
2015
|
+
) }) });
|
|
2016
|
+
}
|
|
2017
|
+
);
|
|
2018
|
+
SelectContent.displayName = "@optiaxiom/react/SelectContent";
|
|
2019
|
+
|
|
2020
|
+
const SelectGroup = React.forwardRef(
|
|
2021
|
+
(props, ref) => {
|
|
2022
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.ListboxGroup, { ref, ...props });
|
|
2023
|
+
}
|
|
2024
|
+
);
|
|
2025
|
+
SelectGroup.displayName = "@optiaxiom/react/SelectGroup";
|
|
2026
|
+
|
|
2027
|
+
const SelectItem = React.forwardRef(
|
|
2028
|
+
({ children, item, size, ...props }, ref) => {
|
|
2029
|
+
const { downshift, highlightedItem, selectedItem } = useSelectContext("SelectItem");
|
|
2030
|
+
const itemProps = downshift.getItemProps({ item, ...props });
|
|
2031
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2032
|
+
IconMagnifyingGlass.Box,
|
|
2033
|
+
{
|
|
2034
|
+
"data-disabled": itemProps["aria-disabled"] ? "" : undefined,
|
|
2035
|
+
"data-highlighted": highlightedItem === item ? "" : undefined,
|
|
2036
|
+
"data-selected": selectedItem === item ? "" : undefined,
|
|
2037
|
+
ref,
|
|
2038
|
+
size,
|
|
2039
|
+
...itemProps,
|
|
2040
|
+
children
|
|
2041
|
+
}
|
|
2042
|
+
);
|
|
2043
|
+
}
|
|
2044
|
+
);
|
|
2045
|
+
SelectItem.displayName = "@optiaxiom/react/SelectItem";
|
|
2046
|
+
|
|
2047
|
+
const SelectLabel = React.forwardRef(
|
|
2048
|
+
(props, ref) => {
|
|
2049
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.ListboxLabel, { ref, ...props });
|
|
2050
|
+
}
|
|
2051
|
+
);
|
|
2052
|
+
SelectLabel.displayName = "@optiaxiom/react/SelectLabel";
|
|
2053
|
+
|
|
2054
|
+
const SelectRadioItem = React.forwardRef(
|
|
2055
|
+
({ children, ...props }, ref) => {
|
|
2056
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SelectItem, { asChild: true, ref, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.ListboxRadioItem, { children }) });
|
|
2057
|
+
}
|
|
2058
|
+
);
|
|
2059
|
+
SelectRadioItem.displayName = "@optiaxiom/react/SelectRadioItem";
|
|
2060
|
+
|
|
2061
|
+
const SelectSeparator = React.forwardRef(
|
|
2062
|
+
(props, ref) => {
|
|
2063
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.ListboxSeparator, { ref, ...props });
|
|
2064
|
+
}
|
|
2065
|
+
);
|
|
2066
|
+
SelectSeparator.displayName = "@optiaxiom/react/SelectSeparator";
|
|
2067
|
+
|
|
2068
|
+
const SelectTrigger = React.forwardRef(
|
|
2069
|
+
({ asChild, children, onKeyDown, ...props }, ref) => {
|
|
2070
|
+
const { disabled, downshift, isOpen } = useSelectContext("SelectTrigger");
|
|
2071
|
+
const { labelId } = IconMagnifyingGlass.useFieldContext();
|
|
2072
|
+
const buttonRef = React.useRef(null);
|
|
2073
|
+
React.useEffect(() => {
|
|
2074
|
+
if (!labelId || !buttonRef.current) {
|
|
2075
|
+
return;
|
|
2076
|
+
}
|
|
2077
|
+
const button = buttonRef.current;
|
|
2078
|
+
const label = document.getElementById(labelId);
|
|
2079
|
+
if (!label) {
|
|
2080
|
+
return;
|
|
2081
|
+
}
|
|
2082
|
+
const onLabelClick = () => button.focus();
|
|
2083
|
+
label.addEventListener("click", onLabelClick);
|
|
2084
|
+
return () => label.removeEventListener("click", onLabelClick);
|
|
2085
|
+
}, [labelId]);
|
|
2086
|
+
const [focusOnOpen] = React.useState(isOpen);
|
|
2087
|
+
React.useEffect(
|
|
2088
|
+
function() {
|
|
2089
|
+
if (focusOnOpen && buttonRef.current) {
|
|
2090
|
+
buttonRef.current.focus();
|
|
2091
|
+
}
|
|
2092
|
+
},
|
|
2093
|
+
[focusOnOpen]
|
|
2094
|
+
);
|
|
2095
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2096
|
+
reactPopper.PopperAnchor,
|
|
2097
|
+
{
|
|
2098
|
+
asChild: true,
|
|
2099
|
+
...props,
|
|
2100
|
+
...downshift.getToggleButtonProps({
|
|
2101
|
+
disabled,
|
|
2102
|
+
onKeyDown: (event) => {
|
|
2103
|
+
onKeyDown?.(event);
|
|
2104
|
+
document.dispatchEvent(new Event("tooltip.open"));
|
|
2105
|
+
}
|
|
2106
|
+
}),
|
|
2107
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(reactSlot.Slot, { ref, children: asChild ? children : /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.AngleMenuButton, { "aria-labelledby": labelId, ref: buttonRef, children }) })
|
|
2108
|
+
}
|
|
2109
|
+
);
|
|
2110
|
+
}
|
|
2111
|
+
);
|
|
2112
|
+
SelectTrigger.displayName = "@optiaxiom/react/SelectTrigger";
|
|
2113
|
+
|
|
2114
|
+
const SelectValue = React.forwardRef(
|
|
2115
|
+
({ children, placeholder, ...props }, ref) => {
|
|
2116
|
+
const { itemToString, selectedItem } = useSelectContext("SelectValue");
|
|
2117
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { ...props, ref, children: children ?? (selectedItem ? itemToString(selectedItem) : placeholder) });
|
|
2118
|
+
}
|
|
2119
|
+
);
|
|
2120
|
+
SelectValue.displayName = "@optiaxiom/react/SelectValue";
|
|
2121
|
+
|
|
2122
|
+
const [SpotlightContextProvider, useSpotlightContext] = reactContext.createContext("Spotlight");
|
|
2123
|
+
|
|
2124
|
+
function Spotlight({
|
|
2125
|
+
children,
|
|
2126
|
+
defaultOpen = false,
|
|
2127
|
+
inputValue,
|
|
2128
|
+
isItemDisabled = () => false,
|
|
2129
|
+
items,
|
|
2130
|
+
itemToKey = (value) => value,
|
|
2131
|
+
itemToString = (value) => value ? String(value) : "",
|
|
2132
|
+
itemToSubItems,
|
|
2133
|
+
onInputValueChange,
|
|
2134
|
+
onItemSelect,
|
|
2135
|
+
onOpenChange,
|
|
2136
|
+
open: openProp
|
|
2137
|
+
}) {
|
|
2138
|
+
const [open, setOpen] = reactUseControllableState.useControllableState({
|
|
2139
|
+
defaultProp: defaultOpen,
|
|
2140
|
+
onChange: onOpenChange,
|
|
2141
|
+
prop: openProp
|
|
2142
|
+
});
|
|
2143
|
+
const onInputValueChangeStable = useEffectEvent(
|
|
2144
|
+
onInputValueChange ?? (() => {
|
|
2145
|
+
})
|
|
2146
|
+
);
|
|
2147
|
+
React.useEffect(() => {
|
|
2148
|
+
if (!open) {
|
|
2149
|
+
onInputValueChangeStable("");
|
|
2150
|
+
}
|
|
2151
|
+
}, [open, onInputValueChangeStable]);
|
|
2152
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Dialog, { onOpenChange: setOpen, open, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2153
|
+
SpotlightContextProvider,
|
|
2154
|
+
{
|
|
2155
|
+
inputValue,
|
|
2156
|
+
isItemDisabled,
|
|
2157
|
+
items,
|
|
2158
|
+
itemToKey,
|
|
2159
|
+
itemToString,
|
|
2160
|
+
itemToSubItems,
|
|
2161
|
+
onInputValueChange,
|
|
2162
|
+
onItemSelect,
|
|
2163
|
+
open,
|
|
2164
|
+
setOpen,
|
|
2165
|
+
children
|
|
2166
|
+
}
|
|
2167
|
+
) });
|
|
2168
|
+
}
|
|
2169
|
+
Spotlight.displayName = "@optiaxiom/react/Spotlight";
|
|
2170
|
+
|
|
2171
|
+
const SpotlightContent = React.forwardRef(({ "aria-label": ariaLabel, children, size: _size, ...props }, ref) => {
|
|
2172
|
+
const {
|
|
2173
|
+
inputValue,
|
|
2174
|
+
isItemDisabled,
|
|
2175
|
+
items,
|
|
2176
|
+
itemToKey,
|
|
2177
|
+
itemToString,
|
|
2178
|
+
itemToSubItems,
|
|
2179
|
+
onInputValueChange,
|
|
2180
|
+
onItemSelect
|
|
2181
|
+
} = useSpotlightContext("SpotlightContent");
|
|
2182
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2183
|
+
IconMagnifyingGlass.DialogContent,
|
|
2184
|
+
{
|
|
2185
|
+
gap: "0",
|
|
2186
|
+
overflow: "hidden",
|
|
2187
|
+
pb: "24",
|
|
2188
|
+
ref,
|
|
2189
|
+
transitionType: "pop",
|
|
2190
|
+
...props,
|
|
2191
|
+
children: [
|
|
2192
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactVisuallyHidden.VisuallyHidden, { children: /* @__PURE__ */ jsxRuntime.jsx(RadixDialog__namespace.Title, { children: ariaLabel ?? "Quick search" }) }),
|
|
2193
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2194
|
+
Command,
|
|
2195
|
+
{
|
|
2196
|
+
inputValue,
|
|
2197
|
+
isItemDisabled,
|
|
2198
|
+
items,
|
|
2199
|
+
itemToKey,
|
|
2200
|
+
itemToString,
|
|
2201
|
+
itemToSubItems,
|
|
2202
|
+
onInputValueChange,
|
|
2203
|
+
onItemSelect,
|
|
2204
|
+
open: true,
|
|
2205
|
+
selectedItem: null,
|
|
2206
|
+
stateReducer: (state, actionAndChanges) => {
|
|
2207
|
+
const { changes, type } = actionAndChanges;
|
|
2208
|
+
switch (type) {
|
|
2209
|
+
case downshift.useCombobox.stateChangeTypes.InputKeyDownEnter:
|
|
2210
|
+
case downshift.useCombobox.stateChangeTypes.ItemClick:
|
|
2211
|
+
return {
|
|
2212
|
+
...changes,
|
|
2213
|
+
/**
|
|
2214
|
+
* Keep the selected option highlighted rather than resetting to -1
|
|
2215
|
+
*/
|
|
2216
|
+
highlightedIndex: state.highlightedIndex
|
|
2217
|
+
};
|
|
2218
|
+
default:
|
|
2219
|
+
return changes;
|
|
2220
|
+
}
|
|
2221
|
+
},
|
|
2222
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(CommandListbox, { children })
|
|
2223
|
+
}
|
|
2224
|
+
)
|
|
2225
|
+
]
|
|
2226
|
+
}
|
|
2227
|
+
);
|
|
2228
|
+
});
|
|
2229
|
+
SpotlightContent.displayName = "@optiaxiom/react/SpotlightContent";
|
|
2230
|
+
|
|
2231
|
+
const SpotlightEmpty = React.forwardRef(
|
|
2232
|
+
(props, ref) => {
|
|
2233
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.ListboxEmpty, { fontSize: "lg", gap: "12", p: "32", ref, ...props });
|
|
2234
|
+
}
|
|
2235
|
+
);
|
|
2236
|
+
SpotlightEmpty.displayName = "@optiaxiom/react/SpotlightEmpty";
|
|
2237
|
+
|
|
2238
|
+
var input = IconMagnifyingGlass.recipeRuntime({base:[{border:'0',borderB:'1',borderColor:'border.secondary',rounded:'none'},'_1u4cs2l']});
|
|
2239
|
+
|
|
2240
|
+
const SpotlightInput = React.forwardRef(
|
|
2241
|
+
({ addonAfter, className, ...props }, ref) => {
|
|
2242
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2243
|
+
CommandInput,
|
|
2244
|
+
{
|
|
2245
|
+
addonAfter: /* @__PURE__ */ jsxRuntime.jsxs(IconMagnifyingGlass.Flex, { flexDirection: "row", children: [
|
|
2246
|
+
addonAfter,
|
|
2247
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2248
|
+
IconMagnifyingGlass.DialogClose,
|
|
2249
|
+
{
|
|
2250
|
+
appearance: "default",
|
|
2251
|
+
fontSize: "xs",
|
|
2252
|
+
fontWeight: "500",
|
|
2253
|
+
h: "xs",
|
|
2254
|
+
size: "sm",
|
|
2255
|
+
children: "ESC"
|
|
2256
|
+
}
|
|
2257
|
+
)
|
|
2258
|
+
] }),
|
|
2259
|
+
addonBefore: /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.IconMagnifyingGlass, {}),
|
|
2260
|
+
ref,
|
|
2261
|
+
size: "xl",
|
|
2262
|
+
...input({}, className),
|
|
2263
|
+
...props
|
|
2264
|
+
}
|
|
2265
|
+
);
|
|
2266
|
+
}
|
|
2267
|
+
);
|
|
2268
|
+
SpotlightInput.displayName = "@optiaxiom/react/SpotlightInput";
|
|
2269
|
+
|
|
2270
|
+
const SpotlightItem = React.forwardRef(
|
|
2271
|
+
(props, ref) => /* @__PURE__ */ jsxRuntime.jsx(CommandItem, { ref, ...props })
|
|
2272
|
+
);
|
|
2273
|
+
SpotlightItem.displayName = "@optiaxiom/react/SpotlightItem";
|
|
2274
|
+
|
|
2275
|
+
const SpotlightLabel = React.forwardRef(
|
|
2276
|
+
({ children, ...props }, ref) => {
|
|
2277
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2278
|
+
IconMagnifyingGlass.Box,
|
|
2279
|
+
{
|
|
2280
|
+
color: "fg.default",
|
|
2281
|
+
fontSize: "lg",
|
|
2282
|
+
fontWeight: "600",
|
|
2283
|
+
pb: "12",
|
|
2284
|
+
pt: "16",
|
|
2285
|
+
px: "24",
|
|
2286
|
+
ref,
|
|
2287
|
+
...props,
|
|
2288
|
+
children
|
|
2289
|
+
}
|
|
2290
|
+
);
|
|
2291
|
+
}
|
|
2292
|
+
);
|
|
2293
|
+
SpotlightLabel.displayName = "@optiaxiom/react/SpotlightLabel";
|
|
2294
|
+
|
|
2295
|
+
var item$1 = IconMagnifyingGlass.recipeRuntime({base:[{fontWeight:'500',mx:'24',px:'16',py:'12'},'_1blvunx']});
|
|
2296
|
+
|
|
2297
|
+
const SpotlightRadioItem = React.forwardRef(({ addonAfter, children, className, description, ...props }, ref) => {
|
|
2298
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SpotlightItem, { asChild: true, ref, ...item$1({}, className), ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2299
|
+
IconMagnifyingGlass.ListboxRadioItem,
|
|
2300
|
+
{
|
|
2301
|
+
addonAfter: addonAfter ?? /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.IconAngleRight, {}),
|
|
2302
|
+
description: description && /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { fontSize: "md", mt: "2", children: description }),
|
|
2303
|
+
children
|
|
2304
|
+
}
|
|
2305
|
+
) });
|
|
2306
|
+
});
|
|
2307
|
+
SpotlightRadioItem.displayName = "@optiaxiom/react/SpotlightRadioItem";
|
|
2308
|
+
|
|
2309
|
+
const SpotlightScrollArea = React.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.ListboxScrollArea, { gap: "8", ref, ...props }));
|
|
2310
|
+
SpotlightScrollArea.displayName = "@optiaxiom/react/SpotlightScrollArea";
|
|
2311
|
+
|
|
2312
|
+
const [CommandSubContextProvider, useCommandSubContext] = reactContext.createContext("CommandSub");
|
|
2313
|
+
|
|
2314
|
+
const CommandSub = React.forwardRef(
|
|
2315
|
+
({ children, item, ...props }, ref) => {
|
|
2316
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CommandSubContextProvider, { item, children: /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { ref, role: "group", ...props, children }) });
|
|
2317
|
+
}
|
|
2318
|
+
);
|
|
2319
|
+
CommandSub.displayName = "@optiaxiom/react/CommandSub";
|
|
2320
|
+
|
|
2321
|
+
const SpotlightSub = React.forwardRef(
|
|
2322
|
+
({ children, ...props }, ref) => {
|
|
2323
|
+
return /* @__PURE__ */ jsxRuntime.jsx(CommandSub, { asChild: true, ref, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Flex, { flexDirection: "row", gap: "8", pt: "12", px: "24", children }) });
|
|
2324
|
+
}
|
|
2325
|
+
);
|
|
2326
|
+
SpotlightSub.displayName = "@optiaxiom/react/SpotlightSub";
|
|
2327
|
+
|
|
2328
|
+
const CommandSubItem = React.forwardRef(
|
|
2329
|
+
({ children, item, onClick, onMouseDown, onMouseMove, selected, ...props }, outerRef) => {
|
|
2330
|
+
const {
|
|
2331
|
+
downshift,
|
|
2332
|
+
highlightedItem,
|
|
2333
|
+
highlightedSubIndex,
|
|
2334
|
+
isItemDisabled,
|
|
2335
|
+
items,
|
|
2336
|
+
itemToSubItems,
|
|
2337
|
+
setHighlightedIndex,
|
|
2338
|
+
setHighlightedSubIndex,
|
|
2339
|
+
value
|
|
2340
|
+
} = useCommandContext("CommandSubItem");
|
|
2341
|
+
const { item: parentItem } = useCommandSubContext("CommandSubItem");
|
|
2342
|
+
const subItems = itemToSubItems?.(parentItem) ?? [];
|
|
2343
|
+
const highlightedSubItem = highlightedItem === parentItem && highlightedSubIndex !== -1 ? subItems[highlightedSubIndex] : null;
|
|
2344
|
+
const subIndex = subItems.indexOf(item);
|
|
2345
|
+
const disabled = isItemDisabled(item, subIndex);
|
|
2346
|
+
const highlighted = highlightedSubItem === item;
|
|
2347
|
+
const isSelected = selected ?? value?.has(item);
|
|
2348
|
+
const innerRef = React.useRef(null);
|
|
2349
|
+
const ref = reactComposeRefs.useComposedRefs(innerRef, outerRef);
|
|
2350
|
+
React.useEffect(() => {
|
|
2351
|
+
if (innerRef.current && isSelected) {
|
|
2352
|
+
innerRef.current.scrollIntoView({ block: "nearest" });
|
|
2353
|
+
}
|
|
2354
|
+
}, [isSelected]);
|
|
2355
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2356
|
+
CommandFocusableItem,
|
|
2357
|
+
{
|
|
2358
|
+
"aria-disabled": disabled,
|
|
2359
|
+
"aria-selected": isSelected,
|
|
2360
|
+
"data-disabled": disabled ? "" : undefined,
|
|
2361
|
+
"data-highlighted": highlighted ? "" : undefined,
|
|
2362
|
+
onClick: (event) => {
|
|
2363
|
+
onClick?.(event);
|
|
2364
|
+
if (event.defaultPrevented) {
|
|
2365
|
+
return;
|
|
2366
|
+
}
|
|
2367
|
+
event.preventDefault();
|
|
2368
|
+
downshift.selectItem(item);
|
|
2369
|
+
},
|
|
2370
|
+
onMouseDown: (event) => {
|
|
2371
|
+
onMouseDown?.(event);
|
|
2372
|
+
event.preventDefault();
|
|
2373
|
+
},
|
|
2374
|
+
onMouseMove: (event) => {
|
|
2375
|
+
onMouseMove?.(event);
|
|
2376
|
+
if (event.defaultPrevented) {
|
|
2377
|
+
return;
|
|
2378
|
+
}
|
|
2379
|
+
setHighlightedIndex(items.indexOf(parentItem), "pointer");
|
|
2380
|
+
setHighlightedSubIndex(subIndex, "pointer");
|
|
2381
|
+
},
|
|
2382
|
+
ref,
|
|
2383
|
+
role: "option",
|
|
2384
|
+
...props,
|
|
2385
|
+
children
|
|
2386
|
+
}
|
|
2387
|
+
);
|
|
2388
|
+
}
|
|
2389
|
+
);
|
|
2390
|
+
CommandSubItem.displayName = "@optiaxiom/react/CommandSubItem";
|
|
2391
|
+
|
|
2392
|
+
var item = IconMagnifyingGlass.recipeRuntime({base:[{cursor:'pointer'}],variants:{active:{false:'vevesm',true:'_1e4l0ok'}}});
|
|
2393
|
+
|
|
2394
|
+
const SpotlightSubItem = React.forwardRef(({ children, className, selected, ...props }, ref) => {
|
|
2395
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2396
|
+
CommandSubItem,
|
|
2397
|
+
{
|
|
2398
|
+
asChild: true,
|
|
2399
|
+
ref,
|
|
2400
|
+
selected,
|
|
2401
|
+
...item({ active: selected || false }, className),
|
|
2402
|
+
...props,
|
|
2403
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2404
|
+
IconMagnifyingGlass.Badge,
|
|
2405
|
+
{
|
|
2406
|
+
intent: selected ? "information" : "neutral",
|
|
2407
|
+
variant: selected ? "solid" : "light",
|
|
2408
|
+
children
|
|
2409
|
+
}
|
|
2410
|
+
)
|
|
2411
|
+
}
|
|
2412
|
+
);
|
|
2413
|
+
});
|
|
2414
|
+
SpotlightSubItem.displayName = "@optiaxiom/react/SpotlightSubItem";
|
|
2415
|
+
|
|
2416
|
+
const DEFAULT_HOTKEY = "mod+K";
|
|
2417
|
+
const SpotlightTrigger = React.forwardRef(({ addonAfter, children, hotkey = DEFAULT_HOTKEY, ...props }, ref) => {
|
|
2418
|
+
const { open, setOpen } = useSpotlightContext("SpotlightTrigger");
|
|
2419
|
+
useHotkeys([[hotkey, () => setOpen(!open)]]);
|
|
2420
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2421
|
+
IconMagnifyingGlass.DialogTrigger,
|
|
2422
|
+
{
|
|
2423
|
+
addonAfter,
|
|
2424
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.IconMagnifyingGlass, {}),
|
|
2425
|
+
ref,
|
|
2426
|
+
...props,
|
|
2427
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Box, { color: "fg.tertiary", children })
|
|
2428
|
+
}
|
|
2429
|
+
);
|
|
2430
|
+
});
|
|
2431
|
+
SpotlightTrigger.displayName = "@optiaxiom/react/SpotlightTrigger";
|
|
2432
|
+
|
|
2433
|
+
var nav = IconMagnifyingGlass.recipeRuntime({base:[{bg:'bg.default',flex:'1',gap:'0',overflow:'hidden',py:'16'},'_1sjznob']});
|
|
2434
|
+
|
|
2435
|
+
const SubNav = React.forwardRef(
|
|
2436
|
+
({ children, ...props }, ref) => {
|
|
2437
|
+
return /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Flex, { borderR: "1", h: "full", ref, w: "fit", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(IconMagnifyingGlass.Flex, { asChild: true, ...nav(), children: /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "Secondary", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2438
|
+
IconMagnifyingGlass.SidebarContextProvider,
|
|
2439
|
+
{
|
|
2440
|
+
expanded: true,
|
|
2441
|
+
navId: "",
|
|
2442
|
+
onExpandedChange: () => {
|
|
2443
|
+
},
|
|
2444
|
+
spacing: "12",
|
|
2445
|
+
children
|
|
2446
|
+
}
|
|
2447
|
+
) }) }) });
|
|
2448
|
+
}
|
|
2449
|
+
);
|
|
2450
|
+
SubNav.displayName = "@optiaxiom/react/SubNav";
|
|
2451
|
+
|
|
2452
|
+
exports.Autocomplete = Autocomplete;
|
|
2453
|
+
exports.AutocompleteContent = AutocompleteContent;
|
|
2454
|
+
exports.AutocompleteEmpty = AutocompleteEmpty;
|
|
2455
|
+
exports.AutocompleteItem = AutocompleteItem;
|
|
2456
|
+
exports.AutocompleteRadioItem = AutocompleteRadioItem;
|
|
2457
|
+
exports.AutocompleteTrigger = AutocompleteTrigger;
|
|
2458
|
+
exports.AutocompleteVirtualized = AutocompleteVirtualized;
|
|
2459
|
+
exports.Breadcrumb = Breadcrumb;
|
|
2460
|
+
exports.BreadcrumbEllipsis = BreadcrumbEllipsis;
|
|
2461
|
+
exports.BreadcrumbItem = BreadcrumbItem;
|
|
2462
|
+
exports.BreadcrumbLink = BreadcrumbLink;
|
|
2463
|
+
exports.BreadcrumbPage = BreadcrumbPage;
|
|
2464
|
+
exports.Calendar = Calendar;
|
|
2465
|
+
exports.Card = Card;
|
|
2466
|
+
exports.CardCheckbox = CardCheckbox;
|
|
2467
|
+
exports.CardContent = CardContent;
|
|
2468
|
+
exports.CardDescription = CardDescription;
|
|
2469
|
+
exports.CardImage = CardImage;
|
|
2470
|
+
exports.CardOverflow = CardOverflow;
|
|
2471
|
+
exports.CardTitle = CardTitle;
|
|
2472
|
+
exports.Combobox = Combobox;
|
|
2473
|
+
exports.ComboboxCheckboxItem = ComboboxCheckboxItem;
|
|
2474
|
+
exports.ComboboxContent = ComboboxContent;
|
|
2475
|
+
exports.ComboboxEmpty = ComboboxEmpty;
|
|
2476
|
+
exports.ComboboxFooter = ComboboxFooter;
|
|
2477
|
+
exports.ComboboxGroup = ComboboxGroup;
|
|
2478
|
+
exports.ComboboxInput = ComboboxInput;
|
|
2479
|
+
exports.ComboboxItem = ComboboxItem;
|
|
2480
|
+
exports.ComboboxLabel = ComboboxLabel;
|
|
2481
|
+
exports.ComboboxRadioItem = ComboboxRadioItem;
|
|
2482
|
+
exports.ComboboxScrollArea = ComboboxScrollArea;
|
|
2483
|
+
exports.ComboboxSeparator = ComboboxSeparator;
|
|
2484
|
+
exports.ComboboxTrigger = ComboboxTrigger;
|
|
2485
|
+
exports.ComboboxValue = ComboboxValue;
|
|
2486
|
+
exports.Command = Command;
|
|
2487
|
+
exports.CommandInput = CommandInput;
|
|
2488
|
+
exports.CommandItem = CommandItem;
|
|
2489
|
+
exports.CommandListbox = CommandListbox;
|
|
2490
|
+
exports.DataTable = DataTable;
|
|
2491
|
+
exports.DataTableHeaderCell = DataTableHeaderCell;
|
|
2492
|
+
exports.DateInput = DateInput;
|
|
2493
|
+
exports.Highlight = Highlight;
|
|
2494
|
+
exports.InlineInput = InlineInput;
|
|
2495
|
+
exports.NavGroup = NavGroup;
|
|
2496
|
+
exports.NavGroupLabel = NavGroupLabel;
|
|
2497
|
+
exports.NavSeparator = NavSeparator;
|
|
2498
|
+
exports.Pill = Pill;
|
|
2499
|
+
exports.Select = Select;
|
|
2500
|
+
exports.SelectContent = SelectContent;
|
|
2501
|
+
exports.SelectGroup = SelectGroup;
|
|
2502
|
+
exports.SelectItem = SelectItem;
|
|
2503
|
+
exports.SelectLabel = SelectLabel;
|
|
2504
|
+
exports.SelectRadioItem = SelectRadioItem;
|
|
2505
|
+
exports.SelectSeparator = SelectSeparator;
|
|
2506
|
+
exports.SelectTrigger = SelectTrigger;
|
|
2507
|
+
exports.SelectValue = SelectValue;
|
|
2508
|
+
exports.Spotlight = Spotlight;
|
|
2509
|
+
exports.SpotlightContent = SpotlightContent;
|
|
2510
|
+
exports.SpotlightEmpty = SpotlightEmpty;
|
|
2511
|
+
exports.SpotlightInput = SpotlightInput;
|
|
2512
|
+
exports.SpotlightItem = SpotlightItem;
|
|
2513
|
+
exports.SpotlightLabel = SpotlightLabel;
|
|
2514
|
+
exports.SpotlightRadioItem = SpotlightRadioItem;
|
|
2515
|
+
exports.SpotlightScrollArea = SpotlightScrollArea;
|
|
2516
|
+
exports.SpotlightSub = SpotlightSub;
|
|
2517
|
+
exports.SpotlightSubItem = SpotlightSubItem;
|
|
2518
|
+
exports.SpotlightTrigger = SpotlightTrigger;
|
|
2519
|
+
exports.SubNav = SubNav;
|
|
2520
|
+
exports.Table = Table;
|
|
2521
|
+
exports.TableBody = TableBody;
|
|
2522
|
+
exports.TableCell = TableCell;
|
|
2523
|
+
exports.TableHeader = TableHeader;
|
|
2524
|
+
exports.TableHeaderCell = TableHeaderCell;
|
|
2525
|
+
exports.TableRow = TableRow;
|