@fileverse/ui 4.1.2 → 4.1.3-patch-1
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 +50 -10
- package/dist/index.es.d.ts +58 -2
- package/dist/index.es.js +10338 -9978
- package/package.json +2 -2
package/dist/index.css
CHANGED
|
@@ -1088,9 +1088,6 @@ video {
|
|
|
1088
1088
|
.right-5 {
|
|
1089
1089
|
right: 1.25rem;
|
|
1090
1090
|
}
|
|
1091
|
-
.right-6 {
|
|
1092
|
-
right: 1.5rem;
|
|
1093
|
-
}
|
|
1094
1091
|
.top-0 {
|
|
1095
1092
|
top: 0px;
|
|
1096
1093
|
}
|
|
@@ -1103,11 +1100,8 @@ video {
|
|
|
1103
1100
|
.top-3 {
|
|
1104
1101
|
top: 0.75rem;
|
|
1105
1102
|
}
|
|
1106
|
-
.top
|
|
1107
|
-
top:
|
|
1108
|
-
}
|
|
1109
|
-
.top-6 {
|
|
1110
|
-
top: 1.5rem;
|
|
1103
|
+
.top-\[14px\] {
|
|
1104
|
+
top: 14px;
|
|
1111
1105
|
}
|
|
1112
1106
|
.top-\[50\%\] {
|
|
1113
1107
|
top: 50%;
|
|
@@ -1164,6 +1158,9 @@ video {
|
|
|
1164
1158
|
.mb-2 {
|
|
1165
1159
|
margin-bottom: 0.5rem;
|
|
1166
1160
|
}
|
|
1161
|
+
.mb-4 {
|
|
1162
|
+
margin-bottom: 1rem;
|
|
1163
|
+
}
|
|
1167
1164
|
.ml-1 {
|
|
1168
1165
|
margin-left: 0.25rem;
|
|
1169
1166
|
}
|
|
@@ -1233,8 +1230,8 @@ video {
|
|
|
1233
1230
|
.aspect-video {
|
|
1234
1231
|
aspect-ratio: 16 / 9;
|
|
1235
1232
|
}
|
|
1236
|
-
.\!h-
|
|
1237
|
-
height:
|
|
1233
|
+
.\!h-6 {
|
|
1234
|
+
height: 1.5rem !important;
|
|
1238
1235
|
}
|
|
1239
1236
|
.\!h-\[4rem\] {
|
|
1240
1237
|
height: 4rem !important;
|
|
@@ -1471,6 +1468,9 @@ video {
|
|
|
1471
1468
|
.w-\[8px\] {
|
|
1472
1469
|
width: 8px;
|
|
1473
1470
|
}
|
|
1471
|
+
.w-\[calc\(100vw-24px\)\] {
|
|
1472
|
+
width: calc(100vw - 24px);
|
|
1473
|
+
}
|
|
1474
1474
|
.w-auto {
|
|
1475
1475
|
width: auto;
|
|
1476
1476
|
}
|
|
@@ -1517,6 +1517,9 @@ video {
|
|
|
1517
1517
|
.min-w-\[280px\] {
|
|
1518
1518
|
min-width: 280px;
|
|
1519
1519
|
}
|
|
1520
|
+
.min-w-\[300px\] {
|
|
1521
|
+
min-width: 300px;
|
|
1522
|
+
}
|
|
1520
1523
|
.min-w-\[30px\] {
|
|
1521
1524
|
min-width: 30px;
|
|
1522
1525
|
}
|
|
@@ -1551,6 +1554,9 @@ video {
|
|
|
1551
1554
|
.max-w-\[440px\] {
|
|
1552
1555
|
max-width: 440px;
|
|
1553
1556
|
}
|
|
1557
|
+
.max-w-\[500px\] {
|
|
1558
|
+
max-width: 500px;
|
|
1559
|
+
}
|
|
1554
1560
|
.max-w-\[70vw\] {
|
|
1555
1561
|
max-width: 70vw;
|
|
1556
1562
|
}
|
|
@@ -1588,6 +1594,9 @@ video {
|
|
|
1588
1594
|
.shrink-0 {
|
|
1589
1595
|
flex-shrink: 0;
|
|
1590
1596
|
}
|
|
1597
|
+
.flex-grow {
|
|
1598
|
+
flex-grow: 1;
|
|
1599
|
+
}
|
|
1591
1600
|
.grow {
|
|
1592
1601
|
flex-grow: 1;
|
|
1593
1602
|
}
|
|
@@ -1601,6 +1610,10 @@ video {
|
|
|
1601
1610
|
--tw-translate-x: -50%;
|
|
1602
1611
|
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));
|
|
1603
1612
|
}
|
|
1613
|
+
.-translate-y-2 {
|
|
1614
|
+
--tw-translate-y: -0.5rem;
|
|
1615
|
+
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));
|
|
1616
|
+
}
|
|
1604
1617
|
.translate-x-1\/2 {
|
|
1605
1618
|
--tw-translate-x: 50%;
|
|
1606
1619
|
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));
|
|
@@ -1782,6 +1795,11 @@ video {
|
|
|
1782
1795
|
margin-right: calc(1rem * var(--tw-space-x-reverse));
|
|
1783
1796
|
margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
|
|
1784
1797
|
}
|
|
1798
|
+
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
|
|
1799
|
+
--tw-space-y-reverse: 0;
|
|
1800
|
+
margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
|
|
1801
|
+
margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
|
|
1802
|
+
}
|
|
1785
1803
|
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) {
|
|
1786
1804
|
--tw-space-y-reverse: 0;
|
|
1787
1805
|
margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
|
|
@@ -1819,6 +1837,9 @@ video {
|
|
|
1819
1837
|
text-overflow: ellipsis;
|
|
1820
1838
|
white-space: nowrap;
|
|
1821
1839
|
}
|
|
1840
|
+
.text-ellipsis {
|
|
1841
|
+
text-overflow: ellipsis;
|
|
1842
|
+
}
|
|
1822
1843
|
.whitespace-nowrap {
|
|
1823
1844
|
white-space: nowrap;
|
|
1824
1845
|
}
|
|
@@ -1834,6 +1855,9 @@ video {
|
|
|
1834
1855
|
.rounded {
|
|
1835
1856
|
border-radius: 0.25rem;
|
|
1836
1857
|
}
|
|
1858
|
+
.rounded-\[16px\] {
|
|
1859
|
+
border-radius: 16px;
|
|
1860
|
+
}
|
|
1837
1861
|
.rounded-\[4px\] {
|
|
1838
1862
|
border-radius: 4px;
|
|
1839
1863
|
}
|
|
@@ -1987,6 +2011,10 @@ video {
|
|
|
1987
2011
|
.p-\[2px\] {
|
|
1988
2012
|
padding: 2px;
|
|
1989
2013
|
}
|
|
2014
|
+
.\!px-0 {
|
|
2015
|
+
padding-left: 0px !important;
|
|
2016
|
+
padding-right: 0px !important;
|
|
2017
|
+
}
|
|
1990
2018
|
.\!px-1 {
|
|
1991
2019
|
padding-left: 0.25rem !important;
|
|
1992
2020
|
padding-right: 0.25rem !important;
|
|
@@ -2158,6 +2186,10 @@ video {
|
|
|
2158
2186
|
--tw-text-opacity: 1;
|
|
2159
2187
|
color: rgb(239 68 68 / var(--tw-text-opacity));
|
|
2160
2188
|
}
|
|
2189
|
+
.text-white {
|
|
2190
|
+
--tw-text-opacity: 1;
|
|
2191
|
+
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
2192
|
+
}
|
|
2161
2193
|
.underline {
|
|
2162
2194
|
text-decoration-line: underline;
|
|
2163
2195
|
}
|
|
@@ -3112,6 +3144,10 @@ textarea:is(:-webkit-autofill, :autofill) {
|
|
|
3112
3144
|
display: block;
|
|
3113
3145
|
}
|
|
3114
3146
|
|
|
3147
|
+
.md\:w-\[384px\] {
|
|
3148
|
+
width: 384px;
|
|
3149
|
+
}
|
|
3150
|
+
|
|
3115
3151
|
.md\:w-\[60vw\] {
|
|
3116
3152
|
width: 60vw;
|
|
3117
3153
|
}
|
|
@@ -3155,6 +3191,10 @@ textarea:is(:-webkit-autofill, :autofill) {
|
|
|
3155
3191
|
|
|
3156
3192
|
@media (min-width: 1024px) {
|
|
3157
3193
|
|
|
3194
|
+
.lg\:\!mt-0 {
|
|
3195
|
+
margin-top: 0px !important;
|
|
3196
|
+
}
|
|
3197
|
+
|
|
3158
3198
|
.lg\:mb-1 {
|
|
3159
3199
|
margin-bottom: 0.25rem;
|
|
3160
3200
|
}
|
package/dist/index.es.d.ts
CHANGED
|
@@ -7,12 +7,15 @@ import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
|
7
7
|
import { DialogProps } from '@radix-ui/react-dialog';
|
|
8
8
|
import { Drawer as Drawer_2 } from 'vaul';
|
|
9
9
|
import { EmojiClickData } from 'emoji-picker-react';
|
|
10
|
+
import { default as EmojiPicker } from 'emoji-picker-react';
|
|
11
|
+
import { EmojiStyle } from 'emoji-picker-react';
|
|
10
12
|
import { ForwardRefExoticComponent } from 'react';
|
|
11
13
|
import { GridProps as GridProps_2 } from '@radix-ui/themes';
|
|
12
14
|
import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
13
15
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
14
16
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
15
17
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
18
|
+
import { Portal } from 'vaul';
|
|
16
19
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
17
20
|
import * as React_2 from 'react';
|
|
18
21
|
import { ReactNode } from 'react';
|
|
@@ -306,6 +309,7 @@ export declare const DrawerContent: React_2.ForwardRefExoticComponent<DrawerCont
|
|
|
306
309
|
declare interface DrawerContentProps extends React_2.ComponentPropsWithoutRef<typeof Drawer_2.Content> {
|
|
307
310
|
hasCloseIcon?: boolean;
|
|
308
311
|
overlayClasses?: string;
|
|
312
|
+
onClose?: (open: boolean) => void;
|
|
309
313
|
}
|
|
310
314
|
|
|
311
315
|
export declare const DrawerDescription: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React_2.RefAttributes<HTMLParagraphElement>, "ref"> & React_2.RefAttributes<HTMLParagraphElement>>;
|
|
@@ -322,7 +326,7 @@ export declare const DrawerHeader: {
|
|
|
322
326
|
|
|
323
327
|
export declare const DrawerOverlay: React_2.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogOverlayProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
324
328
|
|
|
325
|
-
export declare const DrawerPortal:
|
|
329
|
+
export declare const DrawerPortal: Portal;
|
|
326
330
|
|
|
327
331
|
export declare const DrawerTitle: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React_2.RefAttributes<HTMLHeadingElement>, "ref"> & React_2.RefAttributes<HTMLHeadingElement>>;
|
|
328
332
|
|
|
@@ -367,6 +371,21 @@ export declare interface DynamicDrawerProps {
|
|
|
367
371
|
dismissible?: boolean;
|
|
368
372
|
}
|
|
369
373
|
|
|
374
|
+
export declare const DynamicDrawerV2: ({ title, open, onOpenChange, content, className, headerClassName, contentClassName, side, rounded, dismissible, }: DynamicDrawerV2Props) => JSX_2.Element;
|
|
375
|
+
|
|
376
|
+
export declare interface DynamicDrawerV2Props {
|
|
377
|
+
title?: string;
|
|
378
|
+
open?: boolean;
|
|
379
|
+
onOpenChange?: (open: boolean) => void;
|
|
380
|
+
content?: default_2.ReactNode;
|
|
381
|
+
className?: string;
|
|
382
|
+
headerClassName?: string;
|
|
383
|
+
contentClassName?: string;
|
|
384
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
385
|
+
rounded?: boolean;
|
|
386
|
+
dismissible?: boolean;
|
|
387
|
+
}
|
|
388
|
+
|
|
370
389
|
export declare const DynamicDropdown: ({ content, anchorTrigger, ...props }: DynamicDropdownProps) => JSX_2.Element;
|
|
371
390
|
|
|
372
391
|
export declare interface DynamicDropdownProps {
|
|
@@ -383,7 +402,7 @@ export declare const DynamicModal: ({ open, onOpenChange, title, description, co
|
|
|
383
402
|
export declare interface DynamicModalProps {
|
|
384
403
|
open: boolean;
|
|
385
404
|
onOpenChange: (open: boolean) => void;
|
|
386
|
-
title
|
|
405
|
+
title?: string | default_2.ReactNode;
|
|
387
406
|
description?: string;
|
|
388
407
|
content?: default_2.ReactNode;
|
|
389
408
|
primaryAction?: {
|
|
@@ -438,6 +457,10 @@ export declare interface DynamicSelectProps {
|
|
|
438
457
|
|
|
439
458
|
export { EmojiClickData }
|
|
440
459
|
|
|
460
|
+
export { EmojiPicker }
|
|
461
|
+
|
|
462
|
+
export { EmojiStyle }
|
|
463
|
+
|
|
441
464
|
export declare type FileType = "dDoc" | "dPage" | "whiteboard" | "note" | "link" | "media";
|
|
442
465
|
|
|
443
466
|
export declare const FloatingToolbar: default_2.ForwardRefExoticComponent<FloatingToolbarProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -530,6 +553,8 @@ declare const iconVariants_2: (props?: ({
|
|
|
530
553
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
531
554
|
} & ClassProp) | undefined) => string;
|
|
532
555
|
|
|
556
|
+
export declare const isDarkColor: (color: string) => boolean;
|
|
557
|
+
|
|
533
558
|
export declare const Label: React_2.ForwardRefExoticComponent<LabelProps & React_2.RefAttributes<HTMLLabelElement>>;
|
|
534
559
|
|
|
535
560
|
export declare interface LabelProps extends React_2.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>, VariantProps<typeof labelVariants> {
|
|
@@ -559,6 +584,7 @@ export declare const PopoverContent: React_2.ForwardRefExoticComponent<PopoverCo
|
|
|
559
584
|
|
|
560
585
|
export declare interface PopoverContentProps extends React_2.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> {
|
|
561
586
|
elevation?: number;
|
|
587
|
+
container?: HTMLDivElement | null;
|
|
562
588
|
}
|
|
563
589
|
|
|
564
590
|
export declare const PopoverTrigger: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
@@ -741,6 +767,7 @@ export declare interface TagProps extends React_2.HTMLAttributes<HTMLDivElement>
|
|
|
741
767
|
isRemovable?: boolean;
|
|
742
768
|
onRemove?: (event?: React_2.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
743
769
|
icon?: any;
|
|
770
|
+
color?: string;
|
|
744
771
|
}
|
|
745
772
|
|
|
746
773
|
export declare interface TagType {
|
|
@@ -769,6 +796,35 @@ export declare interface TextAreaFieldProps extends React_2.TextareaHTMLAttribut
|
|
|
769
796
|
isValid?: boolean;
|
|
770
797
|
}
|
|
771
798
|
|
|
799
|
+
export declare const TextAreaFieldV2: React_2.ForwardRefExoticComponent<TextAreaFieldV2Props & React_2.RefAttributes<HTMLTextAreaElement>>;
|
|
800
|
+
|
|
801
|
+
export declare interface TextAreaFieldV2Props extends React_2.InputHTMLAttributes<HTMLTextAreaElement> {
|
|
802
|
+
/**
|
|
803
|
+
* The label for the text field.
|
|
804
|
+
*/
|
|
805
|
+
label?: string;
|
|
806
|
+
/**
|
|
807
|
+
* The left icon for the text field.
|
|
808
|
+
*/
|
|
809
|
+
leftIcon?: React_2.ReactNode;
|
|
810
|
+
/**
|
|
811
|
+
* The right icon for the text field.
|
|
812
|
+
*/
|
|
813
|
+
rightIcon?: React_2.ReactNode;
|
|
814
|
+
/**
|
|
815
|
+
* Whether the text field is valid.
|
|
816
|
+
*/
|
|
817
|
+
isValid?: boolean;
|
|
818
|
+
/**
|
|
819
|
+
* The helper text for the text field.
|
|
820
|
+
*/
|
|
821
|
+
message?: string;
|
|
822
|
+
/**
|
|
823
|
+
* Event handler for the onChange event.
|
|
824
|
+
*/
|
|
825
|
+
onChange?: (e: React_2.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
826
|
+
}
|
|
827
|
+
|
|
772
828
|
export declare const TextField: React_2.ForwardRefExoticComponent<TextFieldProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
773
829
|
|
|
774
830
|
export declare interface TextFieldProps extends React_2.InputHTMLAttributes<HTMLInputElement> {
|