@hexure/ui 1.8.1 → 1.8.3
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/cjs/index.js +123 -123
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/ButtonMenu/ButtonMenu.d.ts +1 -0
- package/dist/cjs/types/components/Drawer/Drawer.d.ts +2 -2
- package/dist/esm/index.js +123 -123
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/ButtonMenu/ButtonMenu.d.ts +1 -0
- package/dist/esm/types/components/Drawer/Drawer.d.ts +2 -2
- package/dist/index.d.ts +3 -2
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { AccessibleProps } from '../../utils/Accessibility';
|
|
3
3
|
interface ButtonProps extends AccessibleProps {
|
|
4
|
-
disabled
|
|
4
|
+
disabled?: boolean;
|
|
5
5
|
children: string;
|
|
6
6
|
icon?: string;
|
|
7
7
|
onClick: (e?: any) => void;
|
|
8
8
|
tabIndex?: number;
|
|
9
9
|
}
|
|
10
10
|
export interface DrawerProps extends AccessibleProps {
|
|
11
|
-
primaryButton
|
|
11
|
+
primaryButton?: ButtonProps;
|
|
12
12
|
secondaryButton?: ButtonProps;
|
|
13
13
|
tertiaryButton?: ButtonProps;
|
|
14
14
|
/** It is used to pass child nodes, string values and number as child components. */
|
package/dist/index.d.ts
CHANGED
|
@@ -118,6 +118,7 @@ interface ButtonMenuProps {
|
|
|
118
118
|
menuItems: Array<MenuItemProps>;
|
|
119
119
|
maxHeight?: string | number;
|
|
120
120
|
position?: 'left' | 'right';
|
|
121
|
+
format?: 'primary' | 'secondary';
|
|
121
122
|
}
|
|
122
123
|
declare const ButtonMenu: FC<ButtonMenuProps>;
|
|
123
124
|
|
|
@@ -183,14 +184,14 @@ interface DateProps extends AccessibleProps {
|
|
|
183
184
|
declare const DatePicker: FC<DateProps>;
|
|
184
185
|
|
|
185
186
|
interface ButtonProps$1 extends AccessibleProps {
|
|
186
|
-
disabled
|
|
187
|
+
disabled?: boolean;
|
|
187
188
|
children: string;
|
|
188
189
|
icon?: string;
|
|
189
190
|
onClick: (e?: any) => void;
|
|
190
191
|
tabIndex?: number;
|
|
191
192
|
}
|
|
192
193
|
interface DrawerProps extends AccessibleProps {
|
|
193
|
-
primaryButton
|
|
194
|
+
primaryButton?: ButtonProps$1;
|
|
194
195
|
secondaryButton?: ButtonProps$1;
|
|
195
196
|
tertiaryButton?: ButtonProps$1;
|
|
196
197
|
/** It is used to pass child nodes, string values and number as child components. */
|