@almadar/ui 2.25.3 → 2.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/avl/index.cjs +43 -43
- package/dist/avl/index.js +43 -43
- package/dist/components/index.cjs +860 -860
- package/dist/components/index.js +860 -860
- 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 +142 -142
- package/dist/docs/index.js +142 -142
- package/dist/illustrations/index.cjs +17 -17
- package/dist/illustrations/index.js +17 -17
- package/dist/marketing/index.cjs +167 -167
- package/dist/marketing/index.js +167 -167
- package/dist/providers/index.cjs +178 -178
- package/dist/providers/index.js +178 -178
- package/dist/runtime/index.cjs +802 -802
- package/dist/runtime/index.js +802 -802
- package/package.json +1 -1
- package/tailwind-preset.cjs +32 -134
package/dist/providers/index.js
CHANGED
|
@@ -631,28 +631,28 @@ var marginYStyles = {
|
|
|
631
631
|
};
|
|
632
632
|
var bgStyles = {
|
|
633
633
|
transparent: "bg-transparent",
|
|
634
|
-
primary: "bg-
|
|
635
|
-
secondary: "bg-
|
|
636
|
-
muted: "bg-
|
|
637
|
-
accent: "bg-
|
|
638
|
-
surface: "bg-
|
|
639
|
-
overlay: "bg-
|
|
634
|
+
primary: "bg-primary text-primary-foreground",
|
|
635
|
+
secondary: "bg-secondary text-secondary-foreground",
|
|
636
|
+
muted: "bg-muted text-foreground",
|
|
637
|
+
accent: "bg-accent text-accent-foreground",
|
|
638
|
+
surface: "bg-card",
|
|
639
|
+
overlay: "bg-card/80 backdrop-blur-sm"
|
|
640
640
|
};
|
|
641
641
|
var roundedStyles = {
|
|
642
642
|
none: "rounded-none",
|
|
643
|
-
sm: "rounded-
|
|
644
|
-
md: "rounded-
|
|
645
|
-
lg: "rounded-
|
|
646
|
-
xl: "rounded-
|
|
647
|
-
"2xl": "rounded-
|
|
648
|
-
full: "rounded-
|
|
643
|
+
sm: "rounded-sm",
|
|
644
|
+
md: "rounded-md",
|
|
645
|
+
lg: "rounded-lg",
|
|
646
|
+
xl: "rounded-xl",
|
|
647
|
+
"2xl": "rounded-xl",
|
|
648
|
+
full: "rounded-full"
|
|
649
649
|
};
|
|
650
650
|
var shadowStyles = {
|
|
651
651
|
none: "shadow-none",
|
|
652
|
-
sm: "shadow-
|
|
653
|
-
md: "shadow
|
|
654
|
-
lg: "shadow-
|
|
655
|
-
xl: "shadow-
|
|
652
|
+
sm: "shadow-sm",
|
|
653
|
+
md: "shadow",
|
|
654
|
+
lg: "shadow-lg",
|
|
655
|
+
xl: "shadow-lg"
|
|
656
656
|
};
|
|
657
657
|
var displayStyles = {
|
|
658
658
|
block: "block",
|
|
@@ -740,7 +740,7 @@ var Box = React110__default.forwardRef(
|
|
|
740
740
|
// Background
|
|
741
741
|
bgStyles[bg],
|
|
742
742
|
// Border - uses theme variables
|
|
743
|
-
border && "border-[length:var(--border-width)] border-
|
|
743
|
+
border && "border-[length:var(--border-width)] border-border",
|
|
744
744
|
// Rounded
|
|
745
745
|
roundedStyles[rounded],
|
|
746
746
|
// Shadow
|
|
@@ -769,30 +769,30 @@ var Box = React110__default.forwardRef(
|
|
|
769
769
|
);
|
|
770
770
|
Box.displayName = "Box";
|
|
771
771
|
var variantStyles = {
|
|
772
|
-
h1: "text-4xl font-bold tracking-tight text-
|
|
773
|
-
h2: "text-3xl font-bold tracking-tight text-
|
|
774
|
-
h3: "text-2xl font-bold text-
|
|
775
|
-
h4: "text-xl font-bold text-
|
|
776
|
-
h5: "text-lg font-bold text-
|
|
777
|
-
h6: "text-base font-bold text-
|
|
778
|
-
heading: "text-2xl font-bold text-
|
|
779
|
-
subheading: "text-lg font-semibold text-
|
|
780
|
-
body1: "text-base font-normal text-
|
|
781
|
-
body2: "text-sm font-normal text-
|
|
782
|
-
body: "text-base font-normal text-
|
|
783
|
-
caption: "text-xs font-normal text-
|
|
784
|
-
overline: "text-xs uppercase tracking-wide font-bold text-
|
|
785
|
-
small: "text-sm font-normal text-
|
|
786
|
-
large: "text-lg font-medium text-
|
|
787
|
-
label: "text-sm font-medium text-
|
|
772
|
+
h1: "text-4xl font-bold tracking-tight text-foreground",
|
|
773
|
+
h2: "text-3xl font-bold tracking-tight text-foreground",
|
|
774
|
+
h3: "text-2xl font-bold text-foreground",
|
|
775
|
+
h4: "text-xl font-bold text-foreground",
|
|
776
|
+
h5: "text-lg font-bold text-foreground",
|
|
777
|
+
h6: "text-base font-bold text-foreground",
|
|
778
|
+
heading: "text-2xl font-bold text-foreground",
|
|
779
|
+
subheading: "text-lg font-semibold text-foreground",
|
|
780
|
+
body1: "text-base font-normal text-foreground",
|
|
781
|
+
body2: "text-sm font-normal text-foreground",
|
|
782
|
+
body: "text-base font-normal text-foreground",
|
|
783
|
+
caption: "text-xs font-normal text-muted-foreground",
|
|
784
|
+
overline: "text-xs uppercase tracking-wide font-bold text-muted-foreground",
|
|
785
|
+
small: "text-sm font-normal text-foreground",
|
|
786
|
+
large: "text-lg font-medium text-foreground",
|
|
787
|
+
label: "text-sm font-medium text-foreground"
|
|
788
788
|
};
|
|
789
789
|
var colorStyles = {
|
|
790
|
-
primary: "text-
|
|
791
|
-
secondary: "text-
|
|
792
|
-
muted: "text-
|
|
793
|
-
error: "text-
|
|
794
|
-
success: "text-
|
|
795
|
-
warning: "text-
|
|
790
|
+
primary: "text-foreground",
|
|
791
|
+
secondary: "text-muted-foreground",
|
|
792
|
+
muted: "text-muted-foreground",
|
|
793
|
+
error: "text-error",
|
|
794
|
+
success: "text-success",
|
|
795
|
+
warning: "text-warning",
|
|
796
796
|
inherit: "text-inherit"
|
|
797
797
|
};
|
|
798
798
|
var weightStyles = {
|
|
@@ -877,49 +877,49 @@ var Typography = ({
|
|
|
877
877
|
Typography.displayName = "Typography";
|
|
878
878
|
var variantStyles2 = {
|
|
879
879
|
primary: [
|
|
880
|
-
"bg-
|
|
880
|
+
"bg-primary text-primary-foreground",
|
|
881
881
|
"border-none",
|
|
882
|
-
"shadow-
|
|
883
|
-
"hover:bg-
|
|
884
|
-
"active:scale-[var(--active-scale)] active:shadow-
|
|
882
|
+
"shadow-sm",
|
|
883
|
+
"hover:bg-primary-hover hover:shadow-lg",
|
|
884
|
+
"active:scale-[var(--active-scale)] active:shadow-sm"
|
|
885
885
|
].join(" "),
|
|
886
886
|
secondary: [
|
|
887
|
-
"bg-transparent text-
|
|
888
|
-
"border border-
|
|
889
|
-
"hover:bg-
|
|
887
|
+
"bg-transparent text-accent",
|
|
888
|
+
"border border-accent",
|
|
889
|
+
"hover:bg-accent hover:text-white hover:border-accent",
|
|
890
890
|
"active:scale-[var(--active-scale)]"
|
|
891
891
|
].join(" "),
|
|
892
892
|
ghost: [
|
|
893
|
-
"bg-transparent text-
|
|
894
|
-
"hover:text-
|
|
893
|
+
"bg-transparent text-muted-foreground",
|
|
894
|
+
"hover:text-foreground hover:bg-muted",
|
|
895
895
|
"active:scale-[var(--active-scale)]"
|
|
896
896
|
].join(" "),
|
|
897
897
|
danger: [
|
|
898
|
-
"bg-
|
|
899
|
-
"border-[length:var(--border-width)] border-
|
|
900
|
-
"shadow-
|
|
901
|
-
"hover:bg-
|
|
902
|
-
"active:scale-[var(--active-scale)] active:shadow-
|
|
898
|
+
"bg-surface text-error",
|
|
899
|
+
"border-[length:var(--border-width)] border-error",
|
|
900
|
+
"shadow-sm",
|
|
901
|
+
"hover:bg-error hover:text-error-foreground hover:shadow-lg",
|
|
902
|
+
"active:scale-[var(--active-scale)] active:shadow-sm"
|
|
903
903
|
].join(" "),
|
|
904
904
|
success: [
|
|
905
|
-
"bg-
|
|
906
|
-
"border-[length:var(--border-width)] border-
|
|
907
|
-
"shadow-
|
|
908
|
-
"hover:bg-
|
|
909
|
-
"active:scale-[var(--active-scale)] active:shadow-
|
|
905
|
+
"bg-surface text-success",
|
|
906
|
+
"border-[length:var(--border-width)] border-success",
|
|
907
|
+
"shadow-sm",
|
|
908
|
+
"hover:bg-success hover:text-success-foreground hover:shadow-lg",
|
|
909
|
+
"active:scale-[var(--active-scale)] active:shadow-sm"
|
|
910
910
|
].join(" "),
|
|
911
911
|
warning: [
|
|
912
|
-
"bg-
|
|
913
|
-
"border-[length:var(--border-width)] border-
|
|
914
|
-
"shadow-
|
|
915
|
-
"hover:bg-
|
|
916
|
-
"active:scale-[var(--active-scale)] active:shadow-
|
|
912
|
+
"bg-surface text-warning",
|
|
913
|
+
"border-[length:var(--border-width)] border-warning",
|
|
914
|
+
"shadow-sm",
|
|
915
|
+
"hover:bg-warning hover:text-warning-foreground hover:shadow-lg",
|
|
916
|
+
"active:scale-[var(--active-scale)] active:shadow-sm"
|
|
917
917
|
].join(" "),
|
|
918
918
|
// "default" is an alias for secondary
|
|
919
919
|
default: [
|
|
920
|
-
"bg-
|
|
921
|
-
"border-[length:var(--border-width-thin)] border-
|
|
922
|
-
"hover:bg-
|
|
920
|
+
"bg-secondary text-secondary-foreground",
|
|
921
|
+
"border-[length:var(--border-width-thin)] border-border",
|
|
922
|
+
"hover:bg-secondary-hover",
|
|
923
923
|
"active:scale-[var(--active-scale)]"
|
|
924
924
|
].join(" ")
|
|
925
925
|
};
|
|
@@ -990,10 +990,10 @@ var Button = React110__default.forwardRef(
|
|
|
990
990
|
className: cn(
|
|
991
991
|
"inline-flex items-center justify-center gap-2",
|
|
992
992
|
"font-[var(--font-weight-medium)]",
|
|
993
|
-
"rounded-
|
|
993
|
+
"rounded-sm",
|
|
994
994
|
"cursor-pointer",
|
|
995
995
|
"transition-all duration-[var(--transition-normal)]",
|
|
996
|
-
"focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-
|
|
996
|
+
"focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-ring focus:ring-offset-[length:var(--focus-ring-offset)]",
|
|
997
997
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
998
998
|
variantStyles2[variant],
|
|
999
999
|
sizeStyles2[size],
|
|
@@ -1014,34 +1014,34 @@ var Button = React110__default.forwardRef(
|
|
|
1014
1014
|
Button.displayName = "Button";
|
|
1015
1015
|
var variantStyles3 = {
|
|
1016
1016
|
default: [
|
|
1017
|
-
"bg-
|
|
1018
|
-
"border-[length:var(--border-width-thin)] border-
|
|
1017
|
+
"bg-muted text-foreground",
|
|
1018
|
+
"border-[length:var(--border-width-thin)] border-border"
|
|
1019
1019
|
].join(" "),
|
|
1020
|
-
primary: "bg-
|
|
1021
|
-
secondary: "bg-
|
|
1020
|
+
primary: "bg-primary text-primary-foreground",
|
|
1021
|
+
secondary: "bg-secondary text-secondary-foreground",
|
|
1022
1022
|
success: [
|
|
1023
|
-
"bg-
|
|
1024
|
-
"border-[length:var(--border-width)] border-
|
|
1023
|
+
"bg-surface text-success",
|
|
1024
|
+
"border-[length:var(--border-width)] border-success"
|
|
1025
1025
|
].join(" "),
|
|
1026
1026
|
warning: [
|
|
1027
|
-
"bg-
|
|
1028
|
-
"border-[length:var(--border-width)] border-
|
|
1027
|
+
"bg-surface text-warning",
|
|
1028
|
+
"border-[length:var(--border-width)] border-warning"
|
|
1029
1029
|
].join(" "),
|
|
1030
1030
|
danger: [
|
|
1031
|
-
"bg-
|
|
1032
|
-
"border-[length:var(--border-width)] border-
|
|
1031
|
+
"bg-surface text-error",
|
|
1032
|
+
"border-[length:var(--border-width)] border-error"
|
|
1033
1033
|
].join(" "),
|
|
1034
1034
|
error: [
|
|
1035
|
-
"bg-
|
|
1036
|
-
"border-[length:var(--border-width)] border-
|
|
1035
|
+
"bg-surface text-error",
|
|
1036
|
+
"border-[length:var(--border-width)] border-error"
|
|
1037
1037
|
].join(" "),
|
|
1038
1038
|
info: [
|
|
1039
|
-
"bg-
|
|
1040
|
-
"border-[length:var(--border-width)] border-
|
|
1039
|
+
"bg-surface text-info",
|
|
1040
|
+
"border-[length:var(--border-width)] border-info"
|
|
1041
1041
|
].join(" "),
|
|
1042
1042
|
neutral: [
|
|
1043
|
-
"bg-
|
|
1044
|
-
"border-[length:var(--border-width-thin)] border-
|
|
1043
|
+
"bg-muted text-muted-foreground",
|
|
1044
|
+
"border-[length:var(--border-width-thin)] border-border"
|
|
1045
1045
|
].join(" ")
|
|
1046
1046
|
};
|
|
1047
1047
|
var sizeStyles3 = {
|
|
@@ -1061,7 +1061,7 @@ var Badge = React110__default.forwardRef(
|
|
|
1061
1061
|
{
|
|
1062
1062
|
ref,
|
|
1063
1063
|
className: cn(
|
|
1064
|
-
"inline-flex items-center gap-1 font-bold rounded-
|
|
1064
|
+
"inline-flex items-center gap-1 font-bold rounded-sm",
|
|
1065
1065
|
variantStyles3[variant],
|
|
1066
1066
|
sizeStyles3[size],
|
|
1067
1067
|
className
|
|
@@ -1097,21 +1097,21 @@ var Input = React110__default.forwardRef(
|
|
|
1097
1097
|
const resolvedLeftIcon = leftIcon || IconComponent && /* @__PURE__ */ jsx(IconComponent, { className: "h-4 w-4" });
|
|
1098
1098
|
const showClearButton = clearable && value && String(value).length > 0;
|
|
1099
1099
|
const baseClassName = cn(
|
|
1100
|
-
"block w-full rounded-
|
|
1101
|
-
"border-[length:var(--border-width-thin)] border-
|
|
1100
|
+
"block w-full rounded-sm transition-all duration-[var(--transition-fast)]",
|
|
1101
|
+
"border-[length:var(--border-width-thin)] border-border",
|
|
1102
1102
|
"px-3 py-2 text-sm",
|
|
1103
|
-
"bg-
|
|
1104
|
-
"text-
|
|
1105
|
-
"focus:outline-none focus:ring-1 focus:ring-
|
|
1106
|
-
"disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-
|
|
1107
|
-
error ? "border-
|
|
1103
|
+
"bg-card hover:bg-muted focus:bg-card",
|
|
1104
|
+
"text-foreground placeholder:text-muted-foreground",
|
|
1105
|
+
"focus:outline-none focus:ring-1 focus:ring-ring focus:border-ring",
|
|
1106
|
+
"disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-muted",
|
|
1107
|
+
error ? "border-error focus:border-error focus:ring-error" : "",
|
|
1108
1108
|
resolvedLeftIcon && "pl-10",
|
|
1109
1109
|
(rightIcon || showClearButton) && "pr-10",
|
|
1110
1110
|
className
|
|
1111
1111
|
);
|
|
1112
1112
|
if (type === "select") {
|
|
1113
1113
|
return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
1114
|
-
resolvedLeftIcon && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-
|
|
1114
|
+
resolvedLeftIcon && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-muted-foreground", children: resolvedLeftIcon }),
|
|
1115
1115
|
/* @__PURE__ */ jsxs(
|
|
1116
1116
|
"select",
|
|
1117
1117
|
{
|
|
@@ -1126,7 +1126,7 @@ var Input = React110__default.forwardRef(
|
|
|
1126
1126
|
]
|
|
1127
1127
|
}
|
|
1128
1128
|
),
|
|
1129
|
-
/* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none text-
|
|
1129
|
+
/* @__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" }) })
|
|
1130
1130
|
] });
|
|
1131
1131
|
}
|
|
1132
1132
|
if (type === "textarea") {
|
|
@@ -1151,9 +1151,9 @@ var Input = React110__default.forwardRef(
|
|
|
1151
1151
|
checked: props.checked,
|
|
1152
1152
|
onChange,
|
|
1153
1153
|
className: cn(
|
|
1154
|
-
"h-4 w-4 rounded-
|
|
1155
|
-
"border-
|
|
1156
|
-
"text-
|
|
1154
|
+
"h-4 w-4 rounded-sm",
|
|
1155
|
+
"border-border",
|
|
1156
|
+
"text-primary focus:ring-ring",
|
|
1157
1157
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
1158
1158
|
className
|
|
1159
1159
|
),
|
|
@@ -1162,7 +1162,7 @@ var Input = React110__default.forwardRef(
|
|
|
1162
1162
|
);
|
|
1163
1163
|
}
|
|
1164
1164
|
return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
1165
|
-
resolvedLeftIcon && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-
|
|
1165
|
+
resolvedLeftIcon && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-muted-foreground", children: resolvedLeftIcon }),
|
|
1166
1166
|
/* @__PURE__ */ jsx(
|
|
1167
1167
|
"input",
|
|
1168
1168
|
{
|
|
@@ -1179,11 +1179,11 @@ var Input = React110__default.forwardRef(
|
|
|
1179
1179
|
{
|
|
1180
1180
|
type: "button",
|
|
1181
1181
|
onClick: onClear,
|
|
1182
|
-
className: "absolute inset-y-0 right-0 pr-3 flex items-center text-
|
|
1182
|
+
className: "absolute inset-y-0 right-0 pr-3 flex items-center text-muted-foreground hover:text-foreground",
|
|
1183
1183
|
children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4" })
|
|
1184
1184
|
}
|
|
1185
1185
|
),
|
|
1186
|
-
rightIcon && !showClearButton && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center text-
|
|
1186
|
+
rightIcon && !showClearButton && /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center text-muted-foreground", children: rightIcon })
|
|
1187
1187
|
] });
|
|
1188
1188
|
}
|
|
1189
1189
|
);
|
|
@@ -1195,13 +1195,13 @@ var Label = React110__default.forwardRef(
|
|
|
1195
1195
|
{
|
|
1196
1196
|
ref,
|
|
1197
1197
|
className: cn(
|
|
1198
|
-
"block text-sm font-bold text-
|
|
1198
|
+
"block text-sm font-bold text-foreground",
|
|
1199
1199
|
className
|
|
1200
1200
|
),
|
|
1201
1201
|
...props,
|
|
1202
1202
|
children: [
|
|
1203
1203
|
children,
|
|
1204
|
-
required && /* @__PURE__ */ jsx("span", { className: "text-
|
|
1204
|
+
required && /* @__PURE__ */ jsx("span", { className: "text-error ml-1", children: "*" })
|
|
1205
1205
|
]
|
|
1206
1206
|
}
|
|
1207
1207
|
);
|
|
@@ -1215,14 +1215,14 @@ var Textarea = React110__default.forwardRef(
|
|
|
1215
1215
|
{
|
|
1216
1216
|
ref,
|
|
1217
1217
|
className: cn(
|
|
1218
|
-
"block w-full border-[length:var(--border-width)] shadow-
|
|
1219
|
-
"px-3 py-2 text-sm text-
|
|
1220
|
-
"bg-
|
|
1218
|
+
"block w-full border-[length:var(--border-width)] shadow-sm",
|
|
1219
|
+
"px-3 py-2 text-sm text-foreground",
|
|
1220
|
+
"bg-card",
|
|
1221
1221
|
"placeholder:text-[var(--color-placeholder)]",
|
|
1222
|
-
"focus:outline-none focus:ring-2 focus:ring-offset-0 focus:ring-
|
|
1223
|
-
"disabled:bg-
|
|
1222
|
+
"focus:outline-none focus:ring-2 focus:ring-offset-0 focus:ring-ring",
|
|
1223
|
+
"disabled:bg-muted disabled:text-muted-foreground disabled:cursor-not-allowed",
|
|
1224
1224
|
"resize-y min-h-[80px]",
|
|
1225
|
-
error ? "border-
|
|
1225
|
+
error ? "border-error focus:border-error" : "border-border focus:border-primary",
|
|
1226
1226
|
className
|
|
1227
1227
|
),
|
|
1228
1228
|
...props
|
|
@@ -1239,12 +1239,12 @@ var Select = React110__default.forwardRef(
|
|
|
1239
1239
|
{
|
|
1240
1240
|
ref,
|
|
1241
1241
|
className: cn(
|
|
1242
|
-
"block w-full border-[length:var(--border-width)] shadow-
|
|
1243
|
-
"px-3 py-2 pr-10 text-sm text-
|
|
1244
|
-
"bg-
|
|
1245
|
-
"focus:outline-none focus:ring-2 focus:ring-offset-0 focus:ring-
|
|
1246
|
-
"disabled:bg-
|
|
1247
|
-
error ? "border-
|
|
1242
|
+
"block w-full border-[length:var(--border-width)] shadow-sm appearance-none",
|
|
1243
|
+
"px-3 py-2 pr-10 text-sm text-foreground font-medium",
|
|
1244
|
+
"bg-card",
|
|
1245
|
+
"focus:outline-none focus:ring-2 focus:ring-offset-0 focus:ring-ring",
|
|
1246
|
+
"disabled:bg-muted disabled:text-muted-foreground disabled:cursor-not-allowed",
|
|
1247
|
+
error ? "border-error focus:border-error" : "border-border focus:border-primary",
|
|
1248
1248
|
className
|
|
1249
1249
|
),
|
|
1250
1250
|
...props,
|
|
@@ -1262,7 +1262,7 @@ var Select = React110__default.forwardRef(
|
|
|
1262
1262
|
]
|
|
1263
1263
|
}
|
|
1264
1264
|
),
|
|
1265
|
-
/* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none", children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 text-
|
|
1265
|
+
/* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none", children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4 text-foreground" }) })
|
|
1266
1266
|
] });
|
|
1267
1267
|
}
|
|
1268
1268
|
);
|
|
@@ -1278,9 +1278,9 @@ var Checkbox = React110__default.forwardRef(
|
|
|
1278
1278
|
type: "checkbox",
|
|
1279
1279
|
id: inputId,
|
|
1280
1280
|
className: cn(
|
|
1281
|
-
"peer h-4 w-4 border-[length:var(--border-width)] border-
|
|
1282
|
-
"accent-
|
|
1283
|
-
"bg-
|
|
1281
|
+
"peer h-4 w-4 border-[length:var(--border-width)] border-border",
|
|
1282
|
+
"accent-primary focus:ring-ring focus:ring-offset-0",
|
|
1283
|
+
"bg-card checked:bg-primary",
|
|
1284
1284
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
1285
1285
|
className
|
|
1286
1286
|
),
|
|
@@ -1291,7 +1291,7 @@ var Checkbox = React110__default.forwardRef(
|
|
|
1291
1291
|
"label",
|
|
1292
1292
|
{
|
|
1293
1293
|
htmlFor: inputId,
|
|
1294
|
-
className: "ml-2 text-sm text-
|
|
1294
|
+
className: "ml-2 text-sm text-foreground font-medium cursor-pointer select-none",
|
|
1295
1295
|
children: label
|
|
1296
1296
|
}
|
|
1297
1297
|
)
|
|
@@ -1301,34 +1301,34 @@ var Checkbox = React110__default.forwardRef(
|
|
|
1301
1301
|
Checkbox.displayName = "Checkbox";
|
|
1302
1302
|
var variantStyles4 = {
|
|
1303
1303
|
default: [
|
|
1304
|
-
"bg-
|
|
1305
|
-
"border-[length:var(--border-width)] border-
|
|
1306
|
-
"shadow-
|
|
1304
|
+
"bg-card",
|
|
1305
|
+
"border-[length:var(--border-width)] border-border",
|
|
1306
|
+
"shadow-sm",
|
|
1307
1307
|
"transition-all duration-[var(--transition-normal)]",
|
|
1308
|
-
"hover:shadow-
|
|
1308
|
+
"hover:shadow-lg hover:-translate-y-0.5"
|
|
1309
1309
|
].join(" "),
|
|
1310
1310
|
bordered: [
|
|
1311
|
-
"bg-
|
|
1312
|
-
"border-[length:var(--border-width)] border-
|
|
1313
|
-
"shadow-
|
|
1311
|
+
"bg-card",
|
|
1312
|
+
"border-[length:var(--border-width)] border-border",
|
|
1313
|
+
"shadow-sm",
|
|
1314
1314
|
"transition-all duration-[var(--transition-normal)]",
|
|
1315
|
-
"hover:shadow-
|
|
1315
|
+
"hover:shadow-lg hover:-translate-y-0.5"
|
|
1316
1316
|
].join(" "),
|
|
1317
1317
|
elevated: [
|
|
1318
|
-
"bg-
|
|
1319
|
-
"border-[length:var(--border-width)] border-
|
|
1320
|
-
"shadow
|
|
1318
|
+
"bg-card",
|
|
1319
|
+
"border-[length:var(--border-width)] border-border",
|
|
1320
|
+
"shadow",
|
|
1321
1321
|
"transition-all duration-[var(--transition-normal)]",
|
|
1322
|
-
"hover:shadow-
|
|
1322
|
+
"hover:shadow-lg hover:-translate-y-0.5"
|
|
1323
1323
|
].join(" "),
|
|
1324
1324
|
// Interactive variant with theme-specific hover effects
|
|
1325
1325
|
interactive: [
|
|
1326
|
-
"bg-
|
|
1327
|
-
"border-[length:var(--border-width)] border-
|
|
1328
|
-
"shadow
|
|
1326
|
+
"bg-card",
|
|
1327
|
+
"border-[length:var(--border-width)] border-border",
|
|
1328
|
+
"shadow",
|
|
1329
1329
|
"cursor-pointer",
|
|
1330
1330
|
"transition-all duration-[var(--transition-normal)]",
|
|
1331
|
-
"hover:shadow-
|
|
1331
|
+
"hover:shadow-lg"
|
|
1332
1332
|
].join(" ")
|
|
1333
1333
|
};
|
|
1334
1334
|
var paddingStyles2 = {
|
|
@@ -1339,9 +1339,9 @@ var paddingStyles2 = {
|
|
|
1339
1339
|
};
|
|
1340
1340
|
var shadowStyles2 = {
|
|
1341
1341
|
none: "shadow-none",
|
|
1342
|
-
sm: "shadow-
|
|
1343
|
-
md: "shadow
|
|
1344
|
-
lg: "shadow-
|
|
1342
|
+
sm: "shadow-sm",
|
|
1343
|
+
md: "shadow",
|
|
1344
|
+
lg: "shadow-lg"
|
|
1345
1345
|
};
|
|
1346
1346
|
var Card = React110__default.forwardRef(
|
|
1347
1347
|
({
|
|
@@ -1359,7 +1359,7 @@ var Card = React110__default.forwardRef(
|
|
|
1359
1359
|
{
|
|
1360
1360
|
ref,
|
|
1361
1361
|
className: cn(
|
|
1362
|
-
"rounded-
|
|
1362
|
+
"rounded-md",
|
|
1363
1363
|
"transition-all duration-[var(--transition-normal)]",
|
|
1364
1364
|
variantStyles4[variant],
|
|
1365
1365
|
paddingStyles2[padding],
|
|
@@ -1369,8 +1369,8 @@ var Card = React110__default.forwardRef(
|
|
|
1369
1369
|
...props,
|
|
1370
1370
|
children: [
|
|
1371
1371
|
(title || subtitle) && /* @__PURE__ */ jsxs("div", { className: "mb-4", children: [
|
|
1372
|
-
title && /* @__PURE__ */ jsx("h3", { className: "text-lg text-
|
|
1373
|
-
subtitle && /* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
1372
|
+
title && /* @__PURE__ */ jsx("h3", { className: "text-lg text-card-foreground font-[var(--font-weight-bold)]", children: title }),
|
|
1373
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground mt-1", children: subtitle })
|
|
1374
1374
|
] }),
|
|
1375
1375
|
children
|
|
1376
1376
|
]
|
|
@@ -1386,7 +1386,7 @@ var CardTitle = React110__default.forwardRef(({ className, ...props }, ref) => /
|
|
|
1386
1386
|
{
|
|
1387
1387
|
ref,
|
|
1388
1388
|
className: cn(
|
|
1389
|
-
"text-lg text-
|
|
1389
|
+
"text-lg text-card-foreground",
|
|
1390
1390
|
"font-[var(--font-weight-bold)]",
|
|
1391
1391
|
className
|
|
1392
1392
|
),
|
|
@@ -1419,7 +1419,7 @@ var Spinner = React110__default.forwardRef(
|
|
|
1419
1419
|
"div",
|
|
1420
1420
|
{
|
|
1421
1421
|
ref,
|
|
1422
|
-
className: cn("text-
|
|
1422
|
+
className: cn("text-foreground", className),
|
|
1423
1423
|
...props,
|
|
1424
1424
|
children: /* @__PURE__ */ jsx(Loader2, { className: cn("animate-spin", sizeStyles4[size]) })
|
|
1425
1425
|
}
|
|
@@ -1476,8 +1476,8 @@ var Radio = React110__default.forwardRef(
|
|
|
1476
1476
|
"flex items-center justify-center",
|
|
1477
1477
|
"border-[length:var(--border-width)] transition-all cursor-pointer",
|
|
1478
1478
|
sizeClasses6[size],
|
|
1479
|
-
hasError ? "border-
|
|
1480
|
-
checked ? hasError ? "border-
|
|
1479
|
+
hasError ? "border-error peer-focus:ring-error/20" : "border-border peer-focus:ring-ring/20",
|
|
1480
|
+
checked ? hasError ? "border-error" : "border-primary bg-primary" : "",
|
|
1481
1481
|
"peer-focus:outline-none peer-focus:ring-2 peer-focus:ring-offset-2",
|
|
1482
1482
|
disabled && "opacity-50 cursor-not-allowed",
|
|
1483
1483
|
!disabled && "hover:border-[var(--color-border-hover)]"
|
|
@@ -1488,7 +1488,7 @@ var Radio = React110__default.forwardRef(
|
|
|
1488
1488
|
className: cn(
|
|
1489
1489
|
"transition-all",
|
|
1490
1490
|
dotSizeClasses[size],
|
|
1491
|
-
hasError ? "bg-
|
|
1491
|
+
hasError ? "bg-error" : "bg-primary-foreground"
|
|
1492
1492
|
)
|
|
1493
1493
|
}
|
|
1494
1494
|
)
|
|
@@ -1501,7 +1501,7 @@ var Radio = React110__default.forwardRef(
|
|
|
1501
1501
|
htmlFor: radioId,
|
|
1502
1502
|
className: cn(
|
|
1503
1503
|
"block text-sm font-medium cursor-pointer select-none",
|
|
1504
|
-
hasError ? "text-
|
|
1504
|
+
hasError ? "text-error" : "text-foreground",
|
|
1505
1505
|
disabled && "opacity-50 cursor-not-allowed"
|
|
1506
1506
|
),
|
|
1507
1507
|
children: label
|
|
@@ -1513,7 +1513,7 @@ var Radio = React110__default.forwardRef(
|
|
|
1513
1513
|
"p",
|
|
1514
1514
|
{
|
|
1515
1515
|
id: `${radioId}-error`,
|
|
1516
|
-
className: "text-sm text-
|
|
1516
|
+
className: "text-sm text-error font-medium",
|
|
1517
1517
|
role: "alert",
|
|
1518
1518
|
children: error
|
|
1519
1519
|
}
|
|
@@ -1522,7 +1522,7 @@ var Radio = React110__default.forwardRef(
|
|
|
1522
1522
|
"p",
|
|
1523
1523
|
{
|
|
1524
1524
|
id: `${radioId}-helper`,
|
|
1525
|
-
className: "text-sm text-
|
|
1525
|
+
className: "text-sm text-muted-foreground",
|
|
1526
1526
|
children: helperText
|
|
1527
1527
|
}
|
|
1528
1528
|
)
|
|
@@ -1683,20 +1683,20 @@ var Stack = ({
|
|
|
1683
1683
|
var VStack = (props) => /* @__PURE__ */ jsx(Stack, { direction: "vertical", ...props });
|
|
1684
1684
|
var HStack = (props) => /* @__PURE__ */ jsx(Stack, { direction: "horizontal", ...props });
|
|
1685
1685
|
var statusColors = {
|
|
1686
|
-
online: "bg-
|
|
1687
|
-
offline: "bg-
|
|
1688
|
-
away: "bg-
|
|
1689
|
-
busy: "bg-
|
|
1690
|
-
warning: "bg-
|
|
1691
|
-
critical: "bg-
|
|
1686
|
+
online: "bg-success",
|
|
1687
|
+
offline: "bg-muted-foreground",
|
|
1688
|
+
away: "bg-warning",
|
|
1689
|
+
busy: "bg-error",
|
|
1690
|
+
warning: "bg-warning",
|
|
1691
|
+
critical: "bg-error"
|
|
1692
1692
|
};
|
|
1693
1693
|
var pulseRingColors = {
|
|
1694
|
-
online: "ring-
|
|
1695
|
-
offline: "ring-
|
|
1696
|
-
away: "ring-
|
|
1697
|
-
busy: "ring-
|
|
1698
|
-
warning: "ring-
|
|
1699
|
-
critical: "ring-
|
|
1694
|
+
online: "ring-success",
|
|
1695
|
+
offline: "ring-muted-foreground",
|
|
1696
|
+
away: "ring-warning",
|
|
1697
|
+
busy: "ring-error",
|
|
1698
|
+
warning: "ring-warning",
|
|
1699
|
+
critical: "ring-error"
|
|
1700
1700
|
};
|
|
1701
1701
|
var sizeStyles5 = {
|
|
1702
1702
|
sm: "w-2 h-2",
|
|
@@ -1740,10 +1740,10 @@ function resolveDirection(value, direction) {
|
|
|
1740
1740
|
return value > 0 ? "up" : "down";
|
|
1741
1741
|
}
|
|
1742
1742
|
function resolveColor(dir, invert) {
|
|
1743
|
-
if (dir === "flat") return "text-
|
|
1743
|
+
if (dir === "flat") return "text-muted-foreground";
|
|
1744
1744
|
const isPositive = dir === "up";
|
|
1745
1745
|
const isGood = invert ? !isPositive : isPositive;
|
|
1746
|
-
return isGood ? "text-
|
|
1746
|
+
return isGood ? "text-success" : "text-error";
|
|
1747
1747
|
}
|
|
1748
1748
|
var iconMap2 = {
|
|
1749
1749
|
up: TrendingUp,
|
|
@@ -1861,7 +1861,7 @@ var RangeSlider = React110__default.forwardRef(
|
|
|
1861
1861
|
"div",
|
|
1862
1862
|
{
|
|
1863
1863
|
className: cn(
|
|
1864
|
-
"absolute inset-x-0 rounded-full bg-
|
|
1864
|
+
"absolute inset-x-0 rounded-full bg-muted",
|
|
1865
1865
|
trackSizes[size]
|
|
1866
1866
|
),
|
|
1867
1867
|
style: { top: "50%", transform: "translateY(-50%)" }
|
|
@@ -1871,7 +1871,7 @@ var RangeSlider = React110__default.forwardRef(
|
|
|
1871
1871
|
"div",
|
|
1872
1872
|
{
|
|
1873
1873
|
className: cn(
|
|
1874
|
-
"absolute rounded-full bg-
|
|
1874
|
+
"absolute rounded-full bg-muted-foreground opacity-30",
|
|
1875
1875
|
trackSizes[size]
|
|
1876
1876
|
),
|
|
1877
1877
|
style: {
|
|
@@ -1886,7 +1886,7 @@ var RangeSlider = React110__default.forwardRef(
|
|
|
1886
1886
|
"div",
|
|
1887
1887
|
{
|
|
1888
1888
|
className: cn(
|
|
1889
|
-
"absolute rounded-full bg-
|
|
1889
|
+
"absolute rounded-full bg-primary",
|
|
1890
1890
|
trackSizes[size]
|
|
1891
1891
|
),
|
|
1892
1892
|
style: {
|
|
@@ -1948,9 +1948,9 @@ var RangeSlider = React110__default.forwardRef(
|
|
|
1948
1948
|
"div",
|
|
1949
1949
|
{
|
|
1950
1950
|
className: cn(
|
|
1951
|
-
"absolute rounded-full bg-
|
|
1952
|
-
"border-2 border-
|
|
1953
|
-
"shadow-
|
|
1951
|
+
"absolute rounded-full bg-primary-foreground",
|
|
1952
|
+
"border-2 border-primary",
|
|
1953
|
+
"shadow-sm",
|
|
1954
1954
|
"pointer-events-none",
|
|
1955
1955
|
"transition-transform duration-100",
|
|
1956
1956
|
isDragging && "scale-110",
|
|
@@ -1968,7 +1968,7 @@ var RangeSlider = React110__default.forwardRef(
|
|
|
1968
1968
|
{
|
|
1969
1969
|
className: cn(
|
|
1970
1970
|
"absolute -top-8 px-2 py-0.5 rounded",
|
|
1971
|
-
"bg-
|
|
1971
|
+
"bg-foreground text-background",
|
|
1972
1972
|
"text-xs font-medium whitespace-nowrap",
|
|
1973
1973
|
"pointer-events-none"
|
|
1974
1974
|
),
|
|
@@ -1985,7 +1985,7 @@ var RangeSlider = React110__default.forwardRef(
|
|
|
1985
1985
|
return /* @__PURE__ */ jsx(
|
|
1986
1986
|
"div",
|
|
1987
1987
|
{
|
|
1988
|
-
className: "absolute w-px h-1.5 bg-
|
|
1988
|
+
className: "absolute w-px h-1.5 bg-muted-foreground",
|
|
1989
1989
|
style: { left: `${tickPercent}%` }
|
|
1990
1990
|
},
|
|
1991
1991
|
i
|
|
@@ -1999,8 +1999,8 @@ var RangeSlider = React110__default.forwardRef(
|
|
|
1999
1999
|
RangeSlider.displayName = "RangeSlider";
|
|
2000
2000
|
var backgroundClasses = {
|
|
2001
2001
|
default: "",
|
|
2002
|
-
alt: "bg-
|
|
2003
|
-
dark: "bg-
|
|
2002
|
+
alt: "bg-surface",
|
|
2003
|
+
dark: "bg-foreground text-background",
|
|
2004
2004
|
gradient: [
|
|
2005
2005
|
"bg-gradient-to-b",
|
|
2006
2006
|
"from-[var(--color-primary)]/5",
|
|
@@ -2177,9 +2177,9 @@ var ErrorState = ({
|
|
|
2177
2177
|
className
|
|
2178
2178
|
),
|
|
2179
2179
|
children: [
|
|
2180
|
-
/* @__PURE__ */ jsx(Box, { className: "mb-4 rounded-
|
|
2181
|
-
/* @__PURE__ */ jsx(Typography, { variant: "h3", className: "text-lg font-medium text-
|
|
2182
|
-
/* @__PURE__ */ jsx(Typography, { variant: "small", className: "mt-1 text-
|
|
2180
|
+
/* @__PURE__ */ jsx(Box, { className: "mb-4 rounded-full bg-error/10 p-3", children: /* @__PURE__ */ jsx(AlertCircle, { className: "h-8 w-8 text-error" }) }),
|
|
2181
|
+
/* @__PURE__ */ jsx(Typography, { variant: "h3", className: "text-lg font-medium text-foreground", children: resolvedTitle }),
|
|
2182
|
+
/* @__PURE__ */ jsx(Typography, { variant: "small", className: "mt-1 text-muted-foreground max-w-sm", children: resolvedMessage }),
|
|
2183
2183
|
(onRetry || retryEvent) && /* @__PURE__ */ jsx(Button, { variant: "secondary", className: "mt-4", onClick: handleRetry, children: t("error.retry") })
|
|
2184
2184
|
]
|
|
2185
2185
|
}
|
|
@@ -2853,7 +2853,7 @@ var MarkdownContent = React110__default.memo(
|
|
|
2853
2853
|
"blockquote",
|
|
2854
2854
|
{
|
|
2855
2855
|
...props,
|
|
2856
|
-
className: "border-l-4 border-blue-500 pl-4 italic text-
|
|
2856
|
+
className: "border-l-4 border-blue-500 pl-4 italic text-foreground my-4",
|
|
2857
2857
|
children
|
|
2858
2858
|
}
|
|
2859
2859
|
);
|
|
@@ -2928,7 +2928,7 @@ var CodeBlock = React110__default.memo(
|
|
|
2928
2928
|
variant: "ghost",
|
|
2929
2929
|
size: "sm",
|
|
2930
2930
|
onClick: handleCopy,
|
|
2931
|
-
className: "opacity-0 group-hover:opacity-100 focus:opacity-100 transition-opacity text-
|
|
2931
|
+
className: "opacity-0 group-hover:opacity-100 focus:opacity-100 transition-opacity text-muted-foreground hover:text-white",
|
|
2932
2932
|
"aria-label": "Copy code",
|
|
2933
2933
|
children: copied ? /* @__PURE__ */ jsx(Check, { size: 16, className: "text-green-400" }) : /* @__PURE__ */ jsx(Copy, { size: 16 })
|
|
2934
2934
|
}
|