@fraku/video 0.1.11 → 0.1.13
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/components/DockButton/DockButton.d.ts +32 -0
- package/dist/components/DockButton/MenuItemTemplate.d.ts +9 -0
- package/dist/components/DockButton/index.d.ts +0 -0
- package/dist/index.cjs +338 -307
- package/dist/index.css +1 -1
- package/dist/index.js +39381 -38585
- package/dist/providers/DialogsProvider/types.d.ts +8 -2
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
|
|
3
|
+
type DockButtonProps = {
|
|
4
|
+
className?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
mainIcon: string;
|
|
7
|
+
mainLabel?: string;
|
|
8
|
+
mainTitle?: string;
|
|
9
|
+
onMainClick: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
10
|
+
showSecondary?: boolean;
|
|
11
|
+
secondaryIcon?: string;
|
|
12
|
+
secondaryTitle?: string;
|
|
13
|
+
onSecondaryClick?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Renders a customizable dock button component with optional main and secondary actions.
|
|
17
|
+
*
|
|
18
|
+
* @param className - Additional CSS class names to apply to the container.
|
|
19
|
+
* @param disabled - Flag to disable the main button.
|
|
20
|
+
* @param mainIcon - The CSS class for the main icon to display.
|
|
21
|
+
* @param mainLabel - Optional label text for the main button.
|
|
22
|
+
* @param mainTitle - The title attribute for the main button (for accessibility/tooltips).
|
|
23
|
+
* @param onMainClick - Click handler for the main button action.
|
|
24
|
+
* @param showSecondary - Flag to indicate if the secondary button should be displayed.
|
|
25
|
+
* @param secondaryIcon - Optional CSS class for the secondary icon to display.
|
|
26
|
+
* @param secondaryTitle - The title attribute for the secondary button (for accessibility/tooltips).
|
|
27
|
+
* @param onSecondaryClick - Optional click handler for the secondary button action.
|
|
28
|
+
*
|
|
29
|
+
* @returns A dock button component with main and optional secondary actions.
|
|
30
|
+
*/
|
|
31
|
+
declare const DockButton: ({ className, disabled, mainIcon, mainLabel, mainTitle, onMainClick, secondaryIcon, secondaryTitle, onSecondaryClick, showSecondary }: DockButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export default DockButton;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MenuItem, MenuItemOptions } from 'primereact/menuitem';
|
|
2
|
+
|
|
3
|
+
type MenuItemTemplateProps = {
|
|
4
|
+
item: MenuItem;
|
|
5
|
+
options: MenuItemOptions;
|
|
6
|
+
activeItem: string | undefined;
|
|
7
|
+
};
|
|
8
|
+
declare const MenuItemTemplate: ({ item, options, activeItem }: MenuItemTemplateProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default MenuItemTemplate;
|
|
File without changes
|