@mailstep/design-system 0.8.0-beta.1 → 0.8.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.
Files changed (83) hide show
  1. package/package.json +14 -8
  2. package/ui/Blocks/CommonGrid/CommonGrid.js +2 -2
  3. package/ui/Blocks/CommonGrid/components/ColumnFilterCell.d.ts +1 -0
  4. package/ui/Blocks/CommonGrid/components/ColumnFilterCell.js +2 -2
  5. package/ui/Blocks/CommonGrid/components/FilterRow.d.ts +1 -0
  6. package/ui/Blocks/CommonGrid/components/FilterRow.js +2 -2
  7. package/ui/Blocks/CommonGrid/components/Filters/GridSelect/GridSelect.d.ts +6 -3
  8. package/ui/Blocks/CommonGrid/components/Filters/GridSelect/GridSelect.js +74 -9
  9. package/ui/Blocks/CommonGrid/components/Filters/GridSelect/guards.d.ts +3 -0
  10. package/ui/Blocks/CommonGrid/components/Filters/GridSelect/guards.js +3 -0
  11. package/ui/Blocks/CommonGrid/storybook/stories/complexWithPaginationAndRedux.stories.js +2 -2
  12. package/ui/Blocks/CommonGrid/storybook/utils/columnDefinition.js +9 -0
  13. package/ui/Blocks/CommonGrid/storybook/utils/utils.d.ts +1 -0
  14. package/ui/Blocks/CommonGrid/storybook/utils/utils.js +19 -0
  15. package/ui/Blocks/CommonGrid/types.d.ts +2 -0
  16. package/ui/Blocks/CommonGrid/utils/index.d.ts +1 -4
  17. package/ui/Blocks/CommonGrid/utils/index.js +1 -1
  18. package/ui/Blocks/CornerDialog/stories/CornerDialog.stories.d.ts +1 -1
  19. package/ui/Blocks/ImageList/stories/ImageList.stories.d.ts +1 -1
  20. package/ui/Blocks/LanguageSwitch/stories/LanguageSwith.stories.d.ts +1 -1
  21. package/ui/Blocks/LightBox/stories/LightBox.stories.d.ts +1 -1
  22. package/ui/Blocks/Modal/stories/Modal.stories.d.ts +1 -1
  23. package/ui/Blocks/Tabs/stories/Tabs.stories.d.ts +1 -1
  24. package/ui/Elements/Alert/stories/Alert.stories.d.ts +1 -1
  25. package/ui/Elements/AsyncSelect/stories/AsyncSelect.stories.d.ts +1 -1
  26. package/ui/Elements/Avatar/stories/Avatar.stories.d.ts +1 -1
  27. package/ui/Elements/Badge/stories/Badge.stories.d.ts +1 -1
  28. package/ui/Elements/BarChartSymbol/stories/BarChartSymbol.stories.d.ts +1 -1
  29. package/ui/Elements/BorderedBox/stories/BorderedBox.stories.d.ts +1 -1
  30. package/ui/Elements/Button/stories/Button.stories.d.ts +1 -1
  31. package/ui/Elements/Card/stories/Card.stories.d.ts +1 -1
  32. package/ui/Elements/CheckedCircle/storries/CheckedCircle.stories.d.ts +1 -1
  33. package/ui/Elements/Dropdown/stories/Dropdown.stories.d.ts +1 -1
  34. package/ui/Elements/ErrorMessage/stories/ErrorMessage.stories.d.ts +1 -1
  35. package/ui/Elements/Icon/icons/CircleHalfStroke.d.ts +4 -0
  36. package/ui/Elements/Icon/icons/CircleHalfStroke.js +13 -0
  37. package/ui/Elements/Icon/icons/Moon.d.ts +4 -0
  38. package/ui/Elements/Icon/icons/Moon.js +13 -0
  39. package/ui/Elements/Icon/icons/ShieldUser.d.ts +4 -0
  40. package/ui/Elements/Icon/icons/ShieldUser.js +13 -0
  41. package/ui/Elements/Icon/icons/Sun.d.ts +4 -0
  42. package/ui/Elements/Icon/icons/Sun.js +13 -0
  43. package/ui/Elements/Icon/icons/UserCowboy.d.ts +4 -0
  44. package/ui/Elements/Icon/icons/UserCowboy.js +13 -0
  45. package/ui/Elements/Icon/icons/index.d.ts +5 -0
  46. package/ui/Elements/Icon/icons/index.js +5 -0
  47. package/ui/Elements/Icon/stories/BadgeIcon.stories.d.ts +2 -2
  48. package/ui/Elements/Icon/stories/Icon.stories.d.ts +1 -1
  49. package/ui/Elements/Image/stories/Image.stories.d.ts +1 -1
  50. package/ui/Elements/Label/stories/Label.stories.d.ts +1 -1
  51. package/ui/Elements/Line/stories/Line.stories.d.ts +1 -1
  52. package/ui/Elements/Link/stories/Link.stories.d.ts +1 -1
  53. package/ui/Elements/Logo/stories/Logo.stories.d.ts +1 -1
  54. package/ui/Elements/Pagination/stories/Pagination.stories.d.ts +1 -1
  55. package/ui/Elements/ProgressBar/stories/ProgressBar.stories.d.ts +1 -1
  56. package/ui/Elements/Select/Select.js +4 -3
  57. package/ui/Elements/Select/components/ConnectedMenu.js +10 -3
  58. package/ui/Elements/Select/components/SelectAll.d.ts +5 -3
  59. package/ui/Elements/Select/components/SelectAll.js +8 -5
  60. package/ui/Elements/Select/themes/index.js +1 -1
  61. package/ui/Elements/Select/themes/selectStyles.js +4 -1
  62. package/ui/Elements/SingleSelect/SingleSelect.js +5 -6
  63. package/ui/Elements/SpaceAround/stories/SpaceAround.stories.d.ts +1 -1
  64. package/ui/Elements/Spinner/stories/Spinner.stories.d.ts +1 -1
  65. package/ui/Elements/Tag/stories/Tag.stories.d.ts +1 -1
  66. package/ui/Elements/Text/stories/Text.stories.d.ts +1 -1
  67. package/ui/Elements/Toast/stories/Toast.stories.d.ts +1 -1
  68. package/ui/Elements/Toggle/stories/Toggle.stories.d.ts +1 -1
  69. package/ui/Elements/Tooltip/stories/Tooltip.stories.d.ts +1 -1
  70. package/ui/Elements/Typography/stories/Typography.stories.d.ts +1 -1
  71. package/ui/Forms/Checkbox/stories/Checkbox.stories.d.ts +1 -1
  72. package/ui/Forms/Checkbox/styles.d.ts +1 -1
  73. package/ui/Forms/Input/stories/Input.stories.d.ts +1 -1
  74. package/ui/Forms/RadioButton/stories/RadioButton.stories.d.ts +1 -1
  75. package/ui/index.d.ts +1 -3
  76. package/ui/index.es.js +10242 -10154
  77. package/ui/index.js +1 -3
  78. package/ui/index.umd.js +401 -401
  79. package/ui/utils/KeyPress/KeyPress.stories.d.ts +1 -1
  80. package/ui/Elements/MultiSelect/MultiSelect.d.ts +0 -8
  81. package/ui/Elements/MultiSelect/MultiSelect.js +0 -29
  82. package/ui/Elements/MultiSelect/index.d.ts +0 -3
  83. package/ui/Elements/MultiSelect/index.js +0 -2
