@axis-ds/ui-react 1.3.0 → 1.5.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.
Files changed (112) hide show
  1. package/README.md +74 -0
  2. package/dist/accordion/index.js +9 -27
  3. package/dist/accordion/index.mjs +58 -7
  4. package/dist/alert/index.js +9 -27
  5. package/dist/alert/index.mjs +54 -7
  6. package/dist/avatar/avatar.d.mts +24 -0
  7. package/dist/avatar/avatar.d.ts +24 -0
  8. package/dist/avatar/avatar.js +70 -0
  9. package/dist/{chunk-OQGMQL2A.mjs → avatar/avatar.mjs} +5 -26
  10. package/dist/avatar/index.d.mts +5 -26
  11. package/dist/avatar/index.d.ts +5 -26
  12. package/dist/avatar/index.js +4 -78
  13. package/dist/avatar/index.mjs +2 -5
  14. package/dist/avatar/variants.d.mts +14 -0
  15. package/dist/avatar/variants.d.ts +14 -0
  16. package/dist/avatar/variants.js +44 -0
  17. package/dist/avatar/variants.mjs +20 -0
  18. package/dist/badge/index.js +5 -23
  19. package/dist/badge/index.mjs +35 -5
  20. package/dist/breadcrumb/index.js +15 -33
  21. package/dist/breadcrumb/index.mjs +118 -10
  22. package/dist/button/index.js +5 -23
  23. package/dist/button/index.mjs +44 -5
  24. package/dist/card/index.js +13 -31
  25. package/dist/card/index.mjs +58 -9
  26. package/dist/checkbox/index.js +5 -23
  27. package/dist/checkbox/index.mjs +41 -4
  28. package/dist/collapsible/index.js +3 -5
  29. package/dist/collapsible/index.mjs +4 -5
  30. package/dist/command/index.d.mts +7 -7
  31. package/dist/command/index.d.ts +7 -7
  32. package/dist/command/index.js +16 -33
  33. package/dist/command/index.mjs +110 -10
  34. package/dist/dialog/index.js +18 -36
  35. package/dist/dialog/index.mjs +88 -13
  36. package/dist/dropdown-menu/index.js +26 -44
  37. package/dist/dropdown-menu/index.mjs +188 -18
  38. package/dist/index.d.mts +4 -10
  39. package/dist/index.d.ts +4 -10
  40. package/dist/index.js +153 -1907
  41. package/dist/index.mjs +105 -150
  42. package/dist/input/index.js +4 -22
  43. package/dist/input/index.mjs +28 -4
  44. package/dist/label/index.js +5 -23
  45. package/dist/label/index.mjs +17 -4
  46. package/dist/popover/index.js +6 -24
  47. package/dist/popover/index.mjs +21 -6
  48. package/dist/progress/index.js +7 -25
  49. package/dist/progress/index.mjs +71 -6
  50. package/dist/radio-group/index.js +6 -24
  51. package/dist/radio-group/index.mjs +40 -5
  52. package/dist/scroll-area/index.js +6 -24
  53. package/dist/scroll-area/index.mjs +34 -5
  54. package/dist/select/index.js +16 -34
  55. package/dist/select/index.mjs +129 -11
  56. package/dist/separator/index.js +4 -22
  57. package/dist/separator/index.mjs +21 -4
  58. package/dist/sheet/index.js +19 -37
  59. package/dist/sheet/index.mjs +122 -13
  60. package/dist/skeleton/index.js +4 -22
  61. package/dist/skeleton/index.mjs +19 -4
  62. package/dist/slider/index.js +4 -22
  63. package/dist/slider/index.mjs +34 -4
  64. package/dist/switch/index.js +5 -23
  65. package/dist/switch/index.mjs +29 -4
  66. package/dist/table/index.js +18 -36
  67. package/dist/table/index.mjs +96 -11
  68. package/dist/tabs/index.js +9 -27
  69. package/dist/tabs/index.mjs +47 -7
  70. package/dist/textarea/index.js +4 -22
  71. package/dist/textarea/index.mjs +20 -4
  72. package/dist/toast/index.js +16 -34
  73. package/dist/toast/index.mjs +94 -10
  74. package/dist/toggle/index.js +5 -23
  75. package/dist/toggle/index.mjs +34 -5
  76. package/dist/tooltip/index.js +7 -25
  77. package/dist/tooltip/index.mjs +26 -7
  78. package/dist/utils.d.mts +9 -0
  79. package/dist/utils.d.ts +9 -0
  80. package/dist/utils.js +40 -0
  81. package/dist/{chunk-ZIF4PLK3.mjs → utils.mjs} +2 -4
  82. package/package.json +8 -6
  83. package/tailwind.css +10 -0
  84. package/dist/chunk-22MWNPDF.mjs +0 -44
  85. package/dist/chunk-2OEPKE4D.mjs +0 -69
  86. package/dist/chunk-2XNUJNTG.mjs +0 -43
  87. package/dist/chunk-3N6NG7VT.mjs +0 -11
  88. package/dist/chunk-4I2F2NLP.mjs +0 -111
  89. package/dist/chunk-4PT43LON.mjs +0 -31
  90. package/dist/chunk-5NWFAQBM.mjs +0 -36
  91. package/dist/chunk-5Z2R3IHJ.mjs +0 -28
  92. package/dist/chunk-AY4B3RRN.mjs +0 -144
  93. package/dist/chunk-C5O47K7L.mjs +0 -71
  94. package/dist/chunk-CNU6645Y.mjs +0 -42
  95. package/dist/chunk-CY72AGI2.mjs +0 -105
  96. package/dist/chunk-DRFCNDVQ.mjs +0 -27
  97. package/dist/chunk-F2WSIT7F.mjs +0 -49
  98. package/dist/chunk-FZFREHAE.mjs +0 -139
  99. package/dist/chunk-HKYKDQ6C.mjs +0 -81
  100. package/dist/chunk-IS7NER3O.mjs +0 -37
  101. package/dist/chunk-MOBW7BKD.mjs +0 -49
  102. package/dist/chunk-PJX5UF3Y.mjs +0 -25
  103. package/dist/chunk-QXQWVRXN.mjs +0 -53
  104. package/dist/chunk-RFB4IABR.mjs +0 -108
  105. package/dist/chunk-SO2QSRGV.mjs +0 -58
  106. package/dist/chunk-TA62Q7YX.mjs +0 -37
  107. package/dist/chunk-TB33GTWS.mjs +0 -43
  108. package/dist/chunk-YI5OZRUB.mjs +0 -132
  109. package/dist/chunk-YZDRNV46.mjs +0 -210
  110. package/dist/chunk-Z4P43F5J.mjs +0 -65
  111. package/dist/chunk-Z65ZMFDH.mjs +0 -123
  112. package/dist/chunk-ZW6GY5PO.mjs +0 -29
