@hexure/ui 1.3.5 → 1.3.6
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.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/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/index.d.ts +7 -3
- 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. */
|
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. */
|