@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.
- package/dist/fonts/65e59833.woff +0 -0
- package/dist/fonts/6fb9ec6b.woff +0 -0
- package/dist/fonts/9f492b6d.woff2 +0 -0
- package/dist/fonts/e45380e5.woff2 +0 -0
- package/dist/index.cjs +100 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +50 -9
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +42 -2
- package/dist/index.js +100 -27
- package/dist/index.js.map +1 -1
- package/dist/types/components/MenuBar/MenuDropdown.d.ts +36 -0
- package/dist/types/components/MenuBar/MenuItem.d.ts +4 -0
- package/dist/types/components/MenuBar/index.d.ts +1 -0
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/fonts/2bc2468e.woff +0 -0
- package/dist/fonts/3306dfd5.woff +0 -0
- package/dist/fonts/b9e24cd1.woff2 +0 -0
- package/dist/fonts/cf596b2d.woff2 +0 -0
- package/dist/fonts/pixelOperator/PixelOperator-Bold.ttf +0 -0
- package/dist/fonts/pixelOperator/PixelOperator.ttf +0 -0
|
@@ -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>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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
package/dist/fonts/2bc2468e.woff
DELETED
|
Binary file
|
package/dist/fonts/3306dfd5.woff
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|