@hotosm/ui 0.2.0-b5 → 0.3.0-b2

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 (95) hide show
  1. package/README.md +25 -17
  2. package/dist/chunks/chunk.3FANZE43.js +1 -0
  3. package/dist/chunks/chunk.7KXDULC3.js +86 -0
  4. package/dist/chunks/chunk.AFGPUO4H.js +1 -0
  5. package/dist/chunks/chunk.B3MIQKX3.js +66 -0
  6. package/dist/chunks/chunk.FWYUHKRF.js +1 -0
  7. package/dist/chunks/chunk.GVYEHPTU.js +17 -0
  8. package/dist/chunks/chunk.GY32O3WU.js +26 -0
  9. package/dist/chunks/chunk.JK2P4SXH.js +1 -0
  10. package/dist/chunks/chunk.KGPID6RT.js +1 -0
  11. package/dist/chunks/chunk.KTVXG6ZT.js +6 -0
  12. package/dist/chunks/chunk.N5M5RY5M.js +1 -0
  13. package/dist/chunks/chunk.NZIJQUIE.js +1 -0
  14. package/dist/chunks/chunk.PUMXQ24J.js +4 -0
  15. package/dist/chunks/chunk.Q5SXKMUN.js +18 -0
  16. package/dist/chunks/chunk.R73PKLI4.js +6 -0
  17. package/{components/icons.ts → dist/chunks/chunk.WPXUR5EI.js} +12 -47
  18. package/dist/components/consent/consent.component.d.ts +21 -0
  19. package/dist/components/consent/consent.component.js +1 -0
  20. package/dist/components/consent/consent.d.ts +8 -0
  21. package/dist/components/consent/consent.js +1 -0
  22. package/dist/components/consent/consent.styles.d.ts +2 -0
  23. package/dist/components/consent/consent.styles.js +1 -0
  24. package/dist/components/header/header.component.d.ts +33 -0
  25. package/dist/components/header/header.component.js +1 -0
  26. package/dist/components/header/header.d.ts +7 -27
  27. package/dist/components/header/header.js +1 -0
  28. package/dist/components/header/header.styles.d.ts +2 -2
  29. package/dist/components/header/header.styles.js +1 -0
  30. package/dist/components/icons.js +1 -0
  31. package/dist/components/logo/logo.component.d.ts +10 -0
  32. package/dist/components/logo/logo.component.js +1 -0
  33. package/dist/components/logo/logo.d.ts +7 -9
  34. package/dist/components/logo/logo.js +1 -0
  35. package/dist/components/logo/logo.styles.d.ts +1 -1
  36. package/dist/components/logo/logo.styles.js +1 -0
  37. package/dist/components/toolbar/toolbar.component.d.ts +24 -0
  38. package/dist/components/toolbar/toolbar.component.js +1 -0
  39. package/dist/components/toolbar/toolbar.d.ts +7 -19
  40. package/dist/components/toolbar/toolbar.js +1 -0
  41. package/dist/components/toolbar/toolbar.styles.d.ts +1 -1
  42. package/dist/components/toolbar/toolbar.styles.js +1 -0
  43. package/dist/components/tracking/tracking.component.d.ts +19 -0
  44. package/dist/components/tracking/tracking.component.js +1 -0
  45. package/dist/components/tracking/tracking.d.ts +5 -20
  46. package/dist/components/tracking/tracking.js +1 -0
  47. package/{components/index.ts → dist/hotosm-ui.d.ts} +6 -146
  48. package/dist/hotosm-ui.js +1 -18450
  49. package/dist/react/consent/index.d.ts +3 -0
  50. package/dist/react/consent/index.js +1 -0
  51. package/dist/react/header/index.d.ts +3 -0
  52. package/dist/react/header/index.js +1 -0
  53. package/dist/{components/react → react}/index.d.ts +5 -5
  54. package/dist/react/index.js +1 -0
  55. package/dist/react/logo/index.d.ts +3 -0
  56. package/dist/react/logo/index.js +1 -0
  57. package/dist/react/toolbar/index.d.ts +3 -0
  58. package/dist/react/toolbar/index.js +1 -0
  59. package/dist/react/tracking/index.d.ts +3 -0
  60. package/dist/react/tracking/index.js +1 -0
  61. package/dist/style.css +2 -1
  62. package/{theme → dist/themes}/hot-sl.css +68 -82
  63. package/dist/themes/hot.css +235 -0
  64. package/package.json +36 -58
  65. package/components/header/header.styles.ts +0 -103
  66. package/components/header/header.ts +0 -160
  67. package/components/logo/logo.styles.ts +0 -8
  68. package/components/logo/logo.ts +0 -37
  69. package/components/react/Header.ts +0 -16
  70. package/components/react/Logo.ts +0 -15
  71. package/components/react/Toolbar.ts +0 -24
  72. package/components/react/Tracking.ts +0 -17
  73. package/components/react/index.ts +0 -63
  74. package/components/toolbar/toolbar.styles.ts +0 -6
  75. package/components/toolbar/toolbar.ts +0 -171
  76. package/components/tracking/tracking.styles.ts +0 -23
  77. package/components/tracking/tracking.ts +0 -177
  78. package/dist/components/index.d.ts +0 -130
  79. package/dist/components/react/Header.d.ts +0 -2
  80. package/dist/components/react/Logo.d.ts +0 -2
  81. package/dist/components/react/Toolbar.d.ts +0 -2
  82. package/dist/components/react/Tracking.d.ts +0 -2
  83. package/dist/components/tracking/tracking.styles.d.ts +0 -2
  84. package/i18n/en.xliff +0 -24
  85. package/theme/hot.css +0 -192
  86. package/theme/icons/apple-touch-icon-180x180.png +0 -0
  87. package/theme/icons/favicon.ico +0 -0
  88. package/theme/icons/favicon.svg +0 -1
  89. package/theme/icons/maskable-icon-512x512.png +0 -0
  90. package/theme/icons/pwa-192x192.png +0 -0
  91. package/theme/icons/pwa-512x512.png +0 -0
  92. package/theme/icons/pwa-64x64.png +0 -0
  93. /package/{theme → dist/assets}/logo/hot-logo-icon.svg +0 -0
  94. /package/{theme → dist/assets}/logo/hot-logo-png.png +0 -0
  95. /package/{theme → dist/assets}/logo/hot-logo-text.svg +0 -0
