tosijs-ui 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 (134) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +165 -0
  3. package/dist/ab-test.d.ts +14 -0
  4. package/dist/ab-test.js +116 -0
  5. package/dist/babylon-3d.d.ts +53 -0
  6. package/dist/babylon-3d.js +292 -0
  7. package/dist/bodymovin-player.d.ts +32 -0
  8. package/dist/bodymovin-player.js +172 -0
  9. package/dist/bp-loader.d.ts +1 -0
  10. package/dist/bp-loader.js +26 -0
  11. package/dist/carousel.d.ts +113 -0
  12. package/dist/carousel.js +308 -0
  13. package/dist/code-editor.d.ts +27 -0
  14. package/dist/code-editor.js +102 -0
  15. package/dist/color-input.d.ts +41 -0
  16. package/dist/color-input.js +112 -0
  17. package/dist/data-table.d.ts +79 -0
  18. package/dist/data-table.js +774 -0
  19. package/dist/drag-and-drop.d.ts +2 -0
  20. package/dist/drag-and-drop.js +386 -0
  21. package/dist/editable-rect.d.ts +97 -0
  22. package/dist/editable-rect.js +450 -0
  23. package/dist/filter-builder.d.ts +64 -0
  24. package/dist/filter-builder.js +468 -0
  25. package/dist/float.d.ts +18 -0
  26. package/dist/float.js +170 -0
  27. package/dist/form.d.ts +68 -0
  28. package/dist/form.js +466 -0
  29. package/dist/gamepad.d.ts +34 -0
  30. package/dist/gamepad.js +115 -0
  31. package/dist/icon-data.d.ts +312 -0
  32. package/dist/icon-data.js +308 -0
  33. package/dist/icon-types.d.ts +7 -0
  34. package/dist/icon-types.js +1 -0
  35. package/dist/icons.d.ts +17 -0
  36. package/dist/icons.js +374 -0
  37. package/dist/iife.js +69 -0
  38. package/dist/iife.js.map +49 -0
  39. package/dist/index-iife.d.ts +1 -0
  40. package/dist/index-iife.js +4 -0
  41. package/dist/index.d.ts +37 -0
  42. package/dist/index.js +37 -0
  43. package/dist/index.js.map +47 -0
  44. package/dist/live-example.d.ts +63 -0
  45. package/dist/live-example.js +611 -0
  46. package/dist/localize.d.ts +46 -0
  47. package/dist/localize.js +381 -0
  48. package/dist/make-sorter.d.ts +3 -0
  49. package/dist/make-sorter.js +119 -0
  50. package/dist/make-sorter.test.d.ts +1 -0
  51. package/dist/make-sorter.test.js +48 -0
  52. package/dist/mapbox.d.ts +24 -0
  53. package/dist/mapbox.js +161 -0
  54. package/dist/markdown-viewer.d.ts +17 -0
  55. package/dist/markdown-viewer.js +173 -0
  56. package/dist/match-shortcut.d.ts +9 -0
  57. package/dist/match-shortcut.js +13 -0
  58. package/dist/match-shortcut.test.d.ts +1 -0
  59. package/dist/match-shortcut.test.js +194 -0
  60. package/dist/menu.d.ts +60 -0
  61. package/dist/menu.js +614 -0
  62. package/dist/notifications.d.ts +106 -0
  63. package/dist/notifications.js +308 -0
  64. package/dist/password-strength.d.ts +35 -0
  65. package/dist/password-strength.js +302 -0
  66. package/dist/playwright.config.d.ts +9 -0
  67. package/dist/playwright.config.js +73 -0
  68. package/dist/pop-float.d.ts +10 -0
  69. package/dist/pop-float.js +231 -0
  70. package/dist/rating.d.ts +62 -0
  71. package/dist/rating.js +192 -0
  72. package/dist/rich-text.d.ts +35 -0
  73. package/dist/rich-text.js +296 -0
  74. package/dist/segmented.d.ts +80 -0
  75. package/dist/segmented.js +298 -0
  76. package/dist/select.d.ts +43 -0
  77. package/dist/select.js +427 -0
  78. package/dist/side-nav.d.ts +36 -0
  79. package/dist/side-nav.js +106 -0
  80. package/dist/size-break.d.ts +18 -0
  81. package/dist/size-break.js +118 -0
  82. package/dist/sizer.d.ts +34 -0
  83. package/dist/sizer.js +92 -0
  84. package/dist/src/ab-test.d.ts +14 -0
  85. package/dist/src/babylon-3d.d.ts +53 -0
  86. package/dist/src/bodymovin-player.d.ts +32 -0
  87. package/dist/src/bp-loader.d.ts +0 -0
  88. package/dist/src/carousel.d.ts +113 -0
  89. package/dist/src/code-editor.d.ts +27 -0
  90. package/dist/src/color-input.d.ts +41 -0
  91. package/dist/src/data-table.d.ts +79 -0
  92. package/dist/src/drag-and-drop.d.ts +2 -0
  93. package/dist/src/editable-rect.d.ts +97 -0
  94. package/dist/src/filter-builder.d.ts +64 -0
  95. package/dist/src/float.d.ts +18 -0
  96. package/dist/src/form.d.ts +68 -0
  97. package/dist/src/gamepad.d.ts +34 -0
  98. package/dist/src/icon-data.d.ts +309 -0
  99. package/dist/src/icon-types.d.ts +7 -0
  100. package/dist/src/icons.d.ts +17 -0
  101. package/dist/src/index.d.ts +37 -0
  102. package/dist/src/live-example.d.ts +51 -0
  103. package/dist/src/localize.d.ts +30 -0
  104. package/dist/src/make-sorter.d.ts +3 -0
  105. package/dist/src/mapbox.d.ts +24 -0
  106. package/dist/src/markdown-viewer.d.ts +15 -0
  107. package/dist/src/match-shortcut.d.ts +9 -0
  108. package/dist/src/menu.d.ts +60 -0
  109. package/dist/src/notifications.d.ts +106 -0
  110. package/dist/src/password-strength.d.ts +35 -0
  111. package/dist/src/pop-float.d.ts +10 -0
  112. package/dist/src/rating.d.ts +62 -0
  113. package/dist/src/rich-text.d.ts +28 -0
  114. package/dist/src/segmented.d.ts +80 -0
  115. package/dist/src/select.d.ts +43 -0
  116. package/dist/src/side-nav.d.ts +36 -0
  117. package/dist/src/size-break.d.ts +18 -0
  118. package/dist/src/sizer.d.ts +34 -0
  119. package/dist/src/tab-selector.d.ts +91 -0
  120. package/dist/src/tag-list.d.ts +37 -0
  121. package/dist/src/track-drag.d.ts +5 -0
  122. package/dist/src/version.d.ts +1 -0
  123. package/dist/src/via-tag.d.ts +2 -0
  124. package/dist/tab-selector.d.ts +91 -0
  125. package/dist/tab-selector.js +326 -0
  126. package/dist/tag-list.d.ts +37 -0
  127. package/dist/tag-list.js +375 -0
  128. package/dist/track-drag.d.ts +5 -0
  129. package/dist/track-drag.js +143 -0
  130. package/dist/version.d.ts +1 -0
  131. package/dist/version.js +1 -0
  132. package/dist/via-tag.d.ts +2 -0
  133. package/dist/via-tag.js +102 -0
  134. package/package.json +58 -0
