@vectoriox/iox-ui 5.80.0 → 5.82.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/design-core/index.d.ts +48 -9
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +76 -11
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-forms-core.mjs +96 -1
- package/fesm2022/vectoriox-iox-ui-forms-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +110 -0
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +847 -76
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/forms-core/index.d.ts +83 -2
- package/index.d.ts +368 -34
- package/package.json +1 -1
- package/src/design-core/element-styles.ts +14 -2
- package/src/design-core/entrance-timing.ts +14 -3
- package/src/design-core/flavor-spec.generated.ts +12 -6
- package/src/design-core/public-api.ts +1 -0
- package/src/design-core/theme-color.ts +41 -0
- package/src/forms-core/public-api.ts +1 -0
- package/src/forms-core/submit-lifecycle.ts +128 -0
- package/src/generation-core/node-baselines.generated.ts +110 -0
- package/styles/iox-design.css +33 -11
- package/styles/iox-forms.css +20 -0
package/styles/iox-design.css
CHANGED
|
@@ -121,6 +121,33 @@ iox-gallery.iox-es-media[data-iox-empty] > .iox-gallery {
|
|
|
121
121
|
box-shadow: var(--iox-focus-ring);
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
+
/* ── Card hover — lift and picture zoom ONLY where the whole card is the action (decision D3, Emil 93/143) ──────────
|
|
125
|
+
A card whose whole surface links (Card v2's "Link the whole card", or a LinkedContainer wearing `card`) lifts and its
|
|
126
|
+
picture zooms on hover; every other card answers with its border and colour only. The card style's hover map stays
|
|
127
|
+
as it is on every node — the lift, the shadow growth and the zoom read tokens that a NON-linked card zeroes here.
|
|
128
|
+
The picture zooms with the CARD's hover (its own hover is under the stretched link): `scale` composes with the
|
|
129
|
+
picture's own transform, on the look's slow duration; hover devices only (G1). */
|
|
130
|
+
.iox-es-card:not(a):not(:has(.iox-card-link)) {
|
|
131
|
+
--iox-card-lift: 0px;
|
|
132
|
+
--iox-card-hover-x: 0px;
|
|
133
|
+
--iox-card-shadow-hover: var(--iox-card-shadow);
|
|
134
|
+
}
|
|
135
|
+
.iox-es-card {
|
|
136
|
+
--card-media-zoom: var(--iox-image-hover-scale);
|
|
137
|
+
}
|
|
138
|
+
.iox-es-card .iox-es-media,
|
|
139
|
+
.iox-es-media:not(a *) {
|
|
140
|
+
--iox-image-hover-scale: 1;
|
|
141
|
+
}
|
|
142
|
+
.iox-es-card .iox-es-media {
|
|
143
|
+
transition: transform var(--iox-dur-slow) var(--iox-ease-standard), scale var(--iox-dur-slow) var(--iox-ease-standard);
|
|
144
|
+
}
|
|
145
|
+
@media (hover: hover) and (pointer: fine) {
|
|
146
|
+
:is(a.iox-es-card, .iox-es-card:has(.iox-card-link)):hover .iox-es-media {
|
|
147
|
+
scale: var(--card-media-zoom);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
124
151
|
/* ── CC1: mobile navigation (complex-components plan §7a, R1; boards 1–2) ─────────────────────── */
|
|
125
152
|
|
|
126
153
|
/* The DRAWER (board 1, board-8 Q9): a Dialog wearing an element style, placed at the start or end edge, is
|
|
@@ -197,17 +224,12 @@ dialog[data-iox-dialog].iox-es:is([data-iox-closing], :not([open]))::backdrop {
|
|
|
197
224
|
@starting-style {
|
|
198
225
|
dialog[data-iox-dialog].iox-es[open]::backdrop { opacity: 0; }
|
|
199
226
|
}
|
|
200
|
-
/* The drawer's pages
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
dialog[data-iox-dialog].iox-es[open] .iox-role-nav-drawer-links > :nth-child(3) { animation-delay: calc(var(--iox-dur-fast) * 0.5); }
|
|
207
|
-
dialog[data-iox-dialog].iox-es[open] .iox-role-nav-drawer-links > :nth-child(4) { animation-delay: calc(var(--iox-dur-fast) * 0.75); }
|
|
208
|
-
dialog[data-iox-dialog].iox-es[open] .iox-role-nav-drawer-links > :nth-child(n + 5) { animation-delay: var(--iox-dur-fast); }
|
|
209
|
-
@keyframes iox-drawer-link-in {
|
|
210
|
-
from { opacity: 0; translate: 0 8px; }
|
|
227
|
+
/* The drawer's pages arrive WITH it (decision D1 — Emil 64/65/110: one entrance per container, no menu-row stagger):
|
|
228
|
+
the sheet slides in carrying its links, and they leave with it. */
|
|
229
|
+
|
|
230
|
+
/* The drawer scrolls on its own (M6): a flick at its end never scrolls the page under the scrim. */
|
|
231
|
+
dialog[data-iox-dialog] {
|
|
232
|
+
overscroll-behavior: contain;
|
|
211
233
|
}
|
|
212
234
|
|
|
213
235
|
/* A navigation's link lists (board 1): no underline at rest — the current page's link is the one
|
package/styles/iox-forms.css
CHANGED
|
@@ -49,6 +49,21 @@
|
|
|
49
49
|
.iox-field__error { margin: 4px 0 0; }
|
|
50
50
|
.iox-submit { font: inherit; border: none; cursor: pointer; }
|
|
51
51
|
|
|
52
|
+
/* The submit button follows its FORM's state (vectoriox/iox-ui#42). Its two labels (forms-core
|
|
53
|
+
submitButtonLabelsHtml / IoxSubmitButtonComponent) share one grid cell, so the button keeps the longer one's
|
|
54
|
+
width and never jumps; the form's data-iox-state picks the one that shows — the canvas's Sending state, the
|
|
55
|
+
component path and the string path alike. `visibility` (not display) keeps the hidden one out of the
|
|
56
|
+
accessible name. Busy and disabled are written by syncSubmitButtons. */
|
|
57
|
+
.iox-submit__labels { display: inline-grid; }
|
|
58
|
+
.iox-submit__labels > * { grid-area: 1 / 1; }
|
|
59
|
+
.iox-form:not([data-iox-state="submitting"]) .iox-submit__busy,
|
|
60
|
+
.iox-form[data-iox-state="submitting"] .iox-submit__idle { visibility: hidden; }
|
|
61
|
+
.iox-submit[aria-busy="true"] { cursor: progress; }
|
|
62
|
+
|
|
63
|
+
/* The honeypot and the failure announcer (forms-core `formChromeHtml`, IoxFormComponent's template): off-screen
|
|
64
|
+
rather than display:none — some bots skip hidden inputs, and a live region must stay in the tree. */
|
|
65
|
+
.iox-form__hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
|
|
66
|
+
|
|
52
67
|
/* Visually hidden, still announced — a label may be hidden, never deleted. */
|
|
53
68
|
.iox-field__label--hidden {
|
|
54
69
|
position: absolute; width: 1px; height: 1px; margin: -1px;
|
|
@@ -210,16 +225,21 @@
|
|
|
210
225
|
border-radius: 50%;
|
|
211
226
|
transform: scale(0);
|
|
212
227
|
}
|
|
228
|
+
/* Hover, on hover devices only (G1 — a tap must not leave a box outlined). */
|
|
229
|
+
@media (hover: hover) and (pointer: fine) {
|
|
213
230
|
.iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio']):hover {
|
|
214
231
|
border-color: var(--iox-accent-text);
|
|
215
232
|
}
|
|
233
|
+
}
|
|
216
234
|
.iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio']):checked {
|
|
217
235
|
background: var(--iox-accent);
|
|
218
236
|
border-color: var(--iox-accent-text);
|
|
219
237
|
}
|
|
238
|
+
@media (hover: hover) and (pointer: fine) {
|
|
220
239
|
.iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio']):checked:hover {
|
|
221
240
|
background: var(--iox-accent-hover);
|
|
222
241
|
}
|
|
242
|
+
}
|
|
223
243
|
.iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio']):checked::before {
|
|
224
244
|
transform: translateY(-0.08em) rotate(45deg) scale(1);
|
|
225
245
|
}
|