@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.
Files changed (117) hide show
  1. package/dist/{PopoverContent-DGBVbvBc.d.ts → PopoverContent-DIhLXmjU.d.ts} +49 -54
  2. package/dist/accordion/Accordion.js +4 -3
  3. package/dist/accordion-content/AccordionContent.js +1 -1
  4. package/dist/accordion-context/AccordionContext.js +5 -0
  5. package/dist/accordion-item/AccordionItem.js +4 -1
  6. package/dist/accordion-trigger/AccordionTrigger-css.js +5 -3
  7. package/dist/accordion-trigger/AccordionTrigger.js +12 -20
  8. package/dist/alert/Alert-css.js +1 -1
  9. package/dist/alert-dialog/AlertDialog-css.js +2 -6
  10. package/dist/alert-dialog/AlertDialog.js +6 -25
  11. package/dist/alert-dialog-action/AlertDialogAction.js +16 -0
  12. package/dist/alert-dialog-cancel/AlertDialogCancel.js +14 -0
  13. package/dist/alert-dialog-context/AlertDialogContext.js +5 -0
  14. package/dist/alert-dialog-description/AlertDialogDescription-css.js +7 -0
  15. package/dist/alert-dialog-description/AlertDialogDescription.js +12 -0
  16. package/dist/alert-dialog-footer/AlertDialogFooter-css.js +8 -0
  17. package/dist/alert-dialog-footer/AlertDialogFooter.js +11 -0
  18. package/dist/alert-dialog-title/AlertDialogTitle.js +24 -0
  19. package/dist/assets/src/accordion-trigger/AccordionTrigger.css.ts.vanilla-DWIMlWE2.css +16 -0
  20. package/dist/assets/src/alert-dialog/{AlertDialog.css.ts.vanilla-WdIe6m3g.css → AlertDialog.css.ts.vanilla-CpKGfNgS.css} +0 -6
  21. package/dist/assets/src/alert-dialog-description/AlertDialogDescription.css.ts.vanilla-B7BawTGq.css +6 -0
  22. package/dist/assets/src/alert-dialog-footer/AlertDialogFooter.css.ts.vanilla-3HiYmspb.css +6 -0
  23. package/dist/assets/src/avatar/Avatar.css.ts.vanilla-DxtsIDr-.css +24 -0
  24. package/dist/assets/src/box/{Box.css.ts.vanilla-D1mbecuN.css → Box.css.ts.vanilla-DLsoitAb.css} +5 -0
  25. package/dist/assets/src/button/{Button.css.ts.vanilla-BVWox07Y.css → Button.css.ts.vanilla-DeHH8Xkd.css} +43 -34
  26. package/dist/assets/src/command-item/CommandItem.css.ts.vanilla-ml8xjFWy.css +17 -0
  27. package/dist/assets/src/command-list/CommandList.css.ts.vanilla-1Rf8xvwM.css +9 -0
  28. package/dist/assets/src/pill/Pill.css.ts.vanilla-CMi1obNV.css +12 -0
  29. package/dist/assets/src/sprinkles/{sprinkles.css.ts.vanilla-DVqWpdFR.css → sprinkles.css.ts.vanilla-o1FSIYj0.css} +2292 -2243
  30. package/dist/assets/src/styles/{theme.css.ts.vanilla-DWW2Oo9s.css → theme.css.ts.vanilla-D9K5B5ZA.css} +10 -6
  31. package/dist/assets/src/table/Table.css.ts.vanilla-C9ntYW9X.css +9 -0
  32. package/dist/assets/src/table-body/TableBody.css.ts.vanilla-WI2VmycQ.css +6 -0
  33. package/dist/assets/src/table-cell/TableCell.css.ts.vanilla-Bn9ccAMh.css +10 -0
  34. package/dist/assets/src/table-header-cell/TableHeaderCell.css.ts.vanilla-DEMkJMmk.css +6 -0
  35. package/dist/assets/src/toast/{Toast.css.ts.vanilla-N6bXbnrT.css → Toast.css.ts.vanilla-D1qN8JIH.css} +6 -7
  36. package/dist/avatar/Avatar-css.js +7 -6
  37. package/dist/avatar/Avatar.js +6 -6
  38. package/dist/avatar-context/AvatarContext.js +2 -2
  39. package/dist/avatar-group/AvatarGroup-css.js +1 -1
  40. package/dist/avatar-group/AvatarGroup.js +5 -21
  41. package/dist/axiom-provider/AxiomProvider.js +7 -0
  42. package/dist/badge/Badge-css.js +1 -1
  43. package/dist/box/Box-css.js +2 -2
  44. package/dist/box/Box.js +10 -9
  45. package/dist/button/Button-css.js +9 -7
  46. package/dist/button/Button.js +19 -10
  47. package/dist/button-group/ButtonGroup-css.js +1 -1
  48. package/dist/checkbox/Checkbox-css.js +1 -1
  49. package/dist/checkbox/Checkbox.js +7 -10
  50. package/dist/combobox/Combobox.js +16 -8
  51. package/dist/combobox-content/ComboboxContent.js +8 -44
  52. package/dist/combobox-context/ComboboxContext.js +3 -5
  53. package/dist/combobox-multi-trigger/ComboboxMultiTrigger.js +34 -0
  54. package/dist/combobox-single-trigger/ComboboxSingleTrigger.js +17 -0
  55. package/dist/combobox-trigger/ComboboxTrigger.js +15 -11
  56. package/dist/command-checkbox-item/CommandCheckboxItem.js +58 -0
  57. package/dist/command-empty/CommandEmpty.js +1 -1
  58. package/dist/command-footer/CommandFooter-css.js +6 -0
  59. package/dist/command-footer/CommandFooter.js +13 -0
  60. package/dist/command-item/CommandItem-css.js +3 -3
  61. package/dist/command-item/CommandItem.js +26 -10
  62. package/dist/command-list/CommandList-css.js +7 -0
  63. package/dist/command-list/CommandList.js +3 -2
  64. package/dist/control-base/ControlBase-css.js +1 -1
  65. package/dist/control-base/ControlBase.js +3 -3
  66. package/dist/dialog-title/DialogTitle.js +2 -2
  67. package/dist/grid/Grid.js +1 -1
  68. package/dist/heading/Heading.js +2 -2
  69. package/dist/index.d.ts +164 -75
  70. package/dist/index.js +8 -0
  71. package/dist/input/Input-css.js +1 -1
  72. package/dist/input/Input.js +2 -2
  73. package/dist/input-base/InputBase-css.js +1 -1
  74. package/dist/link/Link-css.js +1 -1
  75. package/dist/menu-item/MenuItem-css.js +1 -1
  76. package/dist/pagination/Pagination-css.js +1 -1
  77. package/dist/pill/Pill-css.js +8 -0
  78. package/dist/pill/Pill.js +39 -0
  79. package/dist/radio-group-item/RadioGroupItem-css.js +1 -1
  80. package/dist/radio-group-item/RadioGroupItem.js +4 -7
  81. package/dist/spinner/Spinner.js +56 -0
  82. package/dist/sprinkles/sprinkles-css.js +3 -3
  83. package/dist/styles/theme-css.js +2 -2
  84. package/dist/switch/Switch-css.js +1 -1
  85. package/dist/switch/Switch.js +4 -7
  86. package/dist/table/Table-css.js +8 -0
  87. package/dist/table/Table.js +11 -0
  88. package/dist/table-body/TableBody-css.js +7 -0
  89. package/dist/table-body/TableBody.js +11 -0
  90. package/dist/table-cell/TableCell-css.js +9 -0
  91. package/dist/table-cell/TableCell.js +13 -0
  92. package/dist/table-head/TableHead.js +10 -0
  93. package/dist/table-header-cell/TableHeaderCell-css.js +7 -0
  94. package/dist/table-header-cell/TableHeaderCell.js +11 -0
  95. package/dist/table-row/TableRow-css.js +7 -0
  96. package/dist/table-row/TableRow.js +11 -0
  97. package/dist/tabs-list/TabsList-css.js +1 -1
  98. package/dist/tabs-trigger/TabsTrigger-css.js +1 -1
  99. package/dist/textarea/Textarea.js +13 -5
  100. package/dist/toast/Toast-css.js +3 -2
  101. package/dist/toast/Toast.js +2 -2
  102. package/dist/toast-action/ToastAction.js +1 -1
  103. package/dist/toast-provider/ToastProvider-css.js +1 -1
  104. package/dist/toggle/Toggle.js +13 -0
  105. package/dist/tokens/colors.js +4 -3
  106. package/dist/tokens/size.js +2 -1
  107. package/dist/tooltip/Tooltip.js +19 -5
  108. package/dist/unstable.d.ts +222 -34
  109. package/dist/unstable.js +11 -1
  110. package/package.json +1 -1
  111. package/dist/assets/src/accordion-trigger/AccordionTrigger.css.ts.vanilla-B3KNV6RG.css +0 -6
  112. package/dist/assets/src/avatar/Avatar.css.ts.vanilla-esFrnsM7.css +0 -12
  113. package/dist/assets/src/chip/Chip.css.ts.vanilla-SD4SsrSx.css +0 -26
  114. package/dist/assets/src/command-item/CommandItem.css.ts.vanilla-DUMU-Chn.css +0 -25
  115. package/dist/chip/Chip-css.js +0 -8
  116. package/dist/chip/Chip.js +0 -31
  117. /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, useContext } from 'react';
