@hexure/ui 1.8.17 → 1.9.1

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.
@@ -44,3 +44,9 @@ export declare const FontSizes: {
44
44
  DEFAULT: string;
45
45
  SMALL: string;
46
46
  };
47
+ export declare const EditableTheme: {
48
+ PRIMARY_COLOR: {
49
+ Hex: string;
50
+ Rgb: string;
51
+ };
52
+ };
@@ -24,6 +24,8 @@ export interface InputProps extends AccessibleProps {
24
24
  onChange?: (e?: any) => void;
25
25
  /** A method to be called when the use presses a key */
26
26
  onKeyDown?: (e?: any) => void;
27
+ /** A method to be called when a suggested value is selected */
28
+ onSuggestedSelect?: (e?: any) => void;
27
29
  /** Display placeholder text in the input */
28
30
  placeholder?: string;
29
31
  /** Display the input as read only, preventing the user from inteacting with it */
@@ -36,6 +38,8 @@ export interface InputProps extends AccessibleProps {
36
38
  type?: 'date' | 'datetime-local' | 'email' | 'number' | 'password' | 'tel' | 'text' | 'url' | 'textarea' | 'search';
37
39
  /** Set the value of the input. This should be used by the parent component to control the input's value. */
38
40
  value?: string;
41
+ /** Display a list of suggested values to pick from. This should be used with the onChange or onKeyDown event handlers. Doesn't work with textarea inputs. */
42
+ suggestedValues?: string[];
39
43
  }
40
44
  declare const Input: FC<InputProps>;
41
45
  export default Input;
@@ -16,8 +16,10 @@ export interface ModalProps extends AccessibleProps {
16
16
  secondaryButton?: ButtonProps;
17
17
  /** Defines a button to be displayed on the far left of the bottom button bar */
18
18
  tertiaryButton?: ButtonProps;
19
- /** Overrides the default max width of the modal (90vw) */
19
+ /** Overrides the default max width of the modal (900px) */
20
20
  maxWidth?: string;
21
+ /** Ignore all width/height configuration and display the modal over the entire window with a 40px padding around the edges */
22
+ fullscreen?: boolean;
21
23
  /** It is used to pass child nodes, string values and number as child components. */
22
24
  children: ReactNode;
23
25
  /** It is used to give title. */
package/dist/index.d.ts CHANGED
@@ -319,6 +319,8 @@ interface InputProps extends AccessibleProps {
319
319
  onChange?: (e?: any) => void;
320
320
  /** A method to be called when the use presses a key */
321
321
  onKeyDown?: (e?: any) => void;
322
+ /** A method to be called when a suggested value is selected */
323
+ onSuggestedSelect?: (e?: any) => void;
322
324
  /** Display placeholder text in the input */
323
325
  placeholder?: string;
324
326
  /** Display the input as read only, preventing the user from inteacting with it */
@@ -331,6 +333,8 @@ interface InputProps extends AccessibleProps {
331
333
  type?: 'date' | 'datetime-local' | 'email' | 'number' | 'password' | 'tel' | 'text' | 'url' | 'textarea' | 'search';
332
334
  /** Set the value of the input. This should be used by the parent component to control the input's value. */
333
335
  value?: string;
336
+ /** Display a list of suggested values to pick from. This should be used with the onChange or onKeyDown event handlers. Doesn't work with textarea inputs. */
337
+ suggestedValues?: string[];
334
338
  }
335
339
  declare const Input: FC<InputProps>;
336
340
 
@@ -378,8 +382,10 @@ interface ModalProps extends AccessibleProps {
378
382
  secondaryButton?: ButtonProps;
379
383
  /** Defines a button to be displayed on the far left of the bottom button bar */
380
384
  tertiaryButton?: ButtonProps;
381
- /** Overrides the default max width of the modal (90vw) */
385
+ /** Overrides the default max width of the modal (900px) */
382
386
  maxWidth?: string;
387
+ /** Ignore all width/height configuration and display the modal over the entire window with a 40px padding around the edges */
388
+ fullscreen?: boolean;
383
389
  /** It is used to pass child nodes, string values and number as child components. */
384
390
  children: ReactNode;
385
391
  /** It is used to give title. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexure/ui",
3
- "version": "1.8.17",
3
+ "version": "1.9.1",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",