@optiaxiom/react 0.1.0-next.12 → 0.1.0-next.14
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-DGBVbvBc.d.ts → PopoverContent-DIhLXmjU.d.ts} +49 -54
- package/dist/accordion/Accordion.js +4 -3
- package/dist/accordion-content/AccordionContent.js +1 -1
- package/dist/accordion-context/AccordionContext.js +5 -0
- package/dist/accordion-item/AccordionItem.js +4 -1
- package/dist/accordion-trigger/AccordionTrigger-css.js +5 -3
- package/dist/accordion-trigger/AccordionTrigger.js +12 -20
- package/dist/alert/Alert-css.js +1 -1
- package/dist/alert-dialog/AlertDialog-css.js +2 -6
- package/dist/alert-dialog/AlertDialog.js +6 -25
- package/dist/alert-dialog-action/AlertDialogAction.js +16 -0
- package/dist/alert-dialog-cancel/AlertDialogCancel.js +14 -0
- package/dist/alert-dialog-context/AlertDialogContext.js +5 -0
- package/dist/alert-dialog-description/AlertDialogDescription-css.js +7 -0
- package/dist/alert-dialog-description/AlertDialogDescription.js +12 -0
- package/dist/alert-dialog-footer/AlertDialogFooter-css.js +8 -0
- package/dist/alert-dialog-footer/AlertDialogFooter.js +11 -0
- package/dist/alert-dialog-title/AlertDialogTitle.js +24 -0
- package/dist/assets/src/accordion-trigger/AccordionTrigger.css.ts.vanilla-DWIMlWE2.css +16 -0
- package/dist/assets/src/alert-dialog/{AlertDialog.css.ts.vanilla-WdIe6m3g.css → AlertDialog.css.ts.vanilla-CpKGfNgS.css} +0 -6
- package/dist/assets/src/alert-dialog-description/AlertDialogDescription.css.ts.vanilla-B7BawTGq.css +6 -0
- package/dist/assets/src/alert-dialog-footer/AlertDialogFooter.css.ts.vanilla-3HiYmspb.css +6 -0
- package/dist/assets/src/avatar/Avatar.css.ts.vanilla-DxtsIDr-.css +24 -0
- package/dist/assets/src/box/{Box.css.ts.vanilla-D1mbecuN.css → Box.css.ts.vanilla-DLsoitAb.css} +5 -0
- package/dist/assets/src/button/{Button.css.ts.vanilla-BVWox07Y.css → Button.css.ts.vanilla-DeHH8Xkd.css} +43 -34
- package/dist/assets/src/command-item/CommandItem.css.ts.vanilla-ml8xjFWy.css +17 -0
- package/dist/assets/src/command-list/CommandList.css.ts.vanilla-1Rf8xvwM.css +9 -0
- package/dist/assets/src/pill/Pill.css.ts.vanilla-CMi1obNV.css +12 -0
- package/dist/assets/src/sprinkles/{sprinkles.css.ts.vanilla-DVqWpdFR.css → sprinkles.css.ts.vanilla-o1FSIYj0.css} +2292 -2243
- package/dist/assets/src/styles/{theme.css.ts.vanilla-DWW2Oo9s.css → theme.css.ts.vanilla-D9K5B5ZA.css} +10 -6
- package/dist/assets/src/table/Table.css.ts.vanilla-C9ntYW9X.css +9 -0
- package/dist/assets/src/table-body/TableBody.css.ts.vanilla-WI2VmycQ.css +6 -0
- package/dist/assets/src/table-cell/TableCell.css.ts.vanilla-Bn9ccAMh.css +10 -0
- package/dist/assets/src/table-header-cell/TableHeaderCell.css.ts.vanilla-DEMkJMmk.css +6 -0
- package/dist/assets/src/toast/{Toast.css.ts.vanilla-N6bXbnrT.css → Toast.css.ts.vanilla-D1qN8JIH.css} +6 -7
- package/dist/avatar/Avatar-css.js +7 -6
- package/dist/avatar/Avatar.js +6 -6
- package/dist/avatar-context/AvatarContext.js +2 -2
- package/dist/avatar-group/AvatarGroup-css.js +1 -1
- package/dist/avatar-group/AvatarGroup.js +5 -21
- package/dist/axiom-provider/AxiomProvider.js +7 -0
- package/dist/badge/Badge-css.js +1 -1
- package/dist/box/Box-css.js +2 -2
- package/dist/box/Box.js +10 -9
- package/dist/button/Button-css.js +9 -7
- package/dist/button/Button.js +19 -10
- package/dist/button-group/ButtonGroup-css.js +1 -1
- package/dist/checkbox/Checkbox-css.js +1 -1
- package/dist/checkbox/Checkbox.js +7 -10
- package/dist/combobox/Combobox.js +16 -8
- package/dist/combobox-content/ComboboxContent.js +8 -44
- package/dist/combobox-context/ComboboxContext.js +3 -5
- package/dist/combobox-multi-trigger/ComboboxMultiTrigger.js +34 -0
- package/dist/combobox-single-trigger/ComboboxSingleTrigger.js +17 -0
- package/dist/combobox-trigger/ComboboxTrigger.js +15 -11
- package/dist/command-checkbox-item/CommandCheckboxItem.js +58 -0
- package/dist/command-empty/CommandEmpty.js +1 -1
- package/dist/command-footer/CommandFooter-css.js +6 -0
- package/dist/command-footer/CommandFooter.js +13 -0
- package/dist/command-item/CommandItem-css.js +3 -3
- package/dist/command-item/CommandItem.js +26 -10
- package/dist/command-list/CommandList-css.js +7 -0
- package/dist/command-list/CommandList.js +3 -2
- package/dist/control-base/ControlBase-css.js +1 -1
- package/dist/control-base/ControlBase.js +3 -3
- package/dist/dialog-title/DialogTitle.js +2 -2
- package/dist/grid/Grid.js +1 -1
- package/dist/heading/Heading.js +2 -2
- package/dist/index.d.ts +164 -75
- package/dist/index.js +8 -0
- package/dist/input/Input-css.js +1 -1
- package/dist/input/Input.js +2 -2
- package/dist/input-base/InputBase-css.js +1 -1
- package/dist/link/Link-css.js +1 -1
- package/dist/menu-item/MenuItem-css.js +1 -1
- package/dist/pagination/Pagination-css.js +1 -1
- package/dist/pill/Pill-css.js +8 -0
- package/dist/pill/Pill.js +39 -0
- package/dist/radio-group-item/RadioGroupItem-css.js +1 -1
- package/dist/radio-group-item/RadioGroupItem.js +4 -7
- package/dist/spinner/Spinner.js +56 -0
- package/dist/sprinkles/sprinkles-css.js +3 -3
- package/dist/styles/theme-css.js +2 -2
- package/dist/switch/Switch-css.js +1 -1
- package/dist/switch/Switch.js +4 -7
- package/dist/table/Table-css.js +8 -0
- package/dist/table/Table.js +11 -0
- package/dist/table-body/TableBody-css.js +7 -0
- package/dist/table-body/TableBody.js +11 -0
- package/dist/table-cell/TableCell-css.js +9 -0
- package/dist/table-cell/TableCell.js +13 -0
- package/dist/table-head/TableHead.js +10 -0
- package/dist/table-header-cell/TableHeaderCell-css.js +7 -0
- package/dist/table-header-cell/TableHeaderCell.js +11 -0
- package/dist/table-row/TableRow-css.js +7 -0
- package/dist/table-row/TableRow.js +11 -0
- package/dist/tabs-list/TabsList-css.js +1 -1
- package/dist/tabs-trigger/TabsTrigger-css.js +1 -1
- package/dist/textarea/Textarea.js +13 -5
- package/dist/toast/Toast-css.js +3 -2
- package/dist/toast/Toast.js +2 -2
- package/dist/toast-action/ToastAction.js +1 -1
- package/dist/toast-provider/ToastProvider-css.js +1 -1
- package/dist/toggle/Toggle.js +13 -0
- package/dist/tokens/colors.js +4 -3
- package/dist/tokens/size.js +2 -1
- package/dist/tooltip/Tooltip.js +19 -5
- package/dist/unstable.d.ts +222 -34
- package/dist/unstable.js +11 -1
- package/package.json +1 -1
- package/dist/assets/src/accordion-trigger/AccordionTrigger.css.ts.vanilla-B3KNV6RG.css +0 -6
- package/dist/assets/src/avatar/Avatar.css.ts.vanilla-esFrnsM7.css +0 -12
- package/dist/assets/src/chip/Chip.css.ts.vanilla-SD4SsrSx.css +0 -26
- package/dist/assets/src/command-item/CommandItem.css.ts.vanilla-DUMU-Chn.css +0 -25
- package/dist/chip/Chip-css.js +0 -8
- package/dist/chip/Chip.js +0 -31
- /package/dist/assets/src/{avatar-group/AvatarGroup.css.ts.vanilla-4BGjgIuZ.css → table-row/TableRow.css.ts.vanilla-4BGjgIuZ.css} +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { Badge } from '../badge/Badge.js';
|
|
4
|
+
import { Box } from '../box/Box.js';
|
|
5
|
+
import { Button } from '../button/Button.js';
|
|
6
|
+
import { useComboboxContext } from '../combobox-context/ComboboxContext.js';
|
|
7
|
+
import { ComboboxTrigger } from '../combobox-trigger/ComboboxTrigger.js';
|
|
8
|
+
import { Flex } from '../flex/Flex.js';
|
|
9
|
+
import { Text } from '../text/Text.js';
|
|
10
|
+
|
|
11
|
+
const ComboboxMultiTrigger = forwardRef(({ maxDisplayedItems = 2, title = "Select Items", ...props }, ref) => {
|
|
12
|
+
const { mode, value } = useComboboxContext("Combobox");
|
|
13
|
+
return /* @__PURE__ */ jsx(ComboboxTrigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { alignItems: "center", ref, w: "full", ...props, children: /* @__PURE__ */ jsx(Box, { overflow: "hidden", children: mode === "multiple" && Array.isArray(value) && value.length > 0 ? /* @__PURE__ */ jsxs(
|
|
14
|
+
Flex,
|
|
15
|
+
{
|
|
16
|
+
alignItems: "center",
|
|
17
|
+
flexDirection: "row",
|
|
18
|
+
flexWrap: "wrap",
|
|
19
|
+
gap: "2",
|
|
20
|
+
overflow: "hidden",
|
|
21
|
+
children: [
|
|
22
|
+
value.slice(0, maxDisplayedItems).map((item) => /* @__PURE__ */ jsx(Box, { flex: "none", children: /* @__PURE__ */ jsx(Badge, { children: item }) }, item)),
|
|
23
|
+
value.length > maxDisplayedItems && /* @__PURE__ */ jsx(Box, { flex: "none", children: /* @__PURE__ */ jsxs(Text, { children: [
|
|
24
|
+
"+",
|
|
25
|
+
value.length - maxDisplayedItems,
|
|
26
|
+
" more"
|
|
27
|
+
] }) })
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
) : /* @__PURE__ */ jsx(Text, { children: title }) }) }) });
|
|
31
|
+
});
|
|
32
|
+
ComboboxMultiTrigger.displayName = "@optiaxiom/react/ComboboxMultiTrigger";
|
|
33
|
+
|
|
34
|
+
export { ComboboxMultiTrigger };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { Button } from '../button/Button.js';
|
|
4
|
+
import { useComboboxContext } from '../combobox-context/ComboboxContext.js';
|
|
5
|
+
import { ComboboxTrigger } from '../combobox-trigger/ComboboxTrigger.js';
|
|
6
|
+
import { IconAngleDown } from '../icons/IconAngleDown.js';
|
|
7
|
+
|
|
8
|
+
const ComboboxSingleTrigger = forwardRef(({ title, ...props }, ref) => {
|
|
9
|
+
const { value } = useComboboxContext("Combobox");
|
|
10
|
+
return /* @__PURE__ */ jsx(ComboboxTrigger, { asChild: true, ref, ...props, children: /* @__PURE__ */ jsxs(Button, { children: [
|
|
11
|
+
value || title,
|
|
12
|
+
/* @__PURE__ */ jsx(IconAngleDown, {})
|
|
13
|
+
] }) });
|
|
14
|
+
});
|
|
15
|
+
ComboboxSingleTrigger.displayName = "@optiaxiom/react/ComboboxSingleTrigger";
|
|
16
|
+
|
|
17
|
+
export { ComboboxSingleTrigger };
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { forwardRef
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { useComboboxContext } from '../combobox-context/ComboboxContext.js';
|
|
4
|
+
import { ComboboxMultiTrigger } from '../combobox-multi-trigger/ComboboxMultiTrigger.js';
|
|
5
|
+
import { ComboboxSingleTrigger } from '../combobox-single-trigger/ComboboxSingleTrigger.js';
|
|
6
6
|
import { PopoverTrigger } from '../popover-trigger/PopoverTrigger.js';
|
|
7
7
|
|
|
8
|
-
const ComboboxTrigger = forwardRef(({ asChild, children, title, ...props }, ref) => {
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
const ComboboxTrigger = forwardRef(({ asChild, children, maxDisplayedItems = 2, title, ...props }, ref) => {
|
|
9
|
+
const { mode } = useComboboxContext("Combobox");
|
|
10
|
+
return /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, ref, children: asChild ? children : mode === "single" ? /* @__PURE__ */ jsx(ComboboxSingleTrigger, { title, ...props }) : mode === "multiple" ? /* @__PURE__ */ jsx(
|
|
11
|
+
ComboboxMultiTrigger,
|
|
12
|
+
{
|
|
13
|
+
maxDisplayedItems,
|
|
14
|
+
title,
|
|
15
|
+
...props
|
|
16
|
+
}
|
|
17
|
+
) : children });
|
|
14
18
|
});
|
|
15
19
|
ComboboxTrigger.displayName = "@optiaxiom/react/ComboboxTrigger";
|
|
16
20
|
|
|
17
|
-
export { ComboboxTrigger };
|
|
21
|
+
export { ComboboxTrigger, ComboboxTrigger as default };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { Box } from '../box/Box.js';
|
|
4
|
+
import { Checkbox } from '../checkbox/Checkbox.js';
|
|
5
|
+
import { useComboboxContext } from '../combobox-context/ComboboxContext.js';
|
|
6
|
+
import { CommandItem } from '../command-item/CommandItem.js';
|
|
7
|
+
|
|
8
|
+
const CommandCheckboxItem = forwardRef(({ children, disabled, onCheckedChange, value, ...props }, ref) => {
|
|
9
|
+
const {
|
|
10
|
+
mode,
|
|
11
|
+
setValue,
|
|
12
|
+
value: contextValue
|
|
13
|
+
} = useComboboxContext("ComboboxContext");
|
|
14
|
+
const isChecked = Array.isArray(contextValue) ? contextValue.includes(value) : contextValue === value;
|
|
15
|
+
const handleChange = () => {
|
|
16
|
+
const newChecked = !isChecked;
|
|
17
|
+
if (mode === "multiple") {
|
|
18
|
+
if (Array.isArray(contextValue)) {
|
|
19
|
+
setValue(
|
|
20
|
+
newChecked ? [...contextValue, value] : contextValue.filter((v) => v !== value)
|
|
21
|
+
);
|
|
22
|
+
} else {
|
|
23
|
+
setValue([value]);
|
|
24
|
+
}
|
|
25
|
+
} else {
|
|
26
|
+
setValue(newChecked ? value : "");
|
|
27
|
+
}
|
|
28
|
+
if (onCheckedChange) {
|
|
29
|
+
onCheckedChange(newChecked);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
return /* @__PURE__ */ jsx(
|
|
33
|
+
CommandItem,
|
|
34
|
+
{
|
|
35
|
+
"data-disabled": disabled ? "" : void 0,
|
|
36
|
+
"data-selected": isChecked ? "" : void 0,
|
|
37
|
+
disabled,
|
|
38
|
+
onSelect: handleChange,
|
|
39
|
+
ref,
|
|
40
|
+
value,
|
|
41
|
+
...props,
|
|
42
|
+
children: /* @__PURE__ */ jsxs(Box, { alignItems: "center", display: "flex", w: "full", children: [
|
|
43
|
+
/* @__PURE__ */ jsx(
|
|
44
|
+
Checkbox,
|
|
45
|
+
{
|
|
46
|
+
checked: isChecked,
|
|
47
|
+
disabled,
|
|
48
|
+
onChange: handleChange
|
|
49
|
+
}
|
|
50
|
+
),
|
|
51
|
+
/* @__PURE__ */ jsx(Box, { mt: "2", children })
|
|
52
|
+
] })
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
});
|
|
56
|
+
CommandCheckboxItem.displayName = "@optiaxiom/react/CommandCheckboxItem";
|
|
57
|
+
|
|
58
|
+
export { CommandCheckboxItem };
|
|
@@ -8,7 +8,7 @@ import '../sprinkles/sprinkles-css.js';
|
|
|
8
8
|
const CommandEmpty = forwardRef(
|
|
9
9
|
({ children, ...props }, ref) => {
|
|
10
10
|
const { restProps, sprinkleProps } = extractSprinkles(props);
|
|
11
|
-
return /* @__PURE__ */ jsx(Box, { asChild: true, ...sprinkleProps, children: /* @__PURE__ */ jsx(CommandEmpty$1, { ref, ...restProps, children }) });
|
|
11
|
+
return /* @__PURE__ */ jsx(Box, { asChild: true, ...sprinkleProps, children: /* @__PURE__ */ jsx(CommandEmpty$1, { ref, ...restProps, children: children || "No results found" }) });
|
|
12
12
|
}
|
|
13
13
|
);
|
|
14
14
|
CommandEmpty.displayName = "@optiaxiom/react/CommandEmpty";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.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:'space-between',p:'sm'}]});
|
|
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 './CommandFooter-css.js';
|
|
5
|
+
|
|
6
|
+
const CommandFooter = forwardRef(
|
|
7
|
+
({ children, className, ...props }, ref) => {
|
|
8
|
+
return /* @__PURE__ */ jsx(Flex, { ref, ...footer({}, className), ...props, children });
|
|
9
|
+
}
|
|
10
|
+
);
|
|
11
|
+
CommandFooter.displayName = "@optiaxiom/react/CommandFooter";
|
|
12
|
+
|
|
13
|
+
export { CommandFooter };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css';
|
|
2
|
-
import './../assets/src/styles/theme.css.ts.vanilla-
|
|
3
|
-
import './../assets/src/command-item/CommandItem.css.ts.vanilla-
|
|
2
|
+
import './../assets/src/styles/theme.css.ts.vanilla-D9K5B5ZA.css';
|
|
3
|
+
import './../assets/src/command-item/CommandItem.css.ts.vanilla-ml8xjFWy.css';
|
|
4
4
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
5
5
|
|
|
6
|
-
var item = recipeRuntime({base:[{alignItems:'center',display:'flex',flexDirection:'row',fontSize:'md',gap:'xs',p:'xs',rounded:'sm',transition:'colors'},'
|
|
6
|
+
var item = recipeRuntime({base:[{alignItems:'center',display:'flex',flexDirection:'row',fontSize:'md',gap:'xs',p:'xs',rounded:'sm',transition:'colors'},'xxa7fd0']});
|
|
7
7
|
|
|
8
8
|
export { item };
|
|
@@ -1,23 +1,39 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { CommandItem as CommandItem$1 } from 'cmdk';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { Box } from '../box/Box.js';
|
|
5
|
+
import { useComboboxContext } from '../combobox-context/ComboboxContext.js';
|
|
6
|
+
import { Flex } from '../flex/Flex.js';
|
|
7
|
+
import { IconCheck } from '../icons/IconCheck.js';
|
|
5
8
|
import { extractSprinkles } from '../sprinkles/extractSprinkles.js';
|
|
6
9
|
import '../sprinkles/sprinkles-css.js';
|
|
7
10
|
import { item } from './CommandItem-css.js';
|
|
8
11
|
|
|
9
12
|
const CommandItem = forwardRef(
|
|
10
|
-
({ children, ...props }, ref) => {
|
|
13
|
+
({ children, className, onSelect, value, ...props }, ref) => {
|
|
14
|
+
const {
|
|
15
|
+
mode,
|
|
16
|
+
setOpen,
|
|
17
|
+
setValue,
|
|
18
|
+
value: contextValue
|
|
19
|
+
} = useComboboxContext("ComboboxContext");
|
|
11
20
|
const { restProps, sprinkleProps } = extractSprinkles(props);
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
...
|
|
18
|
-
|
|
21
|
+
const handleSelect = () => {
|
|
22
|
+
if (mode === "single") {
|
|
23
|
+
setOpen(false);
|
|
24
|
+
setValue(value);
|
|
25
|
+
} else if (mode === "multiple" && Array.isArray(contextValue)) {
|
|
26
|
+
const newValue = contextValue.includes(value) ? contextValue.filter((v) => v !== value) : [...contextValue, value];
|
|
27
|
+
setValue(newValue);
|
|
19
28
|
}
|
|
20
|
-
|
|
29
|
+
if (onSelect)
|
|
30
|
+
onSelect(value);
|
|
31
|
+
};
|
|
32
|
+
const isSelected = mode === "single" ? contextValue === value : Array.isArray(contextValue) && contextValue.includes(value);
|
|
33
|
+
return /* @__PURE__ */ jsx(Box, { asChild: true, ...item({}, className), ...sprinkleProps, children: /* @__PURE__ */ jsx(CommandItem$1, { onSelect: handleSelect, ref, ...restProps, children: /* @__PURE__ */ jsxs(Flex, { flexDirection: "row", justifyContent: "space-between", w: "full", children: [
|
|
34
|
+
children,
|
|
35
|
+
isSelected && mode === "single" && /* @__PURE__ */ jsx(IconCheck, {})
|
|
36
|
+
] }) }) });
|
|
21
37
|
}
|
|
22
38
|
);
|
|
23
39
|
CommandItem.displayName = "@optiaxiom/react/CommandItem";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import './../assets/src/styles/layers.css.ts.vanilla-D5zCXZwe.css';
|
|
2
|
+
import './../assets/src/command-list/CommandList.css.ts.vanilla-1Rf8xvwM.css';
|
|
3
|
+
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
4
|
+
|
|
5
|
+
var list = recipeRuntime({base:['_1ykehzm0']});
|
|
6
|
+
|
|
7
|
+
export { list };
|
|
@@ -4,11 +4,12 @@ import { forwardRef } from 'react';
|
|
|
4
4
|
import { Box } from '../box/Box.js';
|
|
5
5
|
import { extractSprinkles } from '../sprinkles/extractSprinkles.js';
|
|
6
6
|
import '../sprinkles/sprinkles-css.js';
|
|
7
|
+
import { list } from './CommandList-css.js';
|
|
7
8
|
|
|
8
9
|
const CommandList = forwardRef(
|
|
9
|
-
({ children, ...props }, ref) => {
|
|
10
|
+
({ children, className, ...props }, ref) => {
|
|
10
11
|
const { restProps, sprinkleProps } = extractSprinkles(props);
|
|
11
|
-
return /* @__PURE__ */ jsx(Box, { asChild: true, ...sprinkleProps, children: /* @__PURE__ */ jsx(CommandList$1, { ref, ...restProps, children }) });
|
|
12
|
+
return /* @__PURE__ */ jsx(Box, { asChild: true, ...list({}, className), ...sprinkleProps, children: /* @__PURE__ */ jsx(CommandList$1, { ref, ...restProps, children }) });
|
|
12
13
|
}
|
|
13
14
|
);
|
|
14
15
|
CommandList.displayName = "@optiaxiom/react/CommandList";
|
|
@@ -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-D9K5B5ZA.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
|
|
|
@@ -11,15 +11,15 @@ import { fallbackSpan } from '../utils/fallbackSpan.js';
|
|
|
11
11
|
import { controlBase, indicator, label, decorator } from './ControlBase-css.js';
|
|
12
12
|
|
|
13
13
|
const ControlBase = forwardRef(
|
|
14
|
-
({ children, className, endDecorator, id: idProp,
|
|
14
|
+
({ children, className, control, endDecorator, id: idProp, ...props }, ref) => {
|
|
15
15
|
const { restProps, sprinkleProps } = extractSprinkles(props);
|
|
16
16
|
const id = useId(idProp);
|
|
17
17
|
return /* @__PURE__ */ jsxs(Box, { ref, ...controlBase({}, className), ...sprinkleProps, children: [
|
|
18
|
-
/* @__PURE__ */ jsx(Box, { asChild: true, ...indicator(), children: cloneElement(
|
|
18
|
+
/* @__PURE__ */ jsx(Box, { asChild: true, ...indicator(), children: cloneElement(control, {
|
|
19
19
|
id,
|
|
20
20
|
...restProps
|
|
21
21
|
}) }),
|
|
22
|
-
/* @__PURE__ */ jsx(Text, { asChild: true, ...label(), children: /* @__PURE__ */ jsx(RadixLabel.Root, { htmlFor: id, children
|
|
22
|
+
/* @__PURE__ */ jsx(Text, { asChild: true, ...label(), children: /* @__PURE__ */ jsx(RadixLabel.Root, { htmlFor: id, children }) }),
|
|
23
23
|
endDecorator && /* @__PURE__ */ jsx(Box, { asChild: true, ...decorator(), children: fallbackSpan(endDecorator) })
|
|
24
24
|
] });
|
|
25
25
|
}
|
|
@@ -11,8 +11,8 @@ const DialogTitle = forwardRef(
|
|
|
11
11
|
({ children, description, ...props }, ref) => {
|
|
12
12
|
const { restProps, sprinkleProps } = extractSprinkles(props);
|
|
13
13
|
return /* @__PURE__ */ jsxs(Flex, { gap: "xs", pb: "md", pt: "lg", px: "lg", ...sprinkleProps, children: [
|
|
14
|
-
/* @__PURE__ */ jsx(Heading, { asChild: true, level: "
|
|
15
|
-
/* @__PURE__ */ jsx(Text, { asChild: true, empty: "hidden", fontWeight: "400", children: /* @__PURE__ */ jsx(RadixDialog.Description, { children: description }) })
|
|
14
|
+
/* @__PURE__ */ jsx(Heading, { asChild: true, fontWeight: "500", level: "3", children: /* @__PURE__ */ jsx(RadixDialog.Title, { ref, ...restProps, children }) }),
|
|
15
|
+
/* @__PURE__ */ jsx(Text, { asChild: true, color: "fg.secondary", empty: "hidden", fontWeight: "400", children: /* @__PURE__ */ jsx(RadixDialog.Description, { children: description }) })
|
|
16
16
|
] });
|
|
17
17
|
}
|
|
18
18
|
);
|
package/dist/grid/Grid.js
CHANGED
|
@@ -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
|
|
package/dist/heading/Heading.js
CHANGED
|
@@ -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
|
);
|