@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,49 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-ZIF4PLK3.mjs";
4
-
5
- // src/checkbox/index.tsx
6
- import * as React from "react";
7
- import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
8
- import { jsx } from "react/jsx-runtime";
9
- var Checkbox = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
10
- CheckboxPrimitive.Root,
11
- {
12
- ref,
13
- className: cn(
14
- "peer h-4 w-4 shrink-0 rounded-sm border border-[var(--axis-border-default)]",
15
- "ring-offset-[var(--axis-surface-default)]",
16
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-border-focus)] focus-visible:ring-offset-2",
17
- "disabled:cursor-not-allowed disabled:opacity-50",
18
- "data-[state=checked]:bg-[var(--axis-interactive-primary)] data-[state=checked]:border-[var(--axis-interactive-primary)] data-[state=checked]:text-white",
19
- className
20
- ),
21
- ...props,
22
- children: /* @__PURE__ */ jsx(
23
- CheckboxPrimitive.Indicator,
24
- {
25
- className: cn("flex items-center justify-center text-current"),
26
- children: /* @__PURE__ */ jsx(
27
- "svg",
28
- {
29
- xmlns: "http://www.w3.org/2000/svg",
30
- width: "12",
31
- height: "12",
32
- viewBox: "0 0 24 24",
33
- fill: "none",
34
- stroke: "currentColor",
35
- strokeWidth: "3",
36
- strokeLinecap: "round",
37
- strokeLinejoin: "round",
38
- children: /* @__PURE__ */ jsx("path", { d: "M20 6 9 17l-5-5" })
39
- }
40
- )
41
- }
42
- )
43
- }
44
- ));
45
- Checkbox.displayName = "Checkbox";
46
-
47
- export {
48
- Checkbox
49
- };
@@ -1,25 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-ZIF4PLK3.mjs";
4
-
5
- // src/label/index.tsx
6
- import * as React from "react";
7
- import * as LabelPrimitive from "@radix-ui/react-label";
8
- import { cva } from "class-variance-authority";
9
- import { jsx } from "react/jsx-runtime";
10
- var labelVariants = cva(
11
- "text-sm font-medium leading-none text-[var(--axis-text-primary)] peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
12
- );
13
- var Label = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
14
- LabelPrimitive.Root,
15
- {
16
- ref,
17
- className: cn(labelVariants(), className),
18
- ...props
19
- }
20
- ));
21
- Label.displayName = "Label";
22
-
23
- export {
24
- Label
25
- };
@@ -1,53 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-ZIF4PLK3.mjs";
4
-
5
- // src/button/index.tsx
6
- import * as React from "react";
7
- import { Slot } from "@radix-ui/react-slot";
8
- import { cva } from "class-variance-authority";
9
- import { jsx } from "react/jsx-runtime";
10
- var buttonVariants = cva(
11
- "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
12
- {
13
- variants: {
14
- variant: {
15
- default: "bg-[var(--axis-button-bg-default)] text-[var(--axis-button-text-default)] hover:bg-[var(--axis-button-bg-hover)] active:bg-[var(--axis-button-bg-active)] focus-visible:ring-[var(--axis-button-border-focus)]",
16
- secondary: "bg-[var(--axis-button-secondary-bg-default)] text-[var(--axis-button-secondary-text-default)] hover:bg-[var(--axis-button-secondary-bg-hover)] active:bg-[var(--axis-button-secondary-bg-active)]",
17
- ghost: "bg-[var(--axis-button-ghost-bg-default)] text-[var(--axis-button-ghost-text-default)] hover:bg-[var(--axis-button-ghost-bg-hover)] active:bg-[var(--axis-button-ghost-bg-active)]",
18
- destructive: "bg-[var(--axis-button-destructive-bg-default)] text-[var(--axis-button-destructive-text-default)] hover:bg-[var(--axis-button-destructive-bg-hover)] active:bg-[var(--axis-button-destructive-bg-active)]",
19
- outline: "border border-[var(--axis-border-default)] bg-transparent hover:bg-[var(--axis-surface-secondary)] text-[var(--axis-text-primary)]",
20
- link: "text-[var(--axis-text-brand)] underline-offset-4 hover:underline"
21
- },
22
- size: {
23
- sm: "h-8 px-3 text-xs",
24
- default: "h-10 px-4 py-2",
25
- lg: "h-12 px-6 text-base",
26
- icon: "h-10 w-10"
27
- }
28
- },
29
- defaultVariants: {
30
- variant: "default",
31
- size: "default"
32
- }
33
- }
34
- );
35
- var Button = React.forwardRef(
36
- ({ className, variant, size, asChild = false, ...props }, ref) => {
37
- const Comp = asChild ? Slot : "button";
38
- return /* @__PURE__ */ jsx(
39
- Comp,
40
- {
41
- className: cn(buttonVariants({ variant, size, className })),
42
- ref,
43
- ...props
44
- }
45
- );
46
- }
47
- );
48
- Button.displayName = "Button";
49
-
50
- export {
51
- buttonVariants,
52
- Button
53
- };
@@ -1,108 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-ZIF4PLK3.mjs";
4
-
5
- // src/toast/index.tsx
6
- import * as React from "react";
7
- import * as ToastPrimitives from "@radix-ui/react-toast";
8
- import { cva } from "class-variance-authority";
9
- import { jsx } from "react/jsx-runtime";
10
- var ToastProvider = ToastPrimitives.Provider;
11
- var ToastViewport = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
12
- ToastPrimitives.Viewport,
13
- {
14
- ref,
15
- className: cn(
16
- "fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
17
- className
18
- ),
19
- ...props
20
- }
21
- ));
22
- ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
23
- var toastVariants = cva(
24
- "group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
25
- {
26
- variants: {
27
- variant: {
28
- default: "border-[var(--axis-border-default)] bg-[var(--axis-surface-default)] text-[var(--axis-text-primary)]",
29
- success: "border-[var(--axis-border-success)] bg-[var(--axis-surface-success)] text-[var(--axis-text-success)]",
30
- error: "border-[var(--axis-border-error)] bg-[var(--axis-surface-error)] text-[var(--axis-text-error)]",
31
- warning: "border-transparent bg-[var(--axis-surface-warning)] text-[var(--axis-text-warning)]"
32
- }
33
- },
34
- defaultVariants: {
35
- variant: "default"
36
- }
37
- }
38
- );
39
- var Toast = React.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx(
40
- ToastPrimitives.Root,
41
- {
42
- ref,
43
- className: cn(toastVariants({ variant }), className),
44
- ...props
45
- }
46
- ));
47
- Toast.displayName = ToastPrimitives.Root.displayName;
48
- var ToastAction = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
49
- ToastPrimitives.Action,
50
- {
51
- ref,
52
- className: cn(
53
- "inline-flex h-8 shrink-0 items-center justify-center rounded-md border px-3 text-sm font-medium transition-colors",
54
- "border-[var(--axis-border-default)] bg-transparent",
55
- "hover:bg-[var(--axis-surface-secondary)]",
56
- "focus:outline-none focus:ring-2 focus:ring-[var(--axis-border-focus)]",
57
- "disabled:pointer-events-none disabled:opacity-50",
58
- className
59
- ),
60
- ...props
61
- }
62
- ));
63
- ToastAction.displayName = ToastPrimitives.Action.displayName;
64
- var ToastClose = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
65
- ToastPrimitives.Close,
66
- {
67
- ref,
68
- className: cn(
69
- "absolute right-2 top-2 rounded-md p-1 text-[var(--axis-text-secondary)] opacity-0 transition-opacity",
70
- "hover:text-[var(--axis-text-primary)]",
71
- "focus:opacity-100 focus:outline-none focus:ring-2",
72
- "group-hover:opacity-100",
73
- className
74
- ),
75
- "toast-close": "",
76
- ...props,
77
- children: /* @__PURE__ */ jsx("svg", { className: "h-4 w-4", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) })
78
- }
79
- ));
80
- ToastClose.displayName = ToastPrimitives.Close.displayName;
81
- var ToastTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
82
- ToastPrimitives.Title,
83
- {
84
- ref,
85
- className: cn("text-sm font-semibold", className),
86
- ...props
87
- }
88
- ));
89
- ToastTitle.displayName = ToastPrimitives.Title.displayName;
90
- var ToastDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
91
- ToastPrimitives.Description,
92
- {
93
- ref,
94
- className: cn("text-sm opacity-90", className),
95
- ...props
96
- }
97
- ));
98
- ToastDescription.displayName = ToastPrimitives.Description.displayName;
99
-
100
- export {
101
- ToastProvider,
102
- ToastViewport,
103
- Toast,
104
- ToastAction,
105
- ToastClose,
106
- ToastTitle,
107
- ToastDescription
108
- };
@@ -1,58 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-ZIF4PLK3.mjs";
4
-
5
- // src/tabs/index.tsx
6
- import * as React from "react";
7
- import * as TabsPrimitive from "@radix-ui/react-tabs";
8
- import { jsx } from "react/jsx-runtime";
9
- var Tabs = TabsPrimitive.Root;
10
- var TabsList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
11
- TabsPrimitive.List,
12
- {
13
- ref,
14
- className: cn(
15
- "inline-flex h-10 items-center justify-center rounded-md p-1",
16
- "bg-[var(--axis-surface-secondary)] text-[var(--axis-text-secondary)]",
17
- className
18
- ),
19
- ...props
20
- }
21
- ));
22
- TabsList.displayName = "TabsList";
23
- var TabsTrigger = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
24
- TabsPrimitive.Trigger,
25
- {
26
- ref,
27
- className: cn(
28
- "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium transition-all",
29
- "ring-offset-[var(--axis-surface-default)]",
30
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-border-focus)] focus-visible:ring-offset-2",
31
- "disabled:pointer-events-none disabled:opacity-50",
32
- "data-[state=active]:bg-[var(--axis-surface-default)] data-[state=active]:text-[var(--axis-text-primary)] data-[state=active]:shadow-sm",
33
- className
34
- ),
35
- ...props
36
- }
37
- ));
38
- TabsTrigger.displayName = "TabsTrigger";
39
- var TabsContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
40
- TabsPrimitive.Content,
41
- {
42
- ref,
43
- className: cn(
44
- "mt-2 ring-offset-[var(--axis-surface-default)]",
45
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-border-focus)] focus-visible:ring-offset-2",
46
- className
47
- ),
48
- ...props
49
- }
50
- ));
51
- TabsContent.displayName = "TabsContent";
52
-
53
- export {
54
- Tabs,
55
- TabsList,
56
- TabsTrigger,
57
- TabsContent
58
- };
@@ -1,37 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-ZIF4PLK3.mjs";
4
-
5
- // src/switch/index.tsx
6
- import * as React from "react";
7
- import * as SwitchPrimitive from "@radix-ui/react-switch";
8
- import { jsx } from "react/jsx-runtime";
9
- var Switch = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
10
- SwitchPrimitive.Root,
11
- {
12
- className: cn(
13
- "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors",
14
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-border-focus)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--axis-surface-default)]",
15
- "disabled:cursor-not-allowed disabled:opacity-50",
16
- "data-[state=checked]:bg-[var(--axis-interactive-primary)]",
17
- "data-[state=unchecked]:bg-[var(--axis-surface-tertiary)]",
18
- className
19
- ),
20
- ...props,
21
- ref,
22
- children: /* @__PURE__ */ jsx(
23
- SwitchPrimitive.Thumb,
24
- {
25
- className: cn(
26
- "pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform",
27
- "data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
28
- )
29
- }
30
- )
31
- }
32
- ));
33
- Switch.displayName = "Switch";
34
-
35
- export {
36
- Switch
37
- };
@@ -1,43 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-ZIF4PLK3.mjs";
4
-
5
- // src/toggle/index.tsx
6
- import * as React from "react";
7
- import * as TogglePrimitive from "@radix-ui/react-toggle";
8
- import { cva } from "class-variance-authority";
9
- import { jsx } from "react/jsx-runtime";
10
- var toggleVariants = cva(
11
- "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-[var(--axis-surface-default)] transition-colors hover:bg-[var(--axis-surface-secondary)] hover:text-[var(--axis-text-secondary)] 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 data-[state=on]:bg-[var(--axis-surface-secondary)] data-[state=on]:text-[var(--axis-text-primary)] [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
12
- {
13
- variants: {
14
- variant: {
15
- default: "bg-transparent",
16
- outline: "border border-[var(--axis-border-default)] bg-transparent hover:bg-[var(--axis-surface-secondary)] hover:text-[var(--axis-text-primary)]"
17
- },
18
- size: {
19
- default: "h-10 px-3 min-w-10",
20
- sm: "h-9 px-2.5 min-w-9",
21
- lg: "h-11 px-5 min-w-11"
22
- }
23
- },
24
- defaultVariants: {
25
- variant: "default",
26
- size: "default"
27
- }
28
- }
29
- );
30
- var Toggle = React.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx(
31
- TogglePrimitive.Root,
32
- {
33
- ref,
34
- className: cn(toggleVariants({ variant, size, className })),
35
- ...props
36
- }
37
- ));
38
- Toggle.displayName = "Toggle";
39
-
40
- export {
41
- toggleVariants,
42
- Toggle
43
- };
@@ -1,132 +0,0 @@
1
- import {
2
- cn
3
- } from "./chunk-ZIF4PLK3.mjs";
4
-
5
- // src/breadcrumb/index.tsx
6
- import * as React from "react";
7
- import { Slot } from "@radix-ui/react-slot";
8
- import { jsx, jsxs } from "react/jsx-runtime";
9
- var Breadcrumb = React.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx("nav", { ref, "aria-label": "breadcrumb", ...props }));
10
- Breadcrumb.displayName = "Breadcrumb";
11
- var BreadcrumbList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
12
- "ol",
13
- {
14
- ref,
15
- className: cn(
16
- "flex flex-wrap items-center gap-1.5 break-words text-sm text-[var(--axis-text-secondary)] sm:gap-2.5",
17
- className
18
- ),
19
- ...props
20
- }
21
- ));
22
- BreadcrumbList.displayName = "BreadcrumbList";
23
- var BreadcrumbItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
24
- "li",
25
- {
26
- ref,
27
- className: cn("inline-flex items-center gap-1.5", className),
28
- ...props
29
- }
30
- ));
31
- BreadcrumbItem.displayName = "BreadcrumbItem";
32
- var BreadcrumbLink = React.forwardRef(({ asChild, className, ...props }, ref) => {
33
- const Comp = asChild ? Slot : "a";
34
- return /* @__PURE__ */ jsx(
35
- Comp,
36
- {
37
- ref,
38
- className: cn(
39
- "transition-colors hover:text-[var(--axis-text-primary)]",
40
- className
41
- ),
42
- ...props
43
- }
44
- );
45
- });
46
- BreadcrumbLink.displayName = "BreadcrumbLink";
47
- var BreadcrumbPage = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
48
- "span",
49
- {
50
- ref,
51
- role: "link",
52
- "aria-disabled": "true",
53
- "aria-current": "page",
54
- className: cn("font-normal text-[var(--axis-text-primary)]", className),
55
- ...props
56
- }
57
- ));
58
- BreadcrumbPage.displayName = "BreadcrumbPage";
59
- var BreadcrumbSeparator = ({
60
- children,
61
- className,
62
- ...props
63
- }) => /* @__PURE__ */ jsx(
64
- "li",
65
- {
66
- role: "presentation",
67
- "aria-hidden": "true",
68
- className: cn("[&>svg]:h-3.5 [&>svg]:w-3.5", className),
69
- ...props,
70
- children: children ?? /* @__PURE__ */ jsx(
71
- "svg",
72
- {
73
- xmlns: "http://www.w3.org/2000/svg",
74
- width: "16",
75
- height: "16",
76
- viewBox: "0 0 24 24",
77
- fill: "none",
78
- stroke: "currentColor",
79
- strokeWidth: "2",
80
- strokeLinecap: "round",
81
- strokeLinejoin: "round",
82
- children: /* @__PURE__ */ jsx("path", { d: "m9 18 6-6-6-6" })
83
- }
84
- )
85
- }
86
- );
87
- BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
88
- var BreadcrumbEllipsis = ({
89
- className,
90
- ...props
91
- }) => /* @__PURE__ */ jsxs(
92
- "span",
93
- {
94
- role: "presentation",
95
- "aria-hidden": "true",
96
- className: cn("flex h-9 w-9 items-center justify-center", className),
97
- ...props,
98
- children: [
99
- /* @__PURE__ */ jsxs(
100
- "svg",
101
- {
102
- xmlns: "http://www.w3.org/2000/svg",
103
- width: "16",
104
- height: "16",
105
- viewBox: "0 0 24 24",
106
- fill: "none",
107
- stroke: "currentColor",
108
- strokeWidth: "2",
109
- strokeLinecap: "round",
110
- strokeLinejoin: "round",
111
- children: [
112
- /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "1" }),
113
- /* @__PURE__ */ jsx("circle", { cx: "19", cy: "12", r: "1" }),
114
- /* @__PURE__ */ jsx("circle", { cx: "5", cy: "12", r: "1" })
115
- ]
116
- }
117
- ),
118
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: "More" })
119
- ]
120
- }
121
- );
122
- BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
123
-
124
- export {
125
- Breadcrumb,
126
- BreadcrumbList,
127
- BreadcrumbItem,
128
- BreadcrumbLink,
129
- BreadcrumbPage,
130
- BreadcrumbSeparator,
131
- BreadcrumbEllipsis
132
- };