@fileverse/ui 5.1.6 → 5.1.8
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/index.css +20 -4
- package/dist/index.es.d.ts +1 -0
- package/dist/index.es.js +14 -12
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -622,7 +622,7 @@ video {
|
|
|
622
622
|
--color-bg-brand-light: 57, 92%, 76%, 1; /* Yellow-100 */
|
|
623
623
|
--color-bg-danger: 354, 84%, 42%, 1; /* Red-200 */
|
|
624
624
|
--color-bg-danger-light: 356, 100%, 97%, 1; /* Red-50 */
|
|
625
|
-
--color-bg-default-inverse: 0, 0%,
|
|
625
|
+
--color-bg-default-inverse: 0, 0%, 0%, 1; /* White */
|
|
626
626
|
--color-bg-tertiary: 0, 0%, 25%, 1; /* Gray-800 */
|
|
627
627
|
--color-bg-success: 128, 59%, 20%, 1;
|
|
628
628
|
--color-bg-success-light: 128, 59%, 20%, 1; /* Green-900 */
|
|
@@ -772,7 +772,7 @@ video {
|
|
|
772
772
|
--color-bg-default-hover: 3, 88%, 26%, 0.08; /* #7C0E08 8% */
|
|
773
773
|
--color-bg-default-active: 45, 100%, 65%, 1; /* #FFD24D */
|
|
774
774
|
--color-bg-default-selected: 3, 88%, 26%, 0.06; /* #7C0E08 6% */
|
|
775
|
-
--color-bg-secondary:
|
|
775
|
+
--color-bg-secondary: 346, 100%, 92%, 1; /* #FFD6E0 */
|
|
776
776
|
--color-bg-secondary-hover: 3, 88%, 26%, 0.12; /* #7C0E08 12% */
|
|
777
777
|
--color-bg-disabled: 24, 16%, 21%, 0.04; /* #3E352D 4% */
|
|
778
778
|
--color-bg-brand: 45, 100%, 65%, 1; /* #FFD24D */
|
|
@@ -780,7 +780,7 @@ video {
|
|
|
780
780
|
--color-bg-brand-light: 45, 100%, 90%, 1; /* #FFF2CC */
|
|
781
781
|
--color-bg-danger: 2, 79%, 56%, 1; /* #E73D36 */
|
|
782
782
|
--color-bg-danger-light: 2, 79%, 56%, 0.14; /* #E73D36 14% */
|
|
783
|
-
--color-bg-default-inverse:
|
|
783
|
+
--color-bg-default-inverse: 3, 88%, 26%, 1;
|
|
784
784
|
--color-bg-tertiary: 3, 88%, 26%, 0.12; /* #7C0E08 12% */
|
|
785
785
|
--color-bg-success: 139, 35%, 42%, 1; /* #46905E */
|
|
786
786
|
--color-bg-success-light: 140, 34%, 88%, 1; /* #D6EBDD */
|
|
@@ -837,7 +837,7 @@ video {
|
|
|
837
837
|
--color-button-floating-hover: 63, 15%, 74%, 0.06; /* #C6C7B3 6% */
|
|
838
838
|
|
|
839
839
|
/* Text */
|
|
840
|
-
--color-text-default:
|
|
840
|
+
--color-text-default: 63, 27%, 83%, 1; /* #DFE0C9 */
|
|
841
841
|
--color-text-secondary: 84, 5%, 56%, 1; /* #909688 */
|
|
842
842
|
--color-text-disabled: 104, 7%, 42%, 1; /* #687364 */
|
|
843
843
|
--color-text-danger: 2, 99%, 68%, 1; /* #FE625D */
|
|
@@ -1137,6 +1137,10 @@ video {
|
|
|
1137
1137
|
background-color: hsl(var(--color-bg-success-light));
|
|
1138
1138
|
}
|
|
1139
1139
|
|
|
1140
|
+
.color-bg-info-light {
|
|
1141
|
+
background-color: hsl(var(--color-bg-info-light));
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1140
1144
|
.color-bg-success {
|
|
1141
1145
|
background-color: hsl(var(--color-bg-success));
|
|
1142
1146
|
}
|
|
@@ -1231,6 +1235,18 @@ video {
|
|
|
1231
1235
|
border-color: hsl(var(--color-border-focused));
|
|
1232
1236
|
}
|
|
1233
1237
|
|
|
1238
|
+
.color-border-warning {
|
|
1239
|
+
border-color: hsl(var(--color-border-warning));
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
.color-border-success {
|
|
1243
|
+
border-color: hsl(var(--color-border-success));
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
.color-border-info {
|
|
1247
|
+
border-color: hsl(var(--color-border-info));
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1234
1250
|
.color-border-danger {
|
|
1235
1251
|
border-color: hsl(var(--color-border-danger));
|
|
1236
1252
|
}
|
package/dist/index.es.d.ts
CHANGED
|
@@ -1026,6 +1026,7 @@ export declare const Tooltip: React_2.ForwardRefExoticComponent<TooltipProps & R
|
|
|
1026
1026
|
export declare interface TooltipProps extends React_2.HTMLAttributes<HTMLElement>, VariantProps<typeof tooltipVariants> {
|
|
1027
1027
|
text: string | React_2.ReactNode;
|
|
1028
1028
|
sideOffset?: number;
|
|
1029
|
+
asTriggerChild?: boolean;
|
|
1029
1030
|
open?: boolean;
|
|
1030
1031
|
}
|
|
1031
1032
|
|
package/dist/index.es.js
CHANGED
|
@@ -36606,30 +36606,32 @@ const w9e = (e, t) => ps(e) ? new M9e(t) : new k9e(t, {
|
|
|
36606
36606
|
beakAlignment: o,
|
|
36607
36607
|
sideOffset: r = 5,
|
|
36608
36608
|
open: i,
|
|
36609
|
-
|
|
36610
|
-
|
|
36611
|
-
|
|
36612
|
-
|
|
36613
|
-
|
|
36609
|
+
asTriggerChild: c,
|
|
36610
|
+
...d
|
|
36611
|
+
}, l) => {
|
|
36612
|
+
const u = ({
|
|
36613
|
+
position: h,
|
|
36614
|
+
beakAlignment: p
|
|
36614
36615
|
}) => {
|
|
36615
|
-
const
|
|
36616
|
-
return
|
|
36616
|
+
const m = h === "bottom" || h === "top", k = h === "right" || h === "left";
|
|
36617
|
+
return m && p === "start" ? "[&>span]:!left-[10%]" : k && p === "start" ? "[&>span]:!top-[20%]" : m && p === "end" ? "[&>span]:!left-[80%]" : k && p === "end" ? "[&>span]:!top-[60%]" : k && p === "center" ? "my-0 -mx-1" : "-my-1";
|
|
36617
36618
|
};
|
|
36618
36619
|
return /* @__PURE__ */ f.jsx(C9e, { children: /* @__PURE__ */ f.jsxs(b9e, { open: i, children: [
|
|
36619
36620
|
/* @__PURE__ */ f.jsx(
|
|
36620
36621
|
L9e,
|
|
36621
36622
|
{
|
|
36622
36623
|
"data-testid": "tooltip-trigger",
|
|
36623
|
-
onClick: (
|
|
36624
|
-
|
|
36624
|
+
onClick: (h) => {
|
|
36625
|
+
h.currentTarget.blur();
|
|
36625
36626
|
},
|
|
36627
|
+
asChild: c,
|
|
36626
36628
|
children: e
|
|
36627
36629
|
}
|
|
36628
36630
|
),
|
|
36629
36631
|
/* @__PURE__ */ f.jsx(N9e, { children: /* @__PURE__ */ f.jsx(
|
|
36630
36632
|
Pn.div,
|
|
36631
36633
|
{
|
|
36632
|
-
ref:
|
|
36634
|
+
ref: l,
|
|
36633
36635
|
initial: ui[a || "top"].initial,
|
|
36634
36636
|
animate: ui[a || "top"].animate,
|
|
36635
36637
|
exit: ui[a || "top"].exit,
|
|
@@ -36647,10 +36649,10 @@ const w9e = (e, t) => ps(e) ? new M9e(t) : new k9e(t, {
|
|
|
36647
36649
|
className: T(
|
|
36648
36650
|
"max-w-sm min-h-[2vh] overflow-hidden rounded color-bg-tooltip p-2 text-helper-text-sm color-text-tooltip",
|
|
36649
36651
|
S9e({ position: a, className: t }),
|
|
36650
|
-
|
|
36652
|
+
u({ position: a, beakAlignment: o }),
|
|
36651
36653
|
t
|
|
36652
36654
|
),
|
|
36653
|
-
...
|
|
36655
|
+
...d,
|
|
36654
36656
|
side: a || "top",
|
|
36655
36657
|
align: o || "center",
|
|
36656
36658
|
children: [
|