@snack-uikit/counter 0.6.5-preview-ba12ca94.0 → 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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 0.8.0 (2024-10-28)
7
+
8
+
9
+ ### Features
10
+
11
+ * **FF-5782:** sass use/forward approach ([3e53869](https://github.com/cloud-ru-tech/snack-uikit/commit/3e53869ace864a7718e434b7f410c15dbd911cd5))
12
+
13
+
14
+
15
+
16
+
17
+ # 0.7.0 (2024-10-28)
18
+
19
+
20
+ ### Features
21
+
22
+ * **FF-5502:** add cjs build ([ffada28](https://github.com/cloud-ru-tech/snack-uikit/commit/ffada28bfdc37ea760eb1c8759342e680bdf8dd6))
23
+
24
+
25
+
26
+
27
+
6
28
  ## 0.6.4 (2024-09-23)
7
29
 
8
30
  ### Only dependencies have been changed
@@ -255,7 +277,8 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
255
277
 
256
278
  ## 0.1.1 (2023-04-07)
257
279
 
258
- **Note:** Version bump only for package @snack-uikit/counter
280
+ ### Only dependencies have been changed
281
+ * [@snack-uikit/utils@3.5.0](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/utils/CHANGELOG.md)
259
282
 
260
283
 
261
284
 
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "title": "Counter",
7
- "version": "0.6.5-preview-ba12ca94.0",
7
+ "version": "0.8.0",
8
8
  "sideEffects": [
9
9
  "*.css",
10
10
  "*.woff",
@@ -36,8 +36,8 @@
36
36
  "license": "Apache-2.0",
37
37
  "scripts": {},
38
38
  "dependencies": {
39
- "@snack-uikit/utils": "3.4.1-preview-ba12ca94.0",
39
+ "@snack-uikit/utils": "3.5.0",
40
40
  "classnames": "2.3.2"
41
41
  },
42
- "gitHead": "9ac0a3e5e530c09fa4dc050f9bc08d1849962129"
42
+ "gitHead": "8499829efa0c118b704de17411ae2328a024adb5"
43
43
  }
@@ -1,4 +1,4 @@
1
- @import '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-counter';
1
+ @use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-counter';
2
2
 
3
3
  $sizes: 's', 'm';
4
4
  $appearances: 'primary', 'neutral', 'red';
@@ -6,16 +6,16 @@ $variants: 'count', 'count-plus', 'count-k';
6
6
  $colors: 'accent', 'decor';
7
7
 
8
8
  $value-typography: (
9
- s: $sans-label-s,
10
- m: $sans-label-l,
9
+ s: styles-tokens-counter.$sans-label-s,
10
+ m: styles-tokens-counter.$sans-label-l,
11
11
  );
12
12
  $plus-typography: (
13
- s: $sans-label-l,
14
- m: $sans-label-l,
13
+ s: styles-tokens-counter.$sans-label-l,
14
+ m: styles-tokens-counter.$sans-label-l,
15
15
  );
16
16
  $key-typography: (
17
- s: $sans-label-s,
18
- m: $sans-label-l,
17
+ s: styles-tokens-counter.$sans-label-s,
18
+ m: styles-tokens-counter.$sans-label-l,
19
19
  );
20
20
  $text-color: (
21
21
  accent: 'on-accent',
@@ -41,12 +41,12 @@ $bg-color: (
41
41
  @each $appearance in $appearances {
42
42
  &[data-color='#{$color}'] {
43
43
  &[data-appearance='#{$appearance}'] {
44
- $text: simple-var($text-color, $color);
45
- $background: simple-var($bg-color, $color);
44
+ $text: styles-tokens-counter.simple-var($text-color, $color);
45
+ $background: styles-tokens-counter.simple-var($bg-color, $color);
46
46
 
47
- color: simple-var($theme-variables, 'sys', $appearance, $text);
48
- background-color: simple-var($theme-variables, 'sys', $appearance, $background);
49
- border-color: $sys-neutral-background1-level;
47
+ color: styles-tokens-counter.simple-var(styles-tokens-counter.$theme-variables, 'sys', $appearance, $text);
48
+ background-color: styles-tokens-counter.simple-var(styles-tokens-counter.$theme-variables, 'sys', $appearance, $background);
49
+ border-color: styles-tokens-counter.$sys-neutral-background1-level;
50
50
  }
51
51
  }
52
52
  }
@@ -54,15 +54,15 @@ $bg-color: (
54
54
 
55
55
  @each $size in $sizes {
56
56
  &[data-size='#{$size}'] {
57
- @include composite-var($value-typography, $size);
58
- @include composite-var($counter, $size);
57
+ @include styles-tokens-counter.composite-var($value-typography, $size);
58
+ @include styles-tokens-counter.composite-var(styles-tokens-counter.$counter, $size);
59
59
 
60
60
  .plus {
61
- @include composite-var($plus-typography, $size);
61
+ @include styles-tokens-counter.composite-var($plus-typography, $size);
62
62
  }
63
63
 
64
64
  .key {
65
- @include composite-var($key-typography, $size);
65
+ @include styles-tokens-counter.composite-var($key-typography, $size);
66
66
  }
67
67
  }
68
68
  }