@@ -78,3 +78,8 @@ export { MachinePackingForbidden } from './MachinePackingForbidden';
78
78
  export { Valuable } from './Valuable';
79
79
  export { MobilePhone } from './MobilePhone';
80
80
  export { Reload } from './Reload';
81
+ export { Sun } from './Sun';
82
+ export { Moon } from './Moon';
83
+ export { CircleHalfStroke } from './CircleHalfStroke';
84
+ export { ShieldUser } from './ShieldUser';
85
+ export { UserCowboy } from './UserCowboy';
@@ -1,11 +1,11 @@
1
- import { StoryObj } from '@storybook/react-webpack5';
1
+ import { StoryObj } from '@storybook/react';
2
2
 
3
3
  declare const meta: {
4
4
  title: string;
5
5
  component: import('react').FC<{
6
6
  badge: "warning";
7
7
  } & import('..').IconProps>;
8
- decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
8
+ decorators: ((Story: import('@storybook/core/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
9
9
  badge: "warning";
10
10
  icon: string;
11
11
  style?: "normal" | "light" | "solid" | undefined;
@@ -1,4 +1,4 @@
1
- import { StoryObj } from '@storybook/react-webpack5';
1
+ import { StoryObj } from '@storybook/react';
2
2
 
3
3
  declare const meta: {
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- import { StoryObj } from '@storybook/react-webpack5';
1
+ import { StoryObj } from '@storybook/react';
2
2
 
3
3
  declare const meta: {
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- import { StoryObj } from '@storybook/react-webpack5';
1
+ import { StoryObj } from '@storybook/react';
2
2
 
3
3
  declare const meta: {
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- import { StoryObj } from '@storybook/react-webpack5';
1
+ import { StoryObj } from '@storybook/react';
2
2
 
3
3
  declare const meta: {
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- import { StoryObj } from '@storybook/react-webpack5';
1
+ import { StoryObj } from '@storybook/react';
2
2
 
3
3
  declare const meta: {
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- import { StoryObj } from '@storybook/react-webpack5';
1
+ import { StoryObj } from '@storybook/react';
2
2
 
3
3
  declare const meta: {
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- import { StoryObj } from '@storybook/react-webpack5';
1
+ import { StoryObj } from '@storybook/react';
2
2
  import { PaginationProps } from '../';
3
3
 
4
4
  declare const meta: {
@@ -1,4 +1,4 @@
1
- import { StoryObj } from '@storybook/react-webpack5';
1
+ import { StoryObj } from '@storybook/react';
2
2
 
3
3
  declare const meta: {
4
4
  title: string;
@@ -71,10 +71,11 @@ var loadingMessage = function () { return i18n._({ id: 'components.dropdown.load
71
71
  var Select = function (_a) {
72
72
  var label = _a.label, name = _a.name, _b = _a.value, value = _b === void 0 ? '' : _b, _c = _a.options, options = _c === void 0 ? emptyOptions : _c, defaultOptions = _a.defaultOptions, loadOptions = _a.loadOptions, onChange = _a.onChange, onBlur = _a.onBlur, error = _a.error, isInvalid = _a.isInvalid, isLoading = _a.isLoading, isDarkPlaceholderText = _a.isDarkPlaceholderText, _d = _a.spaceAround, spaceAround = _d === void 0 ? false : _d, disabled = _a.disabled, onInputChange = _a.onInputChange, isSearchable = _a.isSearchable, isMulti = _a.isMulti, className = _a.className, _e = _a.useSimplifiedOptions, useSimplifiedOptions = _e === void 0 ? false : _e, _f = _a.showSelectAllButton, showSelectAllButton = _f === void 0 ? false : _f, _g = _a.showResetGridButton, showResetGridButton = _g === void 0 ? false : _g, _h = _a.shortValues, shortValues = _h === void 0 ? true : _h, style = _a.style, optionVariant = _a.optionVariant, multiLabelVariant = _a.multiLabelVariant, containerVariant = _a.containerVariant, placeholder = _a.placeholder, placeholderIcon = _a.placeholderIcon, innerRef = _a.innerRef, maxMenuHeight = _a.maxMenuHeight, getOptionValue = _a.getOptionValue, resetGrid = _a.resetGrid, passTroughProps = __rest(_a, ["label", "name", "value", "options", "defaultOptions", "loadOptions", "onChange", "onBlur", "error", "isInvalid", "isLoading", "isDarkPlaceholderText", "spaceAround", "disabled", "onInputChange", "isSearchable", "isMulti", "className", "useSimplifiedOptions", "showSelectAllButton", "showResetGridButton", "shortValues", "style", "optionVariant", "multiLabelVariant", "containerVariant", "placeholder", "placeholderIcon", "innerRef", "maxMenuHeight", "getOptionValue", "resetGrid"]);
73
73
  var isAsync = !!loadOptions;
74
- if (showSelectAllButton && (loadOptions || !isMulti)) {
74
+ if (showSelectAllButton && !isMulti) {
75
75
  console.error('CheckboxSelect incompatible props');
76
76
  }
77
- var setAllOptions = useCallback(function () {
77
+ var setAllOptions = useCallback(function (_a) {
78
+ var options = _a.options;
78
79
  onChange === null || onChange === void 0 ? void 0 : onChange((options || []));
79
80
  }, [onChange, options]);
80
81
  var unsetAllOptions = useCallback(function () {
@@ -105,6 +106,6 @@ var Select = function (_a) {
105
106
  }
106
107
  }); }); } : undefined;
107
108
  }, [loadOptions]);
108
- return (_jsxs(SpaceAroundWrap, { spaceAround: spaceAround, className: className, children: [_jsxs(Wrapper, { children: [label && _jsx(FieldLabel, { htmlFor: name, children: label }), _jsx(RenderComponent, __assign({ id: name, name: name, options: options, loadOptions: handleLoadOptions, defaultOptions: defaultOptions, value: selectedOption, onChange: onChange, onBlur: onBlur, isDisabled: disabled || isLoading, isLoading: isLoading, isInvalid: isInvalid !== undefined ? isInvalid : !!error, isDarkPlaceholderText: isDarkPlaceholderText, placeholder: placeholder || i18n._({ id: 'components.dropdown.placeholder', message: 'Select...' }), styles: customStyles, theme: customTheme, icon: icon, hideSelectedOptions: !!(isMulti && multiLabelVariant != 'count'), onInputChange: onInputChange, isSearchable: isAsync || isSearchable, isMulti: isMulti, classNamePrefix: "react-select", components: customComponents, closeMenuOnSelect: isMulti ? false : undefined }, passTroughProps, { ref: innerRef, tabIndex: null, systemTheme: theme, resetGrid: resetGrid, onCustomSelectAll: setAllOptions, onCustomDeselectAll: unsetAllOptions, selectAllButton: showSelectAllButton, resetGridButton: showResetGridButton, maxMenuHeight: modifiedMaxMenuHeight, getOptionValue: getOptionValue, noOptionsMessage: noOptionsMessage, loadingMessage: loadingMessage, shortValues: shortValues }))] }), error && _jsx(ErrorMessage, { children: error })] }));
109
+ return (_jsxs(SpaceAroundWrap, { spaceAround: spaceAround, className: className, children: [_jsxs(Wrapper, { children: [label && _jsx(FieldLabel, { htmlFor: name, children: label }), _jsx(RenderComponent, __assign({ id: name, name: name, options: options, loadOptions: handleLoadOptions, defaultOptions: defaultOptions, value: selectedOption, onChange: onChange, onBlur: onBlur, isDisabled: disabled || isLoading, isLoading: isLoading, isInvalid: isInvalid !== undefined ? isInvalid : !!error, isDarkPlaceholderText: isDarkPlaceholderText, placeholder: placeholder || i18n._({ id: 'components.dropdown.placeholder', message: 'Select...' }), styles: customStyles, theme: customTheme, icon: icon, hideSelectedOptions: !!(isMulti && multiLabelVariant != 'count'), onInputChange: onInputChange, isSearchable: isAsync || isSearchable, isMulti: isMulti, classNamePrefix: "react-select", components: customComponents, closeMenuOnSelect: isMulti ? false : undefined, noOptionsMessage: noOptionsMessage }, passTroughProps, { ref: innerRef, tabIndex: null, systemTheme: theme, resetGrid: resetGrid, onCustomSelectAll: setAllOptions, onCustomDeselectAll: unsetAllOptions, selectAllButton: showSelectAllButton, resetGridButton: showResetGridButton, maxMenuHeight: modifiedMaxMenuHeight, getOptionValue: getOptionValue, loadingMessage: loadingMessage, shortValues: shortValues }))] }), error && _jsx(ErrorMessage, { children: error })] }));
109
110
  };
110
111
  export default Select;
@@ -10,12 +10,19 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { useMemo } from 'react';
13
14
  import { components as selectComponents } from 'react-select';
14
- import SelectAll from '../components/SelectAll';
15
15
  import ResetAll from '../components/ResetAll';
16
+ import SelectAll from '../components/SelectAll';
16
17
  var ConnectedMenu = function (props) {
17
18
  var theme = props.theme;
18
- var _a = props.selectProps, resetGrid = _a.resetGrid, onCustomSelectAll = _a.onCustomSelectAll, onCustomDeselectAll = _a.onCustomDeselectAll, value = _a.value, options = _a.options, resetGridButton = _a.resetGridButton, selectAllButton = _a.selectAllButton, maxMenuHeight = _a.maxMenuHeight;
19
- return (_jsxs(selectComponents.MenuList, __assign({}, props, { children: [selectAllButton && (_jsx(SelectAll, { theme: theme, onCustomSelectAll: onCustomSelectAll, onCustomDeselectAll: onCustomDeselectAll, value: value, options: options, maxMenuHeight: maxMenuHeight })), props.children, resetGridButton && _jsx(ResetAll, { onReset: resetGrid })] })));
19
+ var _a = props.selectProps, resetGrid = _a.resetGrid, onCustomSelectAll = _a.onCustomSelectAll, onCustomDeselectAll = _a.onCustomDeselectAll, value = _a.value, resetGridButton = _a.resetGridButton, selectAllButton = _a.selectAllButton, maxMenuHeight = _a.maxMenuHeight, isLoading = _a.isLoading;
20
+ // because the filterd options (filterd by the search input) are not passed to the menu list (there are all options),
21
+ // we need to specify them here by children
22
+ var filteredOptions = useMemo(function () { var _a, _b; return (_b = (_a = props.children) === null || _a === void 0 ? void 0 : _a.map) === null || _b === void 0 ? void 0 : _b.call(_a, function (_a) {
23
+ var _b = _a.props, value = _b.value, label = _b.label;
24
+ return ({ label: label, value: value });
25
+ }); }, [props.children]);
26
+ return (_jsxs(selectComponents.MenuList, __assign({}, props, { children: [selectAllButton && !isLoading && (_jsx(SelectAll, { theme: theme, onCustomSelectAll: onCustomSelectAll, onCustomDeselectAll: onCustomDeselectAll, value: value, options: filteredOptions, maxMenuHeight: maxMenuHeight })), props.children, resetGridButton && _jsx(ResetAll, { onReset: resetGrid })] })));
20
27
  };
21
28
  export default ConnectedMenu;
@@ -1,12 +1,14 @@
1
- import { SelectProps, CustomTheme } from '../types';
1
+ import { SelectProps, CustomTheme, Option } from '../types';
2
2
 
3
3
  type Props = {
4
- onCustomSelectAll: () => void;
4
+ onCustomSelectAll: ({ options }: {
5
+ options?: Option[];
6
+ }) => void;
5
7
  onCustomDeselectAll: () => void;
6
8
  value: SelectProps['value'];
7
9
  options: SelectProps['options'];
8
10
  maxMenuHeight: number;
9
11
  theme: CustomTheme;
10
12
  };
11
- declare const SelectAll: ({ onCustomSelectAll, onCustomDeselectAll, value, options, maxMenuHeight, theme }: Props) => import("react/jsx-runtime").JSX.Element;
13
+ declare const SelectAll: ({ onCustomSelectAll, onCustomDeselectAll, value, options, maxMenuHeight, theme }: Props) => import("react/jsx-runtime").JSX.Element | null;
12
14
  export default SelectAll;
@@ -4,11 +4,11 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
4
4
  };
5
5
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
6
  import { useCallback, useState, useEffect, useRef } from 'react';
7
- import styled, { th } from '@xstyled/styled-components';
8
- import { Trans } from '@lingui/react';
9
7
  import Checkbox from '../../../Forms/Checkbox/Checkbox';
10
8
  import Toggle from '../../Toggle/Toggle';
11
9
  import SelectedIndicator from '../components/SelectedIndicator';
10
+ import { Trans } from '@lingui/react';
11
+ import styled, { th } from '@xstyled/styled-components';
12
12
  var SelectAllWrap = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n margin: 0px 2px 1px 0px;\n padding: ", ";\n font-weight: 400;\n background-color: ", ";\n color: ", ";\n border-radius: 6px;\n height: 36px;\n cursor: pointer;\n\n :hover {\n background-color: ", ";\n }\n"], ["\n display: flex;\n margin: 0px 2px 1px 0px;\n padding: ", ";\n font-weight: 400;\n background-color: ", ";\n color: ", ";\n border-radius: 6px;\n height: 36px;\n cursor: pointer;\n\n :hover {\n background-color: ", ";\n }\n"])), function (_a) {
13
13
  var additionalPadding = _a.additionalPadding;
14
14
  return (additionalPadding ? '8px 27px 8px 10px' : '10px 10px');
@@ -32,13 +32,13 @@ var SelectAll = function (_a) {
32
32
  var handleSelectAll = useCallback(function () {
33
33
  if (!isSelected) {
34
34
  setIsSelected(true);
35
- onCustomSelectAll();
35
+ onCustomSelectAll({ options: options });
36
36
  }
37
37
  else if (isSelected) {
38
38
  setIsSelected(false);
39
39
  onCustomDeselectAll();
40
40
  }
41
- }, [isSelected, onCustomDeselectAll, onCustomSelectAll]);
41
+ }, [isSelected, onCustomDeselectAll, onCustomSelectAll, options]);
42
42
  useEffect(function () {
43
43
  var _a;
44
44
  // if the height of all options is higher than maxMenuHeight and the slider is displayed => the indentation needs to be increased
@@ -50,7 +50,10 @@ var SelectAll = function (_a) {
50
50
  (options === null || options === void 0 ? void 0 : options.length) !== value.length && setIsSelected(false);
51
51
  }
52
52
  }, [maxMenuHeight, options === null || options === void 0 ? void 0 : options.length, value]);
53
- return (_jsxs(SelectAllWrap, { isSelected: isSelected, onClick: handleSelectAll, ref: ref, additionalPadding: additionalPadding, children: [(showCheckbox || showToggle) && (_jsxs(SelectedIndicator, { children: [showCheckbox && _jsx(Checkbox, { checked: isSelected, size: 2, readOnly: true }), showToggle && _jsx(Toggle, { name: "", checked: isSelected, spaceAround: false, variant: 'grid' })] })), _jsx(Trans, { id: "datagrid.filterCell.selectAllLabel", message: 'select all' })] }));
53
+ if (!(options === null || options === void 0 ? void 0 : options.length)) {
54
+ return null;
55
+ }
56
+ return (_jsxs(SelectAllWrap, { isSelected: isSelected, onClick: handleSelectAll, ref: ref, additionalPadding: additionalPadding, children: [(showCheckbox || showToggle) && (_jsxs(SelectedIndicator, { children: [showCheckbox && _jsx(Checkbox, { checked: isSelected, size: 2, readOnly: true }), showToggle && _jsx(Toggle, { name: "", checked: isSelected, spaceAround: false, variant: 'grid' })] })), _jsx(Trans, { id: "datagrid.filterCell.selectAllLabel", message: 'select all' }), " (", options === null || options === void 0 ? void 0 : options.length, ")"] }));
54
57
  };
55
58
  export default SelectAll;
56
59
  var templateObject_1;
@@ -21,6 +21,7 @@ export var useStylesAndComponents = function (style, optionVariant, multiLabelVa
21
21
  var components = {
22
22
  ValueContainer: IconValueContainer
23
23
  };
24
+ components.DropdownIndicator = DropdownIndicator;
24
25
  if (multiLabelVariant === 'count') {
25
26
  components.MultiValue = CountMultiValue;
26
27
  }
@@ -34,7 +35,6 @@ export var useStylesAndComponents = function (style, optionVariant, multiLabelVa
34
35
  var themes = getFormCustomTheme(systemTheme, optionVariant, style == 'gridFilter');
35
36
  var styles = SelectCustomStyles;
36
37
  components.Option = ChevronOption;
37
- components.DropdownIndicator = DropdownIndicator;
38
38
  // performance reasons
39
39
  if (useSimplifiedOptions)
40
40
  components.Option = SimplifiedOption;
@@ -122,8 +122,11 @@ export var CustomStyles = {
122
122
  },
123
123
  clearIndicator: function (styles, state) {
124
124
  var theme = state.theme;
125
- return __assign(__assign({}, styles), { justifyContent: 'center', alignItems: 'center', padding: theme.narrowIndicators ? '0px 0px 0px 2px' : '0px 4px', color: theme.colors.dropdownIndicatorColor });
125
+ return __assign(__assign({}, styles), { justifyContent: 'center', alignItems: 'center', padding: theme.narrowIndicators ? '0px 4px 0px 0px' : '0px 4px', color: theme.colors.dropdownIndicatorColor });
126
126
  },
127
+ indicatorSeparator: function () { return ({
128
+ display: 'none',
129
+ }); }
127
130
  };
128
131
  export var getCustomTheme = function (theme, optionVariant, useFilterSubvariant) {
129
132
  var inputTextColor = th.color('blue2')({ theme: theme });
@@ -85,12 +85,11 @@ var SingleSelect = function (props) {
85
85
  var _e = useState(false), isCreating = _e[0], setIsCreating = _e[1];
86
86
  var asAsync = !!loadOptions || !!onCreateOption;
87
87
  var noOptionsMessage = useCallback(function (inputValue) {
88
- return loadOptions && inputValue.length < asyncLoadMinChars
89
- ? i18n._({
90
- id: 'components.dropdown.writeMoreChars',
91
- message: 'Write at least ${asyncLoadMinChars} characters.'
92
- })
93
- : i18n._({ id: 'components.dropdown.noOptions', message: 'No options' });
88
+ if (!loadOptions)
89
+ return i18n._({ id: 'components.dropdown.noOptions', message: 'No options' });
90
+ if (inputValue.length < asyncLoadMinChars)
91
+ return i18n._({ id: 'components.dropdown.writeMoreChars', message: 'Write at least ${asyncLoadMinChars} characters.' });
92
+ return i18n._({ id: 'dataGrid.filterCell', message: 'Type to filter' });
94
93
  }, [loadOptions, asyncLoadMinChars]);
95
94
  var handleLoadOptions = useCallback(function (inputValue) { return __awaiter(void 0, void 0, void 0, function () {
96
95
  return __generator(this, function (_a) {
@@ -1,4 +1,4 @@
1
- import { StoryObj } from '@storybook/react-webpack5';
1
+ import { StoryObj } from '@storybook/react';
2
2
 
3
3
  declare const meta: {
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- import { StoryObj } from '@storybook/react-webpack5';
1
+ import { StoryObj } from '@storybook/react';
2
2
 
3
3
  declare const meta: {
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- import { StoryObj } from '@storybook/react-webpack5';
1
+ import { StoryObj } from '@storybook/react';
2
2
 
3
3
  declare const meta: {
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- import { StoryObj } from '@storybook/react-webpack5';
1
+ import { StoryObj } from '@storybook/react';
2
2
 
3
3
  declare const meta: {
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- import { StoryObj } from '@storybook/react-webpack5';
1
+ import { StoryObj } from '@storybook/react';
2
2
 
3
3
  declare const meta: {
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- import { StoryObj } from '@storybook/react-webpack5';
1
+ import { StoryObj } from '@storybook/react';
2
2
 
3
3
  declare const meta: {
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- import { StoryObj } from '@storybook/react-webpack5';
1
+ import { StoryObj } from '@storybook/react';
2
2
 
3
3
  declare const meta: {
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- import { StoryObj } from '@storybook/react-webpack5';
1
+ import { StoryObj } from '@storybook/react';
2
2
 
3
3
  declare const meta: {
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- import { StoryObj } from '@storybook/react-webpack5';
1
+ import { StoryObj } from '@storybook/react';
2
2
 
3
3
  declare const meta: {
4
4
  title: string;
@@ -1,7 +1,7 @@
1
1
  export declare const FakeInput: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
2
2
  size: string | number;
3
3
  }, never>;
4
- export declare const CheckIcon: import('styled-components').StyledComponent<import('react').FC<import('../..').IconProps>, import('@xstyled/system').Theme, {
4
+ export declare const CheckIcon: import('styled-components').StyledComponent<import('react').FC<import('../../Elements/Icon').IconProps>, import('@xstyled/system').Theme, {
5
5
  size: string | number;
6
6
  }, never>;
7
7
  export declare const CheckboxWrap: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, {
@@ -1,4 +1,4 @@
1
- import { StoryObj } from '@storybook/react-webpack5';
1
+ import { StoryObj } from '@storybook/react';
2
2
  import { default as React } from 'react';
3
3
 
4
4
  declare const meta: {
@@ -1,4 +1,4 @@
1
- import { StoryObj } from '@storybook/react-webpack5';
1
+ import { StoryObj } from '@storybook/react';
2
2
 
3
3
  declare const meta: {
4
4
  title: string;
package/ui/index.d.ts CHANGED
@@ -27,7 +27,6 @@ import { default as Label } from './Elements/Label';
27
27
  import { default as Line } from './Elements/Line';
28
28
  import { default as Link } from './Elements/Link';
29
29
  import { default as Logo } from './Elements/Logo';
30
- import { default as MultiSelect } from './Elements/MultiSelect';
31
30
  import { default as Pagination } from './Elements/Pagination';
32
31
  import { default as Portal } from './Elements/Portal';
33
32
  import { default as ProgressBar } from './Elements/ProgressBar';
@@ -47,7 +46,7 @@ import { default as TextArea } from './Forms/TextArea';
47
46
  import { default as ThemeProvider } from './ThemeProvider';
48
47
  import { default as utils } from './utils';
49
48
 
50
- export { DropdownSelect, DatePicker, CommonGrid, Popover, SingleSelect, MultiSelect, Select, Card, CornerDialog, ImageList, LightBox, Modal, Tabs, Alert, Avatar, AsyncSelect, Badge, BorderedBox, Button, Dropdown, ErrorMessage, Icon, Image, Label, Line, Link, Logo, Pagination, Portal, ProgressBar, SimpleLink, SpaceAround, Spinner, Tag, Toast, Toggle, Typography, Checkbox, Input, RadioButton, ThemeProvider, utils, TextArea, LoginPage, LanguageSwitch, SideMenu, Stepper, Scheduler };
49
+ export { DropdownSelect, DatePicker, CommonGrid, Popover, SingleSelect, Select, Card, CornerDialog, ImageList, LightBox, Modal, Tabs, Alert, Avatar, AsyncSelect, Badge, BorderedBox, Button, Dropdown, ErrorMessage, Icon, Image, Label, Line, Link, Logo, Pagination, Portal, ProgressBar, SimpleLink, SpaceAround, Spinner, Tag, Toast, Toggle, Typography, Checkbox, Input, RadioButton, ThemeProvider, utils, TextArea, LoginPage, LanguageSwitch, SideMenu, Stepper, Scheduler };
51
50
  export * from './Blocks/CornerDialog';
52
51
  export * from './Blocks/ImageList';
53
52
  export * from './Blocks/LightBox';
@@ -87,7 +86,6 @@ export * from './Elements/DatePicker';
87
86
  export * from './Blocks/CommonGrid';
88
87
  export * from './Blocks/Popover';
89
88
  export * from './Elements/SingleSelect';
90
- export * from './Elements/MultiSelect';
91
89
  export * from './Elements/Select';
92
90
  export * from './Elements/DropdownSelect';
93
91
  export * from './Forms/TextArea';