@underverse-ui/underverse 2.0.8 → 2.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-reference.json +1 -1
- package/dist/{EmojiPicker-34YATB7Z.js → EmojiPicker-RPB24XXJ.js} +4 -4
- package/dist/{chunk-JINSMREP.js → chunk-7V65PWQN.js} +3 -3
- package/dist/{chunk-PLHJWXCW.js → chunk-CKG2QLQL.js} +61 -1
- package/dist/chunk-CKG2QLQL.js.map +1 -0
- package/dist/{chunk-A7XL4RDV.js → chunk-K5PVUTXH.js} +7 -5
- package/dist/chunk-K5PVUTXH.js.map +1 -0
- package/dist/{chunk-KGNYK5YF.js → chunk-KKASHK7A.js} +2 -2
- package/dist/{chunk-TETMVVUP.js → chunk-VDIAFUIE.js} +11 -65
- package/dist/chunk-VDIAFUIE.js.map +1 -0
- package/dist/{chunk-XE3RJHVX.js → chunk-WNVGXH5Y.js} +12 -10
- package/dist/chunk-WNVGXH5Y.js.map +1 -0
- package/dist/index.cjs +96 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +87 -71
- package/dist/index.js.map +1 -1
- package/dist/{menu-bar-NFEW4FOJ.js → menu-bar-R5ZFI2ST.js} +4 -4
- package/dist/ueditor.cjs +25 -9
- package/dist/ueditor.cjs.map +1 -1
- package/dist/ueditor.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-A7XL4RDV.js.map +0 -1
- package/dist/chunk-PLHJWXCW.js.map +0 -1
- package/dist/chunk-TETMVVUP.js.map +0 -1
- package/dist/chunk-XE3RJHVX.js.map +0 -1
- /package/dist/{EmojiPicker-34YATB7Z.js.map → EmojiPicker-RPB24XXJ.js.map} +0 -0
- /package/dist/{chunk-JINSMREP.js.map → chunk-7V65PWQN.js.map} +0 -0
- /package/dist/{chunk-KGNYK5YF.js.map → chunk-KKASHK7A.js.map} +0 -0
- /package/dist/{menu-bar-NFEW4FOJ.js.map → menu-bar-R5ZFI2ST.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
extractImageSrcsFromHtml,
|
|
5
5
|
normalizeImageUrl,
|
|
6
6
|
prepareUEditorContentForSave
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WNVGXH5Y.js";
|
|
8
8
|
import {
|
|
9
9
|
EmojiPicker_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-K5PVUTXH.js";
|
|
11
11
|
import {
|
|
12
12
|
getEmojiImageUrl,
|
|
13
13
|
getEmojiUnifiedCode,
|
|
14
14
|
setEmojiBaseUrl
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KKASHK7A.js";
|
|
16
16
|
import "./chunk-4TYW5K4J.js";
|
|
17
17
|
import {
|
|
18
18
|
Modal_default
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-7V65PWQN.js";
|
|
20
20
|
import {
|
|
21
21
|
DropdownMenuItem,
|
|
22
22
|
DropdownMenuSeparator,
|
|
@@ -24,10 +24,6 @@ import {
|
|
|
24
24
|
Popover,
|
|
25
25
|
SelectDropdown,
|
|
26
26
|
UnderverseConfigProvider,
|
|
27
|
-
formControlFixedClass,
|
|
28
|
-
formControlLabelClass,
|
|
29
|
-
formControlSizeStyles,
|
|
30
|
-
formControlValueClass,
|
|
31
27
|
getAnimationStyles,
|
|
32
28
|
getBorderRadiusClass,
|
|
33
29
|
getPanelBorderRadiusClass,
|
|
@@ -35,7 +31,7 @@ import {
|
|
|
35
31
|
shadcnAnimationStyles,
|
|
36
32
|
useShadCNAnimations,
|
|
37
33
|
useUnderverseUIConfig
|
|
38
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-VDIAFUIE.js";
|
|
39
35
|
import {
|
|
40
36
|
ForceInternalTranslationsProvider,
|
|
41
37
|
NextIntlAdapter,
|
|
@@ -44,6 +40,12 @@ import {
|
|
|
44
40
|
UnderverseNextIntlProvider,
|
|
45
41
|
cn,
|
|
46
42
|
en_default,
|
|
43
|
+
formControlFixedClass,
|
|
44
|
+
formControlGroupOutlineClass,
|
|
45
|
+
formControlLabelClass,
|
|
46
|
+
formControlOutlineClass,
|
|
47
|
+
formControlSizeStyles,
|
|
48
|
+
formControlValueClass,
|
|
47
49
|
getUnderverseDefaultTranslation,
|
|
48
50
|
ja_default,
|
|
49
51
|
ko_default,
|
|
@@ -55,7 +57,7 @@ import {
|
|
|
55
57
|
useUnderverseLocale,
|
|
56
58
|
useUnderverseTranslations,
|
|
57
59
|
vi_default
|
|
58
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-CKG2QLQL.js";
|
|
59
61
|
import {
|
|
60
62
|
__export,
|
|
61
63
|
__require
|
|
@@ -897,19 +899,19 @@ var Input = forwardRef3(
|
|
|
897
899
|
const containerSpacing = size === "xs" || size === "sm" ? "space-y-1.5" : "space-y-2";
|
|
898
900
|
const variantStyles5 = {
|
|
899
901
|
default: {
|
|
900
|
-
container: "bg-background
|
|
901
|
-
focus: "
|
|
902
|
-
error: "border-destructive focus-visible:outline-none focus-visible:
|
|
902
|
+
container: cn("bg-background", formControlOutlineClass),
|
|
903
|
+
focus: "",
|
|
904
|
+
error: "border-destructive focus-visible:outline-none focus-visible:border-destructive"
|
|
903
905
|
},
|
|
904
906
|
filled: {
|
|
905
907
|
container: "bg-muted/50 border border-transparent hover:bg-muted/70",
|
|
906
908
|
focus: "focus-visible:outline-none focus-visible:bg-background focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background focus-visible:border-transparent",
|
|
907
|
-
error: "bg-destructive/10 border-destructive focus-visible:outline-none focus-visible:
|
|
909
|
+
error: "bg-destructive/10 border-destructive focus-visible:outline-none focus-visible:border-destructive"
|
|
908
910
|
},
|
|
909
911
|
outlined: {
|
|
910
912
|
container: "bg-transparent border border-border/50 hover:border-accent-foreground/30",
|
|
911
913
|
focus: "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background focus-visible:border-transparent",
|
|
912
|
-
error: "border-destructive focus-visible:outline-none focus-visible:
|
|
914
|
+
error: "border-destructive focus-visible:outline-none focus-visible:border-destructive"
|
|
913
915
|
},
|
|
914
916
|
minimal: {
|
|
915
917
|
container: "bg-transparent border-0 border-b border-border/50 hover:border-accent-foreground/30",
|
|
@@ -1485,7 +1487,7 @@ var Textarea = forwardRef3(
|
|
|
1485
1487
|
[ref]
|
|
1486
1488
|
);
|
|
1487
1489
|
const variantStyles5 = {
|
|
1488
|
-
default: "bg-background
|
|
1490
|
+
default: cn("bg-background", formControlOutlineClass),
|
|
1489
1491
|
filled: "bg-muted/50 border border-transparent hover:bg-muted/70 focus-visible:outline-none focus-visible:bg-background focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background focus-visible:border-transparent",
|
|
1490
1492
|
outlined: "bg-transparent border border-border/50 hover:border-accent-foreground/30 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background focus-visible:border-transparent",
|
|
1491
1493
|
minimal: "bg-transparent border-0 border-b border-border/50 hover:border-accent-foreground/30 focus-visible:outline-none focus-visible:border-ring focus-visible:ring-0 rounded-none"
|
|
@@ -1553,7 +1555,7 @@ var Textarea = forwardRef3(
|
|
|
1553
1555
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
1554
1556
|
sizeStyles7[size],
|
|
1555
1557
|
variantStyles5[variant],
|
|
1556
|
-
error && "border-destructive focus-visible:outline-none focus-visible:
|
|
1558
|
+
error && "border-destructive focus-visible:outline-none focus-visible:border-destructive",
|
|
1557
1559
|
resizeClasses[resize],
|
|
1558
1560
|
isFocused && "shadow-md",
|
|
1559
1561
|
variant !== "minimal" && "shadow-sm",
|
|
@@ -2227,8 +2229,9 @@ var StickerPicker = ({
|
|
|
2227
2229
|
value: search,
|
|
2228
2230
|
onChange: (e) => setSearch(e.target.value),
|
|
2229
2231
|
className: cn(
|
|
2230
|
-
"w-full rounded-2xl
|
|
2231
|
-
|
|
2232
|
+
"w-full rounded-2xl bg-muted/20 py-2 pl-9.5 pr-9 text-sm transition-all duration-300",
|
|
2233
|
+
formControlOutlineClass,
|
|
2234
|
+
"placeholder:text-muted-foreground/60",
|
|
2232
2235
|
"focus:bg-background/90 focus:shadow-[0_0_12px_rgba(var(--color-primary-rgb),0.04)]"
|
|
2233
2236
|
)
|
|
2234
2237
|
}
|
|
@@ -2486,11 +2489,11 @@ var TagInput = forwardRef4(
|
|
|
2486
2489
|
className: cn(
|
|
2487
2490
|
"flex items-center gap-1.5 cursor-text",
|
|
2488
2491
|
formControlFixedClass,
|
|
2489
|
-
"bg-background
|
|
2492
|
+
"bg-background",
|
|
2493
|
+
formControlGroupOutlineClass,
|
|
2490
2494
|
"transition-all duration-200",
|
|
2491
|
-
"hover:border-accent-foreground/20",
|
|
2492
2495
|
getBorderRadiusClass(resolvedBorderMode),
|
|
2493
|
-
isFocused && "
|
|
2496
|
+
isFocused && "shadow-md",
|
|
2494
2497
|
disabled && "opacity-50 cursor-not-allowed",
|
|
2495
2498
|
sizeStyles7[size].container
|
|
2496
2499
|
),
|
|
@@ -5037,7 +5040,7 @@ var Combobox = ({
|
|
|
5037
5040
|
xl: formControlSizeStyles.xl.control
|
|
5038
5041
|
};
|
|
5039
5042
|
const variantStyles5 = {
|
|
5040
|
-
default: "
|
|
5043
|
+
default: "bg-background hover:bg-accent/5",
|
|
5041
5044
|
outline: "border-2 border-input bg-transparent hover:border-primary/60",
|
|
5042
5045
|
ghost: "border-0 bg-transparent hover:bg-accent/50",
|
|
5043
5046
|
filled: "border-0 bg-muted/50 hover:bg-muted/80"
|
|
@@ -5070,13 +5073,13 @@ var Combobox = ({
|
|
|
5070
5073
|
className: cn(
|
|
5071
5074
|
"group flex w-full items-center justify-between transition-all duration-200",
|
|
5072
5075
|
formControlFixedClass,
|
|
5076
|
+
formControlOutlineClass,
|
|
5073
5077
|
radiusClass,
|
|
5074
5078
|
sizeStyles7[size],
|
|
5075
5079
|
variantStyles5[variant],
|
|
5076
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30 focus-visible:border-primary",
|
|
5077
5080
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
5078
|
-
open && "border-
|
|
5079
|
-
!!effectiveError && "border-destructive
|
|
5081
|
+
open && "border-ring",
|
|
5082
|
+
!!effectiveError && "border-destructive",
|
|
5080
5083
|
className
|
|
5081
5084
|
)
|
|
5082
5085
|
};
|
|
@@ -5142,6 +5145,7 @@ var Combobox = ({
|
|
|
5142
5145
|
formControlLabelClass,
|
|
5143
5146
|
"transition-colors duration-200",
|
|
5144
5147
|
disabled ? "text-muted-foreground" : "text-foreground group-focus-within:text-primary",
|
|
5148
|
+
open && "text-primary",
|
|
5145
5149
|
effectiveError && "text-destructive",
|
|
5146
5150
|
labelClassName
|
|
5147
5151
|
),
|
|
@@ -6411,6 +6415,7 @@ var DatePicker = ({
|
|
|
6411
6415
|
formControlLabelClass,
|
|
6412
6416
|
"transition-colors duration-300 cursor-pointer",
|
|
6413
6417
|
disabled ? "text-muted-foreground" : "text-foreground group-focus-within:text-primary hover:text-primary",
|
|
6418
|
+
isOpen && "text-primary",
|
|
6414
6419
|
effectiveError && "text-destructive",
|
|
6415
6420
|
labelClassName
|
|
6416
6421
|
),
|
|
@@ -6460,19 +6465,19 @@ var DatePicker = ({
|
|
|
6460
6465
|
{
|
|
6461
6466
|
ref: triggerRef,
|
|
6462
6467
|
className: cn(
|
|
6463
|
-
"group flex w-full items-center justify-between
|
|
6468
|
+
"group flex w-full items-center justify-between bg-background/80 backdrop-blur-sm",
|
|
6464
6469
|
formControlFixedClass,
|
|
6470
|
+
formControlGroupOutlineClass,
|
|
6465
6471
|
getBorderRadiusClass(resolvedBorderMode),
|
|
6466
6472
|
sizeStyles7[size].trigger,
|
|
6467
6473
|
formControlSizeStyles[requestedSize].control,
|
|
6468
6474
|
disabled ? "border-border/40 opacity-50 cursor-not-allowed" : [
|
|
6469
|
-
"
|
|
6470
|
-
"focus-within:border-primary focus-within:ring-0",
|
|
6475
|
+
"focus-within:border-ring",
|
|
6471
6476
|
"hover:bg-accent/10"
|
|
6472
6477
|
],
|
|
6473
6478
|
"transition-all duration-300 ease-out",
|
|
6474
|
-
isOpen &&
|
|
6475
|
-
effectiveError && "border-destructive/60
|
|
6479
|
+
isOpen && "border-ring shadow-lg shadow-primary/10",
|
|
6480
|
+
effectiveError && "border-destructive/60 bg-destructive/5",
|
|
6476
6481
|
className
|
|
6477
6482
|
),
|
|
6478
6483
|
children: [
|
|
@@ -7171,6 +7176,7 @@ var DateRangePicker = ({
|
|
|
7171
7176
|
formControlLabelClass,
|
|
7172
7177
|
"transition-colors duration-300",
|
|
7173
7178
|
disabled ? "text-muted-foreground cursor-not-allowed" : "text-foreground group-focus-within:text-primary hover:text-primary cursor-pointer",
|
|
7179
|
+
isOpen && "text-primary",
|
|
7174
7180
|
effectiveError && "text-destructive",
|
|
7175
7181
|
labelClassName
|
|
7176
7182
|
),
|
|
@@ -7219,19 +7225,19 @@ var DateRangePicker = ({
|
|
|
7219
7225
|
{
|
|
7220
7226
|
ref: triggerRef,
|
|
7221
7227
|
className: cn(
|
|
7222
|
-
"group flex w-full items-center justify-between
|
|
7228
|
+
"group flex w-full items-center justify-between bg-background/80 backdrop-blur-sm",
|
|
7223
7229
|
formControlFixedClass,
|
|
7230
|
+
formControlGroupOutlineClass,
|
|
7224
7231
|
getBorderRadiusClass(resolvedBorderMode),
|
|
7225
7232
|
sizeStyles7[size].trigger,
|
|
7226
7233
|
formControlSizeStyles[requestedSize].control,
|
|
7227
7234
|
disabled ? "border-border/40 opacity-50 cursor-not-allowed" : [
|
|
7228
|
-
"
|
|
7229
|
-
"focus-within:border-primary focus-within:ring-0",
|
|
7235
|
+
"focus-within:border-ring",
|
|
7230
7236
|
"hover:bg-accent/10"
|
|
7231
7237
|
],
|
|
7232
7238
|
"transition-all duration-300 ease-out",
|
|
7233
|
-
isOpen &&
|
|
7234
|
-
effectiveError && "border-destructive/60
|
|
7239
|
+
isOpen && "border-ring shadow-lg shadow-primary/10",
|
|
7240
|
+
effectiveError && "border-destructive/60 bg-destructive/5"
|
|
7235
7241
|
),
|
|
7236
7242
|
children: [
|
|
7237
7243
|
/* @__PURE__ */ jsxs20("div", { className: cn("flex min-h-0 min-w-0 flex-1 items-center overflow-hidden", size === "sm" ? "gap-1.5" : "gap-2.5"), children: [
|
|
@@ -8110,6 +8116,7 @@ var LunarDatePicker = ({
|
|
|
8110
8116
|
formControlLabelClass,
|
|
8111
8117
|
"transition-colors duration-300 cursor-pointer",
|
|
8112
8118
|
disabled ? "text-muted-foreground" : "text-foreground group-focus-within:text-primary hover:text-primary",
|
|
8119
|
+
isOpen && "text-primary",
|
|
8113
8120
|
effectiveError && "text-destructive",
|
|
8114
8121
|
labelClassName
|
|
8115
8122
|
),
|
|
@@ -8159,19 +8166,19 @@ var LunarDatePicker = ({
|
|
|
8159
8166
|
{
|
|
8160
8167
|
ref: triggerRef,
|
|
8161
8168
|
className: cn(
|
|
8162
|
-
"group flex w-full items-center justify-between
|
|
8169
|
+
"group flex w-full items-center justify-between bg-background/80 backdrop-blur-sm",
|
|
8163
8170
|
formControlFixedClass,
|
|
8171
|
+
formControlGroupOutlineClass,
|
|
8164
8172
|
getBorderRadiusClass(resolvedBorderMode),
|
|
8165
8173
|
sizeStyles7[size].trigger,
|
|
8166
8174
|
formControlSizeStyles[requestedSize].control,
|
|
8167
8175
|
disabled ? "border-border/40 opacity-50 cursor-not-allowed" : [
|
|
8168
|
-
"
|
|
8169
|
-
"focus-within:border-primary focus-within:ring-0",
|
|
8176
|
+
"focus-within:border-ring",
|
|
8170
8177
|
"hover:bg-accent/10"
|
|
8171
8178
|
],
|
|
8172
8179
|
"transition-all duration-300 ease-out",
|
|
8173
|
-
isOpen &&
|
|
8174
|
-
effectiveError && "border-destructive/60
|
|
8180
|
+
isOpen && "border-ring shadow-lg shadow-primary/10",
|
|
8181
|
+
effectiveError && "border-destructive/60 bg-destructive/5",
|
|
8175
8182
|
className
|
|
8176
8183
|
),
|
|
8177
8184
|
children: [
|
|
@@ -8740,6 +8747,7 @@ var LunarDateRangePicker = ({
|
|
|
8740
8747
|
formControlLabelClass,
|
|
8741
8748
|
"transition-colors duration-300",
|
|
8742
8749
|
disabled ? "text-muted-foreground cursor-not-allowed" : "text-foreground group-focus-within:text-primary hover:text-primary cursor-pointer",
|
|
8750
|
+
isOpen && "text-primary",
|
|
8743
8751
|
effectiveError && "text-destructive",
|
|
8744
8752
|
labelClassName
|
|
8745
8753
|
),
|
|
@@ -8799,19 +8807,19 @@ var LunarDateRangePicker = ({
|
|
|
8799
8807
|
"aria-required": required,
|
|
8800
8808
|
"aria-invalid": !!effectiveError,
|
|
8801
8809
|
className: cn(
|
|
8802
|
-
"group flex w-full items-center justify-between
|
|
8810
|
+
"group flex w-full items-center justify-between bg-background/80 backdrop-blur-sm",
|
|
8803
8811
|
formControlFixedClass,
|
|
8812
|
+
formControlGroupOutlineClass,
|
|
8804
8813
|
getBorderRadiusClass(borderMode ?? "full"),
|
|
8805
8814
|
sizeStyles7[size].trigger,
|
|
8806
8815
|
formControlSizeStyles[requestedSize].control,
|
|
8807
8816
|
disabled ? "border-border/40 opacity-50 cursor-not-allowed" : [
|
|
8808
|
-
"
|
|
8809
|
-
"focus-within:border-primary focus-within:ring-0",
|
|
8817
|
+
"focus-within:border-ring",
|
|
8810
8818
|
"hover:bg-accent/10"
|
|
8811
8819
|
],
|
|
8812
8820
|
"transition-all duration-300 ease-out text-left",
|
|
8813
|
-
isOpen && "border-
|
|
8814
|
-
effectiveError && "border-destructive/60
|
|
8821
|
+
isOpen && "border-ring shadow-lg shadow-primary/10",
|
|
8822
|
+
effectiveError && "border-destructive/60 bg-destructive/5"
|
|
8815
8823
|
),
|
|
8816
8824
|
children: [
|
|
8817
8825
|
/* @__PURE__ */ jsxs21("div", { className: cn("flex min-h-0 min-w-0 flex-1 items-center overflow-hidden", size === "sm" ? "gap-1.5" : "gap-2.5"), children: [
|
|
@@ -9490,18 +9498,18 @@ function MonthYearPicker({
|
|
|
9490
9498
|
"aria-required": required,
|
|
9491
9499
|
"aria-invalid": !!effectiveError,
|
|
9492
9500
|
className: cn(
|
|
9493
|
-
"group flex w-full items-center justify-between
|
|
9501
|
+
"group flex w-full items-center justify-between bg-background/80 backdrop-blur-sm",
|
|
9494
9502
|
getBorderRadiusClass(resolvedBorderMode),
|
|
9495
9503
|
sz.control,
|
|
9496
9504
|
formControlSizeStyles[requestedSize].control,
|
|
9497
9505
|
formControlFixedClass,
|
|
9498
|
-
|
|
9506
|
+
formControlOutlineClass,
|
|
9499
9507
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
9500
9508
|
"transition-all duration-300 ease-out",
|
|
9501
|
-
effectiveError && "border-destructive/60
|
|
9502
|
-
success && !effectiveError && "border-success/60
|
|
9503
|
-
!effectiveError && !success && "
|
|
9504
|
-
open && "border-
|
|
9509
|
+
effectiveError && "border-destructive/60 bg-destructive/5",
|
|
9510
|
+
success && !effectiveError && "border-success/60 bg-success/5",
|
|
9511
|
+
!effectiveError && !success && "hover:bg-accent/10",
|
|
9512
|
+
open && "border-ring shadow-lg shadow-primary/10",
|
|
9505
9513
|
className
|
|
9506
9514
|
),
|
|
9507
9515
|
children: [
|
|
@@ -9683,7 +9691,7 @@ function MonthYearPicker({
|
|
|
9683
9691
|
] });
|
|
9684
9692
|
}
|
|
9685
9693
|
return /* @__PURE__ */ jsxs22("div", { className: cn("w-full", className), ...rest, children: [
|
|
9686
|
-
label && /* @__PURE__ */ jsxs22("label", { className: cn(sz.label, "block mb-1.5 text-foreground/80", formControlLabelClass, effectiveError && "text-destructive", labelClassName), children: [
|
|
9694
|
+
label && /* @__PURE__ */ jsxs22("label", { className: cn(sz.label, "block mb-1.5 text-foreground/80", formControlLabelClass, open && "text-primary", effectiveError && "text-destructive", labelClassName), children: [
|
|
9687
9695
|
label,
|
|
9688
9696
|
required && /* @__PURE__ */ jsx29("span", { className: "text-destructive ml-0.5", children: "*" })
|
|
9689
9697
|
] }),
|
|
@@ -11205,18 +11213,18 @@ function TimePicker({
|
|
|
11205
11213
|
"aria-required": required,
|
|
11206
11214
|
"aria-invalid": !!effectiveError,
|
|
11207
11215
|
className: cn(
|
|
11208
|
-
"group flex w-full items-center justify-between
|
|
11216
|
+
"group flex w-full items-center justify-between bg-background/80 backdrop-blur-sm",
|
|
11209
11217
|
getBorderRadiusClass(resolvedBorderMode),
|
|
11210
11218
|
sz.control,
|
|
11211
11219
|
formControlSizeStyles[requestedSize].control,
|
|
11212
11220
|
formControlFixedClass,
|
|
11213
|
-
|
|
11221
|
+
formControlOutlineClass,
|
|
11214
11222
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
11215
11223
|
"transition-all duration-300 ease-out",
|
|
11216
|
-
effectiveError && "border-destructive/60
|
|
11217
|
-
success && !effectiveError && "border-success/60
|
|
11218
|
-
!effectiveError && !success && "
|
|
11219
|
-
open && "border-
|
|
11224
|
+
effectiveError && "border-destructive/60 bg-destructive/5",
|
|
11225
|
+
success && !effectiveError && "border-success/60 bg-success/5",
|
|
11226
|
+
!effectiveError && !success && "hover:bg-accent/10",
|
|
11227
|
+
open && "border-ring shadow-lg shadow-primary/10",
|
|
11220
11228
|
className
|
|
11221
11229
|
),
|
|
11222
11230
|
children: [
|
|
@@ -11608,6 +11616,7 @@ function TimePicker({
|
|
|
11608
11616
|
sz.label,
|
|
11609
11617
|
formControlLabelClass,
|
|
11610
11618
|
disabled ? "text-muted-foreground" : "text-foreground",
|
|
11619
|
+
open && "text-primary",
|
|
11611
11620
|
effectiveError && "text-destructive",
|
|
11612
11621
|
"cursor-pointer transition-colors hover:text-primary"
|
|
11613
11622
|
),
|
|
@@ -11851,6 +11860,7 @@ var DateTimePicker = ({
|
|
|
11851
11860
|
sizeStyles7[size].label,
|
|
11852
11861
|
formControlLabelClass,
|
|
11853
11862
|
"text-foreground flex items-center gap-1",
|
|
11863
|
+
open && "text-primary",
|
|
11854
11864
|
effectiveError && "text-destructive",
|
|
11855
11865
|
labelClassName
|
|
11856
11866
|
),
|
|
@@ -11899,14 +11909,15 @@ var DateTimePicker = ({
|
|
|
11899
11909
|
"aria-required": required,
|
|
11900
11910
|
"aria-invalid": !!effectiveError,
|
|
11901
11911
|
className: cn(
|
|
11902
|
-
"flex w-full items-center justify-between
|
|
11912
|
+
"flex w-full items-center justify-between bg-background",
|
|
11903
11913
|
formControlFixedClass,
|
|
11914
|
+
formControlOutlineClass,
|
|
11904
11915
|
getBorderRadiusClass(resolvedBorderMode),
|
|
11905
11916
|
sizeStyles7[size].trigger,
|
|
11906
11917
|
formControlSizeStyles[requestedSize].control,
|
|
11907
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
11908
11918
|
disabled && "opacity-50 cursor-not-allowed",
|
|
11909
11919
|
!displayValue && "text-muted-foreground",
|
|
11920
|
+
open && "border-ring",
|
|
11910
11921
|
effectiveError && "border-destructive/60 bg-destructive/5"
|
|
11911
11922
|
),
|
|
11912
11923
|
children: [
|
|
@@ -15144,7 +15155,7 @@ var MultiCombobox = ({
|
|
|
15144
15155
|
}
|
|
15145
15156
|
};
|
|
15146
15157
|
const variantStyles5 = {
|
|
15147
|
-
default: "
|
|
15158
|
+
default: "bg-background shadow-sm",
|
|
15148
15159
|
outline: "border-2 border-input bg-transparent hover:border-primary",
|
|
15149
15160
|
ghost: "border border-transparent bg-muted/50 hover:bg-muted"
|
|
15150
15161
|
};
|
|
@@ -15376,13 +15387,13 @@ var MultiCombobox = ({
|
|
|
15376
15387
|
className: cn(
|
|
15377
15388
|
"group flex w-full items-center gap-2 transition-all duration-200",
|
|
15378
15389
|
formControlFixedClass,
|
|
15390
|
+
formControlOutlineClass,
|
|
15379
15391
|
getBorderRadiusClass(resolvedBorderMode),
|
|
15380
15392
|
sizeStyles7[size].trigger,
|
|
15381
15393
|
variantStyles5[variant],
|
|
15382
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30 focus-visible:border-primary",
|
|
15383
15394
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
15384
|
-
open && "border-
|
|
15385
|
-
!!effectiveError && "border-destructive
|
|
15395
|
+
open && "border-ring",
|
|
15396
|
+
!!effectiveError && "border-destructive"
|
|
15386
15397
|
),
|
|
15387
15398
|
children: [
|
|
15388
15399
|
/* @__PURE__ */ jsx39("div", { className: "flex min-h-0 min-w-0 flex-1 items-center gap-1.5 overflow-hidden", children: value.length > 0 ? showTags ? /* @__PURE__ */ jsxs32(Fragment12, { children: [
|
|
@@ -15470,6 +15481,7 @@ var MultiCombobox = ({
|
|
|
15470
15481
|
formControlLabelClass,
|
|
15471
15482
|
"transition-colors duration-200",
|
|
15472
15483
|
disabled ? "text-muted-foreground" : "text-foreground group-focus-within:text-primary",
|
|
15484
|
+
open && "text-primary",
|
|
15473
15485
|
effectiveError && "text-destructive",
|
|
15474
15486
|
labelClassName
|
|
15475
15487
|
),
|
|
@@ -15489,6 +15501,7 @@ var MultiCombobox = ({
|
|
|
15489
15501
|
formControlLabelClass,
|
|
15490
15502
|
"transition-colors duration-200",
|
|
15491
15503
|
disabled ? "text-muted-foreground" : "text-foreground group-focus-within:text-primary",
|
|
15504
|
+
open && "text-primary",
|
|
15492
15505
|
effectiveError && "text-destructive",
|
|
15493
15506
|
labelClassName
|
|
15494
15507
|
),
|
|
@@ -17487,6 +17500,7 @@ function CategoryTreeSelect(props) {
|
|
|
17487
17500
|
className: cn(
|
|
17488
17501
|
size === "sm" ? "text-xs" : size === "lg" ? "text-base" : "text-sm",
|
|
17489
17502
|
disabled ? "text-muted-foreground" : "text-foreground",
|
|
17503
|
+
isOpen && "text-primary",
|
|
17490
17504
|
effectiveError && "text-destructive",
|
|
17491
17505
|
labelClassName
|
|
17492
17506
|
),
|
|
@@ -17622,7 +17636,7 @@ function CategoryTreeSelect(props) {
|
|
|
17622
17636
|
}
|
|
17623
17637
|
};
|
|
17624
17638
|
const triggerVariantStyles = {
|
|
17625
|
-
default: "
|
|
17639
|
+
default: "bg-background shadow-sm",
|
|
17626
17640
|
outline: "border-2 border-input bg-transparent hover:border-primary",
|
|
17627
17641
|
ghost: "border border-transparent bg-muted/50 hover:bg-muted",
|
|
17628
17642
|
filled: "border border-transparent bg-muted/70 hover:bg-muted"
|
|
@@ -17739,14 +17753,14 @@ function CategoryTreeSelect(props) {
|
|
|
17739
17753
|
className: cn(
|
|
17740
17754
|
"group flex w-full items-center justify-between transition-all duration-200",
|
|
17741
17755
|
formControlFixedClass,
|
|
17756
|
+
formControlOutlineClass,
|
|
17742
17757
|
getBorderRadiusClass(resolvedBorderMode ?? "full"),
|
|
17743
17758
|
"backdrop-blur-sm",
|
|
17744
17759
|
triggerSizeStyles[size].button,
|
|
17745
17760
|
triggerVariantStyles[variant],
|
|
17746
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50 focus-visible:ring-offset-2 focus-visible:ring-offset-background",
|
|
17747
17761
|
disabled && "opacity-50 cursor-not-allowed hover:transform-none hover:shadow-none",
|
|
17748
|
-
isOpen && "border-
|
|
17749
|
-
effectiveError && "border-destructive
|
|
17762
|
+
isOpen && "border-ring shadow-lg shadow-primary/10",
|
|
17763
|
+
effectiveError && "border-destructive"
|
|
17750
17764
|
),
|
|
17751
17765
|
children: [
|
|
17752
17766
|
/* @__PURE__ */ jsxs36("div", { className: "flex min-h-0 min-w-0 flex-1 items-center gap-2.5 overflow-hidden text-left", children: [
|
|
@@ -20449,11 +20463,13 @@ function ColorPicker({
|
|
|
20449
20463
|
type: "button",
|
|
20450
20464
|
disabled,
|
|
20451
20465
|
className: cn(
|
|
20452
|
-
"w-full
|
|
20466
|
+
"w-full bg-background flex items-center justify-between",
|
|
20467
|
+
formControlOutlineClass,
|
|
20453
20468
|
getBorderRadiusClass(resolvedBorderMode),
|
|
20454
20469
|
sizeClasses2[size],
|
|
20455
20470
|
formControlFixedClass,
|
|
20456
|
-
"
|
|
20471
|
+
"transition-colors",
|
|
20472
|
+
open && "border-ring",
|
|
20457
20473
|
disabled && "opacity-50 cursor-not-allowed",
|
|
20458
20474
|
triggerClassName
|
|
20459
20475
|
),
|