@umami/react-zen 0.251.0 → 0.252.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/dist/index.js CHANGED
@@ -4,8 +4,7 @@
4
4
  var accordion = require('@base-ui/react/accordion');
5
5
  var lucide_react_star = require('lucide-react');
6
6
  var react = require('react');
7
- var clsx = require('clsx');
8
- var tailwindMerge = require('tailwind-merge');
7
+ var cn = require('cn');
9
8
  var jsxRuntime = require('react/jsx-runtime');
10
9
  var tailwindVariants = require('tailwind-variants');
11
10
  var alertDialog = require('@base-ui/react/alert-dialog');
@@ -14,6 +13,7 @@ var dialog = require('@base-ui/react/dialog');
14
13
  var popover = require('@base-ui/react/popover');
15
14
  var menu = require('@base-ui/react/menu');
16
15
  var tooltip$1 = require('@base-ui/react/tooltip');
16
+ var autocomplete = require('@base-ui/react/autocomplete');
17
17
  var avatar$1 = require('@base-ui/react/avatar');
18
18
  var separator = require('@base-ui/react/separator');
19
19
  var reactDayPicker = require('react-day-picker');
@@ -26,6 +26,7 @@ var select = require('@base-ui/react/select');
26
26
  var scrollArea = require('@base-ui/react/scroll-area');
27
27
  var cmdk = require('cmdk');
28
28
  var contextMenu = require('@base-ui/react/context-menu');
29
+ var drawer = require('@base-ui/react/drawer');
29
30
  var reactHookForm = require('react-hook-form');
30
31
  var zustand = require('zustand');
31
32
  var web = require('@react-spring/web');
@@ -34,6 +35,7 @@ var meter = require('@base-ui/react/meter');
34
35
  var navigationMenu = require('@base-ui/react/navigation-menu');
35
36
  var numberField = require('@base-ui/react/number-field');
36
37
  var otpField = require('@base-ui/react/otp-field');
38
+ var previewCard = require('@base-ui/react/preview-card');
37
39
  var progress = require('@base-ui/react/progress');
38
40
  var radio = require('@base-ui/react/radio');
39
41
  var radioGroup = require('@base-ui/react/radio-group');
@@ -85,9 +87,6 @@ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "defau
85
87
  // src/components/icons.tsx
86
88
  var icons_exports = {};
87
89
  __reExport(icons_exports, lucide_react_star__namespace);
