@nldd/design-system 0.8.39 → 0.8.41
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.styles.d.ts.map +1 -1
- package/dist/components/actions/button/button.styles.js +32 -20
- package/dist/components/actions/button/button.styles.js.map +1 -1
- package/dist/components/actions/button-bar/button-bar.styles.d.ts.map +1 -1
- package/dist/components/actions/button-bar/button-bar.styles.js +22 -0
- package/dist/components/actions/button-bar/button-bar.styles.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 +0 -1
- package/dist/components/actions/button-group/button-group.styles.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +6 -0
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +9 -0
- 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 +33 -21
- package/dist/components/actions/icon-button/icon-button.styles.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.js +1 -1
- package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
- package/dist/components/actions/link/link.styles.d.ts.map +1 -1
- package/dist/components/actions/link/link.styles.js +4 -2
- package/dist/components/actions/link/link.styles.js.map +1 -1
- package/dist/components/actions/split-button/split-button.styles.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.styles.js +14 -1
- package/dist/components/actions/split-button/split-button.styles.js.map +1 -1
- package/dist/components/actions/split-button/split-button.template.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.template.js +1 -0
- package/dist/components/actions/split-button/split-button.template.js.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.d.ts.map +1 -1
- package/dist/components/actions/toolbar/toolbar.styles.js +3 -2
- package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
- package/dist/components/components.js +83 -24189
- package/dist/components/content/blockquote/blockquote.styles.d.ts.map +1 -1
- package/dist/components/content/blockquote/blockquote.styles.js +1 -0
- package/dist/components/content/blockquote/blockquote.styles.js.map +1 -1
- package/dist/components/content/code/code.d.ts +58 -0
- package/dist/components/content/code/code.d.ts.map +1 -0
- package/dist/components/content/code/code.js +155 -0
- package/dist/components/content/code/code.js.map +1 -0
- package/dist/components/content/code/code.styles.d.ts +2 -0
- package/dist/components/content/code/code.styles.d.ts.map +1 -0
- package/dist/components/content/code/code.styles.js +105 -0
- package/dist/components/content/code/code.styles.js.map +1 -0
- package/dist/components/content/code/code.template.d.ts +4 -0
- package/dist/components/content/code/code.template.d.ts.map +1 -0
- package/dist/components/content/code/code.template.js +18 -0
- package/dist/components/content/code/code.template.js.map +1 -0
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +1 -0
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js.map +1 -1
- package/dist/components/content/tag/tag.styles.d.ts.map +1 -1
- package/dist/components/content/tag/tag.styles.js +1 -0
- package/dist/components/content/tag/tag.styles.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.js +2 -1
- package/dist/components/content/tooltip/tooltip.styles.js.map +1 -1
- package/dist/components/forms/form-field/form-field.styles.d.ts.map +1 -1
- package/dist/components/forms/form-field/form-field.styles.js +8 -4
- package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
- package/dist/components/index-DMYkp2tq.js +26919 -0
- 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.d.ts +9 -1
- package/dist/components/inputs/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.js +22 -1
- package/dist/components/inputs/checkbox/checkbox.js.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.styles.d.ts.map +1 -1
- package/dist/components/inputs/checkbox/checkbox.styles.js +11 -9
- package/dist/components/inputs/checkbox/checkbox.styles.js.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.d.ts +77 -0
- package/dist/components/inputs/code-editor/code-editor.d.ts.map +1 -0
- package/dist/components/inputs/code-editor/code-editor.js +163 -0
- package/dist/components/inputs/code-editor/code-editor.js.map +1 -0
- package/dist/components/inputs/code-editor/code-editor.styles.d.ts +2 -0
- package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -0
- package/dist/components/inputs/code-editor/code-editor.styles.js +110 -0
- package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -0
- package/dist/components/inputs/code-editor/code-editor.template.d.ts +4 -0
- package/dist/components/inputs/code-editor/code-editor.template.d.ts.map +1 -0
- package/dist/components/inputs/code-editor/code-editor.template.js +24 -0
- package/dist/components/inputs/code-editor/code-editor.template.js.map +1 -0
- package/dist/components/inputs/combo-box/combo-box.d.ts +7 -0
- package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.js +34 -1
- package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.js +2 -1
- package/dist/components/inputs/combo-box/combo-box.styles.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.template.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.template.js +2 -0
- package/dist/components/inputs/combo-box/combo-box.template.js.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.styles.d.ts.map +1 -1
- package/dist/components/inputs/dropdown/dropdown.styles.js +2 -1
- package/dist/components/inputs/dropdown/dropdown.styles.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts +74 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts.map +1 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js +175 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js.map +1 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.d.ts +2 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.d.ts.map +1 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +175 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js.map +1 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.d.ts +5 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.d.ts.map +1 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js +48 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js.map +1 -0
- package/dist/components/inputs/number-field/number-field.d.ts +6 -0
- package/dist/components/inputs/number-field/number-field.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.js +21 -1
- package/dist/components/inputs/number-field/number-field.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.styles.js +2 -1
- package/dist/components/inputs/number-field/number-field.styles.js.map +1 -1
- package/dist/components/inputs/number-field/number-field.template.d.ts.map +1 -1
- package/dist/components/inputs/number-field/number-field.template.js +2 -0
- package/dist/components/inputs/number-field/number-field.template.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.d.ts +7 -4
- package/dist/components/inputs/password-field/password-field.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.js +20 -5
- package/dist/components/inputs/password-field/password-field.js.map +1 -1
- package/dist/components/inputs/password-field/password-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/password-field/password-field.styles.js +2 -1
- package/dist/components/inputs/password-field/password-field.styles.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.d.ts +9 -1
- package/dist/components/inputs/radio-button/radio-button.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.js +21 -1
- package/dist/components/inputs/radio-button/radio-button.js.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.styles.d.ts.map +1 -1
- package/dist/components/inputs/radio-button/radio-button.styles.js +13 -11
- package/dist/components/inputs/radio-button/radio-button.styles.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.d.ts +7 -0
- package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +20 -1
- package/dist/components/inputs/search-field/search-field.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts +8 -0
- package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.js +48 -1
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.styles.js +8 -5
- package/dist/components/inputs/segmented-control/segmented-control.styles.js.map +1 -1
- package/dist/components/inputs/stepper/stepper.d.ts +10 -1
- package/dist/components/inputs/stepper/stepper.d.ts.map +1 -1
- package/dist/components/inputs/stepper/stepper.js +28 -0
- package/dist/components/inputs/stepper/stepper.js.map +1 -1
- package/dist/components/inputs/stepper/stepper.template.d.ts.map +1 -1
- package/dist/components/inputs/stepper/stepper.template.js +2 -0
- package/dist/components/inputs/stepper/stepper.template.js.map +1 -1
- package/dist/components/inputs/switch/switch.d.ts +9 -1
- package/dist/components/inputs/switch/switch.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.js +22 -0
- package/dist/components/inputs/switch/switch.js.map +1 -1
- package/dist/components/inputs/switch/switch.styles.d.ts.map +1 -1
- package/dist/components/inputs/switch/switch.styles.js +4 -3
- package/dist/components/inputs/switch/switch.styles.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.d.ts +7 -3
- package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.js +20 -4
- package/dist/components/inputs/text-field/text-field.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.styles.js +2 -1
- package/dist/components/inputs/text-field/text-field.styles.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +9 -2
- package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.js +22 -2
- package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.styles.js +12 -8
- package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
- package/dist/components/inputs/token/token.styles.d.ts.map +1 -1
- package/dist/components/inputs/token/token.styles.js +10 -6
- package/dist/components/inputs/token/token.styles.js.map +1 -1
- package/dist/components/inputs/token/token.template.d.ts.map +1 -1
- package/dist/components/inputs/token/token.template.js +1 -0
- package/dist/components/inputs/token/token.template.js.map +1 -1
- package/dist/components/layout/app-view/app-view.d.ts +7 -0
- package/dist/components/layout/app-view/app-view.d.ts.map +1 -1
- package/dist/components/layout/app-view/app-view.js +13 -1
- package/dist/components/layout/app-view/app-view.js.map +1 -1
- package/dist/components/layout/page/page.styles.d.ts.map +1 -1
- package/dist/components/layout/page/page.styles.js +2 -0
- package/dist/components/layout/page/page.styles.js.map +1 -1
- package/dist/components/layout/sheet/sheet.d.ts +4 -0
- package/dist/components/layout/sheet/sheet.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.js +7 -0
- package/dist/components/layout/sheet/sheet.js.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.js +20 -1
- package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
- package/dist/components/lists-and-menus/cells/cell/cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-menus/cells/cell/cell.styles.js +10 -5
- package/dist/components/lists-and-menus/cells/cell/cell.styles.js.map +1 -1
- package/dist/components/lists-and-menus/cells/description-cell/description-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-menus/cells/description-cell/description-cell.styles.js +9 -4
- package/dist/components/lists-and-menus/cells/description-cell/description-cell.styles.js.map +1 -1
- package/dist/components/lists-and-menus/cells/text-cell/text-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-menus/cells/text-cell/text-cell.styles.js +9 -4
- package/dist/components/lists-and-menus/cells/text-cell/text-cell.styles.js.map +1 -1
- package/dist/components/lists-and-menus/cells/title-cell/title-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-menus/cells/title-cell/title-cell.styles.js +9 -4
- package/dist/components/lists-and-menus/cells/title-cell/title-cell.styles.js.map +1 -1
- package/dist/components/lists-and-menus/list/list.styles.d.ts.map +1 -1
- package/dist/components/lists-and-menus/list/list.styles.js +4 -3
- package/dist/components/lists-and-menus/list/list.styles.js.map +1 -1
- 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 +23 -18
- package/dist/components/lists-and-menus/list-item/list-item.styles.js.map +1 -1
- package/dist/components/lists-and-menus/menu/menu.styles.d.ts.map +1 -1
- package/dist/components/lists-and-menus/menu/menu.styles.js +9 -7
- package/dist/components/lists-and-menus/menu/menu.styles.js.map +1 -1
- 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 +20 -11
- 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.styles.d.ts.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js +9 -4
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js.map +1 -1
- package/dist/components/navigation/pagination/pagination.styles.d.ts.map +1 -1
- package/dist/components/navigation/pagination/pagination.styles.js +10 -3
- package/dist/components/navigation/pagination/pagination.styles.js.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.styles.d.ts.map +1 -1
- package/dist/components/navigation/skip-link/skip-link.styles.js +1 -0
- package/dist/components/navigation/skip-link/skip-link.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 +9 -3
- package/dist/components/navigation/tab-bar/tab-bar.styles.js.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +5 -0
- package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
- package/dist/components/navigation/top-title-bar/top-title-bar.js +19 -7
- package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
- package/dist/components/prism-bash-vbqaw3JR.js +226 -0
- package/dist/components/prism-css-B93tXdOU.js +59 -0
- package/dist/components/prism-javascript-DeC_17Pw.js +140 -0
- package/dist/components/prism-json-DIMpow89.js +25 -0
- package/dist/components/prism-markdown-D-uFBkiz.js +339 -0
- package/dist/components/prism-markup-DfJYPYHA.js +177 -0
- package/dist/components/prism-typescript-9LDqHHRS.js +87 -0
- package/dist/components/prism-yaml-DO0f9pf6.js +71 -0
- package/dist/components/status-and-feedback/badge/badge.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.styles.js +1 -0
- package/dist/components/status-and-feedback/badge/badge.styles.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 +6 -5
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +8 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js +2 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js.map +1 -1
- package/dist/css/settings.css +70 -1
- package/package.json +16 -2
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
(function(Prism2) {
|
|
2
|
+
var inner = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
|
|
3
|
+
function createInline(pattern) {
|
|
4
|
+
pattern = pattern.replace(/<inner>/g, function() {
|
|
5
|
+
return inner;
|
|
6
|
+
});
|
|
7
|
+
return RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + pattern + ")");
|
|
8
|
+
}
|
|
9
|
+
var tableCell = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source;
|
|
10
|
+
var tableRow = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
|
|
11
|
+
return tableCell;
|
|
12
|
+
});
|
|
13
|
+
var tableLine = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;
|
|
14
|
+
Prism2.languages.markdown = Prism2.languages.extend("markup", {});
|
|
15
|
+
Prism2.languages.insertBefore("markdown", "prolog", {
|
|
16
|
+
"front-matter-block": {
|
|
17
|
+
pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,
|
|
18
|
+
lookbehind: true,
|
|
19
|
+
greedy: true,
|
|
20
|
+
inside: {
|
|
21
|
+
"punctuation": /^---|---$/,
|
|
22
|
+
"front-matter": {
|
|
23
|
+
pattern: /\S+(?:\s+\S+)*/,
|
|
24
|
+
alias: ["yaml", "language-yaml"],
|
|
25
|
+
inside: Prism2.languages.yaml
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"blockquote": {
|
|
30
|
+
// > ...
|
|
31
|
+
pattern: /^>(?:[\t ]*>)*/m,
|
|
32
|
+
alias: "punctuation"
|
|
33
|
+
},
|
|
34
|
+
"table": {
|
|
35
|
+
pattern: RegExp("^" + tableRow + tableLine + "(?:" + tableRow + ")*", "m"),
|
|
36
|
+
inside: {
|
|
37
|
+
"table-data-rows": {
|
|
38
|
+
pattern: RegExp("^(" + tableRow + tableLine + ")(?:" + tableRow + ")*$"),
|
|
39
|
+
lookbehind: true,
|
|
40
|
+
inside: {
|
|
41
|
+
"table-data": {
|
|
42
|
+
pattern: RegExp(tableCell),
|
|
43
|
+
inside: Prism2.languages.markdown
|
|
44
|
+
},
|
|
45
|
+
"punctuation": /\|/
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"table-line": {
|
|
49
|
+
pattern: RegExp("^(" + tableRow + ")" + tableLine + "$"),
|
|
50
|
+
lookbehind: true,
|
|
51
|
+
inside: {
|
|
52
|
+
"punctuation": /\||:?-{3,}:?/
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"table-header-row": {
|
|
56
|
+
pattern: RegExp("^" + tableRow + "$"),
|
|
57
|
+
inside: {
|
|
58
|
+
"table-header": {
|
|
59
|
+
pattern: RegExp(tableCell),
|
|
60
|
+
alias: "important",
|
|
61
|
+
inside: Prism2.languages.markdown
|
|
62
|
+
},
|
|
63
|
+
"punctuation": /\|/
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"code": [
|
|
69
|
+
{
|
|
70
|
+
// Prefixed by 4 spaces or 1 tab and preceded by an empty line
|
|
71
|
+
pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,
|
|
72
|
+
lookbehind: true,
|
|
73
|
+
alias: "keyword"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
// ```optional language
|
|
77
|
+
// code block
|
|
78
|
+
// ```
|
|
79
|
+
pattern: /^```[\s\S]*?^```$/m,
|
|
80
|
+
greedy: true,
|
|
81
|
+
inside: {
|
|
82
|
+
"code-block": {
|
|
83
|
+
pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,
|
|
84
|
+
lookbehind: true
|
|
85
|
+
},
|
|
86
|
+
"code-language": {
|
|
87
|
+
pattern: /^(```).+/,
|
|
88
|
+
lookbehind: true
|
|
89
|
+
},
|
|
90
|
+
"punctuation": /```/
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"title": [
|
|
95
|
+
{
|
|
96
|
+
// title 1
|
|
97
|
+
// =======
|
|
98
|
+
// title 2
|
|
99
|
+
// -------
|
|
100
|
+
pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,
|
|
101
|
+
alias: "important",
|
|
102
|
+
inside: {
|
|
103
|
+
punctuation: /==+$|--+$/
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
// # title 1
|
|
108
|
+
// ###### title 6
|
|
109
|
+
pattern: /(^\s*)#.+/m,
|
|
110
|
+
lookbehind: true,
|
|
111
|
+
alias: "important",
|
|
112
|
+
inside: {
|
|
113
|
+
punctuation: /^#+|#+$/
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"hr": {
|
|
118
|
+
// ***
|
|
119
|
+
// ---
|
|
120
|
+
// * * *
|
|
121
|
+
// -----------
|
|
122
|
+
pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,
|
|
123
|
+
lookbehind: true,
|
|
124
|
+
alias: "punctuation"
|
|
125
|
+
},
|
|
126
|
+
"list": {
|
|
127
|
+
// * item
|
|
128
|
+
// + item
|
|
129
|
+
// - item
|
|
130
|
+
// 1. item
|
|
131
|
+
pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,
|
|
132
|
+
lookbehind: true,
|
|
133
|
+
alias: "punctuation"
|
|
134
|
+
},
|
|
135
|
+
"url-reference": {
|
|
136
|
+
// [id]: http://example.com "Optional title"
|
|
137
|
+
// [id]: http://example.com 'Optional title'
|
|
138
|
+
// [id]: http://example.com (Optional title)
|
|
139
|
+
// [id]: <http://example.com> "Optional title"
|
|
140
|
+
pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,
|
|
141
|
+
inside: {
|
|
142
|
+
"variable": {
|
|
143
|
+
pattern: /^(!?\[)[^\]]+/,
|
|
144
|
+
lookbehind: true
|
|
145
|
+
},
|
|
146
|
+
"string": /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,
|
|
147
|
+
"punctuation": /^[\[\]!:]|[<>]/
|
|
148
|
+
},
|
|
149
|
+
alias: "url"
|
|
150
|
+
},
|
|
151
|
+
"bold": {
|
|
152
|
+
// **strong**
|
|
153
|
+
// __strong__
|
|
154
|
+
// allow one nested instance of italic text using the same delimiter
|
|
155
|
+
pattern: createInline(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),
|
|
156
|
+
lookbehind: true,
|
|
157
|
+
greedy: true,
|
|
158
|
+
inside: {
|
|
159
|
+
"content": {
|
|
160
|
+
pattern: /(^..)[\s\S]+(?=..$)/,
|
|
161
|
+
lookbehind: true,
|
|
162
|
+
inside: {}
|
|
163
|
+
// see below
|
|
164
|
+
},
|
|
165
|
+
"punctuation": /\*\*|__/
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"italic": {
|
|
169
|
+
// *em*
|
|
170
|
+
// _em_
|
|
171
|
+
// allow one nested instance of bold text using the same delimiter
|
|
172
|
+
pattern: createInline(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),
|
|
173
|
+
lookbehind: true,
|
|
174
|
+
greedy: true,
|
|
175
|
+
inside: {
|
|
176
|
+
"content": {
|
|
177
|
+
pattern: /(^.)[\s\S]+(?=.$)/,
|
|
178
|
+
lookbehind: true,
|
|
179
|
+
inside: {}
|
|
180
|
+
// see below
|
|
181
|
+
},
|
|
182
|
+
"punctuation": /[*_]/
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
"strike": {
|
|
186
|
+
// ~~strike through~~
|
|
187
|
+
// ~strike~
|
|
188
|
+
// eslint-disable-next-line regexp/strict
|
|
189
|
+
pattern: createInline(/(~~?)(?:(?!~)<inner>)+\2/.source),
|
|
190
|
+
lookbehind: true,
|
|
191
|
+
greedy: true,
|
|
192
|
+
inside: {
|
|
193
|
+
"content": {
|
|
194
|
+
pattern: /(^~~?)[\s\S]+(?=\1$)/,
|
|
195
|
+
lookbehind: true,
|
|
196
|
+
inside: {}
|
|
197
|
+
// see below
|
|
198
|
+
},
|
|
199
|
+
"punctuation": /~~?/
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"code-snippet": {
|
|
203
|
+
// `code`
|
|
204
|
+
// ``code``
|
|
205
|
+
pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,
|
|
206
|
+
lookbehind: true,
|
|
207
|
+
greedy: true,
|
|
208
|
+
alias: ["code", "keyword"]
|
|
209
|
+
},
|
|
210
|
+
"url": {
|
|
211
|
+
// [example](http://example.com "Optional title")
|
|
212
|
+
// [example][id]
|
|
213
|
+
// [example] [id]
|
|
214
|
+
pattern: createInline(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),
|
|
215
|
+
lookbehind: true,
|
|
216
|
+
greedy: true,
|
|
217
|
+
inside: {
|
|
218
|
+
"operator": /^!/,
|
|
219
|
+
"content": {
|
|
220
|
+
pattern: /(^\[)[^\]]+(?=\])/,
|
|
221
|
+
lookbehind: true,
|
|
222
|
+
inside: {}
|
|
223
|
+
// see below
|
|
224
|
+
},
|
|
225
|
+
"variable": {
|
|
226
|
+
pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/,
|
|
227
|
+
lookbehind: true
|
|
228
|
+
},
|
|
229
|
+
"url": {
|
|
230
|
+
pattern: /(^\]\()[^\s)]+/,
|
|
231
|
+
lookbehind: true
|
|
232
|
+
},
|
|
233
|
+
"string": {
|
|
234
|
+
pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,
|
|
235
|
+
lookbehind: true
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
["url", "bold", "italic", "strike"].forEach(function(token) {
|
|
241
|
+
["url", "bold", "italic", "strike", "code-snippet"].forEach(function(inside) {
|
|
242
|
+
if (token !== inside) {
|
|
243
|
+
Prism2.languages.markdown[token].inside.content.inside[inside] = Prism2.languages.markdown[inside];
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
});
|
|
247
|
+
Prism2.hooks.add("after-tokenize", function(env) {
|
|
248
|
+
if (env.language !== "markdown" && env.language !== "md") {
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
function walkTokens(tokens) {
|
|
252
|
+
if (!tokens || typeof tokens === "string") {
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
for (var i = 0, l = tokens.length; i < l; i++) {
|
|
256
|
+
var token = tokens[i];
|
|
257
|
+
if (token.type !== "code") {
|
|
258
|
+
walkTokens(token.content);
|
|
259
|
+
continue;
|
|
260
|
+
}
|
|
261
|
+
var codeLang = token.content[1];
|
|
262
|
+
var codeBlock = token.content[3];
|
|
263
|
+
if (codeLang && codeBlock && codeLang.type === "code-language" && codeBlock.type === "code-block" && typeof codeLang.content === "string") {
|
|
264
|
+
var lang = codeLang.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
|
|
265
|
+
lang = (/[a-z][\w-]*/i.exec(lang) || [""])[0].toLowerCase();
|
|
266
|
+
var alias = "language-" + lang;
|
|
267
|
+
if (!codeBlock.alias) {
|
|
268
|
+
codeBlock.alias = [alias];
|
|
269
|
+
} else if (typeof codeBlock.alias === "string") {
|
|
270
|
+
codeBlock.alias = [codeBlock.alias, alias];
|
|
271
|
+
} else {
|
|
272
|
+
codeBlock.alias.push(alias);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
walkTokens(env.tokens);
|
|
278
|
+
});
|
|
279
|
+
Prism2.hooks.add("wrap", function(env) {
|
|
280
|
+
if (env.type !== "code-block") {
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
var codeLang = "";
|
|
284
|
+
for (var i = 0, l = env.classes.length; i < l; i++) {
|
|
285
|
+
var cls = env.classes[i];
|
|
286
|
+
var match = /language-(.+)/.exec(cls);
|
|
287
|
+
if (match) {
|
|
288
|
+
codeLang = match[1];
|
|
289
|
+
break;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
var grammar = Prism2.languages[codeLang];
|
|
293
|
+
if (!grammar) {
|
|
294
|
+
if (codeLang && codeLang !== "none" && Prism2.plugins.autoloader) {
|
|
295
|
+
var id = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(Math.random() * 1e16);
|
|
296
|
+
env.attributes["id"] = id;
|
|
297
|
+
Prism2.plugins.autoloader.loadLanguages(codeLang, function() {
|
|
298
|
+
var ele = document.getElementById(id);
|
|
299
|
+
if (ele) {
|
|
300
|
+
ele.innerHTML = Prism2.highlight(ele.textContent, Prism2.languages[codeLang], codeLang);
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
} else {
|
|
305
|
+
env.content = Prism2.highlight(textContent(env.content), grammar, codeLang);
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
var tagPattern = RegExp(Prism2.languages.markup.tag.pattern.source, "gi");
|
|
309
|
+
var KNOWN_ENTITY_NAMES = {
|
|
310
|
+
"amp": "&",
|
|
311
|
+
"lt": "<",
|
|
312
|
+
"gt": ">",
|
|
313
|
+
"quot": '"'
|
|
314
|
+
};
|
|
315
|
+
var fromCodePoint = String.fromCodePoint || String.fromCharCode;
|
|
316
|
+
function textContent(html) {
|
|
317
|
+
var text = html.replace(tagPattern, "");
|
|
318
|
+
text = text.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(m, code) {
|
|
319
|
+
code = code.toLowerCase();
|
|
320
|
+
if (code[0] === "#") {
|
|
321
|
+
var value;
|
|
322
|
+
if (code[1] === "x") {
|
|
323
|
+
value = parseInt(code.slice(2), 16);
|
|
324
|
+
} else {
|
|
325
|
+
value = Number(code.slice(1));
|
|
326
|
+
}
|
|
327
|
+
return fromCodePoint(value);
|
|
328
|
+
} else {
|
|
329
|
+
var known = KNOWN_ENTITY_NAMES[code];
|
|
330
|
+
if (known) {
|
|
331
|
+
return known;
|
|
332
|
+
}
|
|
333
|
+
return m;
|
|
334
|
+
}
|
|
335
|
+
});
|
|
336
|
+
return text;
|
|
337
|
+
}
|
|
338
|
+
Prism2.languages.md = Prism2.languages.markdown;
|
|
339
|
+
})(Prism);
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
Prism.languages.markup = {
|
|
2
|
+
"comment": {
|
|
3
|
+
pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
|
|
4
|
+
greedy: true
|
|
5
|
+
},
|
|
6
|
+
"prolog": {
|
|
7
|
+
pattern: /<\?[\s\S]+?\?>/,
|
|
8
|
+
greedy: true
|
|
9
|
+
},
|
|
10
|
+
"doctype": {
|
|
11
|
+
// https://www.w3.org/TR/xml/#NT-doctypedecl
|
|
12
|
+
pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,
|
|
13
|
+
greedy: true,
|
|
14
|
+
inside: {
|
|
15
|
+
"internal-subset": {
|
|
16
|
+
pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/,
|
|
17
|
+
lookbehind: true,
|
|
18
|
+
greedy: true,
|
|
19
|
+
inside: null
|
|
20
|
+
// see below
|
|
21
|
+
},
|
|
22
|
+
"string": {
|
|
23
|
+
pattern: /"[^"]*"|'[^']*'/,
|
|
24
|
+
greedy: true
|
|
25
|
+
},
|
|
26
|
+
"punctuation": /^<!|>$|[[\]]/,
|
|
27
|
+
"doctype-tag": /^DOCTYPE/i,
|
|
28
|
+
"name": /[^\s<>'"]+/
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"cdata": {
|
|
32
|
+
pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
|
|
33
|
+
greedy: true
|
|
34
|
+
},
|
|
35
|
+
"tag": {
|
|
36
|
+
pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,
|
|
37
|
+
greedy: true,
|
|
38
|
+
inside: {
|
|
39
|
+
"tag": {
|
|
40
|
+
pattern: /^<\/?[^\s>\/]+/,
|
|
41
|
+
inside: {
|
|
42
|
+
"punctuation": /^<\/?/,
|
|
43
|
+
"namespace": /^[^\s>\/:]+:/
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"special-attr": [],
|
|
47
|
+
"attr-value": {
|
|
48
|
+
pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
|
|
49
|
+
inside: {
|
|
50
|
+
"punctuation": [
|
|
51
|
+
{
|
|
52
|
+
pattern: /^=/,
|
|
53
|
+
alias: "attr-equals"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
pattern: /^(\s*)["']|["']$/,
|
|
57
|
+
lookbehind: true
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"punctuation": /\/?>/,
|
|
63
|
+
"attr-name": {
|
|
64
|
+
pattern: /[^\s>\/]+/,
|
|
65
|
+
inside: {
|
|
66
|
+
"namespace": /^[^\s>\/:]+:/
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"entity": [
|
|
72
|
+
{
|
|
73
|
+
pattern: /&[\da-z]{1,8};/i,
|
|
74
|
+
alias: "named-entity"
|
|
75
|
+
},
|
|
76
|
+
/&#x?[\da-f]{1,8};/i
|
|
77
|
+
]
|
|
78
|
+
};
|
|
79
|
+
Prism.languages.markup["tag"].inside["attr-value"].inside["entity"] = Prism.languages.markup["entity"];
|
|
80
|
+
Prism.languages.markup["doctype"].inside["internal-subset"].inside = Prism.languages.markup;
|
|
81
|
+
Prism.hooks.add("wrap", function(env) {
|
|
82
|
+
if (env.type === "entity") {
|
|
83
|
+
env.attributes["title"] = env.content.replace(/&/, "&");
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
Object.defineProperty(Prism.languages.markup.tag, "addInlined", {
|
|
87
|
+
/**
|
|
88
|
+
* Adds an inlined language to markup.
|
|
89
|
+
*
|
|
90
|
+
* An example of an inlined language is CSS with `<style>` tags.
|
|
91
|
+
*
|
|
92
|
+
* @param {string} tagName The name of the tag that contains the inlined language. This name will be treated as
|
|
93
|
+
* case insensitive.
|
|
94
|
+
* @param {string} lang The language key.
|
|
95
|
+
* @example
|
|
96
|
+
* addInlined('style', 'css');
|
|
97
|
+
*/
|
|
98
|
+
value: function addInlined(tagName, lang) {
|
|
99
|
+
var includedCdataInside = {};
|
|
100
|
+
includedCdataInside["language-" + lang] = {
|
|
101
|
+
pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,
|
|
102
|
+
lookbehind: true,
|
|
103
|
+
inside: Prism.languages[lang]
|
|
104
|
+
};
|
|
105
|
+
includedCdataInside["cdata"] = /^<!\[CDATA\[|\]\]>$/i;
|
|
106
|
+
var inside = {
|
|
107
|
+
"included-cdata": {
|
|
108
|
+
pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i,
|
|
109
|
+
inside: includedCdataInside
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
inside["language-" + lang] = {
|
|
113
|
+
pattern: /[\s\S]+/,
|
|
114
|
+
inside: Prism.languages[lang]
|
|
115
|
+
};
|
|
116
|
+
var def = {};
|
|
117
|
+
def[tagName] = {
|
|
118
|
+
pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
|
|
119
|
+
return tagName;
|
|
120
|
+
}), "i"),
|
|
121
|
+
lookbehind: true,
|
|
122
|
+
greedy: true,
|
|
123
|
+
inside
|
|
124
|
+
};
|
|
125
|
+
Prism.languages.insertBefore("markup", "cdata", def);
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
Object.defineProperty(Prism.languages.markup.tag, "addAttribute", {
|
|
129
|
+
/**
|
|
130
|
+
* Adds an pattern to highlight languages embedded in HTML attributes.
|
|
131
|
+
*
|
|
132
|
+
* An example of an inlined language is CSS with `style` attributes.
|
|
133
|
+
*
|
|
134
|
+
* @param {string} attrName The name of the tag that contains the inlined language. This name will be treated as
|
|
135
|
+
* case insensitive.
|
|
136
|
+
* @param {string} lang The language key.
|
|
137
|
+
* @example
|
|
138
|
+
* addAttribute('style', 'css');
|
|
139
|
+
*/
|
|
140
|
+
value: function(attrName, lang) {
|
|
141
|
+
Prism.languages.markup.tag.inside["special-attr"].push({
|
|
142
|
+
pattern: RegExp(
|
|
143
|
+
/(^|["'\s])/.source + "(?:" + attrName + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,
|
|
144
|
+
"i"
|
|
145
|
+
),
|
|
146
|
+
lookbehind: true,
|
|
147
|
+
inside: {
|
|
148
|
+
"attr-name": /^[^\s=]+/,
|
|
149
|
+
"attr-value": {
|
|
150
|
+
pattern: /=[\s\S]+/,
|
|
151
|
+
inside: {
|
|
152
|
+
"value": {
|
|
153
|
+
pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,
|
|
154
|
+
lookbehind: true,
|
|
155
|
+
alias: [lang, "language-" + lang],
|
|
156
|
+
inside: Prism.languages[lang]
|
|
157
|
+
},
|
|
158
|
+
"punctuation": [
|
|
159
|
+
{
|
|
160
|
+
pattern: /^=/,
|
|
161
|
+
alias: "attr-equals"
|
|
162
|
+
},
|
|
163
|
+
/"|'/
|
|
164
|
+
]
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
Prism.languages.html = Prism.languages.markup;
|
|
172
|
+
Prism.languages.mathml = Prism.languages.markup;
|
|
173
|
+
Prism.languages.svg = Prism.languages.markup;
|
|
174
|
+
Prism.languages.xml = Prism.languages.extend("markup", {});
|
|
175
|
+
Prism.languages.ssml = Prism.languages.xml;
|
|
176
|
+
Prism.languages.atom = Prism.languages.xml;
|
|
177
|
+
Prism.languages.rss = Prism.languages.xml;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { g as getDefaultExportFromCjs } from "./index-DMYkp2tq.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 prismTypescript$2 = {};
|
|
22
|
+
var hasRequiredPrismTypescript;
|
|
23
|
+
function requirePrismTypescript() {
|
|
24
|
+
if (hasRequiredPrismTypescript) return prismTypescript$2;
|
|
25
|
+
hasRequiredPrismTypescript = 1;
|
|
26
|
+
(function(Prism2) {
|
|
27
|
+
Prism2.languages.typescript = Prism2.languages.extend("javascript", {
|
|
28
|
+
"class-name": {
|
|
29
|
+
pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,
|
|
30
|
+
lookbehind: true,
|
|
31
|
+
greedy: true,
|
|
32
|
+
inside: null
|
|
33
|
+
// see below
|
|
34
|
+
},
|
|
35
|
+
"builtin": /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/
|
|
36
|
+
});
|
|
37
|
+
Prism2.languages.typescript.keyword.push(
|
|
38
|
+
/\b(?:abstract|declare|is|keyof|readonly|require)\b/,
|
|
39
|
+
// keywords that have to be followed by an identifier
|
|
40
|
+
/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,
|
|
41
|
+
// This is for `import type *, {}`
|
|
42
|
+
/\btype\b(?=\s*(?:[\{*]|$))/
|
|
43
|
+
);
|
|
44
|
+
delete Prism2.languages.typescript["parameter"];
|
|
45
|
+
delete Prism2.languages.typescript["literal-property"];
|
|
46
|
+
var typeInside = Prism2.languages.extend("typescript", {});
|
|
47
|
+
delete typeInside["class-name"];
|
|
48
|
+
Prism2.languages.typescript["class-name"].inside = typeInside;
|
|
49
|
+
Prism2.languages.insertBefore("typescript", "function", {
|
|
50
|
+
"decorator": {
|
|
51
|
+
pattern: /@[$\w\xA0-\uFFFF]+/,
|
|
52
|
+
inside: {
|
|
53
|
+
"at": {
|
|
54
|
+
pattern: /^@/,
|
|
55
|
+
alias: "operator"
|
|
56
|
+
},
|
|
57
|
+
"function": /^[\s\S]+/
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"generic-function": {
|
|
61
|
+
// e.g. foo<T extends "bar" | "baz">( ...
|
|
62
|
+
pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,
|
|
63
|
+
greedy: true,
|
|
64
|
+
inside: {
|
|
65
|
+
"function": /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,
|
|
66
|
+
"generic": {
|
|
67
|
+
pattern: /<[\s\S]+/,
|
|
68
|
+
// everything after the first <
|
|
69
|
+
alias: "class-name",
|
|
70
|
+
inside: typeInside
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
Prism2.languages.ts = Prism2.languages.typescript;
|
|
76
|
+
})(Prism);
|
|
77
|
+
return prismTypescript$2;
|
|
78
|
+
}
|
|
79
|
+
var prismTypescriptExports = requirePrismTypescript();
|
|
80
|
+
const prismTypescript = /* @__PURE__ */ getDefaultExportFromCjs(prismTypescriptExports);
|
|
81
|
+
const prismTypescript$1 = /* @__PURE__ */ _mergeNamespaces({
|
|
82
|
+
__proto__: null,
|
|
83
|
+
default: prismTypescript
|
|
84
|
+
}, [prismTypescriptExports]);
|
|
85
|
+
export {
|
|
86
|
+
prismTypescript$1 as p
|
|
87
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
(function(Prism2) {
|
|
2
|
+
var anchorOrAlias = /[*&][^\s[\]{},]+/;
|
|
3
|
+
var tag = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/;
|
|
4
|
+
var properties = "(?:" + tag.source + "(?:[ ]+" + anchorOrAlias.source + ")?|" + anchorOrAlias.source + "(?:[ ]+" + tag.source + ")?)";
|
|
5
|
+
var plainKey = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
|
|
6
|
+
return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
|
|
7
|
+
});
|
|
8
|
+
var string = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
|
|
9
|
+
function createValuePattern(value, flags) {
|
|
10
|
+
flags = (flags || "").replace(/m/g, "") + "m";
|
|
11
|
+
var pattern = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
|
|
12
|
+
return properties;
|
|
13
|
+
}).replace(/<<value>>/g, function() {
|
|
14
|
+
return value;
|
|
15
|
+
});
|
|
16
|
+
return RegExp(pattern, flags);
|
|
17
|
+
}
|
|
18
|
+
Prism2.languages.yaml = {
|
|
19
|
+
"scalar": {
|
|
20
|
+
pattern: RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g, function() {
|
|
21
|
+
return properties;
|
|
22
|
+
})),
|
|
23
|
+
lookbehind: true,
|
|
24
|
+
alias: "string"
|
|
25
|
+
},
|
|
26
|
+
"comment": /#.*/,
|
|
27
|
+
"key": {
|
|
28
|
+
pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
|
|
29
|
+
return properties;
|
|
30
|
+
}).replace(/<<key>>/g, function() {
|
|
31
|
+
return "(?:" + plainKey + "|" + string + ")";
|
|
32
|
+
})),
|
|
33
|
+
lookbehind: true,
|
|
34
|
+
greedy: true,
|
|
35
|
+
alias: "atrule"
|
|
36
|
+
},
|
|
37
|
+
"directive": {
|
|
38
|
+
pattern: /(^[ \t]*)%.+/m,
|
|
39
|
+
lookbehind: true,
|
|
40
|
+
alias: "important"
|
|
41
|
+
},
|
|
42
|
+
"datetime": {
|
|
43
|
+
pattern: createValuePattern(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),
|
|
44
|
+
lookbehind: true,
|
|
45
|
+
alias: "number"
|
|
46
|
+
},
|
|
47
|
+
"boolean": {
|
|
48
|
+
pattern: createValuePattern(/false|true/.source, "i"),
|
|
49
|
+
lookbehind: true,
|
|
50
|
+
alias: "important"
|
|
51
|
+
},
|
|
52
|
+
"null": {
|
|
53
|
+
pattern: createValuePattern(/null|~/.source, "i"),
|
|
54
|
+
lookbehind: true,
|
|
55
|
+
alias: "important"
|
|
56
|
+
},
|
|
57
|
+
"string": {
|
|
58
|
+
pattern: createValuePattern(string),
|
|
59
|
+
lookbehind: true,
|
|
60
|
+
greedy: true
|
|
61
|
+
},
|
|
62
|
+
"number": {
|
|
63
|
+
pattern: createValuePattern(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, "i"),
|
|
64
|
+
lookbehind: true
|
|
65
|
+
},
|
|
66
|
+
"tag": tag,
|
|
67
|
+
"important": anchorOrAlias,
|
|
68
|
+
"punctuation": /---|[:[\]{}\-,|>?]|\.\.\./
|
|
69
|
+
};
|
|
70
|
+
Prism2.languages.yml = Prism2.languages.yaml;
|
|
71
|
+
})(Prism);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/badge/badge.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"badge.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/badge/badge.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,yBAoIvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.styles.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/badge/badge.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"badge.styles.js","sourceRoot":"","sources":["../../../../src/components/status-and-feedback/badge/badge.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoI7B,CAAC"}
|