@epilot/zenith-react 0.1.0 → 0.2.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -48,6 +48,40 @@ Use `AppearanceBoundary` for a scoped appearance that must also reach portalled
48
48
  content — a theme or surface attribute on a subtree does not follow a Dialog,
49
49
  Popover, Select, Tooltip or menu into `document.body`.
50
50
 
51
+ ## Lay your own screens out
52
+
53
+ Zenith ships components, not a layout system: there is no `Grid`, `Stack`,
54
+ `Box` or `Spacer`, and there never will be. The space between components is
55
+ yours.
56
+
57
+ `makeZenithStyles` is **public API for that purpose**, exported from the
58
+ package root alongside `mergeClasses` and `shorthands`. It is the same Griffel
59
+ API Zenith's own components use, so your layout ships its CSS with your
60
+ components and depends on no stylesheet loaded from somewhere else.
61
+
62
+ ```tsx
63
+ import { makeZenithStyles, shorthands } from "@epilot/zenith-react"
64
+ import { spacingLayout1, containerXl } from "@epilot/zenith-react/tokens"
65
+
66
+ const useStyles = makeZenithStyles({
67
+ page: {
68
+ display: "flex",
69
+ flexDirection: "column",
70
+ maxWidth: containerXl,
71
+ ...shorthands.gap(spacingLayout1),
72
+ },
73
+ })
74
+ ```
75
+
76
+ Take every value from `@epilot/zenith-react/tokens`. A literal hex, a utility
77
+ class from another stylesheet, or a raw pixel value is how a screen drifts away
78
+ from the system and stops following a token change.
79
+
80
+ A utility-class framework works too, but understand what you are depending on:
81
+ those classes come from a stylesheet your component does not ship, so what your
82
+ screen looks like is decided by whichever version of that stylesheet is
83
+ deployed beside it.
84
+
51
85
  ## Validate the host
52
86
 
53
87
  - Exercise the application under its real content-security policy.
@@ -1,13 +1,13 @@
1
- import { jsx as r, jsxs as D, Fragment as x } from "react/jsx-runtime";
1
+ import { jsx as r, jsxs as x, Fragment as h } from "react/jsx-runtime";
2
2
  import * as i from "react";
3
- import { Root as h, Action as b, Cancel as R, Content as T, Description as w, Overlay as C, Portal as v, Title as S, Trigger as N } from "../../vendor/.bun/@radix-ui_react-alert-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-alert-dialog/dist/index.js";
4
- import { SLOT_ATTR as n, mergeClasses as d, shorthands as c } from "@epilot/zenith-runtime/v1";
5
- import { useAppearanceAttributes as z } from "../appearance-boundary/appearance-boundary.js";
3
+ import { Root as b, Action as R, Cancel as T, Content as w, Description as C, Overlay as v, Portal as S, Title as N, Trigger as z } from "../../vendor/.bun/@radix-ui_react-alert-dialog@1.1.15_2b23df507bdda662/vendor/@radix-ui/react-alert-dialog/dist/index.js";
4
+ import { SLOT_ATTR as n, mergeClasses as g, shorthands as d } from "@epilot/zenith-runtime/v1";
5
+ import { useAppearanceAttributes as y } from "../appearance-boundary/appearance-boundary.js";
6
6
  import { useDensity as F } from "../density-provider/density-provider.js";
7
7
  import { makeZenithStyles as W } from "../../styles/make-styles.js";
8
8
  import { grayA11 as O, leadingSm as H, textSm as P, grayA12 as X, fontWeightSemibold as j, leadingXl as k, textXl as _, containerXl as I, containerLg as L, containerMd as B, containerSm as E, body as G, spacingElement2 as p, spacingGroup2 as u, grayA1 as M, radiusXl as Z } from "../../tokens/index.js";
