@htmlplus/element 2.12.0 → 2.13.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 (176) hide show
  1. package/README.md +2 -2
  2. package/bundlers.d.ts +19 -0
  3. package/bundlers.js +75 -0
  4. package/client-5FqNUiuz.d.ts +309 -0
  5. package/client-By_MTZkm.js +1796 -0
  6. package/client.d.ts +1 -0
  7. package/client.js +3 -0
  8. package/constants.d.ts +50 -0
  9. package/constants.js +62 -0
  10. package/internal.d.ts +1 -0
  11. package/internal.js +3 -0
  12. package/package.json +9 -4
  13. package/transformer.d.ts +137 -0
  14. package/transformer.js +1253 -0
  15. package/bundlers/rollup.d.ts +0 -7
  16. package/bundlers/rollup.js +0 -23
  17. package/bundlers/vite.d.ts +0 -8
  18. package/bundlers/vite.js +0 -52
  19. package/client/decorators/bind.d.ts +0 -8
  20. package/client/decorators/bind.js +0 -21
  21. package/client/decorators/context.d.ts +0 -3
  22. package/client/decorators/context.js +0 -121
  23. package/client/decorators/direction.d.ts +0 -5
  24. package/client/decorators/direction.js +0 -8
  25. package/client/decorators/element.d.ts +0 -7
  26. package/client/decorators/element.js +0 -65
  27. package/client/decorators/event.d.ts +0 -35
  28. package/client/decorators/event.js +0 -53
  29. package/client/decorators/host.d.ts +0 -4
  30. package/client/decorators/host.js +0 -7
  31. package/client/decorators/index.d.ts +0 -15
  32. package/client/decorators/index.js +0 -15
  33. package/client/decorators/isRTL.d.ts +0 -4
  34. package/client/decorators/isRTL.js +0 -7
  35. package/client/decorators/listen.d.ts +0 -52
  36. package/client/decorators/listen.js +0 -37
  37. package/client/decorators/method.d.ts +0 -6
  38. package/client/decorators/method.js +0 -15
  39. package/client/decorators/property.d.ts +0 -25
  40. package/client/decorators/property.js +0 -94
  41. package/client/decorators/query.d.ts +0 -9
  42. package/client/decorators/query.js +0 -12
  43. package/client/decorators/queryAll.d.ts +0 -12
  44. package/client/decorators/queryAll.js +0 -15
  45. package/client/decorators/slots.d.ts +0 -4
  46. package/client/decorators/slots.js +0 -7
  47. package/client/decorators/state.d.ts +0 -6
  48. package/client/decorators/state.js +0 -23
  49. package/client/decorators/watch.d.ts +0 -11
  50. package/client/decorators/watch.js +0 -31
  51. package/client/index.d.ts +0 -2
  52. package/client/index.js +0 -2
  53. package/client/utils/appendToMethod.d.ts +0 -1
  54. package/client/utils/appendToMethod.js +0 -15
  55. package/client/utils/attributes.d.ts +0 -2
  56. package/client/utils/attributes.js +0 -33
  57. package/client/utils/call.d.ts +0 -1
  58. package/client/utils/call.js +0 -3
  59. package/client/utils/classes.d.ts +0 -4
  60. package/client/utils/classes.js +0 -45
  61. package/client/utils/config.d.ts +0 -39
  62. package/client/utils/config.js +0 -28
  63. package/client/utils/defineProperty.d.ts +0 -1
  64. package/client/utils/defineProperty.js +0 -1
  65. package/client/utils/direction.d.ts +0 -6
  66. package/client/utils/direction.js +0 -8
  67. package/client/utils/event.d.ts +0 -13
  68. package/client/utils/event.js +0 -48
  69. package/client/utils/getFramework.d.ts +0 -2
  70. package/client/utils/getFramework.js +0 -20
  71. package/client/utils/getStyles.d.ts +0 -2
  72. package/client/utils/getStyles.js +0 -4
  73. package/client/utils/getTag.d.ts +0 -2
  74. package/client/utils/getTag.js +0 -4
  75. package/client/utils/host.d.ts +0 -5
  76. package/client/utils/host.js +0 -12
  77. package/client/utils/index.d.ts +0 -32
  78. package/client/utils/index.js +0 -32
  79. package/client/utils/isCSSColor.d.ts +0 -5
  80. package/client/utils/isCSSColor.js +0 -9
  81. package/client/utils/isEvent.d.ts +0 -1
  82. package/client/utils/isEvent.js +0 -3
  83. package/client/utils/isRTL.d.ts +0 -5
  84. package/client/utils/isRTL.js +0 -5
  85. package/client/utils/isServer.d.ts +0 -4
  86. package/client/utils/isServer.js +0 -6
  87. package/client/utils/merge.d.ts +0 -1
  88. package/client/utils/merge.js +0 -22
  89. package/client/utils/query.d.ts +0 -5
  90. package/client/utils/query.js +0 -7
  91. package/client/utils/queryAll.d.ts +0 -5
  92. package/client/utils/queryAll.js +0 -7
  93. package/client/utils/request.d.ts +0 -9
  94. package/client/utils/request.js +0 -106
  95. package/client/utils/shadowRoot.d.ts +0 -2
  96. package/client/utils/shadowRoot.js +0 -4
  97. package/client/utils/slots.d.ts +0 -9
  98. package/client/utils/slots.js +0 -18
  99. package/client/utils/styles.d.ts +0 -4
  100. package/client/utils/styles.js +0 -10
  101. package/client/utils/task.d.ts +0 -6
  102. package/client/utils/task.js +0 -34
  103. package/client/utils/toBoolean.d.ts +0 -1
  104. package/client/utils/toBoolean.js +0 -3
  105. package/client/utils/toDecorator.d.ts +0 -2
  106. package/client/utils/toDecorator.js +0 -10
  107. package/client/utils/toEvent.d.ts +0 -1
  108. package/client/utils/toEvent.js +0 -3
  109. package/client/utils/toProperty.d.ts +0 -1
  110. package/client/utils/toProperty.js +0 -55
  111. package/client/utils/toUnit.d.ts +0 -4
  112. package/client/utils/toUnit.js +0 -10
  113. package/client/utils/typeOf.d.ts +0 -3
  114. package/client/utils/typeOf.js +0 -6
  115. package/client/utils/uhtml.d.ts +0 -22
  116. package/client/utils/uhtml.js +0 -703
  117. package/client/utils/updateAttribute.d.ts +0 -2
  118. package/client/utils/updateAttribute.js +0 -10
  119. package/constants/index.d.ts +0 -48
  120. package/constants/index.js +0 -60
  121. package/transformer/index.d.ts +0 -3
  122. package/transformer/index.js +0 -3
  123. package/transformer/plugins/assets.d.ts +0 -7
  124. package/transformer/plugins/assets.js +0 -26
  125. package/transformer/plugins/copy.d.ts +0 -9
  126. package/transformer/plugins/copy.js +0 -29
  127. package/transformer/plugins/customElement.d.ts +0 -7
  128. package/transformer/plugins/customElement.js +0 -392
  129. package/transformer/plugins/document.d.ts +0 -7
  130. package/transformer/plugins/document.js +0 -206
  131. package/transformer/plugins/extract.d.ts +0 -2
  132. package/transformer/plugins/extract.js +0 -22
  133. package/transformer/plugins/index.d.ts +0 -12
  134. package/transformer/plugins/index.js +0 -12
  135. package/transformer/plugins/parse.d.ts +0 -6
  136. package/transformer/plugins/parse.js +0 -13
  137. package/transformer/plugins/read.d.ts +0 -7
  138. package/transformer/plugins/read.js +0 -19
  139. package/transformer/plugins/readme.d.ts +0 -6
  140. package/transformer/plugins/readme.js +0 -24
  141. package/transformer/plugins/style.d.ts +0 -6
  142. package/transformer/plugins/style.js +0 -42
  143. package/transformer/plugins/validate.d.ts +0 -2
  144. package/transformer/plugins/validate.js +0 -40
  145. package/transformer/plugins/visualStudioCode.d.ts +0 -8
  146. package/transformer/plugins/visualStudioCode.js +0 -73
  147. package/transformer/plugins/webTypes.d.ts +0 -10
  148. package/transformer/plugins/webTypes.js +0 -74
  149. package/transformer/transformer.d.ts +0 -8
  150. package/transformer/transformer.js +0 -78
  151. package/transformer/transformer.types.d.ts +0 -52
  152. package/transformer/transformer.types.js +0 -1
  153. package/transformer/utils/addDependency.d.ts +0 -7
  154. package/transformer/utils/addDependency.js +0 -64
  155. package/transformer/utils/extractAttribute.d.ts +0 -2
  156. package/transformer/utils/extractAttribute.js +0 -10
  157. package/transformer/utils/extractFromComment.d.ts +0 -4
  158. package/transformer/utils/extractFromComment.js +0 -51
  159. package/transformer/utils/getInitializer.d.ts +0 -2
  160. package/transformer/utils/getInitializer.js +0 -3
  161. package/transformer/utils/getType.d.ts +0 -2
  162. package/transformer/utils/getType.js +0 -89
  163. package/transformer/utils/getTypeReference.d.ts +0 -2
  164. package/transformer/utils/getTypeReference.js +0 -33
  165. package/transformer/utils/hasDecorator.d.ts +0 -1
  166. package/transformer/utils/hasDecorator.js +0 -5
  167. package/transformer/utils/index.d.ts +0 -10
  168. package/transformer/utils/index.js +0 -10
  169. package/transformer/utils/print.d.ts +0 -2
  170. package/transformer/utils/print.js +0 -5
  171. package/transformer/utils/printType.d.ts +0 -1
  172. package/transformer/utils/printType.js +0 -69
  173. package/transformer/utils/visitor.d.ts +0 -2
  174. package/transformer/utils/visitor.js +0 -5
  175. package/types/index.d.ts +0 -2
  176. package/types/index.js +0 -1
