@alfalab/core-components-side-panel 2.5.2 → 2.5.4
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/Component.desktop.js +3 -3
- package/Component.mobile.js +3 -3
- package/Component.responsive.d.ts +9 -1
- package/Component.responsive.js +10 -8
- package/components/closer/Component.js +2 -2
- package/components/closer/index.css +14 -13
- package/components/content/Component.desktop.js +2 -2
- package/components/content/Component.js +1 -1
- package/components/content/Component.mobile.js +2 -2
- package/components/content/desktop.css +12 -9
- package/components/content/index.css +12 -7
- package/components/content/mobile.css +12 -9
- package/components/footer/Component.desktop.js +2 -2
- package/components/footer/Component.js +2 -2
- package/components/footer/Component.mobile.js +2 -2
- package/components/footer/desktop.css +12 -9
- package/components/footer/index.css +13 -11
- package/components/footer/layout.css +34 -45
- package/components/footer/mobile.css +12 -9
- package/components/header/Component.desktop.js +2 -2
- package/components/header/Component.js +2 -2
- package/components/header/Component.mobile.js +2 -2
- package/components/header/desktop.css +15 -17
- package/components/header/index.css +25 -35
- package/components/header/mobile.css +12 -11
- package/cssm/Component.responsive.d.ts +8 -0
- package/cssm/Component.responsive.js +9 -7
- package/cssm/components/closer/index.module.css +13 -12
- package/cssm/components/content/desktop.module.css +11 -8
- package/cssm/components/content/index.module.css +11 -6
- package/cssm/components/content/mobile.module.css +11 -8
- package/cssm/components/footer/desktop.module.css +11 -8
- package/cssm/components/footer/index.module.css +12 -10
- package/cssm/components/footer/layout.module.css +25 -36
- package/cssm/components/footer/mobile.module.css +11 -8
- package/cssm/components/header/desktop.module.css +14 -16
- package/cssm/components/header/index.module.css +24 -34
- package/cssm/components/header/mobile.module.css +11 -10
- package/cssm/desktop.module.css +11 -6
- package/cssm/index.js +1 -1
- package/cssm/mobile.module.css +10 -4
- package/cssm/responsive.js +1 -1
- package/cssm/vars.css +9 -2
- package/desktop.css +12 -7
- package/desktop.js +1 -1
- package/esm/Component.desktop.js +3 -3
- package/esm/Component.mobile.js +3 -3
- package/esm/Component.responsive.d.ts +8 -0
- package/esm/Component.responsive.js +10 -8
- package/esm/components/closer/Component.js +2 -2
- package/esm/components/closer/index.css +14 -13
- package/esm/components/content/Component.desktop.js +2 -2
- package/esm/components/content/Component.js +1 -1
- package/esm/components/content/Component.mobile.js +2 -2
- package/esm/components/content/desktop.css +12 -9
- package/esm/components/content/index.css +12 -7
- package/esm/components/content/mobile.css +12 -9
- package/esm/components/footer/Component.desktop.js +2 -2
- package/esm/components/footer/Component.js +2 -2
- package/esm/components/footer/Component.mobile.js +2 -2
- package/esm/components/footer/desktop.css +12 -9
- package/esm/components/footer/index.css +13 -11
- package/esm/components/footer/layout.css +34 -45
- package/esm/components/footer/mobile.css +12 -9
- package/esm/components/header/Component.desktop.js +2 -2
- package/esm/components/header/Component.js +2 -2
- package/esm/components/header/Component.mobile.js +2 -2
- package/esm/components/header/desktop.css +15 -17
- package/esm/components/header/index.css +25 -35
- package/esm/components/header/mobile.css +12 -11
- package/esm/desktop.css +12 -7
- package/esm/desktop.js +1 -1
- package/esm/index.js +2 -2
- package/esm/mobile.css +11 -5
- package/esm/mobile.js +1 -1
- package/esm/responsive.js +2 -2
- package/esm/transitions.desktop.css +7 -7
- package/esm/transitions.mobile.css +8 -8
- package/esm/{tslib.es6-16bbef32.d.ts → tslib.es6-4ea62d19.d.ts} +0 -0
- package/esm/{tslib.es6-16bbef32.js → tslib.es6-4ea62d19.js} +0 -0
- package/index.js +2 -2
- package/mobile.css +11 -5
- package/mobile.js +1 -1
- package/modern/Component.desktop.js +2 -2
- package/modern/Component.mobile.js +2 -2
- package/modern/Component.responsive.d.ts +8 -0
- package/modern/Component.responsive.js +9 -7
- package/modern/components/closer/Component.js +1 -1
- package/modern/components/closer/index.css +14 -13
- package/modern/components/content/Component.desktop.js +1 -1
- package/modern/components/content/Component.js +1 -1
- package/modern/components/content/Component.mobile.js +1 -1
- package/modern/components/content/desktop.css +12 -9
- package/modern/components/content/index.css +12 -7
- package/modern/components/content/mobile.css +12 -9
- package/modern/components/footer/Component.desktop.js +1 -1
- package/modern/components/footer/Component.js +2 -2
- package/modern/components/footer/Component.mobile.js +1 -1
- package/modern/components/footer/desktop.css +12 -9
- package/modern/components/footer/index.css +13 -11
- package/modern/components/footer/layout.css +34 -45
- package/modern/components/footer/mobile.css +12 -9
- package/modern/components/header/Component.desktop.js +1 -1
- package/modern/components/header/Component.js +1 -1
- package/modern/components/header/Component.mobile.js +1 -1
- package/modern/components/header/desktop.css +15 -17
- package/modern/components/header/index.css +25 -35
- package/modern/components/header/mobile.css +12 -11
- package/modern/desktop.css +12 -7
- package/modern/index.js +1 -1
- package/modern/mobile.css +11 -5
- package/modern/responsive.js +1 -1
- package/modern/transitions.desktop.css +7 -7
- package/modern/transitions.mobile.css +8 -8
- package/package.json +4 -3
- package/responsive.js +2 -2
- package/transitions.desktop.css +7 -7
- package/transitions.mobile.css +8 -8
- /package/{tslib.es6-adf6ea2b.d.ts → tslib.es6-cf0bde8a.d.ts} +0 -0
- /package/{tslib.es6-adf6ea2b.js → tslib.es6-cf0bde8a.js} +0 -0
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
:root {
|
|
2
|
+
} /* deprecated */ :root {
|
|
3
|
+
} :root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
2
6
|
|
|
3
7
|
/* Hard */
|
|
4
8
|
|
|
5
9
|
/* Up */
|
|
6
10
|
|
|
7
11
|
/* Hard up */
|
|
8
|
-
}
|
|
9
|
-
:root {
|
|
12
|
+
} :root {
|
|
13
|
+
} :root {
|
|
10
14
|
--gap-m: 16px;
|
|
11
15
|
--gap-xl: 24px;
|
|
12
16
|
--gap-2xl: 32px;
|
|
13
|
-
}
|
|
14
|
-
:root {
|
|
17
|
+
} :root {
|
|
18
|
+
} :root {
|
|
19
|
+
} :root {
|
|
15
20
|
--side-panel-footer-default-gap: var(--gap-m);
|
|
16
21
|
|
|
17
22
|
/* sizes */
|
|
@@ -23,61 +28,45 @@
|
|
|
23
28
|
/* desktop */
|
|
24
29
|
|
|
25
30
|
/* mobile */
|
|
26
|
-
}
|
|
27
|
-
.column {
|
|
31
|
+
} .column {
|
|
28
32
|
display: flex;
|
|
29
33
|
flex-direction: column
|
|
30
|
-
}
|
|
31
|
-
.column > * {
|
|
34
|
+
} .column > * {
|
|
32
35
|
margin-bottom: var(--side-panel-footer-default-gap);
|
|
33
|
-
}
|
|
34
|
-
.column > *:last-child,
|
|
36
|
+
} .column > *:last-child,
|
|
35
37
|
.column > *:only-child {
|
|
36
38
|
margin-bottom: 0;
|
|
37
|
-
}
|
|
38
|
-
.column.gap-16 > * {
|
|
39
|
+
} .column.gap-16 > * {
|
|
39
40
|
margin-bottom: var(--gap-m);
|
|
40
|
-
}
|
|
41
|
-
.column.gap-24 > * {
|
|
41
|
+
} .column.gap-24 > * {
|
|
42
42
|
margin-bottom: var(--gap-xl);
|
|
43
|
-
}
|
|
44
|
-
.column.gap-32 > * {
|
|
43
|
+
} .column.gap-32 > * {
|
|
45
44
|
margin-bottom: var(--gap-2xl);
|
|
46
|
-
}
|
|
47
|
-
.start {
|
|
45
|
+
} .start {
|
|
48
46
|
justify-content: flex-start;
|
|
49
|
-
}
|
|
50
|
-
.center {
|
|
47
|
+
} .center {
|
|
51
48
|
justify-content: center;
|
|
52
|
-
}
|
|
53
|
-
.space-between {
|
|
49
|
+
} .space-between {
|
|
54
50
|
justify-content: space-between
|
|
55
|
-
}
|
|
56
|
-
.space-between > * {
|
|
51
|
+
} .space-between > * {
|
|
57
52
|
flex: 1;
|
|
58
|
-
}
|
|
59
|
-
.start,
|
|
53
|
+
} .start,
|
|
60
54
|
.center,
|
|
61
55
|
.space-between {
|
|
62
56
|
display: flex
|
|
63
|
-
}
|
|
64
|
-
.start > *, .center > *, .space-between > * {
|
|
57
|
+
} .start > *, .center > *, .space-between > * {
|
|
65
58
|
margin-right: var(--side-panel-footer-default-gap);
|
|
66
|
-
}
|
|
67
|
-
.start > *:last-child,
|
|
59
|
+
} .start > *:last-child,
|
|
68
60
|
.start > *:only-child,
|
|
69
61
|
.center > *:last-child,
|
|
70
62
|
.center > *:only-child,
|
|
71
63
|
.space-between > *:last-child,
|
|
72
64
|
.space-between > *:only-child {
|
|
73
65
|
margin-right: 0;
|
|
74
|
-
}
|
|
75
|
-
.start.gap-16 > *, .center.gap-16 > *, .space-between.gap-16 > * {
|
|
66
|
+
} .start.gap-16 > *, .center.gap-16 > *, .space-between.gap-16 > * {
|
|
76
67
|
margin-right: var(--gap-m);
|
|
77
|
-
}
|
|
78
|
-
.start.gap-24 > *, .center.gap-24 > *, .space-between.gap-24 > * {
|
|
68
|
+
} .start.gap-24 > *, .center.gap-24 > *, .space-between.gap-24 > * {
|
|
79
69
|
margin-right: var(--gap-xl);
|
|
80
|
-
}
|
|
81
|
-
.start.gap-32 > *, .center.gap-32 > *, .space-between.gap-32 > * {
|
|
70
|
+
} .start.gap-32 > *, .center.gap-32 > *, .space-between.gap-32 > * {
|
|
82
71
|
margin-right: var(--gap-2xl);
|
|
83
72
|
}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
:root {
|
|
2
|
+
} /* deprecated */ :root {
|
|
3
|
+
} :root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
2
6
|
|
|
3
7
|
/* Hard */
|
|
4
8
|
|
|
5
9
|
/* Up */
|
|
6
10
|
|
|
7
11
|
/* Hard up */
|
|
8
|
-
}
|
|
9
|
-
:root {
|
|
12
|
+
} :root {
|
|
13
|
+
} :root {
|
|
10
14
|
--gap-m: 16px;
|
|
11
|
-
}
|
|
12
|
-
:root {
|
|
15
|
+
} :root {
|
|
16
|
+
} :root {
|
|
17
|
+
} :root {
|
|
13
18
|
|
|
14
19
|
/* sizes */
|
|
15
20
|
|
|
@@ -20,10 +25,8 @@
|
|
|
20
25
|
/* desktop */
|
|
21
26
|
|
|
22
27
|
/* mobile */
|
|
23
|
-
}
|
|
24
|
-
.footer {
|
|
28
|
+
} .footer {
|
|
25
29
|
padding: var(--gap-m);
|
|
26
|
-
}
|
|
27
|
-
.sticky {
|
|
30
|
+
} .sticky {
|
|
28
31
|
bottom: 0;
|
|
29
32
|
}
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
:root {
|
|
2
|
+
} /* deprecated */ :root {
|
|
3
|
+
} :root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
2
6
|
|
|
3
7
|
/* Hard */
|
|
4
8
|
|
|
5
9
|
/* Up */
|
|
6
10
|
|
|
7
11
|
/* Hard up */
|
|
8
|
-
}
|
|
9
|
-
:root {
|
|
12
|
+
} :root {
|
|
13
|
+
} :root {
|
|
10
14
|
--gap-xs: 8px;
|
|
11
15
|
--gap-s: 12px;
|
|
12
16
|
--gap-m: 16px;
|
|
13
|
-
}
|
|
14
|
-
:root {
|
|
17
|
+
} :root {
|
|
15
18
|
--font-family-system: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
|
|
16
19
|
sans-serif;
|
|
17
|
-
}
|
|
18
|
-
:root {
|
|
20
|
+
} :root {
|
|
21
|
+
} :root {
|
|
19
22
|
|
|
20
23
|
/* sizes */
|
|
21
24
|
|
|
@@ -32,22 +35,17 @@
|
|
|
32
35
|
--side-panel-header-desktop-font-family: var(--font-family-system);
|
|
33
36
|
|
|
34
37
|
/* mobile */
|
|
35
|
-
}
|
|
36
|
-
.content {
|
|
38
|
+
} .content {
|
|
37
39
|
font-weight: var(--side-panel-header-desktop-font-weight);
|
|
38
40
|
font-family: var(--side-panel-header-desktop-font-family);
|
|
39
|
-
}
|
|
40
|
-
.s .content {
|
|
41
|
+
} .s .content {
|
|
41
42
|
padding: var(--side-panel-s-header-desktop-content-paddings);
|
|
42
43
|
font-size: var(--side-panel-s-header-desktop-font-size);
|
|
43
44
|
line-height: var(--side-panel-s-header-desktop-line-height);
|
|
44
|
-
}
|
|
45
|
-
.s {
|
|
45
|
+
} .s {
|
|
46
46
|
padding: var(--side-panel-s-header-paddings)
|
|
47
|
-
}
|
|
48
|
-
.s:not(.hasContent) {
|
|
47
|
+
} .s:not(.hasContent) {
|
|
49
48
|
padding-bottom: 0;
|
|
50
|
-
}
|
|
51
|
-
.sticky {
|
|
49
|
+
} .sticky {
|
|
52
50
|
top: 0;
|
|
53
51
|
}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
:root {
|
|
2
|
+
} /* deprecated */ :root {
|
|
2
3
|
--color-light-bg-primary: #fff;
|
|
3
|
-
}
|
|
4
|
-
:root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
5
7
|
|
|
6
8
|
/* Hard */
|
|
7
9
|
|
|
8
10
|
/* Up */
|
|
9
11
|
|
|
10
12
|
/* Hard up */
|
|
11
|
-
}
|
|
12
|
-
:root {
|
|
13
|
+
} :root {
|
|
14
|
+
} :root {
|
|
15
|
+
} :root {
|
|
16
|
+
} :root {
|
|
17
|
+
} :root {
|
|
13
18
|
--side-panel-header-background: var(--color-light-bg-primary);
|
|
14
19
|
|
|
15
20
|
/* sizes */
|
|
@@ -23,66 +28,51 @@
|
|
|
23
28
|
/* desktop */
|
|
24
29
|
|
|
25
30
|
/* mobile */
|
|
26
|
-
}
|
|
27
|
-
.header {
|
|
31
|
+
} .header {
|
|
28
32
|
width: 100%;
|
|
29
33
|
box-sizing: border-box;
|
|
30
34
|
display: flex;
|
|
31
35
|
align-items: stretch;
|
|
32
36
|
justify-content: space-between;
|
|
33
37
|
transition: box-shadow 0.2s ease, background 0.2s ease
|
|
34
|
-
}
|
|
35
|
-
.header:not(.hasContent) {
|
|
38
|
+
} .header:not(.hasContent) {
|
|
36
39
|
pointer-events: none;
|
|
37
|
-
}
|
|
38
|
-
.highlighted {
|
|
40
|
+
} .highlighted {
|
|
39
41
|
background: var(--side-panel-header-highlight-background);
|
|
40
42
|
box-shadow: var(--side-panel-header-highlight-box-shadow);
|
|
41
|
-
}
|
|
42
|
-
.sticky {
|
|
43
|
+
} .sticky {
|
|
43
44
|
position: sticky;
|
|
44
45
|
z-index: 1
|
|
45
|
-
}
|
|
46
|
-
.sticky.hasContent {
|
|
46
|
+
} .sticky.hasContent {
|
|
47
47
|
background: var(--side-panel-header-background);
|
|
48
|
-
}
|
|
49
|
-
.header.backgroundImage {
|
|
48
|
+
} .header.backgroundImage {
|
|
50
49
|
background: center no-repeat;
|
|
51
50
|
background-size: cover;
|
|
52
|
-
}
|
|
53
|
-
.content {
|
|
51
|
+
} .content {
|
|
54
52
|
flex-grow: 1;
|
|
55
|
-
}
|
|
56
|
-
.title {
|
|
53
|
+
} .title {
|
|
57
54
|
word-break: break-word;
|
|
58
|
-
}
|
|
59
|
-
.addon {
|
|
55
|
+
} .addon {
|
|
60
56
|
min-width: 48px;
|
|
61
57
|
height: 48px;
|
|
62
58
|
display: flex;
|
|
63
59
|
justify-content: center;
|
|
64
60
|
align-items: center;
|
|
65
61
|
pointer-events: all;
|
|
66
|
-
}
|
|
67
|
-
.closer {
|
|
62
|
+
} .closer {
|
|
68
63
|
margin-left: auto;
|
|
69
|
-
}
|
|
70
|
-
.left {
|
|
64
|
+
} .left {
|
|
71
65
|
justify-content: flex-start;
|
|
72
66
|
text-align: left;
|
|
73
|
-
}
|
|
74
|
-
.center {
|
|
67
|
+
} .center {
|
|
75
68
|
justify-content: center;
|
|
76
69
|
text-align: center;
|
|
77
|
-
}
|
|
78
|
-
.right {
|
|
70
|
+
} .right {
|
|
79
71
|
justify-content: flex-end;
|
|
80
72
|
text-align: right;
|
|
81
|
-
}
|
|
82
|
-
.trim {
|
|
73
|
+
} .trim {
|
|
83
74
|
overflow: hidden
|
|
84
|
-
}
|
|
85
|
-
.trim .title {
|
|
75
|
+
} .trim .title {
|
|
86
76
|
overflow: hidden;
|
|
87
77
|
white-space: nowrap;
|
|
88
78
|
text-overflow: ellipsis;
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
:root {
|
|
2
|
+
} /* deprecated */ :root {
|
|
3
|
+
} :root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
2
6
|
|
|
3
7
|
/* Hard */
|
|
4
8
|
|
|
5
9
|
/* Up */
|
|
6
10
|
|
|
7
11
|
/* Hard up */
|
|
8
|
-
}
|
|
9
|
-
:root {
|
|
12
|
+
} :root {
|
|
13
|
+
} :root {
|
|
10
14
|
--gap-xs: 8px;
|
|
11
15
|
--gap-s: 12px;
|
|
12
16
|
--gap-m: 16px;
|
|
13
|
-
}
|
|
14
|
-
:root {
|
|
17
|
+
} :root {
|
|
15
18
|
--font-family-system: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
|
|
16
19
|
sans-serif;
|
|
17
|
-
}
|
|
18
|
-
:root {
|
|
20
|
+
} :root {
|
|
21
|
+
} :root {
|
|
19
22
|
|
|
20
23
|
/* sizes */
|
|
21
24
|
|
|
@@ -32,11 +35,9 @@
|
|
|
32
35
|
--side-panel-header-mobile-line-height: 24px;
|
|
33
36
|
--side-panel-header-mobile-font-family: var(--font-family-system);
|
|
34
37
|
--side-panel-header-mobile-font-weight: bold;
|
|
35
|
-
}
|
|
36
|
-
.sticky {
|
|
38
|
+
} .sticky {
|
|
37
39
|
top: 0;
|
|
38
|
-
}
|
|
39
|
-
.content {
|
|
40
|
+
} .content {
|
|
40
41
|
font-size: var(--side-panel-header-mobile-font-size);
|
|
41
42
|
line-height: var(--side-panel-header-mobile-line-height);
|
|
42
43
|
font-family: var(--side-panel-header-mobile-font-family);
|
package/cssm/desktop.module.css
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
:root {
|
|
2
|
+
} /* deprecated */ :root {
|
|
3
|
+
} :root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
2
6
|
|
|
3
7
|
/* Hard */
|
|
4
8
|
|
|
5
9
|
/* Up */
|
|
6
10
|
|
|
7
11
|
/* Hard up */
|
|
8
|
-
}
|
|
9
|
-
:root {
|
|
12
|
+
} :root {
|
|
13
|
+
} :root {
|
|
14
|
+
} :root {
|
|
15
|
+
} :root {
|
|
16
|
+
} :root {
|
|
10
17
|
|
|
11
18
|
/* sizes */
|
|
12
19
|
--side-panel-s-width: 500px;
|
|
@@ -18,10 +25,8 @@
|
|
|
18
25
|
/* desktop */
|
|
19
26
|
|
|
20
27
|
/* mobile */
|
|
21
|
-
}
|
|
22
|
-
.s {
|
|
28
|
+
} .s {
|
|
23
29
|
width: var(--side-panel-s-width);
|
|
24
|
-
}
|
|
25
|
-
.hidden {
|
|
30
|
+
} .hidden {
|
|
26
31
|
overflow-x: hidden;
|
|
27
32
|
}
|
package/cssm/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var Component_responsive = require('./Component.responsive.js');
|
|
|
4
4
|
var Context = require('./Context.js');
|
|
5
5
|
require('./tslib.es6-bbd6cd2a.js');
|
|
6
6
|
require('react');
|
|
7
|
-
require('@alfalab/
|
|
7
|
+
require('@alfalab/core-components-mq/cssm');
|
|
8
8
|
require('./components/closer/Component.js');
|
|
9
9
|
require('classnames');
|
|
10
10
|
require('@alfalab/core-components-icon-button/cssm');
|
package/cssm/mobile.module.css
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
:root {
|
|
2
|
+
} /* deprecated */ :root {
|
|
3
|
+
} :root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
2
6
|
|
|
3
7
|
/* Hard */
|
|
4
8
|
|
|
5
9
|
/* Up */
|
|
6
10
|
|
|
7
11
|
/* Hard up */
|
|
8
|
-
}
|
|
9
|
-
:root {
|
|
12
|
+
} :root {
|
|
13
|
+
} :root {
|
|
14
|
+
} :root {
|
|
15
|
+
} :root {
|
|
16
|
+
} :root {
|
|
10
17
|
|
|
11
18
|
/* sizes */
|
|
12
19
|
|
|
@@ -17,8 +24,7 @@
|
|
|
17
24
|
/* desktop */
|
|
18
25
|
|
|
19
26
|
/* mobile */
|
|
20
|
-
}
|
|
21
|
-
.component {
|
|
27
|
+
} .component {
|
|
22
28
|
flex: 1;
|
|
23
29
|
width: 100%;
|
|
24
30
|
}
|
package/cssm/responsive.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var Component_responsive = require('./Component.responsive.js');
|
|
4
4
|
require('./tslib.es6-bbd6cd2a.js');
|
|
5
5
|
require('react');
|
|
6
|
-
require('@alfalab/
|
|
6
|
+
require('@alfalab/core-components-mq/cssm');
|
|
7
7
|
require('./components/closer/Component.js');
|
|
8
8
|
require('classnames');
|
|
9
9
|
require('@alfalab/core-components-icon-button/cssm');
|
package/cssm/vars.css
CHANGED
package/desktop.css
CHANGED
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: bnt2b */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
4
|
+
} :root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
3
7
|
|
|
4
8
|
/* Hard */
|
|
5
9
|
|
|
6
10
|
/* Up */
|
|
7
11
|
|
|
8
12
|
/* Hard up */
|
|
9
|
-
}
|
|
10
|
-
:root {
|
|
13
|
+
} :root {
|
|
14
|
+
} :root {
|
|
15
|
+
} :root {
|
|
16
|
+
} :root {
|
|
17
|
+
} :root {
|
|
11
18
|
|
|
12
19
|
/* sizes */
|
|
13
20
|
--side-panel-s-width: 500px;
|
|
@@ -19,10 +26,8 @@
|
|
|
19
26
|
/* desktop */
|
|
20
27
|
|
|
21
28
|
/* mobile */
|
|
22
|
-
}
|
|
23
|
-
.side-panel__s_tms5n {
|
|
29
|
+
} .side-panel__s_1jd76 {
|
|
24
30
|
width: var(--side-panel-s-width);
|
|
25
|
-
}
|
|
26
|
-
.side-panel__hidden_tms5n {
|
|
31
|
+
} .side-panel__hidden_1jd76 {
|
|
27
32
|
overflow-x: hidden;
|
|
28
33
|
}
|
package/desktop.js
CHANGED
package/esm/Component.desktop.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from './tslib.es6-4ea62d19.js';
|
|
2
2
|
import React, { forwardRef, useRef, isValidElement, cloneElement } from 'react';
|
|
3
3
|
import mergeRefs from 'react-merge-refs';
|
|
4
4
|
import cn from 'classnames';
|
|
@@ -15,10 +15,10 @@ import './components/closer/Component.js';
|
|
|
15
15
|
import '@alfalab/core-components-icon-button/esm';
|
|
16
16
|
import './components/header/Component.js';
|
|
17
17
|
|
|
18
|
-
var styles = {"s":"side-
|
|
18
|
+
var styles = {"s":"side-panel__s_1jd76","hidden":"side-panel__hidden_1jd76"};
|
|
19
19
|
require('./desktop.css')
|
|
20
20
|
|
|
21
|
-
var transitions = {"enterRight":"side-
|
|
21
|
+
var transitions = {"enterRight":"side-panel__enterRight_1ma8x","enterLeft":"side-panel__enterLeft_1ma8x","enterActive":"side-panel__enterActive_1ma8x","exit":"side-panel__exit_1ma8x","exitActiveRight":"side-panel__exitActiveRight_1ma8x","exitActiveLeft":"side-panel__exitActiveLeft_1ma8x"};
|
|
22
22
|
require('./transitions.desktop.css')
|
|
23
23
|
|
|
24
24
|
var SidePanelDesktopComponent = forwardRef(function (_a, ref) {
|
package/esm/Component.mobile.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from './tslib.es6-4ea62d19.js';
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { BaseModal } from '@alfalab/core-components-base-modal/esm';
|
|
@@ -13,10 +13,10 @@ import './components/closer/Component.js';
|
|
|
13
13
|
import '@alfalab/core-components-icon-button/esm';
|
|
14
14
|
import './components/header/Component.js';
|
|
15
15
|
|
|
16
|
-
var styles = {"component":"side-
|
|
16
|
+
var styles = {"component":"side-panel__component_1t6d7"};
|
|
17
17
|
require('./mobile.css')
|
|
18
18
|
|
|
19
|
-
var transitions = {"appear":"side-
|
|
19
|
+
var transitions = {"appear":"side-panel__appear_32msf","enter":"side-panel__enter_32msf","appearActive":"side-panel__appearActive_32msf","enterActive":"side-panel__enterActive_32msf","exit":"side-panel__exit_32msf","exitActive":"side-panel__exitActive_32msf","exitDone":"side-panel__exitDone_32msf"};
|
|
20
20
|
require('./transitions.mobile.css')
|
|
21
21
|
|
|
22
22
|
var SidePanelMobileComponent = forwardRef(function (_a, ref) {
|
|
@@ -18,6 +18,10 @@ type SidePanelResponsiveProps = BaseModalProps & Pick<DrawerProps, 'contentTrans
|
|
|
18
18
|
* @default 1024
|
|
19
19
|
*/
|
|
20
20
|
breakpoint?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Значение по-умолчанию для хука useMatchMedia
|
|
23
|
+
*/
|
|
24
|
+
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
21
25
|
};
|
|
22
26
|
declare const SidePanelResponsive: React.ForwardRefExoticComponent<BaseModalProps & Pick<DrawerProps, "contentTransitionProps" | "nativeScrollbar" | "placement" | "scrollbarProps"> & {
|
|
23
27
|
/**
|
|
@@ -35,6 +39,10 @@ declare const SidePanelResponsive: React.ForwardRefExoticComponent<BaseModalProp
|
|
|
35
39
|
* @default 1024
|
|
36
40
|
*/
|
|
37
41
|
breakpoint?: number | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Значение по-умолчанию для хука useMatchMedia
|
|
44
|
+
*/
|
|
45
|
+
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
38
46
|
} & React.RefAttributes<HTMLDivElement>> & {
|
|
39
47
|
Header: React.FC<import("./components/header/Component.desktop").HeaderDesktopProps> | React.FC<import("./components/header/Component.mobile").HeaderMobileProps>;
|
|
40
48
|
Content: React.FC<import("./components/content/Component").ContentProps> | React.FC<import("./components/content/Component.desktop").ContentDesktopProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from './tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from './tslib.es6-4ea62d19.js';
|
|
2
2
|
import React, { forwardRef, useMemo, useContext } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { useMatchMedia } from '@alfalab/core-components-mq/esm';
|
|
4
4
|
import { Closer } from './components/closer/Component.js';
|
|
5
5
|
import { SidePanelDesktop } from './Component.desktop.js';
|
|
6
6
|
import { SidePanelMobile } from './Component.mobile.js';
|
|
@@ -22,6 +22,8 @@ import './components/footer/Component.mobile.js';
|
|
|
22
22
|
import './components/header/Component.mobile.js';
|
|
23
23
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
24
24
|
|
|
25
|
+
var isClient = function () { return typeof window !== 'undefined'; };
|
|
26
|
+
|
|
25
27
|
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
26
28
|
var ResponsiveContext = React.createContext({
|
|
27
29
|
view: 'desktop',
|
|
@@ -35,13 +37,13 @@ function createResponsive(desktop, mobile) {
|
|
|
35
37
|
return ResponsiveChild;
|
|
36
38
|
}
|
|
37
39
|
var SidePanelResponsiveComponent = forwardRef(function (_a, ref) {
|
|
38
|
-
var children = _a.children, _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps = __rest(_a, ["children", "breakpoint"]);
|
|
39
|
-
var
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
var children = _a.children, _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, defaultMatchMediaValue = _a.defaultMatchMediaValue, restProps = __rest(_a, ["children", "breakpoint", "defaultMatchMediaValue"]);
|
|
41
|
+
var query = "(min-width: ".concat(breakpoint, "px)");
|
|
42
|
+
var getDefaultValue = function () { return (isClient() ? window.matchMedia(query).matches : false); };
|
|
43
|
+
var isDesktop = useMatchMedia(query, defaultMatchMediaValue !== null && defaultMatchMediaValue !== void 0 ? defaultMatchMediaValue : getDefaultValue)[0];
|
|
44
|
+
var view = isDesktop ? 'desktop' : 'mobile';
|
|
43
45
|
var contextValue = useMemo(function () { return ({ view: view }); }, [view]);
|
|
44
|
-
var Component =
|
|
46
|
+
var Component = isDesktop ? SidePanelDesktop : SidePanelMobile;
|
|
45
47
|
return (React.createElement(ResponsiveContext.Provider, { value: contextValue },
|
|
46
48
|
React.createElement(Component, __assign({ ref: ref }, restProps), children)));
|
|
47
49
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _ as __rest, a as __assign } from '../../tslib.es6-
|
|
1
|
+
import { _ as __rest, a as __assign } from '../../tslib.es6-4ea62d19.js';
|
|
2
2
|
import React, { useContext, useCallback } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { IconButton } from '@alfalab/core-components-icon-button/esm';
|
|
5
5
|
import { ModalContext } from '../../Context.js';
|
|
6
6
|
import '@alfalab/core-components-base-modal/esm';
|
|
7
7
|
|
|
8
|
-
var styles = {"closer":"side-
|
|
8
|
+
var styles = {"closer":"side-panel__closer_1s5yt","button":"side-panel__button_1s5yt","sticky":"side-panel__sticky_1s5yt"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 196hu */
|
|
2
2
|
:root {
|
|
3
|
+
} /* deprecated */ :root {
|
|
3
4
|
--color-light-bg-primary-alpha-40: rgba(255, 255, 255, 0.4);
|
|
4
|
-
}
|
|
5
|
-
:root {
|
|
5
|
+
} :root {
|
|
6
|
+
} :root {
|
|
7
|
+
} :root {
|
|
6
8
|
|
|
7
9
|
/* Hard */
|
|
8
10
|
|
|
9
11
|
/* Up */
|
|
10
12
|
|
|
11
13
|
/* Hard up */
|
|
12
|
-
}
|
|
13
|
-
:root {
|
|
14
|
+
} :root {
|
|
15
|
+
} :root {
|
|
16
|
+
} :root {
|
|
17
|
+
} :root {
|
|
18
|
+
} :root {
|
|
14
19
|
|
|
15
20
|
/* sizes */
|
|
16
21
|
|
|
@@ -21,11 +26,9 @@
|
|
|
21
26
|
/* desktop */
|
|
22
27
|
|
|
23
28
|
/* mobile */
|
|
24
|
-
}
|
|
25
|
-
:root {
|
|
29
|
+
} :root {
|
|
26
30
|
--side-panel-closer-bg-color: var(--color-light-bg-primary-alpha-40);
|
|
27
|
-
}
|
|
28
|
-
.side-panel__closer_4d47r {
|
|
31
|
+
} .side-panel__closer_1s5yt {
|
|
29
32
|
flex-shrink: 0;
|
|
30
33
|
width: 48px;
|
|
31
34
|
height: 48px;
|
|
@@ -33,14 +36,12 @@
|
|
|
33
36
|
display: flex;
|
|
34
37
|
align-items: center;
|
|
35
38
|
justify-content: center;
|
|
36
|
-
}
|
|
37
|
-
.side-panel__button_4d47r {
|
|
39
|
+
} .side-panel__button_1s5yt {
|
|
38
40
|
background: var(--side-panel-closer-bg-color);
|
|
39
41
|
-webkit-backdrop-filter: blur(10px);
|
|
40
42
|
backdrop-filter: blur(10px);
|
|
41
43
|
border-radius: 50px;
|
|
42
|
-
}
|
|
43
|
-
.side-panel__sticky_4d47r {
|
|
44
|
+
} .side-panel__sticky_1s5yt {
|
|
44
45
|
position: sticky;
|
|
45
46
|
top: 0;
|
|
46
47
|
}
|