@nldd/design-system 0.8.46 → 0.8.47
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/components.js +83 -78
- package/dist/components/content/{code/code.d.ts → code-viewer/code-viewer.d.ts} +12 -11
- package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -0
- package/dist/components/content/{code/code.js → code-viewer/code-viewer.js} +32 -25
- package/dist/components/content/code-viewer/code-viewer.js.map +1 -0
- package/dist/components/content/code-viewer/code-viewer.styles.d.ts +2 -0
- package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -0
- package/dist/components/content/code-viewer/code-viewer.styles.js +89 -0
- package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -0
- package/dist/components/content/code-viewer/code-viewer.template.d.ts +4 -0
- package/dist/components/content/code-viewer/code-viewer.template.d.ts.map +1 -0
- package/dist/components/content/{code/code.template.js → code-viewer/code-viewer.template.js} +3 -3
- package/dist/components/content/code-viewer/code-viewer.template.js.map +1 -0
- package/dist/components/{index-BvNDgQGM.js → index-CuzqC3j7.js} +2985 -1818
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +3 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/layout/app-view/app-view.d.ts +2 -2
- package/dist/components/layout/app-view/app-view.d.ts.map +1 -1
- package/dist/components/layout/app-view/app-view.js +2 -2
- package/dist/components/layout/app-view/app-view.js.map +1 -1
- package/dist/components/layout/collection/collection.d.ts +2 -0
- package/dist/components/layout/collection/collection.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.js +8 -0
- package/dist/components/layout/collection/collection.js.map +1 -1
- package/dist/components/layout/collection/collection.styles.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.styles.js +4 -0
- package/dist/components/layout/collection/collection.styles.js.map +1 -1
- package/dist/components/layout/collection/collection.template.d.ts.map +1 -1
- package/dist/components/layout/collection/collection.template.js +5 -2
- package/dist/components/layout/collection/collection.template.js.map +1 -1
- package/dist/components/layout/container/container.d.ts +62 -8
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +113 -11
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/container/container.styles.d.ts.map +1 -1
- package/dist/components/layout/container/container.styles.js +261 -15
- package/dist/components/layout/container/container.styles.js.map +1 -1
- package/dist/components/layout/container/container.template.d.ts.map +1 -1
- package/dist/components/layout/container/container.template.js +5 -1
- package/dist/components/layout/container/container.template.js.map +1 -1
- package/dist/components/layout/page/page.d.ts +2 -2
- package/dist/components/layout/page/page.d.ts.map +1 -1
- package/dist/components/layout/page/page.js +1 -1
- package/dist/components/layout/page/page.js.map +1 -1
- package/dist/components/layout/page/page.styles.js +1 -1
- package/dist/components/layout/page-footer/page-footer.d.ts +84 -0
- package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -0
- package/dist/components/layout/page-footer/page-footer.i18n.d.ts +5 -0
- package/dist/components/layout/page-footer/page-footer.i18n.d.ts.map +1 -0
- package/dist/components/layout/page-footer/page-footer.i18n.js +4 -0
- package/dist/components/layout/page-footer/page-footer.i18n.js.map +1 -0
- package/dist/components/layout/page-footer/page-footer.js +217 -0
- package/dist/components/layout/page-footer/page-footer.js.map +1 -0
- package/dist/components/layout/page-footer/page-footer.styles.d.ts +4 -0
- package/dist/components/layout/page-footer/page-footer.styles.d.ts.map +1 -0
- package/dist/components/layout/page-footer/page-footer.styles.js +207 -0
- package/dist/components/layout/page-footer/page-footer.styles.js.map +1 -0
- package/dist/components/layout/page-footer/page-footer.template.d.ts +6 -0
- package/dist/components/layout/page-footer/page-footer.template.d.ts.map +1 -0
- package/dist/components/layout/page-footer/page-footer.template.js +73 -0
- package/dist/components/layout/page-footer/page-footer.template.js.map +1 -0
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts +26 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js +10 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.js.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js +23 -35
- package/dist/components/layout/page-sections/full-bleed-section/full-bleed-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts +26 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js +10 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js +26 -53
- package/dist/components/layout/page-sections/one-half-one-half-section/one-half-one-half-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts +26 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js +10 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.js.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js +33 -51
- package/dist/components/layout/page-sections/one-third-two-thirds-section/one-third-two-thirds-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/page-section-controls.d.ts +226 -0
- package/dist/components/layout/page-sections/page-section-controls.d.ts.map +1 -0
- package/dist/components/layout/page-sections/page-section-controls.js +104 -0
- package/dist/components/layout/page-sections/page-section-controls.js.map +1 -0
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts +26 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.js +10 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.js.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/simple-section/simple-section.styles.js +24 -38
- package/dist/components/layout/page-sections/simple-section/simple-section.styles.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts +26 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js +10 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.js.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.d.ts.map +1 -1
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js +33 -51
- package/dist/components/layout/page-sections/two-thirds-one-third-section/two-thirds-one-third-section.styles.js.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts +2 -2
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.js.map +1 -1
- package/dist/components/layout/split-views/bar-split-view/bar-split-view.styles.js +1 -1
- package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts +2 -2
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.js.map +1 -1
- package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.js +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts +2 -2
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.js.map +1 -1
- package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.d.ts +2 -2
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.d.ts.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.js.map +1 -1
- package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.js +1 -1
- package/dist/components/layout/window/window.d.ts +5 -0
- package/dist/components/layout/window/window.d.ts.map +1 -1
- package/dist/components/layout/window/window.js +28 -13
- package/dist/components/layout/window/window.js.map +1 -1
- package/dist/components/layout/window/window.styles.d.ts.map +1 -1
- package/dist/components/layout/window/window.styles.js +1 -7
- package/dist/components/layout/window/window.styles.js.map +1 -1
- package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.d.ts +6 -5
- package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.d.ts.map +1 -1
- package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.js +16 -111
- package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.js.map +1 -1
- package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.styles.d.ts +2 -0
- package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.styles.d.ts.map +1 -0
- package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.styles.js +94 -0
- package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.styles.js.map +1 -0
- package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.template.d.ts +4 -0
- package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.template.d.ts.map +1 -0
- package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.template.js +20 -0
- package/dist/components/lists-and-menus/cells/timeline-track-cell/timeline-track-cell.template.js.map +1 -0
- package/dist/components/lists-and-menus/list-item/list-item.styles.d.ts.map +1 -1
- package/dist/components/lists-and-menus/list-item/list-item.styles.js +9 -13
- package/dist/components/lists-and-menus/list-item/list-item.styles.js.map +1 -1
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts +80 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.d.ts +6 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.d.ts.map +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.js +5 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.i18n.js.map +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js +192 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.js.map +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.d.ts +3 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js +124 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js.map +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.d.ts +6 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.d.ts.map +1 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js +57 -0
- package/dist/components/navigation/breadcrumbs/breadcrumbs.template.js.map +1 -0
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js +3 -4
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts +14 -17
- package/dist/components/navigation/menu-bar-item/menu-bar-item.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js +47 -46
- package/dist/components/navigation/menu-bar-item/menu-bar-item.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js +2 -2
- package/dist/components/navigation/menu-bar-item/menu-bar-item.template.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.styles.d.ts.map +1 -1
- package/dist/components/navigation/pagination/pagination.styles.js +6 -0
- package/dist/components/navigation/pagination/pagination.styles.js.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/tab-bar/tab-bar.styles.js +15 -0
- package/dist/components/navigation/tab-bar/tab-bar.styles.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +28 -26
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
- package/dist/components/navigation/top-navigation-bar/top-navigation-bar.template.js +1 -1
- package/dist/components/prism-gherkin-CMPYyXOQ.js +82 -0
- package/dist/components/prism-python-DUL3Gysb.js +99 -0
- package/dist/components/prism-rust-BGBMvZa7.js +157 -0
- package/dist/components/prism-sql-BGqCBMyJ.js +33 -0
- package/dist/components/prism-toml-Ubdq-a5x.js +45 -0
- package/dist/components/{prism-typescript-BX4tFNFm.js → prism-typescript-QDrnGhET.js} +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.d.ts +3 -0
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.d.ts.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js +5 -0
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js +20 -4
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.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 +16 -14
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.template.js.map +1 -1
- package/dist/css/form.css +4 -5
- package/dist/css/rich-text.css +27 -115
- package/dist/css/settings.css +45 -32
- package/dist/utilities/page-section-mixin.d.ts +53 -0
- package/dist/utilities/page-section-mixin.d.ts.map +1 -0
- package/dist/utilities/page-section-mixin.js +239 -0
- package/dist/utilities/page-section-mixin.js.map +1 -0
- package/package.json +12 -4
- package/dist/components/content/code/code.d.ts.map +0 -1
- package/dist/components/content/code/code.js.map +0 -1
- package/dist/components/content/code/code.styles.d.ts +0 -2
- package/dist/components/content/code/code.styles.d.ts.map +0 -1
- package/dist/components/content/code/code.styles.js +0 -89
- package/dist/components/content/code/code.styles.js.map +0 -1
- package/dist/components/content/code/code.template.d.ts +0 -4
- package/dist/components/content/code/code.template.d.ts.map +0 -1
- package/dist/components/content/code/code.template.js.map +0 -1
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { g as getDefaultExportFromCjs } from "./index-CuzqC3j7.js";
|
|
2
|
+
function _mergeNamespaces(n, m) {
|
|
3
|
+
for (var i = 0; i < m.length; i++) {
|
|
4
|
+
const e = m[i];
|
|
5
|
+
if (typeof e !== "string" && !Array.isArray(e)) {
|
|
6
|
+
for (const k in e) {
|
|
7
|
+
if (k !== "default" && !(k in n)) {
|
|
8
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
9
|
+
if (d) {
|
|
10
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: () => e[k]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
|
|
20
|
+
}
|
|
21
|
+
var prismPython$2 = {};
|
|
22
|
+
var hasRequiredPrismPython;
|
|
23
|
+
function requirePrismPython() {
|
|
24
|
+
if (hasRequiredPrismPython) return prismPython$2;
|
|
25
|
+
hasRequiredPrismPython = 1;
|
|
26
|
+
Prism.languages.python = {
|
|
27
|
+
"comment": {
|
|
28
|
+
pattern: /(^|[^\\])#.*/,
|
|
29
|
+
lookbehind: true,
|
|
30
|
+
greedy: true
|
|
31
|
+
},
|
|
32
|
+
"string-interpolation": {
|
|
33
|
+
pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,
|
|
34
|
+
greedy: true,
|
|
35
|
+
inside: {
|
|
36
|
+
"interpolation": {
|
|
37
|
+
// "{" <expression> <optional "!s", "!r", or "!a"> <optional ":" format specifier> "}"
|
|
38
|
+
pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,
|
|
39
|
+
lookbehind: true,
|
|
40
|
+
inside: {
|
|
41
|
+
"format-spec": {
|
|
42
|
+
pattern: /(:)[^:(){}]+(?=\}$)/,
|
|
43
|
+
lookbehind: true
|
|
44
|
+
},
|
|
45
|
+
"conversion-option": {
|
|
46
|
+
pattern: //,
|
|
47
|
+
alias: "punctuation"
|
|
48
|
+
},
|
|
49
|
+
rest: null
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"string": /[\s\S]+/
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"triple-quoted-string": {
|
|
56
|
+
pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,
|
|
57
|
+
greedy: true,
|
|
58
|
+
alias: "string"
|
|
59
|
+
},
|
|
60
|
+
"string": {
|
|
61
|
+
pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,
|
|
62
|
+
greedy: true
|
|
63
|
+
},
|
|
64
|
+
"function": {
|
|
65
|
+
pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,
|
|
66
|
+
lookbehind: true
|
|
67
|
+
},
|
|
68
|
+
"class-name": {
|
|
69
|
+
pattern: /(\bclass\s+)\w+/i,
|
|
70
|
+
lookbehind: true
|
|
71
|
+
},
|
|
72
|
+
"decorator": {
|
|
73
|
+
pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m,
|
|
74
|
+
lookbehind: true,
|
|
75
|
+
alias: ["annotation", "punctuation"],
|
|
76
|
+
inside: {
|
|
77
|
+
"punctuation": /\./
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"keyword": /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,
|
|
81
|
+
"builtin": /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,
|
|
82
|
+
"boolean": /\b(?:False|None|True)\b/,
|
|
83
|
+
"number": /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,
|
|
84
|
+
"operator": /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,
|
|
85
|
+
"punctuation": /[{}[\];(),.:]/
|
|
86
|
+
};
|
|
87
|
+
Prism.languages.python["string-interpolation"].inside["interpolation"].inside.rest = Prism.languages.python;
|
|
88
|
+
Prism.languages.py = Prism.languages.python;
|
|
89
|
+
return prismPython$2;
|
|
90
|
+
}
|
|
91
|
+
var prismPythonExports = requirePrismPython();
|
|
92
|
+
const prismPython = /* @__PURE__ */ getDefaultExportFromCjs(prismPythonExports);
|
|
93
|
+
const prismPython$1 = /* @__PURE__ */ _mergeNamespaces({
|
|
94
|
+
__proto__: null,
|
|
95
|
+
default: prismPython
|
|
96
|
+
}, [prismPythonExports]);
|
|
97
|
+
export {
|
|
98
|
+
prismPython$1 as p
|
|
99
|
+
};
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { g as getDefaultExportFromCjs } from "./index-CuzqC3j7.js";
|
|
2
|
+
function _mergeNamespaces(n, m) {
|
|
3
|
+
for (var i = 0; i < m.length; i++) {
|
|
4
|
+
const e = m[i];
|
|
5
|
+
if (typeof e !== "string" && !Array.isArray(e)) {
|
|
6
|
+
for (const k in e) {
|
|
7
|
+
if (k !== "default" && !(k in n)) {
|
|
8
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
9
|
+
if (d) {
|
|
10
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: () => e[k]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
|
|
20
|
+
}
|
|
21
|
+
var prismRust$2 = {};
|
|
22
|
+
var hasRequiredPrismRust;
|
|
23
|
+
function requirePrismRust() {
|
|
24
|
+
if (hasRequiredPrismRust) return prismRust$2;
|
|
25
|
+
hasRequiredPrismRust = 1;
|
|
26
|
+
(function(Prism2) {
|
|
27
|
+
var multilineComment = /\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source;
|
|
28
|
+
for (var i = 0; i < 2; i++) {
|
|
29
|
+
multilineComment = multilineComment.replace(/<self>/g, function() {
|
|
30
|
+
return multilineComment;
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
multilineComment = multilineComment.replace(/<self>/g, function() {
|
|
34
|
+
return /[^\s\S]/.source;
|
|
35
|
+
});
|
|
36
|
+
Prism2.languages.rust = {
|
|
37
|
+
"comment": [
|
|
38
|
+
{
|
|
39
|
+
pattern: RegExp(/(^|[^\\])/.source + multilineComment),
|
|
40
|
+
lookbehind: true,
|
|
41
|
+
greedy: true
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
pattern: /(^|[^\\:])\/\/.*/,
|
|
45
|
+
lookbehind: true,
|
|
46
|
+
greedy: true
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"string": {
|
|
50
|
+
pattern: /b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,
|
|
51
|
+
greedy: true
|
|
52
|
+
},
|
|
53
|
+
"char": {
|
|
54
|
+
pattern: /b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,
|
|
55
|
+
greedy: true
|
|
56
|
+
},
|
|
57
|
+
"attribute": {
|
|
58
|
+
pattern: /#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,
|
|
59
|
+
greedy: true,
|
|
60
|
+
alias: "attr-name",
|
|
61
|
+
inside: {
|
|
62
|
+
"string": null
|
|
63
|
+
// see below
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
// Closure params should not be confused with bitwise OR |
|
|
67
|
+
"closure-params": {
|
|
68
|
+
pattern: /([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,
|
|
69
|
+
lookbehind: true,
|
|
70
|
+
greedy: true,
|
|
71
|
+
inside: {
|
|
72
|
+
"closure-punctuation": {
|
|
73
|
+
pattern: /^\||\|$/,
|
|
74
|
+
alias: "punctuation"
|
|
75
|
+
},
|
|
76
|
+
rest: null
|
|
77
|
+
// see below
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"lifetime-annotation": {
|
|
81
|
+
pattern: /'\w+/,
|
|
82
|
+
alias: "symbol"
|
|
83
|
+
},
|
|
84
|
+
"fragment-specifier": {
|
|
85
|
+
pattern: /(\$\w+:)[a-z]+/,
|
|
86
|
+
lookbehind: true,
|
|
87
|
+
alias: "punctuation"
|
|
88
|
+
},
|
|
89
|
+
"variable": /\$\w+/,
|
|
90
|
+
"function-definition": {
|
|
91
|
+
pattern: /(\bfn\s+)\w+/,
|
|
92
|
+
lookbehind: true,
|
|
93
|
+
alias: "function"
|
|
94
|
+
},
|
|
95
|
+
"type-definition": {
|
|
96
|
+
pattern: /(\b(?:enum|struct|trait|type|union)\s+)\w+/,
|
|
97
|
+
lookbehind: true,
|
|
98
|
+
alias: "class-name"
|
|
99
|
+
},
|
|
100
|
+
"module-declaration": [
|
|
101
|
+
{
|
|
102
|
+
pattern: /(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,
|
|
103
|
+
lookbehind: true,
|
|
104
|
+
alias: "namespace"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
pattern: /(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,
|
|
108
|
+
lookbehind: true,
|
|
109
|
+
alias: "namespace",
|
|
110
|
+
inside: {
|
|
111
|
+
"punctuation": /::/
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"keyword": [
|
|
116
|
+
// https://github.com/rust-lang/reference/blob/master/src/keywords.md
|
|
117
|
+
/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,
|
|
118
|
+
// primitives and str
|
|
119
|
+
// https://doc.rust-lang.org/stable/rust-by-example/primitives.html
|
|
120
|
+
/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/
|
|
121
|
+
],
|
|
122
|
+
// functions can technically start with an upper-case letter, but this will introduce a lot of false positives
|
|
123
|
+
// and Rust's naming conventions recommend snake_case anyway.
|
|
124
|
+
// https://doc.rust-lang.org/1.0.0/style/style/naming/README.html
|
|
125
|
+
"function": /\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,
|
|
126
|
+
"macro": {
|
|
127
|
+
pattern: /\b\w+!/,
|
|
128
|
+
alias: "property"
|
|
129
|
+
},
|
|
130
|
+
"constant": /\b[A-Z_][A-Z_\d]+\b/,
|
|
131
|
+
"class-name": /\b[A-Z]\w*\b/,
|
|
132
|
+
"namespace": {
|
|
133
|
+
pattern: /(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,
|
|
134
|
+
inside: {
|
|
135
|
+
"punctuation": /::/
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
// Hex, oct, bin, dec numbers with visual separators and type suffix
|
|
139
|
+
"number": /\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,
|
|
140
|
+
"boolean": /\b(?:false|true)\b/,
|
|
141
|
+
"punctuation": /->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,
|
|
142
|
+
"operator": /[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/
|
|
143
|
+
};
|
|
144
|
+
Prism2.languages.rust["closure-params"].inside.rest = Prism2.languages.rust;
|
|
145
|
+
Prism2.languages.rust["attribute"].inside["string"] = Prism2.languages.rust["string"];
|
|
146
|
+
})(Prism);
|
|
147
|
+
return prismRust$2;
|
|
148
|
+
}
|
|
149
|
+
var prismRustExports = requirePrismRust();
|
|
150
|
+
const prismRust = /* @__PURE__ */ getDefaultExportFromCjs(prismRustExports);
|
|
151
|
+
const prismRust$1 = /* @__PURE__ */ _mergeNamespaces({
|
|
152
|
+
__proto__: null,
|
|
153
|
+
default: prismRust
|
|
154
|
+
}, [prismRustExports]);
|
|
155
|
+
export {
|
|
156
|
+
prismRust$1 as p
|
|
157
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
Prism.languages.sql = {
|
|
2
|
+
"comment": {
|
|
3
|
+
pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,
|
|
4
|
+
lookbehind: true
|
|
5
|
+
},
|
|
6
|
+
"variable": [
|
|
7
|
+
{
|
|
8
|
+
pattern: /@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,
|
|
9
|
+
greedy: true
|
|
10
|
+
},
|
|
11
|
+
/@[\w.$]+/
|
|
12
|
+
],
|
|
13
|
+
"string": {
|
|
14
|
+
pattern: /(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,
|
|
15
|
+
greedy: true,
|
|
16
|
+
lookbehind: true
|
|
17
|
+
},
|
|
18
|
+
"identifier": {
|
|
19
|
+
pattern: /(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,
|
|
20
|
+
greedy: true,
|
|
21
|
+
lookbehind: true,
|
|
22
|
+
inside: {
|
|
23
|
+
"punctuation": /^`|`$/
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"function": /\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,
|
|
27
|
+
// Should we highlight user defined functions too?
|
|
28
|
+
"keyword": /\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,
|
|
29
|
+
"boolean": /\b(?:FALSE|NULL|TRUE)\b/i,
|
|
30
|
+
"number": /\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,
|
|
31
|
+
"operator": /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,
|
|
32
|
+
"punctuation": /[;[\]()`,.]/
|
|
33
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
(function(Prism2) {
|
|
2
|
+
var key = /(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;
|
|
3
|
+
function insertKey(pattern) {
|
|
4
|
+
return pattern.replace(/__/g, function() {
|
|
5
|
+
return key;
|
|
6
|
+
});
|
|
7
|
+
}
|
|
8
|
+
Prism2.languages.toml = {
|
|
9
|
+
"comment": {
|
|
10
|
+
pattern: /#.*/,
|
|
11
|
+
greedy: true
|
|
12
|
+
},
|
|
13
|
+
"table": {
|
|
14
|
+
pattern: RegExp(insertKey(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source), "m"),
|
|
15
|
+
lookbehind: true,
|
|
16
|
+
greedy: true,
|
|
17
|
+
alias: "class-name"
|
|
18
|
+
},
|
|
19
|
+
"key": {
|
|
20
|
+
pattern: RegExp(insertKey(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source), "m"),
|
|
21
|
+
lookbehind: true,
|
|
22
|
+
greedy: true,
|
|
23
|
+
alias: "property"
|
|
24
|
+
},
|
|
25
|
+
"string": {
|
|
26
|
+
pattern: /"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,
|
|
27
|
+
greedy: true
|
|
28
|
+
},
|
|
29
|
+
"date": [
|
|
30
|
+
{
|
|
31
|
+
// Offset Date-Time, Local Date-Time, Local Date
|
|
32
|
+
pattern: /\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,
|
|
33
|
+
alias: "number"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
// Local Time
|
|
37
|
+
pattern: /\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,
|
|
38
|
+
alias: "number"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"number": /(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,
|
|
42
|
+
"boolean": /\b(?:false|true)\b/,
|
|
43
|
+
"punctuation": /[.,=[\]{}]/
|
|
44
|
+
};
|
|
45
|
+
})(Prism);
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* @element nldd-inline-dialog
|
|
8
8
|
*
|
|
9
9
|
* @attr {'alert'|'success'} variant - Semantic variant; 'alert' or 'success' forces a matching icon and color
|
|
10
|
+
* @attr {'md'|'lg'} size - Typography size: 'md' (default) keeps body-md text + body-sm supporting; 'lg' bumps both up a step.
|
|
10
11
|
* @attr {string} icon - Name of the nldd-icon icon above the text; absent when not set. Ignored when variant is set.
|
|
11
12
|
* @attr {string} icon-color - 'secondary' | 'accent' | 'critical' | 'warning' | 'success'. Overrides the default and variant icon color.
|
|
12
13
|
* @attr {string} text - Main text (heading or paragraph, depending on heading-level)
|
|
@@ -20,10 +21,12 @@ import { LitElement } from 'lit';
|
|
|
20
21
|
import '../../content/icon/icon.js';
|
|
21
22
|
import '../../actions/button-group/button-group.js';
|
|
22
23
|
export type InlineDialogVariant = 'alert' | 'success';
|
|
24
|
+
export type InlineDialogSize = 'md' | 'lg';
|
|
23
25
|
export type InlineDialogIconColor = 'secondary' | 'accent' | 'critical' | 'warning' | 'success';
|
|
24
26
|
export declare class NLDDInlineDialog extends LitElement {
|
|
25
27
|
static styles: import("lit").CSSResult;
|
|
26
28
|
variant: InlineDialogVariant | '';
|
|
29
|
+
size: InlineDialogSize;
|
|
27
30
|
icon: string;
|
|
28
31
|
iconColor: InlineDialogIconColor | '';
|
|
29
32
|
text: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/inline-dialog/inline-dialog.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"inline-dialog.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/inline-dialog/inline-dialog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAIjC,OAAO,4BAA4B,CAAC;AACpC,OAAO,4CAA4C,CAAC;AAEpD,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,SAAS,CAAC;AACtD,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,IAAI,CAAC;AAC3C,MAAM,MAAM,qBAAqB,GAAG,WAAW,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;AAEhG,qBACa,gBAAiB,SAAQ,UAAU;IAC/C,OAAgB,MAAM,0BAAsB;IAG5C,OAAO,EAAE,mBAAmB,GAAG,EAAE,CAAM;IAGvC,IAAI,EAAE,gBAAgB,CAAQ;IAG9B,IAAI,SAAM;IAGV,SAAS,EAAE,qBAAqB,GAAG,EAAE,CAAM;IAG3C,IAAI,SAAM;IAGV,cAAc,SAAM;IAGpB,YAAY,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAQ;IAGlD,WAAW,UAAS;IAGpB,WAAW,UAAS;IAEpB,IAAI,iBAAiB,IAAI,MAAM,CAK9B;IAEQ,YAAY;IAsBZ,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,oBAAoB,EAAE,gBAAgB,CAAC;KACvC;CACD"}
|
|
@@ -13,6 +13,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
13
13
|
* @element nldd-inline-dialog
|
|
14
14
|
*
|
|
15
15
|
* @attr {'alert'|'success'} variant - Semantic variant; 'alert' or 'success' forces a matching icon and color
|
|
16
|
+
* @attr {'md'|'lg'} size - Typography size: 'md' (default) keeps body-md text + body-sm supporting; 'lg' bumps both up a step.
|
|
16
17
|
* @attr {string} icon - Name of the nldd-icon icon above the text; absent when not set. Ignored when variant is set.
|
|
17
18
|
* @attr {string} icon-color - 'secondary' | 'accent' | 'critical' | 'warning' | 'success'. Overrides the default and variant icon color.
|
|
18
19
|
* @attr {string} text - Main text (heading or paragraph, depending on heading-level)
|
|
@@ -32,6 +33,7 @@ let NLDDInlineDialog = class NLDDInlineDialog extends LitElement {
|
|
|
32
33
|
constructor() {
|
|
33
34
|
super(...arguments);
|
|
34
35
|
this.variant = '';
|
|
36
|
+
this.size = 'md';
|
|
35
37
|
this.icon = '';
|
|
36
38
|
this.iconColor = '';
|
|
37
39
|
this.text = '';
|
|
@@ -76,6 +78,9 @@ NLDDInlineDialog.styles = inlineDialogStyles;
|
|
|
76
78
|
__decorate([
|
|
77
79
|
property({ type: String, reflect: true })
|
|
78
80
|
], NLDDInlineDialog.prototype, "variant", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
property({ type: String, reflect: true })
|
|
83
|
+
], NLDDInlineDialog.prototype, "size", void 0);
|
|
79
84
|
__decorate([
|
|
80
85
|
property({ type: String, reflect: true })
|
|
81
86
|
], NLDDInlineDialog.prototype, "icon", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-dialog.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/inline-dialog/inline-dialog.ts"],"names":[],"mappings":";;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"inline-dialog.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/inline-dialog/inline-dialog.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-dialog.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/inline-dialog/inline-dialog.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"inline-dialog.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/inline-dialog/inline-dialog.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,yBA0H9B,CAAC"}
|
|
@@ -7,6 +7,8 @@ export const inlineDialogStyles = css `
|
|
|
7
7
|
:host {
|
|
8
8
|
--_icon-size: var(--primitives-space-48);
|
|
9
9
|
--_icon-color: var(--components-inline-dialog-icon-color);
|
|
10
|
+
--_text-font: var(--primitives-font-body-md-bold-tight);
|
|
11
|
+
--_supporting-text-font: var(--primitives-font-body-sm-regular-tight);
|
|
10
12
|
|
|
11
13
|
display: flex;
|
|
12
14
|
flex-grow: 1;
|
|
@@ -14,6 +16,12 @@ export const inlineDialogStyles = css `
|
|
|
14
16
|
justify-content: center;
|
|
15
17
|
}
|
|
16
18
|
|
|
19
|
+
:host([size="lg"]) {
|
|
20
|
+
--_icon-size: var(--primitives-space-56);
|
|
21
|
+
--_text-font: var(--primitives-font-body-lg-bold-tight);
|
|
22
|
+
--_supporting-text-font: var(--primitives-font-body-md-regular-tight);
|
|
23
|
+
}
|
|
24
|
+
|
|
17
25
|
:host([variant="alert"]) {
|
|
18
26
|
--_icon-color: var(--components-inline-dialog-icon-warning-color);
|
|
19
27
|
}
|
|
@@ -58,6 +66,14 @@ export const inlineDialogStyles = css `
|
|
|
58
66
|
align-items: center;
|
|
59
67
|
}
|
|
60
68
|
|
|
69
|
+
.inline-dialog__main {
|
|
70
|
+
display: flex;
|
|
71
|
+
width: 100%;
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
align-items: center;
|
|
74
|
+
gap: var(--primitives-space-2);
|
|
75
|
+
}
|
|
76
|
+
|
|
61
77
|
.inline-dialog__icon {
|
|
62
78
|
display: flex;
|
|
63
79
|
width: var(--_icon-size);
|
|
@@ -72,7 +88,7 @@ export const inlineDialogStyles = css `
|
|
|
72
88
|
margin: 0;
|
|
73
89
|
text-align: center;
|
|
74
90
|
color: var(--semantics-content-color);
|
|
75
|
-
font: var(--
|
|
91
|
+
font: var(--_text-font);
|
|
76
92
|
text-wrap: pretty;
|
|
77
93
|
}
|
|
78
94
|
|
|
@@ -85,7 +101,7 @@ export const inlineDialogStyles = css `
|
|
|
85
101
|
margin: 0;
|
|
86
102
|
text-align: center;
|
|
87
103
|
color: var(--semantics-content-color);
|
|
88
|
-
font: var(--
|
|
104
|
+
font: var(--_supporting-text-font);
|
|
89
105
|
text-wrap: pretty;
|
|
90
106
|
}
|
|
91
107
|
|
|
@@ -97,12 +113,12 @@ export const inlineDialogStyles = css `
|
|
|
97
113
|
display: none;
|
|
98
114
|
}
|
|
99
115
|
|
|
100
|
-
.inline-
|
|
116
|
+
.inline-dialog__footer {
|
|
101
117
|
width: 100%;
|
|
102
118
|
padding-top: var(--primitives-space-16);
|
|
103
119
|
}
|
|
104
120
|
|
|
105
|
-
.inline-
|
|
121
|
+
.inline-dialog__footer[hidden] {
|
|
106
122
|
display: none;
|
|
107
123
|
}
|
|
108
124
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-dialog.styles.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/inline-dialog/inline-dialog.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"inline-dialog.styles.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/inline-dialog/inline-dialog.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0HpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-dialog.template.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/inline-dialog/inline-dialog.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"inline-dialog.template.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/inline-dialog/inline-dialog.template.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,gBAAgB,wCAgC/D"}
|
|
@@ -2,27 +2,29 @@ import { html, nothing } from 'lit';
|
|
|
2
2
|
export function inlineDialogTemplate(component) {
|
|
3
3
|
return html `
|
|
4
4
|
<div class="inline-dialog__body">
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
${component.
|
|
5
|
+
<div class="inline-dialog__main">
|
|
6
|
+
${component._resolvedIconName ? html `
|
|
7
|
+
<div class="inline-dialog__icon">
|
|
8
|
+
<nldd-icon name=${component._resolvedIconName}></nldd-icon>
|
|
9
|
+
</div>
|
|
10
|
+
` : nothing}
|
|
11
|
+
${component.text ? html `
|
|
12
|
+
${component.headingLevel === 1 ? html `<h1 class="inline-dialog__text">${component.text}</h1>`
|
|
12
13
|
: component.headingLevel === 2 ? html `<h2 class="inline-dialog__text">${component.text}</h2>`
|
|
13
14
|
: component.headingLevel === 3 ? html `<h3 class="inline-dialog__text">${component.text}</h3>`
|
|
14
15
|
: component.headingLevel === 4 ? html `<h4 class="inline-dialog__text">${component.text}</h4>`
|
|
15
16
|
: component.headingLevel === 5 ? html `<h5 class="inline-dialog__text">${component.text}</h5>`
|
|
16
17
|
: component.headingLevel === 6 ? html `<h6 class="inline-dialog__text">${component.text}</h6>`
|
|
17
18
|
: html `<p class="inline-dialog__text">${component.text}</p>`}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
` : nothing}
|
|
20
|
+
${component.supportingText ? html `
|
|
21
|
+
<p class="inline-dialog__supporting-text">${component.supportingText}</p>
|
|
22
|
+
` : nothing}
|
|
23
|
+
<div class="inline-dialog__content" ?hidden=${!component._hasContent}>
|
|
24
|
+
<slot></slot>
|
|
25
|
+
</div>
|
|
24
26
|
</div>
|
|
25
|
-
<div class="inline-
|
|
27
|
+
<div class="inline-dialog__footer" ?hidden=${!component._hasActions}>
|
|
26
28
|
<nldd-button-group orientation="vertical">
|
|
27
29
|
<slot name="actions"></slot>
|
|
28
30
|
</nldd-button-group>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline-dialog.template.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/inline-dialog/inline-dialog.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAGpC,MAAM,UAAU,oBAAoB,CAAC,SAA2B;IAC/D,OAAO,IAAI,CAAA
|
|
1
|
+
{"version":3,"file":"inline-dialog.template.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/inline-dialog/inline-dialog.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAGpC,MAAM,UAAU,oBAAoB,CAAC,SAA2B;IAC/D,OAAO,IAAI,CAAA;;;MAGN,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC,IAAI,CAAA;;wBAEhB,SAAS,CAAC,iBAAiB;;KAE9C,CAAC,CAAC,CAAC,OAAO;MACT,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAA;OACpB,SAAS,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA,mCAAmC,SAAS,CAAC,IAAI,OAAO;QAC7F,CAAC,CAAC,SAAS,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA,mCAAmC,SAAS,CAAC,IAAI,OAAO;YAC7F,CAAC,CAAC,SAAS,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA,mCAAmC,SAAS,CAAC,IAAI,OAAO;gBAC7F,CAAC,CAAC,SAAS,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA,mCAAmC,SAAS,CAAC,IAAI,OAAO;oBAC7F,CAAC,CAAC,SAAS,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA,mCAAmC,SAAS,CAAC,IAAI,OAAO;wBAC7F,CAAC,CAAC,SAAS,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA,mCAAmC,SAAS,CAAC,IAAI,OAAO;4BAC7F,CAAC,CAAC,IAAI,CAAA,kCAAkC,SAAS,CAAC,IAAI,MAAM;KAC5D,CAAC,CAAC,CAAC,OAAO;MACT,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAA;iDACY,SAAS,CAAC,cAAc;KACpE,CAAC,CAAC,CAAC,OAAO;kDACmC,CAAC,SAAS,CAAC,WAAW;;;;gDAIxB,CAAC,SAAS,CAAC,WAAW;;;;;;EAMpE,CAAC;AACH,CAAC"}
|
package/dist/css/form.css
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/* # Host */
|
|
2
2
|
|
|
3
3
|
nldd-form {
|
|
4
|
-
display: block;
|
|
5
4
|
container-type: inline-size;
|
|
6
|
-
|
|
5
|
+
display: block;
|
|
7
6
|
}
|
|
8
7
|
|
|
9
8
|
nldd-form > form {
|
|
@@ -15,16 +14,16 @@ nldd-form > form > * + * {
|
|
|
15
14
|
}
|
|
16
15
|
|
|
17
16
|
nldd-form nldd-form-field + nldd-form-field {
|
|
18
|
-
@container
|
|
17
|
+
@container (max-width: 640px) {
|
|
19
18
|
margin-top: var(--semantics-forms-gap-tight);
|
|
20
19
|
}
|
|
21
|
-
@container
|
|
20
|
+
@container (min-width: 641px) {
|
|
22
21
|
margin-top: var(--semantics-forms-gap);
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
nldd-form nldd-form-field[form-label-alignment='top']:not([label-alignment='left']):not([label-alignment='right']) + nldd-form-field[form-label-alignment='top']:not([label-alignment='left']):not([label-alignment='right']) {
|
|
27
|
-
@container
|
|
26
|
+
@container (min-width: 641px) {
|
|
28
27
|
margin-top: var(--semantics-forms-gap-tight);
|
|
29
28
|
}
|
|
30
29
|
}
|