@lmvz-ds/components 0.37.0 → 0.39.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 +21 -0
- package/README.md +12 -20
- package/cjs/{aria-validation-controller-Do0uEK4t.js → aria-validation-controller-DKNXjnQr.js} +1 -1
- package/cjs/checkmark-CuKDPAcx.js +5 -0
- package/cjs/{directional-focus-controller-8Xd_7MHT.js → directional-focus-controller-DDnhfX5w.js} +15 -5
- package/cjs/{index-BgvZ4y-3.js → index-DWy4nuyZ.js} +41 -0
- package/cjs/index.cjs.js +3 -195
- package/cjs/lmvz-action-list.cjs.entry.js +4 -4
- package/cjs/lmvz-action.cjs.entry.js +1 -1
- package/cjs/lmvz-button-group.cjs.entry.js +5 -1
- package/cjs/lmvz-button_2.cjs.entry.js +3 -3
- package/cjs/lmvz-card.cjs.entry.js +2 -2
- package/cjs/lmvz-checkbox.cjs.entry.js +4 -5
- package/cjs/lmvz-chip.cjs.entry.js +5 -5
- package/cjs/lmvz-components.cjs.js +2 -2
- package/cjs/lmvz-datepicker.cjs.entry.js +1 -1
- package/cjs/lmvz-header_2.cjs.entry.js +5 -5
- package/cjs/lmvz-input.cjs.entry.js +4 -7
- package/cjs/lmvz-link.cjs.entry.js +1 -1
- package/cjs/lmvz-menuitem.cjs.entry.js +2 -2
- package/cjs/lmvz-message.cjs.entry.js +4 -2
- package/cjs/lmvz-modal.cjs.entry.js +2 -2
- package/cjs/lmvz-popover.cjs.entry.js +5 -14
- package/cjs/lmvz-radio.cjs.entry.js +2 -2
- package/cjs/lmvz-select.cjs.entry.js +110 -16
- package/cjs/lmvz-snackbar.cjs.entry.js +1 -1
- package/cjs/lmvz-spinner.cjs.entry.js +1 -1
- package/cjs/lmvz-tab.cjs.entry.js +1 -1
- package/cjs/lmvz-tabs.cjs.entry.js +9 -3
- package/cjs/lmvz-toggle.cjs.entry.js +2 -2
- package/cjs/loader.cjs.js +2 -2
- package/cjs/public-DTgpEs1_.js +206 -0
- package/collection/components/lmvz-action-list/lmvz-action-list.css +119 -116
- package/collection/components/lmvz-button/lmvz-button.css +109 -106
- package/collection/components/lmvz-card/lmvz-card.css +106 -103
- package/collection/components/lmvz-chip/lmvz-chip.css +1 -1
- package/collection/components/lmvz-chip/lmvz-chip.js +2 -2
- package/collection/components/lmvz-header/lmvz-header.js +2 -2
- package/collection/components/lmvz-input/lmvz-input.js +2 -5
- package/collection/components/lmvz-message/lmvz-message.css +1 -1
- package/collection/components/lmvz-popover/lmvz-popover.css +1 -1
- package/collection/components/lmvz-popover/lmvz-popover.js +2 -11
- package/collection/components/lmvz-select/lmvz-select.css +102 -53
- package/collection/components/lmvz-select/lmvz-select.js +151 -41
- package/collection/components/lmvz-snackbar/public.js +3 -0
- package/collection/components/lmvz-tabs/lmvz-tabs.js +7 -1
- package/collection/utils/aria/directional-focus-controller.js +16 -7
- package/collection/utils/icons/public.js +3 -0
- package/components/index.js +1 -1
- package/components/lmvz-action-list.js +1 -1
- package/components/lmvz-action.js +1 -1
- package/components/lmvz-button-group.js +1 -1
- package/components/lmvz-button.js +1 -1
- package/components/lmvz-card.js +1 -1
- package/components/lmvz-checkbox.js +1 -1
- package/components/lmvz-chip.js +1 -1
- package/components/lmvz-datepicker.js +1 -1
- package/components/lmvz-header.js +1 -1
- package/components/lmvz-icon.js +1 -1
- package/components/lmvz-input.js +1 -1
- package/components/lmvz-link.js +1 -1
- package/components/lmvz-menuitem.js +1 -1
- package/components/lmvz-message.js +1 -1
- package/components/lmvz-modal.js +1 -1
- package/components/lmvz-popover.js +1 -1
- package/components/lmvz-radio.js +1 -1
- package/components/lmvz-select.js +1 -1
- package/components/lmvz-snackbar.js +1 -1
- package/components/lmvz-spinner.js +1 -1
- package/components/lmvz-tab.js +1 -1
- package/components/lmvz-tabs.js +1 -1
- package/components/lmvz-toggle.js +1 -1
- package/components/{p-BLMXiDE0.js → p--mU29mrX.js} +1 -1
- package/components/p-BPa0FHVO.js +1 -0
- package/components/p-Bc5MM0zh.js +1 -0
- package/components/p-CyDgnpOB.js +1 -0
- package/components/p-DAikapVO.js +1 -0
- package/components/{p-C-pRMuMh.js → p-DIyiticz.js} +1 -1
- package/components/{p-BhALzK62.js → p-DJLdOjL4.js} +1 -1
- package/components/p-DSDBThqb.js +1 -0
- package/components/{p-diOze8wI.js → p-DXFoXTse.js} +1 -1
- package/components/p-DXhP6UeF.js +1 -0
- package/components/p-D_mff3n7.js +1 -0
- package/components/p-DbBJxuBm.js +1 -0
- package/components/p-DsTgD0_a.js +1 -0
- package/components/p-DyQ1GbaN.js +1 -0
- package/components/p-niXjuPxe.js +1 -0
- package/components/{p-BAj4FkUt.js → p-sACbyedu.js} +1 -1
- package/esm/{aria-validation-controller-Cp6pofER.js → aria-validation-controller-Dwv7n0rk.js} +1 -1
- package/esm/checkmark-DAikapVO.js +3 -0
- package/esm/{directional-focus-controller-QukTTWBE.js → directional-focus-controller-CJ0yNC00.js} +15 -5
- package/esm/{index-BOXP1Vx0.js → index-DVab4vzV.js} +41 -1
- package/esm/index.js +1 -197
- package/esm/lmvz-action-list.entry.js +4 -4
- package/esm/lmvz-action.entry.js +1 -1
- package/esm/lmvz-button-group.entry.js +5 -1
- package/esm/lmvz-button_2.entry.js +3 -3
- package/esm/lmvz-card.entry.js +2 -2
- package/esm/lmvz-checkbox.entry.js +3 -4
- package/esm/lmvz-chip.entry.js +5 -5
- package/esm/lmvz-components.js +3 -3
- package/esm/lmvz-datepicker.entry.js +1 -1
- package/esm/lmvz-header_2.entry.js +5 -5
- package/esm/lmvz-input.entry.js +4 -7
- package/esm/lmvz-link.entry.js +1 -1
- package/esm/lmvz-menuitem.entry.js +2 -2
- package/esm/lmvz-message.entry.js +4 -2
- package/esm/lmvz-modal.entry.js +2 -2
- package/esm/lmvz-popover.entry.js +5 -14
- package/esm/lmvz-radio.entry.js +2 -2
- package/esm/lmvz-select.entry.js +110 -16
- package/esm/lmvz-snackbar.entry.js +1 -1
- package/esm/lmvz-spinner.entry.js +1 -1
- package/esm/lmvz-tab.entry.js +1 -1
- package/esm/lmvz-tabs.entry.js +9 -3
- package/esm/lmvz-toggle.entry.js +2 -2
- package/esm/loader.js +3 -3
- package/esm/public-m6pRVUeP.js +204 -0
- package/hydrate/index.js +394 -50
- package/hydrate/index.mjs +394 -50
- package/lmvz-components/index.esm.js +1 -1
- package/lmvz-components/lmvz-components.esm.js +1 -1
- package/lmvz-components/p-1ba1af8d.entry.js +1 -0
- package/lmvz-components/{p-0f65d001.entry.js → p-27e8b4fa.entry.js} +1 -1
- package/lmvz-components/p-304c7554.entry.js +1 -0
- package/lmvz-components/p-316dd61a.entry.js +1 -0
- package/lmvz-components/{p-3d5867df.entry.js → p-335b3867.entry.js} +1 -1
- package/lmvz-components/{p-7872a6b4.entry.js → p-3b7203a3.entry.js} +1 -1
- package/lmvz-components/p-41286514.entry.js +1 -0
- package/lmvz-components/p-6aae1df9.entry.js +1 -0
- package/lmvz-components/p-743616c0.entry.js +1 -0
- package/lmvz-components/{p-26dd9684.entry.js → p-773e9d95.entry.js} +1 -1
- package/lmvz-components/{p-a6fe9b61.entry.js → p-7cbfbc88.entry.js} +1 -1
- package/lmvz-components/p-87f21ac9.entry.js +1 -0
- package/lmvz-components/{p-a680a7b2.entry.js → p-8ba6ec19.entry.js} +1 -1
- package/lmvz-components/p-93b781ca.entry.js +1 -0
- package/lmvz-components/p-BPa0FHVO.js +1 -0
- package/lmvz-components/p-BlkpdeQI.js +1 -0
- package/lmvz-components/p-DAikapVO.js +1 -0
- package/lmvz-components/p-DVab4vzV.js +2 -0
- package/lmvz-components/{p-BeY96W7m.js → p-Wi9d2-w9.js} +1 -1
- package/lmvz-components/p-c884c76e.entry.js +1 -0
- package/lmvz-components/{p-eabbf901.entry.js → p-d73bb7fd.entry.js} +1 -1
- package/lmvz-components/{p-137b1fe1.entry.js → p-e35f49a1.entry.js} +1 -1
- package/lmvz-components/p-ebad823c.entry.js +1 -0
- package/lmvz-components/p-edec4d09.entry.js +1 -0
- package/lmvz-components/{p-88661c50.entry.js → p-efd9d50e.entry.js} +1 -1
- package/lmvz-components/p-f24f5207.entry.js +1 -0
- package/lmvz-components/p-f911691c.entry.js +1 -0
- package/manifest.json +72 -39
- package/package.json +2 -1
- package/types/components/lmvz-input/lmvz-input.d.ts +0 -2
- package/types/components/lmvz-popover/lmvz-popover.d.ts +0 -1
- package/types/components/lmvz-select/lmvz-select.d.ts +12 -3
- package/types/components/lmvz-snackbar/public.d.ts +6 -0
- package/types/components/lmvz-tabs/lmvz-tabs.d.ts +1 -0
- package/types/components.d.ts +39 -19
- package/types/index.d.ts +5 -0
- package/types/utils/aria/directional-focus-controller.d.ts +9 -7
- package/types/utils/icons/public.d.ts +6 -0
- package/components/p--FDdvoIg.js +0 -1
- package/components/p-BApwCp0R.js +0 -1
- package/components/p-BPYBmylI.js +0 -1
- package/components/p-C5gRiLRR.js +0 -1
- package/components/p-CrQCHVKL.js +0 -1
- package/components/p-DiRcp9V6.js +0 -1
- package/components/p-DqdrUt_G.js +0 -1
- package/lmvz-components/p-00489151.entry.js +0 -1
- package/lmvz-components/p-0af0211a.entry.js +0 -1
- package/lmvz-components/p-398b5cf4.entry.js +0 -1
- package/lmvz-components/p-40716828.entry.js +0 -1
- package/lmvz-components/p-492adf21.entry.js +0 -1
- package/lmvz-components/p-4deaa010.entry.js +0 -1
- package/lmvz-components/p-4fa6e72f.entry.js +0 -1
- package/lmvz-components/p-57a366e6.entry.js +0 -1
- package/lmvz-components/p-70f1e31a.entry.js +0 -1
- package/lmvz-components/p-91eb71bb.entry.js +0 -1
- package/lmvz-components/p-BOXP1Vx0.js +0 -2
- package/lmvz-components/p-CHxiS3ja.js +0 -1
- package/lmvz-components/p-e14058e1.entry.js +0 -1
- package/lmvz-components/p-f3f0ed49.entry.js +0 -1
- package/lmvz-components/p-f516a949.entry.js +0 -1
|
@@ -75,14 +75,28 @@ legend {
|
|
|
75
75
|
|
|
76
76
|
}
|
|
77
77
|
:host {
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
display: inline-block;
|
|
79
|
+
|
|
80
80
|
button {
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
/* * the (invalid nested) import will be handled by postcss */
|
|
82
|
+
/* stylelint-disable-next-line no-invalid-position-at-import-rule */
|
|
83
|
+
/* stylelint-disable nesting-selector-no-missing-scoping-root */
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* This fragment is meant to be reusable in multiple component types.
|
|
87
|
+
* CAUTION: always wrap the import in a tag selector (ususally button)!
|
|
88
|
+
*/
|
|
89
|
+
& {
|
|
90
|
+
/* the (invalid nested) import will be handled by postcss */
|
|
91
|
+
/* stylelint-disable-next-line no-invalid-position-at-import-rule */
|
|
92
|
+
/* stylelint-disable nesting-selector-no-missing-scoping-root */
|
|
93
|
+
& {
|
|
94
|
+
/* variables are declared on :host
|
|
83
95
|
so that outer ::slotted(lmvz-button) overrides are inherited correctly via shadow inheritance.
|
|
84
|
-
They are also declared here so that non-shadow consumers
|
|
85
|
-
|
|
96
|
+
They are also declared here so that non-shadow consumers have the default values in scope. */
|
|
97
|
+
|
|
98
|
+
/* secondary styling is default, primary is explicit */
|
|
99
|
+
|
|
86
100
|
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-secondary, #f0f0f0));
|
|
87
101
|
--lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-int-on-secondary, #000000));
|
|
88
102
|
--lmvz-button-radius: var(--lmvz-button-radius-override, var(--lmvz-component-input-radius-default, 999px));
|
|
@@ -97,19 +111,20 @@ legend {
|
|
|
97
111
|
|
|
98
112
|
display: inline-flex;
|
|
99
113
|
align-items: center;
|
|
100
|
-
justify-content: var(--lmvz-button-content-justification
|
|
101
|
-
gap: var(--lmvz-button-gap);
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
border: var(--lmvz-button-border-width) solid var(--lmvz-button-border-color);
|
|
114
|
+
justify-content: var(--lmvz-button-content-justification, center);
|
|
115
|
+
gap: var(--lmvz-button-gap, var(--lmvz-component-input-gap-md, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)));
|
|
116
|
+
|
|
117
|
+
box-sizing: border-box; /* to inlclude paddings & border in min-height */
|
|
118
|
+
padding-block: var(--lmvz-button-padding-block, var(--lmvz-component-input-padding-md, clamp(0.88rem, 0.84rem + 0.13vw, 1rem)));
|
|
119
|
+
padding-inline: var(--lmvz-button-padding-inline, var(--lmvz-component-input-padding-md, clamp(0.88rem, 0.84rem + 0.13vw, 1rem)));
|
|
120
|
+
min-height: var(--lmvz-button-min-height, var(--lmvz-component-input-size-md, clamp(2.5rem, 2.44rem + 0.26vw, 2.75rem)));
|
|
121
|
+
border: var(--lmvz-button-border-width, 0) solid var(--lmvz-button-border-color, transparent);
|
|
122
|
+
border-radius: var(--lmvz-button-radius, var(--lmvz-component-input-radius-default, 999px));
|
|
123
|
+
|
|
108
124
|
background-color: var(--lmvz-button-background);
|
|
109
125
|
color: var(--lmvz-button-color);
|
|
110
126
|
cursor: pointer;
|
|
111
127
|
font: var(--lmvz-button-font);
|
|
112
|
-
/* text-align: center; */
|
|
113
128
|
text-decoration: none;
|
|
114
129
|
white-space: nowrap;
|
|
115
130
|
transition:
|
|
@@ -119,106 +134,94 @@ legend {
|
|
|
119
134
|
box-shadow 0.15s ease;
|
|
120
135
|
}
|
|
121
136
|
|
|
122
|
-
button > * {
|
|
123
|
-
font: inherit;
|
|
124
|
-
color: inherit;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
button:focus-visible {
|
|
128
|
-
outline: var(--lmvz-ds-outline, 1px solid #0e7ab4);
|
|
129
|
-
outline-offset: var(--lmvz-ds-outline-offset, clamp(0.25rem, 0.19rem + 0.26vw, 0.5rem));
|
|
130
|
-
position: relative;
|
|
131
|
-
z-index: 1;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
button:is([disabled], .disabled) {
|
|
135
|
-
cursor: not-allowed;
|
|
136
|
-
pointer-events: none;
|
|
137
|
-
/* } */
|
|
138
|
-
|
|
139
|
-
/* button:is(:is([disabled], .disabled):not(.secondary):not(.tertiary), .primary:is([disabled], .disabled)) { */
|
|
140
|
-
/* button:is([disabled], .disabled) { */
|
|
141
|
-
/* --lmvz-button-background: var(--lmvz-global-color-neutral-500); */
|
|
142
|
-
/* --lmvz-button-color: var(--lmvz-global-color-neutral-white); */
|
|
143
|
-
opacity: var(--lmvz-component-input-disabled-opacity, 40%);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
button:not([disabled]):hover {
|
|
147
|
-
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-secondary-hover, #e0e0e0));
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
button:not([disabled]):active {
|
|
151
|
-
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-secondary-active, #d4d4d4));
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
button.primary {
|
|
155
|
-
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-primary, #000000));
|
|
156
|
-
--lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-int-on-primary, #ffffff));
|
|
157
|
-
--lmvz-button-border-width: var(--lmvz-button-border-width-override, 0);
|
|
158
|
-
--lmvz-button-border-color: var(--lmvz-button-border-color-override, transparent);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
button.primary:not([disabled], .disabled):hover {
|
|
162
|
-
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-primary-hover, #2e2e2e));
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
button.primary:not([disabled], .disabled):active {
|
|
166
|
-
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-primary-active, #545454));
|
|
167
|
-
}
|
|
168
137
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
button.
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
138
|
+
& > * {
|
|
139
|
+
font: inherit;
|
|
140
|
+
color: inherit;
|
|
141
|
+
}
|
|
142
|
+
&:focus-visible {
|
|
143
|
+
outline: var(--lmvz-ds-outline, 1px solid #0e7ab4);
|
|
144
|
+
outline-offset: var(--lmvz-ds-outline-offset, clamp(0.25rem, 0.19rem + 0.26vw, 0.5rem));
|
|
145
|
+
position: relative;
|
|
146
|
+
z-index: 1;
|
|
147
|
+
}
|
|
148
|
+
&:is([disabled], .disabled) {
|
|
149
|
+
cursor: not-allowed;
|
|
150
|
+
pointer-events: none;
|
|
151
|
+
/* } */
|
|
152
|
+
|
|
153
|
+
/* button:is(:is([disabled], .disabled):not(.secondary):not(.tertiary), .primary:is([disabled], .disabled)) { */
|
|
154
|
+
/* button:is([disabled], .disabled) { */
|
|
155
|
+
/* --lmvz-button-background: var(--lmvz-global-color-neutral-500); */
|
|
156
|
+
/* --lmvz-button-color: var(--lmvz-global-color-neutral-white); */
|
|
157
|
+
opacity: var(--lmvz-component-input-disabled-opacity, 40%);
|
|
158
|
+
}
|
|
159
|
+
&:not([disabled]):hover {
|
|
160
|
+
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-secondary-hover, #e0e0e0));
|
|
161
|
+
}
|
|
162
|
+
&:not([disabled]):active {
|
|
163
|
+
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-secondary-active, #d4d4d4));
|
|
164
|
+
}
|
|
189
165
|
|
|
190
|
-
|
|
191
|
-
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-tertiary-hover, #f0f0f0));
|
|
192
|
-
--lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-int-on-tertiary-hover, #000000));
|
|
193
|
-
}
|
|
166
|
+
/* secondary styling is default, primary is explicit */
|
|
194
167
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
168
|
+
&.primary {
|
|
169
|
+
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-primary, #000000));
|
|
170
|
+
--lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-int-on-primary, #ffffff));
|
|
171
|
+
--lmvz-button-border-width: var(--lmvz-button-border-width-override, 0);
|
|
172
|
+
--lmvz-button-border-color: var(--lmvz-button-border-color-override, transparent);
|
|
173
|
+
}
|
|
174
|
+
&.primary:not([disabled], .disabled):hover {
|
|
175
|
+
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-primary-hover, #2e2e2e));
|
|
176
|
+
}
|
|
177
|
+
&.primary:not([disabled], .disabled):active {
|
|
178
|
+
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-primary-active, #545454));
|
|
179
|
+
}
|
|
180
|
+
&.danger {
|
|
181
|
+
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-tertiary, #ffffff));
|
|
182
|
+
--lmvz-button-border-color: var(--lmvz-button-border-color-override, transparent);
|
|
183
|
+
--lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-status-on-danger, #a31419));
|
|
184
|
+
}
|
|
185
|
+
&.danger:not([disabled], .disabled):hover {
|
|
186
|
+
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-status-danger, #fbdfe0));
|
|
187
|
+
--lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-status-on-danger, #a31419));
|
|
188
|
+
}
|
|
189
|
+
&.danger:not([disabled], .disabled):active {
|
|
190
|
+
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-status-on-danger-subtle, #e8454b));
|
|
191
|
+
--lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-status-on-danger, #a31419));
|
|
192
|
+
}
|
|
193
|
+
&.tertiary {
|
|
194
|
+
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-tertiary, #ffffff));
|
|
195
|
+
--lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-int-on-tertiary, #000000));
|
|
196
|
+
}
|
|
197
|
+
&.tertiary:not([disabled], .disabled):hover {
|
|
198
|
+
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-tertiary-hover, #f0f0f0));
|
|
199
|
+
--lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-int-on-tertiary-hover, #000000));
|
|
200
|
+
}
|
|
201
|
+
&.tertiary:not([disabled], .disabled):active {
|
|
202
|
+
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-tertiary-active, #e0e0e0));
|
|
203
|
+
--lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-int-on-tertiary-active, #000000));
|
|
204
|
+
}
|
|
199
205
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
+
&.small {
|
|
207
|
+
--lmvz-button-padding-inline: var(--lmvz-button-padding-inline-override, var(--lmvz-component-input-padding-sm, clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem)));
|
|
208
|
+
--lmvz-button-padding-block: var(--lmvz-button-padding-block-override, var(--lmvz-component-input-padding-sm, clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem)));
|
|
209
|
+
--lmvz-button-gap: var(--lmvz-button-gap-override, var(--lmvz-component-input-gap-sm, clamp(0.38rem, 0.31rem + 0.26vw, 0.63rem)));
|
|
210
|
+
--lmvz-button-min-height: var(--lmvz-button-min-height-override, var(--lmvz-component-input-size-sm, clamp(2rem, 1.94rem + 0.26vw, 2.25rem)));
|
|
211
|
+
--lmvz-button-font: var(--lmvz-button-font-override, var(--lmvz-typography-label-sm-strong, normal 700 clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem) / 1.5
|
|
206
212
|
Router));
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
button.
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
--lmvz-button-font: var(--lmvz-button-font-override, var(--lmvz-typography-label-lg-strong, normal 700 clamp(1rem, 0.97rem + 0.13vw, 1.13rem) / 1.5
|
|
213
|
+
}
|
|
214
|
+
&.large {
|
|
215
|
+
--lmvz-button-padding-inline: var(--lmvz-button-padding-inline-override, var(--lmvz-component-input-padding-lg, clamp(1rem, 0.94rem + 0.26vw, 1.25rem)));
|
|
216
|
+
--lmvz-button-padding-block: var(--lmvz-button-padding-block-override, var(--lmvz-component-input-padding-lg, clamp(1rem, 0.94rem + 0.26vw, 1.25rem)));
|
|
217
|
+
--lmvz-button-gap: var(--lmvz-button-gap-override, var(--lmvz-component-input-gap-lg, clamp(0.75rem, 0.69rem + 0.26vw, 1rem)));
|
|
218
|
+
--lmvz-button-min-height: var(--lmvz-button-min-height-override, var(--lmvz-component-input-size-lg, clamp(2.75rem, 2.69rem + 0.26vw, 3rem)));
|
|
219
|
+
--lmvz-button-font: var(--lmvz-button-font-override, var(--lmvz-typography-label-lg-strong, normal 700 clamp(1rem, 0.97rem + 0.13vw, 1.13rem) / 1.5
|
|
215
220
|
Router));
|
|
221
|
+
}
|
|
216
222
|
}
|
|
217
223
|
|
|
218
224
|
|
|
219
|
-
display: inline-block;
|
|
220
|
-
|
|
221
|
-
button {
|
|
222
225
|
width: 100%;
|
|
223
226
|
}
|
|
224
227
|
}
|
|
@@ -78,12 +78,23 @@ legend {
|
|
|
78
78
|
/** component dependencies */
|
|
79
79
|
/* * the (invalid nested) import will be handled by postcss */
|
|
80
80
|
/* stylelint-disable no-invalid-position-at-import-rule */
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
/* stylelint-disable nesting-selector-no-missing-scoping-root */
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* This fragment is meant to be reusable in multiple component types.
|
|
85
|
+
* CAUTION: always wrap the import in a tag selector (ususally button)!
|
|
86
|
+
*/
|
|
87
|
+
& {
|
|
88
|
+
/* the (invalid nested) import will be handled by postcss */
|
|
89
|
+
/* stylelint-disable-next-line no-invalid-position-at-import-rule */
|
|
90
|
+
/* stylelint-disable nesting-selector-no-missing-scoping-root */
|
|
91
|
+
& {
|
|
92
|
+
/* variables are declared on :host
|
|
84
93
|
so that outer ::slotted(lmvz-button) overrides are inherited correctly via shadow inheritance.
|
|
85
|
-
They are also declared here so that non-shadow consumers
|
|
86
|
-
|
|
94
|
+
They are also declared here so that non-shadow consumers have the default values in scope. */
|
|
95
|
+
|
|
96
|
+
/* secondary styling is default, primary is explicit */
|
|
97
|
+
|
|
87
98
|
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-secondary, #f0f0f0));
|
|
88
99
|
--lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-int-on-secondary, #000000));
|
|
89
100
|
--lmvz-button-radius: var(--lmvz-button-radius-override, var(--lmvz-component-input-radius-default, 999px));
|
|
@@ -98,19 +109,20 @@ legend {
|
|
|
98
109
|
|
|
99
110
|
display: inline-flex;
|
|
100
111
|
align-items: center;
|
|
101
|
-
justify-content: var(--lmvz-button-content-justification
|
|
102
|
-
gap: var(--lmvz-button-gap);
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
border: var(--lmvz-button-border-width) solid var(--lmvz-button-border-color);
|
|
112
|
+
justify-content: var(--lmvz-button-content-justification, center);
|
|
113
|
+
gap: var(--lmvz-button-gap, var(--lmvz-component-input-gap-md, clamp(0.5rem, 0.44rem + 0.26vw, 0.75rem)));
|
|
114
|
+
|
|
115
|
+
box-sizing: border-box; /* to inlclude paddings & border in min-height */
|
|
116
|
+
padding-block: var(--lmvz-button-padding-block, var(--lmvz-component-input-padding-md, clamp(0.88rem, 0.84rem + 0.13vw, 1rem)));
|
|
117
|
+
padding-inline: var(--lmvz-button-padding-inline, var(--lmvz-component-input-padding-md, clamp(0.88rem, 0.84rem + 0.13vw, 1rem)));
|
|
118
|
+
min-height: var(--lmvz-button-min-height, var(--lmvz-component-input-size-md, clamp(2.5rem, 2.44rem + 0.26vw, 2.75rem)));
|
|
119
|
+
border: var(--lmvz-button-border-width, 0) solid var(--lmvz-button-border-color, transparent);
|
|
120
|
+
border-radius: var(--lmvz-button-radius, var(--lmvz-component-input-radius-default, 999px));
|
|
121
|
+
|
|
109
122
|
background-color: var(--lmvz-button-background);
|
|
110
123
|
color: var(--lmvz-button-color);
|
|
111
124
|
cursor: pointer;
|
|
112
125
|
font: var(--lmvz-button-font);
|
|
113
|
-
/* text-align: center; */
|
|
114
126
|
text-decoration: none;
|
|
115
127
|
white-space: nowrap;
|
|
116
128
|
transition:
|
|
@@ -120,100 +132,91 @@ legend {
|
|
|
120
132
|
box-shadow 0.15s ease;
|
|
121
133
|
}
|
|
122
134
|
|
|
123
|
-
button > * {
|
|
124
|
-
font: inherit;
|
|
125
|
-
color: inherit;
|
|
126
|
-
}
|
|
127
135
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
136
|
+
& > * {
|
|
137
|
+
font: inherit;
|
|
138
|
+
color: inherit;
|
|
139
|
+
}
|
|
140
|
+
&:focus-visible {
|
|
141
|
+
outline: var(--lmvz-ds-outline, 1px solid #0e7ab4);
|
|
142
|
+
outline-offset: var(--lmvz-ds-outline-offset, clamp(0.25rem, 0.19rem + 0.26vw, 0.5rem));
|
|
143
|
+
position: relative;
|
|
144
|
+
z-index: 1;
|
|
145
|
+
}
|
|
146
|
+
&:is([disabled], .disabled) {
|
|
147
|
+
cursor: not-allowed;
|
|
148
|
+
pointer-events: none;
|
|
149
|
+
/* } */
|
|
150
|
+
|
|
151
|
+
/* button:is(:is([disabled], .disabled):not(.secondary):not(.tertiary), .primary:is([disabled], .disabled)) { */
|
|
152
|
+
/* button:is([disabled], .disabled) { */
|
|
153
|
+
/* --lmvz-button-background: var(--lmvz-global-color-neutral-500); */
|
|
154
|
+
/* --lmvz-button-color: var(--lmvz-global-color-neutral-white); */
|
|
155
|
+
opacity: var(--lmvz-component-input-disabled-opacity, 40%);
|
|
156
|
+
}
|
|
157
|
+
&:not([disabled]):hover {
|
|
158
|
+
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-secondary-hover, #e0e0e0));
|
|
159
|
+
}
|
|
160
|
+
&:not([disabled]):active {
|
|
161
|
+
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-secondary-active, #d4d4d4));
|
|
162
|
+
}
|
|
134
163
|
|
|
135
|
-
|
|
136
|
-
cursor: not-allowed;
|
|
137
|
-
pointer-events: none;
|
|
138
|
-
/* } */
|
|
139
|
-
|
|
140
|
-
/* button:is(:is([disabled], .disabled):not(.secondary):not(.tertiary), .primary:is([disabled], .disabled)) { */
|
|
141
|
-
/* button:is([disabled], .disabled) { */
|
|
142
|
-
/* --lmvz-button-background: var(--lmvz-global-color-neutral-500); */
|
|
143
|
-
/* --lmvz-button-color: var(--lmvz-global-color-neutral-white); */
|
|
144
|
-
opacity: var(--lmvz-component-input-disabled-opacity, 40%);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
button:not([disabled]):hover {
|
|
148
|
-
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-secondary-hover, #e0e0e0));
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
button:not([disabled]):active {
|
|
152
|
-
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-secondary-active, #d4d4d4));
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
button.primary {
|
|
156
|
-
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-primary, #000000));
|
|
157
|
-
--lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-int-on-primary, #ffffff));
|
|
158
|
-
--lmvz-button-border-width: var(--lmvz-button-border-width-override, 0);
|
|
159
|
-
--lmvz-button-border-color: var(--lmvz-button-border-color-override, transparent);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
button.primary:not([disabled], .disabled):hover {
|
|
163
|
-
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-primary-hover, #2e2e2e));
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
button.primary:not([disabled], .disabled):active {
|
|
167
|
-
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-primary-active, #545454));
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
button.danger {
|
|
171
|
-
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-tertiary, #ffffff));
|
|
172
|
-
--lmvz-button-border-color: var(--lmvz-button-border-color-override, transparent);
|
|
173
|
-
--lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-status-on-danger, #a31419));
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
button.danger:not([disabled], .disabled):hover {
|
|
177
|
-
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-status-danger, #fbdfe0));
|
|
178
|
-
--lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-status-on-danger, #a31419));
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
button.danger:not([disabled], .disabled):active {
|
|
182
|
-
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-status-on-danger-subtle, #e8454b));
|
|
183
|
-
--lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-status-on-danger, #a31419));
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
button.tertiary {
|
|
187
|
-
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-tertiary, #ffffff));
|
|
188
|
-
--lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-int-on-tertiary, #000000));
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
button.tertiary:not([disabled], .disabled):hover {
|
|
192
|
-
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-tertiary-hover, #f0f0f0));
|
|
193
|
-
--lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-int-on-tertiary-hover, #000000));
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
button.tertiary:not([disabled], .disabled):active {
|
|
197
|
-
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-tertiary-active, #e0e0e0));
|
|
198
|
-
--lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-int-on-tertiary-active, #000000));
|
|
199
|
-
}
|
|
164
|
+
/* secondary styling is default, primary is explicit */
|
|
200
165
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
166
|
+
&.primary {
|
|
167
|
+
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-primary, #000000));
|
|
168
|
+
--lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-int-on-primary, #ffffff));
|
|
169
|
+
--lmvz-button-border-width: var(--lmvz-button-border-width-override, 0);
|
|
170
|
+
--lmvz-button-border-color: var(--lmvz-button-border-color-override, transparent);
|
|
171
|
+
}
|
|
172
|
+
&.primary:not([disabled], .disabled):hover {
|
|
173
|
+
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-primary-hover, #2e2e2e));
|
|
174
|
+
}
|
|
175
|
+
&.primary:not([disabled], .disabled):active {
|
|
176
|
+
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-primary-active, #545454));
|
|
177
|
+
}
|
|
178
|
+
&.danger {
|
|
179
|
+
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-tertiary, #ffffff));
|
|
180
|
+
--lmvz-button-border-color: var(--lmvz-button-border-color-override, transparent);
|
|
181
|
+
--lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-status-on-danger, #a31419));
|
|
182
|
+
}
|
|
183
|
+
&.danger:not([disabled], .disabled):hover {
|
|
184
|
+
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-status-danger, #fbdfe0));
|
|
185
|
+
--lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-status-on-danger, #a31419));
|
|
186
|
+
}
|
|
187
|
+
&.danger:not([disabled], .disabled):active {
|
|
188
|
+
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-status-on-danger-subtle, #e8454b));
|
|
189
|
+
--lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-status-on-danger, #a31419));
|
|
190
|
+
}
|
|
191
|
+
&.tertiary {
|
|
192
|
+
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-tertiary, #ffffff));
|
|
193
|
+
--lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-int-on-tertiary, #000000));
|
|
194
|
+
}
|
|
195
|
+
&.tertiary:not([disabled], .disabled):hover {
|
|
196
|
+
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-tertiary-hover, #f0f0f0));
|
|
197
|
+
--lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-int-on-tertiary-hover, #000000));
|
|
198
|
+
}
|
|
199
|
+
&.tertiary:not([disabled], .disabled):active {
|
|
200
|
+
--lmvz-button-background: var(--lmvz-button-background-override, var(--lmvz-semantic-color-int-tertiary-active, #e0e0e0));
|
|
201
|
+
--lmvz-button-color: var(--lmvz-button-color-override, var(--lmvz-semantic-color-int-on-tertiary-active, #000000));
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
&.small {
|
|
205
|
+
--lmvz-button-padding-inline: var(--lmvz-button-padding-inline-override, var(--lmvz-component-input-padding-sm, clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem)));
|
|
206
|
+
--lmvz-button-padding-block: var(--lmvz-button-padding-block-override, var(--lmvz-component-input-padding-sm, clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem)));
|
|
207
|
+
--lmvz-button-gap: var(--lmvz-button-gap-override, var(--lmvz-component-input-gap-sm, clamp(0.38rem, 0.31rem + 0.26vw, 0.63rem)));
|
|
208
|
+
--lmvz-button-min-height: var(--lmvz-button-min-height-override, var(--lmvz-component-input-size-sm, clamp(2rem, 1.94rem + 0.26vw, 2.25rem)));
|
|
209
|
+
--lmvz-button-font: var(--lmvz-button-font-override, var(--lmvz-typography-label-sm-strong, normal 700 clamp(0.75rem, 0.72rem + 0.13vw, 0.88rem) / 1.5
|
|
207
210
|
Router));
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
button.
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
--lmvz-button-font: var(--lmvz-button-font-override, var(--lmvz-typography-label-lg-strong, normal 700 clamp(1rem, 0.97rem + 0.13vw, 1.13rem) / 1.5
|
|
211
|
+
}
|
|
212
|
+
&.large {
|
|
213
|
+
--lmvz-button-padding-inline: var(--lmvz-button-padding-inline-override, var(--lmvz-component-input-padding-lg, clamp(1rem, 0.94rem + 0.26vw, 1.25rem)));
|
|
214
|
+
--lmvz-button-padding-block: var(--lmvz-button-padding-block-override, var(--lmvz-component-input-padding-lg, clamp(1rem, 0.94rem + 0.26vw, 1.25rem)));
|
|
215
|
+
--lmvz-button-gap: var(--lmvz-button-gap-override, var(--lmvz-component-input-gap-lg, clamp(0.75rem, 0.69rem + 0.26vw, 1rem)));
|
|
216
|
+
--lmvz-button-min-height: var(--lmvz-button-min-height-override, var(--lmvz-component-input-size-lg, clamp(2.75rem, 2.69rem + 0.26vw, 3rem)));
|
|
217
|
+
--lmvz-button-font: var(--lmvz-button-font-override, var(--lmvz-typography-label-lg-strong, normal 700 clamp(1rem, 0.97rem + 0.13vw, 1.13rem) / 1.5
|
|
216
218
|
Router));
|
|
219
|
+
}
|
|
217
220
|
}
|
|
218
221
|
|
|
219
222
|
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
:host([type='active']) {
|
|
59
|
-
--lmvz-chip-border-color: var(--lmvz-semantic-color-status-on-active-subtle, #
|
|
59
|
+
--lmvz-chip-border-color: var(--lmvz-semantic-color-status-on-active-subtle, #7fccf5);
|
|
60
60
|
--lmvz-chip-background-color: var(--lmvz-semantic-color-status-active, #f6fbfe);
|
|
61
61
|
--lmvz-chip-foreground-color: var(--lmvz-semantic-color-status-on-active, #0e7ab4);
|
|
62
62
|
}
|
|
@@ -42,13 +42,13 @@ export class LmvzChip extends ReactiveControllerHost {
|
|
|
42
42
|
checkContent = debounce(() => {
|
|
43
43
|
if (!isAriaValidationEnabled())
|
|
44
44
|
return;
|
|
45
|
-
const elements = [...(this.beforeSlot?.assignedElements() ?? []), ...(this.defaultSlot?.
|
|
45
|
+
const elements = [...(this.beforeSlot?.assignedElements() ?? []), ...(this.defaultSlot?.assignedNodes() ?? []), ...(this.afterSlot?.assignedElements() ?? [])];
|
|
46
46
|
if (!elements.length) {
|
|
47
47
|
console.warn('LmvzChip has no assigned content. Please add content to the default slot or the before-text/after-text slots.');
|
|
48
48
|
}
|
|
49
49
|
}, 500);
|
|
50
50
|
render() {
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: '63581b0c567d208b200464e9985ac32d97c1ad43', type: this.type, size: this.size }, h("slot", { key: '7aa740cc80b400893dcbe7021d5513d3f1ca476b', name: "before-text", ref: (el) => (this.beforeSlot = el), onSlotchange: () => this.checkContent() }), h("span", { key: 'da5b9e272becef812b4914bf25b451da16bb9012', class: "content-overflow-wrapper" }, h("slot", { key: 'a925dcd383c86dbea63790b5623d159472b6684c', ref: (el) => (this.defaultSlot = el), onSlotchange: () => this.checkContent() })), h("slot", { key: 'e018eafb75b85068c992e9f91c4fac89a4c95153', name: "after-text", ref: (el) => (this.afterSlot = el), onSlotchange: () => this.checkContent() })));
|
|
52
52
|
}
|
|
53
53
|
static get is() { return "lmvz-chip"; }
|
|
54
54
|
static get encapsulation() { return "shadow"; }
|
|
@@ -11,7 +11,7 @@ export class LmvzHeader extends ReactiveControllerHost {
|
|
|
11
11
|
primarySlot;
|
|
12
12
|
secondarySlot;
|
|
13
13
|
secondaryNav;
|
|
14
|
-
keyboardNavigationController = new DirectionalFocusController(this, { orientation: 'both' });
|
|
14
|
+
keyboardNavigationController = new DirectionalFocusController(this, { orientation: 'both', manageTabIndex: false, enableHomeAndEnd: false });
|
|
15
15
|
get primaryMenuitems() {
|
|
16
16
|
return this.primarySlot?.assignedElements({ flatten: false }) || [];
|
|
17
17
|
}
|
|
@@ -87,7 +87,7 @@ export class LmvzHeader extends ReactiveControllerHost {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
render() {
|
|
90
|
-
return (h(Host, { key: '
|
|
90
|
+
return (h(Host, { key: 'a72c860d7f67c9631c462c0abcc798bb142dfc55', onFocus: this.delegateFocus.bind(this) }, h("div", { key: '4ed87264d201c513bce284536793692424ed864b', class: "brand" }, h("slot", { key: '9291d81d7f8a630007b8ad827a16ebea7222b9d2', name: "brand" }, h("img", { key: '77da99409f40d93e4a2d190cbb2a8857f1e81c36', id: "fallback-logo-lmvz", src: logo, alt: "Lehrmittelverlag Z\u00FCrich" }))), h("nav", { key: '3c40c04bb23524ae58e391a54b044e225a25ad07', "aria-label": "Hauptnavigation" }, h("div", { key: '207b8032d3d11b4bfacb6e7fcffb683ad5da8ccc', role: "menubar", class: "primary-menubar" }, h("slot", { key: '8ae67a57ac7b6bb6083c469a857542e31b0c2294', name: "nav-primary", ref: (el) => (this.primarySlot = el) }), h("div", { key: '86b9696c95e9ae0e3843fa1607f268dcae8cb279', role: "menu", id: "nav-secondary", class: "secondary-menubar", hidden: !this.lmvzActiveNav, ref: (el) => (this.secondaryNav = el) }, h("slot", { key: '67966de33555dc26ac2dc51fc8a85d456a2e8e85', name: this.secondarySlotName, ref: (el) => (this.secondarySlot = el) })))), h("div", { key: 'bfb2831144cee723c3182d96d64f44be1cc5a78b', class: "actions" }, h("slot", { key: '6956b81fa8ed6c446edc5f7d9708462b39bc8cbb', name: "actions" }))));
|
|
91
91
|
}
|
|
92
92
|
static get is() { return "lmvz-header"; }
|
|
93
93
|
static get encapsulation() { return "shadow"; }
|
|
@@ -187,9 +187,6 @@ export class LmvzInput extends ReactiveControllerHost {
|
|
|
187
187
|
return;
|
|
188
188
|
this.updateNativeError('input');
|
|
189
189
|
};
|
|
190
|
-
handleChange = (event) => {
|
|
191
|
-
};
|
|
192
|
-
handleFocus = () => { };
|
|
193
190
|
handleInvalid = () => this.updateNativeError('invalid');
|
|
194
191
|
handleBlur = () => {
|
|
195
192
|
this.inputValidityActive = true;
|
|
@@ -207,9 +204,9 @@ export class LmvzInput extends ReactiveControllerHost {
|
|
|
207
204
|
render() {
|
|
208
205
|
const hasValue = Boolean(this.value);
|
|
209
206
|
const shouldFloatLabel = hasValue || Boolean(this.placeholder);
|
|
210
|
-
return (h("div", { key: '
|
|
207
|
+
return (h("div", { key: '85f498773efdad53d309e8b1eb5b85ea0601277e', class: classNames('input-container', {
|
|
211
208
|
'interaction-filled': hasValue,
|
|
212
|
-
}) }, h("div", { key: '
|
|
209
|
+
}) }, h("div", { key: 'eb74bdd8170014c2a17c6046878b0f4d61fece25', class: "input-wrapper" }, h("slot", { key: 'ceb3acb5dcb641900caf9a22f43295d1c407ad2e', name: "before-input" }), h("div", { key: 'a7f626addd83cbf79b435989bec94f777818794e', class: "label-input-group" }, h("label", { key: '391e2d1f873f9aef9bd9e7f14b006d898a699abe', htmlFor: this.inputId, class: classNames({ floating: shouldFloatLabel }) }, this.label, this.required && (h("span", { key: '691251a0efb1a60fd5e53447a6204c13008545a1', class: "required-indicator", "aria-hidden": "true" }, ' ', "*"))), h("input", { key: 'f37d3d7d5076636638b2da59cca91c1cedc7504a', id: this.inputId, ref: (el) => (this.nativeInputElement = el), type: this.type, min: this.min, max: this.max, step: this.step, value: this.value, name: this.name, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, required: this.required, form: this.form, autocomplete: this.autocomplete, inputmode: this.inputmode, autocorrect: this.autocorrect, autocapitalize: this.autocapitalize, spellcheck: this.spellcheck, autofocus: this.autofocus, minlength: this.minlength, maxlength: this.maxlength, pattern: this.pattern, "aria-invalid": this.error ? 'true' : 'false', "aria-required": this.required ? 'true' : 'false', "aria-describedby": this.describedBy, "aria-errormessage": this.errorId, onInput: this.handleInput, onBlur: this.handleBlur, onInvalid: this.handleInvalid })), h("slot", { key: '22b2be3072fc274bbeff4d92f25dccc5ea50c4d0', name: "after-input" })), h("div", { key: '95f28aad61a5d7ea45fb4479801097036652b08f', id: this.helperId, role: "status" }, this.helperText || null), h("div", { key: '9ea8420b336b33a0fd3b7e53cc4efa44983cbdc3', id: this.errorId, role: "alert" }, (this.showErrorMessage && this.errorMessage) || null)));
|
|
213
210
|
}
|
|
214
211
|
static get is() { return "lmvz-input"; }
|
|
215
212
|
static get encapsulation() { return "scoped"; }
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
:host([type='neutral']) {
|
|
21
21
|
background-color: var(--lmvz-semantic-color-status-active, #f6fbfe);
|
|
22
|
-
border-color: var(--lmvz-semantic-color-status-on-active-subtle, #
|
|
22
|
+
border-color: var(--lmvz-semantic-color-status-on-active-subtle, #7fccf5);
|
|
23
23
|
color: var(--lmvz-semantic-color-status-on-active, #0e7ab4);
|
|
24
24
|
}
|
|
25
25
|
|