@e280/shiny 0.1.0-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 (94) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +10 -0
  3. package/package.json +62 -0
  4. package/s/demo/demo.bundle.ts +42 -0
  5. package/s/demo/demo.css +120 -0
  6. package/s/demo/views/demonstration/style.css.ts +108 -0
  7. package/s/demo/views/demonstration/view.ts +49 -0
  8. package/s/icons/tabler/ABOUT.md +7 -0
  9. package/s/icons/tabler/LICENSE +23 -0
  10. package/s/icons/tabler/clipboard-check-filled.svg.ts +4 -0
  11. package/s/icons/tabler/clipboard-x-filled.svg.ts +4 -0
  12. package/s/icons/tabler/clipboard.svg.ts +4 -0
  13. package/s/icons/tabler/copy.svg.ts +4 -0
  14. package/s/index.html.ts +37 -0
  15. package/s/index.ts +7 -0
  16. package/s/tests.test.ts +5 -0
  17. package/s/themes/basic.css.ts +18 -0
  18. package/s/themes/index.barrel.ts +3 -0
  19. package/s/themes/index.ts +3 -0
  20. package/s/tools/untab.ts +30 -0
  21. package/s/ui/components.ts +9 -0
  22. package/s/ui/copy/component.ts +66 -0
  23. package/s/ui/copy/style.css.ts +46 -0
  24. package/s/ui/example/component.ts +25 -0
  25. package/s/ui/example/style.css.ts +11 -0
  26. package/s/ui/framework.ts +8 -0
  27. package/s/ui/themers.ts +28 -0
  28. package/x/demo/demo.bundle.d.ts +1 -0
  29. package/x/demo/demo.bundle.js +37 -0
  30. package/x/demo/demo.bundle.js.map +1 -0
  31. package/x/demo/demo.bundle.min.js +277 -0
  32. package/x/demo/demo.bundle.min.js.map +7 -0
  33. package/x/demo/demo.css +120 -0
  34. package/x/demo/views/demonstration/style.css.d.ts +2 -0
  35. package/x/demo/views/demonstration/style.css.js +107 -0
  36. package/x/demo/views/demonstration/style.css.js.map +1 -0
  37. package/x/demo/views/demonstration/view.d.ts +10 -0
  38. package/x/demo/views/demonstration/view.js +36 -0
  39. package/x/demo/views/demonstration/view.js.map +1 -0
  40. package/x/icons/tabler/clipboard-check-filled.svg.d.ts +2 -0
  41. package/x/icons/tabler/clipboard-check-filled.svg.js +3 -0
  42. package/x/icons/tabler/clipboard-check-filled.svg.js.map +1 -0
  43. package/x/icons/tabler/clipboard-x-filled.svg.d.ts +2 -0
  44. package/x/icons/tabler/clipboard-x-filled.svg.js +3 -0
  45. package/x/icons/tabler/clipboard-x-filled.svg.js.map +1 -0
  46. package/x/icons/tabler/clipboard.svg.d.ts +2 -0
  47. package/x/icons/tabler/clipboard.svg.js +3 -0
  48. package/x/icons/tabler/clipboard.svg.js.map +1 -0
  49. package/x/icons/tabler/copy.svg.d.ts +2 -0
  50. package/x/icons/tabler/copy.svg.js +3 -0
  51. package/x/icons/tabler/copy.svg.js.map +1 -0
  52. package/x/index.d.ts +5 -0
  53. package/x/index.html +157 -0
  54. package/x/index.html.d.ts +2 -0
  55. package/x/index.html.js +33 -0
  56. package/x/index.html.js.map +1 -0
  57. package/x/index.js +6 -0
  58. package/x/index.js.map +1 -0
  59. package/x/tests.test.d.ts +1 -0
  60. package/x/tests.test.js +3 -0
  61. package/x/tests.test.js.map +1 -0
  62. package/x/themes/basic.css.d.ts +1 -0
  63. package/x/themes/basic.css.js +17 -0
  64. package/x/themes/basic.css.js.map +1 -0
  65. package/x/themes/index.barrel.d.ts +1 -0
  66. package/x/themes/index.barrel.js +2 -0
  67. package/x/themes/index.barrel.js.map +1 -0
  68. package/x/themes/index.d.ts +1 -0
  69. package/x/themes/index.js +2 -0
  70. package/x/themes/index.js.map +1 -0
  71. package/x/tools/untab.d.ts +1 -0
  72. package/x/tools/untab.js +26 -0
  73. package/x/tools/untab.js.map +1 -0
  74. package/x/ui/components.d.ts +6 -0
  75. package/x/ui/components.js +7 -0
  76. package/x/ui/components.js.map +1 -0
  77. package/x/ui/copy/component.d.ts +372 -0
  78. package/x/ui/copy/component.js +56 -0
  79. package/x/ui/copy/component.js.map +1 -0
  80. package/x/ui/copy/style.css.d.ts +2 -0
  81. package/x/ui/copy/style.css.js +45 -0
  82. package/x/ui/copy/style.css.js.map +1 -0
  83. package/x/ui/example/component.d.ts +371 -0
  84. package/x/ui/example/component.js +20 -0
  85. package/x/ui/example/component.js.map +1 -0
  86. package/x/ui/example/style.css.d.ts +2 -0
  87. package/x/ui/example/style.css.js +10 -0
  88. package/x/ui/example/style.css.js.map +1 -0
  89. package/x/ui/framework.d.ts +4 -0
  90. package/x/ui/framework.js +6 -0
  91. package/x/ui/framework.js.map +1 -0
  92. package/x/ui/themers.d.ts +8 -0
  93. package/x/ui/themers.js +12 -0
  94. package/x/ui/themers.js.map +1 -0
