@mailstep/design-system 0.8.16-beta.20 → 0.8.16-beta.21
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/components/DropdownButton/DropdownButton.js +1 -1
- package/ui/Blocks/CommonGrid/styles.js +1 -1
- package/ui/Elements/Select/stories/Select.stories.js +1 -1
- package/ui/Elements/Select/themes/selectStyles.js +3 -4
- package/ui/Elements/Select/types.d.ts +0 -1
- package/ui/index.es.js +13991 -14611
- package/ui/index.umd.js +612 -610
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@ var StyledDropdownMenu = styled(DropdownMenu)(templateObject_2 || (templateObjec
|
|
|
15
15
|
var StyledButton = styled(Button)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n padding-right: 0;\n"], ["\n padding-right: 0;\n"])));
|
|
16
16
|
var StyledIcon = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n width: 20px;\n height: 20px;\n margin: 9px;\n & > svg {\n stroke: ", ";\n }\n"], ["\n width: 20px;\n height: 20px;\n margin: 9px;\n & > svg {\n stroke: ", ";\n }\n"])), function (_a) {
|
|
17
17
|
var appearance = _a.appearance;
|
|
18
|
-
return appearance === 'secondary' ? th.color('blue2') : appearance === 'tertiary' ? th.color('red1') : 'white';
|
|
18
|
+
return appearance === 'secondary' ? th.color('blue2') : appearance === 'tertiary' ? th.color('red1') : th.color('white');
|
|
19
19
|
});
|
|
20
20
|
var Separator = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n height: 38px;\n width: 1px;\n background-color: white;\n margin-left: 18px;\n"], ["\n height: 38px;\n width: 1px;\n background-color: white;\n margin-left: 18px;\n"])));
|
|
21
21
|
var DropdownButton = function (_a) {
|
|
@@ -6,7 +6,7 @@ import { gridRowHeight, gridFooterHeight, gridButtonStripHeight, gridHeadHeight,
|
|
|
6
6
|
import styled, { x } from '@xstyled/styled-components';
|
|
7
7
|
import { th } from '@xstyled/system';
|
|
8
8
|
import CommonGrid from './CommonGrid';
|
|
9
|
-
export var BottomWrapper = styled(x.div)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n z-index: 2;\n flex-shrink: 0;\n padding: ", ";\n width: 100%;\n height: ", "px;\n background-color: bgLightGray;\n\n @media print {\n display: none;\n }\n\n @media (min-width: 1024px) {\n position: relative;\n bottom: 0;\n margin-bottom: 0;\n }\n"], ["\n position: relative;\n z-index: 2;\n flex-shrink: 0;\n padding: ", ";\n width: 100%;\n height: ", "px;\n background-color: bgLightGray;\n\n @media print {\n display: none;\n }\n\n @media (min-width: 1024px) {\n position: relative;\n bottom: 0;\n margin-bottom: 0;\n }\n"])), function (_a) {
|
|
9
|
+
export var BottomWrapper = styled(x.div)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n z-index: 2;\n flex-shrink: 0;\n padding: ", ";\n width: 100%;\n height: ", "px;\n background-color: bgLightGray;\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n\n @media print {\n display: none;\n }\n\n @media (min-width: 1024px) {\n position: relative;\n bottom: 0;\n margin-bottom: 0;\n }\n"], ["\n position: relative;\n z-index: 2;\n flex-shrink: 0;\n padding: ", ";\n width: 100%;\n height: ", "px;\n background-color: bgLightGray;\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n\n @media print {\n display: none;\n }\n\n @media (min-width: 1024px) {\n position: relative;\n bottom: 0;\n margin-bottom: 0;\n }\n"])), function (_a) {
|
|
10
10
|
var withPagination = _a.withPagination;
|
|
11
11
|
return (withPagination ? '10px 0' : '0px');
|
|
12
12
|
}, function (_a) {
|
|
@@ -11,5 +11,5 @@ var options = [
|
|
|
11
11
|
{ value: '2', label: 'Option 2' },
|
|
12
12
|
{ value: '3', label: 'Option 3' }
|
|
13
13
|
];
|
|
14
|
-
export var Default = function () { return (_jsx(Select, { label: "Primary Select", onChange: console.log, options: options })); };
|
|
14
|
+
export var Default = function () { return (_jsx(Select, { label: "Primary Select", onChange: console.log, options: options, value: "1" })); };
|
|
15
15
|
export var MultiSelect = function () { return (_jsx(Select, { label: "Multi Select Input", onChange: console.log, options: options, isMulti: true, value: ['1', '2'] })); };
|
|
@@ -93,11 +93,11 @@ export var CustomStyles = {
|
|
|
93
93
|
},
|
|
94
94
|
menu: function (styles, state) {
|
|
95
95
|
var theme = state.theme;
|
|
96
|
-
return __assign(__assign({}, styles), { boxShadow: '0 2px 20px 0 rgba(0, 0, 0, 0.10);', marginTop: '4px', paddingTop: '0', borderRadius: '10px', zIndex: 3, minWidth: 'max-content', color: theme.colors.
|
|
96
|
+
return __assign(__assign({}, styles), { boxShadow: '0 2px 20px 0 rgba(0, 0, 0, 0.10);', marginTop: '4px', paddingTop: '0', borderRadius: '10px', zIndex: 3, minWidth: 'max-content', color: theme.colors.optionTextColor, backgroundColor: theme.colors.menuBackgroundColor });
|
|
97
97
|
},
|
|
98
98
|
menuList: function (styles, _a) {
|
|
99
99
|
var theme = _a.theme;
|
|
100
|
-
return __assign(__assign({}, styles), { margin: '8px 4px 8px 8px',
|
|
100
|
+
return __assign(__assign({}, styles), { margin: '8px 4px 8px 8px', '::-webkit-scrollbar-thumb': {
|
|
101
101
|
border: 'none',
|
|
102
102
|
borderRadius: '4px',
|
|
103
103
|
height: '47px',
|
|
@@ -125,14 +125,13 @@ export var CustomStyles = {
|
|
|
125
125
|
};
|
|
126
126
|
export var getCustomTheme = function (theme, optionVariant, useFilterSubvariant) {
|
|
127
127
|
var customColors = {
|
|
128
|
-
textPrimary: th.color('textPrimary')({ theme: theme }),
|
|
129
128
|
primary: th.color('red1')({ theme: theme }),
|
|
130
129
|
inputTextColor: th.color('blue1')({ theme: theme }),
|
|
131
130
|
backgroundColor: th.color('white')({ theme: theme }),
|
|
132
131
|
backgroundColorDisabled: th.color('neutral20')({ theme: theme }),
|
|
133
132
|
multiValueBackgroundColor: th.color('lightGray7')({ theme: theme }),
|
|
134
133
|
menuBackgroundColor: th.color('white')({ theme: theme }),
|
|
135
|
-
optionTextColor: th.color('
|
|
134
|
+
optionTextColor: th.color('textPrimary')({ theme: theme }),
|
|
136
135
|
menuHoverBackgroundColor: th.color('neutral20')({ theme: theme }),
|
|
137
136
|
inputDisabledColor: th.color('lightGray1')({ theme: theme }),
|
|
138
137
|
inputBorderColor: th.color('lightGray3')({ theme: theme }),
|