@@ -26,48 +26,30 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/radio-group/index.tsx
31
29
  var radio_group_exports = {};
32
30
  __export(radio_group_exports, {
33
31
  RadioGroup: () => RadioGroup,
34
32
  RadioGroupItem: () => RadioGroupItem
35
33
  });
36
34
  module.exports = __toCommonJS(radio_group_exports);
35
+ var import_jsx_runtime = require("react/jsx-runtime");
37
36
  var React = __toESM(require("react"));
38
37
  var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"));
39
-
40
- // src/utils.ts
41
- var import_clsx = require("clsx");
42
- var import_tailwind_merge = require("tailwind-merge");
43
- var isArbitraryShadowWithHint = (value) => /^\[shadow:.+\]$/.test(value);
44
- var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
45
- extend: {
46
- classGroups: {
47
- shadow: [{ shadow: [isArbitraryShadowWithHint] }]
48
- }
49
- }
50
- });
51
- function cn(...inputs) {
52
- return twMerge((0, import_clsx.clsx)(inputs));
53
- }
54
-
55
- // src/radio-group/index.tsx
56
- var import_jsx_runtime = require("react/jsx-runtime");
57
- var RadioGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
38
+ var import_utils = require("../utils.js");
39
+ const RadioGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
58
40
  RadioGroupPrimitive.Root,
59
41
  {
60
- className: cn("grid gap-2", className),
42
+ className: (0, import_utils.cn)("grid gap-2", className),
61
43
  ...props,
62
44
  ref
63
45
  }
64
46
  ));
65
47
  RadioGroup.displayName = "RadioGroup";
66
- var RadioGroupItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
48
+ const RadioGroupItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
67
49
  RadioGroupPrimitive.Item,
