@gears-frontx/ui-kit 0.3.0-alpha.1 → 0.3.0-alpha.3

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 (55) hide show
  1. package/README.md +15 -0
  2. package/dist/badge.js +40 -19
  3. package/dist/badge.js.map +1 -1
  4. package/dist/button.js +40 -40
  5. package/dist/button.js.map +1 -1
  6. package/dist/checkbox.js +5 -5
  7. package/dist/chunks/badge.BcdxDzJ7.css +1 -0
  8. package/dist/chunks/button.DNo8DTR3.css +1 -0
  9. package/dist/chunks/checkbox.D3kdAalh.css +1 -0
  10. package/dist/chunks/input.C8RDCC-a.css +1 -0
  11. package/dist/chunks/radio-group.zAFY9yCF.css +1 -0
  12. package/dist/chunks/select.Dt0diN4P.css +1 -0
  13. package/dist/chunks/switch.CsaIRnCA.css +1 -0
  14. package/dist/chunks/{table.r8ppNt1W.css → table.BuWHXL6e.css} +1 -1
  15. package/dist/chunks/tabs.KEksCAxN.css +1 -0
  16. package/dist/chunks/{textarea.BKWvs6fD.css → textarea.N3iiWUuz.css} +1 -1
  17. package/dist/chunks/toast.DMUpK07T.css +1 -0
  18. package/dist/components/badge/badge.d.ts +14 -2
  19. package/dist/components/badge/badge.d.ts.map +1 -1
  20. package/dist/components/button/button.d.ts.map +1 -1
  21. package/dist/components/dropdown-menu/dropdown-menu.d.ts.map +1 -1
  22. package/dist/components/input/input.d.ts +17 -1
  23. package/dist/components/input/input.d.ts.map +1 -1
  24. package/dist/components/select/select.d.ts +2 -2
  25. package/dist/components/select/select.d.ts.map +1 -1
  26. package/dist/components/toast/toast.d.ts.map +1 -1
  27. package/dist/docs/badge.md +22 -8
  28. package/dist/docs/button.md +43 -8
  29. package/dist/docs/input.md +32 -6
  30. package/dist/docs/select.md +13 -9
  31. package/dist/dropdown-menu.js +42 -41
  32. package/dist/dropdown-menu.js.map +1 -1
  33. package/dist/input.js +27 -21
  34. package/dist/input.js.map +1 -1
  35. package/dist/radio-group.js +8 -8
  36. package/dist/select.js +57 -65
  37. package/dist/select.js.map +1 -1
  38. package/dist/switch.js +8 -8
  39. package/dist/table.js +33 -33
  40. package/dist/tabs.js +20 -20
  41. package/dist/textarea.js +4 -4
  42. package/dist/theme.css +31 -6
  43. package/dist/toast.js +61 -60
  44. package/dist/toast.js.map +1 -1
  45. package/llms.txt +32 -17
  46. package/package.json +2 -1
  47. package/dist/chunks/badge.ej-3-Xs4.css +0 -1
  48. package/dist/chunks/button.CKfALaMe.css +0 -1
  49. package/dist/chunks/checkbox.Dd6YDr20.css +0 -1
  50. package/dist/chunks/input.CrRQ0OAn.css +0 -1
  51. package/dist/chunks/radio-group.1Y6B0lXt.css +0 -1
  52. package/dist/chunks/select.BmyP2S2q.css +0 -1
  53. package/dist/chunks/switch.B_ebMSxR.css +0 -1
  54. package/dist/chunks/tabs.DqJE9cX3.css +0 -1
  55. package/dist/chunks/toast.DMl31Mq4.css +0 -1
package/dist/toast.js CHANGED
@@ -1,8 +1,9 @@
1
- import { jsxs as r, jsx as o } from "react/jsx-runtime";
2
- import { Toast as e } from "@base-ui/react/toast";
1
+ "use client";
2
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
3
+ import { Toast as n } from "@base-ui/react/toast";
3
4
  import { cx as i } from "class-variance-authority";
4
5
  import { Button as a } from "./button.js";
