@rebasepro/ui 0.0.1-canary.eae7889 → 0.0.1-canary.f81da60
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/components/FileUpload.d.ts +1 -1
- package/dist/index.css +1 -0
- package/dist/index.es.js +29 -29
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +29 -29
- package/dist/index.umd.js.map +1 -1
- package/dist/styles.d.ts +2 -2
- package/package.json +3 -4
- package/src/components/Alert.tsx +5 -5
- package/src/components/BooleanSwitch.tsx +3 -3
- package/src/components/Button.tsx +6 -6
- package/src/components/Checkbox.tsx +1 -1
- package/src/components/Dialog.tsx +2 -2
- package/src/components/ExpandablePanel.tsx +1 -1
- package/src/components/FileUpload.tsx +1 -1
- package/src/components/IconButton.tsx +1 -1
- package/src/components/SearchBar.tsx +1 -1
- package/src/components/Select.tsx +1 -1
- package/src/components/Separator.tsx +2 -2
- package/src/components/Skeleton.tsx +2 -2
- package/src/components/Tabs.tsx +1 -1
- package/src/components/ToggleButtonGroup.tsx +1 -1
- package/src/index.css +1 -0
- package/src/styles.ts +2 -2
|
@@ -9,7 +9,7 @@ export type OnFileUploadRejected = (fileRejections: {
|
|
|
9
9
|
}[], event: object) => void;
|
|
10
10
|
export type OnFilesUploadAdded = (files: File[]) => void;
|
|
11
11
|
export type FileUploadProps = {
|
|
12
|
-
accept
|
|
12
|
+
accept?: Record<string, string[]>;
|
|
13
13
|
onFilesAdded: OnFilesUploadAdded;
|
|
14
14
|
onFilesRejected?: OnFileUploadRejected;
|
|
15
15
|
maxSize?: number;
|
package/dist/index.css
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -200,8 +200,8 @@ const fieldBackgroundDisabledMixin = "dark:bg-surface-900 bg-opacity-50 dark:bg-
|
|
|
200
200
|
const fieldBackgroundHoverMixin = "hover:bg-opacity-70 dark:hover:bg-surface-700 dark:hover:bg-opacity-40 hover:bg-surface-accent-200/70 hover:dark:bg-surface-700/40";
|
|
201
201
|
const defaultBorderMixin = "border-surface-200/60 dark:border-surface-700/60 ";
|
|
202
202
|
const paperMixin = "bg-white rounded-md dark:bg-surface-800 border border-surface-200/60 dark:border-surface-700/60";
|
|
203
|
-
const cardMixin = "bg-white dark:bg-surface-
|
|
204
|
-
const cardClickableMixin = "hover:bg-surface-accent-100 dark:hover:bg-surface-800 hover:ring-
|
|
203
|
+
const cardMixin = "bg-white dark:bg-surface-900 rounded-md border border-surface-200/60 dark:border-surface-700/60 m-1 -p-1";
|
|
204
|
+
const cardClickableMixin = "hover:bg-surface-accent-100 dark:hover:bg-surface-800 hover:ring-1 hover:ring-primary/50 hover:shadow-sm cursor-pointer hover:bg-primary/10 dark:hover:bg-primary/10 transition-all duration-150";
|
|
205
205
|
const cardSelectedMixin = "bg-primary-bg/30 dark:bg-primary-bg/10 ring-1 ring-primary/75";
|
|
206
206
|
const PortalContainerContext = createContext(void 0);
|
|
207
207
|
function PortalContainerProvider(t0) {
|
|
@@ -624,16 +624,16 @@ const getSizeClasses = (size) => {
|
|
|
624
624
|
const getColorClasses = (severity) => {
|
|
625
625
|
switch (severity) {
|
|
626
626
|
case "error":
|
|
627
|
-
return "bg-red-50 dark:bg-red-800 dark:text-red-100 text-red-900";
|
|
627
|
+
return "bg-red-50 dark:bg-red-800 dark:text-red-100 text-red-900 border-l-[3px] border-l-red-500";
|
|
628
628
|
case "warning":
|
|
629
|
-
return "bg-amber-50 dark:bg-amber-800 dark:text-amber-100 text-amber-900";
|
|
629
|
+
return "bg-amber-50 dark:bg-amber-800 dark:text-amber-100 text-amber-900 border-l-[3px] border-l-amber-500";
|
|
630
630
|
case "info":
|
|
631
|
-
return "bg-blue-100 dark:bg-blue-800 dark:text-blue-100 text-blue-900";
|
|
631
|
+
return "bg-blue-100 dark:bg-blue-800 dark:text-blue-100 text-blue-900 border-l-[3px] border-l-blue-500";
|
|
632
632
|
case "success":
|
|
633
|
-
return "bg-emerald-50 dark:bg-emerald-800 dark:text-emerald-100 text-emerald-900";
|
|
633
|
+
return "bg-emerald-50 dark:bg-emerald-800 dark:text-emerald-100 text-emerald-900 border-l-[3px] border-l-emerald-500";
|
|
634
634
|
case "base":
|
|
635
635
|
default:
|
|
636
|
-
return "bg-surface-accent-50 dark:bg-surface-accent-800 dark:text-white text-surface-accent-900";
|
|
636
|
+
return "bg-surface-accent-50 dark:bg-surface-accent-800 dark:text-white text-surface-accent-900 border-l-[3px] border-l-surface-accent-400";
|
|
637
637
|
}
|
|
638
638
|
};
|
|
639
639
|
const Alert = (t0) => {
|
|
@@ -817,7 +817,7 @@ const BooleanSwitch = React__default.forwardRef(function BooleanSwitch2({
|
|
|
817
817
|
onValueChange?.(!value);
|
|
818
818
|
}
|
|
819
819
|
}, className: cls(size === "smallest" ? "w-[34px] h-[18px] min-w-[34px] min-h-[18px]" : size === "small" ? "w-[38px] h-[22px] min-w-[38px] min-h-[22px]" : "w-[44px] h-[26px] min-w-[44px] min-h-[26px]", "outline-none outline-hidden rounded-full relative shadow-sm", value ? disabled ? "bg-white bg-opacity-54 bg-white/54 dark:bg-surface-accent-950 border-surface-accent-100 dark:border-surface-accent-700 ring-1 ring-surface-accent-200 dark:ring-surface-accent-700" : "ring-secondary ring-1 bg-secondary dark:bg-secondary" : "bg-white bg-opacity-54 bg-white/54 dark:bg-surface-accent-900 ring-1 ring-surface-accent-200 dark:ring-surface-accent-700", className), ...props, children: [
|
|
820
|
-
allowIndeterminate && (value === null || value === void 0) && /* @__PURE__ */ jsx("div", { className: cls("block rounded-full transition-transform duration-100 transform will-change-auto", disabled ? "bg-surface-accent-400 dark:bg-surface-accent-600" : "bg-surface-accent-400 dark:bg-surface-accent-600", {
|
|
820
|
+
allowIndeterminate && (value === null || value === void 0) && /* @__PURE__ */ jsx("div", { className: cls("block rounded-full transition-transform duration-100 ease-out transform will-change-auto shadow-sm", disabled ? "bg-surface-accent-400 dark:bg-surface-accent-600" : "bg-surface-accent-400 dark:bg-surface-accent-600", {
|
|
821
821
|
"w-[21px] h-[10px]": size === "medium" || size === "large",
|
|
822
822
|
"w-[19px] h-[8px]": size === "small",
|
|
823
823
|
"w-[16px] h-[6px]": size === "smallest",
|
|
@@ -825,7 +825,7 @@ const BooleanSwitch = React__default.forwardRef(function BooleanSwitch2({
|
|
|
825
825
|
"translate-x-[9px]": size === "small",
|
|
826
826
|
"translate-x-[8px]": size === "smallest"
|
|
827
827
|
}) }, "knob"),
|
|
828
|
-
!(allowIndeterminate && (value === null || value === void 0)) && /* @__PURE__ */ jsx("div", { className: cls("block rounded-full transition-transform duration-100 transform will-change-auto", disabled ? "bg-surface-accent-300 dark:bg-surface-
|
|
828
|
+
!(allowIndeterminate && (value === null || value === void 0)) && /* @__PURE__ */ jsx("div", { className: cls("block rounded-full transition-transform duration-100 ease-out transform will-change-auto shadow-sm", disabled ? "bg-surface-accent-300 dark:bg-surface-700" : value ? "bg-white shadow" : "bg-surface-accent-600 dark:bg-surface-accent-400", {
|
|
829
829
|
"w-[21px] h-[21px]": size === "medium" || size === "large",
|
|
830
830
|
"w-[19px] h-[19px]": size === "small",
|
|
831
831
|
"w-[16px] h-[16px]": size === "smallest",
|
|
@@ -961,11 +961,11 @@ const ButtonInner = React__default.memo(React__default.forwardRef((t0, ref) => {
|
|
|
961
961
|
const buttonClasses2 = cls({
|
|
962
962
|
"w-full": fullWidth,
|
|
963
963
|
"w-fit": t7,
|
|
964
|
-
"border border-primary bg-primary focus:ring-primary shadow hover:
|
|
965
|
-
"border border-secondary bg-secondary focus:ring-secondary shadow hover:
|
|
966
|
-
"border border-red-500 bg-red-500 hover:bg-red-
|
|
967
|
-
"border border-surface-accent-200 bg-surface-accent-200 hover:bg-surface-accent-300 focus:ring-surface-accent-400 shadow
|
|
968
|
-
"border border-transparent bg-surface-100 hover:bg-surface-accent-200 text-text-primary dark:bg-surface-
|
|
964
|
+
"border border-primary bg-primary focus:ring-primary shadow-sm hover:shadow-md hover:brightness-110 text-white hover:text-white": t8,
|
|
965
|
+
"border border-secondary bg-secondary focus:ring-secondary shadow-sm hover:shadow-md hover:brightness-110 text-white hover:text-white": t9,
|
|
966
|
+
"border border-red-500 bg-red-500 hover:bg-red-600 focus:ring-red-500 shadow-sm hover:shadow-md text-white hover:text-white": t10,
|
|
967
|
+
"border border-surface-accent-200 bg-surface-accent-200 hover:bg-surface-accent-300 focus:ring-surface-accent-400 shadow-sm hover:shadow-md text-text-primary hover:text-text-primary dark:text-text-primary-dark hover:dark:text-text-primary-dark": t11,
|
|
968
|
+
"border border-transparent bg-surface-100 hover:bg-surface-accent-200 text-text-primary dark:bg-surface-700 dark:hover:bg-surface-accent-600 dark:text-text-primary-dark hover:text-text-primary dark:text-text-primary-dark hover:dark:text-text-primary-dark": t12,
|
|
969
969
|
"border border-transparent text-primary hover:text-primary hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:hover:bg-surface-accent-800": t13,
|
|
970
970
|
"border border-transparent text-secondary hover:text-secondary hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:hover:bg-surface-accent-800": t14,
|
|
971
971
|
"border border-transparent text-red-500 hover:text-red-500 hover:bg-red-500 hover:bg-opacity-10 hover:bg-red-500/10": t15,
|
|
@@ -990,7 +990,7 @@ const ButtonInner = React__default.memo(React__default.forwardRef((t0, ref) => {
|
|
|
990
990
|
});
|
|
991
991
|
const iconColorClass = (color === "neutral" || color === "text") && !disabled ? "[&>svg]:text-surface-accent-500 dark:[&>svg]:text-surface-accent-300" : "";
|
|
992
992
|
if (Component) {
|
|
993
|
-
t30 = /* @__PURE__ */ jsxs(Component, { ref, onClick: props.onClick, className: cls(startIcon ? "pl-3" : "", "typography-button h-fit rounded-md whitespace-nowrap inline-flex items-center justify-center p-2 px-4 focus:outline-none transition ease-in-out duration-150 gap-2", buttonClasses2, sizeClasses2, iconColorClass, className), ...props, children: [
|
|
993
|
+
t30 = /* @__PURE__ */ jsxs(Component, { ref, onClick: props.onClick, className: cls(startIcon ? "pl-3" : "", "typography-button h-fit rounded-md whitespace-nowrap inline-flex items-center justify-center p-2 px-4 focus:outline-none transition-all ease-in-out duration-150 gap-2 active:scale-[0.98]", buttonClasses2, sizeClasses2, iconColorClass, className), ...props, children: [
|
|
994
994
|
startIcon,
|
|
995
995
|
children
|
|
996
996
|
] });
|
|
@@ -999,7 +999,7 @@ const ButtonInner = React__default.memo(React__default.forwardRef((t0, ref) => {
|
|
|
999
999
|
t26 = ref;
|
|
1000
1000
|
t27 = props.type ?? "button";
|
|
1001
1001
|
t28 = props.onClick;
|
|
1002
|
-
t29 = cls(startIcon ? "pl-3" : "", "typography-button h-fit rounded-md whitespace-nowrap inline-flex items-center justify-center p-2 px-4 focus:outline-none transition ease-in-out duration-150 gap-2", buttonClasses2, sizeClasses2, iconColorClass, className);
|
|
1002
|
+
t29 = cls(startIcon ? "pl-3" : "", "typography-button h-fit rounded-md whitespace-nowrap inline-flex items-center justify-center p-2 px-4 focus:outline-none transition-all ease-in-out duration-150 gap-2 active:scale-[0.98]", buttonClasses2, sizeClasses2, iconColorClass, className);
|
|
1003
1003
|
}
|
|
1004
1004
|
$[11] = Component;
|
|
1005
1005
|
$[12] = children;
|
|
@@ -1635,7 +1635,7 @@ const Checkbox = React__default.memo((t0) => {
|
|
|
1635
1635
|
const t13 = sizeClasses$1[size];
|
|
1636
1636
|
const t14 = disabled ? indeterminate || isChecked ? "bg-surface-accent-400 dark:bg-surface-accent-600" : "bg-surface-accent-400 dark:bg-surface-accent-600" : indeterminate || isChecked ? colorClasses$2[color] : "bg-white dark:bg-surface-900";
|
|
1637
1637
|
const t15 = indeterminate || isChecked ? "text-surface-accent-100 dark:text-surface-accent-900" : "";
|
|
1638
|
-
const t16 = disabled ? "border-transparent" : indeterminate || isChecked ? "border-transparent" : "border-surface-accent-800 dark:border-surface-accent-
|
|
1638
|
+
const t16 = disabled ? "border-transparent" : indeterminate || isChecked ? "border-transparent" : "border-surface-accent-800 dark:border-surface-accent-500";
|
|
1639
1639
|
let t17;
|
|
1640
1640
|
if ($[5] !== t13 || $[6] !== t14 || $[7] !== t15 || $[8] !== t16) {
|
|
1641
1641
|
t17 = cls("border-2 relative transition-colors ease-in-out duration-150", t13, t14, t15, t16);
|
|
@@ -2023,7 +2023,7 @@ function ColorPicker(t0) {
|
|
|
2023
2023
|
}
|
|
2024
2024
|
return t7;
|
|
2025
2025
|
}
|
|
2026
|
-
const buttonClasses = "hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:hover:bg-surface-accent-800 hover:scale-
|
|
2026
|
+
const buttonClasses = "hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:hover:bg-surface-accent-800 hover:scale-[1.04] active:scale-95 transition-transform";
|
|
2027
2027
|
const baseClasses = "inline-flex items-center justify-center p-2 text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150";
|
|
2028
2028
|
const colorClasses$1 = "text-surface-accent-500 visited:text-surface-accent-500 dark:text-surface-accent-300 dark:visited:text-surface-300";
|
|
2029
2029
|
const sizeClasses = {
|
|
@@ -2437,7 +2437,7 @@ const Dialog = (t0) => {
|
|
|
2437
2437
|
const t10 = displayed && open ? "opacity-100" : "opacity-0";
|
|
2438
2438
|
let t11;
|
|
2439
2439
|
if ($[5] !== t10) {
|
|
2440
|
-
t11 = cls("fixed inset-0 transition-opacity ease-in-out duration-200 bg-black dark:bg-opacity-60 dark:bg-black/60 bg-opacity-50 bg-black/50
|
|
2440
|
+
t11 = cls("fixed inset-0 transition-opacity ease-in-out duration-200 bg-black dark:bg-opacity-60 dark:bg-black/60 bg-opacity-50 bg-black/50 backdrop-blur-sm", t10, "z-50 fixed top-0 left-0 w-full h-full flex justify-center items-center");
|
|
2441
2441
|
$[5] = t10;
|
|
2442
2442
|
$[6] = t11;
|
|
2443
2443
|
} else {
|
|
@@ -2488,7 +2488,7 @@ const Dialog = (t0) => {
|
|
|
2488
2488
|
const t18 = fullHeight && !fullScreen ? "h-full" : void 0;
|
|
2489
2489
|
const t19 = fullScreen ? "h-screen w-screen" : "max-h-[90vh] shadow-xl";
|
|
2490
2490
|
const t20 = scrollable && "overflow-y-auto";
|
|
2491
|
-
const t21 = displayed && open ? "opacity-100" : "opacity-0";
|
|
2491
|
+
const t21 = displayed && open ? "opacity-100 scale-100" : "opacity-0 scale-[0.97]";
|
|
2492
2492
|
const t22 = maxWidth && !fullScreen ? widthClasses[maxWidth] : void 0;
|
|
2493
2493
|
let t23;
|
|
2494
2494
|
if ($[16] !== className || $[17] !== t17 || $[18] !== t18 || $[19] !== t19 || $[20] !== t20 || $[21] !== t21 || $[22] !== t22) {
|
|
@@ -2823,7 +2823,7 @@ function ExpandablePanel(t0) {
|
|
|
2823
2823
|
const t13 = asField && fieldBackgroundMixin;
|
|
2824
2824
|
let t14;
|
|
2825
2825
|
if ($[11] !== t10 || $[12] !== t11 || $[13] !== t12 || $[14] !== t13 || $[15] !== titleClassName) {
|
|
2826
|
-
t14 = cls("rounded-t flex items-center justify-between w-full min-h-[52px]", "hover:bg-surface-accent-200 hover:bg-opacity-40 hover:bg-surface-accent-200/40 dark:hover:bg-surface-800 dark:hover:bg-opacity-40 dark:hover:bg-surface-800/40", t10, t11, "transition-all duration-200", t12, t13, titleClassName, "cursor-pointer");
|
|
2826
|
+
t14 = cls("rounded-t flex items-center justify-between w-full min-h-[52px]", "hover:bg-surface-accent-200 hover:bg-opacity-40 hover:bg-surface-accent-200/40 dark:hover:bg-surface-800 dark:hover:bg-opacity-40 dark:hover:bg-surface-800/40 active:bg-surface-accent-300/50 dark:active:bg-surface-700/50", t10, t11, "transition-all duration-200", t12, t13, titleClassName, "cursor-pointer");
|
|
2827
2827
|
$[11] = t10;
|
|
2828
2828
|
$[12] = t11;
|
|
2829
2829
|
$[13] = t12;
|
|
@@ -4032,7 +4032,7 @@ function Separator(t0) {
|
|
|
4032
4032
|
if (orientation === "horizontal") {
|
|
4033
4033
|
let t1;
|
|
4034
4034
|
if ($[0] !== className) {
|
|
4035
|
-
t1 = cls("dark:bg-
|
|
4035
|
+
t1 = cls("dark:bg-surface-700 bg-surface-200 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px my-4", className);
|
|
4036
4036
|
$[0] = className;
|
|
4037
4037
|
$[1] = t1;
|
|
4038
4038
|
} else {
|
|
@@ -4051,7 +4051,7 @@ function Separator(t0) {
|
|
|
4051
4051
|
} else {
|
|
4052
4052
|
let t1;
|
|
4053
4053
|
if ($[5] !== className) {
|
|
4054
|
-
t1 = cls("dark:bg-
|
|
4054
|
+
t1 = cls("dark:bg-surface-700 bg-surface-200 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px mx-4", className);
|
|
4055
4055
|
$[5] = className;
|
|
4056
4056
|
$[6] = t1;
|
|
4057
4057
|
} else {
|
|
@@ -5101,7 +5101,7 @@ function SearchBar(t0) {
|
|
|
5101
5101
|
const inputPaddingClass = size === "smallest" ? "pl-8" : size === "small" ? "pl-8" : "pl-12";
|
|
5102
5102
|
let t7;
|
|
5103
5103
|
if ($[7] !== className || $[8] !== heightClass) {
|
|
5104
|
-
t7 = cls("relative transition-all", heightClass, "bg-surface-accent-50 dark:bg-surface-900 border", defaultBorderMixin, "focus-within:ring-
|
|
5104
|
+
t7 = cls("relative transition-all", heightClass, "bg-surface-accent-50 dark:bg-surface-900 border", defaultBorderMixin, "focus-within:ring-1 focus-within:ring-primary/60 focus-within:border-primary focus-within:shadow-[0_0_0_3px_rgba(0,112,244,0.1)]", "rounded-lg overflow-hidden", className);
|
|
5105
5105
|
$[7] = className;
|
|
5106
5106
|
$[8] = heightClass;
|
|
5107
5107
|
$[9] = t7;
|
|
@@ -5609,7 +5609,7 @@ const Select = forwardRef((t0, ref) => {
|
|
|
5609
5609
|
}
|
|
5610
5610
|
let t40;
|
|
5611
5611
|
if ($[99] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
5612
|
-
t40 = cls(focusedDisabled, "z-50 relative overflow-hidden border bg-white dark:bg-surface-800 p-2 rounded-lg", defaultBorderMixin);
|
|
5612
|
+
t40 = cls(focusedDisabled, "z-50 relative overflow-hidden border bg-white dark:bg-surface-800 p-2 rounded-lg shadow-lg animate-in fade-in-0 zoom-in-95 duration-150", defaultBorderMixin);
|
|
5613
5613
|
$[99] = t40;
|
|
5614
5614
|
} else {
|
|
5615
5615
|
t40 = $[99];
|
|
@@ -6701,7 +6701,7 @@ function Tab(t0) {
|
|
|
6701
6701
|
const {
|
|
6702
6702
|
variant
|
|
6703
6703
|
} = useContext(TabsContext);
|
|
6704
|
-
const t1 = variant === "standard" && "rounded-sm px-3 py-1.5 data-[state=active]:bg-white data-[state=active]:text-surface-900 dark:data-[state=active]:bg-surface-900 dark:data-[state=active]:text-surface-50";
|
|
6704
|
+
const t1 = variant === "standard" && "rounded-sm px-3 py-1.5 data-[state=active]:bg-white data-[state=active]:text-surface-900 data-[state=active]:shadow-sm dark:data-[state=active]:bg-surface-900 dark:data-[state=active]:text-surface-50";
|
|
6705
6705
|
let t2;
|
|
6706
6706
|
if ($[0] !== className || $[1] !== innerClassName || $[2] !== t1 || $[3] !== variant) {
|
|
6707
6707
|
t2 = cls("inline-flex items-center justify-center whitespace-nowrap text-sm font-medium ring-offset-white transition-all", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-surface-400 focus-visible:ring-offset-2", "disabled:pointer-events-none disabled:opacity-50", t1, variant === "boxy" && cls("flex-shrink-0 flex items-center gap-1.5 px-3.5 h-9 border-r border-surface-200 dark:border-surface-800 cursor-pointer text-[12px] font-medium transition-colors group relative box-border overflow-hidden", "border-b-2 border-b-transparent", "data-[state=active]:bg-surface-50 dark:data-[state=active]:bg-surface-900", "data-[state=active]:text-text-primary dark:data-[state=active]:text-text-primary-dark", "data-[state=active]:border-b-primary", "text-text-secondary dark:text-text-secondary-dark hover:bg-surface-100 dark:hover:bg-surface-800"), variant === "pill" && cls("px-2 py-0.5 rounded text-[10px] font-medium transition-colors", "data-[state=active]:bg-primary/10 data-[state=active]:text-primary dark:data-[state=active]:bg-primary/20 dark:data-[state=active]:text-blue-400", "text-text-disabled dark:text-text-disabled-dark hover:text-text-secondary dark:hover:text-text-secondary-dark"), className, variant === "standard" && innerClassName);
|
|
@@ -7285,8 +7285,8 @@ function Skeleton(t0) {
|
|
|
7285
7285
|
}
|
|
7286
7286
|
let t5;
|
|
7287
7287
|
if ($[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
7288
|
-
t5 = /* @__PURE__ */ jsx("span", { className: "absolute inset-0 bg-gradient-to-r from-transparent via-white/
|
|
7289
|
-
animation: "shimmer
|
|
7288
|
+
t5 = /* @__PURE__ */ jsx("span", { className: "absolute inset-0 bg-gradient-to-r from-transparent via-white/50 dark:via-white/8 to-transparent", style: {
|
|
7289
|
+
animation: "shimmer 1.8s ease-in-out infinite"
|
|
7290
7290
|
} });
|
|
7291
7291
|
$[5] = t5;
|
|
7292
7292
|
} else {
|
|
@@ -7328,7 +7328,7 @@ function ToggleButtonGroup(t0) {
|
|
|
7328
7328
|
if (!option.disabled) {
|
|
7329
7329
|
onValueChange(option.value);
|
|
7330
7330
|
}
|
|
7331
|
-
}, disabled: option.disabled, "aria-pressed": value === option.value, "aria-disabled": option.disabled || void 0, className: cls("flex flex-row items-center justify-center gap-2 py-3 px-4 rounded-md transition-colors", value === option.value ? "bg-white dark:bg-surface-900 text-primary dark:text-primary-300" : "text-surface-500 dark:text-surface-400 hover:bg-surface-100 dark:hover:bg-surface-700", option.disabled && "opacity-50 cursor-not-allowed"), children: [
|
|
7331
|
+
}, disabled: option.disabled, "aria-pressed": value === option.value, "aria-disabled": option.disabled || void 0, className: cls("flex flex-row items-center justify-center gap-2 py-3 px-4 rounded-md transition-colors", value === option.value ? "bg-white dark:bg-surface-900 text-primary dark:text-primary-300 shadow-sm" : "text-surface-500 dark:text-surface-400 hover:bg-surface-100 dark:hover:bg-surface-700", option.disabled && "opacity-50 cursor-not-allowed"), children: [
|
|
7332
7332
|
option.icon,
|
|
7333
7333
|
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: option.label })
|
|
7334
7334
|
] }, option.value);
|