@synergy-design-system/metadata 3.0.1 → 3.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/CHANGELOG.md +23 -0
- package/data/core/component/component:syn-icon-button.json +0 -5
- package/data/core/setup/setup:angular-components-module.json +1 -1
- package/data/core/setup/setup:angular-forms-module.json +1 -1
- package/data/core/setup/setup:angular-package.json +2 -2
- package/data/core/setup/setup:angular-validators-module.json +1 -1
- package/data/core/setup/setup:components-package.json +2 -2
- package/data/core/setup/setup:react-package.json +2 -2
- package/data/core/setup/setup:styles-package.json +2 -2
- package/data/core/setup/setup:tokens-package.json +2 -2
- package/data/core/setup/setup:vue-package.json +2 -2
- package/data/core/style/style:syn-body.json +1 -1
- package/data/core/style/style:syn-heading.json +1 -1
- package/data/core/style/style:syn-link-list.json +1 -1
- package/data/core/style/style:syn-link.json +1 -1
- package/data/core/style/style:syn-table-cell.json +1 -1
- package/data/core/style/style:syn-table.json +1 -1
- package/data/core/style/style:syn-weight.json +1 -1
- package/data/core/template/template:loading-screen.json +22 -0
- package/data/core/token/token:tokens-figma-variables-sick2018-dark-json.json +1 -1
- package/data/core/token/token:tokens-figma-variables-sick2018-light-json.json +1 -1
- package/data/core/token/token:tokens-figma-variables-sick2025-dark-json.json +1 -1
- package/data/core/token/token:tokens-figma-variables-sick2025-light-json.json +1 -1
- package/data/core/token/token:tokens-js-index-d-ts.json +1 -1
- package/data/core/token/token:tokens-js-index-js.json +1 -1
- package/data/core/token/token:tokens-scss-tokens-scss.json +1 -1
- package/data/core/token/token:tokens-themes-sick2018-dark-css.json +1 -1
- package/data/core/token/token:tokens-themes-sick2018-light-css.json +1 -1
- package/data/core/token/token:tokens-themes-sick2025-dark-css.json +1 -1
- package/data/core/token/token:tokens-themes-sick2025-light-css.json +1 -1
- package/data/index.json +16 -2
- package/data/layers/examples/component/component:syn-icon-button.md +72 -43
- package/data/layers/examples/style/style:syn-body.md +28 -1
- package/data/layers/examples/style/style:syn-heading.md +44 -1
- package/data/layers/examples/template/template:loading-screen.md +393 -0
- package/data/layers/full/component/component:syn-icon-button/components/icon-button.component.ts +10 -10
- package/data/layers/full/component/component:syn-icon-button/components/icon-button.styles.ts +78 -19
- package/data/layers/full/component/component:syn-icon-button/components/icon-button.ts +0 -1
- package/data/layers/full/setup/setup:angular-package/angular/CHANGELOG.md +16 -0
- package/data/layers/full/setup/setup:angular-package/angular/package.json +1 -1
- package/data/layers/full/setup/setup:components-package/components/CHANGELOG.md +20 -0
- package/data/layers/full/setup/setup:components-package/components/package.json +1 -1
- package/data/layers/full/setup/setup:react-package/react/CHANGELOG.md +16 -0
- package/data/layers/full/setup/setup:react-package/react/package.json +1 -1
- package/data/layers/full/setup/setup:styles-package/styles/CHANGELOG.md +13 -0
- package/data/layers/full/setup/setup:styles-package/styles/package.json +1 -1
- package/data/layers/full/setup/setup:tokens-package/tokens/CHANGELOG.md +15 -0
- package/data/layers/full/setup/setup:tokens-package/tokens/package.json +1 -1
- package/data/layers/full/setup/setup:vue-package/vue/CHANGELOG.md +16 -0
- package/data/layers/full/setup/setup:vue-package/vue/package.json +1 -1
- package/data/layers/full/styles/typography/body.css +6 -2
- package/data/layers/full/styles/typography/heading.css +9 -1
- package/data/layers/full/tokens/js/index.d.ts +16 -1
- package/data/layers/full/tokens/js/index.js +16 -1
- package/data/layers/full/tokens/scss/_tokens.scss +4 -1
- package/data/layers/full/tokens/themes/sick2018_dark.css +4 -1
- package/data/layers/full/tokens/themes/sick2018_light.css +4 -1
- package/data/layers/full/tokens/themes/sick2025_dark.css +4 -1
- package/data/layers/full/tokens/themes/sick2025_light.css +4 -1
- package/data/manifest.json +1 -1
- package/package.json +6 -6
- package/data/layers/full/component/component:syn-icon-button/components/icon-button.custom.styles.ts +0 -79
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
## Default
|
|
2
2
|
|
|
3
3
|
```html
|
|
4
|
-
<span class="syn-heading--
|
|
4
|
+
<span class="syn-heading--4x-large"> This is a default heading text </span>
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Available Headings
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<section class="heading-stories-list">
|
|
13
|
+
<h6 class="syn-heading--medium">
|
|
14
|
+
The quick brown fox jumped over the lazy dog.
|
|
15
|
+
</h6>
|
|
16
|
+
<h5 class="syn-heading--large">
|
|
17
|
+
The quick brown fox jumped over the lazy dog.
|
|
18
|
+
</h5>
|
|
19
|
+
<h4 class="syn-heading--x-large">
|
|
20
|
+
The quick brown fox jumped over the lazy dog.
|
|
21
|
+
</h4>
|
|
22
|
+
<h3 class="syn-heading--2x-large">
|
|
23
|
+
The quick brown fox jumped over the lazy dog.
|
|
24
|
+
</h3>
|
|
25
|
+
<h2 class="syn-heading--3x-large">
|
|
26
|
+
The quick brown fox jumped over the lazy dog.
|
|
27
|
+
</h2>
|
|
28
|
+
<h1 class="syn-heading--4x-large">
|
|
29
|
+
The quick brown fox jumped over the lazy dog.
|
|
30
|
+
</h1>
|
|
31
|
+
</section>
|
|
32
|
+
<style>
|
|
33
|
+
section.heading-stories-list {
|
|
34
|
+
display: flex;
|
|
35
|
+
gap: var(--syn-spacing-medium);
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
|
|
38
|
+
h1,
|
|
39
|
+
h2,
|
|
40
|
+
h3,
|
|
41
|
+
h4,
|
|
42
|
+
h5,
|
|
43
|
+
h6 {
|
|
44
|
+
margin: 0;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
</style>
|
|
5
48
|
```
|
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
## Loading Screen Light Theme
|
|
2
|
+
|
|
3
|
+
The loading screen can be displayed in light mode, which is the default theme for all applications.
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<div style="height: 400px">Content Placeholder</div>
|
|
7
|
+
|
|
8
|
+
<!-- Begin of loading screen -->
|
|
9
|
+
<div
|
|
10
|
+
aria-busy="true"
|
|
11
|
+
role="status"
|
|
12
|
+
style="
|
|
13
|
+
align-items: center;
|
|
14
|
+
background: #fff;
|
|
15
|
+
display: flex;
|
|
16
|
+
inset: 0;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
position: absolute;
|
|
19
|
+
will-change: transform;
|
|
20
|
+
z-index: calc(infinity);
|
|
21
|
+
"
|
|
22
|
+
>
|
|
23
|
+
<svg
|
|
24
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
25
|
+
viewBox="0 0 360 360"
|
|
26
|
+
width="360"
|
|
27
|
+
height="360"
|
|
28
|
+
aria-label="Loading"
|
|
29
|
+
role="img"
|
|
30
|
+
>
|
|
31
|
+
<title>Loading</title>
|
|
32
|
+
<g transform="translate(180 180)" fill="#005aff">
|
|
33
|
+
<circle cx="0" cy="-171" r="5" opacity="1"></circle>
|
|
34
|
+
<circle cx="65" cy="-158" r="5" opacity="0">
|
|
35
|
+
<animate
|
|
36
|
+
attributeName="opacity"
|
|
37
|
+
values="1;1;0;0"
|
|
38
|
+
keyTimes="0;0.5;0.5;1"
|
|
39
|
+
repeatCount="indefinite"
|
|
40
|
+
dur="1.5s"
|
|
41
|
+
begin="0.09375s"
|
|
42
|
+
></animate>
|
|
43
|
+
</circle>
|
|
44
|
+
<circle cx="121" cy="-121" r="5" opacity="0">
|
|
45
|
+
<animate
|
|
46
|
+
attributeName="opacity"
|
|
47
|
+
values="1;1;0;0"
|
|
48
|
+
keyTimes="0;0.5;0.5;1"
|
|
49
|
+
repeatCount="indefinite"
|
|
50
|
+
dur="1.5s"
|
|
51
|
+
begin="0.140625s"
|
|
52
|
+
></animate>
|
|
53
|
+
</circle>
|
|
54
|
+
<circle cx="158" cy="-65" r="5" opacity="0">
|
|
55
|
+
<animate
|
|
56
|
+
attributeName="opacity"
|
|
57
|
+
values="1;1;0;0"
|
|
58
|
+
keyTimes="0;0.5;0.5;1"
|
|
59
|
+
repeatCount="indefinite"
|
|
60
|
+
dur="1.5s"
|
|
61
|
+
begin="0.1875s"
|
|
62
|
+
></animate>
|
|
63
|
+
</circle>
|
|
64
|
+
<circle cx="171" cy="0" r="5" opacity="0">
|
|
65
|
+
<animate
|
|
66
|
+
attributeName="opacity"
|
|
67
|
+
values="1;1;0;0"
|
|
68
|
+
keyTimes="0;0.5;0.5;1"
|
|
69
|
+
repeatCount="indefinite"
|
|
70
|
+
dur="1.5s"
|
|
71
|
+
begin="0.234375s"
|
|
72
|
+
></animate>
|
|
73
|
+
</circle>
|
|
74
|
+
<circle cx="158" cy="65" r="5" opacity="0">
|
|
75
|
+
<animate
|
|
76
|
+
attributeName="opacity"
|
|
77
|
+
values="1;1;0;0"
|
|
78
|
+
keyTimes="0;0.5;0.5;1"
|
|
79
|
+
repeatCount="indefinite"
|
|
80
|
+
dur="1.5s"
|
|
81
|
+
begin="0.28125s"
|
|
82
|
+
></animate>
|
|
83
|
+
</circle>
|
|
84
|
+
<circle cx="121" cy="121" r="5" opacity="0">
|
|
85
|
+
<animate
|
|
86
|
+
attributeName="opacity"
|
|
87
|
+
values="1;1;0;0"
|
|
88
|
+
keyTimes="0;0.5;0.5;1"
|
|
89
|
+
repeatCount="indefinite"
|
|
90
|
+
dur="1.5s"
|
|
91
|
+
begin="0.328125s"
|
|
92
|
+
></animate>
|
|
93
|
+
</circle>
|
|
94
|
+
<circle cx="65" cy="158" r="5" opacity="0">
|
|
95
|
+
<animate
|
|
96
|
+
attributeName="opacity"
|
|
97
|
+
values="1;1;0;0"
|
|
98
|
+
keyTimes="0;0.5;0.5;1"
|
|
99
|
+
repeatCount="indefinite"
|
|
100
|
+
dur="1.5s"
|
|
101
|
+
begin="0.375s"
|
|
102
|
+
></animate>
|
|
103
|
+
</circle>
|
|
104
|
+
<circle cx="0" cy="171" r="5" opacity="0">
|
|
105
|
+
<animate
|
|
106
|
+
attributeName="opacity"
|
|
107
|
+
values="1;1;0;0"
|
|
108
|
+
keyTimes="0;0.5;0.5;1"
|
|
109
|
+
repeatCount="indefinite"
|
|
110
|
+
dur="1.5s"
|
|
111
|
+
begin="0.421875s"
|
|
112
|
+
></animate>
|
|
113
|
+
</circle>
|
|
114
|
+
<circle cx="-65" cy="158" r="5" opacity="0">
|
|
115
|
+
<animate
|
|
116
|
+
attributeName="opacity"
|
|
117
|
+
values="1;1;0;0"
|
|
118
|
+
keyTimes="0;0.5;0.5;1"
|
|
119
|
+
repeatCount="indefinite"
|
|
120
|
+
dur="1.5s"
|
|
121
|
+
begin="0.46875s"
|
|
122
|
+
></animate>
|
|
123
|
+
</circle>
|
|
124
|
+
<circle cx="-121" cy="121" r="5" opacity="0">
|
|
125
|
+
<animate
|
|
126
|
+
attributeName="opacity"
|
|
127
|
+
values="1;1;0;0"
|
|
128
|
+
keyTimes="0;0.5;0.5;1"
|
|
129
|
+
repeatCount="indefinite"
|
|
130
|
+
dur="1.5s"
|
|
131
|
+
begin="0.515625s"
|
|
132
|
+
></animate>
|
|
133
|
+
</circle>
|
|
134
|
+
<circle cx="-158" cy="65" r="5" opacity="0">
|
|
135
|
+
<animate
|
|
136
|
+
attributeName="opacity"
|
|
137
|
+
values="1;1;0;0"
|
|
138
|
+
keyTimes="0;0.5;0.5;1"
|
|
139
|
+
repeatCount="indefinite"
|
|
140
|
+
dur="1.5s"
|
|
141
|
+
begin="0.5625s"
|
|
142
|
+
></animate>
|
|
143
|
+
</circle>
|
|
144
|
+
<circle cx="-171" cy="0" r="5" opacity="0">
|
|
145
|
+
<animate
|
|
146
|
+
attributeName="opacity"
|
|
147
|
+
values="1;1;0;0"
|
|
148
|
+
keyTimes="0;0.5;0.5;1"
|
|
149
|
+
repeatCount="indefinite"
|
|
150
|
+
dur="1.5s"
|
|
151
|
+
begin="0.609375s"
|
|
152
|
+
></animate>
|
|
153
|
+
</circle>
|
|
154
|
+
<circle cx="-158" cy="-65" r="5" opacity="0">
|
|
155
|
+
<animate
|
|
156
|
+
attributeName="opacity"
|
|
157
|
+
values="1;1;0;0"
|
|
158
|
+
keyTimes="0;0.5;0.5;1"
|
|
159
|
+
repeatCount="indefinite"
|
|
160
|
+
dur="1.5s"
|
|
161
|
+
begin="0.65625s"
|
|
162
|
+
></animate>
|
|
163
|
+
</circle>
|
|
164
|
+
<circle cx="-121" cy="-121" r="5" opacity="0">
|
|
165
|
+
<animate
|
|
166
|
+
attributeName="opacity"
|
|
167
|
+
values="1;1;0;0"
|
|
168
|
+
keyTimes="0;0.5;0.5;1"
|
|
169
|
+
repeatCount="indefinite"
|
|
170
|
+
dur="1.5s"
|
|
171
|
+
begin="0.703125s"
|
|
172
|
+
></animate>
|
|
173
|
+
</circle>
|
|
174
|
+
<circle cx="-65" cy="-158" r="5" opacity="0">
|
|
175
|
+
<animate
|
|
176
|
+
attributeName="opacity"
|
|
177
|
+
values="1;1;0;0"
|
|
178
|
+
keyTimes="0;0.5;0.5;1"
|
|
179
|
+
repeatCount="indefinite"
|
|
180
|
+
dur="1.5s"
|
|
181
|
+
begin="0.75s"
|
|
182
|
+
></animate>
|
|
183
|
+
</circle>
|
|
184
|
+
</g>
|
|
185
|
+
|
|
186
|
+
<g transform="translate(180 180) scale(0.58) translate(-147.5 -74)">
|
|
187
|
+
<path
|
|
188
|
+
d="M0.153685 70.3263H54.2782C62.1961 68.7465 61.3146 58.7595 54.2782 57.3757H26.4942C11.7042 57.3757 0 44.7431 0 29.6971C0 15.2239 10.8168 1.67781 26.4942 1.67781H56.9828C69.5519 1.67781 78.5289 11.0934 78.5289 23.0341H26.4957C19.4985 24.035 19.0555 34.7637 26.4942 35.9832H54.2029C69.4088 36.3902 81.5303 48.4982 81.5303 63.8276C81.5303 77.9526 69.5504 92.1424 54.2767 92.1424H25.7032C13.5454 92.1424 0.150673 85.5758 0.150673 70.3263H0.153685ZM89.5521 1.67329V92.1408H110.907V1.67329H89.5521ZM208.029 69.2681L188.933 58.8937C184.736 67.0551 176.273 72.5242 166.773 72.5242C153.199 72.5242 141.84 61.3524 141.84 47.1309C141.84 32.9095 153.198 21.7392 166.773 21.7392C176.082 21.7392 184.349 26.9957 188.625 34.8828L207.746 24.5596C199.828 9.92365 184.449 0 166.773 0C141.002 0 120.113 21.1 120.113 47.1309C120.113 73.1618 141.002 94.2649 166.773 94.2649C184.622 94.2649 200.18 84.1437 208.029 69.2681ZM216.078 1.67329V92.1408H237.675V57.0893H245.266L267.993 92.1408H294.556L264.406 47.4776L295 1.67329H268.446L245.995 37.9565H237.677V1.67329H216.078ZM0.748842 123.219C0.748842 118.555 5.61405 116.376 9.76508 116.376C14.2898 116.376 18.2027 118.452 19.155 123.422H15.4123C14.6303 120.495 11.9408 119.61 9.59482 119.61C7.79127 119.61 4.69495 120.462 4.69495 123.048C4.69495 125.091 6.32824 126.146 8.43766 126.588L11.3637 127.201C15.3113 128.019 19.6311 129.515 19.6311 134.486C19.6311 139.388 14.9362 141.94 10.1387 141.94C4.42224 141.94 0.578582 138.774 0 133.601H3.8105C4.5262 136.971 6.80437 138.706 10.2759 138.706C13.4746 138.706 15.7197 137.175 15.7197 134.792C15.7197 132.238 13.2697 131.217 10.6164 130.673L7.58786 130.06C4.08322 129.345 0.750347 127.37 0.750347 123.217L0.748842 123.219ZM39.4656 136.12C38.6158 139.15 35.8932 141.94 31.2314 141.94C25.3115 141.94 22.1142 137.617 22.1142 132.307C22.1142 126.623 25.9247 122.845 31.1304 122.845C36.7791 122.845 40.0789 127.474 39.7037 133.432H25.7544C26.095 136.803 28.2375 138.913 31.0958 138.913C33.6467 138.913 35.1443 137.858 35.8932 136.121L39.4656 136.12ZM36.0303 130.639C35.9278 127.915 34.0233 125.736 31.0973 125.736C28.3415 125.736 26.2999 127.165 25.8237 130.639H36.0303ZM52.1221 122.843C56.5443 122.843 58.2454 125.703 58.2454 129.957V141.497H54.7076V130.91C54.7076 128.255 54.2662 125.804 50.9303 125.804C47.8686 125.804 46.3709 128.017 46.3709 131.659V141.497H42.8332V123.184H46.3709V125.839C47.4256 124.034 49.2639 122.843 52.1221 122.843ZM68.5891 125.668C66.8533 125.668 64.9835 126.383 64.9835 127.881C64.9835 129.243 65.868 129.821 67.5344 130.162L70.1546 130.673C73.6246 131.355 76.6531 132.545 76.6531 136.12C76.6531 139.83 73.1816 141.94 68.9643 141.94C64.3371 141.94 61.5135 139.251 61.0705 135.812H64.6761C65.1523 137.888 66.5128 139.113 69.0652 139.113C71.3449 139.113 73.1138 138.161 73.1138 136.527C73.1138 134.825 71.5152 134.143 69.6091 133.77L66.8533 133.225C64.0975 132.681 61.512 131.456 61.512 128.017C61.512 124.784 64.9142 122.809 68.9281 122.809C72.603 122.809 75.5622 124.749 76.2432 128.29H72.7386C72.2278 126.418 70.6654 125.668 68.5891 125.668ZM87.506 141.94C83.1847 141.94 78.6254 139.012 78.6254 132.408C78.6254 125.771 83.1847 122.843 87.506 122.843C91.8604 122.843 96.4198 125.771 96.4198 132.408C96.4198 139.012 91.8604 141.94 87.506 141.94ZM92.6771 132.408C92.6771 127.847 90.1925 125.839 87.506 125.839C84.8512 125.839 82.3681 127.779 82.3681 132.408C82.3681 136.935 84.8512 138.945 87.506 138.945C90.194 138.945 92.6771 136.869 92.6771 132.408ZM107.306 126.724C104.583 126.724 103.155 128.052 103.155 131.897V141.497H99.6171V123.184H103.087V126.418C104.039 124.342 105.876 123.149 108.156 123.116C108.462 123.116 108.837 123.116 109.143 123.151V126.828C108.496 126.76 107.883 126.724 107.306 126.724ZM119.895 141.498V116.82H123.773V141.498H119.895ZM137.654 122.843C142.077 122.843 143.778 125.703 143.778 129.957V141.497H140.24V130.91C140.24 128.255 139.798 125.804 136.462 125.804C133.401 125.804 131.903 128.017 131.903 131.659V141.497H128.365V123.184H131.903V125.839C132.958 124.034 134.796 122.843 137.654 122.843ZM151.943 118.487V123.184H155.548V125.873H151.943V136.323C151.943 138.195 152.248 138.672 154.017 138.672H155.515V141.497H152.929C149.221 141.497 148.405 140.577 148.405 136.8V125.872H145.616V123.183H148.405V118.485L151.943 118.487ZM174.397 136.12C173.547 139.15 170.825 141.94 166.163 141.94C160.243 141.94 157.046 137.617 157.046 132.307C157.046 126.623 160.856 122.845 166.062 122.845C171.711 122.845 175.011 127.474 174.635 133.432H160.686C161.027 136.803 163.169 138.913 166.027 138.913C168.578 138.913 170.076 137.858 170.825 136.121L174.397 136.12ZM170.962 130.639C170.859 127.915 168.955 125.736 166.029 125.736C163.273 125.736 161.232 127.165 160.755 130.639H170.962ZM177.595 141.498V116.82H181.132V141.498H177.595ZM185.386 141.498V116.82H188.924V141.498H185.386ZM196.716 120.733H193.179V116.818H196.716V120.733ZM196.716 141.498H193.179V123.186H196.716V141.498ZM216.687 123.184V139.353C216.687 142.722 215.972 144.527 214.713 145.787C213.317 147.251 211.106 148 208.317 148C204.233 148 201.24 146.23 200.661 142.383H204.301C204.675 144.052 205.73 145.038 208.383 145.038C210.119 145.038 211.309 144.561 212.058 143.71C212.772 142.927 213.146 141.973 213.146 140.101V138.161C212.023 140.033 210.185 141.191 207.499 141.191C203.245 141.191 199.707 137.82 199.707 132C199.707 126.213 203.245 122.843 207.499 122.843C210.187 122.843 212.023 124.001 213.146 125.873V123.184H216.684H216.687ZM203.486 132C203.486 135.982 205.391 138.298 208.317 138.298C211.039 138.298 213.284 136.393 213.284 132C213.284 127.643 211.039 125.771 208.317 125.771C205.391 125.771 203.486 128.085 203.486 132ZM236.997 136.12C236.147 139.15 233.425 141.94 228.763 141.94C222.843 141.94 219.646 137.617 219.646 132.307C219.646 126.623 223.456 122.845 228.662 122.845C234.311 122.845 237.61 127.474 237.235 133.432H223.286C223.626 136.803 225.769 138.913 228.627 138.913C231.178 138.913 232.676 137.858 233.425 136.121L236.997 136.12ZM233.562 130.639C233.459 127.915 231.555 125.736 228.629 125.736C225.873 125.736 223.831 127.165 223.355 130.639H233.562ZM249.483 122.843C253.906 122.843 255.607 125.703 255.607 129.957V141.497H252.069V130.91C252.069 128.255 251.627 125.804 248.292 125.804C245.23 125.804 243.732 128.017 243.732 131.659V141.497H240.194V123.184H243.732V125.839C244.787 124.034 246.625 122.843 249.483 122.843ZM271.497 129.38C271.123 127.302 269.252 125.873 266.937 125.873C264.385 125.873 262.037 127.881 262.037 132.34C262.037 136.867 264.42 138.91 266.937 138.91C269.182 138.91 271.156 137.582 271.632 135.404H275.205C274.489 139.251 270.918 141.94 266.869 141.94C261.596 141.94 258.262 137.889 258.262 132.375C258.262 126.929 261.698 122.843 267.108 122.843C271.293 122.843 274.49 125.804 275.034 129.38H271.497ZM294.29 136.12C293.441 139.15 290.718 141.94 286.056 141.94C280.136 141.94 276.939 137.617 276.939 132.307C276.939 126.623 280.749 122.845 285.955 122.845C291.604 122.845 294.904 127.474 294.528 133.432H280.579C280.92 136.803 283.062 138.913 285.921 138.913C288.471 138.913 289.969 137.858 290.718 136.121L294.29 136.12ZM290.854 130.639C290.751 127.915 288.847 125.736 285.921 125.736C283.165 125.736 281.123 127.165 280.647 130.639H290.854Z"
|
|
189
|
+
fill="#005aff"
|
|
190
|
+
></path>
|
|
191
|
+
</g>
|
|
192
|
+
</svg>
|
|
193
|
+
</div>
|
|
194
|
+
<!-- End of loading screen -->
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
## Loading Screen Dark Theme
|
|
200
|
+
|
|
201
|
+
The loading screen can be displayed in dark mode, which is suitable for low-light environments or user preferences.
|
|
202
|
+
|
|
203
|
+
```html
|
|
204
|
+
<div style="height: 400px">Content Placeholder</div>
|
|
205
|
+
|
|
206
|
+
<!-- Begin of loading screen -->
|
|
207
|
+
<div
|
|
208
|
+
aria-busy="true"
|
|
209
|
+
role="status"
|
|
210
|
+
style="
|
|
211
|
+
align-items: center;
|
|
212
|
+
background: #000206;
|
|
213
|
+
display: flex;
|
|
214
|
+
inset: 0;
|
|
215
|
+
justify-content: center;
|
|
216
|
+
position: absolute;
|
|
217
|
+
will-change: transform;
|
|
218
|
+
z-index: calc(infinity);
|
|
219
|
+
"
|
|
220
|
+
>
|
|
221
|
+
<svg
|
|
222
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
223
|
+
viewBox="0 0 360 360"
|
|
224
|
+
width="360"
|
|
225
|
+
height="360"
|
|
226
|
+
aria-label="Loading"
|
|
227
|
+
role="img"
|
|
228
|
+
>
|
|
229
|
+
<title>Loading</title>
|
|
230
|
+
<g transform="translate(180 180)" fill="#005aff">
|
|
231
|
+
<circle cx="0" cy="-171" r="5" opacity="1"></circle>
|
|
232
|
+
<circle cx="65" cy="-158" r="5" opacity="0">
|
|
233
|
+
<animate
|
|
234
|
+
attributeName="opacity"
|
|
235
|
+
values="1;1;0;0"
|
|
236
|
+
keyTimes="0;0.5;0.5;1"
|
|
237
|
+
repeatCount="indefinite"
|
|
238
|
+
dur="1.5s"
|
|
239
|
+
begin="0.09375s"
|
|
240
|
+
></animate>
|
|
241
|
+
</circle>
|
|
242
|
+
<circle cx="121" cy="-121" r="5" opacity="0">
|
|
243
|
+
<animate
|
|
244
|
+
attributeName="opacity"
|
|
245
|
+
values="1;1;0;0"
|
|
246
|
+
keyTimes="0;0.5;0.5;1"
|
|
247
|
+
repeatCount="indefinite"
|
|
248
|
+
dur="1.5s"
|
|
249
|
+
begin="0.140625s"
|
|
250
|
+
></animate>
|
|
251
|
+
</circle>
|
|
252
|
+
<circle cx="158" cy="-65" r="5" opacity="0">
|
|
253
|
+
<animate
|
|
254
|
+
attributeName="opacity"
|
|
255
|
+
values="1;1;0;0"
|
|
256
|
+
keyTimes="0;0.5;0.5;1"
|
|
257
|
+
repeatCount="indefinite"
|
|
258
|
+
dur="1.5s"
|
|
259
|
+
begin="0.1875s"
|
|
260
|
+
></animate>
|
|
261
|
+
</circle>
|
|
262
|
+
<circle cx="171" cy="0" r="5" opacity="0">
|
|
263
|
+
<animate
|
|
264
|
+
attributeName="opacity"
|
|
265
|
+
values="1;1;0;0"
|
|
266
|
+
keyTimes="0;0.5;0.5;1"
|
|
267
|
+
repeatCount="indefinite"
|
|
268
|
+
dur="1.5s"
|
|
269
|
+
begin="0.234375s"
|
|
270
|
+
></animate>
|
|
271
|
+
</circle>
|
|
272
|
+
<circle cx="158" cy="65" r="5" opacity="0">
|
|
273
|
+
<animate
|
|
274
|
+
attributeName="opacity"
|
|
275
|
+
values="1;1;0;0"
|
|
276
|
+
keyTimes="0;0.5;0.5;1"
|
|
277
|
+
repeatCount="indefinite"
|
|
278
|
+
dur="1.5s"
|
|
279
|
+
begin="0.28125s"
|
|
280
|
+
></animate>
|
|
281
|
+
</circle>
|
|
282
|
+
<circle cx="121" cy="121" r="5" opacity="0">
|
|
283
|
+
<animate
|
|
284
|
+
attributeName="opacity"
|
|
285
|
+
values="1;1;0;0"
|
|
286
|
+
keyTimes="0;0.5;0.5;1"
|
|
287
|
+
repeatCount="indefinite"
|
|
288
|
+
dur="1.5s"
|
|
289
|
+
begin="0.328125s"
|
|
290
|
+
></animate>
|
|
291
|
+
</circle>
|
|
292
|
+
<circle cx="65" cy="158" r="5" opacity="0">
|
|
293
|
+
<animate
|
|
294
|
+
attributeName="opacity"
|
|
295
|
+
values="1;1;0;0"
|
|
296
|
+
keyTimes="0;0.5;0.5;1"
|
|
297
|
+
repeatCount="indefinite"
|
|
298
|
+
dur="1.5s"
|
|
299
|
+
begin="0.375s"
|
|
300
|
+
></animate>
|
|
301
|
+
</circle>
|
|
302
|
+
<circle cx="0" cy="171" r="5" opacity="0">
|
|
303
|
+
<animate
|
|
304
|
+
attributeName="opacity"
|
|
305
|
+
values="1;1;0;0"
|
|
306
|
+
keyTimes="0;0.5;0.5;1"
|
|
307
|
+
repeatCount="indefinite"
|
|
308
|
+
dur="1.5s"
|
|
309
|
+
begin="0.421875s"
|
|
310
|
+
></animate>
|
|
311
|
+
</circle>
|
|
312
|
+
<circle cx="-65" cy="158" r="5" opacity="0">
|
|
313
|
+
<animate
|
|
314
|
+
attributeName="opacity"
|
|
315
|
+
values="1;1;0;0"
|
|
316
|
+
keyTimes="0;0.5;0.5;1"
|
|
317
|
+
repeatCount="indefinite"
|
|
318
|
+
dur="1.5s"
|
|
319
|
+
begin="0.46875s"
|
|
320
|
+
></animate>
|
|
321
|
+
</circle>
|
|
322
|
+
<circle cx="-121" cy="121" r="5" opacity="0">
|
|
323
|
+
<animate
|
|
324
|
+
attributeName="opacity"
|
|
325
|
+
values="1;1;0;0"
|
|
326
|
+
keyTimes="0;0.5;0.5;1"
|
|
327
|
+
repeatCount="indefinite"
|
|
328
|
+
dur="1.5s"
|
|
329
|
+
begin="0.515625s"
|
|
330
|
+
></animate>
|
|
331
|
+
</circle>
|
|
332
|
+
<circle cx="-158" cy="65" r="5" opacity="0">
|
|
333
|
+
<animate
|
|
334
|
+
attributeName="opacity"
|
|
335
|
+
values="1;1;0;0"
|
|
336
|
+
keyTimes="0;0.5;0.5;1"
|
|
337
|
+
repeatCount="indefinite"
|
|
338
|
+
dur="1.5s"
|
|
339
|
+
begin="0.5625s"
|
|
340
|
+
></animate>
|
|
341
|
+
</circle>
|
|
342
|
+
<circle cx="-171" cy="0" r="5" opacity="0">
|
|
343
|
+
<animate
|
|
344
|
+
attributeName="opacity"
|
|
345
|
+
values="1;1;0;0"
|
|
346
|
+
keyTimes="0;0.5;0.5;1"
|
|
347
|
+
repeatCount="indefinite"
|
|
348
|
+
dur="1.5s"
|
|
349
|
+
begin="0.609375s"
|
|
350
|
+
></animate>
|
|
351
|
+
</circle>
|
|
352
|
+
<circle cx="-158" cy="-65" r="5" opacity="0">
|
|
353
|
+
<animate
|
|
354
|
+
attributeName="opacity"
|
|
355
|
+
values="1;1;0;0"
|
|
356
|
+
keyTimes="0;0.5;0.5;1"
|
|
357
|
+
repeatCount="indefinite"
|
|
358
|
+
dur="1.5s"
|
|
359
|
+
begin="0.65625s"
|
|
360
|
+
></animate>
|
|
361
|
+
</circle>
|
|
362
|
+
<circle cx="-121" cy="-121" r="5" opacity="0">
|
|
363
|
+
<animate
|
|
364
|
+
attributeName="opacity"
|
|
365
|
+
values="1;1;0;0"
|
|
366
|
+
keyTimes="0;0.5;0.5;1"
|
|
367
|
+
repeatCount="indefinite"
|
|
368
|
+
dur="1.5s"
|
|
369
|
+
begin="0.703125s"
|
|
370
|
+
></animate>
|
|
371
|
+
</circle>
|
|
372
|
+
<circle cx="-65" cy="-158" r="5" opacity="0">
|
|
373
|
+
<animate
|
|
374
|
+
attributeName="opacity"
|
|
375
|
+
values="1;1;0;0"
|
|
376
|
+
keyTimes="0;0.5;0.5;1"
|
|
377
|
+
repeatCount="indefinite"
|
|
378
|
+
dur="1.5s"
|
|
379
|
+
begin="0.75s"
|
|
380
|
+
></animate>
|
|
381
|
+
</circle>
|
|
382
|
+
</g>
|
|
383
|
+
|
|
384
|
+
<g transform="translate(180 180) scale(0.58) translate(-147.5 -74)">
|
|
385
|
+
<path
|
|
386
|
+
d="M0.153685 70.3263H54.2782C62.1961 68.7465 61.3146 58.7595 54.2782 57.3757H26.4942C11.7042 57.3757 0 44.7431 0 29.6971C0 15.2239 10.8168 1.67781 26.4942 1.67781H56.9828C69.5519 1.67781 78.5289 11.0934 78.5289 23.0341H26.4957C19.4985 24.035 19.0555 34.7637 26.4942 35.9832H54.2029C69.4088 36.3902 81.5303 48.4982 81.5303 63.8276C81.5303 77.9526 69.5504 92.1424 54.2767 92.1424H25.7032C13.5454 92.1424 0.150673 85.5758 0.150673 70.3263H0.153685ZM89.5521 1.67329V92.1408H110.907V1.67329H89.5521ZM208.029 69.2681L188.933 58.8937C184.736 67.0551 176.273 72.5242 166.773 72.5242C153.199 72.5242 141.84 61.3524 141.84 47.1309C141.84 32.9095 153.198 21.7392 166.773 21.7392C176.082 21.7392 184.349 26.9957 188.625 34.8828L207.746 24.5596C199.828 9.92365 184.449 0 166.773 0C141.002 0 120.113 21.1 120.113 47.1309C120.113 73.1618 141.002 94.2649 166.773 94.2649C184.622 94.2649 200.18 84.1437 208.029 69.2681ZM216.078 1.67329V92.1408H237.675V57.0893H245.266L267.993 92.1408H294.556L264.406 47.4776L295 1.67329H268.446L245.995 37.9565H237.677V1.67329H216.078ZM0.748842 123.219C0.748842 118.555 5.61405 116.376 9.76508 116.376C14.2898 116.376 18.2027 118.452 19.155 123.422H15.4123C14.6303 120.495 11.9408 119.61 9.59482 119.61C7.79127 119.61 4.69495 120.462 4.69495 123.048C4.69495 125.091 6.32824 126.146 8.43766 126.588L11.3637 127.201C15.3113 128.019 19.6311 129.515 19.6311 134.486C19.6311 139.388 14.9362 141.94 10.1387 141.94C4.42224 141.94 0.578582 138.774 0 133.601H3.8105C4.5262 136.971 6.80437 138.706 10.2759 138.706C13.4746 138.706 15.7197 137.175 15.7197 134.792C15.7197 132.238 13.2697 131.217 10.6164 130.673L7.58786 130.06C4.08322 129.345 0.750347 127.37 0.750347 123.217L0.748842 123.219ZM39.4656 136.12C38.6158 139.15 35.8932 141.94 31.2314 141.94C25.3115 141.94 22.1142 137.617 22.1142 132.307C22.1142 126.623 25.9247 122.845 31.1304 122.845C36.7791 122.845 40.0789 127.474 39.7037 133.432H25.7544C26.095 136.803 28.2375 138.913 31.0958 138.913C33.6467 138.913 35.1443 137.858 35.8932 136.121L39.4656 136.12ZM36.0303 130.639C35.9278 127.915 34.0233 125.736 31.0973 125.736C28.3415 125.736 26.2999 127.165 25.8237 130.639H36.0303ZM52.1221 122.843C56.5443 122.843 58.2454 125.703 58.2454 129.957V141.497H54.7076V130.91C54.7076 128.255 54.2662 125.804 50.9303 125.804C47.8686 125.804 46.3709 128.017 46.3709 131.659V141.497H42.8332V123.184H46.3709V125.839C47.4256 124.034 49.2639 122.843 52.1221 122.843ZM68.5891 125.668C66.8533 125.668 64.9835 126.383 64.9835 127.881C64.9835 129.243 65.868 129.821 67.5344 130.162L70.1546 130.673C73.6246 131.355 76.6531 132.545 76.6531 136.12C76.6531 139.83 73.1816 141.94 68.9643 141.94C64.3371 141.94 61.5135 139.251 61.0705 135.812H64.6761C65.1523 137.888 66.5128 139.113 69.0652 139.113C71.3449 139.113 73.1138 138.161 73.1138 136.527C73.1138 134.825 71.5152 134.143 69.6091 133.77L66.8533 133.225C64.0975 132.681 61.512 131.456 61.512 128.017C61.512 124.784 64.9142 122.809 68.9281 122.809C72.603 122.809 75.5622 124.749 76.2432 128.29H72.7386C72.2278 126.418 70.6654 125.668 68.5891 125.668ZM87.506 141.94C83.1847 141.94 78.6254 139.012 78.6254 132.408C78.6254 125.771 83.1847 122.843 87.506 122.843C91.8604 122.843 96.4198 125.771 96.4198 132.408C96.4198 139.012 91.8604 141.94 87.506 141.94ZM92.6771 132.408C92.6771 127.847 90.1925 125.839 87.506 125.839C84.8512 125.839 82.3681 127.779 82.3681 132.408C82.3681 136.935 84.8512 138.945 87.506 138.945C90.194 138.945 92.6771 136.869 92.6771 132.408ZM107.306 126.724C104.583 126.724 103.155 128.052 103.155 131.897V141.497H99.6171V123.184H103.087V126.418C104.039 124.342 105.876 123.149 108.156 123.116C108.462 123.116 108.837 123.116 109.143 123.151V126.828C108.496 126.76 107.883 126.724 107.306 126.724ZM119.895 141.498V116.82H123.773V141.498H119.895ZM137.654 122.843C142.077 122.843 143.778 125.703 143.778 129.957V141.497H140.24V130.91C140.24 128.255 139.798 125.804 136.462 125.804C133.401 125.804 131.903 128.017 131.903 131.659V141.497H128.365V123.184H131.903V125.839C132.958 124.034 134.796 122.843 137.654 122.843ZM151.943 118.487V123.184H155.548V125.873H151.943V136.323C151.943 138.195 152.248 138.672 154.017 138.672H155.515V141.497H152.929C149.221 141.497 148.405 140.577 148.405 136.8V125.872H145.616V123.183H148.405V118.485L151.943 118.487ZM174.397 136.12C173.547 139.15 170.825 141.94 166.163 141.94C160.243 141.94 157.046 137.617 157.046 132.307C157.046 126.623 160.856 122.845 166.062 122.845C171.711 122.845 175.011 127.474 174.635 133.432H160.686C161.027 136.803 163.169 138.913 166.027 138.913C168.578 138.913 170.076 137.858 170.825 136.121L174.397 136.12ZM170.962 130.639C170.859 127.915 168.955 125.736 166.029 125.736C163.273 125.736 161.232 127.165 160.755 130.639H170.962ZM177.595 141.498V116.82H181.132V141.498H177.595ZM185.386 141.498V116.82H188.924V141.498H185.386ZM196.716 120.733H193.179V116.818H196.716V120.733ZM196.716 141.498H193.179V123.186H196.716V141.498ZM216.687 123.184V139.353C216.687 142.722 215.972 144.527 214.713 145.787C213.317 147.251 211.106 148 208.317 148C204.233 148 201.24 146.23 200.661 142.383H204.301C204.675 144.052 205.73 145.038 208.383 145.038C210.119 145.038 211.309 144.561 212.058 143.71C212.772 142.927 213.146 141.973 213.146 140.101V138.161C212.023 140.033 210.185 141.191 207.499 141.191C203.245 141.191 199.707 137.82 199.707 132C199.707 126.213 203.245 122.843 207.499 122.843C210.187 122.843 212.023 124.001 213.146 125.873V123.184H216.684H216.687ZM203.486 132C203.486 135.982 205.391 138.298 208.317 138.298C211.039 138.298 213.284 136.393 213.284 132C213.284 127.643 211.039 125.771 208.317 125.771C205.391 125.771 203.486 128.085 203.486 132ZM236.997 136.12C236.147 139.15 233.425 141.94 228.763 141.94C222.843 141.94 219.646 137.617 219.646 132.307C219.646 126.623 223.456 122.845 228.662 122.845C234.311 122.845 237.61 127.474 237.235 133.432H223.286C223.626 136.803 225.769 138.913 228.627 138.913C231.178 138.913 232.676 137.858 233.425 136.121L236.997 136.12ZM233.562 130.639C233.459 127.915 231.555 125.736 228.629 125.736C225.873 125.736 223.831 127.165 223.355 130.639H233.562ZM249.483 122.843C253.906 122.843 255.607 125.703 255.607 129.957V141.497H252.069V130.91C252.069 128.255 251.627 125.804 248.292 125.804C245.23 125.804 243.732 128.017 243.732 131.659V141.497H240.194V123.184H243.732V125.839C244.787 124.034 246.625 122.843 249.483 122.843ZM271.497 129.38C271.123 127.302 269.252 125.873 266.937 125.873C264.385 125.873 262.037 127.881 262.037 132.34C262.037 136.867 264.42 138.91 266.937 138.91C269.182 138.91 271.156 137.582 271.632 135.404H275.205C274.489 139.251 270.918 141.94 266.869 141.94C261.596 141.94 258.262 137.889 258.262 132.375C258.262 126.929 261.698 122.843 267.108 122.843C271.293 122.843 274.49 125.804 275.034 129.38H271.497ZM294.29 136.12C293.441 139.15 290.718 141.94 286.056 141.94C280.136 141.94 276.939 137.617 276.939 132.307C276.939 126.623 280.749 122.845 285.955 122.845C291.604 122.845 294.904 127.474 294.528 133.432H280.579C280.92 136.803 283.062 138.913 285.921 138.913C288.471 138.913 289.969 137.858 290.718 136.121L294.29 136.12ZM290.854 130.639C290.751 127.915 288.847 125.736 285.921 125.736C283.165 125.736 281.123 127.165 280.647 130.639H290.854Z"
|
|
387
|
+
fill="#005aff"
|
|
388
|
+
></path>
|
|
389
|
+
</g>
|
|
390
|
+
</svg>
|
|
391
|
+
</div>
|
|
392
|
+
<!-- End of loading screen -->
|
|
393
|
+
```
|
package/data/layers/full/component/component:syn-icon-button/components/icon-button.component.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { CSSResultGroup } from 'lit';
|
|
2
2
|
import { classMap } from 'lit/directives/class-map.js';
|
|
3
3
|
import { html, literal } from 'lit/static-html.js';
|
|
4
4
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
@@ -7,8 +7,6 @@ import componentStyles from '../../styles/component.styles.js';
|
|
|
7
7
|
import SynergyElement from '../../internal/synergy-element.js';
|
|
8
8
|
import SynIcon from '../icon/icon.component.js';
|
|
9
9
|
import styles from './icon-button.styles.js';
|
|
10
|
-
import customStyles from './icon-button.custom.styles.js';
|
|
11
|
-
import type { CSSResultGroup } from 'lit';
|
|
12
10
|
import { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';
|
|
13
11
|
|
|
14
12
|
/**
|
|
@@ -26,7 +24,8 @@ import { enableDefaultSettings } from '../../utilities/defaultSettings/decorator
|
|
|
26
24
|
*/
|
|
27
25
|
@enableDefaultSettings('SynIconButton')
|
|
28
26
|
export default class SynIconButton extends SynergyElement {
|
|
29
|
-
static styles: CSSResultGroup = [componentStyles, styles
|
|
27
|
+
static styles: CSSResultGroup = [componentStyles, styles];
|
|
28
|
+
|
|
30
29
|
static dependencies = { 'syn-icon': SynIcon };
|
|
31
30
|
|
|
32
31
|
@query('.icon-button') button: HTMLButtonElement | HTMLLinkElement;
|
|
@@ -67,10 +66,10 @@ export default class SynIconButton extends SynergyElement {
|
|
|
67
66
|
* The color of the icon button.
|
|
68
67
|
* The default "currentColor" makes it possible to easily style the icon button from outside without any CSS variables.
|
|
69
68
|
*/
|
|
70
|
-
@property({ reflect: true }) color: 'currentColor' | 'primary' | 'neutral'
|
|
69
|
+
@property({ reflect: true }) color: 'currentColor' | 'primary' | 'neutral' = 'currentColor';
|
|
71
70
|
|
|
72
71
|
/** Disables the button. */
|
|
73
|
-
@property({
|
|
72
|
+
@property({ reflect: true, type: Boolean }) disabled = false;
|
|
74
73
|
|
|
75
74
|
private handleBlur() {
|
|
76
75
|
this.hasFocus = false;
|
|
@@ -104,11 +103,12 @@ export default class SynIconButton extends SynergyElement {
|
|
|
104
103
|
this.button.blur();
|
|
105
104
|
}
|
|
106
105
|
|
|
106
|
+
// eslint-disable-next-line complexity
|
|
107
107
|
render() {
|
|
108
|
-
const isLink = this.href
|
|
108
|
+
const isLink = !!this.href;
|
|
109
109
|
const tag = isLink ? literal`a` : literal`button`;
|
|
110
110
|
|
|
111
|
-
/* eslint-disable lit/binding-positions, lit/no-invalid-html */
|
|
111
|
+
/* eslint-disable lit/binding-positions, lit/no-invalid-html, @typescript-eslint/unbound-method */
|
|
112
112
|
return html`
|
|
113
113
|
<${tag}
|
|
114
114
|
part="base"
|
|
@@ -116,9 +116,9 @@ export default class SynIconButton extends SynergyElement {
|
|
|
116
116
|
'icon-button': true,
|
|
117
117
|
'icon-button--disabled': !isLink && this.disabled,
|
|
118
118
|
'icon-button--focused': this.hasFocus,
|
|
119
|
-
'icon-button--small': this.size === 'small',
|
|
120
|
-
'icon-button--medium': this.size === 'medium',
|
|
121
119
|
'icon-button--large': this.size === 'large',
|
|
120
|
+
'icon-button--medium': this.size === 'medium',
|
|
121
|
+
'icon-button--small': this.size === 'small',
|
|
122
122
|
})}
|
|
123
123
|
?disabled=${ifDefined(isLink ? undefined : this.disabled)}
|
|
124
124
|
type=${ifDefined(isLink ? undefined : 'button')}
|
package/data/layers/full/component/component:syn-icon-button/components/icon-button.styles.ts
CHANGED
|
@@ -1,26 +1,36 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
1
|
import { css } from 'lit';
|
|
3
2
|
|
|
4
3
|
export default css`
|
|
5
|
-
/* stylelint-disable */
|
|
6
4
|
:host {
|
|
7
|
-
display: inline-block;
|
|
8
5
|
color: var(--syn-color-neutral-600);
|
|
6
|
+
display: inline-block;
|
|
9
7
|
}
|
|
10
8
|
|
|
11
9
|
.icon-button {
|
|
12
|
-
flex: 0 0 auto;
|
|
13
|
-
display: flex;
|
|
14
10
|
align-items: center;
|
|
11
|
+
/* stylelint-disable-next-line property-no-vendor-prefix */
|
|
12
|
+
-webkit-appearance: none;
|
|
13
|
+
appearance: none;
|
|
15
14
|
background: none;
|
|
16
15
|
border: none;
|
|
17
|
-
border-radius:
|
|
16
|
+
border-radius: 0;
|
|
17
|
+
color: currentColor;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
display: flex;
|
|
20
|
+
flex: 0 0 auto;
|
|
18
21
|
font-size: inherit;
|
|
19
|
-
color: inherit;
|
|
20
22
|
padding: var(--syn-spacing-x-small);
|
|
21
|
-
cursor: pointer;
|
|
22
23
|
transition: var(--syn-transition-x-fast) color;
|
|
23
|
-
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.icon-button:focus {
|
|
27
|
+
outline: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.icon-button:focus-visible {
|
|
31
|
+
border-radius: var(--syn-icon-button-focus-ring-border-radius); /* Remove round borders */
|
|
32
|
+
outline: var(--syn-focus-ring);
|
|
33
|
+
outline-offset: var(--syn-focus-ring-offset);
|
|
24
34
|
}
|
|
25
35
|
|
|
26
36
|
.icon-button:hover:not(.icon-button--disabled),
|
|
@@ -32,21 +42,70 @@ export default css`
|
|
|
32
42
|
color: var(--syn-color-primary-700);
|
|
33
43
|
}
|
|
34
44
|
|
|
35
|
-
.icon-button:focus {
|
|
36
|
-
outline: none;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
45
|
.icon-button--disabled {
|
|
40
|
-
opacity: 0.5;
|
|
41
46
|
cursor: not-allowed;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
.icon-button:focus-visible {
|
|
45
|
-
outline: var(--syn-focus-ring);
|
|
46
|
-
outline-offset: var(--syn-focus-ring-offset);
|
|
47
|
+
opacity: var(--syn-input-disabled-opacity); /* #429: Use token for opacity */
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
.icon-button__icon {
|
|
50
51
|
pointer-events: none;
|
|
51
52
|
}
|
|
53
|
+
|
|
54
|
+
/* Colors */
|
|
55
|
+
:host([color="currentColor"]) {
|
|
56
|
+
color: currentColor;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
:host([color="primary"]),
|
|
60
|
+
:host([color="primary"]) .icon-button:focus-visible:not(.icon-button--disabled) {
|
|
61
|
+
color: var(--syn-interactive-emphasis-color);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:host([color="primary"]) .icon-button:hover:not(.icon-button--disabled) {
|
|
65
|
+
color: var(--syn-interactive-emphasis-color-hover);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:host([color="primary"]) .icon-button:active:not(.icon-button--disabled) {
|
|
69
|
+
color: var(--syn-interactive-emphasis-color-active);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:host([color="neutral"]) {
|
|
73
|
+
color: var(--syn-interactive-quiet-color);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:host([color="neutral"]) .icon-button:hover:not(.icon-button--disabled) {
|
|
77
|
+
color: var(--syn-interactive-quiet-color-hover);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
:host([color="neutral"]) .icon-button:active:not(.icon-button--disabled) {
|
|
81
|
+
color: var(--syn-interactive-quiet-color-active);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
:host([color="neutral"]) .icon-button:focus-visible:not(.icon-button--disabled):not(:hover) {
|
|
85
|
+
color: var(--syn-interactive-quiet-color);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* Sizes */
|
|
89
|
+
.icon-button--small {
|
|
90
|
+
font-size: var(--syn-font-size-medium);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.icon-button--medium {
|
|
94
|
+
font-size: var(--syn-font-size-x-large);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.icon-button--large {
|
|
98
|
+
font-size: var(--syn-font-size-2x-large);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* Force user to set "label" prop */
|
|
102
|
+
.icon-button[aria-label=""] {
|
|
103
|
+
border: var(--syn-border-width-large) var(--syn-color-error-600) solid;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.icon-button[aria-label=""]::after {
|
|
107
|
+
content: "Set label prop for a11y to get rid of this text and border!";
|
|
108
|
+
font-size: var(--syn-font-size-2x-small);
|
|
109
|
+
margin-left: var(--syn-spacing-2x-small);
|
|
110
|
+
}
|
|
52
111
|
`;
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @synergy-design-system/angular
|
|
2
2
|
|
|
3
|
+
## 3.13.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`2444517`](https://github.com/synergy-design-system/synergy-design-system/commit/2444517aaedc22b115d9572dd14d47c43189ec5d)]:
|
|
8
|
+
- @synergy-design-system/components@3.13.1
|
|
9
|
+
- @synergy-design-system/tokens@3.13.1
|
|
10
|
+
|
|
11
|
+
## 3.13.0
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`930328a`](https://github.com/synergy-design-system/synergy-design-system/commit/930328af3af87ba91738b89984ad7b11edd78ec5)]:
|
|
16
|
+
- @synergy-design-system/tokens@3.13.0
|
|
17
|
+
- @synergy-design-system/components@3.13.0
|
|
18
|
+
|
|
3
19
|
## 3.12.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|