@snack-uikit/counter 0.8.12 → 1.0.1-preview-fe85442f.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.
@@ -25,15 +25,18 @@ const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
25
25
  const utils_2 = require("./utils");
26
26
  /** Компонент счетчик */
27
27
  function Counter(_a) {
28
- var {
29
- value,
30
- appearance = constants_1.APPEARANCE.Primary,
31
- variant = constants_1.VARIANT.Count,
32
- size = constants_1.SIZE.S,
33
- plusLimit = constants_1.DEFAULT_PLUS_LIMIT,
34
- color = constants_1.COLOR.Accent,
35
- className
36
- } = _a,
28
+ var value = _a.value,
29
+ _a$appearance = _a.appearance,
30
+ appearance = _a$appearance === void 0 ? constants_1.APPEARANCE.Primary : _a$appearance,
31
+ _a$variant = _a.variant,
32
+ variant = _a$variant === void 0 ? constants_1.VARIANT.Count : _a$variant,
33
+ _a$size = _a.size,
34
+ size = _a$size === void 0 ? constants_1.SIZE.S : _a$size,
35
+ _a$plusLimit = _a.plusLimit,
36
+ plusLimit = _a$plusLimit === void 0 ? constants_1.DEFAULT_PLUS_LIMIT : _a$plusLimit,
37
+ _a$color = _a.color,
38
+ color = _a$color === void 0 ? constants_1.COLOR.Accent : _a$color,
39
+ className = _a.className,
37
40
  rest = __rest(_a, ["value", "appearance", "variant", "size", "plusLimit", "color", "className"]);
38
41
  const formattedValue = (0, utils_2.formatValue)({
39
42
  value,
@@ -13,11 +13,9 @@ const jsx_runtime_1 = require("react/jsx-runtime");
13
13
  const constants_1 = require("./constants");
14
14
  const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
15
15
  function formatValue(_ref) {
16
- let {
17
- value,
18
- variant,
19
- plusLimit
20
- } = _ref;
16
+ let value = _ref.value,
17
+ variant = _ref.variant,
18
+ plusLimit = _ref.plusLimit;
21
19
  if (variant === constants_1.VARIANT.Count) {
22
20
  return value;
23
21
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "title": "Counter",
7
- "version": "0.8.12",
7
+ "version": "1.0.1-preview-fe85442f.0",
8
8
  "sideEffects": [
9
9
  "*.css",
10
10
  "*.woff",
@@ -34,10 +34,9 @@
34
34
  "./LICENSE"
35
35
  ],
36
36
  "license": "Apache-2.0",
37
- "scripts": {},
38
37
  "dependencies": {
39
- "@snack-uikit/utils": "4.0.2",
40
- "classnames": "2.5.1"
38
+ "classnames": "^2.5.1",
39
+ "@snack-uikit/utils": "4.0.3-preview-fe85442f.0"
41
40
  },
42
- "gitHead": "a9f6571146845d828e00206abdedb160980cff97"
43
- }
41
+ "scripts": {}
42
+ }