@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.
@@ -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
- primaryButton: ButtonProps;
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
- maxWidth?: string | number;
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
- primaryButton: ButtonProps;
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
- maxWidth?: string | number;
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. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexure/ui",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",