@optiaxiom/react 0.5.4 → 0.6.0
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/{PopoverContent-C6I-rB7-.d.ts → PopoverContent-_0gUSeax.d.ts} +0 -1
- package/dist/assets/src/alert-dialog-content/{AlertDialogContent.css.ts.vanilla-C0kks2r5.css → AlertDialogContent.css.ts.vanilla-Dv1yxjr8.css} +7 -7
- package/dist/assets/src/alert-dialog-footer/AlertDialogFooter.css.ts.vanilla-zHuJYCjT.css +6 -0
- package/dist/assets/src/autocomplete-content/AutocompleteContent.css.ts.vanilla-DWsyG2LP.css +10 -0
- package/dist/assets/src/avatar/Avatar.css.ts.vanilla-D2kH-64w.css +28 -0
- package/dist/assets/src/backdrop/{Backdrop.css.ts.vanilla-DDmh_j9o.css → Backdrop.css.ts.vanilla-gmff1L-P.css} +3 -3
- package/dist/assets/src/badge/Badge.css.ts.vanilla-3hLwWO1L.css +46 -0
- package/dist/assets/src/box/{Box.css.ts.vanilla-DtsMeZ8W.css → Box.css.ts.vanilla-DR0P-LL5.css} +23 -23
- package/dist/assets/src/button-base/ButtonBase.css.ts.vanilla-DrMH1fkC.css +142 -0
- package/dist/assets/src/button-loadable/ButtonLoadable.css.ts.vanilla-CLCW6X94.css +9 -0
- package/dist/assets/src/checkbox/Checkbox.css.ts.vanilla-BAr9yxjN.css +18 -0
- package/dist/assets/src/code/Code.css.ts.vanilla-DXXEKMdP.css +7 -0
- package/dist/assets/src/command-focusable-item/CommandFocusableItem.css.ts.vanilla-CSZpzhhg.css +7 -0
- package/dist/assets/src/data-table/DataTable.css.ts.vanilla-DS6U2gJy.css +24 -0
- package/dist/assets/src/data-table-header/DataTableHeader.css.ts.vanilla-Dfaxcy6y.css +12 -0
- package/dist/assets/src/dialog-actions/DialogActions.css.ts.vanilla-BVanfu8y.css +6 -0
- package/dist/assets/src/dialog-content/{DialogContent.css.ts.vanilla-ByR8ohpq.css → DialogContent.css.ts.vanilla-CAXaqfYm.css} +9 -14
- package/dist/assets/src/dialog-description/DialogDescription.css.ts.vanilla-rUcR0rJA.css +6 -0
- package/dist/assets/src/dialog-title/DialogTitle.css.ts.vanilla-DlSdDz1n.css +6 -0
- package/dist/assets/src/disclosure-content/DisclosureContent.css.ts.vanilla-CxwwenM9.css +25 -0
- package/dist/assets/src/disclosure-trigger/{DisclosureTrigger.css.ts.vanilla-iRiBgS10.css → DisclosureTrigger.css.ts.vanilla-DTVLJj-K.css} +7 -7
- package/dist/assets/src/drawer-actions/DrawerActions.css.ts.vanilla-DTEWNuVi.css +6 -0
- package/dist/assets/src/drawer-content/DrawerContent.css.ts.vanilla-DjDWBK6Y.css +21 -0
- package/dist/assets/src/drawer-description/DrawerDescription.css.ts.vanilla-Dv37zxmb.css +6 -0
- package/dist/assets/src/drawer-title/DrawerTitle.css.ts.vanilla-Dz8w4Pgo.css +6 -0
- package/dist/assets/src/highlight/Highlight.css.ts.vanilla-jRiu1MDf.css +7 -0
- package/dist/assets/src/hover-card-content/{HoverCardContent.css.ts.vanilla-wabD05Jd.css → HoverCardContent.css.ts.vanilla-Dz-mB12y.css} +3 -3
- package/dist/assets/src/indicator/Indicator.css.ts.vanilla-AYchKNE5.css +37 -0
- package/dist/assets/src/inline-input/InlineInput.css.ts.vanilla-DtLS3OHl.css +20 -0
- package/dist/assets/src/input-control/{InputControl.css.ts.vanilla-DZ_MpokI.css → InputControl.css.ts.vanilla-Cfus85Nv.css} +8 -8
- package/dist/assets/src/input-root/InputRoot.css.ts.vanilla-Djh5ghmY.css +68 -0
- package/dist/assets/src/kbd/Kbd.css.ts.vanilla-CY5AH6Ql.css +9 -0
- package/dist/assets/src/layers/layers.css.ts.vanilla-BYJE1gjQ.css +1 -0
- package/dist/assets/src/link/{Link.css.ts.vanilla-CB4UgyvG.css → Link.css.ts.vanilla-CLYvmhqR.css} +12 -12
- package/dist/assets/src/listbox-item/ListboxItem.css.ts.vanilla-BNLhxeLq.css +41 -0
- package/dist/assets/src/menu-listbox/MenuListbox.css.ts.vanilla-BjXPArek.css +21 -0
- package/dist/assets/src/pagination/{Pagination.css.ts.vanilla-CkMDSTPk.css → Pagination.css.ts.vanilla-D9XMVRUc.css} +5 -5
- package/dist/assets/src/pill/{Pill.css.ts.vanilla-CvQpiDVH.css → Pill.css.ts.vanilla-Bna2beye.css} +4 -4
- package/dist/assets/src/radio/Radio.css.ts.vanilla-BvyHKapA.css +13 -0
- package/dist/assets/src/search-input/SearchInput.css.ts.vanilla-DdhfcH19.css +6 -0
- package/dist/assets/src/select-content/SelectContent.css.ts.vanilla-BcS74a2e.css +7 -0
- package/dist/assets/src/separator/{Separator.css.ts.vanilla-lHtLWVc5.css → Separator.css.ts.vanilla-tbkhF289.css} +10 -10
- package/dist/assets/src/sidenav-item/SidenavItem.css.ts.vanilla-BErl3UKt.css +6 -0
- package/dist/assets/src/skeleton/Skeleton.css.ts.vanilla-4pjmbsRZ.css +6 -0
- package/dist/assets/src/spotlight-input/SpotlightInput.css.ts.vanilla-Cy87XbNc.css +6 -0
- package/dist/assets/src/spotlight-radio-item/SpotlightRadioItem.css.ts.vanilla-AuaNf5sg.css +12 -0
- package/dist/assets/src/spotlight-sub-item/SpotlightSubItem.css.ts.vanilla-C2ir8b-K.css +9 -0
- package/dist/assets/src/sprinkles/{properties.css.ts.vanilla-DAQ050h-.css → properties.css.ts.vanilla-DhdmMTJL.css} +2078 -2078
- package/dist/assets/src/switch/Switch.css.ts.vanilla-CnINYU6K.css +26 -0
- package/dist/assets/src/table/{Table.css.ts.vanilla-C38t9ezn.css → Table.css.ts.vanilla-Ct6Gg3EC.css} +4 -4
- package/dist/assets/src/table-body/TableBody.css.ts.vanilla-C7cHLLlD.css +6 -0
- package/dist/assets/src/table-cell/{TableCell.css.ts.vanilla-Ds8My2qz.css → TableCell.css.ts.vanilla-8r1icms_.css} +4 -4
- package/dist/assets/src/table-header-cell/TableHeaderCell.css.ts.vanilla-DqR8SwEg.css +6 -0
- package/dist/assets/src/table-row/TableRow.css.ts.vanilla-QLSpQ01c.css +4 -0
- package/dist/assets/src/tabs/Tabs.css.ts.vanilla-24hekbcl.css +9 -0
- package/dist/assets/src/tabs-list/TabsList.css.ts.vanilla-BgmzjUgL.css +23 -0
- package/dist/assets/src/tabs-trigger/{TabsTrigger.css.ts.vanilla-CadbVfOj.css → TabsTrigger.css.ts.vanilla-B9FyDvFb.css} +10 -10
- package/dist/assets/src/text/{Text.css.ts.vanilla-YxqQ6moi.css → Text.css.ts.vanilla-D3GsnhgC.css} +8 -8
- package/dist/assets/src/textarea-autosize/TextareaAutosize.css.ts.vanilla-ChrWjuaJ.css +34 -0
- package/dist/assets/src/toast/Toast.css.ts.vanilla-DJEzRgcS.css +92 -0
- package/dist/assets/src/toast-provider/{ToastProvider.css.ts.vanilla-DGdGozrd.css → ToastProvider.css.ts.vanilla-CF8jHrGs.css} +9 -9
- package/dist/assets/src/toggle-input/ToggleInput.css.ts.vanilla-BZS5FCfo.css +23 -0
- package/dist/assets/src/toggle-input-control/ToggleInputControl.css.ts.vanilla-D2l1qrzz.css +10 -0
- package/dist/assets/src/transition/{Transition.css.ts.vanilla-BvXnEs0e.css → Transition.css.ts.vanilla-CmHzchQl.css} +16 -16
- package/dist/index.d.ts +127 -37
- package/dist/index.js +8 -0
- package/dist/node_modules/.pnpm/{framer-motion@11.11.17_react-dom@18.3.1_react@18.3.1__react@18.3.1 → framer-motion@11.11.17_patch_hash_fcf7jjqh4eojsxb6ugcpywnnuy_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -4
- package/dist/packages/react/package.json.js +1 -1
- package/dist/packages/react/src/alert/Alert-css.js +1 -1
- package/dist/packages/react/src/alert-dialog-content/AlertDialogContent-css.js +4 -4
- package/dist/packages/react/src/alert-dialog-description/AlertDialogDescription-css.js +1 -1
- package/dist/packages/react/src/alert-dialog-footer/AlertDialogFooter-css.js +3 -3
- package/dist/packages/react/src/animate-presence/AnimatePresence.js +1 -1
- package/dist/packages/react/src/autocomplete-content/AutocompleteContent-css.js +3 -3
- package/dist/packages/react/src/autocomplete-item/AutocompletItem.js +1 -1
- package/dist/packages/react/src/avatar/Avatar-css.js +4 -4
- package/dist/packages/react/src/avatar-group/AvatarGroup-css.js +3 -3
- package/dist/packages/react/src/backdrop/Backdrop-css.js +3 -3
- package/dist/packages/react/src/badge/Badge-css.js +3 -3
- package/dist/packages/react/src/banner/Banner-css.js +1 -1
- package/dist/packages/react/src/box/Box-css.js +3 -3
- package/dist/packages/react/src/button-base/ButtonBase-css.js +5 -5
- package/dist/packages/react/src/button-group/ButtonGroup-css.js +3 -3
- package/dist/packages/react/src/button-loadable/ButtonLoadable-css.js +5 -5
- package/dist/packages/react/src/checkbox/Checkbox-css.js +8 -8
- package/dist/packages/react/src/code/Code-css.js +3 -3
- package/dist/packages/react/src/combobox/Combobox.js +4 -4
- package/dist/packages/react/src/combobox-dialog-content/ComboboxDialogContent.js +15 -0
- package/dist/packages/react/src/combobox-input/ComboboxInput.js +1 -0
- package/dist/packages/react/src/combobox-popover-content/ComboboxPopoverContent.js +10 -0
- package/dist/packages/react/src/combobox-value/ComboboxValue.js +3 -18
- package/dist/packages/react/src/command-focusable-item/CommandFocusableItem-css.js +3 -3
- package/dist/packages/react/src/command-item/CommandItem.js +2 -2
- package/dist/packages/react/src/command-sub-item/CommandSubItem.js +5 -5
- package/dist/packages/react/src/data-table/DataTable-css.js +7 -7
- package/dist/packages/react/src/data-table-header/DataTableHeader-css.js +4 -4
- package/dist/packages/react/src/dialog-actions/DialogActions-css.js +7 -0
- package/dist/packages/react/src/dialog-actions/DialogActions.js +19 -0
- package/dist/packages/react/src/dialog-body/DialogBody.js +14 -3
- package/dist/packages/react/src/dialog-content/DialogContent-css.js +4 -5
- package/dist/packages/react/src/dialog-content/DialogContent.js +3 -26
- package/dist/packages/react/src/dialog-description/DialogDescription-css.js +7 -0
- package/dist/packages/react/src/dialog-description/DialogDescription.js +3 -14
- package/dist/packages/react/src/dialog-footer/DialogFooter-css.js +1 -1
- package/dist/packages/react/src/dialog-header/DialogHeader.js +24 -0
- package/dist/packages/react/src/dialog-title/DialogTitle-css.js +7 -0
- package/dist/packages/react/src/dialog-title/DialogTitle.js +4 -5
- package/dist/packages/react/src/disclosure-content/DisclosureContent-css.js +3 -3
- package/dist/packages/react/src/disclosure-trigger/DisclosureTrigger-css.js +4 -4
- package/dist/packages/react/src/drawer/Drawer.js +17 -59
- package/dist/packages/react/src/drawer-actions/DrawerActions-css.js +7 -0
- package/dist/packages/react/src/drawer-actions/DrawerActions.js +19 -0
- package/dist/packages/react/src/drawer-close/DrawerClose.js +13 -0
- package/dist/packages/react/src/drawer-content/DrawerContent-css.js +7 -0
- package/dist/packages/react/src/drawer-content/DrawerContent.js +42 -0
- package/dist/packages/react/src/drawer-context/DrawerContext.js +5 -0
- package/dist/packages/react/src/drawer-description/DrawerDescription-css.js +7 -0
- package/dist/packages/react/src/drawer-description/DrawerDescription.js +12 -0
- package/dist/packages/react/src/drawer-header/DrawerHeader.js +24 -0
- package/dist/packages/react/src/drawer-title/DrawerTitle-css.js +7 -0
- package/dist/packages/react/src/drawer-title/DrawerTitle.js +14 -8
- package/dist/packages/react/src/drawer-trigger/DrawerTrigger.js +13 -0
- package/dist/packages/react/src/highlight/Highlight-css.js +3 -3
- package/dist/packages/react/src/hover-card-content/HoverCardContent-css.js +3 -3
- package/dist/packages/react/src/indicator/Indicator-css.js +5 -5
- package/dist/packages/react/src/inline-input/InlineInput-css.js +7 -0
- package/dist/packages/react/src/inline-input/InlineInput.js +67 -0
- package/dist/packages/react/src/input/Input-css.js +1 -1
- package/dist/packages/react/src/input/Input.js +2 -1
- package/dist/packages/react/src/input-control/InputControl-css.js +3 -3
- package/dist/packages/react/src/input-root/InputRoot-css.js +5 -5
- package/dist/packages/react/src/kbd/Kbd-css.js +3 -3
- package/dist/packages/react/src/layers/layers-css.js +3 -3
- package/dist/packages/react/src/link/Link-css.js +4 -4
- package/dist/packages/react/src/listbox-checkbox-item/ListboxCheckboxItem.js +3 -2
- package/dist/packages/react/src/listbox-item/ListboxItem-css.js +5 -5
- package/dist/packages/react/src/menu-listbox/MenuListbox-css.js +3 -3
- package/dist/packages/react/src/pagination/Pagination-css.js +5 -5
- package/dist/packages/react/src/paper/Paper-css.js +1 -1
- package/dist/packages/react/src/pill/Pill-css.js +3 -3
- package/dist/packages/react/src/progress/Progress-css.js +1 -1
- package/dist/packages/react/src/radio/Radio-css.js +8 -8
- package/dist/packages/react/src/search-input/SearchInput-css.js +4 -4
- package/dist/packages/react/src/select-content/SelectContent-css.js +3 -3
- package/dist/packages/react/src/select-item/SelectItem.js +2 -3
- package/dist/packages/react/src/separator/Separator-css.js +3 -3
- package/dist/packages/react/src/sidenav-item/SidenavItem-css.js +5 -5
- package/dist/packages/react/src/skeleton/Skeleton-css.js +3 -3
- package/dist/packages/react/src/spotlight-input/SpotlightInput-css.js +3 -3
- package/dist/packages/react/src/spotlight-radio-item/SpotlightRadioItem-css.js +3 -3
- package/dist/packages/react/src/spotlight-sub-item/SpotlightSubItem-css.js +4 -4
- package/dist/packages/react/src/spotlight-sub-item/SpotlightSubItem.js +5 -5
- package/dist/packages/react/src/sprinkles/properties-css.js +4 -4
- package/dist/packages/react/src/switch/Switch-css.js +8 -8
- package/dist/packages/react/src/table/Table-css.js +4 -4
- package/dist/packages/react/src/table-body/TableBody-css.js +3 -3
- package/dist/packages/react/src/table-cell/TableCell-css.js +4 -4
- package/dist/packages/react/src/table-header-cell/TableHeaderCell-css.js +3 -3
- package/dist/packages/react/src/table-row/TableRow-css.js +3 -3
- package/dist/packages/react/src/tabs/Tabs-css.js +3 -3
- package/dist/packages/react/src/tabs-list/TabsList-css.js +3 -3
- package/dist/packages/react/src/tabs-trigger/TabsTrigger-css.js +4 -4
- package/dist/packages/react/src/text/Text-css.js +3 -3
- package/dist/packages/react/src/textarea-autosize/TextareaAutosize-css.js +5 -5
- package/dist/packages/react/src/toast/Toast-css.js +5 -5
- package/dist/packages/react/src/toast-provider/ToastProvider-css.js +3 -3
- package/dist/packages/react/src/toggle-input/ToggleInput-css.js +4 -4
- package/dist/packages/react/src/toggle-input-control/ToggleInputControl-css.js +5 -5
- package/dist/packages/react/src/toggle-input-hidden-input/ToggleInputHiddenInput-css.js +3 -3
- package/dist/packages/react/src/tooltip-content/TooltipContent-css.js +1 -1
- package/dist/packages/react/src/transition/Transition-css.js +3 -3
- package/dist/packages/react/src/transition/Transition.js +1 -1
- package/dist/unstable.d.ts +52 -15
- package/dist/unstable.js +1 -0
- package/package.json +8 -1
- package/dist/assets/src/alert-dialog-footer/AlertDialogFooter.css.ts.vanilla-D2xTcjs6.css +0 -6
- package/dist/assets/src/autocomplete-content/AutocompleteContent.css.ts.vanilla-DYU4OPrx.css +0 -10
- package/dist/assets/src/avatar/Avatar.css.ts.vanilla-BI_34xQo.css +0 -28
- package/dist/assets/src/badge/Badge.css.ts.vanilla-C7hKRSOB.css +0 -46
- package/dist/assets/src/button-base/ButtonBase.css.ts.vanilla-DVG1wJsX.css +0 -142
- package/dist/assets/src/button-loadable/ButtonLoadable.css.ts.vanilla-DpWBOXls.css +0 -9
- package/dist/assets/src/checkbox/Checkbox.css.ts.vanilla-1v2_Zwwc.css +0 -18
- package/dist/assets/src/code/Code.css.ts.vanilla-BNZmSP-V.css +0 -7
- package/dist/assets/src/command-focusable-item/CommandFocusableItem.css.ts.vanilla-CpuCBp6W.css +0 -7
- package/dist/assets/src/data-table/DataTable.css.ts.vanilla-QI0lU8Bk.css +0 -24
- package/dist/assets/src/data-table-header/DataTableHeader.css.ts.vanilla-DjLzKIFm.css +0 -12
- package/dist/assets/src/disclosure-content/DisclosureContent.css.ts.vanilla-CcpLpMtT.css +0 -25
- package/dist/assets/src/drawer/Drawer.css.ts.vanilla-CoYdN1OA.css +0 -26
- package/dist/assets/src/highlight/Highlight.css.ts.vanilla-DlXdsL4j.css +0 -7
- package/dist/assets/src/indicator/Indicator.css.ts.vanilla-DePMcFI5.css +0 -37
- package/dist/assets/src/input-root/InputRoot.css.ts.vanilla-DauYQlGZ.css +0 -68
- package/dist/assets/src/kbd/Kbd.css.ts.vanilla-KTiG6JXI.css +0 -9
- package/dist/assets/src/layers/layers.css.ts.vanilla-CAta_a7S.css +0 -1
- package/dist/assets/src/listbox-item/ListboxItem.css.ts.vanilla-CnTL6MJe.css +0 -41
- package/dist/assets/src/menu-listbox/MenuListbox.css.ts.vanilla-BoM-vKnA.css +0 -21
- package/dist/assets/src/radio/Radio.css.ts.vanilla-xzxOxzJM.css +0 -13
- package/dist/assets/src/search-input/SearchInput.css.ts.vanilla-Wlcjqtr4.css +0 -6
- package/dist/assets/src/select-content/SelectContent.css.ts.vanilla-8RA4UukF.css +0 -7
- package/dist/assets/src/sidenav-item/SidenavItem.css.ts.vanilla-jPsBU9c0.css +0 -6
- package/dist/assets/src/skeleton/Skeleton.css.ts.vanilla-BJ4nKDYA.css +0 -6
- package/dist/assets/src/spotlight-input/SpotlightInput.css.ts.vanilla-DYpdErei.css +0 -6
- package/dist/assets/src/spotlight-radio-item/SpotlightRadioItem.css.ts.vanilla-DWgBJ5ZO.css +0 -12
- package/dist/assets/src/spotlight-sub-item/SpotlightSubItem.css.ts.vanilla-C8Vk9MZj.css +0 -9
- package/dist/assets/src/switch/Switch.css.ts.vanilla-DGr-_D6M.css +0 -26
- package/dist/assets/src/table-body/TableBody.css.ts.vanilla-Dv_tf7cf.css +0 -6
- package/dist/assets/src/table-header-cell/TableHeaderCell.css.ts.vanilla-B0UGwct7.css +0 -6
- package/dist/assets/src/table-row/TableRow.css.ts.vanilla-Bkhiic0p.css +0 -4
- package/dist/assets/src/tabs/Tabs.css.ts.vanilla-BKi0Ne2N.css +0 -9
- package/dist/assets/src/tabs-list/TabsList.css.ts.vanilla-CgMJvFm1.css +0 -23
- package/dist/assets/src/textarea-autosize/TextareaAutosize.css.ts.vanilla-BSHehMun.css +0 -34
- package/dist/assets/src/toast/Toast.css.ts.vanilla-D2vwK6KD.css +0 -92
- package/dist/assets/src/toggle-input/ToggleInput.css.ts.vanilla-BAabvprz.css +0 -23
- package/dist/assets/src/toggle-input-control/ToggleInputControl.css.ts.vanilla-Bk15pl5l.css +0 -10
- package/dist/node_modules/.pnpm/framer-motion@11.11.17_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -77
- package/dist/node_modules/.pnpm/framer-motion@11.11.17_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -12
- package/dist/packages/react/src/dialog-body/DialogBody-css.js +0 -6
- package/dist/packages/react/src/drawer/Drawer-css.js +0 -8
- package/dist/packages/react/src/select-item-context/SelectItemContext.js +0 -5
- /package/dist/node_modules/.pnpm/{framer-motion@11.11.17_react-dom@18.3.1_react@18.3.1__react@18.3.1 → framer-motion@11.11.17_patch_hash_fcf7jjqh4eojsxb6ugcpywnnuy_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -0
- /package/dist/node_modules/.pnpm/{framer-motion@11.11.17_react-dom@18.3.1_react@18.3.1__react@18.3.1 → framer-motion@11.11.17_patch_hash_fcf7jjqh4eojsxb6ugcpywnnuy_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -0
- /package/dist/node_modules/.pnpm/{framer-motion@11.11.17_react-dom@18.3.1_react@18.3.1__react@18.3.1 → framer-motion@11.11.17_patch_hash_fcf7jjqh4eojsxb6ugcpywnnuy_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -0
- /package/dist/node_modules/.pnpm/{framer-motion@11.11.17_react-dom@18.3.1_react@18.3.1__react@18.3.1 → framer-motion@11.11.17_patch_hash_fcf7jjqh4eojsxb6ugcpywnnuy_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -0
- /package/dist/node_modules/.pnpm/{framer-motion@11.11.17_react-dom@18.3.1_react@18.3.1__react@18.3.1 → framer-motion@11.11.17_patch_hash_fcf7jjqh4eojsxb6ugcpywnnuy_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -0
- /package/dist/node_modules/.pnpm/{framer-motion@11.11.17_react-dom@18.3.1_react@18.3.1__react@18.3.1 → framer-motion@11.11.17_patch_hash_fcf7jjqh4eojsxb6ugcpywnnuy_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/framer-motion/dist/es/utils/errors.js +0 -0
- /package/dist/node_modules/.pnpm/{framer-motion@11.11.17_react-dom@18.3.1_react@18.3.1__react@18.3.1 → framer-motion@11.11.17_patch_hash_fcf7jjqh4eojsxb6ugcpywnnuy_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -0
- /package/dist/node_modules/.pnpm/{framer-motion@11.11.17_react-dom@18.3.1_react@18.3.1__react@18.3.1 → framer-motion@11.11.17_patch_hash_fcf7jjqh4eojsxb6ugcpywnnuy_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/framer-motion/dist/es/utils/noop.js +0 -0
- /package/dist/node_modules/.pnpm/{framer-motion@11.11.17_react-dom@18.3.1_react@18.3.1__react@18.3.1 → framer-motion@11.11.17_patch_hash_fcf7jjqh4eojsxb6ugcpywnnuy_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -0
- /package/dist/node_modules/.pnpm/{framer-motion@11.11.17_react-dom@18.3.1_react@18.3.1__react@18.3.1 → framer-motion@11.11.17_patch_hash_fcf7jjqh4eojsxb6ugcpywnnuy_react-dom@18.3.1_react@18.3.1__react@18.3.1}/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { PopoverContent } from '../popover-content/PopoverContent.js';
|
|
4
|
+
|
|
5
|
+
const ComboboxPopoverContent = forwardRef((props, ref) => {
|
|
6
|
+
return /* @__PURE__ */ jsx(PopoverContent, { minW: "trigger", ref, ...props });
|
|
7
|
+
});
|
|
8
|
+
ComboboxPopoverContent.displayName = "@optiaxiom/react/ComboboxPopoverContent";
|
|
9
|
+
|
|
10
|
+
export { ComboboxPopoverContent };
|
|
@@ -1,34 +1,19 @@
|
|
|
1
1
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { forwardRef, useMemo } from 'react';
|
|
3
|
-
import { Badge } from '../badge/Badge.js';
|
|
4
3
|
import { useComboboxContext } from '../combobox-context/ComboboxContext.js';
|
|
5
4
|
import { Flex } from '../flex/Flex.js';
|
|
6
5
|
|
|
7
|
-
const maxDisplayedItems = 2;
|
|
8
6
|
const ComboboxValue = forwardRef(
|
|
9
7
|
({ children, placeholder, ...props }, ref) => {
|
|
10
|
-
const {
|
|
11
|
-
itemToKey,
|
|
12
|
-
itemToString,
|
|
13
|
-
value: valueContext
|
|
14
|
-
} = useComboboxContext("ComboboxValue");
|
|
8
|
+
const { itemToString, value: valueContext } = useComboboxContext("ComboboxValue");
|
|
15
9
|
const value = useMemo(
|
|
16
10
|
() => valueContext instanceof Set ? [...valueContext] : valueContext,
|
|
17
11
|
[valueContext]
|
|
18
12
|
);
|
|
19
|
-
return /* @__PURE__ */ jsx(Flex, { flexDirection: "row", flexWrap: "wrap", gap: "2", ref, ...props, children: Array.isArray(value) && value.length > 0 ? children ?? /* @__PURE__ */ jsx(Fragment, { children: value.length
|
|
13
|
+
return /* @__PURE__ */ jsx(Flex, { flexDirection: "row", flexWrap: "wrap", gap: "2", ref, ...props, children: Array.isArray(value) && value.length > 0 ? children ?? /* @__PURE__ */ jsx(Fragment, { children: value.length === 1 ? itemToString(value[0]) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
20
14
|
value.length,
|
|
21
15
|
" selected"
|
|
22
|
-
] })
|
|
23
|
-
Badge,
|
|
24
|
-
{
|
|
25
|
-
display: "inline-block",
|
|
26
|
-
flex: "1",
|
|
27
|
-
truncate: true,
|
|
28
|
-
children: itemToString(item)
|
|
29
|
-
},
|
|
30
|
-
itemToKey(item)
|
|
31
|
-
)) }) : placeholder });
|
|
16
|
+
] }) }) : placeholder });
|
|
32
17
|
}
|
|
33
18
|
);
|
|
34
19
|
ComboboxValue.displayName = "@optiaxiom/react/ComboboxValue";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import './../../../../assets/src/layers/layers.css.ts.vanilla-
|
|
2
|
-
import './../../../../assets/src/command-focusable-item/CommandFocusableItem.css.ts.vanilla-
|
|
1
|
+
import './../../../../assets/src/layers/layers.css.ts.vanilla-BYJE1gjQ.css';
|
|
2
|
+
import './../../../../assets/src/command-focusable-item/CommandFocusableItem.css.ts.vanilla-CSZpzhhg.css';
|
|
3
3
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
4
4
|
|
|
5
|
-
var item = recipeRuntime({base:'
|
|
5
|
+
var item = recipeRuntime({base:'xs897k'});
|
|
6
6
|
|
|
7
7
|
export { item };
|
|
@@ -7,11 +7,11 @@ import '../sprinkles/sprinkles.js';
|
|
|
7
7
|
import '../sprinkles/sprinklesMerge.js';
|
|
8
8
|
|
|
9
9
|
const CommandItem = forwardRef(
|
|
10
|
-
({
|
|
10
|
+
({ children, item, selected, ...props }, ref) => {
|
|
11
11
|
const { restProps, sprinkleProps } = extractSprinkles(props);
|
|
12
12
|
const { downshift, highlightedItem, value } = useCommandContext("CommandItem");
|
|
13
13
|
const itemProps = downshift.getItemProps({
|
|
14
|
-
"aria-selected":
|
|
14
|
+
"aria-selected": selected ?? value?.has(item),
|
|
15
15
|
item,
|
|
16
16
|
...restProps
|
|
17
17
|
});
|
|
@@ -6,7 +6,7 @@ import { CommandFocusableItem } from '../command-focusable-item/CommandFocusable
|
|
|
6
6
|
import { useCommandSubContext } from '../command-sub-context/CommandSubContext.js';
|
|
7
7
|
|
|
8
8
|
const CommandSubItem = forwardRef(
|
|
9
|
-
({
|
|
9
|
+
({ children, item, onClick, onMouseDown, onMouseMove, selected, ...props }, outerRef) => {
|
|
10
10
|
const {
|
|
11
11
|
downshift,
|
|
12
12
|
highlightedItem,
|
|
@@ -24,19 +24,19 @@ const CommandSubItem = forwardRef(
|
|
|
24
24
|
const subIndex = subItems.indexOf(item);
|
|
25
25
|
const disabled = isItemDisabled(item, subIndex);
|
|
26
26
|
const highlighted = highlightedSubItem === item;
|
|
27
|
-
const
|
|
27
|
+
const isSelected = selected ?? value?.has(item);
|
|
28
28
|
const innerRef = useRef(null);
|
|
29
29
|
const ref = useComposedRefs(innerRef, outerRef);
|
|
30
30
|
useEffect(() => {
|
|
31
|
-
if (innerRef.current &&
|
|
31
|
+
if (innerRef.current && isSelected) {
|
|
32
32
|
innerRef.current.scrollIntoView({ block: "nearest" });
|
|
33
33
|
}
|
|
34
|
-
}, [
|
|
34
|
+
}, [isSelected]);
|
|
35
35
|
return /* @__PURE__ */ jsx(
|
|
36
36
|
CommandFocusableItem,
|
|
37
37
|
{
|
|
38
38
|
"aria-disabled": disabled,
|
|
39
|
-
"aria-selected":
|
|
39
|
+
"aria-selected": isSelected,
|
|
40
40
|
"data-disabled": disabled ? "" : void 0,
|
|
41
41
|
"data-highlighted": highlighted ? "" : void 0,
|
|
42
42
|
onClick: (event) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import './../../../../assets/src/layers/layers.css.ts.vanilla-
|
|
2
|
-
import './../../../../assets/src/data-table/DataTable.css.ts.vanilla-
|
|
1
|
+
import './../../../../assets/src/layers/layers.css.ts.vanilla-BYJE1gjQ.css';
|
|
2
|
+
import './../../../../assets/src/data-table/DataTable.css.ts.vanilla-DS6U2gJy.css';
|
|
3
3
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
4
4
|
|
|
5
|
-
var cellOffsetVar = 'var(--
|
|
6
|
-
var columnWidthVar = 'var(--
|
|
7
|
-
var tableCell = recipeRuntime({base:[{bg:'bg.default'},'
|
|
8
|
-
var tableHead = recipeRuntime({base:[{bg:'bg.default'},'
|
|
9
|
-
var tableHeader = recipeRuntime({base:[{bg:'bg.default'},'
|
|
5
|
+
var cellOffsetVar = 'var(--lq38ie)';
|
|
6
|
+
var columnWidthVar = 'var(--qc9kgs)';
|
|
7
|
+
var tableCell = recipeRuntime({base:[{bg:'bg.default'},'mpkv2e'],variants:{pinned:{false:{},left:'tygmq7',right:{}}}});
|
|
8
|
+
var tableHead = recipeRuntime({base:[{bg:'bg.default'},'_1cym3hq'],variants:{pinned:{false:{},left:'_1ow76le',right:{}}}});
|
|
9
|
+
var tableHeader = recipeRuntime({base:[{bg:'bg.default'},'_2zar8g']});
|
|
10
10
|
|
|
11
11
|
export { cellOffsetVar, columnWidthVar, tableCell, tableHead, tableHeader };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import './../../../../assets/src/layers/layers.css.ts.vanilla-
|
|
2
|
-
import './../../../../assets/src/data-table-header/DataTableHeader.css.ts.vanilla-
|
|
1
|
+
import './../../../../assets/src/layers/layers.css.ts.vanilla-BYJE1gjQ.css';
|
|
2
|
+
import './../../../../assets/src/data-table-header/DataTableHeader.css.ts.vanilla-Dfaxcy6y.css';
|
|
3
3
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
4
4
|
|
|
5
|
-
var header = recipeRuntime({base:[{gap:'4'},'
|
|
6
|
-
var icon = recipeRuntime({base:[{border:'0',color:'fg.tertiary'}],variants:{sorted:{false:'
|
|
5
|
+
var header = recipeRuntime({base:[{gap:'4'},'jrfj1l'],variants:{sortable:{false:'_1garn18',true:'sau0qk'},variant:{number:{flexDirection:'row-reverse',justifyContent:'end'},text:{flexDirection:'row'}}}});
|
|
6
|
+
var icon = recipeRuntime({base:[{border:'0',color:'fg.tertiary'}],variants:{sorted:{false:'_1wqgdx7',true:{}}}});
|
|
7
7
|
|
|
8
8
|
export { header, icon };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import './../../../../assets/src/layers/layers.css.ts.vanilla-BYJE1gjQ.css';
|
|
2
|
+
import './../../../../assets/src/dialog-actions/DialogActions.css.ts.vanilla-BVanfu8y.css';
|
|
3
|
+
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
4
|
+
|
|
5
|
+
var actions = recipeRuntime({base:[{flexDirection:'row-reverse',gap:'xs'},'olwe49']});
|
|
6
|
+
|
|
7
|
+
export { actions };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixDialog from '@radix-ui/react-dialog';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { Button } from '../button/Button.js';
|
|
5
|
+
import { Flex } from '../flex/Flex.js';
|
|
6
|
+
import { IconX } from '../icons/IconX.js';
|
|
7
|
+
import { actions } from './DialogActions-css.js';
|
|
8
|
+
|
|
9
|
+
const DialogActions = forwardRef(
|
|
10
|
+
({ children, className, ...props }, ref) => {
|
|
11
|
+
return /* @__PURE__ */ jsxs(Flex, { ref, ...actions({}, className), ...props, children: [
|
|
12
|
+
/* @__PURE__ */ jsx(Button, { appearance: "subtle", "aria-label": "Close", asChild: true, icon: /* @__PURE__ */ jsx(IconX, {}), children: /* @__PURE__ */ jsx(RadixDialog.Close, {}) }),
|
|
13
|
+
/* @__PURE__ */ jsx(Flex, { flexDirection: "row", gap: "xs", children })
|
|
14
|
+
] });
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
DialogActions.displayName = "@optiaxiom/react/DialogActions";
|
|
18
|
+
|
|
19
|
+
export { DialogActions };
|
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import { Box } from '../box/Box.js';
|
|
4
|
-
import { body } from './DialogBody-css.js';
|
|
5
4
|
|
|
6
5
|
const DialogBody = forwardRef(
|
|
7
|
-
({ children,
|
|
8
|
-
return /* @__PURE__ */ jsx(
|
|
6
|
+
({ children, ...props }, ref) => {
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
Box,
|
|
9
|
+
{
|
|
10
|
+
flex: "1",
|
|
11
|
+
fontSize: "md",
|
|
12
|
+
overflow: "auto",
|
|
13
|
+
pb: "md",
|
|
14
|
+
px: "lg",
|
|
15
|
+
ref,
|
|
16
|
+
...props,
|
|
17
|
+
children
|
|
18
|
+
}
|
|
19
|
+
);
|
|
9
20
|
}
|
|
10
21
|
);
|
|
11
22
|
DialogBody.displayName = "@optiaxiom/react/DialogBody";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import './../../../../assets/src/layers/layers.css.ts.vanilla-
|
|
2
|
-
import './../../../../assets/src/dialog-content/DialogContent.css.ts.vanilla-
|
|
1
|
+
import './../../../../assets/src/layers/layers.css.ts.vanilla-BYJE1gjQ.css';
|
|
2
|
+
import './../../../../assets/src/dialog-content/DialogContent.css.ts.vanilla-CAXaqfYm.css';
|
|
3
3
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
var content = recipeRuntime({base:[{display:'flex',flexDirection:'column'},'_67xset'],variants:{size:{sm:'_1srdjui',md:'_10i23sv',lg:'zk3rg2',fullscreen:'_1pefspo'}}});
|
|
5
|
+
var content = recipeRuntime({base:[{display:'flex',flexDirection:'column'},'_736n39'],variants:{size:{sm:'_1084kc5',md:'_1y9c1mx',lg:'_6d5lix',fullscreen:'_17s26tg'}}});
|
|
7
6
|
|
|
8
|
-
export {
|
|
7
|
+
export { content };
|
|
@@ -3,22 +3,13 @@ import * as RadixDialog from '@radix-ui/react-dialog';
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { AnimatePresence } from '../animate-presence/AnimatePresence.js';
|
|
5
5
|
import { Backdrop } from '../backdrop/Backdrop.js';
|
|
6
|
-
import { Button } from '../button/Button.js';
|
|
7
6
|
import { useDialogContext } from '../dialog-context/DialogContext.js';
|
|
8
|
-
import { IconX } from '../icons/IconX.js';
|
|
9
7
|
import { Paper } from '../paper/Paper.js';
|
|
10
8
|
import { Transition } from '../transition/Transition.js';
|
|
11
|
-
import { content
|
|
9
|
+
import { content } from './DialogContent-css.js';
|
|
12
10
|
|
|
13
11
|
const DialogContent = forwardRef(
|
|
14
|
-
({
|
|
15
|
-
children,
|
|
16
|
-
className,
|
|
17
|
-
size = "md",
|
|
18
|
-
transitionType = "fade",
|
|
19
|
-
withCloseButton = false,
|
|
20
|
-
...props
|
|
21
|
-
}, ref) => {
|
|
12
|
+
({ children, className, size = "md", transitionType = "fade", ...props }, ref) => {
|
|
22
13
|
const { open } = useDialogContext("DialogContent");
|
|
23
14
|
return /* @__PURE__ */ jsx(AnimatePresence, { children: open && /* @__PURE__ */ jsxs(RadixDialog.Portal, { forceMount: true, children: [
|
|
24
15
|
/* @__PURE__ */ jsx(Transition, { children: /* @__PURE__ */ jsx(Backdrop, { asChild: true, children: /* @__PURE__ */ jsx(RadixDialog.Overlay, {}) }) }),
|
|
@@ -29,21 +20,7 @@ const DialogContent = forwardRef(
|
|
|
29
20
|
elevation: size === "fullscreen" ? "drawer" : "dialog",
|
|
30
21
|
...content({ size }, className),
|
|
31
22
|
...props,
|
|
32
|
-
children: /* @__PURE__ */
|
|
33
|
-
children,
|
|
34
|
-
withCloseButton && /* @__PURE__ */ jsx(
|
|
35
|
-
Button,
|
|
36
|
-
{
|
|
37
|
-
appearance: "subtle",
|
|
38
|
-
"aria-label": "Close",
|
|
39
|
-
asChild: true,
|
|
40
|
-
icon: /* @__PURE__ */ jsx(IconX, {}),
|
|
41
|
-
size: "sm",
|
|
42
|
-
...close(),
|
|
43
|
-
children: /* @__PURE__ */ jsx(RadixDialog.Close, {})
|
|
44
|
-
}
|
|
45
|
-
)
|
|
46
|
-
] })
|
|
23
|
+
children: /* @__PURE__ */ jsx(RadixDialog.Content, { ref, children })
|
|
47
24
|
}
|
|
48
25
|
) })
|
|
49
26
|
] }) });
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import './../../../../assets/src/layers/layers.css.ts.vanilla-BYJE1gjQ.css';
|
|
2
|
+
import './../../../../assets/src/dialog-description/DialogDescription.css.ts.vanilla-rUcR0rJA.css';
|
|
3
|
+
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
4
|
+
|
|
5
|
+
var description = recipeRuntime({base:[{color:'fg.secondary',fontWeight:'400',w:'full'},'vlx8qu']});
|
|
6
|
+
|
|
7
|
+
export { description };
|
|
@@ -2,21 +2,10 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import * as RadixDialog from '@radix-ui/react-dialog';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { Text } from '../text/Text.js';
|
|
5
|
+
import { description } from './DialogDescription-css.js';
|
|
5
6
|
|
|
6
|
-
const DialogDescription = forwardRef(({ children, ...props }, ref) => {
|
|
7
|
-
return /* @__PURE__ */ jsx(
|
|
8
|
-
Text,
|
|
9
|
-
{
|
|
10
|
-
asChild: true,
|
|
11
|
-
color: "fg.secondary",
|
|
12
|
-
fontWeight: "400",
|
|
13
|
-
pb: "xs",
|
|
14
|
-
px: "lg",
|
|
15
|
-
ref,
|
|
16
|
-
...props,
|
|
17
|
-
children: /* @__PURE__ */ jsx(RadixDialog.Description, { children })
|
|
18
|
-
}
|
|
19
|
-
);
|
|
7
|
+
const DialogDescription = forwardRef(({ children, className, ...props }, ref) => {
|
|
8
|
+
return /* @__PURE__ */ jsx(Text, { asChild: true, ref, ...description({}, className), ...props, children: /* @__PURE__ */ jsx(RadixDialog.Description, { children }) });
|
|
20
9
|
});
|
|
21
10
|
DialogDescription.displayName = "@optiaxiom/react/DialogDescription";
|
|
22
11
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './../../../../assets/src/layers/layers.css.ts.vanilla-
|
|
1
|
+
import './../../../../assets/src/layers/layers.css.ts.vanilla-BYJE1gjQ.css';
|
|
2
2
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
3
3
|
|
|
4
4
|
var footer = recipeRuntime({base:[{borderColor:'border.secondary',borderT:'1',flexDirection:'row',gap:'md',justifyContent:'end',px:'lg',py:'20'}]});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { Box } from '../box/Box.js';
|
|
4
|
+
|
|
5
|
+
const DialogHeader = forwardRef(
|
|
6
|
+
({ children, ...props }, ref) => {
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
Box,
|
|
9
|
+
{
|
|
10
|
+
display: "flex",
|
|
11
|
+
flexWrap: "wrap",
|
|
12
|
+
gap: "xs",
|
|
13
|
+
p: "lg",
|
|
14
|
+
pb: "md",
|
|
15
|
+
ref,
|
|
16
|
+
...props,
|
|
17
|
+
children
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
DialogHeader.displayName = "@optiaxiom/react/DialogHeader";
|
|
23
|
+
|
|
24
|
+
export { DialogHeader };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import './../../../../assets/src/layers/layers.css.ts.vanilla-BYJE1gjQ.css';
|
|
2
|
+
import './../../../../assets/src/dialog-title/DialogTitle.css.ts.vanilla-DlSdDz1n.css';
|
|
3
|
+
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
4
|
+
|
|
5
|
+
var title = recipeRuntime({base:[{flex:'1',fontWeight:'500'},'_6fv3jl']});
|
|
6
|
+
|
|
7
|
+
export { title };
|
|
@@ -2,20 +2,19 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import * as RadixDialog from '@radix-ui/react-dialog';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { Heading } from '../heading/Heading.js';
|
|
5
|
+
import { title } from './DialogTitle-css.js';
|
|
5
6
|
|
|
6
7
|
const DialogTitle = forwardRef(
|
|
7
|
-
({ children, ...props }, ref) => {
|
|
8
|
+
({ asChild, children, className, ...props }, ref) => {
|
|
8
9
|
return /* @__PURE__ */ jsx(
|
|
9
10
|
Heading,
|
|
10
11
|
{
|
|
11
12
|
asChild: true,
|
|
12
|
-
fontWeight: "500",
|
|
13
13
|
level: "3",
|
|
14
|
-
p: "lg",
|
|
15
|
-
pb: "xs",
|
|
16
14
|
ref,
|
|
15
|
+
...title({}, className),
|
|
17
16
|
...props,
|
|
18
|
-
children: /* @__PURE__ */ jsx(RadixDialog.Title, { children })
|
|
17
|
+
children: /* @__PURE__ */ jsx(RadixDialog.Title, { asChild, children })
|
|
19
18
|
}
|
|
20
19
|
);
|
|
21
20
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import './../../../../assets/src/layers/layers.css.ts.vanilla-
|
|
2
|
-
import './../../../../assets/src/disclosure-content/DisclosureContent.css.ts.vanilla-
|
|
1
|
+
import './../../../../assets/src/layers/layers.css.ts.vanilla-BYJE1gjQ.css';
|
|
2
|
+
import './../../../../assets/src/disclosure-content/DisclosureContent.css.ts.vanilla-CxwwenM9.css';
|
|
3
3
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
4
4
|
|
|
5
|
-
var content = recipeRuntime({base:[{overflow:'hidden'},'
|
|
5
|
+
var content = recipeRuntime({base:[{overflow:'hidden'},'abzxxf']});
|
|
6
6
|
|
|
7
7
|
export { content };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import './../../../../assets/src/layers/layers.css.ts.vanilla-
|
|
2
|
-
import './../../../../assets/src/disclosure-trigger/DisclosureTrigger.css.ts.vanilla-
|
|
1
|
+
import './../../../../assets/src/layers/layers.css.ts.vanilla-BYJE1gjQ.css';
|
|
2
|
+
import './../../../../assets/src/disclosure-trigger/DisclosureTrigger.css.ts.vanilla-DTVLJj-K.css';
|
|
3
3
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
4
4
|
|
|
5
|
-
var icon = recipeRuntime({base:[{transition:'transform'}],variants:{chevronPosition:{end:'
|
|
6
|
-
var trigger = recipeRuntime({base:[{flexDirection:'row',fontSize:'md',fontWeight:'500',gap:'4',p:'xs',px:'4',rounded:'md',textAlign:'start',w:'full'},'
|
|
5
|
+
var icon = recipeRuntime({base:[{transition:'transform'}],variants:{chevronPosition:{end:'k2qjxd',start:'vr7iok'}}});
|
|
6
|
+
var trigger = recipeRuntime({base:[{flexDirection:'row',fontSize:'md',fontWeight:'500',gap:'4',p:'xs',px:'4',rounded:'md',textAlign:'start',w:'full'},'_1m1n5sp']});
|
|
7
7
|
|
|
8
8
|
export { icon, trigger };
|
|
@@ -1,64 +1,22 @@
|
|
|
1
|
-
import { jsx
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import * as RadixDialog from '@radix-ui/react-dialog';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Backdrop } from '../backdrop/Backdrop.js';
|
|
6
|
-
import { Button } from '../button/Button.js';
|
|
7
|
-
import { IconX } from '../icons/IconX.js';
|
|
8
|
-
import { Paper } from '../paper/Paper.js';
|
|
9
|
-
import { Transition } from '../transition/Transition.js';
|
|
10
|
-
import { content, close } from './Drawer-css.js';
|
|
3
|
+
import { useControllableState } from '@radix-ui/react-use-controllable-state';
|
|
4
|
+
import { DrawerContextProvider } from '../drawer-context/DrawerContext.js';
|
|
11
5
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}, ref) => {
|
|
27
|
-
return /* @__PURE__ */ jsx(RadixDialog.Root, { modal, onOpenChange: onClose, open, children: /* @__PURE__ */ jsx(AnimatePresence, { children: open && /* @__PURE__ */ jsxs(RadixDialog.Portal, { forceMount: true, children: [
|
|
28
|
-
/* @__PURE__ */ jsx(Transition, { children: /* @__PURE__ */ jsx(Backdrop, { asChild: true, children: /* @__PURE__ */ jsx(RadixDialog.Overlay, {}) }) }),
|
|
29
|
-
/* @__PURE__ */ jsx(
|
|
30
|
-
Transition,
|
|
31
|
-
{
|
|
32
|
-
"data-side": mapPositionToTransitionSide[position],
|
|
33
|
-
type: "fade",
|
|
34
|
-
children: /* @__PURE__ */ jsx(
|
|
35
|
-
Paper,
|
|
36
|
-
{
|
|
37
|
-
asChild: true,
|
|
38
|
-
elevation: "drawer",
|
|
39
|
-
...content({ position }),
|
|
40
|
-
children: /* @__PURE__ */ jsxs(RadixDialog.Content, { ref, ...props, children: [
|
|
41
|
-
children,
|
|
42
|
-
withCloseButton && /* @__PURE__ */ jsx(
|
|
43
|
-
Button,
|
|
44
|
-
{
|
|
45
|
-
appearance: "subtle",
|
|
46
|
-
"aria-label": "Close",
|
|
47
|
-
asChild: true,
|
|
48
|
-
icon: /* @__PURE__ */ jsx(IconX, {}),
|
|
49
|
-
size: "sm",
|
|
50
|
-
...close(),
|
|
51
|
-
children: /* @__PURE__ */ jsx(RadixDialog.Close, {})
|
|
52
|
-
}
|
|
53
|
-
)
|
|
54
|
-
] })
|
|
55
|
-
}
|
|
56
|
-
)
|
|
57
|
-
}
|
|
58
|
-
)
|
|
59
|
-
] }) }) });
|
|
60
|
-
}
|
|
61
|
-
);
|
|
6
|
+
function Drawer({
|
|
7
|
+
children,
|
|
8
|
+
defaultOpen,
|
|
9
|
+
modal,
|
|
10
|
+
onOpenChange,
|
|
11
|
+
open: openProp
|
|
12
|
+
}) {
|
|
13
|
+
const [open, setOpen] = useControllableState({
|
|
14
|
+
defaultProp: defaultOpen,
|
|
15
|
+
onChange: onOpenChange,
|
|
16
|
+
prop: openProp
|
|
17
|
+
});
|
|
18
|
+
return /* @__PURE__ */ jsx(RadixDialog.Root, { modal, onOpenChange: setOpen, open, children: /* @__PURE__ */ jsx(DrawerContextProvider, { open, children }) });
|
|
19
|
+
}
|
|
62
20
|
Drawer.displayName = "@optiaxiom/react/Drawer";
|
|
63
21
|
|
|
64
22
|
export { Drawer };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import './../../../../assets/src/layers/layers.css.ts.vanilla-BYJE1gjQ.css';
|
|
2
|
+
import './../../../../assets/src/drawer-actions/DrawerActions.css.ts.vanilla-DTEWNuVi.css';
|
|
3
|
+
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
4
|
+
|
|
5
|
+
var actions = recipeRuntime({base:[{flexDirection:'row-reverse',gap:'xs'},'v7pu7v']});
|
|
6
|
+
|
|
7
|
+
export { actions };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixDialog from '@radix-ui/react-dialog';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { Button } from '../button/Button.js';
|
|
5
|
+
import { Flex } from '../flex/Flex.js';
|
|
6
|
+
import { IconX } from '../icons/IconX.js';
|
|
7
|
+
import { actions } from './DrawerActions-css.js';
|
|
8
|
+
|
|
9
|
+
const DrawerActions = forwardRef(
|
|
10
|
+
({ children, className, ...props }, ref) => {
|
|
11
|
+
return /* @__PURE__ */ jsxs(Flex, { ref, ...actions({}, className), ...props, children: [
|
|
12
|
+
/* @__PURE__ */ jsx(Button, { appearance: "subtle", "aria-label": "Close", asChild: true, icon: /* @__PURE__ */ jsx(IconX, {}), children: /* @__PURE__ */ jsx(RadixDialog.Close, {}) }),
|
|
13
|
+
/* @__PURE__ */ jsx(Flex, { flexDirection: "row", gap: "xs", children })
|
|
14
|
+
] });
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
DrawerActions.displayName = "@optiaxiom/react/DrawerActions";
|
|
18
|
+
|
|
19
|
+
export { DrawerActions };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixDialog from '@radix-ui/react-dialog';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { Button } from '../button/Button.js';
|
|
5
|
+
|
|
6
|
+
const DrawerClose = forwardRef(
|
|
7
|
+
({ asChild, children, ...props }, ref) => {
|
|
8
|
+
return /* @__PURE__ */ jsx(RadixDialog.Close, { asChild: true, ref, ...props, children: asChild ? children : /* @__PURE__ */ jsx(Button, { children }) });
|
|
9
|
+
}
|
|
10
|
+
);
|
|
11
|
+
DrawerClose.displayName = "@optiaxiom/react/DrawerClose";
|
|
12
|
+
|
|
13
|
+
export { DrawerClose };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import './../../../../assets/src/layers/layers.css.ts.vanilla-BYJE1gjQ.css';
|
|
2
|
+
import './../../../../assets/src/drawer-content/DrawerContent.css.ts.vanilla-DjDWBK6Y.css';
|
|
3
|
+
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
4
|
+
|
|
5
|
+
var content = recipeRuntime({base:[{color:'fg.default',display:'flex',flexDirection:'column'},'cdej2e'],variants:{position:{bottom:[{borderT:'1'},'f6ax7f'],left:[{borderR:'1',h:'full',maxW:['full','lg'],w:['full','3/4']},'_7j0f1y'],right:[{borderL:'1',h:'full',maxW:['full','lg'],w:['full','3/4']},'_4ufnor']}}});
|
|
6
|
+
|
|
7
|
+
export { content };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixDialog from '@radix-ui/react-dialog';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { AnimatePresence } from '../animate-presence/AnimatePresence.js';
|
|
5
|
+
import { Backdrop } from '../backdrop/Backdrop.js';
|
|
6
|
+
import { useDrawerContext } from '../drawer-context/DrawerContext.js';
|
|
7
|
+
import { Paper } from '../paper/Paper.js';
|
|
8
|
+
import { Transition } from '../transition/Transition.js';
|
|
9
|
+
import { content } from './DrawerContent-css.js';
|
|
10
|
+
|
|
11
|
+
const mapPositionToTransitionSide = {
|
|
12
|
+
bottom: "top",
|
|
13
|
+
left: "right",
|
|
14
|
+
right: "left"
|
|
15
|
+
};
|
|
16
|
+
const DrawerContent = forwardRef(
|
|
17
|
+
({ children, position = "right", ...props }, ref) => {
|
|
18
|
+
const { open } = useDrawerContext("DrawerContent");
|
|
19
|
+
return /* @__PURE__ */ jsx(AnimatePresence, { children: open && /* @__PURE__ */ jsxs(RadixDialog.Portal, { forceMount: true, children: [
|
|
20
|
+
/* @__PURE__ */ jsx(Transition, { children: /* @__PURE__ */ jsx(Backdrop, { asChild: true, children: /* @__PURE__ */ jsx(RadixDialog.Overlay, {}) }) }),
|
|
21
|
+
/* @__PURE__ */ jsx(
|
|
22
|
+
Transition,
|
|
23
|
+
{
|
|
24
|
+
"data-side": mapPositionToTransitionSide[position],
|
|
25
|
+
type: "fade",
|
|
26
|
+
children: /* @__PURE__ */ jsx(
|
|
27
|
+
Paper,
|
|
28
|
+
{
|
|
29
|
+
asChild: true,
|
|
30
|
+
elevation: "drawer",
|
|
31
|
+
...content({ position }),
|
|
32
|
+
children: /* @__PURE__ */ jsx(RadixDialog.Content, { ref, ...props, children })
|
|
33
|
+
}
|
|
34
|
+
)
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
] }) });
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
DrawerContent.displayName = "@optiaxiom/react/DrawerContent";
|
|
41
|
+
|
|
42
|
+
export { DrawerContent };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import './../../../../assets/src/layers/layers.css.ts.vanilla-BYJE1gjQ.css';
|
|
2
|
+
import './../../../../assets/src/drawer-description/DrawerDescription.css.ts.vanilla-Dv37zxmb.css';
|
|
3
|
+
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
4
|
+
|
|
5
|
+
var description = recipeRuntime({base:[{color:'fg.secondary',fontWeight:'400',w:'full'},'_1vydsuf']});
|
|
6
|
+
|
|
7
|
+
export { description };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixDialog from '@radix-ui/react-dialog';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { Text } from '../text/Text.js';
|
|
5
|
+
import { description } from './DrawerDescription-css.js';
|
|
6
|
+
|
|
7
|
+
const DrawerDescription = forwardRef(({ children, className, ...props }, ref) => {
|
|
8
|
+
return /* @__PURE__ */ jsx(Text, { asChild: true, ref, ...description({}, className), ...props, children: /* @__PURE__ */ jsx(RadixDialog.Description, { children }) });
|
|
9
|
+
});
|
|
10
|
+
DrawerDescription.displayName = "@optiaxiom/react/DrawerDescription";
|
|
11
|
+
|
|
12
|
+
export { DrawerDescription };
|