@samtv12345/etherpad-webcomponents 0.0.0 → 0.0.13

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 (211) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +142 -0
  3. package/dist/EpButton.d.ts +17 -0
  4. package/dist/EpButton.d.ts.map +1 -0
  5. package/dist/EpButton.js +168 -0
  6. package/dist/EpButton.js.map +1 -0
  7. package/dist/EpCard.d.ts +15 -0
  8. package/dist/EpCard.d.ts.map +1 -0
  9. package/dist/EpCard.js +126 -0
  10. package/dist/EpCard.js.map +1 -0
  11. package/dist/EpChatMessage.d.ts +15 -0
  12. package/dist/EpChatMessage.d.ts.map +1 -0
  13. package/dist/EpChatMessage.js +75 -0
  14. package/dist/EpChatMessage.js.map +1 -0
  15. package/dist/EpCheckbox.d.ts +16 -0
  16. package/dist/EpCheckbox.d.ts.map +1 -0
  17. package/dist/EpCheckbox.js +154 -0
  18. package/dist/EpCheckbox.js.map +1 -0
  19. package/dist/EpColorPicker.d.ts +16 -0
  20. package/dist/EpColorPicker.d.ts.map +1 -0
  21. package/dist/EpColorPicker.js +191 -0
  22. package/dist/EpColorPicker.js.map +1 -0
  23. package/dist/EpColorWheel.d.ts +61 -0
  24. package/dist/EpColorWheel.d.ts.map +1 -0
  25. package/dist/EpColorWheel.js +428 -0
  26. package/dist/EpColorWheel.js.map +1 -0
  27. package/dist/EpDropdown.d.ts +44 -0
  28. package/dist/EpDropdown.d.ts.map +1 -0
  29. package/dist/EpDropdown.js +298 -0
  30. package/dist/EpDropdown.js.map +1 -0
  31. package/dist/EpDropdownItem.d.ts +16 -0
  32. package/dist/EpDropdownItem.d.ts.map +1 -0
  33. package/dist/EpDropdownItem.js +88 -0
  34. package/dist/EpDropdownItem.js.map +1 -0
  35. package/dist/EpEditor.d.ts +108 -0
  36. package/dist/EpEditor.d.ts.map +1 -0
  37. package/dist/EpEditor.js +277 -0
  38. package/dist/EpEditor.js.map +1 -0
  39. package/dist/EpInput.d.ts +20 -0
  40. package/dist/EpInput.d.ts.map +1 -0
  41. package/dist/EpInput.js +154 -0
  42. package/dist/EpInput.js.map +1 -0
  43. package/dist/EpModal.d.ts +45 -0
  44. package/dist/EpModal.d.ts.map +1 -0
  45. package/dist/EpModal.js +212 -0
  46. package/dist/EpModal.js.map +1 -0
  47. package/dist/EpNotification.d.ts +32 -0
  48. package/dist/EpNotification.d.ts.map +1 -0
  49. package/dist/EpNotification.js +215 -0
  50. package/dist/EpNotification.js.map +1 -0
  51. package/dist/EpSelect.d.ts +38 -0
  52. package/dist/EpSelect.d.ts.map +1 -0
  53. package/dist/EpSelect.js +270 -0
  54. package/dist/EpSelect.js.map +1 -0
  55. package/dist/EpTheme.d.ts +33 -0
  56. package/dist/EpTheme.d.ts.map +1 -0
  57. package/dist/EpTheme.js +109 -0
  58. package/dist/EpTheme.js.map +1 -0
  59. package/dist/EpToast.d.ts +37 -0
  60. package/dist/EpToast.d.ts.map +1 -0
  61. package/dist/EpToast.js +220 -0
  62. package/dist/EpToast.js.map +1 -0
  63. package/dist/EpToolbarSelect.d.ts +24 -0
  64. package/dist/EpToolbarSelect.d.ts.map +1 -0
  65. package/dist/EpToolbarSelect.js +138 -0
  66. package/dist/EpToolbarSelect.js.map +1 -0
  67. package/dist/EpUserBadge.d.ts +15 -0
  68. package/dist/EpUserBadge.d.ts.map +1 -0
  69. package/dist/EpUserBadge.js +90 -0
  70. package/dist/EpUserBadge.js.map +1 -0
  71. package/dist/collab/clientMessage.d.ts +102 -0
  72. package/dist/collab/clientMessage.d.ts.map +1 -0
  73. package/dist/collab/clientMessage.js +132 -0
  74. package/dist/collab/clientMessage.js.map +1 -0
  75. package/dist/editor/AceEditor.d.ts +205 -0
  76. package/dist/editor/AceEditor.d.ts.map +1 -0
  77. package/dist/editor/AceEditor.js +2879 -0
  78. package/dist/editor/AceEditor.js.map +1 -0
  79. package/dist/editor/AttributeManager.d.ts +25 -0
  80. package/dist/editor/AttributeManager.d.ts.map +1 -0
  81. package/dist/editor/AttributeManager.js +236 -0
  82. package/dist/editor/AttributeManager.js.map +1 -0
  83. package/dist/editor/AttributeMap.d.ts +13 -0
  84. package/dist/editor/AttributeMap.d.ts.map +1 -0
  85. package/dist/editor/AttributeMap.js +37 -0
  86. package/dist/editor/AttributeMap.js.map +1 -0
  87. package/dist/editor/AttributePool.d.ts +22 -0
  88. package/dist/editor/AttributePool.d.ts.map +1 -0
  89. package/dist/editor/AttributePool.js +101 -0
  90. package/dist/editor/AttributePool.js.map +1 -0
  91. package/dist/editor/Builder.d.ts +15 -0
  92. package/dist/editor/Builder.d.ts.map +1 -0
  93. package/dist/editor/Builder.js +47 -0
  94. package/dist/editor/Builder.js.map +1 -0
  95. package/dist/editor/Changeset.d.ts +61 -0
  96. package/dist/editor/Changeset.d.ts.map +1 -0
  97. package/dist/editor/Changeset.js +942 -0
  98. package/dist/editor/Changeset.js.map +1 -0
  99. package/dist/editor/ChangesetUtils.d.ts +11 -0
  100. package/dist/editor/ChangesetUtils.d.ts.map +1 -0
  101. package/dist/editor/ChangesetUtils.js +30 -0
  102. package/dist/editor/ChangesetUtils.js.map +1 -0
  103. package/dist/editor/MergingOpAssembler.d.ts +13 -0
  104. package/dist/editor/MergingOpAssembler.d.ts.map +1 -0
  105. package/dist/editor/MergingOpAssembler.js +60 -0
  106. package/dist/editor/MergingOpAssembler.js.map +1 -0
  107. package/dist/editor/Op.d.ts +10 -0
  108. package/dist/editor/Op.d.ts.map +1 -0
  109. package/dist/editor/Op.js +18 -0
  110. package/dist/editor/Op.js.map +1 -0
  111. package/dist/editor/OpAssembler.d.ts +9 -0
  112. package/dist/editor/OpAssembler.d.ts.map +1 -0
  113. package/dist/editor/OpAssembler.js +16 -0
  114. package/dist/editor/OpAssembler.js.map +1 -0
  115. package/dist/editor/OpIter.d.ts +9 -0
  116. package/dist/editor/OpIter.d.ts.map +1 -0
  117. package/dist/editor/OpIter.js +22 -0
  118. package/dist/editor/OpIter.js.map +1 -0
  119. package/dist/editor/SmartOpAssembler.d.ts +21 -0
  120. package/dist/editor/SmartOpAssembler.d.ts.map +1 -0
  121. package/dist/editor/SmartOpAssembler.js +71 -0
  122. package/dist/editor/SmartOpAssembler.js.map +1 -0
  123. package/dist/editor/StringAssembler.d.ts +7 -0
  124. package/dist/editor/StringAssembler.d.ts.map +1 -0
  125. package/dist/editor/StringAssembler.js +15 -0
  126. package/dist/editor/StringAssembler.js.map +1 -0
  127. package/dist/editor/StringIterator.d.ts +13 -0
  128. package/dist/editor/StringIterator.d.ts.map +1 -0
  129. package/dist/editor/StringIterator.js +29 -0
  130. package/dist/editor/StringIterator.js.map +1 -0
  131. package/dist/editor/TextLinesMutator.d.ts +31 -0
  132. package/dist/editor/TextLinesMutator.d.ts.map +1 -0
  133. package/dist/editor/TextLinesMutator.js +198 -0
  134. package/dist/editor/TextLinesMutator.js.map +1 -0
  135. package/dist/editor/ace2_common.d.ts +9 -0
  136. package/dist/editor/ace2_common.d.ts.map +1 -0
  137. package/dist/editor/ace2_common.js +31 -0
  138. package/dist/editor/ace2_common.js.map +1 -0
  139. package/dist/editor/attributes.d.ts +20 -0
  140. package/dist/editor/attributes.d.ts.map +1 -0
  141. package/dist/editor/attributes.js +54 -0
  142. package/dist/editor/attributes.js.map +1 -0
  143. package/dist/editor/browser_flags.d.ts +7 -0
  144. package/dist/editor/browser_flags.d.ts.map +1 -0
  145. package/dist/editor/browser_flags.js +8 -0
  146. package/dist/editor/browser_flags.js.map +1 -0
  147. package/dist/editor/changesettracker.d.ts +54 -0
  148. package/dist/editor/changesettracker.d.ts.map +1 -0
  149. package/dist/editor/changesettracker.js +193 -0
  150. package/dist/editor/changesettracker.js.map +1 -0
  151. package/dist/editor/colorutils.d.ts +22 -0
  152. package/dist/editor/colorutils.d.ts.map +1 -0
  153. package/dist/editor/colorutils.js +81 -0
  154. package/dist/editor/colorutils.js.map +1 -0
  155. package/dist/editor/contentcollector.d.ts +52 -0
  156. package/dist/editor/contentcollector.d.ts.map +1 -0
  157. package/dist/editor/contentcollector.js +692 -0
  158. package/dist/editor/contentcollector.js.map +1 -0
  159. package/dist/editor/core/EventBus.d.ts +187 -0
  160. package/dist/editor/core/EventBus.d.ts.map +1 -0
  161. package/dist/editor/core/EventBus.js +169 -0
  162. package/dist/editor/core/EventBus.js.map +1 -0
  163. package/dist/editor/cssmanager.d.ts +6 -0
  164. package/dist/editor/cssmanager.d.ts.map +1 -0
  165. package/dist/editor/cssmanager.js +35 -0
  166. package/dist/editor/cssmanager.js.map +1 -0
  167. package/dist/editor/domline.d.ts +35 -0
  168. package/dist/editor/domline.d.ts.map +1 -0
  169. package/dist/editor/domline.js +267 -0
  170. package/dist/editor/domline.js.map +1 -0
  171. package/dist/editor/html_escape.d.ts +3 -0
  172. package/dist/editor/html_escape.d.ts.map +1 -0
  173. package/dist/editor/html_escape.js +8 -0
  174. package/dist/editor/html_escape.js.map +1 -0
  175. package/dist/editor/linestylefilter.d.ts +22 -0
  176. package/dist/editor/linestylefilter.d.ts.map +1 -0
  177. package/dist/editor/linestylefilter.js +298 -0
  178. package/dist/editor/linestylefilter.js.map +1 -0
  179. package/dist/editor/skiplist.d.ts +51 -0
  180. package/dist/editor/skiplist.d.ts.map +1 -0
  181. package/dist/editor/skiplist.js +327 -0
  182. package/dist/editor/skiplist.js.map +1 -0
  183. package/dist/editor/types/AText.d.ts +5 -0
  184. package/dist/editor/types/AText.d.ts.map +1 -0
  185. package/dist/editor/types/AText.js +2 -0
  186. package/dist/editor/types/AText.js.map +1 -0
  187. package/dist/editor/types/Attribute.d.ts +2 -0
  188. package/dist/editor/types/Attribute.d.ts.map +1 -0
  189. package/dist/editor/types/Attribute.js +2 -0
  190. package/dist/editor/types/Attribute.js.map +1 -0
  191. package/dist/editor/types/ChangeSet.d.ts +7 -0
  192. package/dist/editor/types/ChangeSet.d.ts.map +1 -0
  193. package/dist/editor/types/ChangeSet.js +2 -0
  194. package/dist/editor/types/ChangeSet.js.map +1 -0
  195. package/dist/editor/types/ChangeSetBuilder.d.ts +7 -0
  196. package/dist/editor/types/ChangeSetBuilder.d.ts.map +1 -0
  197. package/dist/editor/types/ChangeSetBuilder.js +2 -0
  198. package/dist/editor/types/ChangeSetBuilder.js.map +1 -0
  199. package/dist/editor/types/RepModel.d.ts +25 -0
  200. package/dist/editor/types/RepModel.d.ts.map +1 -0
  201. package/dist/editor/types/RepModel.js +2 -0
  202. package/dist/editor/types/RepModel.js.map +1 -0
  203. package/dist/editor/undomodule.d.ts +30 -0
  204. package/dist/editor/undomodule.d.ts.map +1 -0
  205. package/dist/editor/undomodule.js +276 -0
  206. package/dist/editor/undomodule.js.map +1 -0
  207. package/dist/index.d.ts +28 -0
  208. package/dist/index.d.ts.map +1 -0
  209. package/dist/index.js +22 -0
  210. package/dist/index.js.map +1 -0
  211. package/package.json +79 -7
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 The Etherpad Foundation
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,142 @@
1
+ # etherpad-webcomponents
2
+
3
+ Reusable [Lit](https://lit.dev) web components for the [Etherpad](https://etherpad.org) project — framework-agnostic custom elements that ship Etherpad's UI building blocks (buttons, inputs, dropdowns, modals, toasts, a color wheel, …) plus a **standalone rich-text editor** (`<ep-editor>`) powered by Etherpad's Ace editor engine and changeset model.
4
+
5
+ Because they are standard custom elements, the components work in any page or framework (React, Vue, Angular, Svelte, or plain HTML) without a wrapper.
6
+
7
+ - **Built with:** Lit 3 + TypeScript
8
+ - **Documented & tested with:** Storybook 10 + Vitest browser mode (Playwright/Chromium)
9
+ - **License:** MIT © The Etherpad Foundation
10
+
11
+ ---
12
+
13
+ ## Install
14
+
15
+ ```bash
16
+ pnpm add etherpad-webcomponents
17
+ # or: npm install etherpad-webcomponents
18
+ ```
19
+
20
+ ## Usage
21
+
22
+ Import the whole library, or just the components you need (each is individually exported for tree-shaking):
23
+
24
+ ```js
25
+ // everything
26
+ import 'etherpad-webcomponents';
27
+
28
+ // or a single component
29
+ import 'etherpad-webcomponents/EpButton.js';
30
+ ```
31
+
32
+ ```html
33
+ <ep-theme name="colibris">
34
+ <ep-button variant="primary">Save changes</ep-button>
35
+
36
+ <ep-input label="Pad name" placeholder="My pad"></ep-input>
37
+
38
+ <ep-editor content="Hello, collaborative world!"></ep-editor>
39
+ </ep-theme>
40
+ ```
41
+
42
+ The named exports (classes) are also available for programmatic use:
43
+
44
+ ```js
45
+ import { EpButton, EpTheme, themes } from 'etherpad-webcomponents';
46
+ ```
47
+
48
+ ---
49
+
50
+ ## Components
51
+
52
+ | Tag | Class | Key attributes | Custom event |
53
+ | --- | --- | --- | --- |
54
+ | `<ep-button>` | `EpButton` | `variant` (`default`/`primary`/`ghost`/`icon`), `size`, `uppercase`, `disabled`, `type` | — |
55
+ | `<ep-card>` | `EpCard` | `card-title`, `subtitle`, `bordered`, `compact` | — |
56
+ | `<ep-chat-message>` | `EpChatMessage` | `author`, `author-color`, `time`, `own` | — |
57
+ | `<ep-checkbox>` | `EpCheckbox` | `checked`, `variant`, `disabled`, `label` | `ep-change` |
58
+ | `<ep-color-picker>` | `EpColorPicker` | `colors[]`, `value` | `ep-color-select` |
59
+ | `<ep-color-wheel>` | `EpColorWheel` | `value` (canvas HSL hue/sat/lum wheel) | `ep-color-change` |
60
+ | `<ep-dropdown>` / `<ep-dropdown-item>` | `EpDropdown` / `EpDropdownItem` | `trigger` (`click`/`hover`), `align`, `open` | `ep-dropdown-select` |
61
+ | `<ep-input>` | `EpInput` | `label`, `value`, `placeholder`, `hint`, `error-text`, `error`, `type` (incl. `textarea`) | `ep-input` |
62
+ | `<ep-modal>` | `EpModal` | dialog with backdrop & slots | `ep-modal-close` |
63
+ | `<ep-notification>` | `EpNotification` | `type`, `position`, `duration` | — |
64
+ | `<ep-toast-container>` / `<ep-toast-item>` | `EpToastContainer` / `EpToastItem` | `position`, `type`, `message`, `duration` | — |
65
+ | `<ep-toolbar-select>` | `EpToolbarSelect` | `options[]`, `value`, `icon-class`, `label`, `placeholder` | `ep-toolbar-select:change` |
66
+ | `<ep-user-badge>` | `EpUserBadge` | `name`, `color`, `size`, `online` | — |
67
+ | `<ep-theme>` | `EpTheme` | `name` — applies a token set to its subtree | — |
68
+ | `<ep-editor>` | `EpEditor` | `content`, `readonly`, `wrap`, `author-id` | `ready`, `content-changed`, `selection-changed` |
69
+
70
+ ### Theming
71
+
72
+ Components read CSS custom properties (`--text-color`, `--primary-color`, `--bg-soft-color`, …). Wrap a subtree in `<ep-theme name="…">` to apply a token set. Built-in themes: **`colibris`** (default, matches Etherpad's skin), **`colibris-dark`**, **`high-contrast`**, and **`warm`**. Register your own at runtime:
73
+
74
+ ```js
75
+ import { EpTheme } from 'etherpad-webcomponents';
76
+ EpTheme.registerTheme('brand', { '--primary-color': '#ff5722', /* …all ThemeTokens */ });
77
+ ```
78
+
79
+ ### The editor (`<ep-editor>`)
80
+
81
+ `<ep-editor>` embeds Etherpad's Ace editor engine (under `src/editor/`: `Changeset`, `AttributePool`, `changesettracker`, content collector, op assemblers, etc.) as a self-contained element. It supports bold/italic/underline/strikethrough, ordered & unordered lists, indentation, undo/redo, and changeset-based collaboration.
82
+
83
+ Selected methods on the element (see `src/EpEditor.ts` for the full API):
84
+
85
+ ```js
86
+ const ed = document.querySelector('ep-editor');
87
+ ed.getText(); // current document text
88
+ ed.setText('...'); // replace contents
89
+ ed.toggleFormat('bold'); // toggle a formatting attribute on the selection
90
+ ed.insertUnorderedList(); // list / indent helpers
91
+ ed.undo(); ed.redo();
92
+
93
+ // collaboration
94
+ ed.setBaseAttributedText(atext, pool);
95
+ ed.applyChangeset(cs, author, pool);
96
+ const pending = ed.prepareUserChangeset(); // { changeset, apool } to send to a server
97
+ ```
98
+
99
+ The lower-level engine pieces are also exported for advanced use:
100
+
101
+ ```js
102
+ import { AceEditor, AttributePool, makeChangesetTracker } from 'etherpad-webcomponents';
103
+ ```
104
+
105
+ ---
106
+
107
+ ## Development
108
+
109
+ Requires Node.js and [pnpm](https://pnpm.io).
110
+
111
+ ```bash
112
+ pnpm install # install dependencies
113
+ pnpm exec playwright install chromium # one-time: browser for the test runner
114
+
115
+ pnpm storybook # interactive component explorer at http://localhost:6006
116
+ pnpm dev # vite dev server
117
+ pnpm typecheck # tsc --noEmit
118
+ pnpm build # emit dist/ (.js + .d.ts) via tsc
119
+ pnpm test # run the Storybook test suite (see below)
120
+ ```
121
+
122
+ ### Testing
123
+
124
+ Each component has a Storybook story file under `stories/`. The stories double as the test suite: their Storybook **`play` functions** assert behavior (rendering, attribute reflection, click handling, disabled state, event dispatch, …), and `pnpm test` runs every story's play function in a real **Chromium** browser via Vitest browser mode (`@storybook/addon-vitest` + `@vitest/browser-playwright`, configured in `vitest.config.ts`).
125
+
126
+ ```bash
127
+ pnpm test --run
128
+ ```
129
+
130
+ To add coverage, add a story with a `play` function — it will automatically be picked up as a test.
131
+
132
+ ## Project layout
133
+
134
+ ```
135
+ src/
136
+ Ep*.ts # the Lit components (one per custom element)
137
+ index.ts # public entry point — re-exports every component
138
+ editor/ # Etherpad Ace editor engine + changeset model (backs <ep-editor>)
139
+ stories/ # Storybook stories (also the test suite, via play functions)
140
+ .storybook/ # Storybook config
141
+ vitest.config.ts # browser-mode test runner config
142
+ ```
@@ -0,0 +1,17 @@
1
+ import { LitElement } from 'lit';
2
+ export declare class EpButton extends LitElement {
3
+ static styles: import("lit").CSSResult;
4
+ variant: 'default' | 'primary' | 'ghost' | 'icon';
5
+ size: 'small' | 'medium' | 'large';
6
+ uppercase: boolean;
7
+ disabled: boolean;
8
+ type: 'button' | 'submit' | 'reset';
9
+ private _onClick;
10
+ render(): import("lit-html").TemplateResult<1>;
11
+ }
12
+ declare global {
13
+ interface HTMLElementTagNameMap {
14
+ 'ep-button': EpButton;
15
+ }
16
+ }
17
+ //# sourceMappingURL=EpButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EpButton.d.ts","sourceRoot":"","sources":["../src/EpButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,qBACa,QAAS,SAAQ,UAAU;IACtC,MAAM,CAAC,MAAM,0BAkHX;IAE2B,OAAO,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAa;IAC9D,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAY;IAC/B,SAAS,UAAQ;IACjB,QAAQ,UAAS;IACjD,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAY;IAE3D,OAAO,CAAC,QAAQ;IAOhB,MAAM;CAOP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
@@ -0,0 +1,168 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { LitElement, html, css } from 'lit';
8
+ import { customElement, property } from 'lit/decorators.js';
9
+ let EpButton = class EpButton extends LitElement {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.variant = 'default';
13
+ this.size = 'medium';
14
+ this.uppercase = false;
15
+ this.disabled = false;
16
+ this.type = 'button';
17
+ }
18
+ _onClick() {
19
+ if (this.disabled || this.type !== 'submit')
20
+ return;
21
+ const form = this.closest('form');
22
+ if (!form)
23
+ return;
24
+ form.requestSubmit();
25
+ }
26
+ render() {
27
+ return html `
28
+ <button part="button" type="${this.type}" ?disabled="${this.disabled}" @click="${this._onClick}">
29
+ <slot></slot>
30
+ </button>
31
+ `;
32
+ }
33
+ };
34
+ EpButton.styles = css `
35
+ :host {
36
+ --ep-font: var(--main-font-family, Quicksand, Cantarell, "Open Sans", "Helvetica Neue", sans-serif);
37
+ display: inline-block;
38
+ }
39
+
40
+ button {
41
+ font-family: var(--ep-font);
42
+ padding: 5px 20px;
43
+ border-radius: 4px;
44
+ font-size: 14px;
45
+ font-weight: 700;
46
+ cursor: pointer;
47
+ transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
48
+ line-height: 1.5;
49
+ border: none;
50
+ outline: none;
51
+ /* Reset the UA button background so it doesn't leak through variants
52
+ that set their own (default/ghost/icon were showing the browser's
53
+ light ButtonFace, which looked broken in dark themes). */
54
+ background: transparent;
55
+ display: inline-flex;
56
+ width: 100%;
57
+ height: 100%;
58
+ box-sizing: border-box;
59
+ justify-content: center;
60
+ align-items: center;
61
+ gap: 6px;
62
+ }
63
+
64
+ button:focus-visible {
65
+ outline: 2px solid var(--dark-color, #576273);
66
+ outline-offset: 2px;
67
+ }
68
+
69
+ /* Uppercase */
70
+ :host([uppercase]) button {
71
+ text-transform: uppercase;
72
+ }
73
+
74
+ /* Default */
75
+ :host([variant="default"]) button,
76
+ :host(:not([variant])) button {
77
+ color: var(--text-color, #485365);
78
+ border: 1px solid var(--middle-color, #d2d2d2);
79
+ }
80
+
81
+ :host([variant="default"]) button:hover,
82
+ :host(:not([variant])) button:hover {
83
+ background: var(--bg-soft-color, #f2f3f4);
84
+ }
85
+
86
+ /* Primary — matches Etherpad colibris .btn-primary: primary-coloured
87
+ background with bg-coloured (white) text. */
88
+ :host([variant="primary"]) button {
89
+ background: var(--primary-color, #64d29b);
90
+ color: var(--bg-color, #ffffff);
91
+ border: none;
92
+ transition: filter 0.15s ease, opacity 0.15s ease;
93
+ }
94
+
95
+ :host([variant="primary"]) button:hover {
96
+ filter: brightness(0.94);
97
+ }
98
+
99
+ :host([variant="primary"]) button:active {
100
+ filter: brightness(0.88);
101
+ }
102
+
103
+ /* Ghost */
104
+ :host([variant="ghost"]) button {
105
+ background: transparent;
106
+ color: var(--text-color, #485365);
107
+ border: none;
108
+ padding: 5px 12px;
109
+ }
110
+
111
+ :host([variant="ghost"]) button:hover {
112
+ background: var(--bg-soft-color, #f2f3f4);
113
+ }
114
+
115
+ /* Icon */
116
+ :host([variant="icon"]) button {
117
+ background: transparent;
118
+ color: var(--text-color, #485365);
119
+ border: none;
120
+ padding: 4px;
121
+ border-radius: 3px;
122
+ min-width: 28px;
123
+ min-height: 28px;
124
+ justify-content: center;
125
+ }
126
+
127
+ :host([variant="icon"]) button:hover {
128
+ background: var(--bg-soft-color, #f2f3f4);
129
+ }
130
+
131
+ /* Sizes */
132
+ :host([size="small"]) button {
133
+ padding: 3px 12px;
134
+ font-size: 12px;
135
+ }
136
+
137
+ :host([size="large"]) button {
138
+ padding: 8px 28px;
139
+ font-size: 16px;
140
+ }
141
+
142
+ /* Disabled */
143
+ :host([disabled]) button {
144
+ opacity: 0.4;
145
+ cursor: not-allowed;
146
+ pointer-events: none;
147
+ }
148
+ `;
149
+ __decorate([
150
+ property({ reflect: true })
151
+ ], EpButton.prototype, "variant", void 0);
152
+ __decorate([
153
+ property({ reflect: true })
154
+ ], EpButton.prototype, "size", void 0);
155
+ __decorate([
156
+ property({ reflect: true, type: Boolean })
157
+ ], EpButton.prototype, "uppercase", void 0);
158
+ __decorate([
159
+ property({ type: Boolean, reflect: true })
160
+ ], EpButton.prototype, "disabled", void 0);
161
+ __decorate([
162
+ property()
163
+ ], EpButton.prototype, "type", void 0);
164
+ EpButton = __decorate([
165
+ customElement('ep-button')
166
+ ], EpButton);
167
+ export { EpButton };
168
+ //# sourceMappingURL=EpButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EpButton.js","sourceRoot":"","sources":["../src/EpButton.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGrD,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,UAAU;IAAjC;;QAqHwB,YAAO,GAA6C,SAAS,CAAC;QAC9D,SAAI,GAAiC,QAAQ,CAAC;QAC/B,cAAS,GAAG,KAAK,CAAA;QACjB,aAAQ,GAAG,KAAK,CAAC;QACjD,SAAI,GAAkC,QAAQ,CAAC;IAgB7D,CAAC;IAdS,QAAQ;QACd,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ;YAAE,OAAO;QACpD,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,IAAI;YAAE,OAAO;QAClB,IAAI,CAAC,aAAa,EAAE,CAAC;IACvB,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAA;oCACqB,IAAI,CAAC,IAAI,gBAAgB,IAAI,CAAC,QAAQ,aAAa,IAAI,CAAC,QAAQ;;;KAG/F,CAAC;IACJ,CAAC;;AAvIM,eAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkHlB,AAlHY,CAkHX;AAE2B;IAA5B,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;yCAA+D;AAC9D;IAA5B,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;sCAA+C;AAC/B;IAA3C,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;2CAAkB;AACjB;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;0CAAkB;AACjD;IAAX,QAAQ,EAAE;sCAAgD;AAzHhD,QAAQ;IADpB,aAAa,CAAC,WAAW,CAAC;GACd,QAAQ,CAyIpB"}
@@ -0,0 +1,15 @@
1
+ import { LitElement } from 'lit';
2
+ export declare class EpCard extends LitElement {
3
+ static styles: import("lit").CSSResult;
4
+ cardTitle: string;
5
+ subtitle: string;
6
+ bordered: boolean;
7
+ compact: boolean;
8
+ render(): import("lit-html").TemplateResult<1>;
9
+ }
10
+ declare global {
11
+ interface HTMLElementTagNameMap {
12
+ 'ep-card': EpCard;
13
+ }
14
+ }
15
+ //# sourceMappingURL=EpCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EpCard.d.ts","sourceRoot":"","sources":["../src/EpCard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,qBACa,MAAO,SAAQ,UAAU;IACpC,MAAM,CAAC,MAAM,0BAwEX;IAEqC,SAAS,SAAM;IAC1C,QAAQ,SAAM;IACkB,QAAQ,UAAS;IACjB,OAAO,UAAS;IAE5D,MAAM;CAmBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
package/dist/EpCard.js ADDED
@@ -0,0 +1,126 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { LitElement, html, css } from 'lit';
8
+ import { customElement, property } from 'lit/decorators.js';
9
+ let EpCard = class EpCard extends LitElement {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.cardTitle = '';
13
+ this.subtitle = '';
14
+ this.bordered = false;
15
+ this.compact = false;
16
+ }
17
+ render() {
18
+ const hasHeader = this.cardTitle || this.subtitle;
19
+ return html `
20
+ <div class="card" part="card">
21
+ ${hasHeader ? html `
22
+ <div class="header" part="header">
23
+ ${this.cardTitle ? html `<h3 class="title">${this.cardTitle}</h3>` : ''}
24
+ ${this.subtitle ? html `<p class="subtitle">${this.subtitle}</p>` : ''}
25
+ </div>
26
+ ` : ''}
27
+ <div class="body" part="body">
28
+ <slot></slot>
29
+ </div>
30
+ <div class="footer" part="footer">
31
+ <slot name="footer"></slot>
32
+ </div>
33
+ </div>
34
+ `;
35
+ }
36
+ };
37
+ EpCard.styles = css `
38
+ :host {
39
+ --ep-font: var(--main-font-family, Quicksand, Cantarell, "Open Sans", "Helvetica Neue", sans-serif);
40
+ display: block;
41
+ font-family: var(--ep-font);
42
+ font-size: 14px;
43
+ color: var(--text-color, #485365);
44
+ }
45
+
46
+ .card {
47
+ background: var(--bg-color, white);
48
+ border-radius: 5px;
49
+ box-shadow: 0 0 0 1px rgba(99, 114, 130, 0.16), 0 8px 16px rgba(27, 39, 51, 0.08);
50
+ overflow: hidden;
51
+ }
52
+
53
+ :host([bordered]) .card {
54
+ box-shadow: none;
55
+ border: 1px solid var(--middle-color, #d2d2d2);
56
+ }
57
+
58
+ .header {
59
+ padding: 20px 25px 0;
60
+ }
61
+
62
+ .header:empty { display: none; }
63
+
64
+ .title {
65
+ margin: 0;
66
+ font-size: 1.2rem;
67
+ font-weight: 700;
68
+ line-height: 1.4;
69
+ color: var(--text-color, #485365);
70
+ }
71
+
72
+ .subtitle {
73
+ margin: 4px 0 0;
74
+ font-size: 13px;
75
+ color: var(--text-soft-color, #576273);
76
+ }
77
+
78
+ .body {
79
+ padding: 20px 25px;
80
+ line-height: 1.6;
81
+ }
82
+
83
+ :host([compact]) .body {
84
+ padding: 12px 16px;
85
+ }
86
+
87
+ :host([compact]) .header {
88
+ padding: 12px 16px 0;
89
+ }
90
+
91
+ .footer {
92
+ padding: 0 25px 20px;
93
+ display: flex;
94
+ align-items: center;
95
+ gap: 8px;
96
+ }
97
+
98
+ :host([compact]) .footer {
99
+ padding: 0 16px 12px;
100
+ }
101
+
102
+ .footer:empty { display: none; }
103
+
104
+ .divider {
105
+ border: none;
106
+ border-top: 1px solid var(--bg-soft-color, #f2f3f4);
107
+ margin: 0;
108
+ }
109
+ `;
110
+ __decorate([
111
+ property({ attribute: 'card-title' })
112
+ ], EpCard.prototype, "cardTitle", void 0);
113
+ __decorate([
114
+ property()
115
+ ], EpCard.prototype, "subtitle", void 0);
116
+ __decorate([
117
+ property({ type: Boolean, reflect: true })
118
+ ], EpCard.prototype, "bordered", void 0);
119
+ __decorate([
120
+ property({ type: Boolean, reflect: true })
121
+ ], EpCard.prototype, "compact", void 0);
122
+ EpCard = __decorate([
123
+ customElement('ep-card')
124
+ ], EpCard);
125
+ export { EpCard };
126
+ //# sourceMappingURL=EpCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EpCard.js","sourceRoot":"","sources":["../src/EpCard.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGrD,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,UAAU;IAA/B;;QA2EkC,cAAS,GAAG,EAAE,CAAC;QAC1C,aAAQ,GAAG,EAAE,CAAC;QACkB,aAAQ,GAAG,KAAK,CAAC;QACjB,YAAO,GAAG,KAAK,CAAC;IAqB9D,CAAC;IAnBC,MAAM;QACJ,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,QAAQ,CAAC;QAClD,OAAO,IAAI,CAAA;;UAEL,SAAS,CAAC,CAAC,CAAC,IAAI,CAAA;;cAEZ,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAA,qBAAqB,IAAI,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,EAAE;cACpE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAA,uBAAuB,IAAI,CAAC,QAAQ,MAAM,CAAC,CAAC,CAAC,EAAE;;SAExE,CAAC,CAAC,CAAC,EAAE;;;;;;;;KAQT,CAAC;IACJ,CAAC;;AAjGM,aAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwElB,AAxEY,CAwEX;AAEqC;IAAtC,QAAQ,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;yCAAgB;AAC1C;IAAX,QAAQ,EAAE;wCAAe;AACkB;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wCAAkB;AACjB;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uCAAiB;AA9EjD,MAAM;IADlB,aAAa,CAAC,SAAS,CAAC;GACZ,MAAM,CAmGlB"}
@@ -0,0 +1,15 @@
1
+ import { LitElement } from 'lit';
2
+ export declare class EpChatMessage extends LitElement {
3
+ static styles: import("lit").CSSResult;
4
+ author: string;
5
+ authorColor: string;
6
+ time: string;
7
+ own: boolean;
8
+ render(): import("lit-html").TemplateResult<1>;
9
+ }
10
+ declare global {
11
+ interface HTMLElementTagNameMap {
12
+ 'ep-chat-message': EpChatMessage;
13
+ }
14
+ }
15
+ //# sourceMappingURL=EpChatMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EpChatMessage.d.ts","sourceRoot":"","sources":["../src/EpChatMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,qBACa,aAAc,SAAQ,UAAU;IAC3C,MAAM,CAAC,MAAM,0BAmCX;IAEU,MAAM,SAAM;IACiB,WAAW,SAAM;IAC9C,IAAI,SAAM;IACsB,GAAG,UAAS;IAExD,MAAM;CAKP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,aAAa,CAAC;KAClC;CACF"}
@@ -0,0 +1,75 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { LitElement, html, css } from 'lit';
8
+ import { customElement, property } from 'lit/decorators.js';
9
+ let EpChatMessage = class EpChatMessage extends LitElement {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.author = '';
13
+ this.authorColor = '';
14
+ this.time = '';
15
+ this.own = false;
16
+ }
17
+ render() {
18
+ return html `
19
+ <b class="author" style="${this.authorColor ? `color: ${this.authorColor}` : ''}">${this.author}</b>${this.time ? html `<span class="time">${this.time}</span>` : html `<span class="time"></span>`}<span class="body"><slot></slot></span>
20
+ `;
21
+ }
22
+ };
23
+ EpChatMessage.styles = css `
24
+ /* Matches Etherpad colibris chat: a plain message line (#chattext p),
25
+ padding 4px 10px, bold author, muted inline time, then the text. No
26
+ bubbles — Etherpad does not style own vs other messages differently. */
27
+ :host {
28
+ --ep-font: var(--main-font-family, Quicksand, Cantarell, "Open Sans", "Helvetica Neue", sans-serif);
29
+ display: block;
30
+ font-family: var(--ep-font);
31
+ font-size: 14px;
32
+ line-height: 1.5;
33
+ color: var(--text-color, #485365);
34
+ padding: 4px 10px;
35
+ word-wrap: break-word;
36
+ }
37
+
38
+ :host(:first-child) { padding-top: 10px; }
39
+ :host(:last-child) { padding-bottom: 10px; }
40
+
41
+ .author {
42
+ font-weight: bold;
43
+ }
44
+
45
+ .time {
46
+ font-size: 11px;
47
+ color: var(--text-soft-color, #576273);
48
+ margin: 0 4px 0 6px;
49
+ }
50
+
51
+ .body { display: inline; }
52
+
53
+ /* authorColors mode: Etherpad tints the whole message with the author
54
+ colour. Opt-in via the own flag to keep the default view plain. */
55
+ :host([own]) {
56
+ background: var(--bg-soft-color, #f2f3f4);
57
+ }
58
+ `;
59
+ __decorate([
60
+ property()
61
+ ], EpChatMessage.prototype, "author", void 0);
62
+ __decorate([
63
+ property({ attribute: 'author-color' })
64
+ ], EpChatMessage.prototype, "authorColor", void 0);
65
+ __decorate([
66
+ property()
67
+ ], EpChatMessage.prototype, "time", void 0);
68
+ __decorate([
69
+ property({ type: Boolean, reflect: true })
70
+ ], EpChatMessage.prototype, "own", void 0);
71
+ EpChatMessage = __decorate([
72
+ customElement('ep-chat-message')
73
+ ], EpChatMessage);
74
+ export { EpChatMessage };
75
+ //# sourceMappingURL=EpChatMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EpChatMessage.js","sourceRoot":"","sources":["../src/EpChatMessage.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGrD,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,UAAU;IAAtC;;QAsCO,WAAM,GAAG,EAAE,CAAC;QACiB,gBAAW,GAAG,EAAE,CAAC;QAC9C,SAAI,GAAG,EAAE,CAAC;QACsB,QAAG,GAAG,KAAK,CAAC;IAO1D,CAAC;IALC,MAAM;QACJ,OAAO,IAAI,CAAA;iCACkB,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,IAAI,CAAC,MAAM,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAA,sBAAsB,IAAI,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,IAAI,CAAA,4BAA4B;KAClM,CAAC;IACJ,CAAC;;AA9CM,oBAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmClB,AAnCY,CAmCX;AAEU;IAAX,QAAQ,EAAE;6CAAa;AACiB;IAAxC,QAAQ,CAAC,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC;kDAAkB;AAC9C;IAAX,QAAQ,EAAE;2CAAW;AACsB;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;0CAAa;AAzC7C,aAAa;IADzB,aAAa,CAAC,iBAAiB,CAAC;GACpB,aAAa,CAgDzB"}
@@ -0,0 +1,16 @@
1
+ import { LitElement } from 'lit';
2
+ export declare class EpCheckbox extends LitElement {
3
+ static styles: import("lit").CSSResult;
4
+ checked: boolean;
5
+ variant: 'default' | 'retro';
6
+ disabled: boolean;
7
+ label: string;
8
+ render(): import("lit-html").TemplateResult<1>;
9
+ private _toggle;
10
+ }
11
+ declare global {
12
+ interface HTMLElementTagNameMap {
13
+ 'ep-checkbox': EpCheckbox;
14
+ }
15
+ }
16
+ //# sourceMappingURL=EpCheckbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EpCheckbox.d.ts","sourceRoot":"","sources":["../src/EpCheckbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,qBACa,UAAW,SAAQ,UAAU;IACxC,MAAM,CAAC,MAAM,0BAiGX;IAE0C,OAAO,UAAS;IAC/B,OAAO,EAAE,SAAS,GAAG,OAAO,CAAa;IAC1B,QAAQ,UAAS;IACjD,KAAK,SAAM;IAEvB,MAAM;IAcN,OAAO,CAAC,OAAO;CAQhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,UAAU,CAAC;KAC3B;CACF"}