68
50
  {
69
51
  ref,
70
- className: cn(
52
+ className: (0, import_utils.cn)(
71
53
  "aspect-square h-4 w-4 rounded-full border border-[var(--axis-border-default)]",
72
54
  "ring-offset-[var(--axis-surface-default)]",
73
55
  "focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-border-focus)] focus-visible:ring-offset-2",
@@ -1,8 +1,43 @@
1
- import {
2
- RadioGroup,
3
- RadioGroupItem
4
- } from "../chunk-F2WSIT7F.mjs";
5
- import "../chunk-ZIF4PLK3.mjs";
1
+ import { jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
4
+ import { cn } from "../utils.mjs";
5
+ const RadioGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
6
+ RadioGroupPrimitive.Root,
7
+ {
8
+ className: cn("grid gap-2", className),
9
+ ...props,
10
+ ref
11
+ }
12
+ ));
13
+ RadioGroup.displayName = "RadioGroup";
14
+ const RadioGroupItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
15
+ RadioGroupPrimitive.Item,
16
+ {
17
+ ref,
18
+ className: cn(
19
+ "aspect-square h-4 w-4 rounded-full border border-[var(--axis-border-default)]",
20
+ "ring-offset-[var(--axis-surface-default)]",
21
+ "focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-border-focus)] focus-visible:ring-offset-2",
22
+ "disabled:cursor-not-allowed disabled:opacity-50",
23
+ "data-[state=checked]:border-[var(--axis-interactive-primary)] data-[state=checked]:text-[var(--axis-interactive-primary)]",
24
+ className
25
+ ),
26
+ ...props,
27
+ children: /* @__PURE__ */ jsx(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx(
28
+ "svg",
29
+ {
30
+ xmlns: "http://www.w3.org/2000/svg",
31
+ width: "8",
32
+ height: "8",
33
+ viewBox: "0 0 8 8",
34
+ fill: "currentColor",
35
+ children: /* @__PURE__ */ jsx("circle", { cx: "4", cy: "4", r: "4" })
36
+ }
37
+ ) })
38
+ }
39
+ ));
40
+ RadioGroupItem.displayName = "RadioGroupItem";
6
41
  export {
7
42
  RadioGroup,
8
43
  RadioGroupItem
@@ -26,39 +26,21 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/scroll-area/index.tsx
31
29
  var scroll_area_exports = {};
32
30
  __export(scroll_area_exports, {
33
31
  ScrollArea: () => ScrollArea,
34
32
  ScrollBar: () => ScrollBar
35
33
  });
36
34
  module.exports = __toCommonJS(scroll_area_exports);
35
+ var import_jsx_runtime = require("react/jsx-runtime");
37
36
  var React = __toESM(require("react"));
38
37
  var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"));
39
-
40
- // src/utils.ts
41
- var import_clsx = require("clsx");
42
- var import_tailwind_merge = require("tailwind-merge");
43
- var isArbitraryShadowWithHint = (value) => /^\[shadow:.+\]$/.test(value);
44
- var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
45
- extend: {
46
- classGroups: {
47
- shadow: [{ shadow: [isArbitraryShadowWithHint] }]
48
- }
49
- }
50
- });
51
- function cn(...inputs) {
52
- return twMerge((0, import_clsx.clsx)(inputs));
53
- }
54
-
55
- // src/scroll-area/index.tsx
56
- var import_jsx_runtime = require("react/jsx-runtime");
57
- var ScrollArea = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
38
+ var import_utils = require("../utils.js");
39
+ const ScrollArea = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
58
40
  ScrollAreaPrimitive.Root,
