@fileverse/ui 5.1.6 → 5.1.8-dropdownmenu-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 CHANGED
@@ -622,7 +622,7 @@ video {
622
622
  --color-bg-brand-light: 57, 92%, 76%, 1; /* Yellow-100 */
623
623
  --color-bg-danger: 354, 84%, 42%, 1; /* Red-200 */
624
624
  --color-bg-danger-light: 356, 100%, 97%, 1; /* Red-50 */
625
- --color-bg-default-inverse: 0, 0%, 100%, 1; /* White */
625
+ --color-bg-default-inverse: 0, 0%, 0%, 1; /* White */
626
626
  --color-bg-tertiary: 0, 0%, 25%, 1; /* Gray-800 */
627
627
  --color-bg-success: 128, 59%, 20%, 1;
628
628
  --color-bg-success-light: 128, 59%, 20%, 1; /* Green-900 */
@@ -772,7 +772,7 @@ video {
772
772
  --color-bg-default-hover: 3, 88%, 26%, 0.08; /* #7C0E08 8% */
773
773
  --color-bg-default-active: 45, 100%, 65%, 1; /* #FFD24D */
774
774
  --color-bg-default-selected: 3, 88%, 26%, 0.06; /* #7C0E08 6% */
775
- --color-bg-secondary: 345, 100%, 92%, 1; /* #FFD6E0 */
775
+ --color-bg-secondary: 346, 100%, 92%, 1; /* #FFD6E0 */
776
776
  --color-bg-secondary-hover: 3, 88%, 26%, 0.12; /* #7C0E08 12% */
777
777
  --color-bg-disabled: 24, 16%, 21%, 0.04; /* #3E352D 4% */
778
778
  --color-bg-brand: 45, 100%, 65%, 1; /* #FFD24D */
@@ -780,7 +780,7 @@ video {
780
780
  --color-bg-brand-light: 45, 100%, 90%, 1; /* #FFF2CC */
781
781
  --color-bg-danger: 2, 79%, 56%, 1; /* #E73D36 */
782
782
  --color-bg-danger-light: 2, 79%, 56%, 0.14; /* #E73D36 14% */
783
- --color-bg-default-inverse: 28, 16%, 21%, 1; /* #3E352D */
783
+ --color-bg-default-inverse: 3, 88%, 26%, 1;
784
784
  --color-bg-tertiary: 3, 88%, 26%, 0.12; /* #7C0E08 12% */
785
785
  --color-bg-success: 139, 35%, 42%, 1; /* #46905E */
786
786
  --color-bg-success-light: 140, 34%, 88%, 1; /* #D6EBDD */
@@ -837,7 +837,7 @@ video {
837
837
  --color-button-floating-hover: 63, 15%, 74%, 0.06; /* #C6C7B3 6% */
838
838
 
839
839
  /* Text */
840
- --color-text-default: 62, 27%, 83%, 1; /* #DFE0C9 */
840
+ --color-text-default: 63, 27%, 83%, 1; /* #DFE0C9 */
841
841
  --color-text-secondary: 84, 5%, 56%, 1; /* #909688 */
842
842
  --color-text-disabled: 104, 7%, 42%, 1; /* #687364 */
843
843
  --color-text-danger: 2, 99%, 68%, 1; /* #FE625D */
@@ -1137,6 +1137,10 @@ video {
1137
1137
  background-color: hsl(var(--color-bg-success-light));
1138
1138
  }
1139
1139
 
1140
+ .color-bg-info-light {
1141
+ background-color: hsl(var(--color-bg-info-light));
1142
+ }
1143
+
1140
1144
  .color-bg-success {
1141
1145
  background-color: hsl(var(--color-bg-success));
1142
1146
  }
@@ -1231,6 +1235,18 @@ video {
1231
1235
  border-color: hsl(var(--color-border-focused));
1232
1236
  }
1233
1237
 
1238
+ .color-border-warning {
1239
+ border-color: hsl(var(--color-border-warning));
1240
+ }
1241
+
1242
+ .color-border-success {
1243
+ border-color: hsl(var(--color-border-success));
1244
+ }
1245
+
1246
+ .color-border-info {
1247
+ border-color: hsl(var(--color-border-info));
1248
+ }
1249
+
1234
1250
  .color-border-danger {
1235
1251
  border-color: hsl(var(--color-border-danger));
1236
1252
  }
@@ -1660,6 +1676,9 @@ video {
1660
1676
  .h-14 {
1661
1677
  height: 3.5rem;
1662
1678
  }
1679
+ .h-2 {
1680
+ height: 0.5rem;
1681
+ }
1663
1682
  .h-3 {
1664
1683
  height: 0.75rem;
1665
1684
  }
@@ -1824,6 +1843,9 @@ video {
1824
1843
  .w-16 {
1825
1844
  width: 4rem;
1826
1845
  }
1846
+ .w-2 {
1847
+ width: 0.5rem;
1848
+ }
1827
1849
  .w-20 {
1828
1850
  width: 5rem;
1829
1851
  }
@@ -1851,6 +1873,9 @@ video {
1851
1873
  .w-52 {
1852
1874
  width: 13rem;
1853
1875
  }
1876
+ .w-56 {
1877
+ width: 14rem;
1878
+ }
1854
1879
  .w-6 {
1855
1880
  width: 1.5rem;
1856
1881
  }
@@ -2555,6 +2580,9 @@ video {
2555
2580
  .bg-none {
2556
2581
  background-image: none;
2557
2582
  }
2583
+ .fill-current {
2584
+ fill: currentColor;
2585
+ }
2558
2586
  .stroke-\[hsl\(var\(--color-bg-default\)\)\] {
2559
2587
  stroke: hsl(var(--color-bg-default));
2560
2588
  }
@@ -2713,9 +2741,15 @@ video {
2713
2741
  .pl-6 {
2714
2742
  padding-left: 1.5rem;
2715
2743
  }
2744
+ .pl-8 {
2745
+ padding-left: 2rem;
2746
+ }
2716
2747
  .pr-10 {
2717
2748
  padding-right: 2.5rem;
2718
2749
  }
2750
+ .pr-2 {
2751
+ padding-right: 0.5rem;
2752
+ }
2719
2753
  .pr-3 {
2720
2754
  padding-right: 0.75rem;
2721
2755
  }
@@ -7,6 +7,7 @@ import { default as default_2 } from 'react';
7
7
  import * as DialogPrimitive from '@radix-ui/react-dialog';
8
8
  import { DialogProps } from '@radix-ui/react-dialog';
9
9
  import { Drawer as Drawer_2 } from 'vaul';
10
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
10
11
  import { EmojiClickData } from 'emoji-picker-react';
11
12
  import { default as EmojiPicker } from 'emoji-picker-react';
12
13
  import { EmojiStyle } from 'emoji-picker-react';
@@ -349,6 +350,47 @@ export declare const DrawerTitle: React_2.ForwardRefExoticComponent<Omit<DialogP
349
350
 
350
351
  export declare const DrawerTrigger: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
351
352
 
353
+ export declare const DropdownMenu: React_2.FC<DropdownMenuPrimitive.DropdownMenuProps>;
354
+
355
+ export declare const DropdownMenuArrow: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuArrowProps & React_2.RefAttributes<SVGSVGElement>>;
356
+
357
+ export declare const DropdownMenuCheckboxItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
358
+
359
+ export declare const DropdownMenuContent: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
360
+
361
+ export declare const DropdownMenuGroup: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React_2.RefAttributes<HTMLDivElement>>;
362
+
363
+ export declare const DropdownMenuItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
364
+ inset?: boolean;
365
+ } & React_2.RefAttributes<HTMLDivElement>>;
366
+
367
+ export declare const DropdownMenuLabel: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
368
+ inset?: boolean;
369
+ } & React_2.RefAttributes<HTMLDivElement>>;
370
+
371
+ export declare const DropdownMenuPortal: React_2.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
372
+
373
+ export declare const DropdownMenuRadioGroup: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
374
+
375
+ export declare const DropdownMenuRadioItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
376
+
377
+ export declare const DropdownMenuSeparator: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
378
+
379
+ export declare const DropdownMenuShortcut: {
380
+ ({ className, ...props }: React_2.HTMLAttributes<HTMLSpanElement>): JSX_2.Element;
381
+ displayName: string;
382
+ };
383
+
384
+ export declare const DropdownMenuSub: React_2.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
385
+
386
+ export declare const DropdownMenuSubContent: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
387
+
388
+ export declare const DropdownMenuSubTrigger: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
389
+ inset?: boolean;
390
+ } & React_2.RefAttributes<HTMLDivElement>>;
391
+
392
+ export declare const DropdownMenuTrigger: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
393
+
352
394
  export declare const DynamicAlert: ({ title, description, variant, icon, className, iconClassName, ...props }: DynamicAlertProps) => JSX_2.Element;
353
395
 
354
396
  export declare interface DynamicAlertProps {
@@ -1026,6 +1068,7 @@ export declare const Tooltip: React_2.ForwardRefExoticComponent<TooltipProps & R
1026
1068
  export declare interface TooltipProps extends React_2.HTMLAttributes<HTMLElement>, VariantProps<typeof tooltipVariants> {
1027
1069
  text: string | React_2.ReactNode;
1028
1070
  sideOffset?: number;
1071
+ asTriggerChild?: boolean;
1029
1072
  open?: boolean;
1030
1073
  }
1031
1074