@fileverse/ui 4.2.1-toast-1 → 4.2.1-toast-3

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
@@ -635,6 +635,8 @@ video {
635
635
  --color-icon-disabled: 0, 0%, 25%, 1; /* Gray-800 */
636
636
  --color-icon-inverse: 207, 8%, 23%, 1; /* Gray-100 */
637
637
  --color-icon-danger: 354, 96%, 59%, 1; /* Red-500 */
638
+ --color-icon-warning: 354, 96%, 59%, 1; /* Red-500 */
639
+ --color-icon-info: 354, 96%, 59%, 1; /* Red-500 */
638
640
  --color-icon-success: 127, 69%, 29%, 1; /* Green-700 */
639
641
  --color-icon-on-brand: 0, 0%, 18%, 1; /* Gray-950 */
640
642
  /* Utility */
@@ -875,6 +877,10 @@ video {
875
877
  background-color: hsl(var(--color-bg-success-light));
876
878
  }
877
879
 
880
+ .color-bg-success {
881
+ background-color: hsl(var(--color-bg-success));
882
+ }
883
+
878
884
  .\!color-bg-default-inverse {
879
885
  background-color: hsl(var(--color-bg-default-inverse)) !important;
880
886
  }
@@ -924,6 +930,19 @@ video {
924
930
  border-color: hsl(var(--color-border-default));
925
931
  }
926
932
 
933
+ .color-border-toast-warning {
934
+ border-left-color: hsl(var(--color-border-warning));
935
+ }
936
+ .color-border-toast-error {
937
+ border-left-color: hsl(var(--color-border-danger));
938
+ }
939
+ .color-border-toast-success {
940
+ border-left-color: hsl(var(--color-border-success));
941
+ }
942
+ .color-border-toast-info {
943
+ border-left-color: hsl(var(--color-border-info));
944
+ }
945
+
927
946
  .color-border-hover {
928
947
  border-color: hsl(var(--color-border-hover));
929
948
  }
@@ -968,6 +987,20 @@ video {
968
987
  color: hsl(var(--color-icon-inverse));
969
988
  }
970
989
 
990
+ .color-icon-success {
991
+ color: hsl(var(--color-icon-success));
992
+ }
993
+
994
+ .color-icon-danger {
995
+ color: hsl(var(--color-icon-danger));
996
+ }
997
+ .color-icon-warning {
998
+ color: hsl(var(--color-icon-warning));
999
+ }
1000
+ .color-icon-info {
1001
+ color: hsl(var(--color-icon-info));
1002
+ }
1003
+
971
1004
  .color-utility-overlay {
972
1005
  background-color: hsl(var(--color-utility-overlay));
973
1006
  }
@@ -1328,10 +1361,6 @@ video {
1328
1361
  .aspect-video {
1329
1362
  aspect-ratio: 16 / 9;
1330
1363
  }
1331
- .size-\[18px\] {
1332
- width: 18px;
1333
- height: 18px;
1334
- }
1335
1364
  .\!h-6 {
1336
1365
  height: 1.5rem !important;
1337
1366
  }
@@ -1565,6 +1594,9 @@ video {
1565
1594
  .w-\[180px\] {
1566
1595
  width: 180px;
1567
1596
  }
1597
+ .w-\[18px\] {
1598
+ width: 18px;
1599
+ }
1568
1600
  .w-\[200px\] {
1569
1601
  width: 200px;
1570
1602
  }
@@ -2150,6 +2182,9 @@ video {
2150
2182
  .border {
2151
2183
  border-width: 1px;
2152
2184
  }
2185
+ .border-0 {
2186
+ border-width: 0px;
2187
+ }
2153
2188
  .border-2 {
2154
2189
  border-width: 2px;
2155
2190
  }
@@ -2190,9 +2225,6 @@ video {
2190
2225
  --tw-border-opacity: 1;
2191
2226
  border-color: rgb(255 255 255 / var(--tw-border-opacity, 1));
2192
2227
  }
2193
- .border-\[hsl\(var\(--color-border-default\)\)\] {
2194
- border-color: hsl(var(--color-border-default));
2195
- }
2196
2228
  .border-gray-200 {
2197
2229
  --tw-border-opacity: 1;
2198
2230
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
@@ -2200,36 +2232,12 @@ video {
2200
2232
  .border-transparent {
2201
2233
  border-color: transparent;
2202
2234
  }
2203
- .border-l-\[hsl\(var\(--color-border-danger\)\)\] {
2204
- border-left-color: hsl(var(--color-border-danger));
2205
- }
2206
2235
  .border-l-\[hsl\(var\(--color-border-default\)\)\] {
2207
2236
  border-left-color: hsl(var(--color-border-default));
2208
2237
  }
2209
- .border-l-\[hsl\(var\(--color-border-info\)\)\] {
2210
- border-left-color: hsl(var(--color-border-info));
2211
- }
2212
- .border-l-\[hsl\(var\(--color-border-success\)\)\] {
2213
- border-left-color: hsl(var(--color-border-success));
2214
- }
2215
- .border-l-\[hsl\(var\(--color-border-warning\)\)\] {
2216
- border-left-color: hsl(var(--color-border-warning));
2217
- }
2218
2238
  .\!bg-transparent {
2219
2239
  background-color: transparent !important;
2220
2240
  }
2221
- .bg-\[hsl\(var\(--color-bg-danger\)\)\] {
2222
- background-color: hsl(var(--color-bg-danger));
2223
- }
2224
- .bg-\[hsl\(var\(--color-bg-default\)\)\] {
2225
- background-color: hsl(var(--color-bg-default));
2226
- }
2227
- .bg-\[hsl\(var\(--color-bg-success\)\)\] {
2228
- background-color: hsl(var(--color-bg-success));
2229
- }
2230
- .bg-\[var\(--color-bg-default\)\] {
2231
- background-color: var(--color-bg-default);
2232
- }
2233
2241
  .bg-green-700 {
2234
2242
  --tw-bg-opacity: 1;
2235
2243
  background-color: rgb(21 128 61 / var(--tw-bg-opacity, 1));
@@ -2489,21 +2497,6 @@ video {
2489
2497
  --tw-text-opacity: 1;
2490
2498
  color: rgb(119 129 138 / var(--tw-text-opacity, 1));
2491
2499
  }
2492
- .text-\[hsl\(var\(--color-border-danger\)\)\] {
2493
- color: hsl(var(--color-border-danger));
2494
- }
2495
- .text-\[hsl\(var\(--color-border-info\)\)\] {
2496
- color: hsl(var(--color-border-info));
2497
- }
2498
- .text-\[hsl\(var\(--color-border-success\)\)\] {
2499
- color: hsl(var(--color-border-success));
2500
- }
2501
- .text-\[hsl\(var\(--color-border-warning\)\)\] {
2502
- color: hsl(var(--color-border-warning));
2503
- }
2504
- .text-\[hsl\(var\(--color-text-default\)\)\] {
2505
- color: hsl(var(--color-text-default));
2506
- }
2507
2500
  .text-\[hsl\(var\(--color-text-inverse\)\)\] {
2508
2501
  color: hsl(var(--color-text-inverse));
2509
2502
  }
package/dist/index.es.js CHANGED
@@ -65699,12 +65699,12 @@ const jCe = Jve, zy = y.forwardRef(({ className: e, position: t = "bottom-right"
65699
65699
  className: T(
65700
65700
  "fixed z-[100] flex gap-2 max-h-screen w-full flex-col-reverse p-4 sm:flex-col max-w-fit overflow-clip overscroll-contain",
65701
65701
  {
65702
- "top-0 right-0 overflow-y-auto": t === "top-right",
65703
- "top-0 left-0 overflow-y-auto": t === "top-left",
65704
- "bottom-0 right-0 overflow-y-auto": t === "bottom-right",
65705
- "bottom-0 left-0 overflow-y-auto": t === "bottom-left",
65706
- "top-0 left-1/2 -translate-x-1/2": t === "center-top",
65707
- "bottom-0 left-1/2 -translate-x-1/2": t === "center-bottom"
65702
+ "top-0 right-0 items-end overflow-y-auto": t === "top-right",
65703
+ "top-0 left-0 items-start overflow-y-auto": t === "top-left",
65704
+ "bottom-0 right-0 items-end overflow-y-auto": t === "bottom-right",
65705
+ "bottom-0 left-0 items-start overflow-y-auto": t === "bottom-left",
65706
+ "top-0 left-1/2 items-center -translate-x-1/2": t === "center-top",
65707
+ "bottom-0 left-1/2 items-center -translate-x-1/2": t === "center-bottom"
65708
65708
  },
65709
65709
  e
65710
65710
  ),
@@ -65713,7 +65713,7 @@ const jCe = Jve, zy = y.forwardRef(({ className: e, position: t = "bottom-right"
65713
65713
  ));
65714
65714
  zy.displayName = d5.displayName;
65715
65715
  const NCe = H1(
65716
- "group pointer-events-auto shrink-0 bg-[hsl(var(--color-bg-default))] relative flex items-center border border-[hsl(var(--color-border-default))] justify-between overflow-hidden rounded-lg px-3 py-2 shadow-elevation-3 transition-all data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=open]:duration-300 data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[swipe=end]:animate-out data-[state=closed]:fade-out-80",
65716
+ "group pointer-events-auto shrink-0 relative color-bg-default color-border-default flex items-center justify-between overflow-hidden rounded-lg px-3 py-2 shadow-elevation-3 transition-all data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=open]:duration-300 data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[swipe=end]:animate-out data-[state=closed]:fade-out-80",
65717
65717
  {
65718
65718
  variants: {
65719
65719
  variant: {
@@ -65724,8 +65724,8 @@ const NCe = H1(
65724
65724
  info: "info"
65725
65725
  },
65726
65726
  type: {
65727
- normal: "normal-toast color-bg-default border color-border-default space-x-4 group w-[320px] max-w-full",
65728
- mini: "mini-toast gap-2 w-fit max-w-full"
65727
+ normal: "normal-toast space-x-4 group w-[320px] max-w-full color-border-default",
65728
+ mini: "mini-toast gap-2 w-fit max-w-full border-0"
65729
65729
  },
65730
65730
  position: {
65731
65731
  "top-right": "data-[state=open]:slide-in-from-right-[calc(100%+16px*2)] data-[state=closed]:slide-out-to-right-[calc(100%+16px*2)] 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)]",
@@ -65740,52 +65740,52 @@ const NCe = H1(
65740
65740
  {
65741
65741
  type: "normal",
65742
65742
  variant: "default",
65743
- className: "bg-[hsl(var(--color-bg-default))] border border-[hsl(var(--color-border-default))]"
65743
+ className: "color-bg-default color-border-default"
65744
65744
  },
65745
65745
  {
65746
65746
  type: "normal",
65747
65747
  variant: "error",
65748
- className: "border-l-4 border-l-[hsl(var(--color-border-danger))]"
65748
+ className: "border-l-4 color-border-toast-error"
65749
65749
  },
65750
65750
  {
65751
65751
  type: "normal",
65752
65752
  variant: "success",
65753
- className: "border-l-4 border-l-[hsl(var(--color-border-success))]"
65753
+ className: "border-l-4 color-border-toast-success"
65754
65754
  },
65755
65755
  {
65756
65756
  type: "normal",
65757
65757
  variant: "warning",
65758
- className: "border-l-4 border-l-[hsl(var(--color-border-warning))]"
65758
+ className: "border-l-4 color-border-toast-warning"
65759
65759
  },
65760
65760
  {
65761
65761
  type: "normal",
65762
65762
  variant: "info",
65763
- className: "border-l-4 border-l-[hsl(var(--color-border-info))]"
65763
+ className: "border-l-4 color-border-toast-info"
65764
65764
  },
65765
65765
  {
65766
65766
  type: "mini",
65767
65767
  variant: "default",
65768
- className: "bg-[var(--color-bg-default)] text-[hsl(var(--color-text-default))] border-[hsl(var(--color-border-default))]"
65768
+ className: "border color-bg-default color-text-default"
65769
65769
  },
65770
65770
  {
65771
65771
  type: "mini",
65772
65772
  variant: "info",
65773
- className: "bg-[var(--color-bg-default)] text-[hsl(var(--color-text-default))] border-[hsl(var(--color-border-default))]"
65773
+ className: "color-bg-default color-text-default"
65774
65774
  },
65775
65775
  {
65776
65776
  type: "mini",
65777
65777
  variant: "warning",
65778
- className: "bg-[var(--color-bg-default)] text-[hsl(var(--color-text-default))] border-[hsl(var(--color-border-default))]"
65778
+ className: "color-bg-default color-text-default"
65779
65779
  },
65780
65780
  {
65781
65781
  type: "mini",
65782
65782
  variant: "error",
65783
- className: "bg-[hsl(var(--color-bg-danger))] text-[hsl(var(--color-text-inverse))]"
65783
+ className: "color-bg-danger color-text-inverse"
65784
65784
  },
65785
65785
  {
65786
65786
  type: "mini",
65787
65787
  variant: "success",
65788
- className: "bg-[hsl(var(--color-bg-success))] text-[hsl(var(--color-text-inverse))]"
65788
+ className: "color-bg-success color-text-inverse"
65789
65789
  }
65790
65790
  ],
65791
65791
  defaultVariants: {
@@ -66054,7 +66054,9 @@ const MNe = ({
66054
66054
  {
66055
66055
  name: C,
66056
66056
  size: "sm",
66057
- className: "size-[18px] shrink-0 text-current"
66057
+ width: 18,
66058
+ height: 18,
66059
+ className: "w-[18px] h-[18px] shrink-0 text-current"
66058
66060
  }
66059
66061
  ),
66060
66062
  m === "emoji" && b && /* @__PURE__ */ f.jsx("span", { className: "text-heading-lg", children: b }),
@@ -66087,12 +66089,14 @@ const MNe = ({
66087
66089
  {
66088
66090
  name: C,
66089
66091
  size: "sm",
66092
+ width: 18,
66093
+ height: 18,
66090
66094
  className: T(
66091
- "size-[18px] shrink-0",
66092
- l === "error" && "text-[hsl(var(--color-border-danger))]",
66093
- l === "success" && "text-[hsl(var(--color-border-success))]",
66094
- l === "warning" && "text-[hsl(var(--color-border-warning))]",
66095
- l === "info" && "text-[hsl(var(--color-border-info))]"
66095
+ "w-[18px] h-[18px] shrink-0",
66096
+ l === "error" && "color-icon-danger",
66097
+ l === "success" && "color-icon-success",
66098
+ l === "warning" && "color-icon-warning",
66099
+ l === "info" && "color-icon-info"
66096
66100
  )
66097
66101
  }
66098
66102
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse/ui",
3
- "version": "4.2.1-toast-1",
3
+ "version": "4.2.1-toast-3",
4
4
  "files": [
5
5
  "/dist"
6
6
  ],
@@ -113,4 +113,4 @@
113
113
  ],
114
114
  "*.css": "stylelint --fix"
115
115
  }
116
- }
116
+ }