@@ -0,0 +1,371 @@
1
+ import { CSSResult } from "lit";
2
+ declare const ShinyExample_base: import("@e280/sly").ComponentClass<{
3
+ new (): {
4
+ attrs: import("@e280/sly").AttrTypes<{
5
+ start: NumberConstructor;
6
+ }>;
7
+ theme: CSSResult;
8
+ #private: any;
9
+ readonly shadow: ShadowRoot;
10
+ createShadow(): ShadowRoot;
11
+ render(_use: import("@e280/sly").Use): import("@e280/sly").Content;
12
+ updateNow: () => void;
13
+ update: import("@e280/stz").DebounceReturn<() => void>;
14
+ connectedCallback(): void;
15
+ disconnectedCallback(): void;
16
+ accessKey: string;
17
+ readonly accessKeyLabel: string;
18
+ autocapitalize: string;
19
+ autocorrect: boolean;
20
+ dir: string;
21
+ draggable: boolean;
22
+ hidden: boolean;
23
+ inert: boolean;
24
+ innerText: string;
25
+ lang: string;
26
+ readonly offsetHeight: number;
27
+ readonly offsetLeft: number;
28
+ readonly offsetParent: Element | null;
29
+ readonly offsetTop: number;
30
+ readonly offsetWidth: number;
31
+ outerText: string;
32
+ popover: string | null;
33
+ spellcheck: boolean;
34
+ title: string;
35
+ translate: boolean;
36
+ writingSuggestions: string;
37
+ attachInternals(): ElementInternals;
38
+ click(): void;
39
+ hidePopover(): void;
40
+ showPopover(): void;
41
+ togglePopover(options?: boolean): boolean;
42
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
43
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
44
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
45
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
46
+ readonly attributes: NamedNodeMap;
47
+ get classList(): DOMTokenList;
48
+ set classList(value: string);
49
+ className: string;
50
+ readonly clientHeight: number;
51
+ readonly clientLeft: number;
52
+ readonly clientTop: number;
53
+ readonly clientWidth: number;
54
+ readonly currentCSSZoom: number;
55
+ id: string;
56
+ innerHTML: string;
57
+ readonly localName: string;
58
+ readonly namespaceURI: string | null;
59
+ onfullscreenchange: ((this: Element, ev: Event) => any) | null;
60
+ onfullscreenerror: ((this: Element, ev: Event) => any) | null;
61
+ outerHTML: string;
62
+ readonly ownerDocument: Document;
63
+ get part(): DOMTokenList;
64
+ set part(value: string);
65
+ readonly prefix: string | null;
66
+ readonly scrollHeight: number;
67
+ scrollLeft: number;
68
+ scrollTop: number;
69
+ readonly scrollWidth: number;
70
+ readonly shadowRoot: ShadowRoot | null;
71
+ slot: string;
72
+ readonly tagName: string;
73
+ attachShadow(init: ShadowRootInit): ShadowRoot;
74
+ checkVisibility(options?: CheckVisibilityOptions): boolean;
75
+ closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
76
+ closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
77
+ closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
78
+ closest<E extends Element = Element>(selectors: string): E | null;
79
+ computedStyleMap(): StylePropertyMapReadOnly;
80
+ getAttribute(qualifiedName: string): string | null;
81
+ getAttributeNS(namespace: string | null, localName: string): string | null;
82
+ getAttributeNames(): string[];
83
+ getAttributeNode(qualifiedName: string): Attr | null;
84
+ getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
85
+ getBoundingClientRect(): DOMRect;
86
+ getClientRects(): DOMRectList;
87
+ getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
88
+ getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
89
+ getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
90
+ getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
91
+ getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
92
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
93
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
94
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
95
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
96
+ getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
97
+ getHTML(options?: GetHTMLOptions): string;
98
+ hasAttribute(qualifiedName: string): boolean;
99
+ hasAttributeNS(namespace: string | null, localName: string): boolean;
100
+ hasAttributes(): boolean;
101
+ hasPointerCapture(pointerId: number): boolean;
102
+ insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
103
+ insertAdjacentHTML(position: InsertPosition, string: string): void;
104
+ insertAdjacentText(where: InsertPosition, data: string): void;
105
+ matches(selectors: string): boolean;
106
+ releasePointerCapture(pointerId: number): void;
107
+ removeAttribute(qualifiedName: string): void;
108
+ removeAttributeNS(namespace: string | null, localName: string): void;
109
+ removeAttributeNode(attr: Attr): Attr;
110
+ requestFullscreen(options?: FullscreenOptions): Promise<void>;
111
+ requestPointerLock(options?: PointerLockOptions): Promise<void>;
112
+ scroll(options?: ScrollToOptions): void;
113
+ scroll(x: number, y: number): void;
114
+ scrollBy(options?: ScrollToOptions): void;
115
+ scrollBy(x: number, y: number): void;
116
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
117
+ scrollTo(options?: ScrollToOptions): void;
118
+ scrollTo(x: number, y: number): void;
119
+ setAttribute(qualifiedName: string, value: string): void;
120
+ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
121
+ setAttributeNode(attr: Attr): Attr | null;
122
+ setAttributeNodeNS(attr: Attr): Attr | null;
123
+ setHTMLUnsafe(html: string): void;
124
+ setPointerCapture(pointerId: number): void;
125
+ toggleAttribute(qualifiedName: string, force?: boolean): boolean;
126
+ webkitMatchesSelector(selectors: string): boolean;
127
+ get textContent(): string;
128
+ set textContent(value: string | null);
129
+ readonly baseURI: string;
130
+ readonly childNodes: NodeListOf<ChildNode>;
131
+ readonly firstChild: ChildNode | null;
132
+ readonly isConnected: boolean;
133
+ readonly lastChild: ChildNode | null;
134
+ readonly nextSibling: ChildNode | null;
135
+ readonly nodeName: string;
136
+ readonly nodeType: number;
137
+ nodeValue: string | null;
138
+ readonly parentElement: HTMLElement | null;
139
+ readonly parentNode: ParentNode | null;
140
+ readonly previousSibling: ChildNode | null;
141
+ appendChild<T extends Node>(node: T): T;
142
+ cloneNode(subtree?: boolean): Node;
143
+ compareDocumentPosition(other: Node): number;
144
+ contains(other: Node | null): boolean;
145
+ getRootNode(options?: GetRootNodeOptions): Node;
146
+ hasChildNodes(): boolean;
147
+ insertBefore<T extends Node>(node: T, child: Node | null): T;
148
+ isDefaultNamespace(namespace: string | null): boolean;
149
+ isEqualNode(otherNode: Node | null): boolean;
150
+ isSameNode(otherNode: Node | null): boolean;
151
+ lookupNamespaceURI(prefix: string | null): string | null;
152
+ lookupPrefix(namespace: string | null): string | null;
153
+ normalize(): void;
154
+ removeChild<T extends Node>(child: T): T;
155
+ replaceChild<T extends Node>(node: Node, child: T): T;
156
+ readonly ELEMENT_NODE: 1;
157
+ readonly ATTRIBUTE_NODE: 2;
158
+ readonly TEXT_NODE: 3;
159
+ readonly CDATA_SECTION_NODE: 4;
160
+ readonly ENTITY_REFERENCE_NODE: 5;
161
+ readonly ENTITY_NODE: 6;
162
+ readonly PROCESSING_INSTRUCTION_NODE: 7;
163
+ readonly COMMENT_NODE: 8;
164
+ readonly DOCUMENT_NODE: 9;
165
+ readonly DOCUMENT_TYPE_NODE: 10;
166
+ readonly DOCUMENT_FRAGMENT_NODE: 11;
167
+ readonly NOTATION_NODE: 12;
168
+ readonly DOCUMENT_POSITION_DISCONNECTED: 1;
169
+ readonly DOCUMENT_POSITION_PRECEDING: 2;
170
+ readonly DOCUMENT_POSITION_FOLLOWING: 4;
171
+ readonly DOCUMENT_POSITION_CONTAINS: 8;
172
+ readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
173
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
174
+ dispatchEvent(event: Event): boolean;
175
+ ariaActiveDescendantElement: Element | null;
176
+ ariaAtomic: string | null;
177
+ ariaAutoComplete: string | null;
178
+ ariaBrailleLabel: string | null;
179
+ ariaBrailleRoleDescription: string | null;
180
+ ariaBusy: string | null;
181
+ ariaChecked: string | null;
182
+ ariaColCount: string | null;
183
+ ariaColIndex: string | null;
184
+ ariaColIndexText: string | null;
185
+ ariaColSpan: string | null;
186
+ ariaControlsElements: ReadonlyArray<Element> | null;
187
+ ariaCurrent: string | null;
188
+ ariaDescribedByElements: ReadonlyArray<Element> | null;
189
+ ariaDescription: string | null;
190
+ ariaDetailsElements: ReadonlyArray<Element> | null;
191
+ ariaDisabled: string | null;
192
+ ariaErrorMessageElements: ReadonlyArray<Element> | null;
193
+ ariaExpanded: string | null;
194
+ ariaFlowToElements: ReadonlyArray<Element> | null;
195
+ ariaHasPopup: string | null;
196
+ ariaHidden: string | null;
197
+ ariaInvalid: string | null;
198
+ ariaKeyShortcuts: string | null;
199
+ ariaLabel: string | null;
200
+ ariaLabelledByElements: ReadonlyArray<Element> | null;
201
+ ariaLevel: string | null;
202
+ ariaLive: string | null;
203
+ ariaModal: string | null;
204
+ ariaMultiLine: string | null;
205
+ ariaMultiSelectable: string | null;
206
+ ariaOrientation: string | null;
207
+ ariaOwnsElements: ReadonlyArray<Element> | null;
208
+ ariaPlaceholder: string | null;
209
+ ariaPosInSet: string | null;
210
+ ariaPressed: string | null;
211
+ ariaReadOnly: string | null;
212
+ ariaRelevant: string | null;
213
+ ariaRequired: string | null;
214
+ ariaRoleDescription: string | null;
215
+ ariaRowCount: string | null;
216
+ ariaRowIndex: string | null;
217
+ ariaRowIndexText: string | null;
218
+ ariaRowSpan: string | null;
219
+ ariaSelected: string | null;
220
+ ariaSetSize: string | null;
221
+ ariaSort: string | null;
222
+ ariaValueMax: string | null;
223
+ ariaValueMin: string | null;
224
+ ariaValueNow: string | null;
225
+ ariaValueText: string | null;
226
+ role: string | null;
227
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
228
+ getAnimations(options?: GetAnimationsOptions): Animation[];
229
+ after(...nodes: (Node | string)[]): void;
230
+ before(...nodes: (Node | string)[]): void;
231
+ remove(): void;
232
+ replaceWith(...nodes: (Node | string)[]): void;
233
+ readonly nextElementSibling: Element | null;
234
+ readonly previousElementSibling: Element | null;
235
+ readonly childElementCount: number;
236
+ readonly children: HTMLCollection;
237
+ readonly firstElementChild: Element | null;
238
+ readonly lastElementChild: Element | null;
239
+ append(...nodes: (Node | string)[]): void;
240
+ prepend(...nodes: (Node | string)[]): void;
241
+ querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
242
+ querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
243
+ querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
244
+ querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
245
+ querySelector<E extends Element = Element>(selectors: string): E | null;
246
+ querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
247
+ querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
248
+ querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
249
+ querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
250
+ querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
251
+ replaceChildren(...nodes: (Node | string)[]): void;
252
+ readonly assignedSlot: HTMLSlotElement | null;
253
+ readonly attributeStyleMap: StylePropertyMap;
254
+ get style(): CSSStyleDeclaration;
255
+ set style(cssText: string);
256
+ contentEditable: string;
257
+ enterKeyHint: string;
258
+ inputMode: string;
259
+ readonly isContentEditable: boolean;
260
+ onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
261
+ onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
262
+ onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
263
+ onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
264
+ onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
265
+ onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
266
+ onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
267
+ onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
268
+ onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
269
+ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
270
+ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
271
+ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
272
+ oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
273
+ onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
274
+ onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
275
+ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
276
+ oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
277
+ oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
278
+ oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
279
+ oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
280
+ oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
281
+ oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
282
+ ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
283
+ ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
284
+ ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
285
+ ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
286
+ ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
287
+ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
288
+ ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
289
+ ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
290
+ ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
291
+ onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
292
+ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
293
+ onerror: OnErrorEventHandler;
294
+ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
295
+ onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
296
+ ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
297
+ oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
298
+ oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
299
+ onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
300
+ onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
301
+ onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
302
+ onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
303
+ onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
304
+ onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
305
+ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
306
+ onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
307
+ onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
308
+ onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
309
+ onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
310
+ onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
311
+ onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
312
+ onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
313
+ onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
314
+ onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
315
+ onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
316
+ onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
317
+ onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
318
+ onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
319
+ onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
320
+ onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
321
+ onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
322
+ onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
323
+ onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
324
+ onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
325
+ onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
326
+ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
327
+ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
328
+ onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
329
+ onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
330
+ onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
331
+ onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
332
+ onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
333
+ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
334
+ onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
335
+ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
336
+ onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
337
+ onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
338
+ onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
339
+ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
340
+ onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
341
+ onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
342
+ onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
343
+ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
344
+ ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
345
+ ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
346
+ ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
347
+ ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
348
+ ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
349
+ ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
350
+ ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
351
+ ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
352
+ ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
353
+ onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
354
+ onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
355
+ onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
356
+ onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
357
+ onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
358
+ onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
359
+ onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
360
+ autofocus: boolean;
361
+ readonly dataset: DOMStringMap;
362
+ nonce?: string;
363
+ tabIndex: number;
364
+ blur(): void;
365
+ focus(options?: FocusOptions): void;
366
+ };
367
+ styles: import("lit").CSSResultGroup | undefined;
368
+ }, [theme: CSSResult, start: number]>;
369
+ export declare class ShinyExample extends ShinyExample_base {
370
+ }
371
+ export {};
@@ -0,0 +1,20 @@
1
+ import { dom, view } from "@e280/sly";
2
+ import { html } from "lit";
3
+ import styleCss from "./style.css.js";
4
+ import { ShinyElement } from "../framework.js";
5
+ export class ShinyExample extends (view(use => (theme, start) => {
6
+ use.styles(theme, styleCss);
7
+ const $count = use.signal(start);
8
+ const increment = () => { $count.value++; };
9
+ return html `
10
+ <button @click="${increment}">
11
+ ${$count()}
12
+ </button>
13
+ `;
14
+ })
15
+ .component(class extends ShinyElement {
16
+ attrs = dom.attrs(this).spec({ start: Number });
17
+ })
18
+ .props(el => [el.theme, el.attrs.start ?? 1])) {
19
+ }
20
+ //# sourceMappingURL=component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.js","sourceRoot":"","sources":["../../../s/ui/example/component.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAE,IAAI,EAAC,MAAM,WAAW,CAAA;AACnC,OAAO,EAAY,IAAI,EAAC,MAAM,KAAK,CAAA;AACnC,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AACrC,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAA;AAE5C,MAAM,OAAO,YAAa,SAAQ,CACjC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,KAAgB,EAAE,KAAa,EAAE,EAAE;IAC/C,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAA;IAE3B,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;IAChC,MAAM,SAAS,GAAG,GAAG,EAAE,GAAG,MAAM,CAAC,KAAK,EAAE,CAAA,CAAC,CAAC,CAAA;IAE1C,OAAO,IAAI,CAAA;qBACQ,SAAS;MACxB,MAAM,EAAE;;GAEX,CAAA;AACF,CAAC,CAAC;KACD,SAAS,CAAC,KAAM,SAAQ,YAAY;IACpC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAC,KAAK,EAAE,MAAM,EAAC,CAAC,CAAA;CAC7C,CAAC;KACD,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,CAAU,CAAC,CACtD;CAAG"}
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { css } from "lit";
2
+ export default css `
3
+
4
+ button {
5
+ padding: 1em;
6
+ min-width: 4em;
7
+ }
8
+
9
+ `;
10
+ //# sourceMappingURL=style.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.css.js","sourceRoot":"","sources":["../../../s/ui/example/style.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAA;AACvB,eAAe,GAAG,CAAA;;;;;;;CAOjB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { BaseElement } from "@e280/sly";
2
+ export declare class ShinyElement extends BaseElement {
3
+ theme: import("lit").CSSResult;
4
+ }
@@ -0,0 +1,6 @@
1
+ import { BaseElement } from "@e280/sly";
2
+ import { basic } from "../themes/basic.css.js";
3
+ export class ShinyElement extends BaseElement {
4
+ theme = basic;
5
+ }
6
+ //# sourceMappingURL=framework.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"framework.js","sourceRoot":"","sources":["../../s/ui/framework.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,WAAW,EAAC,MAAM,WAAW,CAAA;AACrC,OAAO,EAAC,KAAK,EAAC,MAAM,wBAAwB,CAAA;AAE5C,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC5C,KAAK,GAAG,KAAK,CAAA;CACb"}
@@ -0,0 +1,8 @@
1
+ import { CSSResult } from "lit";
2
+ import { DropFirst } from "@e280/stz";
3
+ import { ComponentClass, View, ViewProps } from "@e280/sly";
4
+ import { components } from "./components.js";
5
+ import { ShinyElement } from "./framework.js";
6
+ export declare function themeComponents(theme: CSSResult): { [K in keyof typeof components]: ComponentClass<typeof ShinyElement, DropFirst<ViewProps<(typeof components)[K]["view"]>>>; };
7
+ export declare function themeViews(theme: CSSResult): { [K in keyof typeof components]: View<DropFirst<ViewProps<(typeof components)[K]["view"]>>>; };
8
+ export type ShinyViews = ReturnType<typeof themeViews>;
@@ -0,0 +1,12 @@
1
+ import { ob } from "@e280/stz";
2
+ import { components } from "./components.js";
3
+ export function themeComponents(theme) {
4
+ return ob(components).map(C => class extends C {
5
+ theme = theme;
6
+ static view = super.view.transmute((...props) => [theme, ...props]);
7
+ });
8
+ }
9
+ export function themeViews(theme) {
10
+ return ob(themeComponents(theme)).map(C => C.view);
11
+ }
12
+ //# sourceMappingURL=themers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"themers.js","sourceRoot":"","sources":["../../s/ui/themers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAY,EAAE,EAAC,MAAM,WAAW,CAAA;AAGvC,OAAO,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAA;AAG1C,MAAM,UAAU,eAAe,CAAC,KAAgB;IAC/C,OAAO,EAAE,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,KAAM,SAAQ,CAAC;QAC7C,KAAK,GAAG,KAAK,CAAA;QACb,MAAM,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,KAAY,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK,CAAQ,CAAQ,CAAA;KACxF,CAKA,CAAA;AACF,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,KAAgB;IAC1C,OAAO,EAAE,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAEhD,CAAA;AACF,CAAC"}