@nldd/design-system 0.8.57 → 0.8.58
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/components/actions/button/button.d.ts +2 -2
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +1 -1
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/button/button.styles.d.ts.map +1 -1
- package/dist/components/actions/button/button.styles.js +83 -0
- package/dist/components/actions/button/button.styles.js.map +1 -1
- package/dist/components/actions/button-bar/button-bar.template.d.ts.map +1 -1
- package/dist/components/actions/button-bar/button-bar.template.js +4 -1
- package/dist/components/actions/button-bar/button-bar.template.js.map +1 -1
- package/dist/components/actions/button-group/button-group.styles.d.ts.map +1 -1
- package/dist/components/actions/button-group/button-group.styles.js +4 -2
- package/dist/components/actions/button-group/button-group.styles.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +2 -2
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +1 -1
- package/dist/components/actions/icon-button/icon-button.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.styles.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.styles.js +68 -0
- package/dist/components/actions/icon-button/icon-button.styles.js.map +1 -1
- package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
- package/dist/components/actions/menu/menu.template.js +17 -5
- package/dist/components/actions/menu/menu.template.js.map +1 -1
- package/dist/components/components.js +88 -85
- package/dist/components/content/blockquote/blockquote.d.ts +3 -1
- package/dist/components/content/blockquote/blockquote.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.js +12 -1
- package/dist/components/content/blockquote/blockquote.js.map +1 -1
- package/dist/components/content/blockquote/blockquote.styles.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.styles.js +4 -0
- package/dist/components/content/blockquote/blockquote.styles.js.map +1 -1
- package/dist/components/content/blockquote/blockquote.template.js +1 -1
- package/dist/components/content/blockquote/blockquote.template.js.map +1 -1
- package/dist/components/content/byline/byline.d.ts +53 -0
- package/dist/components/content/byline/byline.d.ts.map +1 -0
- package/dist/components/content/byline/byline.js +90 -0
- package/dist/components/content/byline/byline.js.map +1 -0
- package/dist/components/content/byline/byline.styles.d.ts +2 -0
- package/dist/components/content/byline/byline.styles.d.ts.map +1 -0
- package/dist/components/content/byline/byline.styles.js +94 -0
- package/dist/components/content/byline/byline.styles.js.map +1 -0
- package/dist/components/content/byline/byline.template.d.ts +3 -0
- package/dist/components/content/byline/byline.template.d.ts.map +1 -0
- package/dist/components/content/byline/byline.template.js +23 -0
- package/dist/components/content/byline/byline.template.js.map +1 -0
- package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.styles.js +4 -0
- package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.template.d.ts.map +1 -1
- package/dist/components/content/code-viewer/code-viewer.template.js +4 -1
- package/dist/components/content/code-viewer/code-viewer.template.js.map +1 -1
- package/dist/components/content/image/image.template.d.ts.map +1 -1
- package/dist/components/content/image/image.template.js +3 -1
- package/dist/components/content/image/image.template.js.map +1 -1
- package/dist/components/content/image/lqip-encoder-element.js +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.template.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.template.js +3 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.template.js.map +1 -1
- package/dist/components/content/rich-text/rich-text.d.ts +16 -0
- package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
- package/dist/components/content/rich-text/rich-text.js +19 -0
- package/dist/components/content/rich-text/rich-text.js.map +1 -1
- package/dist/components/content/tag/tag.d.ts +2 -2
- package/dist/components/content/tag/tag.d.ts.map +1 -1
- package/dist/components/content/tag/tag.js +1 -1
- package/dist/components/content/tag/tag.js.map +1 -1
- package/dist/components/content/tag/tag.styles.d.ts.map +1 -1
- package/dist/components/content/tag/tag.styles.js +81 -51
- package/dist/components/content/tag/tag.styles.js.map +1 -1
- package/dist/components/content/title/title.d.ts +6 -0
- package/dist/components/content/title/title.d.ts.map +1 -1
- package/dist/components/content/title/title.js +8 -0
- package/dist/components/content/title/title.js.map +1 -1
- package/dist/components/content/title/title.styles.d.ts.map +1 -1
- package/dist/components/content/title/title.styles.js +15 -0
- package/dist/components/content/title/title.styles.js.map +1 -1
- package/dist/components/{index-DHU98C6V.js → index-C2jQOZa6.js} +3278 -1882
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +3 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.template.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.template.js +9 -3
- package/dist/components/inputs/checkbox/checkbox.template.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.template.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.template.js +3 -1
- package/dist/components/inputs/radio-button/radio-button.template.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.js +8 -2
- package/dist/components/inputs/toggle-button/toggle-button.template.js.map +1 -1
- package/dist/components/inputs/token/token.template.d.ts.map +1 -1
- package/dist/components/inputs/token/token.template.js +3 -1
- package/dist/components/inputs/token/token.template.js.map +1 -1
- package/dist/components/layout/collection/collection.template.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.template.js +3 -1
- package/dist/components/layout/collection/collection.template.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.template.js +6 -2
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.template.js.map +1 -1
- package/dist/components/layout/page-sections/hero/hero.d.ts +92 -0
- package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -0
- package/dist/components/layout/page-sections/hero/hero.js +153 -0
- package/dist/components/layout/page-sections/hero/hero.js.map +1 -0
- package/dist/components/layout/page-sections/hero/hero.styles.d.ts +2 -0
- package/dist/components/layout/page-sections/hero/hero.styles.d.ts.map +1 -0
- package/dist/components/layout/page-sections/hero/hero.styles.js +488 -0
- package/dist/components/layout/page-sections/hero/hero.styles.js.map +1 -0
- package/dist/components/layout/page-sections/hero/hero.template.d.ts +4 -0
- package/dist/components/layout/page-sections/hero/hero.template.d.ts.map +1 -0
- package/dist/components/layout/page-sections/hero/hero.template.js +18 -0
- package/dist/components/layout/page-sections/hero/hero.template.js.map +1 -0
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.template.js +6 -2
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.template.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.template.js +6 -2
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.template.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.template.js +6 -2
- package/dist/components/layout/page-sections/simple-section/simple-section.template.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.template.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.template.js +6 -2
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.template.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.template.js +3 -1
- package/dist/components/lists-and-tables/list/list.template.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +3 -4
- package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +7 -5
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.js +2 -2
- package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
- package/dist/components/lists-and-tables/table/table.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/table/table.template.js +7 -2
- package/dist/components/lists-and-tables/table/table.template.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts +44 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.d.ts +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.js +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js +84 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js +64 -10
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.d.ts.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js +17 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js +9 -3
- package/dist/components/navigation/document-tab-bar/document-tab-bar.template.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.template.d.ts.map +1 -1
- package/dist/components/navigation/pagination/pagination.template.js +9 -3
- package/dist/components/navigation/pagination/pagination.template.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.template.js +6 -2
- package/dist/components/navigation/tab-bar/tab-bar.template.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +4 -4
- package/dist/components/navigation/top-title-bar/top-title-bar.template.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.template.js +3 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.template.js.map +1 -1
- package/dist/components/{prism-python-9EoInm_N.js → prism-python-BzzeiWRd.js} +1 -1
- package/dist/components/{prism-rust-Chzr6sBk.js → prism-rust-DzgIGUtE.js} +1 -1
- package/dist/components/{prism-typescript-DPJmu--x.js → prism-typescript-KyVBIohW.js} +1 -1
- package/dist/components/status-and-feedback/badge/badge.d.ts +1 -1
- package/dist/components/status-and-feedback/badge/badge.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.js.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.styles.js +69 -75
- package/dist/components/status-and-feedback/badge/badge.styles.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.styles.js +21 -35
- package/dist/components/status-and-feedback/banner/banner.styles.js.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/banner/banner.template.js +9 -3
- package/dist/components/status-and-feedback/banner/banner.template.js.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.js +6 -2
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +73 -80
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js +48 -50
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js.map +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js.map +1 -1
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts +60 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.d.ts.map +1 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.js +116 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.js.map +1 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.styles.d.ts +2 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.styles.d.ts.map +1 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.styles.js +142 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.styles.js.map +1 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.template.d.ts +3 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.template.d.ts.map +1 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.template.js +32 -0
- package/dist/components/status-and-feedback/status-bar/status-bar.template.js.map +1 -0
- package/dist/css/rich-text.css +91 -13
- package/dist/css/settings.css +427 -338
- package/package.json +13 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N, a, b, c, d, e, f, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, O, P, Q, R, S, T, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG } from "./index-
|
|
1
|
+
import { N, a, b, c, d, e, f, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, F, G, H, I, J, K, L, M, O, P, Q, R, S, T, U, V, W, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, aj, ak, al, am, an, ao, ap, aq, ar, as, at, au, av, aw, ax, ay, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, aJ } from "./index-C2jQOZa6.js";
|
|
2
2
|
export {
|
|
3
3
|
N as NLDDActivityIndicator,
|
|
4
4
|
a as NLDDAppView,
|
|
@@ -12,88 +12,91 @@ export {
|
|
|
12
12
|
j as NLDDButton,
|
|
13
13
|
k as NLDDButtonBar,
|
|
14
14
|
l as NLDDButtonGroup,
|
|
15
|
-
m as
|
|
16
|
-
n as
|
|
17
|
-
o as
|
|
18
|
-
p as
|
|
19
|
-
q as
|
|
20
|
-
r as
|
|
21
|
-
s as
|
|
22
|
-
t as
|
|
23
|
-
u as
|
|
24
|
-
v as
|
|
25
|
-
w as
|
|
26
|
-
x as
|
|
27
|
-
y as
|
|
28
|
-
z as
|
|
29
|
-
A as
|
|
30
|
-
B as
|
|
31
|
-
C as
|
|
32
|
-
D as
|
|
33
|
-
E as
|
|
34
|
-
F as
|
|
35
|
-
G as
|
|
36
|
-
H as
|
|
37
|
-
I as
|
|
38
|
-
J as
|
|
39
|
-
K as
|
|
40
|
-
L as
|
|
41
|
-
M as
|
|
42
|
-
O as
|
|
43
|
-
P as
|
|
44
|
-
Q as
|
|
45
|
-
R as
|
|
46
|
-
S as
|
|
47
|
-
T as
|
|
48
|
-
U as
|
|
49
|
-
V as
|
|
50
|
-
W as
|
|
51
|
-
X as
|
|
52
|
-
Y as
|
|
53
|
-
Z as
|
|
54
|
-
_ as
|
|
55
|
-
$ as
|
|
56
|
-
a0 as
|
|
57
|
-
a1 as
|
|
58
|
-
a2 as
|
|
59
|
-
a3 as
|
|
60
|
-
a4 as
|
|
61
|
-
a5 as
|
|
62
|
-
a6 as
|
|
63
|
-
a7 as
|
|
64
|
-
a8 as
|
|
65
|
-
a9 as
|
|
66
|
-
aa as
|
|
67
|
-
ab as
|
|
68
|
-
ac as
|
|
69
|
-
ad as
|
|
70
|
-
ae as
|
|
71
|
-
af as
|
|
72
|
-
ag as
|
|
73
|
-
ah as
|
|
74
|
-
ai as
|
|
75
|
-
aj as
|
|
76
|
-
ak as
|
|
77
|
-
al as
|
|
78
|
-
am as
|
|
79
|
-
an as
|
|
80
|
-
ao as
|
|
81
|
-
ap as
|
|
82
|
-
aq as
|
|
83
|
-
ar as
|
|
84
|
-
as as
|
|
85
|
-
at as
|
|
86
|
-
au as
|
|
87
|
-
av as
|
|
88
|
-
aw as
|
|
89
|
-
ax as
|
|
90
|
-
ay as
|
|
91
|
-
az as
|
|
92
|
-
aA as
|
|
93
|
-
aB as
|
|
94
|
-
aC as
|
|
95
|
-
aD as
|
|
96
|
-
aE as
|
|
97
|
-
aF as
|
|
98
|
-
aG as
|
|
15
|
+
m as NLDDByline,
|
|
16
|
+
n as NLDDCard,
|
|
17
|
+
o as NLDDCell,
|
|
18
|
+
p as NLDDCheckbox,
|
|
19
|
+
q as NLDDCheckboxField,
|
|
20
|
+
r as NLDDCodeEditor,
|
|
21
|
+
s as NLDDCodeViewer,
|
|
22
|
+
t as NLDDCollection,
|
|
23
|
+
u as NLDDComboBox,
|
|
24
|
+
v as NLDDContainer,
|
|
25
|
+
w as NLDDDescriptionCell,
|
|
26
|
+
x as NLDDDivider,
|
|
27
|
+
y as NLDDDocumentTabBar,
|
|
28
|
+
z as NLDDDragHandleCell,
|
|
29
|
+
A as NLDDDropdown,
|
|
30
|
+
B as NLDDForm,
|
|
31
|
+
C as NLDDFormActions,
|
|
32
|
+
D as NLDDFormField,
|
|
33
|
+
E as NLDDFormSection,
|
|
34
|
+
F as NLDDFullBleedSection,
|
|
35
|
+
G as NLDDHero,
|
|
36
|
+
H as NLDDIcon,
|
|
37
|
+
I as NLDDIconButton,
|
|
38
|
+
J as NLDDIconCell,
|
|
39
|
+
K as NLDDImage,
|
|
40
|
+
L as NLDDInlineDialog,
|
|
41
|
+
M as NLDDKeyboardShortcut,
|
|
42
|
+
O as NLDDLink,
|
|
43
|
+
P as NLDDList,
|
|
44
|
+
Q as NLDDListItem,
|
|
45
|
+
R as NLDDMenu,
|
|
46
|
+
S as NLDDMenuBar,
|
|
47
|
+
T as NLDDMenuBarItem,
|
|
48
|
+
U as NLDDModalDialog,
|
|
49
|
+
V as NLDDMultiLineTextField,
|
|
50
|
+
W as NLDDNavigationSplitView,
|
|
51
|
+
X as NLDDNumberField,
|
|
52
|
+
Y as NLDDOneHalfOneHalfSection,
|
|
53
|
+
Z as NLDDOneThirdTwoThirdsSection,
|
|
54
|
+
_ as NLDDPage,
|
|
55
|
+
$ as NLDDPageFooter,
|
|
56
|
+
a0 as NLDDPageFooterLegalBar,
|
|
57
|
+
a1 as NLDDPageFooterLegalBarItem,
|
|
58
|
+
a2 as NLDDPagination,
|
|
59
|
+
a3 as NLDDPasswordField,
|
|
60
|
+
a4 as NLDDPopover,
|
|
61
|
+
a5 as NLDDProgressBar,
|
|
62
|
+
a6 as NLDDProgressBarSegmentIndicator,
|
|
63
|
+
a7 as NLDDProgressCircle,
|
|
64
|
+
a8 as NLDDProgressCircleSegmentIndicator,
|
|
65
|
+
a9 as NLDDRadioButton,
|
|
66
|
+
aa as NLDDRadioButtonField,
|
|
67
|
+
ab as NLDDRadioButtonGroup,
|
|
68
|
+
ac as NLDDRichText,
|
|
69
|
+
ad as NLDDSearchField,
|
|
70
|
+
ae as NLDDSegmentedControl,
|
|
71
|
+
af as NLDDSheet,
|
|
72
|
+
ag as NLDDSideBySideSplitView,
|
|
73
|
+
ah as NLDDSimpleSection,
|
|
74
|
+
ai as NLDDSkipLink,
|
|
75
|
+
aj as NLDDSpacer,
|
|
76
|
+
ak as NLDDSpacerCell,
|
|
77
|
+
al as NLDDSplitButton,
|
|
78
|
+
am as NLDDSplitViewPane,
|
|
79
|
+
an as NLDDStackedSplitView,
|
|
80
|
+
ao as NLDDStatusBar,
|
|
81
|
+
ap as NLDDStepper,
|
|
82
|
+
aq as NLDDSwitch,
|
|
83
|
+
ar as NLDDSwitchField,
|
|
84
|
+
as as NLDDTabBar,
|
|
85
|
+
at as NLDDTable,
|
|
86
|
+
au as NLDDTableRow,
|
|
87
|
+
av as NLDDTag,
|
|
88
|
+
aw as NLDDTextCell,
|
|
89
|
+
ax as NLDDTextField,
|
|
90
|
+
ay as NLDDTimelineTrackCell,
|
|
91
|
+
az as NLDDTitle,
|
|
92
|
+
aA as NLDDTitleCell,
|
|
93
|
+
aB as NLDDToggleButton,
|
|
94
|
+
aC as NLDDToggleButtonGroup,
|
|
95
|
+
aD as NLDDToken,
|
|
96
|
+
aE as NLDDToolbar,
|
|
97
|
+
aF as NLDDTooltip,
|
|
98
|
+
aG as NLDDTopNavigationBar,
|
|
99
|
+
aH as NLDDTopTitleBar,
|
|
100
|
+
aI as NLDDTwoThirdsOneThirdSection,
|
|
101
|
+
aJ as NLDDWindow
|
|
99
102
|
};
|
|
@@ -7,13 +7,15 @@
|
|
|
7
7
|
* @attr {string} cite - URL van de bron (wordt doorgegeven aan het <blockquote> element)
|
|
8
8
|
*
|
|
9
9
|
* @slot - De citaat-paragra(a)f(en) — gebruik bij voorkeur <p>-elementen
|
|
10
|
-
* @slot attribution - Optionele bronvermelding (auteur, titel, etc.)
|
|
10
|
+
* @slot attribution - Optionele bronvermelding (auteur, titel, etc.). Ook een
|
|
11
|
+
* nldd-byline mag hier; het kastlijntje ("— ") wordt dan weggelaten.
|
|
11
12
|
*/
|
|
12
13
|
import { LitElement } from 'lit';
|
|
13
14
|
export declare class NLDDBlockquote extends LitElement {
|
|
14
15
|
static styles: import("lit").CSSResult;
|
|
15
16
|
cite: string | undefined;
|
|
16
17
|
_hasAttribution: boolean;
|
|
18
|
+
_hasBylineAttribution: boolean;
|
|
17
19
|
/** @internal */
|
|
18
20
|
_handleAttributionSlotChange: (e: Event) => void;
|
|
19
21
|
render(): import("lit-html").TemplateResult<1>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockquote.d.ts","sourceRoot":"","sources":["../../../../src/components/content/blockquote/blockquote.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"blockquote.d.ts","sourceRoot":"","sources":["../../../../src/components/content/blockquote/blockquote.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAKjC,qBACa,cAAe,SAAQ,UAAU;IAC7C,OAAgB,MAAM,0BAAoB;IAG1C,IAAI,EAAE,MAAM,GAAG,SAAS,CAAa;IAGrC,eAAe,UAAS;IAGxB,qBAAqB,UAAS;IAE9B,gBAAgB;IAChB,4BAA4B,GAAI,GAAG,KAAK,KAAG,IAAI,CAY7C;IAEO,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,iBAAiB,EAAE,cAAc,CAAC;KAClC;CACD"}
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
* @attr {string} cite - URL van de bron (wordt doorgegeven aan het <blockquote> element)
|
|
8
8
|
*
|
|
9
9
|
* @slot - De citaat-paragra(a)f(en) — gebruik bij voorkeur <p>-elementen
|
|
10
|
-
* @slot attribution - Optionele bronvermelding (auteur, titel, etc.)
|
|
10
|
+
* @slot attribution - Optionele bronvermelding (auteur, titel, etc.). Ook een
|
|
11
|
+
* nldd-byline mag hier; het kastlijntje ("— ") wordt dan weggelaten.
|
|
11
12
|
*/
|
|
12
13
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
13
14
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -24,6 +25,7 @@ let NLDDBlockquote = class NLDDBlockquote extends LitElement {
|
|
|
24
25
|
super(...arguments);
|
|
25
26
|
this.cite = undefined;
|
|
26
27
|
this._hasAttribution = false;
|
|
28
|
+
this._hasBylineAttribution = false;
|
|
27
29
|
/** @internal */
|
|
28
30
|
this._handleAttributionSlotChange = (e) => {
|
|
29
31
|
const slot = e.target;
|
|
@@ -32,6 +34,12 @@ let NLDDBlockquote = class NLDDBlockquote extends LitElement {
|
|
|
32
34
|
return true;
|
|
33
35
|
return (n.textContent ?? '').trim().length > 0;
|
|
34
36
|
});
|
|
37
|
+
// A byline brings its own layout (avatars + stacked text); the leading
|
|
38
|
+
// em-dash assumes inline text and would wrap onto its own line above
|
|
39
|
+
// the block, so it is suppressed for byline attributions. Matched by
|
|
40
|
+
// tag name rather than instanceof to avoid statically importing (and so
|
|
41
|
+
// bundling) nldd-byline into every blockquote consumer.
|
|
42
|
+
this._hasBylineAttribution = slot.assignedElements({ flatten: true }).some(el => el.tagName === 'NLDD-BYLINE');
|
|
35
43
|
};
|
|
36
44
|
}
|
|
37
45
|
render() {
|
|
@@ -45,6 +53,9 @@ __decorate([
|
|
|
45
53
|
__decorate([
|
|
46
54
|
state()
|
|
47
55
|
], NLDDBlockquote.prototype, "_hasAttribution", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
state()
|
|
58
|
+
], NLDDBlockquote.prototype, "_hasBylineAttribution", void 0);
|
|
48
59
|
NLDDBlockquote = __decorate([
|
|
49
60
|
customElement('nldd-blockquote')
|
|
50
61
|
], NLDDBlockquote);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockquote.js","sourceRoot":"","sources":["../../../../src/components/content/blockquote/blockquote.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"blockquote.js","sourceRoot":"","sources":["../../../../src/components/content/blockquote/blockquote.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;;;;;;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAG7C,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,UAAU;IAAvC;;QAIN,SAAI,GAAuB,SAAS,CAAC;QAGrC,oBAAe,GAAG,KAAK,CAAC;QAGxB,0BAAqB,GAAG,KAAK,CAAC;QAE9B,gBAAgB;QAChB,iCAA4B,GAAG,CAAC,CAAQ,EAAQ,EAAE;YACjD,MAAM,IAAI,GAAG,CAAC,CAAC,MAAyB,CAAC;YACzC,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;gBACrE,IAAI,CAAC,CAAC,QAAQ,KAAK,IAAI,CAAC,YAAY;oBAAE,OAAO,IAAI,CAAC;gBAClD,OAAO,CAAC,CAAC,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;YAChD,CAAC,CAAC,CAAC;YACH,uEAAuE;YACvE,qEAAqE;YACrE,qEAAqE;YACrE,wEAAwE;YACxE,wDAAwD;YACxD,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC,gBAAgB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,OAAO,KAAK,aAAa,CAAC,CAAC;QAChH,CAAC,CAAC;IAKH,CAAC;IAHS,MAAM;QACd,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;;AA5Be,qBAAM,GAAG,gBAAgB,AAAnB,CAAoB;AAG1C;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CACU;AAGrC;IADC,KAAK,EAAE;uDACgB;AAGxB;IADC,KAAK,EAAE;6DACsB;AAVlB,cAAc;IAD1B,aAAa,CAAC,iBAAiB,CAAC;GACpB,cAAc,CA8B1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockquote.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/blockquote/blockquote.styles.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"blockquote.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/blockquote/blockquote.styles.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB,yBAoF5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockquote.styles.js","sourceRoot":"","sources":["../../../../src/components/content/blockquote/blockquote.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE3F,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA;;;;;;;;;;uBAUZ,KAAK;;;;;;4CAMgB,KAAK;;;;;;IAM7C,kBAAkB
|
|
1
|
+
{"version":3,"file":"blockquote.styles.js","sourceRoot":"","sources":["../../../../src/components/content/blockquote/blockquote.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE3F,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA;;;;;;;;;;uBAUZ,KAAK;;;;;;4CAMgB,KAAK;;;;;;IAM7C,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsDlB,YAAY;IACZ,kBAAkB;;;;;;;CAOrB,CAAC"}
|
|
@@ -7,7 +7,7 @@ export function template(component) {
|
|
|
7
7
|
<div class="blockquote__quote">
|
|
8
8
|
<slot></slot>
|
|
9
9
|
</div>
|
|
10
|
-
<slot class="blockquote__attribution"
|
|
10
|
+
<slot class="blockquote__attribution${component._hasBylineAttribution ? ' is-byline' : ''}"
|
|
11
11
|
name="attribution"
|
|
12
12
|
?hidden=${!component._hasAttribution}
|
|
13
13
|
@slotchange=${component._handleAttributionSlotChange}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockquote.template.js","sourceRoot":"","sources":["../../../../src/components/content/blockquote/blockquote.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAGpC,MAAM,UAAU,QAAQ,CAAC,SAAyB;IACjD,OAAO,IAAI,CAAA;;UAEF,SAAS,CAAC,IAAI,IAAI,OAAO
|
|
1
|
+
{"version":3,"file":"blockquote.template.js","sourceRoot":"","sources":["../../../../src/components/content/blockquote/blockquote.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAGpC,MAAM,UAAU,QAAQ,CAAC,SAAyB;IACjD,OAAO,IAAI,CAAA;;UAEF,SAAS,CAAC,IAAI,IAAI,OAAO;;;;;yCAKM,SAAS,CAAC,qBAAqB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE;;cAE9E,CAAC,SAAS,CAAC,eAAe;kBACtB,SAAS,CAAC,4BAA4B;;;EAGtD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NLDD Design System Byline Component (Lit + TypeScript)
|
|
3
|
+
*
|
|
4
|
+
* Een redactionele regel die auteurs of redacteuren toont: optionele
|
|
5
|
+
* avatar(s), een naamregel en ondersteunende tekst (bijvoorbeeld functie
|
|
6
|
+
* of datum). Alle onderdelen zijn optioneel.
|
|
7
|
+
*
|
|
8
|
+
* De naamregel en ondersteunende tekst kunnen als attribuut of als slot
|
|
9
|
+
* worden aangeleverd. Gebruik de slots voor rijkere inhoud, zoals een
|
|
10
|
+
* `<time datetime="…">` voor machine-leesbare datums of een link naar het
|
|
11
|
+
* auteursprofiel. Geslotte inhoud vervangt het bijbehorende attribuut
|
|
12
|
+
* (het attribuut is de fallback van de slot).
|
|
13
|
+
*
|
|
14
|
+
* Bij meerdere redacteuren overlappen de avatars elkaar subtiel; elke
|
|
15
|
+
* avatar krijgt een ring in de surface-kleur (zelfde mechaniek als badge)
|
|
16
|
+
* zodat ze visueel gescheiden blijven. Op een gekleurde ondergrond kan de
|
|
17
|
+
* ringkleur meegegeven worden via `--context-parent-background-color`.
|
|
18
|
+
*
|
|
19
|
+
* Avatars worden geslot als `<img slot="avatars">`. Zet `alt=""` wanneer
|
|
20
|
+
* de namen al in de tekst staan (decoratief); geef anders een
|
|
21
|
+
* beschrijvende alt-tekst op.
|
|
22
|
+
*
|
|
23
|
+
* @element nldd-byline
|
|
24
|
+
*
|
|
25
|
+
* @attr {string} text - Naamregel (bijv. "Jan Jansen en Piet Pietersen"); fallback wanneer de text-slot leeg is
|
|
26
|
+
* @attr {string} supporting-text - Ondersteunende tekst onder de naamregel (bijv. rol of datum); fallback wanneer de supporting-text-slot leeg is
|
|
27
|
+
*
|
|
28
|
+
* @slot avatars - Eén of meer img-elementen; gestyled als ronde, overlappende avatars
|
|
29
|
+
* @slot text - Naamregel als rijke inhoud (bijv. een link naar het auteursprofiel)
|
|
30
|
+
* @slot supporting-text - Ondersteunende tekst als rijke inhoud (bijv. een time-element)
|
|
31
|
+
*/
|
|
32
|
+
import { LitElement } from 'lit';
|
|
33
|
+
export declare class NLDDByline extends LitElement {
|
|
34
|
+
static styles: import("lit").CSSResult;
|
|
35
|
+
text: string;
|
|
36
|
+
supportingText: string;
|
|
37
|
+
_hasSlottedAvatars: boolean;
|
|
38
|
+
_hasSlottedText: boolean;
|
|
39
|
+
_hasSlottedSupportingText: boolean;
|
|
40
|
+
/** Tracks slot content so the text / supporting-text attribute fallbacks
|
|
41
|
+
* only render when their slot is empty. Bound per slot in the template via
|
|
42
|
+
* @slotchange, so Lit owns the listener lifecycle (it survives a
|
|
43
|
+
* move-and-reinsert) — no manual connect/disconnect bookkeeping. slotchange
|
|
44
|
+
* also fires for the initial assignment, so the first render is covered. */
|
|
45
|
+
_onSlotChange: (e: Event) => void;
|
|
46
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
47
|
+
}
|
|
48
|
+
declare global {
|
|
49
|
+
interface HTMLElementTagNameMap {
|
|
50
|
+
'nldd-byline': NLDDByline;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=byline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"byline.d.ts","sourceRoot":"","sources":["../../../../src/components/content/byline/byline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAKjC,qBACa,UAAW,SAAQ,UAAU;IACzC,OAAgB,MAAM,0BAAgB;IAGtC,IAAI,SAAM;IAGV,cAAc,SAAM;IAGpB,kBAAkB,UAAS;IAG3B,eAAe,UAAS;IAGxB,yBAAyB,UAAS;IAElC;;;;iFAI6E;IAC7E,aAAa,GAAI,GAAG,KAAK,KAAG,IAAI,CAM9B;IAEO,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,aAAa,EAAE,UAAU,CAAC;KAC1B;CACD"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* NLDD Design System Byline Component (Lit + TypeScript)
|
|
9
|
+
*
|
|
10
|
+
* Een redactionele regel die auteurs of redacteuren toont: optionele
|
|
11
|
+
* avatar(s), een naamregel en ondersteunende tekst (bijvoorbeeld functie
|
|
12
|
+
* of datum). Alle onderdelen zijn optioneel.
|
|
13
|
+
*
|
|
14
|
+
* De naamregel en ondersteunende tekst kunnen als attribuut of als slot
|
|
15
|
+
* worden aangeleverd. Gebruik de slots voor rijkere inhoud, zoals een
|
|
16
|
+
* `<time datetime="…">` voor machine-leesbare datums of een link naar het
|
|
17
|
+
* auteursprofiel. Geslotte inhoud vervangt het bijbehorende attribuut
|
|
18
|
+
* (het attribuut is de fallback van de slot).
|
|
19
|
+
*
|
|
20
|
+
* Bij meerdere redacteuren overlappen de avatars elkaar subtiel; elke
|
|
21
|
+
* avatar krijgt een ring in de surface-kleur (zelfde mechaniek als badge)
|
|
22
|
+
* zodat ze visueel gescheiden blijven. Op een gekleurde ondergrond kan de
|
|
23
|
+
* ringkleur meegegeven worden via `--context-parent-background-color`.
|
|
24
|
+
*
|
|
25
|
+
* Avatars worden geslot als `<img slot="avatars">`. Zet `alt=""` wanneer
|
|
26
|
+
* de namen al in de tekst staan (decoratief); geef anders een
|
|
27
|
+
* beschrijvende alt-tekst op.
|
|
28
|
+
*
|
|
29
|
+
* @element nldd-byline
|
|
30
|
+
*
|
|
31
|
+
* @attr {string} text - Naamregel (bijv. "Jan Jansen en Piet Pietersen"); fallback wanneer de text-slot leeg is
|
|
32
|
+
* @attr {string} supporting-text - Ondersteunende tekst onder de naamregel (bijv. rol of datum); fallback wanneer de supporting-text-slot leeg is
|
|
33
|
+
*
|
|
34
|
+
* @slot avatars - Eén of meer img-elementen; gestyled als ronde, overlappende avatars
|
|
35
|
+
* @slot text - Naamregel als rijke inhoud (bijv. een link naar het auteursprofiel)
|
|
36
|
+
* @slot supporting-text - Ondersteunende tekst als rijke inhoud (bijv. een time-element)
|
|
37
|
+
*/
|
|
38
|
+
import { LitElement } from 'lit';
|
|
39
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
40
|
+
import { bylineStyles } from './byline.styles.js';
|
|
41
|
+
import { bylineTemplate } from './byline.template.js';
|
|
42
|
+
let NLDDByline = class NLDDByline extends LitElement {
|
|
43
|
+
constructor() {
|
|
44
|
+
super(...arguments);
|
|
45
|
+
this.text = '';
|
|
46
|
+
this.supportingText = '';
|
|
47
|
+
this._hasSlottedAvatars = false;
|
|
48
|
+
this._hasSlottedText = false;
|
|
49
|
+
this._hasSlottedSupportingText = false;
|
|
50
|
+
/** Tracks slot content so the text / supporting-text attribute fallbacks
|
|
51
|
+
* only render when their slot is empty. Bound per slot in the template via
|
|
52
|
+
* @slotchange, so Lit owns the listener lifecycle (it survives a
|
|
53
|
+
* move-and-reinsert) — no manual connect/disconnect bookkeeping. slotchange
|
|
54
|
+
* also fires for the initial assignment, so the first render is covered. */
|
|
55
|
+
this._onSlotChange = (e) => {
|
|
56
|
+
const slot = e.target;
|
|
57
|
+
const has = slot.assignedElements().length > 0;
|
|
58
|
+
if (slot.name === 'avatars')
|
|
59
|
+
this._hasSlottedAvatars = has;
|
|
60
|
+
else if (slot.name === 'text')
|
|
61
|
+
this._hasSlottedText = has;
|
|
62
|
+
else if (slot.name === 'supporting-text')
|
|
63
|
+
this._hasSlottedSupportingText = has;
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
render() {
|
|
67
|
+
return bylineTemplate(this);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
NLDDByline.styles = bylineStyles;
|
|
71
|
+
__decorate([
|
|
72
|
+
property({ type: String })
|
|
73
|
+
], NLDDByline.prototype, "text", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
property({ type: String, attribute: 'supporting-text' })
|
|
76
|
+
], NLDDByline.prototype, "supportingText", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
state()
|
|
79
|
+
], NLDDByline.prototype, "_hasSlottedAvatars", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
state()
|
|
82
|
+
], NLDDByline.prototype, "_hasSlottedText", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
state()
|
|
85
|
+
], NLDDByline.prototype, "_hasSlottedSupportingText", void 0);
|
|
86
|
+
NLDDByline = __decorate([
|
|
87
|
+
customElement('nldd-byline')
|
|
88
|
+
], NLDDByline);
|
|
89
|
+
export { NLDDByline };
|
|
90
|
+
//# sourceMappingURL=byline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"byline.js","sourceRoot":"","sources":["../../../../src/components/content/byline/byline.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAG/C,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,UAAU;IAAnC;;QAIN,SAAI,GAAG,EAAE,CAAC;QAGV,mBAAc,GAAG,EAAE,CAAC;QAGpB,uBAAkB,GAAG,KAAK,CAAC;QAG3B,oBAAe,GAAG,KAAK,CAAC;QAGxB,8BAAyB,GAAG,KAAK,CAAC;QAElC;;;;qFAI6E;QAC7E,kBAAa,GAAG,CAAC,CAAQ,EAAQ,EAAE;YAClC,MAAM,IAAI,GAAG,CAAC,CAAC,MAAyB,CAAC;YACzC,MAAM,GAAG,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;YAC/C,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS;gBAAE,IAAI,CAAC,kBAAkB,GAAG,GAAG,CAAC;iBACtD,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM;gBAAE,IAAI,CAAC,eAAe,GAAG,GAAG,CAAC;iBACrD,IAAI,IAAI,CAAC,IAAI,KAAK,iBAAiB;gBAAE,IAAI,CAAC,yBAAyB,GAAG,GAAG,CAAC;QAChF,CAAC,CAAC;IAKH,CAAC;IAHS,MAAM;QACd,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;;AAhCe,iBAAM,GAAG,YAAY,AAAf,CAAgB;AAGtC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCACjB;AAGV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC;kDACrC;AAGpB;IADC,KAAK,EAAE;sDACmB;AAG3B;IADC,KAAK,EAAE;mDACgB;AAGxB;IADC,KAAK,EAAE;6DAC0B;AAhBtB,UAAU;IADtB,aAAa,CAAC,aAAa,CAAC;GAChB,UAAU,CAkCtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"byline.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/byline/byline.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,yBA0FxB,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
import { slottedReset, inheritedTextReset } from '../../../assets/styles/slotted-reset.js';
|
|
3
|
+
export const bylineStyles = css `
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
/* # Host */
|
|
7
|
+
|
|
8
|
+
:host {
|
|
9
|
+
--_gap: var(--primitives-space-8);
|
|
10
|
+
--_avatar-overlap: var(--primitives-space-8);
|
|
11
|
+
--_avatar-size: var(--primitives-space-40);
|
|
12
|
+
--_avatar-border-width: var(--primitives-border-width-regular);
|
|
13
|
+
--_avatar-border-color: var(--context-parent-background-color, var(--semantics-surfaces-base-background-color));
|
|
14
|
+
--_avatar-corner-radius: var(--primitives-corner-radius-full);
|
|
15
|
+
--_text-color: var(--semantics-content-color);
|
|
16
|
+
--_text-font: var(--primitives-font-body-md-medium-tight);
|
|
17
|
+
--_supporting-text-color: var(--semantics-content-secondary-color);
|
|
18
|
+
--_supporting-text-font: var(--primitives-font-body-sm-regular-tight);
|
|
19
|
+
|
|
20
|
+
${inheritedTextReset}
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
gap: var(--_gap);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:host([hidden]) {
|
|
27
|
+
display: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
/* # Avatars */
|
|
32
|
+
|
|
33
|
+
.byline__avatars {
|
|
34
|
+
display: flex;
|
|
35
|
+
padding-inline-start: var(--_avatar-overlap);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.byline__avatars[hidden] {
|
|
39
|
+
display: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.byline__avatars ::slotted(img) {
|
|
43
|
+
${slottedReset}
|
|
44
|
+
display: block !important;
|
|
45
|
+
margin-inline-start: calc(-1 * var(--_avatar-overlap)) !important;
|
|
46
|
+
border-radius: var(--_avatar-corner-radius) !important;
|
|
47
|
+
box-shadow: 0 0 0 var(--_avatar-border-width) var(--_avatar-border-color) !important;
|
|
48
|
+
width: var(--_avatar-size) !important;
|
|
49
|
+
height: var(--_avatar-size) !important;
|
|
50
|
+
object-fit: cover !important;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@media (forced-colors: active) {
|
|
54
|
+
.byline__avatars ::slotted(img) {
|
|
55
|
+
border: var(--_avatar-border-width) solid Canvas !important;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
/* # Text area */
|
|
61
|
+
|
|
62
|
+
.byline__text-area {
|
|
63
|
+
display: flex;
|
|
64
|
+
min-width: 0;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.byline__text-area[hidden] {
|
|
69
|
+
display: none;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.byline__text {
|
|
73
|
+
margin: 0;
|
|
74
|
+
color: var(--_text-color);
|
|
75
|
+
font: var(--_text-font);
|
|
76
|
+
text-wrap: pretty;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.byline__text[hidden] {
|
|
80
|
+
display: none;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.byline__supporting-text {
|
|
84
|
+
margin: 0;
|
|
85
|
+
color: var(--_supporting-text-color);
|
|
86
|
+
font: var(--_supporting-text-font);
|
|
87
|
+
text-wrap: pretty;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.byline__supporting-text[hidden] {
|
|
91
|
+
display: none;
|
|
92
|
+
}
|
|
93
|
+
`;
|
|
94
|
+
//# sourceMappingURL=byline.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"byline.styles.js","sourceRoot":"","sources":["../../../../src/components/content/byline/byline.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE3F,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;IAiB3B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;IAuBlB,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDf,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"byline.template.d.ts","sourceRoot":"","sources":["../../../../src/components/content/byline/byline.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,wBAAgB,cAAc,CAAC,SAAS,EAAE,UAAU,wCAoBnD"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
export function bylineTemplate(component) {
|
|
3
|
+
const hasText = Boolean(component.text) || component._hasSlottedText;
|
|
4
|
+
const hasSupportingText = Boolean(component.supportingText) || component._hasSlottedSupportingText;
|
|
5
|
+
return html `
|
|
6
|
+
<div class="byline__avatars"
|
|
7
|
+
?hidden=${!component._hasSlottedAvatars}
|
|
8
|
+
>
|
|
9
|
+
<slot name="avatars" @slotchange=${component._onSlotChange}></slot>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="byline__text-area"
|
|
12
|
+
?hidden=${!hasText && !hasSupportingText}
|
|
13
|
+
>
|
|
14
|
+
<p class="byline__text"
|
|
15
|
+
?hidden=${!hasText}
|
|
16
|
+
><slot name="text" @slotchange=${component._onSlotChange}>${component.text}</slot></p>
|
|
17
|
+
<p class="byline__supporting-text"
|
|
18
|
+
?hidden=${!hasSupportingText}
|
|
19
|
+
><slot name="supporting-text" @slotchange=${component._onSlotChange}>${component.supportingText}</slot></p>
|
|
20
|
+
</div>
|
|
21
|
+
`;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=byline.template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"byline.template.js","sourceRoot":"","sources":["../../../../src/components/content/byline/byline.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAG3B,MAAM,UAAU,cAAc,CAAC,SAAqB;IACnD,MAAM,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,SAAS,CAAC,eAAe,CAAC;IACrE,MAAM,iBAAiB,GAAG,OAAO,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,SAAS,CAAC,yBAAyB,CAAC;IACnG,OAAO,IAAI,CAAA;;aAEC,CAAC,SAAS,CAAC,kBAAkB;;sCAEJ,SAAS,CAAC,aAAa;;;aAGhD,CAAC,OAAO,IAAI,CAAC,iBAAiB;;;cAG7B,CAAC,OAAO;oCACc,SAAS,CAAC,aAAa,IAAI,SAAS,CAAC,IAAI;;cAE/D,CAAC,iBAAiB;+CACe,SAAS,CAAC,aAAa,IAAI,SAAS,CAAC,cAAc;;EAEhG,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-viewer.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/code-viewer/code-viewer.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"code-viewer.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/code-viewer/code-viewer.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,yBAwM5B,CAAC"}
|
|
@@ -27,6 +27,10 @@ export const codeViewerStyles = css `
|
|
|
27
27
|
(z-index: var(--_actions-z-index)) stays scoped to the code-viewer
|
|
28
28
|
and can't paint over other layers on the page. */
|
|
29
29
|
isolation: isolate;
|
|
30
|
+
/* iOS Safari inflates text in wide scrollable blocks (text autosizing);
|
|
31
|
+
lock the size so code renders at the authored font-size on mobile. */
|
|
32
|
+
-webkit-text-size-adjust: 100%;
|
|
33
|
+
text-size-adjust: 100%;
|
|
30
34
|
}
|
|
31
35
|
|
|
32
36
|
:host([hidden]) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-viewer.styles.js","sourceRoot":"","sources":["../../../../src/components/content/code-viewer/code-viewer.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;IAoB/B,kBAAkB
|
|
1
|
+
{"version":3,"file":"code-viewer.styles.js","sourceRoot":"","sources":["../../../../src/components/content/code-viewer/code-viewer.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;IAoB/B,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoLrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-viewer.template.d.ts","sourceRoot":"","sources":["../../../../src/components/content/code-viewer/code-viewer.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,KAAK,CAAC;AAGpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,cAAc,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"code-viewer.template.d.ts","sourceRoot":"","sources":["../../../../src/components/content/code-viewer/code-viewer.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,KAAK,CAAC;AAGpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,cAAc,GAAG,cAAc,CAiE5E"}
|
|
@@ -58,7 +58,10 @@ export function codeViewerTemplate(component) {
|
|
|
58
58
|
></nldd-icon-button>
|
|
59
59
|
</nldd-tooltip>
|
|
60
60
|
</div>
|
|
61
|
-
<div class="code-viewer__live-region"
|
|
61
|
+
<div class="code-viewer__live-region"
|
|
62
|
+
role="status"
|
|
63
|
+
aria-live="polite"
|
|
64
|
+
>${liveRegionText}</div>
|
|
62
65
|
</div>
|
|
63
66
|
`}`;
|
|
64
67
|
}
|