@vectoriox/iox-ui 5.161.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/design-core/index.d.ts +130 -0
- 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-design-core.mjs +152 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +302 -10
- 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 +306 -48
- 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 +243 -6
- 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 +130 -10
- 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/design-core/flavor-spec.generated.ts +152 -1
- package/src/generation-core/ai-run.ts +65 -2
- package/src/generation-core/compose-layout.ts +11 -5
- package/src/generation-core/pictures.ts +4 -3
- package/src/generation-core/site-spec.generated.ts +235 -0
- 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/scene-edit.ts +12 -8
- package/src/scene-core/scene.ts +131 -21
- package/src/scene-core/scroll-driver.ts +209 -23
- package/styles/iox-design.css +121 -2
package/actions-core/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CompositeItemAction } from '@vectoriox/iox-ui/composite-core';
|
|
1
|
+
import { CompositeItemAction, PopupForm } from '@vectoriox/iox-ui/composite-core';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The ONE descriptor shape for everything an author can put in an ordered action list —
|
|
@@ -400,5 +400,173 @@ interface RevealOpenerLike {
|
|
|
400
400
|
*/
|
|
401
401
|
declare function revealFrom(dialog: RevealDialogLike | null | undefined, opener?: RevealOpenerLike | null): void;
|
|
402
402
|
|
|
403
|
-
|
|
404
|
-
|
|
403
|
+
/**
|
|
404
|
+
* WHEN A SELF-ARRIVING OVERLAY MAY SHOW (popups-plan.md §4–§5, PU-D4…PU-D9, PU-D17) — the ONE planner. The engine's runtime
|
|
405
|
+
* only reports state and obeys; the builder's canvas never asks it (a popup never arrives on the canvas, PU-D14).
|
|
406
|
+
*
|
|
407
|
+
* overlayTurn(state) → 'preloader' | 'consent' | 'popup:<id>' | 'none'
|
|
408
|
+
* 1. a first visit's preloader is showing → nothing else
|
|
409
|
+
* 2. the consent debt is unpaid → the banner only (a popup never opens over or before it)
|
|
410
|
+
* 3. any dialog, drawer, cart, sign-in or lightbox is open → wait
|
|
411
|
+
* 4. the route is quiet → no popup
|
|
412
|
+
* 5. a popup already arrived in this page view → no second one
|
|
413
|
+
* 6. otherwise the first DUE popup (page before global, then tree order) → its clock starts NOW
|
|
414
|
+
*
|
|
415
|
+
* A popup's clock starts when its TURN starts — `time` counts from then, `scroll` needs a scroll after it. The consent
|
|
416
|
+
* banner's own arrival (AW2 `arrive.delay`: the first scroll or 6 s) is planned here too (`planConsentArrival`), so every
|
|
417
|
+
* self-arriving overlay has one arrival rule. Memory (PU-D6/PU-D7): localStorage, no identifier, never sent — Necessary.
|
|
418
|
+
* Pure and framework-free: no DOM, no clock (`now` is passed in).
|
|
419
|
+
*
|
|
420
|
+
* The numbers are the contract's (layout.mjs POPUP `rules`; generation-core's popup spec holds them equal).
|
|
421
|
+
*/
|
|
422
|
+
/** POPUP `rules` — mirrored, held equal to the contract by generation-core's spec. */
|
|
423
|
+
declare const POPUP_RULES: Readonly<{
|
|
424
|
+
minSeconds: 3;
|
|
425
|
+
scrollScreens: 0.5;
|
|
426
|
+
timeSeconds: 8;
|
|
427
|
+
leavingAfterSeconds: 10;
|
|
428
|
+
phoneLeavingSeconds: 25;
|
|
429
|
+
phoneMaxHeight: 0.3;
|
|
430
|
+
memoryDays: 30;
|
|
431
|
+
reducedFadeMs: 200;
|
|
432
|
+
exitRatio: 0.55;
|
|
433
|
+
durationByAnimated: Readonly<{
|
|
434
|
+
still: 200;
|
|
435
|
+
subtle: 350;
|
|
436
|
+
standard: 450;
|
|
437
|
+
lively: 550;
|
|
438
|
+
expressive: 600;
|
|
439
|
+
}>;
|
|
440
|
+
quietRoutes: readonly string[];
|
|
441
|
+
}>;
|
|
442
|
+
/** AW2 (CONSENT `rules.delayMs`): the banner's `arrive.delay` — the first scroll, or this many ms. */
|
|
443
|
+
declare const CONSENT_DELAY_MS = 6000;
|
|
444
|
+
declare enum OverlayTurnKind {
|
|
445
|
+
Preloader = "preloader",
|
|
446
|
+
Consent = "consent",
|
|
447
|
+
None = "none"
|
|
448
|
+
}
|
|
449
|
+
/** `popup:<id>` — the popup whose clock runs now. */
|
|
450
|
+
type OverlayTurn = OverlayTurnKind | `popup:${string}`;
|
|
451
|
+
declare const POPUP_TURN_PREFIX = "popup:";
|
|
452
|
+
interface OverlayState {
|
|
453
|
+
/** A first visit's preloader is on screen (AW5). */
|
|
454
|
+
preloaderShowing: boolean;
|
|
455
|
+
/** The consent banner is owed (consent-core `needsPrompt`) — paid by the visitor's decision. */
|
|
456
|
+
consentOwed: boolean;
|
|
457
|
+
/** A dialog, drawer, cart, sign-in or lightbox is open (a popup never opens over it). */
|
|
458
|
+
otherOverlayOpen: boolean;
|
|
459
|
+
/** The page is a quiet route (`isQuietRoute`). */
|
|
460
|
+
quietRoute: boolean;
|
|
461
|
+
/** A popup already arrived in this page view. */
|
|
462
|
+
popupArrivedThisView: boolean;
|
|
463
|
+
/** The popups that are DUE (`popupDue`), page popups first, then globals, each in tree order. */
|
|
464
|
+
due: ReadonlyArray<string>;
|
|
465
|
+
}
|
|
466
|
+
/** Whose turn it is (§4b). */
|
|
467
|
+
declare function overlayTurn(state: OverlayState): OverlayTurn;
|
|
468
|
+
/** The popup id of a turn, or null. */
|
|
469
|
+
declare function popupOfTurn(turn: OverlayTurn): string | null;
|
|
470
|
+
interface RouteInfo {
|
|
471
|
+
/** The page's app path, without the org label (`/checkout/r/abc`, `/menu`). */
|
|
472
|
+
path: string;
|
|
473
|
+
/** The page is a stamped legal page (LEGAL kinds — found by its kind). */
|
|
474
|
+
legal?: boolean;
|
|
475
|
+
/** The 404 page. */
|
|
476
|
+
notFound?: boolean;
|
|
477
|
+
}
|
|
478
|
+
/** PU-D9: a popup never arrives here. */
|
|
479
|
+
declare function isQuietRoute(route: RouteInfo): boolean;
|
|
480
|
+
/** The trigger a planned arrival waits on. `now` = at once (the consent banner's `arrive.load`); `never` = only a button. */
|
|
481
|
+
declare enum ArrivalTrigger {
|
|
482
|
+
Now = "now",
|
|
483
|
+
Scroll = "scroll",
|
|
484
|
+
Time = "time",
|
|
485
|
+
ScrollOrTime = "scrollOrTime",
|
|
486
|
+
Never = "never"
|
|
487
|
+
}
|
|
488
|
+
interface ArrivalPlan {
|
|
489
|
+
trigger: ArrivalTrigger;
|
|
490
|
+
/** A share of the FIRST screen the visitor scrolls (0 = any real scroll). */
|
|
491
|
+
screens: number | null;
|
|
492
|
+
/** A share of the whole PAGE scrolled, instead of screens. */
|
|
493
|
+
pageShare: number | null;
|
|
494
|
+
/** Visible seconds on the page, counted from the turn's start. */
|
|
495
|
+
seconds: number | null;
|
|
496
|
+
}
|
|
497
|
+
/** What the runtime measures, from the moment the turn started. */
|
|
498
|
+
interface ArrivalProgress {
|
|
499
|
+
/** The visitor's own scroll since the turn started, px (a programmatic scroll is never counted). */
|
|
500
|
+
scrolledPx: number;
|
|
501
|
+
/** The page's current scroll position, px — for a page share. */
|
|
502
|
+
scrollY: number;
|
|
503
|
+
viewportHeight: number;
|
|
504
|
+
pageHeight: number;
|
|
505
|
+
/** Seconds the tab was visible since the turn started. */
|
|
506
|
+
visibleSeconds: number;
|
|
507
|
+
}
|
|
508
|
+
interface ArrivalEnv {
|
|
509
|
+
/** `(hover: hover) and (pointer: fine)` — a laptop's mouse. */
|
|
510
|
+
finePointer: boolean;
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
* A popup's arrival from its traits (PU-D5): its kind's defaults where a trait is unset; `time` never under 3 s; `leaving`
|
|
514
|
+
* — until PU2b draws it — and on a phone always, arrives by time (`phoneLeavingSeconds`); `button` never arrives by itself.
|
|
515
|
+
*/
|
|
516
|
+
declare function planPopupArrival(get: (name: string) => unknown, _env: ArrivalEnv): ArrivalPlan;
|
|
517
|
+
/** AW2 / PU-D17: the consent banner's arrival — `load` at once, `delay` on the first real scroll or after 6 s. */
|
|
518
|
+
declare function planConsentArrival(arrive: 'load' | 'delay' | string | null | undefined): ArrivalPlan;
|
|
519
|
+
/** True once the planned arrival has happened. */
|
|
520
|
+
declare function arrivalFired(plan: ArrivalPlan, p: ArrivalProgress): boolean;
|
|
521
|
+
/** What a browser remembers of one popup. `v` the popup's version when it was closed; `acted` = followed or sent. */
|
|
522
|
+
interface PopupMemory {
|
|
523
|
+
v: number;
|
|
524
|
+
closedAt: number;
|
|
525
|
+
acted: boolean;
|
|
526
|
+
}
|
|
527
|
+
declare const POPUP_MEMORY_PREFIX = "iox-popup";
|
|
528
|
+
/** `iox-popup:<site scope>:<popup node id>` — no identifier of the visitor. */
|
|
529
|
+
declare function popupMemoryKey(scope: string, popupId: string): string;
|
|
530
|
+
/** Where it is kept: `visit` → the tab's session; `days` / `once` → the browser. The runtime falls back to the session,
|
|
531
|
+
* then to this page view, when one is refused. */
|
|
532
|
+
declare enum PopupMemoryStore {
|
|
533
|
+
Local = "local",
|
|
534
|
+
Session = "session"
|
|
535
|
+
}
|
|
536
|
+
declare function popupMemoryStore(again: unknown): PopupMemoryStore;
|
|
537
|
+
declare function encodePopupMemory(memory: PopupMemory): string;
|
|
538
|
+
/** Tolerant: anything that is not a well-formed memory reads as none (a browser holding garbage still gets the popup). */
|
|
539
|
+
declare function decodePopupMemory(raw: string | null | undefined): PopupMemory | null;
|
|
540
|
+
/** A popup's version (`popupVersion`, default 1). */
|
|
541
|
+
declare function popupVersionOf(get: (name: string) => unknown): number;
|
|
542
|
+
/** True while a remembered close keeps the popup away (any version older than the popup's is forgotten). */
|
|
543
|
+
declare function memoryKeepsAway(memory: PopupMemory | null, get: (name: string) => unknown, now: number): boolean;
|
|
544
|
+
/** The visitor's day, `YYYY-MM-DD`, on THEIR clock (never UTC — a popup "until 30 November" ends at their midnight). */
|
|
545
|
+
declare function visitorDay(now: Date): string;
|
|
546
|
+
/** Inside its dates (whole days, both ends included); no dates = always. A malformed date is ignored. */
|
|
547
|
+
declare function popupWithinDates(get: (name: string) => unknown, now: Date): boolean;
|
|
548
|
+
/** Ended: its last day is past (the engine leaves it out of the raw SSR; Home warns). Days compare on the given clock. */
|
|
549
|
+
declare function popupEnded(get: (name: string) => unknown, now: Date): boolean;
|
|
550
|
+
declare enum PopupNotDue {
|
|
551
|
+
/** Only a button opens it. */
|
|
552
|
+
Button = "button",
|
|
553
|
+
/** Outside its dates. */
|
|
554
|
+
Dates = "dates",
|
|
555
|
+
/** A remembered close (or the visitor acted). */
|
|
556
|
+
Memory = "memory"
|
|
557
|
+
}
|
|
558
|
+
/** May this popup arrive by itself now? null = due; else why not. */
|
|
559
|
+
declare function popupDue(get: (name: string) => unknown, memory: PopupMemory | null, now: Date): PopupNotDue | null;
|
|
560
|
+
/** How it opens on THIS device (PU-D2, PU-D10): `centred` is a modal on a laptop only — on a phone it is the corner card. */
|
|
561
|
+
declare function popupFormOn(get: (name: string) => unknown, env: {
|
|
562
|
+
phone: boolean;
|
|
563
|
+
}): PopupForm;
|
|
564
|
+
/** The How animated levels (the look's `animate`), stillest first. */
|
|
565
|
+
type AnimateLevel = keyof typeof POPUP_RULES.durationByAnimated;
|
|
566
|
+
/** §6: the factor the `popup-dur-*` tokens are scaled by for the look's How animated (the token holds Standard). */
|
|
567
|
+
declare function popupMotionScale(level: string | null | undefined): number;
|
|
568
|
+
/** Still moves nothing: the popup fades (§6). */
|
|
569
|
+
declare function popupFadesOnly(level: string | null | undefined): boolean;
|
|
570
|
+
|
|
571
|
+
export { ACCOUNT_ACTION_TYPES, ArrivalTrigger, BEHAVIOUR_ACTION_TYPES, CONSENT_ACTION_TYPES, CONSENT_DELAY_MS, COUNT_UP_TRIGGERS, DIALOG_ACTION_TYPE_SET, DIALOG_CLOSING_ATTRIBUTE, DIALOG_EXIT_TIMEOUT_MS, DIALOG_OPENER_ACTION_TYPES, DIALOG_OPENER_TRIGGER, DIALOG_SELECTOR, ELEMENT_ACTION_DESCRIPTORS, ELEMENT_ACTION_GROUP_ORDER, FORM_SUBMIT_ACTION_DESCRIPTORS, ITEM_ACTION_TYPES, OpenerAttribute, OverlayTurnKind, POPOVER_ACTION_TYPE_SET, POPOVER_NODE_TYPE, POPOVER_OPENER_ACTION_TYPES, POPUP_MEMORY_PREFIX, POPUP_RULES, POPUP_TURN_PREFIX, PopupMemoryStore, PopupNotDue, RevealOriginProperty, SCROLL_PROGRESS_TRIGGER, SERVER_ELEMENT_ACTION_TYPES, SHOP_ACTION_TYPES, SHOP_ENTITLEMENT, TOAST_ACTION_TYPES, actionOfferedUnder, addableActions, arrivalFired, cancelExit, closeDialogAnimated, decodePopupMemory, dialogDomId, dialogOpenerAttributes, dialogOpenersSelector, dialogTogglesClosed, encodePopupMemory, focusDialogSheet, groupedElementActions, holdClosedWhile, isExiting, isQuietRoute, itemActionOf, memoryKeepsAway, nodeIdOfDialogDomId, nodeIdOfPopoverDomId, openedDialogId, openedPopoverId, openedTargetId, opensAtClickedItem, overlayTurn, planConsentArrival, planPopupArrival, popoverDomId, popoverOpenerAttributes, popoverOpenersSelector, popupDue, popupEnded, popupFadesOnly, popupFormOn, popupMemoryKey, popupMemoryStore, popupMotionScale, popupOfTurn, popupVersionOf, popupWithinDates, resolveActionAvailability, revealFrom, revealOrigin, revealOriginStyle, runExitMotion, visitorDay };
|
|
572
|
+
export type { ActionAvailability, ActionAvailabilityContext, ActionAvailabilityState, ActionDescriptor, ActionGroup, ActionKind, ActionParamSpec, ActionTargetSpec, AnimateLevel, ArrivalEnv, ArrivalPlan, ArrivalProgress, BuilderBehaviour, DialogElementLike, ExitAnimationLike, ExitMotionElement, ExitMotionOptions, FocusableSheet, OpenerActionLike, OpenerInteractionLike, OpenerNodeLike, OverlayState, OverlayTurn, PopupMemory, RevealClosingMarker, RevealDialogLike, RevealOpenerLike, RevealOriginOptions, RevealOriginPoint, RevealRect, RevealStyled, RouteInfo };
|
package/assist-core/index.d.ts
CHANGED
|
@@ -1743,12 +1743,13 @@ interface GenerateEstimate {
|
|
|
1743
1743
|
/**
|
|
1744
1744
|
* The cost shown under the box (A-D15: the owner chooses the cost): every candidate is made once and looked at once.
|
|
1745
1745
|
* Unlike a site build's pictures (`estimatePictures`) there is NO second try in it — a candidate the review says no to
|
|
1746
|
-
* is kept and marked, and the owner decides whether to press again.
|
|
1746
|
+
* is kept and marked, and the owner decides whether to press again. `model` = the picture model the press runs on: one
|
|
1747
|
+
* picture is counted as its maker bills it at most (`pictureTokensFor`, iox-ui#138); absent, as the step's default model.
|
|
1747
1748
|
*/
|
|
1748
1749
|
declare function estimateGenerate(count: number, prices: {
|
|
1749
1750
|
readonly image: AiTokenPrice;
|
|
1750
1751
|
readonly review: AiTokenPrice;
|
|
1751
|
-
}): GenerateEstimate;
|
|
1752
|
+
}, model?: string | null): GenerateEstimate;
|
|
1752
1753
|
/** A picture model the owner may choose, with what one candidate costs on it (the model button, A-D14). */
|
|
1753
1754
|
interface GenerateModelChoice {
|
|
1754
1755
|
readonly id: string;
|
|
@@ -2707,5 +2707,188 @@ interface ConsentRecipe {
|
|
|
2707
2707
|
/** The three roots. Pure over the factory: the builder and the composer get the same tree. */
|
|
2708
2708
|
declare function buildConsentRecipe(create: CompositeNodeFactory, options?: ConsentRecipeOptions): ConsentRecipe;
|
|
2709
2709
|
|
|
2710
|
-
|
|
2711
|
-
|
|
2710
|
+
/**
|
|
2711
|
+
* THE POPUP (popups-plan.md, PU1; PU-D1…PU-D18) — the owner's own news, arriving once, as ordinary builder nodes. A popup
|
|
2712
|
+
* is a Dialog stamped from this ONE recipe (PU-D1): the builder's palette (PU2) and generation-core's composer (PU3) stamp
|
|
2713
|
+
* it with their own node factories, so a generated popup and a hand-placed one are the same tree.
|
|
2714
|
+
*
|
|
2715
|
+
* Popup Dialog popup (kind · form · arrive · again · dates — the popup traits below)
|
|
2716
|
+
* › Container popup.media? Image (the owner's picture) — `art: picture`
|
|
2717
|
+
* › Container popup.content
|
|
2718
|
+
* Text popup.eyebrow? (only from a date the owner gave)
|
|
2719
|
+
* Heading popup.title (h2, worn as the look's h3 — its smallest heading style)
|
|
2720
|
+
* Text popup.body (≤ 160 characters)
|
|
2721
|
+
* <form> popup.form? (newsletter: the caller's forms-core newsletter preset)
|
|
2722
|
+
* Link popup.action? (ONE quiet action — a page link; a form's Send is its own)
|
|
2723
|
+
* › the Dialog's own ✕ (44 × 44, named in the site's language by the runtime)
|
|
2724
|
+
*
|
|
2725
|
+
* Its LOOK is the site's element styles (dialog, h4, small, link) — never a colour. Its words are the OWNER's (title, body,
|
|
2726
|
+
* eyebrow, the action's label), passed in; the recipe's own words are mechanism microcopy only ("Close", "Send").
|
|
2727
|
+
* Framework-free: no actions-core import (actions-core reads this module, never the other way).
|
|
2728
|
+
*/
|
|
2729
|
+
declare enum PopupRole {
|
|
2730
|
+
Popup = "popup",
|
|
2731
|
+
Media = "popup.media",
|
|
2732
|
+
Content = "popup.content",
|
|
2733
|
+
Eyebrow = "popup.eyebrow",
|
|
2734
|
+
Title = "popup.title",
|
|
2735
|
+
Body = "popup.body",
|
|
2736
|
+
Form = "popup.form",
|
|
2737
|
+
Action = "popup.action"
|
|
2738
|
+
}
|
|
2739
|
+
declare const POPUP_ROLES: ReadonlySet<string>;
|
|
2740
|
+
/** PU-D3: what the popup says (contract POPUP `kind`). Seasonal is not a kind — it is dates on any kind. */
|
|
2741
|
+
declare enum PopupKind {
|
|
2742
|
+
Announcement = "announcement",
|
|
2743
|
+
Offer = "offer",
|
|
2744
|
+
Newsletter = "newsletter"
|
|
2745
|
+
}
|
|
2746
|
+
/** §3b: where it sits (contract POPUP `form`). Only `centred` is modal, and only a newsletter's on a laptop. */
|
|
2747
|
+
declare enum PopupForm {
|
|
2748
|
+
Corner = "corner",
|
|
2749
|
+
Bar = "bar",
|
|
2750
|
+
Centred = "centred"
|
|
2751
|
+
}
|
|
2752
|
+
/** PU-D5: what makes it arrive (contract POPUP `arrive`). `leaving` waits for PU2b (drawn as `time`). */
|
|
2753
|
+
declare enum PopupArrive {
|
|
2754
|
+
Scroll = "scroll",
|
|
2755
|
+
Time = "time",
|
|
2756
|
+
ScrollOrTime = "scrollOrTime",
|
|
2757
|
+
Leaving = "leaving",
|
|
2758
|
+
Button = "button"
|
|
2759
|
+
}
|
|
2760
|
+
/** PU-D6: when it may show again after a close (contract POPUP `again`). "Every page view" is refused. */
|
|
2761
|
+
declare enum PopupAgain {
|
|
2762
|
+
Days = "days",
|
|
2763
|
+
Visit = "visit",
|
|
2764
|
+
Once = "once"
|
|
2765
|
+
}
|
|
2766
|
+
/** The contract's `art`. */
|
|
2767
|
+
declare enum PopupArt {
|
|
2768
|
+
None = "none",
|
|
2769
|
+
Picture = "picture"
|
|
2770
|
+
}
|
|
2771
|
+
/**
|
|
2772
|
+
* The Dialog traits a popup carries (Bindings ▸ Popup, PU2). Like the menu traits (HI2a) they have NO default: a Dialog
|
|
2773
|
+
* without `popupKind` is not a popup and renders exactly as before (R-H4). `modal` is the one Dialog trait the popup
|
|
2774
|
+
* adds for every Dialog: absent = modal, so every existing Dialog keeps `showModal()`.
|
|
2775
|
+
*/
|
|
2776
|
+
declare enum PopupTrait {
|
|
2777
|
+
Kind = "popupKind",
|
|
2778
|
+
Form = "popupForm",
|
|
2779
|
+
Arrive = "popupArrive",
|
|
2780
|
+
/** `scroll`: the share of the FIRST screen scrolled (default 0.5). */
|
|
2781
|
+
Screens = "popupScreens",
|
|
2782
|
+
/** `scroll`: the share of the whole PAGE scrolled instead (a newsletter's 40%). */
|
|
2783
|
+
PageShare = "popupPageShare",
|
|
2784
|
+
/** `time`: seconds on the page (visible tab), never under 3. */
|
|
2785
|
+
Seconds = "popupSeconds",
|
|
2786
|
+
Again = "popupAgain",
|
|
2787
|
+
/** `again: days`: how many (default 30). */
|
|
2788
|
+
Days = "popupDays",
|
|
2789
|
+
/** PU-D18: whole days, `YYYY-MM-DD`, on the visitor's clock. */
|
|
2790
|
+
ShowFrom = "popupFrom",
|
|
2791
|
+
ShowUntil = "popupUntil",
|
|
2792
|
+
/** "Show it again to everyone" raises it; a remembered close of an older version is forgotten. */
|
|
2793
|
+
Version = "popupVersion"
|
|
2794
|
+
}
|
|
2795
|
+
/** A Dialog's own trait: false = non-modal (`showPopover()`, the page stays usable). Absent = modal (as ever). */
|
|
2796
|
+
declare const DIALOG_MODAL_TRAIT = "modal";
|
|
2797
|
+
/** The attributes a popup renders on its `<dialog>` — read by the shared CSS (placement, motion) and the popup runtime. */
|
|
2798
|
+
declare enum PopupAttribute {
|
|
2799
|
+
Kind = "data-iox-popup",
|
|
2800
|
+
Form = "data-iox-popup-form",
|
|
2801
|
+
Arrive = "data-iox-popup-arrive",
|
|
2802
|
+
Screens = "data-iox-popup-screens",
|
|
2803
|
+
PageShare = "data-iox-popup-page",
|
|
2804
|
+
Seconds = "data-iox-popup-seconds",
|
|
2805
|
+
Again = "data-iox-popup-again",
|
|
2806
|
+
Days = "data-iox-popup-days",
|
|
2807
|
+
ShowFrom = "data-iox-popup-from",
|
|
2808
|
+
ShowUntil = "data-iox-popup-until",
|
|
2809
|
+
Version = "data-iox-popup-version",
|
|
2810
|
+
/** A non-modal Dialog (a popup's corner / bar, or `modal: false`): opened with `showPopover()`. */
|
|
2811
|
+
NonModal = "data-iox-dialog-nonmodal",
|
|
2812
|
+
/** §8 / R-H8: its words never become the page's search snippet. */
|
|
2813
|
+
NoSnippet = "data-nosnippet"
|
|
2814
|
+
}
|
|
2815
|
+
declare const POPUP_ATTRIBUTES: ReadonlyArray<string>;
|
|
2816
|
+
/** A popup's form, judged: `centred` only for a newsletter (PU-D2) — any other kind asking for it sits in the corner. */
|
|
2817
|
+
declare function popupFormOf(kind: unknown, form: unknown): PopupForm;
|
|
2818
|
+
/** True when a Dialog opens as a modal: a popup only when its form is `centred`; any other Dialog unless `modal: false`. */
|
|
2819
|
+
declare function dialogIsModal(get: (name: string) => unknown): boolean;
|
|
2820
|
+
/**
|
|
2821
|
+
* The attributes a Dialog renders for the popup and the non-modal opening — ONE function, applied by every renderer
|
|
2822
|
+
* through `nodeA11yAttributes` (the engine's string path, its component path, the builder canvas). A plain modal Dialog
|
|
2823
|
+
* gets `{}` and renders exactly as before.
|
|
2824
|
+
*/
|
|
2825
|
+
declare function popupDialogAttributes(get: (name: string) => unknown): Record<string, string>;
|
|
2826
|
+
/** §3a + PU-D6: each kind's defaults (contract POPUP `named` — generation-core's spec holds them equal). */
|
|
2827
|
+
declare const POPUP_KIND_MIX: Readonly<Record<PopupKind, {
|
|
2828
|
+
form: PopupForm;
|
|
2829
|
+
arrive: PopupArrive;
|
|
2830
|
+
again: PopupAgain;
|
|
2831
|
+
art: PopupArt;
|
|
2832
|
+
}>>;
|
|
2833
|
+
/** §3a: when each kind arrives by default (contract POPUP `arrival`). */
|
|
2834
|
+
declare const POPUP_KIND_ARRIVAL: Readonly<Record<PopupKind, {
|
|
2835
|
+
screens?: number;
|
|
2836
|
+
pageShare?: number;
|
|
2837
|
+
seconds?: number;
|
|
2838
|
+
}>>;
|
|
2839
|
+
/** The recipe's OWN words — mechanism microcopy, in the site's language. The rest is the owner's. */
|
|
2840
|
+
declare const POPUP_WORDS: {
|
|
2841
|
+
readonly en: {
|
|
2842
|
+
readonly close: "Close";
|
|
2843
|
+
readonly send: "Send";
|
|
2844
|
+
readonly label: {
|
|
2845
|
+
readonly announcement: "Announcement";
|
|
2846
|
+
readonly offer: "Offer";
|
|
2847
|
+
readonly newsletter: "Newsletter";
|
|
2848
|
+
};
|
|
2849
|
+
};
|
|
2850
|
+
readonly he: {
|
|
2851
|
+
readonly close: "סגירה";
|
|
2852
|
+
readonly send: "שליחה";
|
|
2853
|
+
readonly label: {
|
|
2854
|
+
readonly announcement: "הודעה";
|
|
2855
|
+
readonly offer: "הצעה";
|
|
2856
|
+
readonly newsletter: "ניוזלטר";
|
|
2857
|
+
};
|
|
2858
|
+
};
|
|
2859
|
+
};
|
|
2860
|
+
type PopupWords = (typeof POPUP_WORDS)['en'] | (typeof POPUP_WORDS)['he'];
|
|
2861
|
+
/** The popup's mechanism words in `lang` (English for any language it does not speak yet). */
|
|
2862
|
+
declare function popupWords(lang?: string | null | undefined): PopupWords;
|
|
2863
|
+
/** §6: a heading of at most this many words; a body of at most this many characters (the gate judges stored ones). */
|
|
2864
|
+
declare const POPUP_TITLE_MAX_WORDS = 6;
|
|
2865
|
+
declare const POPUP_BODY_MAX_CHARS = 160;
|
|
2866
|
+
interface PopupRecipeOptions {
|
|
2867
|
+
kind?: PopupKind;
|
|
2868
|
+
/** The site's language — the ✕'s name and the Dialog's label fall back to it. */
|
|
2869
|
+
lang?: string | null;
|
|
2870
|
+
/** The owner's words. Empty words stay empty (the Publishable gate blocks an empty title — never invented). */
|
|
2871
|
+
title?: string;
|
|
2872
|
+
body?: string;
|
|
2873
|
+
/** Only from a date the owner gave ("Until 30 November"). */
|
|
2874
|
+
eyebrow?: string;
|
|
2875
|
+
/** The ONE action: a link to a page of the site, with its words. No route = no action (an announcement may have none). */
|
|
2876
|
+
actionLabel?: string;
|
|
2877
|
+
actionRoute?: string | null;
|
|
2878
|
+
/** The owner's picture (`art: picture`); '' = the DS3 empty-image box ("Add image"). */
|
|
2879
|
+
imageSrc?: string;
|
|
2880
|
+
imageAlt?: string;
|
|
2881
|
+
/** Overrides of the kind's mix. */
|
|
2882
|
+
form?: PopupForm;
|
|
2883
|
+
arrive?: PopupArrive;
|
|
2884
|
+
again?: PopupAgain;
|
|
2885
|
+
art?: PopupArt;
|
|
2886
|
+
/** A newsletter's form — the caller's forms-core newsletter preset (with the AW-D15 legal line), stamped by the caller's
|
|
2887
|
+
* own factory; it carries its own Send. */
|
|
2888
|
+
newsletterForm?: CompositeNode | null;
|
|
2889
|
+
}
|
|
2890
|
+
/** The popup — ONE root. Pure over the factory: the builder and the composer get the same tree. */
|
|
2891
|
+
declare function buildPopupRecipe(create: CompositeNodeFactory, options?: PopupRecipeOptions): CompositeNode;
|
|
2892
|
+
|
|
2893
|
+
export { ACCORDION_BIND_PROP, ACCORDION_CONTENT_LIMIT, ACCORDION_DEFAULT_ONS, ACCORDION_ICONS, ACCORDION_ICON_GLYPH, ACCORDION_NEW_ITEM_WORDS, ACCORDION_NEW_ITEM_WORDS_HE, ACCORDION_WORDS, ACCORDION_WORDS_HE, ACCOUNT_GLOBAL_RECIPES, ACCOUNT_HIDDEN_ATTRIBUTE, ACCOUNT_LABELS, ACCOUNT_LIVE_CLASS, ACCOUNT_RECIPES, ACCOUNT_RECIPE_WORDS, ACCOUNT_ROLES, ACTIVATE_ON_ATTRIBUTE, ADDED_HOLD_MS, AccordionClass, AccordionDefaultOn, AccordionEditRefusal, AccordionIcon, AccordionKeyAction, AccordionRole, AccordionRuntime, AccountActionType, AccountRecipe, AccountRole, AccountRuntime, BADGE_TONES, BADGE_TONE_ICONS, BAR_INLINE_PAD, BadgeTone, CARD_LAYOUTS, CARD_LAYOUT_CUSTOM, CARD_PARTS, CARD_PARTS_OFF_AT_START, CARD_PART_ROLE, CARD_STACK_BREAKPOINT, CARD_WORDS, CARD_WORDS_HE, CAROUSEL_NAME, CAROUSEL_QUOTES, CAROUSEL_QUOTES_HE, CART_EMPTY_ATTRIBUTE, CART_LINE_ATTRIBUTE, CART_TITLE_COUNT_ATTRIBUTE, CART_WAITING_ATTRIBUTE, CHIP_ICON, CHIP_STYLE, COLOUR_OPTION_NAMES, COMPOSITE_ATTRIBUTE, COMPOSITE_KIND_ROLES, COMPOSITE_ROLE_SPECS, CONSENT_CHOICE_CATEGORIES, CONSENT_LABELS, CONSENT_ROLES, COUNTER_COUNT, COUNTER_ENTRANCE, COUNTER_SAMPLE_WORDS, CardLayout, CardPart, CardRole, CarouselA11y, CompositeBehaviourTrait, CompositeItemAction, CompositeKind, ConsentActionType, ConsentRole, DEFAULT_ON_ATTRIBUTE, DIALOG_MODAL_TRAIT, DISCLOSURE_ITEM_KEY, DISCLOSURE_WORDS, DisclosureRole, EXCLUSIVE_KIND_ROLES, ExclusiveRuntime, ITEM_KEY_ATTRIBUTE, ITEM_OFF_EVENT, ITEM_ON_EVENT, ITEM_OPEN_STATE, LIGHTBOX_ARROWS_HIDE_AT, LIGHTBOX_LABEL, MARQUEE_DEFAULTS, MARQUEE_DEFAULT_SPEED_PX, MARQUEE_KEYFRAMES, MARQUEE_MAX_COPIES, MARQUEE_MIN_LOOP_S, MARQUEE_NODE_ATTRIBUTES, MARQUEE_NOSCRIPT_CSS, MARQUEE_PAUSE_GLYPH, MARQUEE_PLAY_GLYPH, MARQUEE_SAMPLE_WORDS, MARQUEE_SPEED_FACTOR, MARQUEE_WORDS, MULTIPLE_ATTRIBUTE, MarqueeAttribute, MarqueeDirection, MarqueeRole, MarqueeRuntime, MarqueeSpeed, MarqueeStyle, MarqueeTrait, NAMED_SWATCHES, NO_ELEMENT_STYLE, ON_ATTRIBUTE, ON_STATE, ORIENTATION_ATTRIBUTE, PILL_LABEL_STYLE, POPUP_ATTRIBUTES, POPUP_BODY_MAX_CHARS, POPUP_KIND_ARRIVAL, POPUP_KIND_MIX, POPUP_ROLES, POPUP_TITLE_MAX_WORDS, PREFERENCES_FROM_CATEGORIES, PROVIDER_ROLES, PopupAgain, PopupArrive, PopupArt, PopupAttribute, PopupForm, PopupKind, PopupRole, PopupTrait, SCOPE_ATTRIBUTE, SEGMENTED_BADGE_TONE, SEGMENTED_BADGE_WORDS, SEGMENTED_BEHAVIOUR, SEGMENTED_MAX_OPTIONS, SEGMENTED_MIN_OPTIONS, SEGMENTED_NAME, SEGMENTED_NAME_HE, SEGMENTED_NEW_OPTION_WORDS, SEGMENTED_WORDS, SEGMENTED_WORDS_HE, SHOP_ADDED_ATTRIBUTE, SHOP_BINDS, SHOP_CHIP_MAX, SHOP_CLONE_ATTRIBUTE, SHOP_GLOBAL_RECIPES, SHOP_HIDDEN_ATTRIBUTE, SHOP_LABELS, SHOP_LIVE_CLASS, SHOP_RECIPES, SHOP_RECIPE_WORDS, SHOP_REST_WORDS_ATTRIBUTE, SHOP_ROLES, SHOP_SELECT_CLASS, SHOP_UNUSED_ATTRIBUTE, SIGNED_IN_ATTRIBUTE, SIGN_IN_STEP_ATTRIBUTE, SLIDER_BAR_ORDER, SLIDER_NAME_TRAIT, SLIDER_PART_GLYPH, SLIDER_PART_ROLES, SLIDER_PLACEMENT_TRAIT, SLIDER_PLAY_GLYPH, SLIDER_SCROLL_PLAYS_TRAIT, SLIDER_SWAPPING_ATTRIBUTE, SLIDER_TEXT_ATTRIBUTE, SLIDER_TYPE, SLIDER_WORDS, SLIDE_CAPTION_TRAIT, SLIDE_TO_ROW, SLIDE_TYPE, SUPERSEDED_BAR_PADDING, SWIPER_THEME_COLOR, SceneRole, SegmentedEditRefusal, SegmentedRole, SegmentedTrait, ShopActionType, ShopBindTarget, ShopPickerKind, ShopRecipe, ShopRole, ShopRuntime, SignInFieldName, SignInStep, SliderFlag, SliderPlacement, SliderRole, StructureEdit, StructureRefusal, TABS_ACTIVATE_ONS, TABS_CONTENT_LIMIT, TABS_IMAGE_BIND_PROP, TABS_LABEL_BIND_PROP, TABS_NEW_TAB_WORDS, TABS_NEW_TAB_WORDS_HE, TABS_ORIENTATIONS, TABS_STACK_BREAKPOINT, TABS_TEXT_BIND_PROP, TABS_WORDS, TABS_WORDS_HE, TabsActivateOn, TabsBehaviourTrait, TabsEditRefusal, TabsOrientation, TabsRole, UNTIL_FOUND, acceptsRefusal, accordionAnswerOf, accordionBehaviour, accordionDomIds, accordionFocusIndex, accordionHeadingLevel, accordionItemAttributes, accordionItemLabel, accordionItemOf, accordionItemState, accordionItems, accordionKeyAction, accordionPanelAttributes, accordionPanelOf, accordionPartStyle, accordionQuestionOf, accordionRegionAttributes, accordionRemovalRefusal, accordionRootAttributes, accordionRootOf, accordionRootOfItem, accordionRuntimeOf, accordionScope, accordionToContent, accordionToManual, accordionTrackAttributes, accordionTriggerAttributes, accordionTriggerOf, accordionWords, accountRecipeWords, accountRuntimeOf, accountSelector, addAccordionItem, addSegmentedOption, addTabPair, applyCardLayout, attachAccordionAt, attachAccordions, attachAccount, attachCarouselA11y, attachCompositeAt, attachExclusiveAt, attachMarquees, attachShop, attachSliderBar, badgeStyleId, badgeToneOf, bindShopPart, buildAccordionItem, buildAccordionRecipe, buildAccountEntryRecipe, buildAccountMenuRecipe, buildAddToCartRecipe, buildBadge, buildBuyNowRecipe, buildCardRecipe, buildCarouselRecipe, buildCartButtonRecipe, buildCartDrawerRecipe, buildChip, buildCompositeIcon, buildConsentRecipe, buildCounterRecipe, buildDisclosureRecipe, buildLightboxRecipe, buildMarqueeRecipe, buildPopupRecipe, buildPriceRecipe, buildQuantityRecipe, buildReadingBarRecipe, buildSegmentedOption, buildSegmentedRecipe, buildSignInDialogRecipe, buildSliderPart, buildSlideshowRecipe, buildTabPair, buildTabsRecipe, buildVariantPickerRecipe, canOpenAtClickedItem, cardPartsOf, cardRootOf, cardTitleOf, cardWords, carouselOf, clearLayerStyles, closeAccordionItem, closestAccordion, closestAccordionItem, closestExclusive, closestExclusiveItemPart, compositeItemOf, compositeItems, compositeKindOfRole, compositeRootOf, compositeRowKeys, compositeScopeId, consentRecipeWords, detachAccordion, detectAccordionIcon, detectCardLayout, dialogIsModal, disclosureOpenByDefault, domSafeKey, exclusiveBehaviourOf, exclusiveDefaultOf, exclusiveItemLabel, exclusiveItemPartOf, exclusiveKindHasPanels, exclusiveKindOf, exclusiveLabelOf, exclusivePartAttributes, exclusiveRootAttributesOf, exclusiveRootHoldsTriggers, exclusiveRootOf, exclusiveRuntimeOf, exclusiveScopeFor, findByRole, hasLabelledRegion, hasSliderParts, headerBehaviourOfNode, headerInkOfNode, healSliderBars, initialAccordionOpen, isAccordionFromContent, isAccordionItemOn, isAccordionPart, isAccordionRoot, isAccountRole, isAnyCompositeRoot, isCardLinked, isCardRoot, isCompositeItem, isCompositeItemOn, isCompositePanel, isCompositeRoot, isCompositeTrigger, isDisclosurePart, isDisclosureRoot, isExclusiveItemOn, isExclusiveItemPart, isExclusiveKind, isExclusiveList, isExclusivePanel, isExclusivePanels, isExclusiveRoot, isExclusiveTrigger, isExclusiveTriggerDisabled, isLockedPart, isMarqueeRoot, isPartOfExclusiveScope, isPillNode, isSegmentedPart, isSegmentedRoot, isShopRole, isSlider, isSliderPart, isTabsFromContent, isTabsPart, isTabsRoot, isToggleKind, itemOpenTriggerIds, lightboxSliderOf, lookMarqueeSpeed, makeCompositePart, manualTabKeys, marqueeCopyCount, marqueeLoopSeconds, marqueePartElement, marqueePauseAttributes, marqueePauseGlyph, marqueeRootAttributes, marqueeRootOf, marqueeSettings, marqueeWords, migrateSliderControls, moveAccordionItem, moveSegmentedOption, moveTabPair, needsSliderMigration, nextAccordionState, nextItemKey, nextSegmentedKey, nextTabKey, onAccordionItemState, onCompositeItemState, onExclusiveItemState, openAccordionItem, parentInComposite, pickAccordionAutoBinds, pickTabsAutoBinds, popupDialogAttributes, popupFormOf, popupWords, readLayerStyle, readProp, readStyle, removeFromComposite, removeSegmentedOption, removeTabPair, renameAccordionItem, renameSegmentedOption, renameTab, repeatSourceOf, rowIndexOf, rowItemKey, rowSourceOf, runAccountAction, runCompositeItemAction, runShopAction, sameRepeatSource, segmentedAddRefusal, segmentedBadgeOf, segmentedDefaultOn, segmentedItemTriggerIds, segmentedKeyAction, segmentedKeys, segmentedLabel, segmentedOptionAttributes, segmentedOptionKey, segmentedOptionLabel, segmentedOptionLabelNodeOf, segmentedOptions, segmentedPartAttributes, segmentedRemovalRefusal, segmentedRootAttributes, segmentedRootAttributesOf, segmentedScopeFor, segmentedWords, serializeDomAttributes, setAccordionBehaviour, setAccordionIcon, setBadgeTone, setCardLinked, setCardPart, setHeaderBehaviour, setHeaderInk, setMarqueeSettings, setSegmentedBadge, setSegmentedBehaviour, setSliderFlag, setSliderPlacement, setTabsBehaviour, shopPickerKind, shopRecipeWords, shopRuntimeOf, shopSelector, shouldScrollToItem, slideIndexForRow, sliderCaptionOf, sliderCountText, sliderLiveRegion, sliderPart, sliderPartElement, sliderPauseAttributes, sliderPauseGlyph, sliderPlacementOf, sliderSlides, sliderWords, splitSliderChildren, structureRefusal, swatchFill, syncSliderParts, tabLabel, tabLabelNodeOf, tabListAttributes, tabPanelAttributes, tabPanelImageOf, tabPanelOf, tabPanelTextOf, tabPartKey, tabTriggerAttributes, tabTriggerOf, tabsBehaviour, tabsItemState, tabsItemTriggerIds, tabsKeyAction, tabsLabel, tabsListOf, tabsPanels, tabsPanelsOf, tabsPartAttributes, tabsPartnerOf, tabsRemovalRefusal, tabsRootAttributes, tabsScope, tabsScopeFor, tabsToContent, tabsToManual, tabsTriggers, tabsWords, variantGroupLabel, variantGroupNote, walkComposite, wantedSliderParts, writeLayerStyles, writeProp, writeStyles };
|
|
2894
|
+
export type { AccordionAutoBinds, AccordionBehaviour, AccordionDomIds, AccordionItemState, AccordionOptions, AccordionRuntimeOptions, AccordionScope, AccordionWords, AccountHost, AccountRecipeWords, BarSwiper, BaselineStyles, CardEditOptions, CardLayoutResult, CardLayoutState, CardOptions, CardPartChange, CardWords, CarouselA11yOptions, CarouselOptions, CarouselQuote, CarouselSwiper, CompositeBinding, CompositeKindRoles, CompositeLayer, CompositeNode, CompositeNodeFactory, CompositeNodeSpec, CompositeRoleSpec, CompositeRuntime, CompositeTrait, ConsentRecipe, ConsentRecipeOptions, ConsentRecipeWords, ContentFieldLike, CounterWords, DisclosureOptions, DisclosureWords, DomAttributes, ExclusiveCompositeKind, ExclusiveKindRoles, ExclusiveRuntimeOptions, ExclusiveScope, LegacySliderLook, LightboxOptions, MarqueeRecipeOptions, MarqueeRuntimeOptions, MarqueeSettings, MarqueeWords, PillOptions, PopupRecipeOptions, PopupWords, RepeatSource, SegmentedOptionWords, SegmentedOptions, ShopHost, ShopRecipeWords, SliderPartsChange, SliderWords, SlideshowOptions, TabPair, TabWords, TabsAutoBinds, TabsBehaviour, TabsItemState, TabsOptions, TabsScope, ToggleCompositeKind, WaitingOrder };
|
package/design-core/index.d.ts
CHANGED
|
@@ -916,6 +916,18 @@ declare const SPEC_TIERS: {
|
|
|
916
916
|
readonly name: "toast-dur-out";
|
|
917
917
|
readonly type: "duration";
|
|
918
918
|
readonly default: "220ms";
|
|
919
|
+
}, {
|
|
920
|
+
readonly name: "popup-inset";
|
|
921
|
+
readonly type: "size";
|
|
922
|
+
readonly default: "24px";
|
|
923
|
+
}, {
|
|
924
|
+
readonly name: "popup-dur-in";
|
|
925
|
+
readonly type: "duration";
|
|
926
|
+
readonly default: "450ms";
|
|
927
|
+
}, {
|
|
928
|
+
readonly name: "popup-dur-out";
|
|
929
|
+
readonly type: "duration";
|
|
930
|
+
readonly default: "250ms";
|
|
919
931
|
}, {
|
|
920
932
|
readonly name: "dialog-edge";
|
|
921
933
|
readonly type: "color";
|
|
@@ -1467,6 +1479,8 @@ declare const SPEC_AXES: {
|
|
|
1467
1479
|
readonly "sheet-dur-out": "0ms";
|
|
1468
1480
|
readonly "toast-dur-in": "0ms";
|
|
1469
1481
|
readonly "toast-dur-out": "0ms";
|
|
1482
|
+
readonly "popup-dur-in": "0ms";
|
|
1483
|
+
readonly "popup-dur-out": "0ms";
|
|
1470
1484
|
};
|
|
1471
1485
|
readonly snappy: {
|
|
1472
1486
|
readonly label: "Snappy";
|
|
@@ -1490,6 +1504,8 @@ declare const SPEC_AXES: {
|
|
|
1490
1504
|
readonly "sheet-dur-out": "240ms";
|
|
1491
1505
|
readonly "toast-dur-in": "320ms";
|
|
1492
1506
|
readonly "toast-dur-out": "180ms";
|
|
1507
|
+
readonly "popup-dur-in": "360ms";
|
|
1508
|
+
readonly "popup-dur-out": "200ms";
|
|
1493
1509
|
readonly "ease-pop": "cubic-bezier(0.34, 1.56, 0.64, 1)";
|
|
1494
1510
|
};
|
|
1495
1511
|
readonly standard: {
|
|
@@ -1514,6 +1530,8 @@ declare const SPEC_AXES: {
|
|
|
1514
1530
|
readonly "sheet-dur-out": "280ms";
|
|
1515
1531
|
readonly "toast-dur-in": "400ms";
|
|
1516
1532
|
readonly "toast-dur-out": "220ms";
|
|
1533
|
+
readonly "popup-dur-in": "450ms";
|
|
1534
|
+
readonly "popup-dur-out": "250ms";
|
|
1517
1535
|
readonly "ease-pop": "cubic-bezier(0.34, 1.56, 0.64, 1)";
|
|
1518
1536
|
};
|
|
1519
1537
|
readonly calm: {
|
|
@@ -1538,6 +1556,8 @@ declare const SPEC_AXES: {
|
|
|
1538
1556
|
readonly "sheet-dur-out": "340ms";
|
|
1539
1557
|
readonly "toast-dur-in": "480ms";
|
|
1540
1558
|
readonly "toast-dur-out": "280ms";
|
|
1559
|
+
readonly "popup-dur-in": "560ms";
|
|
1560
|
+
readonly "popup-dur-out": "310ms";
|
|
1541
1561
|
readonly "ease-pop": "cubic-bezier(0.34, 1.56, 0.64, 1)";
|
|
1542
1562
|
};
|
|
1543
1563
|
readonly lively: {
|
|
@@ -1562,6 +1582,8 @@ declare const SPEC_AXES: {
|
|
|
1562
1582
|
readonly "sheet-dur-out": "280ms";
|
|
1563
1583
|
readonly "toast-dur-in": "400ms";
|
|
1564
1584
|
readonly "toast-dur-out": "220ms";
|
|
1585
|
+
readonly "popup-dur-in": "450ms";
|
|
1586
|
+
readonly "popup-dur-out": "250ms";
|
|
1565
1587
|
readonly "ease-pop": "cubic-bezier(0.34, 1.56, 0.64, 1)";
|
|
1566
1588
|
};
|
|
1567
1589
|
};
|
|
@@ -6493,6 +6515,24 @@ declare const SPEC_FLAVOR_PACKS: readonly [{
|
|
|
6493
6515
|
readonly type: "duration";
|
|
6494
6516
|
readonly group: "components";
|
|
6495
6517
|
readonly value: "220ms";
|
|
6518
|
+
}, {
|
|
6519
|
+
readonly name: "popup-inset";
|
|
6520
|
+
readonly tier: "component";
|
|
6521
|
+
readonly type: "size";
|
|
6522
|
+
readonly group: "components";
|
|
6523
|
+
readonly value: "24px";
|
|
6524
|
+
}, {
|
|
6525
|
+
readonly name: "popup-dur-in";
|
|
6526
|
+
readonly tier: "component";
|
|
6527
|
+
readonly type: "duration";
|
|
6528
|
+
readonly group: "components";
|
|
6529
|
+
readonly value: "450ms";
|
|
6530
|
+
}, {
|
|
6531
|
+
readonly name: "popup-dur-out";
|
|
6532
|
+
readonly tier: "component";
|
|
6533
|
+
readonly type: "duration";
|
|
6534
|
+
readonly group: "components";
|
|
6535
|
+
readonly value: "250ms";
|
|
6496
6536
|
}, {
|
|
6497
6537
|
readonly name: "dialog-edge";
|
|
6498
6538
|
readonly tier: "component";
|
|
@@ -8573,6 +8613,24 @@ declare const SPEC_FLAVOR_PACKS: readonly [{
|
|
|
8573
8613
|
readonly type: "duration";
|
|
8574
8614
|
readonly group: "components";
|
|
8575
8615
|
readonly value: "280ms";
|
|
8616
|
+
}, {
|
|
8617
|
+
readonly name: "popup-inset";
|
|
8618
|
+
readonly tier: "component";
|
|
8619
|
+
readonly type: "size";
|
|
8620
|
+
readonly group: "components";
|
|
8621
|
+
readonly value: "24px";
|
|
8622
|
+
}, {
|
|
8623
|
+
readonly name: "popup-dur-in";
|
|
8624
|
+
readonly tier: "component";
|
|
8625
|
+
readonly type: "duration";
|
|
8626
|
+
readonly group: "components";
|
|
8627
|
+
readonly value: "560ms";
|
|
8628
|
+
}, {
|
|
8629
|
+
readonly name: "popup-dur-out";
|
|
8630
|
+
readonly tier: "component";
|
|
8631
|
+
readonly type: "duration";
|
|
8632
|
+
readonly group: "components";
|
|
8633
|
+
readonly value: "310ms";
|
|
8576
8634
|
}, {
|
|
8577
8635
|
readonly name: "dialog-edge";
|
|
8578
8636
|
readonly tier: "component";
|
|
@@ -10657,6 +10715,24 @@ declare const SPEC_FLAVOR_PACKS: readonly [{
|
|
|
10657
10715
|
readonly type: "duration";
|
|
10658
10716
|
readonly group: "components";
|
|
10659
10717
|
readonly value: "220ms";
|
|
10718
|
+
}, {
|
|
10719
|
+
readonly name: "popup-inset";
|
|
10720
|
+
readonly tier: "component";
|
|
10721
|
+
readonly type: "size";
|
|
10722
|
+
readonly group: "components";
|
|
10723
|
+
readonly value: "24px";
|
|
10724
|
+
}, {
|
|
10725
|
+
readonly name: "popup-dur-in";
|
|
10726
|
+
readonly tier: "component";
|
|
10727
|
+
readonly type: "duration";
|
|
10728
|
+
readonly group: "components";
|
|
10729
|
+
readonly value: "450ms";
|
|
10730
|
+
}, {
|
|
10731
|
+
readonly name: "popup-dur-out";
|
|
10732
|
+
readonly tier: "component";
|
|
10733
|
+
readonly type: "duration";
|
|
10734
|
+
readonly group: "components";
|
|
10735
|
+
readonly value: "250ms";
|
|
10660
10736
|
}, {
|
|
10661
10737
|
readonly name: "dialog-edge";
|
|
10662
10738
|
readonly tier: "component";
|
|
@@ -12766,6 +12842,24 @@ declare const SPEC_FLAVOR_PACKS: readonly [{
|
|
|
12766
12842
|
readonly type: "duration";
|
|
12767
12843
|
readonly group: "components";
|
|
12768
12844
|
readonly value: "220ms";
|
|
12845
|
+
}, {
|
|
12846
|
+
readonly name: "popup-inset";
|
|
12847
|
+
readonly tier: "component";
|
|
12848
|
+
readonly type: "size";
|
|
12849
|
+
readonly group: "components";
|
|
12850
|
+
readonly value: "24px";
|
|
12851
|
+
}, {
|
|
12852
|
+
readonly name: "popup-dur-in";
|
|
12853
|
+
readonly tier: "component";
|
|
12854
|
+
readonly type: "duration";
|
|
12855
|
+
readonly group: "components";
|
|
12856
|
+
readonly value: "450ms";
|
|
12857
|
+
}, {
|
|
12858
|
+
readonly name: "popup-dur-out";
|
|
12859
|
+
readonly tier: "component";
|
|
12860
|
+
readonly type: "duration";
|
|
12861
|
+
readonly group: "components";
|
|
12862
|
+
readonly value: "250ms";
|
|
12769
12863
|
}, {
|
|
12770
12864
|
readonly name: "dialog-edge";
|
|
12771
12865
|
readonly tier: "component";
|
|
@@ -14858,6 +14952,24 @@ declare const SPEC_FLAVOR_PACKS: readonly [{
|
|
|
14858
14952
|
readonly type: "duration";
|
|
14859
14953
|
readonly group: "components";
|
|
14860
14954
|
readonly value: "220ms";
|
|
14955
|
+
}, {
|
|
14956
|
+
readonly name: "popup-inset";
|
|
14957
|
+
readonly tier: "component";
|
|
14958
|
+
readonly type: "size";
|
|
14959
|
+
readonly group: "components";
|
|
14960
|
+
readonly value: "24px";
|
|
14961
|
+
}, {
|
|
14962
|
+
readonly name: "popup-dur-in";
|
|
14963
|
+
readonly tier: "component";
|
|
14964
|
+
readonly type: "duration";
|
|
14965
|
+
readonly group: "components";
|
|
14966
|
+
readonly value: "450ms";
|
|
14967
|
+
}, {
|
|
14968
|
+
readonly name: "popup-dur-out";
|
|
14969
|
+
readonly tier: "component";
|
|
14970
|
+
readonly type: "duration";
|
|
14971
|
+
readonly group: "components";
|
|
14972
|
+
readonly value: "250ms";
|
|
14861
14973
|
}, {
|
|
14862
14974
|
readonly name: "dialog-edge";
|
|
14863
14975
|
readonly tier: "component";
|
|
@@ -16950,6 +17062,24 @@ declare const SPEC_FLAVOR_PACKS: readonly [{
|
|
|
16950
17062
|
readonly type: "duration";
|
|
16951
17063
|
readonly group: "components";
|
|
16952
17064
|
readonly value: "180ms";
|
|
17065
|
+
}, {
|
|
17066
|
+
readonly name: "popup-inset";
|
|
17067
|
+
readonly tier: "component";
|
|
17068
|
+
readonly type: "size";
|
|
17069
|
+
readonly group: "components";
|
|
17070
|
+
readonly value: "24px";
|
|
17071
|
+
}, {
|
|
17072
|
+
readonly name: "popup-dur-in";
|
|
17073
|
+
readonly tier: "component";
|
|
17074
|
+
readonly type: "duration";
|
|
17075
|
+
readonly group: "components";
|
|
17076
|
+
readonly value: "360ms";
|
|
17077
|
+
}, {
|
|
17078
|
+
readonly name: "popup-dur-out";
|
|
17079
|
+
readonly tier: "component";
|
|
17080
|
+
readonly type: "duration";
|
|
17081
|
+
readonly group: "components";
|
|
17082
|
+
readonly value: "200ms";
|
|
16953
17083
|
}, {
|
|
16954
17084
|
readonly name: "dialog-edge";
|
|
16955
17085
|
readonly tier: "component";
|