dhx-react-suite 1.0.7 → 1.0.8
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/dhx-react-suite.js +1063 -926
- package/dist/dhx-react-suite.js.map +1 -1
- package/dist/dhx-react-suite.umd.cjs +2 -2
- package/dist/dhx-react-suite.umd.cjs.map +1 -1
- package/dist/index.d.ts +12 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -326,23 +326,32 @@ export declare function MessageProvider({ children }: {
|
|
|
326
326
|
|
|
327
327
|
export declare type MessageType = "success" | "error" | "warning" | "info";
|
|
328
328
|
|
|
329
|
-
export declare function Navbar({ logo, items, vertical, style }: NavbarProps): JSX_2.Element;
|
|
329
|
+
export declare function Navbar({ logo, items, vertical, onAction, style }: NavbarProps): JSX_2.Element;
|
|
330
330
|
|
|
331
331
|
export declare interface NavbarItem {
|
|
332
332
|
id?: string;
|
|
333
|
-
type?: "separator" | "spacer" | "input" | "
|
|
333
|
+
type?: "navItem" | "separator" | "spacer" | "input" | "imageButton";
|
|
334
334
|
value?: string;
|
|
335
335
|
icon?: React.ReactNode;
|
|
336
|
+
src?: string;
|
|
336
337
|
items?: MenuItem[];
|
|
337
338
|
width?: number;
|
|
338
339
|
placeholder?: string;
|
|
339
|
-
|
|
340
|
+
tooltip?: string;
|
|
341
|
+
twoState?: boolean;
|
|
342
|
+
active?: boolean;
|
|
343
|
+
disabled?: boolean;
|
|
344
|
+
hidden?: boolean;
|
|
345
|
+
count?: number;
|
|
346
|
+
onClick?: (id: string) => void;
|
|
347
|
+
onChange?: (value: string) => void;
|
|
340
348
|
}
|
|
341
349
|
|
|
342
350
|
export declare interface NavbarProps {
|
|
343
351
|
logo?: React.ReactNode;
|
|
344
352
|
items?: NavbarItem[];
|
|
345
353
|
vertical?: boolean;
|
|
354
|
+
onAction?: (id: string) => void;
|
|
346
355
|
style?: React.CSSProperties;
|
|
347
356
|
}
|
|
348
357
|
|