@almadar/ui 2.24.5 → 2.24.9

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,50 @@ 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-[var(--color-muted)] text-[var(--color-foreground)]",
3051
- "border-none",
3052
- "hover:bg-[var(--color-muted-foreground)]/15 hover:text-[var(--color-foreground)]",
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
+ "border border-transparent",
3058
+ "hover:text-primary-foreground hover:bg-primary hover:border-primary",
3058
3059
  "active:scale-[var(--active-scale)]"
3059
3060
  ].join(" "),
3060
3061
  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)]"
3062
+ "bg-surface text-error",
3063
+ "border-[length:var(--border-width)] border-error",
3064
+ "shadow-sm",
3065
+ "hover:bg-error hover:text-error-foreground hover:shadow-lg",
3066
+ "active:scale-[var(--active-scale)] active:shadow-sm"
3066
3067
  ].join(" "),
3067
3068
  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)]"
3069
+ "bg-surface text-success",
3070
+ "border-[length:var(--border-width)] border-success",
3071
+ "shadow-sm",
3072
+ "hover:bg-success hover:text-success-foreground hover:shadow-lg",
3073
+ "active:scale-[var(--active-scale)] active:shadow-sm"
3073
3074
  ].join(" "),
3074
3075
  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)]"
3076
+ "bg-surface text-warning",
3077
+ "border-[length:var(--border-width)] border-warning",
3078
+ "shadow-sm",
3079
+ "hover:bg-warning hover:text-warning-foreground hover:shadow-lg",
3080
+ "active:scale-[var(--active-scale)] active:shadow-sm"
3080
3081
  ].join(" "),
3081
3082
  // "default" is an alias for secondary
3082
3083
  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)]",
3084
+ "bg-secondary text-secondary-foreground",
3085
+ "border-[length:var(--border-width-thin)] border-border",
3086
+ "hover:bg-secondary-hover",
3086
3087
  "active:scale-[var(--active-scale)]"
3087
3088
  ].join(" ")
3088
3089
  };
