@mgdis/core-ui-helpers 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/.turbo/turbo-build.log +52 -0
  2. package/CHANGELOG.md +12 -0
  3. package/LICENSE +29 -0
  4. package/README.md +95 -0
  5. package/dist/angular/index.cjs +27 -0
  6. package/dist/angular/index.cjs.map +1 -0
  7. package/dist/angular/index.d.ts +21 -0
  8. package/dist/angular/index.js +25 -0
  9. package/dist/angular/index.js.map +1 -0
  10. package/dist/angular/index.umd.js +33 -0
  11. package/dist/angular/index.umd.js.map +1 -0
  12. package/dist/locale/index.cjs +164 -0
  13. package/dist/locale/index.cjs.map +1 -0
  14. package/dist/locale/index.d.ts +103 -0
  15. package/dist/locale/index.js +156 -0
  16. package/dist/locale/index.js.map +1 -0
  17. package/dist/locale/index.umd.js +170 -0
  18. package/dist/locale/index.umd.js.map +1 -0
  19. package/dist/playwright/index.cjs +124 -0
  20. package/dist/playwright/index.cjs.map +1 -0
  21. package/dist/playwright/index.d.ts +35 -0
  22. package/dist/playwright/index.js +120 -0
  23. package/dist/playwright/index.js.map +1 -0
  24. package/dist/playwright/index.umd.js +130 -0
  25. package/dist/playwright/index.umd.js.map +1 -0
  26. package/dist/stencil/index.cjs +281 -0
  27. package/dist/stencil/index.cjs.map +1 -0
  28. package/dist/stencil/index.d.ts +111 -0
  29. package/dist/stencil/index.js +277 -0
  30. package/dist/stencil/index.js.map +1 -0
  31. package/dist/stencil/index.umd.js +287 -0
  32. package/dist/stencil/index.umd.js.map +1 -0
  33. package/dist/storybook/index.cjs +2109 -0
  34. package/dist/storybook/index.cjs.map +1 -0
  35. package/dist/storybook/index.d.ts +85 -0
  36. package/dist/storybook/index.js +2103 -0
  37. package/dist/storybook/index.js.map +1 -0
  38. package/dist/storybook/index.umd.js +2115 -0
  39. package/dist/storybook/index.umd.js.map +1 -0
  40. package/dist/tests/index.cjs +166 -0
  41. package/dist/tests/index.cjs.map +1 -0
  42. package/dist/tests/index.d.ts +91 -0
  43. package/dist/tests/index.js +161 -0
  44. package/dist/tests/index.js.map +1 -0
  45. package/dist/tests/index.umd.js +172 -0
  46. package/dist/tests/index.umd.js.map +1 -0
  47. package/dist/utils/index.cjs +433 -0
  48. package/dist/utils/index.cjs.map +1 -0
  49. package/dist/utils/index.d.ts +265 -0
  50. package/dist/utils/index.js +409 -0
  51. package/dist/utils/index.js.map +1 -0
  52. package/dist/utils/index.umd.js +439 -0
  53. package/dist/utils/index.umd.js.map +1 -0
  54. package/dist/vue/index.cjs +1934 -0
  55. package/dist/vue/index.cjs.map +1 -0
  56. package/dist/vue/index.d.ts +35 -0
  57. package/dist/vue/index.js +1932 -0
  58. package/dist/vue/index.js.map +1 -0
  59. package/dist/vue/index.umd.js +1940 -0
  60. package/dist/vue/index.umd.js.map +1 -0
  61. package/json-doc.test.json +253 -0
  62. package/package.json +80 -0
  63. package/rollup.config.mjs +61 -0
  64. package/src/angular/index.spec.ts +8 -0
  65. package/src/angular/index.ts +1 -0
  66. package/src/angular/mg-angular-logger/index.ts +1 -0
  67. package/src/angular/mg-angular-logger/mg-angular-logger.conf.ts +3 -0
  68. package/src/angular/mg-angular-logger/mg-angular-logger.spec.ts +40 -0
  69. package/src/angular/mg-angular-logger/mg-angular-logger.ts +23 -0
  70. package/src/locale/index.spec.ts +14 -0
  71. package/src/locale/index.ts +1 -0
  72. package/src/locale/locale.spec.ts +173 -0
  73. package/src/locale/locale.ts +166 -0
  74. package/src/playwright/config/index.ts +43 -0
  75. package/src/playwright/index.spec.ts +16 -0
  76. package/src/playwright/index.ts +4 -0
  77. package/src/playwright/utils/__snapshots__/utils.spec.ts.snap +48 -0
  78. package/src/playwright/utils/index.ts +1 -0
  79. package/src/playwright/utils/utils.spec.ts +43 -0
  80. package/src/playwright/utils/utils.ts +64 -0
  81. package/src/stencil/ide/__snapshots__/ide.spec.ts.snap +527 -0
  82. package/src/stencil/ide/ide.spec.ts +25 -0
  83. package/src/stencil/ide/ide.ts +214 -0
  84. package/src/stencil/ide/index.ts +1 -0
  85. package/src/stencil/index.spec.ts +12 -0
  86. package/src/stencil/index.ts +1 -0
  87. package/src/storybook/index.spec.ts +15 -0
  88. package/src/storybook/index.ts +1 -0
  89. package/src/storybook/stencil/__snapshots__/stencil.spec.ts.snap +329 -0
  90. package/src/storybook/stencil/index.ts +1 -0
  91. package/src/storybook/stencil/stencil-shim.d.ts +1 -0
  92. package/src/storybook/stencil/stencil.conf.ts +4 -0
  93. package/src/storybook/stencil/stencil.spec.ts +142 -0
  94. package/src/storybook/stencil/stencil.ts +366 -0
  95. package/src/tests/index.spec.ts +13 -0
  96. package/src/tests/index.ts +1 -0
  97. package/src/tests/unit/__snapshots__/unit.spec.ts.snap +52 -0
  98. package/src/tests/unit/index.ts +1 -0
  99. package/src/tests/unit/unit.conf.ts +9 -0
  100. package/src/tests/unit/unit.spec.ts +44 -0
  101. package/src/tests/unit/unit.ts +171 -0
  102. package/src/utils/attributes/class-list/class-list.spec.ts +36 -0
  103. package/src/utils/attributes/class-list/class-list.ts +51 -0
  104. package/src/utils/attributes/class-list/index.ts +1 -0
  105. package/src/utils/attributes/id/id.spec.ts +51 -0
  106. package/src/utils/attributes/id/id.ts +46 -0
  107. package/src/utils/attributes/id/index.ts +1 -0
  108. package/src/utils/attributes/index.ts +3 -0
  109. package/src/utils/attributes/to-kebab-case/index.ts +1 -0
  110. package/src/utils/attributes/to-kebab-case/to-kebab-case.spec.ts +29 -0
  111. package/src/utils/attributes/to-kebab-case/to-kebab-case.ts +23 -0
  112. package/src/utils/components/__snapshots__/components.spec.ts.snap +313 -0
  113. package/src/utils/components/components.conf.ts +11 -0
  114. package/src/utils/components/components.spec.ts +192 -0
  115. package/src/utils/components/components.ts +138 -0
  116. package/src/utils/components/index.ts +2 -0
  117. package/src/utils/date/date.spec.ts +12 -0
  118. package/src/utils/date/date.ts +20 -0
  119. package/src/utils/date/index.ts +1 -0
  120. package/src/utils/elements/elements.spec.ts +17 -0
  121. package/src/utils/elements/elements.ts +16 -0
  122. package/src/utils/elements/index.ts +1 -0
  123. package/src/utils/index.spec.ts +84 -0
  124. package/src/utils/index.ts +8 -0
  125. package/src/utils/number/index.ts +1 -0
  126. package/src/utils/number/number.spec.ts +14 -0
  127. package/src/utils/number/number.ts +6 -0
  128. package/src/utils/object/index.ts +2 -0
  129. package/src/utils/object/object.conf.ts +4 -0
  130. package/src/utils/object/object.spec.ts +98 -0
  131. package/src/utils/object/object.ts +26 -0
  132. package/src/utils/string/index.ts +1 -0
  133. package/src/utils/string/string.spec.ts +47 -0
  134. package/src/utils/string/string.ts +38 -0
  135. package/src/utils/windows/index.ts +1 -0
  136. package/src/utils/windows/windows.spec.ts +65 -0
  137. package/src/utils/windows/windows.ts +50 -0
  138. package/src/vue/index.spec.ts +8 -0
  139. package/src/vue/index.ts +1 -0
  140. package/src/vue/mg-model/index.ts +1 -0
  141. package/src/vue/mg-model/mg-model.conf.ts +6 -0
  142. package/src/vue/mg-model/mg-model.spec.ts +50 -0
  143. package/src/vue/mg-model/mg-model.ts +50 -0
  144. package/tsconfig.json +17 -0
  145. package/typedoc.json +14 -0
  146. package/vitest.config.mts +13 -0
