@almadar/ui 2.25.3 → 2.26.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.
@@ -2638,28 +2638,28 @@ var marginYStyles = {
2638
2638
  };
2639
2639
  var bgStyles = {
2640
2640
  transparent: "bg-transparent",
2641
- primary: "bg-[var(--color-primary)] text-[var(--color-primary-foreground)]",
2642
- secondary: "bg-[var(--color-secondary)] text-[var(--color-secondary-foreground)]",
2643
- muted: "bg-[var(--color-muted)] text-[var(--color-foreground)]",
2644
- accent: "bg-[var(--color-accent)] text-[var(--color-accent-foreground)]",
2645
- surface: "bg-[var(--color-card)]",
2646
- overlay: "bg-[var(--color-card)]/80 backdrop-blur-sm"
2641
+ primary: "bg-primary text-primary-foreground",
2642
+ secondary: "bg-secondary text-secondary-foreground",
2643
+ muted: "bg-muted text-foreground",
2644
+ accent: "bg-accent text-accent-foreground",
2645
+ surface: "bg-card",
2646
+ overlay: "bg-card/80 backdrop-blur-sm"
2647
2647
  };
2648
2648
  var roundedStyles = {
2649
2649
  none: "rounded-none",
2650
- sm: "rounded-[var(--radius-sm)]",
2651
- md: "rounded-[var(--radius-md)]",
2652
- lg: "rounded-[var(--radius-lg)]",
2653
- xl: "rounded-[var(--radius-xl)]",
2654
- "2xl": "rounded-[var(--radius-xl)]",
2655
- full: "rounded-[var(--radius-full)]"
2650
+ sm: "rounded-sm",
2651
+ md: "rounded-md",
2652
+ lg: "rounded-lg",
2653
+ xl: "rounded-xl",
2654
+ "2xl": "rounded-xl",
2655
+ full: "rounded-full"
2656
2656
  };
2657
2657
  var shadowStyles = {
2658
2658
  none: "shadow-none",
2659
- sm: "shadow-[var(--shadow-sm)]",
2660
- md: "shadow-[var(--shadow-main)]",
2661
- lg: "shadow-[var(--shadow-lg)]",
2662
- xl: "shadow-[var(--shadow-lg)]"
2659
+ sm: "shadow-sm",
2660
+ md: "shadow",
2661
+ lg: "shadow-lg",
2662
+ xl: "shadow-lg"
2663
2663
  };
