@mailstep/design-system 0.7.61 → 0.7.62-beta.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/package.json +1 -1
- package/ui/Blocks/CommonGrid/CommonGrid.d.ts +1 -1
- package/ui/Blocks/CommonGrid/CommonGrid.js +3 -14
- package/ui/Blocks/CommonGrid/CommonGridContainer.js +8 -2
- package/ui/Blocks/CommonGrid/components/ControlButtons/ControlButtons.js +2 -2
- package/ui/Blocks/CommonGrid/components/GridInfo/index.d.ts +7 -0
- package/ui/Blocks/CommonGrid/components/GridInfo/index.js +7 -0
- package/ui/Blocks/CommonGrid/components/GridStatus/index.d.ts +9 -0
- package/ui/Blocks/CommonGrid/components/GridStatus/index.js +10 -0
- package/ui/Blocks/CommonGrid/components/HeadCell.d.ts +2 -0
- package/ui/Blocks/CommonGrid/components/HeadCell.js +2 -2
- package/ui/Blocks/CommonGrid/components/HeadRow.d.ts +2 -1
- package/ui/Blocks/CommonGrid/components/HeadRow.js +2 -2
- package/ui/Blocks/CommonGrid/components/OversizedScroll.d.ts +1 -2
- package/ui/Blocks/CommonGrid/components/OversizedScroll.js +4 -4
- package/ui/Blocks/CommonGrid/components/Table.d.ts +14 -1
- package/ui/Blocks/CommonGrid/components/Table.js +7 -2
- package/ui/Blocks/CommonGrid/hooks/useQuickFilter.d.ts +1 -1
- package/ui/Blocks/CommonGrid/hooks/useQuickFilter.js +7 -7
- package/ui/Blocks/CommonGrid/store/index.js +1 -0
- package/ui/Blocks/CommonGrid/storybook/stories/gridStates.stories.d.ts +8 -0
- package/ui/Blocks/CommonGrid/storybook/stories/gridStates.stories.js +12 -0
- package/ui/Blocks/CommonGrid/styles.d.ts +1 -1
- package/ui/Blocks/CommonGrid/styles.js +1 -1
- package/ui/Blocks/CommonGrid/types.d.ts +3 -0
- package/ui/Blocks/CommonGrid/utils/hasSortTerminated.d.ts +9 -0
- package/ui/Blocks/CommonGrid/utils/hasSortTerminated.js +11 -0
- package/ui/Elements/Alert/Alert.d.ts +3 -2
- package/ui/Elements/Alert/Alert.js +7 -7
- package/ui/Elements/Alert/stories/Alert.stories.d.ts +2 -1
- package/ui/Elements/Alert/styles.d.ts +6 -3
- package/ui/Elements/Alert/styles.js +15 -3
- package/ui/Elements/Alert/types.d.ts +1 -4
- package/ui/index.es.js +8752 -8703
- package/ui/index.umd.js +620 -619
- package/ui/utils/translations.js +1 -1
- package/ui/Blocks/CommonGrid/storybook/stories/loading.stories.d.ts +0 -10
- package/ui/Blocks/CommonGrid/storybook/stories/loading.stories.js +0 -12
|
@@ -6,14 +6,26 @@ import { Link } from '../Link';
|
|
|
6
6
|
import { x } from '@xstyled/styled-components';
|
|
7
7
|
import { th } from '@xstyled/styled-components';
|
|
8
8
|
import styled from 'styled-components';
|
|
9
|
-
export var StyledAlert = styled(x.div)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width:
|
|
9
|
+
export var StyledAlert = styled(x.div)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", ";\n display: flex;\n min-height: ", ";\n align-items: center;\n justify-content: space-between;\n border: ", ";\n border-radius: 8px;\n background-color: ", ";\n color: ", ";\n font-family: ", ";\n padding: 6px 5px 6px 5px;\n padding-right: ", ";\n margin-bottom: 5px;\n position: sticky;\n left: 10px;\n\n @media (min-width: 1024px) {\n position: relative;\n left: 0;\n width: 100%;\n }\n"], ["\n width: ", ";\n display: flex;\n min-height: ", ";\n align-items: center;\n justify-content: space-between;\n border: ", ";\n border-radius: 8px;\n background-color: ", ";\n color: ", ";\n font-family: ", ";\n padding: 6px 5px 6px 5px;\n padding-right: ", ";\n margin-bottom: 5px;\n position: sticky;\n left: 10px;\n\n @media (min-width: 1024px) {\n position: relative;\n left: 0;\n width: 100%;\n }\n"])), function (_a) {
|
|
10
|
+
var $inline = _a.$inline;
|
|
11
|
+
return $inline ? 'auto' : "calc(100vw - 20px)";
|
|
12
|
+
}, function (_a) {
|
|
13
|
+
var height = _a.height;
|
|
14
|
+
return height || '48px';
|
|
15
|
+
}, function (_a) {
|
|
10
16
|
var $inline = _a.$inline, $colorFill = _a.$colorFill;
|
|
11
17
|
return ($inline ? "solid 1px ".concat($colorFill) : 'none');
|
|
12
18
|
}, function (_a) {
|
|
13
19
|
var $bgColor = _a.$bgColor;
|
|
14
20
|
return $bgColor;
|
|
15
|
-
}, th('colors.textPrimary'), th('fonts.primary'))
|
|
16
|
-
|
|
21
|
+
}, th('colors.textPrimary'), th('fonts.primary'), function (_a) {
|
|
22
|
+
var icon = _a.icon;
|
|
23
|
+
return icon ? '14px' : '5px';
|
|
24
|
+
});
|
|
25
|
+
export var VerticalSeparator = styled(x.div)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 4px;\n height: ", ";\n border-radius: 94px;\n background-color: ", ";\n"], ["\n width: 4px;\n height: ", ";\n border-radius: 94px;\n background-color: ", ";\n"])), function (_a) {
|
|
26
|
+
var height = _a.height;
|
|
27
|
+
return height || '36px';
|
|
28
|
+
}, function (_a) {
|
|
17
29
|
var $colorFill = _a.$colorFill;
|
|
18
30
|
return $colorFill;
|
|
19
31
|
});
|
|
@@ -5,7 +5,7 @@ export type AlertProps = {
|
|
|
5
5
|
onClick?: () => void;
|
|
6
6
|
onClose?: () => void;
|
|
7
7
|
title?: string;
|
|
8
|
-
text?: string;
|
|
8
|
+
text?: string | React.ReactElement;
|
|
9
9
|
closeAnywhere?: boolean;
|
|
10
10
|
href?: string;
|
|
11
11
|
actionLabel?: React.ReactElement | string;
|
|
@@ -13,6 +13,3 @@ export type AlertProps = {
|
|
|
13
13
|
desc?: string;
|
|
14
14
|
[key: string]: any;
|
|
15
15
|
};
|
|
16
|
-
export interface IAlert {
|
|
17
|
-
(props: AlertProps): JSX.Element;
|
|
18
|
-
}
|