@@ -0,0 +1,214 @@
1
+ import { JsonDocs, JsonDocsComponent, JsonDocsProp } from '@stencil/core/internal';
2
+ import { getStorybookUrl } from '../../storybook';
3
+
4
+ /**
5
+ * Retrieve Component source URL from file path
6
+ * @param sourcesBaseUrl - Source base URL
7
+ * @param filePath - Component file path
8
+ * @returns Component source URL
9
+ */
10
+ const getSourcesUrl = (sourcesBaseUrl: string, filePath: string | undefined): string | undefined => {
11
+ if (!filePath) {
12
+ return;
13
+ }
14
+ return `${sourcesBaseUrl}${filePath}`;
15
+ };
16
+
17
+ /**
18
+ * Get Component element description
19
+ * @param component - Component
20
+ * @returns Component element description
21
+ */
22
+ const getElementDescription = (component: JsonDocsComponent): string => {
23
+ // Init description
24
+ let description = component.overview ? `${component.overview}\n\n` : '';
25
+ // Attributes
26
+ const attributes = component.props.filter(({ attr }) => attr !== undefined);
27
+ if (attributes.length) {
28
+ description += `Attributes:\n`;
29
+ description += attributes.map(({ attr, docs }) => `- \`${attr}\`: ${docs}\n`).join('');
30
+ description += '\n';
31
+ }
32
+ // Properties
33
+ const properties = component.props.filter(({ attr }) => attr === undefined);
34
+ if (properties.length) {
35
+ description += `Properties:\n`;
36
+ description += properties.map(({ name, docs }) => `- \`${name}\`: ${docs}\n`).join('');
37
+ description += '\n';
38
+ }
39
+ // Methods
40
+ if (component.methods.length) {
41
+ description += `Methods:\n`;
42
+ description += component.methods.map(({ name, docs }) => `- \`${name}\`: ${docs}\n`).join('');
43
+ description += '\n';
44
+ }
45
+ // Events
46
+ if (component.events.length) {
47
+ description += `Events:\n`;
48
+ description += component.events.map(({ event, docs }) => `- \`${event}\`: ${docs}\n`).join('');
49
+ description += '\n';
50
+ }
51
+ // Listeners
52
+ if (component.listeners.length) {
53
+ description += `Listeners:\n`;
54
+ description += component.listeners.map(({ event }) => `- \`${event}\`\n`).join('');
55
+ description += '\n';
56
+ }
57
+ // Slots
58
+ if (component.slots.length) {
59
+ description += `Slots:\n`;
60
+ description += component.slots.map(({ name, docs }) => `- \`${name}\`: ${docs}\n`).join('');
61
+ description += '\n';
62
+ }
63
+ // Return
64
+ return description;
65
+ };
66
+
67
+ /**
68
+ * Get Props Description
69
+ * @param prop - Component Property
70
+ * @returns Props Description
71
+ */
72
+ const getAttributeDescription = (prop: JsonDocsProp): string => {
73
+ return `${prop.docs}\n\nType: \`${prop.type}\``;
74
+ };
75
+
76
+ /**
77
+ * Generate Web Types metadata for IntelliJ's IDE
78
+ * @param name - Library name
79
+ * @param version - Library version
80
+ * @param jsonDocs - Stencil JSON doc
81
+ * @param storybookBaseUrl - Storybook Base Url
82
+ * @returns Web Types metadata
83
+ * @example
84
+ * ```ts
85
+ * const webTypesJson = webTypesGenerator('@mgdis/mg-components', '1.0.0', jsonDocs, 'https://storybook.example.com');
86
+ * ```
87
+ */
88
+ export const webTypesGenerator = (name: string, version: string, jsonDocs: JsonDocs, storybookBaseUrl: string) => ({
89
+ '$schema': 'https://json.schemastore.org/web-types',
90
+ name,
91
+ version,
92
+ 'description-markup': 'markdown',
93
+ 'contributions': {
94
+ html: {
95
+ elements: jsonDocs.components.map(component => {
96
+ const docUrl = getStorybookUrl(storybookBaseUrl, component.filePath);
97
+ return {
98
+ 'name': component.tag,
99
+ 'description': getElementDescription(component),
100
+ 'doc-url': docUrl,
101
+ 'attributes': component.props
102
+ .filter(prop => prop.attr)
103
+ .map(prop => ({
104
+ 'name': prop.attr,
105
+ 'description': getAttributeDescription(prop),
106
+ 'doc-url': docUrl,
107
+ 'value': {
108
+ type: prop.type,
109
+ default: prop.default,
110
+ required: prop.required,
111
+ },
112
+ })),
113
+ 'js': {
114
+ properties: component.props.map(prop => ({
115
+ 'name': prop.name,
116
+ 'description': getAttributeDescription(prop),
117
+ 'doc-url': docUrl,
118
+ 'value': {
119
+ type: prop.type,
120
+ default: prop.default,
121
+ required: prop.required,
122
+ },
123
+ })),
124
+ events: component.events.map(event => ({
125
+ name: event.event,
126
+ description: event.docs,
127
+ })),
128
+ },
129
+ 'css': {
130
+ properties: component.styles.map(style => ({
131
+ name: style.name,
132
+ description: style.docs,
133
+ })),
134
+ },
135
+ };
136
+ }),
137
+ },
138
+ },
139
+ });
140
+
141
+ /**
142
+ * Create Storybook Reference
143
+ * @param storybookBaseUrl - Storybook Base Url
144
+ * @param filePath - Component file path
145
+ * @returns Storybook Reference
146
+ */
147
+ const getReferences = (storybookBaseUrl: string, sourceBaseUrl: string, filePath: string | undefined) => {
148
+ return [
149
+ { name: 'Storybook', url: getStorybookUrl(storybookBaseUrl, filePath) },
150
+ { name: 'Sources', url: getSourcesUrl(sourceBaseUrl, filePath) },
151
+ ];
152
+ };
153
+
154
+ /**
155
+ * Get Property possible values
156
+ * @param prop - Component Property
157
+ * @returns Property possible values
158
+ */
159
+ const getValues = (prop: JsonDocsProp): unknown[] | undefined => {
160
+ // Only values Array where all objects have a value seems to be usefull
161
+ if (prop.values.some(({ value }) => value === undefined)) {
162
+ return;
163
+ }
164
+ return prop.values.map(({ value }) => ({ name: value }));
165
+ };
166
+
167
+ /**
168
+ * Generate custom HTML datasets for VS Code
169
+ * @param jsonDocs - Stencil JSON doc
170
+ * @param storybookBaseUrl - Storybook Base Url
171
+ * @returns custom HTML datasets
172
+ * @example
173
+ * ```ts
174
+ * const customDataJson = vsCodeGenerator(jsonDocs, 'https://storybook.example.com', 'https://sources.example.com');
175
+ * ```
176
+ */
177
+ export const vsCodeGenerator = (jsonDocs: JsonDocs, storybookBaseUrl: string, sourceBaseUrl: string) => ({
178
+ version: 1.1,
179
+ tags: jsonDocs.components.map(component => {
180
+ const references = getReferences(storybookBaseUrl, sourceBaseUrl, component.filePath);
181
+ return {
182
+ name: component.tag,
183
+ description: getElementDescription(component),
184
+ attributes: component.props.map(prop => ({
185
+ name: prop.attr ?? prop.name,
186
+ description: getAttributeDescription(prop),
187
+ values: getValues(prop),
188
+ references,
189
+ })),
190
+ references,
191
+ };
192
+ }),
193
+ globalAttributes: [],
194
+ valueSets: [],
195
+ });
196
+
197
+ /**
198
+ * Generate custom CSS datasets for VS Code
199
+ * @param jsonDocs - Stencil JSON doc
200
+ * @returns custom CSS datasets
201
+ * @example
202
+ * ```ts
203
+ * const customDataJson = vsCodeCssGenerator(jsonDocs);
204
+ * ```
205
+ */
206
+ export const vsCodeCssGenerator = (jsonDocs: JsonDocs) => ({
207
+ version: 1.1,
208
+ properties: jsonDocs.components.flatMap(component =>
209
+ component.styles.map(style => ({
210
+ name: style.name,
211
+ description: style.docs,
212
+ })),
213
+ ),
214
+ });
@@ -0,0 +1 @@
1
+ export * from './ide';
@@ -0,0 +1,12 @@
1
+ import { describe, expect, test } from 'vitest';
2
+ import { webTypesGenerator, vsCodeGenerator, vsCodeCssGenerator } from '.';
3
+
4
+ describe('stencil', () => {
5
+ describe('ide', () => {
6
+ test('import', () => {
7
+ expect(webTypesGenerator).toBeDefined();
8
+ expect(vsCodeGenerator).toBeDefined();
9
+ expect(vsCodeCssGenerator).toBeDefined();
10
+ });
11
+ });
12
+ });
@@ -0,0 +1 @@
1
+ export * from './ide';
@@ -0,0 +1,15 @@
1
+ import { describe, expect, test } from 'vitest';
2
+ import { filterArgs, getStorybookUrl, getStoryHTML, stencilWrapper, StorybookPreview } from '.';
3
+
4
+ describe('storybook', () => {
5
+ describe('stencil', () => {
6
+ test('import', () => {
7
+ expect(filterArgs).toBeDefined();
8
+ expect(stencilWrapper).toBeDefined();
9
+ expect(getStoryHTML).toBeDefined();
10
+ expect(getStorybookUrl).toBeDefined();
11
+ expect(stencilWrapper).toBeDefined();
12
+ expect(StorybookPreview).toBeDefined();
13
+ });
14
+ });
15
+ });
@@ -0,0 +1 @@
1
+ export * from './stencil';
@@ -0,0 +1,329 @@
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
+
3
+ exports[`stencil > StorybookPreview > extractArgTypes > Should extract arg types 1`] = `
4
+ {
5
+ "": {
6
+ "description": "",
7
+ "name": "default",
8
+ "table": {
9
+ "category": "slots",
10
+ "type": {
11
+ "summary": undefined,
12
+ },
13
+ },
14
+ },
15
+ "--custom-property": {
16
+ "description": "Custom property documentation",
17
+ "name": "--custom-property",
18
+ "table": {
19
+ "category": "custom properties",
20
+ "type": {
21
+ "summary": undefined,
22
+ },
23
+ },
24
+ },
25
+ "arraytypes": {
26
+ "control": {
27
+ "type": "object",
28
+ },
29
+ "description": "docs",
30
+ "name": "arraytypes",
31
+ "options": undefined,
32
+ "table": {
33
+ "category": "props",
34
+ "defaultValue": {
35
+ "summary": undefined,
36
+ },
37
+ "type": {
38
+ "summary": "number[] | string[]",
39
+ },
40
+ },
41
+ "type": {
42
+ "required": true,
43
+ },
44
+ },
45
+ "attr": {
46
+ "control": {
47
+ "type": "text",
48
+ },
49
+ "description": "docs",
50
+ "name": "attr",
51
+ "options": undefined,
52
+ "table": {
53
+ "category": "props",
54
+ "defaultValue": {
55
+ "summary": undefined,
56
+ },
57
+ "type": {
58
+ "summary": "string",
59
+ },
60
+ },
61
+ "type": {
62
+ "required": true,
63
+ },
64
+ },
65
+ "boolean": {
66
+ "control": {
67
+ "type": "boolean",
68
+ },
69
+ "description": "docs",
70
+ "name": "boolean",
71
+ "options": undefined,
72
+ "table": {
73
+ "category": "props",
74
+ "defaultValue": {
75
+ "summary": undefined,
76
+ },
77
+ "type": {
78
+ "summary": "boolean",
79
+ },
80
+ },
81
+ "type": {
82
+ "required": true,
83
+ },
84
+ },
85
+ "event": {
86
+ "description": "docs",
87
+ "name": "event",
88
+ "table": {
89
+ "category": "events",
90
+ "type": {
91
+ "summary": "boolean",
92
+ },
93
+ },
94
+ },
95
+ "method": {
96
+ "description": "docs",
97
+ "name": "method",
98
+ "table": {
99
+ "category": "methods",
100
+ "type": {
101
+ "summary": "",
102
+ },
103
+ },
104
+ },
105
+ "multionetype": {
106
+ "control": {
107
+ "type": "object",
108
+ },
109
+ "description": "docs",
110
+ "name": "multionetype",
111
+ "options": undefined,
112
+ "table": {
113
+ "category": "props",
114
+ "defaultValue": {
115
+ "summary": undefined,
116
+ },
117
+ "type": {
118
+ "summary": "(string | number)[]",
119
+ },
120
+ },
121
+ "type": {
122
+ "required": true,
123
+ },
124
+ },
125
+ "multitype": {
126
+ "control": {
127
+ "type": "select",
128
+ },
129
+ "description": "docs",
130
+ "name": "multitype",
131
+ "options": [
132
+ undefined,
133
+ "blu",
134
+ "bli",
135
+ ],
136
+ "table": {
137
+ "category": "props",
138
+ "defaultValue": {
139
+ "summary": undefined,
140
+ },
141
+ "type": {
142
+ "summary": ""blu" | "bli"",
143
+ },
144
+ },
145
+ "type": {
146
+ "required": true,
147
+ },
148
+ },
149
+ "multitypewithstring": {
150
+ "control": {
151
+ "type": "text",
152
+ },
153
+ "description": "docs",
154
+ "name": "multitypewithstring",
155
+ "options": undefined,
156
+ "table": {
157
+ "category": "props",
158
+ "defaultValue": {
159
+ "summary": undefined,
160
+ },
161
+ "type": {
162
+ "summary": "number | string",
163
+ },
164
+ },
165
+ "type": {
166
+ "required": true,
167
+ },
168
+ },
169
+ "my-second-comp": {
170
+ "description": "<a href="./?path=/docs/undefined">View Component Documentation</a>",
171
+ "name": "my-second-comp",
172
+ "table": {
173
+ "category": "depends on",
174
+ "type": {
175
+ "summary": undefined,
176
+ },
177
+ },
178
+ },
179
+ "number": {
180
+ "control": {
181
+ "type": "number",
182
+ },
183
+ "description": "docs",
184
+ "name": "number",
185
+ "options": undefined,
186
+ "table": {
187
+ "category": "props",
188
+ "defaultValue": {
189
+ "summary": undefined,
190
+ },
191
+ "type": {
192
+ "summary": "number",
193
+ },
194
+ },
195
+ "type": {
196
+ "required": true,
197
+ },
198
+ },
199
+ "objecttype": {
200
+ "control": {
201
+ "type": "object",
202
+ },
203
+ "description": "docs",
204
+ "name": "objecttype",
205
+ "options": undefined,
206
+ "table": {
207
+ "category": "props",
208
+ "defaultValue": {
209
+ "summary": undefined,
210
+ },
211
+ "type": {
212
+ "summary": "{ type: string, value: "blu" | "bli" }",
213
+ },
214
+ },
215
+ "type": {
216
+ "required": true,
217
+ },
218
+ },
219
+ "prop": {
220
+ "control": {
221
+ "type": "text",
222
+ },
223
+ "description": "docs",
224
+ "name": "prop",
225
+ "options": undefined,
226
+ "table": {
227
+ "category": "props",
228
+ "defaultValue": {
229
+ "summary": undefined,
230
+ },
231
+ "type": {
232
+ "summary": "string",
233
+ },
234
+ },
235
+ "type": {
236
+ "required": true,
237
+ },
238
+ },
239
+ "title": {
240
+ "description": "",
241
+ "name": "title",
242
+ "table": {
243
+ "category": "slots",
244
+ "type": {
245
+ "summary": undefined,
246
+ },
247
+ },
248
+ },
249
+ }
250
+ `;
251
+
252
+ exports[`stencil > StorybookPreview > extractArgTypes > Should extract arg types 2`] = `
253
+ {
254
+ "my-comp": {
255
+ "description": "<a href="./?path=/docs/atoms-my-comp--docs">View Component Documentation</a>",
256
+ "name": "my-comp",
257
+ "table": {
258
+ "category": "used by",
259
+ "type": {
260
+ "summary": undefined,
261
+ },
262
+ },
263
+ },
264
+ }
265
+ `;
266
+
267
+ exports[`stencil > StorybookPreview > extractComponentDescription > Should extract component description 1`] = `""`;
268
+
269
+ exports[`stencil > getStoryHTML > Should render story code exemple 1`] = `""`;
270
+
271
+ exports[`stencil > getStoryHTML > Should render story code exemple 2`] = `""`;
272
+
273
+ exports[`stencil > getStoryHTML > Should render story code exemple 3`] = `""`;
274
+
275
+ exports[`stencil > getStoryHTML > Should render story code exemple 4`] = `"<mg-batman></mg-batman>"`;
276
+
277
+ exports[`stencil > getStoryHTML > Should render story code exemple 5`] = `"<mg-batman></mg-batman>"`;
278
+
279
+ exports[`stencil > getStoryHTML > Should render story code exemple 6`] = `
280
+ "<mg-batman
281
+ boolean
282
+ text="hello"
283
+ object="⚠️ Property must be set through a script or a framework-specific syntax."
284
+ array="⚠️ Property must be set through a script or a framework-specific syntax."
285
+ function="⚠️ Property must be set through a script or a framework-specific syntax."
286
+ ></mg-batman>"
287
+ `;
288
+
289
+ exports[`stencil > getStoryHTML > Should render story code exemple 7`] = `"<mg-batman>joker is behind you</mg-batman>"`;
290
+
291
+ exports[`stencil > getStoryHTML > Should render story code exemple 8`] = `
292
+ "<mg-batman
293
+ boolean
294
+ text="hello"
295
+ object="⚠️ Property must be set through a script or a framework-specific syntax."
296
+ >
297
+ <baby-batman></baby-batman>
298
+ </mg-batman>"
299
+ `;
300
+
301
+ exports[`stencil > getStoryHTML > Should render story code exemple 9`] = `"joker is behind you"`;
302
+
303
+ exports[`stencil > getStoryHTML > Should render story code exemple 10`] = `
304
+ "<mg-batman
305
+ boolean
306
+ text="hello"
307
+ object="⚠️ Property must be set through a script or a framework-specific syntax."
308
+ >joker is behind you</mg-batman>"
309
+ `;
310
+
311
+ exports[`stencil > getStoryHTML > Should render story code exemple 11`] = `
312
+ "<mg-batman
313
+ boolean
314
+ text="hello"
315
+ object="⚠️ Property must be set through a script or a framework-specific syntax."
316
+ >
317
+ <baby-batman>joker is behind you</baby-batman>
318
+ </mg-batman>"
319
+ `;
320
+
321
+ exports[`stencil > getStoryHTML > Should render story code exemple 12`] = `
322
+ "<blu-blu
323
+ boolean
324
+ text="hello"
325
+ blu="blu bli bla blo"
326
+ number="42"
327
+ html-content="Help text with html <b>bold</b>, <em>italic</em>."
328
+ ></blu-blu>"
329
+ `;
@@ -0,0 +1 @@
1
+ export * from './stencil';
@@ -0,0 +1 @@
1
+ declare module '@stencil/core/internal/client';
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Define compents default args type
3
+ */
4
+ export type ArgsType = { [x: string]: unknown };