@mailstep/design-system 0.8.15 → 0.8.16-beta.10
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/package.json +12 -6
- package/ui/Blocks/CommonGrid/components/ControlButtons/styles.d.ts +1 -0
- package/ui/Blocks/CommonGrid/components/Filters/GridSelect/GridSelect.js +2 -2
- package/ui/Blocks/CommonGrid/components/Filters/TextRange/TextRange.js +1 -1
- package/ui/Blocks/CommonGrid/components/IconList/IconList.d.ts +1 -1
- package/ui/Blocks/CommonGrid/components/ManageColumnForm/styles.d.ts +2 -2
- package/ui/Blocks/CommonGrid/components/Table.d.ts +28 -28
- package/ui/Blocks/CommonGrid/components/Table.js +1 -1
- package/ui/Blocks/CommonGrid/hooks/useAddFilter.d.ts +1 -1
- package/ui/Blocks/CommonGrid/hooks/useColumnSizes.d.ts +1 -1
- package/ui/Blocks/CommonGrid/hooks/useEvent.d.ts +1 -1
- package/ui/Blocks/CommonGrid/hooks/useGridActionTrigger.d.ts +1 -1
- package/ui/Blocks/CommonGrid/hooks/useManageColumn.d.ts +1 -1
- package/ui/Blocks/CommonGrid/hooks/useRowsKeyControls.d.ts +1 -1
- package/ui/Blocks/CommonGrid/hooks/useToggleAllCheckbox.d.ts +1 -1
- package/ui/Blocks/CommonGrid/hooks/useUxReset.d.ts +1 -1
- package/ui/Blocks/CommonGrid/store/index.d.ts +15 -15
- package/ui/Blocks/CommonGrid/styles.d.ts +6 -5
- package/ui/Blocks/CommonGrid/styles.js +1 -1
- package/ui/Blocks/CommonGrid/utils/index.d.ts +1 -1
- package/ui/Blocks/Header/components/MenuItems/styles.d.ts +1 -1
- package/ui/Blocks/Header/stories/Header.stories.d.ts +16 -16
- package/ui/Blocks/ImageList/components/AddPhoto/index.js +2 -2
- package/ui/Blocks/ImageList/components/AddPhoto/styles.d.ts +2 -2
- package/ui/Blocks/ImageList/components/CloseButton/styles.d.ts +1 -1
- package/ui/Blocks/ImageList/components/ImageElement/styles.d.ts +1 -1
- package/ui/Blocks/ImageList/styles.d.ts +2 -2
- package/ui/Blocks/LanguageSwitch/styles.d.ts +3 -3
- package/ui/Blocks/LoginPage/stories/LoginPage.stories.js +2 -2
- package/ui/Blocks/LoginPage/styles.d.ts +2 -3
- package/ui/Blocks/Modal/styles.d.ts +7 -7
- package/ui/Blocks/Modal/styles.js +6 -6
- package/ui/Blocks/Scheduler/components/Groups/styles.d.ts +1 -1
- package/ui/Blocks/Scheduler/components/TimeSlots/styles.d.ts +1 -1
- package/ui/Blocks/SideMenu/components/Footer.d.ts +1 -1
- package/ui/Blocks/SideMenu/stories/SideMenu.stories.d.ts +1 -0
- package/ui/Blocks/SideMenu/styles.d.ts +15 -15
- package/ui/Blocks/Stepper/components/StepCircle/styles.d.ts +2 -2
- package/ui/Blocks/Stepper/components/StepItem/styles.d.ts +3 -3
- package/ui/Blocks/Table/stories/Table.stories.d.ts +3 -2
- package/ui/Blocks/Tabs/styles.d.ts +6 -5
- package/ui/Elements/Alert/styles.d.ts +18 -17
- package/ui/Elements/AsyncSelect/stories/AsyncSelect.stories.d.ts +2 -1
- package/ui/Elements/AsyncSelect/stories/AsyncSelect.stories.js +2 -2
- package/ui/Elements/BarChartSymbol/styles.d.ts +2 -2
- package/ui/Elements/BorderedBox/types.d.ts +1 -0
- package/ui/Elements/Button/styles.d.ts +6 -5
- package/ui/Elements/Card/styles.d.ts +2 -2
- package/ui/Elements/Card/types.d.ts +1 -0
- package/ui/Elements/CheckedCircle/storries/CheckedCircle.stories.d.ts +2 -2
- package/ui/Elements/DatePicker/Datetime/components/FooterRow.d.ts +1 -1
- package/ui/Elements/DatePicker/Datetime/views/DaysView.js +1 -1
- package/ui/Elements/DatePicker/styles.d.ts +2 -1
- package/ui/Elements/Icon/Icon.js +6 -6
- package/ui/Elements/Icon/stories/BadgeIcon.stories.d.ts +1 -1
- package/ui/Elements/Label/Label.d.ts +1 -1
- package/ui/Elements/Label/stories/Label.stories.d.ts +1 -1
- package/ui/Elements/Link/stories/Link.stories.d.ts +12 -12
- package/ui/Elements/Logo/Logo.js +2 -2
- package/ui/Elements/Pagination/styled.d.ts +2 -1
- package/ui/Elements/ProgressBar/stories/ProgressBar.stories.d.ts +5 -5
- package/ui/Elements/ProgressBar/styles.d.ts +1 -1
- package/ui/Elements/Select/Select.js +2 -2
- package/ui/Elements/Select/components/CountMultiValue.js +2 -2
- package/ui/Elements/Select/components/SimplifiedOption.d.ts +1 -0
- package/ui/Elements/Select/themes/index.d.ts +1 -1
- package/ui/Elements/Select/themes/selectStyles.d.ts +1 -1
- package/ui/Elements/Select/themes/selectStyles.js +15 -15
- package/ui/Elements/SingleSelect/SingleSelect.js +2 -2
- package/ui/Elements/SpaceAround/types.d.ts +1 -0
- package/ui/Elements/Spinner/styles.d.ts +1 -1
- package/ui/Elements/Tag/types.d.ts +1 -0
- package/ui/Elements/Toast/styles.d.ts +1 -1
- package/ui/Forms/Checkbox/styles.d.ts +2 -1
- package/ui/Forms/Checkbox/styles.js +2 -2
- package/ui/Forms/Input/styles.d.ts +3 -3
- package/ui/Forms/Input/styles.js +2 -2
- package/ui/Forms/TextArea/styles.d.ts +5 -5
- package/ui/ThemeProvider/ThemeProvider.d.ts +2 -1
- package/ui/ThemeProvider/ThemeProvider.js +1 -1
- package/ui/ThemeProvider/themes/dark.d.ts +153 -0
- package/ui/ThemeProvider/themes/dark.js +14 -0
- package/ui/ThemeProvider/themes/default.d.ts +1 -0
- package/ui/ThemeProvider/themes/default.js +2 -1
- package/ui/ThemeProvider/themes/index.d.ts +153 -1
- package/ui/ThemeProvider/themes/index.js +3 -3
- package/ui/ThemeProvider/themes/mailwise.js +1 -1
- package/ui/ThemeProvider/types.d.ts +13 -33
- package/ui/index.es.js +13140 -13747
- package/ui/index.umd.js +446 -445
- package/ui/utils/index.js +1 -1
- package/ui/utils/translations.d.ts +4 -1
- package/ui/utils/translations.js +1 -1
- package/ui/ThemeProvider/themes/light.d.ts +0 -4
- package/ui/ThemeProvider/themes/light.js +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const Svg: import('styled-components').StyledComponent<"svg", import('@xstyled/system').Theme, {
|
|
2
|
-
$variant:
|
|
2
|
+
$variant: 'default' | 'sm';
|
|
3
3
|
}, never>;
|
|
4
4
|
export declare const Circle: import('styled-components').StyledComponent<"circle", import('@xstyled/system').Theme, {}, never>;
|
|
@@ -3,6 +3,6 @@ export declare const Text: import('styled-components').StyledComponent<"span", i
|
|
|
3
3
|
export declare const ContentWrapper: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
4
4
|
export declare const CloseWrapper: import('styled-components').StyledComponent<"span", import('@xstyled/system').Theme, {}, never>;
|
|
5
5
|
export declare const Container: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
6
|
-
autoClose?: number;
|
|
6
|
+
autoClose?: number | undefined;
|
|
7
7
|
fill: string;
|
|
8
8
|
}, never>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export declare const FakeInput: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
2
3
|
size: string | number;
|
|
3
4
|
}, never>;
|
|
4
|
-
export declare const CheckIcon: import('styled-components').StyledComponent<import('react').FC<import('
|
|
5
|
+
export declare const CheckIcon: import('styled-components').StyledComponent<import('react').FC<import('../../Elements/Icon').IconProps>, import('@xstyled/system').Theme, {
|
|
5
6
|
size: string | number;
|
|
6
7
|
}, never>;
|
|
7
8
|
export declare const CheckboxWrap: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
@@ -2,9 +2,9 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
2
2
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
3
|
return cooked;
|
|
4
4
|
};
|
|
5
|
-
import styled, { th } from '@xstyled/styled-components';
|
|
6
5
|
import { Icon } from '../../Elements/Icon';
|
|
7
|
-
|
|
6
|
+
import styled, { th } from '@xstyled/styled-components';
|
|
7
|
+
export var FakeInput = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", ";\n min-width: ", ";\n height: ", ";\n border-radius: md;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s ease;\n transform: rotate(0);\n overflow: hidden;\n border: slim;\n border-color: lightGray5;\n\n input[type='checkbox']:not(:disabled):hover + & {\n border-color: gray1;\n }\n\n input[type='checkbox']:disabled + & {\n background-color: white;\n border-color: lightGray7;\n }\n\n input[type='checkbox']:checked:disabled + & {\n background-color: bgLightGray1;\n border-color: bgLightGray1;\n }\n\n input[type='checkbox']:checked:not(:disabled) + & {\n transform: rotate(0deg);\n background-color: red1;\n border-color: red1;\n }\n\n input[type='checkbox']:not(:checked):not(:disabled) + & {\n transform: rotate(90deg);\n background-color: transparent;\n border-color: lightGray5;\n }\n"], ["\n width: ", ";\n min-width: ", ";\n height: ", ";\n border-radius: md;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s ease;\n transform: rotate(0);\n overflow: hidden;\n border: slim;\n border-color: lightGray5;\n\n input[type='checkbox']:not(:disabled):hover + & {\n border-color: gray1;\n }\n\n input[type='checkbox']:disabled + & {\n background-color: white;\n border-color: lightGray7;\n }\n\n input[type='checkbox']:checked:disabled + & {\n background-color: bgLightGray1;\n border-color: bgLightGray1;\n }\n\n input[type='checkbox']:checked:not(:disabled) + & {\n transform: rotate(0deg);\n background-color: red1;\n border-color: red1;\n }\n\n input[type='checkbox']:not(:checked):not(:disabled) + & {\n transform: rotate(90deg);\n background-color: transparent;\n border-color: lightGray5;\n }\n"])), function (_a) {
|
|
8
8
|
var size = _a.size;
|
|
9
9
|
return size;
|
|
10
10
|
}, function (_a) {
|
|
@@ -32,9 +32,9 @@ export declare const Suffix: import('styled-components').StyledComponent<"div",
|
|
|
32
32
|
export declare const InputRow: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
33
33
|
hasValue: boolean;
|
|
34
34
|
disabled: boolean;
|
|
35
|
-
$icon?: string;
|
|
36
|
-
$isInvalid?: boolean;
|
|
37
|
-
variant?: string;
|
|
35
|
+
$icon?: string | undefined;
|
|
36
|
+
$isInvalid?: boolean | undefined;
|
|
37
|
+
variant?: string | undefined;
|
|
38
38
|
}, never>;
|
|
39
39
|
export declare const Tooltip: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
40
40
|
export {};
|
package/ui/Forms/Input/styles.js
CHANGED
|
@@ -29,10 +29,10 @@ export var IconsController = styled.div(templateObject_3 || (templateObject_3 =
|
|
|
29
29
|
export var IconWrapper = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n svg {\n :hover {\n cursor: pointer;\n color: blue2;\n }\n }\n"], ["\n display: flex;\n svg {\n :hover {\n cursor: pointer;\n color: blue2;\n }\n }\n"])));
|
|
30
30
|
export var StyledInput = styled.input.attrs(function (props) { return ({
|
|
31
31
|
as: props.$asTextArea ? 'textarea' : 'input'
|
|
32
|
-
}); })(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", ";\n border: slim;\n border-color: ", ";\n box-sizing: border-box;\n background-clip: padding-box;\n padding-top: 0.5em;\n padding-bottom: 0.5em;\n padding-right: ", "em;\n display: block;\n width: ", ";\n font-family: ", ";\n font-size: 14px;\n font-weight: normal;\n transition: inputTransition;\n resize: none;\n overflow: hidden;\n\n ~ ", " {\n svg {\n stroke: lightGray3;\n }\n }\n\n ::placeholder {\n color: gray1;\n opacity: 1;\n }\n\n :focus {\n background-color: white;\n border-color: blue2;\n color: typoPrimary;\n outline: 0;\n\n ~ ", " {\n svg {\n stroke: blue2;\n color: blue2;\n }\n }\n }\n ", ";\n ", ";\n :disabled,\n :disabled:hover {\n background-color: bgLightGray1;\n border-color: lightGray6;\n color: neutral300;\n }\n\n text-overflow: ellipsis;\n\n -moz-appearance: textfield;\n appearance: textfield;\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n }\n"], ["\n ", ";\n border: slim;\n border-color: ", ";\n box-sizing: border-box;\n background-clip: padding-box;\n padding-top: 0.5em;\n padding-bottom: 0.5em;\n padding-right: ", "em;\n display: block;\n width: ", ";\n font-family: ", ";\n font-size: 14px;\n font-weight: normal;\n transition: inputTransition;\n resize: none;\n overflow: hidden;\n\n ~ ", " {\n svg {\n stroke: lightGray3;\n }\n }\n\n ::placeholder {\n color: gray1;\n opacity: 1;\n }\n\n :focus {\n background-color: white;\n border-color: blue2;\n color: typoPrimary;\n outline: 0;\n\n ~ ", " {\n svg {\n stroke: blue2;\n color: blue2;\n }\n }\n }\n ", ";\n ", ";\n :disabled,\n :disabled:hover {\n background-color: bgLightGray1;\n border-color: lightGray6;\n color: neutral300;\n }\n\n text-overflow: ellipsis;\n\n -moz-appearance: textfield;\n appearance: textfield;\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n }\n"])), system, function (_a) {
|
|
32
|
+
}); })(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n ", ";\n border: slim;\n border-color: ", ";\n background-color: transparent;\n box-sizing: border-box;\n background-clip: padding-box;\n padding-top: 0.5em;\n padding-bottom: 0.5em;\n padding-right: ", "em;\n display: block;\n width: ", ";\n font-family: ", ";\n font-size: 14px;\n font-weight: normal;\n transition: inputTransition;\n resize: none;\n overflow: hidden;\n\n ~ ", " {\n svg {\n stroke: lightGray3;\n }\n }\n\n ::placeholder {\n color: gray1;\n opacity: 1;\n }\n\n :focus {\n background-color: white;\n border-color: blue2;\n color: typoPrimary;\n outline: 0;\n\n ~ ", " {\n svg {\n stroke: blue2;\n color: blue2;\n }\n }\n }\n ", ";\n ", ";\n :disabled,\n :disabled:hover {\n background-color: bgLightGray1;\n border-color: lightGray6;\n color: neutral300;\n }\n\n text-overflow: ellipsis;\n\n -moz-appearance: textfield;\n appearance: textfield;\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n }\n"], ["\n ", ";\n border: slim;\n border-color: ", ";\n background-color: transparent;\n box-sizing: border-box;\n background-clip: padding-box;\n padding-top: 0.5em;\n padding-bottom: 0.5em;\n padding-right: ", "em;\n display: block;\n width: ", ";\n font-family: ", ";\n font-size: 14px;\n font-weight: normal;\n transition: inputTransition;\n resize: none;\n overflow: hidden;\n\n ~ ", " {\n svg {\n stroke: lightGray3;\n }\n }\n\n ::placeholder {\n color: gray1;\n opacity: 1;\n }\n\n :focus {\n background-color: white;\n border-color: blue2;\n color: typoPrimary;\n outline: 0;\n\n ~ ", " {\n svg {\n stroke: blue2;\n color: blue2;\n }\n }\n }\n ", ";\n ", ";\n :disabled,\n :disabled:hover {\n background-color: bgLightGray1;\n border-color: lightGray6;\n color: neutral300;\n }\n\n text-overflow: ellipsis;\n\n -moz-appearance: textfield;\n appearance: textfield;\n ::-webkit-inner-spin-button {\n -webkit-appearance: none;\n }\n"])), system, function (_a) {
|
|
33
33
|
var $isInvalid = _a.$isInvalid;
|
|
34
34
|
return ($isInvalid ? th.color('red1') : th.color('lightGray6'));
|
|
35
|
-
}, function (props) { return resolvePaddingRight(props); }, function (props) { return props.type !== 'checkbox' ? '100%' : 'auto'; }, th('fonts.primary'), InputIcon, InputIcon, function (_a) {
|
|
35
|
+
}, function (props) { return resolvePaddingRight(props); }, function (props) { return (props.type !== 'checkbox' ? '100%' : 'auto'); }, th('fonts.primary'), InputIcon, InputIcon, function (_a) {
|
|
36
36
|
var big = _a.big;
|
|
37
37
|
return big
|
|
38
38
|
? css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n font-size: 30px;\n color: gray;\n font-weight: semiBold;\n padding: 0 0.5rem 0 1.25rem;\n "], ["\n font-size: 30px;\n color: gray;\n font-weight: semiBold;\n padding: 0 0.5rem 0 1.25rem;\n "]))) : '';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare const IconWrap: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
2
2
|
export declare const StyledTextArea: import('styled-components').StyledComponent<"textarea", import('@xstyled/system').Theme, {
|
|
3
|
-
$resize?: string;
|
|
4
|
-
$isInvalid?: boolean;
|
|
5
|
-
disabled?: boolean;
|
|
3
|
+
$resize?: string | undefined;
|
|
4
|
+
$isInvalid?: boolean | undefined;
|
|
5
|
+
disabled?: boolean | undefined;
|
|
6
6
|
}, never>;
|
|
7
7
|
export declare const TextAreaWrap: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
8
8
|
export declare const BorderWrap: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
|
|
9
|
-
$isInvalid?: boolean;
|
|
10
|
-
disabled?: boolean;
|
|
9
|
+
$isInvalid?: boolean | undefined;
|
|
10
|
+
disabled?: boolean | undefined;
|
|
11
11
|
}, never>;
|
|
12
12
|
export declare const InnerWrap: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {}, never>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
1
2
|
import { Props } from './types';
|
|
2
3
|
|
|
3
4
|
export declare const LanguageContext: import('react').Context<string>;
|
|
4
|
-
declare const MailstepThemeProvider:
|
|
5
|
+
declare const MailstepThemeProvider: FC<Props>;
|
|
5
6
|
export default MailstepThemeProvider;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { createContext } from 'react';
|
|
2
3
|
import { ThemeProvider, Preflight } from '@xstyled/styled-components';
|
|
3
4
|
import themes from './themes';
|
|
4
|
-
import { createContext } from 'react';
|
|
5
5
|
export var LanguageContext = createContext('en');
|
|
6
6
|
var MailstepThemeProvider = function (_a) {
|
|
7
7
|
var children = _a.children, _b = _a.theme, theme = _b === void 0 ? 'default' : _b, _c = _a.preflight, preflight = _c === void 0 ? true : _c, _d = _a.language, language = _d === void 0 ? 'en' : _d;
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
declare const darkTheme: {
|
|
2
|
+
colors: {
|
|
3
|
+
bgLightGray: string;
|
|
4
|
+
bgLightGray1: string;
|
|
5
|
+
typoPrimary: string;
|
|
6
|
+
textPrimary: string;
|
|
7
|
+
white: string;
|
|
8
|
+
lightGray7: string;
|
|
9
|
+
neutral20: string;
|
|
10
|
+
red1: string;
|
|
11
|
+
red20: string;
|
|
12
|
+
red30: string;
|
|
13
|
+
blue2: string;
|
|
14
|
+
lightGray1: string;
|
|
15
|
+
blue3: string;
|
|
16
|
+
lightGray2: string;
|
|
17
|
+
lightGray3: string;
|
|
18
|
+
lightGray4: string;
|
|
19
|
+
lightGray5: string;
|
|
20
|
+
lightGray6: string;
|
|
21
|
+
neutral10: string;
|
|
22
|
+
neutral300: string;
|
|
23
|
+
neutral500: string;
|
|
24
|
+
gray: string;
|
|
25
|
+
gray1: string;
|
|
26
|
+
gray2: string;
|
|
27
|
+
gray3: string;
|
|
28
|
+
gray4: string;
|
|
29
|
+
gray5: string;
|
|
30
|
+
blue1: string;
|
|
31
|
+
blue4: string;
|
|
32
|
+
textTertiary: string;
|
|
33
|
+
blue10: string;
|
|
34
|
+
blue20: string;
|
|
35
|
+
blue30: string;
|
|
36
|
+
blue40: string;
|
|
37
|
+
blue50: string;
|
|
38
|
+
blue60: string;
|
|
39
|
+
blue70: string;
|
|
40
|
+
blue80: string;
|
|
41
|
+
blue90: string;
|
|
42
|
+
teal20: string;
|
|
43
|
+
teal40: string;
|
|
44
|
+
teal50: string;
|
|
45
|
+
teal60: string;
|
|
46
|
+
teal70: string;
|
|
47
|
+
teal80: string;
|
|
48
|
+
teal90: string;
|
|
49
|
+
green10: string;
|
|
50
|
+
green20: string;
|
|
51
|
+
green30: string;
|
|
52
|
+
green50: string;
|
|
53
|
+
green60: string;
|
|
54
|
+
green70: string;
|
|
55
|
+
green80: string;
|
|
56
|
+
green90: string;
|
|
57
|
+
green: string;
|
|
58
|
+
successColor: string;
|
|
59
|
+
darkGreen: string;
|
|
60
|
+
orange20: string;
|
|
61
|
+
orange30: string;
|
|
62
|
+
orange50: string;
|
|
63
|
+
orange60: string;
|
|
64
|
+
orange80: string;
|
|
65
|
+
yellow10: string;
|
|
66
|
+
yellow20: string;
|
|
67
|
+
yellow60: string;
|
|
68
|
+
yellow70: string;
|
|
69
|
+
yellow1: string;
|
|
70
|
+
yellow2: string;
|
|
71
|
+
red10: string;
|
|
72
|
+
red50: string;
|
|
73
|
+
red70: string;
|
|
74
|
+
red2: string;
|
|
75
|
+
red3: string;
|
|
76
|
+
red60: string;
|
|
77
|
+
red80: string;
|
|
78
|
+
dangerColor: string;
|
|
79
|
+
purple20: string;
|
|
80
|
+
purple40: string;
|
|
81
|
+
purple50: string;
|
|
82
|
+
purple60: string;
|
|
83
|
+
purple80: string;
|
|
84
|
+
purple90: string;
|
|
85
|
+
magenta10: string;
|
|
86
|
+
magenta20: string;
|
|
87
|
+
magenta30: string;
|
|
88
|
+
magenta40: string;
|
|
89
|
+
magenta50: string;
|
|
90
|
+
magenta60: string;
|
|
91
|
+
magenta70: string;
|
|
92
|
+
magenta80: string;
|
|
93
|
+
magenta90: string;
|
|
94
|
+
};
|
|
95
|
+
shadows: {
|
|
96
|
+
dialogShadow: string;
|
|
97
|
+
boxShadow: string;
|
|
98
|
+
dropShadow: string;
|
|
99
|
+
inputFocusBoxShadow: string;
|
|
100
|
+
dropdownMenuShadow: string;
|
|
101
|
+
tooltipBoxShadow: string;
|
|
102
|
+
cardShadow: string;
|
|
103
|
+
smooth: string;
|
|
104
|
+
headerShadow: string;
|
|
105
|
+
headerShadowB: string;
|
|
106
|
+
headerShadowNotifications: string;
|
|
107
|
+
cornerDialogShadow: string;
|
|
108
|
+
gridShadow: string;
|
|
109
|
+
tooltipShadow: string;
|
|
110
|
+
};
|
|
111
|
+
breakpoints: string[];
|
|
112
|
+
fonts: {
|
|
113
|
+
primary: string;
|
|
114
|
+
heading: string;
|
|
115
|
+
};
|
|
116
|
+
fontLinks: string[];
|
|
117
|
+
fontSizes: string[];
|
|
118
|
+
lineHeights: number[];
|
|
119
|
+
fontWeights: {
|
|
120
|
+
light: number;
|
|
121
|
+
normal: number;
|
|
122
|
+
medium: number;
|
|
123
|
+
semiBold: number;
|
|
124
|
+
bold: number;
|
|
125
|
+
};
|
|
126
|
+
letterSpacings: {
|
|
127
|
+
default: null;
|
|
128
|
+
sm: string;
|
|
129
|
+
md: string;
|
|
130
|
+
lg: string;
|
|
131
|
+
};
|
|
132
|
+
borders: {
|
|
133
|
+
slim: string;
|
|
134
|
+
mediumSlim: string;
|
|
135
|
+
medium: string;
|
|
136
|
+
mediumThick: string;
|
|
137
|
+
thick: string;
|
|
138
|
+
};
|
|
139
|
+
radii: {
|
|
140
|
+
sm: string;
|
|
141
|
+
md: string;
|
|
142
|
+
ml: string;
|
|
143
|
+
lg: string;
|
|
144
|
+
xl: string;
|
|
145
|
+
};
|
|
146
|
+
space: number[];
|
|
147
|
+
transitions: {
|
|
148
|
+
simpleLong: string;
|
|
149
|
+
inputTransition: string;
|
|
150
|
+
};
|
|
151
|
+
zIndices: number[];
|
|
152
|
+
};
|
|
153
|
+
export default darkTheme;
|
|
@@ -0,0 +1,14 @@
|
|
|
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 defaultTheme from './default';
|
|
13
|
+
var darkTheme = __assign(__assign({}, defaultTheme), { colors: __assign(__assign({}, defaultTheme.colors), { bgLightGray: '#131A27', bgLightGray1: '#2a4054', typoPrimary: '#ffffff', textPrimary: '#ffffff', white: '#2a4054', lightGray7: '#5f5f5f', neutral20: '#2a4054', red1: '#d0d0d0', red20: '#5f5f5f', red30: '#8594A5', blue2: '#ffffff', lightGray1: '#162C3F', blue3: '#2a4054' }), shadows: __assign(__assign({}, defaultTheme.shadows), { dialogShadow: '0px 4px 23px 0px rgba(255, 255, 255, 0.08)' }) });
|
|
14
|
+
export default darkTheme;
|
|
@@ -11,6 +11,7 @@ var defaultTheme = {
|
|
|
11
11
|
lightGray5: '#A3B3C1',
|
|
12
12
|
lightGray6: '#D2D8DF',
|
|
13
13
|
lightGray7: '#E7EBEF',
|
|
14
|
+
neutral10: '#FAFBFC',
|
|
14
15
|
neutral20: '#F1F5F9',
|
|
15
16
|
neutral300: '#5E6C84',
|
|
16
17
|
neutral500: '#42526E',
|
|
@@ -144,7 +145,7 @@ var defaultTheme = {
|
|
|
144
145
|
gridShadow: '0px 1px 4px 0px rgba(0, 0, 0, 0.12)',
|
|
145
146
|
tooltipShadow: '0px 2px 20px 0px rgba(0, 0, 0, 0.10)',
|
|
146
147
|
},
|
|
147
|
-
space: [0, 4, 8, 16, 24, 48, 96, 144, 192, 240],
|
|
148
|
+
space: [0, 4, 8, 16, 24, 48, 96, 144, 192, 240],
|
|
148
149
|
transitions: {
|
|
149
150
|
simpleLong: 'all 2s',
|
|
150
151
|
inputTransition: 'border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out',
|
|
@@ -12,6 +12,7 @@ declare const themes: {
|
|
|
12
12
|
lightGray5: string;
|
|
13
13
|
lightGray6: string;
|
|
14
14
|
lightGray7: string;
|
|
15
|
+
neutral10: string;
|
|
15
16
|
neutral20: string;
|
|
16
17
|
neutral300: string;
|
|
17
18
|
neutral500: string;
|
|
@@ -150,7 +151,6 @@ declare const themes: {
|
|
|
150
151
|
};
|
|
151
152
|
zIndices: number[];
|
|
152
153
|
};
|
|
153
|
-
light: import('..').Theme;
|
|
154
154
|
mailwise: {
|
|
155
155
|
screens: {
|
|
156
156
|
_: number;
|
|
@@ -354,5 +354,157 @@ declare const themes: {
|
|
|
354
354
|
};
|
|
355
355
|
zIndices: number[];
|
|
356
356
|
};
|
|
357
|
+
dark: {
|
|
358
|
+
colors: {
|
|
359
|
+
bgLightGray: string;
|
|
360
|
+
bgLightGray1: string;
|
|
361
|
+
typoPrimary: string;
|
|
362
|
+
textPrimary: string;
|
|
363
|
+
white: string;
|
|
364
|
+
lightGray7: string;
|
|
365
|
+
neutral20: string;
|
|
366
|
+
red1: string;
|
|
367
|
+
red20: string;
|
|
368
|
+
red30: string;
|
|
369
|
+
blue2: string;
|
|
370
|
+
lightGray1: string;
|
|
371
|
+
blue3: string;
|
|
372
|
+
lightGray2: string;
|
|
373
|
+
lightGray3: string;
|
|
374
|
+
lightGray4: string;
|
|
375
|
+
lightGray5: string;
|
|
376
|
+
lightGray6: string;
|
|
377
|
+
neutral10: string;
|
|
378
|
+
neutral300: string;
|
|
379
|
+
neutral500: string;
|
|
380
|
+
gray: string;
|
|
381
|
+
gray1: string;
|
|
382
|
+
gray2: string;
|
|
383
|
+
gray3: string;
|
|
384
|
+
gray4: string;
|
|
385
|
+
gray5: string;
|
|
386
|
+
blue1: string;
|
|
387
|
+
blue4: string;
|
|
388
|
+
textTertiary: string;
|
|
389
|
+
blue10: string;
|
|
390
|
+
blue20: string;
|
|
391
|
+
blue30: string;
|
|
392
|
+
blue40: string;
|
|
393
|
+
blue50: string;
|
|
394
|
+
blue60: string;
|
|
395
|
+
blue70: string;
|
|
396
|
+
blue80: string;
|
|
397
|
+
blue90: string;
|
|
398
|
+
teal20: string;
|
|
399
|
+
teal40: string;
|
|
400
|
+
teal50: string;
|
|
401
|
+
teal60: string;
|
|
402
|
+
teal70: string;
|
|
403
|
+
teal80: string;
|
|
404
|
+
teal90: string;
|
|
405
|
+
green10: string;
|
|
406
|
+
green20: string;
|
|
407
|
+
green30: string;
|
|
408
|
+
green50: string;
|
|
409
|
+
green60: string;
|
|
410
|
+
green70: string;
|
|
411
|
+
green80: string;
|
|
412
|
+
green90: string;
|
|
413
|
+
green: string;
|
|
414
|
+
successColor: string;
|
|
415
|
+
darkGreen: string;
|
|
416
|
+
orange20: string;
|
|
417
|
+
orange30: string;
|
|
418
|
+
orange50: string;
|
|
419
|
+
orange60: string;
|
|
420
|
+
orange80: string;
|
|
421
|
+
yellow10: string;
|
|
422
|
+
yellow20: string;
|
|
423
|
+
yellow60: string;
|
|
424
|
+
yellow70: string;
|
|
425
|
+
yellow1: string;
|
|
426
|
+
yellow2: string;
|
|
427
|
+
red10: string;
|
|
428
|
+
red50: string;
|
|
429
|
+
red70: string;
|
|
430
|
+
red2: string;
|
|
431
|
+
red3: string;
|
|
432
|
+
red60: string;
|
|
433
|
+
red80: string;
|
|
434
|
+
dangerColor: string;
|
|
435
|
+
purple20: string;
|
|
436
|
+
purple40: string;
|
|
437
|
+
purple50: string;
|
|
438
|
+
purple60: string;
|
|
439
|
+
purple80: string;
|
|
440
|
+
purple90: string;
|
|
441
|
+
magenta10: string;
|
|
442
|
+
magenta20: string;
|
|
443
|
+
magenta30: string;
|
|
444
|
+
magenta40: string;
|
|
445
|
+
magenta50: string;
|
|
446
|
+
magenta60: string;
|
|
447
|
+
magenta70: string;
|
|
448
|
+
magenta80: string;
|
|
449
|
+
magenta90: string;
|
|
450
|
+
};
|
|
451
|
+
shadows: {
|
|
452
|
+
dialogShadow: string;
|
|
453
|
+
boxShadow: string;
|
|
454
|
+
dropShadow: string;
|
|
455
|
+
inputFocusBoxShadow: string;
|
|
456
|
+
dropdownMenuShadow: string;
|
|
457
|
+
tooltipBoxShadow: string;
|
|
458
|
+
cardShadow: string;
|
|
459
|
+
smooth: string;
|
|
460
|
+
headerShadow: string;
|
|
461
|
+
headerShadowB: string;
|
|
462
|
+
headerShadowNotifications: string;
|
|
463
|
+
cornerDialogShadow: string;
|
|
464
|
+
gridShadow: string;
|
|
465
|
+
tooltipShadow: string;
|
|
466
|
+
};
|
|
467
|
+
breakpoints: string[];
|
|
468
|
+
fonts: {
|
|
469
|
+
primary: string;
|
|
470
|
+
heading: string;
|
|
471
|
+
};
|
|
472
|
+
fontLinks: string[];
|
|
473
|
+
fontSizes: string[];
|
|
474
|
+
lineHeights: number[];
|
|
475
|
+
fontWeights: {
|
|
476
|
+
light: number;
|
|
477
|
+
normal: number;
|
|
478
|
+
medium: number;
|
|
479
|
+
semiBold: number;
|
|
480
|
+
bold: number;
|
|
481
|
+
};
|
|
482
|
+
letterSpacings: {
|
|
483
|
+
default: null;
|
|
484
|
+
sm: string;
|
|
485
|
+
md: string;
|
|
486
|
+
lg: string;
|
|
487
|
+
};
|
|
488
|
+
borders: {
|
|
489
|
+
slim: string;
|
|
490
|
+
mediumSlim: string;
|
|
491
|
+
medium: string;
|
|
492
|
+
mediumThick: string;
|
|
493
|
+
thick: string;
|
|
494
|
+
};
|
|
495
|
+
radii: {
|
|
496
|
+
sm: string;
|
|
497
|
+
md: string;
|
|
498
|
+
ml: string;
|
|
499
|
+
lg: string;
|
|
500
|
+
xl: string;
|
|
501
|
+
};
|
|
502
|
+
space: number[];
|
|
503
|
+
transitions: {
|
|
504
|
+
simpleLong: string;
|
|
505
|
+
inputTransition: string;
|
|
506
|
+
};
|
|
507
|
+
zIndices: number[];
|
|
508
|
+
};
|
|
357
509
|
};
|
|
358
510
|
export default themes;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import defaultTheme from './default';
|
|
2
|
-
import light from './light';
|
|
3
2
|
import mailwise from './mailwise';
|
|
3
|
+
import darkTheme from './dark';
|
|
4
4
|
var themes = {
|
|
5
5
|
default: defaultTheme,
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
mailwise: mailwise,
|
|
7
|
+
dark: darkTheme
|
|
8
8
|
};
|
|
9
9
|
export default themes;
|
|
@@ -156,7 +156,7 @@ var defaultTheme = {
|
|
|
156
156
|
smooth: '0px 4px 25px 0px #0000001a',
|
|
157
157
|
// redesign:
|
|
158
158
|
dialogShadow: '0px 4px 23px 0px rgba(0, 0, 0, 0.08)',
|
|
159
|
-
tooltipShadow: '0px 1px 4px 0 #B1B8C3',
|
|
159
|
+
tooltipShadow: '0px 1px 4px 0 #B1B8C3',
|
|
160
160
|
headerShadow: '1px 2px 3px #00000029',
|
|
161
161
|
headerShadowB: '1px 1px 3px #00000029',
|
|
162
162
|
headerShadowNotifications: '1px 1px 2px #00000029',
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
export type Color =
|
|
4
|
-
[key: string]: string;
|
|
5
|
-
};
|
|
3
|
+
export type Color = Record<string, string>;
|
|
6
4
|
export type Theme = {
|
|
7
5
|
breakpoints?: {
|
|
8
6
|
xs: number;
|
|
@@ -11,42 +9,24 @@ export type Theme = {
|
|
|
11
9
|
lg: number;
|
|
12
10
|
xl: number;
|
|
13
11
|
};
|
|
14
|
-
colors?:
|
|
15
|
-
|
|
16
|
-
};
|
|
17
|
-
fonts?: {
|
|
18
|
-
[key: string]: string;
|
|
19
|
-
};
|
|
12
|
+
colors?: Record<string, string | Color>;
|
|
13
|
+
fonts?: Record<string, string>;
|
|
20
14
|
fontLinks?: string[];
|
|
21
15
|
fontSizes?: string[];
|
|
22
|
-
fontWeights?:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
28
|
-
borders?: {
|
|
29
|
-
[key: string]: string;
|
|
30
|
-
};
|
|
31
|
-
radii?: {
|
|
32
|
-
[key: string]: string;
|
|
33
|
-
};
|
|
34
|
-
shadows?: {
|
|
35
|
-
[key: string]: string;
|
|
36
|
-
};
|
|
16
|
+
fontWeights?: Record<string, number | null>;
|
|
17
|
+
letterSpacings?: Record<string, string | null>;
|
|
18
|
+
borders?: Record<string, string>;
|
|
19
|
+
radii?: Record<string, string>;
|
|
20
|
+
shadows?: Record<string, string>;
|
|
37
21
|
spaces?: number[];
|
|
38
22
|
lineHeights?: number[];
|
|
39
|
-
transitions?:
|
|
40
|
-
[key: string]: string;
|
|
41
|
-
};
|
|
23
|
+
transitions?: Record<string, string>;
|
|
42
24
|
zIndices?: number[];
|
|
43
25
|
};
|
|
44
|
-
export type Themes =
|
|
45
|
-
[key: string]: Theme;
|
|
46
|
-
};
|
|
26
|
+
export type Themes = Record<string, Theme>;
|
|
47
27
|
export interface Props {
|
|
48
|
-
children:
|
|
49
|
-
theme: 'default' | '
|
|
28
|
+
children: ReactNode;
|
|
29
|
+
theme: 'default' | 'mailwise' | 'dark';
|
|
50
30
|
preflight?: boolean;
|
|
51
31
|
language?: string;
|
|
52
32
|
}
|