@fileverse/ui 5.1.9 → 5.1.10-menubar-2

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
@@ -2019,6 +2019,9 @@ video {
2019
2019
  .min-w-\[129px\] {
2020
2020
  min-width: 129px;
2021
2021
  }
2022
+ .min-w-\[12rem\] {
2023
+ min-width: 12rem;
2024
+ }
2022
2025
  .min-w-\[145px\] {
2023
2026
  min-width: 145px;
2024
2027
  }
@@ -3837,6 +3840,12 @@ textarea:is(:-webkit-autofill, :autofill) {
3837
3840
  .data-\[highlighted\]\:hover\:\!outline-transparent:hover[data-highlighted] {
3838
3841
  outline-color: transparent !important;
3839
3842
  }
3843
+ .data-\[highlighted\]\:focus-visible\:outline:focus-visible[data-highlighted] {
3844
+ outline-style: solid;
3845
+ }
3846
+ .data-\[highlighted\]\:focus-visible\:outline-2:focus-visible[data-highlighted] {
3847
+ outline-width: 2px;
3848
+ }
3840
3849
  .data-\[highlighted\]\:focus-visible\:outline-\[hsl\(var\(--color-border-focused\)\)\]:focus-visible[data-highlighted] {
3841
3850
  outline-color: hsl(var(--color-border-focused));
3842
3851
  }
@@ -17,12 +17,14 @@ import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
17
17
  import { InputHTMLAttributes } from 'react';
18
18
  import { JSX as JSX_2 } from 'react/jsx-runtime';
19
19
  import * as LabelPrimitive from '@radix-ui/react-label';
20
+ import * as MenubarPrimitive from '@radix-ui/react-menubar';
20
21
  import * as PopoverPrimitive from '@radix-ui/react-popover';
21
22
  import { Portal } from 'vaul';
22
23
  import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
23
24
  import * as React_2 from 'react';
24
25
  import { ReactNode } from 'react';
25
26
  import { RefAttributes } from 'react';
27
+ import { Scope } from '@radix-ui/react-context';
26
28
  import * as SelectPrimitive from '@radix-ui/react-select';
27
29
  import { SetStateAction } from 'react';
28
30
  import * as SwitchPrimitives from '@radix-ui/react-switch';
@@ -359,15 +361,9 @@ export declare const DrawerTrigger: React_2.ForwardRefExoticComponent<DialogPrim
359
361
  * forwards its `ref` and spreads props onto the underlying Radix primitive, so
360
362
  * any Radix prop works without extra wiring.
361
363
  *
362
- * Parts: {@link DropdownMenuTrigger}, {@link DropdownMenuContent},
363
- * {@link DropdownMenuItem}, {@link DropdownMenuCheckboxItem},
364
- * {@link DropdownMenuRadioGroup}/{@link DropdownMenuRadioItem},
365
- * {@link DropdownMenuLabel}, {@link DropdownMenuSeparator},
366
- * {@link DropdownMenuShortcut}, {@link DropdownMenuGroup},
367
- * {@link DropdownMenuSub}/{@link DropdownMenuSubTrigger}/{@link DropdownMenuSubContent},
368
- * {@link DropdownMenuPortal}, {@link DropdownMenuArrow}.
364
+ * @example
369
365
  *
370
- * @example Basic menu
366
+ * Basic menu
371
367
  * ```tsx
372
368
  * <DropdownMenu>
373
369
  * <DropdownMenuTrigger asChild>
@@ -384,7 +380,9 @@ export declare const DrawerTrigger: React_2.ForwardRefExoticComponent<DialogPrim
384
380
  * </DropdownMenu>
385
381
  * ```
386
382
  *
387
- * @example Checkbox items, a radio group, and a nested sub-menu
383
+ * @example
384
+ *
385
+ * Checkbox items, a radio group, and a nested sub-menu
388
386
  * ```tsx
389
387
  * <DropdownMenuContent>
390
388
  * <DropdownMenuCheckboxItem checked={show} onCheckedChange={setShow}>
@@ -769,6 +767,63 @@ export declare interface LucideIconProps extends Omit<SvgProps, "name">, Variant
769
767
  strokeWidth?: number;
770
768
  }
771
769
 
770
+ /**
771
+ * `Menubar` — a horizontal, Google-Docs-style menu bar. Built on Radix UI's
772
+ * Menubar primitive and styled with the Fileverse design system.
773
+ *
774
+ * Composition-first: same part structure as `DropdownMenu`, plus a
775
+ * `MenubarMenu` wrapper per top-level menu.
776
+ *
777
+ * @see Radix primitive — https://www.radix-ui.com/primitives/docs/components/menubar
778
+ */
779
+ export declare const Menubar: React_2.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
780
+
781
+ export declare const MenubarCheckboxItem: React_2.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarCheckboxItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
782
+
783
+ export declare const MenubarContent: React_2.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
784
+
785
+ export declare const MenubarGroup: React_2.ForwardRefExoticComponent<MenubarPrimitive.MenubarGroupProps & React_2.RefAttributes<HTMLDivElement>>;
786
+
787
+ export declare const MenubarItem: React_2.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
788
+ inset?: boolean;
789
+ } & React_2.RefAttributes<HTMLDivElement>>;
790
+
791
+ export declare const MenubarLabel: React_2.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarLabelProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
792
+ inset?: boolean;
793
+ } & React_2.RefAttributes<HTMLDivElement>>;
794
+
795
+ /** One top-level menu (trigger + content). Direct child of {@link Menubar}. */
796
+ export declare const MenubarMenu: {
797
+ (props: MenubarPrimitive.MenubarMenuProps & {
798
+ __scopeMenubar?: Scope;
799
+ }): JSX_2.Element;
800
+ displayName: string;
801
+ };
802
+
803
+ export declare const MenubarPortal: React_2.FC<MenubarPrimitive.MenubarPortalProps>;
804
+
805
+ export declare const MenubarRadioGroup: React_2.ForwardRefExoticComponent<MenubarPrimitive.MenubarRadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
806
+
807
+ export declare const MenubarRadioItem: React_2.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarRadioItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
808
+
809
+ export declare const MenubarSeparator: React_2.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
810
+
811
+ export declare const MenubarShortcut: {
812
+ ({ className, ...props }: React_2.HTMLAttributes<HTMLSpanElement>): JSX_2.Element;
813
+ displayName: string;
814
+ };
815
+
816
+ export declare const MenubarSub: React_2.FC<MenubarPrimitive.MenubarSubProps>;
817
+
818
+ export declare const MenubarSubContent: React_2.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
819
+
820
+ export declare const MenubarSubTrigger: React_2.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubTriggerProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
821
+ inset?: boolean;
822
+ } & React_2.RefAttributes<HTMLDivElement>>;
823
+
824
+ /** Top-level menu button ("File", "Edit", …). Highlights while its menu is open. */
825
+ export declare const MenubarTrigger: React_2.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarTriggerProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
826
+
772
827
  declare type Period = "AM" | "PM";
773
828
 
774
829
  declare interface PeriodSelectorProps {
@@ -1088,7 +1143,12 @@ declare type ThemeProviderProps = {
1088
1143
  defaultTheme?: Theme;
1089
1144
  };
1090
1145
 
1091
- export declare const ThemeToggle: () => JSX_2.Element;
1146
+ export declare const ThemeToggle: ({ defaultOpen }?: ThemeToggleProps) => JSX_2.Element;
1147
+
1148
+ declare interface ThemeToggleProps {
1149
+ /** Opens the "More themes" dropdown on first mount (uncontrolled). */
1150
+ defaultOpen?: boolean;
1151
+ }
1092
1152
 
1093
1153
  export declare const TimePeriodSelect: React_2.ForwardRefExoticComponent<PeriodSelectorProps & React_2.RefAttributes<HTMLButtonElement>>;
1094
1154