@fileverse/ui 4.1.6-patch-6 → 4.1.6-patch-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/dist/index.css +13 -18
- package/dist/index.es.d.ts +1 -1
- package/dist/index.es.js +32 -30
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -1450,10 +1450,6 @@ video {
|
|
|
1450
1450
|
.\!w-\[95\%\] {
|
|
1451
1451
|
width: 95% !important;
|
|
1452
1452
|
}
|
|
1453
|
-
.\!w-fit {
|
|
1454
|
-
width: -moz-fit-content !important;
|
|
1455
|
-
width: fit-content !important;
|
|
1456
|
-
}
|
|
1457
1453
|
.\!w-full {
|
|
1458
1454
|
width: 100% !important;
|
|
1459
1455
|
}
|
|
@@ -1873,9 +1869,6 @@ video {
|
|
|
1873
1869
|
.\!gap-1 {
|
|
1874
1870
|
gap: 0.25rem !important;
|
|
1875
1871
|
}
|
|
1876
|
-
.\!gap-2 {
|
|
1877
|
-
gap: 0.5rem !important;
|
|
1878
|
-
}
|
|
1879
1872
|
.gap-1 {
|
|
1880
1873
|
gap: 0.25rem;
|
|
1881
1874
|
}
|
|
@@ -1903,11 +1896,6 @@ video {
|
|
|
1903
1896
|
.gap-8 {
|
|
1904
1897
|
gap: 2rem;
|
|
1905
1898
|
}
|
|
1906
|
-
.\!space-x-0 > :not([hidden]) ~ :not([hidden]) {
|
|
1907
|
-
--tw-space-x-reverse: 0 !important;
|
|
1908
|
-
margin-right: calc(0px * var(--tw-space-x-reverse)) !important;
|
|
1909
|
-
margin-left: calc(0px * calc(1 - var(--tw-space-x-reverse))) !important;
|
|
1910
|
-
}
|
|
1911
1899
|
.-space-x-1 > :not([hidden]) ~ :not([hidden]) {
|
|
1912
1900
|
--tw-space-x-reverse: 0;
|
|
1913
1901
|
margin-right: calc(-0.25rem * var(--tw-space-x-reverse));
|
|
@@ -1997,9 +1985,6 @@ video {
|
|
|
1997
1985
|
.\!rounded {
|
|
1998
1986
|
border-radius: 0.25rem !important;
|
|
1999
1987
|
}
|
|
2000
|
-
.\!rounded-\[8px\] {
|
|
2001
|
-
border-radius: 8px !important;
|
|
2002
|
-
}
|
|
2003
1988
|
.\!rounded-lg {
|
|
2004
1989
|
border-radius: var(--radius) !important;
|
|
2005
1990
|
}
|
|
@@ -2142,9 +2127,6 @@ video {
|
|
|
2142
2127
|
-o-object-fit: cover;
|
|
2143
2128
|
object-fit: cover;
|
|
2144
2129
|
}
|
|
2145
|
-
.\!p-3 {
|
|
2146
|
-
padding: 0.75rem !important;
|
|
2147
|
-
}
|
|
2148
2130
|
.p-0 {
|
|
2149
2131
|
padding: 0px;
|
|
2150
2132
|
}
|
|
@@ -2607,6 +2589,19 @@ textarea:is(:-webkit-autofill, :autofill) {
|
|
|
2607
2589
|
margin: 0 0.5rem !important;
|
|
2608
2590
|
}
|
|
2609
2591
|
|
|
2592
|
+
.toast-mini {
|
|
2593
|
+
padding: 12px !important;
|
|
2594
|
+
gap: 8px !important;
|
|
2595
|
+
width: -moz-fit-content !important;
|
|
2596
|
+
width: fit-content !important;
|
|
2597
|
+
border-radius: 8px !important;
|
|
2598
|
+
place-self: end !important;
|
|
2599
|
+
}
|
|
2600
|
+
|
|
2601
|
+
.toast-mini > * + * {
|
|
2602
|
+
margin-left: 0;
|
|
2603
|
+
}
|
|
2604
|
+
|
|
2610
2605
|
.file\:text-body-sm::file-selector-button {
|
|
2611
2606
|
font-family: system-ui;
|
|
2612
2607
|
font-size: 14px;
|
package/dist/index.es.d.ts
CHANGED
|
@@ -872,7 +872,7 @@ export declare const ToastClose: React_2.ForwardRefExoticComponent<Omit<ToastPri
|
|
|
872
872
|
|
|
873
873
|
export declare const ToastDescription: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
874
874
|
|
|
875
|
-
export declare const Toaster: ({ position, duration,
|
|
875
|
+
export declare const Toaster: ({ position, duration, }: ToasterProps) => JSX_2.Element;
|
|
876
876
|
|
|
877
877
|
export declare interface ToasterProps {
|
|
878
878
|
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "center-top" | "center-bottom";
|
package/dist/index.es.js
CHANGED
|
@@ -63459,7 +63459,7 @@ const xwe = ({ duration: e, variant: t }) => {
|
|
|
63459
63459
|
"bottom-0 right-0": t === "bottom-right",
|
|
63460
63460
|
"bottom-0 left-0": t === "bottom-left",
|
|
63461
63461
|
"top-0 left-1/2 -translate-x-1/2": t === "center-top",
|
|
63462
|
-
"bottom-0 left-1/2 -translate-x-1/2
|
|
63462
|
+
"bottom-0 left-1/2 -translate-x-1/2": t === "center-bottom"
|
|
63463
63463
|
},
|
|
63464
63464
|
e
|
|
63465
63465
|
),
|
|
@@ -63468,15 +63468,15 @@ const xwe = ({ duration: e, variant: t }) => {
|
|
|
63468
63468
|
));
|
|
63469
63469
|
d6.displayName = R3.displayName;
|
|
63470
63470
|
const bwe = Lt(
|
|
63471
|
-
"group pointer-events-auto relative flex w-full items-center justify-between
|
|
63471
|
+
"group pointer-events-auto relative flex w-full items-center justify-between overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80",
|
|
63472
63472
|
{
|
|
63473
63473
|
variants: {
|
|
63474
63474
|
variant: {
|
|
63475
|
-
default: "default group color-bg-default-inverse color-text-inverse dark:text-[#363B3F]",
|
|
63476
|
-
secondary: "secondary group color-bg-secondary color-text-default color-border-default",
|
|
63477
|
-
danger: "danger group color-bg-danger-light color-text-danger color-border-danger",
|
|
63478
|
-
success: "success group color-bg-success-light color-text-success color-border-default",
|
|
63479
|
-
mini: "
|
|
63475
|
+
default: "default group color-bg-default-inverse color-text-inverse dark:text-[#363B3F] space-x-4",
|
|
63476
|
+
secondary: "secondary group color-bg-secondary color-text-default color-border-default space-x-4",
|
|
63477
|
+
danger: "danger group color-bg-danger-light color-text-danger color-border-danger space-x-4",
|
|
63478
|
+
success: "success group color-bg-success-light color-text-success color-border-default space-x-4",
|
|
63479
|
+
mini: "toast-mini group color-bg-default-inverse color-text-inverse dark:text-[#363B3F] space-x-0"
|
|
63480
63480
|
},
|
|
63481
63481
|
position: {
|
|
63482
63482
|
"top-right": "data-[state=open]:slide-in-from-top-full data-[state=closed]:slide-out-to-right-full data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)]",
|
|
@@ -63672,10 +63672,9 @@ function Twe() {
|
|
|
63672
63672
|
}
|
|
63673
63673
|
const Nxe = ({
|
|
63674
63674
|
position: e = "top-right",
|
|
63675
|
-
duration: t = 5e3
|
|
63676
|
-
customIcon: a
|
|
63675
|
+
duration: t = 5e3
|
|
63677
63676
|
}) => {
|
|
63678
|
-
const { toasts:
|
|
63677
|
+
const { toasts: a } = Twe(), n = Ke(() => {
|
|
63679
63678
|
switch (e) {
|
|
63680
63679
|
case "top-right":
|
|
63681
63680
|
return "right";
|
|
@@ -63693,36 +63692,39 @@ const Nxe = ({
|
|
|
63693
63692
|
return "right";
|
|
63694
63693
|
}
|
|
63695
63694
|
}, [e]);
|
|
63696
|
-
return /* @__PURE__ */ l.jsxs(Cwe, { swipeDirection:
|
|
63697
|
-
|
|
63698
|
-
id:
|
|
63699
|
-
title:
|
|
63700
|
-
description:
|
|
63701
|
-
action:
|
|
63702
|
-
variant:
|
|
63703
|
-
hasIcon:
|
|
63704
|
-
|
|
63695
|
+
return /* @__PURE__ */ l.jsxs(Cwe, { swipeDirection: n, duration: t, children: [
|
|
63696
|
+
a.map(function({
|
|
63697
|
+
id: o,
|
|
63698
|
+
title: i,
|
|
63699
|
+
description: s,
|
|
63700
|
+
action: c,
|
|
63701
|
+
variant: f,
|
|
63702
|
+
hasIcon: d,
|
|
63703
|
+
customIcon: u,
|
|
63704
|
+
position: h,
|
|
63705
|
+
duration: y,
|
|
63706
|
+
...m
|
|
63705
63707
|
}) {
|
|
63706
63708
|
return /* @__PURE__ */ l.jsxs(
|
|
63707
63709
|
l6,
|
|
63708
63710
|
{
|
|
63709
|
-
...
|
|
63710
|
-
variant:
|
|
63711
|
-
position:
|
|
63711
|
+
...m,
|
|
63712
|
+
variant: f,
|
|
63713
|
+
position: h,
|
|
63712
63714
|
className: "justify-start relative",
|
|
63713
|
-
duration:
|
|
63714
|
-
hasIcon:
|
|
63715
|
-
customIcon:
|
|
63715
|
+
duration: y,
|
|
63716
|
+
hasIcon: d,
|
|
63717
|
+
customIcon: u,
|
|
63716
63718
|
children: [
|
|
63717
63719
|
/* @__PURE__ */ l.jsxs("div", { className: "grid gap-1 ", children: [
|
|
63718
|
-
|
|
63719
|
-
|
|
63720
|
+
i && /* @__PURE__ */ l.jsx(h6, { children: i }),
|
|
63721
|
+
s && /* @__PURE__ */ l.jsx(p6, { children: s })
|
|
63720
63722
|
] }),
|
|
63721
|
-
|
|
63722
|
-
|
|
63723
|
+
c,
|
|
63724
|
+
f !== "mini" && /* @__PURE__ */ l.jsx(u6, {})
|
|
63723
63725
|
]
|
|
63724
63726
|
},
|
|
63725
|
-
|
|
63727
|
+
o
|
|
63726
63728
|
);
|
|
63727
63729
|
}),
|
|
63728
63730
|
/* @__PURE__ */ l.jsx(d6, { position: e })
|