@re-code/ui-components 0.0.1

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.
Files changed (44) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/dist/cjs/index-CwGon_W1.js +4501 -0
  4. package/dist/cjs/index.cjs.js +3 -0
  5. package/dist/cjs/loader.cjs.js +12 -0
  6. package/dist/cjs/ui-components.cjs.js +51 -0
  7. package/dist/cjs/ui-label.cjs.entry.js +26 -0
  8. package/dist/collection/collection-manifest.json +12 -0
  9. package/dist/collection/components/ui-label/ui-label.css +199 -0
  10. package/dist/collection/components/ui-label/ui-label.js +152 -0
  11. package/dist/collection/components/ui-label/ui-label.stories.js +67 -0
  12. package/dist/collection/global/types.js +1 -0
  13. package/dist/components/index.d.ts +33 -0
  14. package/dist/components/index.js +6 -0
  15. package/dist/components/index2.js +4488 -0
  16. package/dist/components/ui-label.d.ts +11 -0
  17. package/dist/components/ui-label.js +51 -0
  18. package/dist/esm/index-CDwILsz8.js +4488 -0
  19. package/dist/esm/index.js +1 -0
  20. package/dist/esm/loader.js +10 -0
  21. package/dist/esm/ui-components.js +47 -0
  22. package/dist/esm/ui-label.entry.js +24 -0
  23. package/dist/index.cjs.js +1 -0
  24. package/dist/index.js +1 -0
  25. package/dist/types/components/ui-label/ui-label.d.ts +9 -0
  26. package/dist/types/components/ui-label/ui-label.stories.d.ts +4 -0
  27. package/dist/types/components.d.ts +67 -0
  28. package/dist/types/global/types.d.ts +3 -0
  29. package/dist/types/stencil-public-runtime.d.ts +1839 -0
  30. package/dist/types/ui-components/.stencil/ui-label.d.ts +15 -0
  31. package/dist/types/ui-components/.stencil/ui-label.stories.d.ts +10 -0
  32. package/dist/ui-components/index-CDwILsz8.js +4488 -0
  33. package/dist/ui-components/index-Ds6GXFU9.js +4491 -0
  34. package/dist/ui-components/index-Ds6GXFU9.js.map +1 -0
  35. package/dist/ui-components/index-NEMW1Jjc.js +4491 -0
  36. package/dist/ui-components/index-NEMW1Jjc.js.map +1 -0
  37. package/dist/ui-components/index.esm.js +1 -0
  38. package/dist/ui-components/index.esm.js.map +1 -0
  39. package/dist/ui-components/ui-components.css +28 -0
  40. package/dist/ui-components/ui-components.esm.js +47 -0
  41. package/dist/ui-components/ui-components.esm.js.map +1 -0
  42. package/dist/ui-components/ui-label.entry.js +24 -0
  43. package/dist/ui-components/ui-label.entry.js.map +1 -0
  44. package/package.json +65 -0
