@almadar/ui 5.2.0 → 5.2.1
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 +137 -133
- package/dist/avl/index.js +137 -133
- package/dist/components/index.cjs +64 -60
- package/dist/components/index.js +64 -60
- package/dist/docs/index.cjs +15 -14
- package/dist/docs/index.js +15 -14
- package/dist/marketing/index.cjs +17 -13
- package/dist/marketing/index.js +17 -13
- package/dist/providers/index.cjs +64 -60
- package/dist/providers/index.js +64 -60
- package/dist/runtime/index.cjs +64 -60
- package/dist/runtime/index.js +64 -60
- package/package.json +1 -1
- package/tailwind-preset.cjs +0 -11
package/dist/runtime/index.js
CHANGED
|
@@ -1702,7 +1702,7 @@ var init_Icon = __esm({
|
|
|
1702
1702
|
sizeClasses = {
|
|
1703
1703
|
xs: "w-3 h-3",
|
|
1704
1704
|
sm: "w-4 h-4",
|
|
1705
|
-
md: "
|
|
1705
|
+
md: "h-icon-default w-icon-default",
|
|
1706
1706
|
lg: "w-6 h-6",
|
|
1707
1707
|
xl: "w-8 h-8"
|
|
1708
1708
|
};
|
|
@@ -1847,14 +1847,14 @@ var init_Button = __esm({
|
|
|
1847
1847
|
};
|
|
1848
1848
|
variantStyles.destructive = variantStyles.danger;
|
|
1849
1849
|
sizeStyles = {
|
|
1850
|
-
sm: "px-3
|
|
1851
|
-
md: "px-4
|
|
1852
|
-
lg: "px-6
|
|
1850
|
+
sm: "h-button-sm px-3 text-sm",
|
|
1851
|
+
md: "h-button-md px-4 text-sm",
|
|
1852
|
+
lg: "h-button-lg px-6 text-base"
|
|
1853
1853
|
};
|
|
1854
1854
|
iconSizeStyles = {
|
|
1855
|
-
sm: "h-
|
|
1855
|
+
sm: "h-icon-default w-icon-default",
|
|
1856
1856
|
md: "h-icon-default w-icon-default",
|
|
1857
|
-
lg: "h-
|
|
1857
|
+
lg: "h-icon-default w-icon-default"
|
|
1858
1858
|
};
|
|
1859
1859
|
Button = React85__default.forwardRef(
|
|
1860
1860
|
({
|
|
@@ -1892,7 +1892,7 @@ var init_Button = __esm({
|
|
|
1892
1892
|
disabled: disabled || isLoading,
|
|
1893
1893
|
className: cn(
|
|
1894
1894
|
"inline-flex items-center justify-center gap-2",
|
|
1895
|
-
"font-
|
|
1895
|
+
"font-medium",
|
|
1896
1896
|
"rounded-sm",
|
|
1897
1897
|
"cursor-pointer",
|
|
1898
1898
|
"transition-all duration-[var(--transition-normal)]",
|
|
@@ -2569,7 +2569,11 @@ var init_Badge = __esm({
|
|
|
2569
2569
|
};
|
|
2570
2570
|
Badge = React85__default.forwardRef(
|
|
2571
2571
|
({ className, variant = "default", size = "sm", amount, label, icon, children, onRemove, removeLabel, ...props }, ref) => {
|
|
2572
|
-
const iconSizes3 = {
|
|
2572
|
+
const iconSizes3 = {
|
|
2573
|
+
sm: "h-icon-default w-icon-default",
|
|
2574
|
+
md: "h-icon-default w-icon-default",
|
|
2575
|
+
lg: "h-icon-default w-icon-default"
|
|
2576
|
+
};
|
|
2573
2577
|
const resolvedIcon = typeof icon === "string" ? /* @__PURE__ */ jsx(Icon, { name: icon, className: iconSizes3[size] }) : icon;
|
|
2574
2578
|
return /* @__PURE__ */ jsxs(
|
|
2575
2579
|
"span",
|
|
@@ -3603,10 +3607,11 @@ var init_Input = __esm({
|
|
|
3603
3607
|
const type = inputType || htmlType || "text";
|
|
3604
3608
|
const resolvedLeftIcon = leftIcon || IconComponent && /* @__PURE__ */ jsx(IconComponent, { className: "h-icon-default w-icon-default" });
|
|
3605
3609
|
const showClearButton = clearable && value && String(value).length > 0;
|
|
3610
|
+
const isMultiline = type === "textarea";
|
|
3606
3611
|
const baseClassName = cn(
|
|
3607
3612
|
"block w-full rounded-sm transition-all duration-[var(--transition-fast)]",
|
|
3608
3613
|
"border-[length:var(--border-width-thin)] border-border",
|
|
3609
|
-
"px-3 py-2 text-sm",
|
|
3614
|
+
isMultiline ? "px-3 py-2 text-sm" : "h-input-md px-3 text-sm",
|
|
3610
3615
|
"bg-card hover:bg-muted focus:bg-card",
|
|
3611
3616
|
"text-foreground placeholder:text-muted-foreground",
|
|
3612
3617
|
"focus:outline-none focus:ring-1 focus:ring-ring focus:border-ring",
|
|
@@ -3658,7 +3663,7 @@ var init_Input = __esm({
|
|
|
3658
3663
|
checked: props.checked,
|
|
3659
3664
|
onChange,
|
|
3660
3665
|
className: cn(
|
|
3661
|
-
"h-
|
|
3666
|
+
"h-icon-default w-icon-default rounded-sm",
|
|
3662
3667
|
"border-border",
|
|
3663
3668
|
"text-primary focus:ring-ring",
|
|
3664
3669
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
@@ -3740,7 +3745,7 @@ var init_Textarea = __esm({
|
|
|
3740
3745
|
"placeholder:text-[var(--color-placeholder)]",
|
|
3741
3746
|
"focus:outline-none focus:ring-2 focus:ring-offset-0 focus:ring-ring",
|
|
3742
3747
|
"disabled:bg-muted disabled:text-muted-foreground disabled:cursor-not-allowed",
|
|
3743
|
-
"resize-y min-h-
|
|
3748
|
+
"resize-y min-h-20",
|
|
3744
3749
|
error ? "border-error focus:border-error" : "border-border focus:border-primary",
|
|
3745
3750
|
className
|
|
3746
3751
|
),
|
|
@@ -3843,21 +3848,21 @@ var init_Card = __esm({
|
|
|
3843
3848
|
"border-[length:var(--border-width)] border-border",
|
|
3844
3849
|
"shadow-elevation-card",
|
|
3845
3850
|
"transition-all duration-[var(--transition-normal)]",
|
|
3846
|
-
"hover:shadow-elevation-dialog hover
|
|
3851
|
+
"hover:shadow-elevation-dialog hover:translate-y-[var(--hover-translate-y)]"
|
|
3847
3852
|
].join(" "),
|
|
3848
3853
|
bordered: [
|
|
3849
3854
|
"bg-card",
|
|
3850
3855
|
"border-[length:var(--border-width)] border-border",
|
|
3851
3856
|
"shadow-elevation-card",
|
|
3852
3857
|
"transition-all duration-[var(--transition-normal)]",
|
|
3853
|
-
"hover:shadow-elevation-dialog hover
|
|
3858
|
+
"hover:shadow-elevation-dialog hover:translate-y-[var(--hover-translate-y)]"
|
|
3854
3859
|
].join(" "),
|
|
3855
3860
|
elevated: [
|
|
3856
3861
|
"bg-card",
|
|
3857
3862
|
"border-[length:var(--border-width)] border-border",
|
|
3858
3863
|
"shadow",
|
|
3859
3864
|
"transition-all duration-[var(--transition-normal)]",
|
|
3860
|
-
"hover:shadow-elevation-dialog hover
|
|
3865
|
+
"hover:shadow-elevation-dialog hover:translate-y-[var(--hover-translate-y)]"
|
|
3861
3866
|
].join(" "),
|
|
3862
3867
|
// Interactive variant with theme-specific hover effects
|
|
3863
3868
|
interactive: [
|
|
@@ -3907,7 +3912,7 @@ var init_Card = __esm({
|
|
|
3907
3912
|
...props,
|
|
3908
3913
|
children: [
|
|
3909
3914
|
(title || subtitle) && /* @__PURE__ */ jsxs("div", { className: "mb-4", children: [
|
|
3910
|
-
title && /* @__PURE__ */ jsx("h3", { className: "text-lg text-card-foreground font-
|
|
3915
|
+
title && /* @__PURE__ */ jsx("h3", { className: "text-lg text-card-foreground font-bold", children: title }),
|
|
3911
3916
|
subtitle && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground mt-1", children: subtitle })
|
|
3912
3917
|
] }),
|
|
3913
3918
|
children
|
|
@@ -3925,7 +3930,7 @@ var init_Card = __esm({
|
|
|
3925
3930
|
ref,
|
|
3926
3931
|
className: cn(
|
|
3927
3932
|
"text-lg text-card-foreground",
|
|
3928
|
-
"font-
|
|
3933
|
+
"font-bold",
|
|
3929
3934
|
className
|
|
3930
3935
|
),
|
|
3931
3936
|
...props
|
|
@@ -4063,7 +4068,7 @@ var init_Spinner = __esm({
|
|
|
4063
4068
|
init_Icon();
|
|
4064
4069
|
sizeStyles5 = {
|
|
4065
4070
|
xs: "h-3 w-3",
|
|
4066
|
-
sm: "h-
|
|
4071
|
+
sm: "h-icon-default w-icon-default",
|
|
4067
4072
|
md: "h-6 w-6",
|
|
4068
4073
|
lg: "h-8 w-8"
|
|
4069
4074
|
};
|
|
@@ -5326,10 +5331,9 @@ var init_LawReferenceTooltip = __esm({
|
|
|
5326
5331
|
{
|
|
5327
5332
|
padding: "sm",
|
|
5328
5333
|
rounded: "lg",
|
|
5329
|
-
shadow: "lg",
|
|
5330
5334
|
position: "absolute",
|
|
5331
5335
|
className: cn(
|
|
5332
|
-
"z-50 w-64 bg-foreground text-background",
|
|
5336
|
+
"z-50 w-64 bg-foreground text-background shadow-elevation-popover",
|
|
5333
5337
|
positionStyles2[position]
|
|
5334
5338
|
),
|
|
5335
5339
|
role: "tooltip",
|
|
@@ -5340,7 +5344,7 @@ var init_LawReferenceTooltip = __esm({
|
|
|
5340
5344
|
{
|
|
5341
5345
|
variant: "label",
|
|
5342
5346
|
weight: "semibold",
|
|
5343
|
-
className: "text-
|
|
5347
|
+
className: "text-warning",
|
|
5344
5348
|
children: [
|
|
5345
5349
|
reference.law,
|
|
5346
5350
|
" ",
|
|
@@ -5372,7 +5376,7 @@ var init_LawReferenceTooltip = __esm({
|
|
|
5372
5376
|
{
|
|
5373
5377
|
as: "a",
|
|
5374
5378
|
variant: "caption",
|
|
5375
|
-
className: "text-
|
|
5379
|
+
className: "text-info hover:text-info/80 underline cursor-pointer",
|
|
5376
5380
|
href: reference.link,
|
|
5377
5381
|
target: "_blank",
|
|
5378
5382
|
rel: "noopener noreferrer",
|
|
@@ -5778,12 +5782,12 @@ var init_RangeSlider = __esm({
|
|
|
5778
5782
|
"shadow-sm",
|
|
5779
5783
|
"pointer-events-none",
|
|
5780
5784
|
"transition-transform duration-100",
|
|
5781
|
-
isDragging && "scale-
|
|
5785
|
+
isDragging && "scale-[var(--hover-scale)]",
|
|
5782
5786
|
thumbSizes[size]
|
|
5783
5787
|
),
|
|
5784
5788
|
style: {
|
|
5785
5789
|
top: "50%",
|
|
5786
|
-
transform: `translateY(-50%) translateX(-50%)${isDragging ? " scale(
|
|
5790
|
+
transform: `translateY(-50%) translateX(-50%)${isDragging ? " scale(var(--hover-scale))" : ""}`,
|
|
5787
5791
|
left: `${percentage}%`
|
|
5788
5792
|
}
|
|
5789
5793
|
}
|
|
@@ -7536,7 +7540,7 @@ function ItemSlot({
|
|
|
7536
7540
|
className: cn(
|
|
7537
7541
|
"absolute -bottom-1 -right-1 flex items-center justify-center",
|
|
7538
7542
|
"min-w-[18px] h-[18px] rounded-full px-1",
|
|
7539
|
-
"bg-[var(--color-surface,#374151)] border border-gray-500 text-
|
|
7543
|
+
"bg-[var(--color-surface,#374151)] border border-gray-500 text-xs font-bold text-[var(--color-foreground)]"
|
|
7540
7544
|
),
|
|
7541
7545
|
children: quantity
|
|
7542
7546
|
}
|
|
@@ -7674,7 +7678,7 @@ var init_ComboCounter = __esm({
|
|
|
7674
7678
|
"components/atoms/game/ComboCounter.tsx"() {
|
|
7675
7679
|
init_cn();
|
|
7676
7680
|
sizeMap8 = {
|
|
7677
|
-
sm: { combo: "text-lg", label: "text-
|
|
7681
|
+
sm: { combo: "text-lg", label: "text-xs", multiplier: "text-xs" },
|
|
7678
7682
|
md: { combo: "text-2xl", label: "text-xs", multiplier: "text-sm" },
|
|
7679
7683
|
lg: { combo: "text-4xl", label: "text-sm", multiplier: "text-base" }
|
|
7680
7684
|
};
|
|
@@ -7742,7 +7746,7 @@ var init_XPBar = __esm({
|
|
|
7742
7746
|
"components/atoms/game/XPBar.tsx"() {
|
|
7743
7747
|
init_cn();
|
|
7744
7748
|
sizeMap9 = {
|
|
7745
|
-
sm: { bar: "h-2", text: "text-
|
|
7749
|
+
sm: { bar: "h-2", text: "text-xs", badge: "text-xs px-1.5 py-0.5" },
|
|
7746
7750
|
md: { bar: "h-3", text: "text-xs", badge: "text-xs px-2 py-0.5" },
|
|
7747
7751
|
lg: { bar: "h-4", text: "text-sm", badge: "text-sm px-2.5 py-1" }
|
|
7748
7752
|
};
|
|
@@ -7869,7 +7873,7 @@ function StatusEffect({
|
|
|
7869
7873
|
children: stacks
|
|
7870
7874
|
}
|
|
7871
7875
|
),
|
|
7872
|
-
label && /* @__PURE__ */ jsx("span", { className: "text-
|
|
7876
|
+
label && /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground mt-0.5 text-center whitespace-nowrap", children: label })
|
|
7873
7877
|
] });
|
|
7874
7878
|
}
|
|
7875
7879
|
var sizeMap11, variantStyles7;
|
|
@@ -7877,8 +7881,8 @@ var init_StatusEffect = __esm({
|
|
|
7877
7881
|
"components/atoms/game/StatusEffect.tsx"() {
|
|
7878
7882
|
init_cn();
|
|
7879
7883
|
sizeMap11 = {
|
|
7880
|
-
sm: { container: "w-8 h-8", icon: "text-sm", badge: "text-
|
|
7881
|
-
md: { container: "w-10 h-10", icon: "text-base", badge: "text-xs -top-1 -right-1 w-5 h-5", timer: "text-
|
|
7884
|
+
sm: { container: "w-8 h-8", icon: "text-sm", badge: "text-xs -top-1 -right-1 w-4 h-4", timer: "text-[9px]" },
|
|
7885
|
+
md: { container: "w-10 h-10", icon: "text-base", badge: "text-xs -top-1 -right-1 w-5 h-5", timer: "text-xs" },
|
|
7882
7886
|
lg: { container: "w-12 h-12", icon: "text-lg", badge: "text-sm -top-1.5 -right-1.5 w-6 h-6", timer: "text-xs" }
|
|
7883
7887
|
};
|
|
7884
7888
|
variantStyles7 = {
|
|
@@ -8088,7 +8092,7 @@ var init_ActionButton = __esm({
|
|
|
8088
8092
|
init_Icon();
|
|
8089
8093
|
sizeMap13 = {
|
|
8090
8094
|
sm: { button: "px-3 py-1.5 text-xs", hotkey: "text-[9px] px-1", icon: "text-xs" },
|
|
8091
|
-
md: { button: "px-4 py-2 text-sm", hotkey: "text-
|
|
8095
|
+
md: { button: "px-4 py-2 text-sm", hotkey: "text-xs px-1.5", icon: "text-sm" },
|
|
8092
8096
|
lg: { button: "px-5 py-2.5 text-base", hotkey: "text-xs px-2", icon: "text-base" }
|
|
8093
8097
|
};
|
|
8094
8098
|
variantStyles8 = {
|
|
@@ -22272,7 +22276,7 @@ var init_DashboardLayout = __esm({
|
|
|
22272
22276
|
{
|
|
22273
22277
|
as: "span",
|
|
22274
22278
|
className: cn(
|
|
22275
|
-
"absolute -top-0.5 -right-0.5 min-w-[18px] h-[18px] px-1 rounded-full text-
|
|
22279
|
+
"absolute -top-0.5 -right-0.5 min-w-[18px] h-[18px] px-1 rounded-full text-xs font-semibold text-white flex items-center justify-center",
|
|
22276
22280
|
action.variant === "danger" ? "bg-error" : action.variant === "primary" ? "bg-primary" : "bg-foreground"
|
|
22277
22281
|
),
|
|
22278
22282
|
children: action.badge
|
|
@@ -22295,7 +22299,7 @@ var init_DashboardLayout = __esm({
|
|
|
22295
22299
|
Box,
|
|
22296
22300
|
{
|
|
22297
22301
|
as: "span",
|
|
22298
|
-
className: "absolute -top-0.5 -right-0.5 min-w-[18px] h-[18px] px-1 bg-error rounded-full text-
|
|
22302
|
+
className: "absolute -top-0.5 -right-0.5 min-w-[18px] h-[18px] px-1 bg-error rounded-full text-xs font-semibold text-white flex items-center justify-center",
|
|
22299
22303
|
children: unreadCount > 99 ? "99+" : unreadCount
|
|
22300
22304
|
}
|
|
22301
22305
|
)
|
|
@@ -22497,14 +22501,14 @@ var init_DashboardLayout = __esm({
|
|
|
22497
22501
|
{
|
|
22498
22502
|
variant: "caption",
|
|
22499
22503
|
className: cn(
|
|
22500
|
-
"text-
|
|
22504
|
+
"text-xs leading-tight truncate max-w-full",
|
|
22501
22505
|
isActive ? "text-primary font-medium" : "text-muted-foreground"
|
|
22502
22506
|
),
|
|
22503
22507
|
as: "span",
|
|
22504
22508
|
children: item.label
|
|
22505
22509
|
}
|
|
22506
22510
|
),
|
|
22507
|
-
item.badge && /* @__PURE__ */ jsx(Badge, { variant: isActive ? "primary" : "default", size: "sm", className: "text-
|
|
22511
|
+
item.badge && /* @__PURE__ */ jsx(Badge, { variant: isActive ? "primary" : "default", size: "sm", className: "text-xs px-1 py-0 min-w-0", children: item.badge })
|
|
22508
22512
|
]
|
|
22509
22513
|
}
|
|
22510
22514
|
);
|
|
@@ -24022,7 +24026,7 @@ var init_FilterGroup = __esm({
|
|
|
24022
24026
|
return /* @__PURE__ */ jsxs(HStack, { gap: "md", align: "center", className: cn("flex-wrap", className), children: [
|
|
24023
24027
|
showIcon && /* @__PURE__ */ jsx(Icon, { name: "filter", className: "h-4 w-4 text-muted-foreground" }),
|
|
24024
24028
|
filters.map((filter) => /* @__PURE__ */ jsxs(HStack, { gap: "xs", align: "center", children: [
|
|
24025
|
-
/* @__PURE__ */ jsxs("span", { className: "text-sm font-
|
|
24029
|
+
/* @__PURE__ */ jsxs("span", { className: "text-sm font-medium text-muted-foreground", children: [
|
|
24026
24030
|
filter.label,
|
|
24027
24031
|
":"
|
|
24028
24032
|
] }),
|
|
@@ -24038,7 +24042,7 @@ var init_FilterGroup = __esm({
|
|
|
24038
24042
|
type: "button",
|
|
24039
24043
|
onClick: () => handleFilterSelect(filter.field, null),
|
|
24040
24044
|
className: cn(
|
|
24041
|
-
"px-3 py-1.5 text-sm font-
|
|
24045
|
+
"px-3 py-1.5 text-sm font-medium transition-all duration-[var(--transition-fast)]",
|
|
24042
24046
|
!selectedValues[filter.field] ? "bg-primary text-primary-foreground" : "bg-card text-muted-foreground hover:bg-muted"
|
|
24043
24047
|
),
|
|
24044
24048
|
children: "All"
|
|
@@ -24050,7 +24054,7 @@ var init_FilterGroup = __esm({
|
|
|
24050
24054
|
type: "button",
|
|
24051
24055
|
onClick: () => handleFilterSelect(filter.field, option),
|
|
24052
24056
|
className: cn(
|
|
24053
|
-
"px-3 py-1.5 text-sm font-
|
|
24057
|
+
"px-3 py-1.5 text-sm font-medium transition-all duration-[var(--transition-fast)]",
|
|
24054
24058
|
"border-l-[length:var(--border-width)] border-border",
|
|
24055
24059
|
selectedValues[filter.field] === option ? "bg-primary text-primary-foreground" : "bg-card text-muted-foreground hover:bg-muted"
|
|
24056
24060
|
),
|
|
@@ -24078,10 +24082,10 @@ var init_FilterGroup = __esm({
|
|
|
24078
24082
|
return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-4", className), children: [
|
|
24079
24083
|
showIcon && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-muted-foreground", children: [
|
|
24080
24084
|
/* @__PURE__ */ jsx(Icon, { name: "filter", className: "h-4 w-4" }),
|
|
24081
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm font-
|
|
24085
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-bold uppercase tracking-wide", children: "Filters" })
|
|
24082
24086
|
] }),
|
|
24083
24087
|
filters.map((filter) => /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
24084
|
-
/* @__PURE__ */ jsx("label", { className: "text-xs font-
|
|
24088
|
+
/* @__PURE__ */ jsx("label", { className: "text-xs font-bold text-muted-foreground uppercase tracking-wide", children: filter.label }),
|
|
24085
24089
|
resolveFilterType(filter) === "date" ? /* @__PURE__ */ jsx(
|
|
24086
24090
|
Input,
|
|
24087
24091
|
{
|
|
@@ -24263,12 +24267,12 @@ var init_FilterGroup = __esm({
|
|
|
24263
24267
|
className: "text-muted-foreground",
|
|
24264
24268
|
children: [
|
|
24265
24269
|
/* @__PURE__ */ jsx(Icon, { name: "filter", className: "h-4 w-4" }),
|
|
24266
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm font-
|
|
24270
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-bold uppercase tracking-wide", children: "Filters" })
|
|
24267
24271
|
]
|
|
24268
24272
|
}
|
|
24269
24273
|
),
|
|
24270
24274
|
filters.map((filter) => /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
24271
|
-
/* @__PURE__ */ jsx("label", { className: "text-xs font-
|
|
24275
|
+
/* @__PURE__ */ jsx("label", { className: "text-xs font-bold text-muted-foreground uppercase tracking-wide", children: filter.label }),
|
|
24272
24276
|
resolveFilterType(filter) === "date" ? /* @__PURE__ */ jsx(
|
|
24273
24277
|
Input,
|
|
24274
24278
|
{
|
|
@@ -26669,7 +26673,7 @@ function EnemyPlate({
|
|
|
26669
26673
|
Typography,
|
|
26670
26674
|
{
|
|
26671
26675
|
variant: "caption",
|
|
26672
|
-
className: "font-mono tabular-nums text-
|
|
26676
|
+
className: "font-mono tabular-nums text-muted-foreground text-xs shrink-0",
|
|
26673
26677
|
children: [
|
|
26674
26678
|
health,
|
|
26675
26679
|
"/",
|
|
@@ -26746,7 +26750,7 @@ function UnitCommandBar({
|
|
|
26746
26750
|
Typography,
|
|
26747
26751
|
{
|
|
26748
26752
|
variant: "caption",
|
|
26749
|
-
className: "text-
|
|
26753
|
+
className: "text-muted-foreground text-xs font-mono",
|
|
26750
26754
|
children: command.hotkey
|
|
26751
26755
|
}
|
|
26752
26756
|
)
|
|
@@ -34145,16 +34149,16 @@ var init_ModuleCard = __esm({
|
|
|
34145
34149
|
children: [
|
|
34146
34150
|
/* @__PURE__ */ jsx(Handle, { type: "target", position: Position.Left, className: "!w-2.5 !h-2.5 !bg-orange-400" }),
|
|
34147
34151
|
/* @__PURE__ */ jsx(Handle, { type: "source", position: Position.Right, className: "!w-2.5 !h-2.5 !bg-orange-400" }),
|
|
34148
|
-
/* @__PURE__ */ jsx("div", { className: "px-3 py-2 border-b border-[var(--color-border)]", children: /* @__PURE__ */ jsx("span", { className: "text-
|
|
34152
|
+
/* @__PURE__ */ jsx("div", { className: "px-3 py-2 border-b border-[var(--color-border)]", children: /* @__PURE__ */ jsx("span", { className: "text-base font-bold text-[var(--color-foreground)]", children: orbitalName }) }),
|
|
34149
34153
|
/* @__PURE__ */ jsxs("div", { className: `px-3 py-2 border-b border-[var(--color-border)] ${PERSISTENCE_BORDER[persistence] ?? ""}`, children: [
|
|
34150
34154
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 mb-1.5", children: [
|
|
34151
34155
|
/* @__PURE__ */ jsx("svg", { width: 18, height: 18, viewBox: "0 0 20 20", children: /* @__PURE__ */ jsx(AvlEntity, { x: 10, y: 10, r: 8, persistence }) }),
|
|
34152
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
34153
|
-
/* @__PURE__ */ jsx("span", { className: "ml-auto text-
|
|
34156
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-semibold text-[var(--color-foreground)]", children: entityName }),
|
|
34157
|
+
/* @__PURE__ */ jsx("span", { className: "ml-auto text-xs opacity-50", title: persistence, children: PERSISTENCE_ICON[persistence] ?? "" })
|
|
34154
34158
|
] }),
|
|
34155
34159
|
fields.length > 0 && /* @__PURE__ */ jsx("div", { className: `grid gap-x-3 gap-y-0.5`, style: { gridTemplateColumns: `repeat(${cols}, 1fr)` }, children: fields.map((f3) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
34156
34160
|
/* @__PURE__ */ jsx("svg", { width: 14, height: 14, viewBox: "0 0 16 16", children: /* @__PURE__ */ jsx(AvlFieldType, { x: 8, y: 8, kind: toFieldKind(f3.type), size: 6 }) }),
|
|
34157
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
34161
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs text-[var(--color-muted-foreground)] truncate", children: f3.name })
|
|
34158
34162
|
] }, f3.name)) })
|
|
34159
34163
|
] }),
|
|
34160
34164
|
traits2.map((trait) => {
|
|
@@ -34162,7 +34166,7 @@ var init_ModuleCard = __esm({
|
|
|
34162
34166
|
const traitEmits = externalLinks.filter((l) => l.direction === "out" && l.traitName === trait.name);
|
|
34163
34167
|
const traitListens = externalLinks.filter((l) => l.direction === "in" && l.traitName === trait.name);
|
|
34164
34168
|
return /* @__PURE__ */ jsxs("div", { className: "px-3 py-2 border-b border-[var(--color-border)]", children: [
|
|
34165
|
-
/* @__PURE__ */ jsx("div", { className: "text-
|
|
34169
|
+
/* @__PURE__ */ jsx("div", { className: "text-xs font-semibold text-[var(--color-foreground)] mb-1", children: trait.name }),
|
|
34166
34170
|
detail && /* @__PURE__ */ jsx(MiniStateMachine, { data: detail, className: "mb-1" }),
|
|
34167
34171
|
(traitEmits.length > 0 || traitListens.length > 0) && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-[9px] mt-1", children: [
|
|
34168
34172
|
traitListens.map((l) => /* @__PURE__ */ jsxs("span", { style: { color: CONNECTION_COLORS.emitListen.color }, children: [
|
|
@@ -34181,7 +34185,7 @@ var init_ModuleCard = __esm({
|
|
|
34181
34185
|
}),
|
|
34182
34186
|
pages.length > 0 && /* @__PURE__ */ jsx("div", { className: "px-3 py-1.5 flex items-center gap-2 flex-wrap", children: pages.map((p2) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-0.5", children: [
|
|
34183
34187
|
/* @__PURE__ */ jsx("svg", { width: 10, height: 10, viewBox: "0 0 12 12", children: /* @__PURE__ */ jsx(AvlPage, { x: 6, y: 6, size: 5 }) }),
|
|
34184
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
34188
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs font-mono text-[var(--color-muted-foreground)]", children: p2.route })
|
|
34185
34189
|
] }, p2.name)) })
|
|
34186
34190
|
]
|
|
34187
34191
|
}
|
|
@@ -38531,7 +38535,7 @@ var init_List = __esm({
|
|
|
38531
38535
|
{
|
|
38532
38536
|
as: "h3",
|
|
38533
38537
|
className: cn(
|
|
38534
|
-
"text-
|
|
38538
|
+
"text-base font-semibold text-foreground truncate flex-1",
|
|
38535
38539
|
"tracking-tight leading-snug",
|
|
38536
38540
|
item.completed && "line-through text-muted-foreground"
|
|
38537
38541
|
),
|
|
@@ -38555,7 +38559,7 @@ var init_List = __esm({
|
|
|
38555
38559
|
)
|
|
38556
38560
|
] })
|
|
38557
38561
|
] }),
|
|
38558
|
-
/* @__PURE__ */ jsxs(HStack, { className: "flex items-center gap-6 text-
|
|
38562
|
+
/* @__PURE__ */ jsxs(HStack, { className: "flex items-center gap-6 text-sm font-medium text-muted-foreground", children: [
|
|
38559
38563
|
dateFields.slice(0, 1).map((field) => {
|
|
38560
38564
|
const value = item._fields?.[field];
|
|
38561
38565
|
if (!value) return null;
|
|
@@ -38951,7 +38955,7 @@ var init_MediaGallery = __esm({
|
|
|
38951
38955
|
}
|
|
38952
38956
|
),
|
|
38953
38957
|
item.caption && /* @__PURE__ */ jsx(Box, { className: "absolute bottom-0 left-0 right-0 p-2 bg-gradient-to-t from-black/60 to-transparent", children: /* @__PURE__ */ jsx(Typography, { variant: "caption", className: "text-white truncate", children: item.caption }) }),
|
|
38954
|
-
selectable && isSelected && /* @__PURE__ */ jsx(Box, { className: "absolute top-2 right-2 w-5 h-5 rounded-full bg-primary flex items-center justify-center", children: /* @__PURE__ */ jsx(Typography, { variant: "caption", className: "text-white text-
|
|
38958
|
+
selectable && isSelected && /* @__PURE__ */ jsx(Box, { className: "absolute top-2 right-2 w-5 h-5 rounded-full bg-primary flex items-center justify-center", children: /* @__PURE__ */ jsx(Typography, { variant: "caption", className: "text-white text-xs", children: "\u2713" }) })
|
|
38955
38959
|
]
|
|
38956
38960
|
},
|
|
38957
38961
|
item.id
|
|
@@ -40347,13 +40351,13 @@ function WalkMinimap() {
|
|
|
40347
40351
|
})
|
|
40348
40352
|
] }) }),
|
|
40349
40353
|
/* @__PURE__ */ jsx(Box, { className: "px-2 py-1 border-t border-border", children: /* @__PURE__ */ jsxs(HStack, { gap: "sm", className: "items-center justify-between", children: [
|
|
40350
|
-
/* @__PURE__ */ jsxs(Typography, { variant: "caption", className: "text-
|
|
40354
|
+
/* @__PURE__ */ jsxs(Typography, { variant: "caption", className: "text-xs font-mono text-green-500", children: [
|
|
40351
40355
|
"Engine: ",
|
|
40352
40356
|
engineCount,
|
|
40353
40357
|
"/",
|
|
40354
40358
|
totalTransitions
|
|
40355
40359
|
] }),
|
|
40356
|
-
domCount > 0 && /* @__PURE__ */ jsxs(Typography, { variant: "caption", className: "text-
|
|
40360
|
+
domCount > 0 && /* @__PURE__ */ jsxs(Typography, { variant: "caption", className: "text-xs font-mono text-cyan-500", children: [
|
|
40357
40361
|
"DOM: ",
|
|
40358
40362
|
domCount
|
|
40359
40363
|
] }),
|
|
@@ -40867,7 +40871,7 @@ function VerificationTab({ checks, summary }) {
|
|
|
40867
40871
|
/* @__PURE__ */ jsx(Typography, { variant: "small", className: "break-words", children: check.label }),
|
|
40868
40872
|
check.details && /* @__PURE__ */ jsx(Typography, { variant: "small", className: "text-gray-500 break-words", children: check.details })
|
|
40869
40873
|
] }),
|
|
40870
|
-
/* @__PURE__ */ jsx(Typography, { variant: "small", className: "text-
|
|
40874
|
+
/* @__PURE__ */ jsx(Typography, { variant: "small", className: "text-muted-foreground font-mono text-xs shrink-0", children: new Date(check.updatedAt).toLocaleTimeString("en-US", {
|
|
40871
40875
|
hour12: false,
|
|
40872
40876
|
hour: "2-digit",
|
|
40873
40877
|
minute: "2-digit",
|
|
@@ -40900,7 +40904,7 @@ var init_VerificationTab = __esm({
|
|
|
40900
40904
|
function EffectBadge({ effect }) {
|
|
40901
40905
|
const variant = EFFECT_STATUS_VARIANT[effect.status] || "default";
|
|
40902
40906
|
const icon = effect.status === "executed" ? "\u2713" : effect.status === "failed" ? "\u2717" : "-";
|
|
40903
|
-
return /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1 text-
|
|
40907
|
+
return /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1 text-xs font-mono bg-gray-100 dark:bg-gray-700 rounded px-1.5 py-0.5", children: [
|
|
40904
40908
|
/* @__PURE__ */ jsx(Badge, { variant, size: "sm", className: "!text-[9px] !px-1 !py-0", children: icon }),
|
|
40905
40909
|
/* @__PURE__ */ jsx("span", { className: "text-gray-600 dark:text-gray-400", children: effect.type }),
|
|
40906
40910
|
effect.error && /* @__PURE__ */ jsx("span", { className: "text-red-500 truncate max-w-[120px]", title: effect.error, children: effect.error })
|
|
@@ -41004,8 +41008,8 @@ function TransitionTimeline({ transitions }) {
|
|
|
41004
41008
|
] }),
|
|
41005
41009
|
isExpanded && trace.effects.length > 0 && /* @__PURE__ */ jsx("div", { className: "ml-2 mt-1 mb-2 pl-2 border-l border-gray-200 dark:border-gray-700 space-y-1", children: trace.effects.map((effect, eIdx) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1", children: [
|
|
41006
41010
|
/* @__PURE__ */ jsx(EffectBadge, { effect }),
|
|
41007
|
-
effect.args.length > 0 && /* @__PURE__ */ jsx(Typography, { variant: "small", className: "text-
|
|
41008
|
-
effect.durationMs !== void 0 && /* @__PURE__ */ jsxs(Typography, { variant: "small", className: "text-
|
|
41011
|
+
effect.args.length > 0 && /* @__PURE__ */ jsx(Typography, { variant: "small", className: "text-muted-foreground font-mono text-xs truncate max-w-[200px]", children: JSON.stringify(effect.args) }),
|
|
41012
|
+
effect.durationMs !== void 0 && /* @__PURE__ */ jsxs(Typography, { variant: "small", className: "text-muted-foreground text-xs", children: [
|
|
41009
41013
|
effect.durationMs,
|
|
41010
41014
|
"ms"
|
|
41011
41015
|
] })
|
|
@@ -41292,7 +41296,7 @@ var init_RuntimeDebugger = __esm({
|
|
|
41292
41296
|
});
|
|
41293
41297
|
function ServerResponseRow({ sr }) {
|
|
41294
41298
|
const entityEntries = Object.entries(sr.dataEntities);
|
|
41295
|
-
return /* @__PURE__ */ jsxs("div", { className: "ml-4 pl-2 border-l border-purple-500/30 py-0.5 text-
|
|
41299
|
+
return /* @__PURE__ */ jsxs("div", { className: "ml-4 pl-2 border-l border-purple-500/30 py-0.5 text-xs font-mono", children: [
|
|
41296
41300
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
41297
41301
|
/* @__PURE__ */ jsxs("span", { className: sr.success ? "text-green-600 dark:text-green-400" : "text-red-600 dark:text-red-400", children: [
|
|
41298
41302
|
sr.success ? "\u2713" : "\u2717",
|
|
@@ -41349,7 +41353,7 @@ function TransitionRow({ trace }) {
|
|
|
41349
41353
|
] })
|
|
41350
41354
|
] }),
|
|
41351
41355
|
trace.effects.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-1 ml-6 mt-0.5", children: trace.effects.map((eff, i) => /* @__PURE__ */ jsxs("span", { className: cn(
|
|
41352
|
-
"px-1 rounded text-
|
|
41356
|
+
"px-1 rounded text-xs",
|
|
41353
41357
|
eff.status === "executed" ? "bg-green-500/15 text-green-600 dark:text-green-400" : eff.status === "failed" ? "bg-red-500/15 text-red-600 dark:text-red-400" : "bg-yellow-500/15 text-yellow-600 dark:text-yellow-400"
|
|
41354
41358
|
), children: [
|
|
41355
41359
|
eff.status === "executed" ? "\u2713" : eff.status === "failed" ? "\u2717" : "-",
|
package/package.json
CHANGED
package/tailwind-preset.cjs
CHANGED
|
@@ -41,8 +41,6 @@ module.exports = {
|
|
|
41
41
|
'duration-[var(--transition-normal)]',
|
|
42
42
|
'focus:ring-[length:var(--focus-ring-width)]',
|
|
43
43
|
'focus:ring-offset-[length:var(--focus-ring-offset)]',
|
|
44
|
-
'font-[var(--font-weight-bold)]',
|
|
45
|
-
'font-[var(--font-weight-medium)]',
|
|
46
44
|
'text-[var(--icon-color,currentColor)]',
|
|
47
45
|
'placeholder:text-[var(--color-placeholder)]',
|
|
48
46
|
// Table-specific tokens
|
|
@@ -145,8 +143,6 @@ module.exports = {
|
|
|
145
143
|
'duration-[var(--transition-normal)]',
|
|
146
144
|
'focus:ring-[length:var(--focus-ring-width)]',
|
|
147
145
|
'focus:ring-offset-[length:var(--focus-ring-offset)]',
|
|
148
|
-
'font-[var(--font-weight-bold)]',
|
|
149
|
-
'font-[var(--font-weight-medium)]',
|
|
150
146
|
'from-[var(--color-primary)]',
|
|
151
147
|
'group-hover:bg-foreground/20',
|
|
152
148
|
'h-[18px]',
|
|
@@ -230,13 +226,6 @@ module.exports = {
|
|
|
230
226
|
'shadow-[0_0_6px_rgba(59,130,246,0.3)]',
|
|
231
227
|
'shadow-[0_0_8px_rgba(168,85,247,0.4)]',
|
|
232
228
|
'text-[0.65rem]',
|
|
233
|
-
'text-[10px]',
|
|
234
|
-
'text-[11px]',
|
|
235
|
-
'text-[12px]',
|
|
236
|
-
'text-[13px]',
|
|
237
|
-
'text-[14px]',
|
|
238
|
-
'text-[15px]',
|
|
239
|
-
'text-[8px]',
|
|
240
229
|
'text-[9px]',
|
|
241
230
|
'text-[var(--color-foreground)]',
|
|
242
231
|
'text-[var(--color-muted-foreground)]',
|