2664
2664
  var displayStyles = {
2665
2665
  block: "block",
@@ -2747,7 +2747,7 @@ var Box = React4__default.default.forwardRef(
2747
2747
  // Background
2748
2748
  bgStyles[bg],
2749
2749
  // Border - uses theme variables
2750
- border && "border-[length:var(--border-width)] border-[var(--color-border)]",
2750
+ border && "border-[length:var(--border-width)] border-border",
2751
2751
  // Rounded
2752
2752
  roundedStyles[rounded],
2753
2753
  // Shadow
@@ -2854,30 +2854,30 @@ var Stack = ({
2854
2854
  var VStack = (props) => /* @__PURE__ */ jsxRuntime.jsx(Stack, { direction: "vertical", ...props });
2855
2855
  var HStack = (props) => /* @__PURE__ */ jsxRuntime.jsx(Stack, { direction: "horizontal", ...props });
2856
2856
  var variantStyles = {
2857
- h1: "text-4xl font-bold tracking-tight text-[var(--color-foreground)]",
2858
- h2: "text-3xl font-bold tracking-tight text-[var(--color-foreground)]",
2859
- h3: "text-2xl font-bold text-[var(--color-foreground)]",
2860
- h4: "text-xl font-bold text-[var(--color-foreground)]",
2861
- h5: "text-lg font-bold text-[var(--color-foreground)]",
2862
- h6: "text-base font-bold text-[var(--color-foreground)]",
2863
- heading: "text-2xl font-bold text-[var(--color-foreground)]",
2864
- subheading: "text-lg font-semibold text-[var(--color-foreground)]",
2865
- body1: "text-base font-normal text-[var(--color-foreground)]",
2866
- body2: "text-sm font-normal text-[var(--color-foreground)]",
2867
- body: "text-base font-normal text-[var(--color-foreground)]",
2868
- caption: "text-xs font-normal text-[var(--color-muted-foreground)]",
2869
- overline: "text-xs uppercase tracking-wide font-bold text-[var(--color-muted-foreground)]",
2870
- small: "text-sm font-normal text-[var(--color-foreground)]",
2871
- large: "text-lg font-medium text-[var(--color-foreground)]",
2872
- label: "text-sm font-medium text-[var(--color-foreground)]"
2857
+ h1: "text-4xl font-bold tracking-tight text-foreground",
2858
+ h2: "text-3xl font-bold tracking-tight text-foreground",
2859
+ h3: "text-2xl font-bold text-foreground",
2860
+ h4: "text-xl font-bold text-foreground",
2861
+ h5: "text-lg font-bold text-foreground",
2862
+ h6: "text-base font-bold text-foreground",
2863
+ heading: "text-2xl font-bold text-foreground",
2864
+ subheading: "text-lg font-semibold text-foreground",
2865
+ body1: "text-base font-normal text-foreground",
2866
+ body2: "text-sm font-normal text-foreground",
2867
+ body: "text-base font-normal text-foreground",
2868
+ caption: "text-xs font-normal text-muted-foreground",
2869
+ overline: "text-xs uppercase tracking-wide font-bold text-muted-foreground",
2870
+ small: "text-sm font-normal text-foreground",
2871
+ large: "text-lg font-medium text-foreground",
2872
+ label: "text-sm font-medium text-foreground"
2873
2873
  };
2874
2874
  var colorStyles = {
2875
- primary: "text-[var(--color-foreground)]",
2876
- secondary: "text-[var(--color-muted-foreground)]",
2877
- muted: "text-[var(--color-muted-foreground)]",
2878
- error: "text-[var(--color-error)]",
2879
- success: "text-[var(--color-success)]",
2880
- warning: "text-[var(--color-warning)]",
2875
+ primary: "text-foreground",
2876
+ secondary: "text-muted-foreground",
2877
+ muted: "text-muted-foreground",
2878
+ error: "text-error",
2879
+ success: "text-success",
2880
+ warning: "text-warning",
2881
2881
  inherit: "text-inherit"
2882
2882
  };
2883
2883
  var weightStyles = {
@@ -3040,49 +3040,49 @@ var Icon = ({
3040
3040
  Icon.displayName = "Icon";
3041
3041
  var variantStyles2 = {
3042
3042
  primary: [
3043
- "bg-[var(--color-primary)] text-[var(--color-primary-foreground)]",
3043
+ "bg-primary text-primary-foreground",
3044
3044
  "border-none",
3045
- "shadow-[var(--shadow-sm)]",
3046
- "hover:bg-[var(--color-primary-hover)] hover:shadow-[var(--shadow-hover)]",
3047
- "active:scale-[var(--active-scale)] active:shadow-[var(--shadow-active)]"
3045
+ "shadow-sm",
3046
+ "hover:bg-primary-hover hover:shadow-lg",
3047
+ "active:scale-[var(--active-scale)] active:shadow-sm"
3048
3048
  ].join(" "),
3049
3049
  secondary: [
3050
- "bg-transparent text-[var(--color-accent)]",
3051
- "border border-[var(--color-accent)]",
3052
- "hover:bg-[var(--color-accent)] hover:text-white hover:border-[var(--color-accent)]",
3050
+ "bg-transparent text-accent",
3051
+ "border border-accent",
3052
+ "hover:bg-accent hover:text-white hover:border-accent",
3053
3053
  "active:scale-[var(--active-scale)]"
3054
3054
  ].join(" "),
3055
3055
  ghost: [
3056
- "bg-transparent text-[var(--color-muted-foreground)]",
3057
- "hover:text-[var(--color-foreground)] hover:bg-[var(--color-muted)]",
3056
+ "bg-transparent text-muted-foreground",
3057
+ "hover:text-foreground hover:bg-muted",
3058
3058
  "active:scale-[var(--active-scale)]"
3059
3059
  ].join(" "),
3060
3060
  danger: [
3061
- "bg-[var(--color-surface)] text-[var(--color-error)]",
3062
- "border-[length:var(--border-width)] border-[var(--color-error)]",
3063
- "shadow-[var(--shadow-sm)]",
3064
- "hover:bg-[var(--color-error)] hover:text-[var(--color-error-foreground)] hover:shadow-[var(--shadow-hover)]",
3065
- "active:scale-[var(--active-scale)] active:shadow-[var(--shadow-active)]"
3061
+ "bg-surface text-error",
3062
+ "border-[length:var(--border-width)] border-error",
3063
+ "shadow-sm",
3064
+ "hover:bg-error hover:text-error-foreground hover:shadow-lg",
3065
+ "active:scale-[var(--active-scale)] active:shadow-sm"
3066
3066
  ].join(" "),
3067
3067
  success: [
3068
- "bg-[var(--color-surface)] text-[var(--color-success)]",
3069
- "border-[length:var(--border-width)] border-[var(--color-success)]",
3070
- "shadow-[var(--shadow-sm)]",
3071
- "hover:bg-[var(--color-success)] hover:text-[var(--color-success-foreground)] hover:shadow-[var(--shadow-hover)]",
3072
- "active:scale-[var(--active-scale)] active:shadow-[var(--shadow-active)]"
3068
+ "bg-surface text-success",
3069
+ "border-[length:var(--border-width)] border-success",
3070
+ "shadow-sm",
3071
+ "hover:bg-success hover:text-success-foreground hover:shadow-lg",
3072
+ "active:scale-[var(--active-scale)] active:shadow-sm"
3073
3073
  ].join(" "),
3074
3074
  warning: [
3075
- "bg-[var(--color-surface)] text-[var(--color-warning)]",
3076
- "border-[length:var(--border-width)] border-[var(--color-warning)]",
3077
- "shadow-[var(--shadow-sm)]",
3078
- "hover:bg-[var(--color-warning)] hover:text-[var(--color-warning-foreground)] hover:shadow-[var(--shadow-hover)]",
3079
- "active:scale-[var(--active-scale)] active:shadow-[var(--shadow-active)]"
3075
+ "bg-surface text-warning",
3076
+ "border-[length:var(--border-width)] border-warning",
3077
+ "shadow-sm",
3078
+ "hover:bg-warning hover:text-warning-foreground hover:shadow-lg",
3079
+ "active:scale-[var(--active-scale)] active:shadow-sm"
3080
3080
  ].join(" "),
3081
3081
  // "default" is an alias for secondary
3082
3082
  default: [
3083
- "bg-[var(--color-secondary)] text-[var(--color-secondary-foreground)]",
3084
- "border-[length:var(--border-width-thin)] border-[var(--color-border)]",
3085
- "hover:bg-[var(--color-secondary-hover)]",
3083
+ "bg-secondary text-secondary-foreground",
3084
+ "border-[length:var(--border-width-thin)] border-border",
3085
+ "hover:bg-secondary-hover",
3086
3086
  "active:scale-[var(--active-scale)]"
3087
3087
  ].join(" ")
3088
3088
  };
@@ -3153,10 +3153,10 @@ var Button = React4__default.default.forwardRef(
3153
3153
  className: cn(
3154
3154
  "inline-flex items-center justify-center gap-2",
3155
3155
  "font-[var(--font-weight-medium)]",
3156
- "rounded-[var(--radius-sm)]",
3156
+ "rounded-sm",
3157
3157
  "cursor-pointer",
3158
3158
  "transition-all duration-[var(--transition-normal)]",
3159
- "focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-[var(--color-ring)] focus:ring-offset-[length:var(--focus-ring-offset)]",
3159
+ "focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-ring focus:ring-offset-[length:var(--focus-ring-offset)]",
3160
3160
  "disabled:opacity-50 disabled:cursor-not-allowed",
3161
3161
  variantStyles2[variant],
3162
3162
  sizeStyles2[size],
@@ -3177,34 +3177,34 @@ var Button = React4__default.default.forwardRef(
3177
3177
  Button.displayName = "Button";
3178
3178
  var variantStyles3 = {
3179
3179
  default: [
3180
- "bg-[var(--color-card)]",
3181
- "border-[length:var(--border-width)] border-[var(--color-border)]",
3182
- "shadow-[var(--shadow-sm)]",
3180
+ "bg-card",
3181
+ "border-[length:var(--border-width)] border-border",
3182
+ "shadow-sm",
3183
3183
  "transition-all duration-[var(--transition-normal)]",
3184
- "hover:shadow-[var(--shadow-hover)] hover:-translate-y-0.5"
3184
+ "hover:shadow-lg hover:-translate-y-0.5"
3185
3185
  ].join(" "),
3186
3186
  bordered: [
3187
- "bg-[var(--color-card)]",
3188
- "border-[length:var(--border-width)] border-[var(--color-border)]",
3189
- "shadow-[var(--shadow-sm)]",
3187
+ "bg-card",
3188
+ "border-[length:var(--border-width)] border-border",
3189
+ "shadow-sm",
3190
3190
  "transition-all duration-[var(--transition-normal)]",
3191
- "hover:shadow-[var(--shadow-hover)] hover:-translate-y-0.5"
3191
+ "hover:shadow-lg hover:-translate-y-0.5"
3192
3192
  ].join(" "),
3193
3193
  elevated: [
3194
- "bg-[var(--color-card)]",
3195
- "border-[length:var(--border-width)] border-[var(--color-border)]",
3196
- "shadow-[var(--shadow-main)]",
3194
+ "bg-card",
3195
+ "border-[length:var(--border-width)] border-border",
3196
+ "shadow",
3197
3197
  "transition-all duration-[var(--transition-normal)]",
3198
- "hover:shadow-[var(--shadow-hover)] hover:-translate-y-0.5"
3198
+ "hover:shadow-lg hover:-translate-y-0.5"
3199
3199
  ].join(" "),
3200
3200
  // Interactive variant with theme-specific hover effects
3201
3201
  interactive: [
3202
- "bg-[var(--color-card)]",
3203
- "border-[length:var(--border-width)] border-[var(--color-border)]",
3204
- "shadow-[var(--shadow-main)]",
3202
+ "bg-card",
3203
+ "border-[length:var(--border-width)] border-border",
3204
+ "shadow",
3205
3205
  "cursor-pointer",
3206
3206
  "transition-all duration-[var(--transition-normal)]",
3207
- "hover:shadow-[var(--shadow-hover)]"
3207
+ "hover:shadow-lg"
3208
3208
  ].join(" ")
3209
3209
  };
3210
3210
  var paddingStyles2 = {
@@ -3215,9 +3215,9 @@ var paddingStyles2 = {
3215
3215
  };
3216
3216
  var shadowStyles2 = {
3217
3217
  none: "shadow-none",
3218
- sm: "shadow-[var(--shadow-sm)]",
3219
- md: "shadow-[var(--shadow-main)]",
3220
- lg: "shadow-[var(--shadow-lg)]"
3218
+ sm: "shadow-sm",
3219
+ md: "shadow",
3220
+ lg: "shadow-lg"
3221
3221
  };
3222
3222
  var Card = React4__default.default.forwardRef(
3223
3223
  ({
@@ -3235,7 +3235,7 @@ var Card = React4__default.default.forwardRef(
3235
3235
  {
3236
3236
  ref,
3237
3237
  className: cn(
3238
- "rounded-[var(--radius-md)]",
3238
+ "rounded-md",
3239
3239
  "transition-all duration-[var(--transition-normal)]",
3240
3240
  variantStyles3[variant],
3241
3241
  paddingStyles2[padding],
@@ -3245,8 +3245,8 @@ var Card = React4__default.default.forwardRef(
3245
3245
  ...props,
3246
3246
  children: [
3247
3247
  (title || subtitle) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-4", children: [
3248
- title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg text-[var(--color-card-foreground)] font-[var(--font-weight-bold)]", children: title }),
3249
- subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-[var(--color-muted-foreground)] mt-1", children: subtitle })
3248
+ title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg text-card-foreground font-[var(--font-weight-bold)]", children: title }),
3249
+ subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground mt-1", children: subtitle })
3250
3250
  ] }),
3251
3251
  children
3252
3252
  ]
@@ -3262,7 +3262,7 @@ var CardTitle = React4__default.default.forwardRef(({ className, ...props }, ref
3262
3262
  {
3263
3263
  ref,
3264
3264
  className: cn(
3265
- "text-lg text-[var(--color-card-foreground)]",
3265
+ "text-lg text-card-foreground",
3266
3266
  "font-[var(--font-weight-bold)]",
3267
3267
  className
3268
3268
  ),
@@ -3299,7 +3299,7 @@ var Divider = ({
3299
3299
  "div",
3300
3300
  {
3301
3301
  className: cn(
3302
- "w-0 h-full border-l border-[var(--color-border)]",
3302
+ "w-0 h-full border-l border-border",
3303
3303
  variantStyles4[variant],
3304
3304
  className
3305
3305
  ),
@@ -3320,17 +3320,17 @@ var Divider = ({
3320
3320
  "div",
3321
3321
  {
3322
3322
  className: cn(
3323
- "flex-1 h-0 border-t border-[var(--color-border)]",
3323
+ "flex-1 h-0 border-t border-border",
3324
3324
  variantStyles4[variant]
3325
3325
  )
3326
3326
  }
3327
3327
  ),
3328
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-[var(--color-foreground)] font-bold uppercase tracking-wide", children: label }),
3328
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-foreground font-bold uppercase tracking-wide", children: label }),
3329
3329
  /* @__PURE__ */ jsxRuntime.jsx(
3330
3330
  "div",
3331
3331
  {
3332
3332
  className: cn(
3333
- "flex-1 h-0 border-t border-[var(--color-border)]",
3333
+ "flex-1 h-0 border-t border-border",
3334
3334
  variantStyles4[variant]
3335
3335
  )
3336
3336
  }
@@ -3343,7 +3343,7 @@ var Divider = ({
3343
3343
  "div",
3344
3344
  {
3345
3345
  className: cn(
3346
- "w-full h-0 border-t border-[var(--color-border)] my-4",
3346
+ "w-full h-0 border-t border-border my-4",
3347
3347
  variantStyles4[variant],
3348
3348
  className
3349
3349
  ),
@@ -3374,21 +3374,21 @@ var Input = React4__default.default.forwardRef(
3374
3374
  const resolvedLeftIcon = leftIcon || IconComponent && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { className: "h-4 w-4" });
3375
3375
  const showClearButton = clearable && value && String(value).length > 0;
3376
3376
  const baseClassName = cn(
3377
- "block w-full rounded-[var(--radius-sm)] transition-all duration-[var(--transition-fast)]",
3378
- "border-[length:var(--border-width-thin)] border-[var(--color-border)]",
3377
+ "block w-full rounded-sm transition-all duration-[var(--transition-fast)]",
3378
+ "border-[length:var(--border-width-thin)] border-border",
3379
3379
  "px-3 py-2 text-sm",
3380
- "bg-[var(--color-card)] hover:bg-[var(--color-muted)] focus:bg-[var(--color-card)]",
3381
- "text-[var(--color-foreground)] placeholder:text-[var(--color-muted-foreground)]",
3382
- "focus:outline-none focus:ring-1 focus:ring-[var(--color-ring)] focus:border-[var(--color-ring)]",
3383
- "disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-[var(--color-muted)]",
3384
- error ? "border-[var(--color-error)] focus:border-[var(--color-error)] focus:ring-[var(--color-error)]" : "",
3380
+ "bg-card hover:bg-muted focus:bg-card",
3381
+ "text-foreground placeholder:text-muted-foreground",
3382
+ "focus:outline-none focus:ring-1 focus:ring-ring focus:border-ring",
3383
+ "disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-muted",
3384
+ error ? "border-error focus:border-error focus:ring-error" : "",
3385
3385
  resolvedLeftIcon && "pl-10",
3386
3386
  (rightIcon || showClearButton) && "pr-10",
3387
3387
  className
3388
3388
  );
3389
3389
  if (type === "select") {
3390
3390
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
3391
- resolvedLeftIcon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-[var(--color-muted-foreground)]", children: resolvedLeftIcon }),
3391
+ resolvedLeftIcon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-muted-foreground", children: resolvedLeftIcon }),
3392
3392
  /* @__PURE__ */ jsxRuntime.jsxs(
3393
3393
  "select",
3394
3394
  {
@@ -3403,7 +3403,7 @@ var Input = React4__default.default.forwardRef(
3403
3403
  ]
3404
3404
  }
3405
3405
  ),
3406
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none text-[var(--color-muted-foreground)]", children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.ChevronDown, { className: "h-4 w-4" }) })
3406
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.ChevronDown, { className: "h-4 w-4" }) })
3407
3407
  ] });
3408
3408
  }
3409
3409
  if (type === "textarea") {
@@ -3428,9 +3428,9 @@ var Input = React4__default.default.forwardRef(
3428
3428
  checked: props.checked,
3429
3429
  onChange,
3430
3430
  className: cn(
3431
- "h-4 w-4 rounded-[var(--radius-sm)]",
3432
- "border-[var(--color-border)]",
3433
- "text-[var(--color-primary)] focus:ring-[var(--color-ring)]",
3431
+ "h-4 w-4 rounded-sm",
3432
+ "border-border",
3433
+ "text-primary focus:ring-ring",
3434
3434
  "disabled:opacity-50 disabled:cursor-not-allowed",
3435
3435
  className
3436
3436
  ),
@@ -3439,7 +3439,7 @@ var Input = React4__default.default.forwardRef(
3439
3439
  );
3440
3440
  }
3441
3441
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
3442
- resolvedLeftIcon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-[var(--color-muted-foreground)]", children: resolvedLeftIcon }),
3442
+ resolvedLeftIcon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-muted-foreground", children: resolvedLeftIcon }),
3443
3443
  /* @__PURE__ */ jsxRuntime.jsx(
3444
3444
  "input",
3445
3445
  {
@@ -3456,11 +3456,11 @@ var Input = React4__default.default.forwardRef(
3456
3456
  {
3457
3457
  type: "button",
3458
3458
  onClick: onClear,
3459
- className: "absolute inset-y-0 right-0 pr-3 flex items-center text-[var(--color-muted-foreground)] hover:text-[var(--color-foreground)]",
3459
+ className: "absolute inset-y-0 right-0 pr-3 flex items-center text-muted-foreground hover:text-foreground",
3460
3460
  children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.X, { className: "h-4 w-4" })
3461
3461
  }
3462
3462
  ),
3463
- rightIcon && !showClearButton && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center text-[var(--color-muted-foreground)]", children: rightIcon })
3463
+ rightIcon && !showClearButton && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center text-muted-foreground", children: rightIcon })
3464
3464
  ] });
3465
3465
  }
3466
3466
  );
@@ -3480,8 +3480,8 @@ var DocSidebarCategory = ({ item, depth }) => {
3480
3480
  gap: "sm",
3481
3481
  align: "center",
3482
3482
  className: cn(
3483
- "cursor-pointer select-none rounded-[var(--radius-sm)] px-2 py-1.5",
3484
- "hover:bg-[var(--color-muted)]",
3483
+ "cursor-pointer select-none rounded-sm px-2 py-1.5",
3484
+ "hover:bg-muted",
3485
3485
  depth > 0 && "pl-4"
3486
3486
  ),
3487
3487
  onClick: () => setExpanded((prev) => !prev),
@@ -3499,14 +3499,14 @@ var DocSidebarCategory = ({ item, depth }) => {
3499
3499
  {
3500
3500
  name: expanded ? "chevron-down" : "chevron-right",
3501
3501
  size: "xs",
3502
- className: "text-[var(--color-muted-foreground)] shrink-0"
3502
+ className: "text-muted-foreground shrink-0"
3503
3503
  }
3504
3504
  ),
3505
3505
  /* @__PURE__ */ jsxRuntime.jsx(
3506
3506
  Typography,
3507
3507
  {
3508
3508
  variant: "caption",
3509
- className: "text-xs uppercase tracking-wider text-[var(--color-muted-foreground)] font-semibold",
3509
+ className: "text-xs uppercase tracking-wider text-muted-foreground font-semibold",
3510
3510
  as: "span",
3511
3511
  children: item.label
3512
3512
  }
@@ -3521,10 +3521,10 @@ var DocSidebarCategory = ({ item, depth }) => {
3521
3521
  Box,
3522
3522
  {
3523
3523
  className: cn(
3524
- "block rounded-[var(--radius-sm)] px-3 py-1.5 text-sm transition-colors no-underline cursor-pointer",
3525
- "hover:bg-[var(--color-muted)]",
3524
+ "block rounded-sm px-3 py-1.5 text-sm transition-colors no-underline cursor-pointer",
3525
+ "hover:bg-muted",
3526
3526
  depth > 0 && "ml-2",
3527
- item.active ? "bg-[var(--color-primary)]/8 text-[var(--color-primary)] font-semibold" : "text-[var(--color-muted-foreground)]"
3527
+ item.active ? "bg-primary/8 text-primary font-semibold" : "text-muted-foreground"
3528
3528
  ),
3529
3529
  onClick: () => {
3530
3530
  if (item.href) window.location.href = item.href;
@@ -3536,7 +3536,7 @@ var DocSidebarCategory = ({ item, depth }) => {
3536
3536
  {
3537
3537
  variant: "body2",
3538
3538
  className: cn(
3539
- item.active ? "text-[var(--color-primary)] font-semibold" : "text-[var(--color-muted-foreground)]"
3539
+ item.active ? "text-primary font-semibold" : "text-muted-foreground"
3540
3540
  ),
3541
3541
  as: "span",
3542
3542
  children: item.label
@@ -3581,7 +3581,7 @@ var DocTOC = ({
3581
3581
  "block py-1.5 no-underline transition-colors border-l-2 cursor-pointer",
3582
3582
  "pl-3",
3583
3583
  indent,
3584
- isActive ? "border-l-[var(--color-primary)]" : "border-l-transparent hover:border-l-[var(--color-muted)]"
3584
+ isActive ? "border-l-primary" : "border-l-transparent hover:border-l-[var(--color-muted)]"
3585
3585
  ),
3586
3586
  onClick: () => {
3587
3587
  const el = document.getElementById(item.id);
@@ -3595,7 +3595,7 @@ var DocTOC = ({
3595
3595
  variant: "caption",
3596
3596
  className: cn(
3597
3597
  "transition-colors",
3598
- isActive ? "text-[var(--color-primary)] font-medium" : "text-[var(--color-muted-foreground)] hover:text-[var(--color-foreground)]"
3598
+ isActive ? "text-primary font-medium" : "text-muted-foreground hover:text-foreground"
3599
3599
  ),
3600
3600
  as: "span",
3601
3601
  children: item.label
@@ -3627,7 +3627,7 @@ var DocBreadcrumb = ({
3627
3627
  {
3628
3628
  name: "chevron-right",
3629
3629
  size: "xs",
3630
- className: "text-[var(--color-muted-foreground)] shrink-0"
3630
+ className: "text-muted-foreground shrink-0"
3631
3631
  }
3632
3632
  ),
3633
3633
  isLast || !item.href ? /* @__PURE__ */ jsxRuntime.jsx(
@@ -3635,7 +3635,7 @@ var DocBreadcrumb = ({
3635
3635
  {
3636
3636
  variant: "caption",
3637
3637
  className: cn(
3638
- isLast ? "text-[var(--color-foreground)] font-medium" : "text-[var(--color-muted-foreground)]"
3638
+ isLast ? "text-foreground font-medium" : "text-muted-foreground"
3639
3639
  ),
3640
3640
  as: "span",
3641
3641
  children: item.label
@@ -3653,7 +3653,7 @@ var DocBreadcrumb = ({
3653
3653
  Typography,
3654
3654
  {
3655
3655
  variant: "caption",
3656
- className: "text-[var(--color-muted-foreground)] hover:text-[var(--color-primary)] transition-colors cursor-pointer",
3656
+ className: "text-muted-foreground hover:text-primary transition-colors cursor-pointer",
3657
3657
  as: "span",
3658
3658
  children: item.label
3659
3659
  }
@@ -3685,7 +3685,7 @@ function DocCodeBlock({
3685
3685
  Box,
3686
3686
  {
3687
3687
  className: cn(
3688
- "rounded-[var(--radius-md)] border border-[var(--color-border)] overflow-hidden",
3688
+ "rounded-md border border-border overflow-hidden",
3689
3689
  className
3690
3690
  ),
3691
3691
  position: "relative",
@@ -3695,7 +3695,7 @@ function DocCodeBlock({
3695
3695
  {
3696
3696
  align: "center",
3697
3697
  justify: "between",
3698
- className: "bg-[var(--color-muted)] px-4 py-2 border-b border-[var(--color-border)]",
3698
+ className: "bg-muted px-4 py-2 border-b border-border",
3699
3699
  children: [
3700
3700
  /* @__PURE__ */ jsxRuntime.jsxs(HStack, { align: "center", gap: "sm", children: [
3701
3701
  /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "caption", color: "muted", children: title }),
@@ -3724,11 +3724,11 @@ function DocCodeBlock({
3724
3724
  children: copied ? "Copied!" : "Copy"
3725
3725
  }
3726
3726
  ) }) : null,
3727
- /* @__PURE__ */ jsxRuntime.jsxs(HStack, { gap: "none", className: "bg-[var(--color-foreground)] overflow-x-auto", children: [
3727
+ /* @__PURE__ */ jsxRuntime.jsxs(HStack, { gap: "none", className: "bg-foreground overflow-x-auto", children: [
3728
3728
  showLineNumbers ? /* @__PURE__ */ jsxRuntime.jsx(
3729
3729
  Box,
3730
3730
  {
3731
- className: "py-4 pl-4 pr-3 select-none border-r border-[var(--color-border)] flex-shrink-0",
3731
+ className: "py-4 pl-4 pr-3 select-none border-r border-border flex-shrink-0",
3732
3732
  children: lines.map((_, i) => /* @__PURE__ */ jsxRuntime.jsx(
3733
3733
  Typography,
3734
3734
  {
@@ -3747,7 +3747,7 @@ function DocCodeBlock({
3747
3747
  {
3748
3748
  as: "pre",
3749
3749
  className: cn(
3750
- "p-4 font-mono text-sm text-[var(--color-background)] leading-6 flex-1 min-w-0",
3750
+ "p-4 font-mono text-sm text-background leading-6 flex-1 min-w-0",
3751
3751
  !title && "pr-24"
3752
3752
  ),
3753
3753
  children: /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "code", className: "whitespace-pre", children: code })
@@ -3759,12 +3759,12 @@ function DocCodeBlock({
3759
3759
  );
3760
3760
  }
3761
3761
  var linkCardStyles = [
3762
- "border border-[var(--color-border)]",
3763
- "rounded-[var(--radius-md)]",
3762
+ "border border-border",
3763
+ "rounded-md",
3764
3764
  "p-4",
3765
3765
  "transition-all",
3766
- "hover:border-[var(--color-primary)]",
3767
- "hover:shadow-[var(--shadow-hover)]",
3766
+ "hover:border-primary",
3767
+ "hover:shadow-lg",
3768
3768
  "no-underline",
3769
3769
  "flex-1",
3770
3770
  "min-w-0",
@@ -3790,14 +3790,14 @@ function DocPagination({ prev, next, className }) {
3790
3790
  role: "link",
3791
3791
  tabIndex: 0,
3792
3792
  children: /* @__PURE__ */ jsxRuntime.jsxs(HStack, { align: "center", gap: "sm", children: [
3793
- /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "arrow-left", size: "md", className: "text-[var(--color-muted-foreground)] group-hover:text-[var(--color-primary)] transition-colors flex-shrink-0" }),
3793
+ /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "arrow-left", size: "md", className: "text-muted-foreground group-hover:text-primary transition-colors flex-shrink-0" }),
3794
3794
  /* @__PURE__ */ jsxRuntime.jsxs(VStack, { gap: "none", align: "start", children: [
3795
3795
  prev.category ? /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "caption", color: "muted", children: prev.category }) : null,
3796
3796
  /* @__PURE__ */ jsxRuntime.jsx(
3797
3797
  Typography,
3798
3798
  {
3799
3799
  variant: "body",
3800
- className: "group-hover:text-[var(--color-primary)] transition-colors",
3800
+ className: "group-hover:text-primary transition-colors",
3801
3801
  children: prev.label
3802
3802
  }
3803
3803
  )
@@ -3821,12 +3821,12 @@ function DocPagination({ prev, next, className }) {
3821
3821
  Typography,
3822
3822
  {
3823
3823
  variant: "body",
3824
- className: "group-hover:text-[var(--color-primary)] transition-colors",
3824
+ className: "group-hover:text-primary transition-colors",
3825
3825
  children: next.label
3826
3826
  }
3827
3827
  )
3828
3828
  ] }),
3829
- /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "arrow-right", size: "md", className: "text-[var(--color-muted-foreground)] group-hover:text-[var(--color-primary)] transition-colors flex-shrink-0" })
3829
+ /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "arrow-right", size: "md", className: "text-muted-foreground group-hover:text-primary transition-colors flex-shrink-0" })
3830
3830
  ] })
3831
3831
  }
3832
3832
  ) : /* @__PURE__ */ jsxRuntime.jsx(Box, { className: "flex-1" })
@@ -3950,7 +3950,7 @@ function DocSearch({
3950
3950
  onChange: handleChange,
3951
3951
  onFocus: handleFocus,
3952
3952
  onKeyDown: handleKeyDown,
3953
- leftIcon: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "search", size: "sm", className: "text-[var(--color-muted-foreground)]" }),
3953
+ leftIcon: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "search", size: "sm", className: "text-muted-foreground" }),
3954
3954
  clearable: query.length > 0,
3955
3955
  onClear: () => {
3956
3956
  setQuery("");
@@ -3963,15 +3963,15 @@ function DocSearch({
3963
3963
  Box,
3964
3964
  {
3965
3965
  position: "absolute",
3966
- className: "top-full left-0 right-0 mt-1 z-50 bg-[var(--color-card)] border border-[var(--color-border)] rounded-[var(--radius-md)] shadow-[var(--shadow-lg)] max-h-80 overflow-y-auto",
3966
+ className: "top-full left-0 right-0 mt-1 z-50 bg-card border border-border rounded-md shadow-lg max-h-80 overflow-y-auto",
3967
3967
  children: /* @__PURE__ */ jsxRuntime.jsx(VStack, { gap: "none", children: results.map((result, index) => /* @__PURE__ */ jsxRuntime.jsx(
3968
3968
  Box,
3969
3969
  {
3970
3970
  className: cn(
3971
3971
  "px-4 py-3 cursor-pointer transition-colors",
3972
- "hover:bg-[var(--color-muted)]",
3973
- index === activeIndex && "bg-[var(--color-muted)]",
3974
- index < results.length - 1 && "border-b border-[var(--color-border)]"
3972
+ "hover:bg-muted",
3973
+ index === activeIndex && "bg-muted",
3974
+ index < results.length - 1 && "border-b border-border"
3975
3975
  ),
3976
3976
  onClick: () => navigateTo(result.href),
3977
3977
  role: "option",