@fileverse/ui 4.1.1-patch-5 → 4.1.1-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 +200 -0
- package/dist/index.es.d.ts +62 -1
- package/dist/index.es.js +9971 -9138
- package/package.json +3 -1
package/dist/index.css
CHANGED
|
@@ -993,6 +993,9 @@ video {
|
|
|
993
993
|
.pointer-events-none {
|
|
994
994
|
pointer-events: none;
|
|
995
995
|
}
|
|
996
|
+
.pointer-events-auto {
|
|
997
|
+
pointer-events: auto;
|
|
998
|
+
}
|
|
996
999
|
.visible {
|
|
997
1000
|
visibility: visible;
|
|
998
1001
|
}
|
|
@@ -1091,6 +1094,9 @@ video {
|
|
|
1091
1094
|
.top-1\/2 {
|
|
1092
1095
|
top: 50%;
|
|
1093
1096
|
}
|
|
1097
|
+
.top-2 {
|
|
1098
|
+
top: 0.5rem;
|
|
1099
|
+
}
|
|
1094
1100
|
.top-3 {
|
|
1095
1101
|
top: 0.75rem;
|
|
1096
1102
|
}
|
|
@@ -1109,6 +1115,9 @@ video {
|
|
|
1109
1115
|
.z-50 {
|
|
1110
1116
|
z-index: 50;
|
|
1111
1117
|
}
|
|
1118
|
+
.z-\[100\] {
|
|
1119
|
+
z-index: 100;
|
|
1120
|
+
}
|
|
1112
1121
|
.z-\[999\] {
|
|
1113
1122
|
z-index: 999;
|
|
1114
1123
|
}
|
|
@@ -1312,6 +1321,9 @@ video {
|
|
|
1312
1321
|
.max-h-\[300px\] {
|
|
1313
1322
|
max-height: 300px;
|
|
1314
1323
|
}
|
|
1324
|
+
.max-h-screen {
|
|
1325
|
+
max-height: 100vh;
|
|
1326
|
+
}
|
|
1315
1327
|
.\!min-h-12 {
|
|
1316
1328
|
min-height: 3rem !important;
|
|
1317
1329
|
}
|
|
@@ -1366,6 +1378,9 @@ video {
|
|
|
1366
1378
|
.w-6 {
|
|
1367
1379
|
width: 1.5rem;
|
|
1368
1380
|
}
|
|
1381
|
+
.w-64 {
|
|
1382
|
+
width: 16rem;
|
|
1383
|
+
}
|
|
1369
1384
|
.w-72 {
|
|
1370
1385
|
width: 18rem;
|
|
1371
1386
|
}
|
|
@@ -1744,6 +1759,11 @@ video {
|
|
|
1744
1759
|
margin-right: calc(0.5rem * var(--tw-space-x-reverse));
|
|
1745
1760
|
margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
|
|
1746
1761
|
}
|
|
1762
|
+
.space-x-4 > :not([hidden]) ~ :not([hidden]) {
|
|
1763
|
+
--tw-space-x-reverse: 0;
|
|
1764
|
+
margin-right: calc(1rem * var(--tw-space-x-reverse));
|
|
1765
|
+
margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
|
|
1766
|
+
}
|
|
1747
1767
|
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) {
|
|
1748
1768
|
--tw-space-y-reverse: 0;
|
|
1749
1769
|
margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
|
|
@@ -2124,6 +2144,9 @@ video {
|
|
|
2124
2144
|
.opacity-50 {
|
|
2125
2145
|
opacity: 0.5;
|
|
2126
2146
|
}
|
|
2147
|
+
.opacity-90 {
|
|
2148
|
+
opacity: 0.9;
|
|
2149
|
+
}
|
|
2127
2150
|
.shadow {
|
|
2128
2151
|
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
2129
2152
|
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
|
@@ -2134,6 +2157,11 @@ video {
|
|
|
2134
2157
|
--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
|
|
2135
2158
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2136
2159
|
}
|
|
2160
|
+
.shadow-md {
|
|
2161
|
+
--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
2162
|
+
--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
|
|
2163
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2164
|
+
}
|
|
2137
2165
|
.shadow-none {
|
|
2138
2166
|
--tw-shadow: 0 0 #0000;
|
|
2139
2167
|
--tw-shadow-colored: 0 0 #0000;
|
|
@@ -2159,6 +2187,9 @@ video {
|
|
|
2159
2187
|
.ring-offset-2 {
|
|
2160
2188
|
--tw-ring-offset-width: 2px;
|
|
2161
2189
|
}
|
|
2190
|
+
.ring-offset-transparent {
|
|
2191
|
+
--tw-ring-offset-color: transparent;
|
|
2192
|
+
}
|
|
2162
2193
|
.ring-offset-white {
|
|
2163
2194
|
--tw-ring-offset-color: #fff;
|
|
2164
2195
|
}
|
|
@@ -2431,6 +2462,86 @@ textarea:is(:-webkit-autofill, :autofill) {
|
|
|
2431
2462
|
border-color: hsl(var(--color-border-disabled));
|
|
2432
2463
|
}
|
|
2433
2464
|
|
|
2465
|
+
.group.secondary .group-\[\.secondary\]\:color-text-default {
|
|
2466
|
+
color: hsl(var(--color-text-default));
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2469
|
+
.group.danger .group-\[\.danger\]\:color-text-danger {
|
|
2470
|
+
color: hsl(var(--color-text-danger));
|
|
2471
|
+
}
|
|
2472
|
+
|
|
2473
|
+
.group.success .group-\[\.success\]\:color-text-success {
|
|
2474
|
+
color: hsl(var(--color-text-success));
|
|
2475
|
+
}
|
|
2476
|
+
|
|
2477
|
+
.group.default .group-\[\.default\]\:color-text-inverse {
|
|
2478
|
+
color: hsl(var(--color-text-inverse));
|
|
2479
|
+
}
|
|
2480
|
+
|
|
2481
|
+
.group.secondary .group-\[\.secondary\]\:color-bg-secondary {
|
|
2482
|
+
background-color: hsl(var(--color-bg-secondary));
|
|
2483
|
+
}
|
|
2484
|
+
|
|
2485
|
+
.group.danger .group-\[\.danger\]\:color-bg-danger-light {
|
|
2486
|
+
background-color: hsl(var(--color-bg-danger-light));
|
|
2487
|
+
}
|
|
2488
|
+
|
|
2489
|
+
.group.success .group-\[\.success\]\:color-bg-success-light {
|
|
2490
|
+
background-color: hsl(var(--color-bg-success-light));
|
|
2491
|
+
}
|
|
2492
|
+
|
|
2493
|
+
.group.default .group-\[\.default\]\:color-bg-default-inverse {
|
|
2494
|
+
background-color: hsl(var(--color-bg-default-inverse));
|
|
2495
|
+
}
|
|
2496
|
+
|
|
2497
|
+
.group.default .group-\[\.default\]\:color-border-default {
|
|
2498
|
+
border-color: hsl(var(--color-border-default));
|
|
2499
|
+
}
|
|
2500
|
+
|
|
2501
|
+
.group.secondary .group-\[\.secondary\]\:color-border-hover {
|
|
2502
|
+
border-color: hsl(var(--color-border-hover));
|
|
2503
|
+
}
|
|
2504
|
+
|
|
2505
|
+
.group.success .group-\[\.success\]\:color-border-hover {
|
|
2506
|
+
border-color: hsl(var(--color-border-hover));
|
|
2507
|
+
}
|
|
2508
|
+
|
|
2509
|
+
.group.danger .group-\[\.danger\]\:color-border-danger {
|
|
2510
|
+
border-color: hsl(var(--color-border-danger));
|
|
2511
|
+
}
|
|
2512
|
+
|
|
2513
|
+
.group.secondary .group-\[\.secondary\]\:hover\:color-text-default:hover {
|
|
2514
|
+
color: hsl(var(--color-text-default));
|
|
2515
|
+
}
|
|
2516
|
+
|
|
2517
|
+
.group.danger .group-\[\.danger\]\:hover\:color-text-danger:hover {
|
|
2518
|
+
color: hsl(var(--color-text-danger));
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2521
|
+
.group.success .group-\[\.success\]\:hover\:color-text-success:hover {
|
|
2522
|
+
color: hsl(var(--color-text-success));
|
|
2523
|
+
}
|
|
2524
|
+
|
|
2525
|
+
.group.default .group-\[\.default\]\:hover\:color-text-inverse:hover {
|
|
2526
|
+
color: hsl(var(--color-text-inverse));
|
|
2527
|
+
}
|
|
2528
|
+
|
|
2529
|
+
.group.secondary .group-\[\.secondary\]\:hover\:color-bg-secondary:hover {
|
|
2530
|
+
background-color: hsl(var(--color-bg-secondary));
|
|
2531
|
+
}
|
|
2532
|
+
|
|
2533
|
+
.group.danger .group-\[\.danger\]\:hover\:color-bg-danger-light:hover {
|
|
2534
|
+
background-color: hsl(var(--color-bg-danger-light));
|
|
2535
|
+
}
|
|
2536
|
+
|
|
2537
|
+
.group.success .group-\[\.success\]\:hover\:color-bg-success-light:hover {
|
|
2538
|
+
background-color: hsl(var(--color-bg-success-light));
|
|
2539
|
+
}
|
|
2540
|
+
|
|
2541
|
+
.group.default .group-\[\.default\]\:hover\:color-bg-default-inverse:hover {
|
|
2542
|
+
background-color: hsl(var(--color-bg-default-inverse));
|
|
2543
|
+
}
|
|
2544
|
+
|
|
2434
2545
|
.aria-selected\:color-text-default[aria-selected="true"] {
|
|
2435
2546
|
color: hsl(var(--color-text-default));
|
|
2436
2547
|
}
|
|
@@ -2557,6 +2668,10 @@ textarea:is(:-webkit-autofill, :autofill) {
|
|
|
2557
2668
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
2558
2669
|
}
|
|
2559
2670
|
|
|
2671
|
+
.focus\:opacity-100:focus {
|
|
2672
|
+
opacity: 1;
|
|
2673
|
+
}
|
|
2674
|
+
|
|
2560
2675
|
.focus\:shadow-none:focus {
|
|
2561
2676
|
--tw-shadow: 0 0 #0000;
|
|
2562
2677
|
--tw-shadow-colored: 0 0 #0000;
|
|
@@ -2637,6 +2752,11 @@ textarea:is(:-webkit-autofill, :autofill) {
|
|
|
2637
2752
|
opacity: 1;
|
|
2638
2753
|
}
|
|
2639
2754
|
|
|
2755
|
+
.group:hover .group-hover\:brightness-95 {
|
|
2756
|
+
--tw-brightness: brightness(.95);
|
|
2757
|
+
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
2758
|
+
}
|
|
2759
|
+
|
|
2640
2760
|
.peer:checked ~ .peer-checked\:block {
|
|
2641
2761
|
display: block;
|
|
2642
2762
|
}
|
|
@@ -2683,6 +2803,36 @@ textarea:is(:-webkit-autofill, :autofill) {
|
|
|
2683
2803
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
2684
2804
|
}
|
|
2685
2805
|
|
|
2806
|
+
.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel] {
|
|
2807
|
+
--tw-translate-x: 0px;
|
|
2808
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
2809
|
+
}
|
|
2810
|
+
|
|
2811
|
+
.data-\[swipe\=cancel\]\:translate-y-0[data-swipe=cancel] {
|
|
2812
|
+
--tw-translate-y: 0px;
|
|
2813
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
2814
|
+
}
|
|
2815
|
+
|
|
2816
|
+
.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end] {
|
|
2817
|
+
--tw-translate-x: var(--radix-toast-swipe-end-x);
|
|
2818
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
2819
|
+
}
|
|
2820
|
+
|
|
2821
|
+
.data-\[swipe\=end\]\:translate-y-\[var\(--radix-toast-swipe-end-y\)\][data-swipe=end] {
|
|
2822
|
+
--tw-translate-y: var(--radix-toast-swipe-end-y);
|
|
2823
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
2824
|
+
}
|
|
2825
|
+
|
|
2826
|
+
.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move] {
|
|
2827
|
+
--tw-translate-x: var(--radix-toast-swipe-move-x);
|
|
2828
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
2829
|
+
}
|
|
2830
|
+
|
|
2831
|
+
.data-\[swipe\=move\]\:translate-y-\[var\(--radix-toast-swipe-move-y\)\][data-swipe=move] {
|
|
2832
|
+
--tw-translate-y: var(--radix-toast-swipe-move-y);
|
|
2833
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
2834
|
+
}
|
|
2835
|
+
|
|
2686
2836
|
@keyframes accordion-up {
|
|
2687
2837
|
|
|
2688
2838
|
from {
|
|
@@ -2729,6 +2879,10 @@ textarea:is(:-webkit-autofill, :autofill) {
|
|
|
2729
2879
|
opacity: 0.5;
|
|
2730
2880
|
}
|
|
2731
2881
|
|
|
2882
|
+
.data-\[swipe\=move\]\:transition-none[data-swipe=move] {
|
|
2883
|
+
transition-property: none;
|
|
2884
|
+
}
|
|
2885
|
+
|
|
2732
2886
|
.data-\[state\=closed\]\:duration-300[data-state=closed] {
|
|
2733
2887
|
transition-duration: 300ms;
|
|
2734
2888
|
}
|
|
@@ -2757,10 +2911,24 @@ textarea:is(:-webkit-autofill, :autofill) {
|
|
|
2757
2911
|
--tw-exit-translate-y: initial;
|
|
2758
2912
|
}
|
|
2759
2913
|
|
|
2914
|
+
.data-\[swipe\=end\]\:animate-out[data-swipe=end] {
|
|
2915
|
+
animation-name: exit;
|
|
2916
|
+
animation-duration: 150ms;
|
|
2917
|
+
--tw-exit-opacity: initial;
|
|
2918
|
+
--tw-exit-scale: initial;
|
|
2919
|
+
--tw-exit-rotate: initial;
|
|
2920
|
+
--tw-exit-translate-x: initial;
|
|
2921
|
+
--tw-exit-translate-y: initial;
|
|
2922
|
+
}
|
|
2923
|
+
|
|
2760
2924
|
.data-\[state\=closed\]\:fade-out-0[data-state=closed] {
|
|
2761
2925
|
--tw-exit-opacity: 0;
|
|
2762
2926
|
}
|
|
2763
2927
|
|
|
2928
|
+
.data-\[state\=closed\]\:fade-out-80[data-state=closed] {
|
|
2929
|
+
--tw-exit-opacity: 0.8;
|
|
2930
|
+
}
|
|
2931
|
+
|
|
2764
2932
|
.data-\[state\=open\]\:fade-in-0[data-state=open] {
|
|
2765
2933
|
--tw-enter-opacity: 0;
|
|
2766
2934
|
}
|
|
@@ -2793,6 +2961,10 @@ textarea:is(:-webkit-autofill, :autofill) {
|
|
|
2793
2961
|
--tw-exit-translate-y: 100%;
|
|
2794
2962
|
}
|
|
2795
2963
|
|
|
2964
|
+
.data-\[state\=closed\]\:slide-out-to-bottom-full[data-state=closed] {
|
|
2965
|
+
--tw-exit-translate-y: 100%;
|
|
2966
|
+
}
|
|
2967
|
+
|
|
2796
2968
|
.data-\[state\=closed\]\:slide-out-to-left[data-state=closed] {
|
|
2797
2969
|
--tw-exit-translate-x: -100%;
|
|
2798
2970
|
}
|
|
@@ -2801,10 +2973,18 @@ textarea:is(:-webkit-autofill, :autofill) {
|
|
|
2801
2973
|
--tw-exit-translate-x: -50%;
|
|
2802
2974
|
}
|
|
2803
2975
|
|
|
2976
|
+
.data-\[state\=closed\]\:slide-out-to-left-full[data-state=closed] {
|
|
2977
|
+
--tw-exit-translate-x: -100%;
|
|
2978
|
+
}
|
|
2979
|
+
|
|
2804
2980
|
.data-\[state\=closed\]\:slide-out-to-right[data-state=closed] {
|
|
2805
2981
|
--tw-exit-translate-x: 100%;
|
|
2806
2982
|
}
|
|
2807
2983
|
|
|
2984
|
+
.data-\[state\=closed\]\:slide-out-to-right-full[data-state=closed] {
|
|
2985
|
+
--tw-exit-translate-x: 100%;
|
|
2986
|
+
}
|
|
2987
|
+
|
|
2808
2988
|
.data-\[state\=closed\]\:slide-out-to-top[data-state=closed] {
|
|
2809
2989
|
--tw-exit-translate-y: -100%;
|
|
2810
2990
|
}
|
|
@@ -2813,10 +2993,18 @@ textarea:is(:-webkit-autofill, :autofill) {
|
|
|
2813
2993
|
--tw-exit-translate-y: -48%;
|
|
2814
2994
|
}
|
|
2815
2995
|
|
|
2996
|
+
.data-\[state\=closed\]\:slide-out-to-top-full[data-state=closed] {
|
|
2997
|
+
--tw-exit-translate-y: -100%;
|
|
2998
|
+
}
|
|
2999
|
+
|
|
2816
3000
|
.data-\[state\=open\]\:slide-in-from-bottom[data-state=open] {
|
|
2817
3001
|
--tw-enter-translate-y: 100%;
|
|
2818
3002
|
}
|
|
2819
3003
|
|
|
3004
|
+
.data-\[state\=open\]\:slide-in-from-bottom-full[data-state=open] {
|
|
3005
|
+
--tw-enter-translate-y: 100%;
|
|
3006
|
+
}
|
|
3007
|
+
|
|
2820
3008
|
.data-\[state\=open\]\:slide-in-from-left[data-state=open] {
|
|
2821
3009
|
--tw-enter-translate-x: -100%;
|
|
2822
3010
|
}
|
|
@@ -2837,6 +3025,10 @@ textarea:is(:-webkit-autofill, :autofill) {
|
|
|
2837
3025
|
--tw-enter-translate-y: -48%;
|
|
2838
3026
|
}
|
|
2839
3027
|
|
|
3028
|
+
.data-\[state\=open\]\:slide-in-from-top-full[data-state=open] {
|
|
3029
|
+
--tw-enter-translate-y: -100%;
|
|
3030
|
+
}
|
|
3031
|
+
|
|
2840
3032
|
.data-\[state\=closed\]\:duration-300[data-state=closed] {
|
|
2841
3033
|
animation-duration: 300ms;
|
|
2842
3034
|
}
|
|
@@ -2864,6 +3056,10 @@ textarea:is(:-webkit-autofill, :autofill) {
|
|
|
2864
3056
|
flex-direction: row;
|
|
2865
3057
|
}
|
|
2866
3058
|
|
|
3059
|
+
.sm\:flex-col {
|
|
3060
|
+
flex-direction: column;
|
|
3061
|
+
}
|
|
3062
|
+
|
|
2867
3063
|
.sm\:justify-end {
|
|
2868
3064
|
justify-content: flex-end;
|
|
2869
3065
|
}
|
|
@@ -2897,6 +3093,10 @@ textarea:is(:-webkit-autofill, :autofill) {
|
|
|
2897
3093
|
width: auto;
|
|
2898
3094
|
}
|
|
2899
3095
|
|
|
3096
|
+
.md\:max-w-\[420px\] {
|
|
3097
|
+
max-width: 420px;
|
|
3098
|
+
}
|
|
3099
|
+
|
|
2900
3100
|
.md\:grid-cols-2 {
|
|
2901
3101
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
2902
3102
|
}
|
package/dist/index.es.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { Drawer as Drawer_2 } from 'vaul';
|
|
|
9
9
|
import { EmojiClickData } from 'emoji-picker-react';
|
|
10
10
|
import { ForwardRefExoticComponent } from 'react';
|
|
11
11
|
import { GridProps as GridProps_2 } from '@radix-ui/themes';
|
|
12
|
+
import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
12
13
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
13
14
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
14
15
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
@@ -20,6 +21,7 @@ import * as SelectPrimitive from '@radix-ui/react-select';
|
|
|
20
21
|
import { SetStateAction } from 'react';
|
|
21
22
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
22
23
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
24
|
+
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
23
25
|
import { VariantProps } from 'class-variance-authority';
|
|
24
26
|
|
|
25
27
|
export declare const Accordion: React_2.ForwardRefExoticComponent<(Omit<AccordionPrimitive.AccordionSingleProps & React_2.RefAttributes<HTMLDivElement>, "ref"> | Omit<AccordionPrimitive.AccordionMultipleProps & React_2.RefAttributes<HTMLDivElement>, "ref">) & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -448,6 +450,12 @@ export declare const GridLayout: (props: GridProps) => JSX_2.Element;
|
|
|
448
450
|
|
|
449
451
|
export declare type GridProps = GridProps_2;
|
|
450
452
|
|
|
453
|
+
export declare const HoverCard: React_2.FC<HoverCardPrimitive.HoverCardProps>;
|
|
454
|
+
|
|
455
|
+
export declare const HoverCardContent: React_2.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
456
|
+
|
|
457
|
+
export declare const HoverCardTrigger: React_2.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React_2.RefAttributes<HTMLAnchorElement>>;
|
|
458
|
+
|
|
451
459
|
export declare const Icon: default_2.ForwardRefExoticComponent<Omit<IconProps, "ref"> & default_2.RefAttributes<SVGSVGElement>>;
|
|
452
460
|
|
|
453
461
|
export declare const IconButton: ForwardRefExoticComponent<IconButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
@@ -771,6 +779,53 @@ export declare interface TextFieldProps extends React_2.InputHTMLAttributes<HTML
|
|
|
771
779
|
onChange?: (e: React_2.ChangeEvent<HTMLInputElement>) => void;
|
|
772
780
|
}
|
|
773
781
|
|
|
782
|
+
export declare const Toast: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React_2.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
783
|
+
variant?: "default" | "danger" | "secondary" | "success" | null | undefined;
|
|
784
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "center-top" | "center-bottom" | null | undefined;
|
|
785
|
+
} & ClassProp) | undefined) => string> & {
|
|
786
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "center-top" | "center-bottom";
|
|
787
|
+
} & React_2.RefAttributes<HTMLLIElement>>;
|
|
788
|
+
|
|
789
|
+
export declare function toast({ ...props }: Toast_2): {
|
|
790
|
+
id: string;
|
|
791
|
+
dismiss: () => void;
|
|
792
|
+
update: (props: ToasterToast) => void;
|
|
793
|
+
};
|
|
794
|
+
|
|
795
|
+
declare type Toast_2 = Omit<ToasterToast, "id">;
|
|
796
|
+
|
|
797
|
+
export declare const ToastAction: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
798
|
+
|
|
799
|
+
export declare type ToastActionElement = React_2.ReactElement<typeof ToastAction>;
|
|
800
|
+
|
|
801
|
+
export declare const ToastClose: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
802
|
+
|
|
803
|
+
export declare const ToastDescription: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
804
|
+
|
|
805
|
+
export declare const Toaster: ({ position, icon }: ToasterProps) => JSX_2.Element;
|
|
806
|
+
|
|
807
|
+
export declare interface ToasterProps {
|
|
808
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "center-top" | "center-bottom";
|
|
809
|
+
icon?: keyof typeof UltimateIcons | string;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
declare type ToasterToast = ToastProps & {
|
|
813
|
+
id: string;
|
|
814
|
+
title?: React_2.ReactNode;
|
|
815
|
+
description?: React_2.ReactNode;
|
|
816
|
+
action?: ToastActionElement;
|
|
817
|
+
};
|
|
818
|
+
|
|
819
|
+
export declare type ToastProps = React_2.ComponentPropsWithoutRef<typeof Toast>;
|
|
820
|
+
|
|
821
|
+
export declare const ToastProvider: React_2.FC<ToastPrimitives.ToastProviderProps>;
|
|
822
|
+
|
|
823
|
+
export declare const ToastTitle: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
824
|
+
|
|
825
|
+
export declare const ToastViewport: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React_2.RefAttributes<HTMLOListElement>, "ref"> & {
|
|
826
|
+
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "center-top" | "center-bottom";
|
|
827
|
+
} & React_2.RefAttributes<HTMLOListElement>>;
|
|
828
|
+
|
|
774
829
|
export declare const Toggle: React_2.ForwardRefExoticComponent<ToggleProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
775
830
|
|
|
776
831
|
export declare interface ToggleProps extends React_2.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>, VariantProps<typeof toggleVariants> {
|
|
@@ -795,7 +850,7 @@ declare const tooltipVariants: (props?: ({
|
|
|
795
850
|
defaultVariants?: "variant" | "beakPosition" | null | undefined;
|
|
796
851
|
} & ClassProp) | undefined) => string;
|
|
797
852
|
|
|
798
|
-
declare const UltimateIcons: any;
|
|
853
|
+
export declare const UltimateIcons: any;
|
|
799
854
|
|
|
800
855
|
export declare const useHoverAndLongPress: ({ delay, }: UseHoverAndLongPressProps) => {
|
|
801
856
|
onMouseEnter: () => void;
|
|
@@ -815,4 +870,10 @@ export declare function useSortableData(initialData: TableDataProps[], defaultSo
|
|
|
815
870
|
sortData: (keyName: string) => void;
|
|
816
871
|
};
|
|
817
872
|
|
|
873
|
+
export declare function useToast(): {
|
|
874
|
+
toast: typeof toast;
|
|
875
|
+
dismiss: (toastId?: string) => void;
|
|
876
|
+
toasts: ToasterToast[];
|
|
877
|
+
};
|
|
878
|
+
|
|
818
879
|
export { }
|