@hotosm/ui 0.2.0-b4 → 0.2.0-b5

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 (54) hide show
  1. package/README.md +98 -106
  2. package/components/header/header.styles.ts +103 -0
  3. package/components/header/header.ts +117 -194
  4. package/components/icons.ts +1 -1
  5. package/components/index.ts +68 -62
  6. package/components/logo/logo.styles.ts +8 -0
  7. package/components/logo/logo.ts +37 -0
  8. package/components/react/Header.ts +16 -0
  9. package/components/react/Logo.ts +15 -0
  10. package/components/react/Toolbar.ts +24 -0
  11. package/components/react/Tracking.ts +17 -0
  12. package/components/react/index.ts +63 -0
  13. package/components/toolbar/toolbar.styles.ts +6 -0
  14. package/components/toolbar/toolbar.ts +100 -57
  15. package/components/tracking/tracking.styles.ts +23 -0
  16. package/components/tracking/tracking.ts +89 -85
  17. package/dist/components/header/header.d.ts +28 -0
  18. package/dist/components/header/header.styles.d.ts +6 -0
  19. package/dist/components/index.d.ts +130 -0
  20. package/dist/components/logo/logo.d.ts +10 -0
  21. package/dist/components/logo/logo.styles.d.ts +2 -0
  22. package/dist/components/react/Tracking.d.ts +2 -0
  23. package/dist/components/react/index.d.ts +62 -0
  24. package/dist/components/toolbar/toolbar.d.ts +20 -0
  25. package/dist/components/toolbar/toolbar.styles.d.ts +2 -0
  26. package/{components → dist/components}/tracking/tracking.d.ts +8 -9
  27. package/dist/components/tracking/tracking.styles.d.ts +2 -0
  28. package/dist/{components.js → hotosm-ui.js} +4013 -3755
  29. package/dist/style.css +1 -1
  30. package/package.json +25 -24
  31. package/theme/hot-sl.css +194 -0
  32. package/theme/hot.css +191 -121
  33. package/theme/logo/hot-logo-icon.svg +1 -0
  34. package/theme/logo/hot-logo-png.png +0 -0
  35. package/theme/logo/hot-logo-text.svg +1 -0
  36. package/components/header/header.d.ts +0 -30
  37. package/components/header/header.js +0 -237
  38. package/components/icons.js +0 -78
  39. package/components/index.d.ts +0 -127
  40. package/components/index.js +0 -127
  41. package/components/toolbar/toolbar.d.ts +0 -24
  42. package/components/toolbar/toolbar.js +0 -121
  43. package/components/tracking/tracking.js +0 -164
  44. package/react/Header.js +0 -14
  45. package/react/Toolbar.js +0 -21
  46. package/react/Tracking.js +0 -15
  47. package/react/index.d.ts +0 -3
  48. package/react/index.js +0 -5
  49. package/theme/logo.png +0 -0
  50. package/theme/sl-custom.css +0 -74
  51. /package/{components → dist/components}/icons.d.ts +0 -0
  52. /package/{react → dist/components/react}/Header.d.ts +0 -0
  53. /package/{react/Toolbar.d.ts → dist/components/react/Logo.d.ts} +0 -0
  54. /package/{react/Tracking.d.ts → dist/components/react/Toolbar.d.ts} +0 -0
