@axis-ds/ui-react 1.4.0 → 1.5.1

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 (111) hide show
  1. package/README.md +46 -1
  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 +99 -5
  83. package/dist/chunk-22MWNPDF.mjs +0 -44
  84. package/dist/chunk-2OEPKE4D.mjs +0 -69
  85. package/dist/chunk-2XNUJNTG.mjs +0 -43
  86. package/dist/chunk-3N6NG7VT.mjs +0 -11
  87. package/dist/chunk-4I2F2NLP.mjs +0 -111
  88. package/dist/chunk-4PT43LON.mjs +0 -31
  89. package/dist/chunk-5NWFAQBM.mjs +0 -36
  90. package/dist/chunk-5Z2R3IHJ.mjs +0 -28
  91. package/dist/chunk-AY4B3RRN.mjs +0 -144
  92. package/dist/chunk-C5O47K7L.mjs +0 -71
  93. package/dist/chunk-CNU6645Y.mjs +0 -42
  94. package/dist/chunk-CY72AGI2.mjs +0 -105
  95. package/dist/chunk-DRFCNDVQ.mjs +0 -27
  96. package/dist/chunk-F2WSIT7F.mjs +0 -49
  97. package/dist/chunk-FZFREHAE.mjs +0 -139
  98. package/dist/chunk-HKYKDQ6C.mjs +0 -81
  99. package/dist/chunk-IS7NER3O.mjs +0 -37
  100. package/dist/chunk-MOBW7BKD.mjs +0 -49
  101. package/dist/chunk-PJX5UF3Y.mjs +0 -25
  102. package/dist/chunk-QXQWVRXN.mjs +0 -53
  103. package/dist/chunk-RFB4IABR.mjs +0 -108
  104. package/dist/chunk-SO2QSRGV.mjs +0 -58
  105. package/dist/chunk-TA62Q7YX.mjs +0 -37
  106. package/dist/chunk-TB33GTWS.mjs +0 -43
  107. package/dist/chunk-YI5OZRUB.mjs +0 -132
  108. package/dist/chunk-YZDRNV46.mjs +0 -210
  109. package/dist/chunk-Z4P43F5J.mjs +0 -65
  110. package/dist/chunk-Z65ZMFDH.mjs +0 -123
  111. package/dist/chunk-ZW6GY5PO.mjs +0 -29
