@thanh-libs/menu 0.0.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.
Files changed (51) hide show
  1. package/LICENSE +21 -0
  2. package/dist/index.d.ts +3 -0
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/index.js +2413 -0
  5. package/dist/lib/components/Menu.d.ts +23 -0
  6. package/dist/lib/components/Menu.d.ts.map +1 -0
  7. package/dist/lib/components/MenuDivider.d.ts +9 -0
  8. package/dist/lib/components/MenuDivider.d.ts.map +1 -0
  9. package/dist/lib/components/MenuGroup.d.ts +9 -0
  10. package/dist/lib/components/MenuGroup.d.ts.map +1 -0
  11. package/dist/lib/components/MenuItem.d.ts +8 -0
  12. package/dist/lib/components/MenuItem.d.ts.map +1 -0
  13. package/dist/lib/components/MenuLabel.d.ts +9 -0
  14. package/dist/lib/components/MenuLabel.d.ts.map +1 -0
  15. package/dist/lib/components/MenuSub.d.ts +39 -0
  16. package/dist/lib/components/MenuSub.d.ts.map +1 -0
  17. package/dist/lib/components/MenuSubContent.d.ts +7 -0
  18. package/dist/lib/components/MenuSubContent.d.ts.map +1 -0
  19. package/dist/lib/components/MenuSubContentInline.d.ts +2 -0
  20. package/dist/lib/components/MenuSubContentInline.d.ts.map +1 -0
  21. package/dist/lib/components/MenuSubContentPopover.d.ts +2 -0
  22. package/dist/lib/components/MenuSubContentPopover.d.ts.map +1 -0
  23. package/dist/lib/components/MenuSubTrigger.d.ts +8 -0
  24. package/dist/lib/components/MenuSubTrigger.d.ts.map +1 -0
  25. package/dist/lib/components/index.d.ts +9 -0
  26. package/dist/lib/components/index.d.ts.map +1 -0
  27. package/dist/lib/constants/index.d.ts +35 -0
  28. package/dist/lib/constants/index.d.ts.map +1 -0
  29. package/dist/lib/helpers/index.d.ts +24 -0
  30. package/dist/lib/helpers/index.d.ts.map +1 -0
  31. package/dist/lib/hooks/useMenuContext.d.ts +21 -0
  32. package/dist/lib/hooks/useMenuContext.d.ts.map +1 -0
  33. package/dist/lib/hooks/useMenuKeyboard.d.ts +4 -0
  34. package/dist/lib/hooks/useMenuKeyboard.d.ts.map +1 -0
  35. package/dist/lib/models/index.d.ts +156 -0
  36. package/dist/lib/models/index.d.ts.map +1 -0
  37. package/dist/lib/styled/Menu.styled.d.ts +11 -0
  38. package/dist/lib/styled/Menu.styled.d.ts.map +1 -0
  39. package/dist/lib/styled/MenuDivider.styled.d.ts +10 -0
  40. package/dist/lib/styled/MenuDivider.styled.d.ts.map +1 -0
  41. package/dist/lib/styled/MenuIndicator.styled.d.ts +18 -0
  42. package/dist/lib/styled/MenuIndicator.styled.d.ts.map +1 -0
  43. package/dist/lib/styled/MenuItem.styled.d.ts +38 -0
  44. package/dist/lib/styled/MenuItem.styled.d.ts.map +1 -0
  45. package/dist/lib/styled/MenuLabel.styled.d.ts +10 -0
  46. package/dist/lib/styled/MenuLabel.styled.d.ts.map +1 -0
  47. package/dist/lib/styled/MenuSub.styled.d.ts +26 -0
  48. package/dist/lib/styled/MenuSub.styled.d.ts.map +1 -0
  49. package/dist/lib/styled/index.d.ts +7 -0
  50. package/dist/lib/styled/index.d.ts.map +1 -0
  51. package/package.json +69 -0
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Menu — Persistent visible list of navigation/action items.
3
+ *
4
+ * Always rendered — persistent visible list. Supports inline collapsible sub-menus,
5
+ * icons, labels, dividers, groups, and selected/disabled states.
6
+ *
7
+ * @example
8
+ * ```tsx
9
+ * <Menu>
10
+ * <MenuItem icon={<HomeIcon />}>Home</MenuItem>
11
+ * <MenuItem icon={<UsersIcon />} selected>Users</MenuItem>
12
+ * <MenuSub>
13
+ * <MenuSubTrigger icon={<SettingsIcon />}>Settings</MenuSubTrigger>
14
+ * <MenuSubContent>
15
+ * <MenuItem>General</MenuItem>
16
+ * <MenuItem>Security</MenuItem>
17
+ * </MenuSubContent>
18
+ * </MenuSub>
19
+ * </Menu>
20
+ * ```
21
+ */
22
+ export declare const Menu: any;
23
+ //# sourceMappingURL=Menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/lib/components/Menu.tsx"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,IAAI,KAsChB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { MenuDividerProps } from '../models';
2
+ /**
3
+ * MenuDivider — Visual separator between menu items.
4
+ */
5
+ export declare const MenuDivider: {
6
+ ({ className, style, ...rest }: MenuDividerProps): any;
7
+ displayName: string;
8
+ };
9
+ //# sourceMappingURL=MenuDivider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuDivider.d.ts","sourceRoot":"","sources":["../../../src/lib/components/MenuDivider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAIlD;;GAEG;AACH,eAAO,MAAM,WAAW;oCAAmC,gBAAgB;;CAM1E,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { MenuGroupProps } from '../models';
2
+ /**
3
+ * MenuGroup — Semantic grouping of menu items with optional label.
4
+ */
5
+ export declare const MenuGroup: {
6
+ ({ children, label, className, ...rest }: MenuGroupProps): any;
7
+ displayName: string;
8
+ };
9
+ //# sourceMappingURL=MenuGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuGroup.d.ts","sourceRoot":"","sources":["../../../src/lib/components/MenuGroup.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGhD;;GAEG;AACH,eAAO,MAAM,SAAS;8CAA6C,cAAc;;CAShF,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * MenuItem — Clickable action/navigation item inside a Menu.
3
+ *
4
+ * When `selected={true}` and inside a `MenuSub`, automatically signals
5
+ * the parent sub-menu (and all ancestors) to expand.
6
+ */
7
+ export declare const MenuItem: any;
8
+ //# sourceMappingURL=MenuItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../src/lib/components/MenuItem.tsx"],"names":[],"mappings":"AAeA;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,KA0FpB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { MenuLabelProps } from '../models';
2
+ /**
3
+ * MenuLabel — Non-interactive group header text.
4
+ */
5
+ export declare const MenuLabel: {
6
+ ({ children, className, style, id }: MenuLabelProps): any;
7
+ displayName: string;
8
+ };
9
+ //# sourceMappingURL=MenuLabel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuLabel.d.ts","sourceRoot":"","sources":["../../../src/lib/components/MenuLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD;;GAEG;AACH,eAAO,MAAM,SAAS;yCAAwC,cAAc;;CAQ3E,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { FloatingContext } from '@floating-ui/react';
2
+ import { MenuSubProps, MenuSubMode, MenuSubTriggerType } from '../models';
3
+ interface MenuSubContextValue {
4
+ isOpen: boolean;
5
+ toggle: () => void;
6
+ setOpen: (open: boolean) => void;
7
+ /** True when any descendant MenuItem has selected={true} */
8
+ hasSelectedChild: boolean;
9
+ /** Called by child MenuItem to register/unregister selected state */
10
+ registerSelected: () => () => void;
11
+ /** Unique ID for the trigger to be referenced by aria-labelledby */
12
+ triggerId: string;
13
+ resolvedMode: MenuSubMode;
14
+ resolvedTrigger: MenuSubTriggerType;
15
+ setReference: ((node: HTMLElement | null) => void) | null;
16
+ setFloating: ((node: HTMLElement | null) => void) | null;
17
+ floatingStyles: React.CSSProperties | null;
18
+ context: FloatingContext | null;
19
+ getReferenceProps: ((props?: Record<string, unknown>) => Record<string, unknown>) | null;
20
+ getFloatingProps: ((props?: Record<string, unknown>) => Record<string, unknown>) | null;
21
+ }
22
+ export declare const useMenuSubContext: () => MenuSubContextValue;
23
+ /**
24
+ * Try to get MenuSub context — returns null if not inside a MenuSub.
25
+ */
26
+ export declare const useOptionalMenuSubContext: () => MenuSubContextValue | null;
27
+ /**
28
+ * MenuSub — Container for nested sub-menus.
29
+ *
30
+ * Supports two modes:
31
+ * 1. 'inline' (default) - Collapsible sub-menu inline with parent items
32
+ * 2. 'popover' - Floating sub-menu that opens to the side
33
+ */
34
+ export declare const MenuSub: {
35
+ ({ mode, trigger, ...props }: MenuSubProps): any;
36
+ displayName: string;
37
+ };
38
+ export {};
39
+ //# sourceMappingURL=MenuSub.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuSub.d.ts","sourceRoot":"","sources":["../../../src/lib/components/MenuSub.tsx"],"names":[],"mappings":"AAEA,OAAO,EAOL,eAAe,EAKhB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAM/E,UAAU,mBAAmB;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,4DAA4D;IAC5D,gBAAgB,EAAE,OAAO,CAAC;IAC1B,qEAAqE;IACrE,gBAAgB,EAAE,MAAM,MAAM,IAAI,CAAC;IACnC,oEAAoE;IACpE,SAAS,EAAE,MAAM,CAAC;IAGlB,YAAY,EAAE,WAAW,CAAC;IAC1B,eAAe,EAAE,kBAAkB,CAAC;IAGpC,YAAY,EAAE,CAAC,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1D,WAAW,EAAE,CAAC,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC;IACzD,cAAc,EAAE,KAAK,CAAC,aAAa,GAAG,IAAI,CAAC;IAC3C,OAAO,EAAE,eAAe,GAAG,IAAI,CAAC;IAChC,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC;IACzF,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC;CACzF;AAID,eAAO,MAAM,iBAAiB,QAAO,mBAMpC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,QAAO,mBAAmB,GAAG,IAElE,CAAC;AAgPF;;;;;;GAMG;AACH,eAAO,MAAM,OAAO;kCAAiC,YAAY;;CAgBhE,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * MenuSubContent — Content container for sub-menu items.
3
+ *
4
+ * Supports inline sliding down, or floating popover based on resolvedMode.
5
+ */
6
+ export declare const MenuSubContent: any;
7
+ //# sourceMappingURL=MenuSubContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuSubContent.d.ts","sourceRoot":"","sources":["../../../src/lib/components/MenuSubContent.tsx"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,eAAO,MAAM,cAAc,KAU1B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const MenuSubContentInline: any;
2
+ //# sourceMappingURL=MenuSubContentInline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuSubContentInline.d.ts","sourceRoot":"","sources":["../../../src/lib/components/MenuSubContentInline.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,oBAAoB,KAkChC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const MenuSubContentPopover: any;
2
+ //# sourceMappingURL=MenuSubContentPopover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuSubContentPopover.d.ts","sourceRoot":"","sources":["../../../src/lib/components/MenuSubContentPopover.tsx"],"names":[],"mappings":"AA+BA,eAAO,MAAM,qBAAqB,KAiFjC,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * MenuSubTrigger — Item that toggles an inline sub-menu open/closed.
3
+ *
4
+ * - Renders a trailing arrow ▾ (closed) or ▴ (open).
5
+ * - Shows a **soft-select** highlight when any descendant is selected.
6
+ */
7
+ export declare const MenuSubTrigger: any;
8
+ //# sourceMappingURL=MenuSubTrigger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuSubTrigger.d.ts","sourceRoot":"","sources":["../../../src/lib/components/MenuSubTrigger.tsx"],"names":[],"mappings":"AAQA;;;;;GAKG;AACH,eAAO,MAAM,cAAc,KAoG1B,CAAC"}
@@ -0,0 +1,9 @@
1
+ export { Menu } from './Menu';
2
+ export { MenuItem } from './MenuItem';
3
+ export { MenuLabel } from './MenuLabel';
4
+ export { MenuDivider } from './MenuDivider';
5
+ export { MenuGroup } from './MenuGroup';
6
+ export { MenuSub } from './MenuSub';
7
+ export { MenuSubTrigger } from './MenuSubTrigger';
8
+ export { MenuSubContent } from './MenuSubContent';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,35 @@
1
+ /** Hover open delay for sub-menu trigger (ms) — reserved for future use */
2
+ export declare const SUB_OPEN_DELAY = 150;
3
+ /** Close delay for popover sub-menu (ms) */
4
+ export declare const SUB_CLOSE_DELAY = 150;
5
+ /** Min width for popover sub-menu content (px) */
6
+ export declare const POPOVER_MIN_WIDTH = 160;
7
+ /** Z-index for popover sub-menu */
8
+ export declare const POPOVER_Z_INDEX = 1300;
9
+ /** Collapse/expand animation duration (ms) */
10
+ export declare const COLLAPSE_DURATION = 250;
11
+ /** Default menu item font size */
12
+ export declare const FONT_SIZE_DEFAULT = "0.875rem";
13
+ /** Dense menu item font size */
14
+ export declare const FONT_SIZE_DENSE = "0.8125rem";
15
+ /** Keyboard shortcut font size */
16
+ export declare const FONT_SIZE_SHORTCUT = "0.75rem";
17
+ /** Menu label font size */
18
+ export declare const FONT_SIZE_LABEL = "0.75rem";
19
+ /** Sub-menu arrow icon font size */
20
+ export declare const FONT_SIZE_SUB_ARROW = "0.625rem";
21
+ /** Icon width/height in px */
22
+ export declare const ICON_SIZE = 20;
23
+ /** Check indicator width in px */
24
+ export declare const CHECK_WIDTH = 20;
25
+ /** Menu item border radius */
26
+ export declare const BORDER_RADIUS = "0.375rem";
27
+ /** Default line height */
28
+ export declare const LINE_HEIGHT = 1.5;
29
+ /** Background transition duration (ms) */
30
+ export declare const TRANSITION_BG_DURATION = 150;
31
+ /** Sub-menu content opacity transition duration (ms) */
32
+ export declare const OPACITY_DURATION = 200;
33
+ /** Typeahead buffer reset timeout (ms) */
34
+ export declare const TYPEAHEAD_TIMEOUT = 500;
35
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/constants/index.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,eAAO,MAAM,cAAc,MAAM,CAAC;AAElC,4CAA4C;AAC5C,eAAO,MAAM,eAAe,MAAM,CAAC;AAEnC,kDAAkD;AAClD,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAErC,mCAAmC;AACnC,eAAO,MAAM,eAAe,OAAO,CAAC;AAEpC,8CAA8C;AAC9C,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAGrC,kCAAkC;AAClC,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAC5C,gCAAgC;AAChC,eAAO,MAAM,eAAe,cAAc,CAAC;AAC3C,kCAAkC;AAClC,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,2BAA2B;AAC3B,eAAO,MAAM,eAAe,YAAY,CAAC;AACzC,oCAAoC;AACpC,eAAO,MAAM,mBAAmB,aAAa,CAAC;AAG9C,8BAA8B;AAC9B,eAAO,MAAM,SAAS,KAAK,CAAC;AAC5B,kCAAkC;AAClC,eAAO,MAAM,WAAW,KAAK,CAAC;AAC9B,8BAA8B;AAC9B,eAAO,MAAM,aAAa,aAAa,CAAC;AACxC,0BAA0B;AAC1B,eAAO,MAAM,WAAW,MAAM,CAAC;AAG/B,0CAA0C;AAC1C,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAC1C,wDAAwD;AACxD,eAAO,MAAM,gBAAgB,MAAM,CAAC;AAGpC,0CAA0C;AAC1C,eAAO,MAAM,iBAAiB,MAAM,CAAC"}
@@ -0,0 +1,24 @@
1
+ export declare const ITEM_SELECTOR = "[role=\"menuitem\"]:not([aria-disabled=\"true\"])";
2
+ /**
3
+ * Returns all visible (non-collapsed) menu items within a container.
4
+ * Filters out items inside a collapsed sub-menu ([data-collapsed="true"]).
5
+ */
6
+ export declare const getVisibleMenuItems: (container: HTMLElement) => HTMLElement[];
7
+ /**
8
+ * Resolve text color for a menu item based on danger/disabled state.
9
+ * Falls back to palette.text.primary when neither danger nor disabled.
10
+ */
11
+ export declare const getTextColor: (danger: boolean, disabled: boolean, palette: {
12
+ error: {
13
+ main: string;
14
+ };
15
+ text: {
16
+ disabled: string;
17
+ primary: string;
18
+ };
19
+ }) => string;
20
+ /**
21
+ * Stop event propagation and prevent default action.
22
+ */
23
+ export declare const cancelEvent: (e: React.SyntheticEvent | Event) => void;
24
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/helpers/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,sDAAkD,CAAC;AAE7E;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,WAAW,WAAW,KAAG,WAAW,EAOvE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,GACvB,QAAQ,OAAO,EACf,UAAU,OAAO,EACjB,SAAS;IACP,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACxB,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAC7C,KACA,MAIF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,GAAG,KAAK,CAAC,cAAc,GAAG,KAAK,SAG1D,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { MenuSubMode, MenuDisplay, MenuSubTriggerType, MenuFloatingSettings, MenuColorScheme, MenuActiveIndicator } from '../models';
2
+ export interface MenuContextValue {
3
+ /** Whether this is a dense menu */
4
+ dense: boolean;
5
+ /** Default sub-menu mode */
6
+ mode: MenuSubMode;
7
+ /** Icon-only mode */
8
+ display: MenuDisplay;
9
+ /** Default popover trigger type */
10
+ trigger: MenuSubTriggerType;
11
+ /** Global floating UI settings for all popover sub-menus */
12
+ floatingSettings?: MenuFloatingSettings;
13
+ colorScheme?: MenuColorScheme;
14
+ /** Active indicator configuration */
15
+ activeIndicator?: MenuActiveIndicator;
16
+ /** Show inline dot for SubContent children */
17
+ showDot?: boolean;
18
+ }
19
+ export declare const MenuContext: any;
20
+ export declare const useMenuContext: () => MenuContextValue;
21
+ //# sourceMappingURL=useMenuContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMenuContext.d.ts","sourceRoot":"","sources":["../../../src/lib/hooks/useMenuContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAE1I,MAAM,WAAW,gBAAgB;IAC/B,mCAAmC;IACnC,KAAK,EAAE,OAAO,CAAC;IACf,4BAA4B;IAC5B,IAAI,EAAE,WAAW,CAAC;IAClB,qBAAqB;IACrB,OAAO,EAAE,WAAW,CAAC;IACrB,mCAAmC;IACnC,OAAO,EAAE,kBAAkB,CAAC;IAC5B,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,oBAAoB,CAAC;IACxC,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,qCAAqC;IACrC,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,8CAA8C;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,WAAW,KAA+C,CAAC;AAExE,eAAO,MAAM,cAAc,QAAO,gBAMjC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const useMenuKeyboard: (containerRef: React.RefObject<HTMLDivElement>) => {
2
+ onKeyDown: any;
3
+ };
4
+ //# sourceMappingURL=useMenuKeyboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMenuKeyboard.d.ts","sourceRoot":"","sources":["../../../src/lib/hooks/useMenuKeyboard.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe,GAAI,cAAc,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC;;CAqG5E,CAAC"}
@@ -0,0 +1,156 @@
1
+ import { ReactNode, CSSProperties, HTMLAttributes } from 'react';
2
+ import { Placement } from '@floating-ui/react';
3
+ /** Sub-menu display mode */
4
+ export type MenuSubMode = 'inline' | 'popover';
5
+ /** Menu display mode */
6
+ export type MenuDisplay = 'default' | 'icon';
7
+ /** Popover sub-menu trigger type */
8
+ export type MenuSubTriggerType = 'hover' | 'click';
9
+ /** Floating UI settings for popover sub-menus */
10
+ export interface MenuFloatingSettings {
11
+ /** Popover placement (e.g., 'right-start') */
12
+ placement?: Placement;
13
+ /** Distance in pixels between trigger and popover */
14
+ offset?: number;
15
+ /** Enable flip modifier to flip placement if space is limited */
16
+ flip?: boolean;
17
+ /** Enable shift modifier to shift popover to stay in view */
18
+ shift?: boolean;
19
+ }
20
+ /** Color scheme for customizing menu appearance via raw CSS color strings */
21
+ export interface MenuColorScheme {
22
+ /** Menu container background */
23
+ background?: string;
24
+ /** Default text color */
25
+ color?: string;
26
+ /** Hover state */
27
+ hoverBg?: string;
28
+ hoverColor?: string;
29
+ /** Active/selected item */
30
+ activeBg?: string;
31
+ activeColor?: string;
32
+ /** Soft-selected (parent trigger of active child) */
33
+ softSelectedBg?: string;
34
+ /** Danger item */
35
+ dangerColor?: string;
36
+ dangerHoverBg?: string;
37
+ /** Disabled text */
38
+ disabledColor?: string;
39
+ /** Secondary text (labels, shortcuts, arrows) */
40
+ secondaryColor?: string;
41
+ /** Divider line */
42
+ dividerColor?: string;
43
+ /** Focus ring color */
44
+ focusRingColor?: string;
45
+ /** Popover sub-menu background (nếu mode='popover') */
46
+ popoverBg?: string;
47
+ /** Popover border color */
48
+ popoverBorderColor?: string;
49
+ /** Dot indicator color for inline sub-content children (border color) */
50
+ dotColor?: string;
51
+ /** Dot indicator active/filled color */
52
+ dotActiveColor?: string;
53
+ /** Child item hover text color (items inside SubContent) */
54
+ childHoverColor?: string;
55
+ /** Child item hover background color (items inside SubContent) */
56
+ childHoverBg?: string;
57
+ /** Active indicator icon color (parent items — dot/bar border + fill) */
58
+ activeIconColor?: string;
59
+ }
60
+ /** Active indicator variant for selected menu items */
61
+ export type MenuActiveIndicator = 'dot' | 'bar' | false | ReactNode;
62
+ export interface MenuProps extends HTMLAttributes<HTMLDivElement> {
63
+ /** Menu items */
64
+ children: ReactNode;
65
+ /** Compact mode — smaller padding and text */
66
+ dense?: boolean;
67
+ /** Maximum height of the menu with scrollbar */
68
+ maxHeight?: number | string;
69
+ /** Default sub-menu mode for all nested MenuSub */
70
+ mode?: MenuSubMode;
71
+ /** Display mode: 'icon' shows only icons, 'default' shows all */
72
+ display?: MenuDisplay;
73
+ /** Default popover trigger type */
74
+ trigger?: MenuSubTriggerType;
75
+ /** Global floating UI settings for all popover sub-menus */
76
+ floatingSettings?: MenuFloatingSettings;
77
+ /** Custom color scheme — raw CSS color strings, partial fill */
78
+ colorScheme?: MenuColorScheme;
79
+ /**
80
+ * Active indicator on selected items.
81
+ * - 'dot' (default): filled dot beside selected item
82
+ * - 'bar': vertical bar beside selected item
83
+ * - false: disable indicator
84
+ * - ReactNode: custom indicator element
85
+ */
86
+ activeIndicator?: MenuActiveIndicator;
87
+ /** Show inline dot bullets on child items inside SubContent. Default: false */
88
+ showDot?: boolean;
89
+ }
90
+ export interface MenuItemProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onClick'> {
91
+ /** Label content */
92
+ children: ReactNode;
93
+ /** Leading icon */
94
+ icon?: ReactNode;
95
+ /** Trailing keyboard shortcut text */
96
+ shortcut?: ReactNode;
97
+ /** Disabled state */
98
+ disabled?: boolean;
99
+ /** Danger/destructive styling */
100
+ danger?: boolean;
101
+ /** Selected/active state */
102
+ selected?: boolean;
103
+ /** Click handler */
104
+ onClick?: () => void;
105
+ }
106
+ export interface MenuLabelProps {
107
+ /** Label text */
108
+ children: ReactNode;
109
+ /** Additional CSS class */
110
+ className?: string;
111
+ /** Inline styles */
112
+ style?: CSSProperties;
113
+ /** Element ID */
114
+ id?: string;
115
+ }
116
+ export interface MenuDividerProps {
117
+ /** Additional CSS class */
118
+ className?: string;
119
+ /** Inline styles */
120
+ style?: CSSProperties;
121
+ }
122
+ export interface MenuGroupProps {
123
+ /** Menu items inside group */
124
+ children: ReactNode;
125
+ /** Optional group label (shorthand for MenuLabel) */
126
+ label?: ReactNode;
127
+ /** Additional CSS class */
128
+ className?: string;
129
+ }
130
+ export interface MenuSubProps {
131
+ /** Sub-menu content (MenuSubTrigger + MenuSubContent) */
132
+ children: ReactNode;
133
+ /** Controlled open state */
134
+ open?: boolean;
135
+ /** Uncontrolled initial open state */
136
+ defaultOpen?: boolean;
137
+ /** Callback when open state changes */
138
+ onOpenChange?: (open: boolean) => void;
139
+ /** Override parent sub-menu mode */
140
+ mode?: MenuSubMode;
141
+ /** Popover trigger type */
142
+ trigger?: MenuSubTriggerType;
143
+ }
144
+ export interface MenuSubTriggerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onClick'> {
145
+ /** Label content */
146
+ children: ReactNode;
147
+ /** Leading icon */
148
+ icon?: ReactNode;
149
+ /** Disabled state */
150
+ disabled?: boolean;
151
+ }
152
+ export interface MenuSubContentProps extends HTMLAttributes<HTMLDivElement> {
153
+ /** Sub-menu items */
154
+ children: ReactNode;
155
+ }
156
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/models/index.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,11 @@
1
+ import { MenuColorScheme } from '../models';
2
+ interface MenuContainerStyledProps {
3
+ ownerMaxHeight?: number | string;
4
+ ownerColorScheme?: MenuColorScheme;
5
+ }
6
+ export declare const MenuContainerStyled: import('@emotion/styled').StyledComponent<{
7
+ theme?: import('@emotion/react').Theme;
8
+ as?: React.ElementType;
9
+ } & MenuContainerStyledProps, JSX.IntrinsicElements, {}>;
10
+ export {};
11
+ //# sourceMappingURL=Menu.styled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Menu.styled.d.ts","sourceRoot":"","sources":["../../../src/lib/styled/Menu.styled.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEjD,UAAU,wBAAwB;IAChC,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC,gBAAgB,CAAC,EAAE,eAAe,CAAC;CACpC;AAED,eAAO,MAAM,mBAAmB;;SAO1B,KAAE,CAAC,WACR;wDAUA,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { MenuColorScheme } from '../models';
2
+ interface MenuDividerStyledProps {
3
+ ownerColorScheme?: MenuColorScheme;
4
+ }
5
+ export declare const MenuDividerStyled: import('@emotion/styled').StyledComponent<{
6
+ theme?: import('@emotion/react').Theme;
7
+ as?: React.ElementType;
8
+ } & MenuDividerStyledProps, JSX.IntrinsicElements, {}>;
9
+ export {};
10
+ //# sourceMappingURL=MenuDivider.styled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuDivider.styled.d.ts","sourceRoot":"","sources":["../../../src/lib/styled/MenuDivider.styled.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEjD,UAAU,sBAAsB;IAC9B,gBAAgB,CAAC,EAAE,eAAe,CAAC;CACpC;AAED,eAAO,MAAM,iBAAiB;;SAMsD,KAAM,CAAC,WAAW;sDAIrG,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { MenuColorScheme } from '../models';
2
+ interface ActiveIndicatorStyledProps {
3
+ ownerColorScheme?: MenuColorScheme;
4
+ }
5
+ export declare const MenuItemIndicatorStyled: import('@emotion/styled').StyledComponent<{
6
+ theme?: import('@emotion/react').Theme;
7
+ as?: React.ElementType;
8
+ }, JSX.IntrinsicElements, {}>;
9
+ export declare const DotIndicatorStyled: import('@emotion/styled').StyledComponent<{
10
+ theme?: import('@emotion/react').Theme;
11
+ as?: React.ElementType;
12
+ } & ActiveIndicatorStyledProps, JSX.IntrinsicElements, {}>;
13
+ export declare const BarIndicatorStyled: import('@emotion/styled').StyledComponent<{
14
+ theme?: import('@emotion/react').Theme;
15
+ as?: React.ElementType;
16
+ } & ActiveIndicatorStyledProps, JSX.IntrinsicElements, {}>;
17
+ export {};
18
+ //# sourceMappingURL=MenuIndicator.styled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuIndicator.styled.d.ts","sourceRoot":"","sources":["../../../src/lib/styled/MenuIndicator.styled.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEjD,UAAU,0BAA0B;IAClC,gBAAgB,CAAC,EAAE,eAAe,CAAC;CACpC;AAED,eAAO,MAAM,uBAAuB;;SASA,KACnC,CAAG,WAAS;6BAJX,CAAC;AAEH,eAAO,MAAM,kBAAkB;;SACK,KACnC,CAAG,WAAS;0DAaZ,CAAC;AAEF,eAAO,MAAM,kBAAkB;;SAhBK,KACnC,CAAG,WAAS;0DA8BZ,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { MenuColorScheme } from '../models';
2
+ interface MenuItemStyledProps {
3
+ ownerDanger: boolean;
4
+ ownerDisabled: boolean;
5
+ ownerSelected: boolean;
6
+ ownerSoftSelected: boolean;
7
+ ownerDense: boolean;
8
+ ownerIconOnly: boolean;
9
+ ownerColorScheme?: MenuColorScheme;
10
+ }
11
+ export declare const MenuItemStyled: import('@emotion/styled').StyledComponent<{
12
+ theme?: import('@emotion/react').Theme;
13
+ as?: React.ElementType;
14
+ } & MenuItemStyledProps, JSX.IntrinsicElements, {}>;
15
+ export declare const MenuItemIconStyled: import('@emotion/styled').StyledComponent<{
16
+ theme?: import('@emotion/react').Theme;
17
+ as?: React.ElementType;
18
+ }, JSX.IntrinsicElements, {}>;
19
+ interface MenuItemLabelStyledProps {
20
+ ownerIconOnly?: boolean;
21
+ }
22
+ export declare const MenuItemLabelStyled: import('@emotion/styled').StyledComponent<{
23
+ theme?: import('@emotion/react').Theme;
24
+ as?: React.ElementType;
25
+ } & MenuItemLabelStyledProps, JSX.IntrinsicElements, {}>;
26
+ interface MenuItemShortcutStyledProps {
27
+ ownerColorScheme?: MenuColorScheme;
28
+ }
29
+ export declare const MenuItemShortcutStyled: import('@emotion/styled').StyledComponent<{
30
+ theme?: import('@emotion/react').Theme;
31
+ as?: React.ElementType;
32
+ } & MenuItemShortcutStyledProps, JSX.IntrinsicElements, {}>;
33
+ export declare const MenuItemCheckStyled: import('@emotion/styled').StyledComponent<{
34
+ theme?: import('@emotion/react').Theme;
35
+ as?: React.ElementType;
36
+ }, JSX.IntrinsicElements, {}>;
37
+ export {};
38
+ //# sourceMappingURL=MenuItem.styled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuItem.styled.d.ts","sourceRoot":"","sources":["../../../src/lib/styled/MenuItem.styled.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAOjD,UAAU,mBAAmB;IAC3B,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,eAAe,CAAC;CACpC;AAED,eAAO,MAAM,cAAc;;SAHpB,KAAM,CAAC,WAAW;mDA+DxB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;SAjExB,KAAM,CAAC,WAAW;6BA6EvB,CAAC;AAEH,UAAU,wBAAwB;IAChC,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,eAAO,MAAM,mBAAmB;;SAnFzB,KAAM,CAAC,WAAW;wDA6FxB,CAAC;AAEF,UAAU,2BAA2B;IACnC,gBAAgB,CAAC,EAAE,eAAe,CAAC;CACpC;AAED,eAAO,MAAM,sBAAsB;;SAnG5B,KAAM,CAAC,WAAW;2DA+GxB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;SAjHzB,KAAM,CAAC,WAAW;6BAqHvB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { MenuColorScheme } from '../models';
2
+ interface MenuLabelStyledProps {
3
+ ownerColorScheme?: MenuColorScheme;
4
+ }
5
+ export declare const MenuLabelStyled: import('@emotion/styled').StyledComponent<{
6
+ theme?: import('@emotion/react').Theme;
7
+ as?: React.ElementType;
8
+ } & MenuLabelStyledProps, JSX.IntrinsicElements, {}>;
9
+ export {};
10
+ //# sourceMappingURL=MenuLabel.styled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuLabel.styled.d.ts","sourceRoot":"","sources":["../../../src/lib/styled/MenuLabel.styled.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAGjD,UAAU,oBAAoB;IAC5B,gBAAgB,CAAC,EAAE,eAAe,CAAC;CACpC;AAED,eAAO,MAAM,eAAe;;SAKmC,KAAM,CAAC,WACjE;oDAQJ,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { MenuColorScheme } from '../models';
2
+ interface SubArrowStyledProps {
3
+ ownerColorScheme?: MenuColorScheme;
4
+ }
5
+ export declare const SubArrowStyled: import('@emotion/styled').StyledComponent<{
6
+ theme?: import('@emotion/react').Theme;
7
+ as?: React.ElementType;
8
+ } & SubArrowStyledProps, JSX.IntrinsicElements, {}>;
9
+ interface InlineSubContentStyledProps {
10
+ ownerOpen: boolean;
11
+ ownerColorScheme?: MenuColorScheme;
12
+ ownerShowDot?: boolean;
13
+ }
14
+ export declare const InlineSubContentStyled: import('@emotion/styled').StyledComponent<{
15
+ theme?: import('@emotion/react').Theme;
16
+ as?: React.ElementType;
17
+ } & InlineSubContentStyledProps, JSX.IntrinsicElements, {}>;
18
+ interface PopoverSubContentStyledProps {
19
+ ownerColorScheme?: MenuColorScheme;
20
+ }
21
+ export declare const PopoverSubContentStyled: import('@emotion/styled').StyledComponent<{
22
+ theme?: import('@emotion/react').Theme;
23
+ as?: React.ElementType;
24
+ } & PopoverSubContentStyledProps, JSX.IntrinsicElements, {}>;
25
+ export {};
26
+ //# sourceMappingURL=MenuSub.styled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuSub.styled.d.ts","sourceRoot":"","sources":["../../../src/lib/styled/MenuSub.styled.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAOjD,UAAU,mBAAmB;IAC3B,gBAAgB,CAAC,EAAE,eAAe,CAAC;CACpC;AAED,eAAO,MAAM,cAAc;;SAEY,KAAM,CAAC,WAEvC;mDAQN,CAAC;AAEF,UAAU,2BAA2B;IACnC,SAAS,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,eAAe,CAAC;IACnC,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,sBAAsB;;SAlBI,KAAM,CAAC,WAEvC;2DA4DN,CAAC;AAEF,UAAU,4BAA4B;IACpC,gBAAgB,CAAC,EAAE,eAAe,CAAC;CACpC;AAED,eAAO,MAAM,uBAAuB;;SApEG,KAAM,CAAC,WAEvC;4DAkFN,CAAC"}
@@ -0,0 +1,7 @@
1
+ export * from './Menu.styled';
2
+ export * from './MenuItem.styled';
3
+ export * from './MenuLabel.styled';
4
+ export * from './MenuDivider.styled';
5
+ export * from './MenuSub.styled';
6
+ export * from './MenuIndicator.styled';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/styled/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC"}