@mailstep/design-system 0.8.7-beta.3 → 0.8.7

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.7-beta.3",
3
+ "version": "0.8.7",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "./ui/index.js",
@@ -13,7 +13,7 @@
13
13
  "scripts": {
14
14
  "storybook": "storybook dev -p 6006",
15
15
  "build": "rm -rf ./build && tsc && vite build && cp package.json build && cp README.md build",
16
- "build:win": "rmdir /s /q build && tsc && vite build && copy package.json build && copy README.md build",
16
+ "build:win": "tsc && vite build && copy package.json build && copy README.md build",
17
17
  "build-storybook": "storybook build",
18
18
  "deploy": "npm run build && npm publish ./build",
19
19
  "deploy:win": "npm run build:win && npm publish ./build",
@@ -45,17 +45,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
45
45
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
46
  }
47
47
  };
48
- var __rest = (this && this.__rest) || function (s, e) {
49
- var t = {};
50
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
51
- t[p] = s[p];
52
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
53
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
54
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
55
- t[p[i]] = s[p[i]];
56
- }
57
- return t;
58
- };
59
48
  var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
60
49
  if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
61
50
  if (ar || !(i in from)) {
@@ -74,8 +63,7 @@ import isArray from 'lodash/isArray';
74
63
  import uniqBy from 'lodash/uniqBy';
75
64
  import { isOptionArray } from './guards';
76
65
  var SelectFilter = function (_a) {
77
- var onChange = _a.onChange, _b = _a.isClearable, isClearable = _b === void 0 ? true : _b, isMulti = _a.isMulti, value = _a.value, options = _a.options, checkAllButton = _a.checkAllButton, asyncLoadKey = _a.asyncLoadKey, onAsyncLoadFilterOptions = _a.onAsyncLoadFilterOptions, _c = _a.onlyInComparator, onlyInComparator = _c === void 0 ? false : _c, props = __rest(_a, ["onChange", "isClearable", "isMulti", "value", "options", "checkAllButton", "asyncLoadKey", "onAsyncLoadFilterOptions", "onlyInComparator"]);
78
- console.log('SelectFilter rendered with props:', onlyInComparator, props);
66
+ var onChange = _a.onChange, _b = _a.isClearable, isClearable = _b === void 0 ? true : _b, isMulti = _a.isMulti, value = _a.value, options = _a.options, checkAllButton = _a.checkAllButton, asyncLoadKey = _a.asyncLoadKey, onAsyncLoadFilterOptions = _a.onAsyncLoadFilterOptions, _c = _a.onlyInComparator, onlyInComparator = _c === void 0 ? false : _c;
79
67
  var _d = useState([]), loadedOptions = _d[0], setLoadedOptions = _d[1];
80
68
  var _e = useState(false), isNotEqNoValue = _e[0], setIsNotEqNoValue = _e[1];
81
69
  var isAsync = !!asyncLoadKey;
@@ -114,6 +114,7 @@ export type ColumnDefinition<ColumnName extends string = string> = ColumnBasePro
114
114
  isUuid?: boolean;
115
115
  defaultComparator?: string;
116
116
  checkAllButton?: boolean;
117
+ onlyInComparator?: boolean;
117
118
  };
118
119
  getFilterCriteria?: (value: string) => Record<string, any> | null;
119
120
  filterOptions?: Option[];