le-kit 0.1.3 → 0.1.5

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 (257) hide show
  1. package/dist/le-kit/assets/custom-elements.json +4305 -0
  2. package/dist/le-kit/index-Da-89pOc.js +4522 -0
  3. package/dist/le-kit/{index-D21JjI31.js.map → index-Da-89pOc.js.map} +1 -1
  4. package/dist/le-kit/index.esm.js +116 -2
  5. package/dist/le-kit/index.esm.js.map +1 -1
  6. package/dist/{esm → le-kit}/le-box.entry.js +3 -3
  7. package/dist/le-kit/le-button.entry.esm.js.map +1 -0
  8. package/dist/le-kit/le-button.entry.js +90 -0
  9. package/dist/{esm → le-kit}/le-card.entry.js +3 -3
  10. package/dist/le-kit/le-checkbox.entry.esm.js.map +1 -0
  11. package/dist/le-kit/le-checkbox.entry.js +59 -0
  12. package/dist/le-kit/le-component.entry.esm.js.map +1 -0
  13. package/dist/{collection/components/le-component/le-component.js → le-kit/le-component.entry.js} +19 -134
  14. package/dist/le-kit/le-kit.css +1010 -1
  15. package/dist/le-kit/le-kit.esm.js +48 -2
  16. package/dist/le-kit/le-kit.esm.js.map +1 -1
  17. package/dist/{esm → le-kit}/le-number-input.entry.js +5 -5
  18. package/dist/le-kit/le-popover.entry.esm.js.map +1 -0
  19. package/dist/{components/le-popover2.js → le-kit/le-popover.entry.js} +9 -45
  20. package/dist/{esm → le-kit}/le-popup.entry.js +6 -6
  21. package/dist/{esm → le-kit}/le-round-progress.entry.js +2 -2
  22. package/dist/le-kit/le-slot.entry.esm.js.map +1 -0
  23. package/dist/{collection/components/le-slot/le-slot.js → le-kit/le-slot.entry.js} +30 -279
  24. package/dist/{esm → le-kit}/le-stack.entry.js +3 -3
  25. package/dist/le-kit/le-string-input.entry.esm.js.map +1 -0
  26. package/dist/le-kit/le-string-input.entry.js +93 -0
  27. package/dist/{esm → le-kit}/le-text.entry.js +3 -3
  28. package/dist/{esm → le-kit}/le-turntable.entry.js +2 -2
  29. package/dist/{esm/utils-CJLZrrdC.js → le-kit/utils-FDOApZ53.js} +3 -3
  30. package/dist/le-kit/{utils-apol-Xc_.js.map → utils-FDOApZ53.js.map} +1 -1
  31. package/package.json +3 -54
  32. package/readme.md +2 -35
  33. package/dist/admin/index.d.ts +0 -23
  34. package/dist/admin/index.js +0 -74
  35. package/dist/admin/loader.js +0 -9
  36. package/dist/cjs/index-CO4npcak.js +0 -1796
  37. package/dist/cjs/index-CO4npcak.js.map +0 -1
  38. package/dist/cjs/index.cjs.js +0 -117
  39. package/dist/cjs/index.cjs.js.map +0 -1
  40. package/dist/cjs/le-box.cjs.entry.js +0 -184
  41. package/dist/cjs/le-box.entry.cjs.js.map +0 -1
  42. package/dist/cjs/le-button.le-checkbox.le-component.le-popover.le-slot.le-string-input.entry.cjs.js.map +0 -1
  43. package/dist/cjs/le-button_6.cjs.entry.js +0 -1199
  44. package/dist/cjs/le-card.cjs.entry.js +0 -29
  45. package/dist/cjs/le-card.entry.cjs.js.map +0 -1
  46. package/dist/cjs/le-kit.cjs.js +0 -25
  47. package/dist/cjs/le-kit.cjs.js.map +0 -1
  48. package/dist/cjs/le-number-input.cjs.entry.js +0 -202
  49. package/dist/cjs/le-number-input.entry.cjs.js.map +0 -1
  50. package/dist/cjs/le-popup.cjs.entry.js +0 -212
  51. package/dist/cjs/le-popup.entry.cjs.js.map +0 -1
  52. package/dist/cjs/le-round-progress.cjs.entry.js +0 -106
  53. package/dist/cjs/le-round-progress.entry.cjs.js.map +0 -1
  54. package/dist/cjs/le-stack.cjs.entry.js +0 -135
  55. package/dist/cjs/le-stack.entry.cjs.js.map +0 -1
  56. package/dist/cjs/le-text.cjs.entry.js +0 -335
  57. package/dist/cjs/le-text.entry.cjs.js.map +0 -1
  58. package/dist/cjs/le-turntable.cjs.entry.js +0 -139
  59. package/dist/cjs/le-turntable.entry.cjs.js.map +0 -1
  60. package/dist/cjs/loader.cjs.js +0 -13
  61. package/dist/cjs/loader.cjs.js.map +0 -1
  62. package/dist/cjs/utils-BeT0iyCQ.js +0 -152
  63. package/dist/cjs/utils-BeT0iyCQ.js.map +0 -1
  64. package/dist/collection/collection-manifest.json +0 -26
  65. package/dist/collection/components/le-box/le-box.default.css +0 -37
  66. package/dist/collection/components/le-box/le-box.js +0 -614
  67. package/dist/collection/components/le-box/le-box.js.map +0 -1
  68. package/dist/collection/components/le-button/le-button.default.css +0 -263
  69. package/dist/collection/components/le-button/le-button.js +0 -368
  70. package/dist/collection/components/le-button/le-button.js.map +0 -1
  71. package/dist/collection/components/le-card/le-card.default.css +0 -74
  72. package/dist/collection/components/le-card/le-card.js +0 -102
  73. package/dist/collection/components/le-card/le-card.js.map +0 -1
  74. package/dist/collection/components/le-checkbox/le-checkbox.css +0 -93
  75. package/dist/collection/components/le-checkbox/le-checkbox.js +0 -192
  76. package/dist/collection/components/le-checkbox/le-checkbox.js.map +0 -1
  77. package/dist/collection/components/le-component/le-component.css +0 -189
  78. package/dist/collection/components/le-component/le-component.js.map +0 -1
  79. package/dist/collection/components/le-number-input/le-number-input.css +0 -135
  80. package/dist/collection/components/le-number-input/le-number-input.js +0 -515
  81. package/dist/collection/components/le-number-input/le-number-input.js.map +0 -1
  82. package/dist/collection/components/le-popover/le-popover.css +0 -143
  83. package/dist/collection/components/le-popover/le-popover.js +0 -693
  84. package/dist/collection/components/le-popover/le-popover.js.map +0 -1
  85. package/dist/collection/components/le-popup/le-popup.api.js +0 -101
  86. package/dist/collection/components/le-popup/le-popup.api.js.map +0 -1
  87. package/dist/collection/components/le-popup/le-popup.css +0 -222
  88. package/dist/collection/components/le-popup/le-popup.js +0 -596
  89. package/dist/collection/components/le-popup/le-popup.js.map +0 -1
  90. package/dist/collection/components/le-round-progress/le-round-progress.css +0 -34
  91. package/dist/collection/components/le-round-progress/le-round-progress.js +0 -184
  92. package/dist/collection/components/le-round-progress/le-round-progress.js.map +0 -1
  93. package/dist/collection/components/le-slot/le-slot.default.css +0 -222
  94. package/dist/collection/components/le-slot/le-slot.js.map +0 -1
  95. package/dist/collection/components/le-stack/le-stack.default.css +0 -37
  96. package/dist/collection/components/le-stack/le-stack.js +0 -389
  97. package/dist/collection/components/le-stack/le-stack.js.map +0 -1
  98. package/dist/collection/components/le-string-input/le-string-input.css +0 -83
  99. package/dist/collection/components/le-string-input/le-string-input.js +0 -359
  100. package/dist/collection/components/le-string-input/le-string-input.js.map +0 -1
  101. package/dist/collection/components/le-text/le-text.default.css +0 -169
  102. package/dist/collection/components/le-text/le-text.js +0 -475
  103. package/dist/collection/components/le-text/le-text.js.map +0 -1
  104. package/dist/collection/components/le-turntable/le-turntable.css +0 -10
  105. package/dist/collection/components/le-turntable/le-turntable.js +0 -210
  106. package/dist/collection/components/le-turntable/le-turntable.js.map +0 -1
  107. package/dist/collection/global/app.js +0 -130
  108. package/dist/collection/global/app.js.map +0 -1
  109. package/dist/collection/index-admin.js +0 -27
  110. package/dist/collection/index-admin.js.map +0 -1
  111. package/dist/collection/index-core.js +0 -25
  112. package/dist/collection/index-core.js.map +0 -1
  113. package/dist/collection/index.js +0 -15
  114. package/dist/collection/index.js.map +0 -1
  115. package/dist/collection/types/blocks.js +0 -115
  116. package/dist/collection/types/blocks.js.map +0 -1
  117. package/dist/collection/types/options.js +0 -2
  118. package/dist/collection/types/options.js.map +0 -1
  119. package/dist/collection/utils/utils.js +0 -141
  120. package/dist/collection/utils/utils.js.map +0 -1
  121. package/dist/components/index.js +0 -127
  122. package/dist/components/index.js.map +0 -1
  123. package/dist/components/le-box.js +0 -256
  124. package/dist/components/le-box.js.map +0 -1
  125. package/dist/components/le-button.js +0 -9
  126. package/dist/components/le-button.js.map +0 -1
  127. package/dist/components/le-button2.js +0 -1408
  128. package/dist/components/le-button2.js.map +0 -1
  129. package/dist/components/le-card.js +0 -83
  130. package/dist/components/le-card.js.map +0 -1
  131. package/dist/components/le-checkbox.js +0 -9
  132. package/dist/components/le-checkbox.js.map +0 -1
  133. package/dist/components/le-component.js +0 -9
  134. package/dist/components/le-component.js.map +0 -1
  135. package/dist/components/le-number-input.js +0 -271
  136. package/dist/components/le-number-input.js.map +0 -1
  137. package/dist/components/le-popover.js +0 -9
  138. package/dist/components/le-popover.js.map +0 -1
  139. package/dist/components/le-popover2.js.map +0 -1
  140. package/dist/components/le-popup.js +0 -279
  141. package/dist/components/le-popup.js.map +0 -1
  142. package/dist/components/le-round-progress.js +0 -135
  143. package/dist/components/le-round-progress.js.map +0 -1
  144. package/dist/components/le-slot.js +0 -9
  145. package/dist/components/le-slot.js.map +0 -1
  146. package/dist/components/le-stack.js +0 -198
  147. package/dist/components/le-stack.js.map +0 -1
  148. package/dist/components/le-string-input.js +0 -9
  149. package/dist/components/le-string-input.js.map +0 -1
  150. package/dist/components/le-text.js +0 -398
  151. package/dist/components/le-text.js.map +0 -1
  152. package/dist/components/le-turntable.js +0 -164
  153. package/dist/components/le-turntable.js.map +0 -1
  154. package/dist/core/components/index.d.ts +0 -64
  155. package/dist/core/components/index.js +0 -125
  156. package/dist/core/components/index.js.map +0 -1
  157. package/dist/core/components/le-box.d.ts +0 -11
  158. package/dist/core/components/le-box.js +0 -246
  159. package/dist/core/components/le-box.js.map +0 -1
  160. package/dist/core/components/le-button.d.ts +0 -11
  161. package/dist/core/components/le-button.js +0 -9
  162. package/dist/core/components/le-button.js.map +0 -1
  163. package/dist/core/components/le-button2.js +0 -1358
  164. package/dist/core/components/le-button2.js.map +0 -1
  165. package/dist/core/components/le-card.d.ts +0 -11
  166. package/dist/core/components/le-card.js +0 -73
  167. package/dist/core/components/le-card.js.map +0 -1
  168. package/dist/core/components/le-checkbox.d.ts +0 -11
  169. package/dist/core/components/le-checkbox.js +0 -9
  170. package/dist/core/components/le-checkbox.js.map +0 -1
  171. package/dist/core/components/le-component.js.map +0 -1
  172. package/dist/core/components/le-number-input.d.ts +0 -11
  173. package/dist/core/components/le-number-input.js +0 -261
  174. package/dist/core/components/le-number-input.js.map +0 -1
  175. package/dist/core/components/le-popover.d.ts +0 -11
  176. package/dist/core/components/le-popover.js +0 -9
  177. package/dist/core/components/le-popover.js.map +0 -1
  178. package/dist/core/components/le-popover2.js +0 -382
  179. package/dist/core/components/le-popover2.js.map +0 -1
  180. package/dist/core/components/le-popup.d.ts +0 -11
  181. package/dist/core/components/le-popup.js +0 -269
  182. package/dist/core/components/le-popup.js.map +0 -1
  183. package/dist/core/components/le-round-progress.d.ts +0 -11
  184. package/dist/core/components/le-round-progress.js +0 -135
  185. package/dist/core/components/le-round-progress.js.map +0 -1
  186. package/dist/core/components/le-slot.js.map +0 -1
  187. package/dist/core/components/le-stack.d.ts +0 -11
  188. package/dist/core/components/le-stack.js +0 -188
  189. package/dist/core/components/le-stack.js.map +0 -1
  190. package/dist/core/components/le-string-input.d.ts +0 -11
  191. package/dist/core/components/le-string-input.js +0 -9
  192. package/dist/core/components/le-string-input.js.map +0 -1
  193. package/dist/core/components/le-text.d.ts +0 -11
  194. package/dist/core/components/le-text.js +0 -388
  195. package/dist/core/components/le-text.js.map +0 -1
  196. package/dist/core/components/le-turntable.d.ts +0 -11
  197. package/dist/core/components/le-turntable.js +0 -164
  198. package/dist/core/components/le-turntable.js.map +0 -1
  199. package/dist/core/index.d.ts +0 -21
  200. package/dist/core/index.js +0 -68
  201. package/dist/core/loader.js +0 -9
  202. package/dist/core/stencil-runtime.js +0 -1
  203. package/dist/docs.d.ts +0 -443
  204. package/dist/docs.json +0 -5185
  205. package/dist/esm/index-D71TXvJa.js +0 -1781
  206. package/dist/esm/index-D71TXvJa.js.map +0 -1
  207. package/dist/esm/index.js +0 -106
  208. package/dist/esm/index.js.map +0 -1
  209. package/dist/esm/le-box.entry.js.map +0 -1
  210. package/dist/esm/le-button.le-checkbox.le-component.le-popover.le-slot.le-string-input.entry.js.map +0 -1
  211. package/dist/esm/le-button_6.entry.js +0 -1192
  212. package/dist/esm/le-card.entry.js.map +0 -1
  213. package/dist/esm/le-kit.js +0 -21
  214. package/dist/esm/le-kit.js.map +0 -1
  215. package/dist/esm/le-number-input.entry.js.map +0 -1
  216. package/dist/esm/le-popup.entry.js.map +0 -1
  217. package/dist/esm/le-round-progress.entry.js.map +0 -1
  218. package/dist/esm/le-stack.entry.js.map +0 -1
  219. package/dist/esm/le-text.entry.js.map +0 -1
  220. package/dist/esm/le-turntable.entry.js.map +0 -1
  221. package/dist/esm/loader.js +0 -11
  222. package/dist/esm/loader.js.map +0 -1
  223. package/dist/esm/utils-CJLZrrdC.js.map +0 -1
  224. package/dist/index.cjs.js +0 -1
  225. package/dist/index.js +0 -1
  226. package/dist/le-kit/le-button.le-checkbox.le-component.le-popover.le-slot.le-string-input.entry.esm.js.map +0 -1
  227. package/dist/le-kit/p-024a764e.entry.js +0 -2
  228. package/dist/le-kit/p-024a764e.entry.js.map +0 -1
  229. package/dist/le-kit/p-073cf0b9.entry.js +0 -2
  230. package/dist/le-kit/p-073cf0b9.entry.js.map +0 -1
  231. package/dist/le-kit/p-0955b105.entry.js +0 -2
  232. package/dist/le-kit/p-0955b105.entry.js.map +0 -1
  233. package/dist/le-kit/p-18d79ee2.entry.js +0 -2
  234. package/dist/le-kit/p-18d79ee2.entry.js.map +0 -1
  235. package/dist/le-kit/p-4b1d3b6d.entry.js +0 -2
  236. package/dist/le-kit/p-4b1d3b6d.entry.js.map +0 -1
  237. package/dist/le-kit/p-79d179bd.entry.js +0 -2
  238. package/dist/le-kit/p-79d179bd.entry.js.map +0 -1
  239. package/dist/le-kit/p-D71TXvJa.js +0 -3
  240. package/dist/le-kit/p-D71TXvJa.js.map +0 -1
  241. package/dist/le-kit/p-c8a9288e.entry.js +0 -2
  242. package/dist/le-kit/p-c8a9288e.entry.js.map +0 -1
  243. package/dist/le-kit/p-cfc35bd3.entry.js +0 -2
  244. package/dist/le-kit/p-cfc35bd3.entry.js.map +0 -1
  245. package/dist/le-kit/p-d04da1f5.entry.js +0 -2
  246. package/dist/le-kit/p-d04da1f5.entry.js.map +0 -1
  247. package/dist/le-kit/p-qIai5-eB.js +0 -2
  248. package/dist/le-kit/p-qIai5-eB.js.map +0 -1
  249. package/dist/themes/base.css +0 -89
  250. package/dist/themes/dark.css +0 -100
  251. package/dist/themes/default.css +0 -108
  252. package/dist/themes/gradient.css +0 -100
  253. package/dist/themes/index.css +0 -413
  254. package/dist/themes/minimal.css +0 -100
  255. package/dist/themes/warm.css +0 -100
  256. package/dist/types/index-admin.d.ts +0 -29
  257. package/dist/types/index-core.d.ts +0 -27
