-
Notifications
You must be signed in to change notification settings - Fork 18
/
index.ts
78 lines (68 loc) · 2.05 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
export {
html,
svg,
css,
unsafeCSS,
render
} from 'lit';
export type {
TemplateResult,
SVGTemplateResult,
CSSResult,
CSSResultGroup,
PropertyValues,
ReactiveElement
} from 'lit';
/**
* Export element base classes
*/
import { BasicElement } from './elements/BasicElement.js';
export { BasicElement };
export { ControlElement } from './elements/ControlElement.js';
export { FormFieldElement } from './elements/FormFieldElement.js';
export { ResponsiveElement, ElementSize, ResizeEvent } from './elements/ResponsiveElement.js';
export class LitElement extends BasicElement {
constructor () {
/* eslint-disable-next-line no-console */
console.warn('Please use an ELF element type, instead of LitElement');
super();
}
}
/**
* Export notices.
* These can be used to show warning messages in the console.
* For example, when deprecated features are used in elements.
*/
export { WarningNotice } from './notices/WarningNotice.js';
export { DeprecationNotice } from './notices/DeprecationNotice.js';
/**
* Export events
*/
export { TapEvent } from './events/TapEvent.js';
export type { FocusedChangedEvent } from './types/events.js';
/**
* Export common interfaces
*/
export type { MultiValue } from './interfaces/MultiValue.js';
export type { StyleMap } from './interfaces/StyleMap.js';
export type { StyleInfo } from './interfaces/StyleInfo.js';
/**
* Export useful utils
*/
export { FocusableHelper } from './utils/focusableHelper.js';
export { matches } from './utils/matches.js';
export { isBasicElement } from './utils/helpers.js';
/**
* Export focused key.
* Used to observe `focused` attribute changes
*/
export { FocusedPropertyKey } from './registries/FocusRegistry.js';
import { CustomStyleRegistry } from './registries/CustomStyleRegistry.js';
import { NativeStyleRegistry } from './registries/NativeStyleRegistry.js';
import { global } from './utils/global.js';
global.elf = global.Elf = global.ELF = {
customStyles: CustomStyleRegistry,
nativeStyles: NativeStyleRegistry,
version: 'PUBLISH_VERSION'
};
Object.freeze(global.elf);