@movable/ui 3.18.1 → 3.19.0

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.
@@ -0,0 +1,25 @@
1
+ import { AlertProps } from '@mui/material/Alert';
2
+ export type InkAlertProps = {
3
+ /**
4
+ * The title of the alert (optional)
5
+ */
6
+ title?: string;
7
+ /**
8
+ * The message content of the alert (optional)
9
+ */
10
+ message?: string | React.ReactNode;
11
+ /**
12
+ * Additional props to pass to the underlying Alert component
13
+ */
14
+ alertProps?: Omit<AlertProps, 'children'>;
15
+ /**
16
+ * Test selector for the alert
17
+ */
18
+ testSelector?: string;
19
+ };
20
+ /**
21
+ * InkAlert component provides a consistent way to display alerts with proper
22
+ * alignment and styling. It handles the vertical alignment issues when
23
+ * using title and/or message by applying appropriate styles.
24
+ */
25
+ export declare function InkAlert({ title, message, alertProps, testSelector, }: InkAlertProps): import("react/jsx-runtime").JSX.Element;
@@ -1 +1,2 @@
1
1
  export { InkHighlightAlert } from './InkHighlightAlert';
2
+ export { InkAlert, type InkAlertProps } from './InkAlert';
@@ -27,4 +27,4 @@ export { InkChart } from './InkChart';
27
27
  export { InkCard } from './InkCard';
28
28
  export { InkGridToolBar } from './InkGridToolBar';
29
29
  export { InkDataGrid, InkDataGridEmpty, InkDataGridTextWrapCell, createEmptyColumns, createTextWrapColumn, type InkDataGridProps, type InkDataGridEmptyProps, type InkDataGridTextWrapCellProps, } from './InkDataGrid';
30
- export { InkHighlightAlert } from './Alert';
30
+ export { InkHighlightAlert, InkAlert, type InkAlertProps } from './Alert';
package/lib/index.d.ts CHANGED
@@ -333,6 +333,32 @@ declare type IndexLayoutProps = Grid2Props & {
333
333
  children: React.ReactNode;
334
334
  };
335
335
 
336
+ /**
337
+ * InkAlert component provides a consistent way to display alerts with proper
338
+ * alignment and styling. It handles the vertical alignment issues when
339
+ * using title and/or message by applying appropriate styles.
340
+ */
341
+ export declare function InkAlert({ title, message, alertProps, testSelector, }: InkAlertProps): JSX_2.Element;
342
+
343
+ export declare type InkAlertProps = {
344
+ /**
345
+ * The title of the alert (optional)
346
+ */
347
+ title?: string;
348
+ /**
349
+ * The message content of the alert (optional)
350
+ */
351
+ message?: string | React.ReactNode;
352
+ /**
353
+ * Additional props to pass to the underlying Alert component
354
+ */
355
+ alertProps?: Omit<AlertProps_2, 'children'>;
356
+ /**
357
+ * Test selector for the alert
358
+ */
359
+ testSelector?: string;
360
+ };
361
+
336
362
  export declare function InkAttributeList({ label, attributes, ...listProps }: InkAttributeListProps): JSX_2.Element;
337
363
 
338
364
  declare type InkAttributeListProps = ListProps & {