@@ -3153,9 +3154,10 @@ var Button = React4__default.default.forwardRef(
3153
3154
  className: cn(
3154
3155
  "inline-flex items-center justify-center gap-2",
3155
3156
  "font-[var(--font-weight-medium)]",
3156
- "rounded-[var(--radius-sm)]",
3157
+ "rounded-sm",
3158
+ "cursor-pointer",
3157
3159
  "transition-all duration-[var(--transition-normal)]",
3158
- "focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-[var(--color-ring)] focus:ring-offset-[length:var(--focus-ring-offset)]",
3160
+ "focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-ring focus:ring-offset-[length:var(--focus-ring-offset)]",
3159
3161
  "disabled:opacity-50 disabled:cursor-not-allowed",
3160
3162
  variantStyles2[variant],
3161
3163
  sizeStyles2[size],
@@ -3176,34 +3178,34 @@ var Button = React4__default.default.forwardRef(
3176
3178
  Button.displayName = "Button";
3177
3179
  var variantStyles3 = {
3178
3180
  default: [
3179
- "bg-[var(--color-card)]",
3180
- "border-[length:var(--border-width)] border-[var(--color-border)]",
3181
- "shadow-[var(--shadow-sm)]",
3181
+ "bg-card",
3182
+ "border-[length:var(--border-width)] border-border",
3183
+ "shadow-sm",
3182
3184
  "transition-all duration-[var(--transition-normal)]",
3183
- "hover:shadow-[var(--shadow-hover)] hover:-translate-y-0.5"
3185
+ "hover:shadow-lg hover:-translate-y-0.5"
3184
3186
  ].join(" "),
3185
3187
  bordered: [
3186
- "bg-[var(--color-card)]",
3187
- "border-[length:var(--border-width)] border-[var(--color-border)]",
3188
- "shadow-[var(--shadow-sm)]",
3188
+ "bg-card",
3189
+ "border-[length:var(--border-width)] border-border",
3190
+ "shadow-sm",
3189
3191
  "transition-all duration-[var(--transition-normal)]",
3190
- "hover:shadow-[var(--shadow-hover)] hover:-translate-y-0.5"
3192
+ "hover:shadow-lg hover:-translate-y-0.5"
3191
3193
  ].join(" "),
3192
3194
  elevated: [
3193
- "bg-[var(--color-card)]",
3194
- "border-[length:var(--border-width)] border-[var(--color-border)]",
3195
- "shadow-[var(--shadow-main)]",
3195
+ "bg-card",
3196
+ "border-[length:var(--border-width)] border-border",
3197
+ "shadow",
3196
3198
  "transition-all duration-[var(--transition-normal)]",
3197
- "hover:shadow-[var(--shadow-hover)] hover:-translate-y-0.5"
3199
+ "hover:shadow-lg hover:-translate-y-0.5"
3198
3200
  ].join(" "),
3199
3201
  // Interactive variant with theme-specific hover effects
3200
3202
  interactive: [
3201
- "bg-[var(--color-card)]",
3202
- "border-[length:var(--border-width)] border-[var(--color-border)]",
3203
- "shadow-[var(--shadow-main)]",
3203
+ "bg-card",
3204
+ "border-[length:var(--border-width)] border-border",
3205
+ "shadow",
3204
3206
  "cursor-pointer",
3205
3207
  "transition-all duration-[var(--transition-normal)]",
3206
- "hover:shadow-[var(--shadow-hover)]"
3208
+ "hover:shadow-lg"
3207
3209
  ].join(" ")
3208
3210
  };
3209
3211
  var paddingStyles2 = {
@@ -3214,9 +3216,9 @@ var paddingStyles2 = {
3214
3216
  };
3215
3217
  var shadowStyles2 = {
3216
3218
  none: "shadow-none",
3217
- sm: "shadow-[var(--shadow-sm)]",
3218
- md: "shadow-[var(--shadow-main)]",
3219
- lg: "shadow-[var(--shadow-lg)]"
3219
+ sm: "shadow-sm",
3220
+ md: "shadow",
3221
+ lg: "shadow-lg"
3220
3222
  };
3221
3223
  var Card = React4__default.default.forwardRef(
3222
3224
  ({
@@ -3234,7 +3236,7 @@ var Card = React4__default.default.forwardRef(
3234
3236
  {
3235
3237
  ref,
3236
3238
  className: cn(
3237
- "rounded-[var(--radius-md)]",
3239
+ "rounded-md",
3238
3240
  "transition-all duration-[var(--transition-normal)]",
3239
3241
  variantStyles3[variant],
3240
3242
  paddingStyles2[padding],
@@ -3244,8 +3246,8 @@ var Card = React4__default.default.forwardRef(
3244
3246
  ...props,
3245
3247
  children: [
3246
3248
  (title || subtitle) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-4", children: [
3247
- title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg text-[var(--color-card-foreground)] font-[var(--font-weight-bold)]", children: title }),
3248
- subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-[var(--color-muted-foreground)] mt-1", children: subtitle })
3249
+ title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg text-card-foreground font-[var(--font-weight-bold)]", children: title }),
3250
+ subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground mt-1", children: subtitle })
3249
3251
  ] }),
3250
3252
  children
3251
3253
  ]
@@ -3261,7 +3263,7 @@ var CardTitle = React4__default.default.forwardRef(({ className, ...props }, ref
3261
3263
  {
3262
3264
  ref,
3263
3265
  className: cn(
3264
- "text-lg text-[var(--color-card-foreground)]",
3266
+ "text-lg text-card-foreground",
3265
3267
  "font-[var(--font-weight-bold)]",
3266
3268
  className
3267
3269
  ),
@@ -3298,7 +3300,7 @@ var Divider = ({
3298
3300
  "div",
3299
3301
  {
3300
3302
  className: cn(
3301
- "w-0 h-full border-l border-[var(--color-border)]",
3303
+ "w-0 h-full border-l border-border",
3302
3304
  variantStyles4[variant],
3303
3305
  className
3304
3306
  ),
@@ -3319,17 +3321,17 @@ var Divider = ({
3319
3321
  "div",
3320
3322
  {
3321
3323
  className: cn(
3322
- "flex-1 h-0 border-t border-[var(--color-border)]",
3324
+ "flex-1 h-0 border-t border-border",
3323
3325
  variantStyles4[variant]
3324
3326
  )
3325
3327
  }
3326
3328
  ),
3327
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-[var(--color-foreground)] font-bold uppercase tracking-wide", children: label }),
3329
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-foreground font-bold uppercase tracking-wide", children: label }),
3328
3330
  /* @__PURE__ */ jsxRuntime.jsx(
3329
3331
  "div",
3330
3332
  {
3331
3333
  className: cn(
3332
- "flex-1 h-0 border-t border-[var(--color-border)]",
3334
+ "flex-1 h-0 border-t border-border",
3333
3335
  variantStyles4[variant]
3334
3336
  )
3335
3337
  }
@@ -3342,7 +3344,7 @@ var Divider = ({
3342
3344
  "div",
3343
3345
  {
3344
3346
  className: cn(
3345
- "w-full h-0 border-t border-[var(--color-border)] my-4",
3347
+ "w-full h-0 border-t border-border my-4",
3346
3348
  variantStyles4[variant],
3347
3349
  className
3348
3350
  ),
@@ -3373,21 +3375,21 @@ var Input = React4__default.default.forwardRef(
3373
3375
  const resolvedLeftIcon = leftIcon || IconComponent && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { className: "h-4 w-4" });
3374
3376
  const showClearButton = clearable && value && String(value).length > 0;
3375
3377
  const baseClassName = cn(
3376
- "block w-full rounded-[var(--radius-sm)] transition-all duration-[var(--transition-fast)]",
3377
- "border-[length:var(--border-width-thin)] border-[var(--color-border)]",
3378
+ "block w-full rounded-sm transition-all duration-[var(--transition-fast)]",
3379
+ "border-[length:var(--border-width-thin)] border-border",
3378
3380
  "px-3 py-2 text-sm",
3379
- "bg-[var(--color-card)] hover:bg-[var(--color-muted)] focus:bg-[var(--color-card)]",
3380
- "text-[var(--color-foreground)] placeholder:text-[var(--color-muted-foreground)]",
3381
- "focus:outline-none focus:ring-1 focus:ring-[var(--color-ring)] focus:border-[var(--color-ring)]",
3382
- "disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-[var(--color-muted)]",
3383
- error ? "border-[var(--color-error)] focus:border-[var(--color-error)] focus:ring-[var(--color-error)]" : "",
3381
+ "bg-card hover:bg-muted focus:bg-card",
3382
+ "text-foreground placeholder:text-muted-foreground",
3383
+ "focus:outline-none focus:ring-1 focus:ring-ring focus:border-ring",
3384
+ "disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-muted",
3385
+ error ? "border-error focus:border-error focus:ring-error" : "",
3384
3386
  resolvedLeftIcon && "pl-10",
3385
3387
  (rightIcon || showClearButton) && "pr-10",
3386
3388
  className
3387
3389
  );
3388
3390
  if (type === "select") {
3389
3391
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
3390
- 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 }),
3392
+ 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 }),
3391
3393
  /* @__PURE__ */ jsxRuntime.jsxs(
3392
3394
  "select",
3393
3395
  {
@@ -3402,7 +3404,7 @@ var Input = React4__default.default.forwardRef(
3402
3404
  ]
3403
3405
  }
3404
3406
  ),
3405
- /* @__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" }) })
3407
+ /* @__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" }) })
3406
3408
  ] });
3407
3409
  }
3408
3410
  if (type === "textarea") {
@@ -3427,9 +3429,9 @@ var Input = React4__default.default.forwardRef(
3427
3429
  checked: props.checked,
3428
3430
  onChange,
3429
3431
  className: cn(
3430
- "h-4 w-4 rounded-[var(--radius-sm)]",
3431
- "border-[var(--color-border)]",
3432
- "text-[var(--color-primary)] focus:ring-[var(--color-ring)]",
3432
+ "h-4 w-4 rounded-sm",
3433
+ "border-border",
3434
+ "text-primary focus:ring-ring",
3433
3435
  "disabled:opacity-50 disabled:cursor-not-allowed",
3434
3436
  className
3435
3437
  ),
@@ -3438,7 +3440,7 @@ var Input = React4__default.default.forwardRef(
3438
3440
  );
3439
3441
  }
3440
3442
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
3441
- 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 }),
3443
+ 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 }),
3442
3444
  /* @__PURE__ */ jsxRuntime.jsx(
3443
3445
  "input",
3444
3446
  {
@@ -3455,11 +3457,11 @@ var Input = React4__default.default.forwardRef(
3455
3457
  {
3456
3458
  type: "button",
3457
3459
  onClick: onClear,
3458
- className: "absolute inset-y-0 right-0 pr-3 flex items-center text-[var(--color-muted-foreground)] hover:text-[var(--color-foreground)]",
3460
+ className: "absolute inset-y-0 right-0 pr-3 flex items-center text-muted-foreground hover:text-foreground",
3459
3461
  children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.X, { className: "h-4 w-4" })
3460
3462
  }
3461
3463
  ),
3462
- 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 })
3464
+ rightIcon && !showClearButton && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center text-muted-foreground", children: rightIcon })
3463
3465
  ] });
3464
3466
  }
3465
3467
  );
@@ -3479,8 +3481,8 @@ var DocSidebarCategory = ({ item, depth }) => {
3479
3481
  gap: "sm",
3480
3482
  align: "center",
3481
3483
  className: cn(
3482
- "cursor-pointer select-none rounded-[var(--radius-sm)] px-2 py-1.5",
3483
- "hover:bg-[var(--color-muted)]",
3484
+ "cursor-pointer select-none rounded-sm px-2 py-1.5",
3485
+ "hover:bg-muted",
3484
3486
  depth > 0 && "pl-4"
3485
3487
  ),
3486
3488
  onClick: () => setExpanded((prev) => !prev),
@@ -3498,14 +3500,14 @@ var DocSidebarCategory = ({ item, depth }) => {
3498
3500
  {
3499
3501
  name: expanded ? "chevron-down" : "chevron-right",
3500
3502
  size: "xs",
3501
- className: "text-[var(--color-muted-foreground)] shrink-0"
3503
+ className: "text-muted-foreground shrink-0"
3502
3504
  }
3503
3505
  ),
3504
3506
  /* @__PURE__ */ jsxRuntime.jsx(
3505
3507
  Typography,
3506
3508
  {
3507
3509
  variant: "caption",
3508
- className: "text-xs uppercase tracking-wider text-[var(--color-muted-foreground)] font-semibold",
3510
+ className: "text-xs uppercase tracking-wider text-muted-foreground font-semibold",
3509
3511
  as: "span",
3510
3512
  children: item.label
3511
3513
  }
@@ -3520,10 +3522,10 @@ var DocSidebarCategory = ({ item, depth }) => {
3520
3522
  Box,
3521
3523
  {
3522
3524
  className: cn(
3523
- "block rounded-[var(--radius-sm)] px-3 py-1.5 text-sm transition-colors no-underline cursor-pointer",
3524
- "hover:bg-[var(--color-muted)]",
3525
+ "block rounded-sm px-3 py-1.5 text-sm transition-colors no-underline cursor-pointer",
3526
+ "hover:bg-muted",
3525
3527
  depth > 0 && "ml-2",
3526
- item.active ? "bg-[var(--color-primary)]/8 text-[var(--color-primary)] font-semibold" : "text-[var(--color-muted-foreground)]"
3528
+ item.active ? "bg-primary/8 text-primary font-semibold" : "text-muted-foreground"
3527
3529
  ),
3528
3530
  onClick: () => {
3529
3531
  if (item.href) window.location.href = item.href;
@@ -3535,7 +3537,7 @@ var DocSidebarCategory = ({ item, depth }) => {
3535
3537
  {
3536
3538
  variant: "body2",
3537
3539
  className: cn(
3538
- item.active ? "text-[var(--color-primary)] font-semibold" : "text-[var(--color-muted-foreground)]"
3540
+ item.active ? "text-primary font-semibold" : "text-muted-foreground"
3539
3541
  ),
3540
3542
  as: "span",
3541
3543
  children: item.label
@@ -3580,7 +3582,7 @@ var DocTOC = ({
3580
3582
  "block py-1.5 no-underline transition-colors border-l-2 cursor-pointer",
3581
3583
  "pl-3",
3582
3584
  indent,
3583
- isActive ? "border-l-[var(--color-primary)]" : "border-l-transparent hover:border-l-[var(--color-muted)]"
3585
+ isActive ? "border-l-primary" : "border-l-transparent hover:border-l-[var(--color-muted)]"
3584
3586
  ),
3585
3587
  onClick: () => {
3586
3588
  const el = document.getElementById(item.id);
@@ -3594,7 +3596,7 @@ var DocTOC = ({
3594
3596
  variant: "caption",
3595
3597
  className: cn(
3596
3598
  "transition-colors",
3597
- isActive ? "text-[var(--color-primary)] font-medium" : "text-[var(--color-muted-foreground)] hover:text-[var(--color-foreground)]"
3599
+ isActive ? "text-primary font-medium" : "text-muted-foreground hover:text-foreground"
3598
3600
  ),
3599
3601
  as: "span",
3600
3602
  children: item.label
@@ -3626,7 +3628,7 @@ var DocBreadcrumb = ({
3626
3628
  {
3627
3629
  name: "chevron-right",
3628
3630
  size: "xs",
3629
- className: "text-[var(--color-muted-foreground)] shrink-0"
3631
+ className: "text-muted-foreground shrink-0"
3630
3632
  }
3631
3633
  ),
3632
3634
  isLast || !item.href ? /* @__PURE__ */ jsxRuntime.jsx(
@@ -3634,7 +3636,7 @@ var DocBreadcrumb = ({
3634
3636
  {
3635
3637
  variant: "caption",
3636
3638
  className: cn(
3637
- isLast ? "text-[var(--color-foreground)] font-medium" : "text-[var(--color-muted-foreground)]"
3639
+ isLast ? "text-foreground font-medium" : "text-muted-foreground"
3638
3640
  ),
3639
3641
  as: "span",
3640
3642
  children: item.label
@@ -3652,7 +3654,7 @@ var DocBreadcrumb = ({
3652
3654
  Typography,
3653
3655
  {
3654
3656
  variant: "caption",
3655
- className: "text-[var(--color-muted-foreground)] hover:text-[var(--color-primary)] transition-colors cursor-pointer",
3657
+ className: "text-muted-foreground hover:text-primary transition-colors cursor-pointer",
3656
3658
  as: "span",
3657
3659
  children: item.label
3658
3660
  }
@@ -3684,7 +3686,7 @@ function DocCodeBlock({
3684
3686
  Box,
3685
3687
  {
3686
3688
  className: cn(
3687
- "rounded-[var(--radius-md)] border border-[var(--color-border)] overflow-hidden",
3689
+ "rounded-md border border-border overflow-hidden",
3688
3690
  className
3689
3691
  ),
3690
3692
  position: "relative",
@@ -3694,7 +3696,7 @@ function DocCodeBlock({
3694
3696
  {
3695
3697
  align: "center",
3696
3698
  justify: "between",
3697
- className: "bg-[var(--color-muted)] px-4 py-2 border-b border-[var(--color-border)]",
3699
+ className: "bg-muted px-4 py-2 border-b border-border",
3698
3700
  children: [
3699
3701
  /* @__PURE__ */ jsxRuntime.jsxs(HStack, { align: "center", gap: "sm", children: [
3700
3702
  /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "caption", color: "muted", children: title }),
@@ -3723,11 +3725,11 @@ function DocCodeBlock({
3723
3725
  children: copied ? "Copied!" : "Copy"
3724
3726
  }
3725
3727
  ) }) : null,
3726
- /* @__PURE__ */ jsxRuntime.jsxs(HStack, { gap: "none", className: "bg-[var(--color-foreground)] overflow-x-auto", children: [
3728
+ /* @__PURE__ */ jsxRuntime.jsxs(HStack, { gap: "none", className: "bg-foreground overflow-x-auto", children: [
3727
3729
  showLineNumbers ? /* @__PURE__ */ jsxRuntime.jsx(
3728
3730
  Box,
3729
3731
  {
3730
- className: "py-4 pl-4 pr-3 select-none border-r border-[var(--color-border)] flex-shrink-0",
3732
+ className: "py-4 pl-4 pr-3 select-none border-r border-border flex-shrink-0",
3731
3733
  children: lines.map((_, i) => /* @__PURE__ */ jsxRuntime.jsx(
3732
3734
  Typography,
3733
3735
  {
@@ -3746,7 +3748,7 @@ function DocCodeBlock({
3746
3748
  {
3747
3749
  as: "pre",
3748
3750
  className: cn(
3749
- "p-4 font-mono text-sm text-[var(--color-background)] leading-6 flex-1 min-w-0",
3751
+ "p-4 font-mono text-sm text-background leading-6 flex-1 min-w-0",
3750
3752
  !title && "pr-24"
3751
3753
  ),
3752
3754
  children: /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "code", className: "whitespace-pre", children: code })
@@ -3758,12 +3760,12 @@ function DocCodeBlock({
3758
3760
  );
3759
3761
  }
3760
3762
  var linkCardStyles = [
3761
- "border border-[var(--color-border)]",
3762
- "rounded-[var(--radius-md)]",
3763
+ "border border-border",
3764
+ "rounded-md",
3763
3765
  "p-4",
3764
3766
  "transition-all",
3765
- "hover:border-[var(--color-primary)]",
3766
- "hover:shadow-[var(--shadow-hover)]",
3767
+ "hover:border-primary",
3768
+ "hover:shadow-lg",
3767
3769
  "no-underline",
3768
3770
  "flex-1",
3769
3771
  "min-w-0",
@@ -3789,14 +3791,14 @@ function DocPagination({ prev, next, className }) {
3789
3791
  role: "link",
3790
3792
  tabIndex: 0,
3791
3793
  children: /* @__PURE__ */ jsxRuntime.jsxs(HStack, { align: "center", gap: "sm", children: [
3792
- /* @__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" }),
3794
+ /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "arrow-left", size: "md", className: "text-muted-foreground group-hover:text-primary transition-colors flex-shrink-0" }),
3793
3795
  /* @__PURE__ */ jsxRuntime.jsxs(VStack, { gap: "none", align: "start", children: [
3794
3796
  prev.category ? /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "caption", color: "muted", children: prev.category }) : null,
3795
3797
  /* @__PURE__ */ jsxRuntime.jsx(
3796
3798
  Typography,
3797
3799
  {
3798
3800
  variant: "body",
3799
- className: "group-hover:text-[var(--color-primary)] transition-colors",
3801
+ className: "group-hover:text-primary transition-colors",
3800
3802
  children: prev.label
3801
3803
  }
3802
3804
  )
@@ -3820,12 +3822,12 @@ function DocPagination({ prev, next, className }) {
3820
3822
  Typography,
3821
3823
  {
3822
3824
  variant: "body",
3823
- className: "group-hover:text-[var(--color-primary)] transition-colors",
3825
+ className: "group-hover:text-primary transition-colors",
3824
3826
  children: next.label
3825
3827
  }
3826
3828
  )
3827
3829
  ] }),
3828
- /* @__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" })
3830
+ /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "arrow-right", size: "md", className: "text-muted-foreground group-hover:text-primary transition-colors flex-shrink-0" })
3829
3831
  ] })
3830
3832
  }
3831
3833
  ) : /* @__PURE__ */ jsxRuntime.jsx(Box, { className: "flex-1" })
@@ -3949,7 +3951,7 @@ function DocSearch({
3949
3951
  onChange: handleChange,
3950
3952
  onFocus: handleFocus,
3951
3953
  onKeyDown: handleKeyDown,
3952
- leftIcon: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "search", size: "sm", className: "text-[var(--color-muted-foreground)]" }),
3954
+ leftIcon: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "search", size: "sm", className: "text-muted-foreground" }),
3953
3955
  clearable: query.length > 0,
3954
3956
  onClear: () => {
3955
3957
  setQuery("");
@@ -3962,15 +3964,15 @@ function DocSearch({
3962
3964
  Box,
3963
3965
  {
3964
3966
  position: "absolute",
3965
- 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",
3967
+ 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",
3966
3968
  children: /* @__PURE__ */ jsxRuntime.jsx(VStack, { gap: "none", children: results.map((result, index) => /* @__PURE__ */ jsxRuntime.jsx(
3967
3969
  Box,
3968
3970
  {
3969
3971
  className: cn(
3970
3972
  "px-4 py-3 cursor-pointer transition-colors",
3971
- "hover:bg-[var(--color-muted)]",
3972
- index === activeIndex && "bg-[var(--color-muted)]",
3973
- index < results.length - 1 && "border-b border-[var(--color-border)]"
3973
+ "hover:bg-muted",
3974
+ index === activeIndex && "bg-muted",
3975
+ index < results.length - 1 && "border-b border-border"
3974
3976
  ),
3975
3977
  onClick: () => navigateTo(result.href),
3976
3978
  role: "option",