59
41
  {
60
42
  ref,
61
- className: cn("relative overflow-hidden", className),
43
+ className: (0, import_utils.cn)("relative overflow-hidden", className),
62
44
  ...props,
63
45
  children: [
64
46
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
@@ -68,12 +50,12 @@ var ScrollArea = React.forwardRef(({ className, children, ...props }, ref) => /*
68
50
  }
69
51
  ));
70
52
  ScrollArea.displayName = "ScrollArea";
71
- var ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
53
+ const ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
72
54
  ScrollAreaPrimitive.ScrollAreaScrollbar,
73
55
  {
74
56
  ref,
75
57
  orientation,
76
- className: cn(
58
+ className: (0, import_utils.cn)(
77
59
  "flex touch-none select-none transition-colors",
78
60
  orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
79
61
  orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
@@ -1,8 +1,37 @@
1
- import {
2
- ScrollArea,
3
- ScrollBar
4
- } from "../chunk-2XNUJNTG.mjs";
5
- import "../chunk-ZIF4PLK3.mjs";
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
4
+ import { cn } from "../utils.mjs";
5
+ const ScrollArea = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
6
+ ScrollAreaPrimitive.Root,
7
+ {
8
+ ref,
9
+ className: cn("relative overflow-hidden", className),
10
+ ...props,
11
+ children: [
12
+ /* @__PURE__ */ jsx(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
13
+ /* @__PURE__ */ jsx(ScrollBar, {}),
14
+ /* @__PURE__ */ jsx(ScrollAreaPrimitive.Corner, {})
15
+ ]
16
+ }
17
+ ));
18
+ ScrollArea.displayName = "ScrollArea";
19
+ const ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx(
20
+ ScrollAreaPrimitive.ScrollAreaScrollbar,
21
+ {
22
+ ref,
23
+ orientation,
24
+ className: cn(
25
+ "flex touch-none select-none transition-colors",
26
+ orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
27
+ orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
28
+ className
29
+ ),
30
+ ...props,
31
+ children: /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-[var(--axis-border-default)]" })
32
+ }
33
+ ));
34
+ ScrollBar.displayName = "ScrollBar";
6
35
  export {
7
36
  ScrollArea,
8
37
  ScrollBar
@@ -26,8 +26,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/select/index.tsx
31
29
  var select_exports = {};
32
30
  __export(select_exports, {
33
31
  Select: () => Select,
@@ -40,34 +38,18 @@ __export(select_exports, {
40
38
  SelectValue: () => SelectValue
41
39
  });
42
40
  module.exports = __toCommonJS(select_exports);
41
+ var import_jsx_runtime = require("react/jsx-runtime");
43
42
  var React = __toESM(require("react"));
44
43
  var SelectPrimitive = __toESM(require("@radix-ui/react-select"));
45
-
46
- // src/utils.ts
47
- var import_clsx = require("clsx");
48
- var import_tailwind_merge = require("tailwind-merge");
49
- var isArbitraryShadowWithHint = (value) => /^\[shadow:.+\]$/.test(value);
50
- var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
51
- extend: {
52
- classGroups: {
53
- shadow: [{ shadow: [isArbitraryShadowWithHint] }]
54
- }
55
- }
56
- });
57
- function cn(...inputs) {
58
- return twMerge((0, import_clsx.clsx)(inputs));
59
- }
60
-
61
- // src/select/index.tsx
62
- var import_jsx_runtime = require("react/jsx-runtime");
63
- var Select = SelectPrimitive.Root;
64
- var SelectGroup = SelectPrimitive.Group;
65
- var SelectValue = SelectPrimitive.Value;
66
- var SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
44
+ var import_utils = require("../utils.js");
45
+ const Select = SelectPrimitive.Root;
46
+ const SelectGroup = SelectPrimitive.Group;
47
+ const SelectValue = SelectPrimitive.Value;
48
+ const SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
67
49
  SelectPrimitive.Trigger,
68
50
  {
69
51
  ref,
70
- className: cn(
52
+ className: (0, import_utils.cn)(
71
53
  "flex h-10 w-full items-center justify-between rounded-md border px-3 py-2 text-sm",
72
54
  "bg-[var(--axis-input-bg-default)] border-[var(--axis-input-border-default)]",
73
55
  "placeholder:text-[var(--axis-input-text-placeholder)]",
@@ -102,11 +84,11 @@ var SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) =>
102
84
  }
103
85
  ));
104
86
  SelectTrigger.displayName = "SelectTrigger";
105
- var SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
87
+ const SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
106
88
  SelectPrimitive.Content,
