@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 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;
@@ -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, customIcon, }: ToasterProps) => JSX_2.Element;
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 items-center": t === "center-bottom"
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 space-x-4 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",
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: "default group color-bg-default-inverse color-text-inverse dark:text-[#363B3F] !p-3 !gap-2 !w-fit !space-x-0 !rounded-[8px]"
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: n } = Twe(), o = Ke(() => {
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: o, duration: t, children: [
63697
- n.map(function({
63698
- id: i,
63699
- title: s,
63700
- description: c,
63701
- action: f,
63702
- variant: d,
63703
- hasIcon: u,
63704
- ...h
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
- ...h,
63710
- variant: d,
63711
- position: e,
63711
+ ...m,
63712
+ variant: f,
63713
+ position: h,
63712
63714
  className: "justify-start relative",
63713
- duration: t,
63714
- hasIcon: u,
63715
- customIcon: a,
63715
+ duration: y,
63716
+ hasIcon: d,
63717
+ customIcon: u,
63716
63718
  children: [
63717
63719
  /* @__PURE__ */ l.jsxs("div", { className: "grid gap-1 ", children: [
63718
- s && /* @__PURE__ */ l.jsx(h6, { children: s }),
63719
- c && /* @__PURE__ */ l.jsx(p6, { children: c })
63720
+ i && /* @__PURE__ */ l.jsx(h6, { children: i }),
63721
+ s && /* @__PURE__ */ l.jsx(p6, { children: s })
63720
63722
  ] }),
63721
- f,
63722
- d !== "mini" && /* @__PURE__ */ l.jsx(u6, {})
63723
+ c,
63724
+ f !== "mini" && /* @__PURE__ */ l.jsx(u6, {})
63723
63725
  ]
63724
63726
  },
63725
- i
63727
+ o
63726
63728
  );
63727
63729
  }),
63728
63730
  /* @__PURE__ */ l.jsx(d6, { position: e })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse/ui",
3
- "version": "4.1.6-patch-6",
3
+ "version": "4.1.6-patch-7",
4
4
  "files": [
5
5
  "/dist"
6
6
  ],