@fileverse/ui 4.1.2 → 4.1.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
@@ -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-5 {
1107
- top: 1.25rem;
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-8 {
1237
- height: 2rem !important;
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
  }
@@ -13,6 +13,7 @@ import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
13
13
  import { JSX as JSX_2 } from 'react/jsx-runtime';
14
14
  import * as LabelPrimitive from '@radix-ui/react-label';
15
15
  import * as PopoverPrimitive from '@radix-ui/react-popover';
16
+ import { Portal } from 'vaul';
16
17
  import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
17
18
  import * as React_2 from 'react';
18
19
  import { ReactNode } from 'react';
@@ -306,6 +307,7 @@ export declare const DrawerContent: React_2.ForwardRefExoticComponent<DrawerCont
306
307
  declare interface DrawerContentProps extends React_2.ComponentPropsWithoutRef<typeof Drawer_2.Content> {
307
308
  hasCloseIcon?: boolean;
308
309
  overlayClasses?: string;
310
+ onClose?: (open: boolean) => void;
309
311
  }
310
312
 
311
313
  export declare const DrawerDescription: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React_2.RefAttributes<HTMLParagraphElement>, "ref"> & React_2.RefAttributes<HTMLParagraphElement>>;
@@ -322,7 +324,7 @@ export declare const DrawerHeader: {
322
324
 
323
325
  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
326
 
325
- export declare const DrawerPortal: React_2.FC<DialogPrimitive.DialogPortalProps>;
327
+ export declare const DrawerPortal: Portal;
326
328
 
327
329
  export declare const DrawerTitle: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React_2.RefAttributes<HTMLHeadingElement>, "ref"> & React_2.RefAttributes<HTMLHeadingElement>>;
328
330
 
@@ -367,6 +369,21 @@ export declare interface DynamicDrawerProps {
367
369
  dismissible?: boolean;
368
370
  }
369
371
 
372
+ export declare const DynamicDrawerV2: ({ title, open, onOpenChange, content, className, headerClassName, contentClassName, side, rounded, dismissible, }: DynamicDrawerV2Props) => JSX_2.Element;
373
+
374
+ export declare interface DynamicDrawerV2Props {
375
+ title?: string;
376
+ open?: boolean;
377
+ onOpenChange?: (open: boolean) => void;
378
+ content?: default_2.ReactNode;
379
+ className?: string;
380
+ headerClassName?: string;
381
+ contentClassName?: string;
382
+ side?: "top" | "right" | "bottom" | "left";
383
+ rounded?: boolean;
384
+ dismissible?: boolean;
385
+ }
386
+
370
387
  export declare const DynamicDropdown: ({ content, anchorTrigger, ...props }: DynamicDropdownProps) => JSX_2.Element;
371
388
 
372
389
  export declare interface DynamicDropdownProps {
@@ -383,7 +400,7 @@ export declare const DynamicModal: ({ open, onOpenChange, title, description, co
383
400
  export declare interface DynamicModalProps {
384
401
  open: boolean;
385
402
  onOpenChange: (open: boolean) => void;
386
- title: string | default_2.ReactNode;
403
+ title?: string | default_2.ReactNode;
387
404
  description?: string;
388
405
  content?: default_2.ReactNode;
389
406
  primaryAction?: {
@@ -530,6 +547,8 @@ declare const iconVariants_2: (props?: ({
530
547
  size?: "sm" | "md" | "lg" | null | undefined;
531
548
  } & ClassProp) | undefined) => string;
532
549
 
550
+ export declare const isDarkColor: (color: string) => boolean;
551
+
533
552
  export declare const Label: React_2.ForwardRefExoticComponent<LabelProps & React_2.RefAttributes<HTMLLabelElement>>;
534
553
 
535
554
  export declare interface LabelProps extends React_2.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>, VariantProps<typeof labelVariants> {
@@ -559,6 +578,7 @@ export declare const PopoverContent: React_2.ForwardRefExoticComponent<PopoverCo
559
578
 
560
579
  export declare interface PopoverContentProps extends React_2.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> {
561
580
  elevation?: number;
581
+ container?: HTMLDivElement | null;
562
582
  }
563
583
 
564
584
  export declare const PopoverTrigger: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
@@ -741,6 +761,7 @@ export declare interface TagProps extends React_2.HTMLAttributes<HTMLDivElement>
741
761
  isRemovable?: boolean;
742
762
  onRemove?: (event?: React_2.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
743
763
  icon?: any;
764
+ color?: string;
744
765
  }
745
766
 
746
767
  export declare interface TagType {
@@ -769,6 +790,35 @@ export declare interface TextAreaFieldProps extends React_2.TextareaHTMLAttribut
769
790
  isValid?: boolean;
770
791
  }
771
792
 
793
+ export declare const TextAreaFieldV2: React_2.ForwardRefExoticComponent<TextAreaFieldV2Props & React_2.RefAttributes<HTMLTextAreaElement>>;
794
+
795
+ export declare interface TextAreaFieldV2Props extends React_2.InputHTMLAttributes<HTMLTextAreaElement> {
796
+ /**
797
+ * The label for the text field.
798
+ */
799
+ label?: string;
800
+ /**
801
+ * The left icon for the text field.
802
+ */
803
+ leftIcon?: React_2.ReactNode;
804
+ /**
805
+ * The right icon for the text field.
806
+ */
807
+ rightIcon?: React_2.ReactNode;
808
+ /**
809
+ * Whether the text field is valid.
810
+ */
811
+ isValid?: boolean;
812
+ /**
813
+ * The helper text for the text field.
814
+ */
815
+ message?: string;
816
+ /**
817
+ * Event handler for the onChange event.
818
+ */
819
+ onChange?: (e: React_2.ChangeEvent<HTMLTextAreaElement>) => void;
820
+ }
821
+
772
822
  export declare const TextField: React_2.ForwardRefExoticComponent<TextFieldProps & React_2.RefAttributes<HTMLInputElement>>;
773
823
 
774
824
  export declare interface TextFieldProps extends React_2.InputHTMLAttributes<HTMLInputElement> {