@oiz/stzh-components 3.0.0-beta3 → 3.0.0-beta4
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/cjs/{app-globals-0cbebaa1.js → app-globals-5897b76e.js} +39 -14
- package/dist/cjs/app-globals-5897b76e.js.map +1 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/stzh-appointments.cjs.entry.js +11 -8
- package/dist/cjs/stzh-appointments.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-badge_3.cjs.entry.js +1 -1
- package/dist/cjs/stzh-badge_3.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-calendar.cjs.entry.js +1 -1
- package/dist/cjs/stzh-calendar.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-card_3.cjs.entry.js +16 -19
- package/dist/cjs/stzh-card_3.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-chip.cjs.entry.js +2 -2
- package/dist/cjs/stzh-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-components.cjs.js +2 -2
- package/dist/cjs/stzh-content.cjs.entry.js +1 -1
- package/dist/cjs/stzh-content.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
- package/dist/cjs/stzh-cspace.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-cta.cjs.entry.js +1 -1
- package/dist/cjs/stzh-cta.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +9 -4
- package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-datamessagelist.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datamessagelist.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-datepicker_3.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datepicker_3.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-dropdown.cjs.entry.js +8 -2
- package/dist/cjs/stzh-dropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-header.cjs.entry.js +15 -5
- package/dist/cjs/stzh-header.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-iframe.cjs.entry.js +11 -3
- package/dist/cjs/stzh-iframe.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-imagecomparison.cjs.entry.js +2 -2
- package/dist/cjs/stzh-imagecomparison.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-link.cjs.entry.js +1 -1
- package/dist/cjs/stzh-link.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-search.cjs.entry.js +20 -3
- package/dist/cjs/stzh-search.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js +1 -1
- package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js.map +1 -1
- package/dist/collection/assets/i18n/de.json +2 -2
- package/dist/collection/assets/i18n/en.json +2 -2
- package/dist/collection/components/stzh-appointments/stzh-appointments.css +99 -19
- package/dist/collection/components/stzh-appointments/stzh-appointments.js +9 -7
- package/dist/collection/components/stzh-appointments/stzh-appointments.js.map +1 -1
- package/dist/collection/components/stzh-appointments/stzh-appointments.stories.js +7 -1
- package/dist/collection/components/stzh-button/stzh-button.css +10 -10
- package/dist/collection/components/stzh-calendar/stzh-calendar.css +0 -2
- package/dist/collection/components/stzh-card/stzh-card.css +0 -27
- package/dist/collection/components/stzh-card/stzh-card.js +12 -94
- package/dist/collection/components/stzh-card/stzh-card.js.map +1 -1
- package/dist/collection/components/stzh-card/stzh-card.stories.js +0 -17
- package/dist/collection/components/stzh-chip/stzh-chip.css +22 -10
- package/dist/collection/components/stzh-chip/stzh-chip.js +2 -2
- package/dist/collection/components/stzh-chip/stzh-chip.js.map +1 -1
- package/dist/collection/components/stzh-chipselect/stzh-chipselect.js +3 -1
- package/dist/collection/components/stzh-chipselect/stzh-chipselect.js.map +1 -1
- package/dist/collection/components/stzh-content/stzh-content.css +3 -3
- package/dist/collection/components/stzh-cspace/stzh-cspace.css +36 -0
- package/dist/collection/components/stzh-cta/stzh-cta.css +22 -36
- package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.css +0 -5
- package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.stories.js +26 -0
- package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.css +26 -16
- package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.js +26 -3
- package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.js.map +1 -1
- package/dist/collection/components/stzh-datepicker/stzh-datepicker.css +18 -3
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +288 -40
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +108 -4
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.js.map +1 -1
- package/dist/collection/components/stzh-header/stzh-header.css +15 -13
- package/dist/collection/components/stzh-header/stzh-header.js +19 -6
- package/dist/collection/components/stzh-header/stzh-header.js.map +1 -1
- package/dist/collection/components/stzh-iframe/stzh-iframe.js +160 -3
- package/dist/collection/components/stzh-iframe/stzh-iframe.js.map +1 -1
- package/dist/collection/components/stzh-imagecomparison/stzh-imagecomparison.css +12 -17
- package/dist/collection/components/stzh-imagecomparison/stzh-imagecomparison.js +1 -1
- package/dist/collection/components/stzh-imagecomparison/stzh-imagecomparison.js.map +1 -1
- package/dist/collection/components/stzh-link/stzh-link.js +19 -19
- package/dist/collection/components/stzh-link/stzh-link.js.map +1 -1
- package/dist/collection/components/stzh-search/stzh-search.css +70 -0
- package/dist/collection/components/stzh-search/stzh-search.js +72 -3
- package/dist/collection/components/stzh-search/stzh-search.js.map +1 -1
- package/dist/collection/components/stzh-search/stzh-search.stories.js +3 -0
- package/dist/collection/components/stzh-skin-portal-mitwirken/stzh-skin-portal-mitwirken.css +7 -7
- package/dist/collection/global/js/helpers/autofocus.js +36 -11
- package/dist/collection/global/js/script.js +2 -0
- package/dist/collection/index.js.map +1 -1
- package/dist/components/index.js +38 -13
- package/dist/components/index.js.map +1 -1
- package/dist/components/index2.js.map +1 -1
- package/dist/components/stzh-appointments.js +11 -9
- package/dist/components/stzh-appointments.js.map +1 -1
- package/dist/components/stzh-button2.js +1 -1
- package/dist/components/stzh-button2.js.map +1 -1
- package/dist/components/stzh-calendar2.js +1 -1
- package/dist/components/stzh-calendar2.js.map +1 -1
- package/dist/components/stzh-card2.js +13 -22
- package/dist/components/stzh-card2.js.map +1 -1
- package/dist/components/stzh-chip2.js +3 -3
- package/dist/components/stzh-chip2.js.map +1 -1
- package/dist/components/stzh-chipselect2.js +3 -1
- package/dist/components/stzh-chipselect2.js.map +1 -1
- package/dist/components/stzh-content.js +1 -1
- package/dist/components/stzh-content.js.map +1 -1
- package/dist/components/stzh-cspace.js +1 -1
- package/dist/components/stzh-cspace.js.map +1 -1
- package/dist/components/stzh-cta.js +1 -1
- package/dist/components/stzh-cta.js.map +1 -1
- package/dist/components/stzh-datamessagelist-item.js +10 -4
- package/dist/components/stzh-datamessagelist-item.js.map +1 -1
- package/dist/components/stzh-datamessagelist.js +1 -1
- package/dist/components/stzh-datamessagelist.js.map +1 -1
- package/dist/components/stzh-datepicker2.js +1 -1
- package/dist/components/stzh-datepicker2.js.map +1 -1
- package/dist/components/stzh-dropdown2.js +12 -2
- package/dist/components/stzh-dropdown2.js.map +1 -1
- package/dist/components/stzh-header.js +17 -5
- package/dist/components/stzh-header.js.map +1 -1
- package/dist/components/stzh-iframe2.js +19 -3
- package/dist/components/stzh-iframe2.js.map +1 -1
- package/dist/components/stzh-imagecomparison.js +2 -2
- package/dist/components/stzh-imagecomparison.js.map +1 -1
- package/dist/components/stzh-link2.js +2 -2
- package/dist/components/stzh-link2.js.map +1 -1
- package/dist/components/stzh-search.js +49 -16
- package/dist/components/stzh-search.js.map +1 -1
- package/dist/components/stzh-skin-portal-mitwirken.js +1 -1
- package/dist/components/stzh-skin-portal-mitwirken.js.map +1 -1
- package/dist/esm/{app-globals-3c171b79.js → app-globals-6a7ed0f4.js} +39 -14
- package/dist/esm/app-globals-6a7ed0f4.js.map +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/stzh-appointments.entry.js +11 -8
- package/dist/esm/stzh-appointments.entry.js.map +1 -1
- package/dist/esm/stzh-badge_3.entry.js +1 -1
- package/dist/esm/stzh-badge_3.entry.js.map +1 -1
- package/dist/esm/stzh-calendar.entry.js +1 -1
- package/dist/esm/stzh-calendar.entry.js.map +1 -1
- package/dist/esm/stzh-card_3.entry.js +16 -19
- package/dist/esm/stzh-card_3.entry.js.map +1 -1
- package/dist/esm/stzh-chip.entry.js +3 -3
- package/dist/esm/stzh-chip.entry.js.map +1 -1
- package/dist/esm/stzh-components.js +2 -2
- package/dist/esm/stzh-content.entry.js +1 -1
- package/dist/esm/stzh-content.entry.js.map +1 -1
- package/dist/esm/stzh-cspace.entry.js +1 -1
- package/dist/esm/stzh-cspace.entry.js.map +1 -1
- package/dist/esm/stzh-cta.entry.js +1 -1
- package/dist/esm/stzh-cta.entry.js.map +1 -1
- package/dist/esm/stzh-datamessagelist-item.entry.js +9 -4
- package/dist/esm/stzh-datamessagelist-item.entry.js.map +1 -1
- package/dist/esm/stzh-datamessagelist.entry.js +1 -1
- package/dist/esm/stzh-datamessagelist.entry.js.map +1 -1
- package/dist/esm/stzh-datepicker_3.entry.js +1 -1
- package/dist/esm/stzh-datepicker_3.entry.js.map +1 -1
- package/dist/esm/stzh-dropdown.entry.js +8 -2
- package/dist/esm/stzh-dropdown.entry.js.map +1 -1
- package/dist/esm/stzh-header.entry.js +15 -5
- package/dist/esm/stzh-header.entry.js.map +1 -1
- package/dist/esm/stzh-iframe.entry.js +11 -3
- package/dist/esm/stzh-iframe.entry.js.map +1 -1
- package/dist/esm/stzh-imagecomparison.entry.js +2 -2
- package/dist/esm/stzh-imagecomparison.entry.js.map +1 -1
- package/dist/esm/stzh-link.entry.js +1 -1
- package/dist/esm/stzh-link.entry.js.map +1 -1
- package/dist/esm/stzh-search.entry.js +20 -3
- package/dist/esm/stzh-search.entry.js.map +1 -1
- package/dist/esm/stzh-skin-portal-mitwirken.entry.js +1 -1
- package/dist/esm/stzh-skin-portal-mitwirken.entry.js.map +1 -1
- package/dist/stzh-components/assets/i18n/de.json +2 -2
- package/dist/stzh-components/assets/i18n/en.json +2 -2
- package/dist/stzh-components/index.esm.js.map +1 -1
- package/dist/stzh-components/{p-3ca4f71a.entry.js → p-069e181f.entry.js} +2 -2
- package/dist/stzh-components/p-069e181f.entry.js.map +1 -0
- package/dist/stzh-components/p-1b78f602.entry.js +2 -0
- package/dist/stzh-components/p-1b78f602.entry.js.map +1 -0
- package/dist/stzh-components/p-295c8995.entry.js +2 -0
- package/dist/stzh-components/p-295c8995.entry.js.map +1 -0
- package/dist/stzh-components/p-2bbbc217.entry.js +9 -0
- package/dist/stzh-components/{p-b4ce8e10.entry.js.map → p-2bbbc217.entry.js.map} +1 -1
- package/dist/stzh-components/p-2d57953a.entry.js +2 -0
- package/dist/stzh-components/{p-1252aa01.entry.js.map → p-2d57953a.entry.js.map} +1 -1
- package/dist/stzh-components/p-2eb8f323.entry.js +2 -0
- package/dist/stzh-components/{p-62b88844.entry.js.map → p-2eb8f323.entry.js.map} +1 -1
- package/dist/stzh-components/p-45392fe0.entry.js +2 -0
- package/dist/stzh-components/p-45392fe0.entry.js.map +1 -0
- package/dist/stzh-components/{p-bd494b47.entry.js → p-523c0bb1.entry.js} +2 -2
- package/dist/stzh-components/p-523c0bb1.entry.js.map +1 -0
- package/dist/stzh-components/{p-e63dfe12.entry.js → p-5b9b2425.entry.js} +2 -2
- package/dist/stzh-components/{p-e63dfe12.entry.js.map → p-5b9b2425.entry.js.map} +1 -1
- package/dist/stzh-components/{p-bb87a6e2.entry.js → p-75fec3cd.entry.js} +2 -2
- package/dist/stzh-components/{p-bb87a6e2.entry.js.map → p-75fec3cd.entry.js.map} +1 -1
- package/dist/stzh-components/p-78eaea8d.js +2 -0
- package/dist/stzh-components/p-78eaea8d.js.map +1 -0
- package/dist/stzh-components/p-8ab62796.entry.js +2 -0
- package/dist/stzh-components/p-8ab62796.entry.js.map +1 -0
- package/dist/stzh-components/p-b0626969.entry.js +2 -0
- package/dist/stzh-components/p-b0626969.entry.js.map +1 -0
- package/dist/stzh-components/p-b34a4e7c.entry.js +2 -0
- package/dist/stzh-components/p-b34a4e7c.entry.js.map +1 -0
- package/dist/stzh-components/p-b5224e53.entry.js +2 -0
- package/dist/stzh-components/p-b5224e53.entry.js.map +1 -0
- package/dist/stzh-components/p-d1e6afe2.entry.js +2 -0
- package/dist/stzh-components/p-d1e6afe2.entry.js.map +1 -0
- package/dist/stzh-components/p-ddfb8df0.entry.js +2 -0
- package/dist/stzh-components/p-ddfb8df0.entry.js.map +1 -0
- package/dist/stzh-components/p-eb79f3ed.entry.js +2 -0
- package/dist/stzh-components/p-eb79f3ed.entry.js.map +1 -0
- package/dist/stzh-components/p-f50e0102.entry.js +2 -0
- package/dist/stzh-components/p-f50e0102.entry.js.map +1 -0
- package/dist/stzh-components/stzh-components.css +1 -1
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/stzh-components/stzh-components.esm.js.map +1 -1
- package/dist/types/components/stzh-card/stzh-card.d.ts +1 -5
- package/dist/types/components/stzh-datamessagelist-item/stzh-datamessagelist-item.d.ts +2 -0
- package/dist/types/components/stzh-dropdown/stzh-dropdown.d.ts +10 -2
- package/dist/types/components/stzh-header/stzh-header.d.ts +2 -2
- package/dist/types/components/stzh-iframe/stzh-iframe.d.ts +29 -1
- package/dist/types/components/stzh-link/stzh-link.d.ts +2 -2
- package/dist/types/components/stzh-search/stzh-search.d.ts +10 -0
- package/dist/types/components.d.ts +156 -38
- package/dist/types/index.d.ts +3 -0
- package/dist/vscode-data.json +140 -12
- package/package.json +1 -1
- package/dist/cjs/app-globals-0cbebaa1.js.map +0 -1
- package/dist/collection/patterns/appointments/appointments.e2e.js +0 -18
- package/dist/collection/patterns/appointments/appointments.e2e.js.map +0 -1
- package/dist/esm/app-globals-3c171b79.js.map +0 -1
- package/dist/stzh-components/p-1252aa01.entry.js +0 -2
- package/dist/stzh-components/p-18015613.entry.js +0 -2
- package/dist/stzh-components/p-18015613.entry.js.map +0 -1
- package/dist/stzh-components/p-38d64313.entry.js +0 -2
- package/dist/stzh-components/p-38d64313.entry.js.map +0 -1
- package/dist/stzh-components/p-39fa126d.js +0 -2
- package/dist/stzh-components/p-39fa126d.js.map +0 -1
- package/dist/stzh-components/p-3ca4f71a.entry.js.map +0 -1
- package/dist/stzh-components/p-4cff0c86.entry.js +0 -2
- package/dist/stzh-components/p-4cff0c86.entry.js.map +0 -1
- package/dist/stzh-components/p-5e48450d.entry.js +0 -2
- package/dist/stzh-components/p-5e48450d.entry.js.map +0 -1
- package/dist/stzh-components/p-62b88844.entry.js +0 -2
- package/dist/stzh-components/p-69c1826d.entry.js +0 -2
- package/dist/stzh-components/p-69c1826d.entry.js.map +0 -1
- package/dist/stzh-components/p-7091d652.entry.js +0 -2
- package/dist/stzh-components/p-7091d652.entry.js.map +0 -1
- package/dist/stzh-components/p-76902b7c.entry.js +0 -2
- package/dist/stzh-components/p-76902b7c.entry.js.map +0 -1
- package/dist/stzh-components/p-92285350.entry.js +0 -2
- package/dist/stzh-components/p-92285350.entry.js.map +0 -1
- package/dist/stzh-components/p-93e0ff47.entry.js +0 -2
- package/dist/stzh-components/p-93e0ff47.entry.js.map +0 -1
- package/dist/stzh-components/p-b4ce8e10.entry.js +0 -9
- package/dist/stzh-components/p-bd494b47.entry.js.map +0 -1
- package/dist/stzh-components/p-e6785bb1.entry.js +0 -2
- package/dist/stzh-components/p-e6785bb1.entry.js.map +0 -1
- package/dist/stzh-components/p-fb1d20da.entry.js +0 -2
- package/dist/stzh-components/p-fb1d20da.entry.js.map +0 -1
|
@@ -157,10 +157,11 @@
|
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
:host {
|
|
160
|
+
--calendar-width: var(--stzh-calendar-width);
|
|
160
161
|
width: 100%;
|
|
161
162
|
}
|
|
162
163
|
:host[inline]:not([inline=false]) {
|
|
163
|
-
width: var(--
|
|
164
|
+
width: var(--calendar-width);
|
|
164
165
|
}
|
|
165
166
|
|
|
166
167
|
.stzh-datepicker {
|
|
@@ -169,15 +170,29 @@
|
|
|
169
170
|
.stzh-datepicker__popover {
|
|
170
171
|
--width: auto;
|
|
171
172
|
}
|
|
173
|
+
.stzh-datepicker__calendar {
|
|
174
|
+
margin-left: auto;
|
|
175
|
+
margin-right: auto;
|
|
176
|
+
}
|
|
172
177
|
.stzh-datepicker__calendar.is-inline {
|
|
173
178
|
width: 100%;
|
|
179
|
+
margin-left: 0px;
|
|
180
|
+
margin-right: 0px;
|
|
174
181
|
}
|
|
175
182
|
.stzh-datepicker__actions {
|
|
176
183
|
display: flex;
|
|
177
|
-
|
|
184
|
+
width: var(--calendar-width);
|
|
185
|
+
margin-left: auto;
|
|
186
|
+
margin-right: auto;
|
|
187
|
+
}
|
|
188
|
+
.stzh-datepicker__actions.is-inline {
|
|
189
|
+
width: 100%;
|
|
190
|
+
margin-left: 0px;
|
|
191
|
+
margin-right: 0px;
|
|
178
192
|
}
|
|
179
193
|
.stzh-datepicker__actions:not(:empty) {
|
|
180
|
-
|
|
194
|
+
padding-left: var(--stzh-space-small);
|
|
195
|
+
padding-right: var(--stzh-space-small);
|
|
181
196
|
}
|
|
182
197
|
.stzh-datepicker--has-action .stzh-datepicker__popover {
|
|
183
198
|
--content-padding: 0 0 var(--stzh-space-small) 0;
|
|
@@ -166,17 +166,28 @@ stzh-dropdown {
|
|
|
166
166
|
display: block;
|
|
167
167
|
/* default outline value, which will be applied to all elements receiving focus
|
|
168
168
|
the .has-focus class is used by the focus target */
|
|
169
|
+
--font-size: var(--stzh-font-milli-font-size);
|
|
170
|
+
--line-height: var(--stzh-font-milli-text-line-height);
|
|
171
|
+
--letter-spacing: normal;
|
|
172
|
+
--height: var(--stzh-form-input-height);
|
|
173
|
+
--icon-size: var(--stzh-icon-size-medium);
|
|
174
|
+
--icon-angle-size: var(--stzh-icon-size-medium);
|
|
175
|
+
--padding-top: var(--stzh-space-xsmall);
|
|
176
|
+
--padding-bottom: var(--stzh-space-xsmall);
|
|
177
|
+
--padding-left: var(--stzh-space-medium);
|
|
178
|
+
--padding-right: var(--stzh-space-medium);
|
|
179
|
+
--icon-gap: var(--stzh-space-xsmall);
|
|
180
|
+
--icon-angle-gap: var(--stzh-space-xsmall);
|
|
181
|
+
--multiple-padding-top: calc(var(--stzh-space-xsmall) - 0.0625rem);
|
|
182
|
+
--multiple-padding-bottom: calc(var(--stzh-space-xsmall) - 0.0625rem);
|
|
169
183
|
--color: var(--stzh-color-secondary60);
|
|
170
184
|
--border-color: var(--stzh-color-grey70);
|
|
171
185
|
--border-radius: var(--stzh-form-input-border-radius);
|
|
172
186
|
--background-color: var(--stzh-color-white);
|
|
173
|
-
--height: var(--stzh-form-input-height);
|
|
174
187
|
--label-color: var(--stzh-color-primary);
|
|
175
188
|
--placeholder-color: var(--stzh-color-grey70);
|
|
176
|
-
--icon-
|
|
177
|
-
--icon-color: var(--stzh-color-
|
|
178
|
-
--icon-angle-size: var(--stzh-icon-size-medium);
|
|
179
|
-
--icon-angle-color: var(--stzh-color-grey80);
|
|
189
|
+
--icon-color: var(--stzh-color-primary70);
|
|
190
|
+
--icon-angle-color: var(--stzh-color-primary70);
|
|
180
191
|
--hover-color: var(--stzh-color-secondary60);
|
|
181
192
|
--hover-border-color: var(--stzh-color-secondary50);
|
|
182
193
|
--hover-background-color: var(--stzh-color-white);
|
|
@@ -239,22 +250,11 @@ stzh-dropdown .stzh-fylingfocus-focused {
|
|
|
239
250
|
stzh-dropdown .stzh-fylingfocus-focused::-moz-focus-inner {
|
|
240
251
|
border: 0 !important;
|
|
241
252
|
}
|
|
242
|
-
stzh-dropdown[
|
|
243
|
-
--background-color: transparent;
|
|
244
|
-
--hover-background-color: transparent;
|
|
245
|
-
--hover-label-color: var(--stzh-color-primary90);
|
|
246
|
-
--focus-background-color: transparent;
|
|
247
|
-
--focus-label-color: var(--stzh-color-primary90);
|
|
248
|
-
}
|
|
249
|
-
stzh-dropdown[inline]:not([inline=false]) {
|
|
253
|
+
stzh-dropdown:where([inline]:not([inline="false"])) {
|
|
250
254
|
--popover-width: auto;
|
|
251
255
|
width: auto;
|
|
252
256
|
}
|
|
253
|
-
stzh-dropdown[
|
|
254
|
-
--height: var(--stzh-form-input-small-height);
|
|
255
|
-
--icon-angle-size: var(--stzh-icon-size-small);
|
|
256
|
-
}
|
|
257
|
-
stzh-dropdown[is-filled]:not([is-filled=false]) {
|
|
257
|
+
stzh-dropdown:where([is-filled]:not([is-filled="false"])) {
|
|
258
258
|
--icon-color: var(--stzh-color-primary70);
|
|
259
259
|
--icon-angle-color: var(--stzh-color-primary70);
|
|
260
260
|
--hover-icon-color: var(--stzh-color-primary70);
|
|
@@ -262,6 +262,23 @@ stzh-dropdown[is-filled]:not([is-filled=false]) {
|
|
|
262
262
|
--focus-icon-angle-color: var(--stzh-color-black);
|
|
263
263
|
--focus-icon-color: var(--stzh-color-black);
|
|
264
264
|
}
|
|
265
|
+
stzh-dropdown:where([variant="plain"]) {
|
|
266
|
+
--background-color: transparent;
|
|
267
|
+
--hover-background-color: transparent;
|
|
268
|
+
--hover-label-color: var(--stzh-color-primary90);
|
|
269
|
+
--hover-icon-color: var(--stzh-color-primary90);
|
|
270
|
+
--hover-icon-angle-color: var(--stzh-color-primary90);
|
|
271
|
+
--focus-background-color: transparent;
|
|
272
|
+
--focus-label-color: var(--stzh-color-primary90);
|
|
273
|
+
--focus-icon-color: var(--stzh-color-primary90);
|
|
274
|
+
--focus-icon-angle-color: var(--stzh-color-primary90);
|
|
275
|
+
}
|
|
276
|
+
stzh-dropdown:where([variant="plain"][is-filled]:not([is-filled="false"])) {
|
|
277
|
+
--icon-color: var(--stzh-color-secondary60);
|
|
278
|
+
--icon-angle-color: var(--stzh-color-secondary60);
|
|
279
|
+
--hover-icon-color: var(--stzh-color-secondary60);
|
|
280
|
+
--hover-icon-angle-color: var(--stzh-color-secondary60);
|
|
281
|
+
}
|
|
265
282
|
stzh-dropdown[is-invalid] {
|
|
266
283
|
--color: var(--stzh-color-error60);
|
|
267
284
|
--border-color: var(--stzh-color-error60);
|
|
@@ -325,6 +342,248 @@ stzh-dropdown:is(:has(.ts-control:focus-within)) {
|
|
|
325
342
|
--icon-angle-color: var(--focus-icon-angle-color);
|
|
326
343
|
}
|
|
327
344
|
|
|
345
|
+
stzh-dropdown:where([size="small"]) {
|
|
346
|
+
--font-size: var(--stzh-font-milli-font-size);
|
|
347
|
+
--line-height: var(--stzh-font-milli-text-line-height);
|
|
348
|
+
--letter-spacing: normal;
|
|
349
|
+
--height: var(--stzh-form-input-small-height);
|
|
350
|
+
--icon-size: var(--stzh-icon-size-medium);
|
|
351
|
+
--icon-angle-size: var(--stzh-icon-size-medium);
|
|
352
|
+
--padding-top: var(--stzh-space-xxsmall);
|
|
353
|
+
--padding-bottom: var(--stzh-space-xxsmall);
|
|
354
|
+
--padding-left: var(--stzh-space-medium);
|
|
355
|
+
--padding-right: var(--stzh-space-medium);
|
|
356
|
+
--icon-gap: var(--stzh-space-xsmall);
|
|
357
|
+
--icon-angle-gap: var(--stzh-space-xsmall);
|
|
358
|
+
--multiple-padding-top: var(--stzh-space-xxsmall);
|
|
359
|
+
--multiple-padding-bottom: var(--stzh-space-xxsmall);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
stzh-dropdown:where([size="tiny"]) {
|
|
363
|
+
--font-size: var(--stzh-font-milli-font-size);
|
|
364
|
+
--line-height: var(--stzh-font-milli-text-line-height);
|
|
365
|
+
--letter-spacing: normal;
|
|
366
|
+
--height: var(--stzh-form-input-tiny-height);
|
|
367
|
+
--icon-size: var(--stzh-icon-size-medium);
|
|
368
|
+
--icon-angle-size: var(--stzh-icon-size-medium);
|
|
369
|
+
--padding-top: var(--stzh-space-xxsmall);
|
|
370
|
+
--padding-bottom: var(--stzh-space-xxsmall);
|
|
371
|
+
--padding-left: var(--stzh-space-medium);
|
|
372
|
+
--padding-right: var(--stzh-space-medium);
|
|
373
|
+
--icon-gap: var(--stzh-space-xsmall);
|
|
374
|
+
--icon-angle-gap: var(--stzh-space-xsmall);
|
|
375
|
+
--multiple-padding-top: var(--stzh-space-xxsmall);
|
|
376
|
+
--multiple-padding-bottom: var(--stzh-space-xxsmall);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
@media screen and (min-width: 600px) {
|
|
380
|
+
stzh-dropdown:where([size-small="default"]) {
|
|
381
|
+
--font-size: var(--stzh-font-milli-font-size);
|
|
382
|
+
--line-height: var(--stzh-font-milli-text-line-height);
|
|
383
|
+
--letter-spacing: normal;
|
|
384
|
+
--height: var(--stzh-form-input-height);
|
|
385
|
+
--icon-size: var(--stzh-icon-size-medium);
|
|
386
|
+
--icon-angle-size: var(--stzh-icon-size-medium);
|
|
387
|
+
--padding-top: var(--stzh-space-xsmall);
|
|
388
|
+
--padding-bottom: var(--stzh-space-xsmall);
|
|
389
|
+
--padding-left: var(--stzh-space-medium);
|
|
390
|
+
--padding-right: var(--stzh-space-medium);
|
|
391
|
+
--icon-gap: var(--stzh-space-xsmall);
|
|
392
|
+
--icon-angle-gap: var(--stzh-space-xsmall);
|
|
393
|
+
--multiple-padding-top: calc(var(--stzh-space-xsmall) - 0.0625rem);
|
|
394
|
+
--multiple-padding-bottom: calc(var(--stzh-space-xsmall) - 0.0625rem);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
stzh-dropdown:where([size-small="small"]) {
|
|
398
|
+
--font-size: var(--stzh-font-milli-font-size);
|
|
399
|
+
--line-height: var(--stzh-font-milli-text-line-height);
|
|
400
|
+
--letter-spacing: normal;
|
|
401
|
+
--height: var(--stzh-form-input-small-height);
|
|
402
|
+
--icon-size: var(--stzh-icon-size-medium);
|
|
403
|
+
--icon-angle-size: var(--stzh-icon-size-medium);
|
|
404
|
+
--padding-top: var(--stzh-space-xxsmall);
|
|
405
|
+
--padding-bottom: var(--stzh-space-xxsmall);
|
|
406
|
+
--padding-left: var(--stzh-space-medium);
|
|
407
|
+
--padding-right: var(--stzh-space-medium);
|
|
408
|
+
--icon-gap: var(--stzh-space-xsmall);
|
|
409
|
+
--icon-angle-gap: var(--stzh-space-xsmall);
|
|
410
|
+
--multiple-padding-top: var(--stzh-space-xxsmall);
|
|
411
|
+
--multiple-padding-bottom: var(--stzh-space-xxsmall);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
stzh-dropdown:where([size-small="tiny"]) {
|
|
415
|
+
--font-size: var(--stzh-font-milli-font-size);
|
|
416
|
+
--line-height: var(--stzh-font-milli-text-line-height);
|
|
417
|
+
--letter-spacing: normal;
|
|
418
|
+
--height: var(--stzh-form-input-tiny-height);
|
|
419
|
+
--icon-size: var(--stzh-icon-size-medium);
|
|
420
|
+
--icon-angle-size: var(--stzh-icon-size-medium);
|
|
421
|
+
--padding-top: var(--stzh-space-xxsmall);
|
|
422
|
+
--padding-bottom: var(--stzh-space-xxsmall);
|
|
423
|
+
--padding-left: var(--stzh-space-medium);
|
|
424
|
+
--padding-right: var(--stzh-space-medium);
|
|
425
|
+
--icon-gap: var(--stzh-space-xsmall);
|
|
426
|
+
--icon-angle-gap: var(--stzh-space-xsmall);
|
|
427
|
+
--multiple-padding-top: var(--stzh-space-xxsmall);
|
|
428
|
+
--multiple-padding-bottom: var(--stzh-space-xxsmall);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
@media screen and (min-width: 900px) {
|
|
432
|
+
stzh-dropdown:where([size-medium="default"]) {
|
|
433
|
+
--font-size: var(--stzh-font-milli-font-size);
|
|
434
|
+
--line-height: var(--stzh-font-milli-text-line-height);
|
|
435
|
+
--letter-spacing: normal;
|
|
436
|
+
--height: var(--stzh-form-input-height);
|
|
437
|
+
--icon-size: var(--stzh-icon-size-medium);
|
|
438
|
+
--icon-angle-size: var(--stzh-icon-size-medium);
|
|
439
|
+
--padding-top: var(--stzh-space-xsmall);
|
|
440
|
+
--padding-bottom: var(--stzh-space-xsmall);
|
|
441
|
+
--padding-left: var(--stzh-space-medium);
|
|
442
|
+
--padding-right: var(--stzh-space-medium);
|
|
443
|
+
--icon-gap: var(--stzh-space-xsmall);
|
|
444
|
+
--icon-angle-gap: var(--stzh-space-xsmall);
|
|
445
|
+
--multiple-padding-top: calc(var(--stzh-space-xsmall) - 0.0625rem);
|
|
446
|
+
--multiple-padding-bottom: calc(var(--stzh-space-xsmall) - 0.0625rem);
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
stzh-dropdown:where([size-medium="small"]) {
|
|
450
|
+
--font-size: var(--stzh-font-milli-font-size);
|
|
451
|
+
--line-height: var(--stzh-font-milli-text-line-height);
|
|
452
|
+
--letter-spacing: normal;
|
|
453
|
+
--height: var(--stzh-form-input-small-height);
|
|
454
|
+
--icon-size: var(--stzh-icon-size-medium);
|
|
455
|
+
--icon-angle-size: var(--stzh-icon-size-medium);
|
|
456
|
+
--padding-top: var(--stzh-space-xxsmall);
|
|
457
|
+
--padding-bottom: var(--stzh-space-xxsmall);
|
|
458
|
+
--padding-left: var(--stzh-space-medium);
|
|
459
|
+
--padding-right: var(--stzh-space-medium);
|
|
460
|
+
--icon-gap: var(--stzh-space-xsmall);
|
|
461
|
+
--icon-angle-gap: var(--stzh-space-xsmall);
|
|
462
|
+
--multiple-padding-top: var(--stzh-space-xxsmall);
|
|
463
|
+
--multiple-padding-bottom: var(--stzh-space-xxsmall);
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
stzh-dropdown:where([size-medium="tiny"]) {
|
|
467
|
+
--font-size: var(--stzh-font-milli-font-size);
|
|
468
|
+
--line-height: var(--stzh-font-milli-text-line-height);
|
|
469
|
+
--letter-spacing: normal;
|
|
470
|
+
--height: var(--stzh-form-input-tiny-height);
|
|
471
|
+
--icon-size: var(--stzh-icon-size-medium);
|
|
472
|
+
--icon-angle-size: var(--stzh-icon-size-medium);
|
|
473
|
+
--padding-top: var(--stzh-space-xxsmall);
|
|
474
|
+
--padding-bottom: var(--stzh-space-xxsmall);
|
|
475
|
+
--padding-left: var(--stzh-space-medium);
|
|
476
|
+
--padding-right: var(--stzh-space-medium);
|
|
477
|
+
--icon-gap: var(--stzh-space-xsmall);
|
|
478
|
+
--icon-angle-gap: var(--stzh-space-xsmall);
|
|
479
|
+
--multiple-padding-top: var(--stzh-space-xxsmall);
|
|
480
|
+
--multiple-padding-bottom: var(--stzh-space-xxsmall);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
@media screen and (min-width: 1260px) {
|
|
484
|
+
stzh-dropdown:where([size-large="default"]) {
|
|
485
|
+
--font-size: var(--stzh-font-milli-font-size);
|
|
486
|
+
--line-height: var(--stzh-font-milli-text-line-height);
|
|
487
|
+
--letter-spacing: normal;
|
|
488
|
+
--height: var(--stzh-form-input-height);
|
|
489
|
+
--icon-size: var(--stzh-icon-size-medium);
|
|
490
|
+
--icon-angle-size: var(--stzh-icon-size-medium);
|
|
491
|
+
--padding-top: var(--stzh-space-xsmall);
|
|
492
|
+
--padding-bottom: var(--stzh-space-xsmall);
|
|
493
|
+
--padding-left: var(--stzh-space-medium);
|
|
494
|
+
--padding-right: var(--stzh-space-medium);
|
|
495
|
+
--icon-gap: var(--stzh-space-xsmall);
|
|
496
|
+
--icon-angle-gap: var(--stzh-space-xsmall);
|
|
497
|
+
--multiple-padding-top: calc(var(--stzh-space-xsmall) - 0.0625rem);
|
|
498
|
+
--multiple-padding-bottom: calc(var(--stzh-space-xsmall) - 0.0625rem);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
stzh-dropdown:where([size-large="small"]) {
|
|
502
|
+
--font-size: var(--stzh-font-milli-font-size);
|
|
503
|
+
--line-height: var(--stzh-font-milli-text-line-height);
|
|
504
|
+
--letter-spacing: normal;
|
|
505
|
+
--height: var(--stzh-form-input-small-height);
|
|
506
|
+
--icon-size: var(--stzh-icon-size-medium);
|
|
507
|
+
--icon-angle-size: var(--stzh-icon-size-medium);
|
|
508
|
+
--padding-top: var(--stzh-space-xxsmall);
|
|
509
|
+
--padding-bottom: var(--stzh-space-xxsmall);
|
|
510
|
+
--padding-left: var(--stzh-space-medium);
|
|
511
|
+
--padding-right: var(--stzh-space-medium);
|
|
512
|
+
--icon-gap: var(--stzh-space-xsmall);
|
|
513
|
+
--icon-angle-gap: var(--stzh-space-xsmall);
|
|
514
|
+
--multiple-padding-top: var(--stzh-space-xxsmall);
|
|
515
|
+
--multiple-padding-bottom: var(--stzh-space-xxsmall);
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
stzh-dropdown:where([size-large="tiny"]) {
|
|
519
|
+
--font-size: var(--stzh-font-milli-font-size);
|
|
520
|
+
--line-height: var(--stzh-font-milli-text-line-height);
|
|
521
|
+
--letter-spacing: normal;
|
|
522
|
+
--height: var(--stzh-form-input-tiny-height);
|
|
523
|
+
--icon-size: var(--stzh-icon-size-medium);
|
|
524
|
+
--icon-angle-size: var(--stzh-icon-size-medium);
|
|
525
|
+
--padding-top: var(--stzh-space-xxsmall);
|
|
526
|
+
--padding-bottom: var(--stzh-space-xxsmall);
|
|
527
|
+
--padding-left: var(--stzh-space-medium);
|
|
528
|
+
--padding-right: var(--stzh-space-medium);
|
|
529
|
+
--icon-gap: var(--stzh-space-xsmall);
|
|
530
|
+
--icon-angle-gap: var(--stzh-space-xsmall);
|
|
531
|
+
--multiple-padding-top: var(--stzh-space-xxsmall);
|
|
532
|
+
--multiple-padding-bottom: var(--stzh-space-xxsmall);
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
@media screen and (min-width: 1600px) {
|
|
536
|
+
stzh-dropdown:where([size-ultra="default"]) {
|
|
537
|
+
--font-size: var(--stzh-font-milli-font-size);
|
|
538
|
+
--line-height: var(--stzh-font-milli-text-line-height);
|
|
539
|
+
--letter-spacing: normal;
|
|
540
|
+
--height: var(--stzh-form-input-height);
|
|
541
|
+
--icon-size: var(--stzh-icon-size-medium);
|
|
542
|
+
--icon-angle-size: var(--stzh-icon-size-medium);
|
|
543
|
+
--padding-top: var(--stzh-space-xsmall);
|
|
544
|
+
--padding-bottom: var(--stzh-space-xsmall);
|
|
545
|
+
--padding-left: var(--stzh-space-medium);
|
|
546
|
+
--padding-right: var(--stzh-space-medium);
|
|
547
|
+
--icon-gap: var(--stzh-space-xsmall);
|
|
548
|
+
--icon-angle-gap: var(--stzh-space-xsmall);
|
|
549
|
+
--multiple-padding-top: calc(var(--stzh-space-xsmall) - 0.0625rem);
|
|
550
|
+
--multiple-padding-bottom: calc(var(--stzh-space-xsmall) - 0.0625rem);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
stzh-dropdown:where([size-ultra="small"]) {
|
|
554
|
+
--font-size: var(--stzh-font-milli-font-size);
|
|
555
|
+
--line-height: var(--stzh-font-milli-text-line-height);
|
|
556
|
+
--letter-spacing: normal;
|
|
557
|
+
--height: var(--stzh-form-input-small-height);
|
|
558
|
+
--icon-size: var(--stzh-icon-size-medium);
|
|
559
|
+
--icon-angle-size: var(--stzh-icon-size-medium);
|
|
560
|
+
--padding-top: var(--stzh-space-xxsmall);
|
|
561
|
+
--padding-bottom: var(--stzh-space-xxsmall);
|
|
562
|
+
--padding-left: var(--stzh-space-medium);
|
|
563
|
+
--padding-right: var(--stzh-space-medium);
|
|
564
|
+
--icon-gap: var(--stzh-space-xsmall);
|
|
565
|
+
--icon-angle-gap: var(--stzh-space-xsmall);
|
|
566
|
+
--multiple-padding-top: var(--stzh-space-xxsmall);
|
|
567
|
+
--multiple-padding-bottom: var(--stzh-space-xxsmall);
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
stzh-dropdown:where([size-ultra="tiny"]) {
|
|
571
|
+
--font-size: var(--stzh-font-milli-font-size);
|
|
572
|
+
--line-height: var(--stzh-font-milli-text-line-height);
|
|
573
|
+
--letter-spacing: normal;
|
|
574
|
+
--height: var(--stzh-form-input-tiny-height);
|
|
575
|
+
--icon-size: var(--stzh-icon-size-medium);
|
|
576
|
+
--icon-angle-size: var(--stzh-icon-size-medium);
|
|
577
|
+
--padding-top: var(--stzh-space-xxsmall);
|
|
578
|
+
--padding-bottom: var(--stzh-space-xxsmall);
|
|
579
|
+
--padding-left: var(--stzh-space-medium);
|
|
580
|
+
--padding-right: var(--stzh-space-medium);
|
|
581
|
+
--icon-gap: var(--stzh-space-xsmall);
|
|
582
|
+
--icon-angle-gap: var(--stzh-space-xsmall);
|
|
583
|
+
--multiple-padding-top: var(--stzh-space-xxsmall);
|
|
584
|
+
--multiple-padding-bottom: var(--stzh-space-xxsmall);
|
|
585
|
+
}
|
|
586
|
+
}
|
|
328
587
|
.stzh-dropdown {
|
|
329
588
|
/* Plugin: Input autogrow */
|
|
330
589
|
/* Has Items */
|
|
@@ -334,7 +593,6 @@ stzh-dropdown:is(:has(.ts-control:focus-within)) {
|
|
|
334
593
|
/* Popover placement */
|
|
335
594
|
/* Has fullwidth popover */
|
|
336
595
|
/* Hidden label */
|
|
337
|
-
/* Small */
|
|
338
596
|
/* Has icon */
|
|
339
597
|
/* Plain */
|
|
340
598
|
/* Styles for floating label */
|
|
@@ -458,6 +716,9 @@ stzh-dropdown:is(:has(.ts-control:focus-within)) {
|
|
|
458
716
|
font-family: var(--stzh-font-family-medium);
|
|
459
717
|
font-weight: var(--stzh-font-weight-medium);
|
|
460
718
|
font-style: var(--stzh-font-style-medium);
|
|
719
|
+
font-size: var(--font-size);
|
|
720
|
+
line-height: var(--line-height);
|
|
721
|
+
letter-spacing: var(--letter-spacing);
|
|
461
722
|
width: 100%;
|
|
462
723
|
border: 0.125rem solid var(--border-color);
|
|
463
724
|
}
|
|
@@ -552,8 +813,10 @@ stzh-dropdown:is(:has(.ts-control:focus-within)) {
|
|
|
552
813
|
left: -625rem;
|
|
553
814
|
}
|
|
554
815
|
.stzh-dropdown__select.single .ts-control, .stzh-dropdown__select.multi .ts-control, .stzh-dropdown__sizer {
|
|
555
|
-
padding: var(--
|
|
556
|
-
padding-
|
|
816
|
+
padding-top: var(--padding-top);
|
|
817
|
+
padding-bottom: var(--padding-bottom);
|
|
818
|
+
padding-left: var(--padding-left);
|
|
819
|
+
padding-right: calc(var(--icon-angle-size) + var(--icon-angle-gap) + var(--padding-right));
|
|
557
820
|
}
|
|
558
821
|
.stzh-dropdown__icon-wrapper, .stzh-dropdown__icon-angle-wrapper {
|
|
559
822
|
display: flex;
|
|
@@ -737,8 +1000,8 @@ stzh-dropdown:is(:has(.ts-control:focus-within)) {
|
|
|
737
1000
|
opacity: 1;
|
|
738
1001
|
}
|
|
739
1002
|
.stzh-dropdown--is-multiple .stzh-dropdown__select.multi.has-items .ts-control {
|
|
740
|
-
padding-top:
|
|
741
|
-
padding-bottom:
|
|
1003
|
+
padding-top: var(--multiple-padding-top);
|
|
1004
|
+
padding-bottom: var(--multiple-padding-bottom);
|
|
742
1005
|
}
|
|
743
1006
|
.stzh-dropdown--is-multiple .stzh-dropdown__select.multi .stzh-dropdown__item {
|
|
744
1007
|
font-size: var(--stzh-font-micro-font-size);
|
|
@@ -835,25 +1098,13 @@ stzh-dropdown:is(:has(.ts-control:focus-within)) {
|
|
|
835
1098
|
padding: 0;
|
|
836
1099
|
position: absolute;
|
|
837
1100
|
}
|
|
838
|
-
.stzh-dropdown--size-small .ts-control, .stzh-dropdown--size-small .stzh-dropdown__sizer {
|
|
839
|
-
font-size: var(--stzh-font-micro-font-size);
|
|
840
|
-
line-height: var(--stzh-font-micro-text-line-height);
|
|
841
|
-
}
|
|
842
|
-
.stzh-dropdown--size-small .stzh-dropdown__select.single .ts-control, .stzh-dropdown--size-small .stzh-dropdown__select.multi .ts-control, .stzh-dropdown--size-small .stzh-dropdown__sizer {
|
|
843
|
-
padding: var(--stzh-space-xxsmall) var(--stzh-space-medium);
|
|
844
|
-
padding-right: calc(var(--stzh-icon-size-small) + var(--stzh-space-medium) + var(--stzh-space-xsmall));
|
|
845
|
-
}
|
|
846
|
-
.stzh-dropdown--size-small.stzh-dropdown--is-multiple .stzh-dropdown__select.multi.has-items .ts-control {
|
|
847
|
-
padding-top: var(--stzh-space-xxsmall);
|
|
848
|
-
padding-bottom: var(--stzh-space-xxsmall);
|
|
849
|
-
}
|
|
850
1101
|
.stzh-dropdown--has-icon .stzh-dropdown__select.single .ts-control, .stzh-dropdown--has-icon .stzh-dropdown__select.multi .ts-control, .stzh-dropdown--has-icon .stzh-dropdown__sizer {
|
|
851
|
-
padding-left: calc(var(--icon-size) + var(--
|
|
1102
|
+
padding-left: calc(var(--icon-size) + var(--icon-gap) + var(--padding-left));
|
|
852
1103
|
}
|
|
853
1104
|
.stzh-dropdown--plain .stzh-dropdown__select.single .ts-control, .stzh-dropdown--plain .stzh-dropdown__select.multi .ts-control, .stzh-dropdown--plain .stzh-dropdown__sizer {
|
|
854
1105
|
border: none;
|
|
855
1106
|
padding-left: 0;
|
|
856
|
-
padding-right: calc(var(--
|
|
1107
|
+
padding-right: calc(var(--icon-angle-gap) + var(--icon-angle-size));
|
|
857
1108
|
}
|
|
858
1109
|
.stzh-dropdown--plain .stzh-dropdown__icon-wrapper {
|
|
859
1110
|
left: 0;
|
|
@@ -879,9 +1130,6 @@ stzh-dropdown:is(:has(.ts-control:focus-within)) {
|
|
|
879
1130
|
.stzh-dropdown--plain .stzh-dropdown__dropdown {
|
|
880
1131
|
margin-top: 0;
|
|
881
1132
|
}
|
|
882
|
-
.stzh-dropdown--plain.stzh-dropdown--size-small .stzh-dropdown__select.single .ts-control, .stzh-dropdown--plain.stzh-dropdown--size-small .stzh-dropdown__select.multi .ts-control, .stzh-dropdown--plain.stzh-dropdown--size-small .stzh-dropdown__sizer {
|
|
883
|
-
padding-right: calc(var(--stzh-icon-size-small) + var(--stzh-space-xsmall));
|
|
884
|
-
}
|
|
885
1133
|
.stzh-dropdown--plain.stzh-dropdown--has-icon .stzh-dropdown__label {
|
|
886
1134
|
left: calc(var(--icon-size) + var(--stzh-space-medium) + var(--stzh-space-xsmall) + 0.0625rem);
|
|
887
1135
|
}
|
|
@@ -72,6 +72,10 @@ export class StzhDropdown {
|
|
|
72
72
|
this.isOpen = false;
|
|
73
73
|
this.variant = "default";
|
|
74
74
|
this.size = "default";
|
|
75
|
+
this.sizeSmall = undefined;
|
|
76
|
+
this.sizeMedium = undefined;
|
|
77
|
+
this.sizeLarge = undefined;
|
|
78
|
+
this.sizeUltra = undefined;
|
|
75
79
|
this.disabled = false;
|
|
76
80
|
this.popoverPlacement = "bottom";
|
|
77
81
|
this.popoverFullwidth = "";
|
|
@@ -189,7 +193,8 @@ export class StzhDropdown {
|
|
|
189
193
|
return this.tomSelect.close();
|
|
190
194
|
}
|
|
191
195
|
updateFilled() {
|
|
192
|
-
|
|
196
|
+
var _a;
|
|
197
|
+
if (((_a = this._items) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
193
198
|
this.rootElement.classList.add(CLASS_FILLED);
|
|
194
199
|
this.element.setAttribute("is-filled", "true");
|
|
195
200
|
}
|
|
@@ -469,6 +474,7 @@ export class StzhDropdown {
|
|
|
469
474
|
if (this._items) {
|
|
470
475
|
tomSelectOptions.items = this._items;
|
|
471
476
|
}
|
|
477
|
+
this.updateFilled();
|
|
472
478
|
this.tomSelect = new TomSelect(this.select, tomSelectOptions);
|
|
473
479
|
if (!this.openOnFocus) {
|
|
474
480
|
// we still want to enable opening the dropdown by click
|
|
@@ -1054,9 +1060,15 @@ export class StzhDropdown {
|
|
|
1054
1060
|
"type": "string",
|
|
1055
1061
|
"mutable": false,
|
|
1056
1062
|
"complexType": {
|
|
1057
|
-
"original": "
|
|
1058
|
-
"resolved": "\"default\" | \"small\"",
|
|
1059
|
-
"references": {
|
|
1063
|
+
"original": "StzhDropdownSize",
|
|
1064
|
+
"resolved": "\"default\" | \"small\" | \"tiny\"",
|
|
1065
|
+
"references": {
|
|
1066
|
+
"StzhDropdownSize": {
|
|
1067
|
+
"location": "import",
|
|
1068
|
+
"path": "../../index",
|
|
1069
|
+
"id": "src/index.ts::StzhDropdownSize"
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1060
1072
|
},
|
|
1061
1073
|
"required": false,
|
|
1062
1074
|
"optional": false,
|
|
@@ -1068,6 +1080,98 @@ export class StzhDropdown {
|
|
|
1068
1080
|
"reflect": true,
|
|
1069
1081
|
"defaultValue": "\"default\""
|
|
1070
1082
|
},
|
|
1083
|
+
"sizeSmall": {
|
|
1084
|
+
"type": "string",
|
|
1085
|
+
"mutable": false,
|
|
1086
|
+
"complexType": {
|
|
1087
|
+
"original": "StzhDropdownSize",
|
|
1088
|
+
"resolved": "\"default\" | \"small\" | \"tiny\"",
|
|
1089
|
+
"references": {
|
|
1090
|
+
"StzhDropdownSize": {
|
|
1091
|
+
"location": "import",
|
|
1092
|
+
"path": "../../index",
|
|
1093
|
+
"id": "src/index.ts::StzhDropdownSize"
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
},
|
|
1097
|
+
"required": false,
|
|
1098
|
+
"optional": false,
|
|
1099
|
+
"docs": {
|
|
1100
|
+
"tags": [],
|
|
1101
|
+
"text": "Size variant (abobe small breakpoint)"
|
|
1102
|
+
},
|
|
1103
|
+
"attribute": "size-small",
|
|
1104
|
+
"reflect": true
|
|
1105
|
+
},
|
|
1106
|
+
"sizeMedium": {
|
|
1107
|
+
"type": "string",
|
|
1108
|
+
"mutable": false,
|
|
1109
|
+
"complexType": {
|
|
1110
|
+
"original": "StzhDropdownSize",
|
|
1111
|
+
"resolved": "\"default\" | \"small\" | \"tiny\"",
|
|
1112
|
+
"references": {
|
|
1113
|
+
"StzhDropdownSize": {
|
|
1114
|
+
"location": "import",
|
|
1115
|
+
"path": "../../index",
|
|
1116
|
+
"id": "src/index.ts::StzhDropdownSize"
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
},
|
|
1120
|
+
"required": false,
|
|
1121
|
+
"optional": false,
|
|
1122
|
+
"docs": {
|
|
1123
|
+
"tags": [],
|
|
1124
|
+
"text": "Size variant (abobe medium breakpoint)"
|
|
1125
|
+
},
|
|
1126
|
+
"attribute": "size-medium",
|
|
1127
|
+
"reflect": true
|
|
1128
|
+
},
|
|
1129
|
+
"sizeLarge": {
|
|
1130
|
+
"type": "string",
|
|
1131
|
+
"mutable": false,
|
|
1132
|
+
"complexType": {
|
|
1133
|
+
"original": "StzhDropdownSize",
|
|
1134
|
+
"resolved": "\"default\" | \"small\" | \"tiny\"",
|
|
1135
|
+
"references": {
|
|
1136
|
+
"StzhDropdownSize": {
|
|
1137
|
+
"location": "import",
|
|
1138
|
+
"path": "../../index",
|
|
1139
|
+
"id": "src/index.ts::StzhDropdownSize"
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
},
|
|
1143
|
+
"required": false,
|
|
1144
|
+
"optional": false,
|
|
1145
|
+
"docs": {
|
|
1146
|
+
"tags": [],
|
|
1147
|
+
"text": "Size variant (abobe large breakpoint)"
|
|
1148
|
+
},
|
|
1149
|
+
"attribute": "size-large",
|
|
1150
|
+
"reflect": true
|
|
1151
|
+
},
|
|
1152
|
+
"sizeUltra": {
|
|
1153
|
+
"type": "string",
|
|
1154
|
+
"mutable": false,
|
|
1155
|
+
"complexType": {
|
|
1156
|
+
"original": "StzhDropdownSize",
|
|
1157
|
+
"resolved": "\"default\" | \"small\" | \"tiny\"",
|
|
1158
|
+
"references": {
|
|
1159
|
+
"StzhDropdownSize": {
|
|
1160
|
+
"location": "import",
|
|
1161
|
+
"path": "../../index",
|
|
1162
|
+
"id": "src/index.ts::StzhDropdownSize"
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
},
|
|
1166
|
+
"required": false,
|
|
1167
|
+
"optional": false,
|
|
1168
|
+
"docs": {
|
|
1169
|
+
"tags": [],
|
|
1170
|
+
"text": "Size variant (abobe ultra breakpoint)"
|
|
1171
|
+
},
|
|
1172
|
+
"attribute": "size-ultra",
|
|
1173
|
+
"reflect": true
|
|
1174
|
+
},
|
|
1071
1175
|
"disabled": {
|
|
1072
1176
|
"type": "boolean",
|
|
1073
1177
|
"mutable": false,
|