@fileverse/ui 4.0.7 → 4.0.9
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 +128 -8
- package/dist/index.es.d.ts +28 -0
- package/dist/index.es.js +30537 -10726
- package/package.json +2 -1
package/dist/index.css
CHANGED
|
@@ -1127,6 +1127,10 @@ video {
|
|
|
1127
1127
|
margin-top: 0.25rem;
|
|
1128
1128
|
margin-bottom: 0.25rem;
|
|
1129
1129
|
}
|
|
1130
|
+
.my-4 {
|
|
1131
|
+
margin-top: 1rem;
|
|
1132
|
+
margin-bottom: 1rem;
|
|
1133
|
+
}
|
|
1130
1134
|
.my-auto {
|
|
1131
1135
|
margin-top: auto;
|
|
1132
1136
|
margin-bottom: auto;
|
|
@@ -1260,6 +1264,9 @@ video {
|
|
|
1260
1264
|
.h-\[38px\] {
|
|
1261
1265
|
height: 38px;
|
|
1262
1266
|
}
|
|
1267
|
+
.h-\[400px\] {
|
|
1268
|
+
height: 400px;
|
|
1269
|
+
}
|
|
1263
1270
|
.h-\[440px\] {
|
|
1264
1271
|
height: 440px;
|
|
1265
1272
|
}
|
|
@@ -1541,6 +1548,10 @@ video {
|
|
|
1541
1548
|
--tw-translate-y: 25%;
|
|
1542
1549
|
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));
|
|
1543
1550
|
}
|
|
1551
|
+
.translate-y-12 {
|
|
1552
|
+
--tw-translate-y: 3rem;
|
|
1553
|
+
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));
|
|
1554
|
+
}
|
|
1544
1555
|
.translate-y-\[-50\%\] {
|
|
1545
1556
|
--tw-translate-y: -50%;
|
|
1546
1557
|
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));
|
|
@@ -1629,6 +1640,9 @@ video {
|
|
|
1629
1640
|
.justify-between {
|
|
1630
1641
|
justify-content: space-between;
|
|
1631
1642
|
}
|
|
1643
|
+
.\!gap-1 {
|
|
1644
|
+
gap: 0.25rem !important;
|
|
1645
|
+
}
|
|
1632
1646
|
.gap-1 {
|
|
1633
1647
|
gap: 0.25rem;
|
|
1634
1648
|
}
|
|
@@ -1653,6 +1667,21 @@ video {
|
|
|
1653
1667
|
.gap-8 {
|
|
1654
1668
|
gap: 2rem;
|
|
1655
1669
|
}
|
|
1670
|
+
.-space-x-1 > :not([hidden]) ~ :not([hidden]) {
|
|
1671
|
+
--tw-space-x-reverse: 0;
|
|
1672
|
+
margin-right: calc(-0.25rem * var(--tw-space-x-reverse));
|
|
1673
|
+
margin-left: calc(-0.25rem * calc(1 - var(--tw-space-x-reverse)));
|
|
1674
|
+
}
|
|
1675
|
+
.-space-x-2 > :not([hidden]) ~ :not([hidden]) {
|
|
1676
|
+
--tw-space-x-reverse: 0;
|
|
1677
|
+
margin-right: calc(-0.5rem * var(--tw-space-x-reverse));
|
|
1678
|
+
margin-left: calc(-0.5rem * calc(1 - var(--tw-space-x-reverse)));
|
|
1679
|
+
}
|
|
1680
|
+
.-space-x-4 > :not([hidden]) ~ :not([hidden]) {
|
|
1681
|
+
--tw-space-x-reverse: 0;
|
|
1682
|
+
margin-right: calc(-1rem * var(--tw-space-x-reverse));
|
|
1683
|
+
margin-left: calc(-1rem * calc(1 - var(--tw-space-x-reverse)));
|
|
1684
|
+
}
|
|
1656
1685
|
.space-x-0 > :not([hidden]) ~ :not([hidden]) {
|
|
1657
1686
|
--tw-space-x-reverse: 0;
|
|
1658
1687
|
margin-right: calc(0px * var(--tw-space-x-reverse));
|
|
@@ -1678,6 +1707,11 @@ video {
|
|
|
1678
1707
|
margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
|
|
1679
1708
|
margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
|
|
1680
1709
|
}
|
|
1710
|
+
.space-y-3 > :not([hidden]) ~ :not([hidden]) {
|
|
1711
|
+
--tw-space-y-reverse: 0;
|
|
1712
|
+
margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
|
|
1713
|
+
margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
|
|
1714
|
+
}
|
|
1681
1715
|
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
|
|
1682
1716
|
--tw-space-y-reverse: 0;
|
|
1683
1717
|
margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
|
|
@@ -1709,6 +1743,9 @@ video {
|
|
|
1709
1743
|
.\!rounded {
|
|
1710
1744
|
border-radius: 0.25rem !important;
|
|
1711
1745
|
}
|
|
1746
|
+
.\!rounded-none {
|
|
1747
|
+
border-radius: 0px !important;
|
|
1748
|
+
}
|
|
1712
1749
|
.rounded {
|
|
1713
1750
|
border-radius: 0.25rem;
|
|
1714
1751
|
}
|
|
@@ -1786,6 +1823,9 @@ video {
|
|
|
1786
1823
|
.border-dashed {
|
|
1787
1824
|
border-style: dashed;
|
|
1788
1825
|
}
|
|
1826
|
+
.\!border-none {
|
|
1827
|
+
border-style: none !important;
|
|
1828
|
+
}
|
|
1789
1829
|
.border-none {
|
|
1790
1830
|
border-style: none;
|
|
1791
1831
|
}
|
|
@@ -1799,16 +1839,16 @@ video {
|
|
|
1799
1839
|
.\!bg-transparent {
|
|
1800
1840
|
background-color: transparent !important;
|
|
1801
1841
|
}
|
|
1802
|
-
.bg-gray-300 {
|
|
1803
|
-
--tw-bg-opacity: 1;
|
|
1804
|
-
background-color: rgb(209 213 219 / var(--tw-bg-opacity));
|
|
1805
|
-
}
|
|
1806
1842
|
.bg-inherit {
|
|
1807
1843
|
background-color: inherit;
|
|
1808
1844
|
}
|
|
1809
1845
|
.bg-transparent {
|
|
1810
1846
|
background-color: transparent;
|
|
1811
1847
|
}
|
|
1848
|
+
.bg-white {
|
|
1849
|
+
--tw-bg-opacity: 1;
|
|
1850
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
1851
|
+
}
|
|
1812
1852
|
.bg-opacity-50 {
|
|
1813
1853
|
--tw-bg-opacity: 0.5;
|
|
1814
1854
|
}
|
|
@@ -1922,6 +1962,9 @@ video {
|
|
|
1922
1962
|
.pb-2 {
|
|
1923
1963
|
padding-bottom: 0.5rem;
|
|
1924
1964
|
}
|
|
1965
|
+
.pb-4 {
|
|
1966
|
+
padding-bottom: 1rem;
|
|
1967
|
+
}
|
|
1925
1968
|
.pb-5 {
|
|
1926
1969
|
padding-bottom: 1.25rem;
|
|
1927
1970
|
}
|
|
@@ -2004,10 +2047,6 @@ video {
|
|
|
2004
2047
|
.tracking-widest {
|
|
2005
2048
|
letter-spacing: 0.1em;
|
|
2006
2049
|
}
|
|
2007
|
-
.text-gray-500 {
|
|
2008
|
-
--tw-text-opacity: 1;
|
|
2009
|
-
color: rgb(107 114 128 / var(--tw-text-opacity));
|
|
2010
|
-
}
|
|
2011
2050
|
.text-red-500 {
|
|
2012
2051
|
--tw-text-opacity: 1;
|
|
2013
2052
|
color: rgb(239 68 68 / var(--tw-text-opacity));
|
|
@@ -2152,6 +2191,74 @@ textarea:is(:-webkit-autofill, :autofill) {
|
|
|
2152
2191
|
color 0s 600000s !important;
|
|
2153
2192
|
}
|
|
2154
2193
|
|
|
2194
|
+
.epr-emoji-category-label {
|
|
2195
|
+
font-family: system-ui !important;
|
|
2196
|
+
font-size: 14px !important;
|
|
2197
|
+
font-style: normal !important;
|
|
2198
|
+
font-weight: 500 !important;
|
|
2199
|
+
line-height: 20px !important;
|
|
2200
|
+
}
|
|
2201
|
+
|
|
2202
|
+
.epr-search-container > input {
|
|
2203
|
+
display: flex;
|
|
2204
|
+
height: 2.25rem; /* h-9 */
|
|
2205
|
+
width: 100%; /* w-full */
|
|
2206
|
+
border-radius: 4px; /* rounded-md */
|
|
2207
|
+
border: 1px solid hsl(214.3, 31.8%, 91.4%); /* border border-input */
|
|
2208
|
+
background-color: transparent !important; /* bg-transparent */
|
|
2209
|
+
font-size: 14px; /* text-sm */
|
|
2210
|
+
transition: colors 0.15s ease-in-out;
|
|
2211
|
+
color: #000;
|
|
2212
|
+
font-family: system-ui, "Roboto";
|
|
2213
|
+
}
|
|
2214
|
+
|
|
2215
|
+
/* For hover state */
|
|
2216
|
+
.epr-search-container > input:hover {
|
|
2217
|
+
border-color: #000; /* hover:border-border-hover */
|
|
2218
|
+
}
|
|
2219
|
+
|
|
2220
|
+
/* For focus-visible state */
|
|
2221
|
+
.epr-search-container > input:focus-visible {
|
|
2222
|
+
outline: none; /* focus-visible:outline-none */
|
|
2223
|
+
border-color: #000; /* focus-visible:border-border-hover */
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2226
|
+
/* For placeholder text */
|
|
2227
|
+
.epr-search-container > input::-moz-placeholder {
|
|
2228
|
+
color: hsl(var(--color-text-disabled));
|
|
2229
|
+
font-family: system-ui, "Roboto";
|
|
2230
|
+
font-size: 14px;
|
|
2231
|
+
}
|
|
2232
|
+
.epr-search-container > input::placeholder {
|
|
2233
|
+
color: hsl(var(--color-text-disabled));
|
|
2234
|
+
font-family: system-ui, "Roboto";
|
|
2235
|
+
font-size: 14px;
|
|
2236
|
+
}
|
|
2237
|
+
|
|
2238
|
+
.epr_-bbny0t > button {
|
|
2239
|
+
border-radius: 50% !important;
|
|
2240
|
+
}
|
|
2241
|
+
|
|
2242
|
+
.epr_-6kfaby.epr-active {
|
|
2243
|
+
background-color: #ffdf0a !important;
|
|
2244
|
+
color: #000 !important;
|
|
2245
|
+
border-radius: 4px !important;
|
|
2246
|
+
border: none !important;
|
|
2247
|
+
}
|
|
2248
|
+
|
|
2249
|
+
.epr_-f1jbax:focus:before {
|
|
2250
|
+
border: none !important;
|
|
2251
|
+
border-radius: 4px !important;
|
|
2252
|
+
}
|
|
2253
|
+
|
|
2254
|
+
.epr_-8ygbw8 {
|
|
2255
|
+
padding: 0.5rem 1rem !important;
|
|
2256
|
+
}
|
|
2257
|
+
|
|
2258
|
+
.epr-body {
|
|
2259
|
+
margin: 0 0.5rem !important;
|
|
2260
|
+
}
|
|
2261
|
+
|
|
2155
2262
|
.file\:text-body-sm::file-selector-button {
|
|
2156
2263
|
font-family: system-ui;
|
|
2157
2264
|
font-size: 14px;
|
|
@@ -2580,6 +2687,10 @@ textarea:is(:-webkit-autofill, :autofill) {
|
|
|
2580
2687
|
border-bottom-width: 2px;
|
|
2581
2688
|
}
|
|
2582
2689
|
|
|
2690
|
+
.data-\[state\=inactive\]\:border-transparent[data-state=inactive] {
|
|
2691
|
+
border-color: transparent;
|
|
2692
|
+
}
|
|
2693
|
+
|
|
2583
2694
|
.data-\[state\=active\]\:bg-none[data-state=active] {
|
|
2584
2695
|
background-image: none;
|
|
2585
2696
|
}
|
|
@@ -2807,6 +2918,10 @@ textarea:is(:-webkit-autofill, :autofill) {
|
|
|
2807
2918
|
width: 452px;
|
|
2808
2919
|
}
|
|
2809
2920
|
|
|
2921
|
+
.lg\:w-auto {
|
|
2922
|
+
width: auto;
|
|
2923
|
+
}
|
|
2924
|
+
|
|
2810
2925
|
.lg\:w-fit {
|
|
2811
2926
|
width: -moz-fit-content;
|
|
2812
2927
|
width: fit-content;
|
|
@@ -2820,6 +2935,11 @@ textarea:is(:-webkit-autofill, :autofill) {
|
|
|
2820
2935
|
min-width: 420px;
|
|
2821
2936
|
}
|
|
2822
2937
|
|
|
2938
|
+
.lg\:\!max-w-fit {
|
|
2939
|
+
max-width: -moz-fit-content !important;
|
|
2940
|
+
max-width: fit-content !important;
|
|
2941
|
+
}
|
|
2942
|
+
|
|
2823
2943
|
.lg\:text-wrap {
|
|
2824
2944
|
text-wrap: wrap;
|
|
2825
2945
|
}
|
package/dist/index.es.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { ClassValue } from 'clsx';
|
|
|
4
4
|
import { default as default_2 } from 'react';
|
|
5
5
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
6
6
|
import { Drawer as Drawer_2 } from 'vaul';
|
|
7
|
+
import { EmojiClickData } from 'emoji-picker-react';
|
|
7
8
|
import { ForwardRefExoticComponent } from 'react';
|
|
8
9
|
import { GridProps as GridProps_2 } from '@radix-ui/themes';
|
|
9
10
|
import { icons } from 'lucide-react';
|
|
@@ -50,9 +51,30 @@ export declare const AnimatedLoader: ({ text }: {
|
|
|
50
51
|
|
|
51
52
|
export declare const Avatar: default_2.ForwardRefExoticComponent<AvatarProps & default_2.RefAttributes<HTMLImageElement>>;
|
|
52
53
|
|
|
54
|
+
export declare const AvatarGroup: default_2.ForwardRefExoticComponent<AvatarGroupProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
55
|
+
|
|
56
|
+
export declare interface AvatarGroupProps {
|
|
57
|
+
avatars: Array<AvatarProps>;
|
|
58
|
+
size?: AvatarProps["size"];
|
|
59
|
+
variant?: AvatarProps["variant"];
|
|
60
|
+
bordered?: AvatarProps["bordered"];
|
|
61
|
+
className?: string;
|
|
62
|
+
content?: "image" | "text";
|
|
63
|
+
showCounter?: boolean;
|
|
64
|
+
}
|
|
65
|
+
|
|
53
66
|
export declare interface AvatarProps extends Omit<default_2.ImgHTMLAttributes<HTMLImageElement>, "content">, VariantProps<typeof avatarVariants> {
|
|
54
67
|
}
|
|
55
68
|
|
|
69
|
+
export declare const AvatarSelector: default_2.ForwardRefExoticComponent<AvatarSelectorProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
70
|
+
|
|
71
|
+
export declare interface AvatarSelectorProps {
|
|
72
|
+
handleEmojiClick: (emoji: EmojiClickData) => void;
|
|
73
|
+
handleAvatarInput: (e: default_2.ChangeEvent<HTMLInputElement>) => void;
|
|
74
|
+
onRemove?: () => void;
|
|
75
|
+
className?: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
56
78
|
declare const avatarVariants: (props?: ({
|
|
57
79
|
variant?: "rounded" | "square" | null | undefined;
|
|
58
80
|
size?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | null | undefined;
|
|
@@ -243,6 +265,10 @@ export declare const DynamicDropdown: ({ content, anchorTrigger, ...props }: Dyn
|
|
|
243
265
|
export declare interface DynamicDropdownProps {
|
|
244
266
|
content: default_2.ReactNode;
|
|
245
267
|
anchorTrigger?: default_2.ReactNode;
|
|
268
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
269
|
+
align?: "start" | "center" | "end";
|
|
270
|
+
sideOffset?: number;
|
|
271
|
+
alignOffset?: number;
|
|
246
272
|
}
|
|
247
273
|
|
|
248
274
|
export declare const DynamicModal: ({ open, onOpenChange, title, description, content, primaryAction, secondaryAction, className, contentClassName, disableOutsideClick, hasCloseIcon, }: DynamicModalProps) => JSX_2.Element;
|
|
@@ -301,6 +327,8 @@ export declare interface DynamicSelectProps {
|
|
|
301
327
|
alignOffset?: number;
|
|
302
328
|
}
|
|
303
329
|
|
|
330
|
+
export { EmojiClickData }
|
|
331
|
+
|
|
304
332
|
export declare type FileType = "dDoc" | "dPage" | "whiteboard" | "note" | "link" | "media";
|
|
305
333
|
|
|
306
334
|
export declare const FloatingToolbar: default_2.ForwardRefExoticComponent<FloatingToolbarProps & default_2.RefAttributes<HTMLDivElement>>;
|