@vectoriox/iox-ui 5.162.0 → 5.163.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/actions-core/index.d.ts +171 -3
- package/assist-core/index.d.ts +3 -2
- package/composite-core/index.d.ts +185 -2
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs +243 -2
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-assist-core.mjs +6 -5
- package/fesm2022/vectoriox-iox-ui-assist-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +404 -163
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +56 -5
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +140 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs +80 -23
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +383 -10
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +46 -5
- package/harness-core/index.d.ts +132 -2
- package/index.d.ts +105 -3
- package/package.json +1 -1
- package/scene-core/index.d.ts +44 -12
- package/src/actions-core/popup-arrival.ts +328 -0
- package/src/actions-core/public-api.ts +1 -0
- package/src/assist-core/media-generate.ts +6 -5
- package/src/composite-core/popup.ts +285 -0
- package/src/composite-core/public-api.ts +1 -0
- package/src/generation-core/ai-run.ts +65 -2
- package/src/generation-core/pictures.ts +4 -3
- package/src/harness-core/business-types.ts +2 -0
- package/src/harness-core/harness-spec.generated.ts +83 -0
- package/src/harness-core/popup-stance.ts +111 -0
- package/src/harness-core/public-api.ts +1 -0
- package/src/scene-core/scroll-driver.ts +97 -25
- package/styles/iox-design.css +121 -2
package/styles/iox-design.css
CHANGED
|
@@ -968,11 +968,130 @@ body:not(.builder-active):has(.iox-bar-reserve) { padding-bottom: calc(var(--iox
|
|
|
968
968
|
}
|
|
969
969
|
|
|
970
970
|
/* A closed live dialog never shows, whatever display its node sets (a drawer lays its parts out as a
|
|
971
|
-
flex column): an author rule would otherwise beat the UA's `dialog:not([open]) { display: none }`.
|
|
972
|
-
|
|
971
|
+
flex column): an author rule would otherwise beat the UA's `dialog:not([open]) { display: none }`.
|
|
972
|
+
Popups PU1: a NON-modal dialog (a popup's corner / bar) is shown with `showPopover()` and never gets `[open]` — it is
|
|
973
|
+
shown while `:popover-open`. Inside `:is()` (forgiving), so a browser without the Popover API still hides every closed
|
|
974
|
+
dialog. */
|
|
975
|
+
dialog[data-iox-dialog]:not([open]):not(:is(:popover-open)) {
|
|
973
976
|
display: none;
|
|
974
977
|
}
|
|
975
978
|
|
|
979
|
+
/* ── POPUPS (popups-plan.md §3b, §6, §7, §8 — PU1) ─────────────────────────────────────────────────────────────────────
|
|
980
|
+
A popup is a Dialog with `data-iox-popup` (its kind) and `data-iox-popup-form`, opened by the popup runtime:
|
|
981
|
+
· `corner` — a card at the bottom-right corner, `--iox-popup-inset` from both edges (the same corner on a Hebrew
|
|
982
|
+
site, popups-plan §3b), sliding in from that edge; NON-modal (`showPopover`).
|
|
983
|
+
· `bar` — one line along the bottom edge (≤ 64px; ≤ 88px on a phone), rising from it; NON-modal.
|
|
984
|
+
· `centred` — a newsletter's modal card on a laptop (`showModal`, the look's scrim), growing from .97; on a phone the
|
|
985
|
+
runtime opens it as the corner card.
|
|
986
|
+
· on a phone (≤ 767px) every card is a bottom card at most 30% of the screen high, inset by the smaller of the token and
|
|
987
|
+
12px, above a bottom bar and the safe area; it rises 24px as it fades in (a slide from the side reads as a page change).
|
|
988
|
+
Motion (Emil): transitions, never keyframes — a close mid-arrival leaves from where it is; transform / opacity only; the
|
|
989
|
+
look's ease-enter / ease-exit; `popup-dur-in` × the How-animated scale the runtime writes, the exit `popup-dur-out`;
|
|
990
|
+
Still fades only; reduced motion a ≤ 200ms fade, no movement. Specificity: above the styled dialog's own enter / leave
|
|
991
|
+
(0,3,1) so a popup's motion is its own. */
|
|
992
|
+
dialog[data-iox-dialog][data-iox-popup] {
|
|
993
|
+
--popup-inset: var(--iox-popup-inset);
|
|
994
|
+
--popup-in: calc(var(--iox-popup-dur-in) * var(--popup-scale, 1));
|
|
995
|
+
--popup-out: calc(var(--iox-popup-dur-out) * var(--popup-scale, 1));
|
|
996
|
+
--popup-from-x: 0px;
|
|
997
|
+
--popup-from-y: 0px;
|
|
998
|
+
--popup-from-scale: 1;
|
|
999
|
+
box-sizing: border-box;
|
|
1000
|
+
overflow: auto;
|
|
1001
|
+
overscroll-behavior: contain;
|
|
1002
|
+
transition:
|
|
1003
|
+
translate var(--popup-in) var(--iox-ease-enter),
|
|
1004
|
+
scale var(--popup-in) var(--iox-ease-enter),
|
|
1005
|
+
opacity var(--popup-in) var(--iox-ease-enter),
|
|
1006
|
+
overlay var(--popup-in) allow-discrete,
|
|
1007
|
+
display var(--popup-in) allow-discrete;
|
|
1008
|
+
}
|
|
1009
|
+
dialog[data-iox-dialog][data-iox-popup]:is([data-iox-popup-form='corner'], [data-iox-popup-form='bar']) {
|
|
1010
|
+
position: fixed;
|
|
1011
|
+
margin: 0;
|
|
1012
|
+
}
|
|
1013
|
+
dialog[data-iox-dialog][data-iox-popup][data-iox-popup-form='corner'] {
|
|
1014
|
+
--popup-from-x: calc(100% + var(--popup-inset));
|
|
1015
|
+
inset: auto var(--popup-inset) calc(var(--popup-inset) + env(safe-area-inset-bottom, 0px)) auto;
|
|
1016
|
+
min-width: min(360px, calc(100vw - var(--popup-inset) * 2));
|
|
1017
|
+
max-width: min(560px, calc(100vw - var(--popup-inset) * 2));
|
|
1018
|
+
max-height: calc(100dvh - var(--popup-inset) * 2);
|
|
1019
|
+
}
|
|
1020
|
+
dialog[data-iox-dialog][data-iox-popup][data-iox-popup-form='bar'] {
|
|
1021
|
+
--popup-from-y: 100%;
|
|
1022
|
+
inset: auto 0 0 0;
|
|
1023
|
+
width: 100%;
|
|
1024
|
+
max-width: 100%;
|
|
1025
|
+
max-height: 64px;
|
|
1026
|
+
border-radius: 0;
|
|
1027
|
+
padding-bottom: env(safe-area-inset-bottom, 0px);
|
|
1028
|
+
}
|
|
1029
|
+
dialog[data-iox-dialog][data-iox-popup][data-iox-popup-form='centred'] { --popup-from-scale: 0.97; transform-origin: center; }
|
|
1030
|
+
/* Non-modal: no scrim, nothing under it is covered — the page stays fully usable. */
|
|
1031
|
+
dialog[data-iox-dialog][data-iox-popup]:is([data-iox-dialog-nonmodal], [aria-modal='false'])::backdrop { display: none; }
|
|
1032
|
+
/* Its ✕ is a real button, 44 × 44, its hover only for a mouse (§7). */
|
|
1033
|
+
dialog[data-iox-dialog][data-iox-popup] > .iox-dialog-close {
|
|
1034
|
+
width: 44px;
|
|
1035
|
+
min-width: 44px;
|
|
1036
|
+
height: 44px;
|
|
1037
|
+
flex-shrink: 0;
|
|
1038
|
+
align-self: flex-start;
|
|
1039
|
+
}
|
|
1040
|
+
dialog[data-iox-dialog][data-iox-popup]:has(> .iox-dialog-close) { padding-inline-end: max(var(--iox-dialog-pad, 0px), 56px); }
|
|
1041
|
+
dialog[data-iox-dialog][data-iox-popup]:is([open], :popover-open):not([data-iox-closing]) {
|
|
1042
|
+
translate: 0px 0px;
|
|
1043
|
+
scale: 1;
|
|
1044
|
+
opacity: 1;
|
|
1045
|
+
}
|
|
1046
|
+
dialog[data-iox-dialog][data-iox-popup]:is([data-iox-closing], :not([open]):not(:popover-open)) {
|
|
1047
|
+
translate: var(--popup-from-x) var(--popup-from-y);
|
|
1048
|
+
scale: var(--popup-from-scale);
|
|
1049
|
+
opacity: 0;
|
|
1050
|
+
transition-timing-function: var(--iox-ease-exit);
|
|
1051
|
+
transition-duration: var(--popup-out);
|
|
1052
|
+
}
|
|
1053
|
+
@starting-style {
|
|
1054
|
+
dialog[data-iox-dialog][data-iox-popup]:is([open], :popover-open) {
|
|
1055
|
+
translate: var(--popup-from-x) var(--popup-from-y);
|
|
1056
|
+
scale: var(--popup-from-scale);
|
|
1057
|
+
opacity: 0;
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
@media (max-width: 767px) {
|
|
1061
|
+
dialog[data-iox-dialog][data-iox-popup]:not([data-iox-popup-form='bar']) {
|
|
1062
|
+
--popup-inset: min(var(--iox-popup-inset), 12px);
|
|
1063
|
+
--popup-from-x: 0px;
|
|
1064
|
+
--popup-from-y: 24px;
|
|
1065
|
+
--popup-from-scale: 1;
|
|
1066
|
+
position: fixed;
|
|
1067
|
+
inset: auto var(--popup-inset) calc(var(--popup-inset) + env(safe-area-inset-bottom, 0px)) var(--popup-inset);
|
|
1068
|
+
margin: 0;
|
|
1069
|
+
width: auto;
|
|
1070
|
+
min-width: 0;
|
|
1071
|
+
max-width: none;
|
|
1072
|
+
max-height: 30dvh;
|
|
1073
|
+
}
|
|
1074
|
+
dialog[data-iox-dialog][data-iox-popup][data-iox-popup-form='bar'] { max-height: 88px; }
|
|
1075
|
+
html:has(.iox-bar-reserve) dialog[data-iox-dialog][data-iox-popup]:not([data-iox-popup-form='bar']) {
|
|
1076
|
+
inset-block-end: calc(var(--popup-inset) + var(--iox-tabbar-height, 64px) + env(safe-area-inset-bottom, 0px));
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
/* Still (How animated) moves nothing — it fades; reduced motion is a ≤ 200ms fade (gentler, never zero; Off stays 0ms). */
|
|
1080
|
+
dialog[data-iox-dialog][data-iox-popup][data-iox-popup-still] {
|
|
1081
|
+
--popup-from-x: 0px;
|
|
1082
|
+
--popup-from-y: 0px;
|
|
1083
|
+
--popup-from-scale: 1;
|
|
1084
|
+
}
|
|
1085
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1086
|
+
dialog[data-iox-dialog][data-iox-popup][data-iox-popup-form] {
|
|
1087
|
+
--popup-from-x: 0px;
|
|
1088
|
+
--popup-from-y: 0px;
|
|
1089
|
+
--popup-from-scale: 1;
|
|
1090
|
+
--popup-in: min(var(--iox-popup-dur-in), 200ms);
|
|
1091
|
+
--popup-out: min(var(--iox-popup-dur-out), 200ms);
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
|
|
976
1095
|
/* A bottom-bar item reads the ITEM's ink (the contract's inkScopes): its icon and label change together. */
|
|
977
1096
|
.iox-es-bottom-bar-item {
|
|
978
1097
|
--iox-icon-color: currentColor;
|