@hexure/ui 1.3.5 → 1.3.7
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 +42 -39
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Input/Input.d.ts +1 -1
- package/dist/cjs/types/components/Modal/Modal.d.ts +6 -2
- package/dist/cjs/types/components/Tabs/Tabs.d.ts +3 -1
- package/dist/esm/index.js +42 -39
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Input/Input.d.ts +1 -1
- package/dist/esm/types/components/Modal/Modal.d.ts +6 -2
- package/dist/esm/types/components/Tabs/Tabs.d.ts +3 -1
- package/dist/index.d.ts +10 -4
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ export interface InputProps extends AccessibleProps {
|
|
|
14
14
|
placeholder?: string;
|
|
15
15
|
readOnly?: boolean;
|
|
16
16
|
step?: number;
|
|
17
|
-
type?: 'email' | 'number' | 'password' | 'tel' | 'text' | 'url' | 'textarea';
|
|
17
|
+
type?: 'date' | 'email' | 'number' | 'password' | 'tel' | 'text' | 'url' | 'textarea';
|
|
18
18
|
value?: string;
|
|
19
19
|
}
|
|
20
20
|
declare const Input: FC<InputProps>;
|
|
@@ -8,10 +8,14 @@ interface ButtonProps {
|
|
|
8
8
|
tabIndex?: number;
|
|
9
9
|
}
|
|
10
10
|
export interface ModalProps extends AccessibleProps {
|
|
11
|
-
|
|
11
|
+
/** Defines a button to be displayed on the far right of the bottom button bar */
|
|
12
|
+
primaryButton?: ButtonProps;
|
|
13
|
+
/** Defines a button to be displayed to the left of the primary button. Should only be used if primary button is used */
|
|
12
14
|
secondaryButton?: ButtonProps;
|
|
15
|
+
/** Defines a button to be displayed on the far left of the bottom button bar */
|
|
13
16
|
tertiaryButton?: ButtonProps;
|
|
14
|
-
|
|
17
|
+
/** Overrides the default max width of the modal (90vw) */
|
|
18
|
+
maxWidth?: string;
|
|
15
19
|
/** It is used to pass child nodes, string values and number as child components. */
|
|
16
20
|
children: ReactNode;
|
|
17
21
|
/** It is used to give title. */
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { AccessibleProps } from '../../utils/Accessibility';
|
|
3
3
|
interface TabProps extends AccessibleProps {
|
|
4
|
+
badgeCount?: number;
|
|
5
|
+
errorBadge?: boolean;
|
|
4
6
|
label: string;
|
|
5
|
-
onClick
|
|
7
|
+
onClick?: (e?: any) => void;
|
|
6
8
|
isActive?: boolean;
|
|
7
9
|
}
|
|
8
10
|
export interface TabsProps extends AccessibleProps {
|
package/dist/index.d.ts
CHANGED
|
@@ -230,7 +230,7 @@ interface InputProps extends AccessibleProps {
|
|
|
230
230
|
placeholder?: string;
|
|
231
231
|
readOnly?: boolean;
|
|
232
232
|
step?: number;
|
|
233
|
-
type?: 'email' | 'number' | 'password' | 'tel' | 'text' | 'url' | 'textarea';
|
|
233
|
+
type?: 'date' | 'email' | 'number' | 'password' | 'tel' | 'text' | 'url' | 'textarea';
|
|
234
234
|
value?: string;
|
|
235
235
|
}
|
|
236
236
|
declare const Input: FC<InputProps>;
|
|
@@ -249,10 +249,14 @@ interface ButtonProps {
|
|
|
249
249
|
tabIndex?: number;
|
|
250
250
|
}
|
|
251
251
|
interface ModalProps extends AccessibleProps {
|
|
252
|
-
|
|
252
|
+
/** Defines a button to be displayed on the far right of the bottom button bar */
|
|
253
|
+
primaryButton?: ButtonProps;
|
|
254
|
+
/** Defines a button to be displayed to the left of the primary button. Should only be used if primary button is used */
|
|
253
255
|
secondaryButton?: ButtonProps;
|
|
256
|
+
/** Defines a button to be displayed on the far left of the bottom button bar */
|
|
254
257
|
tertiaryButton?: ButtonProps;
|
|
255
|
-
|
|
258
|
+
/** Overrides the default max width of the modal (90vw) */
|
|
259
|
+
maxWidth?: string;
|
|
256
260
|
/** It is used to pass child nodes, string values and number as child components. */
|
|
257
261
|
children: ReactNode;
|
|
258
262
|
/** It is used to give title. */
|
|
@@ -375,8 +379,10 @@ interface TableProps extends AccessibleProps {
|
|
|
375
379
|
declare const Table: FC<TableProps>;
|
|
376
380
|
|
|
377
381
|
interface TabProps extends AccessibleProps {
|
|
382
|
+
badgeCount?: number;
|
|
383
|
+
errorBadge?: boolean;
|
|
378
384
|
label: string;
|
|
379
|
-
onClick
|
|
385
|
+
onClick?: (e?: any) => void;
|
|
380
386
|
isActive?: boolean;
|
|
381
387
|
}
|
|
382
388
|
interface TabsProps extends AccessibleProps {
|