package/README.md CHANGED
@@ -998,7 +998,7 @@ import {
998
998
  read,
999
999
  style,
1000
1000
  validate,
1001
- } from '@htmlplus/element/transformer/index.js';
1001
+ } from '@htmlplus/element/transformer.js';
1002
1002
 
1003
1003
  const plugins = [
1004
1004
  read(),
@@ -1041,7 +1041,7 @@ import {
1041
1041
  validate,
1042
1042
  visualStudioCode,
1043
1043
  webTypes
1044
- } from '@htmlplus/element/transformer/index.js';
1044
+ } from '@htmlplus/element/transformer.js';
1045
1045
  ```
1046
1046
 
1047
1047
  </details>
package/bundlers.d.ts ADDED
@@ -0,0 +1,19 @@
1
+ import { TransformerPlugin } from './transformer.js';
2
+ import '@babel/types';
3
+ import '@babel/parser';
4
+
5
+ declare const rollup: (...plugins: Array<TransformerPlugin>) => {
6
+ name: string;
7
+ buildStart(): Promise<void>;
8
+ load(id: any): Promise<string | undefined>;
9
+ buildEnd(error?: Error): Promise<void>;
10
+ };
11
+
12
+ declare const vite: (...plugins: Array<TransformerPlugin>) => {
13
+ name: string;
14
+ buildStart(): Promise<void>;
15
+ load(id: any): Promise<string | undefined>;
16
+ writeBundle(options: any, bundles: any): Promise<void>;
17
+ };
18
+
19
+ export { rollup, vite };
package/bundlers.js ADDED
@@ -0,0 +1,75 @@
1
+ import { KEY } from './constants.js';
2
+ import { transformer } from './transformer.js';
3
+ import 'fs-extra';
4
+ import '@babel/template';
5
+ import '@babel/types';
6
+ import 'change-case';
7
+ import '@babel/traverse';
8
+ import '@babel/parser';
9
+ import 'glob';
10
+ import '@babel/generator';
11
+ import path from 'node:path';
12
+ import 'ora';
13
+
14
+ const rollup = (...plugins) => {
15
+ const { start, run, finish } = transformer(...plugins);
16
+ return {
17
+ name: KEY,
18
+ async buildStart() {
19
+ await start();
20
+ },
21
+ async load(id) {
22
+ if (!id.endsWith('.tsx'))
23
+ return;
24
+ const { script, skipped } = await run(id);
25
+ if (skipped)
26
+ return;
27
+ return script;
28
+ },
29
+ async buildEnd(error) {
30
+ if (error)
31
+ throw error;
32
+ await finish();
33
+ }
34
+ };
35
+ };
36
+
37
+ const vite = (...plugins) => {
38
+ const { global, start, run, finish } = transformer(...plugins);
39
+ return {
40
+ name: KEY,
41
+ async buildStart() {
42
+ await start();
43
+ },
44
+ async load(id) {
45
+ if (!id.endsWith('.tsx'))
46
+ return;
47
+ const context = await run(id);
48
+ if (context.skipped)
49
+ return;
50
+ if (context.script && context.stylePath) {
51
+ context.script = context.script.replace(path.basename(context.stylePath), `$&?inline`);
52
+ }
53
+ return context.script;
54
+ },
55
+ async writeBundle(options, bundles) {
56
+ // TODO
57
+ global.contexts.forEach((context) => {
58
+ Object.keys(bundles).forEach((key) => {
59
+ const { facadeModuleId, modules } = bundles[key];
60
+ if (!facadeModuleId?.startsWith(context.filePath))
61
+ return;
62
+ const id = Object.keys(modules).find((key) => {
63
+ return key.startsWith(context.stylePath || '');
64
+ });
65
+ if (!id)
66
+ return;
67
+ context.styleContentTransformed = modules[id].code;
68
+ });
69
+ });
70
+ await finish();
71
+ }
72
+ };
73
+ };
74
+
75
+ export { rollup, vite };
@@ -0,0 +1,309 @@
1
+ /**
2
+ * Used to bind a method of a class to the current context,
3
+ * making it easier to reference `this` within the method.
4
+ */
5
+ declare function Bind(): (target: Object, key: PropertyKey, descriptor: PropertyDescriptor) => {
6
+ configurable: boolean;
7
+ get(): any;
8
+ };
9
+
10
+ interface HTMLPlusElement {
11
+ }
12
+
13
+ declare function Provider(namespace: string): (target: HTMLPlusElement, key: PropertyKey, descriptor: PropertyDescriptor) => void;
14
+ declare function Consumer(namespace: string): (target: HTMLPlusElement, key: PropertyKey) => void;
15
+
16
+ /**
17
+ * Indicates whether the [Direction](https://mdn.io/css-direction)
18
+ * of the element is `Right-To-Left` or `Left-To-Right`.
19
+ */
20
+ declare function Direction(): (target: HTMLPlusElement, key: PropertyKey) => void;
21
+
22
+ /**
23
+ * The class marked with this decorator is considered a
24
+ * [Custom Element](https://mdn.io/using-custom-elements),
25
+ * and its name, in kebab-case, serves as the element name.
26
+ */
27
+ declare function Element$1(): (constructor: HTMLPlusElement) => void;
28
+
29
+ /**
30
+ * A function type that generates a `CustomEvent`.
31
+ */
32
+ type EventEmitter<T = any> = (data?: T) => CustomEvent<T>;
33
+ /**
34
+ * An object that configures
35
+ * [options](https://developer.mozilla.org/docs/Web/API/Event/EventEvent#options)
36
+ * for the event dispatcher.
37
+ */
38
+ interface EventOptions {
39
+ /**
40
+ * A boolean value indicating whether the event bubbles.
41
+ * The default is `false`.
42
+ */
43
+ bubbles?: boolean;
44
+ /**
45
+ * A boolean value indicating whether the event can be cancelled.
46
+ * The default is `false`.
47
+ */
48
+ cancelable?: boolean;
49
+ /**
50
+ * A boolean value indicating whether the event will trigger listeners outside of a shadow root
51
+ * (see [Event.composed](https://mdn.io/event-composed) for more details).
52
+ * The default is `false`.
53
+ */
54
+ composed?: boolean;
55
+ }
56
+ /**
57
+ * Provides the capability to dispatch a [CustomEvent](https://mdn.io/custom-event)
58
+ * from an element.
59
+ *
60
+ * @param options An object that configures options for the event dispatcher.
61
+ */
62
+ declare function Event<T = any>(options?: EventOptions): (target: HTMLPlusElement, key: PropertyKey) => void;
63
+
64
+ /**
65
+ * Indicates the host of the element.
66
+ */
67
+ declare function Host(): (target: HTMLPlusElement, key: PropertyKey) => void;
68
+
69
+ /**
70
+ * Indicates whether the direction of the element is `Right-To-Left` or not.
71
+ */
72
+ declare function IsRTL(): (target: HTMLPlusElement, key: PropertyKey) => void;
73
+
74
+ /**
75
+ * An object that configures
76
+ * [options](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener#options)
77
+ * for the event listener.
78
+ */
79
+ interface ListenOptions {
80
+ /**
81
+ * A boolean value indicating that events of this type will be dispatched to the registered
82
+ * `listener` before being dispatched to any `EventTarget` beneath it in the DOM tree.
83
+ * If not specified, defaults to `false`.
84
+ */
85
+ capture?: boolean;
86
+ /**
87
+ * A boolean value indicating that the `listener` should be invoked at most once after being added.
88
+ * If `true`, the `listener` would be automatically removed when invoked.
89
+ * If not specified, defaults to `false`.
90
+ */
91
+ once?: boolean;
92
+ /**
93
+ * A boolean value that, if `true`,
94
+ * indicates that the function specified by `listener` will never call
95
+ * [preventDefault()](https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault).
96
+ * If a passive listener does call `preventDefault()`,
97
+ * the user agent will do nothing other than generate a console warning.
98
+ */
99
+ passive?: boolean;
100
+ /**
101
+ * An [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal).
102
+ * The listener will be removed when the given `AbortSignal` object's
103
+ * [abort()](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort) method is called.
104
+ * If not specified, no `AbortSignal` is associated with the listener.
105
+ */
106
+ signal?: AbortSignal;
107
+ /**
108
+ * The target element, defaults to `host`.
109
+ */
110
+ target?: 'host' | 'body' | 'document' | 'window';
111
+ }
112
+ /**
113
+ * Will be called whenever the specified event is delivered to the target
114
+ * [More](https://mdn.io/add-event-listener).
115
+ *
116
+ * @param type A case-sensitive string representing the [Event Type](https://mdn.io/events) to listen for.
117
+ * @param options An object that configures
118
+ * [options](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener#options)
119
+ * for the event listener.
120
+ */
121
+ declare function Listen(type: string, options?: ListenOptions): (target: HTMLPlusElement, key: PropertyKey, descriptor: PropertyDescriptor) => {
122
+ configurable: boolean;
123
+ get(): any;
124
+ };
125
+
126
+ /**
127
+ * Provides a way to encapsulate functionality within an element
128
+ * and invoke it as needed, both internally and externally.
129
+ */
130
+ declare function Method(): (target: HTMLPlusElement, key: PropertyKey) => void;
131
+
132
+ /**
133
+ * The configuration for property decorator.
134
+ */
135
+ interface PropertyOptions {
136
+ /**
137
+ * Specifies the name of the attribute related to the property.
138
+ */
139
+ attribute?: string;
140
+ /**
141
+ * Whether property value is reflected back to the associated attribute. default is `false`.
142
+ */
143
+ reflect?: boolean;
144
+ /**
145
+ * Specifies the property `type` and supports
146
+ * [data types](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures).
147
+ * If this value is not set, it will be set automatically during transforming.
148
+ */
149
+ type?: any;
150
+ }
151
+ /**
152
+ * Creates a reactive property, reflecting a corresponding attribute value,
153
+ * and updates the element when the property is set.
154
+ */
155
+ declare function Property(options?: PropertyOptions): (target: HTMLPlusElement, key: PropertyKey, descriptor?: PropertyDescriptor) => void;
156
+
157
+ /**
158
+ * Selects the first element in the shadow dom that matches a specified CSS selector.
159
+ *
160
+ * @param selectors A string containing one or more selectors to match.
161
+ * This string must be a valid CSS selector string; if it isn't, a `SyntaxError` exception is thrown. See
162
+ * [Locating DOM elements using selectors](https://developer.mozilla.org/en-US/docs/Web/API/Document_object_model/Locating_DOM_elements_using_selectors)
163
+ * for more about selectors and how to manage them.
164
+ */
165
+ declare function Query(selectors: string): (target: HTMLPlusElement, key: PropertyKey) => void;
166
+
167
+ /**
168
+ * Selects all elements in the shadow dom that match a specified CSS selector.
169
+ *
170
+ * @param selectors A string containing one or more selectors to match against.
171
+ * This string must be a valid
172
+ * [CSS selector](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_selectors)
173
+ * string; if it's not, a `SyntaxError` exception is thrown. See
174
+ * [Locating DOM elements using selectors](https://developer.mozilla.org/en-US/docs/Web/API/Document_object_model/Locating_DOM_elements_using_selectors)
175
+ * for more information about using selectors to identify elements.
176
+ * Multiple selectors may be specified by separating them using commas.
177
+ */
178
+ declare function QueryAll(selectors: string): (target: HTMLPlusElement, key: PropertyKey) => void;
179
+
180
+ /**
181
+ * Returns the slots name.
182
+ */
183
+ declare function Slots$1(): (target: HTMLPlusElement, key: PropertyKey) => void;
184
+
185
+ /**
186
+ * Applying this decorator to any `class property` will trigger the
187
+ * element to re-render upon the desired property changes.
188
+ */
189
+ declare function State(): (target: HTMLPlusElement, key: PropertyKey) => void;
190
+
191
+ /**
192
+ * Monitors `@Property` and `@State` to detect changes.
193
+ * The decorated method will be called after any changes,
194
+ * with the `key`, `newValue`, and `oldValue` as parameters.
195
+ * If the `key` is not defined, all `@Property` and `@State` are considered.
196
+ *
197
+ * @param keys Collection of `@Property` and `@State` names.
198
+ * @param immediate Triggers the callback immediately after initialization.
199
+ */
200
+ declare function Watch(keys?: string | string[], immediate?: boolean): (target: HTMLPlusElement, key: PropertyKey) => void;
201
+
202
+ /**
203
+ * TODO
204
+ */
205
+ declare const classes: (input: any, smart?: boolean) => string;
206
+
207
+ /**
208
+ * TODO
209
+ */
210
+ interface Config {
211
+ event?: {
212
+ resolver?: (parameters: any) => CustomEvent | undefined;
213
+ };
214
+ asset?: {
215
+ [key: string]: any;
216
+ };
217
+ element?: {
218
+ [key: string]: {
219
+ property?: {
220
+ [key: string]: any;
221
+ };
222
+ };
223
+ };
224
+ }
225
+ /**
226
+ * TODO
227
+ */
228
+ interface ConfigOptions {
229
+ /**
230
+ * TODO
231
+ */
232
+ force?: boolean;
233
+ /**
234
+ * TODO
235
+ */
236
+ override?: boolean;
237
+ }
238
+ /**
239
+ * TODO
240
+ */
241
+ declare const getConfig: (...keys: string[]) => any;
242
+ /**
243
+ * TODO
244
+ */
245
+ declare const setConfig: (config: Config, options?: ConfigOptions) => void;
246
+
247
+ /**
248
+ * Indicates whether the [Direction](https://mdn.io/css-direction)
249
+ * of the element is `Right-To-Left` or `Left-To-Right`.
250
+ */
251
+ declare const direction: (target: HTMLElement | HTMLPlusElement) => "ltr" | "rtl";
252
+
253
+ /**
254
+ * TODO
255
+ */
256
+ declare const dispatch: <T = any>(target: HTMLElement | HTMLPlusElement, type: string, eventInitDict?: CustomEventInit<T>) => CustomEvent<T>;
257
+ /**
258
+ * TODO
259
+ */
260
+ declare const on: (target: Window | Document | HTMLElement | HTMLPlusElement, type: string, handler: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions) => void;
261
+ /**
262
+ * TODO
263
+ */
264
+ declare const off: (target: Window | Document | HTMLElement | HTMLPlusElement, type: string, handler: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions) => void;
265
+
266
+ /**
267
+ * Indicates the host of the element.
268
+ */
269
+ declare const host: (target: HTMLElement | HTMLPlusElement) => HTMLElement;
270
+
271
+ /**
272
+ * Determines whether the given input string is a valid
273
+ * [CSS Color](https://mdn.io/color-value) or not.
274
+ */
275
+ declare const isCSSColor: (input: string) => boolean;
276
+
277
+ /**
278
+ * Indicates whether the direction of the element is `Right-To-Left` or not.
279
+ */
280
+ declare const isRTL: (target: HTMLPlusElement) => boolean;
281
+
282
+ /**
283
+ * Selects the first element in the shadow dom that matches a specified CSS selector.
284
+ */
285
+ declare function query(target: HTMLPlusElement, selectors: string): Element | null | undefined;
286
+
287
+ /**
288
+ * Selects all elements in the shadow dom that match a specified CSS selector.
289
+ */
290
+ declare function queryAll(target: HTMLPlusElement, selectors: string): NodeListOf<Element> | undefined;
291
+
292
+ type Slots = {
293
+ [key: string]: boolean;
294
+ };
295
+ /**
296
+ * Returns the slots name.
297
+ */
298
+ declare const slots: (target: HTMLElement | HTMLPlusElement) => Slots;
299
+
300
+ /**
301
+ * Converts a value to a unit.
302
+ */
303
+ declare const toUnit: (input: string | number, unit?: string) => string;
304
+
305
+ declare const attributes: any;
306
+ declare const html: any;
307
+ declare const styles: any;
308
+
309
+ export { styles as A, Bind as B, type Config as C, Direction as D, Element$1 as E, Host as H, IsRTL as I, type ListenOptions as L, Method as M, Provider as P, Query as Q, Slots$1 as S, Watch as W, dispatch as a, isRTL as b, classes as c, direction as d, queryAll as e, off as f, getConfig as g, host as h, isCSSColor as i, setConfig as j, type ConfigOptions as k, Consumer as l, type EventEmitter as m, type EventOptions as n, on as o, Event as p, query as q, Listen as r, slots as s, toUnit as t, type PropertyOptions as u, Property as v, QueryAll as w, State as x, attributes as y, html as z };