@@ -0,0 +1,3 @@
1
+ 'use strict';
2
+
3
+ //! Autogenerated index
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-CwGon_W1.js');
4
+
5
+ const defineCustomElements = async (win, options) => {
6
+ if (typeof window === 'undefined') return undefined;
7
+ await index.globalScripts();
8
+ return index.bootstrapLazy([["ui-label.cjs",[[257,"ui-label",{"label":[1],"variant":[1],"color":[1],"weight":[1],"italic":[4]}]]]], options);
9
+ };
10
+
11
+ exports.setNonce = index.setNonce;
12
+ exports.defineCustomElements = defineCustomElements;
@@ -0,0 +1,51 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-CwGon_W1.js');
4
+
5
+ var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
6
+ /*
7
+ Stencil Client Patch Browser v4.41.2 | MIT Licensed | https://stenciljs.com
8
+ */
9
+
10
+ var patchBrowser = () => {
11
+ if (index.BUILD.isDev && !index.BUILD.isTesting) {
12
+ index.consoleDevInfo("Running in development mode.");
13
+ }
14
+ if (index.BUILD.cloneNodeFix) {
15
+ patchCloneNodeFix(index.H.prototype);
16
+ }
17
+ const scriptElm = index.BUILD.scriptDataOpts ? index.win.document && Array.from(index.win.document.querySelectorAll("script")).find(
18
+ (s) => new RegExp(`/${index.NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) || s.getAttribute("data-stencil-namespace") === index.NAMESPACE
19
+ ) : null;
20
+ const importMeta = (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('ui-components.cjs.js', document.baseURI).href));
21
+ const opts = index.BUILD.scriptDataOpts ? (scriptElm || {})["data-opts"] || {} : {};
22
+ if (importMeta !== "") {
23
+ opts.resourcesUrl = new URL(".", importMeta).href;
24
+ }
25
+ return index.promiseResolve(opts);
26
+ };
27
+ var patchCloneNodeFix = (HTMLElementPrototype) => {
28
+ const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
29
+ HTMLElementPrototype.cloneNode = function(deep) {
30
+ if (this.nodeName === "TEMPLATE") {
31
+ return nativeCloneNodeFn.call(this, deep);
32
+ }
33
+ const clonedNode = nativeCloneNodeFn.call(this, false);
34
+ const srcChildNodes = this.childNodes;
35
+ if (deep) {
36
+ for (let i = 0; i < srcChildNodes.length; i++) {
37
+ if (srcChildNodes[i].nodeType !== 2) {
38
+ clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
39
+ }
40
+ }
41
+ }
42
+ return clonedNode;
43
+ };
44
+ };
45
+
46
+ patchBrowser().then(async (options) => {
47
+ await index.globalScripts();
48
+ return index.bootstrapLazy([["ui-label.cjs",[[257,"ui-label",{"label":[1],"variant":[1],"color":[1],"weight":[1],"italic":[4]}]]]], options);
49
+ });
50
+
51
+ exports.setNonce = index.setNonce;
@@ -0,0 +1,26 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-CwGon_W1.js');
4
+
5
+ const uiLabelCss = () => `:host{display:inline-block;font-family:"Roboto", system-ui, -apple-system, sans-serif;color:#1D1B20;transition:all 0.2s ease-in-out}:host(.ui-label--display-large){font-size:57px;line-height:64px;font-weight:400;letter-spacing:-0.25px}:host(.ui-label--display-medium){font-size:45px;line-height:52px;font-weight:400;letter-spacing:0px}:host(.ui-label--display-small){font-size:36px;line-height:44px;font-weight:400;letter-spacing:0px}:host(.ui-label--headline-large){font-size:32px;line-height:40px;font-weight:400;letter-spacing:0px}:host(.ui-label--headline-medium){font-size:28px;line-height:36px;font-weight:400;letter-spacing:0px}:host(.ui-label--headline-small){font-size:24px;line-height:32px;font-weight:400;letter-spacing:0px}:host(.ui-label--title-large){font-size:22px;line-height:28px;font-weight:400;letter-spacing:0px}:host(.ui-label--title-medium){font-size:16px;line-height:24px;font-weight:500;letter-spacing:0.15px}:host(.ui-label--title-small){font-size:14px;line-height:20px;font-weight:500;letter-spacing:0.1px}:host(.ui-label--body-large){font-size:16px;line-height:24px;font-weight:400;letter-spacing:0.5px}:host(.ui-label--body-medium){font-size:14px;line-height:20px;font-weight:400;letter-spacing:0.25px}:host(.ui-label--body-small){font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.4px}:host(.ui-label--label-large){font-size:14px;line-height:20px;font-weight:500;letter-spacing:0.1px}:host(.ui-label--label-medium){font-size:12px;line-height:16px;font-weight:500;letter-spacing:0.5px}:host(.ui-label--label-small){font-size:11px;line-height:16px;font-weight:500;letter-spacing:0.5px}:host(.ui-label--color-primary){color:#6750A4}:host(.ui-label--color-on-primary){color:#FFFFFF}:host(.ui-label--color-primary-container){color:#EADDFF}:host(.ui-label--color-on-primary-container){color:#21005D}:host(.ui-label--color-secondary){color:#625B71}:host(.ui-label--color-on-secondary){color:#FFFFFF}:host(.ui-label--color-secondary-container){color:#E8DEF8}:host(.ui-label--color-on-secondary-container){color:#1D192B}:host(.ui-label--color-tertiary){color:#7D5260}:host(.ui-label--color-on-tertiary){color:#FFFFFF}:host(.ui-label--color-tertiary-container){color:#FFD8E4}:host(.ui-label--color-on-tertiary-container){color:#31111D}:host(.ui-label--color-error){color:#B3261E}:host(.ui-label--color-on-error){color:#FFFFFF}:host(.ui-label--color-surface){color:#FEF7FF}:host(.ui-label--color-on-surface){color:#1D1B20}:host(.ui-label--color-on-surface-variant){color:#49454F}:host(.ui-label--color-outline){color:#79747E}:host(.ui-label--weight-normal){font-weight:400}:host(.ui-label--weight-medium){font-weight:500}:host(.ui-label--weight-bold){font-weight:700}:host(.ui-label--italic){font-style:italic !important}`;
6
+
7
+ const UiLabel = class {
8
+ constructor(hostRef) {
9
+ index.registerInstance(this, hostRef);
10
+ this.variant = 'body-medium';
11
+ this.color = 'on-surface';
12
+ this.italic = false;
13
+ }
14
+ render() {
15
+ const classMap = {
16
+ [`ui-label--${this.variant}`]: true,
17
+ [`ui-label--color-${this.color}`]: true,
18
+ [`ui-label--weight-${this.weight}`]: !!this.weight,
19
+ 'ui-label--italic': this.italic
20
+ };
21
+ return (index.h(index.Host, { key: 'aa90dba620bb302ef1f8d2d9452eab3cb1c993db', class: classMap }, index.h("span", { key: '09e6a2daad525a3946a4d926799e866970a70fc3' }, this.label, " ", index.h("slot", { key: '972f325c8826a2bc3f7d1a36bf5adb4335285904' }))));
22
+ }
23
+ };
24
+ UiLabel.style = uiLabelCss();
25
+
26
+ exports.ui_label = UiLabel;
@@ -0,0 +1,12 @@
1
+ {
2
+ "entries": [
3
+ "components/ui-label/ui-label.js"
4
+ ],
5
+ "compiler": {
6
+ "name": "@stencil/core",
7
+ "version": "4.41.2",
8
+ "typescriptVersion": "5.8.3"
9
+ },
10
+ "collections": [],
11
+ "bundles": []
12
+ }
@@ -0,0 +1,199 @@
1
+ :host {
2
+ display: inline-block;
3
+ font-family: "Roboto", system-ui, -apple-system, sans-serif;
4
+ color: #1D1B20;
5
+ transition: all 0.2s ease-in-out;
6
+ }
7
+
8
+ :host(.ui-label--display-large) {
9
+ font-size: 57px;
10
+ line-height: 64px;
11
+ font-weight: 400;
12
+ letter-spacing: -0.25px;
13
+ }
14
+
15
+ :host(.ui-label--display-medium) {
16
+ font-size: 45px;
17
+ line-height: 52px;
18
+ font-weight: 400;
19
+ letter-spacing: 0px;
20
+ }
21
+
22
+ :host(.ui-label--display-small) {
23
+ font-size: 36px;
24
+ line-height: 44px;
25
+ font-weight: 400;
26
+ letter-spacing: 0px;
27
+ }
28
+
29
+ :host(.ui-label--headline-large) {
30
+ font-size: 32px;
31
+ line-height: 40px;
32
+ font-weight: 400;
33
+ letter-spacing: 0px;
34
+ }
35
+
36
+ :host(.ui-label--headline-medium) {
37
+ font-size: 28px;
38
+ line-height: 36px;
39
+ font-weight: 400;
40
+ letter-spacing: 0px;
41
+ }
42
+
43
+ :host(.ui-label--headline-small) {
44
+ font-size: 24px;
45
+ line-height: 32px;
46
+ font-weight: 400;
47
+ letter-spacing: 0px;
48
+ }
49
+
50
+ :host(.ui-label--title-large) {
51
+ font-size: 22px;
52
+ line-height: 28px;
53
+ font-weight: 400;
54
+ letter-spacing: 0px;
55
+ }
56
+
57
+ :host(.ui-label--title-medium) {
58
+ font-size: 16px;
59
+ line-height: 24px;
60
+ font-weight: 500;
61
+ letter-spacing: 0.15px;
62
+ }
63
+
64
+ :host(.ui-label--title-small) {
65
+ font-size: 14px;
66
+ line-height: 20px;
67
+ font-weight: 500;
68
+ letter-spacing: 0.1px;
69
+ }
70
+
71
+ :host(.ui-label--body-large) {
72
+ font-size: 16px;
73
+ line-height: 24px;
74
+ font-weight: 400;
75
+ letter-spacing: 0.5px;
76
+ }
77
+
78
+ :host(.ui-label--body-medium) {
79
+ font-size: 14px;
80
+ line-height: 20px;
81
+ font-weight: 400;
82
+ letter-spacing: 0.25px;
83
+ }
84
+
85
+ :host(.ui-label--body-small) {
86
+ font-size: 12px;
87
+ line-height: 16px;
88
+ font-weight: 400;
89
+ letter-spacing: 0.4px;
90
+ }
91
+
92
+ :host(.ui-label--label-large) {
93
+ font-size: 14px;
94
+ line-height: 20px;
95
+ font-weight: 500;
96
+ letter-spacing: 0.1px;
97
+ }
98
+
99
+ :host(.ui-label--label-medium) {
100
+ font-size: 12px;
101
+ line-height: 16px;
102
+ font-weight: 500;
103
+ letter-spacing: 0.5px;
104
+ }
105
+
106
+ :host(.ui-label--label-small) {
107
+ font-size: 11px;
108
+ line-height: 16px;
109
+ font-weight: 500;
110
+ letter-spacing: 0.5px;
111
+ }
112
+
113
+ :host(.ui-label--color-primary) {
114
+ color: #6750A4;
115
+ }
116
+
117
+ :host(.ui-label--color-on-primary) {
118
+ color: #FFFFFF;
119
+ }
120
+
121
+ :host(.ui-label--color-primary-container) {
122
+ color: #EADDFF;
123
+ }
124
+
125
+ :host(.ui-label--color-on-primary-container) {
126
+ color: #21005D;
127
+ }
128
+
129
+ :host(.ui-label--color-secondary) {
130
+ color: #625B71;
131
+ }
132
+
133
+ :host(.ui-label--color-on-secondary) {
134
+ color: #FFFFFF;
135
+ }
136
+
137
+ :host(.ui-label--color-secondary-container) {
138
+ color: #E8DEF8;
139
+ }
140
+
141
+ :host(.ui-label--color-on-secondary-container) {
142
+ color: #1D192B;
143
+ }
144
+
145
+ :host(.ui-label--color-tertiary) {
146
+ color: #7D5260;
147
+ }
148
+
149
+ :host(.ui-label--color-on-tertiary) {
150
+ color: #FFFFFF;
151
+ }
152
+
153
+ :host(.ui-label--color-tertiary-container) {
154
+ color: #FFD8E4;
155
+ }
156
+
157
+ :host(.ui-label--color-on-tertiary-container) {
158
+ color: #31111D;
159
+ }
160
+
161
+ :host(.ui-label--color-error) {
162
+ color: #B3261E;
163
+ }
164
+
165
+ :host(.ui-label--color-on-error) {
166
+ color: #FFFFFF;
167
+ }
168
+
169
+ :host(.ui-label--color-surface) {
170
+ color: #FEF7FF;
171
+ }
172
+
173
+ :host(.ui-label--color-on-surface) {
174
+ color: #1D1B20;
175
+ }
176
+
177
+ :host(.ui-label--color-on-surface-variant) {
178
+ color: #49454F;
179
+ }
180
+
181
+ :host(.ui-label--color-outline) {
182
+ color: #79747E;
183
+ }
184
+
185
+ :host(.ui-label--weight-normal) {
186
+ font-weight: 400;
187
+ }
188
+
189
+ :host(.ui-label--weight-medium) {
190
+ font-weight: 500;
191
+ }
192
+
193
+ :host(.ui-label--weight-bold) {
194
+ font-weight: 700;
195
+ }
196
+
197
+ :host(.ui-label--italic) {
198
+ font-style: italic !important;
199
+ }
@@ -0,0 +1,152 @@
1
+ import { Host, h } from "@stencil/core";
2
+ export class UiLabel {
3
+ constructor() {
4
+ this.variant = 'body-medium';
5
+ this.color = 'on-surface';
6
+ this.italic = false;
7
+ }
8
+ render() {
9
+ const classMap = {
10
+ [`ui-label--${this.variant}`]: true,
11
+ [`ui-label--color-${this.color}`]: true,
12
+ [`ui-label--weight-${this.weight}`]: !!this.weight,
13
+ 'ui-label--italic': this.italic
14
+ };
15
+ return (h(Host, { key: 'aa90dba620bb302ef1f8d2d9452eab3cb1c993db', class: classMap }, h("span", { key: '09e6a2daad525a3946a4d926799e866970a70fc3' }, this.label, " ", h("slot", { key: '972f325c8826a2bc3f7d1a36bf5adb4335285904' }))));
16
+ }
17
+ static get is() { return "ui-label"; }
18
+ static get encapsulation() { return "shadow"; }
19
+ static get originalStyleUrls() {
20
+ return {
21
+ "$": ["ui-label.scss"]
22
+ };
23
+ }
24
+ static get styleUrls() {
25
+ return {
26
+ "$": ["ui-label.css"]
27
+ };
28
+ }
29
+ static get properties() {
30
+ return {
31
+ "label": {
32
+ "type": "string",
33
+ "mutable": false,
34
+ "complexType": {
35
+ "original": "string",
36
+ "resolved": "string",
37
+ "references": {}
38
+ },
39
+ "required": true,
40
+ "optional": false,
41
+ "docs": {
42
+ "tags": [],
43
+ "text": ""
44
+ },
45
+ "getter": false,
46
+ "setter": false,
47
+ "reflect": false,
48
+ "attribute": "label"
49
+ },
50
+ "variant": {
51
+ "type": "string",
52
+ "mutable": false,
53
+ "complexType": {
54
+ "original": "TypographyVariant",
55
+ "resolved": "\"body-large\" | \"body-medium\" | \"body-small\" | \"display-large\" | \"display-medium\" | \"display-small\" | \"headline-large\" | \"headline-medium\" | \"headline-small\" | \"label-large\" | \"label-medium\" | \"label-small\" | \"title-large\" | \"title-medium\" | \"title-small\"",
56
+ "references": {
57
+ "TypographyVariant": {
58
+ "location": "import",
59
+ "path": "../../global/types",
60
+ "id": "src/global/types.ts::TypographyVariant",
61
+ "referenceLocation": "TypographyVariant"
62
+ }
63
+ }
64
+ },
65
+ "required": false,
66
+ "optional": false,
67
+ "docs": {
68
+ "tags": [],
69
+ "text": ""
70
+ },
71
+ "getter": false,
72
+ "setter": false,
73
+ "reflect": false,
74
+ "attribute": "variant",
75
+ "defaultValue": "'body-medium'"
76
+ },
77
+ "color": {
78
+ "type": "string",
79
+ "mutable": false,
80
+ "complexType": {
81
+ "original": "ColorVariant",
82
+ "resolved": "\"error\" | \"on-error\" | \"on-primary\" | \"on-primary-container\" | \"on-secondary\" | \"on-secondary-container\" | \"on-surface\" | \"on-surface-variant\" | \"on-tertiary\" | \"on-tertiary-container\" | \"outline\" | \"primary\" | \"primary-container\" | \"secondary\" | \"secondary-container\" | \"surface\" | \"tertiary\" | \"tertiary-container\"",
83
+ "references": {
84
+ "ColorVariant": {
85
+ "location": "import",
86
+ "path": "../../global/types",
87
+ "id": "src/global/types.ts::ColorVariant",
88
+ "referenceLocation": "ColorVariant"
89
+ }
90
+ }
91
+ },
92
+ "required": false,
93
+ "optional": false,
94
+ "docs": {
95
+ "tags": [],
96
+ "text": ""
97
+ },
98
+ "getter": false,
99
+ "setter": false,
100
+ "reflect": false,
101
+ "attribute": "color",
102
+ "defaultValue": "'on-surface'"
103
+ },
104
+ "weight": {
105
+ "type": "string",
106
+ "mutable": false,
107
+ "complexType": {
108
+ "original": "FontWeight",
109
+ "resolved": "\"bold\" | \"medium\" | \"normal\" | undefined",
110
+ "references": {
111
+ "FontWeight": {
112
+ "location": "import",
113
+ "path": "../../global/types",
114
+ "id": "src/global/types.ts::FontWeight",
115
+ "referenceLocation": "FontWeight"
116
+ }
117
+ }
118
+ },
119
+ "required": false,
120
+ "optional": true,
121
+ "docs": {
122
+ "tags": [],
123
+ "text": ""
124
+ },
125
+ "getter": false,
126
+ "setter": false,
127
+ "reflect": false,
128
+ "attribute": "weight"
129
+ },
130
+ "italic": {
131
+ "type": "boolean",
132
+ "mutable": false,
133
+ "complexType": {
134
+ "original": "boolean",
135
+ "resolved": "boolean",
136
+ "references": {}
137
+ },
138
+ "required": false,
139
+ "optional": false,
140
+ "docs": {
141
+ "tags": [],
142
+ "text": ""
143
+ },
144
+ "getter": false,
145
+ "setter": false,
146
+ "reflect": false,
147
+ "attribute": "italic",
148
+ "defaultValue": "false"
149
+ }
150
+ };
151
+ }
152
+ }
@@ -0,0 +1,67 @@
1
+ import { html } from "lit";
2
+ const meta = {
3
+ title: 'Components/UiLabel',
4
+ component: 'ui-label',
5
+ // Esta etiqueta habilita la generación automática de la página Docs
6
+ tags: ['autodocs'],
7
+ argTypes: {
8
+ label: {
9
+ control: 'text',
10
+ description: 'The text content of the label.',
11
+ },
12
+ variant: {
13
+ control: 'select',
14
+ options: [
15
+ 'display-large', 'display-medium', 'display-small',
16
+ 'headline-large', 'headline-medium', 'headline-small',
17
+ 'title-large', 'title-medium', 'title-small',
18
+ 'body-large', 'body-medium', 'body-small',
19
+ 'label-large', 'label-medium', 'label-small'
20
+ ],
21
+ description: 'Material Design 3 Typography Role.',
22
+ },
23
+ color: {
24
+ control: 'select',
25
+ options: [
26
+ 'primary', 'on-primary', 'primary-container', 'on-primary-container',
27
+ 'secondary', 'on-secondary', 'secondary-container', 'on-secondary-container',
28
+ 'tertiary', 'on-tertiary', 'tertiary-container', 'on-tertiary-container',
29
+ 'error', 'on-error',
30
+ 'surface', 'on-surface', 'on-surface-variant', 'outline'
31
+ ],
32
+ description: 'Material Design 3 Color Role.',
33
+ },
34
+ weight: {
35
+ control: 'radio',
36
+ options: ['normal', 'medium', 'bold'],
37
+ description: 'Override typography weight (MD3 Standard: 400, 500, 700).',
38
+ },
39
+ italic: {
40
+ control: 'boolean',
41
+ description: 'Applies italic style to the text.',
42
+ },
43
+ },
44
+ args: {
45
+ label: 'Label Text',
46
+ variant: 'body-medium',
47
+ color: 'on-surface',
48
+ italic: false,
49
+ },
50
+ };
51
+ export default meta;
52
+ // Template base
53
+ const Template = (args) => html `
54
+ <ui-label
55
+ label="${args.label}"
56
+ variant="${args.variant}"
57
+ color="${args.color}"
58
+ weight="${args.weight}"
59
+ ?italic="${args.italic}"
60
+ >
61
+ </ui-label>
62
+ `;
63
+ // Historia Playground
64
+ export const Playground = {
65
+ render: Template,
66
+ args: {},
67
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Get the base path to where the assets can be found. Use "setAssetPath(path)"
3
+ * if the path needs to be customized.
4
+ */
5
+ export declare const getAssetPath: (path: string) => string;
6
+
7
+ /**
8
+ * Used to manually set the base path where assets can be found.
9
+ * If the script is used as "module", it's recommended to use "import.meta.url",
10
+ * such as "setAssetPath(import.meta.url)". Other options include
11
+ * "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
12
+ * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
13
+ * But do note that this configuration depends on how your script is bundled, or lack of
14
+ * bundling, and where your assets can be loaded from. Additionally custom bundling
15
+ * will have to ensure the static assets are copied to its build directory.
16
+ */
17
+ export declare const setAssetPath: (path: string) => void;
18
+
19
+ /**
20
+ * Used to specify a nonce value that corresponds with an application's CSP.
21
+ * When set, the nonce will be added to all dynamically created script and style tags at runtime.
22
+ * Alternatively, the nonce value can be set on a meta tag in the DOM head
23
+ * (<meta name="csp-nonce" content="{ nonce value here }" />) which
24
+ * will result in the same behavior.
25
+ */
26
+ export declare const setNonce: (nonce: string) => void
27
+
28
+ export interface SetPlatformOptions {
29
+ raf?: (c: FrameRequestCallback) => number;
30
+ ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
31
+ rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
32
+ }
33
+ export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
@@ -0,0 +1,6 @@
1
+ import { g as globalScripts } from './index2.js';
2
+ export { a as getAssetPath, r as render, s as setAssetPath, b as setNonce, c as setPlatformOptions } from './index2.js';
3
+
4
+ //! Autogenerated index
5
+
6
+ globalScripts();