@@ -0,0 +1,97 @@
1
+ import { Component } from 'xinjs';
2
+ interface Locks {
3
+ left: boolean;
4
+ right: boolean;
5
+ top: boolean;
6
+ bottom: boolean;
7
+ }
8
+ export declare class EditableRect extends Component {
9
+ static angleSize: number;
10
+ static gridSize: number;
11
+ static snapAngle: boolean;
12
+ static snapToGrid: boolean;
13
+ static styleSpec: {
14
+ ':host': {
15
+ '--handle-bg': string;
16
+ '--handle-color': string;
17
+ '--handle-hover-bg': string;
18
+ '--handle-hover-color': string;
19
+ '--handle-size': string;
20
+ '--handle-padding': string;
21
+ };
22
+ ':host ::slotted(*)': {
23
+ position: string;
24
+ };
25
+ ':host > :not(style,slot)': {
26
+ boxSizing: string;
27
+ content: string;
28
+ position: string;
29
+ display: string;
30
+ height: any;
31
+ width: any;
32
+ padding: any;
33
+ '--text-color': any;
34
+ background: any;
35
+ };
36
+ ':host > .drag-size': {
37
+ top: number;
38
+ bottom: number;
39
+ left: number;
40
+ right: number;
41
+ height: string;
42
+ width: string;
43
+ background: string;
44
+ cursor: string;
45
+ };
46
+ ':host > [part="rotate"]': {
47
+ transform: string;
48
+ };
49
+ ':host > [locked] > svg:first-child, :host > :not([locked]) > svg+svg': {
50
+ display: string;
51
+ };
52
+ ':host .icon-unlock': {
53
+ opacity: number;
54
+ };
55
+ ':host svg': {
56
+ pointerEvents: string;
57
+ };
58
+ ':host > *:hover': {
59
+ '--text-color': any;
60
+ background: any;
61
+ };
62
+ };
63
+ static snappedCoords(event: PointerEvent, coords: number[]): number[];
64
+ static snappedAngle(event: PointerEvent, a: number): number;
65
+ get locked(): Locks;
66
+ set locked(locks: Locks);
67
+ get coords(): {
68
+ top: number;
69
+ left: number;
70
+ bottom: number;
71
+ right: number;
72
+ };
73
+ get left(): number;
74
+ get width(): number;
75
+ get right(): number;
76
+ get top(): number;
77
+ get height(): number;
78
+ get bottom(): number;
79
+ triggerChange: () => void;
80
+ adjustPosition: (event: Event) => void;
81
+ resize: (event: Event) => void;
82
+ adjustSize: (event: Event) => void;
83
+ get rect(): DOMRect;
84
+ get center(): {
85
+ x: number;
86
+ y: number;
87
+ };
88
+ get element(): HTMLElement;
89
+ adjustRotation: (event: Event) => void;
90
+ toggleLock: (event: Event) => void;
91
+ content: () => any[];
92
+ constructor();
93
+ connectedCallback(): void;
94
+ render(): void;
95
+ }
96
+ export declare const editableRect: any;
97
+ export {};
@@ -0,0 +1,64 @@
1
+ import { Component as WebComponent, ElementCreator } from 'xinjs';
2
+ type ObjectTest = (obj: any) => boolean;
3
+ type ArrayFilter = (array: any[]) => any[];
4
+ interface FilterMaker {
5
+ caption: string;
6
+ negative?: string;
7
+ needsValue?: boolean;
8
+ makeTest: (value: any) => ObjectTest;
9
+ }
10
+ export declare const availableFilters: {
11
+ [key: string]: FilterMaker;
12
+ };
13
+ interface Filter {
14
+ description: string;
15
+ test: ObjectTest;
16
+ }
17
+ type Fields = Array<{
18
+ name?: string;
19
+ prop: string;
20
+ }>;
21
+ export interface FilterPartState {
22
+ haystack: string;
23
+ condition: string;
24
+ needle: string;
25
+ }
26
+ export declare class FilterPart extends WebComponent {
27
+ fields: Fields;
28
+ filters: {
29
+ [key: string]: FilterMaker;
30
+ };
31
+ haystack: string;
32
+ condition: string;
33
+ needle: string;
34
+ content: () => any[];
35
+ filter: Filter;
36
+ constructor();
37
+ get state(): FilterPartState;
38
+ set state(newState: FilterPartState);
39
+ buildFilter: () => void;
40
+ connectedCallback(): void;
41
+ render(): void;
42
+ }
43
+ export declare const filterPart: ElementCreator<FilterPart>;
44
+ export type FilterState = FilterPartState[];
45
+ export declare class FilterBuilder extends WebComponent {
46
+ private _fields;
47
+ get fields(): Fields;
48
+ set fields(_fields: Fields);
49
+ get state(): FilterState;
50
+ set state(parts: FilterState);
51
+ filter: ArrayFilter;
52
+ description: string;
53
+ addFilter: () => void;
54
+ content: () => any[];
55
+ filters: {
56
+ [key: string]: FilterMaker;
57
+ };
58
+ reset: () => void;
59
+ buildFilter: () => void;
60
+ connectedCallback(): void;
61
+ render(): void;
62
+ }
63
+ export declare const filterBuilder: ElementCreator<FilterBuilder>;
64
+ export {};
@@ -0,0 +1,18 @@
1
+ import { Component as WebComponent, ElementCreator } from 'xinjs';
2
+ export declare class XinFloat extends WebComponent {
3
+ static floats: Set<XinFloat>;
4
+ drag: boolean;
5
+ remainOnResize: 'hide' | 'remove' | 'remain';
6
+ remainOnScroll: 'hide' | 'remove' | 'remain';
7
+ content: any;
8
+ static styleSpec: {
9
+ ':host': {
10
+ position: string;
11
+ };
12
+ };
13
+ constructor();
14
+ reposition: (event: Event) => void;
15
+ connectedCallback(): void;
16
+ disconnectedCallback(): void;
17
+ }
18
+ export declare const xinFloat: ElementCreator<XinFloat>;
@@ -0,0 +1,68 @@
1
+ import { Component as XinComponent, ElementCreator } from 'xinjs';
2
+ export declare class XinField extends XinComponent {
3
+ caption: string;
4
+ key: string;
5
+ type: '' | 'checkbox' | 'number' | 'range' | 'date' | 'text' | 'color';
6
+ optional: boolean;
7
+ pattern: string;
8
+ placeholder: string;
9
+ min: string;
10
+ max: string;
11
+ step: string;
12
+ fixedPrecision: number;
13
+ value: any;
14
+ content: any;
15
+ constructor();
16
+ private valueChanged;
17
+ handleChange: () => void;
18
+ initialize(form: XinForm): void;
19
+ connectedCallback(): void;
20
+ render(): void;
21
+ }
22
+ export declare class XinForm extends XinComponent {
23
+ context: {
24
+ [key: string]: any;
25
+ };
26
+ value: {
27
+ [key: string]: any;
28
+ };
29
+ get isValid(): boolean;
30
+ static styleSpec: {
31
+ ':host': {
32
+ display: string;
33
+ flexDirection: string;
34
+ };
35
+ ':host::part(header), :host::part(footer)': {
36
+ display: string;
37
+ };
38
+ ':host::part(content)': {
39
+ display: string;
40
+ flexDirection: string;
41
+ overflow: string;
42
+ height: string;
43
+ width: string;
44
+ position: string;
45
+ boxSizing: string;
46
+ };
47
+ ':host form': {
48
+ display: string;
49
+ flex: string;
50
+ position: string;
51
+ overflow: string;
52
+ };
53
+ };
54
+ content: any[];
55
+ getField: (key: string) => XinField | null;
56
+ get fields(): any;
57
+ set fields(values: {
58
+ [key: string]: any;
59
+ });
60
+ submit: () => void;
61
+ handleSubmit: (event: SubmitEvent) => void;
62
+ submitCallback: (value: {
63
+ [key: string]: any;
64
+ }, isValid: boolean) => void;
65
+ connectedCallback(): void;
66
+ }
67
+ export declare const xinField: ElementCreator<XinField>;
68
+ export declare const xinForm: ElementCreator<XinForm>;
@@ -0,0 +1,34 @@
1
+ export interface XinButton {
2
+ index: number;
3
+ pressed: boolean;
4
+ value: number;
5
+ }
6
+ export interface XinGamepad {
7
+ id: string;
8
+ axes: number[];
9
+ buttons: {
10
+ [key: number]: number;
11
+ };
12
+ }
13
+ export declare function gamepadState(): {
14
+ id: string;
15
+ axes: readonly number[];
16
+ buttons: {
17
+ [key: number]: number;
18
+ };
19
+ }[];
20
+ export declare function gamepadText(): string;
21
+ export interface XinXRControllerComponentState {
22
+ pressed: boolean;
23
+ axes?: number[];
24
+ }
25
+ export interface XinXRControllerState {
26
+ [key: string]: XinXRControllerComponentState;
27
+ }
28
+ export interface XinXRControllerMap {
29
+ [key: string]: XinXRControllerState;
30
+ }
31
+ export declare function xrControllers(xrHelper: any): {
32
+ [key: string]: XinXRControllerState;
33
+ };
34
+ export declare function xrControllersText(controllers?: XinXRControllerMap): string;
@@ -0,0 +1,309 @@
1
+ declare const _default: {
2
+ earth: string;
3
+ blueprint: string;
4
+ tosiXr: string;
5
+ cmy: string;
6
+ rgb: string;
7
+ xrColor: string;
8
+ tosiUi: string;
9
+ tosiFavicon: string;
10
+ tosiPlatform: string;
11
+ tosi: string;
12
+ sortDescending: string;
13
+ columns: string;
14
+ underline: string;
15
+ grid: string;
16
+ triangle: string;
17
+ search: string;
18
+ volume2: string;
19
+ arrowUpCircle: string;
20
+ pauseCircle: string;
21
+ checkSquare: string;
22
+ arrowDown: string;
23
+ figma: string;
24
+ cornerRightUp: string;
25
+ chevronsRight: string;
26
+ list: string;
27
+ chevronsDown: string;
28
+ wind: string;
29
+ cornerUpRight: string;
30
+ target: string;
31
+ scissors: string;
32
+ minimize2: string;
33
+ playCircle: string;
34
+ crosshair: string;
35
+ airplay: string;
36
+ xOctagon: string;
37
+ repeat: string;
38
+ edit3: string;
39
+ volume1: string;
40
+ sunrise: string;
41
+ toggleRight: string;
42
+ umbrella: string;
43
+ user: string;
44
+ fileMinus: string;
45
+ xCircle: string;
46
+ circle: string;
47
+ phoneMissed: string;
48
+ edit2: string;
49
+ cornerLeftUp: string;
50
+ home: string;
51
+ gitlab: string;
52
+ music: string;
53
+ smartphone: string;
54
+ moreHorizontal: string;
55
+ sliders: string;
56
+ arrowUpLeft: string;
57
+ chevronDown: string;
58
+ hexagon: string;
59
+ github: string;
60
+ crop: string;
61
+ tag: string;
62
+ briefcase: string;
63
+ rotateCw: string;
64
+ map: string;
65
+ inbox: string;
66
+ alignJustify: string;
67
+ plusSquare: string;
68
+ power: string;
69
+ database: string;
70
+ cameraOff: string;
71
+ toggleLeft: string;
72
+ file: string;
73
+ messageCircle: string;
74
+ voicemail: string;
75
+ terminal: string;
76
+ move: string;
77
+ maximize: string;
78
+ chevronUp: string;
79
+ arrowDownLeft: string;
80
+ fileText: string;
81
+ droplet: string;
82
+ zapOff: string;
83
+ x: string;
84
+ barChart: string;
85
+ lock: string;
86
+ logIn: string;
87
+ shoppingBag: string;
88
+ divide: string;
89
+ cloudDrizzle: string;
90
+ refreshCw: string;
91
+ chevronRight: string;
92
+ clipboard: string;
93
+ package: string;
94
+ instagram: string;
95
+ link: string;
96
+ videoOff: string;
97
+ key: string;
98
+ meh: string;
99
+ cornerDownRight: string;
100
+ arrowRight: string;
101
+ aperture: string;
102
+ stopCircle: string;
103
+ logOut: string;
104
+ arrowLeftCircle: string;
105
+ barChart2: string;
106
+ gitPullRequest: string;
107
+ minimize: string;
108
+ minusSquare: string;
109
+ settings: string;
110
+ cloudSnow: string;
111
+ thumbsDown: string;
112
+ type: string;
113
+ archive: string;
114
+ phoneOutgoing: string;
115
+ pocket: string;
116
+ mail: string;
117
+ shield: string;
118
+ download: string;
119
+ phoneForwarded: string;
120
+ cornerRightDown: string;
121
+ bookOpen: string;
122
+ divideSquare: string;
123
+ server: string;
124
+ tv: string;
125
+ skipForward: string;
126
+ volume: string;
127
+ userPlus: string;
128
+ batteryCharging: string;
129
+ layers: string;
130
+ slash: string;
131
+ radio: string;
132
+ book: string;
133
+ userMinus: string;
134
+ bell: string;
135
+ gitBranch: string;
136
+ coffee: string;
137
+ code: string;
138
+ thermometer: string;
139
+ cast: string;
140
+ flag: string;
141
+ eyeOff: string;
142
+ battery: string;
143
+ disc: string;
144
+ frown: string;
145
+ tool: string;
146
+ cpu: string;
147
+ bold: string;
148
+ hash: string;
149
+ share2: string;
150
+ plus: string;
151
+ check: string;
152
+ rotateCcw: string;
153
+ hardDrive: string;
154
+ bluetooth: string;
155
+ pieChart: string;
156
+ headphones: string;
157
+ rss: string;
158
+ wifi: string;
159
+ cornerUpLeft: string;
160
+ watch: string;
161
+ info: string;
162
+ userX: string;
163
+ loader: string;
164
+ refreshCcw: string;
165
+ folderPlus: string;
166
+ gitMerge: string;
167
+ mic: string;
168
+ copy: string;
169
+ zoomIn: string;
170
+ arrowRightCircle: string;
171
+ alignRight: string;
172
+ image: string;
173
+ maximize2: string;
174
+ checkCircle: string;
175
+ sunset: string;
176
+ save: string;
177
+ smile: string;
178
+ navigation: string;
179
+ cloudLightning: string;
180
+ paperclip: string;
181
+ fastForward: string;
182
+ xSquare: string;
183
+ award: string;
184
+ zoomOut: string;
185
+ box: string;
186
+ thumbsUp: string;
187
+ percent: string;
188
+ sidebar: string;
189
+ square: string;
190
+ play: string;
191
+ gitCommit: string;
192
+ table: string;
193
+ send: string;
194
+ phoneCall: string;
195
+ speaker: string;
196
+ facebook: string;
197
+ codesandbox: string;
198
+ camera: string;
199
+ link2: string;
200
+ printer: string;
201
+ folderMinus: string;
202
+ arrowUpRight: string;
203
+ truck: string;
204
+ lifeBuoy: string;
205
+ penTool: string;
206
+ atSign: string;
207
+ feather: string;
208
+ trash: string;
209
+ wifiOff: string;
210
+ cornerLeftDown: string;
211
+ dollarSign: string;
212
+ star: string;
213
+ cloudOff: string;
214
+ sun: string;
215
+ messageSquare: string;
216
+ edit: string;
217
+ anchor: string;
218
+ alertCircle: string;
219
+ chevronsUp: string;
220
+ uploadCloud: string;
221
+ twitch: string;
222
+ youtube: string;
223
+ unlock: string;
224
+ compass: string;
225
+ plusCircle: string;
226
+ creditCard: string;
227
+ cloudRain: string;
228
+ trash2: string;
229
+ skipBack: string;
230
+ filePlus: string;
231
+ delete: string;
232
+ command: string;
233
+ clock: string;
234
+ octagon: string;
235
+ phone: string;
236
+ eye: string;
237
+ phoneOff: string;
238
+ codepen: string;
239
+ dribbble: string;
240
+ gift: string;
241
+ externalLink: string;
242
+ zap: string;
243
+ trello: string;
244
+ moreVertical: string;
245
+ micOff: string;
246
+ share: string;
247
+ arrowUp: string;
248
+ bellOff: string;
249
+ linkedin: string;
250
+ video: string;
251
+ divideCircle: string;
252
+ activity: string;
253
+ twitter: string;
254
+ mapPin: string;
255
+ filter: string;
256
+ phoneIncoming: string;
257
+ italic: string;
258
+ chevronsLeft: string;
259
+ calendar: string;
260
+ globe: string;
261
+ arrowLeft: string;
262
+ alignCenter: string;
263
+ minusCircle: string;
264
+ arrowDownRight: string;
265
+ framer: string;
266
+ volumeX: string;
267
+ slack: string;
268
+ cloud: string;
269
+ downloadCloud: string;
270
+ shuffle: string;
271
+ rewind: string;
272
+ upload: string;
273
+ trendingDown: string;
274
+ pause: string;
275
+ arrowDownCircle: string;
276
+ bookmark: string;
277
+ alertTriangle: string;
278
+ userCheck: string;
279
+ tablet: string;
280
+ alertOctagon: string;
281
+ menu: string;
282
+ chrome: string;
283
+ shoppingCart: string;
284
+ folder: string;
285
+ users: string;
286
+ cornerDownLeft: string;
287
+ monitor: string;
288
+ minus: string;
289
+ helpCircle: string;
290
+ navigation2: string;
291
+ chevronLeft: string;
292
+ film: string;
293
+ moon: string;
294
+ shieldOff: string;
295
+ layout: string;
296
+ mousePointer: string;
297
+ alignLeft: string;
298
+ heart: string;
299
+ trendingUp: string;
300
+ resize: string;
301
+ bug: string;
302
+ blog: string;
303
+ sortAscending: string;
304
+ npm: string;
305
+ game: string;
306
+ google: string;
307
+ discord: string;
308
+ };
309
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import { ElementCreator } from 'xinjs';
2
+ export type IconData = {
3
+ [key: string]: string;
4
+ };
5
+ export type SVGIconMap = {
6
+ [key: string]: ElementCreator<SVGElement>;
7
+ };
@@ -0,0 +1,17 @@
1
+ import { Component as WebComponent } from 'xinjs';
2
+ import { SVGIconMap } from './icon-types';
3
+ export declare const defineIcons: (newIcons: {
4
+ [key: string]: string;
5
+ }) => void;
6
+ export declare const svg2DataUrl: (svg: SVGElement, fill?: string | false, stroke?: string | false, strokeWidth?: number | string) => string;
7
+ export declare const icons: SVGIconMap;
8
+ export declare class SvgIcon extends WebComponent {
9
+ icon: string;
10
+ size: number;
11
+ fill: string;
12
+ stroke: string;
13
+ strokeWidth: number;
14
+ constructor();
15
+ render(): void;
16
+ }
17
+ export declare const svgIcon: any;
@@ -0,0 +1,37 @@
1
+ export * from './ab-test';
2
+ export * from './babylon-3d';
3
+ export * from './bp-loader';
4
+ export * from './bodymovin-player';
5
+ export * from './carousel';
6
+ export * from './code-editor';
7
+ export * from './color-input';
8
+ export * from './data-table';
9
+ export * as dragAndDrop from './drag-and-drop';
10
+ export * from './editable-rect';
11
+ export * from './filter-builder';
12
+ export * from './float';
13
+ export * from './form';
14
+ export * from './gamepad';
15
+ export * from './icons';
16
+ export * from './live-example';
17
+ export * from './localize';
18
+ export { makeSorter } from './make-sorter';
19
+ export * from './mapbox';
20
+ export * from './markdown-viewer';
21
+ export * from './menu';
22
+ export * from './notifications';
23
+ export * from './password-strength';
24
+ export * from './pop-float';
25
+ export * from './rating';
26
+ export * from './rich-text';
27
+ export * from './segmented';
28
+ export * from './select';
29
+ export * from './side-nav';
30
+ export * from './size-break';
31
+ export * from './sizer';
32
+ export * from './tab-selector';
33
+ export * from './tag-list';
34
+ export { trackDrag, bringToFront, findHighestZ } from './track-drag';
35
+ export { version } from './version';
36
+ export { scriptTag, styleSheet } from './via-tag';
37
+ export * as xinjs from 'xinjs';
@@ -0,0 +1,51 @@
1
+ import { Component, ElementCreator } from 'xinjs';
2
+ interface ExampleContext {
3
+ [key: string]: any;
4
+ }
5
+ export declare class LiveExample extends Component {
6
+ persistToDom: boolean;
7
+ prettier: boolean;
8
+ prefix: string;
9
+ storageKey: string;
10
+ context: ExampleContext;
11
+ uuid: string;
12
+ remoteId: string;
13
+ lastUpdate: number;
14
+ interval?: any;
15
+ static insertExamples(element: HTMLElement, context?: ExampleContext): void;
16
+ constructor();
17
+ get activeTab(): Element | undefined;
18
+ private getEditorValue;
19
+ private setEditorValue;
20
+ get css(): string;
21
+ set css(code: string);
22
+ get html(): string;
23
+ set html(code: string);
24
+ get js(): string;
25
+ set js(code: string);
26
+ updateUndo: () => void;
27
+ undo: () => void;
28
+ redo: () => void;
29
+ get isMaximized(): boolean;
30
+ flipLayout: () => void;
31
+ exampleMenu: () => void;
32
+ content: () => any[];
33
+ connectedCallback(): void;
34
+ disconnectedCallback(): void;
35
+ copy: () => void;
36
+ toggleMaximize: () => void;
37
+ get remoteKey(): string;
38
+ remoteChange: (event?: StorageEvent) => void;
39
+ showCode: () => void;
40
+ closeCode: () => void;
41
+ openEditorWindow: () => void;
42
+ refreshRemote: () => void;
43
+ updateSources: () => void;
44
+ refresh: () => void;
45
+ initFromElements(elements: HTMLElement[]): void;
46
+ showDefaultTab(): void;
47
+ render(): void;
48
+ }
49
+ export declare const liveExample: ElementCreator<LiveExample>;
50
+ export declare function makeExamplesLive(element: HTMLElement): void;
51
+ export {};