@almadar/ui 2.24.5 → 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 +995 -931
- package/dist/components/index.js +995 -931
- 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 +143 -142
- package/dist/docs/index.js +143 -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 +168 -167
- package/dist/marketing/index.js +168 -167
- package/dist/providers/index.cjs +220 -206
- package/dist/providers/index.js +220 -206
- package/dist/runtime/index.cjs +978 -882
- package/dist/runtime/index.js +978 -882
- 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,49 @@ 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
|
-
"hover:text-
|
|
3032
|
+
"bg-transparent text-muted-foreground",
|
|
3033
|
+
"hover:text-foreground hover:bg-muted",
|
|
3034
3034
|
"active:scale-[var(--active-scale)]"
|
|
3035
3035
|
].join(" "),
|
|
3036
3036
|
danger: [
|
|
3037
|
-
"bg-
|
|
3038
|
-
"border-[length:var(--border-width)] border-
|
|
3039
|
-
"shadow-
|
|
3040
|
-
"hover:bg-
|
|
3041
|
-
"active:scale-[var(--active-scale)] active:shadow-
|
|
3037
|
+
"bg-surface text-error",
|
|
3038
|
+
"border-[length:var(--border-width)] border-error",
|
|
3039
|
+
"shadow-sm",
|
|
3040
|
+
"hover:bg-error hover:text-error-foreground hover:shadow-lg",
|
|
3041
|
+
"active:scale-[var(--active-scale)] active:shadow-sm"
|
|
3042
3042
|
].join(" "),
|
|
3043
3043
|
success: [
|
|
3044
|
-
"bg-
|
|
3045
|
-
"border-[length:var(--border-width)] border-
|
|
3046
|
-
"shadow-
|
|
3047
|
-
"hover:bg-
|
|
3048
|
-
"active:scale-[var(--active-scale)] active:shadow-
|
|
3044
|
+
"bg-surface text-success",
|
|
3045
|
+
"border-[length:var(--border-width)] border-success",
|
|
3046
|
+
"shadow-sm",
|
|
3047
|
+
"hover:bg-success hover:text-success-foreground hover:shadow-lg",
|
|
3048
|
+
"active:scale-[var(--active-scale)] active:shadow-sm"
|
|
3049
3049
|
].join(" "),
|
|
3050
3050
|
warning: [
|
|
3051
|
-
"bg-
|
|
3052
|
-
"border-[length:var(--border-width)] border-
|
|
3053
|
-
"shadow-
|
|
3054
|
-
"hover:bg-
|
|
3055
|
-
"active:scale-[var(--active-scale)] active:shadow-
|
|
3051
|
+
"bg-surface text-warning",
|
|
3052
|
+
"border-[length:var(--border-width)] border-warning",
|
|
3053
|
+
"shadow-sm",
|
|
3054
|
+
"hover:bg-warning hover:text-warning-foreground hover:shadow-lg",
|
|
3055
|
+
"active:scale-[var(--active-scale)] active:shadow-sm"
|
|
3056
3056
|
].join(" "),
|
|
3057
3057
|
// "default" is an alias for secondary
|
|
3058
3058
|
default: [
|
|
3059
|
-
"bg-
|
|
3060
|
-
"border-[length:var(--border-width-thin)] border-
|
|
3061
|
-
"hover:bg-
|
|
3059
|
+
"bg-secondary text-secondary-foreground",
|
|
3060
|
+
"border-[length:var(--border-width-thin)] border-border",
|
|
3061
|
+
"hover:bg-secondary-hover",
|
|
3062
3062
|
"active:scale-[var(--active-scale)]"
|
|
3063
3063
|
].join(" ")
|
|
3064
3064
|
};
|
|
@@ -3129,9 +3129,10 @@ var Button = React4.forwardRef(
|
|
|
3129
3129
|
className: cn(
|
|
3130
3130
|
"inline-flex items-center justify-center gap-2",
|
|
3131
3131
|
"font-[var(--font-weight-medium)]",
|
|
3132
|
-
"rounded-
|
|
3132
|
+
"rounded-sm",
|
|
3133
|
+
"cursor-pointer",
|
|
3133
3134
|
"transition-all duration-[var(--transition-normal)]",
|
|
3134
|
-
"focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-
|
|
3135
|
+
"focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-ring focus:ring-offset-[length:var(--focus-ring-offset)]",
|
|
3135
3136
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
3136
3137
|
variantStyles2[variant],
|
|
3137
3138
|
sizeStyles2[size],
|
|
@@ -3152,34 +3153,34 @@ var Button = React4.forwardRef(
|
|
|
3152
3153
|
Button.displayName = "Button";
|
|
3153
3154
|
var variantStyles3 = {
|
|
3154
3155
|
default: [
|
|
3155
|
-
"bg-
|
|
3156
|
-
"border-[length:var(--border-width)] border-
|
|
3157
|
-
"shadow-
|
|
3156
|
+
"bg-card",
|
|
3157
|
+
"border-[length:var(--border-width)] border-border",
|
|
3158
|
+
"shadow-sm",
|
|
3158
3159
|
"transition-all duration-[var(--transition-normal)]",
|
|
3159
|
-
"hover:shadow-
|
|
3160
|
+
"hover:shadow-lg hover:-translate-y-0.5"
|
|
3160
3161
|
].join(" "),
|
|
3161
3162
|
bordered: [
|
|
3162
|
-
"bg-
|
|
3163
|
-
"border-[length:var(--border-width)] border-
|
|
3164
|
-
"shadow-
|
|
3163
|
+
"bg-card",
|
|
3164
|
+
"border-[length:var(--border-width)] border-border",
|
|
3165
|
+
"shadow-sm",
|
|
3165
3166
|
"transition-all duration-[var(--transition-normal)]",
|
|
3166
|
-
"hover:shadow-
|
|
3167
|
+
"hover:shadow-lg hover:-translate-y-0.5"
|
|
3167
3168
|
].join(" "),
|
|
3168
3169
|
elevated: [
|
|
3169
|
-
"bg-
|
|
3170
|
-
"border-[length:var(--border-width)] border-
|
|
3171
|
-
"shadow
|
|
3170
|
+
"bg-card",
|
|
3171
|
+
"border-[length:var(--border-width)] border-border",
|
|
3172
|
+
"shadow",
|
|
3172
3173
|
"transition-all duration-[var(--transition-normal)]",
|
|
3173
|
-
"hover:shadow-
|
|
3174
|
+
"hover:shadow-lg hover:-translate-y-0.5"
|
|
3174
3175
|
].join(" "),
|
|
3175
3176
|
// Interactive variant with theme-specific hover effects
|
|
3176
3177
|
interactive: [
|
|
3177
|
-
"bg-
|
|
3178
|
-
"border-[length:var(--border-width)] border-
|
|
3179
|
-
"shadow
|
|
3178
|
+
"bg-card",
|
|
3179
|
+
"border-[length:var(--border-width)] border-border",
|
|
3180
|
+
"shadow",
|
|
3180
3181
|
"cursor-pointer",
|
|
3181
3182
|
"transition-all duration-[var(--transition-normal)]",
|
|
3182
|
-
"hover:shadow-
|
|
3183
|
+
"hover:shadow-lg"
|
|
3183
3184
|
].join(" ")
|
|
3184
3185
|
};
|
|
3185
3186
|
var paddingStyles2 = {
|
|
@@ -3190,9 +3191,9 @@ var paddingStyles2 = {
|
|
|
3190
3191
|
};
|
|
3191
3192
|
var shadowStyles2 = {
|
|
3192
3193
|
none: "shadow-none",
|
|
3193
|
-
sm: "shadow-
|
|
3194
|
-
md: "shadow
|
|
3195
|
-
lg: "shadow-
|
|
3194
|
+
sm: "shadow-sm",
|
|
3195
|
+
md: "shadow",
|
|
3196
|
+
lg: "shadow-lg"
|
|
3196
3197
|
};
|
|
3197
3198
|
var Card = React4.forwardRef(
|
|
3198
3199
|
({
|
|
@@ -3210,7 +3211,7 @@ var Card = React4.forwardRef(
|
|
|
3210
3211
|
{
|
|
3211
3212
|
ref,
|
|
3212
3213
|
className: cn(
|
|
3213
|
-
"rounded-
|
|
3214
|
+
"rounded-md",
|
|
3214
3215
|
"transition-all duration-[var(--transition-normal)]",
|
|
3215
3216
|
variantStyles3[variant],
|
|
3216
3217
|
paddingStyles2[padding],
|
|
@@ -3220,8 +3221,8 @@ var Card = React4.forwardRef(
|
|
|
3220
3221
|
...props,
|
|
3221
3222
|
children: [
|
|
3222
3223
|
(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-
|
|
3224
|
+
title && /* @__PURE__ */ jsx("h3", { className: "text-lg text-card-foreground font-[var(--font-weight-bold)]", children: title }),
|
|
3225
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground mt-1", children: subtitle })
|
|
3225
3226
|
] }),
|
|
3226
3227
|
children
|
|
3227
3228
|
]
|
|
@@ -3237,7 +3238,7 @@ var CardTitle = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
3237
3238
|
{
|
|
3238
3239
|
ref,
|
|
3239
3240
|
className: cn(
|
|
3240
|
-
"text-lg text-
|
|
3241
|
+
"text-lg text-card-foreground",
|
|
3241
3242
|
"font-[var(--font-weight-bold)]",
|
|
3242
3243
|
className
|
|
3243
3244
|
),
|
|
@@ -3274,7 +3275,7 @@ var Divider = ({
|
|
|
3274
3275
|
"div",
|
|
3275
3276
|
{
|
|
3276
3277
|
className: cn(
|
|
3277
|
-
"w-0 h-full border-l border-
|
|
3278
|
+
"w-0 h-full border-l border-border",
|
|
3278
3279
|
variantStyles4[variant],
|
|
3279
3280
|
className
|
|
3280
3281
|
),
|
|
@@ -3295,17 +3296,17 @@ var Divider = ({
|
|
|
3295
3296
|
"div",
|
|
3296
3297
|
{
|
|
3297
3298
|
className: cn(
|
|
3298
|
-
"flex-1 h-0 border-t border-
|
|
3299
|
+
"flex-1 h-0 border-t border-border",
|
|
3299
3300
|
variantStyles4[variant]
|
|
3300
3301
|
)
|
|
3301
3302
|
}
|
|
3302
3303
|
),
|
|
3303
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm text-
|
|
3304
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm text-foreground font-bold uppercase tracking-wide", children: label }),
|
|
3304
3305
|
/* @__PURE__ */ jsx(
|
|
3305
3306
|
"div",
|
|
3306
3307
|
{
|
|
3307
3308
|
className: cn(
|
|
3308
|
-
"flex-1 h-0 border-t border-
|
|
3309
|
+
"flex-1 h-0 border-t border-border",
|
|
3309
3310
|
variantStyles4[variant]
|
|
3310
3311
|
)
|
|
3311
3312
|
}
|
|
@@ -3318,7 +3319,7 @@ var Divider = ({
|
|
|
3318
3319
|
"div",
|
|
3319
3320
|
{
|
|
3320
3321
|
className: cn(
|
|
3321
|
-
"w-full h-0 border-t border-
|
|
3322
|
+
"w-full h-0 border-t border-border my-4",
|
|
3322
3323
|
variantStyles4[variant],
|
|
3323
3324
|
className
|
|
3324
3325
|
),
|
|
@@ -3349,21 +3350,21 @@ var Input = React4.forwardRef(
|
|
|
3349
3350
|
const resolvedLeftIcon = leftIcon || IconComponent && /* @__PURE__ */ jsx(IconComponent, { className: "h-4 w-4" });
|
|
3350
3351
|
const showClearButton = clearable && value && String(value).length > 0;
|
|
3351
3352
|
const baseClassName = cn(
|
|
3352
|
-
"block w-full rounded-
|
|
3353
|
-
"border-[length:var(--border-width-thin)] border-
|
|
3353
|
+
"block w-full rounded-sm transition-all duration-[var(--transition-fast)]",
|
|
3354
|
+
"border-[length:var(--border-width-thin)] border-border",
|
|
3354
3355
|
"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-
|
|
3356
|
+
"bg-card hover:bg-muted focus:bg-card",
|
|
3357
|
+
"text-foreground placeholder:text-muted-foreground",
|
|
3358
|
+
"focus:outline-none focus:ring-1 focus:ring-ring focus:border-ring",
|
|
3359
|
+
"disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-muted",
|
|
3360
|
+
error ? "border-error focus:border-error focus:ring-error" : "",
|
|
3360
3361
|
resolvedLeftIcon && "pl-10",
|
|
3361
3362
|
(rightIcon || showClearButton) && "pr-10",
|
|
3362
3363
|
className
|
|
3363
3364
|
);
|
|
3364
3365
|
if (type === "select") {
|
|
3365
3366
|
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-
|
|
3367
|
+
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
3368
|
/* @__PURE__ */ jsxs(
|
|
3368
3369
|
"select",
|
|
3369
3370
|
{
|
|
@@ -3378,7 +3379,7 @@ var Input = React4.forwardRef(
|
|
|
3378
3379
|
]
|
|
3379
3380
|
}
|
|
3380
3381
|
),
|
|
3381
|
-
/* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none text-
|
|
3382
|
+
/* @__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
3383
|
] });
|
|
3383
3384
|
}
|
|
3384
3385
|
if (type === "textarea") {
|
|
@@ -3403,9 +3404,9 @@ var Input = React4.forwardRef(
|
|
|
3403
3404
|
checked: props.checked,
|
|
3404
3405
|
onChange,
|
|
3405
3406
|
className: cn(
|
|
3406
|
-
"h-4 w-4 rounded-
|
|
3407
|
-
"border-
|
|
3408
|
-
"text-
|
|
3407
|
+
"h-4 w-4 rounded-sm",
|
|
3408
|
+
"border-border",
|
|
3409
|
+
"text-primary focus:ring-ring",
|
|
3409
3410
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
3410
3411
|
className
|
|
3411
3412
|
),
|
|
@@ -3414,7 +3415,7 @@ var Input = React4.forwardRef(
|
|
|
3414
3415
|
);
|
|
3415
3416
|
}
|
|
3416
3417
|
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-
|
|
3418
|
+
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
3419
|
/* @__PURE__ */ jsx(
|
|
3419
3420
|
"input",
|
|
3420
3421
|
{
|
|
@@ -3431,11 +3432,11 @@ var Input = React4.forwardRef(
|
|
|
3431
3432
|
{
|
|
3432
3433
|
type: "button",
|
|
3433
3434
|
onClick: onClear,
|
|
3434
|
-
className: "absolute inset-y-0 right-0 pr-3 flex items-center text-
|
|
3435
|
+
className: "absolute inset-y-0 right-0 pr-3 flex items-center text-muted-foreground hover:text-foreground",
|
|
3435
3436
|
children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4" })
|
|
3436
3437
|
}
|
|
3437
3438
|
),
|
|
3438
|
-
rightIcon && !showClearButton && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center text-
|
|
3439
|
+
rightIcon && !showClearButton && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center text-muted-foreground", children: rightIcon })
|
|
3439
3440
|
] });
|
|
3440
3441
|
}
|
|
3441
3442
|
);
|
|
@@ -3455,8 +3456,8 @@ var DocSidebarCategory = ({ item, depth }) => {
|
|
|
3455
3456
|
gap: "sm",
|
|
3456
3457
|
align: "center",
|
|
3457
3458
|
className: cn(
|
|
3458
|
-
"cursor-pointer select-none rounded-
|
|
3459
|
-
"hover:bg-
|
|
3459
|
+
"cursor-pointer select-none rounded-sm px-2 py-1.5",
|
|
3460
|
+
"hover:bg-muted",
|
|
3460
3461
|
depth > 0 && "pl-4"
|
|
3461
3462
|
),
|
|
3462
3463
|
onClick: () => setExpanded((prev) => !prev),
|
|
@@ -3474,14 +3475,14 @@ var DocSidebarCategory = ({ item, depth }) => {
|
|
|
3474
3475
|
{
|
|
3475
3476
|
name: expanded ? "chevron-down" : "chevron-right",
|
|
3476
3477
|
size: "xs",
|
|
3477
|
-
className: "text-
|
|
3478
|
+
className: "text-muted-foreground shrink-0"
|
|
3478
3479
|
}
|
|
3479
3480
|
),
|
|
3480
3481
|
/* @__PURE__ */ jsx(
|
|
3481
3482
|
Typography,
|
|
3482
3483
|
{
|
|
3483
3484
|
variant: "caption",
|
|
3484
|
-
className: "text-xs uppercase tracking-wider text-
|
|
3485
|
+
className: "text-xs uppercase tracking-wider text-muted-foreground font-semibold",
|
|
3485
3486
|
as: "span",
|
|
3486
3487
|
children: item.label
|
|
3487
3488
|
}
|
|
@@ -3496,10 +3497,10 @@ var DocSidebarCategory = ({ item, depth }) => {
|
|
|
3496
3497
|
Box,
|
|
3497
3498
|
{
|
|
3498
3499
|
className: cn(
|
|
3499
|
-
"block rounded-
|
|
3500
|
-
"hover:bg-
|
|
3500
|
+
"block rounded-sm px-3 py-1.5 text-sm transition-colors no-underline cursor-pointer",
|
|
3501
|
+
"hover:bg-muted",
|
|
3501
3502
|
depth > 0 && "ml-2",
|
|
3502
|
-
item.active ? "bg-
|
|
3503
|
+
item.active ? "bg-primary/8 text-primary font-semibold" : "text-muted-foreground"
|
|
3503
3504
|
),
|
|
3504
3505
|
onClick: () => {
|
|
3505
3506
|
if (item.href) window.location.href = item.href;
|
|
@@ -3511,7 +3512,7 @@ var DocSidebarCategory = ({ item, depth }) => {
|
|
|
3511
3512
|
{
|
|
3512
3513
|
variant: "body2",
|
|
3513
3514
|
className: cn(
|
|
3514
|
-
item.active ? "text-
|
|
3515
|
+
item.active ? "text-primary font-semibold" : "text-muted-foreground"
|
|
3515
3516
|
),
|
|
3516
3517
|
as: "span",
|
|
3517
3518
|
children: item.label
|
|
@@ -3556,7 +3557,7 @@ var DocTOC = ({
|
|
|
3556
3557
|
"block py-1.5 no-underline transition-colors border-l-2 cursor-pointer",
|
|
3557
3558
|
"pl-3",
|
|
3558
3559
|
indent,
|
|
3559
|
-
isActive ? "border-l-
|
|
3560
|
+
isActive ? "border-l-primary" : "border-l-transparent hover:border-l-[var(--color-muted)]"
|
|
3560
3561
|
),
|
|
3561
3562
|
onClick: () => {
|
|
3562
3563
|
const el = document.getElementById(item.id);
|
|
@@ -3570,7 +3571,7 @@ var DocTOC = ({
|
|
|
3570
3571
|
variant: "caption",
|
|
3571
3572
|
className: cn(
|
|
3572
3573
|
"transition-colors",
|
|
3573
|
-
isActive ? "text-
|
|
3574
|
+
isActive ? "text-primary font-medium" : "text-muted-foreground hover:text-foreground"
|
|
3574
3575
|
),
|
|
3575
3576
|
as: "span",
|
|
3576
3577
|
children: item.label
|
|
@@ -3602,7 +3603,7 @@ var DocBreadcrumb = ({
|
|
|
3602
3603
|
{
|
|
3603
3604
|
name: "chevron-right",
|
|
3604
3605
|
size: "xs",
|
|
3605
|
-
className: "text-
|
|
3606
|
+
className: "text-muted-foreground shrink-0"
|
|
3606
3607
|
}
|
|
3607
3608
|
),
|
|
3608
3609
|
isLast || !item.href ? /* @__PURE__ */ jsx(
|
|
@@ -3610,7 +3611,7 @@ var DocBreadcrumb = ({
|
|
|
3610
3611
|
{
|
|
3611
3612
|
variant: "caption",
|
|
3612
3613
|
className: cn(
|
|
3613
|
-
isLast ? "text-
|
|
3614
|
+
isLast ? "text-foreground font-medium" : "text-muted-foreground"
|
|
3614
3615
|
),
|
|
3615
3616
|
as: "span",
|
|
3616
3617
|
children: item.label
|
|
@@ -3628,7 +3629,7 @@ var DocBreadcrumb = ({
|
|
|
3628
3629
|
Typography,
|
|
3629
3630
|
{
|
|
3630
3631
|
variant: "caption",
|
|
3631
|
-
className: "text-
|
|
3632
|
+
className: "text-muted-foreground hover:text-primary transition-colors cursor-pointer",
|
|
3632
3633
|
as: "span",
|
|
3633
3634
|
children: item.label
|
|
3634
3635
|
}
|
|
@@ -3660,7 +3661,7 @@ function DocCodeBlock({
|
|
|
3660
3661
|
Box,
|
|
3661
3662
|
{
|
|
3662
3663
|
className: cn(
|
|
3663
|
-
"rounded-
|
|
3664
|
+
"rounded-md border border-border overflow-hidden",
|
|
3664
3665
|
className
|
|
3665
3666
|
),
|
|
3666
3667
|
position: "relative",
|
|
@@ -3670,7 +3671,7 @@ function DocCodeBlock({
|
|
|
3670
3671
|
{
|
|
3671
3672
|
align: "center",
|
|
3672
3673
|
justify: "between",
|
|
3673
|
-
className: "bg-
|
|
3674
|
+
className: "bg-muted px-4 py-2 border-b border-border",
|
|
3674
3675
|
children: [
|
|
3675
3676
|
/* @__PURE__ */ jsxs(HStack, { align: "center", gap: "sm", children: [
|
|
3676
3677
|
/* @__PURE__ */ jsx(Typography, { variant: "caption", color: "muted", children: title }),
|
|
@@ -3699,11 +3700,11 @@ function DocCodeBlock({
|
|
|
3699
3700
|
children: copied ? "Copied!" : "Copy"
|
|
3700
3701
|
}
|
|
3701
3702
|
) }) : null,
|
|
3702
|
-
/* @__PURE__ */ jsxs(HStack, { gap: "none", className: "bg-
|
|
3703
|
+
/* @__PURE__ */ jsxs(HStack, { gap: "none", className: "bg-foreground overflow-x-auto", children: [
|
|
3703
3704
|
showLineNumbers ? /* @__PURE__ */ jsx(
|
|
3704
3705
|
Box,
|
|
3705
3706
|
{
|
|
3706
|
-
className: "py-4 pl-4 pr-3 select-none border-r border-
|
|
3707
|
+
className: "py-4 pl-4 pr-3 select-none border-r border-border flex-shrink-0",
|
|
3707
3708
|
children: lines.map((_, i) => /* @__PURE__ */ jsx(
|
|
3708
3709
|
Typography,
|
|
3709
3710
|
{
|
|
@@ -3722,7 +3723,7 @@ function DocCodeBlock({
|
|
|
3722
3723
|
{
|
|
3723
3724
|
as: "pre",
|
|
3724
3725
|
className: cn(
|
|
3725
|
-
"p-4 font-mono text-sm text-
|
|
3726
|
+
"p-4 font-mono text-sm text-background leading-6 flex-1 min-w-0",
|
|
3726
3727
|
!title && "pr-24"
|
|
3727
3728
|
),
|
|
3728
3729
|
children: /* @__PURE__ */ jsx(Box, { as: "code", className: "whitespace-pre", children: code })
|
|
@@ -3734,12 +3735,12 @@ function DocCodeBlock({
|
|
|
3734
3735
|
);
|
|
3735
3736
|
}
|
|
3736
3737
|
var linkCardStyles = [
|
|
3737
|
-
"border border-
|
|
3738
|
-
"rounded-
|
|
3738
|
+
"border border-border",
|
|
3739
|
+
"rounded-md",
|
|
3739
3740
|
"p-4",
|
|
3740
3741
|
"transition-all",
|
|
3741
|
-
"hover:border-
|
|
3742
|
-
"hover:shadow-
|
|
3742
|
+
"hover:border-primary",
|
|
3743
|
+
"hover:shadow-lg",
|
|
3743
3744
|
"no-underline",
|
|
3744
3745
|
"flex-1",
|
|
3745
3746
|
"min-w-0",
|
|
@@ -3765,14 +3766,14 @@ function DocPagination({ prev, next, className }) {
|
|
|
3765
3766
|
role: "link",
|
|
3766
3767
|
tabIndex: 0,
|
|
3767
3768
|
children: /* @__PURE__ */ jsxs(HStack, { align: "center", gap: "sm", children: [
|
|
3768
|
-
/* @__PURE__ */ jsx(Icon, { name: "arrow-left", size: "md", className: "text-
|
|
3769
|
+
/* @__PURE__ */ jsx(Icon, { name: "arrow-left", size: "md", className: "text-muted-foreground group-hover:text-primary transition-colors flex-shrink-0" }),
|
|
3769
3770
|
/* @__PURE__ */ jsxs(VStack, { gap: "none", align: "start", children: [
|
|
3770
3771
|
prev.category ? /* @__PURE__ */ jsx(Typography, { variant: "caption", color: "muted", children: prev.category }) : null,
|
|
3771
3772
|
/* @__PURE__ */ jsx(
|
|
3772
3773
|
Typography,
|
|
3773
3774
|
{
|
|
3774
3775
|
variant: "body",
|
|
3775
|
-
className: "group-hover:text-
|
|
3776
|
+
className: "group-hover:text-primary transition-colors",
|
|
3776
3777
|
children: prev.label
|
|
3777
3778
|
}
|
|
3778
3779
|
)
|
|
@@ -3796,12 +3797,12 @@ function DocPagination({ prev, next, className }) {
|
|
|
3796
3797
|
Typography,
|
|
3797
3798
|
{
|
|
3798
3799
|
variant: "body",
|
|
3799
|
-
className: "group-hover:text-
|
|
3800
|
+
className: "group-hover:text-primary transition-colors",
|
|
3800
3801
|
children: next.label
|
|
3801
3802
|
}
|
|
3802
3803
|
)
|
|
3803
3804
|
] }),
|
|
3804
|
-
/* @__PURE__ */ jsx(Icon, { name: "arrow-right", size: "md", className: "text-
|
|
3805
|
+
/* @__PURE__ */ jsx(Icon, { name: "arrow-right", size: "md", className: "text-muted-foreground group-hover:text-primary transition-colors flex-shrink-0" })
|
|
3805
3806
|
] })
|
|
3806
3807
|
}
|
|
3807
3808
|
) : /* @__PURE__ */ jsx(Box, { className: "flex-1" })
|
|
@@ -3925,7 +3926,7 @@ function DocSearch({
|
|
|
3925
3926
|
onChange: handleChange,
|
|
3926
3927
|
onFocus: handleFocus,
|
|
3927
3928
|
onKeyDown: handleKeyDown,
|
|
3928
|
-
leftIcon: /* @__PURE__ */ jsx(Icon, { name: "search", size: "sm", className: "text-
|
|
3929
|
+
leftIcon: /* @__PURE__ */ jsx(Icon, { name: "search", size: "sm", className: "text-muted-foreground" }),
|
|
3929
3930
|
clearable: query.length > 0,
|
|
3930
3931
|
onClear: () => {
|
|
3931
3932
|
setQuery("");
|
|
@@ -3938,15 +3939,15 @@ function DocSearch({
|
|
|
3938
3939
|
Box,
|
|
3939
3940
|
{
|
|
3940
3941
|
position: "absolute",
|
|
3941
|
-
className: "top-full left-0 right-0 mt-1 z-50 bg-
|
|
3942
|
+
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
3943
|
children: /* @__PURE__ */ jsx(VStack, { gap: "none", children: results.map((result, index) => /* @__PURE__ */ jsx(
|
|
3943
3944
|
Box,
|
|
3944
3945
|
{
|
|
3945
3946
|
className: cn(
|
|
3946
3947
|
"px-4 py-3 cursor-pointer transition-colors",
|
|
3947
|
-
"hover:bg-
|
|
3948
|
-
index === activeIndex && "bg-
|
|
3949
|
-
index < results.length - 1 && "border-b border-
|
|
3948
|
+
"hover:bg-muted",
|
|
3949
|
+
index === activeIndex && "bg-muted",
|
|
3950
|
+
index < results.length - 1 && "border-b border-border"
|
|
3950
3951
|
),
|
|
3951
3952
|
onClick: () => navigateTo(result.href),
|
|
3952
3953
|
role: "option",
|