@mailstep/design-system 0.8.16-beta.19 → 0.8.16-beta.20

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.19",
3
+ "version": "0.8.16-beta.20",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "./ui/index.js",
@@ -6,4 +6,5 @@ declare const meta: {
6
6
  argTypes: {};
7
7
  };
8
8
  export default meta;
9
- export declare const Primary: FC;
9
+ export declare const Default: FC;
10
+ export declare const MultiSelect: FC;
@@ -11,4 +11,5 @@ var options = [
11
11
  { value: '2', label: 'Option 2' },
12
12
  { value: '3', label: 'Option 3' }
13
13
  ];
14
- export var Primary = function () { return (_jsx(Select, { label: "Primary Input", onChange: console.log, options: options, isMulti: true, value: ['1', '2'] })); };
14
+ export var Default = function () { return (_jsx(Select, { label: "Primary Select", onChange: console.log, options: options })); };
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', backgroundColor: theme.colors.menuBackgroundColor });
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.textPrimary, 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', '::-webkit-scrollbar-thumb': {
100
+ return __assign(__assign({}, styles), { margin: '8px 4px 8px 8px', color: theme.colors.textPrimary, '::-webkit-scrollbar-thumb': {
101
101
  border: 'none',
102
102
  borderRadius: '4px',
103
103
  height: '47px',
@@ -125,6 +125,7 @@ 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 }),
128
129
  primary: th.color('red1')({ theme: theme }),
129
130
  inputTextColor: th.color('blue1')({ theme: theme }),
130
131
  backgroundColor: th.color('white')({ theme: theme }),
@@ -57,6 +57,7 @@ export type SelectProps = {
57
57
  onIconClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
58
58
  };
59
59
  export type BaseColors = {
60
+ textPrimary: string;
60
61
  primary: string;
61
62
  optionTextColor: string;
62
63
  inputDisabledColor: string;