@@ -1,237 +0,0 @@
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 "../../theme/sl-custom.css";
8
- import '@shoelace-style/shoelace/dist/components/icon-button/icon-button.js';
9
- import '@shoelace-style/shoelace/dist/components/tab-panel/tab-panel.js';
10
- import '@shoelace-style/shoelace/dist/components/tab-group/tab-group.js';
11
- import '@shoelace-style/shoelace/dist/components/tab/tab.js';
12
- import { LitElement, css, html } from "lit";
13
- import { property, state } from "lit/decorators.js";
14
- import { cva } from "class-variance-authority";
15
- import registerBundledIcons from '../../components/icons';
16
- registerBundledIcons();
17
- const headerVariants = cva(
18
- // Defaults to include in all variants
19
- `
20
- flex flex-row bg-[var(--hot-white)] items-center justify-between
21
- sm:justify-around p-2 border-b-2 border-b-gray-100 border-b-solid
22
- `, {
23
- variants: {
24
- size: {
25
- small: "h-8",
26
- large: "h-14",
27
- },
28
- },
29
- });
30
- export class Header extends LitElement {
31
- constructor() {
32
- super(...arguments);
33
- this.name = "hot-header";
34
- /** Use a text-based title in the header. */
35
- this.title = '';
36
- /** Display a logo on the left of the header. */
37
- this.logo = `
38
- data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAB9CAMAAAAvBq6hAAAAbFBMVEX
39
- ////XPz/ke3vura3++vr32dn76+vYRET65eX10ND88PDxurrkfX3cVlb99PTkf3/zxMThb2/tqKjv
40
- sbHfZWXlhIT439/cWVnyv7/rn5/idHT0ysrplpbaTU3qnJzZSEjni4veYWHgaWnokpKZE/dBAAAOH
41
- ElEQVR4nO1cabuqvA6lMsggCCgzKOD//483SQvitiDoOfe4n7frw2YDHVfTJE2LmqagoKCgoKCgoK
42
- CgoKCgoKCgoKCgoKCgoKCgoKDwhEu0+wzJW9Wmu0Mg/q127Uc9iHcVXlxj5n21iz8qfwKHfYronWo
43
- rxlzxb8HYRz3w2U3TjNqfI+vG/I/KnyL9mK13ZMth+4Es/cPOXPqcypt7n/eXj8p/QPUxW2805g+S
44
- RUj/oPgswvuYrdPmOp/Ici2aRobl0o2mmbmDD+ywGpSb5eSVTf8F8N6qQn5jgLYyQua7VKBh5rkpi
45
- jI0M7ToPWVy8tDUhjdwZ77BFWmNDxFurRLIGjjgZHV7KiO9XqHPfpOWUGpmaQe4NKTA6QljJfCkJX
46
- snxpsj0pDAWEX0Dkq8XPEfH0fP2Rc5/O9WpCeMlpJ0WJa3P9F06tN32Go/ZmvrKE10jEdkNSzHG5M
47
- UP/b40F5ZV7KybRhDQdoz/1YAdxmk2rGGdS2wd4CbksVaEbH9DqhLgMDi5jNWoXqBnA0zPFZCqjNj
48
- bQFFYlkn5rOmhbTNnFFYRPkpWVdrK1msjzgy6n/GpZOTlRH79p4xmIquj9M8Ymd8X9Eb6KcONzF1/
49
- Yj/W8R4RRk0rUdhgio6yzBBco+YdI8thLJi0js7rGu/fUYQuk/ZyrYN0oPHIiGL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BQUFBQUFBQUFBQUFBQUFBQUFBQUFBQ+Gf4H5j7yuOYiAtqAAAAAElFTkSuQmCC
104
- `;
105
- /** Add a drawer icon with a click event to e.g. open a sidebar. */
106
- this.drawer = true;
107
- /** Array of menu items to include as navigation tabs. */
108
- this.tabs = [];
109
- /** Size of toolbar vertically. */
110
- this.size = "large";
111
- this.selectedTab = 0;
112
- }
113
- render() {
114
- const logoSrc = typeof this.logo === 'string' || this.logo instanceof URL ? (typeof this.logo === 'string' ? this.logo : this.logo.href) : '';
115
- return html `
116
- <header class=${headerVariants({ size: this.size })}>
117
- <a href="/" class="flex flex-row">
118
- ${(logoSrc.length > 0) ? html `
119
- <img
120
- id="logo"
121
- src="${this.logo}"
122
- alt="Logo"
123
- class="h-10 px-10 hover:opacity-90"
124
- >
125
- ` : null}
126
-
127
- ${(this.title.length > 0) ? html `
128
- <h1 class="text-2xl color-primary font-sans font-bold pl-3 m-0">${this.title}</h1>
129
- ` : null}
130
- </a>
131
-
132
- ${ /* Navigation bar for desktop, hide on mobile */''}
133
- <nav className="hidden sm:flex justify-between items-center gap-4 font-semibold">
134
- <sl-tab-group>
135
- ${this.tabs.map((item, index) => html `
136
- <sl-tab
137
- slot="nav"
138
- panel="general"
139
- @click=${(e) => { this._selectTab(e, item.clickEvent, index); }}
140
- ?selected=${this.selectedTab === index}
141
- >${item.label}</sl-tab>
142
- `)}
143
- </sl-tab-group>
144
- </nav>
145
-
146
- ${ /* Stacked navigation drawer for mobile */''}
147
- ${ /* NOTE this should probably be in a drawer instead */''}
148
- <nav className="sm:hidden flex flex-col items-end gap-1 font-semibold">
149
- </nav>
150
-
151
- <div id="right-section" style="display: flex; align-items: center;">
152
- <sl-icon-button
153
- library="bundled"
154
- name="person-circle"
155
- style="font-size: 1.8rem;"
156
- label="login"
157
- @click=${(e) => { this._handleLogin(e); }}
158
- ></sl-icon-button>
159
-
160
- <div id="drawer-block" style="font-size: 2rem;">
161
- ${this.drawer ? html `
162
- <sl-icon-button library="bundled" name="list" label="drawer-open"></sl-icon-button>
163
- ` : null}
164
- </div>
165
- </div>
166
- </header>
167
- `;
168
- }
169
- _selectTab(_e, clickAction, index) {
170
- this.selectedTab = index;
171
- clickAction();
172
- }
173
- _handleLogin(_e) {
174
- this.dispatchEvent(new Event("login"));
175
- }
176
- }
177
- Header.styles = [
178
- css `@unocss-placeholder;`,
179
- css `
180
- #right-section {
181
- display: flex;
182
- align-items: center;
183
- }
184
-
185
- sl-tab-group {
186
- display: flex;
187
- }
188
-
189
- sl-tab::part(base) {
190
- font-size: 1rem;
191
- border-bottom: 2px solid transparent;
192
- }
193
-
194
- sl-tab[selected]::part(base) {
195
- border-bottom: 2px solid white;
196
- }
197
-
198
- #drawer-block {
199
- display: flex;
200
- align-items: center;
201
- padding-right: 30px;
202
- }
203
-
204
- @media(prefers-color-scheme: light) {
205
- header {
206
- color: black;
207
- }
208
- #break {
209
- background-color: black;
210
- }
211
- }
212
- `
213
- ];
214
- __decorate([
215
- property()
216
- ], Header.prototype, "name", void 0);
217
- __decorate([
218
- property({ type: String })
219
- ], Header.prototype, "title", void 0);
220
- __decorate([
221
- property({ type: String })
222
- ], Header.prototype, "logo", void 0);
223
- __decorate([
224
- property({ type: Boolean })
225
- ], Header.prototype, "drawer", void 0);
226
- __decorate([
227
- property({ type: Array })
228
- ], Header.prototype, "tabs", void 0);
229
- __decorate([
230
- property({ type: String })
231
- ], Header.prototype, "size", void 0);
232
- __decorate([
233
- state()
234
- ], Header.prototype, "selectedTab", void 0);
235
- export default Header;
236
- // Define web component
237
- customElements.define("hot-header", Header);
@@ -1,78 +0,0 @@
1
- //
2
- // Bundled icons hardcoded into hotosm/ui.
3
- // They are a subset of used Shoelace icons (which use Bootstrap icons)
4
- //
5
- import { registerIconLibrary } from '@shoelace-style/shoelace/dist/utilities/icon-library.js';
6
- const icons = {
7
- list: `
8
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-list" viewBox="0 0 16 16">
9
- <path fill-rule="evenodd" d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"/>
10
- </svg>
11
- `,
12
- 'info-circle': `
13
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-info-circle" viewBox="0 0 16 16">
14
- <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/>
15
- <path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/>
16
- </svg>
17
- `,
18
- 'arrow-counterclockwise': `
19
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-counterclockwise" viewBox="0 0 16 16">
20
- <path fill-rule="evenodd" d="M8 3a5 5 0 1 1-4.546 2.914.5.5 0 0 0-.908-.417A6 6 0 1 0 8 2v1z"/>
21
- <path d="M8 4.466V.534a.25.25 0 0 0-.41-.192L5.23 2.308a.25.25 0 0 0 0 .384l2.36 1.966A.25.25 0 0 0 8 4.466z"/>
22
- </svg>
23
- `,
24
- 'arrow-clockwise': `
25
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-clockwise" viewBox="0 0 16 16">
26
- <path fill-rule="evenodd" d="M8 3a5 5 0 1 0 4.546 2.914.5.5 0 0 1 .908-.417A6 6 0 1 1 8 2v1z"/>
27
- <path d="M8 4.466V.534a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384L8.41 4.658A.25.25 0 0 1 8 4.466z"/>
28
- </svg>
29
- `,
30
- 'type-bold': `
31
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-type-bold" viewBox="0 0 16 16">
32
- <path d="M8.21 13c2.106 0 3.412-1.087 3.412-2.823 0-1.306-.984-2.283-2.324-2.386v-.055a2.176 2.176 0 0 0 1.852-2.14c0-1.51-1.162-2.46-3.014-2.46H3.843V13H8.21zM5.908 4.674h1.696c.963 0 1.517.451 1.517 1.244 0 .834-.629 1.32-1.73 1.32H5.908V4.673zm0 6.788V8.598h1.73c1.217 0 1.88.492 1.88 1.415 0 .943-.643 1.449-1.832 1.449H5.907z"/>
33
- </svg>
34
- `,
35
- 'type-italic': `
36
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-type-italic" viewBox="0 0 16 16">
37
- <path d="M7.991 11.674 9.53 4.455c.123-.595.246-.71 1.347-.807l.11-.52H7.211l-.11.52c1.06.096 1.128.212 1.005.807L6.57 11.674c-.123.595-.246.71-1.346.806l-.11.52h3.774l.11-.52c-1.06-.095-1.129-.211-1.006-.806z"/>
38
- </svg>
39
- `,
40
- 'type-underline': `
41
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-type-underline" viewBox="0 0 16 16">
42
- <path d="M5.313 3.136h-1.23V9.54c0 2.105 1.47 3.623 3.917 3.623s3.917-1.518 3.917-3.623V3.136h-1.23v6.323c0 1.49-.978 2.57-2.687 2.57-1.709 0-2.687-1.08-2.687-2.57V3.136zM12.5 15h-9v-1h9v1z"/>
43
- </svg>
44
- `,
45
- 'justify-left': `
46
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-justify-left" viewBox="0 0 16 16">
47
- <path fill-rule="evenodd" d="M2 12.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5z"/>
48
- </svg>
49
- `,
50
- justify: `
51
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-justify" viewBox="0 0 16 16">
52
- <path fill-rule="evenodd" d="M2 12.5a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5z"/>
53
- </svg>
54
- `,
55
- 'justify-right': `
56
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-justify-right" viewBox="0 0 16 16">
57
- <path fill-rule="evenodd" d="M6 12.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm-4-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5z"/>
58
- </svg>
59
- `,
60
- 'person-circle': `
61
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person-circle" viewBox="0 0 16 16">
62
- <path d="M11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/>
63
- <path fill-rule="evenodd" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm8-7a7 7 0 0 0-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 0 0 8 1z"/>
64
- </svg>
65
- `
66
- };
67
- const libraryResolver = (name) => {
68
- if (name in icons) {
69
- return `data:image/svg+xml,${encodeURIComponent(icons[name])}`;
70
- }
71
- return '';
72
- };
73
- function registerBundledIcons() {
74
- registerIconLibrary('bundled', {
75
- resolver: libraryResolver,
76
- });
77
- }
78
- export default registerBundledIcons;
@@ -1,127 +0,0 @@
1
- import SlAlert from '@shoelace-style/shoelace/dist/components/alert/alert.component.js';
2
- import SlAnimatedImage from '@shoelace-style/shoelace/dist/components/animated-image/animated-image.component.js';
3
- import SlAnimation from '@shoelace-style/shoelace/dist/components/animation/animation.component.js';
4
- import SlAvatar from '@shoelace-style/shoelace/dist/components/avatar/avatar.component.js';
5
- import SlBadge from '@shoelace-style/shoelace/dist/components/badge/badge.component.js';
6
- import SlBreadcrumb from '@shoelace-style/shoelace/dist/components/breadcrumb/breadcrumb.component.js';
7
- import SlBreadcrumbItem from '@shoelace-style/shoelace/dist/components/breadcrumb-item/breadcrumb-item.component.js';
8
- import SlButton from '@shoelace-style/shoelace/dist/components/button/button.component.js';
9
- import SlButtonGroup from '@shoelace-style/shoelace/dist/components/button-group/button-group.component.js';
10
- import SlCard from '@shoelace-style/shoelace/dist/components/card/card.component.js';
11
- import SlCarousel from '@shoelace-style/shoelace/dist/components/carousel/carousel.component.js';
12
- import SlCarouselItem from '@shoelace-style/shoelace/dist/components/carousel-item/carousel-item.component.js';
13
- import SlCheckbox from '@shoelace-style/shoelace/dist/components/checkbox/checkbox.component.js';
14
- import SlColorPicker from '@shoelace-style/shoelace/dist/components/color-picker/color-picker.component.js';
15
- import SlCopyButton from '@shoelace-style/shoelace/dist/components/copy-button/copy-button.component.js';
16
- import SlDetails from '@shoelace-style/shoelace/dist/components/details/details.component.js';
17
- import SlDialog from '@shoelace-style/shoelace/dist/components/dialog/dialog.component.js';
18
- import SlDivider from '@shoelace-style/shoelace/dist/components/divider/divider.component.js';
19
- import SlDrawer from '@shoelace-style/shoelace/dist/components/drawer/drawer.component.js';
20
- import SlDropdown from '@shoelace-style/shoelace/dist/components/dropdown/dropdown.component.js';
21
- import SlFormatBytes from '@shoelace-style/shoelace/dist/components/format-bytes/format-bytes.component.js';
22
- import SlFormatDate from '@shoelace-style/shoelace/dist/components/format-date/format-date.component.js';
23
- import SlFormatNumber from '@shoelace-style/shoelace/dist/components/format-number/format-number.component.js';
24
- import SlIcon from '@shoelace-style/shoelace/dist/components/icon/icon.component.js';
25
- import SlIconButton from '@shoelace-style/shoelace/dist/components/icon-button/icon-button.component.js';
26
- import SlImageComparer from '@shoelace-style/shoelace/dist/components/image-comparer/image-comparer.component.js';
27
- import SlInclude from '@shoelace-style/shoelace/dist/components/include/include.component.js';
28
- import SlInput from '@shoelace-style/shoelace/dist/components/input/input.component.js';
29
- import SlMenu from '@shoelace-style/shoelace/dist/components/menu/menu.component.js';
30
- import SlMenuItem from '@shoelace-style/shoelace/dist/components/menu-item/menu-item.component.js';
31
- import SlMenuLabel from '@shoelace-style/shoelace/dist/components/menu-label/menu-label.component.js';
32
- import SlMutationObserver from '@shoelace-style/shoelace/dist/components/mutation-observer/mutation-observer.component.js';
33
- import SlOption from '@shoelace-style/shoelace/dist/components/option/option.component.js';
34
- import SlPopup from '@shoelace-style/shoelace/dist/components/popup/popup.component.js';
35
- import SlProgressBar from '@shoelace-style/shoelace/dist/components/progress-bar/progress-bar.component.js';
36
- import SlProgressRing from '@shoelace-style/shoelace/dist/components/progress-ring/progress-ring.component.js';
37
- import SlQRCode from '@shoelace-style/shoelace/dist/components/qr-code/qr-code.component.js';
38
- import SlRadio from '@shoelace-style/shoelace/dist/components/radio/radio.component.js';
39
- import SlRadioButton from '@shoelace-style/shoelace/dist/components/radio-button/radio-button.component.js';
40
- import SlRadioGroup from '@shoelace-style/shoelace/dist/components/radio-group/radio-group.component.js';
41
- import SlRange from '@shoelace-style/shoelace/dist/components/range/range.component.js';
42
- import SlRating from '@shoelace-style/shoelace/dist/components/rating/rating.component.js';
43
- import SlRelativeTime from '@shoelace-style/shoelace/dist/components/relative-time/relative-time.component.js';
44
- import SlResizeObserver from '@shoelace-style/shoelace/dist/components/resize-observer/resize-observer.component.js';
45
- import SlSelect from '@shoelace-style/shoelace/dist/components/select/select.component.js';
46
- import SlSkeleton from '@shoelace-style/shoelace/dist/components/skeleton/skeleton.component.js';
47
- import SlSpinner from '@shoelace-style/shoelace/dist/components/spinner/spinner.component.js';
48
- import SlSplitPanel from '@shoelace-style/shoelace/dist/components/split-panel/split-panel.component.js';
49
- import SlSwitch from '@shoelace-style/shoelace/dist/components/switch/switch.component.js';
50
- import SlTab from '@shoelace-style/shoelace/dist/components/tab/tab.component.js';
51
- import SlTabGroup from '@shoelace-style/shoelace/dist/components/tab-group/tab-group.component.js';
52
- import SlTabPanel from '@shoelace-style/shoelace/dist/components/tab-panel/tab-panel.component.js';
53
- import SlTag from '@shoelace-style/shoelace/dist/components/tag/tag.component.js';
54
- import SlTextarea from '@shoelace-style/shoelace/dist/components/textarea/textarea.component.js';
55
- import SlTooltip from '@shoelace-style/shoelace/dist/components/tooltip/tooltip.component.js';
56
- import SlTree from '@shoelace-style/shoelace/dist/components/tree/tree.component.js';
57
- import SlTreeItem from '@shoelace-style/shoelace/dist/components/tree-item/tree-item.component.js';
58
- import SlVisuallyHidden from '@shoelace-style/shoelace/dist/components/visually-hidden/visually-hidden.component.js';
59
- import HotHeader from './header/header';
60
- import HotToolbar from './toolbar/toolbar';
61
- import HotTracking from './tracking/tracking';
62
- declare global {
63
- interface HTMLElementTagNameMap {
64
- 'hot-alert': SlAlert;
65
- 'hot-animated-image': SlAnimatedImage;
66
- 'hot-animation': SlAnimation;
67
- 'hot-avatar': SlAvatar;
68
- 'hot-badge': SlBadge;
69
- 'hot-breadcrumb': SlBreadcrumb;
70
- 'hot-breadcrumb-item': SlBreadcrumbItem;
71
- 'hot-button': SlButton;
72
- 'hot-button-group': SlButtonGroup;
73
- 'hot-card': SlCard;
74
- 'hot-carousel': SlCarousel;
75
- 'hot-carousel-item': SlCarouselItem;
76
- 'hot-checkbox': SlCheckbox;
77
- 'hot-color-picker': SlColorPicker;
78
- 'hot-copy-button': SlCopyButton;
79
- 'hot-details': SlDetails;
80
- 'hot-dialog': SlDialog;
81
- 'hot-divider': SlDivider;
82
- 'hot-drawer': SlDrawer;
83
- 'hot-dropdown': SlDropdown;
84
- 'hot-format-bytes': SlFormatBytes;
85
- 'hot-format-date': SlFormatDate;
86
- 'hot-format-number': SlFormatNumber;
87
- 'hot-icon': SlIcon;
88
- 'hot-icon-button': SlIconButton;
89
- 'hot-image-comparer': SlImageComparer;
90
- 'hot-include': SlInclude;
91
- 'hot-input': SlInput;
92
- 'hot-menu': SlMenu;
93
- 'hot-menu-item': SlMenuItem;
94
- 'hot-menu-label': SlMenuLabel;
95
- 'hot-mutation-observer': SlMutationObserver;
96
- 'hot-option': SlOption;
97
- 'hot-popup': SlPopup;
98
- 'hot-progress-bar': SlProgressBar;
99
- 'hot-progress-ring': SlProgressRing;
100
- 'hot-qrcode': SlQRCode;
101
- 'hot-radio': SlRadio;
102
- 'hot-radio-button': SlRadioButton;
103
- 'hot-radio-group': SlRadioGroup;
104
- 'hot-range': SlRange;
105
- 'hot-rating': SlRating;
106
- 'hot-relative-time': SlRelativeTime;
107
- 'hot-resize-observer': SlResizeObserver;
108
- 'hot-select': SlSelect;
109
- 'hot-skeleton': SlSkeleton;
110
- 'hot-spinner': SlSpinner;
111
- 'hot-split-panel': SlSplitPanel;
112
- 'hot-switch': SlSwitch;
113
- 'hot-tab': SlTab;
114
- 'hot-tab-group': SlTabGroup;
115
- 'hot-tab-panel': SlTabPanel;
116
- 'hot-tag': SlTag;
117
- 'hot-textarea': SlTextarea;
118
- 'hot-tooltip': SlTooltip;
119
- 'hot-tree': SlTree;
120
- 'hot-tree-item': SlTreeItem;
121
- 'hot-visually-hidden': SlVisuallyHidden;
122
- 'hot-header': HotHeader;
123
- 'hot-toolbar': HotToolbar;
124
- 'hot-tracking': HotTracking;
125
- }
126
- }
127
- export { SlAlert, SlAnimatedImage, SlAnimation, SlAvatar, SlBadge, SlBreadcrumb, SlBreadcrumbItem, SlButton, SlButtonGroup, SlCard, SlCarousel, SlCarouselItem, SlCheckbox, SlColorPicker, SlCopyButton, SlDetails, SlDialog, SlDivider, SlDrawer, SlDropdown, SlFormatBytes, SlFormatDate, SlFormatNumber, SlIcon, SlIconButton, SlImageComparer, SlInclude, SlInput, SlMenu, SlMenuItem, SlMenuLabel, SlMutationObserver, SlOption, SlPopup, SlProgressBar, SlProgressRing, SlQRCode, SlRadio, SlRadioButton, SlRadioGroup, SlRange, SlRating, SlRelativeTime, SlResizeObserver, SlSelect, SlSkeleton, SlSpinner, SlSplitPanel, SlSwitch, SlTab, SlTabGroup, SlTabPanel, SlTag, SlTextarea, SlTooltip, SlTree, SlTreeItem, SlVisuallyHidden, HotHeader, HotToolbar, HotTracking, };
@@ -1,127 +0,0 @@
1
- // Index to import all components together
2
- // import '@hotosm/ui/components';
3
- // Default Shoelace exports
4
- import SlAlert from '@shoelace-style/shoelace/dist/components/alert/alert.component.js';
5
- import SlAnimatedImage from '@shoelace-style/shoelace/dist/components/animated-image/animated-image.component.js';
6
- import SlAnimation from '@shoelace-style/shoelace/dist/components/animation/animation.component.js';
7
- import SlAvatar from '@shoelace-style/shoelace/dist/components/avatar/avatar.component.js';
8
- import SlBadge from '@shoelace-style/shoelace/dist/components/badge/badge.component.js';
9
- import SlBreadcrumb from '@shoelace-style/shoelace/dist/components/breadcrumb/breadcrumb.component.js';
10
- import SlBreadcrumbItem from '@shoelace-style/shoelace/dist/components/breadcrumb-item/breadcrumb-item.component.js';
11
- import SlButton from '@shoelace-style/shoelace/dist/components/button/button.component.js';
12
- import SlButtonGroup from '@shoelace-style/shoelace/dist/components/button-group/button-group.component.js';
13
- import SlCard from '@shoelace-style/shoelace/dist/components/card/card.component.js';
14
- import SlCarousel from '@shoelace-style/shoelace/dist/components/carousel/carousel.component.js';
15
- import SlCarouselItem from '@shoelace-style/shoelace/dist/components/carousel-item/carousel-item.component.js';
16
- import SlCheckbox from '@shoelace-style/shoelace/dist/components/checkbox/checkbox.component.js';
17
- import SlColorPicker from '@shoelace-style/shoelace/dist/components/color-picker/color-picker.component.js';
18
- import SlCopyButton from '@shoelace-style/shoelace/dist/components/copy-button/copy-button.component.js';
19
- import SlDetails from '@shoelace-style/shoelace/dist/components/details/details.component.js';
20
- import SlDialog from '@shoelace-style/shoelace/dist/components/dialog/dialog.component.js';
21
- import SlDivider from '@shoelace-style/shoelace/dist/components/divider/divider.component.js';
22
- import SlDrawer from '@shoelace-style/shoelace/dist/components/drawer/drawer.component.js';
23
- import SlDropdown from '@shoelace-style/shoelace/dist/components/dropdown/dropdown.component.js';
24
- import SlFormatBytes from '@shoelace-style/shoelace/dist/components/format-bytes/format-bytes.component.js';
25
- import SlFormatDate from '@shoelace-style/shoelace/dist/components/format-date/format-date.component.js';
26
- import SlFormatNumber from '@shoelace-style/shoelace/dist/components/format-number/format-number.component.js';
27
- import SlIcon from '@shoelace-style/shoelace/dist/components/icon/icon.component.js';
28
- import SlIconButton from '@shoelace-style/shoelace/dist/components/icon-button/icon-button.component.js';
29
- import SlImageComparer from '@shoelace-style/shoelace/dist/components/image-comparer/image-comparer.component.js';
30
- import SlInclude from '@shoelace-style/shoelace/dist/components/include/include.component.js';
31
- import SlInput from '@shoelace-style/shoelace/dist/components/input/input.component.js';
32
- import SlMenu from '@shoelace-style/shoelace/dist/components/menu/menu.component.js';
33
- import SlMenuItem from '@shoelace-style/shoelace/dist/components/menu-item/menu-item.component.js';
34
- import SlMenuLabel from '@shoelace-style/shoelace/dist/components/menu-label/menu-label.component.js';
35
- import SlMutationObserver from '@shoelace-style/shoelace/dist/components/mutation-observer/mutation-observer.component.js';
36
- import SlOption from '@shoelace-style/shoelace/dist/components/option/option.component.js';
37
- import SlPopup from '@shoelace-style/shoelace/dist/components/popup/popup.component.js';
38
- import SlProgressBar from '@shoelace-style/shoelace/dist/components/progress-bar/progress-bar.component.js';
39
- import SlProgressRing from '@shoelace-style/shoelace/dist/components/progress-ring/progress-ring.component.js';
40
- import SlQRCode from '@shoelace-style/shoelace/dist/components/qr-code/qr-code.component.js';
41
- import SlRadio from '@shoelace-style/shoelace/dist/components/radio/radio.component.js';
42
- import SlRadioButton from '@shoelace-style/shoelace/dist/components/radio-button/radio-button.component.js';
43
- import SlRadioGroup from '@shoelace-style/shoelace/dist/components/radio-group/radio-group.component.js';
44
- import SlRange from '@shoelace-style/shoelace/dist/components/range/range.component.js';
45
- import SlRating from '@shoelace-style/shoelace/dist/components/rating/rating.component.js';
46
- import SlRelativeTime from '@shoelace-style/shoelace/dist/components/relative-time/relative-time.component.js';
47
- import SlResizeObserver from '@shoelace-style/shoelace/dist/components/resize-observer/resize-observer.component.js';
48
- import SlSelect from '@shoelace-style/shoelace/dist/components/select/select.component.js';
49
- import SlSkeleton from '@shoelace-style/shoelace/dist/components/skeleton/skeleton.component.js';
50
- import SlSpinner from '@shoelace-style/shoelace/dist/components/spinner/spinner.component.js';
51
- import SlSplitPanel from '@shoelace-style/shoelace/dist/components/split-panel/split-panel.component.js';
52
- import SlSwitch from '@shoelace-style/shoelace/dist/components/switch/switch.component.js';
53
- import SlTab from '@shoelace-style/shoelace/dist/components/tab/tab.component.js';
54
- import SlTabGroup from '@shoelace-style/shoelace/dist/components/tab-group/tab-group.component.js';
55
- import SlTabPanel from '@shoelace-style/shoelace/dist/components/tab-panel/tab-panel.component.js';
56
- import SlTag from '@shoelace-style/shoelace/dist/components/tag/tag.component.js';
57
- import SlTextarea from '@shoelace-style/shoelace/dist/components/textarea/textarea.component.js';
58
- import SlTooltip from '@shoelace-style/shoelace/dist/components/tooltip/tooltip.component.js';
59
- import SlTree from '@shoelace-style/shoelace/dist/components/tree/tree.component.js';
60
- import SlTreeItem from '@shoelace-style/shoelace/dist/components/tree-item/tree-item.component.js';
61
- import SlVisuallyHidden from '@shoelace-style/shoelace/dist/components/visually-hidden/visually-hidden.component.js';
62
- // Custom composite components
63
- import HotHeader from './header/header';
64
- import HotToolbar from './toolbar/toolbar';
65
- import HotTracking from './tracking/tracking';
66
- // Define web component names for Shoelace components
67
- SlAlert.define('hot-alert');
68
- SlAnimatedImage.define('hot-animated-image');
69
- SlAnimation.define('hot-animation');
70
- SlAvatar.define('hot-avatar');
71
- SlBadge.define('hot-badge');
72
- SlBreadcrumb.define('hot-breadcrumb');
73
- SlBreadcrumbItem.define('hot-breadcrumb-item');
74
- SlButton.define('hot-button');
75
- SlButtonGroup.define('hot-button-group');
76
- SlCard.define('hot-card');
77
- SlCarousel.define('hot-carousel');
78
- SlCarouselItem.define('hot-carousel-item');
79
- SlCheckbox.define('hot-checkbox');
80
- SlColorPicker.define('hot-color-picker');
81
- SlCopyButton.define('hot-copy-button');
82
- SlDetails.define('hot-details');
83
- SlDialog.define('hot-dialog');
84
- SlDivider.define('hot-divider');
85
- SlDrawer.define('hot-drawer');
86
- SlDropdown.define('hot-dropdown');
87
- SlFormatBytes.define('hot-format-bytes');
88
- SlFormatDate.define('hot-format-date');
89
- SlFormatNumber.define('hot-format-number');
90
- SlIcon.define('hot-icon');
91
- SlIconButton.define('hot-icon-button');
92
- SlImageComparer.define('hot-image-comparer');
93
- SlInclude.define('hot-include');
94
- SlInput.define('hot-input');
95
- SlMenu.define('hot-menu');
96
- SlMenuItem.define('hot-menu-item');
97
- SlMenuLabel.define('hot-menu-label');
98
- SlMutationObserver.define('hot-mutation-observer');
99
- SlOption.define('hot-option');
100
- SlPopup.define('hot-popup');
101
- SlProgressBar.define('hot-progress-bar');
102
- SlProgressRing.define('hot-progress-ring');
103
- SlQRCode.define('hot-qr-code');
104
- SlRadio.define('hot-radio');
105
- SlRadioButton.define('hot-radio-button');
106
- SlRadioGroup.define('hot-radio-group');
107
- SlRange.define('hot-range');
108
- SlRating.define('hot-rating');
109
- SlRelativeTime.define('hot-relative-time');
110
- SlResizeObserver.define('hot-resize-observer');
111
- SlSelect.define('hot-select');
112
- SlSkeleton.define('hot-skeleton');
113
- SlSpinner.define('hot-spinner');
114
- SlSplitPanel.define('hot-split-panel');
115
- SlSwitch.define('hot-switch');
116
- SlTab.define('hot-tab');
117
- SlTabGroup.define('hot-tab-group');
118
- SlTabPanel.define('hot-tab-panel');
119
- SlTag.define('hot-tag');
120
- SlTextarea.define('hot-textarea');
121
- SlTooltip.define('hot-tooltip');
122
- SlTree.define('hot-tree');
123
- SlTreeItem.define('hot-tree-item');
124
- SlVisuallyHidden.define('hot-visually-hidden');
125
- export { SlAlert, SlAnimatedImage, SlAnimation, SlAvatar, SlBadge, SlBreadcrumb, SlBreadcrumbItem, SlButton, SlButtonGroup, SlCard, SlCarousel, SlCarouselItem, SlCheckbox, SlColorPicker, SlCopyButton, SlDetails, SlDialog, SlDivider, SlDrawer, SlDropdown, SlFormatBytes, SlFormatDate, SlFormatNumber, SlIcon, SlIconButton, SlImageComparer, SlInclude, SlInput, SlMenu, SlMenuItem, SlMenuLabel, SlMutationObserver, SlOption, SlPopup, SlProgressBar, SlProgressRing, SlQRCode, SlRadio, SlRadioButton, SlRadioGroup, SlRange, SlRating, SlRelativeTime, SlResizeObserver, SlSelect, SlSkeleton, SlSpinner, SlSplitPanel, SlSwitch, SlTab, SlTabGroup, SlTabPanel, SlTag, SlTextarea, SlTooltip, SlTree, SlTreeItem, SlVisuallyHidden,
126
- // Custom composite components
127
- HotHeader, HotToolbar, HotTracking, };
@@ -1,24 +0,0 @@
1
- import "../../theme/sl-custom.css";
2
- import '@shoelace-style/shoelace/dist/components/button/button.js';
3
- import '@shoelace-style/shoelace/dist/components/button-group/button-group.js';
4
- import '@shoelace-style/shoelace/dist/components/icon/icon.js';
5
- import '@shoelace-style/shoelace/dist/components/tooltip/tooltip.js';
6
- import { LitElement } from "lit";
7
- export declare class Toolbar extends LitElement {
8
- name: string;
9
- /** Change the position of the tooltips relative to buttons. */
10
- tooltipPosition: string;
11
- static styles: import("lit").CSSResult[];
12
- protected render(): import("lit").TemplateResult<1>;
13
- private renderButtonGroup;
14
- private renderButton;
15
- private readonly undo;
16
- private readonly redo;
17
- private readonly bold;
18
- private readonly italic;
19
- private readonly underline;
20
- private readonly alignLeft;
21
- private readonly alignCenter;
22
- private readonly alignRight;
23
- }
24
- export default Toolbar;