@@ -1,171 +0,0 @@
1
- import "../../theme/hot-sl.css";
2
-
3
- import "@shoelace-style/shoelace/dist/components/button/button.js";
4
- import "@shoelace-style/shoelace/dist/components/button-group/button-group.js";
5
- import "@shoelace-style/shoelace/dist/components/icon/icon.js";
6
- import "@shoelace-style/shoelace/dist/components/tooltip/tooltip.js";
7
-
8
- import { LitElement, html } from "lit";
9
- import { property } from "lit/decorators.js";
10
- import styles from './toolbar.styles.js';
11
- import type { CSSResultGroup } from 'lit';
12
-
13
- import registerBundledIcons from "../../components/icons";
14
-
15
- registerBundledIcons();
16
-
17
- export class Toolbar extends LitElement {
18
-
19
- static styles: CSSResultGroup = [styles];
20
-
21
- name = "hot-toolbar";
22
-
23
- /** Change the position of the tooltips relative to buttons. */
24
- @property({ type: String, attribute: "tooltip-position" })
25
- accessor tooltipPosition =
26
- "top";
27
-
28
- protected render() {
29
- return html`
30
- <div class="toolbar">
31
- ${this.renderButtonGroup("History", [
32
- {
33
- content: "Undo",
34
- icon: "arrow-counterclockwise",
35
- label: "Undo",
36
- action: this.undo,
37
- },
38
- {
39
- content: "Redo",
40
- icon: "arrow-clockwise",
41
- label: "Redo",
42
- action: this.redo,
43
- },
44
- ])}
45
- ${this.renderButtonGroup("Formatting", [
46
- {
47
- content: "Bold",
48
- icon: "type-bold",
49
- label: "Bold",
50
- action: this.bold,
51
- },
52
- {
53
- content: "Italic",
54
- icon: "type-italic",
55
- label: "Italic",
56
- action: this.italic,
57
- },
58
- {
59
- content: "Underline",
60
- icon: "type-underline",
61
- label: "Underline",
62
- action: this.underline,
63
- },
64
- ])}
65
- ${this.renderButtonGroup("Alignment", [
66
- {
67
- content: "Align Left",
68
- icon: "justify-left",
69
- label: "Align Left",
70
- action: this.alignLeft,
71
- },
72
- {
73
- content: "Align Center",
74
- icon: "justify",
75
- label: "Align Center",
76
- action: this.alignCenter,
77
- },
78
- {
79
- content: "Align Right",
80
- icon: "justify-right",
81
- label: "Align Right",
82
- action: this.alignRight,
83
- },
84
- ])}
85
- </div>
86
- `;
87
- }
88
-
89
- private renderButtonGroup(
90
- label: string,
91
- buttons: Array<{
92
- content: string;
93
- icon: string;
94
- label: string;
95
- action?: (e: MouseEvent) => void;
96
- }>
97
- ) {
98
- return html`
99
- <sl-button-group label=${label}>
100
- ${buttons.map((button) => this.renderButton(button))}
101
- </sl-button-group>
102
- `;
103
- }
104
-
105
- private renderButton({
106
- content,
107
- icon,
108
- label,
109
- action,
110
- }: {
111
- content: string;
112
- icon: string;
113
- label: string;
114
- action?: (e: MouseEvent) => void;
115
- }) {
116
- return html`
117
- <sl-tooltip content=${content} placement="${this.tooltipPosition}">
118
- <sl-button @click=${action ?? (() => {})}
119
- ><sl-icon library="bundled" name=${icon} label=${label}></sl-icon
120
- ></sl-button>
121
- </sl-tooltip>
122
- `;
123
- }
124
-
125
- private readonly undo = (e: MouseEvent) => {
126
- // As the original event is also named 'click'
127
- // stop propagation of the original event
128
- e.stopPropagation();
129
- this.dispatchEvent(new Event("undo"));
130
- };
131
-
132
- private readonly redo = (e: MouseEvent) => {
133
- e.stopPropagation();
134
- this.dispatchEvent(new Event("redo"));
135
- };
136
-
137
- private readonly bold = (e: MouseEvent) => {
138
- e.stopPropagation();
139
- this.dispatchEvent(new Event("bold"));
140
- };
141
-
142
- private readonly italic = (e: MouseEvent) => {
143
- e.stopPropagation();
144
- this.dispatchEvent(new Event("italic"));
145
- };
146
-
147
- private readonly underline = (e: MouseEvent) => {
148
- e.stopPropagation();
149
- this.dispatchEvent(new Event("underline"));
150
- };
151
-
152
- private readonly alignLeft = (e: MouseEvent) => {
153
- e.stopPropagation();
154
- this.dispatchEvent(new Event("leftalign"));
155
- };
156
-
157
- private readonly alignCenter = (e: MouseEvent) => {
158
- e.stopPropagation();
159
- this.dispatchEvent(new Event("centeralign"));
160
- };
161
-
162
- private readonly alignRight = (e: MouseEvent) => {
163
- e.stopPropagation();
164
- this.dispatchEvent(new Event("rightalign"));
165
- };
166
- }
167
-
168
- export default Toolbar;
169
-
170
- // Define web component
171
- customElements.define("hot-toolbar", Toolbar);
@@ -1,23 +0,0 @@
1
- import { css } from 'lit';
2
-
3
- export default css`
4
- .tracking {
5
- position: absolute;
6
- bottom: 20px;
7
- left: 50%;
8
- transform: translateX(-50%);
9
- z-index: 1000;
10
- width: 80vw;
11
- text-align: center;
12
- }
13
-
14
- .tracking--header {
15
- font-weight: var(--sl-font-weight-bold);
16
- font-size: var(--sl-font-size-large);
17
- text-align: center;
18
- }
19
-
20
- .tracking--link {
21
- color: var(--sl-color-primary-700);
22
- }
23
- `
@@ -1,177 +0,0 @@
1
- import "../../theme/hot-sl.css";
2
-
3
- import "@shoelace-style/shoelace/dist/components/alert/alert.js";
4
-
5
- import { LitElement, html } from "lit";
6
- import { property, state } from "lit/decorators.js";
7
- import styles from './tracking.styles.js';
8
- import type { CSSResultGroup } from 'lit';
9
-
10
- import registerBundledIcons from "../../components/icons";
11
-
12
- registerBundledIcons();
13
-
14
- declare global {
15
- interface Window {
16
- _paq: any[];
17
- }
18
- }
19
-
20
- export class Tracking extends LitElement {
21
-
22
- static styles: CSSResultGroup = [styles];
23
-
24
- name = "hot-tracking";
25
-
26
- /** The Matomo site id for tracking. */
27
- @property({ type: String, attribute: "site-id" })
28
- accessor siteId: string = "";
29
-
30
- /** The domains to apply tracking. */
31
- @property({ type: String })
32
- accessor domain: string = "";
33
-
34
- /** Force display the banner. */
35
- @property({ type: Boolean })
36
- accessor force: boolean = false;
37
-
38
- @property({ type: Boolean })
39
- accessor isOpen: boolean = true;
40
-
41
- protected render() {
42
- return html`<sl-alert class="tracking" variant="danger" ?open=${this.isOpen}>
43
- <sl-icon
44
- id="hot-red-text"
45
- library="bundled"
46
- slot="icon"
47
- name="info-circle"
48
- ></sl-icon>
49
-
50
- <p id="tracking-header" class="tracking--header">About the information we collect</p>
51
-
52
- <p>
53
- We use cookies and similar technologies to recognize and analyze your
54
- visits, and measure traffic usage and activity. You can learn about how
55
- we use the data about your visit or information you provide reading our
56
- <a
57
- class="tracking--link"
58
- href="https://www.hotosm.org/privacy"
59
- target="_blank"
60
- rel="noopener noreferrer"
61
- >privacy policy</a
62
- >. By clicking "I Agree", you consent to the use of cookies.
63
- </p>
64
-
65
- <sl-button
66
- @click=${(e: MouseEvent) => {
67
- this._setAgree(e);
68
- }}
69
- >I Agree</sl-button
70
- >
71
- <sl-button
72
- @click=${(e: MouseEvent) => {
73
- this._setDisagree(e);
74
- }}
75
- >I Do Not Agree</sl-button
76
- >
77
- </sl-alert>`;
78
- }
79
-
80
- private _setAgree(_e: MouseEvent) {
81
- // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
82
- const _paq = (window._paq = window._paq || []);
83
- if (_paq.length === 0) return;
84
-
85
- _paq.push(["rememberConsentGiven"]);
86
- this.isOpen = false;
87
- localStorage.setItem(`${this.siteId}-matomo-agree`, "true");
88
- this.dispatchEvent(new Event("agree", { bubbles: true, composed: true }));
89
- }
90
-
91
- private _setDisagree(_e: MouseEvent) {
92
- // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
93
- const _paq = (window._paq = window._paq || []);
94
- if (_paq.length === 0) return;
95
-
96
- _paq.push(["forgetConsentGiven"]);
97
- this.isOpen = false;
98
- localStorage.setItem(`${this.siteId}-matomo-agree`, "false");
99
- this.dispatchEvent(
100
- new Event("disagree", { bubbles: true, composed: true })
101
- );
102
- }
103
-
104
- connectedCallback() {
105
- super.connectedCallback();
106
-
107
- // Close and halt execution if wrong domain
108
- if (!this.force && window.location.hostname !== this.domain) {
109
- console.warn(
110
- `Matomo init failed. ${window.location.hostname} does not match ${this.domain}.`
111
- );
112
- this.isOpen = false;
113
- return;
114
- }
115
-
116
- const matomoTrackingId = this.siteId;
117
-
118
- // Close and halt execution if siteId or domain not set
119
- if (
120
- !this.force &&
121
- (matomoTrackingId.length === 0 || this.domain.length === 0)
122
- ) {
123
- console.warn("Matomo init failed. No site id or domains provided.");
124
- this.isOpen = false;
125
- return;
126
- }
127
-
128
- // Close and halt execution if already disagreed
129
- const consent = localStorage.getItem(`${this.siteId}-matomo-agree`);
130
- if (consent === "false") {
131
- this.isOpen = false;
132
- return;
133
- }
134
-
135
- // Close prompt only if already agreed, continue
136
- if (consent === "true") {
137
- this.isOpen = false;
138
- }
139
-
140
- console.log(
141
- `Setting Matomo tracking for site=${matomoTrackingId} domain=${this.domain}`
142
- );
143
-
144
- // eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
145
- const _paq = (window._paq = window._paq || []);
146
-
147
- // tracker methods like "setCustomDimension" should be called before "trackPageView"
148
- _paq.push(["requireConsent"]);
149
- _paq.push(["setDomains", [this.domain]]);
150
- _paq.push(["trackPageView"]);
151
- _paq.push(["enableLinkTracking"]); // Tracks downloads
152
- _paq.push(["trackVisibleContentImpressions"]); // Tracks content
153
-
154
- (function () {
155
- const u = "//matomo.hotosm.org/";
156
- _paq.push(["setTrackerUrl", u + "matomo.php"]);
157
- _paq.push(["setSiteId", matomoTrackingId]);
158
-
159
- const d = document;
160
- const g = d.createElement("script");
161
- const s = d.getElementsByTagName("script")[0];
162
-
163
- if (s?.parentNode != null) {
164
- g.async = true;
165
- g.src = u + "matomo.js";
166
- s.parentNode.insertBefore(g, s);
167
- } else {
168
- console.warn("Script insertion failed. Parent node is null.");
169
- }
170
- })();
171
- }
172
- }
173
-
174
- export default Tracking;
175
-
176
- // Define web component
177
- customElements.define("hot-tracking", Tracking);
@@ -1,130 +0,0 @@
1
- import { setBasePath } from '@shoelace-style/shoelace/dist/utilities/base-path.js';
2
- import { default as SlAlert } from '@shoelace-style/shoelace/dist/components/alert/alert.component.js';
3
- import { default as SlAnimatedImage } from '@shoelace-style/shoelace/dist/components/animated-image/animated-image.component.js';
4
- import { default as SlAnimation } from '@shoelace-style/shoelace/dist/components/animation/animation.component.js';
5
- import { default as SlAvatar } from '@shoelace-style/shoelace/dist/components/avatar/avatar.component.js';
6
- import { default as SlBadge } from '@shoelace-style/shoelace/dist/components/badge/badge.component.js';
7
- import { default as SlBreadcrumb } from '@shoelace-style/shoelace/dist/components/breadcrumb/breadcrumb.component.js';
8
- import { default as SlBreadcrumbItem } from '@shoelace-style/shoelace/dist/components/breadcrumb-item/breadcrumb-item.component.js';
9
- import { default as SlButton } from '@shoelace-style/shoelace/dist/components/button/button.component.js';
10
- import { default as SlButtonGroup } from '@shoelace-style/shoelace/dist/components/button-group/button-group.component.js';
11
- import { default as SlCard } from '@shoelace-style/shoelace/dist/components/card/card.component.js';
12
- import { default as SlCarousel } from '@shoelace-style/shoelace/dist/components/carousel/carousel.component.js';
13
- import { default as SlCarouselItem } from '@shoelace-style/shoelace/dist/components/carousel-item/carousel-item.component.js';
14
- import { default as SlCheckbox } from '@shoelace-style/shoelace/dist/components/checkbox/checkbox.component.js';
15
- import { default as SlColorPicker } from '@shoelace-style/shoelace/dist/components/color-picker/color-picker.component.js';
16
- import { default as SlCopyButton } from '@shoelace-style/shoelace/dist/components/copy-button/copy-button.component.js';
17
- import { default as SlDetails } from '@shoelace-style/shoelace/dist/components/details/details.component.js';
18
- import { default as SlDialog } from '@shoelace-style/shoelace/dist/components/dialog/dialog.component.js';
19
- import { default as SlDivider } from '@shoelace-style/shoelace/dist/components/divider/divider.component.js';
20
- import { default as SlDrawer } from '@shoelace-style/shoelace/dist/components/drawer/drawer.component.js';
21
- import { default as SlDropdown } from '@shoelace-style/shoelace/dist/components/dropdown/dropdown.component.js';
22
- import { default as SlFormatBytes } from '@shoelace-style/shoelace/dist/components/format-bytes/format-bytes.component.js';
23
- import { default as SlFormatDate } from '@shoelace-style/shoelace/dist/components/format-date/format-date.component.js';
24
- import { default as SlFormatNumber } from '@shoelace-style/shoelace/dist/components/format-number/format-number.component.js';
25
- import { default as SlIcon } from '@shoelace-style/shoelace/dist/components/icon/icon.component.js';
26
- import { default as SlIconButton } from '@shoelace-style/shoelace/dist/components/icon-button/icon-button.component.js';
27
- import { default as SlImageComparer } from '@shoelace-style/shoelace/dist/components/image-comparer/image-comparer.component.js';
28
- import { default as SlInclude } from '@shoelace-style/shoelace/dist/components/include/include.component.js';
29
- import { default as SlInput } from '@shoelace-style/shoelace/dist/components/input/input.component.js';
30
- import { default as SlMenu } from '@shoelace-style/shoelace/dist/components/menu/menu.component.js';
31
- import { default as SlMenuItem } from '@shoelace-style/shoelace/dist/components/menu-item/menu-item.component.js';
32
- import { default as SlMenuLabel } from '@shoelace-style/shoelace/dist/components/menu-label/menu-label.component.js';
33
- import { default as SlMutationObserver } from '@shoelace-style/shoelace/dist/components/mutation-observer/mutation-observer.component.js';
34
- import { default as SlOption } from '@shoelace-style/shoelace/dist/components/option/option.component.js';
35
- import { default as SlPopup } from '@shoelace-style/shoelace/dist/components/popup/popup.component.js';
36
- import { default as SlProgressBar } from '@shoelace-style/shoelace/dist/components/progress-bar/progress-bar.component.js';
37
- import { default as SlProgressRing } from '@shoelace-style/shoelace/dist/components/progress-ring/progress-ring.component.js';
38
- import { default as SlQRCode } from '@shoelace-style/shoelace/dist/components/qr-code/qr-code.component.js';
39
- import { default as SlRadio } from '@shoelace-style/shoelace/dist/components/radio/radio.component.js';
40
- import { default as SlRadioButton } from '@shoelace-style/shoelace/dist/components/radio-button/radio-button.component.js';
41
- import { default as SlRadioGroup } from '@shoelace-style/shoelace/dist/components/radio-group/radio-group.component.js';
42
- import { default as SlRange } from '@shoelace-style/shoelace/dist/components/range/range.component.js';
43
- import { default as SlRating } from '@shoelace-style/shoelace/dist/components/rating/rating.component.js';
44
- import { default as SlRelativeTime } from '@shoelace-style/shoelace/dist/components/relative-time/relative-time.component.js';
45
- import { default as SlResizeObserver } from '@shoelace-style/shoelace/dist/components/resize-observer/resize-observer.component.js';
46
- import { default as SlSelect } from '@shoelace-style/shoelace/dist/components/select/select.component.js';
47
- import { default as SlSkeleton } from '@shoelace-style/shoelace/dist/components/skeleton/skeleton.component.js';
48
- import { default as SlSpinner } from '@shoelace-style/shoelace/dist/components/spinner/spinner.component.js';
49
- import { default as SlSplitPanel } from '@shoelace-style/shoelace/dist/components/split-panel/split-panel.component.js';
50
- import { default as SlSwitch } from '@shoelace-style/shoelace/dist/components/switch/switch.component.js';
51
- import { default as SlTab } from '@shoelace-style/shoelace/dist/components/tab/tab.component.js';
52
- import { default as SlTabGroup } from '@shoelace-style/shoelace/dist/components/tab-group/tab-group.component.js';
53
- import { default as SlTabPanel } from '@shoelace-style/shoelace/dist/components/tab-panel/tab-panel.component.js';
54
- import { default as SlTag } from '@shoelace-style/shoelace/dist/components/tag/tag.component.js';
55
- import { default as SlTextarea } from '@shoelace-style/shoelace/dist/components/textarea/textarea.component.js';
56
- import { default as SlTooltip } from '@shoelace-style/shoelace/dist/components/tooltip/tooltip.component.js';
57
- import { default as SlTree } from '@shoelace-style/shoelace/dist/components/tree/tree.component.js';
58
- import { default as SlTreeItem } from '@shoelace-style/shoelace/dist/components/tree-item/tree-item.component.js';
59
- import { default as SlVisuallyHidden } from '@shoelace-style/shoelace/dist/components/visually-hidden/visually-hidden.component.js';
60
- import { default as HotHeader } from './header/header';
61
- import { default as HotLogo } from './logo/logo';
62
- import { default as HotToolbar } from './toolbar/toolbar';
63
- import { default as HotTracking } from './tracking/tracking';
64
-
65
- declare global {
66
- interface HTMLElementTagNameMap {
67
- 'hot-alert': SlAlert;
68
- 'hot-animated-image': SlAnimatedImage;
69
- 'hot-animation': SlAnimation;
70
- 'hot-avatar': SlAvatar;
71
- 'hot-badge': SlBadge;
72
- 'hot-breadcrumb': SlBreadcrumb;
73
- 'hot-breadcrumb-item': SlBreadcrumbItem;
74
- 'hot-button': SlButton;
75
- 'hot-button-group': SlButtonGroup;
76
- 'hot-card': SlCard;
77
- 'hot-carousel': SlCarousel;
78
- 'hot-carousel-item': SlCarouselItem;
79
- 'hot-checkbox': SlCheckbox;
80
- 'hot-color-picker': SlColorPicker;
81
- 'hot-copy-button': SlCopyButton;
82
- 'hot-details': SlDetails;
83
- 'hot-dialog': SlDialog;
84
- 'hot-divider': SlDivider;
85
- 'hot-drawer': SlDrawer;
86
- 'hot-dropdown': SlDropdown;
87
- 'hot-format-bytes': SlFormatBytes;
88
- 'hot-format-date': SlFormatDate;
89
- 'hot-format-number': SlFormatNumber;
90
- 'hot-icon': SlIcon;
91
- 'hot-icon-button': SlIconButton;
92
- 'hot-image-comparer': SlImageComparer;
93
- 'hot-include': SlInclude;
94
- 'hot-input': SlInput;
95
- 'hot-menu': SlMenu;
96
- 'hot-menu-item': SlMenuItem;
97
- 'hot-menu-label': SlMenuLabel;
98
- 'hot-mutation-observer': SlMutationObserver;
99
- 'hot-option': SlOption;
100
- 'hot-popup': SlPopup;
101
- 'hot-progress-bar': SlProgressBar;
102
- 'hot-progress-ring': SlProgressRing;
103
- 'hot-qrcode': SlQRCode;
104
- 'hot-radio': SlRadio;
105
- 'hot-radio-button': SlRadioButton;
106
- 'hot-radio-group': SlRadioGroup;
107
- 'hot-range': SlRange;
108
- 'hot-rating': SlRating;
109
- 'hot-relative-time': SlRelativeTime;
110
- 'hot-resize-observer': SlResizeObserver;
111
- 'hot-select': SlSelect;
112
- 'hot-skeleton': SlSkeleton;
113
- 'hot-spinner': SlSpinner;
114
- 'hot-split-panel': SlSplitPanel;
115
- 'hot-switch': SlSwitch;
116
- 'hot-tab': SlTab;
117
- 'hot-tab-group': SlTabGroup;
118
- 'hot-tab-panel': SlTabPanel;
119
- 'hot-tag': SlTag;
120
- 'hot-textarea': SlTextarea;
121
- 'hot-tooltip': SlTooltip;
122
- 'hot-tree': SlTree;
123
- 'hot-tree-item': SlTreeItem;
124
- 'hot-visually-hidden': SlVisuallyHidden;
125
- 'hot-header': HotHeader;
126
- 'hot-toolbar': HotToolbar;
127
- 'hot-tracking': HotTracking;
128
- }
129
- }
130
- export { setBasePath, SlAlert as Alert, SlAnimatedImage as AnimatedImage, SlAnimation as Animation, SlAvatar as Avatar, SlBadge as Badge, SlBreadcrumb as Breadcrumb, SlBreadcrumbItem as BreadcrumbItem, SlButton as Button, SlButtonGroup as ButtonGroup, SlCard as Card, SlCarousel as Carousel, SlCarouselItem as CarouselItem, SlCheckbox as Checkbox, SlColorPicker as ColorPicker, SlCopyButton as CopyButton, SlDetails as Details, SlDialog as Dialog, SlDivider as Divider, SlDrawer as Drawer, SlDropdown as Dropdown, SlFormatBytes as FormatBytes, SlFormatDate as FormatDate, SlFormatNumber as FormatNumber, SlIcon as Icon, SlIconButton as IconButton, SlImageComparer as ImageComparer, SlInclude as Include, SlInput as Input, SlMenu as Menu, SlMenuItem as MenuItem, SlMenuLabel as MenuLabel, SlMutationObserver as MutationObserver, SlOption as Option, SlPopup as Popup, SlProgressBar as ProgressBar, SlProgressRing as ProgressRing, SlQRCode as QRCode, SlRadio as Radio, SlRadioButton as RadioButton, SlRadioGroup as RadioGroup, SlRange as Range, SlRating as Rating, SlRelativeTime as RelativeTime, SlResizeObserver as ResizeObserver, SlSelect as Select, SlSkeleton as Skeleton, SlSpinner as Spinner, SlSplitPanel as SplitPanel, SlSwitch as Switch, SlTab as Tab, SlTabGroup as TabGroup, SlTabPanel as TabPanel, SlTag as Tag, SlTextarea as Textarea, SlTooltip as Tooltip, SlTree as Tree, SlTreeItem as TreeItem, SlVisuallyHidden as VisuallyHidden, HotHeader as Header, HotLogo as Logo, HotToolbar as Toolbar, HotTracking as Tracking, };
@@ -1,2 +0,0 @@
1
- declare const reactWrapper: React.ForwardRefExoticComponent<any>;
2
- export default reactWrapper;
@@ -1,2 +0,0 @@
1
- declare const reactWrapper: React.ForwardRefExoticComponent<any>;
2
- export default reactWrapper;
@@ -1,2 +0,0 @@
1
- declare const reactWrapper: React.ForwardRefExoticComponent<any>;
2
- export default reactWrapper;
@@ -1,2 +0,0 @@
1
- declare const reactWrapper: React.ForwardRefExoticComponent<any>;
2
- export default reactWrapper;
@@ -1,2 +0,0 @@
1
- declare const _default: import('lit').CSSResult;
2
- export default _default;
package/i18n/en.xliff DELETED
@@ -1,24 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
- <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
3
- <file source-language="en" target-language="fr" datatype="plaintext" original="ng2.template">
4
- <body>
5
- <trans-unit id="common.welcome">
6
- <source>Welcome!</source>
7
- <target>Bienvenue!</target>
8
- <context-group purpose="location">
9
- <context context-type="sourcefile">src/app/app.component.html</context>
10
- <context context-type="linenumber">16</context>
11
- </context-group>
12
- </trans-unit>
13
- <trans-unit id="common.app.title">
14
- <source>Diary</source>
15
- <target>Agenda</target>
16
- <context-group purpose="location">
17
- <context context-type="sourcefile">src/app/app.component.html</context>
18
- <context context-type="linenumber">4</context>
19
- </context-group>
20
- <note priority="1" from="description">App title</note>
21
- </trans-unit>
22
- </body>
23
- </file>
24
- </xliff>