@snack-uikit/list 0.18.1-preview-ba12ca94.0 → 0.20.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 +22 -0
- package/README.md +1 -1
- package/package.json +13 -13
- package/src/components/Items/BaseItem/styles.module.scss +21 -21
- package/src/components/Items/PinGroupItem/styles.module.scss +3 -4
- package/src/components/Items/SearchItem/styles.module.scss +3 -3
- package/src/components/Items/styles.module.scss +9 -9
- package/src/components/Lists/ListPrivate/styles.module.scss +11 -11
- package/src/components/Lists/styles.module.scss +8 -8
- package/src/helperComponents/CollapseBlockPrivate/styles.module.scss +3 -3
- package/src/helperComponents/ItemContent/styles.module.scss +21 -22
- package/src/helperComponents/ListEmptyState/styles.module.scss +2 -2
- package/src/helperComponents/Separator/styles.module.scss +20 -22
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.20.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.19.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.18.0 (2024-10-23)
|
|
7
29
|
|
|
8
30
|
|
package/README.md
CHANGED
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
| noDataState | `EmptyStateProps` | - | Экран при отстутствии данных |
|
|
118
118
|
| noResultsState | `EmptyStateProps` | - | Экран при отстутствии результатов поиска или фильтров |
|
|
119
119
|
| errorDataState | `EmptyStateProps` | - | Экран при ошибке запроса |
|
|
120
|
-
| ref | `
|
|
120
|
+
| ref | `LegacyRef<HTMLElement>` | - | Allows getting a ref to the component instance. Once the component unmounts, React will set `ref.current` to `null` (or call the ref with `null` if you passed a callback ref). @see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs} |
|
|
121
121
|
| key | `Key` | - | |
|
|
122
122
|
## ItemContent
|
|
123
123
|
### Props
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "List",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.20.0",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -36,22 +36,22 @@
|
|
|
36
36
|
"license": "Apache-2.0",
|
|
37
37
|
"scripts": {},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@snack-uikit/button": "0.
|
|
40
|
-
"@snack-uikit/divider": "3.
|
|
41
|
-
"@snack-uikit/dropdown": "0.
|
|
42
|
-
"@snack-uikit/icons": "0.
|
|
43
|
-
"@snack-uikit/info-block": "0.
|
|
44
|
-
"@snack-uikit/loaders": "0.
|
|
45
|
-
"@snack-uikit/scroll": "0.
|
|
46
|
-
"@snack-uikit/search-private": "0.
|
|
47
|
-
"@snack-uikit/toggles": "0.
|
|
48
|
-
"@snack-uikit/truncate-string": "0.
|
|
49
|
-
"@snack-uikit/utils": "3.
|
|
39
|
+
"@snack-uikit/button": "0.19.0",
|
|
40
|
+
"@snack-uikit/divider": "3.2.0",
|
|
41
|
+
"@snack-uikit/dropdown": "0.4.0",
|
|
42
|
+
"@snack-uikit/icons": "0.24.0",
|
|
43
|
+
"@snack-uikit/info-block": "0.6.0",
|
|
44
|
+
"@snack-uikit/loaders": "0.7.0",
|
|
45
|
+
"@snack-uikit/scroll": "0.8.0",
|
|
46
|
+
"@snack-uikit/search-private": "0.4.0",
|
|
47
|
+
"@snack-uikit/toggles": "0.12.0",
|
|
48
|
+
"@snack-uikit/truncate-string": "0.6.0",
|
|
49
|
+
"@snack-uikit/utils": "3.5.0",
|
|
50
50
|
"classnames": "2.5.1",
|
|
51
51
|
"merge-refs": "1.2.2"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@snack-uikit/locale": "*"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "8499829efa0c118b704de17411ae2328a024adb5"
|
|
57
57
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-dropList';
|
|
2
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-element';
|
|
3
3
|
|
|
4
4
|
$sizes: 's', 'm', 'l';
|
|
5
5
|
|
|
@@ -10,8 +10,8 @@ $sizes: 's', 'm', 'l';
|
|
|
10
10
|
align-items: center;
|
|
11
11
|
justify-content: center;
|
|
12
12
|
|
|
13
|
-
width:
|
|
14
|
-
height:
|
|
13
|
+
width: styles-tokens-dropList.$dimension-3m;
|
|
14
|
+
height: styles-tokens-dropList.$dimension-3m;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.beforeContent {
|
|
@@ -21,10 +21,10 @@ $sizes: 's', 'm', 'l';
|
|
|
21
21
|
align-items: center;
|
|
22
22
|
justify-content: center;
|
|
23
23
|
|
|
24
|
-
width:
|
|
25
|
-
height:
|
|
24
|
+
width: styles-tokens-element.$icon-s;
|
|
25
|
+
height: styles-tokens-element.$icon-s;
|
|
26
26
|
|
|
27
|
-
color:
|
|
27
|
+
color: styles-tokens-dropList.$sys-neutral-text-light;
|
|
28
28
|
|
|
29
29
|
svg {
|
|
30
30
|
max-width: 100%;
|
|
@@ -35,12 +35,12 @@ $sizes: 's', 'm', 'l';
|
|
|
35
35
|
.expandableIcon {
|
|
36
36
|
display: flex;
|
|
37
37
|
align-items: center;
|
|
38
|
-
color:
|
|
38
|
+
color: styles-tokens-dropList.$sys-neutral-text-light;
|
|
39
39
|
fill: currentColor;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.markerContainer {
|
|
43
|
-
@include composite-var(
|
|
43
|
+
@include styles-tokens-dropList.composite-var(styles-tokens-dropList.$drop-list, 'item', 'marker-container');
|
|
44
44
|
|
|
45
45
|
pointer-events: none;
|
|
46
46
|
|
|
@@ -52,7 +52,7 @@ $sizes: 's', 'm', 'l';
|
|
|
52
52
|
height: 100%;
|
|
53
53
|
|
|
54
54
|
&:before {
|
|
55
|
-
@include composite-var(
|
|
55
|
+
@include styles-tokens-dropList.composite-var(styles-tokens-dropList.$drop-list, 'item', 'marker');
|
|
56
56
|
|
|
57
57
|
content: '';
|
|
58
58
|
display: block;
|
|
@@ -65,11 +65,11 @@ $sizes: 's', 'm', 'l';
|
|
|
65
65
|
@each $size in $sizes {
|
|
66
66
|
&[data-size='#{$size}'] {
|
|
67
67
|
padding-left: calc(
|
|
68
|
-
var(--level, 0) *
|
|
68
|
+
var(--level, 0) * styles-tokens-dropList.$dimension-050m + styles-tokens-dropList.simple-var(styles-tokens-dropList.$drop-list, 'item', $size, 'container', 'padding-left')
|
|
69
69
|
);
|
|
70
70
|
|
|
71
71
|
.headline {
|
|
72
|
-
@include composite-var(
|
|
72
|
+
@include styles-tokens-dropList.composite-var(styles-tokens-dropList.$drop-list, 'item', $size, 'headline');
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
}
|
|
@@ -82,11 +82,11 @@ $sizes: 's', 'm', 'l';
|
|
|
82
82
|
.innerWrapper {
|
|
83
83
|
&[data-disabled] {
|
|
84
84
|
.expandableIcon {
|
|
85
|
-
color:
|
|
85
|
+
color: styles-tokens-dropList.$sys-neutral-text-disabled;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
.beforeContent {
|
|
89
|
-
opacity:
|
|
89
|
+
opacity: styles-tokens-dropList.$opacity-a064;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.droplistItem {
|
|
@@ -98,31 +98,31 @@ $sizes: 's', 'm', 'l';
|
|
|
98
98
|
&[data-checked] {
|
|
99
99
|
&[data-variant='single'] {
|
|
100
100
|
&::before {
|
|
101
|
-
opacity:
|
|
102
|
-
background-color:
|
|
101
|
+
opacity: styles-tokens-dropList.$opacity-a008;
|
|
102
|
+
background-color: styles-tokens-dropList.$sys-primary-accent-default;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
&:hover {
|
|
106
106
|
&::before {
|
|
107
|
-
opacity:
|
|
108
|
-
background-color:
|
|
107
|
+
opacity: styles-tokens-dropList.$opacity-a016;
|
|
108
|
+
background-color: styles-tokens-dropList.$sys-primary-accent-default;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
.markerContainer:before {
|
|
114
|
-
background-color:
|
|
114
|
+
background-color: styles-tokens-dropList.$sys-primary-accent-default;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
.droplistItem:focus-visible {
|
|
118
118
|
&[data-variant='single'] {
|
|
119
|
-
outline-color:
|
|
119
|
+
outline-color: styles-tokens-dropList.$sys-primary-accent-default;
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
&[data-disabled] {
|
|
124
124
|
.markerContainer:before {
|
|
125
|
-
background-color:
|
|
125
|
+
background-color: styles-tokens-dropList.$sys-neutral-text-disabled;
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
@
|
|
2
|
-
@import '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-element';
|
|
1
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-dropList';
|
|
3
2
|
|
|
4
3
|
$sizes: 's', 'm', 'l';
|
|
5
4
|
|
|
6
5
|
.pinTopItem {
|
|
7
6
|
@each $size in $sizes {
|
|
8
7
|
&[data-size='#{$size}'] {
|
|
9
|
-
@include composite-var(
|
|
8
|
+
@include styles-tokens-dropList.composite-var(styles-tokens-dropList.$drop-list, 'item', $size, 'content-pin-top');
|
|
10
9
|
}
|
|
11
10
|
}
|
|
12
11
|
|
|
@@ -23,7 +22,7 @@ $sizes: 's', 'm', 'l';
|
|
|
23
22
|
.pinBottomItem {
|
|
24
23
|
@each $size in $sizes {
|
|
25
24
|
&[data-size='#{$size}'] {
|
|
26
|
-
@include composite-var(
|
|
25
|
+
@include styles-tokens-dropList.composite-var(styles-tokens-dropList.$drop-list, 'item', $size, 'content-pin-bottom');
|
|
27
26
|
}
|
|
28
27
|
}
|
|
29
28
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-element';
|
|
2
2
|
|
|
3
3
|
.searchItem {
|
|
4
4
|
width: 100%;
|
|
5
5
|
|
|
6
6
|
&:focus-within,
|
|
7
7
|
&:focus-visible {
|
|
8
|
-
@include outline-inside-var(
|
|
8
|
+
@include styles-tokens-element.outline-inside-var(styles-tokens-element.$container-focused-s);
|
|
9
9
|
|
|
10
10
|
max-width: 100%;
|
|
11
|
-
outline-color:
|
|
11
|
+
outline-color: styles-tokens-element.$sys-primary-decor-activated;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-dropList';
|
|
2
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-element';
|
|
3
3
|
|
|
4
4
|
$sizes: 's', 'm', 'l';
|
|
5
5
|
|
|
@@ -45,16 +45,16 @@ $sizes: 's', 'm', 'l';
|
|
|
45
45
|
&[data-focused],
|
|
46
46
|
&:focus-visible {
|
|
47
47
|
&::before {
|
|
48
|
-
opacity:
|
|
49
|
-
background-color:
|
|
48
|
+
opacity: styles-tokens-dropList.$opacity-a008;
|
|
49
|
+
background-color: styles-tokens-dropList.$sys-neutral-accent-default;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
@media (hover: hover) {
|
|
54
54
|
&:hover {
|
|
55
55
|
&::before {
|
|
56
|
-
opacity:
|
|
57
|
-
background-color:
|
|
56
|
+
opacity: styles-tokens-dropList.$opacity-a008;
|
|
57
|
+
background-color: styles-tokens-dropList.$sys-neutral-accent-default;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -76,7 +76,7 @@ $sizes: 's', 'm', 'l';
|
|
|
76
76
|
margin: 0;
|
|
77
77
|
padding: 0;
|
|
78
78
|
|
|
79
|
-
color:
|
|
79
|
+
color: styles-tokens-dropList.$sys-neutral-text-main;
|
|
80
80
|
text-align: start;
|
|
81
81
|
|
|
82
82
|
appearance: unset;
|
|
@@ -86,14 +86,14 @@ $sizes: 's', 'm', 'l';
|
|
|
86
86
|
|
|
87
87
|
@each $size in $sizes {
|
|
88
88
|
&[data-size='#{$size}'] {
|
|
89
|
-
@include composite-var(
|
|
89
|
+
@include styles-tokens-dropList.composite-var(styles-tokens-dropList.$drop-list, 'item', $size, 'container');
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
&:not([data-inactive], [data-disabled]) {
|
|
94
94
|
&[data-focused],
|
|
95
95
|
&:focus-visible {
|
|
96
|
-
@include outline-inside-var(
|
|
96
|
+
@include styles-tokens-dropList.outline-inside-var(styles-tokens-element.$container-focused-s);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-element';
|
|
2
2
|
|
|
3
3
|
$sizes: 's', 'm', 'l';
|
|
4
4
|
|
|
5
5
|
$loader-height: (
|
|
6
|
-
's':
|
|
7
|
-
'm':
|
|
8
|
-
'l':
|
|
6
|
+
's': styles-tokens-element.$dimension-3m,
|
|
7
|
+
'm': styles-tokens-element.$dimension-4m,
|
|
8
|
+
'l': styles-tokens-element.$dimension-5m,
|
|
9
9
|
);
|
|
10
10
|
|
|
11
11
|
.loader {
|
|
@@ -15,10 +15,10 @@ $loader-height: (
|
|
|
15
15
|
|
|
16
16
|
@each $size in $sizes {
|
|
17
17
|
&[data-size='#{$size}'] {
|
|
18
|
-
height: simple-var($loader-height, $size);
|
|
18
|
+
height: styles-tokens-element.simple-var($loader-height, $size);
|
|
19
19
|
|
|
20
20
|
&[data-no-items] {
|
|
21
|
-
$no-items-loading-height: calc(3 * simple-var($loader-height, $size));
|
|
21
|
+
$no-items-loading-height: calc(3 * styles-tokens-element.simple-var($loader-height, $size));
|
|
22
22
|
|
|
23
23
|
min-width: calc(2 * $no-items-loading-height);
|
|
24
24
|
height: $no-items-loading-height;
|
|
@@ -27,15 +27,15 @@ $loader-height: (
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
&:focus-visible {
|
|
30
|
-
@include outline-inside-var(
|
|
30
|
+
@include styles-tokens-element.outline-inside-var(styles-tokens-element.$container-focused-s);
|
|
31
31
|
|
|
32
|
-
outline-color:
|
|
32
|
+
outline-color: styles-tokens-element.$sys-available-complementary;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.scrollStub {
|
|
37
|
-
height: calc(
|
|
38
|
-
margin-top: calc(
|
|
37
|
+
height: calc(styles-tokens-element.$dimension-025m / 2);
|
|
38
|
+
margin-top: calc(styles-tokens-element.$dimension-025m / -2);
|
|
39
39
|
background: transparent;
|
|
40
40
|
}
|
|
41
41
|
|
|
@@ -43,7 +43,7 @@ $loader-height: (
|
|
|
43
43
|
display: flex;
|
|
44
44
|
flex-direction: column;
|
|
45
45
|
box-sizing: border-box;
|
|
46
|
-
padding:
|
|
46
|
+
padding: styles-tokens-element.$dimension-050m;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.content {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-element';
|
|
2
2
|
|
|
3
3
|
.listContainer {
|
|
4
4
|
display: flex;
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
outline: none;
|
|
14
14
|
|
|
15
15
|
&[data-active] {
|
|
16
|
-
@include outline-inside-var(
|
|
16
|
+
@include styles-tokens-element.outline-inside-var(styles-tokens-element.$container-focused-s);
|
|
17
17
|
|
|
18
|
-
outline-color:
|
|
18
|
+
outline-color: styles-tokens-element.$sys-available-complementary;
|
|
19
19
|
|
|
20
20
|
* {
|
|
21
21
|
cursor: inherit;
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
height: 100%;
|
|
40
40
|
|
|
41
41
|
&:has(.listContainer:focus-visible) {
|
|
42
|
-
@include outline-inside-var(
|
|
42
|
+
@include styles-tokens-element.outline-inside-var(styles-tokens-element.$container-focused-s);
|
|
43
43
|
|
|
44
|
-
outline-color:
|
|
44
|
+
outline-color: styles-tokens-element.$sys-available-complementary;
|
|
45
45
|
}
|
|
46
46
|
li,
|
|
47
47
|
ul {
|
|
@@ -51,15 +51,15 @@
|
|
|
51
51
|
|
|
52
52
|
.scrollContainerS {
|
|
53
53
|
height: auto;
|
|
54
|
-
max-height: calc(
|
|
54
|
+
max-height: calc(styles-tokens-element.$dimension-1m * 32); // 256px
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.scrollContainerM {
|
|
58
58
|
height: auto;
|
|
59
|
-
max-height: calc(
|
|
59
|
+
max-height: calc(styles-tokens-element.$dimension-1m * 40); // 320px
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.scrollContainerL {
|
|
63
63
|
height: auto;
|
|
64
|
-
max-height: calc(
|
|
64
|
+
max-height: calc(styles-tokens-element.$dimension-1m * 48); // 384px
|
|
65
65
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-element';
|
|
2
2
|
|
|
3
3
|
$duration: 300ms;
|
|
4
4
|
|
|
@@ -45,7 +45,7 @@ $duration: 300ms;
|
|
|
45
45
|
width: 100%;
|
|
46
46
|
height: 100%;
|
|
47
47
|
|
|
48
|
-
opacity:
|
|
49
|
-
background-color:
|
|
48
|
+
opacity: styles-tokens-element.$opacity-a004;
|
|
49
|
+
background-color: styles-tokens-element.$sys-neutral-accent-default;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
@
|
|
2
|
-
@import '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-element';
|
|
1
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-dropList';
|
|
3
2
|
|
|
4
3
|
$sizes: 's', 'm', 'l';
|
|
5
4
|
$typography: (
|
|
6
5
|
's': (
|
|
7
|
-
'label':
|
|
8
|
-
'caption':
|
|
9
|
-
'description':
|
|
10
|
-
'separator':
|
|
6
|
+
'label': styles-tokens-dropList.$sans-body-s,
|
|
7
|
+
'caption': styles-tokens-dropList.$sans-body-s,
|
|
8
|
+
'description': styles-tokens-dropList.$sans-body-s,
|
|
9
|
+
'separator': styles-tokens-dropList.$light-label-m,
|
|
11
10
|
),
|
|
12
11
|
'm': (
|
|
13
|
-
'label':
|
|
14
|
-
'caption':
|
|
15
|
-
'description':
|
|
16
|
-
'separator':
|
|
12
|
+
'label': styles-tokens-dropList.$sans-body-m,
|
|
13
|
+
'caption': styles-tokens-dropList.$sans-body-s,
|
|
14
|
+
'description': styles-tokens-dropList.$sans-body-s,
|
|
15
|
+
'separator': styles-tokens-dropList.$light-label-l,
|
|
17
16
|
),
|
|
18
17
|
'l': (
|
|
19
|
-
'label':
|
|
20
|
-
'caption':
|
|
21
|
-
'description':
|
|
22
|
-
'separator':
|
|
18
|
+
'label': styles-tokens-dropList.$sans-body-l,
|
|
19
|
+
'caption': styles-tokens-dropList.$sans-body-m,
|
|
20
|
+
'description': styles-tokens-dropList.$sans-body-m,
|
|
21
|
+
'separator': styles-tokens-dropList.$light-label-l,
|
|
23
22
|
),
|
|
24
23
|
);
|
|
25
24
|
|
|
@@ -30,18 +29,18 @@ $typography: (
|
|
|
30
29
|
.label {
|
|
31
30
|
overflow: hidden;
|
|
32
31
|
flex: 1;
|
|
33
|
-
color:
|
|
32
|
+
color: styles-tokens-dropList.$sys-neutral-text-main;
|
|
34
33
|
}
|
|
35
34
|
|
|
36
35
|
.caption {
|
|
37
36
|
overflow: hidden;
|
|
38
|
-
color:
|
|
37
|
+
color: styles-tokens-dropList.$sys-neutral-text-light;
|
|
39
38
|
text-overflow: ellipsis;
|
|
40
39
|
white-space: nowrap;
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
.description {
|
|
44
|
-
color:
|
|
43
|
+
color: styles-tokens-dropList.$sys-neutral-text-support;
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
.content {
|
|
@@ -53,19 +52,19 @@ $typography: (
|
|
|
53
52
|
@each $size in $sizes {
|
|
54
53
|
&[data-size='#{$size}'] {
|
|
55
54
|
.headline {
|
|
56
|
-
@include composite-var(
|
|
55
|
+
@include styles-tokens-dropList.composite-var(styles-tokens-dropList.$drop-list, 'item', $size, 'headline');
|
|
57
56
|
}
|
|
58
57
|
.label {
|
|
59
|
-
@include composite-var($typography, $size, 'label');
|
|
58
|
+
@include styles-tokens-dropList.composite-var($typography, $size, 'label');
|
|
60
59
|
|
|
61
60
|
display: flex;
|
|
62
61
|
align-items: center;
|
|
63
62
|
}
|
|
64
63
|
.caption {
|
|
65
|
-
@include composite-var($typography, $size, 'caption');
|
|
64
|
+
@include styles-tokens-dropList.composite-var($typography, $size, 'caption');
|
|
66
65
|
}
|
|
67
66
|
.description {
|
|
68
|
-
@include composite-var($typography, $size, 'description');
|
|
67
|
+
@include styles-tokens-dropList.composite-var($typography, $size, 'description');
|
|
69
68
|
}
|
|
70
69
|
}
|
|
71
70
|
}
|
|
@@ -74,7 +73,7 @@ $typography: (
|
|
|
74
73
|
.label,
|
|
75
74
|
.description,
|
|
76
75
|
.caption {
|
|
77
|
-
color:
|
|
76
|
+
color: styles-tokens-dropList.$sys-neutral-text-disabled;
|
|
78
77
|
}
|
|
79
78
|
}
|
|
80
79
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-element';
|
|
2
2
|
|
|
3
3
|
.listEmptyStateWrapper {
|
|
4
4
|
display: flex;
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
justify-content: center;
|
|
8
8
|
|
|
9
9
|
box-sizing: border-box;
|
|
10
|
-
padding:
|
|
10
|
+
padding: styles-tokens-element.$dimension-1m;
|
|
11
11
|
}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@import '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-element';
|
|
1
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-button-buttonFunction';
|
|
2
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-dropList';
|
|
4
3
|
|
|
5
4
|
$sizes: 's', 'm', 'l';
|
|
6
5
|
|
|
7
6
|
$typography-primary: (
|
|
8
|
-
's':
|
|
9
|
-
'm':
|
|
10
|
-
'l':
|
|
7
|
+
's': styles-tokens-button-buttonFunction.$sans-label-m,
|
|
8
|
+
'm': styles-tokens-button-buttonFunction.$sans-label-l,
|
|
9
|
+
'l': styles-tokens-button-buttonFunction.$sans-title-m,
|
|
11
10
|
);
|
|
12
11
|
|
|
13
12
|
$typography-secondary: (
|
|
14
|
-
's':
|
|
15
|
-
'm':
|
|
16
|
-
'l':
|
|
13
|
+
's': styles-tokens-button-buttonFunction.$light-label-m,
|
|
14
|
+
'm': styles-tokens-button-buttonFunction.$light-label-l,
|
|
15
|
+
'l': styles-tokens-button-buttonFunction.$light-title-m,
|
|
17
16
|
);
|
|
18
17
|
|
|
19
18
|
$button-size: (
|
|
@@ -26,7 +25,7 @@ $containerSize: 1px;
|
|
|
26
25
|
|
|
27
26
|
.separatorWithLabel {
|
|
28
27
|
display: flex;
|
|
29
|
-
gap:
|
|
28
|
+
gap: styles-tokens-button-buttonFunction.$dimension-1m;
|
|
30
29
|
align-items: flex-end;
|
|
31
30
|
|
|
32
31
|
box-sizing: border-box;
|
|
@@ -35,14 +34,14 @@ $containerSize: 1px;
|
|
|
35
34
|
|
|
36
35
|
@each $size in $sizes {
|
|
37
36
|
&[data-size='#{$size}'] {
|
|
38
|
-
@include composite-var(
|
|
37
|
+
@include styles-tokens-button-buttonFunction.composite-var(styles-tokens-dropList.$drop-list, 'item', $size, 'container-separator-subheader');
|
|
39
38
|
|
|
40
39
|
.label {
|
|
41
40
|
&[data-mode='primary'] {
|
|
42
|
-
@include composite-var(simple-var($typography-primary, $size));
|
|
41
|
+
@include styles-tokens-button-buttonFunction.composite-var(styles-tokens-button-buttonFunction.simple-var($typography-primary, $size));
|
|
43
42
|
}
|
|
44
43
|
&[data-mode='secondary'] {
|
|
45
|
-
@include composite-var(simple-var($typography-secondary, $size));
|
|
44
|
+
@include styles-tokens-button-buttonFunction.composite-var(styles-tokens-button-buttonFunction.simple-var($typography-secondary, $size));
|
|
46
45
|
}
|
|
47
46
|
}
|
|
48
47
|
}
|
|
@@ -55,7 +54,7 @@ $containerSize: 1px;
|
|
|
55
54
|
|
|
56
55
|
@each $size in $sizes {
|
|
57
56
|
&[data-size='#{$size}'] {
|
|
58
|
-
@include composite-var(
|
|
57
|
+
@include styles-tokens-button-buttonFunction.composite-var(styles-tokens-dropList.$drop-list, 'item', $size, 'container-separator');
|
|
59
58
|
}
|
|
60
59
|
}
|
|
61
60
|
|
|
@@ -67,11 +66,11 @@ $containerSize: 1px;
|
|
|
67
66
|
flex-shrink: 1;
|
|
68
67
|
|
|
69
68
|
&[data-mode='primary'] {
|
|
70
|
-
color:
|
|
69
|
+
color: styles-tokens-button-buttonFunction.$sys-neutral-text-main;
|
|
71
70
|
}
|
|
72
71
|
|
|
73
72
|
&[data-mode='secondary'] {
|
|
74
|
-
color:
|
|
73
|
+
color: styles-tokens-button-buttonFunction.$sys-neutral-text-light;
|
|
75
74
|
}
|
|
76
75
|
}
|
|
77
76
|
|
|
@@ -98,15 +97,14 @@ hr.divider {
|
|
|
98
97
|
transform: translateY(
|
|
99
98
|
calc(
|
|
100
99
|
(
|
|
101
|
-
simple-var(
|
|
102
|
-
|
|
100
|
+
styles-tokens-button-buttonFunction.simple-var(
|
|
101
|
+
styles-tokens-button-buttonFunction.$button-function,
|
|
103
102
|
'container',
|
|
104
|
-
simple-var($button-size, $size),
|
|
103
|
+
styles-tokens-button-buttonFunction.simple-var($button-size, $size),
|
|
105
104
|
'label-only',
|
|
106
105
|
'height'
|
|
107
|
-
) - simple-var(
|
|
108
|
-
) /
|
|
109
|
-
2 - var(--divider-height, 0)
|
|
106
|
+
) - styles-tokens-button-buttonFunction.simple-var(styles-tokens-button-buttonFunction.$theme-variables, 'sans', 'label', $size, 'line-height')
|
|
107
|
+
) / 2 - var(--divider-height, 0)
|
|
110
108
|
)
|
|
111
109
|
);
|
|
112
110
|
}
|