@openfin/ui-library 0.24.0-alpha.1714412351 → 0.24.0-alpha.1716303734

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,15 @@
1
+ /// <reference types="react" />
2
+ export type CustomContextMenuItemData = {
3
+ icon?: string;
4
+ label?: string;
5
+ type?: 'normal' | 'separator' | 'submenuHeader' | 'submenu' | 'checkbox';
6
+ enabled?: boolean;
7
+ checked?: boolean;
8
+ submenu?: boolean;
9
+ showShouldHomeButton?: boolean;
10
+ onClick?: () => void;
11
+ onClose?: () => void;
12
+ onBack?: () => void;
13
+ selected?: boolean;
14
+ };
15
+ export declare const CustomContextMenuItem: ({ type, icon, label, enabled, checked, submenu, showShouldHomeButton, onClick, onClose, onBack, selected, }: CustomContextMenuItemData) => JSX.Element;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ export type NormalCustomContextMenuItemProps = {
3
+ type?: 'checkbox' | 'normal';
4
+ label?: string;
5
+ icon?: string;
6
+ enabled?: boolean;
7
+ checked?: boolean;
8
+ submenu?: boolean;
9
+ onClick?: () => void;
10
+ selected?: boolean;
11
+ };
12
+ export declare const NormalCustomContextMenuItem: ({ type, label, enabled, checked, submenu, onClick, selected, }: NormalCustomContextMenuItemProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from 'react';
2
+ export type RootMenuHeaderProps = {
3
+ icon: ReactNode;
4
+ };
5
+ export declare const RootMenuHeader: ({ icon }: RootMenuHeaderProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const SeparatorCustomContextMenuItem: React.FC;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export type SubmenuHeaderCustomContextMenuItemProps = {
3
+ label?: string;
4
+ showShouldHomeButton?: boolean;
5
+ onClose?: () => void;
6
+ onBack?: () => void;
7
+ selected?: boolean;
8
+ };
9
+ export declare const SubmenuHeaderCustomContextMenuItem: ({ label, showShouldHomeButton, onClose, onBack, selected, }: SubmenuHeaderCustomContextMenuItemProps) => JSX.Element;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openfin/ui-library",
3
3
  "description": "OpenFin UI Component Library",
4
- "version": "0.24.0-alpha.1714412351",
4
+ "version": "0.24.0-alpha.1716303734",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "repository": "github:openfin/ui-library",