@almadar/ui 2.24.4 → 2.24.8
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/avl/index.cjs +43 -43
- package/dist/avl/index.js +43 -43
- package/dist/components/index.cjs +996 -930
- package/dist/components/index.js +996 -930
- package/dist/components/organisms/debug/RuntimeDebugger.d.ts +2 -2
- package/dist/components/organisms/game/three/index.cjs +41 -41
- package/dist/components/organisms/game/three/index.js +41 -41
- package/dist/docs/index.cjs +144 -141
- package/dist/docs/index.js +144 -141
- package/dist/illustrations/index.cjs +17 -17
- package/dist/illustrations/index.js +17 -17
- package/dist/lib/index.cjs +62 -50
- package/dist/lib/index.js +62 -50
- package/dist/marketing/index.cjs +169 -166
- package/dist/marketing/index.js +169 -166
- package/dist/providers/index.cjs +221 -205
- package/dist/providers/index.js +221 -205
- package/dist/runtime/index.cjs +979 -881
- package/dist/runtime/index.js +979 -881
- package/package.json +1 -1
- package/tailwind-preset.cjs +32 -134
package/dist/docs/index.cjs
CHANGED
|
@@ -2638,28 +2638,28 @@ var marginYStyles = {
|
|
|
2638
2638
|
};
|
|
2639
2639
|
var bgStyles = {
|
|
2640
2640
|
transparent: "bg-transparent",
|
|
2641
|
-
primary: "bg-
|
|
2642
|
-
secondary: "bg-
|
|
2643
|
-
muted: "bg-
|
|
2644
|
-
accent: "bg-
|
|
2645
|
-
surface: "bg-
|
|
2646
|
-
overlay: "bg-
|
|
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-
|
|
2651
|
-
md: "rounded-
|
|
2652
|
-
lg: "rounded-
|
|
2653
|
-
xl: "rounded-
|
|
2654
|
-
"2xl": "rounded-
|
|
2655
|
-
full: "rounded-
|
|
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-
|
|
2660
|
-
md: "shadow
|
|
2661
|
-
lg: "shadow-
|
|
2662
|
-
xl: "shadow-
|
|
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-
|
|
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-
|
|
2858
|
-
h2: "text-3xl font-bold tracking-tight text-
|
|
2859
|
-
h3: "text-2xl font-bold text-
|
|
2860
|
-
h4: "text-xl font-bold text-
|
|
2861
|
-
h5: "text-lg font-bold text-
|
|
2862
|
-
h6: "text-base font-bold text-
|
|
2863
|
-
heading: "text-2xl font-bold text-
|
|
2864
|
-
subheading: "text-lg font-semibold text-
|
|
2865
|
-
body1: "text-base font-normal text-
|
|
2866
|
-
body2: "text-sm font-normal text-
|
|
2867
|
-
body: "text-base font-normal text-
|
|
2868
|
-
caption: "text-xs font-normal text-
|
|
2869
|
-
overline: "text-xs uppercase tracking-wide font-bold text-
|
|
2870
|
-
small: "text-sm font-normal text-
|
|
2871
|
-
large: "text-lg font-medium text-
|
|
2872
|
-
label: "text-sm font-medium text-
|
|
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-
|
|
2876
|
-
secondary: "text-
|
|
2877
|
-
muted: "text-
|
|
2878
|
-
error: "text-
|
|
2879
|
-
success: "text-
|
|
2880
|
-
warning: "text-
|
|
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-
|
|
3044
|
-
"border-
|
|
3045
|
-
"shadow-
|
|
3046
|
-
"hover:bg-
|
|
3047
|
-
"active:scale-[var(--active-scale)] active:shadow-
|
|
3043
|
+
"bg-primary text-primary-foreground",
|
|
3044
|
+
"border-none",
|
|
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-
|
|
3051
|
-
"border
|
|
3052
|
-
"hover:bg-
|
|
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-
|
|
3057
|
-
"hover:text-
|
|
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-
|
|
3062
|
-
"border-[length:var(--border-width)] border-
|
|
3063
|
-
"shadow-
|
|
3064
|
-
"hover:bg-
|
|
3065
|
-
"active:scale-[var(--active-scale)] active:shadow-
|
|
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-
|
|
3069
|
-
"border-[length:var(--border-width)] border-
|
|
3070
|
-
"shadow-
|
|
3071
|
-
"hover:bg-
|
|
3072
|
-
"active:scale-[var(--active-scale)] active:shadow-
|
|
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-
|
|
3076
|
-
"border-[length:var(--border-width)] border-
|
|
3077
|
-
"shadow-
|
|
3078
|
-
"hover:bg-
|
|
3079
|
-
"active:scale-[var(--active-scale)] active:shadow-
|
|
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-
|
|
3084
|
-
"border-[length:var(--border-width-thin)] border-
|
|
3085
|
-
"hover:bg-
|
|
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,9 +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-
|
|
3156
|
+
"rounded-sm",
|
|
3157
|
+
"cursor-pointer",
|
|
3157
3158
|
"transition-all duration-[var(--transition-normal)]",
|
|
3158
|
-
"focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-
|
|
3159
|
+
"focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-ring focus:ring-offset-[length:var(--focus-ring-offset)]",
|
|
3159
3160
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
3160
3161
|
variantStyles2[variant],
|
|
3161
3162
|
sizeStyles2[size],
|
|
@@ -3176,32 +3177,34 @@ var Button = React4__default.default.forwardRef(
|
|
|
3176
3177
|
Button.displayName = "Button";
|
|
3177
3178
|
var variantStyles3 = {
|
|
3178
3179
|
default: [
|
|
3179
|
-
"bg-
|
|
3180
|
+
"bg-card",
|
|
3181
|
+
"border-[length:var(--border-width)] border-border",
|
|
3182
|
+
"shadow-sm",
|
|
3180
3183
|
"transition-all duration-[var(--transition-normal)]",
|
|
3181
|
-
"hover:shadow-
|
|
3184
|
+
"hover:shadow-lg hover:-translate-y-0.5"
|
|
3182
3185
|
].join(" "),
|
|
3183
3186
|
bordered: [
|
|
3184
|
-
"bg-
|
|
3185
|
-
"border-[length:var(--border-width)] border-
|
|
3186
|
-
"shadow-
|
|
3187
|
+
"bg-card",
|
|
3188
|
+
"border-[length:var(--border-width)] border-border",
|
|
3189
|
+
"shadow-sm",
|
|
3187
3190
|
"transition-all duration-[var(--transition-normal)]",
|
|
3188
|
-
"hover:shadow-
|
|
3191
|
+
"hover:shadow-lg hover:-translate-y-0.5"
|
|
3189
3192
|
].join(" "),
|
|
3190
3193
|
elevated: [
|
|
3191
|
-
"bg-
|
|
3192
|
-
"border-[length:var(--border-width)] border-
|
|
3193
|
-
"shadow
|
|
3194
|
+
"bg-card",
|
|
3195
|
+
"border-[length:var(--border-width)] border-border",
|
|
3196
|
+
"shadow",
|
|
3194
3197
|
"transition-all duration-[var(--transition-normal)]",
|
|
3195
|
-
"hover:shadow-
|
|
3198
|
+
"hover:shadow-lg hover:-translate-y-0.5"
|
|
3196
3199
|
].join(" "),
|
|
3197
3200
|
// Interactive variant with theme-specific hover effects
|
|
3198
3201
|
interactive: [
|
|
3199
|
-
"bg-
|
|
3200
|
-
"border-[length:var(--border-width)] border-
|
|
3201
|
-
"shadow
|
|
3202
|
+
"bg-card",
|
|
3203
|
+
"border-[length:var(--border-width)] border-border",
|
|
3204
|
+
"shadow",
|
|
3202
3205
|
"cursor-pointer",
|
|
3203
3206
|
"transition-all duration-[var(--transition-normal)]",
|
|
3204
|
-
"hover:shadow-
|
|
3207
|
+
"hover:shadow-lg"
|
|
3205
3208
|
].join(" ")
|
|
3206
3209
|
};
|
|
3207
3210
|
var paddingStyles2 = {
|
|
@@ -3212,9 +3215,9 @@ var paddingStyles2 = {
|
|
|
3212
3215
|
};
|
|
3213
3216
|
var shadowStyles2 = {
|
|
3214
3217
|
none: "shadow-none",
|
|
3215
|
-
sm: "shadow-
|
|
3216
|
-
md: "shadow
|
|
3217
|
-
lg: "shadow-
|
|
3218
|
+
sm: "shadow-sm",
|
|
3219
|
+
md: "shadow",
|
|
3220
|
+
lg: "shadow-lg"
|
|
3218
3221
|
};
|
|
3219
3222
|
var Card = React4__default.default.forwardRef(
|
|
3220
3223
|
({
|
|
@@ -3232,7 +3235,7 @@ var Card = React4__default.default.forwardRef(
|
|
|
3232
3235
|
{
|
|
3233
3236
|
ref,
|
|
3234
3237
|
className: cn(
|
|
3235
|
-
"rounded-
|
|
3238
|
+
"rounded-md",
|
|
3236
3239
|
"transition-all duration-[var(--transition-normal)]",
|
|
3237
3240
|
variantStyles3[variant],
|
|
3238
3241
|
paddingStyles2[padding],
|
|
@@ -3242,8 +3245,8 @@ var Card = React4__default.default.forwardRef(
|
|
|
3242
3245
|
...props,
|
|
3243
3246
|
children: [
|
|
3244
3247
|
(title || subtitle) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-4", children: [
|
|
3245
|
-
title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg text-
|
|
3246
|
-
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-
|
|
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 })
|
|
3247
3250
|
] }),
|
|
3248
3251
|
children
|
|
3249
3252
|
]
|
|
@@ -3259,7 +3262,7 @@ var CardTitle = React4__default.default.forwardRef(({ className, ...props }, ref
|
|
|
3259
3262
|
{
|
|
3260
3263
|
ref,
|
|
3261
3264
|
className: cn(
|
|
3262
|
-
"text-lg text-
|
|
3265
|
+
"text-lg text-card-foreground",
|
|
3263
3266
|
"font-[var(--font-weight-bold)]",
|
|
3264
3267
|
className
|
|
3265
3268
|
),
|
|
@@ -3296,7 +3299,7 @@ var Divider = ({
|
|
|
3296
3299
|
"div",
|
|
3297
3300
|
{
|
|
3298
3301
|
className: cn(
|
|
3299
|
-
"w-0 h-full border-l border-
|
|
3302
|
+
"w-0 h-full border-l border-border",
|
|
3300
3303
|
variantStyles4[variant],
|
|
3301
3304
|
className
|
|
3302
3305
|
),
|
|
@@ -3317,17 +3320,17 @@ var Divider = ({
|
|
|
3317
3320
|
"div",
|
|
3318
3321
|
{
|
|
3319
3322
|
className: cn(
|
|
3320
|
-
"flex-1 h-0 border-t border-
|
|
3323
|
+
"flex-1 h-0 border-t border-border",
|
|
3321
3324
|
variantStyles4[variant]
|
|
3322
3325
|
)
|
|
3323
3326
|
}
|
|
3324
3327
|
),
|
|
3325
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-
|
|
3328
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-foreground font-bold uppercase tracking-wide", children: label }),
|
|
3326
3329
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3327
3330
|
"div",
|
|
3328
3331
|
{
|
|
3329
3332
|
className: cn(
|
|
3330
|
-
"flex-1 h-0 border-t border-
|
|
3333
|
+
"flex-1 h-0 border-t border-border",
|
|
3331
3334
|
variantStyles4[variant]
|
|
3332
3335
|
)
|
|
3333
3336
|
}
|
|
@@ -3340,7 +3343,7 @@ var Divider = ({
|
|
|
3340
3343
|
"div",
|
|
3341
3344
|
{
|
|
3342
3345
|
className: cn(
|
|
3343
|
-
"w-full h-0 border-t border-
|
|
3346
|
+
"w-full h-0 border-t border-border my-4",
|
|
3344
3347
|
variantStyles4[variant],
|
|
3345
3348
|
className
|
|
3346
3349
|
),
|
|
@@ -3371,21 +3374,21 @@ var Input = React4__default.default.forwardRef(
|
|
|
3371
3374
|
const resolvedLeftIcon = leftIcon || IconComponent && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { className: "h-4 w-4" });
|
|
3372
3375
|
const showClearButton = clearable && value && String(value).length > 0;
|
|
3373
3376
|
const baseClassName = cn(
|
|
3374
|
-
"block w-full rounded-
|
|
3375
|
-
"border-[length:var(--border-width-thin)] border-
|
|
3377
|
+
"block w-full rounded-sm transition-all duration-[var(--transition-fast)]",
|
|
3378
|
+
"border-[length:var(--border-width-thin)] border-border",
|
|
3376
3379
|
"px-3 py-2 text-sm",
|
|
3377
|
-
"bg-
|
|
3378
|
-
"text-
|
|
3379
|
-
"focus:outline-none focus:ring-1 focus:ring-
|
|
3380
|
-
"disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-
|
|
3381
|
-
error ? "border-
|
|
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" : "",
|
|
3382
3385
|
resolvedLeftIcon && "pl-10",
|
|
3383
3386
|
(rightIcon || showClearButton) && "pr-10",
|
|
3384
3387
|
className
|
|
3385
3388
|
);
|
|
3386
3389
|
if (type === "select") {
|
|
3387
3390
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
3388
|
-
resolvedLeftIcon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-
|
|
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 }),
|
|
3389
3392
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3390
3393
|
"select",
|
|
3391
3394
|
{
|
|
@@ -3400,7 +3403,7 @@ var Input = React4__default.default.forwardRef(
|
|
|
3400
3403
|
]
|
|
3401
3404
|
}
|
|
3402
3405
|
),
|
|
3403
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none text-
|
|
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" }) })
|
|
3404
3407
|
] });
|
|
3405
3408
|
}
|
|
3406
3409
|
if (type === "textarea") {
|
|
@@ -3425,9 +3428,9 @@ var Input = React4__default.default.forwardRef(
|
|
|
3425
3428
|
checked: props.checked,
|
|
3426
3429
|
onChange,
|
|
3427
3430
|
className: cn(
|
|
3428
|
-
"h-4 w-4 rounded-
|
|
3429
|
-
"border-
|
|
3430
|
-
"text-
|
|
3431
|
+
"h-4 w-4 rounded-sm",
|
|
3432
|
+
"border-border",
|
|
3433
|
+
"text-primary focus:ring-ring",
|
|
3431
3434
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
3432
3435
|
className
|
|
3433
3436
|
),
|
|
@@ -3436,7 +3439,7 @@ var Input = React4__default.default.forwardRef(
|
|
|
3436
3439
|
);
|
|
3437
3440
|
}
|
|
3438
3441
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
3439
|
-
resolvedLeftIcon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-
|
|
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 }),
|
|
3440
3443
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3441
3444
|
"input",
|
|
3442
3445
|
{
|
|
@@ -3453,11 +3456,11 @@ var Input = React4__default.default.forwardRef(
|
|
|
3453
3456
|
{
|
|
3454
3457
|
type: "button",
|
|
3455
3458
|
onClick: onClear,
|
|
3456
|
-
className: "absolute inset-y-0 right-0 pr-3 flex items-center text-
|
|
3459
|
+
className: "absolute inset-y-0 right-0 pr-3 flex items-center text-muted-foreground hover:text-foreground",
|
|
3457
3460
|
children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.X, { className: "h-4 w-4" })
|
|
3458
3461
|
}
|
|
3459
3462
|
),
|
|
3460
|
-
rightIcon && !showClearButton && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center text-
|
|
3463
|
+
rightIcon && !showClearButton && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center text-muted-foreground", children: rightIcon })
|
|
3461
3464
|
] });
|
|
3462
3465
|
}
|
|
3463
3466
|
);
|
|
@@ -3477,8 +3480,8 @@ var DocSidebarCategory = ({ item, depth }) => {
|
|
|
3477
3480
|
gap: "sm",
|
|
3478
3481
|
align: "center",
|
|
3479
3482
|
className: cn(
|
|
3480
|
-
"cursor-pointer select-none rounded-
|
|
3481
|
-
"hover:bg-
|
|
3483
|
+
"cursor-pointer select-none rounded-sm px-2 py-1.5",
|
|
3484
|
+
"hover:bg-muted",
|
|
3482
3485
|
depth > 0 && "pl-4"
|
|
3483
3486
|
),
|
|
3484
3487
|
onClick: () => setExpanded((prev) => !prev),
|
|
@@ -3496,14 +3499,14 @@ var DocSidebarCategory = ({ item, depth }) => {
|
|
|
3496
3499
|
{
|
|
3497
3500
|
name: expanded ? "chevron-down" : "chevron-right",
|
|
3498
3501
|
size: "xs",
|
|
3499
|
-
className: "text-
|
|
3502
|
+
className: "text-muted-foreground shrink-0"
|
|
3500
3503
|
}
|
|
3501
3504
|
),
|
|
3502
3505
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3503
3506
|
Typography,
|
|
3504
3507
|
{
|
|
3505
3508
|
variant: "caption",
|
|
3506
|
-
className: "text-xs uppercase tracking-wider text-
|
|
3509
|
+
className: "text-xs uppercase tracking-wider text-muted-foreground font-semibold",
|
|
3507
3510
|
as: "span",
|
|
3508
3511
|
children: item.label
|
|
3509
3512
|
}
|
|
@@ -3518,10 +3521,10 @@ var DocSidebarCategory = ({ item, depth }) => {
|
|
|
3518
3521
|
Box,
|
|
3519
3522
|
{
|
|
3520
3523
|
className: cn(
|
|
3521
|
-
"block rounded-
|
|
3522
|
-
"hover:bg-
|
|
3524
|
+
"block rounded-sm px-3 py-1.5 text-sm transition-colors no-underline cursor-pointer",
|
|
3525
|
+
"hover:bg-muted",
|
|
3523
3526
|
depth > 0 && "ml-2",
|
|
3524
|
-
item.active ? "bg-
|
|
3527
|
+
item.active ? "bg-primary/8 text-primary font-semibold" : "text-muted-foreground"
|
|
3525
3528
|
),
|
|
3526
3529
|
onClick: () => {
|
|
3527
3530
|
if (item.href) window.location.href = item.href;
|
|
@@ -3533,7 +3536,7 @@ var DocSidebarCategory = ({ item, depth }) => {
|
|
|
3533
3536
|
{
|
|
3534
3537
|
variant: "body2",
|
|
3535
3538
|
className: cn(
|
|
3536
|
-
item.active ? "text-
|
|
3539
|
+
item.active ? "text-primary font-semibold" : "text-muted-foreground"
|
|
3537
3540
|
),
|
|
3538
3541
|
as: "span",
|
|
3539
3542
|
children: item.label
|
|
@@ -3578,7 +3581,7 @@ var DocTOC = ({
|
|
|
3578
3581
|
"block py-1.5 no-underline transition-colors border-l-2 cursor-pointer",
|
|
3579
3582
|
"pl-3",
|
|
3580
3583
|
indent,
|
|
3581
|
-
isActive ? "border-l-
|
|
3584
|
+
isActive ? "border-l-primary" : "border-l-transparent hover:border-l-[var(--color-muted)]"
|
|
3582
3585
|
),
|
|
3583
3586
|
onClick: () => {
|
|
3584
3587
|
const el = document.getElementById(item.id);
|
|
@@ -3592,7 +3595,7 @@ var DocTOC = ({
|
|
|
3592
3595
|
variant: "caption",
|
|
3593
3596
|
className: cn(
|
|
3594
3597
|
"transition-colors",
|
|
3595
|
-
isActive ? "text-
|
|
3598
|
+
isActive ? "text-primary font-medium" : "text-muted-foreground hover:text-foreground"
|
|
3596
3599
|
),
|
|
3597
3600
|
as: "span",
|
|
3598
3601
|
children: item.label
|
|
@@ -3624,7 +3627,7 @@ var DocBreadcrumb = ({
|
|
|
3624
3627
|
{
|
|
3625
3628
|
name: "chevron-right",
|
|
3626
3629
|
size: "xs",
|
|
3627
|
-
className: "text-
|
|
3630
|
+
className: "text-muted-foreground shrink-0"
|
|
3628
3631
|
}
|
|
3629
3632
|
),
|
|
3630
3633
|
isLast || !item.href ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3632,7 +3635,7 @@ var DocBreadcrumb = ({
|
|
|
3632
3635
|
{
|
|
3633
3636
|
variant: "caption",
|
|
3634
3637
|
className: cn(
|
|
3635
|
-
isLast ? "text-
|
|
3638
|
+
isLast ? "text-foreground font-medium" : "text-muted-foreground"
|
|
3636
3639
|
),
|
|
3637
3640
|
as: "span",
|
|
3638
3641
|
children: item.label
|
|
@@ -3650,7 +3653,7 @@ var DocBreadcrumb = ({
|
|
|
3650
3653
|
Typography,
|
|
3651
3654
|
{
|
|
3652
3655
|
variant: "caption",
|
|
3653
|
-
className: "text-
|
|
3656
|
+
className: "text-muted-foreground hover:text-primary transition-colors cursor-pointer",
|
|
3654
3657
|
as: "span",
|
|
3655
3658
|
children: item.label
|
|
3656
3659
|
}
|
|
@@ -3682,7 +3685,7 @@ function DocCodeBlock({
|
|
|
3682
3685
|
Box,
|
|
3683
3686
|
{
|
|
3684
3687
|
className: cn(
|
|
3685
|
-
"rounded-
|
|
3688
|
+
"rounded-md border border-border overflow-hidden",
|
|
3686
3689
|
className
|
|
3687
3690
|
),
|
|
3688
3691
|
position: "relative",
|
|
@@ -3692,7 +3695,7 @@ function DocCodeBlock({
|
|
|
3692
3695
|
{
|
|
3693
3696
|
align: "center",
|
|
3694
3697
|
justify: "between",
|
|
3695
|
-
className: "bg-
|
|
3698
|
+
className: "bg-muted px-4 py-2 border-b border-border",
|
|
3696
3699
|
children: [
|
|
3697
3700
|
/* @__PURE__ */ jsxRuntime.jsxs(HStack, { align: "center", gap: "sm", children: [
|
|
3698
3701
|
/* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "caption", color: "muted", children: title }),
|
|
@@ -3721,11 +3724,11 @@ function DocCodeBlock({
|
|
|
3721
3724
|
children: copied ? "Copied!" : "Copy"
|
|
3722
3725
|
}
|
|
3723
3726
|
) }) : null,
|
|
3724
|
-
/* @__PURE__ */ jsxRuntime.jsxs(HStack, { gap: "none", className: "bg-
|
|
3727
|
+
/* @__PURE__ */ jsxRuntime.jsxs(HStack, { gap: "none", className: "bg-foreground overflow-x-auto", children: [
|
|
3725
3728
|
showLineNumbers ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3726
3729
|
Box,
|
|
3727
3730
|
{
|
|
3728
|
-
className: "py-4 pl-4 pr-3 select-none border-r border-
|
|
3731
|
+
className: "py-4 pl-4 pr-3 select-none border-r border-border flex-shrink-0",
|
|
3729
3732
|
children: lines.map((_, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3730
3733
|
Typography,
|
|
3731
3734
|
{
|
|
@@ -3744,7 +3747,7 @@ function DocCodeBlock({
|
|
|
3744
3747
|
{
|
|
3745
3748
|
as: "pre",
|
|
3746
3749
|
className: cn(
|
|
3747
|
-
"p-4 font-mono text-sm text-
|
|
3750
|
+
"p-4 font-mono text-sm text-background leading-6 flex-1 min-w-0",
|
|
3748
3751
|
!title && "pr-24"
|
|
3749
3752
|
),
|
|
3750
3753
|
children: /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "code", className: "whitespace-pre", children: code })
|
|
@@ -3756,12 +3759,12 @@ function DocCodeBlock({
|
|
|
3756
3759
|
);
|
|
3757
3760
|
}
|
|
3758
3761
|
var linkCardStyles = [
|
|
3759
|
-
"border border-
|
|
3760
|
-
"rounded-
|
|
3762
|
+
"border border-border",
|
|
3763
|
+
"rounded-md",
|
|
3761
3764
|
"p-4",
|
|
3762
3765
|
"transition-all",
|
|
3763
|
-
"hover:border-
|
|
3764
|
-
"hover:shadow-
|
|
3766
|
+
"hover:border-primary",
|
|
3767
|
+
"hover:shadow-lg",
|
|
3765
3768
|
"no-underline",
|
|
3766
3769
|
"flex-1",
|
|
3767
3770
|
"min-w-0",
|
|
@@ -3787,14 +3790,14 @@ function DocPagination({ prev, next, className }) {
|
|
|
3787
3790
|
role: "link",
|
|
3788
3791
|
tabIndex: 0,
|
|
3789
3792
|
children: /* @__PURE__ */ jsxRuntime.jsxs(HStack, { align: "center", gap: "sm", children: [
|
|
3790
|
-
/* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "arrow-left", size: "md", className: "text-
|
|
3793
|
+
/* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "arrow-left", size: "md", className: "text-muted-foreground group-hover:text-primary transition-colors flex-shrink-0" }),
|
|
3791
3794
|
/* @__PURE__ */ jsxRuntime.jsxs(VStack, { gap: "none", align: "start", children: [
|
|
3792
3795
|
prev.category ? /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "caption", color: "muted", children: prev.category }) : null,
|
|
3793
3796
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3794
3797
|
Typography,
|
|
3795
3798
|
{
|
|
3796
3799
|
variant: "body",
|
|
3797
|
-
className: "group-hover:text-
|
|
3800
|
+
className: "group-hover:text-primary transition-colors",
|
|
3798
3801
|
children: prev.label
|
|
3799
3802
|
}
|
|
3800
3803
|
)
|
|
@@ -3818,12 +3821,12 @@ function DocPagination({ prev, next, className }) {
|
|
|
3818
3821
|
Typography,
|
|
3819
3822
|
{
|
|
3820
3823
|
variant: "body",
|
|
3821
|
-
className: "group-hover:text-
|
|
3824
|
+
className: "group-hover:text-primary transition-colors",
|
|
3822
3825
|
children: next.label
|
|
3823
3826
|
}
|
|
3824
3827
|
)
|
|
3825
3828
|
] }),
|
|
3826
|
-
/* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "arrow-right", size: "md", className: "text-
|
|
3829
|
+
/* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "arrow-right", size: "md", className: "text-muted-foreground group-hover:text-primary transition-colors flex-shrink-0" })
|
|
3827
3830
|
] })
|
|
3828
3831
|
}
|
|
3829
3832
|
) : /* @__PURE__ */ jsxRuntime.jsx(Box, { className: "flex-1" })
|
|
@@ -3947,7 +3950,7 @@ function DocSearch({
|
|
|
3947
3950
|
onChange: handleChange,
|
|
3948
3951
|
onFocus: handleFocus,
|
|
3949
3952
|
onKeyDown: handleKeyDown,
|
|
3950
|
-
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "search", size: "sm", className: "text-
|
|
3953
|
+
leftIcon: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: "search", size: "sm", className: "text-muted-foreground" }),
|
|
3951
3954
|
clearable: query.length > 0,
|
|
3952
3955
|
onClear: () => {
|
|
3953
3956
|
setQuery("");
|
|
@@ -3960,15 +3963,15 @@ function DocSearch({
|
|
|
3960
3963
|
Box,
|
|
3961
3964
|
{
|
|
3962
3965
|
position: "absolute",
|
|
3963
|
-
className: "top-full left-0 right-0 mt-1 z-50 bg-
|
|
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",
|
|
3964
3967
|
children: /* @__PURE__ */ jsxRuntime.jsx(VStack, { gap: "none", children: results.map((result, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3965
3968
|
Box,
|
|
3966
3969
|
{
|
|
3967
3970
|
className: cn(
|
|
3968
3971
|
"px-4 py-3 cursor-pointer transition-colors",
|
|
3969
|
-
"hover:bg-
|
|
3970
|
-
index === activeIndex && "bg-
|
|
3971
|
-
index < results.length - 1 && "border-b border-
|
|
3972
|
+
"hover:bg-muted",
|
|
3973
|
+
index === activeIndex && "bg-muted",
|
|
3974
|
+
index < results.length - 1 && "border-b border-border"
|
|
3972
3975
|
),
|
|
3973
3976
|
onClick: () => navigateTo(result.href),
|
|
3974
3977
|
role: "option",
|