@up42/up-components 1.12.1 → 1.13.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.
@@ -1,3 +1,2 @@
1
1
  import { OverridesStyleRules } from '@mui/material/styles/overrides';
2
2
  export declare const MuiDataGrid: OverridesStyleRules;
3
- export declare const MuiTablePagination: OverridesStyleRules;
@@ -0,0 +1,11 @@
1
+ import { TypographyOptions } from '@mui/material/styles/createTypography';
2
+ /**
3
+ * @deprecated in favor of Douglas typography conventions
4
+ * @see https://up-components.up42.com/?path=/docs/tokens-typography--docs
5
+ *
6
+ * This theme relies on deprecated tokens and overrides MUI default styles.
7
+ * It should be removed once these tokens are fully deprecated.
8
+ *
9
+ * The updated theme adheres to a new convention, avoiding overrides of MUI default styles.
10
+ */
11
+ export declare const legacyTypography: TypographyOptions;
@@ -1,3 +1 @@
1
- export * from './menuItem';
2
- export * from './tablePagination';
3
1
  export * from './form/label';
@@ -1,9 +1,13 @@
1
- import { ReactNode, ElementType } from 'react';
1
+ import { ElementType, ReactNode } from 'react';
2
2
  import { AlertColor } from '../../../components/Alert/Alert';
3
3
  export declare type CreateAlertProps = {
4
4
  title?: string;
5
5
  message: string | ElementType;
6
6
  type?: AlertColor;
7
+ /**
8
+ * set optional duration param to modify alert duration. Default=4000ms
9
+ */
10
+ duration?: number;
7
11
  };
8
12
  export declare type DisplayAlertProps = CreateAlertProps & {
9
13
  id: string;
@@ -19,7 +23,7 @@ export declare const AlertProvider: ({ children }: {
19
23
  children: ReactNode;
20
24
  }) => JSX.Element;
21
25
  /**
22
- * Documentation: https://up-components.up42.com/?path=/docs/feedback-alert-usealert--create-alert--docs
26
+ * Documentation: https://up-components.up42.com/?path=/docs/feedback-alert-usealert--docs
23
27
  */
24
28
  export declare const useAlert: () => ContextState;
25
29
  export {};