@internxt/ui 0.0.26 → 0.0.27

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.
@@ -5,10 +5,11 @@ export interface DialogProps {
5
5
  onSecondaryAction: () => void;
6
6
  title: string;
7
7
  subtitle: string;
8
- primaryAction: string;
9
- secondaryAction: string;
8
+ primaryAction: string | JSX.Element;
9
+ secondaryAction: string | JSX.Element;
10
10
  primaryActionColor: 'primary' | 'danger';
11
11
  isLoading?: boolean;
12
+ maxWidth?: 'sm' | 'md' | 'lg';
12
13
  }
13
14
  /**
14
15
  * Dialog component
@@ -31,11 +32,11 @@ export interface DialogProps {
31
32
  * @property {string} subtitle
32
33
  * - A subtitle for the dialog, displayed below the title.
33
34
  *
34
- * @property {string} primaryAction
35
- * - The label for the primary action button.
35
+ * @property {string | JSX.Element} primaryAction
36
+ * - The label or content for the primary action button.
36
37
  *
37
38
  * @property {string} secondaryAction
38
- * - The label for the secondary action button.
39
+ * - The label or content for the secondary action button.
39
40
  *
40
41
  * @property {('primary' | 'danger')} primaryActionColor
41
42
  * - Defines the color of the primary action button. Can either be 'primary' or 'danger'.
@@ -43,8 +44,11 @@ export interface DialogProps {
43
44
  * @property {boolean} [isLoading]
44
45
  * - Optional flag to indicate if the buttons should show a loading state. Defaults to false.
45
46
  *
47
+ * @property {'sm' | 'md' | 'lg'} [maxWidth]
48
+ * - Optional maximum width for the dialog. Can be 'sm', 'md', or 'lg'.
49
+ *
46
50
  * @returns {JSX.Element}
47
51
  * - The rendered dialog component.
48
52
  */
49
- declare const Dialog: ({ isOpen, onClose, onPrimaryAction, onSecondaryAction, title, subtitle, primaryAction, secondaryAction, primaryActionColor, isLoading, }: DialogProps) => JSX.Element;
53
+ declare const Dialog: ({ isOpen, onClose, onPrimaryAction, onSecondaryAction, title, subtitle, primaryAction, secondaryAction, primaryActionColor, isLoading, maxWidth, }: DialogProps) => JSX.Element;
50
54
  export default Dialog;
@@ -22,6 +22,7 @@ export * from './popover';
22
22
  export * from './radioButton';
23
23
  export * from './skeletonLoader';
24
24
  export * from './slider';
25
+ export * from './suiteLauncher';
25
26
  export * from './switch';
26
27
  export * from './table/Table';
27
28
  export * from './textArea';
@@ -0,0 +1,31 @@
1
+ export interface SuiteLauncherProps {
2
+ className?: string;
3
+ suiteArray: {
4
+ icon: JSX.Element;
5
+ title: string;
6
+ onClick: () => void;
7
+ isMain?: boolean;
8
+ availableSoon?: boolean;
9
+ isLocked?: boolean;
10
+ }[];
11
+ soonText?: string;
12
+ }
13
+ /**
14
+ * SuiteLauncher renders a dropdown menu with a list of suite applications.
15
+ *
16
+ * @param {suiteLauncherProps} props
17
+ * - Object containing properties for the suiteLauncher component.
18
+ *
19
+ * @param {suiteLauncherProps['suiteArray']} props.suiteArray
20
+ * - Array of objects containing the suite applications.
21
+ *
22
+ * @param {string} [props.className]
23
+ * - Optional CSS class name for the suiteLauncher component.
24
+ *
25
+ * @param {string} [props.soonText]
26
+ * - Optional text to display when a suite application is available soon. It should be a translated string. Defaults to "Soon".
27
+ *
28
+ * @returns {JSX.Element}
29
+ * - The rendered suiteLauncher component.
30
+ */
31
+ export default function SuiteLauncher({ className, suiteArray, soonText, }: Readonly<SuiteLauncherProps>): JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { default as SuiteLauncher } from './SuiteLauncher';
2
+ export type { SuiteLauncherProps } from './SuiteLauncher';