5
- import './chunks/toast.DMl31Mq4.css';const h = "_viewport_12x05_12", p = "_toast_12x05_10", _ = "_content_12x05_76", v = "_icon_12x05_253", m = "_iconDestructive_12x05_260", k = "_iconSpin_12x05_264", f = "_body_12x05_289", x = "_title_12x05_301", g = "_description_12x05_308", N = "_action_12x05_316", L = "_close_12x05_323", M = "_svgIcon_12x05_346", n = {
6
+ import './chunks/toast.DMUpK07T.css';const h = "_viewport_1leeo_12", p = "_toast_1leeo_10", _ = "_content_1leeo_76", v = "_icon_1leeo_255", m = "_iconDestructive_1leeo_262", k = "_iconSpin_1leeo_266", f = "_body_1leeo_291", g = "_title_1leeo_303", N = "_description_1leeo_310", L = "_action_1leeo_318", M = "_close_1leeo_325", T = "_svgIcon_1leeo_348", t = {
6
7
  viewport: h,
7
8
  toast: p,
8
9
  content: _,
@@ -10,17 +11,17 @@ import './chunks/toast.DMl31Mq4.css';const h = "_viewport_12x05_12", p = "_toast
10
11
  iconDestructive: m,
11
12
  iconSpin: k,
12
13
  body: f,
13
- title: x,
14
- description: g,
15
- action: N,
16
- close: L,
17
- svgIcon: M
14
+ title: g,
15
+ description: N,
16
+ action: L,
17
+ close: M,
18
+ svgIcon: T
18
19
  };
19
- function T({ className: t }) {
20
+ function w({ className: o }) {
20
21
  return /* @__PURE__ */ r(
21
22
  "svg",
22
23
  {
23
- className: i(n.icon, t),
24
+ className: i(t.icon, o),
24
25
  viewBox: "0 0 24 24",
25
26
  fill: "none",
26
27
  stroke: "currentColor",
@@ -29,17 +30,17 @@ function T({ className: t }) {
29
30
  strokeLinejoin: "round",
30
31
  "aria-hidden": "true",
31
32
  children: [
32
- /* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "10" }),
33
- /* @__PURE__ */ o("path", { d: "m9 12 2 2 4-4" })
33
+ /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10" }),
34
+ /* @__PURE__ */ e("path", { d: "m9 12 2 2 4-4" })
34
35
  ]
35
36
  }
36
37
  );
37
38
  }
38
- function w({ className: t }) {
39
+ function C({ className: o }) {
39
40
  return /* @__PURE__ */ r(
40
41
  "svg",
41
42
  {
42
- className: i(n.icon, t),
43
+ className: i(t.icon, o),
43
44
  viewBox: "0 0 24 24",
44
45
  fill: "none",
45
46
  stroke: "currentColor",
@@ -48,18 +49,18 @@ function w({ className: t }) {
48
49
  strokeLinejoin: "round",
49
50
  "aria-hidden": "true",
50
51
  children: [
51
- /* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "10" }),
52
- /* @__PURE__ */ o("path", { d: "M12 16v-4" }),
53
- /* @__PURE__ */ o("path", { d: "M12 8h.01" })
52
+ /* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10" }),
53
+ /* @__PURE__ */ e("path", { d: "M12 16v-4" }),
54
+ /* @__PURE__ */ e("path", { d: "M12 8h.01" })
54
55
  ]
55
56
  }
56
57
  );
57
58
  }
58
- function C({ className: t }) {
59
+ function x({ className: o }) {
59
60
  return /* @__PURE__ */ r(
60
61
  "svg",
61
62
  {
62
- className: i(n.icon, t),
63
+ className: i(t.icon, o),
63
64
  viewBox: "0 0 24 24",
64
65
  fill: "none",
65
66
  stroke: "currentColor",
@@ -68,18 +69,18 @@ function C({ className: t }) {
68
69
  strokeLinejoin: "round",
69
70
  "aria-hidden": "true",
70
71
  children: [
71
- /* @__PURE__ */ o("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }),
72
- /* @__PURE__ */ o("path", { d: "M12 9v4" }),
73
- /* @__PURE__ */ o("path", { d: "M12 17h.01" })
72
+ /* @__PURE__ */ e("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }),
73
+ /* @__PURE__ */ e("path", { d: "M12 9v4" }),
74
+ /* @__PURE__ */ e("path", { d: "M12 17h.01" })
74
75
  ]
75
76
  }
76
77
  );
77
78
  }
78
- function I({ className: t }) {
79
+ function I({ className: o }) {
79
80
  return /* @__PURE__ */ r(
80
81
  "svg",
81
82
  {
82
- className: i(n.icon, t),
83
+ className: i(t.icon, o),
83
84
  viewBox: "0 0 24 24",
84
85
  fill: "none",
85
86
  stroke: "currentColor",
@@ -88,18 +89,18 @@ function I({ className: t }) {
88
89
  strokeLinejoin: "round",
89
90
  "aria-hidden": "true",
90
91
  children: [
91
- /* @__PURE__ */ o("path", { d: "m15 9-6 6" }),
92
- /* @__PURE__ */ o("path", { d: "M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z" }),
93
- /* @__PURE__ */ o("path", { d: "m9 9 6 6" })
92
+ /* @__PURE__ */ e("path", { d: "m15 9-6 6" }),
93
+ /* @__PURE__ */ e("path", { d: "M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z" }),
94
+ /* @__PURE__ */ e("path", { d: "m9 9 6 6" })
94
95
  ]
95
96
  }
96
97
  );
97
98
  }
98
- function y({ className: t }) {
99
- return /* @__PURE__ */ o(
99
+ function y({ className: o }) {
100
+ return /* @__PURE__ */ e(
100
101
  "svg",
101
102
  {
102
- className: i(n.icon, t),
103
+ className: i(t.icon, o),
103
104
  viewBox: "0 0 24 24",
104
105
  fill: "none",
105
106
  stroke: "currentColor",
@@ -107,15 +108,15 @@ function y({ className: t }) {
107
108
  strokeLinecap: "round",
108
109
  strokeLinejoin: "round",
109
110
  "aria-hidden": "true",
110
- children: /* @__PURE__ */ o("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
111
+ children: /* @__PURE__ */ e("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
111
112
  }
112
113
  );
113
114
  }
114
- function j({ className: t }) {
115
- return /* @__PURE__ */ o(
115
+ function j({ className: o }) {
116
+ return /* @__PURE__ */ e(
116
117
  "svg",
117
118
  {
118
- className: i(n.svgIcon, t),
119
+ className: i(t.svgIcon, o),
119
120
  viewBox: "0 0 24 24",
120
121
  fill: "none",
121
122
  stroke: "currentColor",
@@ -123,54 +124,54 @@ function j({ className: t }) {
123
124
  strokeLinecap: "round",
124
125
  strokeLinejoin: "round",
125
126
  "aria-hidden": "true",
126
- children: /* @__PURE__ */ o("path", { d: "M18 6 6 18M6 6l12 12" })
127
+ children: /* @__PURE__ */ e("path", { d: "M18 6 6 18M6 6l12 12" })
127
128
  }
128
129
  );
129
130
  }
130
- function B({ type: t }) {
131
- switch (t) {
131
+ function B({ type: o }) {
132
+ switch (o) {
132
133
  case "success":
133
- return /* @__PURE__ */ o(T, {});
134
+ return /* @__PURE__ */ e(w, {});
134
135
  case "info":
135
- return /* @__PURE__ */ o(w, {});
136
+ return /* @__PURE__ */ e(C, {});
136
137
  case "warning":
137
- return /* @__PURE__ */ o(C, {});
138
+ return /* @__PURE__ */ e(x, {});
138
139
  case "error":
139
- return /* @__PURE__ */ o(I, { className: n.iconDestructive });
140
+ return /* @__PURE__ */ e(I, { className: t.iconDestructive });
140
141
  case "loading":
141
- return /* @__PURE__ */ o(y, { className: n.iconSpin });
142
+ return /* @__PURE__ */ e(y, { className: t.iconSpin });
142
143
  default:
143
144
  return null;
144
145
  }
145
146
  }
146
147
  function b({
147
- toast: t,
148
+ toast: o,
148
149
  closeLabel: s
149
150
  }) {
150
- return /* @__PURE__ */ o(e.Root, { toast: t, className: n.toast, children: /* @__PURE__ */ r(e.Content, { className: n.content, children: [
151
- /* @__PURE__ */ o(B, { type: t.type }),
152
- /* @__PURE__ */ r("div", { className: n.body, children: [
153
- /* @__PURE__ */ o(e.Title, { className: n.title }),
154
- /* @__PURE__ */ o(e.Description, { className: n.description })
151
+ return /* @__PURE__ */ e(n.Root, { toast: o, className: t.toast, children: /* @__PURE__ */ r(n.Content, { className: t.content, children: [
152
+ /* @__PURE__ */ e(B, { type: o.type }),
153
+ /* @__PURE__ */ r("div", { className: t.body, children: [
154
+ /* @__PURE__ */ e(n.Title, { className: t.title }),
155
+ /* @__PURE__ */ e(n.Description, { className: t.description })
155
156
  ] }),
156
- /* @__PURE__ */ o(e.Action, { className: n.action, render: /* @__PURE__ */ o(a, { variant: "outline", size: "sm" }) }),
157
- /* @__PURE__ */ o(
158
- e.Close,
157
+ /* @__PURE__ */ e(n.Action, { className: t.action, render: /* @__PURE__ */ e(a, { variant: "outline", size: "sm" }) }),
158
+ /* @__PURE__ */ e(
159
+ n.Close,
159
160
  {
160
161
  "aria-label": s,
161
- className: n.close,
162
- render: /* @__PURE__ */ o(a, { variant: "ghost", icon: /* @__PURE__ */ o(j, {}) })
162
+ className: t.close,
163
+ render: /* @__PURE__ */ e(a, { variant: "ghost", icon: /* @__PURE__ */ e(j, {}) })
163
164
  }
164
165
  )
165
166
  ] }) });
166
167
  }
167
- function A({ closeLabel: t }) {
168
- const { toasts: s } = e.useToastManager();
169
- return s.map((c) => /* @__PURE__ */ o(b, { toast: c, closeLabel: t }, c.id));
168
+ function A({ closeLabel: o }) {
169
+ const { toasts: s } = n.useToastManager();
170
+ return s.map((c) => /* @__PURE__ */ e(b, { toast: c, closeLabel: o }, c.id));
170
171
  }
171
- const W = e.createToastManager(), V = e.useToastManager, H = e.createToastManager;
172
+ const W = n.createToastManager(), V = n.useToastManager, H = n.createToastManager;
172
173
  function O({
173
- container: t,
174
+ container: o,
174
175
  children: s,
175
176
  closeLabel: c = "Close toast",
176
177
  // Defaulted here rather than left to Base UI's own 'Notifications', so an
@@ -179,9 +180,9 @@ function O({
179
180
  toastManager: d = W,
180
181
  ...u
181
182
  }) {
182
- return /* @__PURE__ */ r(e.Provider, { toastManager: d, ...u, children: [
183
+ return /* @__PURE__ */ r(n.Provider, { toastManager: d, ...u, children: [
183
184
  s,
184
- /* @__PURE__ */ o(e.Portal, { container: t, children: /* @__PURE__ */ o(e.Viewport, { "aria-label": l, className: n.viewport, children: /* @__PURE__ */ o(A, { closeLabel: c }) }) })
185
+ /* @__PURE__ */ e(n.Portal, { container: o, children: /* @__PURE__ */ e(n.Viewport, { "aria-label": l, className: t.viewport, children: /* @__PURE__ */ e(A, { closeLabel: c }) }) })
185
186
  ] });
186
187
  }
187
188
  export {
package/dist/toast.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"toast.js","sources":["../src/components/toast/toast.tsx"],"sourcesContent":["import { Toast as ToastPrimitive } from '@base-ui/react/toast';\nimport { cx } from 'class-variance-authority';\n\nimport { Button } from '../button/button';\nimport styles from './toast.module.css';\n\n/*\n * Inline lucide paths (ISC) — the kit carries no icon dependency. One icon\n * per toast `type`; an unset/unrecognized type renders no icon, matching\n * the base-vega source's <ToastIcon>.\n */\nfunction CheckCircleIcon({ className }: { className?: string }) {\n return (\n <svg\n className={cx(styles.icon, className)}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"m9 12 2 2 4-4\" />\n </svg>\n );\n}\n\nfunction InfoIcon({ className }: { className?: string }) {\n return (\n <svg\n className={cx(styles.icon, className)}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M12 16v-4\" />\n <path d=\"M12 8h.01\" />\n </svg>\n );\n}\n\nfunction TriangleAlertIcon({ className }: { className?: string }) {\n return (\n <svg\n className={cx(styles.icon, className)}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\" />\n <path d=\"M12 9v4\" />\n <path d=\"M12 17h.01\" />\n </svg>\n );\n}\n\nfunction OctagonXIcon({ className }: { className?: string }) {\n return (\n <svg\n className={cx(styles.icon, className)}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m15 9-6 6\" />\n <path d=\"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z\" />\n <path d=\"m9 9 6 6\" />\n </svg>\n );\n}\n\nfunction LoaderIcon({ className }: { className?: string }) {\n return (\n <svg\n className={cx(styles.icon, className)}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M21 12a9 9 0 1 1-6.219-8.56\" />\n </svg>\n );\n}\n\nfunction CloseIcon({ className }: { className?: string }) {\n return (\n <svg\n className={cx(styles.svgIcon, className)}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18M6 6l12 12\" />\n </svg>\n );\n}\n\nfunction ToastTypeIcon({ type }: { type?: string }) {\n switch (type) {\n case 'success':\n return <CheckCircleIcon />;\n case 'info':\n return <InfoIcon />;\n case 'warning':\n return <TriangleAlertIcon />;\n case 'error':\n return <OctagonXIcon className={styles.iconDestructive} />;\n case 'loading':\n return <LoaderIcon className={styles.iconSpin} />;\n default:\n return null;\n }\n}\n\n/*\n * One rendered toast card. Not exported — a `Toast` type prop drives the\n * icon and (via CSS `data-type`) any future type-specific styling, but the\n * kit's usage model is imperative (`toast.add({...})`, see below), not\n * composing a `<Toast>` per notification the way `Dialog`/`DropdownMenu`\n * are composed. `ToastPrimitive.Title`/`Description`/`Action` all read\n * their content from the `toast` object via context and render nothing if\n * it's unset — no children needed here.\n */\nfunction ToastCard({\n toast: item,\n closeLabel,\n}: {\n toast: ToastPrimitive.Root.ToastObject;\n closeLabel: string;\n}) {\n return (\n <ToastPrimitive.Root toast={item} className={styles.toast}>\n <ToastPrimitive.Content className={styles.content}>\n <ToastTypeIcon type={item.type} />\n <div className={styles.body}>\n <ToastPrimitive.Title className={styles.title} />\n <ToastPrimitive.Description className={styles.description} />\n </div>\n <ToastPrimitive.Action className={styles.action} render={<Button variant=\"outline\" size=\"sm\" />} />\n <ToastPrimitive.Close\n aria-label={closeLabel}\n className={styles.close}\n render={<Button variant=\"ghost\" icon={<CloseIcon />} />}\n />\n </ToastPrimitive.Content>\n </ToastPrimitive.Root>\n );\n}\n\n/* Reads the live toast list from context and renders one ToastCard each. */\nfunction ToastList({ closeLabel }: { closeLabel: string }) {\n const { toasts } = ToastPrimitive.useToastManager();\n return toasts.map((item) => <ToastCard key={item.id} toast={item} closeLabel={closeLabel} />);\n}\n\n/**\n * Shared imperative toast manager: call `toast.add({ title, description })`\n * (or `.close()`, `.update()`, `.promise()`) from anywhere in the app —\n * no hook, and no ancestor `Toaster`/`ToastProvider`, required to fire\n * one. `Toaster` renders whatever this manager holds by default.\n *\n * A module-scope singleton is a deliberate choice, not the only shape Base\n * UI's Toast offers (see `createToastManager`/`useToastManager` below): it\n * keeps sonner's own call-anywhere `toast()` ergonomics (see\n * design-notes.md for why Base UI's Toast replaced sonner) without needing\n * a component to be inside a Provider's subtree or accept a manager prop.\n *\n * Three failure modes worth knowing about a singleton, all silent: it's\n * SSR-safe (the object above holds no toast state itself, only a listener\n * registered by whichever `Toaster` mounts), but `toast.add(...)` called\n * before any `Toaster` has mounted, or from code that resolved a\n * different copy of this module (e.g. a mixed CJS/ESM require graph),\n * drops the toast with no error — there is no queue and nothing to catch.\n * And the inverse: TWO mounted `Toaster`s on this shared manager render\n * every toast twice, once per viewport (plausible in a shell + MFE setup\n * where each fragment mounts its own) — a second viewport should get its\n * own `createToastManager()` instead.\n */\nexport const toast = ToastPrimitive.createToastManager();\n\n/**\n * Reads the live toast list and the `add`/`close`/`update`/`promise`\n * bound to whichever manager the nearest `Toaster` ancestor was given\n * (the shared `toast` singleton unless overridden) — from a component\n * nested under `Toaster`, this is how you react to the toast list itself\n * (e.g. an unread-count badge) or call that same manager without\n * importing it directly. Not a way to render toast cards in place of\n * `Toaster`: the kit exports no Root/Content/Title/etc. parts to build\n * one with.\n *\n * Whether a consumer's own `@base-ui/react` shares this context depends\n * on whether the installer resolved one copy or two. `@base-ui/react` is\n * a regular dependency of this package and stays external in the build\n * (nothing is bundled but the CSS class maps), so a consumer whose own\n * range is satisfied by the same version dedupes to a single copy and\n * shares context; a consumer pinned to an incompatible version gets a\n * nested second copy, and then Base UI's Toast context — like every\n * React context — does not cross between them.\n */\nexport const useToastManager = ToastPrimitive.useToastManager;\n\n/**\n * Creates an isolated toast manager, independent of the shared `toast`\n * singleton — e.g. to scope a second, differently-positioned `Toaster` to\n * one part of the app instead of sharing the app-wide instance. Pass the\n * result as `toastManager` to `Toaster`.\n */\nexport const createToastManager = ToastPrimitive.createToastManager;\n\nexport interface ToasterProps extends ToastPrimitive.Provider.Props {\n /**\n * Where to portal the toast viewport. Defaults to <body>. Pass a themed\n * container when the theme is scoped to a subtree (data-theme on a\n * container that isn't at document root) so toasts inherit its tokens\n * and font.\n */\n container?: ToastPrimitive.Portal.Props['container'];\n /**\n * Accessible name for each toast's close (X) button — one of the two\n * strings a non-English app needs to replace (`label` below is the\n * other). @default 'Close toast'\n */\n closeLabel?: string;\n /**\n * Accessible name for the toast region landmark. Base UI puts\n * `role=\"region\" aria-label=\"Notifications\"` on the viewport; without\n * this prop a screen-reader user hears that English landmark name no\n * matter what language the app is in. @default 'Notifications'\n */\n label?: string;\n}\n\n/**\n * Mount once, wrapping the app (or at least any subtree that calls\n * `useToastManager`) — pass the app as `children`. The toast list itself\n * portals to `<body>` (or `container`) regardless of where `Toaster` sits\n * in the tree, so wrapping vs. mounting as a leaf near the root both work\n * for the common case of firing toasts via the `toast` manager above.\n *\n * Defaults `toastManager` to this module's shared singleton — see `toast`.\n */\nexport function Toaster({\n container,\n children,\n closeLabel = 'Close toast',\n // Defaulted here rather than left to Base UI's own 'Notifications', so an\n // explicit undefined can never wipe the landmark name in the merge.\n label = 'Notifications',\n toastManager = toast,\n ...props\n}: ToasterProps) {\n return (\n <ToastPrimitive.Provider toastManager={toastManager} {...props}>\n {children}\n <ToastPrimitive.Portal container={container}>\n <ToastPrimitive.Viewport aria-label={label} className={styles.viewport}>\n <ToastList closeLabel={closeLabel} />\n </ToastPrimitive.Viewport>\n </ToastPrimitive.Portal>\n </ToastPrimitive.Provider>\n );\n}\n"],"names":["CheckCircleIcon","className","jsxs","cx","styles","jsx","InfoIcon","TriangleAlertIcon","OctagonXIcon","LoaderIcon","CloseIcon","ToastTypeIcon","type","ToastCard","item","closeLabel","ToastPrimitive","Button","ToastList","toasts","toast","useToastManager","createToastManager","Toaster","container","children","label","toastManager","props"],"mappings":";;;;;;;;;;;;;;;;;;AAWA,SAASA,EAAgB,EAAE,WAAAC,KAAqC;AAC9D,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAGC,EAAO,MAAMH,CAAS;AAAA,MACpC,SAAQ;AAAA,MACR,MAAK;AAAA,MACL,QAAO;AAAA,MACP,aAAY;AAAA,MACZ,eAAc;AAAA,MACd,gBAAe;AAAA,MACf,eAAY;AAAA,MAEZ,UAAA;AAAA,QAAA,gBAAAI,EAAC,YAAO,IAAG,MAAK,IAAG,MAAK,GAAE,MAAK;AAAA,QAC/B,gBAAAA,EAAC,QAAA,EAAK,GAAE,gBAAA,CAAgB;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG9B;AAEA,SAASC,EAAS,EAAE,WAAAL,KAAqC;AACvD,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AA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V,IAAa;AAAA;AAAA;AAAA,EAGb,OAAAW,IAAQ;AAAA,EACR,cAAAC,IAAeP;AAAA,EACf,GAAGQ;AACL,GAAiB;AACf,2BACGZ,EAAe,UAAf,EAAwB,cAAAW,GAA6B,GAAGC,GACtD,UAAA;AAAA,IAAAH;AAAA,sBACAT,EAAe,QAAf,EAAsB,WAAAQ,GACrB,UAAA,gBAAAnB,EAACW,EAAe,UAAf,EAAwB,cAAYU,GAAO,WAAWtB,EAAO,UAC5D,4BAACc,GAAA,EAAU,YAAAH,GAAwB,GACrC,EAAA,CACF;AAAA,EAAA,GACF;AAEJ;"}
1
+ {"version":3,"file":"toast.js","sources":["../src/components/toast/toast.tsx"],"sourcesContent":["// Load-bearing: ToastList calls useToastManager directly, so this can't be\n// dropped. Coupled to CLIENT_COMPONENTS in scripts/verify-consumer.sh —\n// keep both in sync if this ever changes.\n'use client';\n\nimport { Toast as ToastPrimitive } from '@base-ui/react/toast';\nimport { cx } from 'class-variance-authority';\n\nimport { Button } from '../button/button';\nimport styles from './toast.module.css';\n\n/*\n * Inline lucide paths (ISC) — the kit carries no icon dependency. One icon\n * per toast `type`; an unset/unrecognized type renders no icon, matching\n * the base-vega source's <ToastIcon>.\n */\nfunction CheckCircleIcon({ className }: { className?: string }) {\n return (\n <svg\n className={cx(styles.icon, className)}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"m9 12 2 2 4-4\" />\n </svg>\n );\n}\n\nfunction InfoIcon({ className }: { className?: string }) {\n return (\n <svg\n className={cx(styles.icon, className)}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M12 16v-4\" />\n <path d=\"M12 8h.01\" />\n </svg>\n );\n}\n\nfunction TriangleAlertIcon({ className }: { className?: string }) {\n return (\n <svg\n className={cx(styles.icon, className)}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\" />\n <path d=\"M12 9v4\" />\n <path d=\"M12 17h.01\" />\n </svg>\n );\n}\n\nfunction OctagonXIcon({ className }: { className?: string }) {\n return (\n <svg\n className={cx(styles.icon, className)}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m15 9-6 6\" />\n <path d=\"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z\" />\n <path d=\"m9 9 6 6\" />\n </svg>\n );\n}\n\nfunction LoaderIcon({ className }: { className?: string }) {\n return (\n <svg\n className={cx(styles.icon, className)}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M21 12a9 9 0 1 1-6.219-8.56\" />\n </svg>\n );\n}\n\nfunction CloseIcon({ className }: { className?: string }) {\n return (\n <svg\n className={cx(styles.svgIcon, className)}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18M6 6l12 12\" />\n </svg>\n );\n}\n\nfunction ToastTypeIcon({ type }: { type?: string }) {\n switch (type) {\n case 'success':\n return <CheckCircleIcon />;\n case 'info':\n return <InfoIcon />;\n case 'warning':\n return <TriangleAlertIcon />;\n case 'error':\n return <OctagonXIcon className={styles.iconDestructive} />;\n case 'loading':\n return <LoaderIcon className={styles.iconSpin} />;\n default:\n return null;\n }\n}\n\n/*\n * One rendered toast card. Not exported — a `Toast` type prop drives the\n * icon and (via CSS `data-type`) any future type-specific styling, but the\n * kit's usage model is imperative (`toast.add({...})`, see below), not\n * composing a `<Toast>` per notification the way `Dialog`/`DropdownMenu`\n * are composed. `ToastPrimitive.Title`/`Description`/`Action` all read\n * their content from the `toast` object via context and render nothing if\n * it's unset — no children needed here.\n */\nfunction ToastCard({\n toast: item,\n closeLabel,\n}: {\n toast: ToastPrimitive.Root.ToastObject;\n closeLabel: string;\n}) {\n return (\n <ToastPrimitive.Root toast={item} className={styles.toast}>\n <ToastPrimitive.Content className={styles.content}>\n <ToastTypeIcon type={item.type} />\n <div className={styles.body}>\n <ToastPrimitive.Title className={styles.title} />\n <ToastPrimitive.Description className={styles.description} />\n </div>\n <ToastPrimitive.Action className={styles.action} render={<Button variant=\"outline\" size=\"sm\" />} />\n <ToastPrimitive.Close\n aria-label={closeLabel}\n className={styles.close}\n render={<Button variant=\"ghost\" icon={<CloseIcon />} />}\n />\n </ToastPrimitive.Content>\n </ToastPrimitive.Root>\n );\n}\n\n/* Reads the live toast list from context and renders one ToastCard each. */\nfunction ToastList({ closeLabel }: { closeLabel: string }) {\n const { toasts } = ToastPrimitive.useToastManager();\n return toasts.map((item) => <ToastCard key={item.id} toast={item} closeLabel={closeLabel} />);\n}\n\n/**\n * Shared imperative toast manager: call `toast.add({ title, description })`\n * (or `.close()`, `.update()`, `.promise()`) from anywhere in the app —\n * no hook, and no ancestor `Toaster`/`ToastProvider`, required to fire\n * one. `Toaster` renders whatever this manager holds by default.\n *\n * A module-scope singleton is a deliberate choice, not the only shape Base\n * UI's Toast offers (see `createToastManager`/`useToastManager` below): it\n * keeps sonner's own call-anywhere `toast()` ergonomics (see\n * design-notes.md for why Base UI's Toast replaced sonner) without needing\n * a component to be inside a Provider's subtree or accept a manager prop.\n *\n * Three failure modes worth knowing about a singleton, all silent: it's\n * SSR-safe (the object above holds no toast state itself, only a listener\n * registered by whichever `Toaster` mounts), but `toast.add(...)` called\n * before any `Toaster` has mounted, or from code that resolved a\n * different copy of this module (e.g. a mixed CJS/ESM require graph),\n * drops the toast with no error — there is no queue and nothing to catch.\n * And the inverse: TWO mounted `Toaster`s on this shared manager render\n * every toast twice, once per viewport (plausible in a shell + MFE setup\n * where each fragment mounts its own) — a second viewport should get its\n * own `createToastManager()` instead.\n */\nexport const toast = ToastPrimitive.createToastManager();\n\n/**\n * Reads the live toast list and the `add`/`close`/`update`/`promise`\n * bound to whichever manager the nearest `Toaster` ancestor was given\n * (the shared `toast` singleton unless overridden) — from a component\n * nested under `Toaster`, this is how you react to the toast list itself\n * (e.g. an unread-count badge) or call that same manager without\n * importing it directly. Not a way to render toast cards in place of\n * `Toaster`: the kit exports no Root/Content/Title/etc. parts to build\n * one with.\n *\n * Whether a consumer's own `@base-ui/react` shares this context depends\n * on whether the installer resolved one copy or two. `@base-ui/react` is\n * a regular dependency of this package and stays external in the build\n * (nothing is bundled but the CSS class maps), so a consumer whose own\n * range is satisfied by the same version dedupes to a single copy and\n * shares context; a consumer pinned to an incompatible version gets a\n * nested second copy, and then Base UI's Toast context — like every\n * React context — does not cross between them.\n */\nexport const useToastManager = ToastPrimitive.useToastManager;\n\n/**\n * Creates an isolated toast manager, independent of the shared `toast`\n * singleton — e.g. to scope a second, differently-positioned `Toaster` to\n * one part of the app instead of sharing the app-wide instance. Pass the\n * result as `toastManager` to `Toaster`.\n */\nexport const createToastManager = ToastPrimitive.createToastManager;\n\nexport interface ToasterProps extends ToastPrimitive.Provider.Props {\n /**\n * Where to portal the toast viewport. Defaults to <body>. Pass a themed\n * container when the theme is scoped to a subtree (data-theme on a\n * container that isn't at document root) so toasts inherit its tokens\n * and font.\n */\n container?: ToastPrimitive.Portal.Props['container'];\n /**\n * Accessible name for each toast's close (X) button — one of the two\n * strings a non-English app needs to replace (`label` below is the\n * other). @default 'Close toast'\n */\n closeLabel?: string;\n /**\n * Accessible name for the toast region landmark. Base UI puts\n * `role=\"region\" aria-label=\"Notifications\"` on the viewport; without\n * this prop a screen-reader user hears that English landmark name no\n * matter what language the app is in. @default 'Notifications'\n */\n label?: string;\n}\n\n/**\n * Mount once, wrapping the app (or at least any subtree that calls\n * `useToastManager`) — pass the app as `children`. The toast list itself\n * portals to `<body>` (or `container`) regardless of where `Toaster` sits\n * in the tree, so wrapping vs. mounting as a leaf near the root both work\n * for the common case of firing toasts via the `toast` manager above.\n *\n * Defaults `toastManager` to this module's shared singleton — see `toast`.\n */\nexport function Toaster({\n container,\n children,\n closeLabel = 'Close toast',\n // Defaulted here rather than left to Base UI's own 'Notifications', so an\n // explicit undefined can never wipe the landmark name in the merge.\n label = 'Notifications',\n toastManager = toast,\n ...props\n}: ToasterProps) {\n return (\n <ToastPrimitive.Provider toastManager={toastManager} {...props}>\n {children}\n <ToastPrimitive.Portal container={container}>\n <ToastPrimitive.Viewport aria-label={label} className={styles.viewport}>\n <ToastList closeLabel={closeLabel} />\n </ToastPrimitive.Viewport>\n </ToastPrimitive.Portal>\n </ToastPrimitive.Provider>\n );\n}\n"],"names":["CheckCircleIcon","className","jsxs","cx","styles","jsx","InfoIcon","TriangleAlertIcon","OctagonXIcon","LoaderIcon","CloseIcon","ToastTypeIcon","type","ToastCard","item","closeLabel","ToastPrimitive","Button","ToastList","toasts","toast","useToastManager","createToastManager","Toaster","container","children","label","toastManager","props"],"mappings":";;;;;;;;;;;;;;;;;;;AAgBA,SAASA,EAAgB,EAAE,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AAO,SAAQ,SAAQ,MAAM,gBAAAZ,EAACK,KAAU,EAAA,CAAI;AAAA,MAAA;AAAA,IAAA;AAAA,EACvD,EAAA,CACF,EAAA,CACF;AAEJ;AAGA,SAASQ,EAAU,EAAE,YAAAH,KAAsC;AACzD,QAAM,EAAE,QAAAI,EAAA,IAAWH,EAAe,gBAAA;AAClC,SAAOG,EAAO,IAAI,CAACL,MAAS,gBAAAT,EAACQ,GAAA,EAAwB,OAAOC,GAAM,YAAAC,EAAA,GAAtBD,EAAK,EAAyC,CAAE;AAC9F;AAyBO,MAAMM,IAAQJ,EAAe,mBAAA,GAqBvBK,IAAkBL,EAAe,iBAQjCM,IAAqBN,EAAe;AAkC1C,SAASO,EAAQ;AAAA,EACtB,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,YAAAV,IAAa;AAAA;AAAA;AAAA,EAGb,OAAAW,IAAQ;AAAA,EACR,cAAAC,IAAeP;AAAA,EACf,GAAGQ;AACL,GAAiB;AACf,2BACGZ,EAAe,UAAf,EAAwB,cAAAW,GAA6B,GAAGC,GACtD,UAAA;AAAA,IAAAH;AAAA,sBACAT,EAAe,QAAf,EAAsB,WAAAQ,GACrB,UAAA,gBAAAnB,EAACW,EAAe,UAAf,EAAwB,cAAYU,GAAO,WAAWtB,EAAO,UAC5D,4BAACc,GAAA,EAAU,YAAAH,GAAwB,GACrC,EAAA,CACF;AAAA,EAAA,GACF;AAEJ;"}
package/llms.txt CHANGED
@@ -19,6 +19,12 @@ Rules for generated code:
19
19
  tree-shakes unused components' JS from a root import already, but only
20
20
  drops their CSS from a subpath import — Vite and webpack drop both either
21
21
  way, so this only matters when esbuild is the actual bundler running.
22
+ - In an RSC framework (Next.js App Router), every component EXCEPT Badge,
23
+ DropdownMenu, and Toast is safe to import and render directly from a
24
+ Server Component — no wrapping client-boundary module needed. Those three
25
+ ship their own `'use client'` banner (each calls a hook — `useRender`,
26
+ `useContext`, `useToastManager` — directly in its own render body) and so
27
+ always render on the client, wherever they're imported from.
22
28
  - The kit paints the page itself from its tokens and sets `color-scheme`: with
23
29
  no `data-theme` attribute anywhere, `prefers-color-scheme: dark` alone
24
30
  yields a correct, legible dark page (background, text, and UA-owned
@@ -55,19 +61,23 @@ Rules for generated code:
55
61
 
56
62
  ## Components
57
63
 
58
- - [Badge](dist/docs/badge.md): status label, a colored dot + matching
59
- caption; variants success|warning|info|danger|muted (semantic states ONLY
60
- — pick by meaning, never by color; neutral/count/category = muted), shapes
61
- pill|dot (pill adds a soft fill; dot is the bare pair for dense/inline
62
- spots); no Base UI primitive; `render` (e.g. `<a>`) makes it a clickable
63
- tag — hover feedback only appears once it is.
64
+ - [Badge](dist/docs/badge.md): status label, an intent-colored caption with
65
+ an opt-in status dot (`dot`) or a leading `icon` slot prop (icon wins
66
+ when both are given; default is neither); variants
67
+ success|warning|info|danger|muted (semantic states ONLY — pick by meaning,
68
+ never by color; neutral/count/category = muted), shapes pill|plain (pill
69
+ adds a soft fill; plain is the bare label for dense/inline spots); no
70
+ Base UI primitive; `render` (e.g. `<a>`) makes it a clickable tag — hover
71
+ feedback only appears once it is.
64
72
  - [Button](dist/docs/button.md): action button; variants
65
- default|destructive|outline|secondary|ghost|link, sizes default|sm|lg;
66
- icons go in the `icon` slot prop, NEVER in children — `icon` with no
67
- children makes a square icon-only button (always pass `aria-label`
68
- then); `loading` spins, disables, and keeps the width and accessible
69
- name; render prop for button-semantic actions over a real anchor (not
70
- a link substitute).
73
+ default|destructive|outline|secondary|ghost|link, sizes default|sm|lg; a
74
+ consumer className can recolor a button in every state via
75
+ `--button-bg`/`--button-fg`/`--button-bg-hover`/`--button-fg-hover`/
76
+ `--button-border` — no new variant needed; icons go in the `icon` slot
77
+ prop, NEVER in children — `icon` with no children makes a square
78
+ icon-only button (always pass `aria-label` then); `loading` spins,
79
+ disables, and keeps the width and accessible name; render prop for
80
+ button-semantic actions over a real anchor (not a link substitute).
71
81
  - [Card](dist/docs/card.md): bounded content surface (Card/CardHeader/
72
82
  CardTitle/CardDescription/CardAction/CardContent/CardFooter); header
73
83
  becomes a two-column/two-row grid automatically when it contains a
@@ -91,9 +101,12 @@ Rules for generated code:
91
101
  aria-describedby, and validation display automatically — the default
92
102
  way to build forms.
93
103
  - [Input](dist/docs/input.md): single-line text field; `onValueChange`
94
- for the string value, `aria-invalid` for the error state;
95
- `type="search"` renders the leading magnifier and announces as a
96
- searchbox — no extra prop; wires into Field automatically.
104
+ for the string value, `aria-invalid` for the error state; `icon` for a
105
+ leading decorative icon, `end` for trailing interactive content (e.g. a
106
+ clear button; rendered after the input, so tab order is field → slot) —
107
+ neither renders automatically; `type="search"` gives the searchbox role
108
+ but no icon by itself — pass one via `icon`; wires into Field
109
+ automatically.
97
110
  - [Label](dist/docs/label.md): caption for a form control; native
98
111
  `<label>` props; associate via `htmlFor` or by nesting the control.
99
112
  - [RadioGroup](dist/docs/radio-group.md): mutually exclusive options
@@ -102,8 +115,10 @@ Rules for generated code:
102
115
  - [Select](dist/docs/select.md): dropdown picking one value from a
103
116
  list (Select/SelectTrigger/SelectValue/SelectContent/SelectGroup/
104
117
  SelectItem); trigger sizes default|sm, trigger variants default|filter
105
- (filter = compact toolbar filter chip, label stays muted); keyboard
106
- and typeahead built in.
118
+ (filter = compact toolbar filter chip, label stays muted); the popup
119
+ always opens below the trigger (never overlays it), scrolling a selected
120
+ item into view when it sits beyond the fold; keyboard and typeahead
121
+ built in.
107
122
  - [Separator](dist/docs/separator.md): thin visual divider between content
108
123
  sections; orientation horizontal|vertical (default horizontal); no
109
124
  `decorative` prop — pass `aria-hidden="true"` for a purely visual
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gears-frontx/ui-kit",
3
- "version": "0.3.0-alpha.1",
3
+ "version": "0.3.0-alpha.3",
4
4
  "description": "Standard React component base for FrontX templates - Base UI behavior, CSS Modules styling on semantic tokens, CVA variants",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -56,6 +56,7 @@
56
56
  "@vitest/coverage-v8": "4.1.4",
57
57
  "esbuild": "0.25.12",
58
58
  "jsdom": "26.1.0",
59
+ "magic-string": "0.30.21",
59
60
  "react": "19.2.8",
60
61
  "react-dom": "19.2.8",
61
62
  "rollup-plugin-node-externals": "^9.0.1",
@@ -1 +0,0 @@
1
- ._badge_1qq28_8{--badge-accent: var(--muted-foreground);--badge-text: color-mix(in oklab, var(--muted-foreground) 80%, var(--foreground) 20%);box-sizing:border-box;display:inline-flex;height:1.5rem;width:fit-content;flex-shrink:0;align-items:center;justify-content:center;gap:var(--space-2);overflow:hidden;border:var(--border-width) solid transparent;border-radius:9999px;font-family:inherit;font-size:var(--text-meta-size);line-height:var(--text-meta-line-height);font-weight:var(--text-meta-weight);letter-spacing:var(--text-meta-tracking);white-space:nowrap;color:var(--badge-text);transition:color .15s ease,background-color .15s ease,border-color .15s ease,box-shadow .15s ease}._badge_1qq28_8:before{content:"";flex-shrink:0;width:.375rem;height:.375rem;border-radius:50%;background-color:var(--badge-accent)}._badge_1qq28_8:focus-visible{outline:none;border-color:var(--ring);box-shadow:inset 0 0 0 var(--ring-inset) var(--ring)}@media(forced-colors:active){._badge_1qq28_8:focus-visible{outline:2px solid Highlight;outline-offset:2px}}._badge_1qq28_8[aria-invalid=true]{border-color:var(--destructive);box-shadow:inset 0 0 0 var(--ring-inset) var(--destructive)}._badge_1qq28_8>svg{pointer-events:none;width:.75rem;height:.75rem}._badge_1qq28_8._variantSuccess_1qq28_120{--badge-accent: var(--success);--badge-text: color-mix(in oklab, var(--success) 80%, var(--foreground) 20%)}._badge_1qq28_8._variantWarning_1qq28_125{--badge-accent: var(--warning);--badge-text: color-mix(in oklab, var(--warning) 70%, var(--foreground) 30%)}._badge_1qq28_8._variantInfo_1qq28_130{--badge-accent: var(--info);--badge-text: color-mix(in oklab, var(--info) 80%, var(--foreground) 20%)}._badge_1qq28_8._variantDanger_1qq28_135{--badge-accent: var(--danger);--badge-text: color-mix(in oklab, var(--danger) 80%, var(--foreground) 20%)}._badge_1qq28_8._shapePill_1qq28_156{background-color:color-mix(in oklab,var(--foreground) 5%,transparent);padding:0 var(--space-2)}._badge_1qq28_8._shapeDot_1qq28_161{background-color:transparent;padding:0}a._badge_1qq28_8._shapePill_1qq28_156:hover{background-color:color-mix(in oklab,var(--foreground) 9%,transparent)}a._badge_1qq28_8._shapeDot_1qq28_161:hover{text-decoration:underline;text-underline-offset:4px}
@@ -1 +0,0 @@
1
- ._button_1ts3q_6{box-sizing:border-box;--button-focus-ring: var(--ring);--button-focus-ring-inner: var(--button-focus-ring);position:relative;display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);white-space:nowrap;border:var(--border-width) solid transparent;border-radius:var(--radius-md);font-family:inherit;font-size:var(--text-label-size);line-height:var(--text-label-line-height);font-weight:var(--text-label-weight);letter-spacing:var(--text-label-tracking);cursor:pointer;-webkit-user-select:none;user-select:none;text-decoration:none;transition:color .15s ease,background-color .15s ease,border-color .15s ease,box-shadow .15s ease}._button_1ts3q_6:focus-visible{outline:none;border-color:var(--button-focus-ring);box-shadow:inset 0 0 0 var(--ring-inset) var(--button-focus-ring-inner)}@media(forced-colors:active){._button_1ts3q_6:focus-visible{outline:2px solid Highlight;outline-offset:2px}}._button_1ts3q_6:disabled{pointer-events:none;opacity:.42}._button_1ts3q_6[data-loading]{pointer-events:none;opacity:.42}._variantDefault_1ts3q_119{background-color:var(--primary);color:var(--primary-foreground)}._variantDefault_1ts3q_119:hover{background-color:var(--primary-hover)}._variantDestructive_1ts3q_134{background-color:var(--destructive);color:var(--destructive-foreground)}._variantDestructive_1ts3q_134:hover{background-color:color-mix(in oklab,var(--destructive) 90%,var(--foreground) 10%)}._variantOutline_1ts3q_159{border-color:var(--border-strong);background-color:var(--surface-elevated);color:var(--foreground)}._variantOutline_1ts3q_159:hover{background-color:var(--accent);color:var(--accent-foreground)}._variantSecondary_1ts3q_170{background-color:var(--secondary);color:var(--secondary-foreground)}._variantSecondary_1ts3q_170:hover{background-color:color-mix(in oklab,var(--secondary) 80%,transparent)}._variantGhost_1ts3q_186{background-color:transparent;color:var(--muted-foreground)}._variantGhost_1ts3q_186:hover{background-color:var(--accent);color:var(--accent-foreground)}._variantLink_1ts3q_206{background-color:transparent;color:var(--link-foreground);text-underline-offset:4px}._variantLink_1ts3q_206:hover{text-decoration:underline}._variantDefault_1ts3q_119{--button-focus-ring: var(--info);--button-focus-ring-inner: var(--foreground)}._variantDestructive_1ts3q_134{--button-focus-ring: var(--primary-hover);--button-focus-ring-inner: var(--destructive-foreground)}._variantGhost_1ts3q_186,._variantLink_1ts3q_206,._variantSecondary_1ts3q_170{--button-focus-ring: var(--primary-hover)}._sizeDefault_1ts3q_256{height:var(--control-height-md);padding:0 var(--space-4)}._sizeSm_1ts3q_261{height:var(--control-height-sm);padding:0 var(--space-3);border-radius:var(--radius-sm)}._sizeLg_1ts3q_267{height:var(--control-height-lg);padding:0 var(--space-6)}._button_1ts3q_6[data-icon-only]{aspect-ratio:1;padding:0}._icon_1ts3q_285{display:inline-flex}._icon_1ts3q_285 svg{width:var(--icon-size-sm);height:var(--icon-size-sm)}._sizeLg_1ts3q_267 ._icon_1ts3q_285 svg{width:var(--icon-size-md);height:var(--icon-size-md)}._button_1ts3q_6[data-loading] ._icon_1ts3q_285,._button_1ts3q_6[data-loading] ._label_1ts3q_307{opacity:0}._spinner_1ts3q_38{position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;width:var(--icon-size-sm);height:var(--icon-size-sm);border:2px solid color-mix(in oklab,currentColor 25%,transparent);border-top-color:currentColor;border-radius:50%;animation:_button-spin_1ts3q_1 .8s linear infinite}@keyframes _button-spin_1ts3q_1{to{rotate:360deg}}@media(prefers-reduced-motion:reduce){._spinner_1ts3q_38{animation-duration:2.4s}}
@@ -1 +0,0 @@
1
- ._checkbox_1jxc8_6{box-sizing:border-box;position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:1.25rem;height:1.25rem;padding:0;border:var(--border-width) solid var(--input);border-radius:var(--radius-sm);background-color:var(--surface-elevated);outline:none;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}._checkbox_1jxc8_6:after{content:"";position:absolute;inset:calc(-1 * var(--space-2)) calc(-1 * var(--space-3))}._checkbox_1jxc8_6[data-checked]{border-color:var(--primary);background-color:var(--primary);color:var(--primary-foreground)}._checkbox_1jxc8_6:focus-visible{outline:var(--border-width-focus) solid var(--ring);outline-offset:2px}@media(forced-colors:active){._checkbox_1jxc8_6:focus-visible{outline:2px solid Highlight;outline-offset:2px}}._checkbox_1jxc8_6[data-disabled]{cursor:not-allowed;opacity:.42}._checkbox_1jxc8_6[aria-invalid=true]{border-color:var(--destructive)}._checkbox_1jxc8_6[aria-invalid=true][data-checked]{border-color:var(--primary)}._indicator_1jxc8_84{display:grid;place-content:center;color:currentcolor}._icon_1jxc8_90{width:.875rem;height:.875rem}._iconIndeterminate_1jxc8_97,._indicator_1jxc8_84[data-indeterminate] ._iconCheck_1jxc8_101{display:none}._indicator_1jxc8_84[data-indeterminate] ._iconIndeterminate_1jxc8_97{display:block}
@@ -1 +0,0 @@
1
- ._input_1y6th_6{box-sizing:border-box;display:block;width:100%;min-width:0;height:var(--control-height-lg);padding:var(--space-1) var(--space-3);border:var(--border-width) solid var(--input);border-radius:var(--radius-md);background-color:var(--surface-elevated);color:var(--foreground);font-family:inherit;font-size:1rem;line-height:1.5rem;outline:none;transition:color .15s ease,border-color .15s ease,box-shadow .15s ease}@media(min-width:768px){._input_1y6th_6{font-size:var(--text-label-size);line-height:var(--text-label-line-height);font-weight:var(--text-body-weight);letter-spacing:var(--text-label-tracking)}}._input_1y6th_6::placeholder{color:var(--muted-foreground)}._input_1y6th_6::file-selector-button{display:inline-flex;height:1.75rem;border:0;background-color:transparent;color:var(--foreground);font-family:inherit;font-size:var(--text-label-size);line-height:var(--text-label-line-height);font-weight:var(--text-label-weight);letter-spacing:var(--text-label-tracking)}._input_1y6th_6:focus-visible{border-color:var(--ring);box-shadow:inset 0 0 0 var(--ring-inset) var(--ring)}@media(forced-colors:active){._input_1y6th_6:focus-visible{outline:2px solid Highlight;outline-offset:2px}}._input_1y6th_6:disabled{cursor:not-allowed;opacity:.42}._input_1y6th_6[aria-invalid=true]{border-color:var(--destructive);box-shadow:inset 0 0 0 var(--ring-inset) var(--destructive)}._searchWrap_1y6th_120{position:relative;display:block;width:100%}._searchIcon_1y6th_126{position:absolute;inset-inline-start:var(--space-3);top:50%;translate:0 -50%;width:var(--icon-size-sm);height:var(--icon-size-sm);color:var(--muted-foreground);pointer-events:none}._searchInput_1y6th_137{padding-inline-start:calc(var(--space-3) + var(--icon-size-sm) + var(--space-2))}
@@ -1 +0,0 @@
1
- ._group_4704v_6{display:grid;width:100%;gap:var(--space-3)}._item_4704v_12{box-sizing:border-box;position:relative;display:flex;flex-shrink:0;width:1.25rem;height:1.25rem;padding:0;border:var(--border-width) solid var(--input);border-radius:9999px;background-color:var(--surface-elevated);outline:none;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}._item_4704v_12:after{content:"";position:absolute;inset:calc(-1 * var(--space-2)) calc(-1 * var(--space-3))}._item_4704v_12[data-checked]{border-width:var(--border-width-focus);border-color:var(--primary)}._item_4704v_12:focus-visible{outline:var(--border-width-focus) solid var(--ring);outline-offset:2px}@media(forced-colors:active){._item_4704v_12:focus-visible{outline:2px solid Highlight;outline-offset:2px}}._item_4704v_12[data-disabled]{cursor:not-allowed;opacity:.42}._item_4704v_12[aria-invalid=true]{border-color:var(--destructive)}._item_4704v_12[aria-invalid=true][data-checked]{border-color:var(--primary)}._indicator_4704v_90{display:flex;width:1rem;height:1rem;align-items:center;justify-content:center}._dot_4704v_98{position:absolute;top:50%;left:50%;width:.5rem;height:.5rem;transform:translate(-50%,-50%);border-radius:9999px;background-color:var(--primary)}
@@ -1 +0,0 @@
1
- ._trigger_982bm_6{box-sizing:border-box;display:flex;width:fit-content;align-items:center;justify-content:space-between;gap:var(--space-2);padding:var(--space-2) var(--space-2) var(--space-2) var(--space-3);border:var(--border-width) solid var(--input);border-radius:var(--radius-md);background-color:var(--surface-elevated);color:var(--foreground);font-family:inherit;font-size:var(--text-label-size);line-height:var(--text-label-line-height);font-weight:var(--text-body-weight);letter-spacing:var(--text-label-tracking);white-space:nowrap;outline:none;transition:color .15s ease,border-color .15s ease,box-shadow .15s ease}._trigger_982bm_6[data-placeholder]{color:var(--muted-foreground)}._trigger_982bm_6:focus-visible{border-color:var(--ring);box-shadow:inset 0 0 0 var(--ring-inset) var(--ring)}@media(forced-colors:active){._trigger_982bm_6:focus-visible{outline:2px solid Highlight;outline-offset:2px}}._trigger_982bm_6:disabled{cursor:not-allowed;opacity:.42}._trigger_982bm_6[aria-invalid=true]{border-color:var(--destructive);box-shadow:inset 0 0 0 var(--ring-inset) var(--destructive)}._sizeDefault_982bm_9{height:var(--control-height-lg)}._sizeSm_982bm_9{height:var(--control-height-sm)}._variantFilter_982bm_109{height:var(--control-height-md);color:var(--muted-foreground)}._triggerIcon_982bm_114{pointer-events:none;flex-shrink:0;color:var(--muted-foreground)}._value_982bm_120{display:flex;flex:1;align-items:center;gap:var(--space-2);overflow:hidden;text-align:start;text-overflow:ellipsis}._positioner_982bm_130{isolation:isolate;z-index:50}._popup_982bm_135{box-sizing:border-box;position:relative;isolation:isolate;z-index:50;max-height:var(--available-height);width:var(--anchor-width);min-width:9rem;overflow-x:hidden;overflow-y:auto;border-radius:var(--radius-md);border:var(--border-width) solid var(--popover-border);background-color:var(--popover);color:var(--popover-foreground);box-shadow:var(--popover-shadow);transform-origin:var(--transform-origin);transition:opacity .1s ease,transform .1s ease}@media(prefers-reduced-motion:reduce){._popup_982bm_135{transition:opacity .1s ease}}._popup_982bm_135[data-starting-style],._popup_982bm_135[data-ending-style]{opacity:0;transform:scale(.95)}._popup_982bm_135[data-align-trigger=true]{transition:none}._group_982bm_193{padding:var(--space-1);scroll-margin:var(--space-1) 0}._groupLabel_982bm_198{padding:var(--space-1) var(--space-2);color:var(--muted-foreground);font-size:var(--text-meta-size);line-height:var(--text-meta-line-height)}._item_982bm_205{box-sizing:border-box;position:relative;display:flex;width:100%;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-8) var(--space-2) var(--space-2);border-radius:var(--radius-sm);cursor:default;-webkit-user-select:none;user-select:none;font-size:var(--text-meta-size);line-height:var(--text-meta-line-height);outline:none}._item_982bm_205:focus,._item_982bm_205[data-highlighted]{background-color:var(--accent);color:var(--accent-foreground)}._item_982bm_205[data-disabled]{pointer-events:none;opacity:.42}._itemText_982bm_248{display:flex;flex:1;flex-shrink:0;gap:var(--space-2);white-space:nowrap}._itemIndicator_982bm_211{pointer-events:none;position:absolute;inset-inline-end:var(--space-2);display:flex;width:var(--icon-size-sm);height:var(--icon-size-sm);align-items:center;justify-content:center}._separator_982bm_267{pointer-events:none;margin:var(--space-1) calc(-1 * var(--space-1));height:var(--border-width);background-color:var(--border)}._scrollArrow_982bm_274{z-index:10;display:flex;width:100%;align-items:center;justify-content:center;padding:var(--space-1) 0;cursor:default;background-color:var(--popover)}._scrollArrowUp_982bm_285{top:0}._scrollArrowDown_982bm_289{bottom:0}._svgIcon_982bm_293{width:var(--icon-size-sm);height:var(--icon-size-sm);flex-shrink:0;pointer-events:none}
@@ -1 +0,0 @@
1
- ._switch_n8bm9_6{box-sizing:border-box;position:relative;display:inline-flex;align-items:center;flex-shrink:0;padding:0;border:var(--border-width) solid transparent;border-radius:9999px;outline:none;transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease}._switch_n8bm9_6:after{content:"";position:absolute;inset:calc(-1 * var(--space-2)) calc(-1 * var(--space-3))}._switch_n8bm9_6[data-checked]{background-color:var(--primary)}._switch_n8bm9_6[data-unchecked]{background-color:var(--input)}._switch_n8bm9_6:focus-visible{outline:var(--border-width-focus) solid var(--ring);outline-offset:2px}@media(forced-colors:active){._switch_n8bm9_6:focus-visible{outline:2px solid Highlight;outline-offset:2px}}._switch_n8bm9_6[data-disabled]{cursor:not-allowed;opacity:.42}._switch_n8bm9_6[aria-invalid=true]{border-color:var(--destructive)}._sizeDefault_n8bm9_10{height:1.375rem;width:2.375rem}._sizeSm_n8bm9_10{height:.875rem;width:1.5rem}._thumb_n8bm9_84{pointer-events:none;display:block;border-radius:9999px;background-color:var(--primary-foreground);transition:transform .15s ease}@media(prefers-reduced-motion:reduce){._thumb_n8bm9_84{transition:none}}._sizeDefault_n8bm9_10 ._thumb_n8bm9_84{width:1rem;height:1rem;margin-inline-start:2px}._sizeDefault_n8bm9_10 ._thumb_n8bm9_84[data-checked]{transform:translate(100%)}._sizeSm_n8bm9_10 ._thumb_n8bm9_84{width:.75rem;height:.75rem}._thumb_n8bm9_84[data-checked]{transform:translate(calc(100% - 2px))}._thumb_n8bm9_84[data-unchecked]{transform:translate(0)}
@@ -1 +0,0 @@
1
- ._tabs_iiufe_28,._list_iiufe_23,._trigger_iiufe_5,._content_iiufe_28{box-sizing:border-box}._tabs_iiufe_28{display:flex;gap:var(--space-2)}._tabs_iiufe_28[data-orientation=horizontal]{flex-direction:column}._list_iiufe_23{display:inline-flex;width:fit-content;align-items:center;justify-content:center;border-radius:var(--radius-lg);gap:var(--space-1);color:var(--muted-foreground)}._list_iiufe_23[data-orientation=horizontal]{height:var(--control-height-md)}._list_iiufe_23[data-orientation=vertical]{height:fit-content;flex-direction:column}._variantDefault_iiufe_84{background-color:transparent}._variantLine_iiufe_88{background-color:transparent;border-radius:0}._trigger_iiufe_5{position:relative;display:inline-flex;flex:1 1 0%;height:100%;align-items:center;justify-content:center;gap:var(--space-2);border:var(--border-width) solid transparent;border-radius:var(--radius-md);padding:var(--space-1) var(--space-3);background-color:transparent;color:var(--muted-foreground);font-family:inherit;font-size:var(--text-label-size);line-height:var(--text-label-line-height);font-weight:var(--text-label-weight);letter-spacing:var(--text-label-tracking);white-space:nowrap;cursor:pointer;transition:color .15s ease,background-color .15s ease,border-color .15s ease,box-shadow .15s ease}._trigger_iiufe_5[data-orientation=vertical]{width:100%;justify-content:flex-start}._trigger_iiufe_5:hover{color:var(--foreground)}._trigger_iiufe_5:focus-visible{outline:none;border-color:var(--ring);box-shadow:inset 0 0 0 var(--ring-inset) var(--ring)}@media(forced-colors:active){._trigger_iiufe_5:focus-visible{outline:2px solid Highlight;outline-offset:2px}}._trigger_iiufe_5[data-disabled]{cursor:not-allowed;opacity:.42}._trigger_iiufe_5[data-active]{background-color:var(--surface-elevated);color:var(--foreground)}._trigger_iiufe_5:after{position:absolute;background-color:var(--foreground);opacity:0;transition:opacity .15s ease;content:""}._trigger_iiufe_5[data-orientation=horizontal]:after{inset-inline:0;bottom:calc(-1 * var(--space-1));height:.125rem}._trigger_iiufe_5[data-orientation=vertical]:after{inset-block:0;inset-inline-end:calc(-1 * var(--space-1));width:.125rem}._variantLine_iiufe_88 ._trigger_iiufe_5[data-active]{background-color:transparent;box-shadow:none}._variantLine_iiufe_88 ._trigger_iiufe_5[data-active]:after{opacity:1}._content_iiufe_28{flex:1 1 0%;font-size:var(--text-body-size);line-height:var(--text-body-line-height);outline:none}._content_iiufe_28:focus-visible{outline:var(--border-width-focus) solid var(--ring);outline-offset:2px}@media(forced-colors:active){._content_iiufe_28:focus-visible{outline:2px solid Highlight;outline-offset:2px}}
@@ -1 +0,0 @@
1
- ._viewport_12x05_12{position:fixed;z-index:50;inset-inline:var(--space-4);bottom:var(--space-4);width:auto;max-width:24rem;margin-inline:auto;pointer-events:none;outline:none}@media(min-width:640px){._viewport_12x05_12{right:var(--space-4);left:auto;width:100%;margin-inline:0}}._toast_12x05_10{--gap: var(--space-3);--height: var(--toast-frontmost-height, var(--toast-height));--offset-y: calc( (var(--toast-offset-y) * -1) + (var(--toast-index) * var(--gap) * -1) + var(--toast-swipe-movement-y) );--peek: .75rem;--scale: max(0, 1 - (var(--toast-index) * .1)) ;--shrink: calc(1 - var(--scale));box-sizing:border-box;position:absolute;right:0;bottom:0;z-index:calc(1000 - var(--toast-index));width:100%;height:var(--height);border:var(--border-width) solid var(--popover-border);border-radius:var(--radius-xl);background-color:var(--popover);color:var(--popover-foreground);box-shadow:var(--popover-shadow);outline:none;-webkit-user-select:none;user-select:none;pointer-events:auto;transform-origin:bottom;transform:translate(var(--toast-swipe-movement-x)) translateY(calc(var(--toast-swipe-movement-y) - (var(--toast-index) * var(--peek)) - (var(--shrink) * var(--height)))) scale(var(--scale));will-change:transform;transition:transform .5s cubic-bezier(.22,1,.36,1),opacity .5s,height .15s}._toast_12x05_10:focus-visible{border-color:var(--ring);box-shadow:inset 0 0 0 var(--ring-inset) var(--ring)}@media(forced-colors:active){._toast_12x05_10:focus-visible{outline:2px solid Highlight;outline-offset:2px}}._toast_12x05_10:after{content:"";position:absolute;top:100%;left:0;width:100%;height:calc(var(--gap) + 1px)}._toast_12x05_10[data-expanded]{height:var(--toast-height);transform:translate(var(--toast-swipe-movement-x)) translateY(var(--offset-y))}._toast_12x05_10[data-limited]{opacity:0}._toast_12x05_10[data-starting-style]{transform:translateY(150%)}._toast_12x05_10[data-ending-style]:not([data-limited]):not([data-swipe-direction]){transform:translateY(150%)}._toast_12x05_10[data-ending-style][data-swipe-direction=down]{transform:translateY(calc(var(--toast-swipe-movement-y) + 150%))}._toast_12x05_10[data-ending-style][data-swipe-direction=up]{transform:translateY(calc(var(--toast-swipe-movement-y) - 150%))}._toast_12x05_10[data-ending-style][data-swipe-direction=left]{transform:translate(calc(var(--toast-swipe-movement-x) - 150%)) translateY(var(--offset-y))}._toast_12x05_10[data-ending-style][data-swipe-direction=right]{transform:translate(calc(var(--toast-swipe-movement-x) + 150%)) translateY(var(--offset-y))}@media(prefers-reduced-motion:reduce){._toast_12x05_10{transition:opacity .5s}}._content_12x05_76{box-sizing:border-box;display:flex;align-items:center;height:100%;gap:var(--space-3);padding:var(--space-4);overflow:hidden;transition:opacity .25s cubic-bezier(.22,1,.36,1)}._content_12x05_76[data-behind]{opacity:0}._content_12x05_76[data-expanded]{opacity:1}._icon_12x05_253{flex-shrink:0;width:var(--icon-size-sm);height:var(--icon-size-sm);pointer-events:none}._iconDestructive_12x05_260{color:var(--destructive)}._iconSpin_12x05_264{animation:_spin_12x05_1 1s linear infinite}@media(prefers-reduced-motion:reduce){._iconSpin_12x05_264{animation-duration:4s}}@keyframes _spin_12x05_1{to{transform:rotate(360deg)}}._body_12x05_289{display:flex;flex:1 1 0%;min-width:0;flex-direction:column;gap:var(--space-1)}._title_12x05_301{margin:0;font-size:var(--text-body-size);line-height:var(--text-body-line-height);font-weight:var(--text-label-weight)}._description_12x05_308{margin:0;color:var(--muted-foreground);font-size:var(--text-body-size);line-height:var(--text-body-line-height)}._action_12x05_316{flex-shrink:0}button._close_12x05_323{position:relative;flex-shrink:0;color:var(--muted-foreground)}button._close_12x05_323:hover{color:var(--foreground)}button._close_12x05_323:after{content:"";position:absolute;inset:calc(-1 * var(--space-2))}._svgIcon_12x05_346{width:var(--icon-size-sm);height:var(--icon-size-sm);flex-shrink:0;pointer-events:none}