@salesforcedevs/arch-components 1.20.17-alpha8 → 1.25.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/LICENSE +12 -0
- package/lwc.config.json +42 -3
- package/package.json +36 -46
- package/src/assets/css/arch-variables.css +512 -0
- package/src/modules/arch/badge/badge.css +22 -0
- package/src/modules/arch/badge/badge.html +5 -0
- package/src/modules/arch/badge/badge.ts +9 -0
- package/src/modules/arch/button/button.css +1 -0
- package/src/modules/arch/button/button.html +20 -0
- package/src/modules/arch/button/button.ts +67 -0
- package/src/modules/arch/buttonLink/buttonLink.css +1 -0
- package/src/modules/arch/buttonLink/buttonLink.html +19 -0
- package/src/modules/arch/buttonLink/buttonLink.stories.js +34 -0
- package/src/modules/arch/buttonLink/buttonLink.ts +8 -0
- package/src/modules/arch/buttonStyles/buttonStyles.css +220 -0
- package/src/modules/arch/card/card.css +128 -0
- package/src/modules/arch/card/card.html +85 -0
- package/src/modules/arch/card/card.ts +277 -0
- package/src/modules/arch/cardBase/cardBase.css +11 -0
- package/src/modules/arch/cardBase/cardBase.html +2 -0
- package/src/modules/arch/cardGridA/cardGridA.css +11 -0
- package/src/modules/arch/cardGridA/cardGridA.html +21 -0
- package/src/modules/arch/cardGridA/cardGridA.stories.js +118 -0
- package/src/modules/arch/cardGridA/cardGridA.ts +24 -0
- package/src/modules/arch/cardGridC/cardGridC.css +24 -0
- package/src/modules/arch/cardGridC/cardGridC.html +22 -0
- package/src/modules/arch/cardGridC/cardGridC.stories.js +51 -0
- package/src/modules/arch/cardGridC/cardGridC.ts +11 -0
- package/src/modules/arch/cardGridD/cardGridD.css +17 -0
- package/src/modules/arch/cardGridD/cardGridD.html +20 -0
- package/src/modules/arch/cardGridD/cardGridD.stories.js +43 -0
- package/src/modules/arch/cardGridD/cardGridD.ts +7 -0
- package/src/modules/arch/cardNew/cardNew.css +31 -0
- package/src/modules/arch/cardNew/cardNew.html +32 -0
- package/src/modules/arch/cardNew/cardNew.ts +66 -0
- package/src/modules/arch/children/children.html +2 -0
- package/src/modules/arch/children/children.ts +31 -0
- package/src/modules/arch/color/color.ts +59 -0
- package/src/modules/arch/content/__fixtures__/index.ts +884 -0
- package/src/modules/arch/content/content.css +643 -0
- package/src/modules/arch/content/content.html +65 -0
- package/src/modules/arch/content/content.stories.js +21 -0
- package/src/modules/arch/content/content.ts +169 -0
- package/src/modules/arch/contentIcon/contentIcon.css +48 -0
- package/src/modules/arch/contentIcon/contentIcon.html +15 -0
- package/src/modules/arch/contentIcon/contentIcon.stories.js +130 -0
- package/src/modules/arch/contentIcon/contentIcon.ts +68 -0
- package/src/{common → modules/arch}/context/context.ts +21 -19
- package/src/modules/arch/contextAdapter/constants.ts +1 -0
- package/src/modules/arch/contextAdapter/contextAdapter.ts +54 -0
- package/src/modules/arch/debounce/debounce.ts +32 -0
- package/src/modules/arch/dialog/dialog.ts +154 -0
- package/src/modules/arch/dialogStyles/dialogStyles.css +90 -0
- package/src/modules/arch/effectAdapter/effectAdapter.html +1 -0
- package/src/modules/arch/effectAdapter/effectAdapter.ts +28 -0
- package/src/modules/arch/explorer/explorer.css +301 -0
- package/src/modules/arch/explorer/explorer.html +418 -0
- package/src/modules/arch/explorer/explorer.ts +718 -0
- package/src/modules/arch/explorer/types.d.ts +60 -0
- package/src/modules/arch/fetch/fetch.ts +55 -0
- package/src/modules/arch/footerMfe/footerMfe.html +3 -0
- package/src/modules/arch/footerMfe/footerMfe.ts +19 -0
- package/src/modules/arch/gallery/gallery.css +365 -0
- package/src/modules/arch/gallery/gallery.html +71 -0
- package/src/modules/arch/gallery/gallery.ts +366 -0
- package/src/modules/arch/gallery/types.d.ts +35 -0
- package/src/modules/arch/heading/heading.css +1 -0
- package/src/modules/arch/heading/heading.html +9 -0
- package/src/modules/arch/heading/heading.ts +36 -0
- package/src/modules/arch/helpers/helpers.ts +141 -0
- package/src/modules/arch/heroA/heroA.css +116 -0
- package/src/modules/arch/heroA/heroA.html +28 -0
- package/src/modules/arch/heroA/heroA.stories.js +60 -0
- package/src/modules/arch/heroA/heroA.ts +53 -0
- package/src/modules/arch/heroB/heroB.css +79 -0
- package/src/modules/arch/heroB/heroB.html +27 -0
- package/src/modules/arch/heroB/heroB.stories.js +55 -0
- package/src/modules/arch/heroB/heroB.ts +26 -0
- package/src/modules/arch/i18n/i18n.ts +78 -0
- package/src/modules/arch/icon/icon.css +28 -0
- package/src/modules/arch/icon/icon.html +17 -0
- package/src/modules/arch/icon/icon.stories.js +26 -0
- package/src/modules/arch/icon/icon.ts +92 -0
- package/src/modules/arch/instrumentation/instrumentation.css +1 -0
- package/src/modules/arch/instrumentation/instrumentation.html +1 -0
- package/src/modules/arch/instrumentation/instrumentation.ts +113 -0
- package/src/modules/arch/labels/helpers.ts +25 -0
- package/src/modules/arch/labels/pointHelpers.ts +47 -0
- package/src/modules/arch/labels/timeHelpers.ts +182 -0
- package/src/modules/arch/labels/types.d.ts +5 -0
- package/src/modules/arch/logger/logger.ts +33 -0
- package/src/modules/arch/menu/menu.ts +260 -0
- package/src/modules/arch/overflow/overflow.ts +71 -0
- package/src/modules/arch/page/page.css +3 -0
- package/src/modules/arch/page/page.html +3 -0
- package/src/modules/arch/page/page.stories.js +19 -0
- package/src/modules/arch/page/page.ts +3 -0
- package/src/modules/arch/pageHeaderA/pageHeaderA.css +82 -0
- package/src/modules/arch/pageHeaderA/pageHeaderA.html +24 -0
- package/src/modules/arch/pageHeaderA/pageHeaderA.stories.js +25 -0
- package/src/modules/arch/pageHeaderA/pageHeaderA.ts +51 -0
- package/src/modules/arch/pill/pill.css +70 -0
- package/src/modules/arch/pill/pill.html +17 -0
- package/src/modules/arch/pill/pill.ts +34 -0
- package/src/modules/arch/polling-request.ts +97 -0
- package/src/modules/arch/reflectedElement/reflectedElement.html +2 -0
- package/src/{common → modules/arch}/reflectedElement/reflectedElement.ts +5 -3
- package/src/modules/arch/reset/reset.css +39 -0
- package/src/modules/arch/searchList/searchList.css +120 -0
- package/src/modules/arch/searchList/searchList.html +46 -0
- package/src/modules/arch/searchList/searchList.ts +53 -0
- package/src/modules/arch/sectionA/sectionA.css +64 -0
- package/src/modules/arch/sectionA/sectionA.html +21 -0
- package/src/modules/arch/sectionA/sectionA.stories.js +25 -0
- package/src/modules/arch/sectionA/sectionA.ts +27 -0
- package/src/modules/arch/select/select.css +40 -0
- package/src/modules/arch/select/select.html +24 -0
- package/src/modules/arch/select/select.ts +64 -0
- package/src/modules/arch/socialShare/socialShare.css +50 -0
- package/src/modules/arch/socialShare/socialShare.html +56 -0
- package/src/modules/arch/socialShare/socialShare.ts +29 -0
- package/src/modules/arch/spinner/spinner.css +195 -0
- package/src/modules/arch/spinner/spinner.html +9 -0
- package/src/modules/arch/spinner/spinner.ts +15 -0
- package/src/modules/arch/styles/styles.css +24 -0
- package/src/modules/arch/summary/summary.css +134 -0
- package/src/modules/arch/summary/summary.html +71 -0
- package/src/modules/arch/summary/summary.stories.js +163 -0
- package/src/modules/arch/summary/summary.ts +96 -0
- package/src/modules/arch/tab/tab.css +3 -0
- package/src/modules/arch/tab/tab.html +5 -0
- package/src/modules/arch/tab/tab.ts +46 -0
- package/src/modules/arch/tabset/tabset.css +112 -0
- package/src/modules/arch/tabset/tabset.html +62 -0
- package/src/modules/arch/tabset/tabset.ts +244 -0
- package/src/modules/arch/testutils.ts +118 -0
- package/src/modules/arch/threeCardGrid/threeCardGrid.css +6 -0
- package/src/modules/arch/threeCardGrid/threeCardGrid.html +5 -0
- package/src/modules/arch/threeCardGrid/threeCardGrid.ts +3 -0
- package/src/modules/arch/track/track.ts +23 -0
- package/src/modules/arch/trailhead.ts +120 -0
- package/src/modules/arch/types.d.ts +1 -0
- package/src/modules/arch/useEffectAttr.ts +16 -0
- package/src/modules/arch/utils/utils.ts +20 -0
- package/src/modules/arch/withState.ts +21 -0
- package/src/modules/arch/xsfMfeEvents/xsfMfeEvents.html +1 -0
- package/src/modules/arch/xsfMfeEvents/xsfMfeEvents.ts +47 -0
- package/src/common/effectAdapter/__tests__/effectAdapter.test.ts +0 -12
- package/src/common/effectAdapter/effectAdapter.ts +0 -18
- package/src/common/reflectedElement/__tests__/modules/test/select/select.html +0 -3
- package/src/common/reflectedElement/__tests__/modules/test/select/select.ts +0 -7
- package/src/common/reflectedElement/__tests__/modules/test/selectTransform/selectTransform.html +0 -3
- package/src/common/reflectedElement/__tests__/modules/test/selectTransform/selectTransform.ts +0 -18
- package/src/common/reflectedElement/__tests__/reflectedElement.test.ts +0 -75
- package/src/common/slot/__tests__/slot.test.ts +0 -96
- package/src/common/slot/slot.ts +0 -20
- /package/src/{common → modules/arch}/context/context.html +0 -0
- /package/src/{common/effectAdapter/effectAdapter.html → modules/arch/contextAdapter/contextAdapter.html} +0 -0
|
@@ -0,0 +1,643 @@
|
|
|
1
|
+
@import "arch/reset";
|
|
2
|
+
|
|
3
|
+
* {
|
|
4
|
+
border: 0;
|
|
5
|
+
vertical-align: baseline;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
article,
|
|
9
|
+
aside,
|
|
10
|
+
details,
|
|
11
|
+
figcaption,
|
|
12
|
+
figure,
|
|
13
|
+
footer,
|
|
14
|
+
header,
|
|
15
|
+
hgroup,
|
|
16
|
+
menu,
|
|
17
|
+
nav,
|
|
18
|
+
section {
|
|
19
|
+
display: block;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
ol,
|
|
23
|
+
ul {
|
|
24
|
+
list-style: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
blockquote,
|
|
28
|
+
q {
|
|
29
|
+
quotes: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
blockquote::before,
|
|
33
|
+
blockquote::after,
|
|
34
|
+
q::before,
|
|
35
|
+
q::after {
|
|
36
|
+
content: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
main table {
|
|
40
|
+
border-collapse: collapse;
|
|
41
|
+
border-spacing: 0;
|
|
42
|
+
display: block;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
main tbody {
|
|
46
|
+
overflow-y: auto;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.root {
|
|
50
|
+
display: grid;
|
|
51
|
+
padding-left: 1rem;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@media screen and (min-width: 800px) {
|
|
55
|
+
.root {
|
|
56
|
+
grid-template-columns: 1fr minmax(300px, 0.25fr);
|
|
57
|
+
grid-gap: calc(var(--arch-spacing-32) + var(--arch-spacing-6));
|
|
58
|
+
justify-content: space-between;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@media screen and (max-width: 800px) {
|
|
63
|
+
aside {
|
|
64
|
+
display: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.root {
|
|
68
|
+
padding-right: 0.5rem;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
main {
|
|
73
|
+
max-width: 800px;
|
|
74
|
+
overflow: hidden;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
aside {
|
|
78
|
+
font-size: var(--arch-font-size-sm);
|
|
79
|
+
align-self: flex-start;
|
|
80
|
+
background-color: var(--arch-color-white);
|
|
81
|
+
border-radius: var(--arch-radius-lg);
|
|
82
|
+
box-shadow: var(--arch-shadow-sm);
|
|
83
|
+
position: sticky;
|
|
84
|
+
padding: var(--arch-spacing-5);
|
|
85
|
+
top: calc(
|
|
86
|
+
var(--dx-g-global-header-height) + 3px
|
|
87
|
+
); /* The 3px is to account for the shadow */
|
|
88
|
+
|
|
89
|
+
line-height: var(--arch-line-height-normal);
|
|
90
|
+
max-height: calc(94vh - var(--dx-g-global-header-height) - 3px);
|
|
91
|
+
overflow: auto;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
aside a {
|
|
95
|
+
display: block;
|
|
96
|
+
text-decoration: none;
|
|
97
|
+
color: var(--arch-color-meteorite);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
aside a:hover {
|
|
101
|
+
display: block;
|
|
102
|
+
color: var(--arch-color-brand);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
main h2 {
|
|
106
|
+
font-size: var(--arch-font-size-2xl);
|
|
107
|
+
margin-bottom: var(--arch-spacing-4);
|
|
108
|
+
margin-top: var(--arch-spacing-12);
|
|
109
|
+
font-weight: bold;
|
|
110
|
+
text-transform: capitalize;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
main h2:first-child {
|
|
114
|
+
margin-top: 0;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
main h2 .default-text-transform {
|
|
118
|
+
text-transform: initial;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
main h3,
|
|
122
|
+
main h4,
|
|
123
|
+
main h5,
|
|
124
|
+
main h6 {
|
|
125
|
+
font-size: var(--arch-font-size-xl);
|
|
126
|
+
font-weight: bold;
|
|
127
|
+
margin-bottom: var(--arch-spacing-4);
|
|
128
|
+
margin-top: var(--arch-spacing-10);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
main p {
|
|
132
|
+
color: var(--arch-color-black);
|
|
133
|
+
margin-top: 0;
|
|
134
|
+
margin-bottom: var(--arch-spacing-4);
|
|
135
|
+
line-height: var(--arch-line-height-normal);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
main p,
|
|
139
|
+
main li,
|
|
140
|
+
main dl {
|
|
141
|
+
font-size: 1.0625rem; /* 17px Special */
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
main i {
|
|
145
|
+
margin-right: var(--arch-spacing-2);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
main a,
|
|
149
|
+
main a:visited {
|
|
150
|
+
color: var(--arch-color-brand);
|
|
151
|
+
text-decoration: none;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
main a:hover {
|
|
155
|
+
text-decoration: underline;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
main strong,
|
|
159
|
+
b {
|
|
160
|
+
font-weight: bold;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
main em,
|
|
164
|
+
i {
|
|
165
|
+
font-style: italic;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
dfn {
|
|
169
|
+
font-weight: bold;
|
|
170
|
+
font-style: italic;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
main pre {
|
|
174
|
+
background-color: var(--arch-color-sand);
|
|
175
|
+
border-radius: var(--arch-radius-lg);
|
|
176
|
+
margin-bottom: var(--arch-spacing-4);
|
|
177
|
+
overflow-x: auto;
|
|
178
|
+
padding: var(--arch-spacing-4);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
main pre code,
|
|
182
|
+
main pre samp,
|
|
183
|
+
main pre kbd,
|
|
184
|
+
main pre var {
|
|
185
|
+
font-size: var(--arch-font-size-md);
|
|
186
|
+
color: var(--arch-color-meteorite);
|
|
187
|
+
background-color: transparent;
|
|
188
|
+
box-shadow: none;
|
|
189
|
+
font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
main code {
|
|
193
|
+
font-size: var(--arch-font-size-md);
|
|
194
|
+
padding: var(--arch-spacing-1);
|
|
195
|
+
color: #0061b6;
|
|
196
|
+
background-color: #d9ecfe;
|
|
197
|
+
font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
|
|
198
|
+
border-radius: var(--arch-radius-md);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
main samp {
|
|
202
|
+
font-size: var(--arch-font-size-md);
|
|
203
|
+
padding: var(--arch-spacing-1);
|
|
204
|
+
background-color: #fff;
|
|
205
|
+
font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
|
|
206
|
+
border-radius: var(--arch-radius-md);
|
|
207
|
+
box-shadow: var(--arch-shadow-sm);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
main var {
|
|
211
|
+
font-size: var(--arch-font-size-md);
|
|
212
|
+
padding: var(--arch-spacing-1);
|
|
213
|
+
color: #5a0675;
|
|
214
|
+
background-color: #ebe9f9;
|
|
215
|
+
font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
|
|
216
|
+
border-radius: var(--arch-radius-md);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
main kbd {
|
|
220
|
+
font-size: var(--arch-font-size-md);
|
|
221
|
+
padding: var(--arch-spacing-1);
|
|
222
|
+
color: var(--arch-color-black);
|
|
223
|
+
font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
|
|
224
|
+
border-radius: var(--arch-radius-md);
|
|
225
|
+
background-color: var(--arch-color-sand);
|
|
226
|
+
border: 1px solid var(--arch-color-fog);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
main mark {
|
|
230
|
+
background-color: #ff0;
|
|
231
|
+
font-weight: bold;
|
|
232
|
+
padding: var(--arch-spacing-1);
|
|
233
|
+
border-radius: var(--arch-radius-md);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
main ins {
|
|
237
|
+
font-weight: bold;
|
|
238
|
+
padding: var(--arch-spacing-1);
|
|
239
|
+
color: #067568;
|
|
240
|
+
background-color: #e9f9f3;
|
|
241
|
+
border-radius: var(--arch-radius-md);
|
|
242
|
+
text-decoration: none;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
main abbr,
|
|
246
|
+
main acronym {
|
|
247
|
+
text-decoration: none;
|
|
248
|
+
font-variant: none;
|
|
249
|
+
border-bottom: dotted 2px var(--arch-color-ocean);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
main abbr:hover,
|
|
253
|
+
main acronym:hover {
|
|
254
|
+
border-bottom: solid 2px var(--arch-color-ocean);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
main u {
|
|
258
|
+
text-decoration: var(--arch-color-brand) wavy underline;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
main tt {
|
|
262
|
+
background: linear-gradient(
|
|
263
|
+
90deg,
|
|
264
|
+
rgb(255 71 52) 0%,
|
|
265
|
+
rgb(182 53 255) 25%,
|
|
266
|
+
rgb(37 154 255) 50%,
|
|
267
|
+
rgb(0 216 216) 75%,
|
|
268
|
+
rgb(28 249 45) 100%
|
|
269
|
+
);
|
|
270
|
+
font-weight: bold;
|
|
271
|
+
border-radius: var(--arch-radius-md);
|
|
272
|
+
padding: var(--arch-spacing-1);
|
|
273
|
+
color: var(--arch-color-white);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
sup {
|
|
277
|
+
vertical-align: super;
|
|
278
|
+
line-height: var(--arch-line-height-none);
|
|
279
|
+
font-size: var(--arch-font-size-xs);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
sub {
|
|
283
|
+
vertical-align: sub;
|
|
284
|
+
line-height: var(--arch-line-height-none);
|
|
285
|
+
font-size: var(--arch-font-size-xs);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
main small {
|
|
289
|
+
font-size: var(--arch-font-size-xs);
|
|
290
|
+
font-style: italic;
|
|
291
|
+
color: var(--arch-color-meteorite);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
main blockquote,
|
|
295
|
+
main q {
|
|
296
|
+
font-style: italic;
|
|
297
|
+
font-size: var(--arch-font-size-xl);
|
|
298
|
+
margin-top: var(--arch-spacing-6);
|
|
299
|
+
line-height: var(--arch-line-height-normal);
|
|
300
|
+
margin-bottom: var(--arch-spacing-6);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
main blockquote {
|
|
304
|
+
border-left: 4px solid var(--arch-color-architect-light);
|
|
305
|
+
padding-left: var(--arch-spacing-8);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
main q {
|
|
309
|
+
position: relative;
|
|
310
|
+
display: block;
|
|
311
|
+
padding-left: var(--arch-spacing-10);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
main q::before {
|
|
315
|
+
content: "“";
|
|
316
|
+
color: var(--arch-color-architect-light);
|
|
317
|
+
font-size: 5rem;
|
|
318
|
+
display: block;
|
|
319
|
+
position: absolute;
|
|
320
|
+
left: -8px;
|
|
321
|
+
line-height: var(--arch-line-height-none);
|
|
322
|
+
top: 30px;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
cite {
|
|
326
|
+
display: block;
|
|
327
|
+
font-size: var(--arch-font-size-md);
|
|
328
|
+
margin-top: var(--arch-spacing-2);
|
|
329
|
+
color: var(--arch-color-meteorite);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
main ul,
|
|
333
|
+
main ol,
|
|
334
|
+
main dl {
|
|
335
|
+
line-height: var(--arch-line-height-normal);
|
|
336
|
+
margin-top: var(--arch-spacing-0);
|
|
337
|
+
margin-bottom: var(--arch-spacing-4);
|
|
338
|
+
margin-left: var(--arch-spacing-10);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
main ul li {
|
|
342
|
+
list-style-type: disc;
|
|
343
|
+
margin-top: var(--arch-spacing-0);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
main ul ul li {
|
|
347
|
+
list-style-type: circle;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
main ul ul ul li {
|
|
351
|
+
list-style-type: square;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
main ol li {
|
|
355
|
+
list-style-type: decimal;
|
|
356
|
+
margin-top: var(--arch-spacing-1);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
main ol ol li {
|
|
360
|
+
list-style-type: lower-latin;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
main ol ol ol li {
|
|
364
|
+
list-style-type: lower-roman;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
main ol ol ol ol li {
|
|
368
|
+
list-style-type: decimal;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
main ol ol ol ol ol li {
|
|
372
|
+
list-style-type: lower-latin;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
main ol ul li {
|
|
376
|
+
list-style-type: disc;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
main ol ul ol li {
|
|
380
|
+
list-style-type: lower-latin;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
main ol ul ol ul li {
|
|
384
|
+
list-style-type: square;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
main ul ul ul ul li {
|
|
388
|
+
list-style-type: none;
|
|
389
|
+
margin-left: -1rem;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
main ul ul ul ul li::before {
|
|
393
|
+
content: "▫";
|
|
394
|
+
padding-right: var(--arch-spacing-2);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
main ul ul ul ul ul li {
|
|
398
|
+
list-style-type: none;
|
|
399
|
+
margin-left: -1rem;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
main ul ul ul ul ul li::before {
|
|
403
|
+
content: "▶";
|
|
404
|
+
padding-right: var(--arch-spacing-2);
|
|
405
|
+
font-size: 0.5rem;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
main ol ul ol ul ol li {
|
|
409
|
+
list-style-type: none;
|
|
410
|
+
margin-left: -1rem;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
main ol ul ol ul ol li::before {
|
|
414
|
+
content: "▶";
|
|
415
|
+
padding-right: var(--arch-spacing-2);
|
|
416
|
+
font-size: 0.5rem;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
main dl {
|
|
420
|
+
border-left: 4px solid var(--arch-color-sand);
|
|
421
|
+
margin-left: 0;
|
|
422
|
+
padding-left: var(--arch-spacing-8);
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
main dt {
|
|
426
|
+
font-weight: bold;
|
|
427
|
+
margin-top: var(--arch-spacing-4);
|
|
428
|
+
font-style: italic;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
main .table {
|
|
432
|
+
max-width: 100%;
|
|
433
|
+
overflow-x: auto;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
main table:not(:first-of-type) {
|
|
437
|
+
background-color: var(--arch-color-white);
|
|
438
|
+
border: 1px solid var(--arch-color-fog);
|
|
439
|
+
margin-top: var(--arch-spacing-4);
|
|
440
|
+
margin-bottom: var(--arch-spacing-4);
|
|
441
|
+
max-width: 100%;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
main th {
|
|
445
|
+
border: 1px solid var(--arch-color-fog);
|
|
446
|
+
font-weight: bold;
|
|
447
|
+
padding: var(--arch-spacing-3) var(--arch-spacing-4);
|
|
448
|
+
background-color: var(--arch-color-sand);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
main td {
|
|
452
|
+
border: 1px solid var(--arch-color-fog);
|
|
453
|
+
padding: var(--arch-spacing-3) var(--arch-spacing-4);
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
main caption {
|
|
457
|
+
font-size: var(--arch-font-size-xs);
|
|
458
|
+
font-style: italic;
|
|
459
|
+
color: var(--arch-color-meteorite);
|
|
460
|
+
margin-bottom: var(--arch-spacing-4);
|
|
461
|
+
text-align: left;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
main img {
|
|
465
|
+
max-width: 100%;
|
|
466
|
+
height: auto;
|
|
467
|
+
margin-top: var(--arch-spacing-4);
|
|
468
|
+
margin-bottom: var(--arch-spacing-4);
|
|
469
|
+
display: block;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
main figure img {
|
|
473
|
+
margin-bottom: var(--arch-spacing-4);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
main figcaption {
|
|
477
|
+
font-size: var(--arch-font-size-xs);
|
|
478
|
+
font-style: italic;
|
|
479
|
+
color: var(--arch-color-meteorite);
|
|
480
|
+
margin-bottom: var(--arch-spacing-4);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.guide-table-ok {
|
|
484
|
+
background-color: #45c65a;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.guide-table-roadmap {
|
|
488
|
+
background-color: #eef4ff;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.guide-table-no {
|
|
492
|
+
background-color: #fcc003;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.guide-table-delivered {
|
|
496
|
+
background-color: #1b96ff;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.guide-table-red {
|
|
500
|
+
background-color: #ff9b99;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.guide-table a {
|
|
504
|
+
color: #000;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.read {
|
|
508
|
+
font-size: var(--arch-font-size-sm);
|
|
509
|
+
padding-left: 1rem;
|
|
510
|
+
margin-bottom: 1rem;
|
|
511
|
+
display: flex;
|
|
512
|
+
align-items: center;
|
|
513
|
+
color: #3e3e3c;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.read > svg {
|
|
517
|
+
margin-right: 4px;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.scroll {
|
|
521
|
+
position: fixed;
|
|
522
|
+
display: flex;
|
|
523
|
+
justify-content: center;
|
|
524
|
+
align-content: center;
|
|
525
|
+
align-items: center;
|
|
526
|
+
bottom: 20px;
|
|
527
|
+
right: 20px;
|
|
528
|
+
opacity: 0.8;
|
|
529
|
+
background-color: var(--arch-color-architect-light);
|
|
530
|
+
width: 55px;
|
|
531
|
+
height: 55px;
|
|
532
|
+
border-radius: 50%;
|
|
533
|
+
box-shadow: var(--arch-color-brand);
|
|
534
|
+
z-index: 9;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
@media screen and (min-width: 800px) {
|
|
538
|
+
.scroll {
|
|
539
|
+
display: none;
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
@media screen and (max-width: 800px) {
|
|
544
|
+
.scroll {
|
|
545
|
+
display: flex;
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
.scroll svg {
|
|
550
|
+
height: 2rem;
|
|
551
|
+
stroke: var(--arch-color-brand);
|
|
552
|
+
fill: var(--arch-color-brand);
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
.assessment-input {
|
|
556
|
+
margin: 10px 10px 20px;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
.check-col {
|
|
560
|
+
text-align: center;
|
|
561
|
+
vertical-align: middle;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.template-boxes {
|
|
565
|
+
display: flex;
|
|
566
|
+
flex-flow: row wrap; /* Allow buttons to wrap if there isn't enough space */
|
|
567
|
+
justify-content: space-between; /* Ensure even spacing between buttons */
|
|
568
|
+
align-items: center;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
/* Responsive layout - makes a one-column layout instead of a row layout */
|
|
572
|
+
@media (max-width: 800px) {
|
|
573
|
+
.template-boxes {
|
|
574
|
+
flex-direction: column;
|
|
575
|
+
gap: 15px; /* Adds more space between items in a column layout */
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.template-button {
|
|
580
|
+
appearance: button;
|
|
581
|
+
backface-visibility: hidden;
|
|
582
|
+
background-color: #fff;
|
|
583
|
+
border-radius: 6px;
|
|
584
|
+
border-width: 0;
|
|
585
|
+
box-shadow: rgb(50 50 93 / 10%) 0 0 0 1px inset,
|
|
586
|
+
rgb(50 50 93 / 10%) 0 2px 5px 0, rgb(0 0 0 / 7%) 0 1px 1px 0;
|
|
587
|
+
box-sizing: border-box;
|
|
588
|
+
color: #024d4c;
|
|
589
|
+
outline: none;
|
|
590
|
+
padding: 0.5em 1em; /* Adjusted padding for consistency */
|
|
591
|
+
position: relative;
|
|
592
|
+
text-align: center;
|
|
593
|
+
text-transform: none;
|
|
594
|
+
transition: all 0.2s, box-shadow 0.08s ease-in;
|
|
595
|
+
user-select: none;
|
|
596
|
+
touch-action: manipulation;
|
|
597
|
+
vertical-align: middle;
|
|
598
|
+
margin: 5px; /* Adds consistent margin around each button */
|
|
599
|
+
display: inline-flex; /* Flexbox layout for consistent alignment */
|
|
600
|
+
align-items: center; /* Aligns image and text vertically */
|
|
601
|
+
justify-content: center; /* Ensures the content is centered */
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
.template-button:disabled {
|
|
605
|
+
cursor: default;
|
|
606
|
+
opacity: 0.6; /* Give disabled buttons a visual cue */
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
.template-button:focus {
|
|
610
|
+
box-shadow: rgb(50 50 93 / 10%) 0 0 0 1px inset,
|
|
611
|
+
rgb(50 50 93 / 20%) 0 6px 15px 0, rgb(0 0 0 / 10%) 0 2px 2px 0,
|
|
612
|
+
rgb(50 151 211 / 30%) 0 0 0 4px;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
.template-button img {
|
|
616
|
+
width: 20px; /* Fixed width for the image */
|
|
617
|
+
height: 20px; /* Fixed height for the image */
|
|
618
|
+
display: inline-block; /* Ensures the image stays inline with text */
|
|
619
|
+
margin-right: 5px; /* Space between image and text */
|
|
620
|
+
vertical-align: middle; /* Align image vertically with text */
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
.template-button svg {
|
|
624
|
+
width: 20px; /* Fixed width for SVG */
|
|
625
|
+
height: 20px; /* Fixed height for SVG */
|
|
626
|
+
display: inline-block; /* Keeps the SVG inline with text */
|
|
627
|
+
margin-right: 5px; /* Space between SVG and text */
|
|
628
|
+
vertical-align: middle; /* Align SVG vertically with text */
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
.center {
|
|
632
|
+
display: block;
|
|
633
|
+
margin-left: auto;
|
|
634
|
+
margin-right: auto;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
main inlinecode {
|
|
638
|
+
font-size: var(--arch-font-size-md);
|
|
639
|
+
padding: var(--arch-spacing-1);
|
|
640
|
+
background-color: rgb(243 243 243);
|
|
641
|
+
font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
|
|
642
|
+
border-radius: var(--arch-radius-xs);
|
|
643
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="read">
|
|
3
|
+
<svg
|
|
4
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
5
|
+
width="18"
|
|
6
|
+
height="18"
|
|
7
|
+
viewBox="0 0 52 52"
|
|
8
|
+
>
|
|
9
|
+
<g fill="#3e3e3c">
|
|
10
|
+
<path
|
|
11
|
+
d="m26 2c-13.2 0-24 10.8-24 24s10.8 24 24 24 24-10.8 24-24-10.8-24-24-24z m0 42c-9.9 0-18-8.1-18-18s8.1-18 18-18 18 8.1 18 18-8.1 18-18 18z m3.4-17.8c-0.3-0.3-0.4-0.7-0.4-1.1v-9.6c0-0.8-0.7-1.5-1.5-1.5h-3c-0.8 0-1.5 0.7-1.5 1.5v12.1c0 0.4 0.2 0.8 0.4 1.1l7.4 7.4c0.6 0.6 1.5 0.6 2.1 0l2.1-2.1c0.6-0.6 0.6-1.5 0-2.1l-5.6-5.7z"
|
|
12
|
+
></path>
|
|
13
|
+
</g>
|
|
14
|
+
</svg>
|
|
15
|
+
{readingTime} minute read
|
|
16
|
+
</div>
|
|
17
|
+
<div class="read">
|
|
18
|
+
<svg
|
|
19
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
20
|
+
width="16"
|
|
21
|
+
height="16"
|
|
22
|
+
fill="currentColor"
|
|
23
|
+
class="bi bi-calendar3"
|
|
24
|
+
viewBox="0 0 16 16"
|
|
25
|
+
>
|
|
26
|
+
<path
|
|
27
|
+
d="M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM1 3.857C1 3.384 1.448 3 2 3h12c.552 0 1 .384 1 .857v10.286c0 .473-.448.857-1 .857H2c-.552 0-1-.384-1-.857V3.857z"
|
|
28
|
+
></path>
|
|
29
|
+
<path
|
|
30
|
+
d="M6.5 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"
|
|
31
|
+
></path>
|
|
32
|
+
</svg>
|
|
33
|
+
Last updated {lastUpdated}
|
|
34
|
+
</div>
|
|
35
|
+
<div class={rootClassName}>
|
|
36
|
+
<main lwc:dom="manual" onclick={onContentClick}></main>
|
|
37
|
+
<aside if:true={showHeadingsNav}>
|
|
38
|
+
<template iterator:heading={headings}>
|
|
39
|
+
<a
|
|
40
|
+
href={heading.value.href}
|
|
41
|
+
key={heading.value.id}
|
|
42
|
+
onclick={onHeadingClick}
|
|
43
|
+
style={heading.value.style}
|
|
44
|
+
>
|
|
45
|
+
{heading.value.label}
|
|
46
|
+
</a>
|
|
47
|
+
</template>
|
|
48
|
+
</aside>
|
|
49
|
+
<div class="scroll" if:true={showScroll} onclick={onScrollClick}>
|
|
50
|
+
<svg
|
|
51
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
52
|
+
x="0px"
|
|
53
|
+
y="0px"
|
|
54
|
+
viewBox="0 0 1000 1000"
|
|
55
|
+
enable-background="new 0 0 1000 1000"
|
|
56
|
+
>
|
|
57
|
+
<g>
|
|
58
|
+
<path
|
|
59
|
+
d="M990,699.9c0,8.1,0,16.3-8.1,24.4c-16.3,16.3-40.7,16.3-56.9,0L502,350.2L79.1,732.4c-16.3,16.3-40.7,16.3-56.9,0c-16.3-16.3-16.3-40.7,0-56.9l447.3-406.6c24.4-16.3,40.7-16.3,56.9-8.1l447.3,406.6C981.9,675.5,990,691.8,990,699.9z"
|
|
60
|
+
></path>
|
|
61
|
+
</g>
|
|
62
|
+
</svg>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
</template>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { html } from "lit-html";
|
|
2
|
+
|
|
3
|
+
import { ContentExamples } from "./__fixtures__";
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: "arch/arch-content",
|
|
7
|
+
component: "sb-arch-content"
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
// prettier-ignore
|
|
11
|
+
const createStyles = () => html `
|
|
12
|
+
<style>
|
|
13
|
+
sb-arch-content {
|
|
14
|
+
display: block;
|
|
15
|
+
}
|
|
16
|
+
</style>`;
|
|
17
|
+
|
|
18
|
+
// prettier-ignore
|
|
19
|
+
export const Base = () => html` ${createStyles()}
|
|
20
|
+
<sb-arch-content> ${ContentExamples()} </sb-arch-content>
|
|
21
|
+
`;
|