@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.
- package/dist/avl/index.cjs +43 -43
- package/dist/avl/index.js +43 -43
- package/dist/components/atoms/AnimatedGraphic.d.ts +29 -0
- package/dist/components/atoms/AnimatedReveal.d.ts +24 -0
- package/dist/components/atoms/index.d.ts +2 -0
- package/dist/components/index.cjs +2277 -1929
- package/dist/components/index.js +1415 -1069
- 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 -142
- package/dist/docs/index.js +144 -142
- 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 +457 -172
- package/dist/marketing/index.d.cts +54 -1
- package/dist/marketing/index.d.ts +4 -0
- package/dist/marketing/index.js +457 -174
- package/dist/providers/index.cjs +628 -329
- package/dist/providers/index.js +540 -241
- package/dist/runtime/index.cjs +2151 -1770
- package/dist/runtime/index.js +1392 -1011
- package/package.json +1 -1
- package/tailwind-preset.cjs +32 -134
package/dist/docs/index.js
CHANGED
|
@@ -2614,28 +2614,28 @@ var marginYStyles = {
|
|
|
2614
2614
|
};
|
|
2615
2615
|
var bgStyles = {
|
|
2616
2616
|
transparent: "bg-transparent",
|
|
2617
|
-
primary: "bg-
|
|
2618
|
-
secondary: "bg-
|
|
2619
|
-
muted: "bg-
|
|
2620
|
-
accent: "bg-
|
|
2621
|
-
surface: "bg-
|
|
2622
|
-
overlay: "bg-
|
|
2617
|
+
primary: "bg-primary text-primary-foreground",
|
|
2618
|
+
secondary: "bg-secondary text-secondary-foreground",
|
|
2619
|
+
muted: "bg-muted text-foreground",
|
|
2620
|
+
accent: "bg-accent text-accent-foreground",
|
|
2621
|
+
surface: "bg-card",
|
|
2622
|
+
overlay: "bg-card/80 backdrop-blur-sm"
|
|
2623
2623
|
};
|
|
2624
2624
|
var roundedStyles = {
|
|
2625
2625
|
none: "rounded-none",
|
|
2626
|
-
sm: "rounded-
|
|
2627
|
-
md: "rounded-
|
|
2628
|
-
lg: "rounded-
|
|
2629
|
-
xl: "rounded-
|
|
2630
|
-
"2xl": "rounded-
|
|
2631
|
-
full: "rounded-
|
|
2626
|
+
sm: "rounded-sm",
|
|
2627
|
+
md: "rounded-md",
|
|
2628
|
+
lg: "rounded-lg",
|
|
2629
|
+
xl: "rounded-xl",
|
|
2630
|
+
"2xl": "rounded-xl",
|
|
2631
|
+
full: "rounded-full"
|
|
2632
2632
|
};
|
|
2633
2633
|
var shadowStyles = {
|
|
2634
2634
|
none: "shadow-none",
|
|
2635
|
-
sm: "shadow-
|
|
2636
|
-
md: "shadow
|
|
2637
|
-
lg: "shadow-
|
|
2638
|
-
xl: "shadow-
|
|
2635
|
+
sm: "shadow-sm",
|
|
2636
|
+
md: "shadow",
|
|
2637
|
+
lg: "shadow-lg",
|
|
2638
|
+
xl: "shadow-lg"
|
|
2639
2639
|
};
|
|
2640
2640
|
var displayStyles = {
|
|
2641
2641
|
block: "block",
|
|
@@ -2723,7 +2723,7 @@ var Box = React4.forwardRef(
|
|
|
2723
2723
|
// Background
|
|
2724
2724
|
bgStyles[bg],
|
|
2725
2725
|
// Border - uses theme variables
|
|
2726
|
-
border && "border-[length:var(--border-width)] border-
|
|
2726
|
+
border && "border-[length:var(--border-width)] border-border",
|
|
2727
2727
|
// Rounded
|
|
2728
2728
|
roundedStyles[rounded],
|
|
2729
2729
|
// Shadow
|
|
@@ -2830,30 +2830,30 @@ var Stack = ({
|
|
|
2830
2830
|
var VStack = (props) => /* @__PURE__ */ jsx(Stack, { direction: "vertical", ...props });
|
|
2831
2831
|
var HStack = (props) => /* @__PURE__ */ jsx(Stack, { direction: "horizontal", ...props });
|
|
2832
2832
|
var variantStyles = {
|
|
2833
|
-
h1: "text-4xl font-bold tracking-tight text-
|
|
2834
|
-
h2: "text-3xl font-bold tracking-tight text-
|
|
2835
|
-
h3: "text-2xl font-bold text-
|
|
2836
|
-
h4: "text-xl font-bold text-
|
|
2837
|
-
h5: "text-lg font-bold text-
|
|
2838
|
-
h6: "text-base font-bold text-
|
|
2839
|
-
heading: "text-2xl font-bold text-
|
|
2840
|
-
subheading: "text-lg font-semibold text-
|
|
2841
|
-
body1: "text-base font-normal text-
|
|
2842
|
-
body2: "text-sm font-normal text-
|
|
2843
|
-
body: "text-base font-normal text-
|
|
2844
|
-
caption: "text-xs font-normal text-
|
|
2845
|
-
overline: "text-xs uppercase tracking-wide font-bold text-
|
|
2846
|
-
small: "text-sm font-normal text-
|
|
2847
|
-
large: "text-lg font-medium text-
|
|
2848
|
-
label: "text-sm font-medium text-
|
|
2833
|
+
h1: "text-4xl font-bold tracking-tight text-foreground",
|
|
2834
|
+
h2: "text-3xl font-bold tracking-tight text-foreground",
|
|
2835
|
+
h3: "text-2xl font-bold text-foreground",
|
|
2836
|
+
h4: "text-xl font-bold text-foreground",
|
|
2837
|
+
h5: "text-lg font-bold text-foreground",
|
|
2838
|
+
h6: "text-base font-bold text-foreground",
|
|
2839
|
+
heading: "text-2xl font-bold text-foreground",
|
|
2840
|
+
subheading: "text-lg font-semibold text-foreground",
|
|
2841
|
+
body1: "text-base font-normal text-foreground",
|
|
2842
|
+
body2: "text-sm font-normal text-foreground",
|
|
2843
|
+
body: "text-base font-normal text-foreground",
|
|
2844
|
+
caption: "text-xs font-normal text-muted-foreground",
|
|
2845
|
+
overline: "text-xs uppercase tracking-wide font-bold text-muted-foreground",
|
|
2846
|
+
small: "text-sm font-normal text-foreground",
|
|
2847
|
+
large: "text-lg font-medium text-foreground",
|
|
2848
|
+
label: "text-sm font-medium text-foreground"
|
|
2849
2849
|
};
|
|
2850
2850
|
var colorStyles = {
|
|
2851
|
-
primary: "text-
|
|
2852
|
-
secondary: "text-
|
|
2853
|
-
muted: "text-
|
|
2854
|
-
error: "text-
|
|
2855
|
-
success: "text-
|
|
2856
|
-
warning: "text-
|
|
2851
|
+
primary: "text-foreground",
|
|
2852
|
+
secondary: "text-muted-foreground",
|
|
2853
|
+
muted: "text-muted-foreground",
|
|
2854
|
+
error: "text-error",
|
|
2855
|
+
success: "text-success",
|
|
2856
|
+
warning: "text-warning",
|
|
2857
2857
|
inherit: "text-inherit"
|
|
2858
2858
|
};
|
|
2859
2859
|
var weightStyles = {
|
|
@@ -3016,49 +3016,50 @@ var Icon = ({
|
|
|
3016
3016
|
Icon.displayName = "Icon";
|
|
3017
3017
|
var variantStyles2 = {
|
|
3018
3018
|
primary: [
|
|
3019
|
-
"bg-
|
|
3019
|
+
"bg-primary text-primary-foreground",
|
|
3020
3020
|
"border-none",
|
|
3021
|
-
"shadow-
|
|
3022
|
-
"hover:bg-
|
|
3023
|
-
"active:scale-[var(--active-scale)] active:shadow-
|
|
3021
|
+
"shadow-sm",
|
|
3022
|
+
"hover:bg-primary-hover hover:shadow-lg",
|
|
3023
|
+
"active:scale-[var(--active-scale)] active:shadow-sm"
|
|
3024
3024
|
].join(" "),
|
|
3025
3025
|
secondary: [
|
|
3026
|
-
"bg-
|
|
3027
|
-
"border-
|
|
3028
|
-
"hover:bg-
|
|
3026
|
+
"bg-transparent text-accent",
|
|
3027
|
+
"border border-accent",
|
|
3028
|
+
"hover:bg-accent hover:text-white hover:border-accent",
|
|
3029
3029
|
"active:scale-[var(--active-scale)]"
|
|
3030
3030
|
].join(" "),
|
|
3031
3031
|
ghost: [
|
|
3032
|
-
"bg-transparent text-
|
|
3033
|
-
"
|
|
3032
|
+
"bg-transparent text-muted-foreground",
|
|
3033
|
+
"border border-transparent",
|
|
3034
|
+
"hover:text-primary-foreground hover:bg-primary hover:border-primary",
|
|
3034
3035
|
"active:scale-[var(--active-scale)]"
|
|
3035
3036
|
].join(" "),
|
|
3036
3037
|
danger: [
|
|
3037
|
-
"bg-
|
|
3038
|
-
"border-[length:var(--border-width)] border-
|
|
3039
|
-
"shadow-
|
|
3040
|
-
"hover:bg-
|
|
3041
|
-
"active:scale-[var(--active-scale)] active:shadow-
|
|
3038
|
+
"bg-surface text-error",
|
|
3039
|
+
"border-[length:var(--border-width)] border-error",
|
|
3040
|
+
"shadow-sm",
|
|
3041
|
+
"hover:bg-error hover:text-error-foreground hover:shadow-lg",
|
|
3042
|
+
"active:scale-[var(--active-scale)] active:shadow-sm"
|
|
3042
3043
|
].join(" "),
|
|
3043
3044
|
success: [
|
|
3044
|
-
"bg-
|
|
3045
|
-
"border-[length:var(--border-width)] border-
|
|
3046
|
-
"shadow-
|
|
3047
|
-
"hover:bg-
|
|
3048
|
-
"active:scale-[var(--active-scale)] active:shadow-
|
|
3045
|
+
"bg-surface text-success",
|
|
3046
|
+
"border-[length:var(--border-width)] border-success",
|
|
3047
|
+
"shadow-sm",
|
|
3048
|
+
"hover:bg-success hover:text-success-foreground hover:shadow-lg",
|
|
3049
|
+
"active:scale-[var(--active-scale)] active:shadow-sm"
|
|
3049
3050
|
].join(" "),
|
|
3050
3051
|
warning: [
|
|
3051
|
-
"bg-
|
|
3052
|
-
"border-[length:var(--border-width)] border-
|
|
3053
|
-
"shadow-
|
|
3054
|
-
"hover:bg-
|
|
3055
|
-
"active:scale-[var(--active-scale)] active:shadow-
|
|
3052
|
+
"bg-surface text-warning",
|
|
3053
|
+
"border-[length:var(--border-width)] border-warning",
|
|
3054
|
+
"shadow-sm",
|
|
3055
|
+
"hover:bg-warning hover:text-warning-foreground hover:shadow-lg",
|
|
3056
|
+
"active:scale-[var(--active-scale)] active:shadow-sm"
|
|
3056
3057
|
].join(" "),
|
|
3057
3058
|
// "default" is an alias for secondary
|
|
3058
3059
|
default: [
|
|
3059
|
-
"bg-
|
|
3060
|
-
"border-[length:var(--border-width-thin)] border-
|
|
3061
|
-
"hover:bg-
|
|
3060
|
+
"bg-secondary text-secondary-foreground",
|
|
3061
|
+
"border-[length:var(--border-width-thin)] border-border",
|
|
3062
|
+
"hover:bg-secondary-hover",
|
|
3062
3063
|
"active:scale-[var(--active-scale)]"
|
|
3063
3064
|
].join(" ")
|
|
3064
3065
|
};
|
|
@@ -3129,9 +3130,10 @@ var Button = React4.forwardRef(
|
|
|
3129
3130
|
className: cn(
|
|
3130
3131
|
"inline-flex items-center justify-center gap-2",
|
|
3131
3132
|
"font-[var(--font-weight-medium)]",
|
|
3132
|
-
"rounded-
|
|
3133
|
+
"rounded-sm",
|
|
3134
|
+
"cursor-pointer",
|
|
3133
3135
|
"transition-all duration-[var(--transition-normal)]",
|
|
3134
|
-
"focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-
|
|
3136
|
+
"focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-ring focus:ring-offset-[length:var(--focus-ring-offset)]",
|
|
3135
3137
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
3136
3138
|
variantStyles2[variant],
|
|
3137
3139
|
sizeStyles2[size],
|
|
@@ -3152,34 +3154,34 @@ var Button = React4.forwardRef(
|
|
|
3152
3154
|
Button.displayName = "Button";
|
|
3153
3155
|
var variantStyles3 = {
|
|
3154
3156
|
default: [
|
|
3155
|
-
"bg-
|
|
3156
|
-
"border-[length:var(--border-width)] border-
|
|
3157
|
-
"shadow-
|
|
3157
|
+
"bg-card",
|
|
3158
|
+
"border-[length:var(--border-width)] border-border",
|
|
3159
|
+
"shadow-sm",
|
|
3158
3160
|
"transition-all duration-[var(--transition-normal)]",
|
|
3159
|
-
"hover:shadow-
|
|
3161
|
+
"hover:shadow-lg hover:-translate-y-0.5"
|
|
3160
3162
|
].join(" "),
|
|
3161
3163
|
bordered: [
|
|
3162
|
-
"bg-
|
|
3163
|
-
"border-[length:var(--border-width)] border-
|
|
3164
|
-
"shadow-
|
|
3164
|
+
"bg-card",
|
|
3165
|
+
"border-[length:var(--border-width)] border-border",
|
|
3166
|
+
"shadow-sm",
|
|
3165
3167
|
"transition-all duration-[var(--transition-normal)]",
|
|
3166
|
-
"hover:shadow-
|
|
3168
|
+
"hover:shadow-lg hover:-translate-y-0.5"
|
|
3167
3169
|
].join(" "),
|
|
3168
3170
|
elevated: [
|
|
3169
|
-
"bg-
|
|
3170
|
-
"border-[length:var(--border-width)] border-
|
|
3171
|
-
"shadow
|
|
3171
|
+
"bg-card",
|
|
3172
|
+
"border-[length:var(--border-width)] border-border",
|
|
3173
|
+
"shadow",
|
|
3172
3174
|
"transition-all duration-[var(--transition-normal)]",
|
|
3173
|
-
"hover:shadow-
|
|
3175
|
+
"hover:shadow-lg hover:-translate-y-0.5"
|
|
3174
3176
|
].join(" "),
|
|
3175
3177
|
// Interactive variant with theme-specific hover effects
|
|
3176
3178
|
interactive: [
|
|
3177
|
-
"bg-
|
|
3178
|
-
"border-[length:var(--border-width)] border-
|
|
3179
|
-
"shadow
|
|
3179
|
+
"bg-card",
|
|
3180
|
+
"border-[length:var(--border-width)] border-border",
|
|
3181
|
+
"shadow",
|
|
3180
3182
|
"cursor-pointer",
|
|
3181
3183
|
"transition-all duration-[var(--transition-normal)]",
|
|
3182
|
-
"hover:shadow-
|
|
3184
|
+
"hover:shadow-lg"
|
|
3183
3185
|
].join(" ")
|
|
3184
3186
|
};
|
|
3185
3187
|
var paddingStyles2 = {
|
|
@@ -3190,9 +3192,9 @@ var paddingStyles2 = {
|
|
|
3190
3192
|
};
|
|
3191
3193
|
var shadowStyles2 = {
|
|
3192
3194
|
none: "shadow-none",
|
|
3193
|
-
sm: "shadow-
|
|
3194
|
-
md: "shadow
|
|
3195
|
-
lg: "shadow-
|
|
3195
|
+
sm: "shadow-sm",
|
|
3196
|
+
md: "shadow",
|
|
3197
|
+
lg: "shadow-lg"
|
|
3196
3198
|
};
|
|
3197
3199
|
var Card = React4.forwardRef(
|
|
3198
3200
|
({
|
|
@@ -3210,7 +3212,7 @@ var Card = React4.forwardRef(
|
|
|
3210
3212
|
{
|
|
3211
3213
|
ref,
|
|
3212
3214
|
className: cn(
|
|
3213
|
-
"rounded-
|
|
3215
|
+
"rounded-md",
|
|
3214
3216
|
"transition-all duration-[var(--transition-normal)]",
|
|
3215
3217
|
variantStyles3[variant],
|
|
3216
3218
|
paddingStyles2[padding],
|
|
@@ -3220,8 +3222,8 @@ var Card = React4.forwardRef(
|
|
|
3220
3222
|
...props,
|
|
3221
3223
|
children: [
|
|
3222
3224
|
(title || subtitle) && /* @__PURE__ */ jsxs("div", { className: "mb-4", children: [
|
|
3223
|
-
title && /* @__PURE__ */ jsx("h3", { className: "text-lg text-
|
|
3224
|
-
subtitle && /* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
3225
|
+
title && /* @__PURE__ */ jsx("h3", { className: "text-lg text-card-foreground font-[var(--font-weight-bold)]", children: title }),
|
|
3226
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground mt-1", children: subtitle })
|
|
3225
3227
|
] }),
|
|
3226
3228
|
children
|
|
3227
3229
|
]
|
|
@@ -3237,7 +3239,7 @@ var CardTitle = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
3237
3239
|
{
|
|
3238
3240
|
ref,
|
|
3239
3241
|
className: cn(
|
|
3240
|
-
"text-lg text-
|
|
3242
|
+
"text-lg text-card-foreground",
|
|
3241
3243
|
"font-[var(--font-weight-bold)]",
|
|
3242
3244
|
className
|
|
3243
3245
|
),
|
|
@@ -3274,7 +3276,7 @@ var Divider = ({
|
|
|
3274
3276
|
"div",
|
|
3275
3277
|
{
|
|
3276
3278
|
className: cn(
|
|
3277
|
-
"w-0 h-full border-l border-
|
|
3279
|
+
"w-0 h-full border-l border-border",
|
|
3278
3280
|
variantStyles4[variant],
|
|
3279
3281
|
className
|
|
3280
3282
|
),
|
|
@@ -3295,17 +3297,17 @@ var Divider = ({
|
|
|
3295
3297
|
"div",
|
|
3296
3298
|
{
|
|
3297
3299
|
className: cn(
|
|
3298
|
-
"flex-1 h-0 border-t border-
|
|
3300
|
+
"flex-1 h-0 border-t border-border",
|
|
3299
3301
|
variantStyles4[variant]
|
|
3300
3302
|
)
|
|
3301
3303
|
}
|
|
3302
3304
|
),
|
|
3303
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm text-
|
|
3305
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm text-foreground font-bold uppercase tracking-wide", children: label }),
|
|
3304
3306
|
/* @__PURE__ */ jsx(
|
|
3305
3307
|
"div",
|
|
3306
3308
|
{
|
|
3307
3309
|
className: cn(
|
|
3308
|
-
"flex-1 h-0 border-t border-
|
|
3310
|
+
"flex-1 h-0 border-t border-border",
|
|
3309
3311
|
variantStyles4[variant]
|
|
3310
3312
|
)
|
|
3311
3313
|
}
|
|
@@ -3318,7 +3320,7 @@ var Divider = ({
|
|
|
3318
3320
|
"div",
|
|
3319
3321
|
{
|
|
3320
3322
|
className: cn(
|
|
3321
|
-
"w-full h-0 border-t border-
|
|
3323
|
+
"w-full h-0 border-t border-border my-4",
|
|
3322
3324
|
variantStyles4[variant],
|
|
3323
3325
|
className
|
|
3324
3326
|
),
|
|
@@ -3349,21 +3351,21 @@ var Input = React4.forwardRef(
|
|
|
3349
3351
|
const resolvedLeftIcon = leftIcon || IconComponent && /* @__PURE__ */ jsx(IconComponent, { className: "h-4 w-4" });
|
|
3350
3352
|
const showClearButton = clearable && value && String(value).length > 0;
|
|
3351
3353
|
const baseClassName = cn(
|
|
3352
|
-
"block w-full rounded-
|
|
3353
|
-
"border-[length:var(--border-width-thin)] border-
|
|
3354
|
+
"block w-full rounded-sm transition-all duration-[var(--transition-fast)]",
|
|
3355
|
+
"border-[length:var(--border-width-thin)] border-border",
|
|
3354
3356
|
"px-3 py-2 text-sm",
|
|
3355
|
-
"bg-
|
|
3356
|
-
"text-
|
|
3357
|
-
"focus:outline-none focus:ring-1 focus:ring-
|
|
3358
|
-
"disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-
|
|
3359
|
-
error ? "border-
|
|
3357
|
+
"bg-card hover:bg-muted focus:bg-card",
|
|
3358
|
+
"text-foreground placeholder:text-muted-foreground",
|
|
3359
|
+
"focus:outline-none focus:ring-1 focus:ring-ring focus:border-ring",
|
|
3360
|
+
"disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-muted",
|
|
3361
|
+
error ? "border-error focus:border-error focus:ring-error" : "",
|
|
3360
3362
|
resolvedLeftIcon && "pl-10",
|
|
3361
3363
|
(rightIcon || showClearButton) && "pr-10",
|
|
3362
3364
|
className
|
|
3363
3365
|
);
|
|
3364
3366
|
if (type === "select") {
|
|
3365
3367
|
return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
3366
|
-
resolvedLeftIcon && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-
|
|
3368
|
+
resolvedLeftIcon && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-muted-foreground", children: resolvedLeftIcon }),
|
|
3367
3369
|
/* @__PURE__ */ jsxs(
|
|
3368
3370
|
"select",
|
|
3369
3371
|
{
|
|
@@ -3378,7 +3380,7 @@ var Input = React4.forwardRef(
|
|
|
3378
3380
|
]
|
|
3379
3381
|
}
|
|
3380
3382
|
),
|
|
3381
|
-
/* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none text-
|
|
3383
|
+
/* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none text-muted-foreground", children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4" }) })
|
|
3382
3384
|
] });
|
|
3383
3385
|
}
|
|
3384
3386
|
if (type === "textarea") {
|
|
@@ -3403,9 +3405,9 @@ var Input = React4.forwardRef(
|
|
|
3403
3405
|
checked: props.checked,
|
|
3404
3406
|
onChange,
|
|
3405
3407
|
className: cn(
|
|
3406
|
-
"h-4 w-4 rounded-
|
|
3407
|
-
"border-
|
|
3408
|
-
"text-
|
|
3408
|
+
"h-4 w-4 rounded-sm",
|
|
3409
|
+
"border-border",
|
|
3410
|
+
"text-primary focus:ring-ring",
|
|
3409
3411
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
3410
3412
|
className
|
|
3411
3413
|
),
|
|
@@ -3414,7 +3416,7 @@ var Input = React4.forwardRef(
|
|
|
3414
3416
|
);
|
|
3415
3417
|
}
|
|
3416
3418
|
return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
3417
|
-
resolvedLeftIcon && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-
|
|
3419
|
+
resolvedLeftIcon && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-muted-foreground", children: resolvedLeftIcon }),
|
|
3418
3420
|
/* @__PURE__ */ jsx(
|
|
3419
3421
|
"input",
|
|
3420
3422
|
{
|
|
@@ -3431,11 +3433,11 @@ var Input = React4.forwardRef(
|
|
|
3431
3433
|
{
|
|
3432
3434
|
type: "button",
|
|
3433
3435
|
onClick: onClear,
|
|
3434
|
-
className: "absolute inset-y-0 right-0 pr-3 flex items-center text-
|
|
3436
|
+
className: "absolute inset-y-0 right-0 pr-3 flex items-center text-muted-foreground hover:text-foreground",
|
|
3435
3437
|
children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4" })
|
|
3436
3438
|
}
|
|
3437
3439
|
),
|
|
3438
|
-
rightIcon && !showClearButton && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center text-
|
|
3440
|
+
rightIcon && !showClearButton && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center text-muted-foreground", children: rightIcon })
|
|
3439
3441
|
] });
|
|
3440
3442
|
}
|
|
3441
3443
|
);
|
|
@@ -3455,8 +3457,8 @@ var DocSidebarCategory = ({ item, depth }) => {
|
|
|
3455
3457
|
gap: "sm",
|
|
3456
3458
|
align: "center",
|
|
3457
3459
|
className: cn(
|
|
3458
|
-
"cursor-pointer select-none rounded-
|
|
3459
|
-
"hover:bg-
|
|
3460
|
+
"cursor-pointer select-none rounded-sm px-2 py-1.5",
|
|
3461
|
+
"hover:bg-muted",
|
|
3460
3462
|
depth > 0 && "pl-4"
|
|
3461
3463
|
),
|
|
3462
3464
|
onClick: () => setExpanded((prev) => !prev),
|
|
@@ -3474,14 +3476,14 @@ var DocSidebarCategory = ({ item, depth }) => {
|
|
|
3474
3476
|
{
|
|
3475
3477
|
name: expanded ? "chevron-down" : "chevron-right",
|
|
3476
3478
|
size: "xs",
|
|
3477
|
-
className: "text-
|
|
3479
|
+
className: "text-muted-foreground shrink-0"
|
|
3478
3480
|
}
|
|
3479
3481
|
),
|
|
3480
3482
|
/* @__PURE__ */ jsx(
|
|
3481
3483
|
Typography,
|
|
3482
3484
|
{
|
|
3483
3485
|
variant: "caption",
|
|
3484
|
-
className: "text-xs uppercase tracking-wider text-
|
|
3486
|
+
className: "text-xs uppercase tracking-wider text-muted-foreground font-semibold",
|
|
3485
3487
|
as: "span",
|
|
3486
3488
|
children: item.label
|
|
3487
3489
|
}
|
|
@@ -3496,10 +3498,10 @@ var DocSidebarCategory = ({ item, depth }) => {
|
|
|
3496
3498
|
Box,
|
|
3497
3499
|
{
|
|
3498
3500
|
className: cn(
|
|
3499
|
-
"block rounded-
|
|
3500
|
-
"hover:bg-
|
|
3501
|
+
"block rounded-sm px-3 py-1.5 text-sm transition-colors no-underline cursor-pointer",
|
|
3502
|
+
"hover:bg-muted",
|
|
3501
3503
|
depth > 0 && "ml-2",
|
|
3502
|
-
item.active ? "bg-
|
|
3504
|
+
item.active ? "bg-primary/8 text-primary font-semibold" : "text-muted-foreground"
|
|
3503
3505
|
),
|
|
3504
3506
|
onClick: () => {
|
|
3505
3507
|
if (item.href) window.location.href = item.href;
|
|
@@ -3511,7 +3513,7 @@ var DocSidebarCategory = ({ item, depth }) => {
|
|
|
3511
3513
|
{
|
|
3512
3514
|
variant: "body2",
|
|
3513
3515
|
className: cn(
|
|
3514
|
-
item.active ? "text-
|
|
3516
|
+
item.active ? "text-primary font-semibold" : "text-muted-foreground"
|
|
3515
3517
|
),
|
|
3516
3518
|
as: "span",
|
|
3517
3519
|
children: item.label
|
|
@@ -3556,7 +3558,7 @@ var DocTOC = ({
|
|
|
3556
3558
|
"block py-1.5 no-underline transition-colors border-l-2 cursor-pointer",
|
|
3557
3559
|
"pl-3",
|
|
3558
3560
|
indent,
|
|
3559
|
-
isActive ? "border-l-
|
|
3561
|
+
isActive ? "border-l-primary" : "border-l-transparent hover:border-l-[var(--color-muted)]"
|
|
3560
3562
|
),
|
|
3561
3563
|
onClick: () => {
|
|
3562
3564
|
const el = document.getElementById(item.id);
|
|
@@ -3570,7 +3572,7 @@ var DocTOC = ({
|
|
|
3570
3572
|
variant: "caption",
|
|
3571
3573
|
className: cn(
|
|
3572
3574
|
"transition-colors",
|
|
3573
|
-
isActive ? "text-
|
|
3575
|
+
isActive ? "text-primary font-medium" : "text-muted-foreground hover:text-foreground"
|
|
3574
3576
|
),
|
|
3575
3577
|
as: "span",
|
|
3576
3578
|
children: item.label
|
|
@@ -3602,7 +3604,7 @@ var DocBreadcrumb = ({
|
|
|
3602
3604
|
{
|
|
3603
3605
|
name: "chevron-right",
|
|
3604
3606
|
size: "xs",
|
|
3605
|
-
className: "text-
|
|
3607
|
+
className: "text-muted-foreground shrink-0"
|
|
3606
3608
|
}
|
|
3607
3609
|
),
|
|
3608
3610
|
isLast || !item.href ? /* @__PURE__ */ jsx(
|
|
@@ -3610,7 +3612,7 @@ var DocBreadcrumb = ({
|
|
|
3610
3612
|
{
|
|
3611
3613
|
variant: "caption",
|
|
3612
3614
|
className: cn(
|
|
3613
|
-
isLast ? "text-
|
|
3615
|
+
isLast ? "text-foreground font-medium" : "text-muted-foreground"
|
|
3614
3616
|
),
|
|
3615
3617
|
as: "span",
|
|
3616
3618
|
children: item.label
|
|
@@ -3628,7 +3630,7 @@ var DocBreadcrumb = ({
|
|
|
3628
3630
|
Typography,
|
|
3629
3631
|
{
|
|
3630
3632
|
variant: "caption",
|
|
3631
|
-
className: "text-
|
|
3633
|
+
className: "text-muted-foreground hover:text-primary transition-colors cursor-pointer",
|
|
3632
3634
|
as: "span",
|
|
3633
3635
|
children: item.label
|
|
3634
3636
|
}
|
|
@@ -3660,7 +3662,7 @@ function DocCodeBlock({
|
|
|
3660
3662
|
Box,
|
|
3661
3663
|
{
|
|
3662
3664
|
className: cn(
|
|
3663
|
-
"rounded-
|
|
3665
|
+
"rounded-md border border-border overflow-hidden",
|
|
3664
3666
|
className
|
|
3665
3667
|
),
|
|
3666
3668
|
position: "relative",
|
|
@@ -3670,7 +3672,7 @@ function DocCodeBlock({
|
|
|
3670
3672
|
{
|
|
3671
3673
|
align: "center",
|
|
3672
3674
|
justify: "between",
|
|
3673
|
-
className: "bg-
|
|
3675
|
+
className: "bg-muted px-4 py-2 border-b border-border",
|
|
3674
3676
|
children: [
|
|
3675
3677
|
/* @__PURE__ */ jsxs(HStack, { align: "center", gap: "sm", children: [
|
|
3676
3678
|
/* @__PURE__ */ jsx(Typography, { variant: "caption", color: "muted", children: title }),
|
|
@@ -3699,11 +3701,11 @@ function DocCodeBlock({
|
|
|
3699
3701
|
children: copied ? "Copied!" : "Copy"
|
|
3700
3702
|
}
|
|
3701
3703
|
) }) : null,
|
|
3702
|
-
/* @__PURE__ */ jsxs(HStack, { gap: "none", className: "bg-
|
|
3704
|
+
/* @__PURE__ */ jsxs(HStack, { gap: "none", className: "bg-foreground overflow-x-auto", children: [
|
|
3703
3705
|
showLineNumbers ? /* @__PURE__ */ jsx(
|
|
3704
3706
|
Box,
|
|
3705
3707
|
{
|
|
3706
|
-
className: "py-4 pl-4 pr-3 select-none border-r border-
|
|
3708
|
+
className: "py-4 pl-4 pr-3 select-none border-r border-border flex-shrink-0",
|
|
3707
3709
|
children: lines.map((_, i) => /* @__PURE__ */ jsx(
|
|
3708
3710
|
Typography,
|
|
3709
3711
|
{
|
|
@@ -3722,7 +3724,7 @@ function DocCodeBlock({
|
|
|
3722
3724
|
{
|
|
3723
3725
|
as: "pre",
|
|
3724
3726
|
className: cn(
|
|
3725
|
-
"p-4 font-mono text-sm text-
|
|
3727
|
+
"p-4 font-mono text-sm text-background leading-6 flex-1 min-w-0",
|
|
3726
3728
|
!title && "pr-24"
|
|
3727
3729
|
),
|
|
3728
3730
|
children: /* @__PURE__ */ jsx(Box, { as: "code", className: "whitespace-pre", children: code })
|
|
@@ -3734,12 +3736,12 @@ function DocCodeBlock({
|
|
|
3734
3736
|
);
|
|
3735
3737
|
}
|
|
3736
3738
|
var linkCardStyles = [
|
|
3737
|
-
"border border-
|
|
3738
|
-
"rounded-
|
|
3739
|
+
"border border-border",
|
|
3740
|
+
"rounded-md",
|
|
3739
3741
|
"p-4",
|
|
3740
3742
|
"transition-all",
|
|
3741
|
-
"hover:border-
|
|
3742
|
-
"hover:shadow-
|
|
3743
|
+
"hover:border-primary",
|
|
3744
|
+
"hover:shadow-lg",
|
|
3743
3745
|
"no-underline",
|
|
3744
3746
|
"flex-1",
|
|
3745
3747
|
"min-w-0",
|
|
@@ -3765,14 +3767,14 @@ function DocPagination({ prev, next, className }) {
|
|
|
3765
3767
|
role: "link",
|
|
3766
3768
|
tabIndex: 0,
|
|
3767
3769
|
children: /* @__PURE__ */ jsxs(HStack, { align: "center", gap: "sm", children: [
|
|
3768
|
-
/* @__PURE__ */ jsx(Icon, { name: "arrow-left", size: "md", className: "text-
|
|
3770
|
+
/* @__PURE__ */ jsx(Icon, { name: "arrow-left", size: "md", className: "text-muted-foreground group-hover:text-primary transition-colors flex-shrink-0" }),
|
|
3769
3771
|
/* @__PURE__ */ jsxs(VStack, { gap: "none", align: "start", children: [
|
|
3770
3772
|
prev.category ? /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "muted", children: prev.category }) : null,
|
|
3771
3773
|
/* @__PURE__ */ jsx(
|
|
3772
3774
|
Typography,
|
|
3773
3775
|
{
|
|
3774
3776
|
variant: "body",
|
|
3775
|
-
className: "group-hover:text-
|
|
3777
|
+
className: "group-hover:text-primary transition-colors",
|
|
3776
3778
|
children: prev.label
|
|
3777
3779
|
}
|
|
3778
3780
|
)
|
|
@@ -3796,12 +3798,12 @@ function DocPagination({ prev, next, className }) {
|
|
|
3796
3798
|
Typography,
|
|
3797
3799
|
{
|
|
3798
3800
|
variant: "body",
|
|
3799
|
-
className: "group-hover:text-
|
|
3801
|
+
className: "group-hover:text-primary transition-colors",
|
|
3800
3802
|
children: next.label
|
|
3801
3803
|
}
|
|
3802
3804
|
)
|
|
3803
3805
|
] }),
|
|
3804
|
-
/* @__PURE__ */ jsx(Icon, { name: "arrow-right", size: "md", className: "text-
|
|
3806
|
+
/* @__PURE__ */ jsx(Icon, { name: "arrow-right", size: "md", className: "text-muted-foreground group-hover:text-primary transition-colors flex-shrink-0" })
|
|
3805
3807
|
] })
|
|
3806
3808
|
}
|
|
3807
3809
|
) : /* @__PURE__ */ jsx(Box, { className: "flex-1" })
|
|
@@ -3925,7 +3927,7 @@ function DocSearch({
|
|
|
3925
3927
|
onChange: handleChange,
|
|
3926
3928
|
onFocus: handleFocus,
|
|
3927
3929
|
onKeyDown: handleKeyDown,
|
|
3928
|
-
leftIcon: /* @__PURE__ */ jsx(Icon, { name: "search", size: "sm", className: "text-
|
|
3930
|
+
leftIcon: /* @__PURE__ */ jsx(Icon, { name: "search", size: "sm", className: "text-muted-foreground" }),
|
|
3929
3931
|
clearable: query.length > 0,
|
|
3930
3932
|
onClear: () => {
|
|
3931
3933
|
setQuery("");
|
|
@@ -3938,15 +3940,15 @@ function DocSearch({
|
|
|
3938
3940
|
Box,
|
|
3939
3941
|
{
|
|
3940
3942
|
position: "absolute",
|
|
3941
|
-
className: "top-full left-0 right-0 mt-1 z-50 bg-
|
|
3943
|
+
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",
|
|
3942
3944
|
children: /* @__PURE__ */ jsx(VStack, { gap: "none", children: results.map((result, index) => /* @__PURE__ */ jsx(
|
|
3943
3945
|
Box,
|
|
3944
3946
|
{
|
|
3945
3947
|
className: cn(
|
|
3946
3948
|
"px-4 py-3 cursor-pointer transition-colors",
|
|
3947
|
-
"hover:bg-
|
|
3948
|
-
index === activeIndex && "bg-
|
|
3949
|
-
index < results.length - 1 && "border-b border-
|
|
3949
|
+
"hover:bg-muted",
|
|
3950
|
+
index === activeIndex && "bg-muted",
|
|
3951
|
+
index < results.length - 1 && "border-b border-border"
|
|
3950
3952
|
),
|
|
3951
3953
|
onClick: () => navigateTo(result.href),
|
|
3952
3954
|
role: "option",
|