@astral/ui 1.14.0 → 1.15.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.
- package/Badge/Badge.d.ts +1 -2
- package/Badge/Badge.js +2 -1
- package/ConfigProvider/ConfigProvider.d.ts +10 -0
- package/ConfigProvider/ConfigProvider.js +35 -0
- package/ConfigProvider/index.d.ts +1 -0
- package/ConfigProvider/index.js +17 -0
- package/ContentState/ContentState.d.ts +2 -2
- package/ContentState/ContentState.js +11 -6
- package/DataGrid/DataGridHeadColumn/styles.d.ts +5 -1
- package/DataGrid/DataGridNoData/styles.d.ts +3 -4
- package/DataGridPagination/styles.d.ts +5 -1
- package/DatePicker/DatePicker.d.ts +1 -1
- package/DatePicker/DatePicker.js +2 -2
- package/DatePicker/DatePickerHeader/DatePickerHeader.js +3 -3
- package/DatePicker/DatePickerHeader/styled.d.ts +5 -1
- package/DatePickerProvider/DatePickerProvider.d.ts +4 -13
- package/DatePickerProvider/DatePickerProvider.js +11 -22
- package/ErrorBoundary/ErrorBoundary.d.ts +18 -0
- package/ErrorBoundary/ErrorBoundary.js +64 -0
- package/ErrorBoundary/index.d.ts +1 -0
- package/ErrorBoundary/index.js +17 -0
- package/MenuGroup/stories/styled.d.ts +5 -1
- package/MenuGroup/styled.d.ts +5 -1
- package/Notification/NotificationTemplate/styled.d.ts +5 -1
- package/OverflowTypography/styles.d.ts +5 -1
- package/Placeholder/styles.d.ts +10 -2
- package/Placeholder/styles.js +1 -1
- package/Typography/Typography.d.ts +26 -3
- package/Typography/index.d.ts +0 -1
- package/Typography/index.js +0 -1
- package/docs/Case/Case.d.ts +8 -0
- package/docs/Case/Case.js +31 -0
- package/docs/Case/index.d.ts +1 -0
- package/docs/Case/index.js +17 -0
- package/docs/Case/styles.d.ts +5 -0
- package/docs/Case/styles.js +16 -0
- package/docs/ExampleTemplate/ExampleTemplate.d.ts +13 -0
- package/docs/ExampleTemplate/ExampleTemplate.js +26 -0
- package/docs/ExampleTemplate/index.d.ts +1 -0
- package/docs/ExampleTemplate/index.js +17 -0
- package/docs/ExampleTemplate/styles.d.ts +9 -0
- package/docs/ExampleTemplate/styles.js +13 -0
- package/docs/index.d.ts +2 -0
- package/docs/index.js +18 -0
- package/esm/Badge/Badge.d.ts +1 -2
- package/esm/Badge/Badge.js +1 -2
- package/esm/ConfigProvider/ConfigProvider.d.ts +10 -0
- package/esm/ConfigProvider/ConfigProvider.js +28 -0
- package/esm/ConfigProvider/index.d.ts +1 -0
- package/esm/ConfigProvider/index.js +1 -0
- package/esm/ContentState/ContentState.d.ts +2 -2
- package/esm/ContentState/ContentState.js +10 -8
- package/esm/DataGrid/DataGridHeadColumn/styles.d.ts +5 -1
- package/esm/DataGrid/DataGridNoData/styles.d.ts +3 -4
- package/esm/DataGridPagination/styles.d.ts +5 -1
- package/esm/DatePicker/DatePicker.d.ts +1 -1
- package/esm/DatePicker/DatePicker.js +2 -2
- package/esm/DatePicker/DatePickerHeader/DatePickerHeader.js +3 -3
- package/esm/DatePicker/DatePickerHeader/styled.d.ts +5 -1
- package/esm/DatePickerProvider/DatePickerProvider.d.ts +4 -13
- package/esm/DatePickerProvider/DatePickerProvider.js +11 -19
- package/esm/ErrorBoundary/ErrorBoundary.d.ts +18 -0
- package/esm/ErrorBoundary/ErrorBoundary.js +59 -0
- package/esm/ErrorBoundary/index.d.ts +1 -0
- package/esm/ErrorBoundary/index.js +1 -0
- package/esm/MenuGroup/stories/styled.d.ts +5 -1
- package/esm/MenuGroup/styled.d.ts +5 -1
- package/esm/Notification/NotificationTemplate/styled.d.ts +5 -1
- package/esm/OverflowTypography/styles.d.ts +5 -1
- package/esm/Placeholder/styles.d.ts +10 -2
- package/esm/Placeholder/styles.js +1 -1
- package/esm/Typography/Typography.d.ts +26 -3
- package/esm/Typography/Typography.js +1 -1
- package/esm/Typography/index.d.ts +0 -1
- package/esm/Typography/index.js +0 -1
- package/esm/docs/Case/Case.d.ts +8 -0
- package/esm/docs/Case/Case.js +27 -0
- package/esm/docs/Case/index.d.ts +1 -0
- package/esm/docs/Case/index.js +1 -0
- package/esm/docs/Case/styles.d.ts +5 -0
- package/esm/docs/Case/styles.js +13 -0
- package/esm/docs/ExampleTemplate/ExampleTemplate.d.ts +13 -0
- package/esm/docs/ExampleTemplate/ExampleTemplate.js +22 -0
- package/esm/docs/ExampleTemplate/index.d.ts +1 -0
- package/esm/docs/ExampleTemplate/index.js +1 -0
- package/esm/docs/ExampleTemplate/styles.d.ts +9 -0
- package/esm/docs/ExampleTemplate/styles.js +10 -0
- package/esm/docs/index.d.ts +2 -0
- package/esm/docs/index.js +2 -0
- package/esm/index.d.ts +2 -1
- package/esm/index.js +2 -1
- package/esm/theme/{baseTheme.d.ts → baseTheme/baseTheme.d.ts} +3 -3
- package/esm/theme/{baseTheme.js → baseTheme/baseTheme.js} +7 -7
- package/esm/{Typography/types.js → theme/baseTheme/baseTheme.test.d.ts} +0 -0
- package/esm/theme/{__tests__/BaseTheme.test.js → baseTheme/baseTheme.test.js} +1 -1
- package/esm/theme/baseTheme/index.d.ts +1 -0
- package/esm/theme/baseTheme/index.js +1 -0
- package/index.d.ts +2 -1
- package/index.js +2 -1
- package/package.json +2 -7
- package/theme/{baseTheme.d.ts → baseTheme/baseTheme.d.ts} +3 -3
- package/theme/{baseTheme.js → baseTheme/baseTheme.js} +7 -7
- package/{esm/theme/__tests__/BaseTheme.test.d.ts → theme/baseTheme/baseTheme.test.d.ts} +0 -0
- package/theme/{__tests__/BaseTheme.test.js → baseTheme/baseTheme.test.js} +1 -1
- package/theme/baseTheme/index.d.ts +1 -0
- package/theme/baseTheme/index.js +17 -0
- package/Typography/types.d.ts +0 -25
- package/Typography/types.js +0 -2
- package/esm/Typography/types.d.ts +0 -25
- package/theme/__tests__/BaseTheme.test.d.ts +0 -1
|
@@ -11,10 +11,18 @@ export declare const PlaceholderImage: import("@emotion/styled").StyledComponent
|
|
|
11
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
12
12
|
as?: import("react").ElementType<any> | undefined;
|
|
13
13
|
}, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
14
|
-
export declare const PlaceholderTitle: import("@emotion/styled").StyledComponent<
|
|
14
|
+
export declare const PlaceholderTitle: import("@emotion/styled").StyledComponent<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
|
|
15
|
+
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
16
|
+
component?: import("react").ElementType<any> | undefined;
|
|
17
|
+
color?: "primary" | "secondary" | "error" | "warning" | "info" | "success" | "text" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
18
|
+
} & {
|
|
15
19
|
theme?: import("@emotion/react").Theme | undefined;
|
|
16
20
|
}, {}, {}>;
|
|
17
|
-
export declare const PlaceholderDescription: import("@emotion/styled").StyledComponent<
|
|
21
|
+
export declare const PlaceholderDescription: import("@emotion/styled").StyledComponent<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
|
|
22
|
+
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
23
|
+
component?: import("react").ElementType<any> | undefined;
|
|
24
|
+
color?: "primary" | "secondary" | "error" | "warning" | "info" | "success" | "text" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
25
|
+
} & {
|
|
18
26
|
theme?: import("@emotion/react").Theme | undefined;
|
|
19
27
|
}, {}, {}>;
|
|
20
28
|
export declare const PlaceholderActions: import("@emotion/styled").StyledComponent<{
|
|
@@ -12,7 +12,7 @@ export var PlaceholderRoot = styled.div(templateObject_1 || (templateObject_1 =
|
|
|
12
12
|
return theme.palette.background.paper;
|
|
13
13
|
});
|
|
14
14
|
export var PlaceholderInnerContainer = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n max-width: 384px;\n"], ["\n max-width: 384px;\n"])));
|
|
15
|
-
export var PlaceholderImage = styled.img(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: block;\n width: 100%;\n height: 162px;\n margin: auto
|
|
15
|
+
export var PlaceholderImage = styled.img(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: block;\n width: 100%;\n height: 162px;\n margin: auto auto ", ";\n"], ["\n display: block;\n width: 100%;\n height: 162px;\n margin: auto auto ", ";\n"])), function (_a) {
|
|
16
16
|
var theme = _a.theme;
|
|
17
17
|
return theme.spacing(8);
|
|
18
18
|
});
|
|
@@ -1,4 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { TypographyPropsVariantOverrides, TypographyTypeMap } from '@mui/material';
|
|
2
|
+
import { OverrideProps } from '@mui/material/OverridableComponent';
|
|
3
|
+
import { Variant } from '@mui/material/styles/createTypography';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { Theme } from '../theme';
|
|
6
|
+
import { TypographyColors } from './enums';
|
|
7
|
+
export declare type TypographyColor = keyof typeof TypographyColors;
|
|
8
|
+
export declare type TypographyProps = Omit<OverrideProps<TypographyTypeMap, React.ElementType>, 'variant' | 'color'> & {
|
|
9
|
+
variant?: Variant | keyof TypographyPropsVariantOverrides;
|
|
10
|
+
component?: React.ElementType;
|
|
11
|
+
color?: TypographyColor | ((theme: Theme) => string);
|
|
12
|
+
};
|
|
13
|
+
declare module '@mui/material/Typography' {
|
|
14
|
+
interface TypographyPropsVariantOverrides {
|
|
15
|
+
h7: true;
|
|
16
|
+
h8: true;
|
|
17
|
+
h9: true;
|
|
18
|
+
ui: true;
|
|
19
|
+
link: true;
|
|
20
|
+
pointer: true;
|
|
21
|
+
small: true;
|
|
22
|
+
code: true;
|
|
23
|
+
div: true;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export declare const Typography: React.FC<TypographyProps>;
|
|
4
27
|
export default Typography;
|
|
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
-
import { Typography as MuiTypography } from '@mui/material';
|
|
24
|
+
import { Typography as MuiTypography, } from '@mui/material';
|
|
25
25
|
import { forwardRef, useMemo } from 'react';
|
|
26
26
|
import { TypographyColors } from './enums';
|
|
27
27
|
export var Typography = forwardRef(function (_a, ref) {
|
package/esm/Typography/index.js
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { useMemo } from 'react';
|
|
14
|
+
import { Typography } from '../../Typography';
|
|
15
|
+
import { CaseWrapper } from './styles';
|
|
16
|
+
export var Case = function (_a) {
|
|
17
|
+
var title = _a.title, _b = _a.descriptionList, descriptionList = _b === void 0 ? [] : _b, children = _a.children;
|
|
18
|
+
var subtitles = useMemo(function () {
|
|
19
|
+
return descriptionList === null || descriptionList === void 0 ? void 0 : descriptionList.map(function (text, index) { return (_jsx(Typography, __assign({ paragraph: true }, { children: text }), index)); });
|
|
20
|
+
}, [descriptionList]);
|
|
21
|
+
return (_jsxs(CaseWrapper, { children: [_jsx(Typography, __assign({ variant: "h5", paragraph: true }, { children: title })), subtitles, _jsx("div", __assign({ style: {
|
|
22
|
+
padding: '32px 0',
|
|
23
|
+
background: '#FAFBFC',
|
|
24
|
+
border: '1px solid #DDE2E8',
|
|
25
|
+
borderRadius: 3,
|
|
26
|
+
} }, { children: children }))] }));
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Case';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Case';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const CaseWrapper: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
import { styled } from '../../styles';
|
|
6
|
+
export var CaseWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-top: ", ";\n margin-bottom: ", ";\n"], ["\n margin-top: ", ";\n margin-bottom: ", ";\n"])), function (_a) {
|
|
7
|
+
var theme = _a.theme;
|
|
8
|
+
return theme.spacing(6);
|
|
9
|
+
}, function (_a) {
|
|
10
|
+
var theme = _a.theme;
|
|
11
|
+
return theme.spacing(6);
|
|
12
|
+
});
|
|
13
|
+
var templateObject_1;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
declare type ExampleTemplateProps = {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
};
|
|
5
|
+
export declare const ExampleTemplate: {
|
|
6
|
+
({ children }: ExampleTemplateProps): JSX.Element;
|
|
7
|
+
Case: ({ title, descriptionList, children }: {
|
|
8
|
+
title: string;
|
|
9
|
+
descriptionList?: string[] | undefined;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}) => JSX.Element;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { useMediaQuery, useTheme } from '@mui/material';
|
|
14
|
+
import { Case } from '../Case';
|
|
15
|
+
import { ExampleTemplateWrapper } from './styles';
|
|
16
|
+
export var ExampleTemplate = function (_a) {
|
|
17
|
+
var children = _a.children;
|
|
18
|
+
var theme = useTheme();
|
|
19
|
+
var matches = useMediaQuery(theme.breakpoints.down('sm'));
|
|
20
|
+
return (_jsx(ExampleTemplateWrapper, __assign({ matches: matches }, { children: children })));
|
|
21
|
+
};
|
|
22
|
+
ExampleTemplate.Case = Case;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ExampleTemplate';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ExampleTemplate';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type ExampleTemplateWrapperProps = {
|
|
3
|
+
matches: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare const ExampleTemplateWrapper: import("@emotion/styled").StyledComponent<{
|
|
6
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
7
|
+
as?: import("react").ElementType<any> | undefined;
|
|
8
|
+
} & ExampleTemplateWrapperProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
import { styled } from '../../styles';
|
|
6
|
+
export var ExampleTemplateWrapper = styled.section(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", ";\n"], ["\n width: ", ";\n"])), function (_a) {
|
|
7
|
+
var matches = _a.matches;
|
|
8
|
+
return (matches ? '100%' : '70%');
|
|
9
|
+
});
|
|
10
|
+
var templateObject_1;
|
package/esm/index.d.ts
CHANGED
|
@@ -4,16 +4,17 @@ export * from './Autocomplete';
|
|
|
4
4
|
export * from './BackdropStack';
|
|
5
5
|
export * from './Badge';
|
|
6
6
|
export * from './Button';
|
|
7
|
+
export * from './DatePickerProvider';
|
|
7
8
|
export * from './Description';
|
|
8
9
|
export * from './Divider';
|
|
9
10
|
export * from './ButtonBase';
|
|
10
11
|
export * from './Checkbox';
|
|
11
12
|
export * from './CircularProgress';
|
|
13
|
+
export * from './ConfigProvider';
|
|
12
14
|
export * from './DashboardLayout';
|
|
13
15
|
export * from './DataGrid';
|
|
14
16
|
export * from './DataGridPagination';
|
|
15
17
|
export * from './DatePicker';
|
|
16
|
-
export * from './DatePickerProvider';
|
|
17
18
|
export * from './Dialog';
|
|
18
19
|
export * from './DialogActions';
|
|
19
20
|
export * from './DialogContent';
|
package/esm/index.js
CHANGED
|
@@ -4,16 +4,17 @@ export * from './Autocomplete';
|
|
|
4
4
|
export * from './BackdropStack';
|
|
5
5
|
export * from './Badge';
|
|
6
6
|
export * from './Button';
|
|
7
|
+
export * from './DatePickerProvider';
|
|
7
8
|
export * from './Description';
|
|
8
9
|
export * from './Divider';
|
|
9
10
|
export * from './ButtonBase';
|
|
10
11
|
export * from './Checkbox';
|
|
11
12
|
export * from './CircularProgress';
|
|
13
|
+
export * from './ConfigProvider';
|
|
12
14
|
export * from './DashboardLayout';
|
|
13
15
|
export * from './DataGrid';
|
|
14
16
|
export * from './DataGridPagination';
|
|
15
17
|
export * from './DatePicker';
|
|
16
|
-
export * from './DatePickerProvider';
|
|
17
18
|
export * from './Dialog';
|
|
18
19
|
export * from './DialogActions';
|
|
19
20
|
export * from './DialogContent';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BreakpointsOptions, Palette as MuiPalette, Theme as MuiTheme, PaletteColor, ThemeOptions } from '@mui/material/styles';
|
|
2
|
-
import { Background, Color } from '
|
|
3
|
-
import { FontsUrls } from '
|
|
4
|
-
import { Brand } from '
|
|
2
|
+
import { Background, Color } from '../palette';
|
|
3
|
+
import { FontsUrls } from '../components';
|
|
4
|
+
import { Brand } from '../constants';
|
|
5
5
|
export declare type Palette = Omit<MuiPalette, 'grey' | 'background'> & {
|
|
6
6
|
red: Color;
|
|
7
7
|
green: Color;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createTheme as createMuiTheme, } from '@mui/material/styles';
|
|
2
2
|
import { merge } from 'lodash-es';
|
|
3
|
-
import { typography } from '
|
|
4
|
-
import { getPalette } from '
|
|
5
|
-
import { getComponents } from '
|
|
6
|
-
import { SPACING } from '
|
|
7
|
-
import { elevation } from '
|
|
8
|
-
import { shape } from '
|
|
9
|
-
import { defaultBreakpoints } from '
|
|
3
|
+
import { typography } from '../typography';
|
|
4
|
+
import { getPalette } from '../palette';
|
|
5
|
+
import { getComponents } from '../components';
|
|
6
|
+
import { SPACING } from '../constants';
|
|
7
|
+
import { elevation } from '../elevation';
|
|
8
|
+
import { shape } from '../shape';
|
|
9
|
+
import { defaultBreakpoints } from '../breakpoints';
|
|
10
10
|
export var createTheme = function (params) {
|
|
11
11
|
var brand = params.brand, options = params.options, fontsUrls = params.fontsUrls, _a = params.breakpoints, breakpoints = _a === void 0 ? defaultBreakpoints : _a;
|
|
12
12
|
var themeOptions = {
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './baseTheme';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './baseTheme';
|
package/index.d.ts
CHANGED
|
@@ -4,16 +4,17 @@ export * from './Autocomplete';
|
|
|
4
4
|
export * from './BackdropStack';
|
|
5
5
|
export * from './Badge';
|
|
6
6
|
export * from './Button';
|
|
7
|
+
export * from './DatePickerProvider';
|
|
7
8
|
export * from './Description';
|
|
8
9
|
export * from './Divider';
|
|
9
10
|
export * from './ButtonBase';
|
|
10
11
|
export * from './Checkbox';
|
|
11
12
|
export * from './CircularProgress';
|
|
13
|
+
export * from './ConfigProvider';
|
|
12
14
|
export * from './DashboardLayout';
|
|
13
15
|
export * from './DataGrid';
|
|
14
16
|
export * from './DataGridPagination';
|
|
15
17
|
export * from './DatePicker';
|
|
16
|
-
export * from './DatePickerProvider';
|
|
17
18
|
export * from './Dialog';
|
|
18
19
|
export * from './DialogActions';
|
|
19
20
|
export * from './DialogContent';
|
package/index.js
CHANGED
|
@@ -20,16 +20,17 @@ __exportStar(require("./Autocomplete"), exports);
|
|
|
20
20
|
__exportStar(require("./BackdropStack"), exports);
|
|
21
21
|
__exportStar(require("./Badge"), exports);
|
|
22
22
|
__exportStar(require("./Button"), exports);
|
|
23
|
+
__exportStar(require("./DatePickerProvider"), exports);
|
|
23
24
|
__exportStar(require("./Description"), exports);
|
|
24
25
|
__exportStar(require("./Divider"), exports);
|
|
25
26
|
__exportStar(require("./ButtonBase"), exports);
|
|
26
27
|
__exportStar(require("./Checkbox"), exports);
|
|
27
28
|
__exportStar(require("./CircularProgress"), exports);
|
|
29
|
+
__exportStar(require("./ConfigProvider"), exports);
|
|
28
30
|
__exportStar(require("./DashboardLayout"), exports);
|
|
29
31
|
__exportStar(require("./DataGrid"), exports);
|
|
30
32
|
__exportStar(require("./DataGridPagination"), exports);
|
|
31
33
|
__exportStar(require("./DatePicker"), exports);
|
|
32
|
-
__exportStar(require("./DatePickerProvider"), exports);
|
|
33
34
|
__exportStar(require("./Dialog"), exports);
|
|
34
35
|
__exportStar(require("./DialogActions"), exports);
|
|
35
36
|
__exportStar(require("./DialogContent"), exports);
|
package/package.json
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astral/ui",
|
|
3
3
|
"browser": "./src/index.ts",
|
|
4
|
-
"jest": {
|
|
5
|
-
"moduleNameMapper": {
|
|
6
|
-
"^lodash-es$": "lodash"
|
|
7
|
-
}
|
|
8
|
-
},
|
|
9
4
|
"dependencies": {
|
|
10
|
-
"@astral/icons": "^1.
|
|
5
|
+
"@astral/icons": "^1.15.0",
|
|
11
6
|
"@emotion/cache": "11.7.1",
|
|
12
7
|
"@emotion/react": "11.9.0",
|
|
13
8
|
"@emotion/server": "11.4.0",
|
|
@@ -36,7 +31,7 @@
|
|
|
36
31
|
"require": "./server/index.js"
|
|
37
32
|
}
|
|
38
33
|
},
|
|
39
|
-
"version": "1.
|
|
34
|
+
"version": "1.15.0",
|
|
40
35
|
"author": "Astral.Soft",
|
|
41
36
|
"license": "MIT",
|
|
42
37
|
"repository": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BreakpointsOptions, Palette as MuiPalette, Theme as MuiTheme, PaletteColor, ThemeOptions } from '@mui/material/styles';
|
|
2
|
-
import { Background, Color } from '
|
|
3
|
-
import { FontsUrls } from '
|
|
4
|
-
import { Brand } from '
|
|
2
|
+
import { Background, Color } from '../palette';
|
|
3
|
+
import { FontsUrls } from '../components';
|
|
4
|
+
import { Brand } from '../constants';
|
|
5
5
|
export declare type Palette = Omit<MuiPalette, 'grey' | 'background'> & {
|
|
6
6
|
red: Color;
|
|
7
7
|
green: Color;
|
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createTheme = void 0;
|
|
4
4
|
var styles_1 = require("@mui/material/styles");
|
|
5
5
|
var lodash_es_1 = require("lodash-es");
|
|
6
|
-
var typography_1 = require("
|
|
7
|
-
var palette_1 = require("
|
|
8
|
-
var components_1 = require("
|
|
9
|
-
var constants_1 = require("
|
|
10
|
-
var elevation_1 = require("
|
|
11
|
-
var shape_1 = require("
|
|
12
|
-
var breakpoints_1 = require("
|
|
6
|
+
var typography_1 = require("../typography");
|
|
7
|
+
var palette_1 = require("../palette");
|
|
8
|
+
var components_1 = require("../components");
|
|
9
|
+
var constants_1 = require("../constants");
|
|
10
|
+
var elevation_1 = require("../elevation");
|
|
11
|
+
var shape_1 = require("../shape");
|
|
12
|
+
var breakpoints_1 = require("../breakpoints");
|
|
13
13
|
var createTheme = function (params) {
|
|
14
14
|
var brand = params.brand, options = params.options, fontsUrls = params.fontsUrls, _a = params.breakpoints, breakpoints = _a === void 0 ? breakpoints_1.defaultBreakpoints : _a;
|
|
15
15
|
var themeOptions = {
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var baseTheme_1 = require("../baseTheme");
|
|
4
3
|
var constants_1 = require("../constants");
|
|
4
|
+
var baseTheme_1 = require("./baseTheme");
|
|
5
5
|
describe('createTheme', function () {
|
|
6
6
|
var fontsUrls = {
|
|
7
7
|
bold: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './baseTheme';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./baseTheme"), exports);
|
package/Typography/types.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { OverrideProps } from '@mui/material/OverridableComponent';
|
|
2
|
-
import { TypographyPropsVariantOverrides, TypographyTypeMap } from '@mui/material/Typography';
|
|
3
|
-
import { Variant } from '@mui/material/styles/createTypography';
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import { Theme } from '../theme';
|
|
6
|
-
import { TypographyColors } from './enums';
|
|
7
|
-
declare module '@mui/material/Typography' {
|
|
8
|
-
interface TypographyPropsVariantOverrides {
|
|
9
|
-
h7: true;
|
|
10
|
-
h8: true;
|
|
11
|
-
h9: true;
|
|
12
|
-
ui: true;
|
|
13
|
-
link: true;
|
|
14
|
-
pointer: true;
|
|
15
|
-
small: true;
|
|
16
|
-
code: true;
|
|
17
|
-
div: true;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
export declare type TypographyColor = keyof typeof TypographyColors;
|
|
21
|
-
export declare type TypographyProps = Omit<OverrideProps<TypographyTypeMap, React.ElementType>, 'variant' | 'color'> & {
|
|
22
|
-
variant?: Variant | keyof TypographyPropsVariantOverrides;
|
|
23
|
-
component?: React.ElementType;
|
|
24
|
-
color?: TypographyColor | ((theme: Theme) => string);
|
|
25
|
-
};
|
package/Typography/types.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { OverrideProps } from '@mui/material/OverridableComponent';
|
|
2
|
-
import { TypographyPropsVariantOverrides, TypographyTypeMap } from '@mui/material/Typography';
|
|
3
|
-
import { Variant } from '@mui/material/styles/createTypography';
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import { Theme } from '../theme';
|
|
6
|
-
import { TypographyColors } from './enums';
|
|
7
|
-
declare module '@mui/material/Typography' {
|
|
8
|
-
interface TypographyPropsVariantOverrides {
|
|
9
|
-
h7: true;
|
|
10
|
-
h8: true;
|
|
11
|
-
h9: true;
|
|
12
|
-
ui: true;
|
|
13
|
-
link: true;
|
|
14
|
-
pointer: true;
|
|
15
|
-
small: true;
|
|
16
|
-
code: true;
|
|
17
|
-
div: true;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
export declare type TypographyColor = keyof typeof TypographyColors;
|
|
21
|
-
export declare type TypographyProps = Omit<OverrideProps<TypographyTypeMap, React.ElementType>, 'variant' | 'color'> & {
|
|
22
|
-
variant?: Variant | keyof TypographyPropsVariantOverrides;
|
|
23
|
-
component?: React.ElementType;
|
|
24
|
-
color?: TypographyColor | ((theme: Theme) => string);
|
|
25
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|