@optiaxiom/react 0.1.0-next.8 → 0.1.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/README.md +1 -9
- package/dist/PopoverContent-SMPtGTQS.d.ts +4478 -0
- package/dist/assets/src/alert-dialog-content/AlertDialogContent.css.ts.vanilla-CVfLPfsi.css +23 -0
- package/dist/assets/src/alert-dialog-description/AlertDialogDescription.css.ts.vanilla-ByU_MbAC.css +6 -0
- package/dist/assets/src/alert-dialog-footer/AlertDialogFooter.css.ts.vanilla-DMG9lF3W.css +6 -0
- package/dist/assets/src/autocomplete-content/AutocompleteContent.css.ts.vanilla-okSbnsG8.css +10 -0
- package/dist/assets/src/autocomplete-item/AutocompleteItem.css.ts.vanilla-iI5UGzA4.css +26 -0
- package/dist/assets/src/avatar/Avatar.css.ts.vanilla-ClN9p8wH.css +27 -0
- package/dist/assets/src/badge/Badge.css.ts.vanilla-Bo5IfsM_.css +46 -0
- package/dist/assets/src/box/Box.css.ts.vanilla-B8q6Oyuj.css +87 -0
- package/dist/assets/src/button/Button.css.ts.vanilla-BDZg-A0O.css +150 -0
- package/dist/assets/src/checkbox/Checkbox.css.ts.vanilla-DmEmg4Fg.css +23 -0
- package/dist/assets/src/code/Code.css.ts.vanilla-CP53j-Jc.css +7 -0
- package/dist/assets/src/command-item/CommandItem.css.ts.vanilla-Uu0_1Rf_.css +17 -0
- package/dist/assets/src/command-list/CommandList.css.ts.vanilla-DCUc2i8R.css +9 -0
- package/dist/assets/src/control-base/ControlBase.css.ts.vanilla-BEz0zQpD.css +41 -0
- package/dist/assets/src/dialog-body/DialogBody.css.ts.vanilla-6I4GFoY3.css +6 -0
- package/dist/assets/src/dialog-content/DialogContent.css.ts.vanilla-CuP-Hjp0.css +28 -0
- package/dist/assets/src/disclosure-content/DisclosureContent.css.ts.vanilla-BqeurMvw.css +25 -0
- package/dist/assets/src/disclosure-trigger/DisclosureTrigger.css.ts.vanilla-0sn-enS-.css +16 -0
- package/dist/assets/src/drawer/Drawer.css.ts.vanilla-DWe4kLbE.css +30 -0
- package/dist/assets/src/hover-card-content/HoverCardContent.css.ts.vanilla-C2rYzgoD.css +7 -0
- package/dist/assets/src/indicator/Indicator.css.ts.vanilla-VGeZf61K.css +36 -0
- package/dist/assets/src/input-base/InputBase.css.ts.vanilla-BWyzXodK.css +53 -0
- package/dist/assets/src/kbd/Kbd.css.ts.vanilla-bKFa-HZJ.css +9 -0
- package/dist/assets/src/layers/layers.css.ts.vanilla-KObJMImw.css +1 -0
- package/dist/assets/src/link/Link.css.ts.vanilla-CpjSWnSg.css +35 -0
- package/dist/assets/src/menu-content-base/MenuContentBase.css.ts.vanilla-CBmc2U7h.css +9 -0
- package/dist/assets/src/menu-item-base/MenuItemBase.css.ts.vanilla-DrCV8udS.css +30 -0
- package/dist/assets/src/pagination/Pagination.css.ts.vanilla-BzTZvoeC.css +6 -0
- package/dist/assets/src/pill/Pill.css.ts.vanilla-0ZyLCs4p.css +12 -0
- package/dist/assets/src/popover-content/PopoverContent.css.ts.vanilla-B7WAXVkn.css +8 -0
- package/dist/assets/src/radio-group-item/RadioGroupItem.css.ts.vanilla-Ck5zAZIX.css +9 -0
- package/dist/assets/src/search-input/SearchInput.css.ts.vanilla-2JAkiMlw.css +6 -0
- package/dist/assets/src/separator/Separator.css.ts.vanilla-BPTyRjy9.css +45 -0
- package/dist/assets/src/side-nav-item/SideNavItem.css.ts.vanilla-DoASts5V.css +6 -0
- package/dist/assets/src/skeleton/Skeleton.css.ts.vanilla-BsQmCWCL.css +6 -0
- package/dist/assets/src/sprinkles/{sprinkles.css.ts.vanilla-Cj5eURGG.css → properties.css.ts.vanilla-Bg4xFBbC.css} +2860 -3074
- package/dist/assets/src/switch/Switch.css.ts.vanilla-DC1xPpLC.css +26 -0
- package/dist/assets/src/table/Table.css.ts.vanilla-Cok78MJU.css +9 -0
- package/dist/assets/src/table-body/TableBody.css.ts.vanilla-D21txW4v.css +6 -0
- package/dist/assets/src/table-cell/TableCell.css.ts.vanilla-C9lLH4Re.css +10 -0
- package/dist/assets/src/table-header-cell/TableHeaderCell.css.ts.vanilla-BlbmuVsP.css +6 -0
- package/dist/assets/src/table-row/TableRow.css.ts.vanilla-9uH71Yf6.css +4 -0
- package/dist/assets/src/tabs/Tabs.css.ts.vanilla-CehrT60e.css +9 -0
- package/dist/assets/src/tabs-list/TabsList.css.ts.vanilla-tCf9UCkY.css +23 -0
- package/dist/assets/src/tabs-trigger/TabsTrigger.css.ts.vanilla-Df0zUu5W.css +35 -0
- package/dist/assets/src/text/{Text.css.ts.vanilla-DK_dMlGe.css → Text.css.ts.vanilla-ngxCk5hZ.css} +9 -9
- package/dist/assets/src/textarea-autosize/TextareaAutosize.css.ts.vanilla-CJ9hUlY-.css +34 -0
- package/dist/assets/src/toast/Toast.css.ts.vanilla-CDM7TDwV.css +92 -0
- package/dist/assets/src/toast-provider/ToastProvider.css.ts.vanilla-wsB2DsHJ.css +34 -0
- package/dist/assets/src/transition/Transition.css.ts.vanilla-BHwXmrOM.css +56 -0
- package/dist/index.d.ts +875 -1633
- package/dist/index.js +94 -25
- package/dist/package.json.js +3 -0
- package/dist/src/alert/Alert-css.js +7 -0
- package/dist/src/alert/Alert.js +42 -0
- package/dist/src/alert-description/AlertDescription.js +10 -0
- package/dist/src/alert-dialog/AlertDialog.js +22 -0
- package/dist/src/alert-dialog-action/AlertDialogAction.js +15 -0
- package/dist/src/alert-dialog-cancel/AlertDialogCancel.js +15 -0
- package/dist/src/alert-dialog-content/AlertDialogContent-css.js +8 -0
- package/dist/src/alert-dialog-content/AlertDialogContent.js +19 -0
- package/dist/src/alert-dialog-context/AlertDialogContext.js +5 -0
- package/dist/src/alert-dialog-description/AlertDialogDescription-css.js +7 -0
- package/dist/src/alert-dialog-description/AlertDialogDescription.js +12 -0
- package/dist/src/alert-dialog-footer/AlertDialogFooter-css.js +7 -0
- package/dist/src/alert-dialog-footer/AlertDialogFooter.js +11 -0
- package/dist/src/alert-dialog-title/AlertDialogTitle.js +23 -0
- package/dist/src/alert-dialog-trigger/AlertDialogTrigger.js +15 -0
- package/dist/src/alert-title/AlertTitle.js +12 -0
- package/dist/{animate-presence → src/animate-presence}/AnimatePresence.js +11 -5
- package/dist/src/autocomplete/Autocomplete.js +84 -0
- package/dist/src/autocomplete/useDelayedState.js +26 -0
- package/dist/src/autocomplete-content/AutocompleteContent-css.js +8 -0
- package/dist/src/autocomplete-content/AutocompleteContent.js +37 -0
- package/dist/src/autocomplete-context/AutocompleteContext.js +5 -0
- package/dist/src/autocomplete-empty-item/AutocompleteEmptyItem.js +30 -0
- package/dist/src/autocomplete-item/AutocompletItem.js +37 -0
- package/dist/src/autocomplete-item/AutocompleteItem-css.js +7 -0
- package/dist/src/autocomplete-item-indicator/AutocompleteItemIndicator.js +15 -0
- package/dist/src/autocomplete-list/AutocompleteList.js +19 -0
- package/dist/src/autocomplete-list-context/AutocompleteListContext.js +5 -0
- package/dist/src/autocomplete-trigger/AutocompleteTrigger.js +33 -0
- package/dist/src/avatar/Avatar-css.js +10 -0
- package/dist/{avatar → src/avatar}/Avatar.js +9 -7
- package/dist/src/avatar-context/AvatarContext.js +7 -0
- package/dist/src/avatar-group/AvatarGroup-css.js +7 -0
- package/dist/src/avatar-group/AvatarGroup.js +14 -0
- package/dist/src/axiom-provider/AxiomProvider.js +25 -0
- package/dist/src/badge/Badge-css.js +7 -0
- package/dist/src/badge/Badge.js +31 -0
- package/dist/src/banner/Banner-css.js +7 -0
- package/dist/src/banner/Banner.js +42 -0
- package/dist/src/banner-description/BannerDescription.js +10 -0
- package/dist/src/banner-title/BannerTitle.js +12 -0
- package/dist/src/box/Box-css.js +7 -0
- package/dist/{box → src/box}/Box.js +6 -5
- package/dist/src/breadcrumb/Breadcrumb.js +16 -0
- package/dist/src/breadcrumb-ellipsis/BreadcrumbEllipsis.js +10 -0
- package/dist/src/breadcrumb-item/BreadcrumbItem.js +16 -0
- package/dist/src/breadcrumb-link/BreadcrumbLink.js +12 -0
- package/dist/src/breadcrumb-page/BreadcrumbPage.js +12 -0
- package/dist/src/breadcrumb-separator/BreadcrumbSeparator.js +14 -0
- package/dist/src/button/Button-css.js +12 -0
- package/dist/src/button/Button.js +105 -0
- package/dist/src/button-group/ButtonGroup-css.js +7 -0
- package/dist/src/checkbox/Checkbox-css.js +11 -0
- package/dist/src/checkbox/Checkbox.js +30 -0
- package/dist/src/code/Code-css.js +7 -0
- package/dist/{code → src/code}/Code.js +5 -13
- package/dist/src/combobox/Combobox.js +40 -0
- package/dist/src/combobox-content/ComboboxContent.js +24 -0
- package/dist/src/combobox-context/ComboboxContext.js +5 -0
- package/dist/src/combobox-multi-trigger/ComboboxMultiTrigger.js +34 -0
- package/dist/src/combobox-single-trigger/ComboboxSingleTrigger.js +13 -0
- package/dist/src/combobox-trigger/ComboboxTrigger.js +21 -0
- package/dist/src/command/Command.js +17 -0
- package/dist/src/command-checkbox-item/CommandCheckboxItem.js +58 -0
- package/dist/src/command-empty/CommandEmpty.js +17 -0
- package/dist/src/command-footer/CommandFooter-css.js +6 -0
- package/dist/src/command-footer/CommandFooter.js +13 -0
- package/dist/src/command-group/CommandGroup.js +17 -0
- package/dist/src/command-input/CommandInput.js +17 -0
- package/dist/src/command-item/CommandItem-css.js +7 -0
- package/dist/src/command-item/CommandItem.js +42 -0
- package/dist/src/command-list/CommandList-css.js +7 -0
- package/dist/src/command-list/CommandList.js +18 -0
- package/dist/src/command-separator/CommandSeparator.js +17 -0
- package/dist/src/control-base/ControlBase-css.js +10 -0
- package/dist/src/control-base/ControlBase.js +38 -0
- package/dist/src/dialog/Dialog.js +32 -0
- package/dist/src/dialog-body/DialogBody-css.js +7 -0
- package/dist/src/dialog-body/DialogBody.js +13 -0
- package/dist/src/dialog-close/DialogClose.js +17 -0
- package/dist/src/dialog-content/DialogContent-css.js +9 -0
- package/dist/src/dialog-content/DialogContent.js +37 -0
- package/dist/src/dialog-context/DialogContext.js +5 -0
- package/dist/src/dialog-description/DialogDescription.js +23 -0
- package/dist/src/dialog-footer/DialogFooter-css.js +6 -0
- package/dist/src/dialog-footer/DialogFooter.js +13 -0
- package/dist/src/dialog-title/DialogTitle.js +25 -0
- package/dist/src/dialog-trigger/DialogTrigger.js +17 -0
- package/dist/src/disclosure/Disclosure.js +13 -0
- package/dist/src/disclosure-content/DisclosureContent-css.js +7 -0
- package/dist/src/disclosure-content/DisclosureContent.js +12 -0
- package/dist/src/disclosure-trigger/DisclosureTrigger-css.js +8 -0
- package/dist/src/disclosure-trigger/DisclosureTrigger.js +27 -0
- package/dist/src/drawer/Drawer-css.js +9 -0
- package/dist/src/drawer/Drawer.js +55 -0
- package/dist/src/drawer-body/DrawerBody.js +24 -0
- package/dist/src/drawer-footer/DrawerFooter.js +24 -0
- package/dist/src/drawer-title/DrawerTitle.js +18 -0
- package/dist/src/dropdown-menu/DropdownMenu.js +22 -0
- package/dist/src/dropdown-menu-content/DropdownMenuContent.js +13 -0
- package/dist/src/dropdown-menu-context/DropdownMenuContext.js +5 -0
- package/dist/src/dropdown-menu-item/DropdownMenuItem.js +11 -0
- package/dist/src/dropdown-menu-label/DropdownMenuLabel.js +25 -0
- package/dist/src/dropdown-menu-separator/DropdownMenuSeparator.js +9 -0
- package/dist/src/dropdown-menu-sub/DropdownMenuSub.js +22 -0
- package/dist/src/dropdown-menu-sub-content/DropdownMenuSubContent.js +21 -0
- package/dist/src/dropdown-menu-sub-context/DropdownMenuSubContext.js +5 -0
- package/dist/src/dropdown-menu-sub-trigger/DropdownMenuSubTrigger.js +12 -0
- package/dist/src/dropdown-menu-trigger/DropdownMenuTrigger.js +15 -0
- package/dist/src/field/Field.js +85 -0
- package/dist/src/field-context/FieldContext.js +5 -0
- package/dist/src/field-context/useFieldContext.js +11 -0
- package/dist/{flex → src/flex}/Flex.js +2 -1
- package/dist/{grid → src/grid}/Grid.js +1 -1
- package/dist/{heading → src/heading}/Heading.js +2 -2
- package/dist/src/hover-card/HoverCard.js +41 -0
- package/dist/src/hover-card-content/HoverCardContent-css.js +7 -0
- package/dist/src/hover-card-content/HoverCardContent.js +68 -0
- package/dist/src/hover-card-context/HoverCardContext.js +5 -0
- package/dist/src/hover-card-trigger/HoverCardTrigger.js +29 -0
- package/dist/src/icon/Icon.js +12 -0
- package/dist/src/icons/IconAngleDown.js +19 -0
- package/dist/src/icons/IconAngleLeft.js +22 -0
- package/dist/src/icons/IconAngleRight.js +22 -0
- package/dist/src/icons/IconCheck.js +23 -0
- package/dist/src/icons/IconCircleCheckFilled.js +19 -0
- package/dist/src/icons/IconCircleExclamationFilled.js +19 -0
- package/dist/src/icons/IconCircleInfoFilled.js +19 -0
- package/dist/src/icons/IconCircleQuestion.js +19 -0
- package/dist/src/icons/IconEllipsis.js +35 -0
- package/dist/src/icons/IconMagnifyingGlass.js +17 -0
- package/dist/src/icons/IconMinus.js +19 -0
- package/dist/src/icons/IconTriangleExclamationFilled.js +19 -0
- package/dist/src/icons/IconUpRightFromSquare.js +17 -0
- package/dist/src/icons/IconX.js +17 -0
- package/dist/src/icons/withIcon.js +31 -0
- package/dist/src/indicator/Indicator-css.js +9 -0
- package/dist/src/indicator/Indicator.js +52 -0
- package/dist/src/input/Input-css.js +7 -0
- package/dist/src/input/Input.js +35 -0
- package/dist/src/input-base/InputBase-css.js +8 -0
- package/dist/src/input-base/InputBase.js +76 -0
- package/dist/src/kbd/Kbd-css.js +8 -0
- package/dist/src/kbd/Kbd.js +31 -0
- package/dist/src/layers/layers-css.js +8 -0
- package/dist/src/link/Link-css.js +8 -0
- package/dist/src/link/Link.js +52 -0
- package/dist/src/menu-button/MenuButton.js +13 -0
- package/dist/src/menu-content-base/MenuContentBase-css.js +7 -0
- package/dist/src/menu-content-base/MenuContentBase.js +25 -0
- package/dist/src/menu-item-base/MenuItemBase-css.js +7 -0
- package/dist/src/menu-item-base/MenuItemBase.js +53 -0
- package/dist/src/pagination/Pagination-css.js +7 -0
- package/dist/src/pagination/Pagination.js +91 -0
- package/dist/src/pill/Pill-css.js +7 -0
- package/dist/src/pill/Pill.js +39 -0
- package/dist/src/popover/Popover.js +22 -0
- package/dist/src/popover-anchor/PopoverAnchor.js +13 -0
- package/dist/src/popover-content/PopoverContent-css.js +7 -0
- package/dist/src/popover-content/PopoverContent.js +59 -0
- package/dist/src/popover-context/PopoverContext.js +5 -0
- package/dist/src/popover-trigger/PopoverTrigger.js +15 -0
- package/dist/{progress → src/progress}/Progress.js +1 -1
- package/dist/src/radio-group/RadioGroup.js +47 -0
- package/dist/src/radio-group-item/RadioGroupItem-css.js +9 -0
- package/dist/src/radio-group-item/RadioGroupItem.js +25 -0
- package/dist/src/search-input/SearchInput-css.js +8 -0
- package/dist/src/search-input/SearchInput.js +69 -0
- package/dist/src/segmented-control/SegmentedControl.js +11 -0
- package/dist/src/segmented-control-item/SegmentedControlItem.js +20 -0
- package/dist/{separator → src/separator}/Separator-css.js +3 -3
- package/dist/src/side-nav/SideNav.js +72 -0
- package/dist/src/side-nav-account-item/SideNavAccountItem.js +36 -0
- package/dist/src/side-nav-context/SideNavContext.js +5 -0
- package/dist/src/side-nav-item/SideNavItem-css.js +9 -0
- package/dist/src/side-nav-item/SideNavItem.js +52 -0
- package/dist/src/side-nav-toggle/SideNavToggle.js +24 -0
- package/dist/src/skeleton/Skeleton-css.js +7 -0
- package/dist/{skeleton → src/skeleton}/Skeleton.js +3 -8
- package/dist/src/spinner/Spinner.js +57 -0
- package/dist/src/sprinkles/createSprinklesMerge.js +46 -0
- package/dist/{sprinkles → src/sprinkles}/extractSprinkles.js +4 -2
- package/dist/src/sprinkles/properties-css.js +7 -0
- package/dist/src/sprinkles/sprinkles.js +11 -0
- package/dist/src/sprinkles/sprinklesMerge.js +9 -0
- package/dist/src/switch/Switch-css.js +10 -0
- package/dist/src/switch/Switch.js +28 -0
- package/dist/src/table/Table-css.js +8 -0
- package/dist/src/table/Table.js +11 -0
- package/dist/src/table-body/TableBody-css.js +7 -0
- package/dist/src/table-body/TableBody.js +11 -0
- package/dist/src/table-cell/TableCell-css.js +8 -0
- package/dist/src/table-cell/TableCell.js +13 -0
- package/dist/src/table-head/TableHead.js +10 -0
- package/dist/src/table-header-cell/TableHeaderCell-css.js +7 -0
- package/dist/src/table-header-cell/TableHeaderCell.js +11 -0
- package/dist/src/table-row/TableRow-css.js +7 -0
- package/dist/src/table-row/TableRow.js +11 -0
- package/dist/src/tabs/Tabs-css.js +7 -0
- package/dist/src/tabs/Tabs.js +19 -0
- package/dist/src/tabs-content/TabsContent.js +17 -0
- package/dist/src/tabs-context/TabsContext.js +5 -0
- package/dist/src/tabs-list/TabsList-css.js +7 -0
- package/dist/src/tabs-list/TabsList.js +16 -0
- package/dist/src/tabs-trigger/TabsTrigger-css.js +8 -0
- package/dist/src/tabs-trigger/TabsTrigger.js +47 -0
- package/dist/src/text/Text-css.js +7 -0
- package/dist/{text → src/text}/Text.js +2 -3
- package/dist/src/textarea/Textarea.js +15 -0
- package/dist/src/textarea-autosize/TextareaAutosize-css.js +9 -0
- package/dist/src/textarea-autosize/TextareaAutosize.js +44 -0
- package/dist/src/theme-provider/ThemeProvider.js +25 -0
- package/dist/src/toast/Toast-css.js +9 -0
- package/dist/src/toast/Toast.js +52 -0
- package/dist/src/toast-action/ToastAction.js +26 -0
- package/dist/src/toast-provider/ToastProvider-css.js +7 -0
- package/dist/src/toast-provider/ToastProvider.js +99 -0
- package/dist/src/toast-provider/useOverflowAnchor.js +34 -0
- package/dist/src/toast-title/ToastTitle.js +13 -0
- package/dist/src/toggle-button/ToggleButton.js +13 -0
- package/dist/src/tooltip/Tooltip.js +40 -0
- package/dist/src/tooltip-content/TooltipContent-css.js +6 -0
- package/dist/src/tooltip-content/TooltipContent.js +47 -0
- package/dist/src/tooltip-context/TooltipContext.js +5 -0
- package/dist/src/tooltip-root/TooltipRoot.js +67 -0
- package/dist/src/tooltip-trigger/TooltipTrigger.js +31 -0
- package/dist/src/transition/Transition-css.js +8 -0
- package/dist/src/transition/Transition.js +42 -0
- package/dist/src/transition/TransitionGlobalConfig.js +5 -0
- package/dist/src/use-event/useEffectEvent.js +13 -0
- package/dist/src/utils/conditions.js +13 -0
- package/dist/src/utils/fallbackSpan.js +6 -0
- package/dist/src/utils/mapValues.js +9 -0
- package/dist/{vanilla-extract → src/vanilla-extract}/recipeRuntime.js +6 -4
- package/dist/unstable.d.ts +601 -0
- package/dist/unstable.js +43 -0
- package/package.json +52 -16
- package/dist/assets/src/avatar/Avatar.css.ts.vanilla-CihLlW6Z.css +0 -6
- package/dist/assets/src/box/Box.css.ts.vanilla-DMx7YI4c.css +0 -72
- package/dist/assets/src/button/Button.css.ts.vanilla-BopXGX13.css +0 -113
- package/dist/assets/src/button-group/ButtonGroup.css.ts.vanilla-4BGjgIuZ.css +0 -4
- package/dist/assets/src/code/Code.css.ts.vanilla-Dz07Qp9h.css +0 -7
- package/dist/assets/src/input/Input.css.ts.vanilla-X0R-SsOp.css +0 -32
- package/dist/assets/src/kbd/Kbd.css.ts.vanilla-DB-l95Nr.css +0 -11
- package/dist/assets/src/separator/Separator.css.ts.vanilla-C_EYtori.css +0 -42
- package/dist/assets/src/skeleton/Skeleton.css.ts.vanilla-Cl5oEbvn.css +0 -6
- package/dist/assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css +0 -4
- package/dist/assets/src/styles/theme.css.ts.vanilla-BftJbjRk.css +0 -666
- package/dist/assets/src/transition/Transition.css.ts.vanilla-COX8x_Bo.css +0 -56
- package/dist/avatar/Avatar-css.js +0 -8
- package/dist/box/Box-css.js +0 -8
- package/dist/button/Button-css.js +0 -10
- package/dist/button/Button.js +0 -82
- package/dist/button-group/ButtonGroup-css.js +0 -7
- package/dist/code/Code-css.js +0 -7
- package/dist/field/Field.js +0 -41
- package/dist/input/Input-css.js +0 -9
- package/dist/input/Input.js +0 -42
- package/dist/kbd/Kbd-css.js +0 -8
- package/dist/kbd/Kbd.js +0 -46
- package/dist/paper/Paper.js +0 -12
- package/dist/skeleton/Skeleton-css.js +0 -7
- package/dist/sprinkles/sprinkles-css.js +0 -10
- package/dist/styles/layers-css.js +0 -8
- package/dist/styles/theme-css.js +0 -5
- package/dist/text/Text-css.js +0 -7
- package/dist/tokens/borderRadius.js +0 -13
- package/dist/tokens/borderWidth.js +0 -8
- package/dist/tokens/boxShadow.js +0 -11
- package/dist/tokens/colors.js +0 -255
- package/dist/tokens/fontFamily.js +0 -6
- package/dist/tokens/fontSize.js +0 -46
- package/dist/tokens/index.js +0 -37
- package/dist/tokens/letterSpacing.js +0 -10
- package/dist/tokens/lineHeight.js +0 -8
- package/dist/tokens/margins.js +0 -25
- package/dist/tokens/maxSize.js +0 -13
- package/dist/tokens/rem.js +0 -3
- package/dist/tokens/screens.js +0 -9
- package/dist/tokens/size.js +0 -52
- package/dist/tokens/spacing.js +0 -31
- package/dist/tokens/zIndex.js +0 -12
- package/dist/tooltip/Tooltip.js +0 -35
- package/dist/transition/Transition-css.js +0 -8
- package/dist/transition/Transition.js +0 -35
- /package/dist/{button-group → src/button-group}/ButtonGroup.js +0 -0
- /package/dist/{separator → src/separator}/Separator.js +0 -0
- /package/dist/{animate-presence → src/use-presence}/PresenceContext.js +0 -0
- /package/dist/{animate-presence → src/use-presence}/usePresence.js +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
|
|
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
|
+
);
|
|
20
|
+
});
|
|
21
|
+
DialogDescription.displayName = "@optiaxiom/react/DialogDescription";
|
|
22
|
+
|
|
23
|
+
export { DialogDescription };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import './../../assets/src/layers/layers.css.ts.vanilla-KObJMImw.css';
|
|
2
|
+
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
3
|
+
|
|
4
|
+
var footer = recipeRuntime({base:[{borderColor:'border.secondary',borderT:'1',flexDirection:'row',gap:'md',justifyContent:'end',px:'lg',py:'20'}]});
|
|
5
|
+
|
|
6
|
+
export { footer };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { Flex } from '../flex/Flex.js';
|
|
4
|
+
import { footer } from './DialogFooter-css.js';
|
|
5
|
+
|
|
6
|
+
const DialogFooter = forwardRef(
|
|
7
|
+
({ children, className, ...props }, ref) => {
|
|
8
|
+
return /* @__PURE__ */ jsx(Flex, { ref, ...footer({}, className), ...props, children });
|
|
9
|
+
}
|
|
10
|
+
);
|
|
11
|
+
DialogFooter.displayName = "@optiaxiom/react/DialogFooter";
|
|
12
|
+
|
|
13
|
+
export { DialogFooter };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixDialog from '@radix-ui/react-dialog';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { Heading } from '../heading/Heading.js';
|
|
5
|
+
|
|
6
|
+
const DialogTitle = forwardRef(
|
|
7
|
+
({ children, ...props }, ref) => {
|
|
8
|
+
return /* @__PURE__ */ jsx(
|
|
9
|
+
Heading,
|
|
10
|
+
{
|
|
11
|
+
asChild: true,
|
|
12
|
+
fontWeight: "500",
|
|
13
|
+
level: "3",
|
|
14
|
+
p: "lg",
|
|
15
|
+
pb: "xs",
|
|
16
|
+
ref,
|
|
17
|
+
...props,
|
|
18
|
+
children: /* @__PURE__ */ jsx(RadixDialog.Title, { children })
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
DialogTitle.displayName = "@optiaxiom/react/DialogTitle";
|
|
24
|
+
|
|
25
|
+
export { DialogTitle };
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
import { extractSprinkles } from '../sprinkles/extractSprinkles.js';
|
|
6
|
+
import '../sprinkles/sprinkles.js';
|
|
7
|
+
import '../sprinkles/sprinklesMerge.js';
|
|
8
|
+
|
|
9
|
+
const DialogTrigger = forwardRef(
|
|
10
|
+
({ asChild, children, ...props }, ref) => {
|
|
11
|
+
const { restProps, sprinkleProps } = extractSprinkles(props);
|
|
12
|
+
return /* @__PURE__ */ jsx(RadixDialog.Trigger, { asChild: true, ref, ...sprinkleProps, children: asChild ? children : /* @__PURE__ */ jsx(Button, { ...restProps, children }) });
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
DialogTrigger.displayName = "@optiaxiom/react/DialogTrigger";
|
|
16
|
+
|
|
17
|
+
export { DialogTrigger };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixCollapsible from '@radix-ui/react-collapsible';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { Box } from '../box/Box.js';
|
|
5
|
+
|
|
6
|
+
const Disclosure = forwardRef(
|
|
7
|
+
({ children, ...props }, ref) => {
|
|
8
|
+
return /* @__PURE__ */ jsx(Box, { asChild: true, ref, ...props, children: /* @__PURE__ */ jsx(RadixCollapsible.Root, { children }) });
|
|
9
|
+
}
|
|
10
|
+
);
|
|
11
|
+
Disclosure.displayName = "@optiaxiom/react/Disclosure";
|
|
12
|
+
|
|
13
|
+
export { Disclosure };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import './../../assets/src/layers/layers.css.ts.vanilla-KObJMImw.css';
|
|
2
|
+
import './../../assets/src/disclosure-content/DisclosureContent.css.ts.vanilla-BqeurMvw.css';
|
|
3
|
+
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
4
|
+
|
|
5
|
+
var content = recipeRuntime({base:[{overflow:'hidden'},'_1sbcqc1']});
|
|
6
|
+
|
|
7
|
+
export { content };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixCollapsible from '@radix-ui/react-collapsible';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { Box } from '../box/Box.js';
|
|
5
|
+
import { content } from './DisclosureContent-css.js';
|
|
6
|
+
|
|
7
|
+
const DisclosureContent = forwardRef(({ children, className, ...props }, ref) => {
|
|
8
|
+
return /* @__PURE__ */ jsx(Box, { asChild: true, ref, ...content({}, className), ...props, children: /* @__PURE__ */ jsx(RadixCollapsible.Content, { children: /* @__PURE__ */ jsx(Box, { color: "fg.default", fontSize: "md", p: "xs", pt: "0", children }) }) });
|
|
9
|
+
});
|
|
10
|
+
DisclosureContent.displayName = "@optiaxiom/react/DisclosureContent";
|
|
11
|
+
|
|
12
|
+
export { DisclosureContent };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './../../assets/src/layers/layers.css.ts.vanilla-KObJMImw.css';
|
|
2
|
+
import './../../assets/src/disclosure-trigger/DisclosureTrigger.css.ts.vanilla-0sn-enS-.css';
|
|
3
|
+
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
4
|
+
|
|
5
|
+
var icon = recipeRuntime({base:[{transition:'transform'}],variants:{chevronPosition:{end:'_1kaw8ei',start:'p8rn8v'}}});
|
|
6
|
+
var trigger = recipeRuntime({base:[{flexDirection:'row',fontSize:'md',fontWeight:'500',gap:'4',p:'xs',px:'4',rounded:'md',textAlign:'start',w:'full'},'_101kb7']});
|
|
7
|
+
|
|
8
|
+
export { icon, trigger };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixCollapsible from '@radix-ui/react-collapsible';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { Box } from '../box/Box.js';
|
|
5
|
+
import { Flex } from '../flex/Flex.js';
|
|
6
|
+
import { IconAngleDown } from '../icons/IconAngleDown.js';
|
|
7
|
+
import { IconAngleRight } from '../icons/IconAngleRight.js';
|
|
8
|
+
import { extractSprinkles } from '../sprinkles/extractSprinkles.js';
|
|
9
|
+
import '../sprinkles/sprinkles.js';
|
|
10
|
+
import '../sprinkles/sprinklesMerge.js';
|
|
11
|
+
import { trigger, icon } from './DisclosureTrigger-css.js';
|
|
12
|
+
|
|
13
|
+
const DisclosureTrigger = forwardRef(
|
|
14
|
+
({ addonAfter, addonBefore, chevronPosition = "start", children, ...props }, ref) => {
|
|
15
|
+
const { restProps, sprinkleProps } = extractSprinkles(props);
|
|
16
|
+
const startIcon = addonBefore || chevronPosition === "start" && !addonAfter && /* @__PURE__ */ jsx(IconAngleRight, {});
|
|
17
|
+
const endIcon = addonAfter || chevronPosition === "end" && /* @__PURE__ */ jsx(IconAngleDown, {});
|
|
18
|
+
return /* @__PURE__ */ jsx(Flex, { asChild: true, ...trigger(), ...sprinkleProps, children: /* @__PURE__ */ jsxs(RadixCollapsible.Trigger, { ref, ...restProps, children: [
|
|
19
|
+
startIcon && /* @__PURE__ */ jsx(Box, { asChild: true, ...icon({ chevronPosition }), children: startIcon }),
|
|
20
|
+
/* @__PURE__ */ jsx(Box, { flex: "1", px: "4", children }),
|
|
21
|
+
endIcon && /* @__PURE__ */ jsx(Box, { asChild: true, ...icon({ chevronPosition }), children: endIcon })
|
|
22
|
+
] }) });
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
DisclosureTrigger.displayName = "@optiaxiom/react/DisclosureTrigger";
|
|
26
|
+
|
|
27
|
+
export { DisclosureTrigger };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import './../../assets/src/layers/layers.css.ts.vanilla-KObJMImw.css';
|
|
2
|
+
import './../../assets/src/drawer/Drawer.css.ts.vanilla-DWe4kLbE.css';
|
|
3
|
+
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
4
|
+
|
|
5
|
+
var close = recipeRuntime({base:[{rounded:'full'},'_1yioncz']});
|
|
6
|
+
var content = recipeRuntime({base:[{bg:'bg.default',display:'flex',flexDirection:'column',shadow:'md',z:'popover'},'_1bdjsab'],variants:{position:{bottom:[{borderT:'1'},'j3b4i8'],left:[{borderR:'1',h:'full',maxW:['full','lg'],w:['full','3/4']},'_1wh6fft'],right:[{borderL:'1',h:'full',maxW:['full','lg'],w:['full','3/4']},'tzviu8']}}});
|
|
7
|
+
var overlay = recipeRuntime({base:[{bg:'bg.overlay',z:'popover'},'bhi6hh']});
|
|
8
|
+
|
|
9
|
+
export { close, content, overlay };
|
|
@@ -0,0 +1,55 @@
|
|
|
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 { Box } from '../box/Box.js';
|
|
6
|
+
import { Button } from '../button/Button.js';
|
|
7
|
+
import { IconX } from '../icons/IconX.js';
|
|
8
|
+
import { Transition } from '../transition/Transition.js';
|
|
9
|
+
import { overlay, content, close } from './Drawer-css.js';
|
|
10
|
+
|
|
11
|
+
const mapPositionToTransitionSide = {
|
|
12
|
+
bottom: "top",
|
|
13
|
+
left: "right",
|
|
14
|
+
right: "left"
|
|
15
|
+
};
|
|
16
|
+
const Drawer = forwardRef(
|
|
17
|
+
({
|
|
18
|
+
children,
|
|
19
|
+
modal,
|
|
20
|
+
onClose,
|
|
21
|
+
open,
|
|
22
|
+
position = "right",
|
|
23
|
+
withCloseButton = false,
|
|
24
|
+
...props
|
|
25
|
+
}, ref) => {
|
|
26
|
+
return /* @__PURE__ */ jsx(RadixDialog.Root, { modal, onOpenChange: onClose, open, children: /* @__PURE__ */ jsx(AnimatePresence, { children: open && /* @__PURE__ */ jsxs(RadixDialog.Portal, { forceMount: true, children: [
|
|
27
|
+
/* @__PURE__ */ jsx(Transition, { children: /* @__PURE__ */ jsx(Box, { asChild: true, ...overlay(), children: /* @__PURE__ */ jsx(RadixDialog.Overlay, {}) }) }),
|
|
28
|
+
/* @__PURE__ */ jsx(
|
|
29
|
+
Transition,
|
|
30
|
+
{
|
|
31
|
+
"data-side": mapPositionToTransitionSide[position],
|
|
32
|
+
type: "fade",
|
|
33
|
+
children: /* @__PURE__ */ jsx(Box, { asChild: true, ...content({ position }), children: /* @__PURE__ */ jsxs(RadixDialog.Content, { ref, ...props, children: [
|
|
34
|
+
children,
|
|
35
|
+
withCloseButton && /* @__PURE__ */ jsx(
|
|
36
|
+
Button,
|
|
37
|
+
{
|
|
38
|
+
appearance: "subtle",
|
|
39
|
+
"aria-label": "Close",
|
|
40
|
+
asChild: true,
|
|
41
|
+
icon: /* @__PURE__ */ jsx(IconX, {}),
|
|
42
|
+
size: "sm",
|
|
43
|
+
...close(),
|
|
44
|
+
children: /* @__PURE__ */ jsx(RadixDialog.Close, {})
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
] }) })
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
] }) }) });
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
Drawer.displayName = "@optiaxiom/react/Drawer";
|
|
54
|
+
|
|
55
|
+
export { Drawer };
|
|
@@ -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 DrawerBody = forwardRef(
|
|
6
|
+
({ children, ...props }, ref) => {
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
Box,
|
|
9
|
+
{
|
|
10
|
+
flex: "1",
|
|
11
|
+
fontSize: "md",
|
|
12
|
+
overflow: "auto",
|
|
13
|
+
px: "lg",
|
|
14
|
+
py: "md",
|
|
15
|
+
ref,
|
|
16
|
+
...props,
|
|
17
|
+
children
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
DrawerBody.displayName = "@optiaxiom/react/DrawerBody";
|
|
23
|
+
|
|
24
|
+
export { DrawerBody };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { Flex } from '../flex/Flex.js';
|
|
4
|
+
|
|
5
|
+
const DrawerFooter = forwardRef(
|
|
6
|
+
({ children, ...props }, ref) => {
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
Flex,
|
|
9
|
+
{
|
|
10
|
+
borderT: "1",
|
|
11
|
+
flexDirection: "row",
|
|
12
|
+
gap: "md",
|
|
13
|
+
justifyContent: "end",
|
|
14
|
+
p: "md",
|
|
15
|
+
ref,
|
|
16
|
+
...props,
|
|
17
|
+
children
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
DrawerFooter.displayName = "@optiaxiom/react/DrawerFooter";
|
|
23
|
+
|
|
24
|
+
export { DrawerFooter };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixDialog from '@radix-ui/react-dialog';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { Flex } from '../flex/Flex.js';
|
|
5
|
+
import { Heading } from '../heading/Heading.js';
|
|
6
|
+
import { Text } from '../text/Text.js';
|
|
7
|
+
|
|
8
|
+
const DrawerTitle = forwardRef(
|
|
9
|
+
({ children, description, ...props }, ref) => {
|
|
10
|
+
return /* @__PURE__ */ jsxs(Flex, { gap: "xs", pb: "md", pt: "lg", px: "lg", ref, ...props, children: [
|
|
11
|
+
/* @__PURE__ */ jsx(Heading, { asChild: true, level: "4", children: /* @__PURE__ */ jsx(RadixDialog.Title, { children }) }),
|
|
12
|
+
/* @__PURE__ */ jsx(Text, { asChild: true, empty: "hidden", fontWeight: "400", children: /* @__PURE__ */ jsx(RadixDialog.Description, { children: description }) })
|
|
13
|
+
] });
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
DrawerTitle.displayName = "@optiaxiom/react/DrawerTitle";
|
|
17
|
+
|
|
18
|
+
export { DrawerTitle };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixMenu from '@radix-ui/react-dropdown-menu';
|
|
3
|
+
import { useControllableState } from '@radix-ui/react-use-controllable-state';
|
|
4
|
+
import { DropdownMenuContextProvider } from '../dropdown-menu-context/DropdownMenuContext.js';
|
|
5
|
+
|
|
6
|
+
function DropdownMenu({
|
|
7
|
+
children,
|
|
8
|
+
defaultOpen,
|
|
9
|
+
onOpenChange,
|
|
10
|
+
open: openProp,
|
|
11
|
+
...props
|
|
12
|
+
}) {
|
|
13
|
+
const [open, setOpen] = useControllableState({
|
|
14
|
+
defaultProp: defaultOpen,
|
|
15
|
+
onChange: onOpenChange,
|
|
16
|
+
prop: openProp
|
|
17
|
+
});
|
|
18
|
+
return /* @__PURE__ */ jsx(RadixMenu.Root, { onOpenChange: setOpen, open, ...props, children: /* @__PURE__ */ jsx(DropdownMenuContextProvider, { open, children }) });
|
|
19
|
+
}
|
|
20
|
+
DropdownMenu.displayName = "@optiaxiom/react/DropdownMenu";
|
|
21
|
+
|
|
22
|
+
export { DropdownMenu };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixMenu from '@radix-ui/react-dropdown-menu';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { useDropdownMenuContext } from '../dropdown-menu-context/DropdownMenuContext.js';
|
|
5
|
+
import { MenuContentBase } from '../menu-content-base/MenuContentBase.js';
|
|
6
|
+
|
|
7
|
+
const DropdownMenuContent = forwardRef(({ align = "start", children, sideOffset = 2, ...props }, ref) => {
|
|
8
|
+
const { open } = useDropdownMenuContext("DropdownMenuContent");
|
|
9
|
+
return /* @__PURE__ */ jsx(MenuContentBase, { open, ...props, children: /* @__PURE__ */ jsx(RadixMenu.Content, { align, ref, sideOffset, children }) });
|
|
10
|
+
});
|
|
11
|
+
DropdownMenuContent.displayName = "@optiaxiom/react/DropdownMenuContent";
|
|
12
|
+
|
|
13
|
+
export { DropdownMenuContent };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixMenu from '@radix-ui/react-dropdown-menu';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { MenuItemBase } from '../menu-item-base/MenuItemBase.js';
|
|
5
|
+
|
|
6
|
+
const DropdownMenuItem = forwardRef(({ children, onSelect, ...props }, ref) => {
|
|
7
|
+
return /* @__PURE__ */ jsx(MenuItemBase, { ref, ...props, children: /* @__PURE__ */ jsx(RadixMenu.Item, { onSelect, children }) });
|
|
8
|
+
});
|
|
9
|
+
DropdownMenuItem.displayName = "@optiaxiom/react/DropdownMenuItem";
|
|
10
|
+
|
|
11
|
+
export { DropdownMenuItem };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixMenu from '@radix-ui/react-dropdown-menu';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { Box } from '../box/Box.js';
|
|
5
|
+
|
|
6
|
+
const DropdownMenuLabel = forwardRef(
|
|
7
|
+
({ children, ...props }, ref) => {
|
|
8
|
+
return /* @__PURE__ */ jsx(
|
|
9
|
+
Box,
|
|
10
|
+
{
|
|
11
|
+
asChild: true,
|
|
12
|
+
color: "fg.default",
|
|
13
|
+
fontSize: "md",
|
|
14
|
+
fontWeight: "600",
|
|
15
|
+
p: "xs",
|
|
16
|
+
ref,
|
|
17
|
+
...props,
|
|
18
|
+
children: /* @__PURE__ */ jsx(RadixMenu.Label, { children })
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
DropdownMenuLabel.displayName = "@optiaxiom/react/DropdownMenuLabel";
|
|
24
|
+
|
|
25
|
+
export { DropdownMenuLabel };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixMenu from '@radix-ui/react-dropdown-menu';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { Separator } from '../separator/Separator.js';
|
|
5
|
+
|
|
6
|
+
const DropdownMenuSeparator = forwardRef((props, ref) => /* @__PURE__ */ jsx(Separator, { asChild: true, bg: "border.secondary", mx: "-4", my: "2", ...props, children: /* @__PURE__ */ jsx(RadixMenu.Separator, { ref }) }));
|
|
7
|
+
DropdownMenuSeparator.displayName = "@optiaxiom/react/DropdownMenuSeparator";
|
|
8
|
+
|
|
9
|
+
export { DropdownMenuSeparator };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixMenu from '@radix-ui/react-dropdown-menu';
|
|
3
|
+
import { useControllableState } from '@radix-ui/react-use-controllable-state';
|
|
4
|
+
import { DropdownMenuSubContextProvider } from '../dropdown-menu-sub-context/DropdownMenuSubContext.js';
|
|
5
|
+
|
|
6
|
+
function DropdownMenuSub({
|
|
7
|
+
children,
|
|
8
|
+
defaultOpen,
|
|
9
|
+
onOpenChange,
|
|
10
|
+
open: openProp,
|
|
11
|
+
...props
|
|
12
|
+
}) {
|
|
13
|
+
const [open, setOpen] = useControllableState({
|
|
14
|
+
defaultProp: defaultOpen,
|
|
15
|
+
onChange: onOpenChange,
|
|
16
|
+
prop: openProp
|
|
17
|
+
});
|
|
18
|
+
return /* @__PURE__ */ jsx(RadixMenu.Sub, { onOpenChange: setOpen, open, ...props, children: /* @__PURE__ */ jsx(DropdownMenuSubContextProvider, { open, children }) });
|
|
19
|
+
}
|
|
20
|
+
DropdownMenuSub.displayName = "@optiaxiom/react/DropdownMenuSub";
|
|
21
|
+
|
|
22
|
+
export { DropdownMenuSub };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixMenu from '@radix-ui/react-dropdown-menu';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { useDropdownMenuSubContext } from '../dropdown-menu-sub-context/DropdownMenuSubContext.js';
|
|
5
|
+
import { MenuContentBase } from '../menu-content-base/MenuContentBase.js';
|
|
6
|
+
|
|
7
|
+
const DropdownMenuSubContent = forwardRef(({ alignOffset = -4, children, sideOffset = 2, ...props }, ref) => {
|
|
8
|
+
const { open } = useDropdownMenuSubContext("DropdownMenuSubContent");
|
|
9
|
+
return /* @__PURE__ */ jsx(MenuContentBase, { open, ...props, children: /* @__PURE__ */ jsx(
|
|
10
|
+
RadixMenu.SubContent,
|
|
11
|
+
{
|
|
12
|
+
alignOffset,
|
|
13
|
+
ref,
|
|
14
|
+
sideOffset,
|
|
15
|
+
children
|
|
16
|
+
}
|
|
17
|
+
) });
|
|
18
|
+
});
|
|
19
|
+
DropdownMenuSubContent.displayName = "@optiaxiom/react/DropdownMenuSubContent";
|
|
20
|
+
|
|
21
|
+
export { DropdownMenuSubContent };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixMenu from '@radix-ui/react-dropdown-menu';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { IconAngleRight } from '../icons/IconAngleRight.js';
|
|
5
|
+
import { MenuItemBase } from '../menu-item-base/MenuItemBase.js';
|
|
6
|
+
|
|
7
|
+
const DropdownMenuSubTrigger = forwardRef(({ children, ...props }, ref) => {
|
|
8
|
+
return /* @__PURE__ */ jsx(MenuItemBase, { addonAfter: /* @__PURE__ */ jsx(IconAngleRight, {}), ref, ...props, children: /* @__PURE__ */ jsx(RadixMenu.SubTrigger, { children }) });
|
|
9
|
+
});
|
|
10
|
+
DropdownMenuSubTrigger.displayName = "@optiaxiom/react/DropdownMenuSubTrigger";
|
|
11
|
+
|
|
12
|
+
export { DropdownMenuSubTrigger };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixMenu from '@radix-ui/react-dropdown-menu';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { MenuButton } from '../menu-button/MenuButton.js';
|
|
5
|
+
import { extractSprinkles } from '../sprinkles/extractSprinkles.js';
|
|
6
|
+
import '../sprinkles/sprinkles.js';
|
|
7
|
+
import '../sprinkles/sprinklesMerge.js';
|
|
8
|
+
|
|
9
|
+
const DropdownMenuTrigger = forwardRef(({ asChild, children, ...props }, ref) => {
|
|
10
|
+
const { restProps, sprinkleProps } = extractSprinkles(props);
|
|
11
|
+
return /* @__PURE__ */ jsx(RadixMenu.Trigger, { asChild: true, ref, ...sprinkleProps, children: asChild ? children : /* @__PURE__ */ jsx(MenuButton, { ...restProps, children }) });
|
|
12
|
+
});
|
|
13
|
+
DropdownMenuTrigger.displayName = "@optiaxiom/react/DropdownMenuTrigger";
|
|
14
|
+
|
|
15
|
+
export { DropdownMenuTrigger };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixLabel from '@radix-ui/react-label';
|
|
3
|
+
import { useId } from '@reach/auto-id';
|
|
4
|
+
import { forwardRef } from 'react';
|
|
5
|
+
import { Button } from '../button/Button.js';
|
|
6
|
+
import { FieldContext } from '../field-context/FieldContext.js';
|
|
7
|
+
import { Flex } from '../flex/Flex.js';
|
|
8
|
+
import { HoverCard } from '../hover-card/HoverCard.js';
|
|
9
|
+
import { HoverCardContent } from '../hover-card-content/HoverCardContent.js';
|
|
10
|
+
import { HoverCardTrigger } from '../hover-card-trigger/HoverCardTrigger.js';
|
|
11
|
+
import { IconCircleQuestion } from '../icons/IconCircleQuestion.js';
|
|
12
|
+
import { Text } from '../text/Text.js';
|
|
13
|
+
|
|
14
|
+
const Field = forwardRef(
|
|
15
|
+
({
|
|
16
|
+
children,
|
|
17
|
+
description,
|
|
18
|
+
error,
|
|
19
|
+
id: idProp,
|
|
20
|
+
info,
|
|
21
|
+
label,
|
|
22
|
+
required,
|
|
23
|
+
...props
|
|
24
|
+
}, ref) => {
|
|
25
|
+
const id = useId(idProp);
|
|
26
|
+
return /* @__PURE__ */ jsxs(Flex, { flexDirection: "column", gap: "4", ref, ...props, children: [
|
|
27
|
+
label && /* @__PURE__ */ jsxs(Flex, { flexDirection: "row", gap: "4", children: [
|
|
28
|
+
/* @__PURE__ */ jsx(
|
|
29
|
+
Text,
|
|
30
|
+
{
|
|
31
|
+
alignItems: "center",
|
|
32
|
+
asChild: true,
|
|
33
|
+
color: "fg.secondary",
|
|
34
|
+
display: "flex",
|
|
35
|
+
fontWeight: "400",
|
|
36
|
+
gap: "2",
|
|
37
|
+
children: /* @__PURE__ */ jsxs(RadixLabel.Root, { htmlFor: id, children: [
|
|
38
|
+
label,
|
|
39
|
+
required && /* @__PURE__ */ jsx(
|
|
40
|
+
Text,
|
|
41
|
+
{
|
|
42
|
+
"aria-hidden": "true",
|
|
43
|
+
asChild: true,
|
|
44
|
+
color: "fg.error",
|
|
45
|
+
fontWeight: "400",
|
|
46
|
+
children: /* @__PURE__ */ jsx("span", { children: "*" })
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
] })
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
info && /* @__PURE__ */ jsxs(HoverCard, { keepOpenOnActivation: true, children: [
|
|
53
|
+
/* @__PURE__ */ jsx(HoverCardTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
54
|
+
Button,
|
|
55
|
+
{
|
|
56
|
+
"aria-label": "Information hover",
|
|
57
|
+
border: "0",
|
|
58
|
+
h: "12",
|
|
59
|
+
icon: /* @__PURE__ */ jsx(IconCircleQuestion, {}),
|
|
60
|
+
p: "0",
|
|
61
|
+
w: "12"
|
|
62
|
+
}
|
|
63
|
+
) }),
|
|
64
|
+
/* @__PURE__ */ jsx(HoverCardContent, { side: "top", sideOffset: 5, children: info })
|
|
65
|
+
] })
|
|
66
|
+
] }),
|
|
67
|
+
/* @__PURE__ */ jsx(
|
|
68
|
+
FieldContext.Provider,
|
|
69
|
+
{
|
|
70
|
+
value: {
|
|
71
|
+
error: !!error,
|
|
72
|
+
id,
|
|
73
|
+
required
|
|
74
|
+
},
|
|
75
|
+
children
|
|
76
|
+
}
|
|
77
|
+
),
|
|
78
|
+
error && /* @__PURE__ */ jsx(Text, { color: "fg.error", fontSize: "sm", children: error }),
|
|
79
|
+
description && /* @__PURE__ */ jsx(Text, { color: "fg.tertiary", fontSize: "sm", children: description })
|
|
80
|
+
] });
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
Field.displayName = "@optiaxiom/react/Field";
|
|
84
|
+
|
|
85
|
+
export { Field };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useContext } from 'react';
|
|
2
|
+
import { FieldContext } from './FieldContext.js';
|
|
3
|
+
|
|
4
|
+
const useFieldContext = (overrides = {}) => {
|
|
5
|
+
return {
|
|
6
|
+
...useContext(FieldContext) ?? {},
|
|
7
|
+
..."error" in overrides && typeof overrides.error !== "undefined" && { error: overrides.error }
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { useFieldContext };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import { Box } from '../box/Box.js';
|
|
4
|
-
import { mapResponsiveValue } from '../sprinkles/sprinkles
|
|
4
|
+
import { mapResponsiveValue } from '../sprinkles/sprinkles.js';
|
|
5
|
+
import '../sprinkles/sprinklesMerge.js';
|
|
5
6
|
|
|
6
7
|
const mapDirectionToAlign = {
|
|
7
8
|
column: "stretch",
|
|
@@ -3,7 +3,7 @@ import { forwardRef } from 'react';
|
|
|
3
3
|
import { Box } from '../box/Box.js';
|
|
4
4
|
|
|
5
5
|
const Grid = forwardRef((props, ref) => {
|
|
6
|
-
return /* @__PURE__ */ jsx(Box, {
|
|
6
|
+
return /* @__PURE__ */ jsx(Box, { display: "grid", gap: "md", gridTemplateColumns: "1", ref, ...props });
|
|
7
7
|
});
|
|
8
8
|
Grid.displayName = "@optiaxiom/react/Grid";
|
|
9
9
|
|
|
@@ -20,9 +20,9 @@ const mapTagToFontSize = {
|
|
|
20
20
|
h6: "md"
|
|
21
21
|
};
|
|
22
22
|
const Heading = forwardRef(
|
|
23
|
-
({ asChild, children, level = "1",
|
|
23
|
+
({ appearance, asChild, children, level = "1", ...props }, ref) => {
|
|
24
24
|
const Comp = asChild ? Slot : mapLevelToTag[level];
|
|
25
|
-
const fontSize = mapTagToFontSize[
|
|
25
|
+
const fontSize = mapTagToFontSize[appearance ?? mapLevelToTag[level]];
|
|
26
26
|
return /* @__PURE__ */ jsx(Text, { asChild: true, fontSize, fontWeight: "700", ref, ...props, children: /* @__PURE__ */ jsx(Comp, { children }) });
|
|
27
27
|
}
|
|
28
28
|
);
|