107
89
  {
108
90
  ref,
109
- className: cn(
91
+ className: (0, import_utils.cn)(
110
92
  "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md",
111
93
  "bg-[var(--axis-surface-default)] border-[var(--axis-border-default)]",
112
94
  "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
@@ -118,7 +100,7 @@ var SelectContent = React.forwardRef(({ className, children, position = "popper"
118
100
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
119
101
  SelectPrimitive.Viewport,
120
102
  {
121
- className: cn(
103
+ className: (0, import_utils.cn)(
122
104
  "p-1",
123
105
  position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
124
106
  ),
@@ -128,11 +110,11 @@ var SelectContent = React.forwardRef(({ className, children, position = "popper"
128
110
  }
129
111
  ) }));
130
112
  SelectContent.displayName = "SelectContent";
131
- var SelectLabel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
113
+ const SelectLabel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
132
114
  SelectPrimitive.Label,
133
115
  {
134
116
  ref,
135
- className: cn(
117
+ className: (0, import_utils.cn)(
136
118
  "py-1.5 pl-8 pr-2 text-sm font-semibold text-[var(--axis-text-secondary)]",
137
119
  className
138
120
  ),
@@ -140,11 +122,11 @@ var SelectLabel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE_
140
122
  }
141
123
  ));
142
124
  SelectLabel.displayName = "SelectLabel";
143
- var SelectItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
125
+ const SelectItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
144
126
  SelectPrimitive.Item,
145
127
  {
146
128
  ref,
147
- className: cn(
129
+ className: (0, import_utils.cn)(
148
130
  "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none",
149
131
  "text-[var(--axis-text-primary)]",
150
132
  "focus:bg-[var(--axis-surface-secondary)] focus:text-[var(--axis-text-primary)]",
@@ -176,11 +158,11 @@ var SelectItem = React.forwardRef(({ className, children, ...props }, ref) => /*
176
158
  }
177
159
  ));
178
160
  SelectItem.displayName = "SelectItem";
179
- var SelectSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
161
+ const SelectSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
180
162
  SelectPrimitive.Separator,
181
163
  {
182
164
  ref,
183
- className: cn("-mx-1 my-1 h-px bg-[var(--axis-border-default)]", className),
165
+ className: (0, import_utils.cn)("-mx-1 my-1 h-px bg-[var(--axis-border-default)]", className),
184
166
  ...props
185
167
  }
186
168
  ));
@@ -1,14 +1,132 @@
1
- import {
2
- Select,
3
- SelectContent,
4
- SelectGroup,
5
- SelectItem,
6
- SelectLabel,
7
- SelectSeparator,
8
- SelectTrigger,
9
- SelectValue
10
- } from "../chunk-AY4B3RRN.mjs";
11
- import "../chunk-ZIF4PLK3.mjs";
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import * as SelectPrimitive from "@radix-ui/react-select";
4
+ import { cn } from "../utils.mjs";
5
+ const Select = SelectPrimitive.Root;
6
+ const SelectGroup = SelectPrimitive.Group;
7
+ const SelectValue = SelectPrimitive.Value;
8
+ const SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
9
+ SelectPrimitive.Trigger,
10
+ {
11
+ ref,
12
+ className: cn(
13
+ "flex h-10 w-full items-center justify-between rounded-md border px-3 py-2 text-sm",
14
+ "bg-[var(--axis-input-bg-default)] border-[var(--axis-input-border-default)]",
15
+ "placeholder:text-[var(--axis-input-text-placeholder)]",
16
+ "hover:border-[var(--axis-input-border-hover)]",
17
+ "focus:outline-none focus:ring-2 focus:ring-[var(--axis-input-border-focus)] focus:ring-offset-2",
18
+ "disabled:cursor-not-allowed disabled:opacity-50",
19
+ "[&>span]:line-clamp-1",
20
+ className
21
+ ),
22
+ ...props,
23
+ children: [
24
+ children,
25
+ /* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(
26
+ "svg",
27
+ {
28
+ className: "h-4 w-4 opacity-50",
29
+ fill: "none",
30
+ stroke: "currentColor",
31
+ viewBox: "0 0 24 24",
32
+ children: /* @__PURE__ */ jsx(
33
+ "path",
34
+ {
35
+ strokeLinecap: "round",
36
+ strokeLinejoin: "round",
37
+ strokeWidth: 2,
38
+ d: "M19 9l-7 7-7-7"
39
+ }
40
+ )
41
+ }
42
+ ) })
43
+ ]
44
+ }
45
+ ));
46
+ SelectTrigger.displayName = "SelectTrigger";
47
+ const SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx(
48
+ SelectPrimitive.Content,
49
+ {
50
+ ref,
51
+ className: cn(
52
+ "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md",
53
+ "bg-[var(--axis-surface-default)] border-[var(--axis-border-default)]",
54
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
55
+ position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
56
+ className
57
+ ),
58
+ position,
59
+ ...props,
60
+ children: /* @__PURE__ */ jsx(
61
+ SelectPrimitive.Viewport,
62
+ {
63
+ className: cn(
64
+ "p-1",
65
+ position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
66
+ ),
67
+ children
68
+ }
69
+ )
70
+ }
71
+ ) }));
72
+ SelectContent.displayName = "SelectContent";
73
+ const SelectLabel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
74
+ SelectPrimitive.Label,
75
+ {
76
+ ref,
77
+ className: cn(
78
+ "py-1.5 pl-8 pr-2 text-sm font-semibold text-[var(--axis-text-secondary)]",
79
+ className
80
+ ),
81
+ ...props
82
+ }
83
+ ));
84
+ SelectLabel.displayName = "SelectLabel";
85
+ const SelectItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
86
+ SelectPrimitive.Item,
87
+ {
88
+ ref,
89
+ className: cn(
90
+ "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none",
91
+ "text-[var(--axis-text-primary)]",
92
+ "focus:bg-[var(--axis-surface-secondary)] focus:text-[var(--axis-text-primary)]",
93
+ "data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
94
+ className
95
+ ),
96
+ ...props,
97
+ children: [
98
+ /* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(
99
+ "svg",
100
+ {
101
+ className: "h-4 w-4",
102
+ fill: "none",
103
+ stroke: "currentColor",
104
+ viewBox: "0 0 24 24",
105
+ children: /* @__PURE__ */ jsx(
106
+ "path",
107
+ {
108
+ strokeLinecap: "round",
109
+ strokeLinejoin: "round",
110
+ strokeWidth: 2,
111
+ d: "M5 13l4 4L19 7"
112
+ }
113
+ )
114
+ }
115
+ ) }) }),
116
+ /* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })
117
+ ]
118
+ }
119
+ ));
120
+ SelectItem.displayName = "SelectItem";
121
+ const SelectSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
122
+ SelectPrimitive.Separator,
123
+ {
124
+ ref,
125
+ className: cn("-mx-1 my-1 h-px bg-[var(--axis-border-default)]", className),
126
+ ...props
127
+ }
128
+ ));
129
+ SelectSeparator.displayName = "SelectSeparator";
12
130
  export {
13
131
  Select,
14
132
  SelectContent,
@@ -26,41 +26,23 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
-
30
- // src/separator/index.tsx
31
29
  var separator_exports = {};
32
30
  __export(separator_exports, {
33
31
  Separator: () => Separator
34
32
  });
35
33
  module.exports = __toCommonJS(separator_exports);
34
+ var import_jsx_runtime = require("react/jsx-runtime");
36
35
  var React = __toESM(require("react"));
37
36
  var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"));
38
-
39
- // src/utils.ts
40
- var import_clsx = require("clsx");
41
- var import_tailwind_merge = require("tailwind-merge");
42
- var isArbitraryShadowWithHint = (value) => /^\[shadow:.+\]$/.test(value);
43
- var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
44
- extend: {
45
- classGroups: {
46
- shadow: [{ shadow: [isArbitraryShadowWithHint] }]
47
- }
48
- }
49
- });
50
- function cn(...inputs) {
51
- return twMerge((0, import_clsx.clsx)(inputs));
52
- }
53
-
54
- // src/separator/index.tsx
55
- var import_jsx_runtime = require("react/jsx-runtime");
56
- var Separator = React.forwardRef(
37
+ var import_utils = require("../utils.js");
38
+ const Separator = React.forwardRef(
57
39
  ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
58
40
  SeparatorPrimitive.Root,
59
41
  {
60
42
  ref,
61
43
  decorative,
62
44
  orientation,
63
- className: cn(
45
+ className: (0, import_utils.cn)(
64
46
  "shrink-0 bg-[var(--axis-border-default)]",
65
47
  orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
66
48
  className
@@ -1,7 +1,24 @@
1
- import {
2
- Separator
3
- } from "../chunk-ZW6GY5PO.mjs";
4
- import "../chunk-ZIF4PLK3.mjs";
1
+ import { jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import * as SeparatorPrimitive from "@radix-ui/react-separator";
4
+ import { cn } from "../utils.mjs";
5
+ const Separator = React.forwardRef(
6
+ ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
7
+ SeparatorPrimitive.Root,
8
+ {
9
+ ref,
10
+ decorative,
11
+ orientation,
12
+ className: cn(
13
+ "shrink-0 bg-[var(--axis-border-default)]",
14
+ orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
15
+ className
16
+ ),
17
+ ...props
18
+ }
19
+ )
20
+ );
21
+ Separator.displayName = "Separator";
5
22
  export {
6
23
  Separator
7
24
  };