9
- import { Button as y } from "../button/button.js";
10
- const g = W({
9
+ import { Button as A } from "../button/button.js";
10
+ const m = W({
11
11
  overlay: {
12
12
  position: "fixed",
13
13
  top: 0,
@@ -43,10 +43,10 @@ const g = W({
43
43
  display: "grid",
44
44
  width: "100%",
45
45
  maxWidth: "calc(100% - 2rem)",
46
- ...c.gap(u),
47
- ...c.borderRadius(Z),
48
- ...c.border("1px", "solid", M),
49
- ...c.padding(u),
46
+ ...d.gap(u),
47
+ ...d.borderRadius(Z),
48
+ ...d.border("1px", "solid", M),
49
+ ...d.padding(u),
50
50
  // v1 shadow-lg
51
51
  boxShadow: "0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a",
52
52
  outlineStyle: "none",
@@ -96,12 +96,12 @@ const g = W({
96
96
  header: {
97
97
  display: "flex",
98
98
  flexDirection: "column",
99
- ...c.gap(p),
99
+ ...d.gap(p),
100
100
  textAlign: "left"
101
101
  },
102
102
  footer: {
103
103
  display: "flex",
104
- ...c.gap(p),
104
+ ...d.gap(p),
105
105
  justifyContent: "flex-end"
106
106
  },
107
107
  title: {
@@ -117,11 +117,11 @@ const g = W({
117
117
  }
118
118
  }), at = i.forwardRef(
119
119
  function(t, a) {
120
- return /* @__PURE__ */ r(h, { "data-slot": "alert-dialog", ...t });
120
+ return /* @__PURE__ */ r(b, { "data-slot": "alert-dialog", ...t });
121
121
  }
122
122
  ), ot = i.forwardRef(function({ className: t, ...a }, o) {
123
123
  return /* @__PURE__ */ r(
124
- N,
124
+ z,
125
125
  {
126
126
  ref: o,
127
127
  "data-slot": "alert-dialog-trigger",
@@ -132,7 +132,7 @@ const g = W({
132
132
  );
133
133
  }), et = i.forwardRef(function(t, a) {
134
134
  return /* @__PURE__ */ r(
135
- v,
135
+ S,
136
136
  {
137
137
  "data-slot": "alert-dialog-portal",
138
138
  [n]: "alert-dialog-portal",
@@ -140,80 +140,81 @@ const g = W({
140
140
  }
141
141
  );
142
142
  }), q = i.forwardRef(function({ className: t, ...a }, o) {
143
- const e = g();
143
+ const e = m(), s = y();
144
144
  return /* @__PURE__ */ r(
145
- C,
145
+ v,
146
146
  {
147
147
  ref: o,
148
148
  "data-slot": "alert-dialog-overlay",
149
149
  [n]: "alert-dialog-overlay",
150
- className: d(e.overlay, t),
150
+ ...s,
151
+ className: g(e.overlay, t),
151
152
  ...a
152
153
  }
153
154
  );
154
- }), rt = i.forwardRef(function({ className: t, size: a = "xl", children: o, ...e }, m) {
155
- const s = g(), f = F(), A = z();
156
- return /* @__PURE__ */ D(x, { children: [
155
+ }), rt = i.forwardRef(function({ className: t, size: a = "xl", children: o, ...e }, s) {
156
+ const c = m(), f = F(), D = y();
157
+ return /* @__PURE__ */ x(h, { children: [
157
158
  /* @__PURE__ */ r(q, {}),
158
159
  /* @__PURE__ */ r(
159
- T,
160
+ w,
160
161
  {
161
- ref: m,
162
+ ref: s,
162
163
  "data-slot": "alert-dialog-content",
163
164
  [n]: "alert-dialog-content",
164
165
  ...f !== void 0 ? { "data-density": f } : {},
165
- ...A,
166
- className: d(s.content, s[a], t),
166
+ ...D,
167
+ className: g(c.content, c[a], t),
167
168
  ...e,
168
169
  children: o
169
170
  }
170
171
  )
171
172
  ] });
172
173
  }), it = i.forwardRef(function({ className: t, ...a }, o) {
173
- const e = g();
174
+ const e = m();
174
175
  return /* @__PURE__ */ r(
175
176
  "div",
176
177
  {
177
178
  ref: o,
178
179
  "data-slot": "alert-dialog-header",
179
180
  [n]: "alert-dialog-header",
180
- className: d(e.header, t),
181
+ className: g(e.header, t),
181
182
  ...a
182
183
  }
183
184
  );
184
185
  }), lt = i.forwardRef(function({ className: t, ...a }, o) {
185
- const e = g();
186
+ const e = m();
186
187
  return /* @__PURE__ */ r(
187
188
  "div",
188
189
  {
189
190
  ref: o,
190
191
  "data-slot": "alert-dialog-footer",
191
192
  [n]: "alert-dialog-footer",
192
- className: d(e.footer, t),
193
+ className: g(e.footer, t),
193
194
  ...a
194
195
  }
195
196
  );
196
197
  }), nt = i.forwardRef(function({ className: t, ...a }, o) {
197
- const e = g();
198
+ const e = m();
198
199
  return /* @__PURE__ */ r(
199
- S,
200
+ N,
200
201
  {
201
202
  ref: o,
202
203
  "data-slot": "alert-dialog-title",
203
204
  [n]: "alert-dialog-title",
204
- className: d(e.title, t),
205
+ className: g(e.title, t),
205
206
  ...a
206
207
  }
207
208
  );
208
209
  }), st = i.forwardRef(function({ className: t, ...a }, o) {
209
- const e = g();
210
+ const e = m();
210
211
  return /* @__PURE__ */ r(
211
- w,
212
+ C,
212
213
  {
213
214
  ref: o,
214
215
  "data-slot": "alert-dialog-description",
215
216
  [n]: "alert-dialog-description",
216
- className: d(e.description, t),
217
+ className: g(e.description, t),
217
218
  ...a
218
219
  }
219
220
  );
@@ -222,19 +223,19 @@ const g = W({
222
223
  size: a = "base",
223
224
  destructive: o = !1,
224
225
  className: e,
225
- ...m
226
- }, s) {
227
- return /* @__PURE__ */ r(b, { asChild: !0, children: /* @__PURE__ */ r(
228
- y,
226
+ ...s
227
+ }, c) {
228
+ return /* @__PURE__ */ r(R, { asChild: !0, children: /* @__PURE__ */ r(
229
+ A,
229
230
  {
230
- ref: s,
231
+ ref: c,
231
232
  "data-slot": "alert-dialog-action",
232
233
  [n]: "alert-dialog-action",
233
234
  variant: t,
234
235
  size: a,
235
236
  destructive: o,
236
237
  className: e,
237
- ...m
238
+ ...s
238
239
  }
239
240
  ) });
240
241
  }), dt = i.forwardRef(function({
@@ -242,19 +243,19 @@ const g = W({
242
243
  size: a = "base",
243
244
  destructive: o = !1,
244
245
  className: e,
245
- ...m
246
- }, s) {
247
- return /* @__PURE__ */ r(R, { asChild: !0, children: /* @__PURE__ */ r(
248
- y,
246
+ ...s
247
+ }, c) {
248
+ return /* @__PURE__ */ r(T, { asChild: !0, children: /* @__PURE__ */ r(
249
+ A,
249
250
  {
250
- ref: s,
251
+ ref: c,
251
252
  "data-slot": "alert-dialog-cancel",
252
253
  [n]: "alert-dialog-cancel",
253
254
  variant: t,
254
255
  size: a,
255
256
  destructive: o,
256
257
  className: e,
257
- ...m
258
+ ...s
258
259
  }
259
260
  ) });
260
261
  });
@@ -1 +1 @@
1
- {"version":3,"file":"alert-dialog.js","sources":["../../../src/components/alert-dialog/alert-dialog.tsx"],"sourcesContent":["import * as React from \"react\"\n\nimport * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\"\nimport { mergeClasses, shorthands } from \"@epilot/zenith-runtime/v1\"\n\nimport { useAppearanceAttributes } from \"../appearance-boundary/appearance-boundary\"\nimport { useDensity } from \"../density-provider/density-provider\"\nimport { SLOT_ATTR } from \"../../renderer/contract\"\nimport { makeZenithStyles } from \"../../styles/make-styles\"\nimport * as tokens from \"../../tokens\"\nimport {\n Button,\n type ButtonProps,\n type ButtonSize,\n type ButtonVariant,\n} from \"../button/button\"\n\nconst useStyles = makeZenithStyles({\n overlay: {\n position: \"fixed\",\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n zIndex: 50,\n backgroundColor: \"rgba(0, 0, 0, 0.5)\",\n \"&[data-state='open']\": {\n animationName: {\n from: { opacity: 0 },\n to: { opacity: 1 },\n },\n animationDuration: \"150ms\",\n animationTimingFunction: \"cubic-bezier(0.4, 0, 0.2, 1)\",\n },\n \"&[data-state='closed']\": {\n animationName: {\n from: { opacity: 1 },\n to: { opacity: 0 },\n },\n animationDuration: \"100ms\",\n animationTimingFunction: \"cubic-bezier(0.4, 0, 1, 1)\",\n },\n },\n content: {\n backgroundColor: tokens.body,\n position: \"fixed\",\n top: \"50%\",\n left: \"50%\",\n transform: \"translate(-50%, -50%)\",\n zIndex: 50,\n display: \"grid\",\n width: \"100%\",\n maxWidth: \"calc(100% - 2rem)\",\n ...shorthands.gap(tokens.spacingGroup2),\n ...shorthands.borderRadius(tokens.radiusXl),\n ...shorthands.border(\"1px\", \"solid\", tokens.grayA1),\n ...shorthands.padding(tokens.spacingGroup2),\n // v1 shadow-lg\n boxShadow: \"0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a\",\n outlineStyle: \"none\",\n \"&[data-state='open']\": {\n animationName: {\n from: {\n opacity: 0,\n transform: \"translate(-50%, -50%) scale(0.95)\",\n },\n to: {\n opacity: 1,\n transform: \"translate(-50%, -50%) scale(1)\",\n },\n },\n animationDuration: \"150ms\",\n animationTimingFunction: \"cubic-bezier(0.4, 0, 0.2, 1)\",\n },\n \"&[data-state='closed']\": {\n animationName: {\n from: {\n opacity: 1,\n transform: \"translate(-50%, -50%) scale(1)\",\n },\n to: {\n opacity: 0,\n transform: \"translate(-50%, -50%) scale(0.95)\",\n },\n },\n animationDuration: \"100ms\",\n animationTimingFunction: \"cubic-bezier(0.4, 0, 1, 1)\",\n },\n },\n sm: {\n maxWidth: tokens.containerSm,\n },\n md: {\n maxWidth: tokens.containerMd,\n },\n lg: {\n maxWidth: tokens.containerLg,\n },\n xl: {\n \"@media (min-width: 640px)\": {\n maxWidth: tokens.containerXl,\n },\n },\n header: {\n display: \"flex\",\n flexDirection: \"column\",\n ...shorthands.gap(tokens.spacingElement2),\n textAlign: \"left\",\n },\n footer: {\n display: \"flex\",\n ...shorthands.gap(tokens.spacingElement2),\n justifyContent: \"flex-end\",\n },\n title: {\n fontSize: tokens.textXl,\n lineHeight: tokens.leadingXl,\n fontWeight: tokens.fontWeightSemibold,\n color: tokens.grayA12,\n },\n description: {\n fontSize: tokens.textSm,\n lineHeight: tokens.leadingSm,\n color: tokens.grayA11,\n },\n})\n\nexport type AlertDialogProps = React.ComponentProps<\n typeof AlertDialogPrimitive.Root\n>\n\nexport type AlertDialogTriggerProps = React.ComponentProps<\n typeof AlertDialogPrimitive.Trigger\n>\n\nexport type AlertDialogPortalProps = React.ComponentProps<\n typeof AlertDialogPrimitive.Portal\n>\n\nexport type AlertDialogOverlayProps = React.ComponentProps<\n typeof AlertDialogPrimitive.Overlay\n>\n\nexport type AlertDialogSize = \"xl\" | \"lg\" | \"md\" | \"sm\"\n\nexport type AlertDialogContentProps = React.ComponentProps<\n typeof AlertDialogPrimitive.Content\n> & {\n size?: AlertDialogSize\n}\n\nexport type AlertDialogHeaderProps = React.ComponentProps<\"div\">\nexport type AlertDialogFooterProps = React.ComponentProps<\"div\">\n\nexport type AlertDialogTitleProps = React.ComponentProps<\n typeof AlertDialogPrimitive.Title\n>\n\nexport type AlertDialogDescriptionProps = React.ComponentProps<\n typeof AlertDialogPrimitive.Description\n>\n\nexport type AlertDialogActionProps = Omit<\n ButtonProps,\n \"variant\" | \"size\" | \"destructive\"\n> & {\n variant?: ButtonVariant\n size?: ButtonSize\n destructive?: boolean\n}\n\nexport type AlertDialogCancelProps = Omit<\n ButtonProps,\n \"variant\" | \"size\" | \"destructive\"\n> & {\n variant?: ButtonVariant\n size?: ButtonSize\n destructive?: boolean\n}\n\nexport const AlertDialog = React.forwardRef<HTMLElement, AlertDialogProps>(\n function AlertDialog(props, _ref) {\n return <AlertDialogPrimitive.Root data-slot=\"alert-dialog\" {...props} />\n }\n)\n\nexport const AlertDialogTrigger = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Trigger>,\n AlertDialogTriggerProps\n>(function AlertDialogTrigger({ className, ...props }, ref) {\n return (\n <AlertDialogPrimitive.Trigger\n ref={ref}\n data-slot=\"alert-dialog-trigger\"\n {...{ [SLOT_ATTR]: \"alert-dialog-trigger\" }}\n className={className}\n {...props}\n />\n )\n})\n\nexport const AlertDialogPortal = React.forwardRef<\n HTMLElement,\n AlertDialogPortalProps\n>(function AlertDialogPortal(props, _ref) {\n return (\n <AlertDialogPrimitive.Portal\n data-slot=\"alert-dialog-portal\"\n {...{ [SLOT_ATTR]: \"alert-dialog-portal\" }}\n {...props}\n />\n )\n})\n\nexport const AlertDialogOverlay = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Overlay>,\n AlertDialogOverlayProps\n>(function AlertDialogOverlay({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <AlertDialogPrimitive.Overlay\n ref={ref}\n data-slot=\"alert-dialog-overlay\"\n {...{ [SLOT_ATTR]: \"alert-dialog-overlay\" }}\n className={mergeClasses(styles.overlay, className)}\n {...props}\n />\n )\n})\n\nexport const AlertDialogContent = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Content>,\n AlertDialogContentProps\n>(function AlertDialogContent(\n { className, size = \"xl\", children, ...props },\n ref\n) {\n const styles = useStyles()\n // DENSITY-SPEC.md §4.4 — portal content boundary; see dialog.tsx's identical comment.\n const override = useDensity()\n // SPEC.md §2 rule 3 — the same portal asymmetry, for the appearance pair: re-stamp the\n // nearest explicit AppearanceBoundary's mode+surface, or neither attribute when there is\n // none, leaving live shell inheritance in place.\n const appearance = useAppearanceAttributes()\n\n return (\n <>\n <AlertDialogOverlay />\n <AlertDialogPrimitive.Content\n ref={ref}\n data-slot=\"alert-dialog-content\"\n {...{ [SLOT_ATTR]: \"alert-dialog-content\" }}\n {...(override !== undefined ? { \"data-density\": override } : {})}\n {...appearance}\n className={mergeClasses(styles.content, styles[size], className)}\n {...props}\n >\n {children}\n </AlertDialogPrimitive.Content>\n </>\n )\n})\n\nexport const AlertDialogHeader = React.forwardRef<\n HTMLDivElement,\n AlertDialogHeaderProps\n>(function AlertDialogHeader({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <div\n ref={ref}\n data-slot=\"alert-dialog-header\"\n {...{ [SLOT_ATTR]: \"alert-dialog-header\" }}\n className={mergeClasses(styles.header, className)}\n {...props}\n />\n )\n})\n\nexport const AlertDialogFooter = React.forwardRef<\n HTMLDivElement,\n AlertDialogFooterProps\n>(function AlertDialogFooter({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <div\n ref={ref}\n data-slot=\"alert-dialog-footer\"\n {...{ [SLOT_ATTR]: \"alert-dialog-footer\" }}\n className={mergeClasses(styles.footer, className)}\n {...props}\n />\n )\n})\n\nexport const AlertDialogTitle = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Title>,\n AlertDialogTitleProps\n>(function AlertDialogTitle({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <AlertDialogPrimitive.Title\n ref={ref}\n data-slot=\"alert-dialog-title\"\n {...{ [SLOT_ATTR]: \"alert-dialog-title\" }}\n className={mergeClasses(styles.title, className)}\n {...props}\n />\n )\n})\n\nexport const AlertDialogDescription = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Description>,\n AlertDialogDescriptionProps\n>(function AlertDialogDescription({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <AlertDialogPrimitive.Description\n ref={ref}\n data-slot=\"alert-dialog-description\"\n {...{ [SLOT_ATTR]: \"alert-dialog-description\" }}\n className={mergeClasses(styles.description, className)}\n {...props}\n />\n )\n})\n\nexport const AlertDialogAction = React.forwardRef<\n HTMLButtonElement,\n AlertDialogActionProps\n>(function AlertDialogAction(\n {\n variant = \"primary\",\n size = \"base\",\n destructive = false,\n className,\n ...props\n },\n ref\n) {\n return (\n <AlertDialogPrimitive.Action asChild>\n <Button\n ref={ref}\n data-slot=\"alert-dialog-action\"\n {...{ [SLOT_ATTR]: \"alert-dialog-action\" }}\n variant={variant}\n size={size}\n destructive={destructive}\n className={className}\n {...props}\n />\n </AlertDialogPrimitive.Action>\n )\n})\n\nexport const AlertDialogCancel = React.forwardRef<\n HTMLButtonElement,\n AlertDialogCancelProps\n>(function AlertDialogCancel(\n {\n variant = \"secondary\",\n size = \"base\",\n destructive = false,\n className,\n ...props\n },\n ref\n) {\n return (\n <AlertDialogPrimitive.Cancel asChild>\n <Button\n ref={ref}\n data-slot=\"alert-dialog-cancel\"\n {...{ [SLOT_ATTR]: \"alert-dialog-cancel\" }}\n variant={variant}\n size={size}\n destructive={destructive}\n className={className}\n {...props}\n />\n </AlertDialogPrimitive.Cancel>\n )\n})\n"],"names":["useStyles","makeZenithStyles","tokens.body","shorthands","tokens.spacingGroup2","tokens.radiusXl","tokens.grayA1","tokens.containerSm","tokens.containerMd","tokens.containerLg","tokens.containerXl","tokens.spacingElement2","tokens.textXl","tokens.leadingXl","tokens.fontWeightSemibold","tokens.grayA12","tokens.textSm","tokens.leadingSm","tokens.grayA11","AlertDialog","React","props","_ref","AlertDialogPrimitive.Root","AlertDialogTrigger","className","ref","jsx","AlertDialogPrimitive.Trigger","SLOT_ATTR","AlertDialogPortal","AlertDialogPrimitive.Portal","AlertDialogOverlay","styles","AlertDialogPrimitive.Overlay","mergeClasses","AlertDialogContent","size","children","override","useDensity","appearance","useAppearanceAttributes","jsxs","Fragment","AlertDialogPrimitive.Content","AlertDialogHeader","AlertDialogFooter","AlertDialogTitle","AlertDialogPrimitive.Title","AlertDialogDescription","AlertDialogPrimitive.Description","AlertDialogAction","variant","destructive","AlertDialogPrimitive.Action","Button","AlertDialogCancel","AlertDialogPrimitive.Cancel"],"mappings":";;;;;;;;;AAiBA,MAAMA,IAAYC,EAAiB;AAAA,EACjC,SAAS;AAAA,IACP,UAAU;AAAA,IAC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O;AAAA,EACP,aAAAiB,IAAc;AAAA,EACd,WAAA7B;AAAA,EACA,GAAGJ;AACL,GACAK,GACA;AACA,SACE,gBAAAC,EAAC4B,GAAA,EAA4B,SAAO,IAClC,UAAA,gBAAA5B;AAAA,IAAC6B;AAAA,IAAA;AAAA,MACC,KAAA9B;AAAA,MACA,aAAU;AAAA,MACJ,CAACG,CAAS,GAAG;AAAA,MACnB,SAAAwB;AAAA,MACA,MAAAhB;AAAA,MACA,aAAAiB;AAAA,MACA,WAAA7B;AAAA,MACC,GAAGJ;AAAA,IAAA;AAAA,EAAA,GAER;AAEJ,CAAC,GAEYoC,KAAoBrC,EAAM,WAGrC,SACA;AAAA,EACE,SAAAiC,IAAU;AAAA,EACV,MAAAhB,IAAO;AAAA,EACP,aAAAiB,IAAc;AAAA,EACd,WAAA7B;AAAA,EACA,GAAGJ;AACL,GACAK,GACA;AACA,SACE,gBAAAC,EAAC+B,GAAA,EAA4B,SAAO,IAClC,UAAA,gBAAA/B;AAAA,IAAC6B;AAAA,IAAA;AAAA,MACC,KAAA9B;AAAA,MACA,aAAU;AAAA,MACJ,CAACG,CAAS,GAAG;AAAA,MACnB,SAAAwB;AAAA,MACA,MAAAhB;AAAA,MACA,aAAAiB;AAAA,MACA,WAAA7B;AAAA,MACC,GAAGJ;AAAA,IAAA;AAAA,EAAA,GAER;AAEJ,CAAC;"}
1
+ {"version":3,"file":"alert-dialog.js","sources":["../../../src/components/alert-dialog/alert-dialog.tsx"],"sourcesContent":["import * as React from \"react\"\n\nimport * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\"\nimport { mergeClasses, shorthands } from \"@epilot/zenith-runtime/v1\"\n\nimport { useAppearanceAttributes } from \"../appearance-boundary/appearance-boundary\"\nimport { useDensity } from \"../density-provider/density-provider\"\nimport { SLOT_ATTR } from \"../../renderer/contract\"\nimport { makeZenithStyles } from \"../../styles/make-styles\"\nimport * as tokens from \"../../tokens\"\nimport {\n Button,\n type ButtonProps,\n type ButtonSize,\n type ButtonVariant,\n} from \"../button/button\"\n\nconst useStyles = makeZenithStyles({\n overlay: {\n position: \"fixed\",\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n zIndex: 50,\n backgroundColor: \"rgba(0, 0, 0, 0.5)\",\n \"&[data-state='open']\": {\n animationName: {\n from: { opacity: 0 },\n to: { opacity: 1 },\n },\n animationDuration: \"150ms\",\n animationTimingFunction: \"cubic-bezier(0.4, 0, 0.2, 1)\",\n },\n \"&[data-state='closed']\": {\n animationName: {\n from: { opacity: 1 },\n to: { opacity: 0 },\n },\n animationDuration: \"100ms\",\n animationTimingFunction: \"cubic-bezier(0.4, 0, 1, 1)\",\n },\n },\n content: {\n backgroundColor: tokens.body,\n position: \"fixed\",\n top: \"50%\",\n left: \"50%\",\n transform: \"translate(-50%, -50%)\",\n zIndex: 50,\n display: \"grid\",\n width: \"100%\",\n maxWidth: \"calc(100% - 2rem)\",\n ...shorthands.gap(tokens.spacingGroup2),\n ...shorthands.borderRadius(tokens.radiusXl),\n ...shorthands.border(\"1px\", \"solid\", tokens.grayA1),\n ...shorthands.padding(tokens.spacingGroup2),\n // v1 shadow-lg\n boxShadow: \"0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a\",\n outlineStyle: \"none\",\n \"&[data-state='open']\": {\n animationName: {\n from: {\n opacity: 0,\n transform: \"translate(-50%, -50%) scale(0.95)\",\n },\n to: {\n opacity: 1,\n transform: \"translate(-50%, -50%) scale(1)\",\n },\n },\n animationDuration: \"150ms\",\n animationTimingFunction: \"cubic-bezier(0.4, 0, 0.2, 1)\",\n },\n \"&[data-state='closed']\": {\n animationName: {\n from: {\n opacity: 1,\n transform: \"translate(-50%, -50%) scale(1)\",\n },\n to: {\n opacity: 0,\n transform: \"translate(-50%, -50%) scale(0.95)\",\n },\n },\n animationDuration: \"100ms\",\n animationTimingFunction: \"cubic-bezier(0.4, 0, 1, 1)\",\n },\n },\n sm: {\n maxWidth: tokens.containerSm,\n },\n md: {\n maxWidth: tokens.containerMd,\n },\n lg: {\n maxWidth: tokens.containerLg,\n },\n xl: {\n \"@media (min-width: 640px)\": {\n maxWidth: tokens.containerXl,\n },\n },\n header: {\n display: \"flex\",\n flexDirection: \"column\",\n ...shorthands.gap(tokens.spacingElement2),\n textAlign: \"left\",\n },\n footer: {\n display: \"flex\",\n ...shorthands.gap(tokens.spacingElement2),\n justifyContent: \"flex-end\",\n },\n title: {\n fontSize: tokens.textXl,\n lineHeight: tokens.leadingXl,\n fontWeight: tokens.fontWeightSemibold,\n color: tokens.grayA12,\n },\n description: {\n fontSize: tokens.textSm,\n lineHeight: tokens.leadingSm,\n color: tokens.grayA11,\n },\n})\n\nexport type AlertDialogProps = React.ComponentProps<\n typeof AlertDialogPrimitive.Root\n>\n\nexport type AlertDialogTriggerProps = React.ComponentProps<\n typeof AlertDialogPrimitive.Trigger\n>\n\nexport type AlertDialogPortalProps = React.ComponentProps<\n typeof AlertDialogPrimitive.Portal\n>\n\nexport type AlertDialogOverlayProps = React.ComponentProps<\n typeof AlertDialogPrimitive.Overlay\n>\n\nexport type AlertDialogSize = \"xl\" | \"lg\" | \"md\" | \"sm\"\n\nexport type AlertDialogContentProps = React.ComponentProps<\n typeof AlertDialogPrimitive.Content\n> & {\n size?: AlertDialogSize\n}\n\nexport type AlertDialogHeaderProps = React.ComponentProps<\"div\">\nexport type AlertDialogFooterProps = React.ComponentProps<\"div\">\n\nexport type AlertDialogTitleProps = React.ComponentProps<\n typeof AlertDialogPrimitive.Title\n>\n\nexport type AlertDialogDescriptionProps = React.ComponentProps<\n typeof AlertDialogPrimitive.Description\n>\n\nexport type AlertDialogActionProps = Omit<\n ButtonProps,\n \"variant\" | \"size\" | \"destructive\"\n> & {\n variant?: ButtonVariant\n size?: ButtonSize\n destructive?: boolean\n}\n\nexport type AlertDialogCancelProps = Omit<\n ButtonProps,\n \"variant\" | \"size\" | \"destructive\"\n> & {\n variant?: ButtonVariant\n size?: ButtonSize\n destructive?: boolean\n}\n\nexport const AlertDialog = React.forwardRef<HTMLElement, AlertDialogProps>(\n function AlertDialog(props, _ref) {\n return <AlertDialogPrimitive.Root data-slot=\"alert-dialog\" {...props} />\n }\n)\n\nexport const AlertDialogTrigger = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Trigger>,\n AlertDialogTriggerProps\n>(function AlertDialogTrigger({ className, ...props }, ref) {\n return (\n <AlertDialogPrimitive.Trigger\n ref={ref}\n data-slot=\"alert-dialog-trigger\"\n {...{ [SLOT_ATTR]: \"alert-dialog-trigger\" }}\n className={className}\n {...props}\n />\n )\n})\n\nexport const AlertDialogPortal = React.forwardRef<\n HTMLElement,\n AlertDialogPortalProps\n>(function AlertDialogPortal(props, _ref) {\n return (\n <AlertDialogPrimitive.Portal\n data-slot=\"alert-dialog-portal\"\n {...{ [SLOT_ATTR]: \"alert-dialog-portal\" }}\n {...props}\n />\n )\n})\n\nexport const AlertDialogOverlay = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Overlay>,\n AlertDialogOverlayProps\n>(function AlertDialogOverlay({ className, ...props }, ref) {\n const styles = useStyles()\n // The overlay is portalled too, so it re-stamps the boundary's appearance like the content (#8).\n const appearance = useAppearanceAttributes()\n\n return (\n <AlertDialogPrimitive.Overlay\n ref={ref}\n data-slot=\"alert-dialog-overlay\"\n {...{ [SLOT_ATTR]: \"alert-dialog-overlay\" }}\n {...appearance}\n className={mergeClasses(styles.overlay, className)}\n {...props}\n />\n )\n})\n\nexport const AlertDialogContent = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Content>,\n AlertDialogContentProps\n>(function AlertDialogContent(\n { className, size = \"xl\", children, ...props },\n ref\n) {\n const styles = useStyles()\n // DENSITY-SPEC.md §4.4 — portal content boundary; see dialog.tsx's identical comment.\n const override = useDensity()\n // SPEC.md §2 rule 3 — the same portal asymmetry, for the appearance pair: re-stamp the\n // nearest explicit AppearanceBoundary's mode+surface, or neither attribute when there is\n // none, leaving live shell inheritance in place.\n const appearance = useAppearanceAttributes()\n\n return (\n <>\n <AlertDialogOverlay />\n <AlertDialogPrimitive.Content\n ref={ref}\n data-slot=\"alert-dialog-content\"\n {...{ [SLOT_ATTR]: \"alert-dialog-content\" }}\n {...(override !== undefined ? { \"data-density\": override } : {})}\n {...appearance}\n className={mergeClasses(styles.content, styles[size], className)}\n {...props}\n >\n {children}\n </AlertDialogPrimitive.Content>\n </>\n )\n})\n\nexport const AlertDialogHeader = React.forwardRef<\n HTMLDivElement,\n AlertDialogHeaderProps\n>(function AlertDialogHeader({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <div\n ref={ref}\n data-slot=\"alert-dialog-header\"\n {...{ [SLOT_ATTR]: \"alert-dialog-header\" }}\n className={mergeClasses(styles.header, className)}\n {...props}\n />\n )\n})\n\nexport const AlertDialogFooter = React.forwardRef<\n HTMLDivElement,\n AlertDialogFooterProps\n>(function AlertDialogFooter({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <div\n ref={ref}\n data-slot=\"alert-dialog-footer\"\n {...{ [SLOT_ATTR]: \"alert-dialog-footer\" }}\n className={mergeClasses(styles.footer, className)}\n {...props}\n />\n )\n})\n\nexport const AlertDialogTitle = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Title>,\n AlertDialogTitleProps\n>(function AlertDialogTitle({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <AlertDialogPrimitive.Title\n ref={ref}\n data-slot=\"alert-dialog-title\"\n {...{ [SLOT_ATTR]: \"alert-dialog-title\" }}\n className={mergeClasses(styles.title, className)}\n {...props}\n />\n )\n})\n\nexport const AlertDialogDescription = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Description>,\n AlertDialogDescriptionProps\n>(function AlertDialogDescription({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <AlertDialogPrimitive.Description\n ref={ref}\n data-slot=\"alert-dialog-description\"\n {...{ [SLOT_ATTR]: \"alert-dialog-description\" }}\n className={mergeClasses(styles.description, className)}\n {...props}\n />\n )\n})\n\nexport const AlertDialogAction = React.forwardRef<\n HTMLButtonElement,\n AlertDialogActionProps\n>(function AlertDialogAction(\n {\n variant = \"primary\",\n size = \"base\",\n destructive = false,\n className,\n ...props\n },\n ref\n) {\n return (\n <AlertDialogPrimitive.Action asChild>\n <Button\n ref={ref}\n data-slot=\"alert-dialog-action\"\n {...{ [SLOT_ATTR]: \"alert-dialog-action\" }}\n variant={variant}\n size={size}\n destructive={destructive}\n className={className}\n {...props}\n />\n </AlertDialogPrimitive.Action>\n )\n})\n\nexport const AlertDialogCancel = React.forwardRef<\n HTMLButtonElement,\n AlertDialogCancelProps\n>(function AlertDialogCancel(\n {\n variant = \"secondary\",\n size = \"base\",\n destructive = false,\n className,\n ...props\n },\n ref\n) {\n return (\n <AlertDialogPrimitive.Cancel asChild>\n <Button\n ref={ref}\n data-slot=\"alert-dialog-cancel\"\n {...{ [SLOT_ATTR]: \"alert-dialog-cancel\" }}\n variant={variant}\n size={size}\n destructive={destructive}\n className={className}\n {...props}\n />\n </AlertDialogPrimitive.Cancel>\n )\n})\n"],"names":["useStyles","makeZenithStyles","tokens.body","shorthands","tokens.spacingGroup2","tokens.radiusXl","tokens.grayA1","tokens.containerSm","tokens.containerMd","tokens.containerLg","tokens.containerXl","tokens.spacingElement2","tokens.textXl","tokens.leadingXl","tokens.fontWeightSemibold","tokens.grayA12","tokens.textSm","tokens.leadingSm","tokens.grayA11","AlertDialog","React","props","_ref","AlertDialogPrimitive.Root","AlertDialogTrigger","className","ref","jsx","AlertDialogPrimitive.Trigger","SLOT_ATTR","AlertDialogPortal","AlertDialogPrimitive.Portal","AlertDialogOverlay","styles","appearance","useAppearanceAttributes","AlertDialogPrimitive.Overlay","mergeClasses","AlertDialogContent","size","children","override","useDensity","jsxs","Fragment","AlertDialogPrimitive.Content","AlertDialogHeader","AlertDialogFooter","AlertDialogTitle","AlertDialogPrimitive.Title","AlertDialogDescription","AlertDialogPrimitive.Description","AlertDialogAction","variant","destructive","AlertDialogPr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AA,MACnB,WAAWQ,EAAaJ,EAAO,aAAaR,CAAS;AAAA,MACpD,GAAGJ;AAAA,IAAA;AAAA,EAAA;AAGV,CAAC,GAEY+B,KAAoBhC,EAAM,WAGrC,SACA;AAAA,EACE,SAAAiC,IAAU;AAAA,EACV,MAAAd,IAAO;AAAA,EACP,aAAAe,IAAc;AAAA,EACd,WAAA7B;AAAA,EACA,GAAGJ;AACL,GACAK,GACA;AACA,SACE,gBAAAC,EAAC4B,GAAA,EAA4B,SAAO,IAClC,UAAA,gBAAA5B;AAAA,IAAC6B;AAAA,IAAA;AAAA,MACC,KAAA9B;AAAA,MACA,aAAU;AAAA,MACJ,CAACG,CAAS,GAAG;AAAA,MACnB,SAAAwB;AAAA,MACA,MAAAd;AAAA,MACA,aAAAe;AAAA,MACA,WAAA7B;AAAA,MACC,GAAGJ;AAAA,IAAA;AAAA,EAAA,GAER;AAEJ,CAAC,GAEYoC,KAAoBrC,EAAM,WAGrC,SACA;AAAA,EACE,SAAAiC,IAAU;AAAA,EACV,MAAAd,IAAO;AAAA,EACP,aAAAe,IAAc;AAAA,EACd,WAAA7B;AAAA,EACA,GAAGJ;AACL,GACAK,GACA;AACA,SACE,gBAAAC,EAAC+B,GAAA,EAA4B,SAAO,IAClC,UAAA,gBAAA/B;AAAA,IAAC6B;AAAA,IAAA;AAAA,MACC,KAAA9B;AAAA,MACA,aAAU;AAAA,MACJ,CAACG,CAAS,GAAG;AAAA,MACnB,SAAAwB;AAAA,MACA,MAAAd;AAAA,MACA,aAAAe;AAAA,MACA,WAAA7B;AAAA,MACC,GAAGJ;AAAA,IAAA;AAAA,EAAA,GAER;AAEJ,CAAC;"}
@@ -1,12 +1,12 @@
1
1
  import { jsx as n, jsxs as k } from "react/jsx-runtime";
2
2
  import * as a from "react";
3
- import { mergeClasses as m, SLOT_ATTR as s, shorthands as I } from "@epilot/zenith-runtime/v1";
3
+ import { mergeClasses as m, SLOT_ATTR as C, shorthands as w } from "@epilot/zenith-runtime/v1";
4
4
  import { makeZenithStyles as V } from "../../styles/make-styles.js";
5
- import { spacingGroup2 as w, spacingLayout1 as y, spacingElement2 as v, spacingLayout2 as E, leadingSm as S, textSm as R, fontWeightSemibold as N, leadingBase as $, textBase as j, spacingElement3 as c, spacingElement1 as z } from "../../tokens/index.js";
6
- import { ClearButton as G } from "../../lib/clear-button.js";
7
- import { CloseIcon as H } from "../../lib/icons.js";
8
- import { NS as W } from "../../tokens/core.meta.generated.js";
9
- const A = a.forwardRef(
5
+ import { spacingGroup2 as v, spacingLayout1 as y, spacingElement2 as x, spacingLayout2 as E, leadingSm as S, textSm as R, fontWeightSemibold as N, leadingBase as $, textBase as j, spacingElement3 as c, spacingElement1 as z, radiusXl as G } from "../../tokens/index.js";
6
+ import { ClearButton as H } from "../../lib/clear-button.js";
7
+ import { CloseIcon as W } from "../../lib/icons.js";
8
+ import { NS as A } from "../../tokens/core.meta.generated.js";
9
+ const O = a.forwardRef(
10
10
  function(o, t) {
11
11
  return /* @__PURE__ */ n(
12
12
  "svg",
@@ -20,7 +20,7 @@ const A = a.forwardRef(
20
20
  }
21
21
  );
22
22
  }
23
- ), O = a.forwardRef(function(o, t) {
23
+ ), _ = a.forwardRef(function(o, t) {
24
24
  return /* @__PURE__ */ n(
25
25
  "svg",
26
26
  {
@@ -32,7 +32,7 @@ const A = a.forwardRef(
32
32
  children: /* @__PURE__ */ n("path", { d: "M3.4255 20.5C3.256 20.5 3.10375 20.4586 2.96875 20.3757C2.83375 20.2929 2.72883 20.1837 2.654 20.048C2.576 19.9133 2.53308 19.7675 2.52525 19.6105C2.51742 19.4535 2.55975 19.298 2.65225 19.144L11.213 4.356C11.3057 4.202 11.4215 4.08817 11.5605 4.0145C11.6997 3.94083 11.8462 3.904 12 3.904C12.1538 3.904 12.3003 3.94083 12.4395 4.0145C12.5785 4.08817 12.6943 4.202 12.787 4.356L21.3477 19.144C21.4402 19.298 21.4826 19.4535 21.4747 19.6105C21.4669 19.7675 21.424 19.9133 21.346 20.048C21.2712 20.1837 21.1663 20.2929 21.0313 20.3757C20.8963 20.4586 20.744 20.5 20.5745 20.5H3.4255ZM12 17.8077C12.2288 17.8077 12.4207 17.7303 12.5755 17.5755C12.7303 17.4207 12.8078 17.2288 12.8078 17C12.8078 16.7712 12.7303 16.5793 12.5755 16.4245C12.4207 16.2697 12.2288 16.1923 12 16.1923C11.7712 16.1923 11.5793 16.2697 11.4245 16.4245C11.2697 16.5793 11.1923 16.7712 11.1923 17C11.1923 17.2288 11.2697 17.4207 11.4245 17.5755C11.5793 17.7303 11.7712 17.8077 12 17.8077ZM12.0003 15.1923C12.2129 15.1923 12.391 15.1204 12.5345 14.9768C12.6782 14.8329 12.75 14.6548 12.75 14.4423V10.9423C12.75 10.7298 12.6781 10.5517 12.5342 10.408C12.3904 10.2642 12.2122 10.1923 11.9997 10.1923C11.7871 10.1923 11.609 10.2642 11.4655 10.408C11.3218 10.5517 11.25 10.7298 11.25 10.9423V14.4423C11.25 14.6548 11.3219 14.8329 11.4658 14.9768C11.6096 15.1204 11.7878 15.1923 12.0003 15.1923Z" })
33
33
  }
34
34
  );
35
- }), _ = a.forwardRef(
35
+ }), F = a.forwardRef(
36
36
  function(o, t) {
37
37
  return /* @__PURE__ */ n(
38
38
  "svg",
@@ -46,7 +46,7 @@ const A = a.forwardRef(
46
46
  }
47
47
  );
48
48
  }
49
- ), F = a.forwardRef(
49
+ ), P = a.forwardRef(
50
50
  function(o, t) {
51
51
  return /* @__PURE__ */ n(
52
52
  "svg",
@@ -60,10 +60,10 @@ const A = a.forwardRef(
60
60
  }
61
61
  );
62
62
  }
63
- ), x = a.createContext({
63
+ ), I = a.createContext({
64
64
  variant: "info",
65
65
  hideIcon: !1
66
- }), u = "--zenith-callout-bg", d = "--zenith-callout-fg", l = (i, o) => `var(--zenith-${W}-${i}-${o})`, P = {
66
+ }), u = "--zenith-callout-bg", d = "--zenith-callout-fg", l = (i, o) => `var(--zenith-${A}-${i}-${o})`, X = {
67
67
  info: () => ({
68
68
  [u]: l("accent", "soft"),
69
69
  [d]: l("accent", "default")
@@ -88,6 +88,8 @@ const A = a.forwardRef(
88
88
  root: {
89
89
  position: "relative",
90
90
  width: "100%",
91
+ // v1 `rounded-xl`, the same radius as Card so the two agree side by side.
92
+ ...w.borderRadius(G),
91
93
  // p-3 — no token for 0.75rem.
92
94
  paddingTop: c,
93
95
  paddingRight: c,
@@ -111,13 +113,13 @@ const A = a.forwardRef(
111
113
  // gap-x-3 — no token for 0.75rem.
112
114
  columnGap: c
113
115
  },
114
- [`&:has([${s}="callout-icon"])`]: {
116
+ [`&:has([${C}="callout-icon"])`]: {
115
117
  gridTemplateColumns: "1rem 1fr",
116
118
  columnGap: c
117
119
  }
118
120
  },
119
121
  // v1 `[&>[data-slot=callout-icon]]` — SLOT_ATTR, never data-slot (CONVENTIONS rule 4).
120
- [`& > [${s}="callout-icon"]`]: {
122
+ [`& > [${C}="callout-icon"]`]: {
121
123
  // size-5 — no token for 1.25rem.
122
124
  width: "1.25rem",
123
125
  height: "1.25rem",
@@ -130,12 +132,12 @@ const A = a.forwardRef(
130
132
  },
131
133
  title: {
132
134
  gridColumnStart: 2,
133
- ...I.overflow("hidden"),
135
+ ...w.overflow("hidden"),
134
136
  display: "-webkit-box",
135
137
  WebkitBoxOrient: "vertical",
136
138
  WebkitLineClamp: 1,
137
139
  // min-h-4
138
- minHeight: w,
140
+ minHeight: v,
139
141
  fontSize: j,
140
142
  lineHeight: $,
141
143
  fontWeight: N
@@ -144,7 +146,7 @@ const A = a.forwardRef(
144
146
  gridColumnStart: 2,
145
147
  display: "grid",
146
148
  justifyItems: "start",
147
- ...I.gap(z),
149
+ ...w.gap(z),
148
150
  fontSize: R,
149
151
  lineHeight: S,
150
152
  "& p": {
@@ -157,7 +159,7 @@ const A = a.forwardRef(
157
159
  width: "100%",
158
160
  gridColumnEnd: "span 3",
159
161
  // mt-2
160
- marginTop: v
162
+ marginTop: x
161
163
  },
162
164
  actionStart: {
163
165
  justifyContent: "flex-start"
@@ -173,36 +175,36 @@ const A = a.forwardRef(
173
175
  dismiss: {
174
176
  position: "absolute",
175
177
  // top-2 right-2
176
- top: v,
177
- right: v,
178
+ top: x,
179
+ right: x,
178
180
  // size-6 — the ClearButton itself supplies centering, rounding, hover and focus.
179
181
  width: y,
180
182
  height: y
181
183
  },
182
184
  dismissIcon: {
183
185
  // size-4
184
- width: w,
185
- height: w
186
+ width: v,
187
+ height: v
186
188
  }
187
- }), o1 = a.forwardRef(
189
+ }), n1 = a.forwardRef(
188
190
  function({
189
191
  className: o,
190
192
  variant: t = "info",
191
193
  hideIcon: e = !1,
192
194
  customIcon: r,
193
195
  dismissible: f = !1,
194
- onDismiss: C,
196
+ onDismiss: s,
195
197
  style: p,
196
198
  children: L,
197
199
  ...T
198
200
  }, Z) {
199
- const [M, b] = a.useState(!0), g = h();
200
- if (!M)
201
+ const [b, M] = a.useState(!0), g = h();
202
+ if (!b)
201
203
  return null;
202
204
  const B = () => {
203
- b(!1), C == null || C();
205
+ M(!1), s == null || s();
204
206
  };
205
- return /* @__PURE__ */ n(x.Provider, { value: { variant: t, hideIcon: e }, children: /* @__PURE__ */ k(
207
+ return /* @__PURE__ */ n(I.Provider, { value: { variant: t, hideIcon: e }, children: /* @__PURE__ */ k(
206
208
  "div",
207
209
  {
208
210
  ref: Z,
@@ -211,31 +213,31 @@ const A = a.forwardRef(
211
213
  "data-hide-icon": e ? "true" : "false",
212
214
  "data-dismissible": f ? "true" : "false",
213
215
  role: "alert",
214
- [s]: "callout",
216
+ [C]: "callout",
215
217
  className: m(
216
218
  g.root,
217
219
  f && g.dismissible,
218
220
  o
219
221
  ),
220
- style: { ...P[t](), ...p },
222
+ style: { ...X[t](), ...p },
221
223
  ...T,
222
224
  children: [
223
225
  !e && /* @__PURE__ */ n(D, { customIcon: r }),
224
226
  L,
225
227
  f && /* @__PURE__ */ n(
226
- G,
228
+ H,
227
229
  {
228
230
  label: "Dismiss",
229
231
  onClick: B,
230
232
  className: g.dismiss,
231
- children: /* @__PURE__ */ n(H, { className: g.dismissIcon })
233
+ children: /* @__PURE__ */ n(W, { className: g.dismissIcon })
232
234
  }
233
235
  )
234
236
  ]
235
237
  }
236
238
  ) });
237
239
  }
238
- ), n1 = a.forwardRef(
240
+ ), e1 = a.forwardRef(
239
241
  function({ className: o, ...t }, e) {
240
242
  const r = h();
241
243
  return /* @__PURE__ */ n(
@@ -243,50 +245,50 @@ const A = a.forwardRef(
243
245
  {
244
246
  ref: e,
245
247
  "data-slot": "callout-title",
246
- [s]: "callout-title",
248
+ [C]: "callout-title",
247
249
  className: m(r.title, o),
248
250
  ...t
249
251
  }
250
252
  );
251
253
  }
252
- ), e1 = a.forwardRef(function({ className: o, ...t }, e) {
254
+ ), a1 = a.forwardRef(function({ className: o, ...t }, e) {
253
255
  const r = h();
254
256
  return /* @__PURE__ */ n(
255
257
  "div",
256
258
  {
257
259
  ref: e,
258
260
  "data-slot": "callout-description",
259
- [s]: "callout-description",
261
+ [C]: "callout-description",
260
262
  className: m(r.description, o),
261
263
  ...t
262
264
  }
263
265
  );
264
- }), a1 = a.forwardRef(function({ className: o, align: t = "start", ...e }, r) {
265
- const { hideIcon: f } = a.useContext(x), C = h(), p = t === "end" ? C.actionEnd : f ? C.actionStart : C.actionStartIcon;
266
+ }), i1 = a.forwardRef(function({ className: o, align: t = "start", ...e }, r) {
267
+ const { hideIcon: f } = a.useContext(I), s = h(), p = t === "end" ? s.actionEnd : f ? s.actionStart : s.actionStartIcon;
266
268
  return /* @__PURE__ */ n(
267
269
  "div",
268
270
  {
269
271
  ref: r,
270
272
  "data-slot": "callout-action",
271
273
  "data-align": t,
272
- [s]: "callout-action",
273
- className: m(C.action, p, o),
274
+ [C]: "callout-action",
275
+ className: m(s.action, p, o),
274
276
  ...e
275
277
  }
276
278
  );
277
279
  }), q = a.forwardRef(function({ customIcon: o, ...t }, e) {
278
- const { variant: r } = a.useContext(x);
280
+ const { variant: r } = a.useContext(I);
279
281
  if (o)
280
282
  return o;
281
283
  switch (r) {
282
284
  case "info":
283
- return /* @__PURE__ */ n(A, { ref: e, ...t });
285
+ return /* @__PURE__ */ n(O, { ref: e, ...t });
284
286
  case "success":
285
- return /* @__PURE__ */ n(_, { ref: e, ...t });
287
+ return /* @__PURE__ */ n(F, { ref: e, ...t });
286
288
  case "warning":
287
- return /* @__PURE__ */ n(O, { ref: e, ...t });
289
+ return /* @__PURE__ */ n(_, { ref: e, ...t });
288
290
  case "destructive":
289
- return /* @__PURE__ */ n(F, { ref: e, ...t });
291
+ return /* @__PURE__ */ n(P, { ref: e, ...t });
290
292
  }
291
293
  return null;
292
294
  }), D = a.forwardRef(
@@ -296,7 +298,7 @@ const A = a.forwardRef(
296
298
  {
297
299
  ref: r,
298
300
  "data-slot": "callout-icon",
299
- [s]: "callout-icon",
301
+ [C]: "callout-icon",
300
302
  customIcon: t,
301
303
  className: o,
302
304
  ...e
@@ -305,9 +307,9 @@ const A = a.forwardRef(
305
307
  }
306
308
  );
307
309
  export {
308
- o1 as Callout,
309
- a1 as CalloutAction,
310
- e1 as CalloutDescription,
311
- n1 as CalloutTitle
310
+ n1 as Callout,
311
+ i1 as CalloutAction,
312
+ a1 as CalloutDescription,
313
+ e1 as CalloutTitle
312
314
  };
313
315
  //# sourceMappingURL=callout.js.map