@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.cjs
CHANGED
|
@@ -661,28 +661,28 @@ var marginYStyles = {
|
|
|
661
661
|
};
|
|
662
662
|
var bgStyles = {
|
|
663
663
|
transparent: "bg-transparent",
|
|
664
|
-
primary: "bg-
|
|
665
|
-
secondary: "bg-
|
|
666
|
-
muted: "bg-
|
|
667
|
-
accent: "bg-
|
|
668
|
-
surface: "bg-
|
|
669
|
-
overlay: "bg-
|
|
664
|
+
primary: "bg-primary text-primary-foreground",
|
|
665
|
+
secondary: "bg-secondary text-secondary-foreground",
|
|
666
|
+
muted: "bg-muted text-foreground",
|
|
667
|
+
accent: "bg-accent text-accent-foreground",
|
|
668
|
+
surface: "bg-card",
|
|
669
|
+
overlay: "bg-card/80 backdrop-blur-sm"
|
|
670
670
|
};
|
|
671
671
|
var roundedStyles = {
|
|
672
672
|
none: "rounded-none",
|
|
673
|
-
sm: "rounded-
|
|
674
|
-
md: "rounded-
|
|
675
|
-
lg: "rounded-
|
|
676
|
-
xl: "rounded-
|
|
677
|
-
"2xl": "rounded-
|
|
678
|
-
full: "rounded-
|
|
673
|
+
sm: "rounded-sm",
|
|
674
|
+
md: "rounded-md",
|
|
675
|
+
lg: "rounded-lg",
|
|
676
|
+
xl: "rounded-xl",
|
|
677
|
+
"2xl": "rounded-xl",
|
|
678
|
+
full: "rounded-full"
|
|
679
679
|
};
|
|
680
680
|
var shadowStyles = {
|
|
681
681
|
none: "shadow-none",
|
|
682
|
-
sm: "shadow-
|
|
683
|
-
md: "shadow
|
|
684
|
-
lg: "shadow-
|
|
685
|
-
xl: "shadow-
|
|
682
|
+
sm: "shadow-sm",
|
|
683
|
+
md: "shadow",
|
|
684
|
+
lg: "shadow-lg",
|
|
685
|
+
xl: "shadow-lg"
|
|
686
686
|
};
|
|
687
687
|
var displayStyles = {
|
|
688
688
|
block: "block",
|
|
@@ -770,7 +770,7 @@ var Box = React110__namespace.default.forwardRef(
|
|
|
770
770
|
// Background
|
|
771
771
|
bgStyles[bg],
|
|
772
772
|
// Border - uses theme variables
|
|
773
|
-
border && "border-[length:var(--border-width)] border-
|
|
773
|
+
border && "border-[length:var(--border-width)] border-border",
|
|
774
774
|
// Rounded
|
|
775
775
|
roundedStyles[rounded],
|
|
776
776
|
// Shadow
|
|
@@ -799,30 +799,30 @@ var Box = React110__namespace.default.forwardRef(
|
|
|
799
799
|
);
|
|
800
800
|
Box.displayName = "Box";
|
|
801
801
|
var variantStyles = {
|
|
802
|
-
h1: "text-4xl font-bold tracking-tight text-
|
|
803
|
-
h2: "text-3xl font-bold tracking-tight text-
|
|
804
|
-
h3: "text-2xl font-bold text-
|
|
805
|
-
h4: "text-xl font-bold text-
|
|
806
|
-
h5: "text-lg font-bold text-
|
|
807
|
-
h6: "text-base font-bold text-
|
|
808
|
-
heading: "text-2xl font-bold text-
|
|
809
|
-
subheading: "text-lg font-semibold text-
|
|
810
|
-
body1: "text-base font-normal text-
|
|
811
|
-
body2: "text-sm font-normal text-
|
|
812
|
-
body: "text-base font-normal text-
|
|
813
|
-
caption: "text-xs font-normal text-
|
|
814
|
-
overline: "text-xs uppercase tracking-wide font-bold text-
|
|
815
|
-
small: "text-sm font-normal text-
|
|
816
|
-
large: "text-lg font-medium text-
|
|
817
|
-
label: "text-sm font-medium text-
|
|
802
|
+
h1: "text-4xl font-bold tracking-tight text-foreground",
|
|
803
|
+
h2: "text-3xl font-bold tracking-tight text-foreground",
|
|
804
|
+
h3: "text-2xl font-bold text-foreground",
|
|
805
|
+
h4: "text-xl font-bold text-foreground",
|
|
806
|
+
h5: "text-lg font-bold text-foreground",
|
|
807
|
+
h6: "text-base font-bold text-foreground",
|
|
808
|
+
heading: "text-2xl font-bold text-foreground",
|
|
809
|
+
subheading: "text-lg font-semibold text-foreground",
|
|
810
|
+
body1: "text-base font-normal text-foreground",
|
|
811
|
+
body2: "text-sm font-normal text-foreground",
|
|
812
|
+
body: "text-base font-normal text-foreground",
|
|
813
|
+
caption: "text-xs font-normal text-muted-foreground",
|
|
814
|
+
overline: "text-xs uppercase tracking-wide font-bold text-muted-foreground",
|
|
815
|
+
small: "text-sm font-normal text-foreground",
|
|
816
|
+
large: "text-lg font-medium text-foreground",
|
|
817
|
+
label: "text-sm font-medium text-foreground"
|
|
818
818
|
};
|
|
819
819
|
var colorStyles = {
|
|
820
|
-
primary: "text-
|
|
821
|
-
secondary: "text-
|
|
822
|
-
muted: "text-
|
|
823
|
-
error: "text-
|
|
824
|
-
success: "text-
|
|
825
|
-
warning: "text-
|
|
820
|
+
primary: "text-foreground",
|
|
821
|
+
secondary: "text-muted-foreground",
|
|
822
|
+
muted: "text-muted-foreground",
|
|
823
|
+
error: "text-error",
|
|
824
|
+
success: "text-success",
|
|
825
|
+
warning: "text-warning",
|
|
826
826
|
inherit: "text-inherit"
|
|
827
827
|
};
|
|
828
828
|
var weightStyles = {
|
|
@@ -907,49 +907,49 @@ var Typography = ({
|
|
|
907
907
|
Typography.displayName = "Typography";
|
|
908
908
|
var variantStyles2 = {
|
|
909
909
|
primary: [
|
|
910
|
-
"bg-
|
|
910
|
+
"bg-primary text-primary-foreground",
|
|
911
911
|
"border-none",
|
|
912
|
-
"shadow-
|
|
913
|
-
"hover:bg-
|
|
914
|
-
"active:scale-[var(--active-scale)] active:shadow-
|
|
912
|
+
"shadow-sm",
|
|
913
|
+
"hover:bg-primary-hover hover:shadow-lg",
|
|
914
|
+
"active:scale-[var(--active-scale)] active:shadow-sm"
|
|
915
915
|
].join(" "),
|
|
916
916
|
secondary: [
|
|
917
|
-
"bg-transparent text-
|
|
918
|
-
"border border-
|
|
919
|
-
"hover:bg-
|
|
917
|
+
"bg-transparent text-accent",
|
|
918
|
+
"border border-accent",
|
|
919
|
+
"hover:bg-accent hover:text-white hover:border-accent",
|
|
920
920
|
"active:scale-[var(--active-scale)]"
|
|
921
921
|
].join(" "),
|
|
922
922
|
ghost: [
|
|
923
|
-
"bg-transparent text-
|
|
924
|
-
"hover:text-
|
|
923
|
+
"bg-transparent text-muted-foreground",
|
|
924
|
+
"hover:text-foreground hover:bg-muted",
|
|
925
925
|
"active:scale-[var(--active-scale)]"
|
|
926
926
|
].join(" "),
|
|
927
927
|
danger: [
|
|
928
|
-
"bg-
|
|
929
|
-
"border-[length:var(--border-width)] border-
|
|
930
|
-
"shadow-
|
|
931
|
-
"hover:bg-
|
|
932
|
-
"active:scale-[var(--active-scale)] active:shadow-
|
|
928
|
+
"bg-surface text-error",
|
|
929
|
+
"border-[length:var(--border-width)] border-error",
|
|
930
|
+
"shadow-sm",
|
|
931
|
+
"hover:bg-error hover:text-error-foreground hover:shadow-lg",
|
|
932
|
+
"active:scale-[var(--active-scale)] active:shadow-sm"
|
|
933
933
|
].join(" "),
|
|
934
934
|
success: [
|
|
935
|
-
"bg-
|
|
936
|
-
"border-[length:var(--border-width)] border-
|
|
937
|
-
"shadow-
|
|
938
|
-
"hover:bg-
|
|
939
|
-
"active:scale-[var(--active-scale)] active:shadow-
|
|
935
|
+
"bg-surface text-success",
|
|
936
|
+
"border-[length:var(--border-width)] border-success",
|
|
937
|
+
"shadow-sm",
|
|
938
|
+
"hover:bg-success hover:text-success-foreground hover:shadow-lg",
|
|
939
|
+
"active:scale-[var(--active-scale)] active:shadow-sm"
|
|
940
940
|
].join(" "),
|
|
941
941
|
warning: [
|
|
942
|
-
"bg-
|
|
943
|
-
"border-[length:var(--border-width)] border-
|
|
944
|
-
"shadow-
|
|
945
|
-
"hover:bg-
|
|
946
|
-
"active:scale-[var(--active-scale)] active:shadow-
|
|
942
|
+
"bg-surface text-warning",
|
|
943
|
+
"border-[length:var(--border-width)] border-warning",
|
|
944
|
+
"shadow-sm",
|
|
945
|
+
"hover:bg-warning hover:text-warning-foreground hover:shadow-lg",
|
|
946
|
+
"active:scale-[var(--active-scale)] active:shadow-sm"
|
|
947
947
|
].join(" "),
|
|
948
948
|
// "default" is an alias for secondary
|
|
949
949
|
default: [
|
|
950
|
-
"bg-
|
|
951
|
-
"border-[length:var(--border-width-thin)] border-
|
|
952
|
-
"hover:bg-
|
|
950
|
+
"bg-secondary text-secondary-foreground",
|
|
951
|
+
"border-[length:var(--border-width-thin)] border-border",
|
|
952
|
+
"hover:bg-secondary-hover",
|
|
953
953
|
"active:scale-[var(--active-scale)]"
|
|
954
954
|
].join(" ")
|
|
955
955
|
};
|
|
@@ -1020,10 +1020,10 @@ var Button = React110__namespace.default.forwardRef(
|
|
|
1020
1020
|
className: cn(
|
|
1021
1021
|
"inline-flex items-center justify-center gap-2",
|
|
1022
1022
|
"font-[var(--font-weight-medium)]",
|
|
1023
|
-
"rounded-
|
|
1023
|
+
"rounded-sm",
|
|
1024
1024
|
"cursor-pointer",
|
|
1025
1025
|
"transition-all duration-[var(--transition-normal)]",
|
|
1026
|
-
"focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-
|
|
1026
|
+
"focus:outline-none focus:ring-[length:var(--focus-ring-width)] focus:ring-ring focus:ring-offset-[length:var(--focus-ring-offset)]",
|
|
1027
1027
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
1028
1028
|
variantStyles2[variant],
|
|
1029
1029
|
sizeStyles2[size],
|
|
@@ -1044,34 +1044,34 @@ var Button = React110__namespace.default.forwardRef(
|
|
|
1044
1044
|
Button.displayName = "Button";
|
|
1045
1045
|
var variantStyles3 = {
|
|
1046
1046
|
default: [
|
|
1047
|
-
"bg-
|
|
1048
|
-
"border-[length:var(--border-width-thin)] border-
|
|
1047
|
+
"bg-muted text-foreground",
|
|
1048
|
+
"border-[length:var(--border-width-thin)] border-border"
|
|
1049
1049
|
].join(" "),
|
|
1050
|
-
primary: "bg-
|
|
1051
|
-
secondary: "bg-
|
|
1050
|
+
primary: "bg-primary text-primary-foreground",
|
|
1051
|
+
secondary: "bg-secondary text-secondary-foreground",
|
|
1052
1052
|
success: [
|
|
1053
|
-
"bg-
|
|
1054
|
-
"border-[length:var(--border-width)] border-
|
|
1053
|
+
"bg-surface text-success",
|
|
1054
|
+
"border-[length:var(--border-width)] border-success"
|
|
1055
1055
|
].join(" "),
|
|
1056
1056
|
warning: [
|
|
1057
|
-
"bg-
|
|
1058
|
-
"border-[length:var(--border-width)] border-
|
|
1057
|
+
"bg-surface text-warning",
|
|
1058
|
+
"border-[length:var(--border-width)] border-warning"
|
|
1059
1059
|
].join(" "),
|
|
1060
1060
|
danger: [
|
|
1061
|
-
"bg-
|
|
1062
|
-
"border-[length:var(--border-width)] border-
|
|
1061
|
+
"bg-surface text-error",
|
|
1062
|
+
"border-[length:var(--border-width)] border-error"
|
|
1063
1063
|
].join(" "),
|
|
1064
1064
|
error: [
|
|
1065
|
-
"bg-
|
|
1066
|
-
"border-[length:var(--border-width)] border-
|
|
1065
|
+
"bg-surface text-error",
|
|
1066
|
+
"border-[length:var(--border-width)] border-error"
|
|
1067
1067
|
].join(" "),
|
|
1068
1068
|
info: [
|
|
1069
|
-
"bg-
|
|
1070
|
-
"border-[length:var(--border-width)] border-
|
|
1069
|
+
"bg-surface text-info",
|
|
1070
|
+
"border-[length:var(--border-width)] border-info"
|
|
1071
1071
|
].join(" "),
|
|
1072
1072
|
neutral: [
|
|
1073
|
-
"bg-
|
|
1074
|
-
"border-[length:var(--border-width-thin)] border-
|
|
1073
|
+
"bg-muted text-muted-foreground",
|
|
1074
|
+
"border-[length:var(--border-width-thin)] border-border"
|
|
1075
1075
|
].join(" ")
|
|
1076
1076
|
};
|
|
1077
1077
|
var sizeStyles3 = {
|
|
@@ -1091,7 +1091,7 @@ var Badge = React110__namespace.default.forwardRef(
|
|
|
1091
1091
|
{
|
|
1092
1092
|
ref,
|
|
1093
1093
|
className: cn(
|
|
1094
|
-
"inline-flex items-center gap-1 font-bold rounded-
|
|
1094
|
+
"inline-flex items-center gap-1 font-bold rounded-sm",
|
|
1095
1095
|
variantStyles3[variant],
|
|
1096
1096
|
sizeStyles3[size],
|
|
1097
1097
|
className
|
|
@@ -1127,21 +1127,21 @@ var Input = React110__namespace.default.forwardRef(
|
|
|
1127
1127
|
const resolvedLeftIcon = leftIcon || IconComponent && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { className: "h-4 w-4" });
|
|
1128
1128
|
const showClearButton = clearable && value && String(value).length > 0;
|
|
1129
1129
|
const baseClassName = cn(
|
|
1130
|
-
"block w-full rounded-
|
|
1131
|
-
"border-[length:var(--border-width-thin)] border-
|
|
1130
|
+
"block w-full rounded-sm transition-all duration-[var(--transition-fast)]",
|
|
1131
|
+
"border-[length:var(--border-width-thin)] border-border",
|
|
1132
1132
|
"px-3 py-2 text-sm",
|
|
1133
|
-
"bg-
|
|
1134
|
-
"text-
|
|
1135
|
-
"focus:outline-none focus:ring-1 focus:ring-
|
|
1136
|
-
"disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-
|
|
1137
|
-
error ? "border-
|
|
1133
|
+
"bg-card hover:bg-muted focus:bg-card",
|
|
1134
|
+
"text-foreground placeholder:text-muted-foreground",
|
|
1135
|
+
"focus:outline-none focus:ring-1 focus:ring-ring focus:border-ring",
|
|
1136
|
+
"disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-muted",
|
|
1137
|
+
error ? "border-error focus:border-error focus:ring-error" : "",
|
|
1138
1138
|
resolvedLeftIcon && "pl-10",
|
|
1139
1139
|
(rightIcon || showClearButton) && "pr-10",
|
|
1140
1140
|
className
|
|
1141
1141
|
);
|
|
1142
1142
|
if (type === "select") {
|
|
1143
1143
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
1144
|
-
resolvedLeftIcon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-
|
|
1144
|
+
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 }),
|
|
1145
1145
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1146
1146
|
"select",
|
|
1147
1147
|
{
|
|
@@ -1156,7 +1156,7 @@ var Input = React110__namespace.default.forwardRef(
|
|
|
1156
1156
|
]
|
|
1157
1157
|
}
|
|
1158
1158
|
),
|
|
1159
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none text-
|
|
1159
|
+
/* @__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" }) })
|
|
1160
1160
|
] });
|
|
1161
1161
|
}
|
|
1162
1162
|
if (type === "textarea") {
|
|
@@ -1181,9 +1181,9 @@ var Input = React110__namespace.default.forwardRef(
|
|
|
1181
1181
|
checked: props.checked,
|
|
1182
1182
|
onChange,
|
|
1183
1183
|
className: cn(
|
|
1184
|
-
"h-4 w-4 rounded-
|
|
1185
|
-
"border-
|
|
1186
|
-
"text-
|
|
1184
|
+
"h-4 w-4 rounded-sm",
|
|
1185
|
+
"border-border",
|
|
1186
|
+
"text-primary focus:ring-ring",
|
|
1187
1187
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
1188
1188
|
className
|
|
1189
1189
|
),
|
|
@@ -1192,7 +1192,7 @@ var Input = React110__namespace.default.forwardRef(
|
|
|
1192
1192
|
);
|
|
1193
1193
|
}
|
|
1194
1194
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
1195
|
-
resolvedLeftIcon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none text-
|
|
1195
|
+
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 }),
|
|
1196
1196
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1197
1197
|
"input",
|
|
1198
1198
|
{
|
|
@@ -1209,11 +1209,11 @@ var Input = React110__namespace.default.forwardRef(
|
|
|
1209
1209
|
{
|
|
1210
1210
|
type: "button",
|
|
1211
1211
|
onClick: onClear,
|
|
1212
|
-
className: "absolute inset-y-0 right-0 pr-3 flex items-center text-
|
|
1212
|
+
className: "absolute inset-y-0 right-0 pr-3 flex items-center text-muted-foreground hover:text-foreground",
|
|
1213
1213
|
children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.X, { className: "h-4 w-4" })
|
|
1214
1214
|
}
|
|
1215
1215
|
),
|
|
1216
|
-
rightIcon && !showClearButton && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center text-
|
|
1216
|
+
rightIcon && !showClearButton && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center text-muted-foreground", children: rightIcon })
|
|
1217
1217
|
] });
|
|
1218
1218
|
}
|
|
1219
1219
|
);
|
|
@@ -1225,13 +1225,13 @@ var Label = React110__namespace.default.forwardRef(
|
|
|
1225
1225
|
{
|
|
1226
1226
|
ref,
|
|
1227
1227
|
className: cn(
|
|
1228
|
-
"block text-sm font-bold text-
|
|
1228
|
+
"block text-sm font-bold text-foreground",
|
|
1229
1229
|
className
|
|
1230
1230
|
),
|
|
1231
1231
|
...props,
|
|
1232
1232
|
children: [
|
|
1233
1233
|
children,
|
|
1234
|
-
required && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-
|
|
1234
|
+
required && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-error ml-1", children: "*" })
|
|
1235
1235
|
]
|
|
1236
1236
|
}
|
|
1237
1237
|
);
|
|
@@ -1245,14 +1245,14 @@ var Textarea = React110__namespace.default.forwardRef(
|
|
|
1245
1245
|
{
|
|
1246
1246
|
ref,
|
|
1247
1247
|
className: cn(
|
|
1248
|
-
"block w-full border-[length:var(--border-width)] shadow-
|
|
1249
|
-
"px-3 py-2 text-sm text-
|
|
1250
|
-
"bg-
|
|
1248
|
+
"block w-full border-[length:var(--border-width)] shadow-sm",
|
|
1249
|
+
"px-3 py-2 text-sm text-foreground",
|
|
1250
|
+
"bg-card",
|
|
1251
1251
|
"placeholder:text-[var(--color-placeholder)]",
|
|
1252
|
-
"focus:outline-none focus:ring-2 focus:ring-offset-0 focus:ring-
|
|
1253
|
-
"disabled:bg-
|
|
1252
|
+
"focus:outline-none focus:ring-2 focus:ring-offset-0 focus:ring-ring",
|
|
1253
|
+
"disabled:bg-muted disabled:text-muted-foreground disabled:cursor-not-allowed",
|
|
1254
1254
|
"resize-y min-h-[80px]",
|
|
1255
|
-
error ? "border-
|
|
1255
|
+
error ? "border-error focus:border-error" : "border-border focus:border-primary",
|
|
1256
1256
|
className
|
|
1257
1257
|
),
|
|
1258
1258
|
...props
|
|
@@ -1269,12 +1269,12 @@ var Select = React110__namespace.default.forwardRef(
|
|
|
1269
1269
|
{
|
|
1270
1270
|
ref,
|
|
1271
1271
|
className: cn(
|
|
1272
|
-
"block w-full border-[length:var(--border-width)] shadow-
|
|
1273
|
-
"px-3 py-2 pr-10 text-sm text-
|
|
1274
|
-
"bg-
|
|
1275
|
-
"focus:outline-none focus:ring-2 focus:ring-offset-0 focus:ring-
|
|
1276
|
-
"disabled:bg-
|
|
1277
|
-
error ? "border-
|
|
1272
|
+
"block w-full border-[length:var(--border-width)] shadow-sm appearance-none",
|
|
1273
|
+
"px-3 py-2 pr-10 text-sm text-foreground font-medium",
|
|
1274
|
+
"bg-card",
|
|
1275
|
+
"focus:outline-none focus:ring-2 focus:ring-offset-0 focus:ring-ring",
|
|
1276
|
+
"disabled:bg-muted disabled:text-muted-foreground disabled:cursor-not-allowed",
|
|
1277
|
+
error ? "border-error focus:border-error" : "border-border focus:border-primary",
|
|
1278
1278
|
className
|
|
1279
1279
|
),
|
|
1280
1280
|
...props,
|
|
@@ -1292,7 +1292,7 @@ var Select = React110__namespace.default.forwardRef(
|
|
|
1292
1292
|
]
|
|
1293
1293
|
}
|
|
1294
1294
|
),
|
|
1295
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none", children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.ChevronDown, { className: "h-4 w-4 text-
|
|
1295
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none", children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.ChevronDown, { className: "h-4 w-4 text-foreground" }) })
|
|
1296
1296
|
] });
|
|
1297
1297
|
}
|
|
1298
1298
|
);
|
|
@@ -1308,9 +1308,9 @@ var Checkbox = React110__namespace.default.forwardRef(
|
|
|
1308
1308
|
type: "checkbox",
|
|
1309
1309
|
id: inputId,
|
|
1310
1310
|
className: cn(
|
|
1311
|
-
"peer h-4 w-4 border-[length:var(--border-width)] border-
|
|
1312
|
-
"accent-
|
|
1313
|
-
"bg-
|
|
1311
|
+
"peer h-4 w-4 border-[length:var(--border-width)] border-border",
|
|
1312
|
+
"accent-primary focus:ring-ring focus:ring-offset-0",
|
|
1313
|
+
"bg-card checked:bg-primary",
|
|
1314
1314
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
1315
1315
|
className
|
|
1316
1316
|
),
|
|
@@ -1321,7 +1321,7 @@ var Checkbox = React110__namespace.default.forwardRef(
|
|
|
1321
1321
|
"label",
|
|
1322
1322
|
{
|
|
1323
1323
|
htmlFor: inputId,
|
|
1324
|
-
className: "ml-2 text-sm text-
|
|
1324
|
+
className: "ml-2 text-sm text-foreground font-medium cursor-pointer select-none",
|
|
1325
1325
|
children: label
|
|
1326
1326
|
}
|
|
1327
1327
|
)
|
|
@@ -1331,34 +1331,34 @@ var Checkbox = React110__namespace.default.forwardRef(
|
|
|
1331
1331
|
Checkbox.displayName = "Checkbox";
|
|
1332
1332
|
var variantStyles4 = {
|
|
1333
1333
|
default: [
|
|
1334
|
-
"bg-
|
|
1335
|
-
"border-[length:var(--border-width)] border-
|
|
1336
|
-
"shadow-
|
|
1334
|
+
"bg-card",
|
|
1335
|
+
"border-[length:var(--border-width)] border-border",
|
|
1336
|
+
"shadow-sm",
|
|
1337
1337
|
"transition-all duration-[var(--transition-normal)]",
|
|
1338
|
-
"hover:shadow-
|
|
1338
|
+
"hover:shadow-lg hover:-translate-y-0.5"
|
|
1339
1339
|
].join(" "),
|
|
1340
1340
|
bordered: [
|
|
1341
|
-
"bg-
|
|
1342
|
-
"border-[length:var(--border-width)] border-
|
|
1343
|
-
"shadow-
|
|
1341
|
+
"bg-card",
|
|
1342
|
+
"border-[length:var(--border-width)] border-border",
|
|
1343
|
+
"shadow-sm",
|
|
1344
1344
|
"transition-all duration-[var(--transition-normal)]",
|
|
1345
|
-
"hover:shadow-
|
|
1345
|
+
"hover:shadow-lg hover:-translate-y-0.5"
|
|
1346
1346
|
].join(" "),
|
|
1347
1347
|
elevated: [
|
|
1348
|
-
"bg-
|
|
1349
|
-
"border-[length:var(--border-width)] border-
|
|
1350
|
-
"shadow
|
|
1348
|
+
"bg-card",
|
|
1349
|
+
"border-[length:var(--border-width)] border-border",
|
|
1350
|
+
"shadow",
|
|
1351
1351
|
"transition-all duration-[var(--transition-normal)]",
|
|
1352
|
-
"hover:shadow-
|
|
1352
|
+
"hover:shadow-lg hover:-translate-y-0.5"
|
|
1353
1353
|
].join(" "),
|
|
1354
1354
|
// Interactive variant with theme-specific hover effects
|
|
1355
1355
|
interactive: [
|
|
1356
|
-
"bg-
|
|
1357
|
-
"border-[length:var(--border-width)] border-
|
|
1358
|
-
"shadow
|
|
1356
|
+
"bg-card",
|
|
1357
|
+
"border-[length:var(--border-width)] border-border",
|
|
1358
|
+
"shadow",
|
|
1359
1359
|
"cursor-pointer",
|
|
1360
1360
|
"transition-all duration-[var(--transition-normal)]",
|
|
1361
|
-
"hover:shadow-
|
|
1361
|
+
"hover:shadow-lg"
|
|
1362
1362
|
].join(" ")
|
|
1363
1363
|
};
|
|
1364
1364
|
var paddingStyles2 = {
|
|
@@ -1369,9 +1369,9 @@ var paddingStyles2 = {
|
|
|
1369
1369
|
};
|
|
1370
1370
|
var shadowStyles2 = {
|
|
1371
1371
|
none: "shadow-none",
|
|
1372
|
-
sm: "shadow-
|
|
1373
|
-
md: "shadow
|
|
1374
|
-
lg: "shadow-
|
|
1372
|
+
sm: "shadow-sm",
|
|
1373
|
+
md: "shadow",
|
|
1374
|
+
lg: "shadow-lg"
|
|
1375
1375
|
};
|
|
1376
1376
|
var Card = React110__namespace.default.forwardRef(
|
|
1377
1377
|
({
|
|
@@ -1389,7 +1389,7 @@ var Card = React110__namespace.default.forwardRef(
|
|
|
1389
1389
|
{
|
|
1390
1390
|
ref,
|
|
1391
1391
|
className: cn(
|
|
1392
|
-
"rounded-
|
|
1392
|
+
"rounded-md",
|
|
1393
1393
|
"transition-all duration-[var(--transition-normal)]",
|
|
1394
1394
|
variantStyles4[variant],
|
|
1395
1395
|
paddingStyles2[padding],
|
|
@@ -1399,8 +1399,8 @@ var Card = React110__namespace.default.forwardRef(
|
|
|
1399
1399
|
...props,
|
|
1400
1400
|
children: [
|
|
1401
1401
|
(title || subtitle) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-4", children: [
|
|
1402
|
-
title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg text-
|
|
1403
|
-
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-
|
|
1402
|
+
title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg text-card-foreground font-[var(--font-weight-bold)]", children: title }),
|
|
1403
|
+
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground mt-1", children: subtitle })
|
|
1404
1404
|
] }),
|
|
1405
1405
|
children
|
|
1406
1406
|
]
|
|
@@ -1416,7 +1416,7 @@ var CardTitle = React110__namespace.default.forwardRef(({ className, ...props },
|
|
|
1416
1416
|
{
|
|
1417
1417
|
ref,
|
|
1418
1418
|
className: cn(
|
|
1419
|
-
"text-lg text-
|
|
1419
|
+
"text-lg text-card-foreground",
|
|
1420
1420
|
"font-[var(--font-weight-bold)]",
|
|
1421
1421
|
className
|
|
1422
1422
|
),
|
|
@@ -1449,7 +1449,7 @@ var Spinner = React110__namespace.default.forwardRef(
|
|
|
1449
1449
|
"div",
|
|
1450
1450
|
{
|
|
1451
1451
|
ref,
|
|
1452
|
-
className: cn("text-
|
|
1452
|
+
className: cn("text-foreground", className),
|
|
1453
1453
|
...props,
|
|
1454
1454
|
children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.Loader2, { className: cn("animate-spin", sizeStyles4[size]) })
|
|
1455
1455
|
}
|
|
@@ -1506,8 +1506,8 @@ var Radio = React110__namespace.default.forwardRef(
|
|
|
1506
1506
|
"flex items-center justify-center",
|
|
1507
1507
|
"border-[length:var(--border-width)] transition-all cursor-pointer",
|
|
1508
1508
|
sizeClasses6[size],
|
|
1509
|
-
hasError ? "border-
|
|
1510
|
-
checked ? hasError ? "border-
|
|
1509
|
+
hasError ? "border-error peer-focus:ring-error/20" : "border-border peer-focus:ring-ring/20",
|
|
1510
|
+
checked ? hasError ? "border-error" : "border-primary bg-primary" : "",
|
|
1511
1511
|
"peer-focus:outline-none peer-focus:ring-2 peer-focus:ring-offset-2",
|
|
1512
1512
|
disabled && "opacity-50 cursor-not-allowed",
|
|
1513
1513
|
!disabled && "hover:border-[var(--color-border-hover)]"
|
|
@@ -1518,7 +1518,7 @@ var Radio = React110__namespace.default.forwardRef(
|
|
|
1518
1518
|
className: cn(
|
|
1519
1519
|
"transition-all",
|
|
1520
1520
|
dotSizeClasses[size],
|
|
1521
|
-
hasError ? "bg-
|
|
1521
|
+
hasError ? "bg-error" : "bg-primary-foreground"
|
|
1522
1522
|
)
|
|
1523
1523
|
}
|
|
1524
1524
|
)
|
|
@@ -1531,7 +1531,7 @@ var Radio = React110__namespace.default.forwardRef(
|
|
|
1531
1531
|
htmlFor: radioId,
|
|
1532
1532
|
className: cn(
|
|
1533
1533
|
"block text-sm font-medium cursor-pointer select-none",
|
|
1534
|
-
hasError ? "text-
|
|
1534
|
+
hasError ? "text-error" : "text-foreground",
|
|
1535
1535
|
disabled && "opacity-50 cursor-not-allowed"
|
|
1536
1536
|
),
|
|
1537
1537
|
children: label
|
|
@@ -1543,7 +1543,7 @@ var Radio = React110__namespace.default.forwardRef(
|
|
|
1543
1543
|
"p",
|
|
1544
1544
|
{
|
|
1545
1545
|
id: `${radioId}-error`,
|
|
1546
|
-
className: "text-sm text-
|
|
1546
|
+
className: "text-sm text-error font-medium",
|
|
1547
1547
|
role: "alert",
|
|
1548
1548
|
children: error
|
|
1549
1549
|
}
|
|
@@ -1552,7 +1552,7 @@ var Radio = React110__namespace.default.forwardRef(
|
|
|
1552
1552
|
"p",
|
|
1553
1553
|
{
|
|
1554
1554
|
id: `${radioId}-helper`,
|
|
1555
|
-
className: "text-sm text-
|
|
1555
|
+
className: "text-sm text-muted-foreground",
|
|
1556
1556
|
children: helperText
|
|
1557
1557
|
}
|
|
1558
1558
|
)
|
|
@@ -1713,20 +1713,20 @@ var Stack = ({
|
|
|
1713
1713
|
var VStack = (props) => /* @__PURE__ */ jsxRuntime.jsx(Stack, { direction: "vertical", ...props });
|
|
1714
1714
|
var HStack = (props) => /* @__PURE__ */ jsxRuntime.jsx(Stack, { direction: "horizontal", ...props });
|
|
1715
1715
|
var statusColors = {
|
|
1716
|
-
online: "bg-
|
|
1717
|
-
offline: "bg-
|
|
1718
|
-
away: "bg-
|
|
1719
|
-
busy: "bg-
|
|
1720
|
-
warning: "bg-
|
|
1721
|
-
critical: "bg-
|
|
1716
|
+
online: "bg-success",
|
|
1717
|
+
offline: "bg-muted-foreground",
|
|
1718
|
+
away: "bg-warning",
|
|
1719
|
+
busy: "bg-error",
|
|
1720
|
+
warning: "bg-warning",
|
|
1721
|
+
critical: "bg-error"
|
|
1722
1722
|
};
|
|
1723
1723
|
var pulseRingColors = {
|
|
1724
|
-
online: "ring-
|
|
1725
|
-
offline: "ring-
|
|
1726
|
-
away: "ring-
|
|
1727
|
-
busy: "ring-
|
|
1728
|
-
warning: "ring-
|
|
1729
|
-
critical: "ring-
|
|
1724
|
+
online: "ring-success",
|
|
1725
|
+
offline: "ring-muted-foreground",
|
|
1726
|
+
away: "ring-warning",
|
|
1727
|
+
busy: "ring-error",
|
|
1728
|
+
warning: "ring-warning",
|
|
1729
|
+
critical: "ring-error"
|
|
1730
1730
|
};
|
|
1731
1731
|
var sizeStyles5 = {
|
|
1732
1732
|
sm: "w-2 h-2",
|
|
@@ -1770,10 +1770,10 @@ function resolveDirection(value, direction) {
|
|
|
1770
1770
|
return value > 0 ? "up" : "down";
|
|
1771
1771
|
}
|
|
1772
1772
|
function resolveColor(dir, invert) {
|
|
1773
|
-
if (dir === "flat") return "text-
|
|
1773
|
+
if (dir === "flat") return "text-muted-foreground";
|
|
1774
1774
|
const isPositive = dir === "up";
|
|
1775
1775
|
const isGood = invert ? !isPositive : isPositive;
|
|
1776
|
-
return isGood ? "text-
|
|
1776
|
+
return isGood ? "text-success" : "text-error";
|
|
1777
1777
|
}
|
|
1778
1778
|
var iconMap2 = {
|
|
1779
1779
|
up: LucideIcons.TrendingUp,
|
|
@@ -1891,7 +1891,7 @@ var RangeSlider = React110__namespace.default.forwardRef(
|
|
|
1891
1891
|
"div",
|
|
1892
1892
|
{
|
|
1893
1893
|
className: cn(
|
|
1894
|
-
"absolute inset-x-0 rounded-full bg-
|
|
1894
|
+
"absolute inset-x-0 rounded-full bg-muted",
|
|
1895
1895
|
trackSizes[size]
|
|
1896
1896
|
),
|
|
1897
1897
|
style: { top: "50%", transform: "translateY(-50%)" }
|
|
@@ -1901,7 +1901,7 @@ var RangeSlider = React110__namespace.default.forwardRef(
|
|
|
1901
1901
|
"div",
|
|
1902
1902
|
{
|
|
1903
1903
|
className: cn(
|
|
1904
|
-
"absolute rounded-full bg-
|
|
1904
|
+
"absolute rounded-full bg-muted-foreground opacity-30",
|
|
1905
1905
|
trackSizes[size]
|
|
1906
1906
|
),
|
|
1907
1907
|
style: {
|
|
@@ -1916,7 +1916,7 @@ var RangeSlider = React110__namespace.default.forwardRef(
|
|
|
1916
1916
|
"div",
|
|
1917
1917
|
{
|
|
1918
1918
|
className: cn(
|
|
1919
|
-
"absolute rounded-full bg-
|
|
1919
|
+
"absolute rounded-full bg-primary",
|
|
1920
1920
|
trackSizes[size]
|
|
1921
1921
|
),
|
|
1922
1922
|
style: {
|
|
@@ -1978,9 +1978,9 @@ var RangeSlider = React110__namespace.default.forwardRef(
|
|
|
1978
1978
|
"div",
|
|
1979
1979
|
{
|
|
1980
1980
|
className: cn(
|
|
1981
|
-
"absolute rounded-full bg-
|
|
1982
|
-
"border-2 border-
|
|
1983
|
-
"shadow-
|
|
1981
|
+
"absolute rounded-full bg-primary-foreground",
|
|
1982
|
+
"border-2 border-primary",
|
|
1983
|
+
"shadow-sm",
|
|
1984
1984
|
"pointer-events-none",
|
|
1985
1985
|
"transition-transform duration-100",
|
|
1986
1986
|
isDragging && "scale-110",
|
|
@@ -1998,7 +1998,7 @@ var RangeSlider = React110__namespace.default.forwardRef(
|
|
|
1998
1998
|
{
|
|
1999
1999
|
className: cn(
|
|
2000
2000
|
"absolute -top-8 px-2 py-0.5 rounded",
|
|
2001
|
-
"bg-
|
|
2001
|
+
"bg-foreground text-background",
|
|
2002
2002
|
"text-xs font-medium whitespace-nowrap",
|
|
2003
2003
|
"pointer-events-none"
|
|
2004
2004
|
),
|
|
@@ -2015,7 +2015,7 @@ var RangeSlider = React110__namespace.default.forwardRef(
|
|
|
2015
2015
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2016
2016
|
"div",
|
|
2017
2017
|
{
|
|
2018
|
-
className: "absolute w-px h-1.5 bg-
|
|
2018
|
+
className: "absolute w-px h-1.5 bg-muted-foreground",
|
|
2019
2019
|
style: { left: `${tickPercent}%` }
|
|
2020
2020
|
},
|
|
2021
2021
|
i
|
|
@@ -2029,8 +2029,8 @@ var RangeSlider = React110__namespace.default.forwardRef(
|
|
|
2029
2029
|
RangeSlider.displayName = "RangeSlider";
|
|
2030
2030
|
var backgroundClasses = {
|
|
2031
2031
|
default: "",
|
|
2032
|
-
alt: "bg-
|
|
2033
|
-
dark: "bg-
|
|
2032
|
+
alt: "bg-surface",
|
|
2033
|
+
dark: "bg-foreground text-background",
|
|
2034
2034
|
gradient: [
|
|
2035
2035
|
"bg-gradient-to-b",
|
|
2036
2036
|
"from-[var(--color-primary)]/5",
|
|
@@ -2207,9 +2207,9 @@ var ErrorState = ({
|
|
|
2207
2207
|
className
|
|
2208
2208
|
),
|
|
2209
2209
|
children: [
|
|
2210
|
-
/* @__PURE__ */ jsxRuntime.jsx(Box, { className: "mb-4 rounded-
|
|
2211
|
-
/* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "h3", className: "text-lg font-medium text-
|
|
2212
|
-
/* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "small", className: "mt-1 text-
|
|
2210
|
+
/* @__PURE__ */ jsxRuntime.jsx(Box, { className: "mb-4 rounded-full bg-error/10 p-3", children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.AlertCircle, { className: "h-8 w-8 text-error" }) }),
|
|
2211
|
+
/* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "h3", className: "text-lg font-medium text-foreground", children: resolvedTitle }),
|
|
2212
|
+
/* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "small", className: "mt-1 text-muted-foreground max-w-sm", children: resolvedMessage }),
|
|
2213
2213
|
(onRetry || retryEvent) && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "secondary", className: "mt-4", onClick: handleRetry, children: t("error.retry") })
|
|
2214
2214
|
]
|
|
2215
2215
|
}
|
|
@@ -2883,7 +2883,7 @@ var MarkdownContent = React110__namespace.default.memo(
|
|
|
2883
2883
|
"blockquote",
|
|
2884
2884
|
{
|
|
2885
2885
|
...props,
|
|
2886
|
-
className: "border-l-4 border-blue-500 pl-4 italic text-
|
|
2886
|
+
className: "border-l-4 border-blue-500 pl-4 italic text-foreground my-4",
|
|
2887
2887
|
children
|
|
2888
2888
|
}
|
|
2889
2889
|
);
|
|
@@ -2958,7 +2958,7 @@ var CodeBlock = React110__namespace.default.memo(
|
|
|
2958
2958
|
variant: "ghost",
|
|
2959
2959
|
size: "sm",
|
|
2960
2960
|
onClick: handleCopy,
|
|
2961
|
-
className: "opacity-0 group-hover:opacity-100 focus:opacity-100 transition-opacity text-
|
|
2961
|
+
className: "opacity-0 group-hover:opacity-100 focus:opacity-100 transition-opacity text-muted-foreground hover:text-white",
|
|
2962
2962
|
"aria-label": "Copy code",
|
|
2963
2963
|
children: copied ? /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.Check, { size: 16, className: "text-green-400" }) : /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.Copy, { size: 16 })
|
|
2964
2964
|
}
|