88
- function cn(...inputs) {
89
- return tailwindMerge.twMerge(clsx.clsx(inputs));
90
- }
91
90
  var paddingMap = {
92
91
  "0": "p-0",
93
92
  px: "p-px",
@@ -124,7 +123,7 @@ var paddingMap = {
124
123
  "72": "p-72",
125
124
  "80": "p-80",
126
125
  "96": "p-96",
127
- true: "px-[var(--zen-padding-x-default)] py-[var(--zen-padding-y-default)]"
126
+ true: "px-[var(--zen-padding-x)] py-[var(--zen-padding-y)]"
128
127
  };
129
128
  var pxMap = {
130
129
  "0": "px-0",
@@ -162,7 +161,7 @@ var pxMap = {
162
161
  "72": "px-72",
163
162
  "80": "px-80",
164
163
  "96": "px-96",
165
- true: "px-[var(--zen-padding-x-default)]"
164
+ true: "px-[var(--zen-padding-x)]"
166
165
  };
167
166
  var pyMap = {
168
167
  "0": "py-0",
@@ -200,7 +199,7 @@ var pyMap = {
200
199
  "72": "py-72",
201
200
  "80": "py-80",
202
201
  "96": "py-96",
203
- true: "py-[var(--zen-padding-y-default)]"
202
+ true: "py-[var(--zen-padding-y)]"
204
203
  };
205
204
  var ptMap = {
206
205
  "0": "pt-0",
@@ -673,7 +672,7 @@ var gapMap = {
673
672
  "72": "gap-72",
674
673
  "80": "gap-80",
675
674
  "96": "gap-96",
676
- true: "gap-[var(--zen-gap-default)]"
675
+ true: "gap-[var(--zen-gap)]"
677
676
  };
678
677
  var gapXMap = {
679
678
  "0": "gap-x-0",
@@ -700,7 +699,7 @@ var gapXMap = {
700
699
  "24": "gap-x-24",
701
700
  "28": "gap-x-28",
702
701
  "32": "gap-x-32",
703
- true: "gap-x-[var(--zen-gap-default)]"
702
+ true: "gap-x-[var(--zen-gap)]"
704
703
  };
705
704
  var gapYMap = {
706
705
  "0": "gap-y-0",
@@ -727,7 +726,7 @@ var gapYMap = {
727
726
  "24": "gap-y-24",
728
727
  "28": "gap-y-28",
729
728
  "32": "gap-y-32",
730
- true: "gap-y-[var(--zen-gap-default)]"
729
+ true: "gap-y-[var(--zen-gap)]"
731
730
  };
732
731
  var spaceXMap = {
733
732
  "0": "space-x-0",
@@ -804,33 +803,33 @@ var spaceYMap = {
804
803
  "96": "space-y-96"
805
804
  };
806
805
  var fontSizeMap = {
807
- xs: "text-[length:var(--zen-font-size-xs)]/[var(--zen-line-height-xs)]",
808
- sm: "text-[length:var(--zen-font-size-sm)]/[var(--zen-line-height-sm)]",
809
- base: "text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)]",
810
- lg: "text-[length:var(--zen-font-size-lg)]/[var(--zen-line-height-lg)]",
811
- xl: "text-[length:var(--zen-font-size-xl)]/[var(--zen-line-height-xl)]",
812
- "2xl": "text-[length:var(--zen-font-size-2xl)]/[var(--zen-line-height-2xl)]",
813
- "3xl": "text-[length:var(--zen-font-size-3xl)]/[var(--zen-line-height-3xl)]",
814
- "4xl": "text-[length:var(--zen-font-size-4xl)]/[var(--zen-line-height-4xl)]",
815
- "5xl": "text-[length:var(--zen-font-size-5xl)]/[var(--zen-line-height-5xl)]",
816
- "6xl": "text-[length:var(--zen-font-size-6xl)]/[var(--zen-line-height-6xl)]",
817
- "7xl": "text-[length:var(--zen-font-size-7xl)]/[var(--zen-line-height-7xl)]",
818
- "8xl": "text-[length:var(--zen-font-size-8xl)]/[var(--zen-line-height-8xl)]",
819
- "9xl": "text-[length:var(--zen-font-size-9xl)]/[var(--zen-line-height-9xl)]"
806
+ xs: "text-xs",
807
+ sm: "text-sm",
808
+ base: "text-base",
809
+ lg: "text-lg",
810
+ xl: "text-xl",
811
+ "2xl": "text-2xl",
812
+ "3xl": "text-3xl",
813
+ "4xl": "text-4xl",
814
+ "5xl": "text-5xl",
815
+ "6xl": "text-6xl",
816
+ "7xl": "text-7xl",
817
+ "8xl": "text-8xl",
818
+ "9xl": "text-9xl"
820
819
  };
821
820
  var headingSizeMap = {
822
- sm: "text-[length:var(--zen-font-size-sm)]/[var(--zen-line-height-sm)]",
823
- base: "text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)]",
824
- lg: "text-[length:var(--zen-font-size-lg)]/[var(--zen-line-height-lg)]",
825
- xl: "text-[length:var(--zen-font-size-xl)]/[var(--zen-line-height-xl)]",
826
- "2xl": "text-[length:var(--zen-font-size-2xl)]/[var(--zen-line-height-2xl)]",
827
- "3xl": "text-[length:var(--zen-font-size-3xl)]/[var(--zen-line-height-3xl)]",
828
- "4xl": "text-[length:var(--zen-font-size-4xl)]/[var(--zen-line-height-4xl)]",
829
- "5xl": "text-[length:var(--zen-font-size-5xl)]/[var(--zen-line-height-5xl)]",
830
- "6xl": "text-[length:var(--zen-font-size-6xl)]/[var(--zen-line-height-6xl)]",
831
- "7xl": "text-[length:var(--zen-font-size-7xl)]/[var(--zen-line-height-7xl)]",
832
- "8xl": "text-[length:var(--zen-font-size-8xl)]/[var(--zen-line-height-8xl)]",
833
- "9xl": "text-[length:var(--zen-font-size-9xl)]/[var(--zen-line-height-9xl)]"
821
+ sm: "text-sm",
822
+ base: "text-base",
823
+ lg: "text-lg",
824
+ xl: "text-xl",
825
+ "2xl": "text-2xl",
826
+ "3xl": "text-3xl",
827
+ "4xl": "text-4xl",
828
+ "5xl": "text-5xl",
829
+ "6xl": "text-6xl",
830
+ "7xl": "text-7xl",
831
+ "8xl": "text-8xl",
832
+ "9xl": "text-9xl"
834
833
  };
835
834
  var fontWeightMap = {
836
835
  thin: "font-thin",
@@ -852,7 +851,7 @@ var borderRadiusMap = {
852
851
  "2xl": "rounded-2xl",
853
852
  "3xl": "rounded-3xl",
854
853
  full: "rounded-full",
855
- true: "rounded-[var(--zen-radius-default)]"
854
+ true: "rounded-[var(--zen-radius)]"
856
855
  };
857
856
  var borderWidthMap = {
858
857
  sm: "border",
@@ -868,17 +867,17 @@ var shadowMap = {
868
867
  xl: "shadow-xl",
869
868
  "2xl": "shadow-2xl",
870
869
  inner: "shadow-inner",
871
- true: "shadow-[var(--zen-shadow-default)]"
870
+ true: "shadow-[var(--zen-shadow)]"
872
871
  };
873
872
  var semanticColorMap = {
874
- primary: { text: "text-foreground-primary", bg: "bg-primary" },
875
- muted: { text: "text-foreground-muted", bg: "bg-surface-raised" },
876
- inverted: { text: "text-surface-base", bg: "bg-surface-inverted" },
877
- disabled: { text: "text-foreground-disabled", bg: "bg-surface-disabled" },
873
+ primary: { text: "text-fg", bg: "bg-primary" },
874
+ muted: { text: "text-fg-muted", bg: "bg-surface-raised" },
875
+ inverted: { text: "text-surface", bg: "bg-surface-inverted" },
876
+ disabled: { text: "text-fg-disabled", bg: "bg-surface-disabled" },
878
877
  transparent: { text: "text-transparent", bg: "bg-transparent" },
879
- true: { text: "text-foreground-primary", bg: "bg-interactive" },
878
+ true: { text: "text-fg", bg: "bg-interactive" },
880
879
  // Surface colors
881
- "surface-base": { text: "", bg: "bg-surface-base" },
880
+ surface: { text: "", bg: "bg-surface" },
882
881
  "surface-raised": { text: "", bg: "bg-surface-raised" },
883
882
  "surface-sunken": { text: "", bg: "bg-surface-sunken" },
884
883
  "surface-overlay": { text: "", bg: "bg-surface-overlay" },
@@ -1380,9 +1379,9 @@ function mapBorderColor(value) {
1380
1379
  return "";
1381
1380
  }
1382
1381
  var semanticCssColorValues = {
1383
- primary: "var(--zen-text-primary)",
1384
- muted: "var(--zen-text-muted)",
1385
- disabled: "var(--zen-text-disabled)"
1382
+ primary: "var(--zen-fg)",
1383
+ muted: "var(--zen-fg-muted)",
1384
+ disabled: "var(--zen-fg-disabled)"
1386
1385
  };
1387
1386
  var tailwindColorHex = {
1388
1387
  gray: {
@@ -2113,14 +2112,14 @@ function Icon({
2113
2112
  ...props
2114
2113
  }) {
2115
2114
  const colorStr = color === true ? "true" : color;
2116
- const wrapperClasses = cn("inline-flex items-center justify-center shrink-0");
2115
+ const wrapperClasses = cn.cn("inline-flex items-center justify-center shrink-0");
2117
2116
  const strokeColorStr = strokeColor === true ? void 0 : strokeColor;
2118
2117
  const fillColorStr = fillColor === true ? void 0 : fillColor;
2119
2118
  const wrapperStyle = {
2120
2119
  ...style,
2121
2120
  transform: rotate ? `rotate(${rotate}deg)` : void 0
2122
2121
  };
2123
- const svgClasses = cn(
2122
+ const svgClasses = cn.cn(
2124
2123
  sizeMap[size],
2125
2124
  mapTextColor(colorStr),
2126
2125
  strokeWidth && strokeWidthMap[strokeWidth],
@@ -2160,7 +2159,7 @@ function resolveRender(render, props, defaultElement) {
2160
2159
  }
2161
2160
  function Text({
2162
2161
  color,
2163
- size = "base",
2162
+ size = "sm",
2164
2163
  weight,
2165
2164
  align,
2166
2165
  spacing,
@@ -2186,7 +2185,7 @@ function Text({
2186
2185
  const Component = as;
2187
2186
  const colorStr = color === true ? "true" : color;
2188
2187
  const decorationColorStr = decorationColor === true ? "true" : decorationColor;
2189
- const classes = cn(
2188
+ const classes = cn.cn(
2190
2189
  mapFontSize(size),
2191
2190
  mapFontWeight(weight),
2192
2191
  mapTextAlign(align),
@@ -2233,10 +2232,7 @@ function Accordion({
2233
2232
  value: expandedKeys ? Array.from(expandedKeys) : void 0,
2234
2233
  defaultValue: defaultExpandedKeys ? Array.from(defaultExpandedKeys) : void 0,
2235
2234
  onValueChange: (value) => onExpandedChange?.(new Set(value)),
2236
- className: cn(
2237
- "flex flex-col items-start w-full gap-2 text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)]",
2238
- className
2239
- ),
2235
+ className: cn.cn("flex flex-col items-start w-full gap-2 text-sm", className),
2240
2236
  children
2241
2237
  }
2242
2238
  );
@@ -2256,7 +2252,7 @@ function AccordionItem({
2256
2252
  ...props,
2257
2253
  value: value || id,
2258
2254
  disabled: isDisabled,
2259
- className: cn("w-full cursor-pointer group", className),
2255
+ className: cn.cn("w-full cursor-pointer group", className),
2260
2256
  children: [
2261
2257
  /* @__PURE__ */ jsxRuntime.jsx(accordion.Accordion.Header, { className: "m-0 text-[length:inherit]", children: /* @__PURE__ */ jsxRuntime.jsxs(accordion.Accordion.Trigger, { className: "w-full flex items-center justify-between font-bold py-2 px-0", children: [
2262
2258
  /* @__PURE__ */ jsxRuntime.jsx(Text, { children: trigger }),
@@ -2272,33 +2268,33 @@ var button = tailwindVariants.tv({
2272
2268
  "inline-flex items-center justify-center gap-3 whitespace-nowrap",
2273
2269
  "font-medium rounded border border-transparent cursor-pointer",
2274
2270
  "transition-colors leading-normal relative no-underline",
2275
- "outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 focus-visible:ring-offset-surface-base"
2271
+ "outline-none focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 focus-visible:ring-offset-surface"
2276
2272
  ],
2277
2273
  variants: {
2278
2274
  variant: {
2279
2275
  default: [
2280
- "bg-interactive text-foreground-primary",
2276
+ "bg-interactive text-fg",
2281
2277
  "hover:bg-interactive-hover",
2282
2278
  "pressed:bg-interactive-pressed",
2283
- "disabled:text-foreground-disabled"
2279
+ "disabled:text-fg-disabled"
2284
2280
  ],
2285
2281
  primary: [
2286
- "bg-primary text-primary-foreground",
2282
+ "bg-primary text-primary-fg",
2287
2283
  "hover:opacity-90",
2288
2284
  "pressed:opacity-80",
2289
2285
  "disabled:opacity-50"
2290
2286
  ],
2291
2287
  outline: [
2292
- "bg-surface-base border-edge shadow-sm text-foreground-primary",
2288
+ "bg-surface border-edge shadow-sm text-fg",
2293
2289
  "hover:border-edge-strong",
2294
2290
  "pressed:bg-surface-raised",
2295
- "disabled:bg-surface-disabled disabled:text-foreground-disabled"
2291
+ "disabled:bg-surface-disabled disabled:text-fg-disabled"
2296
2292
  ],
2297
2293
  quiet: [
2298
2294
  "bg-transparent",
2299
2295
  "hover:bg-interactive",
2300
2296
  "pressed:bg-interactive-hover",
2301
- "disabled:text-foreground-disabled"
2297
+ "disabled:text-fg-disabled"
2302
2298
  ],
2303
2299
  danger: [
2304
2300
  "bg-status-error text-white",
@@ -2310,15 +2306,15 @@ var button = tailwindVariants.tv({
2310
2306
  "bg-transparent border-0",
2311
2307
  "hover:bg-transparent",
2312
2308
  "pressed:bg-transparent",
2313
- "disabled:text-foreground-disabled"
2309
+ "disabled:text-fg-disabled"
2314
2310
  ]
2315
2311
  },
2316
2312
  size: {
2317
- xs: "text-[length:var(--zen-font-size-sm)]/[var(--zen-line-height-sm)] py-1 px-2",
2318
- sm: "text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] py-1.5 px-2.5",
2319
- md: "text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] py-2 px-3",
2320
- lg: "text-[length:var(--zen-font-size-lg)]/[var(--zen-line-height-lg)] py-2.5 px-4",
2321
- xl: "text-[length:var(--zen-font-size-xl)]/[var(--zen-line-height-xl)] py-3 px-5"
2313
+ xs: "text-xs py-1 px-2",
2314
+ sm: "text-sm py-1.5 px-2.5",
2315
+ md: "text-sm py-2 px-3",
2316
+ lg: "text-base py-2.5 px-4",
2317
+ xl: "text-lg py-3 px-5"
2322
2318
  }
2323
2319
  },
2324
2320
  defaultVariants: {
@@ -2329,8 +2325,8 @@ var button = tailwindVariants.tv({
2329
2325
  var inputField = tailwindVariants.tv({
2330
2326
  base: [
2331
2327
  "relative flex items-center",
2332
- "text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] rounded border border-edge bg-surface-base shadow-sm",
2333
- "leading-6 text-foreground-primary transition-colors",
2328
+ "text-sm rounded border border-edge bg-surface shadow-sm",
2329
+ "leading-6 text-fg transition-colors",
2334
2330
  "focus-within:border-edge-strong",
2335
2331
  "has-[input:read-only]:bg-surface-raised has-[textarea:read-only]:bg-surface-raised",
2336
2332
  "has-[:disabled]:bg-surface-disabled has-[:disabled]:opacity-50"
@@ -2348,13 +2344,13 @@ var inputField = tailwindVariants.tv({
2348
2344
  tailwindVariants.tv({
2349
2345
  base: [
2350
2346
  "flex items-center justify-between",
2351
- "gap-3 text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] py-2 px-3 min-w-[120px]",
2347
+ "gap-3 text-sm py-2 px-3 min-w-[120px]",
2352
2348
  "cursor-pointer outline-none rounded",
2353
- "text-foreground-primary",
2349
+ "text-fg",
2354
2350
  "hovered:bg-interactive",
2355
2351
  "focused:bg-interactive",
2356
2352
  "focus-visible:bg-interactive",
2357
- "disabled:text-foreground-disabled disabled:cursor-default",
2353
+ "disabled:text-fg-disabled disabled:cursor-default",
2358
2354
  "selected:font-semibold"
2359
2355
  ]
2360
2356
  });
@@ -2385,23 +2381,21 @@ tailwindVariants.tv({
2385
2381
  }
2386
2382
  });
2387
2383
  var tooltip = tailwindVariants.tv({
2388
- base: [
2389
- "bg-surface-inverted text-surface-base text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] px-2 py-1 rounded"
2390
- ]
2384
+ base: ["bg-surface-inverted text-surface text-sm px-2 py-1 rounded"]
2391
2385
  });
2392
2386
  var checkbox = tailwindVariants.tv({
2393
2387
  slots: {
2394
2388
  root: [
2395
2389
  "group flex items-center gap-3",
2396
- "text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] cursor-pointer",
2397
- "disabled:text-foreground-disabled disabled:cursor-default"
2390
+ "text-sm cursor-pointer",
2391
+ "disabled:text-fg-disabled disabled:cursor-default"
2398
2392
  ],
2399
2393
  box: [
2400
2394
  "flex items-center justify-center",
2401
- "w-5 h-5 rounded border border-edge bg-surface-base",
2395
+ "w-5 h-5 rounded border border-edge bg-surface",
2402
2396
  "shadow-sm transition-colors",
2403
- "group-data-[checked]:bg-primary group-data-[checked]:border-primary group-data-[checked]:text-primary-foreground",
2404
- "group-indeterminate:bg-surface-base group-indeterminate:text-foreground-primary",
2397
+ "group-data-[checked]:bg-primary group-data-[checked]:border-primary group-data-[checked]:text-primary-fg",
2398
+ "group-indeterminate:bg-surface group-indeterminate:text-fg",
2405
2399
  "group-disabled:bg-surface-disabled",
2406
2400
  "group-focus-visible:ring-2 group-focus-visible:ring-focus-ring group-focus-visible:ring-offset-1"
2407
2401
  ],
@@ -2417,7 +2411,7 @@ var switchVariant = tailwindVariants.tv({
2417
2411
  slots: {
2418
2412
  root: [
2419
2413
  "group flex items-center gap-3",
2420
- "text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] cursor-pointer",
2414
+ "text-sm cursor-pointer",
2421
2415
  "disabled:opacity-50 disabled:cursor-default"
2422
2416
  ],
2423
2417
  track: [
@@ -2429,7 +2423,7 @@ var switchVariant = tailwindVariants.tv({
2429
2423
  ],
2430
2424
  thumb: [
2431
2425
  "w-4 h-4 rounded-full",
2432
- "bg-surface-base shadow-sm",
2426
+ "bg-surface shadow-sm",
2433
2427
  "transition-transform",
2434
2428
  "group-data-[checked]:translate-x-4"
2435
2429
  ]
@@ -2440,34 +2434,34 @@ tailwindVariants.tv({
2440
2434
  root: "flex flex-col",
2441
2435
  list: ["flex gap-1 border-b border-edge-muted"],
2442
2436
  tab: [
2443
- "px-4 py-2 text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] font-medium cursor-pointer",
2444
- "text-foreground-muted outline-none",
2437
+ "px-4 py-2 text-sm font-medium cursor-pointer",
2438
+ "text-fg-muted outline-none",
2445
2439
  "border-b-2 border-transparent -mb-px",
2446
- "hovered:text-foreground-primary",
2447
- "selected:text-foreground-primary selected:border-primary",
2448
- "disabled:text-foreground-disabled disabled:cursor-default",
2440
+ "hovered:text-fg",
2441
+ "selected:text-fg selected:border-primary",
2442
+ "disabled:text-fg-disabled disabled:cursor-default",
2449
2443
  "focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2"
2450
2444
  ],
2451
2445
  panel: "py-4"
2452
2446
  }
2453
2447
  });
2454
2448
  tailwindVariants.tv({
2455
- base: "text-foreground-primary",
2449
+ base: "text-fg",
2456
2450
  variants: {
2457
2451
  size: {
2458
- xs: "text-[length:var(--zen-font-size-xs)]/[var(--zen-line-height-xs)]",
2459
- sm: "text-[length:var(--zen-font-size-sm)]/[var(--zen-line-height-sm)]",
2460
- base: "text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)]",
2461
- lg: "text-[length:var(--zen-font-size-lg)]/[var(--zen-line-height-lg)]",
2462
- xl: "text-[length:var(--zen-font-size-xl)]/[var(--zen-line-height-xl)]",
2463
- "2xl": "text-[length:var(--zen-font-size-2xl)]/[var(--zen-line-height-2xl)]",
2464
- "3xl": "text-[length:var(--zen-font-size-3xl)]/[var(--zen-line-height-3xl)]",
2465
- "4xl": "text-[length:var(--zen-font-size-4xl)]/[var(--zen-line-height-4xl)]"
2452
+ xs: "text-xs",
2453
+ sm: "text-sm",
2454
+ base: "text-base",
2455
+ lg: "text-lg",
2456
+ xl: "text-xl",
2457
+ "2xl": "text-2xl",
2458
+ "3xl": "text-3xl",
2459
+ "4xl": "text-4xl"
2466
2460
  },
2467
2461
  color: {
2468
2462
  default: "",
2469
- muted: "text-foreground-muted",
2470
- disabled: "text-foreground-disabled"
2463
+ muted: "text-fg-muted",
2464
+ disabled: "text-fg-disabled"
2471
2465
  },
2472
2466
  weight: {
2473
2467
  thin: "font-thin",
@@ -2486,18 +2480,18 @@ tailwindVariants.tv({
2486
2480
  }
2487
2481
  });
2488
2482
  tailwindVariants.tv({
2489
- base: "font-semibold text-foreground-primary",
2483
+ base: "font-semibold text-fg",
2490
2484
  variants: {
2491
2485
  size: {
2492
- sm: "text-[length:var(--zen-font-size-sm)]/[var(--zen-line-height-sm)]",
2493
- base: "text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)]",
2494
- lg: "text-[length:var(--zen-font-size-lg)]/[var(--zen-line-height-lg)]",
2495
- xl: "text-[length:var(--zen-font-size-xl)]/[var(--zen-line-height-xl)]",
2496
- "2xl": "text-[length:var(--zen-font-size-2xl)]/[var(--zen-line-height-2xl)]",
2497
- "3xl": "text-[length:var(--zen-font-size-3xl)]/[var(--zen-line-height-3xl)]",
2498
- "4xl": "text-[length:var(--zen-font-size-4xl)]/[var(--zen-line-height-4xl)]",
2499
- "5xl": "text-[length:var(--zen-font-size-5xl)]/[var(--zen-line-height-5xl)]",
2500
- "6xl": "text-[length:var(--zen-font-size-6xl)]/[var(--zen-line-height-6xl)]"
2486
+ sm: "text-sm",
2487
+ base: "text-base",
2488
+ lg: "text-lg",
2489
+ xl: "text-xl",
2490
+ "2xl": "text-2xl",
2491
+ "3xl": "text-3xl",
2492
+ "4xl": "text-4xl",
2493
+ "5xl": "text-5xl",
2494
+ "6xl": "text-6xl"
2501
2495
  }
2502
2496
  },
2503
2497
  defaultVariants: {
@@ -2506,15 +2500,15 @@ tailwindVariants.tv({
2506
2500
  });
2507
2501
  var alert = tailwindVariants.tv({
2508
2502
  base: [
2509
- "relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border border-edge-muted px-4 py-3 text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)]",
2503
+ "relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border border-edge-muted px-4 py-3 text-sm",
2510
2504
  "has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3",
2511
2505
  "[&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current"
2512
2506
  ],
2513
2507
  variants: {
2514
2508
  variant: {
2515
- default: "bg-surface-base text-foreground-primary",
2509
+ default: "bg-surface text-fg",
2516
2510
  danger: [
2517
- "border-status-error bg-surface-base text-status-error",
2511
+ "border-status-error bg-surface text-status-error",
2518
2512
  "*:data-[slot=alert-description]:text-status-error/90"
2519
2513
  ]
2520
2514
  }
@@ -2528,7 +2522,7 @@ var emptyMedia = tailwindVariants.tv({
2528
2522
  variants: {
2529
2523
  variant: {
2530
2524
  default: "bg-transparent",
2531
- icon: "bg-surface-raised text-foreground-primary flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6"
2525
+ icon: "bg-surface-raised text-fg flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6"
2532
2526
  }
2533
2527
  },
2534
2528
  defaultVariants: {
@@ -2539,7 +2533,7 @@ tailwindVariants.tv({
2539
2533
  base: "inline-flex items-center gap-2",
2540
2534
  slots: {
2541
2535
  dot: "w-2 h-2 rounded-full",
2542
- label: "text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)]"
2536
+ label: "text-sm"
2543
2537
  },
2544
2538
  variants: {
2545
2539
  color: {
@@ -2559,13 +2553,13 @@ var toast = tailwindVariants.tv({
2559
2553
  "flex items-center gap-3 px-4 py-3 rounded-lg shadow-lg",
2560
2554
  "bg-surface-overlay",
2561
2555
  "border border-edge-muted",
2562
- "text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)]"
2556
+ "text-sm"
2563
2557
  ],
2564
2558
  variants: {
2565
2559
  variant: {
2566
2560
  default: "",
2567
- success: "bg-status-success-bg text-status-success-text",
2568
- error: "bg-status-error-bg text-status-error-text"
2561
+ success: "bg-status-success-bg text-status-success-fg",
2562
+ error: "bg-status-error-bg text-status-error-fg"
2569
2563
  }
2570
2564
  }
2571
2565
  });
@@ -2576,13 +2570,13 @@ var badge = tailwindVariants.tv({
2576
2570
  ],
2577
2571
  variants: {
2578
2572
  variant: {
2579
- default: "bg-interactive text-foreground-primary",
2580
- primary: "bg-primary text-primary-foreground",
2581
- outline: "bg-transparent border-edge text-foreground-primary",
2582
- success: "bg-status-success-bg text-status-success-text",
2583
- warning: "bg-status-warning-bg text-status-warning-text",
2584
- error: "bg-status-error-bg text-status-error-text",
2585
- info: "bg-status-info-bg text-status-info-text",
2573
+ default: "bg-interactive text-fg",
2574
+ primary: "bg-primary text-primary-fg",
2575
+ outline: "bg-transparent border-edge text-fg",
2576
+ success: "bg-status-success-bg text-status-success-fg",
2577
+ warning: "bg-status-warning-bg text-status-warning-fg",
2578
+ error: "bg-status-error-bg text-status-error-fg",
2579
+ info: "bg-status-info-bg text-status-info-fg",
2586
2580
  // Tailwind base color palette (soft tint + readable text, dark-mode aware)
2587
2581
  slate: "bg-slate-50 text-slate-900 dark:bg-slate-500/20 dark:text-slate-100",
2588
2582
  gray: "bg-gray-50 text-gray-900 dark:bg-gray-500/20 dark:text-gray-100",
@@ -2608,8 +2602,8 @@ var badge = tailwindVariants.tv({
2608
2602
  rose: "bg-rose-50 text-rose-900 dark:bg-rose-500/20 dark:text-rose-100"
2609
2603
  },
2610
2604
  size: {
2611
- sm: "text-[length:var(--zen-font-size-xs)]/[var(--zen-line-height-xs)] px-2 py-0.5",
2612
- md: "text-[length:var(--zen-font-size-sm)]/[var(--zen-line-height-sm)] px-2.5 py-0.5"
2605
+ sm: "text-xs px-2 py-0.5",
2606
+ md: "text-sm px-2.5 py-0.5"
2613
2607
  }
2614
2608
  },
2615
2609
  defaultVariants: {
@@ -2624,32 +2618,29 @@ var avatar = tailwindVariants.tv({
2624
2618
  "overflow-hidden rounded-full align-middle bg-interactive"
2625
2619
  ],
2626
2620
  image: "size-full object-cover",
2627
- fallback: [
2628
- "flex size-full items-center justify-center",
2629
- "font-medium text-foreground-primary uppercase"
2630
- ]
2621
+ fallback: ["flex size-full items-center justify-center", "font-medium text-fg uppercase"]
2631
2622
  },
2632
2623
  variants: {
2633
2624
  size: {
2634
2625
  xs: {
2635
2626
  root: "size-6",
2636
- fallback: "text-[length:var(--zen-font-size-xs)]/[var(--zen-line-height-xs)]"
2627
+ fallback: "text-xs"
2637
2628
  },
2638
2629
  sm: {
2639
2630
  root: "size-8",
2640
- fallback: "text-[length:var(--zen-font-size-sm)]/[var(--zen-line-height-sm)]"
2631
+ fallback: "text-sm"
2641
2632
  },
2642
2633
  md: {
2643
2634
  root: "size-10",
2644
- fallback: "text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)]"
2635
+ fallback: "text-sm"
2645
2636
  },
2646
2637
  lg: {
2647
2638
  root: "size-12",
2648
- fallback: "text-[length:var(--zen-font-size-lg)]/[var(--zen-line-height-lg)]"
2639
+ fallback: "text-lg"
2649
2640
  },
2650
2641
  xl: {
2651
2642
  root: "size-16",
2652
- fallback: "text-[length:var(--zen-font-size-xl)]/[var(--zen-line-height-xl)]"
2643
+ fallback: "text-xl"
2653
2644
  }
2654
2645
  }
2655
2646
  },
@@ -2660,7 +2651,7 @@ var avatar = tailwindVariants.tv({
2660
2651
  var tag = tailwindVariants.tv({
2661
2652
  slots: {
2662
2653
  base: [
2663
- "inline-flex items-center gap-1 px-2 py-0.5 rounded text-[length:var(--zen-font-size-sm)]/[var(--zen-line-height-sm)]",
2654
+ "inline-flex items-center gap-1 px-2 py-0.5 rounded text-sm",
2664
2655
  "cursor-default outline-none",
2665
2656
  "focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-1"
2666
2657
  ],
@@ -2674,13 +2665,13 @@ var tag = tailwindVariants.tv({
2674
2665
  variants: {
2675
2666
  variant: {
2676
2667
  default: {
2677
- base: "bg-interactive text-foreground-primary"
2668
+ base: "bg-interactive text-fg"
2678
2669
  },
2679
2670
  outline: {
2680
- base: "bg-transparent border border-edge text-foreground-primary"
2671
+ base: "bg-transparent border border-edge text-fg"
2681
2672
  },
2682
2673
  primary: {
2683
- base: "bg-primary text-primary-foreground"
2674
+ base: "bg-primary text-primary-fg"
2684
2675
  }
2685
2676
  }
2686
2677
  },
@@ -2708,7 +2699,7 @@ var AlertTitle = react.forwardRef(
2708
2699
  ...props,
2709
2700
  ref,
2710
2701
  "data-slot": "alert-title",
2711
- className: cn("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", className)
2702
+ className: cn.cn("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", className)
2712
2703
  }
2713
2704
  )
2714
2705
  );
@@ -2720,8 +2711,8 @@ var AlertDescription = react.forwardRef(
2720
2711
  ...props,
2721
2712
  ref,
2722
2713
  "data-slot": "alert-description",
2723
- className: cn(
2724
- "col-start-2 grid justify-items-start gap-1 text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] text-foreground-muted [&_p]:leading-relaxed",
2714
+ className: cn.cn(
2715
+ "col-start-2 grid justify-items-start gap-1 text-sm text-fg-muted [&_p]:leading-relaxed",
2725
2716
  className
2726
2717
  )
2727
2718
  }
@@ -2855,7 +2846,7 @@ var Box = react.forwardRef(function Box2({
2855
2846
  if (typeof value === "string" && !isPreset(value)) return value;
2856
2847
  return void 0;
2857
2848
  };
2858
- const classes = cn(
2849
+ const classes = cn.cn(
2859
2850
  mapDisplay(display),
2860
2851
  mapTextColor(toStringValue(color)),
2861
2852
  mapBackgroundColor(toStringValue(backgroundColor)),
@@ -2968,7 +2959,7 @@ function Flexbox({
2968
2959
  children,
2969
2960
  ...props
2970
2961
  }) {
2971
- const classes = cn(
2962
+ const classes = cn.cn(
2972
2963
  mapDisplay(display),
2973
2964
  mapFlexDirection(direction),
2974
2965
  mapFlexWrap(wrap),
@@ -3001,7 +2992,7 @@ function Heading({
3001
2992
  as,
3002
2993
  spacing,
3003
2994
  weight: "semibold",
3004
- className: cn(mapHeadingSize(size), className),
2995
+ className: cn.cn(mapHeadingSize(size), className),
3005
2996
  children
3006
2997
  }
3007
2998
  );
@@ -3173,8 +3164,8 @@ function Dialog({ title, children, className, ...props }) {
3173
3164
  "div",
3174
3165
  {
3175
3166
  ...props,
3176
- className: cn(
3177
- "p-6 shadow-xl bg-surface-base border border-edge rounded relative outline-none overflow-auto",
3167
+ className: cn.cn(
3168
+ "p-6 shadow-xl bg-surface border border-edge rounded relative outline-none overflow-auto",
3178
3169
  className
3179
3170
  ),
3180
3171
  children: /* @__PURE__ */ jsxRuntime.jsxs(Column, { height: "100%", gap: true, children: [
@@ -3200,7 +3191,7 @@ function AlertDialog({
3200
3191
  children,
3201
3192
  ...props
3202
3193
  }) {
3203
- return /* @__PURE__ */ jsxRuntime.jsx(Dialog, { ...props, title, className: cn("grid", className), children: ({ close }) => {
3194
+ return /* @__PURE__ */ jsxRuntime.jsx(Dialog, { ...props, title, className: cn.cn("grid", className), children: ({ close }) => {
3204
3195
  return /* @__PURE__ */ jsxRuntime.jsxs(Column, { gap: "4", children: [
3205
3196
  description && /* @__PURE__ */ jsxRuntime.jsx(alertDialog.AlertDialog.Description, { render: /* @__PURE__ */ jsxRuntime.jsx(Text, { color: "muted" }), children: description }),
3206
3197
  typeof children === "function" ? children({ close }) : children,
@@ -3230,7 +3221,7 @@ function AspectRatio({ ratio = 1, className, style, children, ...props }) {
3230
3221
  "div",
3231
3222
  {
3232
3223
  ...props,
3233
- className: cn(
3224
+ className: cn.cn(
3234
3225
  "relative w-full overflow-hidden",
3235
3226
  "[&>*]:absolute [&>*]:inset-0 [&>*]:size-full [&>img]:object-cover [&>video]:object-cover",
3236
3227
  className
@@ -3240,6 +3231,204 @@ function AspectRatio({ ratio = 1, className, style, children, ...props }) {
3240
3231
  }
3241
3232
  );
3242
3233
  }
3234
+ var InputGroup = react.forwardRef(
3235
+ ({ className, variant, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3236
+ "div",
3237
+ {
3238
+ ...props,
3239
+ ref,
3240
+ "data-slot": "input-group",
3241
+ role: props.role ?? "group",
3242
+ className: inputField({
3243
+ variant,
3244
+ className: cn.cn(
3245
+ "group/input-group w-full min-w-0 gap-0 p-0",
3246
+ "has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col",
3247
+ "has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col",
3248
+ "has-[>textarea]:h-auto",
3249
+ className
3250
+ )
3251
+ })
3252
+ }
3253
+ )
3254
+ );
3255
+ InputGroup.displayName = "InputGroup";
3256
+ var addonClasses = {
3257
+ // Inline addons must not add vertical padding around their buttons; the
3258
+ // input's padding determines the height of a single-line control.
3259
+ "inline-start": "order-first ps-3 py-0",
3260
+ "inline-end": "order-last pe-3 py-0",
3261
+ "block-start": "order-first w-full justify-start px-3 pt-3 pb-2",
3262
+ "block-end": "order-last w-full justify-start px-3 pt-2 pb-3"
3263
+ };
3264
+ var InputGroupAddon = react.forwardRef(
3265
+ ({ align = "inline-start", className, onClick, ...props }, ref) => {
3266
+ const handleClick = (event) => {
3267
+ onClick?.(event);
3268
+ if (event.defaultPrevented || event.target.closest("button")) {
3269
+ return;
3270
+ }
3271
+ event.currentTarget.parentElement?.querySelector('[data-slot="input-group-control"]')?.focus();
3272
+ };
3273
+ return /* @__PURE__ */ jsxRuntime.jsx(
3274
+ "div",
3275
+ {
3276
+ ...props,
3277
+ ref,
3278
+ role: props.role ?? "group",
3279
+ "data-slot": "input-group-addon",
3280
+ "data-align": align,
3281
+ className: cn.cn(
3282
+ "flex h-auto shrink-0 cursor-text items-center justify-center gap-2 text-sm text-fg-muted",
3283
+ "[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
3284
+ addonClasses[align],
3285
+ className
3286
+ ),
3287
+ onClick: handleClick
3288
+ }
3289
+ );
3290
+ }
3291
+ );
3292
+ InputGroupAddon.displayName = "InputGroupAddon";
3293
+ var buttonSizeClasses = {
3294
+ xs: "h-6 gap-1 rounded px-1.5 py-0 text-sm",
3295
+ sm: "h-8 gap-2 rounded px-2 py-0 text-sm",
3296
+ "icon-xs": "size-6 rounded p-0",
3297
+ "icon-sm": "size-8 rounded p-0"
3298
+ };
3299
+ var InputGroupButton = react.forwardRef(
3300
+ ({ className, size = "xs", type = "button", variant = "quiet", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3301
+ Button,
3302
+ {
3303
+ ...props,
3304
+ ref,
3305
+ type,
3306
+ variant,
3307
+ size: "xs",
3308
+ "data-size": size,
3309
+ className: cn.cn(
3310
+ "shrink-0 shadow-none",
3311
+ "[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
3312
+ buttonSizeClasses[size],
3313
+ className
3314
+ )
3315
+ }
3316
+ )
3317
+ );
3318
+ InputGroupButton.displayName = "InputGroupButton";
3319
+ var InputGroupText = react.forwardRef(
3320
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3321
+ "span",
3322
+ {
3323
+ ...props,
3324
+ ref,
3325
+ "data-slot": "input-group-text",
3326
+ className: cn.cn(
3327
+ "flex items-center gap-2 text-sm text-fg-muted [&_svg]:pointer-events-none [&_svg]:size-4",
3328
+ className
3329
+ )
3330
+ }
3331
+ )
3332
+ );
3333
+ InputGroupText.displayName = "InputGroupText";
3334
+ var InputGroupInput = react.forwardRef(
3335
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3336
+ "input",
3337
+ {
3338
+ ...props,
3339
+ ref,
3340
+ "data-slot": "input-group-control",
3341
+ className: cn.cn(
3342
+ "min-w-0 flex-1 bg-transparent px-3 py-2 text-sm outline-none placeholder:text-fg-muted disabled:cursor-not-allowed",
3343
+ className
3344
+ )
3345
+ }
3346
+ )
3347
+ );
3348
+ InputGroupInput.displayName = "InputGroupInput";
3349
+ var InputGroupTextarea = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3350
+ "textarea",
3351
+ {
3352
+ ...props,
3353
+ ref,
3354
+ "data-slot": "input-group-control",
3355
+ className: cn.cn(
3356
+ "min-w-0 w-full flex-1 bg-transparent p-3 text-sm outline-none placeholder:text-fg-muted disabled:cursor-not-allowed",
3357
+ className
3358
+ )
3359
+ }
3360
+ ));
3361
+ InputGroupTextarea.displayName = "InputGroupTextarea";
3362
+ var Autocomplete = react.forwardRef(
3363
+ ({
3364
+ items,
3365
+ label,
3366
+ placeholder,
3367
+ isDisabled,
3368
+ disabled,
3369
+ onChange,
3370
+ onValueChange,
3371
+ className,
3372
+ inputProps,
3373
+ positionerProps,
3374
+ renderItem,
3375
+ emptyMessage = "No suggestions found.",
3376
+ ...props
3377
+ }, ref) => {
3378
+ const generatedId = react.useId();
3379
+ const inputId = inputProps?.id ?? generatedId;
3380
+ return /* @__PURE__ */ jsxRuntime.jsx(
3381
+ autocomplete.Autocomplete.Root,
3382
+ {
3383
+ ...props,
3384
+ items,
3385
+ disabled: isDisabled ?? disabled,
3386
+ onValueChange: (value, details) => {
3387
+ onValueChange?.(value, details);
3388
+ if (!details.isCanceled) onChange?.(value);
3389
+ },
3390
+ children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn.cn("relative flex flex-col gap-1", className), children: [
3391
+ label && /* @__PURE__ */ jsxRuntime.jsx("label", { htmlFor: inputId, className: "text-sm font-semibold", children: label }),
3392
+ /* @__PURE__ */ jsxRuntime.jsx(InputGroup, { children: /* @__PURE__ */ jsxRuntime.jsx(
3393
+ autocomplete.Autocomplete.Input,
3394
+ {
3395
+ placeholder,
3396
+ ...inputProps,
3397
+ id: inputId,
3398
+ ref,
3399
+ render: /* @__PURE__ */ jsxRuntime.jsx(InputGroupInput, { className: "text-sm" })
3400
+ }
3401
+ ) }),
3402
+ /* @__PURE__ */ jsxRuntime.jsx(autocomplete.Autocomplete.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
3403
+ autocomplete.Autocomplete.Positioner,
3404
+ {
3405
+ align: "start",
3406
+ sideOffset: 4,
3407
+ ...positionerProps,
3408
+ className: (state) => cn.cn(
3409
+ "zen-layer-floating",
3410
+ typeof positionerProps?.className === "function" ? positionerProps.className(state) : positionerProps?.className
3411
+ ),
3412
+ children: /* @__PURE__ */ jsxRuntime.jsxs(autocomplete.Autocomplete.Popup, { className: "zen-popover w-[var(--anchor-width)] max-w-[var(--available-width)] max-h-[min(23rem,var(--available-height))] overflow-auto rounded-md border border-edge bg-surface-overlay p-2 text-fg shadow-lg outline-none", children: [
3413
+ /* @__PURE__ */ jsxRuntime.jsx(autocomplete.Autocomplete.List, { children: (item) => /* @__PURE__ */ jsxRuntime.jsx(
3414
+ autocomplete.Autocomplete.Item,
3415
+ {
3416
+ value: item,
3417
+ className: "cursor-default rounded px-3 py-2 text-sm outline-none data-[highlighted]:bg-interactive",
3418
+ children: renderItem ? renderItem(item) : item
3419
+ },
3420
+ item
3421
+ ) }),
3422
+ /* @__PURE__ */ jsxRuntime.jsx(autocomplete.Autocomplete.Empty, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3 py-4 text-center text-sm text-fg-muted", children: emptyMessage }) })
3423
+ ] })
3424
+ }
3425
+ ) })
3426
+ ] })
3427
+ }
3428
+ );
3429
+ }
3430
+ );
3431
+ Autocomplete.displayName = "Autocomplete";
3243
3432
  function getInitials(name) {
3244
3433
  if (!name) {
3245
3434
  return null;
@@ -3248,17 +3437,17 @@ function getInitials(name) {
3248
3437
  }
3249
3438
  function Avatar({ src, alt, fallback, size, className, children, ...props }) {
3250
3439
  const styles = avatar({ size });
3251
- return /* @__PURE__ */ jsxRuntime.jsxs(avatar$1.Avatar.Root, { ...props, className: cn(styles.root(), className), children: [
3440
+ return /* @__PURE__ */ jsxRuntime.jsxs(avatar$1.Avatar.Root, { ...props, className: cn.cn(styles.root(), className), children: [
3252
3441
  src && /* @__PURE__ */ jsxRuntime.jsx(avatar$1.Avatar.Image, { src, alt, className: styles.image() }),
3253
3442
  /* @__PURE__ */ jsxRuntime.jsx(avatar$1.Avatar.Fallback, { className: styles.fallback(), children: fallback ?? getInitials(alt) }),
3254
3443
  children
3255
3444
  ] });
3256
3445
  }
3257
3446
  function Badge({ variant, size, className, children, ...props }) {
3258
- return /* @__PURE__ */ jsxRuntime.jsx("span", { ...props, className: cn(badge({ variant, size }), className), children });
3447
+ return /* @__PURE__ */ jsxRuntime.jsx("span", { ...props, className: cn.cn(badge({ variant, size }), className), children });
3259
3448
  }
3260
3449
  function Blockquote({ className, children, ...props }) {
3261
- return /* @__PURE__ */ jsxRuntime.jsx(Text, { ...props, as: "blockquote", className: cn("border-l-2 border-primary pl-5", className), children });
3450
+ return /* @__PURE__ */ jsxRuntime.jsx(Text, { ...props, as: "blockquote", className: cn.cn("border-l-2 border-primary pl-5", className), children });
3262
3451
  }
3263
3452
  function Breadcrumbs({ children, className, isDisabled, ...props }) {
3264
3453
  return /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "Breadcrumb", children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -3266,7 +3455,7 @@ function Breadcrumbs({ children, className, isDisabled, ...props }) {
3266
3455
  {
3267
3456
  ...props,
3268
3457
  "aria-disabled": isDisabled || void 0,
3269
- className: cn("flex items-center gap-3", className),
3458
+ className: cn.cn("flex items-center gap-3", className),
3270
3459
  children
3271
3460
  }
3272
3461
  ) });
@@ -3277,16 +3466,16 @@ function Breadcrumb({ children, className, isDisabled, ...props }) {
3277
3466
  {
3278
3467
  ...props,
3279
3468
  "aria-disabled": isDisabled || void 0,
3280
- className: cn(
3281
- "flex items-center text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] gap-3 list-none",
3282
- "[&_a]:text-foreground-muted [&_a]:no-underline [&_a]:font-normal",
3283
- "[&_a:hover]:text-foreground-primary",
3469
+ className: cn.cn(
3470
+ "flex items-center text-sm gap-3 list-none",
3471
+ "[&_a]:text-fg-muted [&_a]:no-underline [&_a]:font-normal",
3472
+ "[&_a:hover]:text-fg",
3284
3473
  "last:[&>span]:hidden",
3285
3474
  className
3286
3475
  ),
3287
3476
  children: [
3288
3477
  children,
3289
- /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "text-foreground-muted", size: "xs", children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.ChevronRight, {}) })
3478
+ /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "text-fg-muted", size: "xs", children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.ChevronRight, {}) })
3290
3479
  ]
3291
3480
  }
3292
3481
  );
@@ -3297,7 +3486,7 @@ function Separator({ orientation = "horizontal", className, ...props }) {
3297
3486
  {
3298
3487
  ...props,
3299
3488
  orientation,
3300
- className: cn(
3489
+ className: cn.cn(
3301
3490
  "shrink-0 bg-edge-muted",
3302
3491
  orientation === "horizontal" ? "h-px w-full" : "w-px self-stretch",
3303
3492
  className
@@ -3313,7 +3502,7 @@ function ButtonGroup({ className, orientation = "horizontal", ...props }) {
3313
3502
  role: props.role ?? "group",
3314
3503
  "data-slot": "button-group",
3315
3504
  "data-orientation": orientation,
3316
- className: cn(
3505
+ className: cn.cn(
3317
3506
  "flex w-fit items-stretch",
3318
3507
  "has-[>[data-slot=button-group]]:gap-2",
3319
3508
  "[&>[data-slot]]:focus-visible:relative [&>[data-slot]]:focus-visible:z-10",
@@ -3334,8 +3523,8 @@ function ButtonGroup({ className, orientation = "horizontal", ...props }) {
3334
3523
  );
3335
3524
  }
3336
3525
  function ButtonGroupText({ className, render, children, ...props }) {
3337
- const classes = cn(
3338
- "flex items-center gap-2 rounded border border-edge bg-surface-raised px-4 text-[length:var(--zen-font-size-sm)]/[var(--zen-line-height-sm)] font-medium shadow-sm",
3526
+ const classes = cn.cn(
3527
+ "flex items-center gap-2 rounded border border-edge bg-surface-raised px-4 text-sm font-medium shadow-sm",
3339
3528
  "[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none",
3340
3529
  className
3341
3530
  );
@@ -3362,7 +3551,7 @@ function ButtonGroupSeparator({
3362
3551
  ...props,
3363
3552
  "data-slot": "button-group-separator",
3364
3553
  orientation,
3365
- className: cn(
3554
+ className: cn.cn(
3366
3555
  "relative self-stretch",
3367
3556
  "data-[orientation=horizontal]:mx-px data-[orientation=horizontal]:w-auto",
3368
3557
  "data-[orientation=vertical]:my-px data-[orientation=vertical]:h-auto",
@@ -3399,8 +3588,8 @@ function Calendar({
3399
3588
  onChange?.(date);
3400
3589
  }
3401
3590
  },
3402
- className: cn(
3403
- "w-fit max-w-full text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)]",
3591
+ className: cn.cn(
3592
+ "w-fit max-w-full text-sm",
3404
3593
  // The month grid is a real <table>; host prose styles (docs sites,
3405
3594
  // CMS themes) often style table/th/td with borders, padding, and
3406
3595
  // width. Reset them at matching specificity so zen styles hold.
@@ -3424,16 +3613,16 @@ function Calendar({
3424
3613
  week: "flex mt-1",
3425
3614
  day: "size-12 text-center",
3426
3615
  day_button: "size-12 rounded cursor-pointer outline-none hover:bg-interactive focus-visible:outline-2 focus-visible:outline-focus-ring focus-visible:outline-offset-2",
3427
- selected: "[&>button]:text-primary-foreground [&>button]:bg-primary [&>button:hover]:bg-primary",
3616
+ selected: "[&>button]:text-primary-fg [&>button]:bg-primary [&>button:hover]:bg-primary",
3428
3617
  outside: "invisible",
3429
- disabled: "text-foreground-disabled pointer-events-none opacity-50",
3618
+ disabled: "text-fg-disabled pointer-events-none opacity-50",
3430
3619
  today: "[&>button]:font-bold"
3431
3620
  },
3432
3621
  components: {
3433
3622
  Chevron: ({ orientation }) => /* @__PURE__ */ jsxRuntime.jsx(
3434
3623
  icons_exports.ChevronRight,
3435
3624
  {
3436
- className: cn(
3625
+ className: cn.cn(
3437
3626
  "size-4",
3438
3627
  orientation === "left" && "rotate-180",
3439
3628
  orientation === "up" && "-rotate-90",
@@ -3494,9 +3683,9 @@ function Carousel({
3494
3683
  ...props,
3495
3684
  role: "region",
3496
3685
  "aria-roledescription": "carousel",
3497
- className: cn("relative", className),
3686
+ className: cn.cn("relative", className),
3498
3687
  children: [
3499
- /* @__PURE__ */ jsxRuntime.jsx("div", { ref: emblaRef, className: "overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex", isVertical && "flex-col max-h-full"), children }) }),
3688
+ /* @__PURE__ */ jsxRuntime.jsx("div", { ref: emblaRef, className: "overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn.cn("flex", isVertical && "flex-col max-h-full"), children }) }),
3500
3689
  showArrows && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3501
3690
  /* @__PURE__ */ jsxRuntime.jsx(
3502
3691
  Button,
@@ -3504,7 +3693,7 @@ function Carousel({
3504
3693
  variant: "outline",
3505
3694
  "aria-label": "Previous slide",
3506
3695
  isDisabled: !canScrollPrev,
3507
- className: cn(
3696
+ className: cn.cn(
3508
3697
  "absolute rounded-full size-9 p-0",
3509
3698
  isVertical ? "left-1/2 -translate-x-1/2 top-2 rotate-90" : "top-1/2 -translate-y-1/2 left-2"
3510
3699
  ),
@@ -3518,7 +3707,7 @@ function Carousel({
3518
3707
  variant: "outline",
3519
3708
  "aria-label": "Next slide",
3520
3709
  isDisabled: !canScrollNext,
3521
- className: cn(
3710
+ className: cn.cn(
3522
3711
  "absolute rounded-full size-9 p-0",
3523
3712
  isVertical ? "left-1/2 -translate-x-1/2 bottom-2 rotate-90" : "top-1/2 -translate-y-1/2 right-2"
3524
3713
  ),
@@ -3532,7 +3721,7 @@ function Carousel({
3532
3721
  {
3533
3722
  type: "button",
3534
3723
  "aria-label": `Go to slide ${index + 1}`,
3535
- className: cn(
3724
+ className: cn.cn(
3536
3725
  "size-2 rounded-full cursor-pointer transition-colors",
3537
3726
  index === selectedIndex ? "bg-primary" : "bg-interactive hover:bg-interactive-hover"
3538
3727
  ),
@@ -3551,7 +3740,7 @@ function CarouselItem({ className, children, ...props }) {
3551
3740
  ...props,
3552
3741
  role: "group",
3553
3742
  "aria-roledescription": "slide",
3554
- className: cn("min-w-0 shrink-0 grow-0 basis-full", className),
3743
+ className: cn.cn("min-w-0 shrink-0 grow-0 basis-full", className),
3555
3744
  children
3556
3745
  }
3557
3746
  );
@@ -3590,7 +3779,7 @@ function Checkbox({
3590
3779
  defaultChecked: defaultSelected,
3591
3780
  disabled: isDisabled || isTableSelection && (tableSelection.selectionMode === "none" || isHeaderSelection && tableSelection.selectionMode !== "multiple"),
3592
3781
  indeterminate: isTableSelection ? tableIndeterminate : isIndeterminate,
3593
- className: cn(styles.root(), className),
3782
+ className: cn.cn(styles.root(), className),
3594
3783
  slot: isTableSelection ? void 0 : slot,
3595
3784
  onCheckedChange: (selected) => {
3596
3785
  onChange?.(selected);
@@ -3611,7 +3800,7 @@ function Checkbox({
3611
3800
  );
3612
3801
  }
3613
3802
  function Label({
3614
- size = "base",
3803
+ size = "sm",
3615
3804
  weight = "semibold",
3616
3805
  lineHeight = "loose",
3617
3806
  ...props
@@ -3637,7 +3826,7 @@ function CheckboxGroup({
3637
3826
  ...props
3638
3827
  }) {
3639
3828
  const labelId = react.useId();
3640
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex flex-col gap-2", className), children: [
3829
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn.cn("flex flex-col gap-2", className), children: [
3641
3830
  label && /* @__PURE__ */ jsxRuntime.jsx(Label, { id: labelId, children: label }),
3642
3831
  /* @__PURE__ */ jsxRuntime.jsx(
3643
3832
  checkboxGroup.CheckboxGroup,
@@ -3646,21 +3835,21 @@ function CheckboxGroup({
3646
3835
  "aria-labelledby": label ? labelId : props["aria-labelledby"],
3647
3836
  disabled: isDisabled,
3648
3837
  onValueChange: (value) => onChange?.(value),
3649
- className: cn("flex gap-3", orientation === "vertical" ? "flex-col" : "flex-row flex-wrap"),
3838
+ className: cn.cn("flex gap-3", orientation === "vertical" ? "flex-col" : "flex-row flex-wrap"),
3650
3839
  children
3651
3840
  }
3652
3841
  )
3653
3842
  ] });
3654
3843
  }
3655
- function Code({ className, children, ...props }) {
3844
+ function Code({ className, children, size = "sm", ...props }) {
3656
3845
  return /* @__PURE__ */ jsxRuntime.jsx(
3657
3846
  Text,
3658
3847
  {
3659
3848
  ...props,
3660
3849
  as: "code",
3661
- size: "base",
3850
+ size,
3662
3851
  weight: "medium",
3663
- className: cn("font-mono bg-surface-sunken rounded p-1", className),
3852
+ className: cn.cn("font-mono bg-surface-sunken rounded p-1", className),
3664
3853
  children
3665
3854
  }
3666
3855
  );
@@ -3682,7 +3871,7 @@ function Collapsible({
3682
3871
  defaultOpen: defaultExpanded,
3683
3872
  disabled: isDisabled,
3684
3873
  onOpenChange: onExpandedChange,
3685
- className: cn("flex flex-col w-full", className),
3874
+ className: cn.cn("flex flex-col w-full", className),
3686
3875
  children
3687
3876
  }
3688
3877
  );
@@ -3692,10 +3881,10 @@ function CollapsibleTrigger({ className, children, ...props }) {
3692
3881
  collapsible.Collapsible.Trigger,
3693
3882
  {
3694
3883
  ...props,
3695
- className: cn(
3696
- "flex items-center gap-2 cursor-pointer outline-none text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)]",
3884
+ className: cn.cn(
3885
+ "flex items-center gap-2 cursor-pointer outline-none text-sm",
3697
3886
  "focus-visible:ring-2 focus-visible:ring-focus-ring rounded",
3698
- "disabled:text-foreground-disabled disabled:cursor-default",
3887
+ "disabled:text-fg-disabled disabled:cursor-default",
3699
3888
  className
3700
3889
  ),
3701
3890
  children
@@ -3707,7 +3896,7 @@ function CollapsiblePanel({ className, children, ...props }) {
3707
3896
  collapsible.Collapsible.Panel,
3708
3897
  {
3709
3898
  ...props,
3710
- className: cn(
3899
+ className: cn.cn(
3711
3900
  "overflow-hidden transition-all duration-300 ease-out",
3712
3901
  "h-[var(--collapsible-panel-height)] data-[starting-style]:h-0 data-[ending-style]:h-0",
3713
3902
  className
@@ -3833,9 +4022,9 @@ function List({
3833
4022
  onSelectionChange?.(next);
3834
4023
  onChange?.(Array.from(next, String));
3835
4024
  };
3836
- const classes = cn(
4025
+ const classes = cn.cn(
3837
4026
  "grid outline-none overflow-auto gap-1",
3838
- isFullscreen && "zen-layer-floating block p-3 rounded-none fixed inset-0 overflow-auto bg-surface-base",
4027
+ isFullscreen && "zen-layer-floating block p-3 rounded-none fixed inset-0 overflow-auto bg-surface",
3839
4028
  className
3840
4029
  );
3841
4030
  if (parent.kind === "select") {
@@ -3864,7 +4053,7 @@ function List({
3864
4053
  }
3865
4054
  return listbox;
3866
4055
  }
3867
- var itemClasses = "text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] flex items-center justify-between px-2 py-1.5 gap-3 min-w-[120px] cursor-pointer outline-none rounded hover:bg-interactive data-[highlighted]:bg-interactive data-[disabled]:text-foreground-disabled data-[selected]:font-semibold";
4056
+ var itemClasses = "text-sm flex items-center justify-between px-2 py-1.5 gap-3 min-w-[120px] cursor-pointer outline-none rounded hover:bg-interactive data-[highlighted]:bg-interactive data-[disabled]:text-fg-disabled data-[selected]:font-semibold";
3868
4057
  function ListItem({
3869
4058
  id,
3870
4059
  value,
@@ -3884,7 +4073,7 @@ function ListItem({
3884
4073
  ...props,
3885
4074
  value: itemValue,
3886
4075
  disabled: isDisabled,
3887
- className: cn(itemClasses, className),
4076
+ className: cn.cn(itemClasses, className),
3888
4077
  children: [
3889
4078
  /* @__PURE__ */ jsxRuntime.jsx(select.Select.ItemText, { children }),
3890
4079
  showCheckmark && /* @__PURE__ */ jsxRuntime.jsx(select.Select.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Check, {}) }) })
@@ -3899,7 +4088,7 @@ function ListItem({
3899
4088
  ...props,
3900
4089
  value: String(itemValue),
3901
4090
  disabled: isDisabled,
3902
- className: cn(itemClasses, className),
4091
+ className: cn.cn(itemClasses, className),
3903
4092
  children: [
3904
4093
  children,
3905
4094
  showCheckmark && /* @__PURE__ */ jsxRuntime.jsx(combobox.Combobox.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Check, {}) }) })
@@ -3918,7 +4107,7 @@ function ListItem({
3918
4107
  "aria-disabled": isDisabled || void 0,
3919
4108
  "aria-selected": isSelected,
3920
4109
  "data-selected": isSelected || void 0,
3921
- className: cn(itemClasses, className),
4110
+ className: cn.cn(itemClasses, className),
3922
4111
  onClick: (event) => {
3923
4112
  onClick?.(event);
3924
4113
  if (!event.defaultPrevented && !isDisabled) {
@@ -3940,153 +4129,27 @@ function ListItem({
3940
4129
  );
3941
4130
  }
3942
4131
  function ListSeparator({ className, ...props }) {
3943
- return /* @__PURE__ */ jsxRuntime.jsx(select.Select.Separator, { ...props, className: cn("block h-px bg-edge-muted", className) });
4132
+ return /* @__PURE__ */ jsxRuntime.jsx(select.Select.Separator, { ...props, className: cn.cn("block h-px bg-edge-muted", className) });
3944
4133
  }
3945
4134
  function ListSection({ title, className, children, ...props }) {
3946
4135
  const { kind } = react.useContext(ListContext);
3947
4136
  if (kind === "select") {
3948
- return /* @__PURE__ */ jsxRuntime.jsxs(select.Select.Group, { ...props, className: cn("[&:not(:last-child)]:mb-4", className), children: [
3949
- title && /* @__PURE__ */ jsxRuntime.jsx(select.Select.GroupLabel, { className: "text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] font-bold px-2 py-1.5", children: title }),
4137
+ return /* @__PURE__ */ jsxRuntime.jsxs(select.Select.Group, { ...props, className: cn.cn("[&:not(:last-child)]:mb-4", className), children: [
4138
+ title && /* @__PURE__ */ jsxRuntime.jsx(select.Select.GroupLabel, { className: "text-sm font-bold px-2 py-1.5", children: title }),
3950
4139
  children
3951
4140
  ] });
3952
4141
  }
3953
4142
  if (kind === "combobox") {
3954
- return /* @__PURE__ */ jsxRuntime.jsxs(combobox.Combobox.Group, { ...props, className: cn("[&:not(:last-child)]:mb-4", className), children: [
3955
- title && /* @__PURE__ */ jsxRuntime.jsx(combobox.Combobox.GroupLabel, { className: "text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] font-bold px-2 py-1.5", children: title }),
4143
+ return /* @__PURE__ */ jsxRuntime.jsxs(combobox.Combobox.Group, { ...props, className: cn.cn("[&:not(:last-child)]:mb-4", className), children: [
4144
+ title && /* @__PURE__ */ jsxRuntime.jsx(combobox.Combobox.GroupLabel, { className: "text-sm font-bold px-2 py-1.5", children: title }),
3956
4145
  children
3957
4146
  ] });
3958
4147
  }
3959
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { ...props, role: "group", className: cn("[&:not(:last-child)]:mb-4", className), children: [
3960
- title && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] font-bold px-2 py-1.5", children: title }),
4148
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { ...props, role: "group", className: cn.cn("[&:not(:last-child)]:mb-4", className), children: [
4149
+ title && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-bold px-2 py-1.5", children: title }),
3961
4150
  children
3962
4151
  ] });
3963
4152
  }
3964
- var InputGroup = react.forwardRef(
3965
- ({ className, variant, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3966
- "div",
3967
- {
3968
- ...props,
3969
- ref,
3970
- "data-slot": "input-group",
3971
- role: props.role ?? "group",
3972
- className: inputField({
3973
- variant,
3974
- className: cn(
3975
- "group/input-group w-full min-w-0 gap-0 p-0",
3976
- "has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col",
3977
- "has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col",
3978
- "has-[>textarea]:h-auto",
3979
- className
3980
- )
3981
- })
3982
- }
3983
- )
3984
- );
3985
- InputGroup.displayName = "InputGroup";
3986
- var addonClasses = {
3987
- "inline-start": "order-first ps-3",
3988
- "inline-end": "order-last pe-3",
3989
- "block-start": "order-first w-full justify-start px-3 pt-3",
3990
- "block-end": "order-last w-full justify-start px-3 pb-3"
3991
- };
3992
- var InputGroupAddon = react.forwardRef(
3993
- ({ align = "inline-start", className, onClick, ...props }, ref) => {
3994
- const handleClick = (event) => {
3995
- onClick?.(event);
3996
- if (event.defaultPrevented || event.target.closest("button")) {
3997
- return;
3998
- }
3999
- event.currentTarget.parentElement?.querySelector('[data-slot="input-group-control"]')?.focus();
4000
- };
4001
- return /* @__PURE__ */ jsxRuntime.jsx(
4002
- "div",
4003
- {
4004
- ...props,
4005
- ref,
4006
- role: props.role ?? "group",
4007
- "data-slot": "input-group-addon",
4008
- "data-align": align,
4009
- className: cn(
4010
- "flex h-auto shrink-0 cursor-text items-center justify-center gap-2 py-2 text-[length:var(--zen-font-size-sm)]/[var(--zen-line-height-sm)] text-foreground-muted",
4011
- "[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
4012
- addonClasses[align],
4013
- className
4014
- ),
4015
- onClick: handleClick
4016
- }
4017
- );
4018
- }
4019
- );
4020
- InputGroupAddon.displayName = "InputGroupAddon";
4021
- var buttonSizeClasses = {
4022
- xs: "h-6 gap-1 rounded px-1.5 py-0 text-[length:var(--zen-font-size-sm)]/[var(--zen-line-height-sm)]",
4023
- sm: "h-8 gap-2 rounded px-2 py-0 text-[length:var(--zen-font-size-sm)]/[var(--zen-line-height-sm)]",
4024
- "icon-xs": "size-6 rounded p-0",
4025
- "icon-sm": "size-8 rounded p-0"
4026
- };
4027
- var InputGroupButton = react.forwardRef(
4028
- ({ className, size = "xs", type = "button", variant = "quiet", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
4029
- Button,
4030
- {
4031
- ...props,
4032
- ref,
4033
- type,
4034
- variant,
4035
- size: "xs",
4036
- "data-size": size,
4037
- className: cn(
4038
- "shrink-0 shadow-none",
4039
- "[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
4040
- buttonSizeClasses[size],
4041
- className
4042
- )
4043
- }
4044
- )
4045
- );
4046
- InputGroupButton.displayName = "InputGroupButton";
4047
- var InputGroupText = react.forwardRef(
4048
- ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
4049
- "span",
4050
- {
4051
- ...props,
4052
- ref,
4053
- "data-slot": "input-group-text",
4054
- className: cn(
4055
- "flex items-center gap-2 text-[length:var(--zen-font-size-sm)]/[var(--zen-line-height-sm)] text-foreground-muted [&_svg]:pointer-events-none [&_svg]:size-4",
4056
- className
4057
- )
4058
- }
4059
- )
4060
- );
4061
- InputGroupText.displayName = "InputGroupText";
4062
- var InputGroupInput = react.forwardRef(
4063
- ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
4064
- "input",
4065
- {
4066
- ...props,
4067
- ref,
4068
- "data-slot": "input-group-control",
4069
- className: cn(
4070
- "min-w-0 flex-1 bg-transparent px-3 py-2 text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] outline-none placeholder:text-foreground-muted disabled:cursor-not-allowed",
4071
- className
4072
- )
4073
- }
4074
- )
4075
- );
4076
- InputGroupInput.displayName = "InputGroupInput";
4077
- var InputGroupTextarea = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
4078
- "textarea",
4079
- {
4080
- ...props,
4081
- ref,
4082
- "data-slot": "input-group-control",
4083
- className: cn(
4084
- "min-w-0 w-full flex-1 bg-transparent p-3 text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] outline-none placeholder:text-foreground-muted disabled:cursor-not-allowed",
4085
- className
4086
- )
4087
- }
4088
- ));
4089
- InputGroupTextarea.displayName = "InputGroupTextarea";
4090
4153
  var scrollbarClasses = [
4091
4154
  "flex touch-none select-none justify-center rounded bg-transparent",
4092
4155
  "opacity-0 transition-opacity duration-200 delay-300",
@@ -4107,7 +4170,7 @@ function ScrollArea({
4107
4170
  scrollArea.ScrollArea.Root,
4108
4171
  {
4109
4172
  ...props,
4110
- className: cn("relative overflow-hidden", className),
4173
+ className: cn.cn("relative overflow-hidden", className),
4111
4174
  style,
4112
4175
  children: [
4113
4176
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -4122,7 +4185,7 @@ function ScrollArea({
4122
4185
  scrollArea.ScrollArea.Scrollbar,
4123
4186
  {
4124
4187
  orientation: "vertical",
4125
- className: cn(scrollbarClasses, "w-1.5 mr-0.5"),
4188
+ className: cn.cn(scrollbarClasses, "w-1.5 mr-0.5"),
4126
4189
  children: /* @__PURE__ */ jsxRuntime.jsx(scrollArea.ScrollArea.Thumb, { className: "w-full rounded bg-edge-strong" })
4127
4190
  }
4128
4191
  ),
@@ -4130,7 +4193,7 @@ function ScrollArea({
4130
4193
  scrollArea.ScrollArea.Scrollbar,
4131
4194
  {
4132
4195
  orientation: "horizontal",
4133
- className: cn(scrollbarClasses, "h-1.5 mb-0.5 flex-col"),
4196
+ className: cn.cn(scrollbarClasses, "h-1.5 mb-0.5 flex-col"),
4134
4197
  children: /* @__PURE__ */ jsxRuntime.jsx(scrollArea.ScrollArea.Thumb, { className: "h-full rounded bg-edge-strong" })
4135
4198
  }
4136
4199
  ),
@@ -4187,11 +4250,11 @@ function ComboBox({
4187
4250
  itemToStringLabel: itemToStringLabel ?? ((value) => itemLabels.get(value) ?? value),
4188
4251
  disabled: isDisabled,
4189
4252
  onValueChange: onChange,
4190
- children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("relative", className), children: [
4191
- label && /* @__PURE__ */ jsxRuntime.jsx(combobox.Combobox.Label, { className: "text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] font-semibold", children: label }),
4253
+ children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn.cn("relative", className), children: [
4254
+ label && /* @__PURE__ */ jsxRuntime.jsx(combobox.Combobox.Label, { className: "text-sm font-semibold", children: label }),
4192
4255
  /* @__PURE__ */ jsxRuntime.jsxs(combobox.Combobox.InputGroup, { render: /* @__PURE__ */ jsxRuntime.jsx(InputGroup, {}), children: [
4193
4256
  /* @__PURE__ */ jsxRuntime.jsx(combobox.Combobox.Input, { placeholder, render: /* @__PURE__ */ jsxRuntime.jsx(InputGroupInput, {}) }),
4194
- /* @__PURE__ */ jsxRuntime.jsx(InputGroupAddon, { align: "inline-end", children: /* @__PURE__ */ jsxRuntime.jsx(combobox.Combobox.Trigger, { className: "flex size-6 shrink-0 items-center justify-center rounded text-foreground-muted hover:bg-interactive hover:text-foreground-primary", children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { rotate: 90, "aria-hidden": "true", size: "sm", children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.ChevronRight, {}) }) }) })
4257
+ /* @__PURE__ */ jsxRuntime.jsx(InputGroupAddon, { align: "inline-end", children: /* @__PURE__ */ jsxRuntime.jsx(combobox.Combobox.Trigger, { className: "flex size-6 shrink-0 items-center justify-center rounded text-fg-muted hover:bg-interactive hover:text-fg", children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { rotate: 90, "aria-hidden": "true", size: "sm", children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.ChevronRight, {}) }) }) })
4195
4258
  ] }),
4196
4259
  /* @__PURE__ */ jsxRuntime.jsx(combobox.Combobox.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
4197
4260
  combobox.Combobox.Positioner,
@@ -4199,16 +4262,16 @@ function ComboBox({
4199
4262
  align: "start",
4200
4263
  sideOffset: 4,
4201
4264
  ...popoverProps,
4202
- className: cn("zen-layer-floating", popoverProps?.className),
4265
+ className: cn.cn("zen-layer-floating", popoverProps?.className),
4203
4266
  children: /* @__PURE__ */ jsxRuntime.jsxs(combobox.Combobox.Popup, { className: "zen-popover w-[var(--anchor-width)] max-w-[var(--available-width)] p-2 border border-edge rounded-md shadow-lg bg-surface-overlay outline-none", children: [
4204
- /* @__PURE__ */ jsxRuntime.jsx(ListPrimitiveProvider, { kind: "combobox", children: /* @__PURE__ */ jsxRuntime.jsx(ScrollArea, { maxHeight: maxHeight ?? "min(23rem, var(--available-height))", children: /* @__PURE__ */ jsxRuntime.jsx(List, { ...listProps, className: cn("overflow-visible", listProps?.className), children: /* @__PURE__ */ jsxRuntime.jsx(combobox.Combobox.Collection, { children: (value) => {
4267
+ /* @__PURE__ */ jsxRuntime.jsx(ListPrimitiveProvider, { kind: "combobox", children: /* @__PURE__ */ jsxRuntime.jsx(ScrollArea, { maxHeight: maxHeight ?? "min(23rem, var(--available-height))", children: /* @__PURE__ */ jsxRuntime.jsx(List, { ...listProps, className: cn.cn("overflow-visible", listProps?.className), children: /* @__PURE__ */ jsxRuntime.jsx(combobox.Combobox.Collection, { children: (value) => {
4205
4268
  const item = normalizedItems.find((option) => option.value === value);
4206
4269
  if (!item) {
4207
4270
  return null;
4208
4271
  }
4209
4272
  return item.element ?? /* @__PURE__ */ jsxRuntime.jsx(ListItem, { value: item.value, children: item.label }, item.value);
4210
4273
  } }) }) }) }),
4211
- /* @__PURE__ */ jsxRuntime.jsx(combobox.Combobox.Empty, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-h-16 items-center justify-center px-4 py-3 text-center", children: renderEmptyState ? renderEmptyState({}) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] text-foreground-muted", children: "No items found." }) }) })
4274
+ /* @__PURE__ */ jsxRuntime.jsx(combobox.Combobox.Empty, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-h-16 items-center justify-center px-4 py-3 text-center", children: renderEmptyState ? renderEmptyState({}) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-fg-muted", children: "No items found." }) }) })
4212
4275
  ] })
4213
4276
  }
4214
4277
  ) })
@@ -4230,7 +4293,7 @@ function Modal({
4230
4293
  ...props
4231
4294
  }) {
4232
4295
  const { kind } = useOverlayTrigger();
4233
- const popupClassName2 = cn("relative", placementClasses[placement], className);
4296
+ const popupClassName2 = cn.cn("relative", placementClasses[placement], className);
4234
4297
  if (kind === "alert-dialog") {
4235
4298
  return /* @__PURE__ */ jsxRuntime.jsxs(alertDialog.AlertDialog.Portal, { ...props, children: [
4236
4299
  /* @__PURE__ */ jsxRuntime.jsx(alertDialog.AlertDialog.Backdrop, { className: "zen-modal-overlay zen-layer-backdrop fixed inset-0 bg-black/80" }),
@@ -4248,8 +4311,8 @@ function Command({ className, children, ...props }) {
4248
4311
  cmdk.Command,
4249
4312
  {
4250
4313
  ...props,
4251
- className: cn(
4252
- "flex size-full flex-col overflow-hidden rounded-md bg-surface-base text-foreground-primary",
4314
+ className: cn.cn(
4315
+ "flex size-full flex-col overflow-hidden rounded-md bg-surface text-fg",
4253
4316
  className
4254
4317
  ),
4255
4318
  children
@@ -4258,15 +4321,15 @@ function Command({ className, children, ...props }) {
4258
4321
  }
4259
4322
  function CommandInput({ className, ...props }) {
4260
4323
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 border-b border-edge px-3", children: [
4261
- /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: "sm", className: "shrink-0 text-foreground-muted", children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Search, {}) }),
4324
+ /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: "sm", className: "shrink-0 text-fg-muted", children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Search, {}) }),
4262
4325
  /* @__PURE__ */ jsxRuntime.jsx(
4263
4326
  cmdk.Command.Input,
4264
4327
  {
4265
4328
  ...props,
4266
- className: cn(
4267
- "flex h-11 w-full bg-transparent text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] outline-none",
4268
- "placeholder:text-foreground-muted",
4269
- "disabled:cursor-not-allowed disabled:text-foreground-disabled",
4329
+ className: cn.cn(
4330
+ "flex h-11 w-full bg-transparent text-sm outline-none",
4331
+ "placeholder:text-fg-muted",
4332
+ "disabled:cursor-not-allowed disabled:text-fg-disabled",
4270
4333
  className
4271
4334
  )
4272
4335
  }
@@ -4274,17 +4337,14 @@ function CommandInput({ className, ...props }) {
4274
4337
  ] });
4275
4338
  }
4276
4339
  function CommandList({ maxHeight = 300, className, ...props }) {
4277
- return /* @__PURE__ */ jsxRuntime.jsx(ScrollArea, { maxHeight, children: /* @__PURE__ */ jsxRuntime.jsx(cmdk.Command.List, { ...props, className: cn("p-2", className) }) });
4340
+ return /* @__PURE__ */ jsxRuntime.jsx(ScrollArea, { maxHeight, children: /* @__PURE__ */ jsxRuntime.jsx(cmdk.Command.List, { ...props, className: cn.cn("p-2", className) }) });
4278
4341
  }
4279
4342
  function CommandEmpty({ className, ...props }) {
4280
4343
  return /* @__PURE__ */ jsxRuntime.jsx(
4281
4344
  cmdk.Command.Empty,
4282
4345
  {
4283
4346
  ...props,
4284
- className: cn(
4285
- "py-6 text-center text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] text-foreground-muted",
4286
- className
4287
- )
4347
+ className: cn.cn("py-6 text-center text-sm text-fg-muted", className)
4288
4348
  }
4289
4349
  );
4290
4350
  }
@@ -4293,10 +4353,10 @@ function CommandGroup({ className, ...props }) {
4293
4353
  cmdk.Command.Group,
4294
4354
  {
4295
4355
  ...props,
4296
- className: cn(
4356
+ className: cn.cn(
4297
4357
  "overflow-hidden [&:not(:last-child)]:mb-2",
4298
4358
  "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5",
4299
- "[&_[cmdk-group-heading]]:text-[length:var(--zen-font-size-sm)]/[var(--zen-line-height-sm)] [&_[cmdk-group-heading]]:font-bold [&_[cmdk-group-heading]]:text-foreground-muted",
4359
+ "[&_[cmdk-group-heading]]:text-sm [&_[cmdk-group-heading]]:font-bold [&_[cmdk-group-heading]]:text-fg-muted",
4300
4360
  className
4301
4361
  )
4302
4362
  }
@@ -4308,10 +4368,10 @@ function CommandItem({ icon, isDisabled, className, children, ...props }) {
4308
4368
  {
4309
4369
  ...props,
4310
4370
  disabled: isDisabled,
4311
- className: cn(
4312
- "flex items-center gap-3 px-2 py-1.5 rounded cursor-pointer outline-none text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)]",
4371
+ className: cn.cn(
4372
+ "flex items-center gap-3 px-2 py-1.5 rounded cursor-pointer outline-none text-sm",
4313
4373
  "data-[selected=true]:bg-interactive",
4314
- "data-[disabled=true]:text-foreground-disabled data-[disabled=true]:cursor-default",
4374
+ "data-[disabled=true]:text-fg-disabled data-[disabled=true]:cursor-default",
4315
4375
  className
4316
4376
  ),
4317
4377
  children: [
@@ -4326,7 +4386,7 @@ function CommandSeparator({ className, ...props }) {
4326
4386
  cmdk.Command.Separator,
4327
4387
  {
4328
4388
  ...props,
4329
- className: cn("h-px bg-edge-muted my-2 -mx-2", className)
4389
+ className: cn.cn("h-px bg-edge-muted my-2 -mx-2", className)
4330
4390
  }
4331
4391
  );
4332
4392
  }
@@ -4347,7 +4407,7 @@ function CommandDialog({
4347
4407
  Command,
4348
4408
  {
4349
4409
  ...props,
4350
- className: cn(
4410
+ className: cn.cn(
4351
4411
  "w-[32rem] max-w-[calc(100dvw-2rem)] border border-edge shadow-xl",
4352
4412
  props.className
4353
4413
  ),
@@ -4377,7 +4437,7 @@ function CopyButton({ value, timeout = TIMEOUT, className, ...props }) {
4377
4437
  variant: "quiet",
4378
4438
  size: "xs",
4379
4439
  "aria-label": props["aria-label"] ?? "Copy",
4380
- className: cn("size-6 shrink-0 p-0", className),
4440
+ className: cn.cn("size-6 shrink-0 p-0", className),
4381
4441
  onClick: handleCopy,
4382
4442
  children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { className: "animate-icon-pop", children: copied ? /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Check, {}) : /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Copy, {}) })
4383
4443
  }
@@ -4420,14 +4480,14 @@ function TextField({
4420
4480
  setInputValue(defaultValue ?? "");
4421
4481
  }
4422
4482
  }, [value, defaultValue]);
4423
- const inputClasses = cn(resize && resizeClasses[resize]);
4483
+ const inputClasses = cn.cn(allowCopy && asTextArea && "pe-12", resize && resizeClasses[resize]);
4424
4484
  const input = /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs(
4425
4485
  InputGroup,
4426
4486
  {
4427
4487
  variant: variant === "quiet" ? "quiet" : "default",
4428
- className: cn(
4488
+ className: cn.cn(
4429
4489
  isReadOnly && "focus-within:border-edge",
4430
- isDisabled && "text-foreground-disabled",
4490
+ isDisabled && "text-fg-disabled",
4431
4491
  variant === "quiet" && "text-[length:inherit]",
4432
4492
  className
4433
4493
  ),
@@ -4458,17 +4518,14 @@ function TextField({
4458
4518
  allowCopy && /* @__PURE__ */ jsxRuntime.jsx(
4459
4519
  InputGroupAddon,
4460
4520
  {
4461
- align: asTextArea ? "block-start" : "inline-end",
4462
- className: cn(asTextArea && "justify-end pb-0"),
4521
+ align: "inline-end",
4522
+ className: cn.cn(asTextArea && "absolute end-0 top-1 z-10"),
4463
4523
  children: /* @__PURE__ */ jsxRuntime.jsx(
4464
4524
  CopyButton,
4465
4525
  {
4466
4526
  value: String(inputValue),
4467
4527
  "aria-disabled": !inputValue,
4468
- className: cn(
4469
- "text-foreground-muted hover:text-foreground-primary",
4470
- !inputValue && "text-foreground-disabled"
4471
- )
4528
+ className: cn.cn("text-fg-muted hover:text-fg", !inputValue && "text-fg-disabled")
4472
4529
  }
4473
4530
  )
4474
4531
  }
@@ -4495,7 +4552,7 @@ function ConfirmationDialog({
4495
4552
  const handleChange = (e) => {
4496
4553
  setCanSave(e.target.value === value);
4497
4554
  };
4498
- return /* @__PURE__ */ jsxRuntime.jsx(AlertDialog, { ...props, className: cn(className), isConfirmDisabled: !canSave, children: ({ close }) => {
4555
+ return /* @__PURE__ */ jsxRuntime.jsx(AlertDialog, { ...props, className: cn.cn(className), isConfirmDisabled: !canSave, children: ({ close }) => {
4499
4556
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
4500
4557
  typeof children === "function" ? children({ close }) : children,
4501
4558
  /* @__PURE__ */ jsxRuntime.jsxs(Text, { children: [
@@ -4509,7 +4566,7 @@ function ConfirmationDialog({
4509
4566
  paddingY: "2",
4510
4567
  marginY: "2",
4511
4568
  borderRadius: "md",
4512
- className: "font-mono text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] bg-surface-sunken",
4569
+ className: "font-mono text-sm bg-surface-sunken",
4513
4570
  children: value
4514
4571
  }
4515
4572
  ),
@@ -4528,7 +4585,7 @@ function Container({
4528
4585
  Box,
4529
4586
  {
4530
4587
  ...props,
4531
- className: cn(
4588
+ className: cn.cn(
4532
4589
  "w-full px-4",
4533
4590
  "sm:max-w-[500px] md:max-w-[740px] lg:max-w-[1000px] xl:max-w-[1240px] 2xl:max-w-[1600px]",
4534
4591
  isCentered && "mx-auto",
@@ -4630,7 +4687,7 @@ function Grid({
4630
4687
  const hasResponsiveCustomColumns = hasCustomResponsiveValues(columns);
4631
4688
  const hasResponsiveCustomRows = hasCustomResponsiveValues(rows);
4632
4689
  const needsStyleTag = hasResponsiveCustomColumns || hasResponsiveCustomRows;
4633
- const classes = cn(
4690
+ const classes = cn.cn(
4634
4691
  mapDisplay(display),
4635
4692
  mapJustifyContent(justifyContent),
4636
4693
  mapJustifyItems(justifyItems),
@@ -4778,17 +4835,7 @@ function Table({
4778
4835
  }),
4779
4836
  [registerRow, rowKeys, selectedKeys, selectionMode, setAllSelected, setRowSelected]
4780
4837
  );
4781
- return /* @__PURE__ */ jsxRuntime.jsx(TableSelectionContext.Provider, { value: selection, children: /* @__PURE__ */ jsxRuntime.jsx(
4782
- "table",
4783
- {
4784
- ...props,
4785
- className: cn(
4786
- "grid text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] w-full relative",
4787
- className
4788
- ),
4789
- children
4790
- }
4791
- ) });
4838
+ return /* @__PURE__ */ jsxRuntime.jsx(TableSelectionContext.Provider, { value: selection, children: /* @__PURE__ */ jsxRuntime.jsx("table", { ...props, className: cn.cn("grid text-sm w-full relative", className), children }) });
4792
4839
  }
4793
4840
  function TableHeader({ children, className, style, ...props }) {
4794
4841
  const cols = style?.gridTemplateColumns || gridTemplateColumns;
@@ -4796,7 +4843,7 @@ function TableHeader({ children, className, style, ...props }) {
4796
4843
  "thead",
4797
4844
  {
4798
4845
  ...props,
4799
- className: cn(
4846
+ className: cn.cn(
4800
4847
  "[&>tr]:grid [&>tr]:border-b [&>tr]:border-edge [&>tr]:[grid-template-columns:var(--grid-cols)]",
4801
4848
  className
4802
4849
  ),
@@ -4810,7 +4857,7 @@ function TableBody({
4810
4857
  className,
4811
4858
  ...props
4812
4859
  }) {
4813
- return /* @__PURE__ */ jsxRuntime.jsx("tbody", { ...props, className: cn("contents", className), children });
4860
+ return /* @__PURE__ */ jsxRuntime.jsx("tbody", { ...props, className: cn.cn("contents", className), children });
4814
4861
  }
4815
4862
  function TableRow({ children, className, style, id, ...props }) {
4816
4863
  const generatedId = react.useId();
@@ -4837,7 +4884,7 @@ function TableRow({ children, className, style, id, ...props }) {
4837
4884
  "data-selected": isSelected || void 0,
4838
4885
  "aria-selected": isSelectable ? isSelected : props["aria-selected"],
4839
4886
  tabIndex: isSelectable ? props.tabIndex ?? 0 : props.tabIndex,
4840
- className: cn(
4887
+ className: cn.cn(
4841
4888
  "grid border-b border-edge-muted min-h-10",
4842
4889
  isSelectable && "cursor-pointer data-[selected]:bg-interactive",
4843
4890
  className
@@ -4872,7 +4919,7 @@ function TableColumn({
4872
4919
  {
4873
4920
  ...props,
4874
4921
  scope: "col",
4875
- className: cn(
4922
+ className: cn.cn(
4876
4923
  "flex p-2 text-left font-bold flex-1 first:pl-0 last:pr-0",
4877
4924
  align && alignClasses[align],
4878
4925
  className
@@ -4886,7 +4933,7 @@ function TableCell({ children, className, align, ...props }) {
4886
4933
  "td",
4887
4934
  {
4888
4935
  ...props,
4889
- className: cn(
4936
+ className: cn.cn(
4890
4937
  "flex p-2 flex-1 first:pl-0 last:pr-0",
4891
4938
  "[&_a]:font-medium [&_a]:underline [&_a]:decoration-edge [&_a]:underline-offset-4",
4892
4939
  "[&_a:hover]:decoration-primary",
@@ -4923,55 +4970,45 @@ function DataTable({
4923
4970
  return /* @__PURE__ */ jsxRuntime.jsx(DataCard, { data: items }, `${row.id}-${index}`);
4924
4971
  }) });
4925
4972
  }
4926
- return /* @__PURE__ */ jsxRuntime.jsxs(
4927
- Table,
4928
- {
4929
- ...props,
4930
- className: cn(
4931
- "relative text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)]",
4932
- className
4933
- ),
4934
- children: [
4935
- /* @__PURE__ */ jsxRuntime.jsx(TableHeader, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns?.map(({ id, label, as, hidden, width, ...columnProps }) => {
4936
- if (hidden) {
4937
- return null;
4973
+ return /* @__PURE__ */ jsxRuntime.jsxs(Table, { ...props, className: cn.cn("relative text-sm", className), children: [
4974
+ /* @__PURE__ */ jsxRuntime.jsx(TableHeader, { style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns?.map(({ id, label, as, hidden, width, ...columnProps }) => {
4975
+ if (hidden) {
4976
+ return null;
4977
+ }
4978
+ return /* @__PURE__ */ react.createElement(TableColumn, { ...columnProps, key: id, id }, label);
4979
+ }) }),
4980
+ /* @__PURE__ */ jsxRuntime.jsx(TableBody, { children: rows.map((row, index) => {
4981
+ return (
4982
+ // biome-ignore lint/suspicious/noArrayIndexKey: row data may not have unique ids
4983
+ /* @__PURE__ */ jsxRuntime.jsx(TableRow, { id: String(row.id), style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns?.map(
4984
+ ({
4985
+ id,
4986
+ label: _label,
4987
+ width: _width,
4988
+ as,
4989
+ hidden,
4990
+ className: className2,
4991
+ children: children2,
4992
+ ...cellProps
4993
+ }) => {
4994
+ if (hidden) {
4995
+ return null;
4996
+ }
4997
+ const value = typeof children2 === "function" ? children2(row, index) : children2 || row[id];
4998
+ return /* @__PURE__ */ react.createElement(
4999
+ TableCell,
5000
+ {
5001
+ ...cellProps,
5002
+ key: id,
5003
+ className: cn.cn("items-center", className2)
5004
+ },
5005
+ as ? react.createElement(as, {}, value) : value
5006
+ );
4938
5007
  }
4939
- return /* @__PURE__ */ react.createElement(TableColumn, { ...columnProps, key: id, id }, label);
4940
- }) }),
4941
- /* @__PURE__ */ jsxRuntime.jsx(TableBody, { children: rows.map((row, index) => {
4942
- return (
4943
- // biome-ignore lint/suspicious/noArrayIndexKey: row data may not have unique ids
4944
- /* @__PURE__ */ jsxRuntime.jsx(TableRow, { id: String(row.id), style: { gridTemplateColumns: gridTemplateColumns2 }, children: columns?.map(
4945
- ({
4946
- id,
4947
- label: _label,
4948
- width: _width,
4949
- as,
4950
- hidden,
4951
- className: className2,
4952
- children: children2,
4953
- ...cellProps
4954
- }) => {
4955
- if (hidden) {
4956
- return null;
4957
- }
4958
- const value = typeof children2 === "function" ? children2(row, index) : children2 || row[id];
4959
- return /* @__PURE__ */ react.createElement(
4960
- TableCell,
4961
- {
4962
- ...cellProps,
4963
- key: id,
4964
- className: cn("items-center", className2)
4965
- },
4966
- as ? react.createElement(as, {}, value) : value
4967
- );
4968
- }
4969
- ) }, index)
4970
- );
4971
- }) })
4972
- ]
4973
- }
4974
- );
5008
+ ) }, index)
5009
+ );
5010
+ }) })
5011
+ ] });
4975
5012
  }
4976
5013
  function DataColumn(_props) {
4977
5014
  return null;
@@ -4989,9 +5026,9 @@ function Popover({
4989
5026
  return /* @__PURE__ */ jsxRuntime.jsx(popover.Popover.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(popover.Popover.Positioner, { ...props, className: "zen-layer-floating", children: /* @__PURE__ */ jsxRuntime.jsx(
4990
5027
  popover.Popover.Popup,
4991
5028
  {
4992
- className: cn(
5029
+ className: cn.cn(
4993
5030
  "zen-popover outline-none",
4994
- isFullscreen && "zen-popover-fullscreen block border-0 rounded-none fixed inset-0 overflow-auto bg-surface-base",
5031
+ isFullscreen && "zen-popover-fullscreen block border-0 rounded-none fixed inset-0 overflow-auto bg-surface",
4995
5032
  className
4996
5033
  ),
4997
5034
  children
@@ -5027,7 +5064,7 @@ function DatePicker({
5027
5064
  onChange?.(nextDate);
5028
5065
  setIsOpen(false);
5029
5066
  };
5030
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex flex-col gap-1", className), children: [
5067
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn.cn("flex flex-col gap-1", className), children: [
5031
5068
  label && /* @__PURE__ */ jsxRuntime.jsx(Label, { htmlFor: fieldId, children: label }),
5032
5069
  /* @__PURE__ */ jsxRuntime.jsxs(DialogTrigger, { overlayType: "popover", isOpen, onOpenChange: setIsOpen, children: [
5033
5070
  /* @__PURE__ */ jsxRuntime.jsxs(
@@ -5037,10 +5074,10 @@ function DatePicker({
5037
5074
  isDisabled,
5038
5075
  ...buttonProps,
5039
5076
  id: fieldId,
5040
- className: cn("justify-start gap-3 font-normal", buttonProps?.className),
5077
+ className: cn.cn("justify-start gap-3 font-normal", buttonProps?.className),
5041
5078
  children: [
5042
5079
  /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: "sm", children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.CalendarDays, {}) }),
5043
- date ? new Intl.DateTimeFormat(locale, formatOptions).format(date) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-foreground-muted", children: placeholder })
5080
+ date ? new Intl.DateTimeFormat(locale, formatOptions).format(date) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-fg-muted", children: placeholder })
5044
5081
  ]
5045
5082
  }
5046
5083
  ),
@@ -5064,7 +5101,7 @@ var sizeMap2 = {
5064
5101
  lg: "w-3 h-3"
5065
5102
  };
5066
5103
  function Dot({ size }) {
5067
- return /* @__PURE__ */ jsxRuntime.jsx(Box, { className: cn("zen-dot", sizeMap2[size]) });
5104
+ return /* @__PURE__ */ jsxRuntime.jsx(Box, { className: cn.cn("zen-dot", sizeMap2[size]) });
5068
5105
  }
5069
5106
  var gapMap2 = {
5070
5107
  sm: "1",
@@ -5078,6 +5115,29 @@ function Dots({ size = "md", className, color: _color, ...props }) {
5078
5115
  /* @__PURE__ */ jsxRuntime.jsx(Dot, { size })
5079
5116
  ] });
5080
5117
  }
5118
+ var Drawer = drawer.Drawer.Root;
5119
+ var DrawerTrigger = drawer.Drawer.Trigger;
5120
+ var DrawerClose = drawer.Drawer.Close;
5121
+ var DrawerTitle = drawer.Drawer.Title;
5122
+ var DrawerDescription = drawer.Drawer.Description;
5123
+ var DrawerContent = react.forwardRef(
5124
+ ({ children, className, portalProps, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(drawer.Drawer.Portal, { ...portalProps, children: [
5125
+ /* @__PURE__ */ jsxRuntime.jsx(drawer.Drawer.Backdrop, { className: "zen-drawer-backdrop zen-layer-backdrop fixed inset-0 bg-black/80" }),
5126
+ /* @__PURE__ */ jsxRuntime.jsx(drawer.Drawer.Viewport, { className: "zen-layer-modal fixed inset-0 pointer-events-none", children: /* @__PURE__ */ jsxRuntime.jsx(
5127
+ drawer.Drawer.Popup,
5128
+ {
5129
+ ...props,
5130
+ ref,
5131
+ className: (state) => cn.cn(
5132
+ "zen-drawer pointer-events-auto border border-edge bg-surface text-fg shadow-xl outline-none",
5133
+ typeof className === "function" ? className(state) : className
5134
+ ),
5135
+ children: /* @__PURE__ */ jsxRuntime.jsx(drawer.Drawer.Content, { className: "flex min-h-0 flex-col gap-4 overflow-auto p-6", children })
5136
+ }
5137
+ ) })
5138
+ ] })
5139
+ );
5140
+ DrawerContent.displayName = "DrawerContent";
5081
5141
  var Empty = react.forwardRef(
5082
5142
  ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
5083
5143
  "div",
@@ -5085,7 +5145,7 @@ var Empty = react.forwardRef(
5085
5145
  ...props,
5086
5146
  ref,
5087
5147
  "data-slot": "empty",
5088
- className: cn(
5148
+ className: cn.cn(
5089
5149
  "flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg border-dashed p-6 text-center text-balance md:p-12",
5090
5150
  className
5091
5151
  )
@@ -5100,7 +5160,7 @@ var EmptyHeader = react.forwardRef(
5100
5160
  ...props,
5101
5161
  ref,
5102
5162
  "data-slot": "empty-header",
5103
- className: cn("flex max-w-sm flex-col items-center gap-2 text-center", className)
5163
+ className: cn.cn("flex max-w-sm flex-col items-center gap-2 text-center", className)
5104
5164
  }
5105
5165
  )
5106
5166
  );
@@ -5124,10 +5184,7 @@ var EmptyTitle = react.forwardRef(
5124
5184
  ...props,
5125
5185
  ref,
5126
5186
  "data-slot": "empty-title",
5127
- className: cn(
5128
- "text-[length:var(--zen-font-size-lg)]/[var(--zen-line-height-lg)] font-medium tracking-tight",
5129
- className
5130
- )
5187
+ className: cn.cn("text-lg font-medium tracking-tight", className)
5131
5188
  }
5132
5189
  )
5133
5190
  );
@@ -5138,8 +5195,8 @@ var EmptyDescription = react.forwardRef(({ className, ...props }, ref) => /* @__
5138
5195
  ...props,
5139
5196
  ref,
5140
5197
  "data-slot": "empty-description",
5141
- className: cn(
5142
- "text-foreground-muted [&>a:hover]:text-foreground-primary text-[length:var(--zen-font-size-sm)]/relaxed [&>a]:underline [&>a]:underline-offset-4",
5198
+ className: cn.cn(
5199
+ "text-fg-muted [&>a:hover]:text-fg text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4",
5143
5200
  className
5144
5201
  )
5145
5202
  }
@@ -5152,8 +5209,8 @@ var EmptyContent = react.forwardRef(
5152
5209
  ...props,
5153
5210
  ref,
5154
5211
  "data-slot": "empty-content",
5155
- className: cn(
5156
- "flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-[length:var(--zen-font-size-sm)]/[var(--zen-line-height-sm)] text-balance",
5212
+ className: cn.cn(
5213
+ "flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance",
5157
5214
  className
5158
5215
  )
5159
5216
  }
@@ -5176,7 +5233,7 @@ function Tooltip({
5176
5233
  className: "zen-layer-floating",
5177
5234
  side: placement ?? side,
5178
5235
  sideOffset,
5179
- children: /* @__PURE__ */ jsxRuntime.jsxs(tooltip$1.Tooltip.Popup, { className: cn("zen-popover group", tooltip(), className), children: [
5236
+ children: /* @__PURE__ */ jsxRuntime.jsxs(tooltip$1.Tooltip.Popup, { className: cn.cn("zen-popover group", tooltip(), className), children: [
5180
5237
  showArrow && /* @__PURE__ */ jsxRuntime.jsx(
5181
5238
  tooltip$1.Tooltip.Arrow,
5182
5239
  {
@@ -5219,7 +5276,7 @@ function FloatingTooltip({ className, style, children, ...props }) {
5219
5276
  TooltipBubble,
5220
5277
  {
5221
5278
  ...props,
5222
- className: cn(
5279
+ className: cn.cn(
5223
5280
  "zen-layer-floating fixed pointer-events-none -translate-x-1/2 -translate-y-[calc(100%+10px)]",
5224
5281
  className
5225
5282
  ),
@@ -5288,10 +5345,7 @@ function Form({
5288
5345
  {
5289
5346
  ...props,
5290
5347
  autoComplete,
5291
- className: cn(
5292
- "flex flex-col relative text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] gap-3",
5293
- className
5294
- ),
5348
+ className: cn.cn("flex flex-col relative text-sm gap-3", className),
5295
5349
  onSubmit: onSubmit ? handleSubmit(onSubmit) : void 0,
5296
5350
  onKeyDown,
5297
5351
  children: typeof children === "function" ? children(formValues) : children
@@ -5384,13 +5438,13 @@ function Spinner(props) {
5384
5438
  Box,
5385
5439
  {
5386
5440
  ...domProps,
5387
- className: cn("relative inline-flex justify-center items-center", sizeMap3[size], className),
5441
+ className: cn.cn("relative inline-flex justify-center items-center", sizeMap3[size], className),
5388
5442
  children: /* @__PURE__ */ jsxRuntime.jsxs("svg", { viewBox: "25 25 50 50", className: "zen-spinner-svg w-full h-full", children: [
5389
5443
  !quiet && /* @__PURE__ */ jsxRuntime.jsx("circle", { className: "zen-spinner-track stroke-interactive", cx: "50", cy: "50", r: "20" }),
5390
5444
  /* @__PURE__ */ jsxRuntime.jsx(
5391
5445
  "circle",
5392
5446
  {
5393
- className: cn(
5447
+ className: cn.cn(
5394
5448
  "zen-spinner-fill",
5395
5449
  isDisabled ? "stroke-content-disabled" : "stroke-primary"
5396
5450
  ),
@@ -5660,7 +5714,7 @@ function Toast({
5660
5714
  ...props
5661
5715
  }) {
5662
5716
  const hasActions = actions?.length > 0;
5663
- return /* @__PURE__ */ jsxRuntime.jsxs(Row, { ...props, className: cn(toast({ variant }), className), children: [
5717
+ return /* @__PURE__ */ jsxRuntime.jsxs(Row, { ...props, className: cn.cn(toast({ variant }), className), children: [
5664
5718
  /* @__PURE__ */ jsxRuntime.jsxs(Column, { flexGrow: 1, gap: "1", children: [
5665
5719
  title && /* @__PURE__ */ jsxRuntime.jsx(Text, { weight: "semibold", children: title }),
5666
5720
  message && /* @__PURE__ */ jsxRuntime.jsx(Text, { color: title ? "muted" : void 0, children: message })
@@ -5674,7 +5728,7 @@ function Toast({
5674
5728
  "aria-hidden": true,
5675
5729
  "aria-label": "Close",
5676
5730
  size: "sm",
5677
- className: "cursor-pointer text-foreground-muted hover:text-foreground-primary",
5731
+ className: "cursor-pointer text-fg-muted hover:text-fg",
5678
5732
  onClick: () => onClose?.(TOAST_CLOSE_ACTION),
5679
5733
  children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.X, {})
5680
5734
  }
@@ -5727,7 +5781,7 @@ function Toaster({ duration = 0, position = "bottom-right" }) {
5727
5781
  Column,
5728
5782
  {
5729
5783
  gap: "2",
5730
- className: cn("zen-layer-toast fixed", positionClasses[position]),
5784
+ className: cn.cn("zen-layer-toast fixed", positionClasses[position]),
5731
5785
  onMouseEnter: () => setHovered(true),
5732
5786
  onMouseLeave: () => setHovered(false),
5733
5787
  children: transitions((style, item) => {
@@ -5791,7 +5845,7 @@ function Image({
5791
5845
  className,
5792
5846
  ...props
5793
5847
  }) {
5794
- const classes = cn(
5848
+ const classes = cn.cn(
5795
5849
  "block max-w-full",
5796
5850
  mapBorderRadius(borderRadius),
5797
5851
  mapShadow(shadow),
@@ -5807,9 +5861,9 @@ function Kbd({ className, children, ...props }) {
5807
5861
  "kbd",
5808
5862
  {
5809
5863
  ...props,
5810
- className: cn(
5864
+ className: cn.cn(
5811
5865
  "inline-flex items-center justify-center gap-1",
5812
- "text-[length:var(--zen-font-size-sm)]/[var(--zen-line-height-sm)] font-mono text-foreground-primary",
5866
+ "text-sm font-mono text-fg",
5813
5867
  "px-1.5 py-0.5 rounded border border-edge bg-surface-raised shadow-sm",
5814
5868
  className
5815
5869
  ),
@@ -5833,7 +5887,7 @@ function Loading({
5833
5887
  Box,
5834
5888
  {
5835
5889
  ...props,
5836
- className: cn(
5890
+ className: cn.cn(
5837
5891
  "relative flex justify-center items-center flex-1 pointer-events-none",
5838
5892
  placementClasses2[placement],
5839
5893
  className
@@ -5886,13 +5940,13 @@ function Menu({
5886
5940
  }
5887
5941
  onSelectionChange?.(next);
5888
5942
  };
5889
- const popupClassName2 = cn(
5890
- "min-w-[200px] p-2 border border-edge rounded-md shadow-lg bg-surface-base overflow-hidden outline-none",
5943
+ const popupClassName2 = cn.cn(
5944
+ "min-w-[200px] p-2 border border-edge rounded-md shadow-lg bg-surface overflow-hidden outline-none",
5891
5945
  className
5892
5946
  );
5893
5947
  const popupContent = /* @__PURE__ */ jsxRuntime.jsx(MenuContext.Provider, { value: { selected, select }, children });
5894
5948
  if (primitiveKind === "context-menu") {
5895
- return /* @__PURE__ */ jsxRuntime.jsx(contextMenu.ContextMenu.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(contextMenu.ContextMenu.Positioner, { className: "zen-layer-floating", children: /* @__PURE__ */ jsxRuntime.jsx(contextMenu.ContextMenu.Popup, { ...props, className: cn("zen-popover", popupClassName2), children: popupContent }) }) });
5949
+ return /* @__PURE__ */ jsxRuntime.jsx(contextMenu.ContextMenu.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(contextMenu.ContextMenu.Positioner, { className: "zen-layer-floating", children: /* @__PURE__ */ jsxRuntime.jsx(contextMenu.ContextMenu.Popup, { ...props, className: cn.cn("zen-popover", popupClassName2), children: popupContent }) }) });
5896
5950
  }
5897
5951
  if (primitiveKind === "menu") {
5898
5952
  return /* @__PURE__ */ jsxRuntime.jsx(menu.Menu.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -5901,7 +5955,7 @@ function Menu({
5901
5955
  sideOffset: 4,
5902
5956
  ...inMenubar ? { align: "start" } : {},
5903
5957
  className: "zen-layer-floating",
5904
- children: /* @__PURE__ */ jsxRuntime.jsx(menu.Menu.Popup, { ...props, className: cn("zen-popover", popupClassName2), children: popupContent })
5958
+ children: /* @__PURE__ */ jsxRuntime.jsx(menu.Menu.Popup, { ...props, className: cn.cn("zen-popover", popupClassName2), children: popupContent })
5905
5959
  }
5906
5960
  ) });
5907
5961
  }
@@ -5932,10 +5986,10 @@ function MenuItem({
5932
5986
  onAction?.(key);
5933
5987
  }
5934
5988
  };
5935
- const itemClassName = cn(
5936
- "text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] flex items-center justify-between gap-3 px-2 py-1.5 rounded cursor-pointer outline-none w-full",
5989
+ const itemClassName = cn.cn(
5990
+ "text-sm flex items-center justify-between gap-3 px-2 py-1.5 rounded cursor-pointer outline-none w-full",
5937
5991
  "hover:bg-interactive focus:bg-interactive data-[highlighted]:bg-interactive",
5938
- "data-[disabled]:text-foreground-disabled",
5992
+ "data-[disabled]:text-fg-disabled",
5939
5993
  "data-[selected]:font-semibold",
5940
5994
  className
5941
5995
  );
@@ -6007,7 +6061,7 @@ function MenuSeparator({ className, ...props }) {
6007
6061
  menu.Menu.Separator,
6008
6062
  {
6009
6063
  ...props,
6010
- className: cn("block h-px bg-edge-muted my-2 -mx-2", className)
6064
+ className: cn.cn("block h-px bg-edge-muted my-2 -mx-2", className)
6011
6065
  }
6012
6066
  );
6013
6067
  }
@@ -6020,11 +6074,11 @@ function MenuSection({
6020
6074
  ...props
6021
6075
  }) {
6022
6076
  const primitiveKind = react.useContext(MenuPrimitiveContext);
6023
- const groupClassName = cn("[&:not(:last-child)]:mb-4", className);
6077
+ const groupClassName = cn.cn("[&:not(:last-child)]:mb-4", className);
6024
6078
  const groupStyle = style;
6025
6079
  const body = maxHeight ? /* @__PURE__ */ jsxRuntime.jsx(ScrollArea, { maxHeight, children }) : children;
6026
6080
  const content = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
6027
- title && (primitiveKind === "context-menu" ? /* @__PURE__ */ jsxRuntime.jsx(contextMenu.ContextMenu.GroupLabel, { className: "text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] font-bold px-2 py-1.5", children: title }) : primitiveKind === "menu" ? /* @__PURE__ */ jsxRuntime.jsx(menu.Menu.GroupLabel, { className: "text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] font-bold px-2 py-1.5", children: title }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] font-bold px-2 py-1.5", children: title })),
6081
+ title && (primitiveKind === "context-menu" ? /* @__PURE__ */ jsxRuntime.jsx(contextMenu.ContextMenu.GroupLabel, { className: "text-sm font-bold px-2 py-1.5", children: title }) : primitiveKind === "menu" ? /* @__PURE__ */ jsxRuntime.jsx(menu.Menu.GroupLabel, { className: "text-sm font-bold px-2 py-1.5", children: title }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-bold px-2 py-1.5", children: title })),
6028
6082
  body
6029
6083
  ] });
6030
6084
  if (primitiveKind === "context-menu") {
@@ -6063,7 +6117,7 @@ function Menubar({ isDisabled, className, children, ...props }) {
6063
6117
  {
6064
6118
  ...props,
6065
6119
  disabled: isDisabled,
6066
- className: cn("flex items-center gap-1 w-fit", className),
6120
+ className: cn.cn("flex items-center gap-1 w-fit", className),
6067
6121
  children
6068
6122
  }
6069
6123
  );
@@ -6097,7 +6151,7 @@ function Meter({
6097
6151
  min: minValue,
6098
6152
  max: maxValue,
6099
6153
  format: formatOptions,
6100
- className: cn("flex flex-col gap-1 w-full", className),
6154
+ className: cn.cn("flex flex-col gap-1 w-full", className),
6101
6155
  children: [
6102
6156
  (label || showValue) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-3", children: [
6103
6157
  label && /* @__PURE__ */ jsxRuntime.jsx(meter.Meter.Label, { render: /* @__PURE__ */ jsxRuntime.jsx(Label, {}), children: label }),
@@ -6109,18 +6163,18 @@ function Meter({
6109
6163
  );
6110
6164
  }
6111
6165
  var NavbarContext = react.createContext({ showArrow: true });
6112
- var triggerClassName = cn(
6166
+ var triggerClassName = cn.cn(
6113
6167
  "flex items-center gap-1 select-none cursor-pointer rounded-md px-3 py-2",
6114
- "text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] font-medium text-foreground-primary bg-transparent border-0",
6168
+ "text-sm font-medium text-fg bg-transparent border-0",
6115
6169
  "hover:bg-interactive data-[popup-open]:bg-interactive",
6116
6170
  "outline-none [&:focus-visible]:outline-2 [&:focus-visible]:outline-offset-1 [&:focus-visible]:outline-focus-ring"
6117
6171
  );
6118
- var itemLinkClassName = cn(
6172
+ var itemLinkClassName = cn.cn(
6119
6173
  "flex items-center gap-1 select-none cursor-pointer rounded-md px-3 py-2",
6120
6174
  "hover:bg-interactive",
6121
6175
  "outline-none [&:focus-visible]:outline-2 [&:focus-visible]:outline-offset-1 [&:focus-visible]:outline-focus-ring"
6122
6176
  );
6123
- var contentClassName = cn(
6177
+ var contentClassName = cn.cn(
6124
6178
  "w-max",
6125
6179
  // Menu already provides the popup padding. Let the shared navbar popup own
6126
6180
  // the surface so nested menus do not render a second border and shadow.
@@ -6132,7 +6186,7 @@ var contentClassName = cn(
6132
6186
  "data-[ending-style]:data-[activation-direction=left]:translate-x-[50%]",
6133
6187
  "data-[ending-style]:data-[activation-direction=right]:translate-x-[-50%]"
6134
6188
  );
6135
- var positionerClassName = cn(
6189
+ var positionerClassName = cn.cn(
6136
6190
  "box-border h-(--positioner-height) w-(--positioner-width) max-w-(--available-width)",
6137
6191
  "transition-[top,left,right,bottom] duration-(--duration) ease-(--easing)",
6138
6192
  "data-[instant]:transition-none",
@@ -6141,11 +6195,11 @@ var positionerClassName = cn(
6141
6195
  "data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0 data-[side=bottom]:before:h-2.5",
6142
6196
  "data-[side=top]:before:bottom-[-10px] data-[side=top]:before:right-0 data-[side=top]:before:left-0 data-[side=top]:before:h-2.5"
6143
6197
  );
6144
- var popupClassName = cn(
6198
+ var popupClassName = cn.cn(
6145
6199
  "relative h-(--popup-height) w-(--popup-width) origin-(--transform-origin)",
6146
6200
  // `overflow-hidden` clips the nested menu's square background to the rounded
6147
6201
  // corners so the popup border stays visible all the way around.
6148
- "overflow-hidden rounded-md border border-edge bg-surface-base shadow-lg outline-none",
6202
+ "overflow-hidden rounded-md border border-edge bg-surface shadow-lg outline-none",
6149
6203
  "transition-[opacity,transform,width,height,scale,translate] duration-(--duration) ease-(--easing)",
6150
6204
  "data-[starting-style]:scale-95 data-[starting-style]:opacity-0",
6151
6205
  "data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[ending-style]:duration-150 data-[ending-style]:ease-[ease]"
@@ -6157,12 +6211,12 @@ function Navbar({
6157
6211
  color: _color,
6158
6212
  ...props
6159
6213
  }) {
6160
- return /* @__PURE__ */ jsxRuntime.jsx(NavbarContext.Provider, { value: { showArrow }, children: /* @__PURE__ */ jsxRuntime.jsxs(navigationMenu.NavigationMenu.Root, { className: cn("relative", className), ...props, children: [
6214
+ return /* @__PURE__ */ jsxRuntime.jsx(NavbarContext.Provider, { value: { showArrow }, children: /* @__PURE__ */ jsxRuntime.jsxs(navigationMenu.NavigationMenu.Root, { className: cn.cn("relative", className), ...props, children: [
6161
6215
  /* @__PURE__ */ jsxRuntime.jsx(navigationMenu.NavigationMenu.List, { className: "flex items-center gap-1", children }),
6162
6216
  /* @__PURE__ */ jsxRuntime.jsx(navigationMenu.NavigationMenu.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
6163
6217
  navigationMenu.NavigationMenu.Positioner,
6164
6218
  {
6165
- className: cn("zen-layer-floating", positionerClassName),
6219
+ className: cn.cn("zen-layer-floating", positionerClassName),
6166
6220
  sideOffset: 10,
6167
6221
  collisionPadding: 16,
6168
6222
  style: {
@@ -6184,21 +6238,21 @@ function NavbarItem({
6184
6238
  const { showArrow } = react.useContext(NavbarContext);
6185
6239
  if (label) {
6186
6240
  return /* @__PURE__ */ jsxRuntime.jsxs(navigationMenu.NavigationMenu.Item, { ...props, children: [
6187
- /* @__PURE__ */ jsxRuntime.jsxs(navigationMenu.NavigationMenu.Trigger, { className: cn(triggerClassName, className), children: [
6241
+ /* @__PURE__ */ jsxRuntime.jsxs(navigationMenu.NavigationMenu.Trigger, { className: cn.cn(triggerClassName, className), children: [
6188
6242
  /* @__PURE__ */ jsxRuntime.jsx(Text, { children: label }),
6189
- showArrow && /* @__PURE__ */ jsxRuntime.jsx(navigationMenu.NavigationMenu.Icon, { className: "flex text-foreground-muted transition-transform duration-200 ease-in-out data-[popup-open]:rotate-180", children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.ChevronDown, { className: "size-4" }) })
6243
+ showArrow && /* @__PURE__ */ jsxRuntime.jsx(navigationMenu.NavigationMenu.Icon, { className: "flex text-fg-muted transition-transform duration-200 ease-in-out data-[popup-open]:rotate-180", children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.ChevronDown, { className: "size-4" }) })
6190
6244
  ] }),
6191
6245
  /* @__PURE__ */ jsxRuntime.jsx(navigationMenu.NavigationMenu.Content, { className: contentClassName, children })
6192
6246
  ] });
6193
6247
  }
6194
- return /* @__PURE__ */ jsxRuntime.jsx(navigationMenu.NavigationMenu.Item, { ...props, className: cn(itemLinkClassName, className), children });
6248
+ return /* @__PURE__ */ jsxRuntime.jsx(navigationMenu.NavigationMenu.Item, { ...props, className: cn.cn(itemLinkClassName, className), children });
6195
6249
  }
6196
6250
  function NavbarLink({ className, ...props }) {
6197
6251
  return /* @__PURE__ */ jsxRuntime.jsx(
6198
6252
  navigationMenu.NavigationMenu.Link,
6199
6253
  {
6200
- className: cn(
6201
- "flex items-center gap-1 select-none rounded-md px-3 py-2 no-underline text-foreground-primary",
6254
+ className: cn.cn(
6255
+ "flex items-center gap-1 select-none rounded-md px-3 py-2 no-underline text-fg",
6202
6256
  "hover:bg-interactive",
6203
6257
  "outline-none [&:focus-visible]:outline-2 [&:focus-visible]:outline-offset-1 [&:focus-visible]:outline-focus-ring",
6204
6258
  className
@@ -6209,9 +6263,9 @@ function NavbarLink({ className, ...props }) {
6209
6263
  }
6210
6264
  var stepperClasses = [
6211
6265
  "flex items-center justify-center self-stretch px-3 shrink-0",
6212
- "cursor-pointer select-none bg-transparent text-foreground-primary",
6266
+ "cursor-pointer select-none bg-transparent text-fg",
6213
6267
  "hover:bg-interactive active:bg-interactive-hover",
6214
- "disabled:text-foreground-disabled disabled:cursor-default disabled:hover:bg-transparent"
6268
+ "disabled:text-fg-disabled disabled:cursor-default disabled:hover:bg-transparent"
6215
6269
  ];
6216
6270
  function NumberField({
6217
6271
  label,
@@ -6240,19 +6294,19 @@ function NumberField({
6240
6294
  required: isRequired,
6241
6295
  format: formatOptions,
6242
6296
  onValueChange: (value) => onChange?.(value),
6243
- className: cn("flex flex-col gap-1", className),
6297
+ className: cn.cn("flex flex-col gap-1", className),
6244
6298
  children: [
6245
6299
  label && /* @__PURE__ */ jsxRuntime.jsx(Label, { htmlFor: fieldId, children: label }),
6246
- /* @__PURE__ */ jsxRuntime.jsxs(numberField.NumberField.Group, { className: cn(inputField(), "p-0 px-0 gap-0 overflow-hidden"), children: [
6247
- /* @__PURE__ */ jsxRuntime.jsx(numberField.NumberField.Decrement, { className: cn(stepperClasses, "border-r border-edge"), children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: "sm", children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Minus, {}) }) }),
6300
+ /* @__PURE__ */ jsxRuntime.jsxs(numberField.NumberField.Group, { className: cn.cn(inputField(), "p-0 px-0 gap-0 overflow-hidden"), children: [
6301
+ /* @__PURE__ */ jsxRuntime.jsx(numberField.NumberField.Decrement, { className: cn.cn(stepperClasses, "border-r border-edge"), children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: "sm", children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Minus, {}) }) }),
6248
6302
  /* @__PURE__ */ jsxRuntime.jsx(
6249
6303
  numberField.NumberField.Input,
6250
6304
  {
6251
6305
  placeholder,
6252
- className: "w-full min-w-0 text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] text-center tabular-nums bg-transparent py-2 px-3 outline-none placeholder:text-foreground-muted"
6306
+ className: "w-full min-w-0 text-sm text-center tabular-nums bg-transparent py-2 px-3 outline-none placeholder:text-fg-muted"
6253
6307
  }
6254
6308
  ),
6255
- /* @__PURE__ */ jsxRuntime.jsx(numberField.NumberField.Increment, { className: cn(stepperClasses, "border-l border-edge"), children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: "sm", children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Plus, {}) }) })
6309
+ /* @__PURE__ */ jsxRuntime.jsx(numberField.NumberField.Increment, { className: cn.cn(stepperClasses, "border-l border-edge"), children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: "sm", children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Plus, {}) }) })
6256
6310
  ] })
6257
6311
  ]
6258
6312
  }
@@ -6284,16 +6338,16 @@ function OTPField({
6284
6338
  required: isRequired,
6285
6339
  onValueChange: (value) => onChange?.(value),
6286
6340
  onValueComplete: (value) => onComplete?.(value),
6287
- className: cn("flex items-center gap-2", className),
6341
+ className: cn.cn("flex items-center gap-2", className),
6288
6342
  children: Array.from({ length }, (_, index) => /* @__PURE__ */ jsxRuntime.jsx(
6289
6343
  otpField.OTPField.Input,
6290
6344
  {
6291
- className: cn(
6292
- "size-10 text-center text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] rounded border border-edge bg-surface-base shadow-sm",
6293
- "text-foreground-primary outline-none transition-colors",
6294
- "focus:border-edge-strong focus:ring-2 focus:ring-focus-ring focus:ring-offset-1 focus:ring-offset-surface-base",
6345
+ className: cn.cn(
6346
+ "size-10 text-center text-sm rounded border border-edge bg-surface shadow-sm",
6347
+ "text-fg outline-none transition-colors",
6348
+ "focus:border-edge-strong focus:ring-2 focus:ring-focus-ring focus:ring-offset-1 focus:ring-offset-surface",
6295
6349
  "data-[filled]:border-edge-strong",
6296
- "disabled:bg-surface-disabled disabled:text-foreground-disabled"
6350
+ "disabled:bg-surface-disabled disabled:text-fg-disabled"
6297
6351
  )
6298
6352
  },
6299
6353
  index
@@ -6381,7 +6435,7 @@ function Pagination({
6381
6435
  }
6382
6436
  onChange?.(clamped);
6383
6437
  };
6384
- return /* @__PURE__ */ jsxRuntime.jsxs("nav", { ...props, "aria-label": "Pagination", className: cn("flex items-center gap-1", className), children: [
6438
+ return /* @__PURE__ */ jsxRuntime.jsxs("nav", { ...props, "aria-label": "Pagination", className: cn.cn("flex items-center gap-1", className), children: [
6385
6439
  /* @__PURE__ */ jsxRuntime.jsx(
6386
6440
  Button,
6387
6441
  {
@@ -6396,7 +6450,7 @@ function Pagination({
6396
6450
  (item, index) => item === "ellipsis" ? /* @__PURE__ */ jsxRuntime.jsx(
6397
6451
  "span",
6398
6452
  {
6399
- className: "flex items-center justify-center size-9 text-foreground-muted",
6453
+ className: "flex items-center justify-center size-9 text-fg-muted",
6400
6454
  "aria-hidden": "true",
6401
6455
  children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: "sm", children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.Ellipsis, {}) })
6402
6456
  },
@@ -6519,8 +6573,36 @@ function PasswordField({
6519
6573
  }
6520
6574
  return input;
6521
6575
  }
6576
+ var PreviewCard = previewCard.PreviewCard.Root;
6577
+ var PreviewCardTrigger = previewCard.PreviewCard.Trigger;
6578
+ var PreviewCardContent = react.forwardRef(
6579
+ ({ className, positionerProps, portalProps, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(previewCard.PreviewCard.Portal, { ...portalProps, children: /* @__PURE__ */ jsxRuntime.jsx(
6580
+ previewCard.PreviewCard.Positioner,
6581
+ {
6582
+ sideOffset: 8,
6583
+ align: "start",
6584
+ ...positionerProps,
6585
+ className: (state) => cn.cn(
6586
+ "zen-layer-floating",
6587
+ typeof positionerProps?.className === "function" ? positionerProps.className(state) : positionerProps?.className
6588
+ ),
6589
+ children: /* @__PURE__ */ jsxRuntime.jsx(
6590
+ previewCard.PreviewCard.Popup,
6591
+ {
6592
+ ...props,
6593
+ ref,
6594
+ className: (state) => cn.cn(
6595
+ "zen-popover w-80 max-w-[var(--available-width)] max-h-[var(--available-height)] overflow-auto rounded-md border border-edge bg-surface-overlay p-4 text-sm text-fg shadow-lg outline-none",
6596
+ typeof className === "function" ? className(state) : className
6597
+ )
6598
+ }
6599
+ )
6600
+ }
6601
+ ) })
6602
+ );
6603
+ PreviewCardContent.displayName = "PreviewCardContent";
6522
6604
  function ProgressBar({ className, showPercentage, ...props }) {
6523
- return /* @__PURE__ */ jsxRuntime.jsxs(progress.Progress.Root, { ...props, className: cn("flex items-center gap-3 w-full", className), children: [
6605
+ return /* @__PURE__ */ jsxRuntime.jsxs(progress.Progress.Root, { ...props, className: cn.cn("flex items-center gap-3 w-full", className), children: [
6524
6606
  /* @__PURE__ */ jsxRuntime.jsx(progress.Progress.Track, { className: "relative overflow-hidden w-full h-2 rounded-full bg-interactive", children: /* @__PURE__ */ jsxRuntime.jsx(progress.Progress.Indicator, { className: "h-full rounded-full bg-primary transition-all" }) }),
6525
6607
  showPercentage && /* @__PURE__ */ jsxRuntime.jsx(Text, { className: "tabular-nums", children: /* @__PURE__ */ jsxRuntime.jsx(progress.Progress.Value, {}) })
6526
6608
  ] });
@@ -6545,7 +6627,7 @@ function ProgressCircle({
6545
6627
  value,
6546
6628
  min,
6547
6629
  max,
6548
- className: cn("relative flex justify-center items-center", className),
6630
+ className: cn.cn("relative flex justify-center items-center", className),
6549
6631
  children: [
6550
6632
  /* @__PURE__ */ jsxRuntime.jsxs(
6551
6633
  "svg",
@@ -6569,7 +6651,7 @@ function ProgressCircle({
6569
6651
  ]
6570
6652
  }
6571
6653
  ),
6572
- showPercentage && /* @__PURE__ */ jsxRuntime.jsx(progress.Progress.Value, { className: "text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] font-bold absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" })
6654
+ showPercentage && /* @__PURE__ */ jsxRuntime.jsx(progress.Progress.Value, { className: "text-sm font-bold absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" })
6573
6655
  ]
6574
6656
  }
6575
6657
  );
@@ -6594,7 +6676,7 @@ function RadioGroup({
6594
6676
  disabled: isDisabled,
6595
6677
  readOnly: isReadOnly,
6596
6678
  onValueChange: onChange,
6597
- className: cn("flex flex-col gap-2", className),
6679
+ className: cn.cn("flex flex-col gap-2", className),
6598
6680
  children: [
6599
6681
  label && /* @__PURE__ */ jsxRuntime.jsx(Label, { id: labelId, children: label }),
6600
6682
  /* @__PURE__ */ jsxRuntime.jsx(Column, { gap: "2", children })
@@ -6608,10 +6690,10 @@ function Radio({ children, className, isDisabled, ...props }) {
6608
6690
  {
6609
6691
  ...props,
6610
6692
  disabled: isDisabled,
6611
- className: cn(
6612
- "radio group flex items-center gap-3 cursor-pointer text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)]",
6693
+ className: cn.cn(
6694
+ "radio group flex items-center gap-3 cursor-pointer text-sm",
6613
6695
  "before:content-[''] before:block before:w-5 before:h-5 before:box-border before:rounded-full",
6614
- "before:border before:border-edge-strong before:bg-surface-base before:transition-all before:duration-200",
6696
+ "before:border before:border-edge-strong before:bg-surface before:transition-all before:duration-200",
6615
6697
  "data-[checked]:before:border-[6px] data-[checked]:before:border-primary",
6616
6698
  "data-[disabled]:opacity-50 data-[disabled]:cursor-not-allowed",
6617
6699
  className
@@ -6631,12 +6713,12 @@ function ResizablePanelGroup({
6631
6713
  {
6632
6714
  ...props,
6633
6715
  orientation: direction,
6634
- className: cn("flex size-full", direction === "vertical" && "flex-col", className)
6716
+ className: cn.cn("flex size-full", direction === "vertical" && "flex-col", className)
6635
6717
  }
6636
6718
  ) });
6637
6719
  }
6638
6720
  function ResizablePanel({ className, ...props }) {
6639
- return /* @__PURE__ */ jsxRuntime.jsx(reactResizablePanels.Panel, { ...props, className: cn("overflow-hidden", className) });
6721
+ return /* @__PURE__ */ jsxRuntime.jsx(reactResizablePanels.Panel, { ...props, className: cn.cn("overflow-hidden", className) });
6640
6722
  }
6641
6723
  function ResizableHandle({ withHandle, className, ...props }) {
6642
6724
  const direction = react.useContext(ResizableOrientationContext);
@@ -6645,7 +6727,7 @@ function ResizableHandle({ withHandle, className, ...props }) {
6645
6727
  reactResizablePanels.Separator,
6646
6728
  {
6647
6729
  ...props,
6648
- className: cn(
6730
+ className: cn.cn(
6649
6731
  "relative flex items-center justify-center bg-edge shrink-0",
6650
6732
  isVertical ? "h-px w-full" : "w-px",
6651
6733
  isVertical ? "after:absolute after:inset-x-0 after:-top-1 after:h-2" : "after:absolute after:inset-y-0 after:-left-1 after:w-2",
@@ -6655,11 +6737,11 @@ function ResizableHandle({ withHandle, className, ...props }) {
6655
6737
  children: withHandle && /* @__PURE__ */ jsxRuntime.jsx(
6656
6738
  "div",
6657
6739
  {
6658
- className: cn(
6740
+ className: cn.cn(
6659
6741
  "z-10 flex h-5 w-3.5 items-center justify-center rounded-sm border border-edge bg-surface-raised",
6660
6742
  isVertical && "rotate-90"
6661
6743
  ),
6662
- children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.GripVertical, { className: "size-2.5 text-foreground-muted" })
6744
+ children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.GripVertical, { className: "size-2.5 text-fg-muted" })
6663
6745
  }
6664
6746
  )
6665
6747
  }
@@ -6725,7 +6807,7 @@ function SearchField({
6725
6807
  size: "icon-xs",
6726
6808
  isDisabled: props.disabled,
6727
6809
  "aria-label": "Clear search",
6728
- className: "text-foreground-muted",
6810
+ className: "text-fg-muted",
6729
6811
  onClick: () => handleChange(""),
6730
6812
  children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: "sm", children: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.X, {}) })
6731
6813
  }
@@ -6791,7 +6873,7 @@ function Select({
6791
6873
  );
6792
6874
  const collection = children || normalizedItems?.map((item) => /* @__PURE__ */ jsxRuntime.jsx(ListItem, { value: item.value, children: item.label }, item.value));
6793
6875
  const isEmpty = !collection || Array.isArray(collection) && collection.length === 0;
6794
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex flex-col gap-1", className), children: /* @__PURE__ */ jsxRuntime.jsxs(
6876
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn.cn("flex flex-col gap-1", className), children: /* @__PURE__ */ jsxRuntime.jsxs(
6795
6877
  select.Select.Root,
6796
6878
  {
6797
6879
  ...props,
@@ -6818,7 +6900,7 @@ function Select({
6818
6900
  {
6819
6901
  variant: "outline",
6820
6902
  ...buttonProps,
6821
- className: cn("w-full justify-between", buttonProps?.className)
6903
+ className: cn.cn("w-full justify-between", buttonProps?.className)
6822
6904
  }
6823
6905
  ),
6824
6906
  children: [
@@ -6840,11 +6922,11 @@ function Select({
6840
6922
  sideOffset: 4,
6841
6923
  alignItemWithTrigger,
6842
6924
  ...popoverProps,
6843
- className: cn("zen-layer-floating", popoverProps?.className),
6925
+ className: cn.cn("zen-layer-floating", popoverProps?.className),
6844
6926
  children: /* @__PURE__ */ jsxRuntime.jsx(
6845
6927
  select.Select.Popup,
6846
6928
  {
6847
- className: cn(
6929
+ className: cn.cn(
6848
6930
  "zen-popover bg-surface-overlay border border-edge rounded-md shadow-lg outline-none",
6849
6931
  isFullscreen && "zen-popover-fullscreen fixed inset-0 rounded-none"
6850
6932
  ),
@@ -6870,7 +6952,7 @@ function Select({
6870
6952
  }
6871
6953
  ),
6872
6954
  isLoading && /* @__PURE__ */ jsxRuntime.jsx(Loading, { className: "py-8", icon: "dots", placement: "center", size: "sm" }),
6873
- !isLoading && isEmpty && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-2 py-8 text-center text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] text-foreground-muted", children: "No results found" }),
6955
+ !isLoading && isEmpty && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-2 py-8 text-center text-sm text-fg-muted", children: "No results found" }),
6874
6956
  /* @__PURE__ */ jsxRuntime.jsx(ListPrimitiveProvider, { kind: "select", children: /* @__PURE__ */ jsxRuntime.jsx(
6875
6957
  ScrollArea,
6876
6958
  {
@@ -6881,7 +6963,7 @@ function Select({
6881
6963
  {
6882
6964
  ...listProps,
6883
6965
  isFullscreen,
6884
- className: cn("overflow-visible", listProps?.className),
6966
+ className: cn.cn("overflow-visible", listProps?.className),
6885
6967
  style: listProps?.style,
6886
6968
  children: collection
6887
6969
  }
@@ -6923,9 +7005,9 @@ function Sheet({
6923
7005
  /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog.Viewport, { className: "zen-layer-modal fixed inset-0", children: /* @__PURE__ */ jsxRuntime.jsx(
6924
7006
  dialog.Dialog.Popup,
6925
7007
  {
6926
- className: cn(
7008
+ className: cn.cn(
6927
7009
  "relative p-6 overflow-auto outline-none",
6928
- "bg-surface-base border-edge shadow-xl",
7010
+ "bg-surface border-edge shadow-xl",
6929
7011
  sideClasses[side],
6930
7012
  className
6931
7013
  ),
@@ -6937,7 +7019,7 @@ function Sheet({
6937
7019
  }
6938
7020
  Sheet.zenOverlayType = "dialog";
6939
7021
  function SheetHeader({ title, showClose = true, className, children }) {
6940
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex items-start justify-between gap-3 mb-4", className), children: [
7022
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn.cn("flex items-start justify-between gap-3 mb-4", className), children: [
6941
7023
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-1", children: [
6942
7024
  title && /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog.Title, { render: /* @__PURE__ */ jsxRuntime.jsx(Heading, { size: "xl" }), children: title }),
6943
7025
  children
@@ -6965,7 +7047,7 @@ function Skeleton({
6965
7047
  width,
6966
7048
  height,
6967
7049
  borderRadius,
6968
- className: cn("zen-skeleton", className)
7050
+ className: cn.cn("zen-skeleton", className)
6969
7051
  }
6970
7052
  );
6971
7053
  }
@@ -7019,19 +7101,19 @@ function Slider({
7019
7101
  disabled: isDisabled,
7020
7102
  onValueChange: onChange,
7021
7103
  onValueCommitted: onChangeEnd,
7022
- className: cn("flex flex-col gap-2 w-full", className),
7104
+ className: cn.cn("flex flex-col gap-2 w-full", className),
7023
7105
  children: [
7024
7106
  /* @__PURE__ */ jsxRuntime.jsxs(Row, { justifyContent: "space-between", alignItems: "center", children: [
7025
7107
  label && /* @__PURE__ */ jsxRuntime.jsx(Label, { id: labelId, children: label }),
7026
- showValue && /* @__PURE__ */ jsxRuntime.jsx(slider.Slider.Value, { className: "text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] tabular-nums" })
7108
+ showValue && /* @__PURE__ */ jsxRuntime.jsx(slider.Slider.Value, { className: "text-sm tabular-nums" })
7027
7109
  ] }),
7028
7110
  /* @__PURE__ */ jsxRuntime.jsxs(slider.Slider.Control, { className: "relative h-5 w-full touch-none", children: [
7029
7111
  /* @__PURE__ */ jsxRuntime.jsx(slider.Slider.Track, { className: "absolute inset-x-0 top-1/2 -translate-y-1/2 h-2 rounded-full bg-interactive overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx(slider.Slider.Indicator, { className: "h-full rounded-full bg-primary" }) }),
7030
7112
  /* @__PURE__ */ jsxRuntime.jsx(
7031
7113
  slider.Slider.Thumb,
7032
7114
  {
7033
- className: cn(
7034
- "w-5 h-5 rounded-full bg-surface-base border-2 border-primary shadow",
7115
+ className: cn.cn(
7116
+ "w-5 h-5 rounded-full bg-surface border-2 border-primary shadow",
7035
7117
  "focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2"
7036
7118
  )
7037
7119
  }
@@ -7055,26 +7137,17 @@ function StatusDot({ color, variant }) {
7055
7137
  Box,
7056
7138
  {
7057
7139
  borderRadius: "full",
7058
- className: cn("w-2 h-2", variantColors[variant]),
7140
+ className: cn.cn("w-2 h-2", variantColors[variant]),
7059
7141
  style: color ? { backgroundColor: color } : void 0
7060
7142
  }
7061
7143
  ) });
7062
7144
  }
7063
7145
  function StatusLight(props) {
7064
7146
  const { color, variant = "inactive", children, className, ...domProps } = props;
7065
- return /* @__PURE__ */ jsxRuntime.jsxs(
7066
- Row,
7067
- {
7068
- ...domProps,
7069
- alignItems: "center",
7070
- gap: "2",
7071
- className: cn("text-[length:var(--zen-font-size-sm)]/[var(--zen-line-height-sm)]", className),
7072
- children: [
7073
- /* @__PURE__ */ jsxRuntime.jsx(StatusDot, { color, variant }),
7074
- children
7075
- ]
7076
- }
7077
- );
7147
+ return /* @__PURE__ */ jsxRuntime.jsxs(Row, { ...domProps, alignItems: "center", gap: "2", className: cn.cn("text-sm", className), children: [
7148
+ /* @__PURE__ */ jsxRuntime.jsx(StatusDot, { color, variant }),
7149
+ children
7150
+ ] });
7078
7151
  }
7079
7152
  function Switch({
7080
7153
  label,
@@ -7102,7 +7175,7 @@ function Switch({
7102
7175
  checked,
7103
7176
  defaultChecked: defaultSelected,
7104
7177
  disabled: isDisabled,
7105
- className: cn(styles.root(), className),
7178
+ className: cn.cn(styles.root(), className),
7106
7179
  onCheckedChange: onChange,
7107
7180
  children: [
7108
7181
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles.track(), children: /* @__PURE__ */ jsxRuntime.jsx(_switch.Switch.Thumb, { className: styles.thumb() }) }),
@@ -7127,7 +7200,7 @@ function Tabs({
7127
7200
  value: selectedKey,
7128
7201
  defaultValue: defaultSelectedKey,
7129
7202
  onValueChange: (value) => onSelectionChange?.(String(value)),
7130
- className: cn("grid relative w-full gap-6", className),
7203
+ className: cn.cn("grid relative w-full gap-6", className),
7131
7204
  children
7132
7205
  }
7133
7206
  );
@@ -7137,7 +7210,7 @@ function TabList({ children, className, ...props }) {
7137
7210
  tabs.Tabs.List,
7138
7211
  {
7139
7212
  ...props,
7140
- className: cn(
7213
+ className: cn.cn(
7141
7214
  "flex items-center border-b border-edge gap-6",
7142
7215
  "[&_a.tab]:font-medium [&_a.tab]:no-underline",
7143
7216
  className
@@ -7155,11 +7228,11 @@ function Tab({ id, value, isDisabled, href, children, className, ...props }) {
7155
7228
  disabled: isDisabled,
7156
7229
  render: href ? /* @__PURE__ */ jsxRuntime.jsx("a", { href }) : void 0,
7157
7230
  nativeButton: !href,
7158
- className: cn(
7159
- "tab flex items-center justify-center text-[length:var(--zen-font-size-base)]/[var(--zen-line-height-base)] text-foreground-muted py-2 border-b-2 border-transparent select-none -mb-[2px] cursor-pointer outline-none",
7160
- "hover:text-foreground-primary",
7161
- "data-[active]:text-foreground-primary data-[active]:border-b-primary",
7162
- "data-[disabled]:text-foreground-disabled data-[disabled]:cursor-default",
7231
+ className: cn.cn(
7232
+ "tab flex items-center justify-center text-sm text-fg-muted py-2 border-b-2 border-transparent select-none -mb-[2px] cursor-pointer outline-none",
7233
+ "hover:text-fg",
7234
+ "data-[active]:text-fg data-[active]:border-b-primary",
7235
+ "data-[disabled]:text-fg-disabled data-[disabled]:cursor-default",
7163
7236
  className
7164
7237
  ),
7165
7238
  children
@@ -7181,7 +7254,7 @@ function TagGroup({ label, children, className, onRemove, ...props }) {
7181
7254
  allowsRemoving: !!onRemove,
7182
7255
  remove: (key) => onRemove?.(/* @__PURE__ */ new Set([key]))
7183
7256
  },
7184
- children: /* @__PURE__ */ jsxRuntime.jsxs("div", { ...props, className: cn("flex flex-col gap-1", className), children: [
7257
+ children: /* @__PURE__ */ jsxRuntime.jsxs("div", { ...props, className: cn.cn("flex flex-col gap-1", className), children: [
7185
7258
  label && /* @__PURE__ */ jsxRuntime.jsx(Label, { children: label }),
7186
7259
  /* @__PURE__ */ jsxRuntime.jsx("div", { role: "list", className: "flex flex-wrap gap-1", children })
7187
7260
  ] })
@@ -7197,7 +7270,7 @@ function Tag({ id, variant, children, className, isDisabled, ...props }) {
7197
7270
  ...props,
7198
7271
  role: "listitem",
7199
7272
  "aria-disabled": isDisabled || void 0,
7200
- className: cn(styles.base(), className),
7273
+ className: cn.cn(styles.base(), className),
7201
7274
  children: [
7202
7275
  children,
7203
7276
  allowsRemoving && !isDisabled && /* @__PURE__ */ jsxRuntime.jsx(
@@ -7276,7 +7349,7 @@ function ThemeButton({
7276
7349
  Button,
7277
7350
  {
7278
7351
  ...props,
7279
- className: cn(
7352
+ className: cn.cn(
7280
7353
  "w-[42px] flex justify-center items-center cursor-pointer [&>div]:flex [&>div]:justify-center [&>div]:items-center [&>div]:absolute",
7281
7354
  className
7282
7355
  ),
@@ -7331,8 +7404,8 @@ function ThemeSwitcher({ className }) {
7331
7404
  return /* @__PURE__ */ jsxRuntime.jsx(
7332
7405
  "div",
7333
7406
  {
7334
- className: cn(
7335
- "inline-flex items-center bg-surface-base border border-edge rounded-md overflow-hidden",
7407
+ className: cn.cn(
7408
+ "inline-flex items-center bg-surface border border-edge rounded-md overflow-hidden",
7336
7409
  className
7337
7410
  ),
7338
7411
  children: options.map((option) => /* @__PURE__ */ jsxRuntime.jsx(
@@ -7342,12 +7415,12 @@ function ThemeSwitcher({ className }) {
7342
7415
  onClick: () => setMode(option.value),
7343
7416
  "aria-label": option.label,
7344
7417
  "aria-pressed": mode === option.value,
7345
- className: cn(
7418
+ className: cn.cn(
7346
7419
  "size-9 flex items-center justify-center cursor-pointer outline-none transition-colors",
7347
7420
  "[&:not(:first-child)]:border-l [&:not(:first-child)]:border-edge",
7348
7421
  "hover:bg-interactive",
7349
7422
  "focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-inset",
7350
- mode === option.value ? "bg-interactive text-foreground-primary" : "text-foreground-muted"
7423
+ mode === option.value ? "bg-interactive text-fg" : "text-fg-muted"
7351
7424
  ),
7352
7425
  children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: "sm", children: option.icon })
7353
7426
  },
@@ -7376,10 +7449,10 @@ function Toggle({
7376
7449
  defaultPressed: defaultSelected,
7377
7450
  disabled: isDisabled,
7378
7451
  onPressedChange: onChange,
7379
- className: cn(
7452
+ className: cn.cn(
7380
7453
  "flex items-center justify-center whitespace-nowrap gap-3 font-medium bg-interactive border border-transparent rounded p-2 relative cursor-pointer",
7381
7454
  "hover:bg-interactive-hover",
7382
- "data-[pressed]:text-primary-foreground data-[pressed]:bg-primary",
7455
+ "data-[pressed]:text-primary-fg data-[pressed]:bg-primary",
7383
7456
  className
7384
7457
  ),
7385
7458
  children
@@ -7422,8 +7495,8 @@ function ToggleGroup({
7422
7495
  defaultValue: defaultValue || (defaultSelectedKeys ? Array.from(defaultSelectedKeys) : void 0),
7423
7496
  multiple: selectionMode === "multiple",
7424
7497
  onValueChange: handleChange,
7425
- className: cn(
7426
- "inline-flex bg-surface-base shadow-sm border border-edge rounded overflow-hidden",
7498
+ className: cn.cn(
7499
+ "inline-flex bg-surface shadow-sm border border-edge rounded overflow-hidden",
7427
7500
  className
7428
7501
  ),
7429
7502
  children
@@ -7451,12 +7524,12 @@ function ToggleGroupItem({
7451
7524
  ...props,
7452
7525
  value: props.value || id,
7453
7526
  disabled: isDisabled,
7454
- className: cn(
7455
- "text-foreground-muted bg-surface-base font-bold flex items-center justify-center p-2 cursor-pointer outline-none",
7527
+ className: cn.cn(
7528
+ "text-fg-muted bg-surface font-bold flex items-center justify-center p-2 cursor-pointer outline-none",
7456
7529
  "[&:not(:first-child)]:border-l [&:not(:first-child)]:border-edge",
7457
7530
  "hover:bg-interactive",
7458
- variant === "primary" ? "data-[pressed]:text-primary-foreground data-[pressed]:bg-primary" : "data-[pressed]:text-foreground-primary data-[pressed]:bg-interactive",
7459
- "data-[disabled]:text-foreground-disabled",
7531
+ variant === "primary" ? "data-[pressed]:text-primary-fg data-[pressed]:bg-primary" : "data-[pressed]:text-fg data-[pressed]:bg-interactive",
7532
+ "data-[disabled]:text-fg-disabled",
7460
7533
  className
7461
7534
  ),
7462
7535
  children
@@ -7470,8 +7543,8 @@ function Toolbar({ isDisabled, orientation, className, children, ...props }) {
7470
7543
  ...props,
7471
7544
  disabled: isDisabled,
7472
7545
  orientation,
7473
- className: cn(
7474
- "flex items-center gap-1 p-1 rounded-md border border-edge bg-surface-base shadow-sm w-fit",
7546
+ className: cn.cn(
7547
+ "flex items-center gap-1 p-1 rounded-md border border-edge bg-surface shadow-sm w-fit",
7475
7548
  orientation === "vertical" && "flex-col",
7476
7549
  className
7477
7550
  ),
@@ -7480,7 +7553,7 @@ function Toolbar({ isDisabled, orientation, className, children, ...props }) {
7480
7553
  );
7481
7554
  }
7482
7555
  function ToolbarGroup({ className, children, ...props }) {
7483
- return /* @__PURE__ */ jsxRuntime.jsx(toolbar.Toolbar.Group, { ...props, className: cn("flex items-center gap-1", className), children });
7556
+ return /* @__PURE__ */ jsxRuntime.jsx(toolbar.Toolbar.Group, { ...props, className: cn.cn("flex items-center gap-1", className), children });
7484
7557
  }
7485
7558
  function ToolbarButton({ isDisabled, variant = "quiet", ...props }) {
7486
7559
  return /* @__PURE__ */ jsxRuntime.jsx(toolbar.Toolbar.Button, { disabled: isDisabled, render: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant, ...props }) });
@@ -7490,7 +7563,7 @@ function ToolbarSeparator({ className, ...props }) {
7490
7563
  toolbar.Toolbar.Separator,
7491
7564
  {
7492
7565
  ...props,
7493
- render: /* @__PURE__ */ jsxRuntime.jsx(Separator, { orientation: "vertical", className: cn("mx-1 h-5 self-center", className) })
7566
+ render: /* @__PURE__ */ jsxRuntime.jsx(Separator, { orientation: "vertical", className: cn.cn("mx-1 h-5 self-center", className) })
7494
7567
  }
7495
7568
  );
7496
7569
  }
@@ -7502,6 +7575,10 @@ function ZenProvider({ children, theme, colorScheme, palette, toast: toast2 }) {
7502
7575
  return /* @__PURE__ */ jsxRuntime.jsx(ToastProvider, { ...defaultToastConfig, ...toast2, children });
7503
7576
  }
7504
7577
 
7578
+ Object.defineProperty(exports, "cn", {
7579
+ enumerable: true,
7580
+ get: function () { return cn.cn; }
7581
+ });
7505
7582
  exports.Accordion = Accordion;
7506
7583
  exports.AccordionItem = AccordionItem;
7507
7584
  exports.Alert = Alert;
@@ -7509,6 +7586,7 @@ exports.AlertDescription = AlertDescription;
7509
7586
  exports.AlertDialog = AlertDialog;
7510
7587
  exports.AlertTitle = AlertTitle;
7511
7588
  exports.AspectRatio = AspectRatio;
7589
+ exports.Autocomplete = Autocomplete;
7512
7590
  exports.Avatar = Avatar;
7513
7591
  exports.Badge = Badge;
7514
7592
  exports.Blockquote = Blockquote;
@@ -7549,6 +7627,12 @@ exports.DatePicker = DatePicker;
7549
7627
  exports.Dialog = Dialog;
7550
7628
  exports.DialogTrigger = DialogTrigger;
7551
7629
  exports.Dots = Dots;
7630
+ exports.Drawer = Drawer;
7631
+ exports.DrawerClose = DrawerClose;
7632
+ exports.DrawerContent = DrawerContent;
7633
+ exports.DrawerDescription = DrawerDescription;
7634
+ exports.DrawerTitle = DrawerTitle;
7635
+ exports.DrawerTrigger = DrawerTrigger;
7552
7636
  exports.Empty = Empty;
7553
7637
  exports.EmptyContent = EmptyContent;
7554
7638
  exports.EmptyDescription = EmptyDescription;
@@ -7608,6 +7692,9 @@ exports.Pagination = Pagination;
7608
7692
  exports.PasswordField = PasswordField;
7609
7693
  exports.Popover = Popover;
7610
7694
  exports.Pressable = Pressable;
7695
+ exports.PreviewCard = PreviewCard;
7696
+ exports.PreviewCardContent = PreviewCardContent;
7697
+ exports.PreviewCardTrigger = PreviewCardTrigger;
7611
7698
  exports.ProgressBar = ProgressBar;
7612
7699
  exports.ProgressCircle = ProgressCircle;
7613
7700
  exports.Radio = Radio;
@@ -7663,7 +7750,6 @@ exports.Tooltip = Tooltip;
7663
7750
  exports.TooltipBubble = TooltipBubble;
7664
7751
  exports.TooltipTrigger = TooltipTrigger;
7665
7752
  exports.ZenProvider = ZenProvider;
7666
- exports.cn = cn;
7667
7753
  exports.getCssColorValue = getCssColorValue;
7668
7754
  exports.isHeightPreset = isHeightPreset;
7669
7755
  exports.isMaxHeightPreset = isMaxHeightPreset;