3
- import { Button } from '../button/Button.js';
4
- import { ComboboxContext } from '../combobox-context/ComboboxContext.js';
5
- import { IconAngleDown } from '../icons/IconAngleDown.js';
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 context = useContext(ComboboxContext);
10
- if (!context)
11
- throw new Error("ComboboxTrigger must be used within a Combobox");
12
- const { items, value } = context;
13
- return /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, ref, children: asChild ? children : /* @__PURE__ */ jsx(Button, { icon: /* @__PURE__ */ jsx(IconAngleDown, {}), iconPosition: "end", ...props, children: value ? items?.find((item) => item.value === value)?.label : title ?? "Select item" }) });
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-DWW2Oo9s.css';
3
- import './../assets/src/command-item/CommandItem.css.ts.vanilla-DUMU-Chn.css';
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'},'xxa7fd2'],variants:{colorScheme:{danger:'xxa7fd3',neutral:'xxa7fd4'}}});
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
- return /* @__PURE__ */ jsx(
13
- Box,
14
- {
15
- asChild: true,
16
- ...item({ colorScheme: "neutral" }),
17
- ...sprinkleProps,
18
- children: /* @__PURE__ */ jsx(CommandItem$1, { ref, ...restProps, children })
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-DWW2Oo9s.css';
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, label: label$1, ...props }, ref) => {
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(children, {
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: label$1 }) }),
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: "4", children: /* @__PURE__ */ jsx(RadixDialog.Title, { ref, ...restProps, children }) }),
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, { cols: "1", display: "grid", gap: "md", ref, ...props });
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", variant, ...props }, ref) => {
23
+ ({ appearance, asChild, children, level = "1", ...props }, ref) => {
24
24
  const Comp = asChild ? Slot : mapLevelToTag[level];
25
- const fontSize = mapTagToFontSize[variant ?? mapLevelToTag[level]];
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
  );