@@ -1,144 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-ZIF4PLK3.mjs";
4
-
5
- // src/select/index.tsx
6
- import * as React from "react";
7
- import * as SelectPrimitive from "@radix-ui/react-select";
8
- import { jsx, jsxs } from "react/jsx-runtime";
9
- var Select = SelectPrimitive.Root;
10
- var SelectGroup = SelectPrimitive.Group;
11
- var SelectValue = SelectPrimitive.Value;
12
- var SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
13
- SelectPrimitive.Trigger,
14
- {
15
- ref,
16
- className: cn(
17
- "flex h-10 w-full items-center justify-between rounded-md border px-3 py-2 text-sm",
18
- "bg-[var(--axis-input-bg-default)] border-[var(--axis-input-border-default)]",
19
- "placeholder:text-[var(--axis-input-text-placeholder)]",
20
- "hover:border-[var(--axis-input-border-hover)]",
21
- "focus:outline-none focus:ring-2 focus:ring-[var(--axis-input-border-focus)] focus:ring-offset-2",
22
- "disabled:cursor-not-allowed disabled:opacity-50",
23
- "[&>span]:line-clamp-1",
24
- className
25
- ),
26
- ...props,
27
- children: [
28
- children,
29
- /* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(
30
- "svg",
31
- {
32
- className: "h-4 w-4 opacity-50",
33
- fill: "none",
34
- stroke: "currentColor",
35
- viewBox: "0 0 24 24",
36
- children: /* @__PURE__ */ jsx(
37
- "path",
38
- {
39
- strokeLinecap: "round",
40
- strokeLinejoin: "round",
41
- strokeWidth: 2,
42
- d: "M19 9l-7 7-7-7"
43
- }
44
- )
45
- }
46
- ) })
47
- ]
48
- }
49
- ));
50
- SelectTrigger.displayName = "SelectTrigger";
51
- var SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx(
52
- SelectPrimitive.Content,
53
- {
54
- ref,
55
- className: cn(
56
- "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md",
57
- "bg-[var(--axis-surface-default)] border-[var(--axis-border-default)]",
58
- "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",
59
- 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",
60
- className
61
- ),
62
- position,
63
- ...props,
64
- children: /* @__PURE__ */ jsx(
65
- SelectPrimitive.Viewport,
66
- {
67
- className: cn(
68
- "p-1",
69
- position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
70
- ),
71
- children
72
- }
73
- )
74
- }
75
- ) }));
76
- SelectContent.displayName = "SelectContent";
77
- var SelectLabel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
78
- SelectPrimitive.Label,
79
- {
80
- ref,
81
- className: cn(
82
- "py-1.5 pl-8 pr-2 text-sm font-semibold text-[var(--axis-text-secondary)]",
83
- className
84
- ),
85
- ...props
86
- }
87
- ));
88
- SelectLabel.displayName = "SelectLabel";
89
- var SelectItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
90
- SelectPrimitive.Item,
91
- {
92
- ref,
93
- className: cn(
94
- "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none",
95
- "text-[var(--axis-text-primary)]",
96
- "focus:bg-[var(--axis-surface-secondary)] focus:text-[var(--axis-text-primary)]",
97
- "data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
98
- className
99
- ),
100
- ...props,
101
- children: [
102
- /* @__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(
103
- "svg",
104
- {
105
- className: "h-4 w-4",
106
- fill: "none",
107
- stroke: "currentColor",
108
- viewBox: "0 0 24 24",
109
- children: /* @__PURE__ */ jsx(
110
- "path",
111
- {
112
- strokeLinecap: "round",
113
- strokeLinejoin: "round",
114
- strokeWidth: 2,
115
- d: "M5 13l4 4L19 7"
116
- }
117
- )
118
- }
119
- ) }) }),
120
- /* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })
121
- ]
122
- }
123
- ));
124
- SelectItem.displayName = "SelectItem";
125
- var SelectSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
126
- SelectPrimitive.Separator,
127
- {
128
- ref,
129
- className: cn("-mx-1 my-1 h-px bg-[var(--axis-border-default)]", className),
130
- ...props
131
- }
132
- ));
133
- SelectSeparator.displayName = "SelectSeparator";
134
-
135
- export {
136
- Select,
137
- SelectGroup,
138
- SelectValue,
139
- SelectTrigger,
140
- SelectContent,
141
- SelectLabel,
142
- SelectItem,
143
- SelectSeparator
144
- };
@@ -1,71 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-ZIF4PLK3.mjs";
4
-
5
- // src/card/index.tsx
6
- import * as React from "react";
7
- import { jsx } from "react/jsx-runtime";
8
- var Card = React.forwardRef(
9
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
10
- "div",
11
- {
12
- ref,
13
- className: cn(
14
- "rounded-lg border bg-[var(--axis-card-bg-default)] border-[var(--axis-card-border-default)] shadow-[shadow:var(--axis-card-shadow)]",
15
- className
16
- ),
17
- ...props
18
- }
19
- )
20
- );
21
- Card.displayName = "Card";
22
- var CardHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
23
- "div",
24
- {
25
- ref,
26
- className: cn("flex flex-col space-y-1.5 p-6", className),
27
- ...props
28
- }
29
- ));
30
- CardHeader.displayName = "CardHeader";
31
- var CardTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
32
- "h3",
33
- {
34
- ref,
35
- className: cn(
36
- "text-2xl font-semibold leading-none tracking-tight text-[var(--axis-text-primary)]",
37
- className
38
- ),
39
- ...props
40
- }
41
- ));
42
- CardTitle.displayName = "CardTitle";
43
- var CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
44
- "p",
45
- {
46
- ref,
47
- className: cn("text-sm text-[var(--axis-text-secondary)]", className),
48
- ...props
49
- }
50
- ));
51
- CardDescription.displayName = "CardDescription";
52
- var CardContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("p-6 pt-0", className), ...props }));
53
- CardContent.displayName = "CardContent";
54
- var CardFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
55
- "div",
56
- {
57
- ref,
58
- className: cn("flex items-center p-6 pt-0", className),
59
- ...props
60
- }
61
- ));
62
- CardFooter.displayName = "CardFooter";
63
-
64
- export {
65
- Card,
66
- CardHeader,
67
- CardTitle,
68
- CardDescription,
69
- CardContent,
70
- CardFooter
71
- };
@@ -1,42 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-ZIF4PLK3.mjs";
4
-
5
- // src/slider/index.tsx
6
- import * as React from "react";
7
- import * as SliderPrimitive from "@radix-ui/react-slider";
8
- import { jsx, jsxs } from "react/jsx-runtime";
9
- var Slider = React.forwardRef(
10
- ({
11
- className,
12
- "aria-label": ariaLabel,
13
- "aria-labelledby": ariaLabelledby,
14
- ...props
15
- }, ref) => /* @__PURE__ */ jsxs(
16
- SliderPrimitive.Root,
17
- {
18
- ref,
19
- className: cn(
20
- "relative flex w-full touch-none select-none items-center",
21
- className
22
- ),
23
- ...props,
24
- children: [
25
- /* @__PURE__ */ jsx(SliderPrimitive.Track, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-[var(--axis-surface-tertiary)]", children: /* @__PURE__ */ jsx(SliderPrimitive.Range, { className: "absolute h-full bg-[var(--axis-interactive-primary)]" }) }),
26
- /* @__PURE__ */ jsx(
27
- SliderPrimitive.Thumb,
28
- {
29
- "aria-label": ariaLabel,
30
- "aria-labelledby": ariaLabelledby,
31
- className: "block h-5 w-5 rounded-full border-2 border-[var(--axis-interactive-primary)] bg-[var(--axis-surface-default)] ring-offset-[var(--axis-surface-default)] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-border-focus)] focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"
32
- }
33
- )
34
- ]
35
- }
36
- )
37
- );
38
- Slider.displayName = "Slider";
39
-
40
- export {
41
- Slider
42
- };
@@ -1,105 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-ZIF4PLK3.mjs";
4
-
5
- // src/dialog/index.tsx
6
- import * as React from "react";
7
- import * as DialogPrimitive from "@radix-ui/react-dialog";
8
- import { jsx, jsxs } from "react/jsx-runtime";
9
- var Dialog = DialogPrimitive.Root;
10
- var DialogTrigger = DialogPrimitive.Trigger;
11
- var DialogPortal = DialogPrimitive.Portal;
12
- var DialogClose = DialogPrimitive.Close;
13
- var DialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
14
- DialogPrimitive.Overlay,
15
- {
16
- ref,
17
- className: cn(
18
- "fixed inset-0 z-50 bg-[var(--axis-dialog-overlay-bg)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
19
- className
20
- ),
21
- ...props
22
- }
23
- ));
24
- DialogOverlay.displayName = "DialogOverlay";
25
- var DialogContent = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(DialogPortal, { children: [
26
- /* @__PURE__ */ jsx(DialogOverlay, {}),
27
- /* @__PURE__ */ jsx(
28
- DialogPrimitive.Content,
29
- {
30
- ref,
31
- className: cn(
32
- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-[shadow:var(--axis-shadow-lg)] duration-200",
33
- "bg-[var(--axis-dialog-content-bg)] border-[var(--axis-dialog-content-border)]",
34
- "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 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",
35
- "sm:rounded-lg",
36
- className
37
- ),
38
- ...props,
39
- children
40
- }
41
- )
42
- ] }));
43
- DialogContent.displayName = "DialogContent";
44
- var DialogHeader = ({
45
- className,
46
- ...props
47
- }) => /* @__PURE__ */ jsx(
48
- "div",
49
- {
50
- className: cn(
51
- "flex flex-col space-y-1.5 text-center sm:text-left",
52
- className
53
- ),
54
- ...props
55
- }
56
- );
57
- DialogHeader.displayName = "DialogHeader";
58
- var DialogFooter = ({
59
- className,
60
- ...props
61
- }) => /* @__PURE__ */ jsx(
62
- "div",
63
- {
64
- className: cn(
65
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
66
- className
67
- ),
68
- ...props
69
- }
70
- );
71
- DialogFooter.displayName = "DialogFooter";
72
- var DialogTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
73
- DialogPrimitive.Title,
74
- {
75
- ref,
76
- className: cn(
77
- "text-lg font-semibold leading-none tracking-tight text-[var(--axis-text-primary)]",
78
- className
79
- ),
80
- ...props
81
- }
82
- ));
83
- DialogTitle.displayName = "DialogTitle";
84
- var DialogDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
85
- DialogPrimitive.Description,
86
- {
87
- ref,
88
- className: cn("text-sm text-[var(--axis-text-secondary)]", className),
89
- ...props
90
- }
91
- ));
92
- DialogDescription.displayName = "DialogDescription";
93
-
94
- export {
95
- Dialog,
96
- DialogTrigger,
97
- DialogPortal,
98
- DialogClose,
99
- DialogOverlay,
100
- DialogContent,
101
- DialogHeader,
102
- DialogFooter,
103
- DialogTitle,
104
- DialogDescription
105
- };
@@ -1,27 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-ZIF4PLK3.mjs";
4
-
5
- // src/skeleton/index.tsx
6
- import * as React from "react";
7
- import { jsx } from "react/jsx-runtime";
8
- var Skeleton = React.forwardRef(
9
- ({ className, ...props }, ref) => {
10
- return /* @__PURE__ */ jsx(
11
- "div",
12
- {
13
- ref,
14
- className: cn(
15
- "animate-pulse rounded-md bg-[var(--axis-surface-tertiary)]",
16
- className
17
- ),
18
- ...props
19
- }
20
- );
21
- }
22
- );
23
- Skeleton.displayName = "Skeleton";
24
-
25
- export {
26
- Skeleton
27
- };
@@ -1,49 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-ZIF4PLK3.mjs";
4
-
5
- // src/radio-group/index.tsx
6
- import * as React from "react";
7
- import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
8
- import { jsx } from "react/jsx-runtime";
9
- var RadioGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
10
- RadioGroupPrimitive.Root,
11
- {
12
- className: cn("grid gap-2", className),
13
- ...props,
14
- ref
15
- }
16
- ));
17
- RadioGroup.displayName = "RadioGroup";
18
- var RadioGroupItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
19
- RadioGroupPrimitive.Item,
20
- {
21
- ref,
22
- className: cn(
23
- "aspect-square h-4 w-4 rounded-full border border-[var(--axis-border-default)]",
24
- "ring-offset-[var(--axis-surface-default)]",
25
- "focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-border-focus)] focus-visible:ring-offset-2",
26
- "disabled:cursor-not-allowed disabled:opacity-50",
27
- "data-[state=checked]:border-[var(--axis-interactive-primary)] data-[state=checked]:text-[var(--axis-interactive-primary)]",
28
- className
29
- ),
30
- ...props,
31
- children: /* @__PURE__ */ jsx(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx(
32
- "svg",
33
- {
34
- xmlns: "http://www.w3.org/2000/svg",
35
- width: "8",
36
- height: "8",
37
- viewBox: "0 0 8 8",
38
- fill: "currentColor",
39
- children: /* @__PURE__ */ jsx("circle", { cx: "4", cy: "4", r: "4" })
40
- }
41
- ) })
42
- }
43
- ));
44
- RadioGroupItem.displayName = "RadioGroupItem";
45
-
46
- export {
47
- RadioGroup,
48
- RadioGroupItem
49
- };
@@ -1,139 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-ZIF4PLK3.mjs";
4
-
5
- // src/sheet/index.tsx
6
- import * as React from "react";
7
- import * as SheetPrimitive from "@radix-ui/react-dialog";
8
- import { cva } from "class-variance-authority";
9
- import { jsx, jsxs } from "react/jsx-runtime";
10
- var Sheet = SheetPrimitive.Root;
11
- var SheetTrigger = SheetPrimitive.Trigger;
12
- var SheetClose = SheetPrimitive.Close;
13
- var SheetPortal = SheetPrimitive.Portal;
14
- var SheetOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
15
- SheetPrimitive.Overlay,
16
- {
17
- className: cn(
18
- "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
19
- className
20
- ),
21
- ...props,
22
- ref
23
- }
24
- ));
25
- SheetOverlay.displayName = "SheetOverlay";
26
- var sheetVariants = cva(
27
- "fixed z-50 gap-4 bg-[var(--axis-surface-default)] border-[var(--axis-border-default)] p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
28
- {
29
- variants: {
30
- side: {
31
- top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
32
- bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
33
- left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
34
- right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
35
- }
36
- },
37
- defaultVariants: {
38
- side: "right"
39
- }
40
- }
41
- );
42
- var SheetContent = React.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs(SheetPortal, { children: [
43
- /* @__PURE__ */ jsx(SheetOverlay, {}),
44
- /* @__PURE__ */ jsxs(
45
- SheetPrimitive.Content,
46
- {
47
- ref,
48
- className: cn(sheetVariants({ side }), className),
49
- ...props,
50
- children: [
51
- /* @__PURE__ */ jsxs(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-[var(--axis-surface-default)] transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-[var(--axis-border-focus)] focus:ring-offset-2 disabled:pointer-events-none", children: [
52
- /* @__PURE__ */ jsxs(
53
- "svg",
54
- {
55
- xmlns: "http://www.w3.org/2000/svg",
56
- width: "16",
57
- height: "16",
58
- viewBox: "0 0 24 24",
59
- fill: "none",
60
- stroke: "currentColor",
61
- strokeWidth: "2",
62
- strokeLinecap: "round",
63
- strokeLinejoin: "round",
64
- children: [
65
- /* @__PURE__ */ jsx("path", { d: "M18 6 6 18" }),
66
- /* @__PURE__ */ jsx("path", { d: "m6 6 12 12" })
67
- ]
68
- }
69
- ),
70
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
71
- ] }),
72
- children
73
- ]
74
- }
75
- )
76
- ] }));
77
- SheetContent.displayName = "SheetContent";
78
- var SheetHeader = ({
79
- className,
80
- ...props
81
- }) => /* @__PURE__ */ jsx(
82
- "div",
83
- {
84
- className: cn(
85
- "flex flex-col space-y-2 text-center sm:text-left",
86
- className
87
- ),
88
- ...props
89
- }
90
- );
91
- SheetHeader.displayName = "SheetHeader";
92
- var SheetFooter = ({
93
- className,
94
- ...props
95
- }) => /* @__PURE__ */ jsx(
96
- "div",
97
- {
98
- className: cn(
99
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
100
- className
101
- ),
102
- ...props
103
- }
104
- );
105
- SheetFooter.displayName = "SheetFooter";
106
- var SheetTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
107
- SheetPrimitive.Title,
108
- {
109
- ref,
110
- className: cn(
111
- "text-lg font-semibold text-[var(--axis-text-primary)]",
112
- className
113
- ),
114
- ...props
115
- }
116
- ));
117
- SheetTitle.displayName = "SheetTitle";
118
- var SheetDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
119
- SheetPrimitive.Description,
120
- {
121
- ref,
122
- className: cn("text-sm text-[var(--axis-text-secondary)]", className),
123
- ...props
124
- }
125
- ));
126
- SheetDescription.displayName = "SheetDescription";
127
-
128
- export {
129
- Sheet,
130
- SheetTrigger,
131
- SheetClose,
132
- SheetPortal,
133
- SheetOverlay,
134
- SheetContent,
135
- SheetHeader,
136
- SheetFooter,
137
- SheetTitle,
138
- SheetDescription
139
- };
@@ -1,81 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-ZIF4PLK3.mjs";
4
-
5
- // src/progress/index.tsx
6
- import * as React from "react";
7
- import { cva } from "class-variance-authority";
8
- import { jsx } from "react/jsx-runtime";
9
- var progressVariants = cva(
10
- "relative h-2 w-full overflow-hidden rounded-full bg-[var(--axis-surface-tertiary)]",
11
- {
12
- variants: {
13
- size: {
14
- sm: "h-1",
15
- default: "h-2",
16
- lg: "h-3"
17
- }
18
- },
19
- defaultVariants: {
20
- size: "default"
21
- }
22
- }
23
- );
24
- var progressIndicatorVariants = cva(
25
- "h-full w-full flex-1 transition-all duration-300 ease-in-out",
26
- {
27
- variants: {
28
- variant: {
29
- default: "bg-[var(--axis-surface-brand)]",
30
- success: "bg-[var(--axis-color-green-500)]",
31
- warning: "bg-[var(--axis-color-yellow-500)]",
32
- destructive: "bg-[var(--axis-color-red-500)]"
33
- }
34
- },
35
- defaultVariants: {
36
- variant: "default"
37
- }
38
- }
39
- );
40
- var Progress = React.forwardRef(
41
- ({
42
- className,
43
- value = 0,
44
- max = 100,
45
- size,
46
- variant,
47
- indeterminate = false,
48
- ...props
49
- }, ref) => {
50
- const percentage = Math.min(Math.max(value / max * 100, 0), 100);
51
- return /* @__PURE__ */ jsx(
52
- "div",
53
- {
54
- ref,
55
- role: "progressbar",
56
- "aria-valuemin": 0,
57
- "aria-valuemax": max,
58
- "aria-valuenow": indeterminate ? void 0 : value,
59
- className: cn(progressVariants({ size }), className),
60
- ...props,
61
- children: /* @__PURE__ */ jsx(
62
- "div",
63
- {
64
- className: cn(
65
- progressIndicatorVariants({ variant }),
66
- indeterminate && "animate-progress-indeterminate"
67
- ),
68
- style: indeterminate ? void 0 : { transform: `translateX(-${100 - percentage}%)` }
69
- }
70
- )
71
- }
72
- );
73
- }
74
- );
75
- Progress.displayName = "Progress";
76
-
77
- export {
78
- progressVariants,
79
- progressIndicatorVariants,
80
- Progress
81
- };
@@ -1,37 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-ZIF4PLK3.mjs";
4
-
5
- // src/tooltip/index.tsx
6
- import * as React from "react";
7
- import * as TooltipPrimitive from "@radix-ui/react-tooltip";
8
- import { jsx } from "react/jsx-runtime";
9
- var TooltipProvider = TooltipPrimitive.Provider;
10
- var Tooltip = TooltipPrimitive.Root;
11
- var TooltipTrigger = TooltipPrimitive.Trigger;
12
- var TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx(
13
- TooltipPrimitive.Content,
14
- {
15
- ref,
16
- sideOffset,
17
- className: cn(
18
- "z-50 overflow-hidden rounded-md bg-[var(--axis-surface-inverse)] px-3 py-1.5 text-xs text-[var(--axis-text-inverse)]",
19
- "animate-in fade-in-0 zoom-in-95",
20
- "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
21
- "data-[side=bottom]:slide-in-from-top-2",
22
- "data-[side=left]:slide-in-from-right-2",
23
- "data-[side=right]:slide-in-from-left-2",
24
- "data-[side=top]:slide-in-from-bottom-2",
25
- className
26
- ),
27
- ...props
28
- }
29
- ) }));
30
- TooltipContent.displayName = "TooltipContent";
31
-
32
- export {
33
- TooltipProvider,
34
- Tooltip,
35
- TooltipTrigger,
36
- TooltipContent
37
- };