@majoo-ui/react 1.52.2-rc.1 → 1.52.2

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/README.md CHANGED
@@ -1,7 +1,7 @@
1
- React
2
-
3
- This library was generated with [Nx](https://nx.dev).
4
-
5
- Running unit tests
6
-
7
- Run `nx test react` to execute the unit tests via [Jest](https://jestjs.io).
1
+ React
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ Running unit tests
6
+
7
+ Run `nx test react` to execute the unit tests via [Jest](https://jestjs.io).
@@ -7,6 +7,10 @@ declare const EnumTypeDevice: {
7
7
  readonly desktop: "desktop";
8
8
  };
9
9
  declare type EnumTypeDevice = typeof EnumTypeDevice[keyof typeof EnumTypeDevice];
10
+ interface ContentMessage {
11
+ sender?: string;
12
+ message: string;
13
+ }
10
14
  interface Props {
11
15
  /**
12
16
  * set size of frame device.
@@ -38,6 +42,15 @@ interface Props {
38
42
  * @default false
39
43
  */
40
44
  withComponent?: boolean;
45
+ /**
46
+ * option device preview variant
47
+ * @default 'default'
48
+ */
49
+ variant: 'sms' | 'whatsapp' | 'email' | 'notification' | 'default';
50
+ /**
51
+ * Message content if variant is `'sms' | 'whatsapp' | 'email' | 'notification'`
52
+ **/
53
+ content?: ContentMessage;
41
54
  }
42
55
  export declare const ImageDevicePreview: import("@stitches/react/types/styled-component").StyledComponent<"img", {}, {
43
56
  sm: "(min-width: 359px)";
@@ -691,11 +691,15 @@ interface InputSelectProps extends Omit<DownshiftProps<Option>, 'initialSelected
691
691
  * If true, the input will become invalid state.
692
692
  */
693
693
  isInvalid?: boolean;
694
+ /**
695
+ * If true, the tooltip will shown when the component hovered
696
+ */
697
+ showTooltip?: boolean;
694
698
  /**
695
699
  * Deprecated in v1.46.7. Use 'hideArrowIcon' instead.
696
700
  */
697
701
  noOptionIcon?: boolean;
698
702
  css?: CSS;
699
703
  }
700
- export declare function InputSelect({ option, onChange, value, placeholder, searchPlaceholder, embedSearch, size, disabled, search, iconColor, hideArrowicon, showLeadingIcon, placement, disabledOptions, textSelector, valueSelector, readOnly, isInvalid, noOptionIcon, fetchData, onSearch, isLoading, css, ...props }: InputSelectProps): JSX.Element;
704
+ export declare function InputSelect({ option, onChange, value, placeholder, searchPlaceholder, embedSearch, size, disabled, search, iconColor, hideArrowicon, showLeadingIcon, placement, disabledOptions, textSelector, valueSelector, readOnly, isInvalid, noOptionIcon, fetchData, onSearch, isLoading, showTooltip, css, ...props }: InputSelectProps): JSX.Element;
701
705
  export default InputSelect;
@@ -402,6 +402,10 @@ interface ModalDialogProps extends IDialog, DialogContentProps {
402
402
  * If true, the close icon button is hidden
403
403
  */
404
404
  hideCloseButton?: boolean;
405
+ /**
406
+ * If true, the close icon button is disabled
407
+ */
408
+ disabledCloseButton?: boolean;
405
409
  }
406
410
  /**
407
411
  * ModalDialog are used to focus and display content that contains one specific task that requires interaction from the user and is separate from the main page.