@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.
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/types/components/DataGrid/DataGrid.overrides.d.ts +0 -1
- package/dist/cjs/types/components/Typography/Typography-legacy.overrides.d.ts +11 -0
- package/dist/cjs/types/global/overrides/index.d.ts +0 -2
- package/dist/cjs/types/global/providers/AlertProvider/AlertProvider.d.ts +6 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/types/components/DataGrid/DataGrid.overrides.d.ts +0 -1
- package/dist/esm/types/components/Typography/Typography-legacy.overrides.d.ts +11 -0
- package/dist/esm/types/global/overrides/index.d.ts +0 -2
- package/dist/esm/types/global/providers/AlertProvider/AlertProvider.d.ts +6 -2
- package/dist/index.d.ts +5 -1
- package/package.json +2 -2
- package/dist/cjs/types/global/overrides/menuItem.d.ts +0 -2
- package/dist/cjs/types/global/overrides/tablePagination.d.ts +0 -2
- package/dist/esm/types/global/overrides/menuItem.d.ts +0 -2
- package/dist/esm/types/global/overrides/tablePagination.d.ts +0 -2
|
@@ -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,9 +1,13 @@
|
|
|
1
|
-
import {
|
|
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--
|
|
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 {};
|
package/dist/index.d.ts
CHANGED
|
@@ -2701,6 +2701,10 @@ declare type CreateAlertProps = {
|
|
|
2701
2701
|
title?: string;
|
|
2702
2702
|
message: string | ElementType;
|
|
2703
2703
|
type?: AlertColor;
|
|
2704
|
+
/**
|
|
2705
|
+
* set optional duration param to modify alert duration. Default=4000ms
|
|
2706
|
+
*/
|
|
2707
|
+
duration?: number;
|
|
2704
2708
|
};
|
|
2705
2709
|
declare type DisplayAlertProps = CreateAlertProps & {
|
|
2706
2710
|
id: string;
|
|
@@ -2713,7 +2717,7 @@ declare type ContextState = {
|
|
|
2713
2717
|
animationTime: number;
|
|
2714
2718
|
};
|
|
2715
2719
|
/**
|
|
2716
|
-
* Documentation: https://up-components.up42.com/?path=/docs/feedback-alert-usealert--
|
|
2720
|
+
* Documentation: https://up-components.up42.com/?path=/docs/feedback-alert-usealert--docs
|
|
2717
2721
|
*/
|
|
2718
2722
|
declare const useAlert: () => ContextState;
|
|
2719
2723
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@up42/up-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.1",
|
|
4
4
|
"description": "UP42 Component Library",
|
|
5
5
|
"author": "Axel Fuhrmann axel.fuhrmann@up42.com",
|
|
6
6
|
"license": "ISC",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"format": "prettier --write ./**/*.mdx"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@up42/design-system-tokens": "^5.
|
|
31
|
+
"@up42/design-system-tokens": "^5.1.1",
|
|
32
32
|
"dayjs": "^1.11.7",
|
|
33
33
|
"prismjs": "^1.29.0"
|
|
34
34
|
},
|