glasslikeui 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +2 -0
- package/dist/components/interactive/TabView.svelte +107 -18
- package/dist/components/menu/Menu.svelte +206 -0
- package/dist/components/menu/Menu.svelte.d.ts +10 -0
- package/dist/components/menu/MenuItem.svelte +114 -0
- package/dist/components/menu/MenuItem.svelte.d.ts +12 -0
- package/dist/components/menu/index.d.ts +6 -0
- package/dist/components/menu/index.js +6 -0
- package/dist/icons/index.js +4 -1
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { Snippet } from 'svelte';
|
|
3
|
+
import { onMount } from 'svelte';
|
|
3
4
|
import { Glass } from '../glass';
|
|
4
5
|
import { HStack } from '../layout';
|
|
5
6
|
|
|
@@ -33,6 +34,40 @@
|
|
|
33
34
|
activeTab = tabId;
|
|
34
35
|
onchange?.(tabId);
|
|
35
36
|
}
|
|
37
|
+
|
|
38
|
+
let wrapperEl = $state<HTMLDivElement | undefined>();
|
|
39
|
+
let buttonEls: Record<string, HTMLButtonElement | undefined> = $state({});
|
|
40
|
+
let indicatorLeft = $state(0);
|
|
41
|
+
let indicatorWidth = $state(0);
|
|
42
|
+
let indicatorReady = $state(false);
|
|
43
|
+
|
|
44
|
+
function measure() {
|
|
45
|
+
const wrapper = wrapperEl;
|
|
46
|
+
const btn = buttonEls[activeTab];
|
|
47
|
+
if (!wrapper || !btn) {
|
|
48
|
+
indicatorReady = false;
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
indicatorLeft = btn.offsetLeft;
|
|
52
|
+
indicatorWidth = btn.offsetWidth;
|
|
53
|
+
indicatorReady = true;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
$effect(() => {
|
|
57
|
+
// Re-measure whenever the active tab changes; RAF lets the DOM settle first.
|
|
58
|
+
void activeTab;
|
|
59
|
+
if (typeof requestAnimationFrame === 'undefined') return;
|
|
60
|
+
const id = requestAnimationFrame(measure);
|
|
61
|
+
return () => cancelAnimationFrame(id);
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
onMount(() => {
|
|
65
|
+
measure();
|
|
66
|
+
if (typeof ResizeObserver === 'undefined' || !wrapperEl) return;
|
|
67
|
+
const ro = new ResizeObserver(() => measure());
|
|
68
|
+
ro.observe(wrapperEl);
|
|
69
|
+
return () => ro.disconnect();
|
|
70
|
+
});
|
|
36
71
|
</script>
|
|
37
72
|
|
|
38
73
|
<div
|
|
@@ -53,20 +88,29 @@
|
|
|
53
88
|
padding="xs"
|
|
54
89
|
class={inline ? 'tab-bar-container-inline' : 'tab-bar-container'}
|
|
55
90
|
>
|
|
56
|
-
<
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
91
|
+
<div class="tab-bar-wrapper" bind:this={wrapperEl}>
|
|
92
|
+
<span
|
|
93
|
+
class="tab-indicator"
|
|
94
|
+
class:ready={indicatorReady}
|
|
95
|
+
style="transform: translateX({indicatorLeft}px); width: {indicatorWidth}px;"
|
|
96
|
+
aria-hidden="true"
|
|
97
|
+
></span>
|
|
98
|
+
<HStack spacing="xs" justify="center" class="tab-bar">
|
|
99
|
+
{#each tabs as tab}
|
|
100
|
+
<button
|
|
101
|
+
class="tab-item"
|
|
102
|
+
class:active={activeTab === tab.id}
|
|
103
|
+
onclick={() => selectTab(tab.id)}
|
|
104
|
+
bind:this={buttonEls[tab.id]}
|
|
105
|
+
>
|
|
106
|
+
{#if tab.icon}
|
|
107
|
+
<span class="tab-icon">{@render tab.icon()}</span>
|
|
108
|
+
{/if}
|
|
109
|
+
<span class="tab-label">{tab.label}</span>
|
|
110
|
+
</button>
|
|
111
|
+
{/each}
|
|
112
|
+
</HStack>
|
|
113
|
+
</div>
|
|
70
114
|
</Glass>
|
|
71
115
|
</div>
|
|
72
116
|
|
|
@@ -103,11 +147,41 @@
|
|
|
103
147
|
min-height: 0;
|
|
104
148
|
}
|
|
105
149
|
|
|
150
|
+
.tab-bar-wrapper {
|
|
151
|
+
position: relative;
|
|
152
|
+
display: block;
|
|
153
|
+
}
|
|
154
|
+
|
|
106
155
|
:global(.tab-bar) {
|
|
107
156
|
min-width: 0;
|
|
157
|
+
position: relative;
|
|
158
|
+
z-index: 1;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.tab-indicator {
|
|
162
|
+
position: absolute;
|
|
163
|
+
top: 0;
|
|
164
|
+
bottom: 0;
|
|
165
|
+
left: 0;
|
|
166
|
+
width: 0;
|
|
167
|
+
border-radius: var(--glass-radius-full);
|
|
168
|
+
background: var(--glass-active-bg);
|
|
169
|
+
pointer-events: none;
|
|
170
|
+
opacity: 0;
|
|
171
|
+
z-index: 0;
|
|
172
|
+
transition:
|
|
173
|
+
transform var(--transition-spring),
|
|
174
|
+
width var(--transition-spring),
|
|
175
|
+
opacity var(--transition-fast);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.tab-indicator.ready {
|
|
179
|
+
opacity: 1;
|
|
108
180
|
}
|
|
109
181
|
|
|
110
182
|
.tab-item {
|
|
183
|
+
position: relative;
|
|
184
|
+
z-index: 1;
|
|
111
185
|
display: flex;
|
|
112
186
|
flex-direction: column;
|
|
113
187
|
align-items: center;
|
|
@@ -120,17 +194,32 @@
|
|
|
120
194
|
font-size: 0.75rem;
|
|
121
195
|
font-weight: 500;
|
|
122
196
|
cursor: pointer;
|
|
123
|
-
transition:
|
|
197
|
+
transition: color var(--transition-fast);
|
|
124
198
|
}
|
|
125
199
|
|
|
126
|
-
.tab-item:hover {
|
|
200
|
+
.tab-item:not(.active):hover {
|
|
127
201
|
color: var(--color-text);
|
|
128
|
-
background: var(--glass-hover-subtle);
|
|
129
202
|
}
|
|
130
203
|
|
|
131
204
|
.tab-item.active {
|
|
132
205
|
color: var(--color-accent);
|
|
133
|
-
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.tab-icon,
|
|
209
|
+
.tab-label {
|
|
210
|
+
display: inline-block;
|
|
211
|
+
transform-origin: center;
|
|
212
|
+
transform: scale(1);
|
|
213
|
+
transition: transform var(--transition-spring);
|
|
214
|
+
will-change: transform;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.tab-item.active .tab-icon {
|
|
218
|
+
transform: scale(1.18);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.tab-item.active .tab-label {
|
|
222
|
+
transform: scale(1.06);
|
|
134
223
|
}
|
|
135
224
|
|
|
136
225
|
.tab-icon {
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
<script module>
|
|
2
|
+
let counter = 0;
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<script lang="ts">
|
|
6
|
+
import type { Snippet } from 'svelte';
|
|
7
|
+
import { tick } from 'svelte';
|
|
8
|
+
|
|
9
|
+
interface Props {
|
|
10
|
+
label: Snippet;
|
|
11
|
+
children: Snippet;
|
|
12
|
+
align?: 'start' | 'end';
|
|
13
|
+
class?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
let { label, children, align = 'start', class: className = '' }: Props = $props();
|
|
17
|
+
|
|
18
|
+
// Note: counter resets between SSR and client hydration; aria-controls mismatch
|
|
19
|
+
// is inert because the panel is not rendered on initial load (open defaults false).
|
|
20
|
+
const panelId = `glass-menu-${++counter}`;
|
|
21
|
+
const isBrowser = typeof window !== 'undefined';
|
|
22
|
+
|
|
23
|
+
let open = $state(false);
|
|
24
|
+
let triggerEl = $state<HTMLButtonElement>();
|
|
25
|
+
let panelEl = $state<HTMLDivElement>();
|
|
26
|
+
|
|
27
|
+
function menuItems(): HTMLElement[] {
|
|
28
|
+
if (!panelEl) return [];
|
|
29
|
+
return Array.from(panelEl.querySelectorAll<HTMLElement>('[role="menuitem"]'));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
async function openMenu() {
|
|
33
|
+
open = true;
|
|
34
|
+
await tick();
|
|
35
|
+
menuItems()[0]?.focus();
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function closeMenu(focusTrigger = false) {
|
|
39
|
+
open = false;
|
|
40
|
+
if (focusTrigger) triggerEl?.focus();
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function toggle() {
|
|
44
|
+
if (open) closeMenu();
|
|
45
|
+
else openMenu();
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function handlePanelKeydown(e: KeyboardEvent) {
|
|
49
|
+
const items = menuItems();
|
|
50
|
+
if (items.length === 0) return;
|
|
51
|
+
const current = items.indexOf(document.activeElement as HTMLElement);
|
|
52
|
+
|
|
53
|
+
if (e.key === 'Escape') {
|
|
54
|
+
e.preventDefault();
|
|
55
|
+
closeMenu(true);
|
|
56
|
+
} else if (e.key === 'ArrowDown') {
|
|
57
|
+
e.preventDefault();
|
|
58
|
+
items[(current + 1) % items.length]?.focus();
|
|
59
|
+
} else if (e.key === 'ArrowUp') {
|
|
60
|
+
e.preventDefault();
|
|
61
|
+
items[(current - 1 + items.length) % items.length]?.focus();
|
|
62
|
+
} else if (e.key === 'Home') {
|
|
63
|
+
e.preventDefault();
|
|
64
|
+
items[0]?.focus();
|
|
65
|
+
} else if (e.key === 'End') {
|
|
66
|
+
e.preventDefault();
|
|
67
|
+
items[items.length - 1]?.focus();
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function handlePanelClick(e: MouseEvent) {
|
|
72
|
+
const target = e.target as HTMLElement;
|
|
73
|
+
if (target.closest('[role="menuitem"]')) {
|
|
74
|
+
closeMenu();
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
$effect(() => {
|
|
79
|
+
if (!open || !isBrowser) return;
|
|
80
|
+
const panel = panelEl;
|
|
81
|
+
if (!panel) return;
|
|
82
|
+
|
|
83
|
+
function onPointerDown(e: PointerEvent) {
|
|
84
|
+
const target = e.target as Node;
|
|
85
|
+
if (triggerEl?.contains(target) || panel.contains(target)) return;
|
|
86
|
+
closeMenu();
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
panel.addEventListener('keydown', handlePanelKeydown);
|
|
90
|
+
panel.addEventListener('click', handlePanelClick);
|
|
91
|
+
document.addEventListener('pointerdown', onPointerDown, true);
|
|
92
|
+
|
|
93
|
+
return () => {
|
|
94
|
+
panel.removeEventListener('keydown', handlePanelKeydown);
|
|
95
|
+
panel.removeEventListener('click', handlePanelClick);
|
|
96
|
+
document.removeEventListener('pointerdown', onPointerDown, true);
|
|
97
|
+
};
|
|
98
|
+
});
|
|
99
|
+
</script>
|
|
100
|
+
|
|
101
|
+
<div class="glass-menu">
|
|
102
|
+
<button
|
|
103
|
+
bind:this={triggerEl}
|
|
104
|
+
type="button"
|
|
105
|
+
class="glass-menu-trigger {className}"
|
|
106
|
+
aria-haspopup="menu"
|
|
107
|
+
aria-expanded={open}
|
|
108
|
+
aria-controls={panelId}
|
|
109
|
+
onclick={toggle}
|
|
110
|
+
>
|
|
111
|
+
{@render label()}
|
|
112
|
+
</button>
|
|
113
|
+
|
|
114
|
+
{#if open}
|
|
115
|
+
<div
|
|
116
|
+
bind:this={panelEl}
|
|
117
|
+
id={panelId}
|
|
118
|
+
role="menu"
|
|
119
|
+
class="glass-menu-panel"
|
|
120
|
+
class:align-end={align === 'end'}
|
|
121
|
+
>
|
|
122
|
+
{@render children()}
|
|
123
|
+
</div>
|
|
124
|
+
{/if}
|
|
125
|
+
</div>
|
|
126
|
+
|
|
127
|
+
<style>
|
|
128
|
+
.glass-menu {
|
|
129
|
+
position: relative;
|
|
130
|
+
display: inline-flex;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.glass-menu-trigger {
|
|
134
|
+
display: inline-flex;
|
|
135
|
+
align-items: center;
|
|
136
|
+
gap: 4px;
|
|
137
|
+
margin: 0;
|
|
138
|
+
padding: 0;
|
|
139
|
+
background: none;
|
|
140
|
+
border: none;
|
|
141
|
+
font: inherit;
|
|
142
|
+
color: inherit;
|
|
143
|
+
cursor: pointer;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.glass-menu-panel {
|
|
147
|
+
position: absolute;
|
|
148
|
+
top: calc(100% + 8px);
|
|
149
|
+
left: 0;
|
|
150
|
+
min-width: 220px;
|
|
151
|
+
padding: 0;
|
|
152
|
+
overflow: hidden;
|
|
153
|
+
background: var(--glass-sheet-bg);
|
|
154
|
+
backdrop-filter: blur(var(--glass-blur-nav)) saturate(var(--glass-saturation));
|
|
155
|
+
-webkit-backdrop-filter: blur(var(--glass-blur-nav)) saturate(var(--glass-saturation));
|
|
156
|
+
border: var(--glass-border-width) solid var(--glass-border);
|
|
157
|
+
border-radius: var(--glass-radius-md);
|
|
158
|
+
box-shadow:
|
|
159
|
+
0 12px 40px -8px var(--glass-shadow),
|
|
160
|
+
0 4px 12px -2px var(--glass-shadow);
|
|
161
|
+
z-index: 200;
|
|
162
|
+
transform-origin: top left;
|
|
163
|
+
animation: glass-menu-pop 0.18s cubic-bezier(0.32, 0.72, 0, 1);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.glass-menu-panel.align-end {
|
|
167
|
+
left: auto;
|
|
168
|
+
right: 0;
|
|
169
|
+
transform-origin: top right;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* Hairline divider between consecutive items. */
|
|
173
|
+
.glass-menu-panel :global(.menu-item + .menu-item) {
|
|
174
|
+
border-top: var(--glass-border-width) solid var(--glass-divider);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@keyframes glass-menu-pop {
|
|
178
|
+
from {
|
|
179
|
+
opacity: 0;
|
|
180
|
+
transform: scale(0.92);
|
|
181
|
+
}
|
|
182
|
+
to {
|
|
183
|
+
opacity: 1;
|
|
184
|
+
transform: scale(1);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
@media (prefers-reduced-motion: reduce) {
|
|
189
|
+
.glass-menu-panel {
|
|
190
|
+
animation: glass-menu-fade 0.01s linear;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
:global([data-reduced-motion='true']) .glass-menu-panel {
|
|
195
|
+
animation: glass-menu-fade 0.01s linear;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
@keyframes glass-menu-fade {
|
|
199
|
+
from {
|
|
200
|
+
opacity: 0;
|
|
201
|
+
}
|
|
202
|
+
to {
|
|
203
|
+
opacity: 1;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
</style>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
interface Props {
|
|
3
|
+
label: Snippet;
|
|
4
|
+
children: Snippet;
|
|
5
|
+
align?: 'start' | 'end';
|
|
6
|
+
class?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const Menu: import("svelte").Component<Props, {}, string>;
|
|
9
|
+
type Menu = ReturnType<typeof Menu>;
|
|
10
|
+
export default Menu;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
|
+
import { getIconPath } from '../../icons';
|
|
4
|
+
|
|
5
|
+
interface Props {
|
|
6
|
+
children: Snippet;
|
|
7
|
+
icon?: string;
|
|
8
|
+
href?: string;
|
|
9
|
+
onclick?: () => void;
|
|
10
|
+
destructive?: boolean;
|
|
11
|
+
class?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
let {
|
|
15
|
+
children,
|
|
16
|
+
icon,
|
|
17
|
+
href,
|
|
18
|
+
onclick,
|
|
19
|
+
destructive = false,
|
|
20
|
+
class: className = ''
|
|
21
|
+
}: Props = $props();
|
|
22
|
+
|
|
23
|
+
// Security Note: iconPath is always from the hardcoded ICONS map, never user input.
|
|
24
|
+
const iconPath = $derived(icon ? getIconPath(icon) : '');
|
|
25
|
+
</script>
|
|
26
|
+
|
|
27
|
+
{#snippet rowContent()}
|
|
28
|
+
{#if icon}
|
|
29
|
+
<svg
|
|
30
|
+
class="menu-item-icon"
|
|
31
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
32
|
+
width="18"
|
|
33
|
+
height="18"
|
|
34
|
+
viewBox="0 0 24 24"
|
|
35
|
+
fill="none"
|
|
36
|
+
stroke="currentColor"
|
|
37
|
+
stroke-width="2"
|
|
38
|
+
stroke-linecap="round"
|
|
39
|
+
stroke-linejoin="round"
|
|
40
|
+
aria-hidden="true"
|
|
41
|
+
>
|
|
42
|
+
{@html iconPath}
|
|
43
|
+
</svg>
|
|
44
|
+
{/if}
|
|
45
|
+
<span class="menu-item-label">{@render children()}</span>
|
|
46
|
+
{/snippet}
|
|
47
|
+
|
|
48
|
+
{#if href}
|
|
49
|
+
<a
|
|
50
|
+
{href}
|
|
51
|
+
role="menuitem"
|
|
52
|
+
tabindex="-1"
|
|
53
|
+
class="menu-item {className}"
|
|
54
|
+
class:destructive
|
|
55
|
+
>
|
|
56
|
+
{@render rowContent()}
|
|
57
|
+
</a>
|
|
58
|
+
{:else}
|
|
59
|
+
<button
|
|
60
|
+
type="button"
|
|
61
|
+
role="menuitem"
|
|
62
|
+
tabindex="-1"
|
|
63
|
+
class="menu-item {className}"
|
|
64
|
+
class:destructive
|
|
65
|
+
{onclick}
|
|
66
|
+
>
|
|
67
|
+
{@render rowContent()}
|
|
68
|
+
</button>
|
|
69
|
+
{/if}
|
|
70
|
+
|
|
71
|
+
<style>
|
|
72
|
+
.menu-item {
|
|
73
|
+
display: flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
gap: 10px;
|
|
76
|
+
width: 100%;
|
|
77
|
+
padding: 9px 14px;
|
|
78
|
+
background: none;
|
|
79
|
+
border: none;
|
|
80
|
+
border-radius: 0;
|
|
81
|
+
font: inherit;
|
|
82
|
+
font-size: 0.95rem;
|
|
83
|
+
text-align: left;
|
|
84
|
+
text-decoration: none;
|
|
85
|
+
color: var(--color-text);
|
|
86
|
+
cursor: pointer;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.menu-item:hover {
|
|
90
|
+
background: var(--glass-hover-subtle);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.menu-item:active {
|
|
94
|
+
background: var(--glass-active-subtle);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.menu-item:focus-visible {
|
|
98
|
+
background: var(--glass-hover-subtle);
|
|
99
|
+
outline: 2px solid transparent;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.menu-item.destructive {
|
|
103
|
+
color: var(--color-danger);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.menu-item-icon {
|
|
107
|
+
flex-shrink: 0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.menu-item-label {
|
|
111
|
+
flex: 1;
|
|
112
|
+
min-width: 0;
|
|
113
|
+
}
|
|
114
|
+
</style>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
interface Props {
|
|
3
|
+
children: Snippet;
|
|
4
|
+
icon?: string;
|
|
5
|
+
href?: string;
|
|
6
|
+
onclick?: () => void;
|
|
7
|
+
destructive?: boolean;
|
|
8
|
+
class?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const MenuItem: import("svelte").Component<Props, {}, string>;
|
|
11
|
+
type MenuItem = ReturnType<typeof MenuItem>;
|
|
12
|
+
export default MenuItem;
|
package/dist/icons/index.js
CHANGED
|
@@ -75,7 +75,10 @@ export var ICONS = {
|
|
|
75
75
|
// Status
|
|
76
76
|
'info': '<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line>',
|
|
77
77
|
'warning': '<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line>',
|
|
78
|
-
'error': '<circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line>'
|
|
78
|
+
'error': '<circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line>',
|
|
79
|
+
// Weather / media
|
|
80
|
+
'cloud.sun': '<path d="M12 2v2"></path><path d="m4.93 4.93 1.41 1.41"></path><path d="M20 12h2"></path><path d="m19.07 4.93-1.41 1.41"></path><path d="M15.947 12.65a4 4 0 0 0-5.925-4.128"></path><path d="M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z"></path>',
|
|
81
|
+
'waveform': '<path d="M2 10v3"></path><path d="M6 6v11"></path><path d="M10 3v18"></path><path d="M14 8v7"></path><path d="M18 5v13"></path><path d="M22 10v3"></path>'
|
|
79
82
|
};
|
|
80
83
|
/** Default fallback icon name */
|
|
81
84
|
export var DEFAULT_ICON = 'star';
|