@snack-uikit/modal 0.13.0 → 0.14.1
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 +21 -0
- package/package.json +10 -10
- package/src/components/ModalCustom/styles.module.scss +7 -7
- package/src/helperComponents/Body/styles.module.scss +4 -4
- package/src/helperComponents/ButtonClose/styles.module.scss +14 -14
- package/src/helperComponents/Footer/styles.module.scss +4 -4
- package/src/helperComponents/Header/styles.module.scss +6 -6
- package/src/helperComponents/OverlayElement/styles.module.scss +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,27 @@
|
|
|
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.14.1 (2024-10-31)
|
|
7
|
+
|
|
8
|
+
### Only dependencies have been changed
|
|
9
|
+
* [@snack-uikit/button@0.19.1](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/button/CHANGELOG.md)
|
|
10
|
+
* [@snack-uikit/scroll@0.9.0](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/scroll/CHANGELOG.md)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# 0.14.0 (2024-10-28)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* **FF-5782:** sass use/forward approach ([3e53869](https://github.com/cloud-ru-tech/snack-uikit/commit/3e53869ace864a7718e434b7f410c15dbd911cd5))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
6
27
|
# 0.13.0 (2024-10-28)
|
|
7
28
|
|
|
8
29
|
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Modal",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.14.1",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
"license": "Apache-2.0",
|
|
37
37
|
"scripts": {},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@snack-uikit/button": "0.
|
|
40
|
-
"@snack-uikit/icon-predefined": "0.
|
|
41
|
-
"@snack-uikit/icons": "0.
|
|
42
|
-
"@snack-uikit/link": "0.
|
|
43
|
-
"@snack-uikit/scroll": "0.
|
|
44
|
-
"@snack-uikit/tooltip": "0.
|
|
45
|
-
"@snack-uikit/truncate-string": "0.
|
|
46
|
-
"@snack-uikit/typography": "0.
|
|
39
|
+
"@snack-uikit/button": "0.19.1",
|
|
40
|
+
"@snack-uikit/icon-predefined": "0.7.0",
|
|
41
|
+
"@snack-uikit/icons": "0.24.0",
|
|
42
|
+
"@snack-uikit/link": "0.15.0",
|
|
43
|
+
"@snack-uikit/scroll": "0.9.0",
|
|
44
|
+
"@snack-uikit/tooltip": "0.15.0",
|
|
45
|
+
"@snack-uikit/truncate-string": "0.6.0",
|
|
46
|
+
"@snack-uikit/typography": "0.8.0",
|
|
47
47
|
"@snack-uikit/utils": "3.5.0",
|
|
48
48
|
"classnames": "2.3.2",
|
|
49
49
|
"react-modal": "3.16.1"
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/react-modal": "3.16.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "b7163c6f939105eb34cabec64c9e983ac7958c26"
|
|
55
55
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-modal';
|
|
2
2
|
|
|
3
3
|
$sizes: 's', 'm', 'l';
|
|
4
4
|
|
|
@@ -15,22 +15,22 @@ $sizes: 's', 'm', 'l';
|
|
|
15
15
|
|
|
16
16
|
box-sizing: border-box;
|
|
17
17
|
width: 100%;
|
|
18
|
-
max-width: calc(100% - (
|
|
19
|
-
max-height: calc(100vh - (
|
|
18
|
+
max-width: calc(100% - (styles-tokens-modal.$space-modal-outside-gap * 2));
|
|
19
|
+
max-height: calc(100vh - (styles-tokens-modal.$space-modal-outside-gap * 2));
|
|
20
20
|
|
|
21
|
-
background-color: simple-var(
|
|
21
|
+
background-color: styles-tokens-modal.simple-var(styles-tokens-modal.$sys-neutral-background1-level);
|
|
22
22
|
outline: none;
|
|
23
23
|
|
|
24
24
|
@each $size in $sizes {
|
|
25
25
|
&[data-size="#{$size}"] {
|
|
26
|
-
@include composite-var(
|
|
26
|
+
@include styles-tokens-modal.composite-var(styles-tokens-modal.$modal, 'window', $size);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.headerElements {
|
|
32
|
-
@include composite-var(
|
|
33
|
-
@include composite-var(
|
|
32
|
+
@include styles-tokens-modal.composite-var(styles-tokens-modal.$modal, 'header-elements', 'container');
|
|
33
|
+
@include styles-tokens-modal.composite-var(styles-tokens-modal.$modal, 'header-elements', 'elements-layout');
|
|
34
34
|
|
|
35
35
|
position: absolute;
|
|
36
36
|
top: 0;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-modal';
|
|
2
2
|
|
|
3
3
|
.modalBody {
|
|
4
|
-
@include composite-var(
|
|
4
|
+
@include styles-tokens-modal.composite-var(styles-tokens-modal.$modal-body);
|
|
5
5
|
|
|
6
6
|
flex: 1 1 auto;
|
|
7
7
|
box-sizing: border-box;
|
|
8
|
-
min-height:
|
|
9
|
-
color:
|
|
8
|
+
min-height: styles-tokens-modal.$dimension-2m;
|
|
9
|
+
color: styles-tokens-modal.$sys-neutral-text-main;
|
|
10
10
|
|
|
11
11
|
&[data-align='center'] {
|
|
12
12
|
text-align: center;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-modal';
|
|
2
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-element';
|
|
3
3
|
|
|
4
4
|
.buttonClose {
|
|
5
|
-
@include composite-var(
|
|
5
|
+
@include styles-tokens-modal.composite-var(styles-tokens-modal.$modal-button-close);
|
|
6
6
|
|
|
7
7
|
cursor: pointer;
|
|
8
8
|
|
|
@@ -14,31 +14,31 @@
|
|
|
14
14
|
margin: 0;
|
|
15
15
|
padding: 0;
|
|
16
16
|
|
|
17
|
-
color: simple-var(
|
|
17
|
+
color: styles-tokens-modal.simple-var(styles-tokens-modal.$sys-neutral-text-support);
|
|
18
18
|
|
|
19
|
-
background-color: simple-var(
|
|
19
|
+
background-color: styles-tokens-modal.simple-var(styles-tokens-modal.$sys-neutral-decor-default);
|
|
20
20
|
border: 0 solid transparent;
|
|
21
21
|
outline: 0;
|
|
22
|
-
outline-offset:
|
|
22
|
+
outline-offset: styles-tokens-modal.$spacing-state-focus-offset;
|
|
23
23
|
|
|
24
24
|
&:hover, &:focus-visible {
|
|
25
|
-
color: simple-var(
|
|
26
|
-
background-color: simple-var(
|
|
25
|
+
color: styles-tokens-modal.simple-var(styles-tokens-modal.$sys-neutral-text-main);
|
|
26
|
+
background-color: styles-tokens-modal.simple-var(styles-tokens-modal.$sys-neutral-decor-hovered);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
&:focus-visible {
|
|
30
|
-
@include outline-var(
|
|
30
|
+
@include styles-tokens-modal.outline-var(styles-tokens-element.$container-focused-s);
|
|
31
31
|
|
|
32
|
-
outline-color:
|
|
32
|
+
outline-color: styles-tokens-modal.$sys-available-complementary;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
&:active {
|
|
36
|
-
color: simple-var(
|
|
37
|
-
background-color: simple-var(
|
|
36
|
+
color: styles-tokens-modal.simple-var(styles-tokens-modal.$sys-neutral-text-main);
|
|
37
|
+
background-color: styles-tokens-modal.simple-var(styles-tokens-modal.$sys-neutral-decor-activated);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
svg {
|
|
41
|
-
width:
|
|
42
|
-
height:
|
|
41
|
+
width: styles-tokens-element.$icon-s !important; /* stylelint-disable-line declaration-no-important */
|
|
42
|
+
height: styles-tokens-element.$icon-s !important; /* stylelint-disable-line declaration-no-important */
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-modal';
|
|
2
2
|
|
|
3
3
|
.footerActions {
|
|
4
|
-
@include composite-var(
|
|
4
|
+
@include styles-tokens-modal.composite-var(styles-tokens-modal.$modal, 'action-row');
|
|
5
5
|
|
|
6
6
|
display: flex;
|
|
7
7
|
flex-direction: row-reverse;
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
display: flex;
|
|
14
14
|
flex-direction: column;
|
|
15
15
|
align-items: flex-end;
|
|
16
|
-
color: simple-var(
|
|
16
|
+
color: styles-tokens-modal.simple-var(styles-tokens-modal.$sys-neutral-text-disabled);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.footer {
|
|
20
|
-
@include composite-var(
|
|
20
|
+
@include styles-tokens-modal.composite-var(styles-tokens-modal.$modal, 'footer');
|
|
21
21
|
|
|
22
22
|
display: flex;
|
|
23
23
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-modal';
|
|
2
2
|
|
|
3
3
|
$aligns: 'default', 'center';
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ $aligns: 'default', 'center';
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.image {
|
|
10
|
-
@include composite-var(
|
|
10
|
+
@include styles-tokens-modal.composite-var(styles-tokens-modal.$modal, 'image');
|
|
11
11
|
|
|
12
12
|
display: block;
|
|
13
13
|
width: 100%;
|
|
@@ -15,7 +15,7 @@ $aligns: 'default', 'center';
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.icon {
|
|
18
|
-
@include composite-var(
|
|
18
|
+
@include styles-tokens-modal.composite-var(styles-tokens-modal.$modal, 'icon-decor');
|
|
19
19
|
|
|
20
20
|
display: flex;
|
|
21
21
|
justify-content: center;
|
|
@@ -24,7 +24,7 @@ $aligns: 'default', 'center';
|
|
|
24
24
|
.headlineLayout {
|
|
25
25
|
@each $align in $aligns {
|
|
26
26
|
&[data-align="#{$align}"] {
|
|
27
|
-
@include composite-var(
|
|
27
|
+
@include styles-tokens-modal.composite-var(styles-tokens-modal.$modal, 'headline-layout', $align);
|
|
28
28
|
|
|
29
29
|
display: flex;
|
|
30
30
|
flex-direction: column;
|
|
@@ -41,7 +41,7 @@ $aligns: 'default', 'center';
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.headline {
|
|
44
|
-
@include composite-var(
|
|
44
|
+
@include styles-tokens-modal.composite-var(styles-tokens-modal.$modal-headline);
|
|
45
45
|
|
|
46
46
|
display: flex;
|
|
47
47
|
align-items: center;
|
|
@@ -52,5 +52,5 @@ $aligns: 'default', 'center';
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.subtitle {
|
|
55
|
-
color:
|
|
55
|
+
color: styles-tokens-modal.$sys-neutral-text-support;
|
|
56
56
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '@snack-uikit/figma-tokens/build/scss/components/styles-tokens-modal';
|
|
2
2
|
|
|
3
3
|
.modalOverlay {
|
|
4
4
|
position: fixed;
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
width: 100%;
|
|
10
10
|
height: 100%;
|
|
11
11
|
|
|
12
|
-
background: simple-var(
|
|
12
|
+
background: styles-tokens-modal.simple-var(styles-tokens-modal.$sys-blackout);
|
|
13
13
|
|
|
14
14
|
&[data-blur] {
|
|
15
|
-
backdrop-filter: blur(simple-var(
|
|
15
|
+
backdrop-filter: blur(styles-tokens-modal.simple-var(styles-tokens-modal.$background-blur-background-blur));
|
|
16
16
|
}
|
|
17
17
|
}
|