@optiaxiom/react 0.1.0-next.14 → 0.1.0-next.15
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-DIhLXmjU.d.ts → PopoverContent-DHQm-nPQ.d.ts} +17 -7
- package/dist/accordion-trigger/AccordionTrigger-css.js +1 -1
- package/dist/alert/Alert-css.js +1 -1
- package/dist/alert-dialog/AlertDialog.js +16 -15
- package/dist/alert-dialog-action/AlertDialogAction.js +1 -3
- package/dist/alert-dialog-content/AlertDialogContent-css.js +8 -0
- package/dist/alert-dialog-content/AlertDialogContent.js +20 -0
- package/dist/alert-dialog-footer/AlertDialogFooter-css.js +1 -1
- package/dist/alert-dialog-title/AlertDialogTitle.js +2 -3
- package/dist/alert-dialog-trigger/AlertDialogTrigger.js +14 -0
- package/dist/animate-presence/AnimatePresence.js +4 -3
- package/dist/assets/src/{alert-dialog/AlertDialog.css.ts.vanilla-CpKGfNgS.css → alert-dialog-content/AlertDialogContent.css.ts.vanilla-CLM10r0f.css} +5 -5
- package/dist/assets/src/{dialog/Dialog.css.ts.vanilla-BlNHlzx8.css → dialog-content/DialogContent.css.ts.vanilla-B-pX7DR_.css} +6 -6
- package/dist/assets/src/{menu-content/MenuContent.css.ts.vanilla-BVK7SB5f.css → dropdown-menu-content/DropdownMenuContent.css.ts.vanilla-EXOZ-w-n.css} +1 -1
- package/dist/assets/src/dropdown-menu-item/DropdownMenuItem.css.ts.vanilla-iU0t5wQu.css +30 -0
- package/dist/assets/src/input-base/{InputBase.css.ts.vanilla-By5uGeYP.css → InputBase.css.ts.vanilla-CXpyZISC.css} +1 -0
- package/dist/assets/src/{search/Search.css.ts.vanilla-8Mi7WZBC.css → search-input/SearchInput.css.ts.vanilla-BTRVQpev.css} +1 -1
- package/dist/assets/src/styles/{theme.css.ts.vanilla-D9K5B5ZA.css → theme.css.ts.vanilla-BZP-0Wgr.css} +2 -2
- package/dist/avatar/Avatar-css.js +1 -1
- package/dist/axiom-provider/AxiomProvider.js +3 -1
- package/dist/badge/Badge-css.js +1 -1
- package/dist/box/Box-css.js +1 -1
- package/dist/{breadcrumbs/Breadcrumbs.js → breadcrumb/Breadcrumb.js} +5 -7
- package/dist/breadcrumb-ellipsis/BreadcrumbEllipsis.js +10 -0
- package/dist/breadcrumb-item/BreadcrumbItem.js +11 -4
- package/dist/breadcrumb-link/BreadcrumbLink.js +12 -0
- package/dist/breadcrumb-page/BreadcrumbPage.js +12 -0
- package/dist/breadcrumb-separator/BreadcrumbSeparator.js +14 -0
- package/dist/button/Button-css.js +1 -1
- package/dist/checkbox/Checkbox-css.js +1 -1
- package/dist/combobox/Combobox.js +3 -3
- package/dist/combobox-content/ComboboxContent.js +2 -2
- package/dist/command-item/CommandItem-css.js +1 -1
- package/dist/control-base/ControlBase-css.js +2 -2
- package/dist/control-base/ControlBase.js +9 -1
- package/dist/dialog/Dialog.js +27 -39
- package/dist/dialog-body/DialogBody-css.js +1 -1
- package/dist/{menu-trigger/MenuTrigger.js → dialog-close/DialogClose.js} +5 -6
- package/dist/{dialog/Dialog-css.js → dialog-content/DialogContent-css.js} +4 -4
- package/dist/dialog-content/DialogContent.js +38 -0
- package/dist/dialog-context/DialogContext.js +5 -0
- package/dist/dialog-description/DialogDescription.js +23 -0
- package/dist/dialog-title/DialogTitle.js +15 -11
- package/dist/dialog-trigger/DialogTrigger.js +16 -0
- package/dist/{menu/Menu.js → dropdown-menu/DropdownMenu.js} +7 -7
- package/dist/{menu-content/MenuContent-css.js → dropdown-menu-content/DropdownMenuContent-css.js} +2 -2
- package/dist/{menu-content/MenuContent.js → dropdown-menu-content/DropdownMenuContent.js} +6 -6
- package/dist/dropdown-menu-context/DropdownMenuContext.js +5 -0
- package/dist/dropdown-menu-item/DropdownMenuItem-css.js +8 -0
- package/dist/{menu-item/MenuItem.js → dropdown-menu-item/DropdownMenuItem.js} +4 -4
- package/dist/{menu-label/MenuLabel.js → dropdown-menu-label/DropdownMenuLabel.js} +3 -3
- package/dist/dropdown-menu-separator/DropdownMenuSeparator.js +9 -0
- package/dist/dropdown-menu-trigger/DropdownMenuTrigger.js +15 -0
- package/dist/hover-card/HoverCard.js +3 -3
- package/dist/index.d.ts +197 -175
- package/dist/index.js +13 -9
- package/dist/input-base/InputBase-css.js +3 -3
- package/dist/link/Link-css.js +1 -1
- package/dist/pagination/Pagination-css.js +1 -1
- package/dist/pill/Pill-css.js +1 -1
- package/dist/popover/Popover.js +3 -3
- package/dist/radio-group/RadioGroup.js +26 -8
- package/dist/radio-group-item/RadioGroupItem-css.js +1 -1
- package/dist/search-input/SearchInput-css.js +8 -0
- package/dist/{search/Search.js → search-input/SearchInput.js} +4 -4
- package/dist/sprinkles/sprinkles-css.js +1 -1
- package/dist/styles/theme-css.js +1 -1
- package/dist/switch/Switch-css.js +1 -1
- package/dist/table-cell/TableCell-css.js +1 -1
- package/dist/tabs-list/TabsList-css.js +1 -1
- package/dist/tabs-trigger/TabsTrigger-css.js +1 -1
- package/dist/toast/Toast-css.js +1 -1
- package/dist/transition/Transition.js +1 -1
- package/dist/unstable.d.ts +69 -25
- package/dist/unstable.js +6 -0
- package/package.json +7 -7
- package/dist/alert-dialog/AlertDialog-css.js +0 -8
- package/dist/assets/src/menu-item/MenuItem.css.ts.vanilla-BjEdkhqZ.css +0 -30
- package/dist/breadcrumbs/useBreadcrumbItems.js +0 -35
- package/dist/menu-context/MenuContext.js +0 -5
- package/dist/menu-item/MenuItem-css.js +0 -8
- package/dist/menu-separator/MenuSeparator.js +0 -11
- package/dist/search/Search-css.js +0 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as RadixPopover from '@radix-ui/react-popover';
|
|
3
1
|
import * as react from 'react';
|
|
4
2
|
import { ElementType, ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
+
import * as RadixPopover from '@radix-ui/react-popover';
|
|
5
5
|
import * as _vanilla_extract_sprinkles from '@vanilla-extract/sprinkles';
|
|
6
6
|
|
|
7
7
|
declare const sprinkles: ((props: {
|
|
@@ -343,15 +343,25 @@ declare const Box: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLP
|
|
|
343
343
|
className?: string;
|
|
344
344
|
} & Sprinkles, never> & react.RefAttributes<HTMLDivElement>>;
|
|
345
345
|
|
|
346
|
+
declare const Link: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref">, "color" | "className"> & Omit<{
|
|
347
|
+
asChild?: boolean;
|
|
348
|
+
className?: string;
|
|
349
|
+
} & Sprinkles, never> & {
|
|
350
|
+
disabled?: boolean;
|
|
351
|
+
external?: boolean;
|
|
352
|
+
} & {
|
|
353
|
+
colorScheme?: "primary" | "secondary" | "neutral" | undefined;
|
|
354
|
+
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
355
|
+
|
|
346
356
|
type PopoverProps = BoxProps<typeof RadixPopover.Root>;
|
|
347
|
-
declare
|
|
348
|
-
|
|
349
|
-
displayName: string;
|
|
350
|
-
}
|
|
357
|
+
declare function Popover({ children, defaultOpen, onOpenChange, open: openProp, ...props }: PopoverProps): react_jsx_runtime.JSX.Element;
|
|
358
|
+
declare namespace Popover {
|
|
359
|
+
var displayName: string;
|
|
360
|
+
}
|
|
351
361
|
|
|
352
362
|
type PopoverContentProps = BoxProps<typeof RadixPopover.Content, {
|
|
353
363
|
withArrow?: boolean;
|
|
354
364
|
}>;
|
|
355
365
|
declare const PopoverContent: react.ForwardRefExoticComponent<Omit<PopoverContentProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
356
366
|
|
|
357
|
-
export { type BoxProps as B, type ExtendProps as E, Popover as P, type Sprinkles as S, Box as a, PopoverContent as b, mapResponsiveValue as m, sprinkles as s };
|
|
367
|
+
export { type BoxProps as B, type ExtendProps as E, Link as L, Popover as P, type Sprinkles as S, Box as a, PopoverContent as b, mapResponsiveValue as m, sprinkles as s };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css';
|
|
2
|
-
import './../assets/src/styles/theme.css.ts.vanilla-
|
|
2
|
+
import './../assets/src/styles/theme.css.ts.vanilla-BZP-0Wgr.css';
|
|
3
3
|
import './../assets/src/accordion-trigger/AccordionTrigger.css.ts.vanilla-DWIMlWE2.css';
|
|
4
4
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
5
5
|
|
package/dist/alert/Alert-css.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css';
|
|
2
|
-
import './../assets/src/styles/theme.css.ts.vanilla-
|
|
2
|
+
import './../assets/src/styles/theme.css.ts.vanilla-BZP-0Wgr.css';
|
|
3
3
|
import './../assets/src/alert/Alert.css.ts.vanilla-SoeL3DzR.css';
|
|
4
4
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
5
5
|
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { jsx
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import * as RadixAlertDialog from '@radix-ui/react-alert-dialog';
|
|
3
|
-
import {
|
|
3
|
+
import { useControllableState } from '@radix-ui/react-use-controllable-state';
|
|
4
4
|
import { AlertDialogContextProvider } from '../alert-dialog-context/AlertDialogContext.js';
|
|
5
|
-
import { AnimatePresence } from '../animate-presence/AnimatePresence.js';
|
|
6
|
-
import '../animate-presence/PresenceContext.js';
|
|
7
|
-
import { Box } from '../box/Box.js';
|
|
8
|
-
import { Transition } from '../transition/Transition.js';
|
|
9
|
-
import { overlay, content } from './AlertDialog-css.js';
|
|
10
5
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
function AlertDialog({
|
|
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(RadixAlertDialog.Root, { onOpenChange: setOpen, open, ...props, children: /* @__PURE__ */ jsx(AlertDialogContextProvider, { open, children }) });
|
|
19
|
+
}
|
|
19
20
|
AlertDialog.displayName = "@optiaxiom/react/AlertDialog";
|
|
20
21
|
|
|
21
22
|
export { AlertDialog };
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import * as RadixAlertDialog from '@radix-ui/react-alert-dialog';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
|
-
import { useAlertDialogContext } from '../alert-dialog-context/AlertDialogContext.js';
|
|
5
4
|
import { Button } from '../button/Button.js';
|
|
6
5
|
import { extractSprinkles } from '../sprinkles/extractSprinkles.js';
|
|
7
6
|
import '../sprinkles/sprinkles-css.js';
|
|
8
7
|
|
|
9
8
|
const AlertDialogAction = forwardRef(({ asChild, children, ...props }, ref) => {
|
|
10
9
|
const { restProps, sprinkleProps } = extractSprinkles(props);
|
|
11
|
-
|
|
12
|
-
return /* @__PURE__ */ jsx(RadixAlertDialog.Action, { asChild: true, ref, ...sprinkleProps, children: asChild ? children : /* @__PURE__ */ jsx(Button, { appearance, ...restProps, children }) });
|
|
10
|
+
return /* @__PURE__ */ jsx(RadixAlertDialog.Action, { asChild: true, ref, ...sprinkleProps, children: asChild ? children : /* @__PURE__ */ jsx(Button, { appearance: "danger", ...restProps, children }) });
|
|
13
11
|
});
|
|
14
12
|
AlertDialogAction.displayName = "@optiaxiom/react/AlertDialogAction";
|
|
15
13
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css';
|
|
2
|
+
import './../assets/src/alert-dialog-content/AlertDialogContent.css.ts.vanilla-CLM10r0f.css';
|
|
3
|
+
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
4
|
+
|
|
5
|
+
var content = recipeRuntime({base:[{bg:'surface',rounded:'lg',shadow:'md',z:'popover'},'_9uddf50'],variants:{size:{sm:'_9uddf51',md:'_9uddf52',lg:'_9uddf53'}}});
|
|
6
|
+
var overlay = recipeRuntime({base:[{bg:'overlay',z:'popover'},'_9uddf54']});
|
|
7
|
+
|
|
8
|
+
export { content, overlay };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixAlertDialog from '@radix-ui/react-alert-dialog';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { useAlertDialogContext, AlertDialogContextProvider } from '../alert-dialog-context/AlertDialogContext.js';
|
|
5
|
+
import { AnimatePresence } from '../animate-presence/AnimatePresence.js';
|
|
6
|
+
import '../animate-presence/PresenceContext.js';
|
|
7
|
+
import { Box } from '../box/Box.js';
|
|
8
|
+
import { Transition } from '../transition/Transition.js';
|
|
9
|
+
import { overlay, content } from './AlertDialogContent-css.js';
|
|
10
|
+
|
|
11
|
+
const AlertDialogContent = forwardRef(({ children, size = "sm", ...props }, ref) => {
|
|
12
|
+
const { open } = useAlertDialogContext("AlertDialogContent");
|
|
13
|
+
return /* @__PURE__ */ jsx(AnimatePresence, { children: open && /* @__PURE__ */ jsxs(RadixAlertDialog.Portal, { forceMount: true, children: [
|
|
14
|
+
/* @__PURE__ */ jsx(Transition, { children: /* @__PURE__ */ jsx(Box, { asChild: true, ...overlay(), children: /* @__PURE__ */ jsx(RadixAlertDialog.Overlay, {}) }) }),
|
|
15
|
+
/* @__PURE__ */ jsx(Transition, { "data-side": "bottom", type: "fade", children: /* @__PURE__ */ jsx(Box, { asChild: true, ...content({ size }), children: /* @__PURE__ */ jsx(RadixAlertDialog.Content, { ref, ...props, children: /* @__PURE__ */ jsx(AlertDialogContextProvider, { open, children }) }) }) })
|
|
16
|
+
] }) });
|
|
17
|
+
});
|
|
18
|
+
AlertDialogContent.displayName = "@optiaxiom/react/AlertDialogContent";
|
|
19
|
+
|
|
20
|
+
export { AlertDialogContent };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css';
|
|
2
|
-
import './../assets/src/styles/theme.css.ts.vanilla-
|
|
2
|
+
import './../assets/src/styles/theme.css.ts.vanilla-BZP-0Wgr.css';
|
|
3
3
|
import './../assets/src/alert-dialog-footer/AlertDialogFooter.css.ts.vanilla-3HiYmspb.css';
|
|
4
4
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
5
5
|
|
|
@@ -10,9 +10,8 @@ const AlertDialogTitle = forwardRef(({ children, ...props }, ref) => {
|
|
|
10
10
|
asChild: true,
|
|
11
11
|
fontWeight: "500",
|
|
12
12
|
level: "3",
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
px: "24",
|
|
13
|
+
p: "lg",
|
|
14
|
+
pb: "md",
|
|
16
15
|
ref,
|
|
17
16
|
...props,
|
|
18
17
|
children: /* @__PURE__ */ jsx(RadixAlertDialog.Title, { children })
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import * as RadixAlertDialog from '@radix-ui/react-alert-dialog';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { Button } from '../button/Button.js';
|
|
5
|
+
import { extractSprinkles } from '../sprinkles/extractSprinkles.js';
|
|
6
|
+
import '../sprinkles/sprinkles-css.js';
|
|
7
|
+
|
|
8
|
+
const AlertDialogTrigger = forwardRef(({ asChild, children, ...props }, ref) => {
|
|
9
|
+
const { restProps, sprinkleProps } = extractSprinkles(props);
|
|
10
|
+
return /* @__PURE__ */ jsx(RadixAlertDialog.Trigger, { asChild: true, ref, ...sprinkleProps, children: asChild ? children : /* @__PURE__ */ jsx(Button, { ...restProps, children }) });
|
|
11
|
+
});
|
|
12
|
+
AlertDialogTrigger.displayName = "@optiaxiom/react/AlertDialogTrigger";
|
|
13
|
+
|
|
14
|
+
export { AlertDialogTrigger };
|
|
@@ -2,9 +2,9 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useState, useRef, useCallback, useEffect } from 'react';
|
|
3
3
|
import { PresenceContext } from './PresenceContext.js';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
function AnimatePresence({
|
|
6
6
|
children
|
|
7
|
-
})
|
|
7
|
+
}) {
|
|
8
8
|
const [exiting, setExiting] = useState(
|
|
9
9
|
/* @__PURE__ */ new Map()
|
|
10
10
|
);
|
|
@@ -31,6 +31,7 @@ const AnimatePresence = ({
|
|
|
31
31
|
}
|
|
32
32
|
}, [exiting, isPresent]);
|
|
33
33
|
return /* @__PURE__ */ jsx(PresenceContext.Provider, { value: { isPresent, onExitComplete, register }, children: children || ([...exiting.values()].some(Boolean) ? lastChildren.current : null) });
|
|
34
|
-
}
|
|
34
|
+
}
|
|
35
|
+
AnimatePresence.displayName = "@optiaxiom/react/AnimatePresence";
|
|
35
36
|
|
|
36
37
|
export { AnimatePresence };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
@layer optiaxiom._1kfj4ga1;
|
|
2
2
|
@layer optiaxiom._1kfj4ga1 {
|
|
3
|
-
.
|
|
3
|
+
._9uddf50 {
|
|
4
4
|
left: 50%;
|
|
5
5
|
max-width: calc(100dvw - 2 * 24px);
|
|
6
6
|
position: fixed;
|
|
7
7
|
top: 50%;
|
|
8
8
|
translate: -50% -50%;
|
|
9
9
|
}
|
|
10
|
-
.
|
|
10
|
+
._9uddf51 {
|
|
11
11
|
width: 400px;
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
._9uddf52 {
|
|
14
14
|
width: 600px;
|
|
15
15
|
}
|
|
16
|
-
.
|
|
16
|
+
._9uddf53 {
|
|
17
17
|
width: 800px;
|
|
18
18
|
}
|
|
19
|
-
.
|
|
19
|
+
._9uddf54 {
|
|
20
20
|
inset: 0;
|
|
21
21
|
position: fixed;
|
|
22
22
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
@layer optiaxiom._1kfj4ga1;
|
|
2
2
|
@layer optiaxiom._1kfj4ga1 {
|
|
3
|
-
.
|
|
3
|
+
._16k1qec0 {
|
|
4
4
|
left: 50%;
|
|
5
5
|
max-width: calc(100dvw - 2 * 24px);
|
|
6
6
|
position: fixed;
|
|
7
7
|
top: 50%;
|
|
8
8
|
translate: -50% -50%;
|
|
9
9
|
}
|
|
10
|
-
.
|
|
10
|
+
._16k1qec1 {
|
|
11
11
|
width: 400px;
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
._16k1qec2 {
|
|
14
14
|
width: 600px;
|
|
15
15
|
}
|
|
16
|
-
.
|
|
16
|
+
._16k1qec3 {
|
|
17
17
|
width: 800px;
|
|
18
18
|
}
|
|
19
|
-
.
|
|
19
|
+
._16k1qec4 {
|
|
20
20
|
inset: 0;
|
|
21
21
|
position: fixed;
|
|
22
22
|
}
|
|
23
|
-
.
|
|
23
|
+
._16k1qec5 {
|
|
24
24
|
position: absolute;
|
|
25
25
|
right: 24px;
|
|
26
26
|
top: 24px;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@layer optiaxiom._1kfj4ga1;
|
|
2
|
+
@layer optiaxiom._1kfj4ga1 {
|
|
3
|
+
._10p8y0d2 {
|
|
4
|
+
user-select: none;
|
|
5
|
+
}
|
|
6
|
+
._10p8y0d2:focus-visible {
|
|
7
|
+
outline: 2px solid transparent;
|
|
8
|
+
}
|
|
9
|
+
._10p8y0d2:not([data-disabled]) {
|
|
10
|
+
color: var(--_10p8y0d1);
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
}
|
|
13
|
+
._10p8y0d2:not([data-disabled])[data-highlighted] {
|
|
14
|
+
background-color: var(--_10p8y0d0);
|
|
15
|
+
}
|
|
16
|
+
._10p8y0d2:not([data-disabled])[data-highlighted]:active {
|
|
17
|
+
background-color: var(--ax-colors-neutral-1200-12);
|
|
18
|
+
}
|
|
19
|
+
._10p8y0d2[data-disabled] {
|
|
20
|
+
color: var(--ax-colors-fg-disabled);
|
|
21
|
+
}
|
|
22
|
+
._10p8y0d3 {
|
|
23
|
+
--_10p8y0d1: var(--ax-colors-fg-error);
|
|
24
|
+
--_10p8y0d0: var(--ax-colors-bg-error);
|
|
25
|
+
}
|
|
26
|
+
._10p8y0d4 {
|
|
27
|
+
--_10p8y0d1: var(--ax-colors-fg-default);
|
|
28
|
+
--_10p8y0d0: var(--ax-colors-bg-input-disabled);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
:root {
|
|
1
|
+
:root, :host {
|
|
2
2
|
--ax-borderRadius-xs: 0.125rem;
|
|
3
3
|
--ax-borderRadius-sm: 0.25rem;
|
|
4
4
|
--ax-borderRadius-md: 0.375rem;
|
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
--ax-zIndex-popover: 3000;
|
|
338
338
|
--ax-zIndex-toast: 3010;
|
|
339
339
|
}
|
|
340
|
-
:root.dark {
|
|
340
|
+
:root.dark, :host.dark {
|
|
341
341
|
--ax-borderRadius-xs: 0.125rem;
|
|
342
342
|
--ax-borderRadius-sm: 0.25rem;
|
|
343
343
|
--ax-borderRadius-md: 0.375rem;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css';
|
|
2
|
-
import './../assets/src/styles/theme.css.ts.vanilla-
|
|
2
|
+
import './../assets/src/styles/theme.css.ts.vanilla-BZP-0Wgr.css';
|
|
3
3
|
import './../assets/src/table-row/TableRow.css.ts.vanilla-4BGjgIuZ.css';
|
|
4
4
|
import './../assets/src/avatar/Avatar.css.ts.vanilla-DxtsIDr-.css';
|
|
5
5
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import * as RadixTooltip from '@radix-ui/react-tooltip';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
function AxiomProvider({ children, tooltip }) {
|
|
5
|
+
return /* @__PURE__ */ jsx(RadixTooltip.Provider, { ...tooltip, children });
|
|
6
|
+
}
|
|
5
7
|
AxiomProvider.displayName = "@optiaxiom/react/AxiomProvider";
|
|
6
8
|
|
|
7
9
|
export { AxiomProvider };
|
package/dist/badge/Badge-css.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css';
|
|
2
|
-
import './../assets/src/styles/theme.css.ts.vanilla-
|
|
2
|
+
import './../assets/src/styles/theme.css.ts.vanilla-BZP-0Wgr.css';
|
|
3
3
|
import './../assets/src/badge/Badge.css.ts.vanilla-D5YRrHke.css';
|
|
4
4
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
5
5
|
|
package/dist/box/Box-css.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css';
|
|
2
|
-
import './../assets/src/styles/theme.css.ts.vanilla-
|
|
2
|
+
import './../assets/src/styles/theme.css.ts.vanilla-BZP-0Wgr.css';
|
|
3
3
|
import './../assets/src/box/Box.css.ts.vanilla-DLsoitAb.css';
|
|
4
4
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
5
5
|
|
|
@@ -3,15 +3,13 @@ import { forwardRef } from 'react';
|
|
|
3
3
|
import { Box } from '../box/Box.js';
|
|
4
4
|
import { extractSprinkles } from '../sprinkles/extractSprinkles.js';
|
|
5
5
|
import '../sprinkles/sprinkles-css.js';
|
|
6
|
-
import { useBreadcrumbItems } from './useBreadcrumbItems.js';
|
|
7
6
|
|
|
8
|
-
const
|
|
9
|
-
({ children,
|
|
7
|
+
const Breadcrumb = forwardRef(
|
|
8
|
+
({ children, ...props }, ref) => {
|
|
10
9
|
const { restProps, sprinkleProps } = extractSprinkles(props);
|
|
11
|
-
|
|
12
|
-
return /* @__PURE__ */ jsx(Box, { asChild: true, ...sprinkleProps, children: /* @__PURE__ */ jsx("nav", { "aria-label": "Breadcrumb", ref, ...restProps, children: /* @__PURE__ */ jsx(Box, { alignItems: "center", asChild: true, display: "flex", gap: "xs", children: /* @__PURE__ */ jsx("ol", { children: visibleItems }) }) }) });
|
|
10
|
+
return /* @__PURE__ */ jsx(Box, { asChild: true, ...sprinkleProps, children: /* @__PURE__ */ jsx("nav", { "aria-label": "Breadcrumb", ref, ...restProps, children: /* @__PURE__ */ jsx(Box, { alignItems: "center", asChild: true, display: "flex", gap: "xs", children: /* @__PURE__ */ jsx("ol", { children }) }) }) });
|
|
13
11
|
}
|
|
14
12
|
);
|
|
15
|
-
|
|
13
|
+
Breadcrumb.displayName = "@optiaxiom/react/Breadcrumb";
|
|
16
14
|
|
|
17
|
-
export {
|
|
15
|
+
export { Breadcrumb };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Box } from '../box/Box.js';
|
|
3
|
+
import { IconEllipsis } from '../icons/IconEllipsis.js';
|
|
4
|
+
|
|
5
|
+
function BreadcrumbEllipsis({ ...props }) {
|
|
6
|
+
return /* @__PURE__ */ jsx(Box, { asChild: true, display: "flex", ...props, children: /* @__PURE__ */ jsx(IconEllipsis, {}) });
|
|
7
|
+
}
|
|
8
|
+
BreadcrumbEllipsis.displayName = "@optiaxiom/react/BreadcrumbEllipsis";
|
|
9
|
+
|
|
10
|
+
export { BreadcrumbEllipsis };
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { Box } from '../box/Box.js';
|
|
4
|
+
import { extractSprinkles } from '../sprinkles/extractSprinkles.js';
|
|
5
|
+
import '../sprinkles/sprinkles-css.js';
|
|
3
6
|
|
|
4
|
-
const BreadcrumbItem = (
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
+
const BreadcrumbItem = forwardRef(
|
|
8
|
+
({ children, ...props }, ref) => {
|
|
9
|
+
const { restProps, sprinkleProps } = extractSprinkles(props);
|
|
10
|
+
return /* @__PURE__ */ jsx(Box, { asChild: true, ...sprinkleProps, children: /* @__PURE__ */ jsx("li", { ref, ...restProps, children }) });
|
|
11
|
+
}
|
|
12
|
+
);
|
|
13
|
+
BreadcrumbItem.displayName = "@optiaxiom/react/BreadcrumbItem";
|
|
7
14
|
|
|
8
15
|
export { BreadcrumbItem };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Slot } from '@radix-ui/react-slot';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { Link } from '../link/Link.js';
|
|
5
|
+
|
|
6
|
+
const BreadcrumbLink = forwardRef(({ asChild, ...props }, ref) => {
|
|
7
|
+
const Comp = asChild ? Slot : Link;
|
|
8
|
+
return /* @__PURE__ */ jsx(Comp, { ref, ...props });
|
|
9
|
+
});
|
|
10
|
+
BreadcrumbLink.displayName = "@optiaxiom/react/BreadcrumbLink";
|
|
11
|
+
|
|
12
|
+
export { BreadcrumbLink };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { Box } from '../box/Box.js';
|
|
4
|
+
|
|
5
|
+
const BreadcrumbPage = forwardRef(
|
|
6
|
+
({ ...props }, ref) => {
|
|
7
|
+
return /* @__PURE__ */ jsx(Box, { asChild: true, children: /* @__PURE__ */ jsx("span", { ref, ...props }) });
|
|
8
|
+
}
|
|
9
|
+
);
|
|
10
|
+
BreadcrumbPage.displayName = "@optiaxiom/react/BreadcrumbPage";
|
|
11
|
+
|
|
12
|
+
export { BreadcrumbPage };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Box } from '../box/Box.js';
|
|
3
|
+
|
|
4
|
+
function BreadcrumbSeparator({
|
|
5
|
+
asChild,
|
|
6
|
+
children,
|
|
7
|
+
...props
|
|
8
|
+
}) {
|
|
9
|
+
const Comp = asChild ? Box : "span";
|
|
10
|
+
return /* @__PURE__ */ jsx(Comp, { ...props, children: children ?? /* @__PURE__ */ jsx("span", { children: "/" }) });
|
|
11
|
+
}
|
|
12
|
+
BreadcrumbSeparator.displayName = "@optiaxiom/react/BreadcrumbSeparator";
|
|
13
|
+
|
|
14
|
+
export { BreadcrumbSeparator };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css';
|
|
2
|
-
import './../assets/src/styles/theme.css.ts.vanilla-
|
|
2
|
+
import './../assets/src/styles/theme.css.ts.vanilla-BZP-0Wgr.css';
|
|
3
3
|
import './../assets/src/table-row/TableRow.css.ts.vanilla-4BGjgIuZ.css';
|
|
4
4
|
import './../assets/src/button/Button.css.ts.vanilla-DeHH8Xkd.css';
|
|
5
5
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css';
|
|
2
|
-
import './../assets/src/styles/theme.css.ts.vanilla-
|
|
2
|
+
import './../assets/src/styles/theme.css.ts.vanilla-BZP-0Wgr.css';
|
|
3
3
|
import './../assets/src/control-base/ControlBase.css.ts.vanilla-DGX7Yb9J.css';
|
|
4
4
|
import './../assets/src/checkbox/Checkbox.css.ts.vanilla-w5cdPwHc.css';
|
|
5
5
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
@@ -3,7 +3,7 @@ import { useControllableState } from '@radix-ui/react-use-controllable-state';
|
|
|
3
3
|
import { ComboboxContextProvider } from '../combobox-context/ComboboxContext.js';
|
|
4
4
|
import { Popover } from '../popover/Popover.js';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
function Combobox({
|
|
7
7
|
children,
|
|
8
8
|
defaultOpen,
|
|
9
9
|
defaultValue = "",
|
|
@@ -12,7 +12,7 @@ const Combobox = ({
|
|
|
12
12
|
onValueChange,
|
|
13
13
|
open: openProp,
|
|
14
14
|
value: valueProp
|
|
15
|
-
})
|
|
15
|
+
}) {
|
|
16
16
|
const [open, setOpen] = useControllableState({
|
|
17
17
|
defaultProp: defaultOpen,
|
|
18
18
|
onChange: onOpenChange,
|
|
@@ -34,7 +34,7 @@ const Combobox = ({
|
|
|
34
34
|
children: /* @__PURE__ */ jsx(Popover, { onOpenChange: setOpen, open, children })
|
|
35
35
|
}
|
|
36
36
|
);
|
|
37
|
-
}
|
|
37
|
+
}
|
|
38
38
|
Combobox.displayName = "@optiaxiom/react/Combobox";
|
|
39
39
|
|
|
40
40
|
export { Combobox };
|
|
@@ -5,7 +5,7 @@ import { Command } from '../command/Command.js';
|
|
|
5
5
|
import { CommandInput } from '../command-input/CommandInput.js';
|
|
6
6
|
import { CommandSeparator } from '../command-separator/CommandSeparator.js';
|
|
7
7
|
import { PopoverContent } from '../popover-content/PopoverContent.js';
|
|
8
|
-
import {
|
|
8
|
+
import { SearchInput } from '../search-input/SearchInput.js';
|
|
9
9
|
|
|
10
10
|
const ComboboxContent = forwardRef(
|
|
11
11
|
({ asChild, children, ...props }, ref) => {
|
|
@@ -13,7 +13,7 @@ const ComboboxContent = forwardRef(
|
|
|
13
13
|
if (!context)
|
|
14
14
|
throw new Error("ComboboxContent must be used within a Combobox");
|
|
15
15
|
return /* @__PURE__ */ jsx(PopoverContent, { asChild: true, p: "0", ref, ...props, children: asChild ? children : /* @__PURE__ */ jsxs(Command, { children: [
|
|
16
|
-
/* @__PURE__ */ jsx(CommandInput, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
16
|
+
/* @__PURE__ */ jsx(CommandInput, { asChild: true, children: /* @__PURE__ */ jsx(SearchInput, { m: "2" }) }),
|
|
17
17
|
/* @__PURE__ */ jsx(CommandSeparator, { alwaysRender: true }),
|
|
18
18
|
children
|
|
19
19
|
] }) });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css';
|
|
2
|
-
import './../assets/src/styles/theme.css.ts.vanilla-
|
|
2
|
+
import './../assets/src/styles/theme.css.ts.vanilla-BZP-0Wgr.css';
|
|
3
3
|
import './../assets/src/command-item/CommandItem.css.ts.vanilla-ml8xjFWy.css';
|
|
4
4
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
5
5
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css';
|
|
2
|
-
import './../assets/src/styles/theme.css.ts.vanilla-
|
|
2
|
+
import './../assets/src/styles/theme.css.ts.vanilla-BZP-0Wgr.css';
|
|
3
3
|
import './../assets/src/control-base/ControlBase.css.ts.vanilla-DGX7Yb9J.css';
|
|
4
4
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
5
5
|
|
|
6
6
|
var controlBase = recipeRuntime({base:[{display:'grid'},'_7uwxjo2']});
|
|
7
|
-
var decorator = recipeRuntime({base:[{pl:'xs'},'_7uwxjo5']});
|
|
7
|
+
var decorator = recipeRuntime({base:[{fontSize:'sm',pl:'xs'},'_7uwxjo5']});
|
|
8
8
|
var indicator = recipeRuntime({base:['_7uwxjo0','_7uwxjo3']});
|
|
9
9
|
var label = recipeRuntime({base:[{alignItems:'center',display:'flex',overflow:'hidden',pl:'xs'},'_7uwxjo4']});
|
|
10
10
|
|
|
@@ -20,7 +20,15 @@ const ControlBase = forwardRef(
|
|
|
20
20
|
...restProps
|
|
21
21
|
}) }),
|
|
22
22
|
/* @__PURE__ */ jsx(Text, { asChild: true, ...label(), children: /* @__PURE__ */ jsx(RadixLabel.Root, { htmlFor: id, children }) }),
|
|
23
|
-
endDecorator && /* @__PURE__ */ jsx(
|
|
23
|
+
endDecorator && /* @__PURE__ */ jsx(
|
|
24
|
+
Box,
|
|
25
|
+
{
|
|
26
|
+
asChild: true,
|
|
27
|
+
color: props.disabled ? "fg.disabled" : "fg.secondary",
|
|
28
|
+
...decorator(),
|
|
29
|
+
children: fallbackSpan(endDecorator)
|
|
30
|
+
}
|
|
31
|
+
)
|
|
24
32
|
] });
|
|
25
33
|
}
|
|
26
34
|
);
|