@meduza/ui-kit-2 0.1.64 → 0.1.66
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/dist/ui-kit-2.cjs.development.js +6 -6
- package/dist/ui-kit-2.cjs.development.js.map +1 -1
- package/dist/ui-kit-2.cjs.production.min.js +1 -1
- package/dist/ui-kit-2.cjs.production.min.js.map +1 -1
- package/dist/ui-kit-2.esm.js +6 -6
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit.css +837 -787
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/EmbedBlock/EmbedBlock.module.css +1 -1
- package/src/ListBlock/ListBlock.module.css +5 -5
- package/src/MediaCaption/MediaCaption.module.css +13 -9
- package/src/Meta/Meta.module.css +2 -2
- package/src/QuoteBlock/QuoteBlock.module.css +6 -6
- package/src/SimpleBlock/FootnoteLink.css +6 -14
- package/src/SimpleBlock/SimpleBlock.module.css +69 -40
- package/src/SimpleBlock/SimpleBlock.stories.tsx +3 -3
- package/src/SimpleTitle/index.tsx +2 -2
- package/src/SourceBlock/SourceBlock.module.css +15 -0
- package/src/SourceBlock/SourceBlock.stories.tsx +3 -3
- package/src/SvgSymbol/SvgSymbol.stories.module.css +28 -12
- package/src/SvgSymbol/SvgSymbol.stories.tsx +3 -3
- package/src/Toolbar/Toolbar.module.css +2 -1
- package/src/Toolbar/Toolbar.stories.tsx +4 -3
- package/src/ToolbarButton/ToolbarButton.module.css +8 -0
- package/src/ToolbarButton/ToolbarButton.stories.tsx +7 -3
- package/src/_storybook/PreviewWrapper/PreviewWrapper.module.css +6 -3
- package/src/vars-games.css +63 -0
|
@@ -34,30 +34,36 @@
|
|
|
34
34
|
opacity: 0.6;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
.isDark,
|
|
37
38
|
.dark {
|
|
38
39
|
color: #fff;
|
|
39
40
|
}
|
|
40
41
|
|
|
42
|
+
.isDark:hover,
|
|
41
43
|
.dark:hover {
|
|
42
44
|
opacity: 0.6;
|
|
43
45
|
}
|
|
44
46
|
|
|
47
|
+
.isDark svg,
|
|
45
48
|
.dark svg {
|
|
46
49
|
color: #262626;
|
|
47
50
|
|
|
48
51
|
fill: #fff;
|
|
49
52
|
}
|
|
50
53
|
|
|
54
|
+
.isDark.bookmark svg,
|
|
51
55
|
.dark.bookmark svg {
|
|
52
56
|
color: #fff;
|
|
53
57
|
|
|
54
58
|
fill: transparent;
|
|
55
59
|
}
|
|
56
60
|
|
|
61
|
+
.isDark.bookmark.isActive svg,
|
|
57
62
|
.dark.bookmark.isActive svg {
|
|
58
63
|
fill: currentColor;
|
|
59
64
|
}
|
|
60
65
|
|
|
66
|
+
.isDark::before,
|
|
61
67
|
.dark::before {
|
|
62
68
|
border-left-color: rgba(255, 255, 255, 0.2);
|
|
63
69
|
}
|
|
@@ -66,10 +72,12 @@
|
|
|
66
72
|
visibility: hidden;
|
|
67
73
|
}
|
|
68
74
|
|
|
75
|
+
.isDark [data-theme='dark'],
|
|
69
76
|
.dark [data-theme='dark'] {
|
|
70
77
|
visibility: visible;
|
|
71
78
|
}
|
|
72
79
|
|
|
80
|
+
.isDark [data-theme='light'],
|
|
73
81
|
.dark [data-theme='light'] {
|
|
74
82
|
visibility: hidden;
|
|
75
83
|
}
|
|
@@ -12,11 +12,15 @@ export default {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
const Example: React.FC = () => {
|
|
15
|
+
const Example: React.FC<{ theme?: string }> = ({ theme }) => {
|
|
16
16
|
return (
|
|
17
17
|
<>
|
|
18
18
|
<div className={styles.root}>
|
|
19
|
-
<ToolbarButton
|
|
19
|
+
<ToolbarButton
|
|
20
|
+
type="fb"
|
|
21
|
+
theme={theme}
|
|
22
|
+
onClick={(): void => alert('Hello Button')}
|
|
23
|
+
>
|
|
20
24
|
42
|
|
21
25
|
</ToolbarButton>
|
|
22
26
|
</div>
|
|
@@ -30,7 +34,7 @@ export const Default: React.FC = () => (
|
|
|
30
34
|
<Example />
|
|
31
35
|
</PreviewWrapper>
|
|
32
36
|
<PreviewWrapper theme="dark">
|
|
33
|
-
<Example />
|
|
37
|
+
<Example theme="isDark" />
|
|
34
38
|
</PreviewWrapper>
|
|
35
39
|
</>
|
|
36
40
|
)
|
|
@@ -66,6 +66,8 @@
|
|
|
66
66
|
|
|
67
67
|
/* set font-size as website */
|
|
68
68
|
html {
|
|
69
|
+
font-size: 16px;
|
|
70
|
+
|
|
69
71
|
@media (min-width: 1000px) {
|
|
70
72
|
font-size: calc(100vw / 66.75);
|
|
71
73
|
}
|
|
@@ -101,7 +103,7 @@ html {
|
|
|
101
103
|
}
|
|
102
104
|
|
|
103
105
|
.wrapper.dark {
|
|
104
|
-
color: #
|
|
106
|
+
color: #b8b8b8;
|
|
105
107
|
background-color: #1a1a1a;
|
|
106
108
|
}
|
|
107
109
|
|
|
@@ -116,7 +118,6 @@ html {
|
|
|
116
118
|
font-weight: bold;
|
|
117
119
|
}
|
|
118
120
|
|
|
119
|
-
|
|
120
121
|
h1,
|
|
121
122
|
h2,
|
|
122
123
|
h3,
|
|
@@ -129,4 +130,6 @@ h6 {
|
|
|
129
130
|
font-weight: normal;
|
|
130
131
|
}
|
|
131
132
|
|
|
132
|
-
* {
|
|
133
|
+
* {
|
|
134
|
+
box-sizing: border-box;
|
|
135
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/* Colors */
|
|
2
|
+
$gold: #b88b59;
|
|
3
|
+
$platinum: #f5f5f5;
|
|
4
|
+
$bronze: #9e784c;
|
|
5
|
+
$highlighter: #fff3bc;
|
|
6
|
+
$yellow: #fff9cd;
|
|
7
|
+
$smoke: #ebebeb;
|
|
8
|
+
$silver: #c0c0c0;
|
|
9
|
+
$ash: #b3b3b3;
|
|
10
|
+
$nikel: #757575;
|
|
11
|
+
$jet: #1a1a1a;
|
|
12
|
+
$sand: #a18c68;
|
|
13
|
+
|
|
14
|
+
$fbColor: #304591;
|
|
15
|
+
$vkColor: #527397;
|
|
16
|
+
$twColor: #31adf4;
|
|
17
|
+
$okColor: #eb722e;
|
|
18
|
+
$tgColor: #2ba5e0;
|
|
19
|
+
|
|
20
|
+
/* Fonts */
|
|
21
|
+
$primaryFont: 'PF Regal', 'PF Regal Text Pro', 'Georgia', serif;
|
|
22
|
+
$secondaryFont: 'Proxima Nova', 'Arial', 'Helvetica Neue', sans-serif;
|
|
23
|
+
|
|
24
|
+
/* Gap */
|
|
25
|
+
$gapLarge: 18px;
|
|
26
|
+
$gapMedium: 15px;
|
|
27
|
+
$gapSmall: 12px;
|
|
28
|
+
|
|
29
|
+
/* Media */
|
|
30
|
+
$mobile: only screen and
|
|
31
|
+
(
|
|
32
|
+
min-width: 32em
|
|
33
|
+
); /* 512 */
|
|
34
|
+
$contentWidth: only screen and
|
|
35
|
+
(
|
|
36
|
+
min-width: 40.625em
|
|
37
|
+
); /* 650 */
|
|
38
|
+
$portraitTablet: $contentWidth;
|
|
39
|
+
$landscapeTablet: $contentWidth;
|
|
40
|
+
$desktop: $contentWidth;
|
|
41
|
+
$wideDesktop: $contentWidth;
|
|
42
|
+
|
|
43
|
+
$mobileMax: only screen and
|
|
44
|
+
(
|
|
45
|
+
max-width: 32.1875em
|
|
46
|
+
); /* 511 */
|
|
47
|
+
$landscapeTabletMax: only screen and
|
|
48
|
+
(
|
|
49
|
+
max-width: 40,
|
|
50
|
+
5625em
|
|
51
|
+
); /* 649 */
|
|
52
|
+
|
|
53
|
+
/* Zindex */
|
|
54
|
+
$zIndex-1: 100;
|
|
55
|
+
$zIndex-2: 200;
|
|
56
|
+
$zIndex-3: 300;
|
|
57
|
+
$zIndex-4: 400;
|
|
58
|
+
$zIndex-5: 500;
|
|
59
|
+
$zIndex-6: 600;
|
|
60
|
+
$zIndex-7: 700;
|
|
61
|
+
$zIndex-8: 800;
|
|
62
|
+
$zIndex-9: 900;
|
|
63
|
+
$zIndex-10: 1000;
|