@underverse-ui/underverse 2.0.6 → 2.0.7
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/{chunk-OZH3EDGZ.js → chunk-JINSMREP.js} +2 -2
- package/dist/{chunk-JXE7JBQV.js → chunk-TETMVVUP.js} +3 -1
- package/dist/chunk-TETMVVUP.js.map +1 -0
- package/dist/{chunk-2UQ7H5GR.js → chunk-XE3RJHVX.js} +3 -3
- package/dist/index.cjs +47 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +44 -25
- package/dist/index.js.map +1 -1
- package/dist/{menu-bar-6HZDCX44.js → menu-bar-NFEW4FOJ.js} +3 -3
- package/dist/ueditor.js +2 -2
- package/package.json +2 -1
- package/dist/chunk-JXE7JBQV.js.map +0 -1
- /package/dist/{chunk-OZH3EDGZ.js.map → chunk-JINSMREP.js.map} +0 -0
- /package/dist/{chunk-2UQ7H5GR.js.map → chunk-XE3RJHVX.js.map} +0 -0
- /package/dist/{menu-bar-6HZDCX44.js.map → menu-bar-NFEW4FOJ.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
extractImageSrcsFromHtml,
|
|
5
5
|
normalizeImageUrl,
|
|
6
6
|
prepareUEditorContentForSave
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XE3RJHVX.js";
|
|
8
8
|
import {
|
|
9
9
|
EmojiPicker_default
|
|
10
10
|
} from "./chunk-A7XL4RDV.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import "./chunk-4TYW5K4J.js";
|
|
17
17
|
import {
|
|
18
18
|
Modal_default
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JINSMREP.js";
|
|
20
20
|
import {
|
|
21
21
|
DropdownMenuItem,
|
|
22
22
|
DropdownMenuSeparator,
|
|
@@ -25,6 +25,7 @@ import {
|
|
|
25
25
|
SelectDropdown,
|
|
26
26
|
UnderverseConfigProvider,
|
|
27
27
|
formControlFixedClass,
|
|
28
|
+
formControlLabelClass,
|
|
28
29
|
formControlSizeStyles,
|
|
29
30
|
formControlValueClass,
|
|
30
31
|
getAnimationStyles,
|
|
@@ -34,7 +35,7 @@ import {
|
|
|
34
35
|
shadcnAnimationStyles,
|
|
35
36
|
useShadCNAnimations,
|
|
36
37
|
useUnderverseUIConfig
|
|
37
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-TETMVVUP.js";
|
|
38
39
|
import {
|
|
39
40
|
ForceInternalTranslationsProvider,
|
|
40
41
|
NextIntlAdapter,
|
|
@@ -591,7 +592,7 @@ var Checkbox = React3.forwardRef(
|
|
|
591
592
|
children: isChecked && /* @__PURE__ */ jsx4(Check, { className: "w-4 h-4" })
|
|
592
593
|
}
|
|
593
594
|
),
|
|
594
|
-
label && /* @__PURE__ */ jsx4("span", { className: cn("text-sm text-foreground", labelClassName), children: label })
|
|
595
|
+
label && /* @__PURE__ */ jsx4("span", { className: cn("text-sm text-foreground", formControlLabelClass, labelClassName), children: label })
|
|
595
596
|
] });
|
|
596
597
|
}
|
|
597
598
|
);
|
|
@@ -975,7 +976,8 @@ var Input = forwardRef3(
|
|
|
975
976
|
className: cn(
|
|
976
977
|
// Label size follows input size
|
|
977
978
|
sizeStyles7[size].label,
|
|
978
|
-
|
|
979
|
+
formControlLabelClass,
|
|
980
|
+
"transition-colors duration-200",
|
|
979
981
|
// default color and highlight while any descendant focused
|
|
980
982
|
disabled ? "text-muted-foreground" : cn("text-foreground group-focus-within:text-primary", success && "text-primary"),
|
|
981
983
|
errMsg && "text-destructive",
|
|
@@ -1393,7 +1395,8 @@ var Textarea = forwardRef3(
|
|
|
1393
1395
|
"label",
|
|
1394
1396
|
{
|
|
1395
1397
|
className: cn(
|
|
1396
|
-
"text-sm
|
|
1398
|
+
"text-sm transition-colors duration-200",
|
|
1399
|
+
formControlLabelClass,
|
|
1397
1400
|
isFocused ? "text-primary" : "text-foreground",
|
|
1398
1401
|
error && "text-destructive",
|
|
1399
1402
|
labelClassName
|
|
@@ -2344,7 +2347,8 @@ var TagInput = forwardRef4(
|
|
|
2344
2347
|
{
|
|
2345
2348
|
htmlFor: inputId,
|
|
2346
2349
|
className: cn(
|
|
2347
|
-
"block
|
|
2350
|
+
"block transition-colors duration-200",
|
|
2351
|
+
formControlLabelClass,
|
|
2348
2352
|
formControlSizeStyles[size].label,
|
|
2349
2353
|
disabled ? "text-muted-foreground" : isFocused ? "text-primary" : "text-foreground",
|
|
2350
2354
|
labelClassName
|
|
@@ -2618,7 +2622,7 @@ var Switch = ({
|
|
|
2618
2622
|
]
|
|
2619
2623
|
}
|
|
2620
2624
|
),
|
|
2621
|
-
label && /* @__PURE__ */ jsx10("span", { className: cn("text-sm
|
|
2625
|
+
label && /* @__PURE__ */ jsx10("span", { className: cn("text-sm text-foreground transition-colors", formControlLabelClass, disabled && "text-muted-foreground", labelClassName), children: label })
|
|
2622
2626
|
] });
|
|
2623
2627
|
};
|
|
2624
2628
|
Switch.displayName = "Switch";
|
|
@@ -2629,7 +2633,7 @@ import * as React10 from "react";
|
|
|
2629
2633
|
import { cva } from "class-variance-authority";
|
|
2630
2634
|
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
2631
2635
|
var labelVariants = cva(
|
|
2632
|
-
|
|
2636
|
+
`text-sm ${formControlLabelClass} leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70`
|
|
2633
2637
|
);
|
|
2634
2638
|
var Label = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
2635
2639
|
"label",
|
|
@@ -5021,7 +5025,8 @@ var Combobox = ({
|
|
|
5021
5025
|
onClick: () => triggerRef.current?.focus(),
|
|
5022
5026
|
className: cn(
|
|
5023
5027
|
labelSize,
|
|
5024
|
-
|
|
5028
|
+
formControlLabelClass,
|
|
5029
|
+
"transition-colors duration-200",
|
|
5025
5030
|
disabled ? "text-muted-foreground" : "text-foreground group-focus-within:text-primary",
|
|
5026
5031
|
effectiveError && "text-destructive",
|
|
5027
5032
|
labelClassName
|
|
@@ -6289,7 +6294,8 @@ var DatePicker = ({
|
|
|
6289
6294
|
onClick: () => inputRef.current?.focus(),
|
|
6290
6295
|
className: cn(
|
|
6291
6296
|
labelSize,
|
|
6292
|
-
|
|
6297
|
+
formControlLabelClass,
|
|
6298
|
+
"transition-colors duration-300 cursor-pointer",
|
|
6293
6299
|
disabled ? "text-muted-foreground" : "text-foreground group-focus-within:text-primary hover:text-primary",
|
|
6294
6300
|
effectiveError && "text-destructive",
|
|
6295
6301
|
labelClassName
|
|
@@ -7048,7 +7054,8 @@ var DateRangePicker = ({
|
|
|
7048
7054
|
onClick: () => inputRef.current?.focus(),
|
|
7049
7055
|
className: cn(
|
|
7050
7056
|
size === "sm" ? "text-xs" : size === "lg" ? "text-base" : "text-sm",
|
|
7051
|
-
|
|
7057
|
+
formControlLabelClass,
|
|
7058
|
+
"transition-colors duration-300",
|
|
7052
7059
|
disabled ? "text-muted-foreground cursor-not-allowed" : "text-foreground group-focus-within:text-primary hover:text-primary cursor-pointer",
|
|
7053
7060
|
effectiveError && "text-destructive",
|
|
7054
7061
|
labelClassName
|
|
@@ -7986,7 +7993,8 @@ var LunarDatePicker = ({
|
|
|
7986
7993
|
onClick: () => inputRef.current?.focus(),
|
|
7987
7994
|
className: cn(
|
|
7988
7995
|
labelSize,
|
|
7989
|
-
|
|
7996
|
+
formControlLabelClass,
|
|
7997
|
+
"transition-colors duration-300 cursor-pointer",
|
|
7990
7998
|
disabled ? "text-muted-foreground" : "text-foreground group-focus-within:text-primary hover:text-primary",
|
|
7991
7999
|
effectiveError && "text-destructive",
|
|
7992
8000
|
labelClassName
|
|
@@ -8615,7 +8623,8 @@ var LunarDateRangePicker = ({
|
|
|
8615
8623
|
onClick: () => setIsOpen(true),
|
|
8616
8624
|
className: cn(
|
|
8617
8625
|
size === "sm" ? "text-xs" : size === "lg" ? "text-base" : "text-sm",
|
|
8618
|
-
|
|
8626
|
+
formControlLabelClass,
|
|
8627
|
+
"transition-colors duration-300",
|
|
8619
8628
|
disabled ? "text-muted-foreground cursor-not-allowed" : "text-foreground group-focus-within:text-primary hover:text-primary cursor-pointer",
|
|
8620
8629
|
effectiveError && "text-destructive",
|
|
8621
8630
|
labelClassName
|
|
@@ -9523,7 +9532,7 @@ function MonthYearPicker({
|
|
|
9523
9532
|
] });
|
|
9524
9533
|
if (variant === "inline") {
|
|
9525
9534
|
return /* @__PURE__ */ jsxs22("div", { className: cn("w-full", className), ...rest, children: [
|
|
9526
|
-
label && /* @__PURE__ */ jsxs22("label", { className: cn(sz.label, "block mb-1.5
|
|
9535
|
+
label && /* @__PURE__ */ jsxs22("label", { className: cn(sz.label, "block mb-1.5 text-foreground/80", formControlLabelClass, effectiveError && "text-destructive", labelClassName), children: [
|
|
9527
9536
|
label,
|
|
9528
9537
|
required && /* @__PURE__ */ jsx29("span", { className: "text-destructive ml-0.5", children: "*" })
|
|
9529
9538
|
] }),
|
|
@@ -9560,7 +9569,7 @@ function MonthYearPicker({
|
|
|
9560
9569
|
] });
|
|
9561
9570
|
}
|
|
9562
9571
|
return /* @__PURE__ */ jsxs22("div", { className: cn("w-full", className), ...rest, children: [
|
|
9563
|
-
label && /* @__PURE__ */ jsxs22("label", { className: cn(sz.label, "block mb-1.5
|
|
9572
|
+
label && /* @__PURE__ */ jsxs22("label", { className: cn(sz.label, "block mb-1.5 text-foreground/80", formControlLabelClass, effectiveError && "text-destructive", labelClassName), children: [
|
|
9564
9573
|
label,
|
|
9565
9574
|
required && /* @__PURE__ */ jsx29("span", { className: "text-destructive ml-0.5", children: "*" })
|
|
9566
9575
|
] }),
|
|
@@ -11435,7 +11444,7 @@ function TimePicker({
|
|
|
11435
11444
|
"label",
|
|
11436
11445
|
{
|
|
11437
11446
|
id: labelId,
|
|
11438
|
-
className: cn(sz.label,
|
|
11447
|
+
className: cn(sz.label, formControlLabelClass, disabled ? "text-muted-foreground" : "text-foreground", effectiveError && "text-destructive"),
|
|
11439
11448
|
children: [
|
|
11440
11449
|
label,
|
|
11441
11450
|
required && /* @__PURE__ */ jsx31("span", { className: "text-destructive ml-1", children: "*" })
|
|
@@ -11483,7 +11492,7 @@ function TimePicker({
|
|
|
11483
11492
|
htmlFor: triggerId,
|
|
11484
11493
|
className: cn(
|
|
11485
11494
|
sz.label,
|
|
11486
|
-
|
|
11495
|
+
formControlLabelClass,
|
|
11487
11496
|
disabled ? "text-muted-foreground" : "text-foreground",
|
|
11488
11497
|
effectiveError && "text-destructive",
|
|
11489
11498
|
"cursor-pointer transition-colors hover:text-primary"
|
|
@@ -11724,7 +11733,13 @@ var DateTimePicker = ({
|
|
|
11724
11733
|
{
|
|
11725
11734
|
id: labelId,
|
|
11726
11735
|
htmlFor: triggerId,
|
|
11727
|
-
className: cn(
|
|
11736
|
+
className: cn(
|
|
11737
|
+
sizeStyles7[size].label,
|
|
11738
|
+
formControlLabelClass,
|
|
11739
|
+
"text-foreground flex items-center gap-1",
|
|
11740
|
+
effectiveError && "text-destructive",
|
|
11741
|
+
labelClassName
|
|
11742
|
+
),
|
|
11728
11743
|
children: [
|
|
11729
11744
|
label,
|
|
11730
11745
|
" ",
|
|
@@ -15338,7 +15353,8 @@ var MultiCombobox = ({
|
|
|
15338
15353
|
{
|
|
15339
15354
|
className: cn(
|
|
15340
15355
|
size === "sm" ? "text-xs" : size === "lg" ? "text-base" : "text-sm",
|
|
15341
|
-
|
|
15356
|
+
formControlLabelClass,
|
|
15357
|
+
"transition-colors duration-200",
|
|
15342
15358
|
disabled ? "text-muted-foreground" : "text-foreground group-focus-within:text-primary",
|
|
15343
15359
|
effectiveError && "text-destructive",
|
|
15344
15360
|
labelClassName
|
|
@@ -15356,7 +15372,8 @@ var MultiCombobox = ({
|
|
|
15356
15372
|
onClick: () => triggerRef.current?.focus(),
|
|
15357
15373
|
className: cn(
|
|
15358
15374
|
labelSize,
|
|
15359
|
-
|
|
15375
|
+
formControlLabelClass,
|
|
15376
|
+
"transition-colors duration-200",
|
|
15360
15377
|
disabled ? "text-muted-foreground" : "text-foreground group-focus-within:text-primary",
|
|
15361
15378
|
effectiveError && "text-destructive",
|
|
15362
15379
|
labelClassName
|
|
@@ -15574,7 +15591,7 @@ var RadioGroupItem = React36.forwardRef(
|
|
|
15574
15591
|
/* @__PURE__ */ jsxs33("div", { className: "flex-1 min-w-0", children: [
|
|
15575
15592
|
/* @__PURE__ */ jsxs33("div", { className: "flex items-center gap-2", children: [
|
|
15576
15593
|
Icon && /* @__PURE__ */ jsx40(Icon, { className: "h-4 w-4 text-foreground" }),
|
|
15577
|
-
/* @__PURE__ */ jsx40("label", { htmlFor: radioId, className: cn("
|
|
15594
|
+
/* @__PURE__ */ jsx40("label", { htmlFor: radioId, className: cn(formControlLabelClass, "text-foreground cursor-pointer", sizeStyles6[size].text, labelClassName), children: label || children })
|
|
15578
15595
|
] }),
|
|
15579
15596
|
description && /* @__PURE__ */ jsx40("p", { className: "text-muted-foreground mt-1 text-xs", children: description })
|
|
15580
15597
|
] })
|
|
@@ -15609,7 +15626,8 @@ var RadioGroupItem = React36.forwardRef(
|
|
|
15609
15626
|
id: radioId,
|
|
15610
15627
|
disabled: isDisabled,
|
|
15611
15628
|
className: cn(
|
|
15612
|
-
"inline-flex items-center justify-center gap-2 border
|
|
15629
|
+
"inline-flex items-center justify-center gap-2 border transition-all duration-200",
|
|
15630
|
+
formControlLabelClass,
|
|
15613
15631
|
getBorderRadiusClass(borderMode ?? "lg"),
|
|
15614
15632
|
"focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
15615
15633
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
@@ -15667,7 +15685,8 @@ var RadioGroupItem = React36.forwardRef(
|
|
|
15667
15685
|
{
|
|
15668
15686
|
htmlFor: radioId,
|
|
15669
15687
|
className: cn(
|
|
15670
|
-
|
|
15688
|
+
formControlLabelClass,
|
|
15689
|
+
"text-foreground cursor-pointer flex-1",
|
|
15671
15690
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
15672
15691
|
sizeStyles6[size].text,
|
|
15673
15692
|
isDisabled && "cursor-not-allowed opacity-50",
|
|
@@ -16072,7 +16091,7 @@ var Slider = React37.forwardRef(
|
|
|
16072
16091
|
}
|
|
16073
16092
|
return /* @__PURE__ */ jsxs34("div", { className: cn("w-full space-y-2", containerClassName), children: [
|
|
16074
16093
|
(label || showValue) && /* @__PURE__ */ jsxs34("div", { className: "flex items-center justify-between", children: [
|
|
16075
|
-
label && /* @__PURE__ */ jsx41("label", { className: cn("text-sm
|
|
16094
|
+
label && /* @__PURE__ */ jsx41("label", { className: cn("text-sm text-foreground", formControlLabelClass, labelClassName), children: label }),
|
|
16076
16095
|
showValue && /* @__PURE__ */ jsx41("span", { className: cn("text-xs font-mono text-muted-foreground min-w-8 text-right", valueClassName), children: displayValue })
|
|
16077
16096
|
] }),
|
|
16078
16097
|
/* @__PURE__ */ jsxs34(
|