package/dist/docs.d.ts DELETED
@@ -1,443 +0,0 @@
1
-
2
- /**
3
- * This is an autogenerated file created by the Stencil compiler.
4
- * DO NOT MODIFY IT MANUALLY
5
- */
6
- interface ComponentCompilerPropertyComplexType {
7
- /**
8
- * The string of the original type annotation in the Stencil source code
9
- */
10
- original: string;
11
- /**
12
- * A 'resolved' type, where e.g. imported types have been resolved and inlined
13
- *
14
- * For instance, an annotation like `(foo: Foo) => string;` will be
15
- * converted to `(foo: { foo: string }) => string;`.
16
- */
17
- resolved: string;
18
- /**
19
- * A record of the types which were referenced in the assorted type
20
- * annotation in the original source file.
21
- */
22
- references: ComponentCompilerTypeReferences;
23
- }
24
- type ComponentCompilerTypeReferences = Record<string, ComponentCompilerTypeReference>;
25
- interface ComponentCompilerTypeReference {
26
- /**
27
- * A type may be defined:
28
- * - locally (in the same file as the component that uses it)
29
- * - globally
30
- * - by importing it into a file (and is defined elsewhere)
31
- */
32
- location: "local" | "global" | "import";
33
- /**
34
- * The path to the type reference, if applicable (global types should not need a path associated with them)
35
- */
36
- path?: string;
37
- /**
38
- * An ID for this type which is unique within a Stencil project.
39
- */
40
- id: string;
41
- }
42
- interface ComponentCompilerReferencedType {
43
- /**
44
- * The path to the module where the type is declared.
45
- */
46
- path: string;
47
- /**
48
- * The string of the original type annotation in the Stencil source code
49
- */
50
- declaration: string;
51
- /**
52
- * An extracted docstring
53
- */
54
- docstring: string;
55
- }
56
- interface ComponentCompilerEventComplexType {
57
- original: string;
58
- resolved: string;
59
- references: ComponentCompilerTypeReferences;
60
- }
61
- interface ComponentCompilerMethodComplexType {
62
- signature: string;
63
- parameters: JsonDocMethodParameter[];
64
- references: ComponentCompilerTypeReferences;
65
- return: string;
66
- }
67
- /**
68
- * The Type Library holds information about the types which are used in a
69
- * Stencil project. During compilation, Stencil gathers information about the
70
- * types which form part of a component's public API, such as properties
71
- * decorated with `@Prop`, `@Event`, `@Watch`, etc. This type information is
72
- * then added to the Type Library, where it can be accessed later on for
73
- * generating documentation.
74
- *
75
- * This information is included in the file written by the `docs-json` output
76
- * target (see {@link JsonDocs.typeLibrary}).
77
- */
78
- export type JsonDocsTypeLibrary = Record<string, ComponentCompilerReferencedType>;
79
- /**
80
- * A container for JSDoc metadata for a project
81
- */
82
- export interface JsonDocs {
83
- /**
84
- * The metadata for the JSDocs for each component in a Stencil project
85
- */
86
- components: JsonDocsComponent[];
87
- /**
88
- * The timestamp at which the metadata was generated, in the format YYYY-MM-DDThh:mm:ss
89
- */
90
- timestamp: string;
91
- compiler: {
92
- /**
93
- * The name of the compiler that generated the metadata
94
- */
95
- name: string;
96
- /**
97
- * The version of the Stencil compiler that generated the metadata
98
- */
99
- version: string;
100
- /**
101
- * The version of TypeScript that was used to generate the metadata
102
- */
103
- typescriptVersion: string;
104
- };
105
- typeLibrary: JsonDocsTypeLibrary;
106
- }
107
- /**
108
- * Container for JSDoc metadata for a single Stencil component
109
- */
110
- export interface JsonDocsComponent {
111
- /**
112
- * The directory containing the Stencil component, minus the file name.
113
- *
114
- * @example /workspaces/stencil-project/src/components/my-component
115
- */
116
- dirPath?: string;
117
- /**
118
- * The name of the file containing the Stencil component, with no path
119
- *
120
- * @example my-component.tsx
121
- */
122
- fileName?: string;
123
- /**
124
- * The full path of the file containing the Stencil component
125
- *
126
- * @example /workspaces/stencil-project/src/components/my-component/my-component.tsx
127
- */
128
- filePath?: string;
129
- /**
130
- * The path to the component's `readme.md` file, including the filename
131
- *
132
- * @example /workspaces/stencil-project/src/components/my-component/readme.md
133
- */
134
- readmePath?: string;
135
- /**
136
- * The path to the component's `usage` directory
137
- *
138
- * @example /workspaces/stencil-project/src/components/my-component/usage/
139
- */
140
- usagesDir?: string;
141
- /**
142
- * The encapsulation strategy for a component
143
- */
144
- encapsulation: "shadow" | "scoped" | "none";
145
- /**
146
- * The tag name for the component, for use in HTML
147
- */
148
- tag: string;
149
- /**
150
- * The contents of a component's `readme.md` that are user generated.
151
- *
152
- * Auto-generated contents are not stored in this reference.
153
- */
154
- readme: string;
155
- /**
156
- * The description of a Stencil component, found in the JSDoc that sits above the component's declaration
157
- */
158
- docs: string;
159
- /**
160
- * JSDoc tags found in the JSDoc comment written atop a component's declaration
161
- */
162
- docsTags: JsonDocsTag[];
163
- /**
164
- * The text from the class-level JSDoc for a Stencil component, if present.
165
- */
166
- overview?: string;
167
- /**
168
- * A mapping of usage example file names to their contents for the component.
169
- */
170
- usage: JsonDocsUsage;
171
- /**
172
- * Array of metadata for a component's `@Prop`s
173
- */
174
- props: JsonDocsProp[];
175
- /**
176
- * Array of metadata for a component's `@Method`s
177
- */
178
- methods: JsonDocsMethod[];
179
- /**
180
- * Array of metadata for a component's `@Event`s
181
- */
182
- events: JsonDocsEvent[];
183
- /**
184
- * Array of metadata for a component's `@Listen` handlers
185
- */
186
- listeners: JsonDocsListener[];
187
- /**
188
- * Array of metadata for a component's CSS styling information
189
- */
190
- styles: JsonDocsStyle[];
191
- /**
192
- * Array of component Slot information, generated from `@slot` tags
193
- */
194
- slots: JsonDocsSlot[];
195
- /**
196
- * Array of component Parts information, generate from `@part` tags
197
- */
198
- parts: JsonDocsPart[];
199
- /**
200
- * Array of metadata describing where the current component is used
201
- */
202
- dependents: string[];
203
- /**
204
- * Array of metadata listing the components which are used in current component
205
- */
206
- dependencies: string[];
207
- /**
208
- * Describes a tree of components coupling
209
- */
210
- dependencyGraph: JsonDocsDependencyGraph;
211
- /**
212
- * A deprecation reason/description found following a `@deprecated` tag
213
- */
214
- deprecation?: string;
215
- }
216
- export interface JsonDocsDependencyGraph {
217
- [tagName: string]: string[];
218
- }
219
- /**
220
- * A descriptor for a single JSDoc tag found in a block comment
221
- */
222
- export interface JsonDocsTag {
223
- /**
224
- * The tag name (immediately following the '@')
225
- */
226
- name: string;
227
- /**
228
- * The description that immediately follows the tag name
229
- */
230
- text?: string;
231
- }
232
- export interface JsonDocsValue {
233
- value?: string;
234
- type: string;
235
- }
236
- /**
237
- * A mapping of file names to their contents.
238
- *
239
- * This type is meant to be used when reading one or more usage markdown files associated with a component. For the
240
- * given directory structure:
241
- * ```
242
- * src/components/my-component
243
- * ├── my-component.tsx
244
- * └── usage
245
- * ├── bar.md
246
- * └── foo.md
247
- * ```
248
- * an instance of this type would include the name of the markdown file, mapped to its contents:
249
- * ```ts
250
- * {
251
- * 'bar': STRING_CONTENTS_OF_BAR.MD
252
- * 'foo': STRING_CONTENTS_OF_FOO.MD
253
- * }
254
- * ```
255
- */
256
- export interface JsonDocsUsage {
257
- [key: string]: string;
258
- }
259
- /**
260
- * An intermediate representation of a `@Prop` decorated member's JSDoc
261
- */
262
- export interface JsonDocsProp {
263
- /**
264
- * the name of the prop
265
- */
266
- name: string;
267
- complexType?: ComponentCompilerPropertyComplexType;
268
- /**
269
- * the type of the prop, in terms of the TypeScript type system (as opposed to JavaScript's or HTML's)
270
- */
271
- type: string;
272
- /**
273
- * `true` if the prop was configured as "mutable" where it was declared, `false` otherwise
274
- */
275
- mutable: boolean;
276
- /**
277
- * The name of the attribute that is exposed to configure a compiled web component
278
- */
279
- attr?: string;
280
- /**
281
- * `true` if the prop was configured to "reflect" back to HTML where it (the prop) was declared, `false` otherwise
282
- */
283
- reflectToAttr: boolean;
284
- /**
285
- * the JSDoc description text associated with the prop
286
- */
287
- docs: string;
288
- /**
289
- * JSDoc tags associated with the prop
290
- */
291
- docsTags: JsonDocsTag[];
292
- /**
293
- * The default value of the prop
294
- */
295
- default?: string;
296
- /**
297
- * Deprecation text associated with the prop. This is the text that immediately follows a `@deprecated` tag
298
- */
299
- deprecation?: string;
300
- values: JsonDocsValue[];
301
- /**
302
- * `true` if a component is declared with a '?', `false` otherwise
303
- *
304
- * @example
305
- * ```tsx
306
- * @Prop() componentProps?: any;
307
- * ```
308
- */
309
- optional: boolean;
310
- /**
311
- * `true` if a component is declared with a '!', `false` otherwise
312
- *
313
- * @example
314
- * ```tsx
315
- * @Prop() componentProps!: any;
316
- * ```
317
- */
318
- required: boolean;
319
- /**
320
- * `true` if the prop has a `get()`. `false` otherwise
321
- */
322
- getter: boolean;
323
- /**
324
- * `true` if the prop has a `set()`. `false` otherwise
325
- */
326
- setter: boolean;
327
- }
328
- export interface JsonDocsMethod {
329
- name: string;
330
- docs: string;
331
- docsTags: JsonDocsTag[];
332
- deprecation?: string;
333
- signature: string;
334
- returns: JsonDocsMethodReturn;
335
- parameters: JsonDocMethodParameter[];
336
- complexType: ComponentCompilerMethodComplexType;
337
- }
338
- export interface JsonDocsMethodReturn {
339
- type: string;
340
- docs: string;
341
- }
342
- export interface JsonDocMethodParameter {
343
- name: string;
344
- type: string;
345
- docs: string;
346
- }
347
- export interface JsonDocsEvent {
348
- event: string;
349
- bubbles: boolean;
350
- cancelable: boolean;
351
- composed: boolean;
352
- complexType: ComponentCompilerEventComplexType;
353
- docs: string;
354
- docsTags: JsonDocsTag[];
355
- deprecation?: string;
356
- detail: string;
357
- }
358
- /**
359
- * Type describing a CSS Style, as described by a JSDoc-style comment
360
- */
361
- export interface JsonDocsStyle {
362
- /**
363
- * The name of the style
364
- */
365
- name: string;
366
- /**
367
- * The type/description associated with the style
368
- */
369
- docs: string;
370
- /**
371
- * The annotation used in the JSDoc of the style (e.g. `@prop`)
372
- */
373
- annotation: string;
374
- /**
375
- * The mode associated with the style
376
- */
377
- mode: string | undefined;
378
- }
379
- export interface JsonDocsListener {
380
- event: string;
381
- target?: string;
382
- capture: boolean;
383
- passive: boolean;
384
- }
385
- /**
386
- * A descriptor for a slot
387
- *
388
- * Objects of this type are translated from the JSDoc tag, `@slot`
389
- */
390
- export interface JsonDocsSlot {
391
- /**
392
- * The name of the slot. Defaults to an empty string for an unnamed slot.
393
- */
394
- name: string;
395
- /**
396
- * A textual description of the slot.
397
- */
398
- docs: string;
399
- }
400
- /**
401
- * A descriptor of a CSS Shadow Part
402
- *
403
- * Objects of this type are translated from the JSDoc tag, `@part`, or the 'part'
404
- * attribute on a component in TSX
405
- */
406
- export interface JsonDocsPart {
407
- /**
408
- * The name of the Shadow part
409
- */
410
- name: string;
411
- /**
412
- * A textual description of the Shadow part.
413
- */
414
- docs: string;
415
- }
416
- /**
417
- * Represents a parsed block comment in a CSS, Sass, etc. file for a custom property.
418
- */
419
- export interface StyleDoc {
420
- /**
421
- * The name of the CSS property
422
- */
423
- name: string;
424
- /**
425
- * The user-defined description of the CSS property
426
- */
427
- docs: string;
428
- /**
429
- * The JSDoc-style annotation (e.g. `@prop`) that was used in the block comment to detect the comment.
430
- * Used to inform Stencil where the start of a new property's description starts (and where the previous description
431
- * ends).
432
- */
433
- annotation: "prop";
434
- /**
435
- * The Stencil style-mode that is associated with this property.
436
- */
437
- mode: string | undefined;
438
- }
439
-
440
- export {};
441
-
442
- declare const _default: JsonDocs;
443
- export default _default;