@marioschmidt/design-system-components 1.3.1 → 1.3.3
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/bds/bds.esm.js +1 -1
- package/dist/bds/{p-DUrpTa_b.js → p-B4AUg0uO.js} +2 -2
- package/dist/bds/p-a851ab89.entry.js +1 -0
- package/dist/cjs/bds.cjs.js +2 -2
- package/dist/cjs/ds-button_3.cjs.entry.js +28 -140
- package/dist/cjs/{index-yDPq0GyD.js → index-Bb064vv6.js} +3 -56
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/ds-button/ds-button.css +2 -6
- package/dist/collection/ds-button/ds-button.js +50 -14
- package/dist/collection/ds-card/ds-card.js +2 -2
- package/dist/collection/ds-icon/ds-icon.css +3 -58
- package/dist/collection/ds-icon/ds-icon.js +20 -231
- package/dist/collection/icons.js +205 -0
- package/dist/components/ds-button.d.ts +1 -1
- package/dist/components/ds-button.js +1 -1
- package/dist/components/ds-card.d.ts +1 -1
- package/dist/components/ds-card.js +1 -1
- package/dist/components/ds-icon.d.ts +1 -1
- package/dist/components/ds-icon.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-o-zDLqwP.js +1 -0
- package/dist/docs/ds-button/readme.md +19 -4
- package/dist/docs/ds-icon/readme.md +17 -8
- package/dist/esm/bds.js +3 -3
- package/dist/esm/ds-button_3.entry.js +28 -140
- package/dist/esm/{index-DUrpTa_b.js → index-B4AUg0uO.js} +4 -56
- package/dist/esm/loader.js +3 -3
- package/dist/types/components.d.ts +24 -46
- package/dist/types/ds-button/ds-button.d.ts +9 -10
- package/dist/types/ds-icon/ds-icon.d.ts +2 -45
- package/dist/types/icons.d.ts +6 -0
- package/dist/www/build/bds.esm.js +1 -1
- package/dist/www/build/{p-DUrpTa_b.js → p-B4AUg0uO.js} +2 -2
- package/dist/www/build/p-a851ab89.entry.js +1 -0
- package/dist/www/css/advertorial/components/_dsysdocs.css +1 -1
- package/dist/www/css/advertorial/components/article.css +1 -1
- package/dist/www/css/advertorial/components/audioplayer.css +1 -1
- package/dist/www/css/advertorial/components/avatar.css +1 -1
- package/dist/www/css/advertorial/components/badge.css +1 -1
- package/dist/www/css/advertorial/components/breadcrumb.css +1 -1
- package/dist/www/css/advertorial/components/breakingnews.css +1 -1
- package/dist/www/css/advertorial/components/button.css +1 -1
- package/dist/www/css/advertorial/components/card.css +1 -1
- package/dist/www/css/advertorial/components/carousel.css +1 -1
- package/dist/www/css/advertorial/components/chip.css +1 -1
- package/dist/www/css/advertorial/components/datepicker.css +1 -1
- package/dist/www/css/advertorial/components/drawers.css +1 -1
- package/dist/www/css/advertorial/components/dropdown.css +1 -1
- package/dist/www/css/advertorial/components/footer.css +1 -1
- package/dist/www/css/advertorial/components/icon.css +1 -1
- package/dist/www/css/advertorial/components/iconbutton.css +1 -1
- package/dist/www/css/advertorial/components/infoelement.css +1 -1
- package/dist/www/css/advertorial/components/inputfield.css +1 -1
- package/dist/www/css/advertorial/components/liveticker.css +1 -1
- package/dist/www/css/advertorial/components/mediaplayer.css +1 -1
- package/dist/www/css/advertorial/components/menu.css +1 -1
- package/dist/www/css/advertorial/components/newsticker.css +1 -1
- package/dist/www/css/advertorial/components/pagination.css +1 -1
- package/dist/www/css/advertorial/components/paywall.css +1 -1
- package/dist/www/css/advertorial/components/quote.css +1 -1
- package/dist/www/css/advertorial/components/radiobutton.css +1 -1
- package/dist/www/css/advertorial/components/search.css +1 -1
- package/dist/www/css/advertorial/components/sectiontitle.css +1 -1
- package/dist/www/css/advertorial/components/separator.css +1 -1
- package/dist/www/css/advertorial/components/skeletons.css +1 -1
- package/dist/www/css/advertorial/components/slider.css +1 -1
- package/dist/www/css/advertorial/components/specialnavi.css +1 -1
- package/dist/www/css/advertorial/components/spinner.css +1 -1
- package/dist/www/css/advertorial/components/tab.css +1 -1
- package/dist/www/css/advertorial/components/table.css +1 -1
- package/dist/www/css/advertorial/components/teaser.css +1 -1
- package/dist/www/css/advertorial/components/toggleswitch.css +1 -1
- package/dist/www/css/advertorial/components/video.css +1 -1
- package/dist/www/css/advertorial/theme.css +1 -1
- package/dist/www/css/advertorial/tokens.css +1 -1
- package/dist/www/css/bild/components/_dsysdoc.css +1 -1
- package/dist/www/css/bild/components/_dsysdocs.css +1 -1
- package/dist/www/css/bild/components/alert.css +1 -1
- package/dist/www/css/bild/components/article.css +1 -1
- package/dist/www/css/bild/components/audioplayer.css +1 -1
- package/dist/www/css/bild/components/avatar.css +1 -1
- package/dist/www/css/bild/components/badge.css +1 -1
- package/dist/www/css/bild/components/breadcrumb.css +1 -1
- package/dist/www/css/bild/components/breakingnews.css +1 -1
- package/dist/www/css/bild/components/button.css +1 -1
- package/dist/www/css/bild/components/card.css +1 -1
- package/dist/www/css/bild/components/carousel.css +1 -1
- package/dist/www/css/bild/components/chip.css +1 -1
- package/dist/www/css/bild/components/datepicker.css +1 -1
- package/dist/www/css/bild/components/drawers.css +1 -1
- package/dist/www/css/bild/components/dropdown.css +1 -1
- package/dist/www/css/bild/components/empties.css +1 -1
- package/dist/www/css/bild/components/footer.css +1 -1
- package/dist/www/css/bild/components/gallery.css +1 -1
- package/dist/www/css/bild/components/icon.css +1 -1
- package/dist/www/css/bild/components/iconbutton.css +1 -1
- package/dist/www/css/bild/components/infoelement.css +1 -1
- package/dist/www/css/bild/components/inputfield.css +1 -1
- package/dist/www/css/bild/components/kicker.css +1 -1
- package/dist/www/css/bild/components/liveticker.css +1 -1
- package/dist/www/css/bild/components/mediaplayer.css +1 -1
- package/dist/www/css/bild/components/menu.css +1 -1
- package/dist/www/css/bild/components/menuitem.css +1 -1
- package/dist/www/css/bild/components/newsticker.css +1 -1
- package/dist/www/css/bild/components/pagination.css +1 -1
- package/dist/www/css/bild/components/partnerlinks.css +1 -1
- package/dist/www/css/bild/components/paywall.css +1 -1
- package/dist/www/css/bild/components/quote.css +1 -1
- package/dist/www/css/bild/components/radiobutton.css +1 -1
- package/dist/www/css/bild/components/search.css +1 -1
- package/dist/www/css/bild/components/sectiontitle.css +1 -1
- package/dist/www/css/bild/components/selection.css +1 -1
- package/dist/www/css/bild/components/separator.css +1 -1
- package/dist/www/css/bild/components/skeletons.css +1 -1
- package/dist/www/css/bild/components/slider.css +1 -1
- package/dist/www/css/bild/components/specialnavi.css +1 -1
- package/dist/www/css/bild/components/spinner.css +1 -1
- package/dist/www/css/bild/components/subheader.css +1 -1
- package/dist/www/css/bild/components/tab.css +1 -1
- package/dist/www/css/bild/components/table.css +1 -1
- package/dist/www/css/bild/components/teaser.css +1 -1
- package/dist/www/css/bild/components/toggleswitch.css +1 -1
- package/dist/www/css/bild/components/video.css +1 -1
- package/dist/www/css/bild/theme.css +1 -1
- package/dist/www/css/bild/tokens.css +1 -1
- package/dist/www/css/bundles/advertorial.css +1 -1
- package/dist/www/css/bundles/bild.css +1 -1
- package/dist/www/css/bundles/sportbild.css +1 -1
- package/dist/www/css/shared/colorprimitive.css +1 -1
- package/dist/www/css/shared/fontprimitive.css +1 -1
- package/dist/www/css/shared/primitives.css +1 -1
- package/dist/www/css/shared/sizeprimitive.css +1 -1
- package/dist/www/css/shared/spaceprimitive.css +1 -1
- package/dist/www/css/sportbild/components/_dsysdoc.css +1 -1
- package/dist/www/css/sportbild/components/_dsysdocs.css +1 -1
- package/dist/www/css/sportbild/components/alert.css +1 -1
- package/dist/www/css/sportbild/components/article.css +1 -1
- package/dist/www/css/sportbild/components/audioplayer.css +1 -1
- package/dist/www/css/sportbild/components/avatar.css +1 -1
- package/dist/www/css/sportbild/components/badge.css +1 -1
- package/dist/www/css/sportbild/components/breadcrumb.css +1 -1
- package/dist/www/css/sportbild/components/breakingnews.css +1 -1
- package/dist/www/css/sportbild/components/button.css +1 -1
- package/dist/www/css/sportbild/components/card.css +1 -1
- package/dist/www/css/sportbild/components/carousel.css +1 -1
- package/dist/www/css/sportbild/components/chip.css +1 -1
- package/dist/www/css/sportbild/components/datepicker.css +1 -1
- package/dist/www/css/sportbild/components/drawers.css +1 -1
- package/dist/www/css/sportbild/components/dropdown.css +1 -1
- package/dist/www/css/sportbild/components/empties.css +1 -1
- package/dist/www/css/sportbild/components/footer.css +1 -1
- package/dist/www/css/sportbild/components/gallery.css +1 -1
- package/dist/www/css/sportbild/components/icon.css +1 -1
- package/dist/www/css/sportbild/components/iconbutton.css +1 -1
- package/dist/www/css/sportbild/components/infoelement.css +1 -1
- package/dist/www/css/sportbild/components/inputfield.css +1 -1
- package/dist/www/css/sportbild/components/kicker.css +1 -1
- package/dist/www/css/sportbild/components/liveticker.css +1 -1
- package/dist/www/css/sportbild/components/mediaplayer.css +1 -1
- package/dist/www/css/sportbild/components/menu.css +1 -1
- package/dist/www/css/sportbild/components/menuitem.css +1 -1
- package/dist/www/css/sportbild/components/newsticker.css +1 -1
- package/dist/www/css/sportbild/components/pagination.css +1 -1
- package/dist/www/css/sportbild/components/partnerlinks.css +1 -1
- package/dist/www/css/sportbild/components/paywall.css +1 -1
- package/dist/www/css/sportbild/components/quote.css +1 -1
- package/dist/www/css/sportbild/components/radiobutton.css +1 -1
- package/dist/www/css/sportbild/components/search.css +1 -1
- package/dist/www/css/sportbild/components/sectiontitle.css +1 -1
- package/dist/www/css/sportbild/components/selection.css +1 -1
- package/dist/www/css/sportbild/components/separator.css +1 -1
- package/dist/www/css/sportbild/components/skeletons.css +1 -1
- package/dist/www/css/sportbild/components/slider.css +1 -1
- package/dist/www/css/sportbild/components/specialnavi.css +1 -1
- package/dist/www/css/sportbild/components/spinner.css +1 -1
- package/dist/www/css/sportbild/components/subheader.css +1 -1
- package/dist/www/css/sportbild/components/tab.css +1 -1
- package/dist/www/css/sportbild/components/table.css +1 -1
- package/dist/www/css/sportbild/components/teaser.css +1 -1
- package/dist/www/css/sportbild/components/toggleswitch.css +1 -1
- package/dist/www/css/sportbild/components/video.css +1 -1
- package/dist/www/css/sportbild/theme.css +1 -1
- package/dist/www/css/sportbild/tokens.css +1 -1
- package/dist/www/icons/manifest.json +2 -2
- package/dist/www/index.html +2 -2
- package/package.json +1 -1
- package/dist/bds/p-f4e1fe1f.entry.js +0 -1
- package/dist/www/build/p-f4e1fe1f.entry.js +0 -1
|
@@ -1,152 +1,41 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
/**
|
|
3
|
-
* Icon cache shared between all ds-icon instances.
|
|
4
|
-
* Prevents duplicate fetch requests for the same icon.
|
|
5
|
-
*/
|
|
6
2
|
const iconCache = new Map();
|
|
7
|
-
const pendingRequests = new Map();
|
|
8
3
|
export class DsIcon {
|
|
9
4
|
constructor() {
|
|
10
5
|
/**
|
|
11
|
-
*
|
|
12
|
-
* @default 24
|
|
13
|
-
*/
|
|
14
|
-
this.size = 24;
|
|
15
|
-
/**
|
|
16
|
-
* Color of the icon. Accepts any valid CSS color value.
|
|
17
|
-
* Icons use currentColor by default, inheriting from parent.
|
|
18
|
-
* @default 'currentColor'
|
|
19
|
-
*/
|
|
20
|
-
this.color = 'currentColor';
|
|
21
|
-
/**
|
|
22
|
-
* Base path for loading icon SVG files.
|
|
23
|
-
* @default '/icons'
|
|
6
|
+
* Base path for icon SVG files.
|
|
24
7
|
*/
|
|
25
8
|
this.basePath = '/icons';
|
|
26
|
-
/**
|
|
27
|
-
* Enable lazy loading with IntersectionObserver.
|
|
28
|
-
* Icon will only load when visible in viewport.
|
|
29
|
-
* @default false
|
|
30
|
-
*/
|
|
31
|
-
this.lazy = false;
|
|
32
|
-
/**
|
|
33
|
-
* Internal state for the loaded SVG content.
|
|
34
|
-
*/
|
|
35
9
|
this.svgContent = '';
|
|
36
|
-
/**
|
|
37
|
-
* Internal state for loading status.
|
|
38
|
-
*/
|
|
39
|
-
this.isLoading = false;
|
|
40
|
-
/**
|
|
41
|
-
* Internal state for error status.
|
|
42
|
-
*/
|
|
43
|
-
this.hasError = false;
|
|
44
|
-
this.isVisible = false;
|
|
45
10
|
}
|
|
46
11
|
connectedCallback() {
|
|
47
|
-
|
|
48
|
-
this.setupIntersectionObserver();
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
this.loadIcon();
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
disconnectedCallback() {
|
|
55
|
-
this.observer?.disconnect();
|
|
12
|
+
this.loadIcon();
|
|
56
13
|
}
|
|
57
14
|
onNameChange() {
|
|
58
|
-
|
|
59
|
-
this.loadIcon();
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
onBasePathChange() {
|
|
63
|
-
if (!this.lazy || this.isVisible) {
|
|
64
|
-
this.loadIcon();
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
setupIntersectionObserver() {
|
|
68
|
-
if (typeof IntersectionObserver === 'undefined') {
|
|
69
|
-
// Fallback for browsers without IntersectionObserver
|
|
70
|
-
this.loadIcon();
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
this.observer = new IntersectionObserver((entries) => {
|
|
74
|
-
entries.forEach((entry) => {
|
|
75
|
-
if (entry.isIntersecting) {
|
|
76
|
-
this.isVisible = true;
|
|
77
|
-
this.loadIcon();
|
|
78
|
-
this.observer?.disconnect();
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
}, {
|
|
82
|
-
rootMargin: '50px', // Load slightly before entering viewport
|
|
83
|
-
});
|
|
84
|
-
this.observer.observe(this.el);
|
|
15
|
+
this.loadIcon();
|
|
85
16
|
}
|
|
86
17
|
async loadIcon() {
|
|
87
|
-
if (!this.name)
|
|
88
|
-
this.hasError = true;
|
|
18
|
+
if (!this.name)
|
|
89
19
|
return;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
if (iconCache.has(iconUrl)) {
|
|
94
|
-
this.svgContent = iconCache.get(iconUrl);
|
|
95
|
-
this.hasError = false;
|
|
20
|
+
const url = `${this.basePath}/${this.name}.svg`;
|
|
21
|
+
if (iconCache.has(url)) {
|
|
22
|
+
this.svgContent = iconCache.get(url);
|
|
96
23
|
return;
|
|
97
24
|
}
|
|
98
|
-
// Check for pending request (prevent duplicate fetches)
|
|
99
|
-
if (pendingRequests.has(iconUrl)) {
|
|
100
|
-
try {
|
|
101
|
-
this.svgContent = await pendingRequests.get(iconUrl);
|
|
102
|
-
this.hasError = false;
|
|
103
|
-
}
|
|
104
|
-
catch {
|
|
105
|
-
this.hasError = true;
|
|
106
|
-
}
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
this.isLoading = true;
|
|
110
|
-
this.hasError = false;
|
|
111
|
-
// Create fetch promise and store it
|
|
112
|
-
const fetchPromise = this.fetchIcon(iconUrl);
|
|
113
|
-
pendingRequests.set(iconUrl, fetchPromise);
|
|
114
25
|
try {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
26
|
+
const response = await fetch(url);
|
|
27
|
+
if (response.ok) {
|
|
28
|
+
const svg = await response.text();
|
|
29
|
+
iconCache.set(url, svg);
|
|
30
|
+
this.svgContent = svg;
|
|
31
|
+
}
|
|
118
32
|
}
|
|
119
33
|
catch {
|
|
120
|
-
|
|
121
|
-
this.svgContent = '';
|
|
122
|
-
}
|
|
123
|
-
finally {
|
|
124
|
-
this.isLoading = false;
|
|
125
|
-
pendingRequests.delete(iconUrl);
|
|
34
|
+
// Silent fail
|
|
126
35
|
}
|
|
127
36
|
}
|
|
128
|
-
async fetchIcon(url) {
|
|
129
|
-
const response = await fetch(url);
|
|
130
|
-
if (!response.ok) {
|
|
131
|
-
throw new Error(`Failed to load icon: ${url}`);
|
|
132
|
-
}
|
|
133
|
-
const svgText = await response.text();
|
|
134
|
-
// Basic security check - ensure it's valid SVG
|
|
135
|
-
if (!svgText.includes('<svg')) {
|
|
136
|
-
throw new Error(`Invalid SVG content: ${url}`);
|
|
137
|
-
}
|
|
138
|
-
return svgText;
|
|
139
|
-
}
|
|
140
37
|
render() {
|
|
141
|
-
|
|
142
|
-
return (h("span", { key: 'f3c397e6532cf9022416cf53458dd6d0b128a3ed', class: {
|
|
143
|
-
'ds-icon': true,
|
|
144
|
-
'ds-icon--loading': this.isLoading,
|
|
145
|
-
'ds-icon--error': this.hasError,
|
|
146
|
-
}, style: {
|
|
147
|
-
'--icon-size': `${this.size}px`,
|
|
148
|
-
'--icon-color': this.color,
|
|
149
|
-
}, role: isDecorative ? 'presentation' : 'img', "aria-hidden": isDecorative ? 'true' : undefined, "aria-label": this.label }, this.svgContent ? (h("span", { class: "ds-icon__svg", innerHTML: this.svgContent })) : this.hasError ? (h("span", { class: "ds-icon__error", title: `Icon "${this.name}" not found` }, h("svg", { viewBox: "0 0 24 24", fill: "currentColor" }, h("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })))) : null));
|
|
38
|
+
return (h("span", { key: 'f3549bfd71c52f0bf0b23c346fa5a665119c4033', class: "ds-icon", innerHTML: this.svgContent }));
|
|
150
39
|
}
|
|
151
40
|
static get is() { return "ds-icon"; }
|
|
152
41
|
static get encapsulation() { return "shadow"; }
|
|
@@ -173,63 +62,14 @@ export class DsIcon {
|
|
|
173
62
|
"required": true,
|
|
174
63
|
"optional": false,
|
|
175
64
|
"docs": {
|
|
176
|
-
"tags": [
|
|
177
|
-
|
|
178
|
-
"text": "\"add\", \"arrow-left\", \"close\""
|
|
179
|
-
}],
|
|
180
|
-
"text": "Name of the icon to display (without .svg extension).\nMust match a file in the icons directory."
|
|
65
|
+
"tags": [],
|
|
66
|
+
"text": "Name of the icon (without .svg extension)."
|
|
181
67
|
},
|
|
182
68
|
"getter": false,
|
|
183
69
|
"setter": false,
|
|
184
70
|
"reflect": false,
|
|
185
71
|
"attribute": "name"
|
|
186
72
|
},
|
|
187
|
-
"size": {
|
|
188
|
-
"type": "number",
|
|
189
|
-
"mutable": false,
|
|
190
|
-
"complexType": {
|
|
191
|
-
"original": "number",
|
|
192
|
-
"resolved": "number",
|
|
193
|
-
"references": {}
|
|
194
|
-
},
|
|
195
|
-
"required": false,
|
|
196
|
-
"optional": false,
|
|
197
|
-
"docs": {
|
|
198
|
-
"tags": [{
|
|
199
|
-
"name": "default",
|
|
200
|
-
"text": "24"
|
|
201
|
-
}],
|
|
202
|
-
"text": "Size of the icon in pixels."
|
|
203
|
-
},
|
|
204
|
-
"getter": false,
|
|
205
|
-
"setter": false,
|
|
206
|
-
"reflect": false,
|
|
207
|
-
"attribute": "size",
|
|
208
|
-
"defaultValue": "24"
|
|
209
|
-
},
|
|
210
|
-
"color": {
|
|
211
|
-
"type": "string",
|
|
212
|
-
"mutable": false,
|
|
213
|
-
"complexType": {
|
|
214
|
-
"original": "string",
|
|
215
|
-
"resolved": "string",
|
|
216
|
-
"references": {}
|
|
217
|
-
},
|
|
218
|
-
"required": false,
|
|
219
|
-
"optional": false,
|
|
220
|
-
"docs": {
|
|
221
|
-
"tags": [{
|
|
222
|
-
"name": "default",
|
|
223
|
-
"text": "'currentColor'"
|
|
224
|
-
}],
|
|
225
|
-
"text": "Color of the icon. Accepts any valid CSS color value.\nIcons use currentColor by default, inheriting from parent."
|
|
226
|
-
},
|
|
227
|
-
"getter": false,
|
|
228
|
-
"setter": false,
|
|
229
|
-
"reflect": false,
|
|
230
|
-
"attribute": "color",
|
|
231
|
-
"defaultValue": "'currentColor'"
|
|
232
|
-
},
|
|
233
73
|
"basePath": {
|
|
234
74
|
"type": "string",
|
|
235
75
|
"mutable": false,
|
|
@@ -241,77 +81,26 @@ export class DsIcon {
|
|
|
241
81
|
"required": false,
|
|
242
82
|
"optional": false,
|
|
243
83
|
"docs": {
|
|
244
|
-
"tags": [
|
|
245
|
-
|
|
246
|
-
"text": "'/icons'"
|
|
247
|
-
}],
|
|
248
|
-
"text": "Base path for loading icon SVG files."
|
|
84
|
+
"tags": [],
|
|
85
|
+
"text": "Base path for icon SVG files."
|
|
249
86
|
},
|
|
250
87
|
"getter": false,
|
|
251
88
|
"setter": false,
|
|
252
89
|
"reflect": false,
|
|
253
90
|
"attribute": "base-path",
|
|
254
91
|
"defaultValue": "'/icons'"
|
|
255
|
-
},
|
|
256
|
-
"lazy": {
|
|
257
|
-
"type": "boolean",
|
|
258
|
-
"mutable": false,
|
|
259
|
-
"complexType": {
|
|
260
|
-
"original": "boolean",
|
|
261
|
-
"resolved": "boolean",
|
|
262
|
-
"references": {}
|
|
263
|
-
},
|
|
264
|
-
"required": false,
|
|
265
|
-
"optional": false,
|
|
266
|
-
"docs": {
|
|
267
|
-
"tags": [{
|
|
268
|
-
"name": "default",
|
|
269
|
-
"text": "false"
|
|
270
|
-
}],
|
|
271
|
-
"text": "Enable lazy loading with IntersectionObserver.\nIcon will only load when visible in viewport."
|
|
272
|
-
},
|
|
273
|
-
"getter": false,
|
|
274
|
-
"setter": false,
|
|
275
|
-
"reflect": false,
|
|
276
|
-
"attribute": "lazy",
|
|
277
|
-
"defaultValue": "false"
|
|
278
|
-
},
|
|
279
|
-
"label": {
|
|
280
|
-
"type": "string",
|
|
281
|
-
"mutable": false,
|
|
282
|
-
"complexType": {
|
|
283
|
-
"original": "string",
|
|
284
|
-
"resolved": "string | undefined",
|
|
285
|
-
"references": {}
|
|
286
|
-
},
|
|
287
|
-
"required": false,
|
|
288
|
-
"optional": true,
|
|
289
|
-
"docs": {
|
|
290
|
-
"tags": [],
|
|
291
|
-
"text": "Accessible label for screen readers.\nIf provided, icon is treated as semantic (not decorative)."
|
|
292
|
-
},
|
|
293
|
-
"getter": false,
|
|
294
|
-
"setter": false,
|
|
295
|
-
"reflect": false,
|
|
296
|
-
"attribute": "label"
|
|
297
92
|
}
|
|
298
93
|
};
|
|
299
94
|
}
|
|
300
95
|
static get states() {
|
|
301
96
|
return {
|
|
302
|
-
"svgContent": {}
|
|
303
|
-
"isLoading": {},
|
|
304
|
-
"hasError": {}
|
|
97
|
+
"svgContent": {}
|
|
305
98
|
};
|
|
306
99
|
}
|
|
307
|
-
static get elementRef() { return "el"; }
|
|
308
100
|
static get watchers() {
|
|
309
101
|
return [{
|
|
310
102
|
"propName": "name",
|
|
311
103
|
"methodName": "onNameChange"
|
|
312
|
-
}, {
|
|
313
|
-
"propName": "basePath",
|
|
314
|
-
"methodName": "onBasePathChange"
|
|
315
104
|
}];
|
|
316
105
|
}
|
|
317
106
|
}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List of all available icon names in the design system.
|
|
3
|
+
* These correspond to SVG files in packages/icons/svg/dist/
|
|
4
|
+
*/
|
|
5
|
+
export const ICON_NAMES = [
|
|
6
|
+
'2-liga-logo',
|
|
7
|
+
'account',
|
|
8
|
+
'add',
|
|
9
|
+
'adjust',
|
|
10
|
+
'android',
|
|
11
|
+
'apple-ios',
|
|
12
|
+
'arrow-down',
|
|
13
|
+
'arrow-left',
|
|
14
|
+
'arrow-right',
|
|
15
|
+
'arrow-up',
|
|
16
|
+
'arscan',
|
|
17
|
+
'auto',
|
|
18
|
+
'autobild-logo',
|
|
19
|
+
'bams-logo',
|
|
20
|
+
'basketball',
|
|
21
|
+
'bild-club-logo',
|
|
22
|
+
'bild-logo',
|
|
23
|
+
'bildplay-logo',
|
|
24
|
+
'bildplus-logo',
|
|
25
|
+
'bildplus-logo-simple',
|
|
26
|
+
'bin',
|
|
27
|
+
'bookmark',
|
|
28
|
+
'boxing',
|
|
29
|
+
'bundesliga-logo',
|
|
30
|
+
'burgermenu',
|
|
31
|
+
'calendar',
|
|
32
|
+
'camera',
|
|
33
|
+
'cards',
|
|
34
|
+
'checklist',
|
|
35
|
+
'checkmark',
|
|
36
|
+
'checkmark-circled',
|
|
37
|
+
'chevron-down',
|
|
38
|
+
'chevron-left',
|
|
39
|
+
'chevron-right',
|
|
40
|
+
'chevron-up',
|
|
41
|
+
'clock',
|
|
42
|
+
'close',
|
|
43
|
+
'comment',
|
|
44
|
+
'computerbild-logo',
|
|
45
|
+
'controller',
|
|
46
|
+
'copy',
|
|
47
|
+
'credit-card',
|
|
48
|
+
'dark-mode',
|
|
49
|
+
'data-protection',
|
|
50
|
+
'desktop',
|
|
51
|
+
'desktop-checkmark',
|
|
52
|
+
'desktop-questionmark',
|
|
53
|
+
'digital',
|
|
54
|
+
'download',
|
|
55
|
+
'edit',
|
|
56
|
+
'enter-fullscreen',
|
|
57
|
+
'erotik',
|
|
58
|
+
'exclamationmark-circle',
|
|
59
|
+
'exit-fullscreen',
|
|
60
|
+
'external-intext',
|
|
61
|
+
'external-link',
|
|
62
|
+
'fast-back',
|
|
63
|
+
'fast-back-chevron',
|
|
64
|
+
'fast-back-filled',
|
|
65
|
+
'fast-forward',
|
|
66
|
+
'fast-forward-chevron',
|
|
67
|
+
'fast-forward-filled',
|
|
68
|
+
'fast-upward',
|
|
69
|
+
'football',
|
|
70
|
+
'fussball',
|
|
71
|
+
'geld',
|
|
72
|
+
'gesundheit',
|
|
73
|
+
'gewinnspiele',
|
|
74
|
+
'gtcs',
|
|
75
|
+
'handball',
|
|
76
|
+
'headphones',
|
|
77
|
+
'heart',
|
|
78
|
+
'hey-logo',
|
|
79
|
+
'hide',
|
|
80
|
+
'history',
|
|
81
|
+
'hockey',
|
|
82
|
+
'home',
|
|
83
|
+
'horoskop',
|
|
84
|
+
'image',
|
|
85
|
+
'image-gallery',
|
|
86
|
+
'imprint',
|
|
87
|
+
'information',
|
|
88
|
+
'input',
|
|
89
|
+
'kino',
|
|
90
|
+
'lifestyle',
|
|
91
|
+
'light-mode',
|
|
92
|
+
'list-checked',
|
|
93
|
+
'live-badge',
|
|
94
|
+
'locked',
|
|
95
|
+
'log-out',
|
|
96
|
+
'logged-in',
|
|
97
|
+
'login',
|
|
98
|
+
'lotto',
|
|
99
|
+
'mail',
|
|
100
|
+
'marktplatz-logo',
|
|
101
|
+
'maximize',
|
|
102
|
+
'maximize-pip',
|
|
103
|
+
'mein-verein',
|
|
104
|
+
'menu',
|
|
105
|
+
'minimize',
|
|
106
|
+
'minimize-pip',
|
|
107
|
+
'motorsport',
|
|
108
|
+
'mute',
|
|
109
|
+
'mypass',
|
|
110
|
+
'netid',
|
|
111
|
+
'news',
|
|
112
|
+
'news-ticker',
|
|
113
|
+
'notifications-off',
|
|
114
|
+
'notifications-on',
|
|
115
|
+
'ost-sport',
|
|
116
|
+
'paper',
|
|
117
|
+
'participate',
|
|
118
|
+
'pause',
|
|
119
|
+
'pause-filled',
|
|
120
|
+
'payment-mastercard',
|
|
121
|
+
'pin',
|
|
122
|
+
'placeholder',
|
|
123
|
+
'play',
|
|
124
|
+
'play-filled',
|
|
125
|
+
'podcast-amazon',
|
|
126
|
+
'podcast-applepodcast',
|
|
127
|
+
'podcast-deezer',
|
|
128
|
+
'podcast-googlepodcasts',
|
|
129
|
+
'podcast-spotify',
|
|
130
|
+
'politik',
|
|
131
|
+
'push-notification',
|
|
132
|
+
'questionmark-circle',
|
|
133
|
+
'quote',
|
|
134
|
+
'raetsel',
|
|
135
|
+
'ratgeber',
|
|
136
|
+
'regio',
|
|
137
|
+
'reise',
|
|
138
|
+
'reload',
|
|
139
|
+
'replay',
|
|
140
|
+
'ressorts',
|
|
141
|
+
'revocation',
|
|
142
|
+
'rewind-ten-sec',
|
|
143
|
+
'search',
|
|
144
|
+
'send',
|
|
145
|
+
'settings',
|
|
146
|
+
'sex-und-liebe',
|
|
147
|
+
'share',
|
|
148
|
+
'sharecast',
|
|
149
|
+
'shopping-cart',
|
|
150
|
+
'show',
|
|
151
|
+
'sign-up',
|
|
152
|
+
'skip-next',
|
|
153
|
+
'skip-next-chevron',
|
|
154
|
+
'skip-next-filled',
|
|
155
|
+
'skip-previous',
|
|
156
|
+
'skip-previous-chevron',
|
|
157
|
+
'skip-previous-filled',
|
|
158
|
+
'skip-ten-sec',
|
|
159
|
+
'smartphone',
|
|
160
|
+
'social-facebook',
|
|
161
|
+
'social-fb-messagner',
|
|
162
|
+
'social-google',
|
|
163
|
+
'social-instagram',
|
|
164
|
+
'social-linkedin',
|
|
165
|
+
'social-snapchat',
|
|
166
|
+
'social-whatsapp',
|
|
167
|
+
'social-x-twitter',
|
|
168
|
+
'social-xing',
|
|
169
|
+
'social-youtube',
|
|
170
|
+
'speed',
|
|
171
|
+
'sport',
|
|
172
|
+
'sport-bild-logo',
|
|
173
|
+
'sport-live',
|
|
174
|
+
'sport-ticker',
|
|
175
|
+
'sportimtv',
|
|
176
|
+
'ssl',
|
|
177
|
+
'star',
|
|
178
|
+
'substract',
|
|
179
|
+
'sz-ticker',
|
|
180
|
+
'telephone',
|
|
181
|
+
'tennis',
|
|
182
|
+
'three-dot-horizontal',
|
|
183
|
+
'three-dot-vertical',
|
|
184
|
+
'thumbs-down',
|
|
185
|
+
'thumbs-up',
|
|
186
|
+
'trending',
|
|
187
|
+
'tv',
|
|
188
|
+
'unlocked',
|
|
189
|
+
'unquote',
|
|
190
|
+
'unterhaltung',
|
|
191
|
+
'upload',
|
|
192
|
+
'us-sport',
|
|
193
|
+
'verimi',
|
|
194
|
+
'video',
|
|
195
|
+
'video-error',
|
|
196
|
+
'video-recommendations',
|
|
197
|
+
'volume-down',
|
|
198
|
+
'volume-up',
|
|
199
|
+
'vote',
|
|
200
|
+
'warning',
|
|
201
|
+
'web',
|
|
202
|
+
'wetter',
|
|
203
|
+
'wrestling',
|
|
204
|
+
'zoom-in',
|
|
205
|
+
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as o,p as r,H as t,h as a}from"./index.js";const
|
|
1
|
+
import{t as o,p as r,H as t,h as a}from"./index.js";import{d as e}from"./p-o-zDLqwP.js";const n=r(class extends t{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.variant="primary-brand",this.disabled=!1,this.iconPosition="start"}render(){const o=this.icon?a("ds-icon",{name:this.icon}):null;return a("button",{key:"000508b5713956932132412d59f9ba1b9baa96c7",class:{"ds-button":!0,["ds-button--"+this.variant]:!0,"ds-button--disabled":this.disabled},disabled:this.disabled},"start"===this.iconPosition&&o,a("span",{key:"1cf189f05c1f2cdb82f54f6f2283eaa9c6e38381",class:"ds-button__label"},a("slot",{key:"89eadaa81aaa4e458e46b29e02291ad45c027101"})),"end"===this.iconPosition&&o)}static get style(){return":host{display:inline-block}.ds-button{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;border:none;background:transparent;transition:background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;padding:var(--button-stack-space) var(--button-inline-space);min-height:var(--button-height-size);gap:var(--button-content-gap-space);border-radius:var(--button-border-radius);font-family:var(--button-label-font-family);font-weight:var(--font-weight-bold);font-size:var(--button-label-font-size);line-height:var(--button-label-line-height);letter-spacing:var(--letter-space-0-p-5);text-transform:uppercase}.ds-button__label{display:inline-flex;align-items:center;gap:inherit}ds-icon{flex-shrink:0}.ds-button--primary-brand{background-color:var(--button-primary-brand-bg-color-idle);color:var(--button-primary-brand-label-color)}.ds-button--primary-brand:hover:not(:disabled){background-color:var(--button-primary-brand-bg-color-hover)}.ds-button--primary-brand:active:not(:disabled){background-color:var(--button-primary-brand-bg-color-active)}.ds-button--primary-neutral{background-color:var(--button-primary-neutral-bg-color-idle);color:var(--button-primary-neutral-label-color)}.ds-button--primary-neutral:hover:not(:disabled){background-color:var(--button-primary-neutral-bg-color-hover)}.ds-button--primary-neutral:active:not(:disabled){background-color:var(--button-primary-neutral-bg-color-active)}.ds-button--primary-success{background-color:var(--button-primary-success-bg-color-idle);color:var(--button-primary-success-label-color)}.ds-button--primary-success:hover:not(:disabled){background-color:var(--button-primary-success-bg-color-hover)}.ds-button--primary-success:active:not(:disabled){background-color:var(--button-primary-success-bg-color-active)}.ds-button--secondary{background-color:var(--button-secondary-bg-color-idle);color:var(--button-secondary-label-color)}.ds-button--secondary:hover:not(:disabled){background-color:var(--button-secondary-bg-color-hover)}.ds-button--secondary:active:not(:disabled){background-color:var(--button-secondary-bg-color-active)}.ds-button--tertiary-neutral{background-color:transparent;color:var(--button-tertiary-neutral-label-color);border:var(--button-border-width-size) solid var(--button-tertiary-neutral-border-color-idle)}.ds-button--tertiary-neutral:hover:not(:disabled){background-color:var(--button-tertiary-neutral-bg-color-hover);border-color:var(--button-tertiary-neutral-border-color-hover)}.ds-button--tertiary-neutral:active:not(:disabled){background-color:var(--button-tertiary-neutral-bg-color-active)}.ds-button--tertiary-success{background-color:transparent;color:var(--button-tertiary-success-label-color);border:var(--button-border-width-size) solid var(--button-tertiary-success-border-color)}.ds-button--tertiary-success:hover:not(:disabled){background-color:var(--button-tertiary-success-bg-color-hover)}.ds-button--ghost{background-color:transparent;color:var(--button-ghost-label-color)}.ds-button--ghost:hover:not(:disabled){background-color:var(--button-ghost-bg-color-hover)}.ds-button--ghost:active:not(:disabled){background-color:var(--button-ghost-bg-color-active)}.ds-button--disabled,.ds-button:disabled{cursor:not-allowed;background-color:var(--button-disabled-bg-color);color:var(--button-disabled-label-color);border-color:var(--button-disabled-border-color)}.ds-button--disabled:hover,.ds-button--disabled:active,.ds-button:disabled:hover,.ds-button:disabled:active{background-color:var(--button-disabled-bg-color);color:var(--button-disabled-label-color);border-color:var(--button-disabled-border-color)}.ds-button:focus-visible{outline:2px solid var(--core-color-primary);outline-offset:2px}"}},[257,"ds-button",{variant:[1],disabled:[4],icon:[1],iconPosition:[1,"icon-position"]}]);function s(){"undefined"!=typeof customElements&&["ds-button","ds-icon"].forEach((r=>{switch(r){case"ds-button":customElements.get(o(r))||customElements.define(o(r),n);break;case"ds-icon":customElements.get(o(r))||e()}}))}s();const b=n,c=s;export{b as DsButton,c as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as a,p as r,H as
|
|
1
|
+
import{t as a,p as r,H as d,h as s}from"./index.js";const e=r(class extends d{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.surface="primary"}render(){return s("div",{key:"545dfb7389201a046b465e96723fdc8ad5cd1160",class:{"ds-card":!0,["ds-card--"+this.surface]:!0}},this.cardTitle&&s("div",{key:"63523222100e039098a941c2125df63a7bc8a0ee",class:"ds-card__header"},s("h3",{key:"7e60906b0aeb4d8d20fc09a85d06f4d0bd4a95ae",class:"ds-card__title"},this.cardTitle)),s("div",{key:"544d6b4e6ac95745261ee73c81f2d01c2806afd3",class:"ds-card__content"},s("slot",{key:"9102bcc585687daf5d954059a138ad7bac27b640"})))}static get style(){return":host{display:block}.ds-card{border-radius:var(--border-radius-lg, 8px);overflow:hidden;transition:box-shadow 0.2s ease}.ds-card--primary{background-color:var(--card-surface-bg-color, var(--surface-color-primary, #FFFFFF));box-shadow:var(--shadow-soft-md, 0 2px 8px rgba(0, 0, 0, 0.1))}.ds-card--secondary{background-color:var(--surface-color-secondary, #F8F9FA);box-shadow:var(--shadow-soft-sm, 0 1px 4px rgba(0, 0, 0, 0.08))}.ds-card__header{padding:var(--space-2-x, 16px) var(--space-2-x, 16px) 0}.ds-card__title{margin:0;font-family:var(--font-family-gotham-narrow, sans-serif);font-weight:var(--font-weight-bold, 700);font-size:var(--headline-3-font-size, 20px);line-height:var(--headline-3-line-height, 24px);color:var(--text-color-primary, #232629)}.ds-card__content{padding:var(--space-2-x, 16px)}.ds-card--primary:hover{box-shadow:var(--shadow-soft-lg, 0 4px 16px rgba(0, 0, 0, 0.12))}"}},[257,"ds-card",{surface:[1],cardTitle:[1,"card-title"]}]);function c(){"undefined"!=typeof customElements&&["ds-card"].forEach((r=>{"ds-card"===r&&(customElements.get(a(r))||customElements.define(a(r),e))}))}c();const o=e,t=c;export{o as DsCard,t as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{D as o,d as s}from"./p-o-zDLqwP.js";const p=o,r=s;export{p as DsIcon,r as defineCustomElement}
|