@semcore/typography 5.53.2 → 5.54.0-prerelease.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 +6 -0
- package/lib/cjs/components/Blockquote/Blockquote.js +37 -0
- package/lib/cjs/components/Blockquote/Blockquote.js.map +1 -0
- package/lib/cjs/components/Blockquote/Blockquote.type.js +2 -0
- package/lib/cjs/components/Blockquote/Blockquote.type.js.map +1 -0
- package/lib/cjs/{List.js → components/List/List.js} +26 -36
- package/lib/cjs/components/List/List.js.map +1 -0
- package/lib/cjs/components/List/List.type.js +2 -0
- package/lib/cjs/components/List/List.type.js.map +1 -0
- package/lib/cjs/components/Text/Text.js +185 -0
- package/lib/cjs/components/Text/Text.js.map +1 -0
- package/lib/cjs/components/Text/Text.type.js +2 -0
- package/lib/cjs/components/Text/Text.type.js.map +1 -0
- package/lib/cjs/index.js +45 -11
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/style/blockquote.shadow.css +3 -3
- package/lib/cjs/style/list.shadow.css +1 -1
- package/lib/cjs/style/text.shadow.css +370 -4
- package/lib/es6/components/Blockquote/Blockquote.js +32 -0
- package/lib/es6/components/Blockquote/Blockquote.js.map +1 -0
- package/lib/es6/components/Blockquote/Blockquote.type.js +2 -0
- package/lib/es6/components/Blockquote/Blockquote.type.js.map +1 -0
- package/lib/es6/{List.js → components/List/List.js} +22 -29
- package/lib/es6/components/List/List.js.map +1 -0
- package/lib/es6/components/List/List.type.js +2 -0
- package/lib/es6/components/List/List.type.js.map +1 -0
- package/lib/es6/components/Text/Text.js +180 -0
- package/lib/es6/components/Text/Text.js.map +1 -0
- package/lib/es6/components/Text/Text.type.js +2 -0
- package/lib/es6/components/Text/Text.type.js.map +1 -0
- package/lib/es6/index.js +6 -4
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/style/blockquote.shadow.css +3 -3
- package/lib/es6/style/list.shadow.css +1 -1
- package/lib/es6/style/text.shadow.css +370 -4
- package/lib/esm/components/Blockquote/Blockquote.mjs +36 -0
- package/lib/esm/components/Blockquote/Blockquote.type.mjs +1 -0
- package/lib/esm/{List.mjs → components/List/List.mjs} +30 -37
- package/lib/esm/components/List/List.type.mjs +1 -0
- package/lib/esm/components/Text/Text.mjs +172 -0
- package/lib/esm/components/Text/Text.type.mjs +1 -0
- package/lib/esm/index.mjs +6 -5
- package/lib/esm/style/blockquote.shadow.css +3 -3
- package/lib/esm/style/list.shadow.css +1 -1
- package/lib/esm/style/text.shadow.css +370 -4
- package/lib/types/components/Blockquote/Blockquote.d.ts +3 -0
- package/lib/types/components/Blockquote/Blockquote.type.d.ts +12 -0
- package/lib/types/components/List/List.d.ts +3 -0
- package/lib/types/components/List/List.type.d.ts +34 -0
- package/lib/types/components/Text/Text.d.ts +3 -0
- package/lib/types/components/Text/Text.type.d.ts +82 -0
- package/lib/types/index.d.ts +6 -117
- package/package.json +5 -5
- package/lib/cjs/Blockquote.js +0 -38
- package/lib/cjs/Blockquote.js.map +0 -1
- package/lib/cjs/Hint.js +0 -89
- package/lib/cjs/Hint.js.map +0 -1
- package/lib/cjs/List.js.map +0 -1
- package/lib/cjs/Text.js +0 -80
- package/lib/cjs/Text.js.map +0 -1
- package/lib/cjs/index.d.js +0 -2
- package/lib/cjs/index.d.js.map +0 -1
- package/lib/cjs/style/hint.shadow.css +0 -51
- package/lib/es6/Blockquote.js +0 -31
- package/lib/es6/Blockquote.js.map +0 -1
- package/lib/es6/Hint.js +0 -83
- package/lib/es6/Hint.js.map +0 -1
- package/lib/es6/List.js.map +0 -1
- package/lib/es6/Text.js +0 -73
- package/lib/es6/Text.js.map +0 -1
- package/lib/es6/index.d.js +0 -2
- package/lib/es6/index.d.js.map +0 -1
- package/lib/es6/style/hint.shadow.css +0 -51
- package/lib/esm/Blockquote.mjs +0 -37
- package/lib/esm/Hint.mjs +0 -81
- package/lib/esm/Text.mjs +0 -78
- package/lib/esm/style/hint.shadow.css +0 -51
|
@@ -1,21 +1,379 @@
|
|
|
1
1
|
SText {
|
|
2
2
|
padding: 0;
|
|
3
3
|
margin: 0;
|
|
4
|
+
|
|
5
|
+
&[formatTags] {
|
|
6
|
+
|
|
7
|
+
& abbr {
|
|
8
|
+
color: var(--intergalactic-text-secondary, oklch(0.088 0.026 147.7 / 0.583));
|
|
9
|
+
text-decoration: underline dashed var(--intergalactic-text-secondary, oklch(0.088 0.026 147.7 / 0.583));
|
|
10
|
+
|
|
11
|
+
&:active,
|
|
12
|
+
&:hover,
|
|
13
|
+
&:focus {
|
|
14
|
+
outline: none;
|
|
15
|
+
color: var(--intergalactic-text-hint-hover-active, oklch(0.086 0.026 145.8 / 0.605));
|
|
16
|
+
text-decoration: underline dashed var(--intergalactic-text-hint-hover-active, oklch(0.086 0.026 145.8 / 0.605));
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
& a {
|
|
21
|
+
display: inline;
|
|
22
|
+
background: none;
|
|
23
|
+
outline: none;
|
|
24
|
+
text-decoration: none;
|
|
25
|
+
color: var(--intergalactic-text-link, oklch(0.53 0.214 263.4));
|
|
26
|
+
border-bottom-width: 1px;
|
|
27
|
+
border-bottom-style: solid;
|
|
28
|
+
border-color: transparent;
|
|
29
|
+
|
|
30
|
+
&:active,
|
|
31
|
+
&:hover {
|
|
32
|
+
outline: none;
|
|
33
|
+
text-decoration: none;
|
|
34
|
+
color: var(--intergalactic-text-link-hover-active, oklch(0.51 0.206 263.4));
|
|
35
|
+
border-color: var(--intergalactic-text-link-hover-active, oklch(0.51 0.206 263.4));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:focus {
|
|
39
|
+
@mixin focus-outline-mixin;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
& code,
|
|
44
|
+
& pre {
|
|
45
|
+
font-family: Consolas, 'Roboto Mono', Menlo, Courier, monospace;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
& blockquote {
|
|
49
|
+
position: relative;
|
|
50
|
+
/* disable-tokens-validator */
|
|
51
|
+
padding-left: 51px;
|
|
52
|
+
font-size: var(--intergalactic-fs-400, 20px);
|
|
53
|
+
line-height: var(--intergalactic-lh-400, 120%);
|
|
54
|
+
font-style: italic;
|
|
55
|
+
|
|
56
|
+
&:before {
|
|
57
|
+
content: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNyIgaGVpZ2h0PSIxOSIgdmlld0JveD0iMCAwIDI3IDE5IiBmaWxsPSJub25lIj4KPHBhdGggZD0iTTguODI0MjIgMC45NDcyNjZWMi4zMDg1OUM2Ljg3NjMgMy4zMjY4MiA1LjQ4MTc3IDQuMzg5MzIgNC42NDA2MiA1LjQ5NjA5QzMuNzk5NDggNi42MDI4NiAzLjM3ODkxIDcuODA5MjQgMy4zNzg5MSA5LjExNTIzQzMuMzc4OTEgOS44ODk5NyAzLjQ4OTU4IDEwLjQyMTIgMy43MTA5NCAxMC43MDlDMy45MTAxNiAxMS4wMTg5IDQuMTUzNjUgMTEuMTczOCA0LjQ0MTQxIDExLjE3MzhDNC43MjkxNyAxMS4xNzM4IDUuMTE2NTQgMTEuMDk2NCA1LjYwMzUyIDEwLjk0MTRDNi4wOTA0OSAxMC43NjQzIDYuNTMzMiAxMC42NzU4IDYuOTMxNjQgMTAuNjc1OEM3LjgzOTE5IDEwLjY3NTggOC42MjUgMTEuMDE4OSA5LjI4OTA2IDExLjcwNTFDOS45NzUyNiAxMi4zNjkxIDEwLjMxODQgMTMuMTg4MiAxMC4zMTg0IDE0LjE2MjFDMTAuMzE4NCAxNS4yMjQ2IDkuOTA4ODUgMTYuMTQzMiA5LjA4OTg0IDE2LjkxOEM4LjI3MDgzIDE3LjY3MDYgNy4yNTI2IDE4LjA0NjkgNi4wMzUxNiAxOC4wNDY5QzQuNTUyMDggMTguMDQ2OSAzLjIxMjg5IDE3LjQwNDkgMi4wMTc1OCAxNi4xMjExQzAuODIyMjY2IDE0LjgzNzIgMC4yMjQ2MDkgMTMuMjU0NiAwLjIyNDYwOSAxMS4zNzNDMC4yMjQ2MDkgOS4xNTk1MSAwLjk1NTA3OCA3LjEwMDkxIDIuNDE2MDIgNS4xOTcyN0MzLjg5OTA5IDMuMjcxNDggNi4wMzUxNiAxLjg1NDgyIDguODI0MjIgMC45NDcyNjZaTTI0LjY2MjEgMS4wNDY4OFYyLjMwODU5QzIyLjQyNjQgMy41OTI0NSAyMC45NTQ0IDQuNzQzNDkgMjAuMjQ2MSA1Ljc2MTcyQzE5LjUzNzggNi43Nzk5NSAxOS4xODM2IDcuOTc1MjYgMTkuMTgzNiA5LjM0NzY2QzE5LjE4MzYgOS45Njc0NSAxOS4zMDUzIDEwLjQzMjMgMTkuNTQ4OCAxMC43NDIyQzE5Ljc5MjMgMTEuMDUyMSAyMC4wNDY5IDExLjIwNyAyMC4zMTI1IDExLjIwN0MyMC41NTYgMTEuMjA3IDIwLjkyMTIgMTEuMTE4NSAyMS40MDgyIDEwLjk0MTRDMjEuODk1MiAxMC43NjQzIDIyLjM4MjIgMTAuNjc1OCAyMi44NjkxIDEwLjY3NThDMjMuNzc2NyAxMC42NzU4IDI0LjU2MjUgMTEuMDA3OCAyNS4yMjY2IDExLjY3MTlDMjUuOTEyOCAxMi4zMTM4IDI2LjI1NTkgMTMuMTEwNyAyNi4yNTU5IDE0LjA2MjVDMjYuMjU1OSAxNS4xNDcxIDI1LjgyNDIgMTYuMDg3OSAyNC45NjA5IDE2Ljg4NDhDMjQuMTE5OCAxNy42ODE2IDIzLjA3OTQgMTguMDgwMSAyMS44Mzk4IDE4LjA4MDFDMjAuMzc4OSAxOC4wODAxIDE5LjA2MTggMTcuNDQ5MiAxNy44ODg3IDE2LjE4NzVDMTYuNzE1NSAxNC45MjU4IDE2LjEyODkgMTMuMzU0MiAxNi4xMjg5IDExLjQ3MjdDMTYuMTI4OSA5LjE0ODQ0IDE2Ljg3MDQgNy4wMzQ1MSAxOC4zNTM1IDUuMTMwODZDMTkuODM2NiAzLjIwNTA4IDIxLjkzOTUgMS44NDM3NSAyNC42NjIxIDEuMDQ2ODhaIiBmaWxsPSIjQTlBQkI2Ii8+Cjwvc3ZnPg==);
|
|
58
|
+
display: inline-block;
|
|
59
|
+
position: absolute;
|
|
60
|
+
left: 0;
|
|
61
|
+
color: var(--intergalactic-icon-secondary-neutral, oklch(0.104 0.023 162.3 / 0.385));
|
|
62
|
+
font-family: Georgia, Times, 'Times New Roman', serif;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
& cite {
|
|
66
|
+
display: block;
|
|
67
|
+
font-style: normal;
|
|
68
|
+
margin-top: var(--intergalactic-spacing-4x, 16px);
|
|
69
|
+
color: var(--intergalactic-text-secondary, oklch(0.088 0.026 147.7 / 0.583));
|
|
70
|
+
font-size: var(--intergalactic-fs-300, 16px);
|
|
71
|
+
line-height: var(--intergalactic-lh-300, 150%);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
& ol:not(ol[start], ol[reversed], ol[type]),
|
|
76
|
+
& ul:not(ul[start], ul[reversed], ul[type]) {
|
|
77
|
+
margin: var(--intergalactic-spacing-2x, 8px) 0;
|
|
78
|
+
padding: 0;
|
|
79
|
+
list-style: none;
|
|
80
|
+
position: relative;
|
|
81
|
+
|
|
82
|
+
& li:not(SText) {
|
|
83
|
+
&:before {
|
|
84
|
+
position: absolute;
|
|
85
|
+
left: 0;
|
|
86
|
+
color: var(--intergalactic-text-secondary, oklch(0.088 0.026 147.7 / 0.583));
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
& li:not(SText) + li:not(SText) {
|
|
91
|
+
margin: var(--intergalactic-spacing-2x, 8px) 0 0 0;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
& ol:not(ol[start], ol[reversed], ol[type]) {
|
|
96
|
+
counter-reset: item 0;
|
|
97
|
+
|
|
98
|
+
& li:not(SText):before {
|
|
99
|
+
counter-increment: item;
|
|
100
|
+
content: counters(item, '.');
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
& ul:not(ul[start], ul[reversed], ul[type]) li:not(SText):before {
|
|
105
|
+
content: '';
|
|
106
|
+
background-color: var(--intergalactic-icon-primary-neutral, oklch(0.092 0.024 152.2 / 0.526));
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
& ol:not(ol[start], ol[reversed], ol[type]):has(+ p),
|
|
110
|
+
& ul:not(ul[start], ul[reversed], ul[type]):has(+ p) {
|
|
111
|
+
margin-bottom: var(--intergalactic-spacing-4x, 16px);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
& h1 {
|
|
115
|
+
font-size: var(--intergalactic-fs-800, 48px);
|
|
116
|
+
line-height: var(--intergalactic-lh-800, 117%);
|
|
117
|
+
font-weight: var(--intergalactic-semi-bold, 600);
|
|
118
|
+
margin: 0 0 var(--intergalactic-spacing-6x, 24px) 0;
|
|
119
|
+
|
|
120
|
+
&:only-child {
|
|
121
|
+
margin-bottom: 0;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
& h2 {
|
|
126
|
+
font-size: var(--intergalactic-fs-700, 36px);
|
|
127
|
+
line-height: var(--intergalactic-lh-700, 110%);
|
|
128
|
+
font-weight: var(--intergalactic-semi-bold, 600);
|
|
129
|
+
margin: 0 0 var(--intergalactic-spacing-4x, 16px) 0;
|
|
130
|
+
|
|
131
|
+
&:only-child {
|
|
132
|
+
margin-bottom: 0;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
& h3 {
|
|
137
|
+
font-size: var(--intergalactic-fs-600, 32px);
|
|
138
|
+
line-height: var(--intergalactic-lh-600, 125%);
|
|
139
|
+
font-weight: var(--intergalactic-semi-bold, 600);
|
|
140
|
+
margin: 0 0 var(--intergalactic-spacing-4x, 16px) 0;
|
|
141
|
+
|
|
142
|
+
&:only-child {
|
|
143
|
+
margin-bottom: 0;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
& h4 {
|
|
148
|
+
font-size: var(--intergalactic-fs-500, 24px);
|
|
149
|
+
line-height: var(--intergalactic-lh-500, 117%);
|
|
150
|
+
font-weight: var(--intergalactic-semi-bold, 600);
|
|
151
|
+
margin: 0 0 var(--intergalactic-spacing-3x, 12px) 0;
|
|
152
|
+
|
|
153
|
+
&:only-child {
|
|
154
|
+
margin-bottom: 0;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
& h5 {
|
|
159
|
+
font-size: var(--intergalactic-fs-400, 20px);
|
|
160
|
+
line-height: var(--intergalactic-lh-400, 120%);
|
|
161
|
+
font-weight: var(--intergalactic-semi-bold, 600);
|
|
162
|
+
margin: 0 0 var(--intergalactic-spacing-2x, 8px) 0;
|
|
163
|
+
|
|
164
|
+
&:only-child {
|
|
165
|
+
margin-bottom: 0;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
& h6 {
|
|
170
|
+
font-size: var(--intergalactic-fs-300, 16px);
|
|
171
|
+
line-height: var(--intergalactic-lh-300, 150%);
|
|
172
|
+
font-weight: var(--intergalactic-bold, 700);
|
|
173
|
+
margin: 0 0 var(--intergalactic-spacing-1x, 4px) 0;
|
|
174
|
+
|
|
175
|
+
&:only-child {
|
|
176
|
+
margin-bottom: 0;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
& h1,
|
|
181
|
+
& h2,
|
|
182
|
+
& h3,
|
|
183
|
+
& h4,
|
|
184
|
+
& h5,
|
|
185
|
+
& h6 {
|
|
186
|
+
& small {
|
|
187
|
+
color: var(--intergalactic-text-secondary, oklch(0.088 0.026 147.7 / 0.583));
|
|
188
|
+
font-weight: 300;
|
|
189
|
+
font-size: 100%;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
& p,
|
|
194
|
+
& li {
|
|
195
|
+
font-size: var(--intergalactic-fs-200, 14px);
|
|
196
|
+
line-height: var(--intergalactic-lh-200, 142%);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
& p {
|
|
200
|
+
margin: 0 0 var(--intergalactic-spacing-4x, 16px) 0;
|
|
201
|
+
|
|
202
|
+
&:last-child {
|
|
203
|
+
margin-bottom: 0;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
& li {
|
|
208
|
+
padding-left: calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px));
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
& ol ol li {
|
|
212
|
+
padding-left: calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px));
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
& ol ol ol li {
|
|
216
|
+
padding-left: calc(var(--intergalactic-spacing-8x, 32px) + var(--intergalactic-spacing-1x, 4px) + var(--intergalactic-spacing-05x, 2px));
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
& ul li:before {
|
|
220
|
+
width: 4px;
|
|
221
|
+
height: 4px;
|
|
222
|
+
border-radius: 50%;
|
|
223
|
+
/* disable-tokens-validator */
|
|
224
|
+
margin-top: calc(var(--intergalactic-spacing-2x, 8px) - 1px);
|
|
225
|
+
margin-left: var(--intergalactic-spacing-05x, 2px);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
SText[ellipsis] {
|
|
231
|
+
overflow: hidden;
|
|
232
|
+
text-overflow: ellipsis;
|
|
233
|
+
white-space: pre;
|
|
234
|
+
display: inline-block;
|
|
235
|
+
line-height: unset;
|
|
236
|
+
vertical-align: top;
|
|
237
|
+
|
|
238
|
+
&[trim='end'][isEllipsized]::after {
|
|
239
|
+
content: '';
|
|
240
|
+
display: block;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
&[maxLine] {
|
|
244
|
+
-webkit-line-clamp: var(--maxLine);
|
|
245
|
+
display: -webkit-box;
|
|
246
|
+
-webkit-box-orient: vertical;
|
|
247
|
+
white-space: normal;
|
|
248
|
+
overflow-wrap: break-word;
|
|
249
|
+
}
|
|
250
|
+
&[trim='middle'] {
|
|
251
|
+
text-overflow: unset;
|
|
252
|
+
}
|
|
4
253
|
}
|
|
5
254
|
|
|
6
255
|
SText[size='100'] {
|
|
7
256
|
font-size: var(--intergalactic-fs-100, 12px);
|
|
8
257
|
line-height: var(--intergalactic-lh-100, 133%);
|
|
258
|
+
|
|
259
|
+
&[formatTags] {
|
|
260
|
+
& p,
|
|
261
|
+
& li {
|
|
262
|
+
font-size: var(--intergalactic-fs-100, 12px);
|
|
263
|
+
line-height: var(--intergalactic-lh-100, 133%);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
& p {
|
|
267
|
+
margin: 0 0 calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px)) 0;
|
|
268
|
+
|
|
269
|
+
&:last-child {
|
|
270
|
+
margin-bottom: 0;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
& li {
|
|
275
|
+
padding-left: calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px));
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
& ol ol li {
|
|
279
|
+
padding-left: calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px));
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
& ol ol ol li {
|
|
283
|
+
padding-left: calc(var(--intergalactic-spacing-8x, 32px) + var(--intergalactic-spacing-1x, 4px) + var(--intergalactic-spacing-05x, 2px));
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
& ul li:before {
|
|
287
|
+
width: 3px;
|
|
288
|
+
height: 3px;
|
|
289
|
+
border-radius: 50%;
|
|
290
|
+
margin-top: var(--intergalactic-spacing-2x, 8px);
|
|
291
|
+
margin-left: var(--intergalactic-spacing-05x, 2px);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
9
294
|
}
|
|
10
295
|
|
|
11
296
|
SText[size='200'] {
|
|
12
297
|
font-size: var(--intergalactic-fs-200, 14px);
|
|
13
298
|
line-height: var(--intergalactic-lh-200, 142%);
|
|
299
|
+
|
|
300
|
+
&[formatTags] {
|
|
301
|
+
& p,
|
|
302
|
+
& li {
|
|
303
|
+
font-size: var(--intergalactic-fs-200, 14px);
|
|
304
|
+
line-height: var(--intergalactic-lh-200, 142%);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
& p {
|
|
308
|
+
margin: 0 0 var(--intergalactic-spacing-3x, 12px) 0;
|
|
309
|
+
|
|
310
|
+
&:last-child {
|
|
311
|
+
margin-bottom: 0;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
& li {
|
|
316
|
+
padding-left: calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px));
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
& ol ol li {
|
|
320
|
+
padding-left: calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px));
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
& ol ol ol li {
|
|
324
|
+
padding-left: calc(var(--intergalactic-spacing-8x, 32px) + var(--intergalactic-spacing-1x, 4px) + var(--intergalactic-spacing-05x, 2px));
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
& ul li:before {
|
|
328
|
+
width: 4px;
|
|
329
|
+
height: 4px;
|
|
330
|
+
border-radius: 50%;
|
|
331
|
+
/* disable-tokens-validator */
|
|
332
|
+
margin-top: calc(var(--intergalactic-spacing-2x, 8px) - 1px);
|
|
333
|
+
margin-left: var(--intergalactic-spacing-05x, 2px);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
14
336
|
}
|
|
15
337
|
|
|
16
338
|
SText[size='300'] {
|
|
17
339
|
font-size: var(--intergalactic-fs-300, 16px);
|
|
18
340
|
line-height: var(--intergalactic-lh-300, 150%);
|
|
341
|
+
|
|
342
|
+
&[formatTags] {
|
|
343
|
+
& p,
|
|
344
|
+
& li {
|
|
345
|
+
font-size: var(--intergalactic-fs-300, 16px);
|
|
346
|
+
line-height: var(--intergalactic-lh-300, 150%);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
& p {
|
|
350
|
+
margin: 0 0 var(--intergalactic-spacing-4x, 16px) 0;
|
|
351
|
+
|
|
352
|
+
&:last-child {
|
|
353
|
+
margin-bottom: 0;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
& li {
|
|
358
|
+
padding-left: calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px));
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
& ol ol li {
|
|
362
|
+
padding-left: calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px));
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
& ol ol ol li {
|
|
366
|
+
padding-left: calc(var(--intergalactic-spacing-8x, 32px) + var(--intergalactic-spacing-1x, 4px) + var(--intergalactic-spacing-05x, 2px));
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
& ul li:before {
|
|
370
|
+
width: 5px;
|
|
371
|
+
height: 5px;
|
|
372
|
+
border-radius: 50%;
|
|
373
|
+
margin-top: calc(var(--intergalactic-spacing-2x, 8px) + var(--intergalactic-spacing-05x, 2px));
|
|
374
|
+
margin-left: var(--intergalactic-spacing-05x, 2px);
|
|
375
|
+
}
|
|
376
|
+
}
|
|
19
377
|
}
|
|
20
378
|
|
|
21
379
|
SText[size='400'] {
|
|
@@ -106,13 +464,21 @@ SText[textAlign] {
|
|
|
106
464
|
}
|
|
107
465
|
|
|
108
466
|
SText[use='primary'] {
|
|
109
|
-
color: var(--intergalactic-text-primary,
|
|
467
|
+
color: var(--intergalactic-text-primary, oklch(0.1 0.03 137 / 0.899));
|
|
110
468
|
}
|
|
111
469
|
|
|
112
470
|
SText[use='secondary'] {
|
|
113
|
-
color: var(--intergalactic-text-secondary,
|
|
471
|
+
color: var(--intergalactic-text-secondary, oklch(0.088 0.026 147.7 / 0.583));
|
|
114
472
|
}
|
|
115
473
|
|
|
116
474
|
SText[disabled] {
|
|
117
|
-
opacity: var(--intergalactic-disabled-opacity, 0.
|
|
118
|
-
}
|
|
475
|
+
opacity: var(--intergalactic-disabled-opacity, 0.4);
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
@media (prefers-reduced-motion) {
|
|
479
|
+
SText {
|
|
480
|
+
& a {
|
|
481
|
+
transition: none;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import { sstyled, assignProps, createBaseComponent } from "@semcore/core";
|
|
3
|
+
import { Box } from "@semcore/base-components";
|
|
4
|
+
import isNode from "@semcore/core/lib/utils/isNode";
|
|
5
|
+
import React from "react";
|
|
6
|
+
/*!__reshadow-styles__:"../../style/blockquote.shadow.css"*/
|
|
7
|
+
var styles = (
|
|
8
|
+
/*__reshadow_css_start__*/
|
|
9
|
+
(sstyled.insert(
|
|
10
|
+
/*__inner_css_start__*/
|
|
11
|
+
'.___SBlockquote_18p09_gg_{position:relative;display:flex;font-style:italic;font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%);color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899))}.___SDoubleQuotation_18p09_gg_{position:relative;margin-right:var(--intergalactic-spacing-5x, 20px);font-family:"Times New Roman",serif;font-style:normal;font-size:68px;line-height:52px;color:var(--intergalactic-text-large-secondary, rgba(0, 3, 0, 0.583))}@supports (color:color(display-p3 0 0 0%)){.___SDoubleQuotation_18p09_gg_{color:var(--intergalactic-text-large-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SDoubleQuotation_18p09_gg_{color:var(--intergalactic-text-large-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}.___SAuthor_18p09_gg_{display:block;margin-top:var(--intergalactic-spacing-4x, 16px);color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));font-style:normal;font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}@supports (color:color(display-p3 0 0 0%)){.___SAuthor_18p09_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SAuthor_18p09_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}',
|
|
12
|
+
/*__inner_css_end__*/
|
|
13
|
+
"18p09_gg_"
|
|
14
|
+
), /*__reshadow_css_end__*/
|
|
15
|
+
{
|
|
16
|
+
"__SBlockquote": "___SBlockquote_18p09_gg_",
|
|
17
|
+
"__SDoubleQuotation": "___SDoubleQuotation_18p09_gg_",
|
|
18
|
+
"__SAuthor": "___SAuthor_18p09_gg_"
|
|
19
|
+
})
|
|
20
|
+
);
|
|
21
|
+
function BlockquoteRoot(props, ref) {
|
|
22
|
+
var _ref = arguments[0], _ref2;
|
|
23
|
+
var SBlockquote = Box;
|
|
24
|
+
var SDoubleQuotation = "span";
|
|
25
|
+
var SAuthor = "cite";
|
|
26
|
+
var author = props.author, children = props.children;
|
|
27
|
+
return _ref2 = sstyled(styles), /* @__PURE__ */ React.createElement(SBlockquote, _ref2.cn("SBlockquote", _objectSpread({}, assignProps({
|
|
28
|
+
"tag": "blockquote",
|
|
29
|
+
"ref": ref
|
|
30
|
+
}, _ref))), /* @__PURE__ */ React.createElement(SDoubleQuotation, _ref2.cn("SDoubleQuotation", {}), "“"), /* @__PURE__ */ React.createElement("span", _ref2.cn("span", {}), children, isNode(author) && /* @__PURE__ */ React.createElement(SAuthor, _ref2.cn("SAuthor", {}), author)));
|
|
31
|
+
}
|
|
32
|
+
BlockquoteRoot.displayName = "Blockquote";
|
|
33
|
+
var Blockquote = createBaseComponent(BlockquoteRoot);
|
|
34
|
+
export {
|
|
35
|
+
Blockquote as default
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,40 +1,38 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
+
import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
4
5
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
-
import { sstyled } from "@semcore/
|
|
8
|
-
import
|
|
7
|
+
import { sstyled, assignProps, Component, createComponent } from "@semcore/core";
|
|
8
|
+
import { Flex } from "@semcore/base-components";
|
|
9
|
+
import { isAdvanceMode } from "@semcore/core/lib/utils/findComponent";
|
|
10
|
+
import isNode from "@semcore/core/lib/utils/isNode";
|
|
9
11
|
import React from "react";
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
import { isAdvanceMode } from "@semcore/utils/lib/findComponent";
|
|
13
|
-
import Text from "./Text.mjs";
|
|
14
|
-
/*!__reshadow-styles__:"./style/list.shadow.css"*/
|
|
12
|
+
import Text from "../Text/Text.mjs";
|
|
13
|
+
/*!__reshadow-styles__:"../../style/list.shadow.css"*/
|
|
15
14
|
var style = (
|
|
16
15
|
/*__reshadow_css_start__*/
|
|
17
16
|
(sstyled.insert(
|
|
18
17
|
/*__inner_css_start__*/
|
|
19
|
-
".
|
|
18
|
+
".___SList_13mha_gg_{padding:0;margin:0;list-style-type:none}.___SContent_13mha_gg_{overflow:inherit;text-overflow:inherit}.___SItem_13mha_gg_+.___SItem_13mha_gg_,.___SList_13mha_gg_ .___SList_13mha_gg_{margin-top:var(--intergalactic-spacing-2x, 8px)}.___SItem_13mha_gg_{display:flex}.___SMarker_13mha_gg_{margin-right:var(--intergalactic-spacing-2x, 8px);color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583));line-height:normal}@supports (color:color(display-p3 0 0 0%)){.___SMarker_13mha_gg_{color:var(--intergalactic-text-secondary, rgba(0, 3, 0, 0.583))}@media (color-gamut:p3){.___SMarker_13mha_gg_{color:var(--intergalactic-text-secondary, color(display-p3 0.00228 0.01289 0.00252 / 0.583))}}}",
|
|
20
19
|
/*__inner_css_end__*/
|
|
21
|
-
"
|
|
20
|
+
"13mha_gg_"
|
|
22
21
|
), /*__reshadow_css_end__*/
|
|
23
22
|
{
|
|
24
|
-
"__SList": "
|
|
25
|
-
"__SContent": "
|
|
26
|
-
"__SItem": "
|
|
27
|
-
"__SMarker": "
|
|
23
|
+
"__SList": "___SList_13mha_gg_",
|
|
24
|
+
"__SContent": "___SContent_13mha_gg_",
|
|
25
|
+
"__SItem": "___SItem_13mha_gg_",
|
|
26
|
+
"__SMarker": "___SMarker_13mha_gg_"
|
|
28
27
|
})
|
|
29
28
|
);
|
|
30
|
-
var ListRoot = /* @__PURE__ */ function(_Component) {
|
|
31
|
-
_inherits(ListRoot2, _Component);
|
|
32
|
-
var _super = _createSuper(ListRoot2);
|
|
29
|
+
var ListRoot = /* @__PURE__ */ (function(_Component) {
|
|
33
30
|
function ListRoot2() {
|
|
34
31
|
_classCallCheck(this, ListRoot2);
|
|
35
|
-
return
|
|
32
|
+
return _callSuper(this, ListRoot2, arguments);
|
|
36
33
|
}
|
|
37
|
-
|
|
34
|
+
_inherits(ListRoot2, _Component);
|
|
35
|
+
return _createClass(ListRoot2, [{
|
|
38
36
|
key: "getItemProps",
|
|
39
37
|
value: function getItemProps() {
|
|
40
38
|
var marker = this.asProps.marker;
|
|
@@ -48,52 +46,47 @@ var ListRoot = /* @__PURE__ */ function(_Component) {
|
|
|
48
46
|
var _ref = this.asProps, _ref4;
|
|
49
47
|
var SList = Text;
|
|
50
48
|
var styles = this.asProps.styles;
|
|
51
|
-
return _ref4 = sstyled
|
|
52
|
-
"tag": "ul"
|
|
53
|
-
"role": "list"
|
|
49
|
+
return _ref4 = sstyled(styles), /* @__PURE__ */ React.createElement(SList, _ref4.cn("SList", _objectSpread({}, assignProps({
|
|
50
|
+
"tag": "ul"
|
|
54
51
|
}, _ref))));
|
|
55
52
|
}
|
|
56
53
|
}]);
|
|
57
|
-
|
|
58
|
-
}(Component);
|
|
54
|
+
})(Component);
|
|
59
55
|
_defineProperty(ListRoot, "displayName", "List");
|
|
60
56
|
_defineProperty(ListRoot, "style", style);
|
|
61
57
|
_defineProperty(ListRoot, "defaultProps", {
|
|
62
58
|
marker: "•"
|
|
63
59
|
});
|
|
64
|
-
var ItemRoot = /* @__PURE__ */ function(_Component2) {
|
|
65
|
-
_inherits(ItemRoot2, _Component2);
|
|
66
|
-
var _super2 = _createSuper(ItemRoot2);
|
|
60
|
+
var ItemRoot = /* @__PURE__ */ (function(_Component2) {
|
|
67
61
|
function ItemRoot2() {
|
|
68
62
|
_classCallCheck(this, ItemRoot2);
|
|
69
|
-
return
|
|
63
|
+
return _callSuper(this, ItemRoot2, arguments);
|
|
70
64
|
}
|
|
71
|
-
|
|
65
|
+
_inherits(ItemRoot2, _Component2);
|
|
66
|
+
return _createClass(ItemRoot2, [{
|
|
72
67
|
key: "render",
|
|
73
68
|
value: function render() {
|
|
74
69
|
var _ref2 = this.asProps, _ref5;
|
|
75
70
|
var SItem = Text;
|
|
76
|
-
var _this$asProps = this.asProps, styles = _this$asProps.styles,
|
|
71
|
+
var _this$asProps = this.asProps, styles = _this$asProps.styles, markerNode = _this$asProps.marker, Children = _this$asProps.Children;
|
|
77
72
|
var SMarker = "span";
|
|
78
73
|
var SContent = "div";
|
|
79
74
|
var isAdvancedMode = isAdvanceMode(Children, [List.Item.Content.displayName]);
|
|
80
|
-
return _ref5 = sstyled
|
|
81
|
-
"tag": "li"
|
|
82
|
-
"role": "listitem"
|
|
75
|
+
return _ref5 = sstyled(styles), /* @__PURE__ */ React.createElement(SItem, _ref5.cn("SItem", _objectSpread({}, assignProps({
|
|
76
|
+
"tag": "li"
|
|
83
77
|
}, _ref2))), isNode(markerNode) && /* @__PURE__ */ React.createElement(SMarker, _ref5.cn("SMarker", {
|
|
84
78
|
"aria-hidden": "true"
|
|
85
|
-
}), markerNode), isAdvancedMode ? /* @__PURE__ */ React.createElement(Children, _ref5.cn("Children", {})) : /* @__PURE__ */ React.createElement(SContent, _ref5.cn("SContent", {}),
|
|
79
|
+
}), markerNode), isAdvancedMode ? /* @__PURE__ */ React.createElement(Children, _ref5.cn("Children", {})) : /* @__PURE__ */ React.createElement(SContent, _ref5.cn("SContent", {}), /* @__PURE__ */ React.createElement(Children, _ref5.cn("Children", {}))));
|
|
86
80
|
}
|
|
87
81
|
}]);
|
|
88
|
-
|
|
89
|
-
}(Component);
|
|
82
|
+
})(Component);
|
|
90
83
|
_defineProperty(ItemRoot, "style", style);
|
|
91
84
|
_defineProperty(ItemRoot, "displayName", "Item");
|
|
92
85
|
function Content(props) {
|
|
93
86
|
var _ref3 = arguments[0], _ref6;
|
|
94
87
|
var styles = props.styles, children = props.children;
|
|
95
88
|
var SContent = Flex;
|
|
96
|
-
return _ref6 = sstyled
|
|
89
|
+
return _ref6 = sstyled(styles), /* @__PURE__ */ React.createElement(SContent, _ref6.cn("SContent", _objectSpread({}, assignProps({}, _ref3))), children);
|
|
97
90
|
}
|
|
98
91
|
Content.displayName = "Content";
|
|
99
92
|
var Item = createComponent(ItemRoot, {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|