@mailstep/design-system 0.8.16-beta.16 → 0.8.16-beta.17
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/Elements/Select/stories/Select.stories.d.ts +9 -0
- package/ui/Elements/Select/stories/Select.stories.js +14 -0
- package/ui/Elements/Select/themes/selectStyles.js +2 -1
- package/ui/Elements/Select/types.d.ts +1 -0
- package/ui/index.es.js +6444 -6435
- package/ui/index.umd.js +358 -358
package/package.json
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Select from '../Select';
|
|
3
|
+
var meta = {
|
|
4
|
+
title: 'Forms/Select',
|
|
5
|
+
component: Select,
|
|
6
|
+
argTypes: {}
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
var options = [
|
|
10
|
+
{ value: '1', label: 'Option 1' },
|
|
11
|
+
{ value: '2', label: 'Option 2' },
|
|
12
|
+
{ value: '3', label: 'Option 3' }
|
|
13
|
+
];
|
|
14
|
+
export var Primary = function () { return (_jsx(Select, { label: "Primary Input", onChange: function () { }, options: options, isMulti: true, value: ['1', '2'] })); };
|
|
@@ -37,7 +37,7 @@ export var CustomStyles = {
|
|
|
37
37
|
},
|
|
38
38
|
multiValue: function (styles, state) {
|
|
39
39
|
var theme = state.theme;
|
|
40
|
-
return __assign(__assign({}, styles), { color: theme.colors.inputTextColor, fontWeight: theme.textWeightNormal, backgroundColor: theme.colors.
|
|
40
|
+
return __assign(__assign({}, styles), { color: theme.colors.inputTextColor, fontWeight: theme.textWeightNormal, backgroundColor: theme.colors.multiValueBackgroundColor, borderRadius: '4px', '& svg': {
|
|
41
41
|
color: theme.colors.inputTextColor
|
|
42
42
|
}, ' > div': {
|
|
43
43
|
fontSize: '12px'
|
|
@@ -129,6 +129,7 @@ export var getCustomTheme = function (theme, optionVariant, useFilterSubvariant)
|
|
|
129
129
|
inputTextColor: th.color('blue1')({ theme: theme }),
|
|
130
130
|
backgroundColor: th.color('white')({ theme: theme }),
|
|
131
131
|
backgroundColorDisabled: th.color('bgLightGray1')({ theme: theme }),
|
|
132
|
+
multiValueBackgroundColor: th.color('lightGray7')({ theme: theme }),
|
|
132
133
|
menuBackgroundColor: th.color('white')({ theme: theme }),
|
|
133
134
|
optionTextColor: th.color('blue2')({ theme: theme }),
|
|
134
135
|
menuHoverBackgroundColor: th.color('bgLightGray1')({ theme: theme }),
|