@mailstep/design-system 0.8.16-beta.16 → 0.8.16-beta.18

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailstep/design-system",
3
- "version": "0.8.16-beta.16",
3
+ "version": "0.8.16-beta.18",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "./ui/index.js",
@@ -0,0 +1,9 @@
1
+ import { FC } from 'react';
2
+
3
+ declare const meta: {
4
+ title: string;
5
+ component: FC<import('../types').SelectProps>;
6
+ argTypes: {};
7
+ };
8
+ export default meta;
9
+ export declare const Primary: FC;
@@ -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.lightGray7, borderRadius: '4px', '& svg': {
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 }),
@@ -63,6 +63,7 @@ export type BaseColors = {
63
63
  inputBorderColor: string;
64
64
  backgroundColor: string;
65
65
  backgroundColorDisabled: string;
66
+ multiValueBackgroundColor: string;
66
67
  menuBackgroundColor: string;
67
68
  inputTextColor: string;
68
69
  placeholderTextColor: string;
@@ -29,7 +29,7 @@ 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 background-color: white;\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: white;\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: white;\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: neutral30;\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: white;\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: neutral30;\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
35
  }, function (props) { return resolvePaddingRight(props); }, function (props) { return (props.type !== 'checkbox' ? '100%' : 'auto'); }, th('fonts.primary'), InputIcon, InputIcon, function (_a) {
@@ -19,6 +19,7 @@ declare const darkTheme: {
19
19
  lightGray5: string;
20
20
  lightGray6: string;
21
21
  neutral10: string;
22
+ neutral30: string;
22
23
  neutral300: string;
23
24
  neutral500: string;
24
25
  gray: string;
@@ -13,6 +13,7 @@ declare const defaultTheme: {
13
13
  lightGray7: string;
14
14
  neutral10: string;
15
15
  neutral20: string;
16
+ neutral30: string;
16
17
  neutral300: string;
17
18
  neutral500: string;
18
19
  gray: string;
@@ -13,6 +13,7 @@ var defaultTheme = {
13
13
  lightGray7: '#E7EBEF',
14
14
  neutral10: '#FAFBFC',
15
15
  neutral20: '#F1F5F9',
16
+ neutral30: '#F1F5F9',
16
17
  neutral300: '#5E6C84',
17
18
  neutral500: '#42526E',
18
19
  gray: '#8594A5',
@@ -14,6 +14,7 @@ declare const themes: {
14
14
  lightGray7: string;
15
15
  neutral10: string;
16
16
  neutral20: string;
17
+ neutral30: string;
17
18
  neutral300: string;
18
19
  neutral500: string;
19
20
  gray: string;
@@ -375,6 +376,7 @@ declare const themes: {
375
376
  lightGray5: string;
376
377
  lightGray6: string;
377
378
  neutral10: string;
379
+ neutral30: string;
378
380
  neutral300: string;
379
381
  neutral500: string;
380
382
  gray: string;