@liiift-studio/mac-os9-ui 0.2.21 → 0.2.23

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.
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ export interface MenuDropdownProps {
3
+ /**
4
+ * Menu label (displayed in the menu bar/button)
5
+ */
6
+ label: React.ReactNode;
7
+ /**
8
+ * Menu items (content of the dropdown)
9
+ */
10
+ items: React.ReactNode;
11
+ /**
12
+ * Whether the menu is disabled
13
+ * @default false
14
+ */
15
+ disabled?: boolean;
16
+ /**
17
+ * Custom class name for the menu container
18
+ */
19
+ className?: string;
20
+ /**
21
+ * Custom class name for menu dropdown
22
+ */
23
+ dropdownClassName?: string;
24
+ /**
25
+ * Alignment of the dropdown menu
26
+ * @default 'left'
27
+ */
28
+ align?: 'left' | 'right';
29
+ }
30
+ /**
31
+ * Mac OS 9 style MenuDropdown component
32
+ *
33
+ * A standalone dropdown menu that shares the styling of the MenuBar.
34
+ * Useful for placing menus in the status area (rightContent) or other parts of the app.
35
+ */
36
+ export declare const MenuDropdown: React.FC<MenuDropdownProps>;
@@ -53,6 +53,10 @@ export interface MenuItemProps {
53
53
  * @default false
54
54
  */
55
55
  hasSubmenu?: boolean;
56
+ /**
57
+ * Submenu items
58
+ */
59
+ items?: React.ReactNode;
56
60
  }
57
61
  /**
58
62
  * Mac OS 9 style MenuItem component
@@ -1,3 +1,4 @@
1
1
  export { MenuBar, type MenuBarProps, type Menu } from './MenuBar';
2
2
  export { MenuItem, type MenuItemProps } from './MenuItem';
3
+ export { MenuDropdown, type MenuDropdownProps } from './MenuDropdown';
3
4
  export { default } from './MenuBar';
@@ -9,7 +9,7 @@ export { Select, type SelectProps, type SelectOption } from './components/Select
9
9
  export { Tabs, TabPanel, type TabsProps, type TabPanelProps } from './components/Tabs';
10
10
  export { Window, type WindowProps } from './components/Window';
11
11
  export { Dialog, type DialogProps } from './components/Dialog';
12
- export { MenuBar, MenuItem, type MenuBarProps, type MenuItemProps, type Menu } from './components/MenuBar';
12
+ export { MenuBar, MenuItem, MenuDropdown, type MenuBarProps, type MenuItemProps, type Menu, type MenuDropdownProps } from './components/MenuBar';
13
13
  export { Scrollbar, type ScrollbarProps } from './components/Scrollbar';
14
14
  export { ListView, type ListViewProps, type ListColumn, type ListItem } from './components/ListView';
15
15
  export { FolderList, type FolderListProps } from './components/FolderList';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liiift-studio/mac-os9-ui",
3
- "version": "0.2.21",
3
+ "version": "0.2.23",
4
4
  "description": "A pixel-perfect Mac OS 9 UI component library for React and TypeScript",
5
5
  "private": false,
6
6
  "sideEffects": [
Binary file
Binary file
Binary file
Binary file