@atomic-ui/blocks 0.13.2 → 0.15.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/README.md +15 -15
- package/custom-elements.json +2961 -9573
- package/dist/{chunk-B6I3GVJ5.js → chunk-3G3NP4UC.js} +9 -4
- package/dist/chunk-3G3NP4UC.js.map +1 -0
- package/dist/{chunk-H262HKSL.js → chunk-7OFH762N.js} +53 -23
- package/dist/chunk-7OFH762N.js.map +1 -0
- package/dist/{chunk-WTVF3JRL.js → chunk-GDATDR2Q.js} +24 -7
- package/dist/chunk-GDATDR2Q.js.map +1 -0
- package/dist/chunk-GQ2I44OU.js +226 -0
- package/dist/chunk-GQ2I44OU.js.map +1 -0
- package/dist/chunk-HISF6RYK.js +199 -0
- package/dist/chunk-HISF6RYK.js.map +1 -0
- package/dist/{chunk-53V2GY6L.js → chunk-LJGOTYDJ.js} +76 -69
- package/dist/chunk-LJGOTYDJ.js.map +1 -0
- package/dist/{chunk-WIVKJL64.js → chunk-OBBPBN4S.js} +73 -164
- package/dist/chunk-OBBPBN4S.js.map +1 -0
- package/dist/chunk-OHXEZPBB.js +109 -0
- package/dist/chunk-OHXEZPBB.js.map +1 -0
- package/dist/{chunk-FNGN2F6Y.js → chunk-VOONXP5H.js} +30 -59
- package/dist/chunk-VOONXP5H.js.map +1 -0
- package/dist/chunk-XSKGWT2D.js +84 -0
- package/dist/chunk-XSKGWT2D.js.map +1 -0
- package/dist/components/changelog.d.ts +0 -288
- package/dist/components/changelog.js +3 -12
- package/dist/components/estimator.js +1 -1
- package/dist/components/g2-case.d.ts +8 -1
- package/dist/components/g2-case.js +1 -1
- package/dist/components/g2-site.d.ts +49 -41
- package/dist/components/g2-site.js +1 -3
- package/dist/components/journey.d.ts +13 -2
- package/dist/components/journey.js +1 -1
- package/dist/components/marketing.d.ts +0 -283
- package/dist/components/marketing.js +3 -13
- package/dist/components/organisms.d.ts +0 -489
- package/dist/components/organisms.js +3 -19
- package/dist/components/selling.d.ts +0 -255
- package/dist/components/selling.js +3 -15
- package/dist/components/site.d.ts +8 -53
- package/dist/components/site.js +3 -5
- package/dist/components/studio.d.ts +42 -98
- package/dist/components/studio.js +1 -3
- package/dist/index.d.ts +9 -13
- package/dist/index.js +25 -103
- package/dist/index.js.map +1 -1
- package/dist/standalone/atomic-ui-blocks.js +832 -1622
- package/dist/standalone/atomic-ui-blocks.js.map +4 -4
- package/dist/standalone/index.html +18 -26
- package/package.json +3 -3
- package/specimen/index.html +18 -26
- package/dist/chunk-53V2GY6L.js.map +0 -1
- package/dist/chunk-B6I3GVJ5.js.map +0 -1
- package/dist/chunk-FNGN2F6Y.js.map +0 -1
- package/dist/chunk-H262HKSL.js.map +0 -1
- package/dist/chunk-IT2NA25D.js +0 -571
- package/dist/chunk-IT2NA25D.js.map +0 -1
- package/dist/chunk-MMADM6OW.js +0 -782
- package/dist/chunk-MMADM6OW.js.map +0 -1
- package/dist/chunk-NHWD2LUR.js +0 -255
- package/dist/chunk-NHWD2LUR.js.map +0 -1
- package/dist/chunk-R7SSIE2E.js +0 -362
- package/dist/chunk-R7SSIE2E.js.map +0 -1
- package/dist/chunk-WIVKJL64.js.map +0 -1
- package/dist/chunk-WTVF3JRL.js.map +0 -1
- package/dist/chunk-XB6FD4SF.js +0 -438
- package/dist/chunk-XB6FD4SF.js.map +0 -1
- package/dist/chunk-YXMXLVK7.js +0 -230
- package/dist/chunk-YXMXLVK7.js.map +0 -1
- package/dist/chunk-ZD75GU6J.js +0 -75
- package/dist/chunk-ZD75GU6J.js.map +0 -1
- package/dist/chunk-ZODL5HD4.js +0 -535
- package/dist/chunk-ZODL5HD4.js.map +0 -1
- package/dist/components/card-grid.d.ts +0 -72
- package/dist/components/card-grid.js +0 -7
- package/dist/components/card-grid.js.map +0 -1
- package/dist/components/property.d.ts +0 -389
- package/dist/components/property.js +0 -17
- package/dist/components/property.js.map +0 -1
- package/dist/components/scene.d.ts +0 -138
- package/dist/components/scene.js +0 -7
- package/dist/components/scene.js.map +0 -1
- package/dist/components/scrubber.d.ts +0 -86
- package/dist/components/scrubber.js +0 -7
- package/dist/components/scrubber.js.map +0 -1
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import { type TemplateResult, type PropertyValues } from 'lit';
|
|
2
|
-
import { ImpaktElement } from '@atomic-ui/ui';
|
|
3
|
-
export type SceneDrive = 'view' | 'page' | 'loop' | 'scrubber';
|
|
4
|
-
export type SceneLayout = 'stage' | 'split';
|
|
5
|
-
/**
|
|
6
|
-
* A scene: a stage whose children move along a progress from 0 to 1.
|
|
7
|
-
*
|
|
8
|
-
* The children declare timelines in their `motion` block, and `@atomic-ui/motion`
|
|
9
|
-
* compiles them to keyframes. This element owns only the progress, and where it
|
|
10
|
-
* comes from is the `drive` (ADR 0027):
|
|
11
|
-
*
|
|
12
|
-
* - `view` — the scene's own passage through the viewport. The stage pins
|
|
13
|
-
* while the scene scrolls past, for `length` screens, or beside the content
|
|
14
|
-
* in the default slot when `layout` is `split`.
|
|
15
|
-
* - `page` — the scroll position of the whole page.
|
|
16
|
-
* - `loop` — time, over `duration` seconds, repeating. **It always shows a
|
|
17
|
-
* pause button**, because anything that moves on its own for more than five
|
|
18
|
-
* seconds must be pausable (WCAG 2.2.2), and a scene that could forget that
|
|
19
|
-
* is one the gate would have to catch on every page.
|
|
20
|
-
* - `scrubber` — an `impakt-scrubber` placed in the `controls` slot.
|
|
21
|
-
*
|
|
22
|
-
* Progress is published three ways: the `progress` property, the
|
|
23
|
-
* `--impakt-scene-progress` custom property on the host, and an
|
|
24
|
-
* `impakt-scene-progress` event. Engines with scroll-driven animations run `view`
|
|
25
|
-
* and `page` scenes natively, and the runtime ignores the event for them.
|
|
26
|
-
*
|
|
27
|
-
* Under reduced motion a `loop` does not start, and nothing pins: the stage
|
|
28
|
-
* and the content stack, so every state of the scene can be read in order.
|
|
29
|
-
*
|
|
30
|
-
* @category layout
|
|
31
|
-
* @icon layers
|
|
32
|
-
* @slot stage - What moves, layered one over another. Pinned while the scene plays,
|
|
33
|
-
* beside the content in `split` layout, after it, so the words are read first.
|
|
34
|
-
* @slot - Content that scrolls past the stage, such as chapters.
|
|
35
|
-
* @slot controls - An `impakt-scrubber`, for a scene driven by one.
|
|
36
|
-
* @fires {CustomEvent<{ progress: number }>} impakt-scene-progress - `{ progress }` whenever the progress changes.
|
|
37
|
-
*/
|
|
38
|
-
export declare class ImpaktScene extends ImpaktElement {
|
|
39
|
-
static properties: {
|
|
40
|
-
drive: {
|
|
41
|
-
type: StringConstructor;
|
|
42
|
-
reflect: boolean;
|
|
43
|
-
};
|
|
44
|
-
layout: {
|
|
45
|
-
type: StringConstructor;
|
|
46
|
-
reflect: boolean;
|
|
47
|
-
};
|
|
48
|
-
length: {
|
|
49
|
-
type: NumberConstructor;
|
|
50
|
-
};
|
|
51
|
-
duration: {
|
|
52
|
-
type: NumberConstructor;
|
|
53
|
-
};
|
|
54
|
-
label: {
|
|
55
|
-
type: StringConstructor;
|
|
56
|
-
};
|
|
57
|
-
progress: {
|
|
58
|
-
type: NumberConstructor;
|
|
59
|
-
};
|
|
60
|
-
controls: {
|
|
61
|
-
type: StringConstructor;
|
|
62
|
-
reflect: boolean;
|
|
63
|
-
};
|
|
64
|
-
bleed: {
|
|
65
|
-
type: BooleanConstructor;
|
|
66
|
-
reflect: boolean;
|
|
67
|
-
};
|
|
68
|
-
hideOn: {
|
|
69
|
-
type: StringConstructor;
|
|
70
|
-
reflect: boolean;
|
|
71
|
-
attribute: string;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
/** Where the progress comes from. */
|
|
75
|
-
drive: 'view' | 'page' | 'loop' | 'scrubber';
|
|
76
|
-
/** `stage` pins one full-width stage; `split` pins it beside the content. */
|
|
77
|
-
layout: 'stage' | 'split';
|
|
78
|
-
/** How many screens of scrolling a `view` scene lasts, in `stage` layout. */
|
|
79
|
-
length: number;
|
|
80
|
-
/** Seconds per cycle of a `loop` scene. */
|
|
81
|
-
duration: number;
|
|
82
|
-
/** The scene's accessible name. Also names its pause button. */
|
|
83
|
-
label: string;
|
|
84
|
-
/** From 0 to 1. Set it to seek a `scrubber` scene, or where one starts. */
|
|
85
|
-
progress: number;
|
|
86
|
-
/**
|
|
87
|
-
* Where the controls sit: `below` the stage, or `over` its foot, floating
|
|
88
|
-
* on what it shows, as a video's do. Under reduced motion they sit below.
|
|
89
|
-
*/
|
|
90
|
-
controls: 'below' | 'over';
|
|
91
|
-
/** Run the stage to the window's edges, past the page's margins, as a hero drawn edge to edge does. */
|
|
92
|
-
bleed: boolean;
|
|
93
|
-
/**
|
|
94
|
-
* Leave it out on a phone, or on anything wider, for a picture drawn twice:
|
|
95
|
-
* once for a wide screen and once for a narrow one. Never both.
|
|
96
|
-
*/
|
|
97
|
-
hideOn: 'never' | 'phone' | 'wide';
|
|
98
|
-
/**
|
|
99
|
-
* Whether a loop is paused: the scene's own state, set by its pause button
|
|
100
|
-
* or by `pause()`. A plain field rather than a property, so it is never one
|
|
101
|
-
* of the settings an author is offered.
|
|
102
|
-
*/
|
|
103
|
-
private paused;
|
|
104
|
-
private frame;
|
|
105
|
-
private started;
|
|
106
|
-
private reduced;
|
|
107
|
-
private seekFrom;
|
|
108
|
-
private seekTo;
|
|
109
|
-
private seekStart;
|
|
110
|
-
private seekMs;
|
|
111
|
-
constructor();
|
|
112
|
-
static styles: import("lit").CSSResult[];
|
|
113
|
-
/** @ignore */
|
|
114
|
-
connectedCallback(): void;
|
|
115
|
-
/** @ignore */
|
|
116
|
-
disconnectedCallback(): void;
|
|
117
|
-
/** @ignore */
|
|
118
|
-
protected updated(changed: PropertyValues<this>): void;
|
|
119
|
-
/**
|
|
120
|
-
* Move to a progress. With `ms`, ease there; without, jump. A scrubber seeks
|
|
121
|
-
* a scene to a named stop this way.
|
|
122
|
-
*/
|
|
123
|
-
seek(to: number, ms?: number): void;
|
|
124
|
-
private onScroll;
|
|
125
|
-
private schedule;
|
|
126
|
-
private tick;
|
|
127
|
-
private publish;
|
|
128
|
-
private setPaused;
|
|
129
|
-
private togglePause;
|
|
130
|
-
/** Stop a loop where it is, as its pause button does. An editor scrubbing the scene calls it. */
|
|
131
|
-
pause(): void;
|
|
132
|
-
render(): TemplateResult;
|
|
133
|
-
}
|
|
134
|
-
declare global {
|
|
135
|
-
interface HTMLElementTagNameMap {
|
|
136
|
-
'impakt-scene': ImpaktScene;
|
|
137
|
-
}
|
|
138
|
-
}
|
package/dist/components/scene.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { type TemplateResult } from 'lit';
|
|
2
|
-
import { ImpaktElement } from '@atomic-ui/ui';
|
|
3
|
-
export interface ScrubberStop {
|
|
4
|
-
/** Where the stop sits on the scene's progress, from 0 to 1. */
|
|
5
|
-
at: number;
|
|
6
|
-
label: string;
|
|
7
|
-
/** A short code beside it in the graph look, such as a commit hash. */
|
|
8
|
-
meta?: string;
|
|
9
|
-
/** A line under the code in the graph look, such as a commit message. */
|
|
10
|
-
note?: string;
|
|
11
|
-
/**
|
|
12
|
-
* The colour of the line up to this stop, in the graph look: a named tone,
|
|
13
|
-
* or 1 to 5 for the brand's chart colours, as a project's phases are drawn.
|
|
14
|
-
*/
|
|
15
|
-
tone?: 'brand' | 'accent' | 'info' | 'success' | 'warning' | 'danger' | 1 | 2 | 3 | 4 | 5;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Drives the scene it sits in, by hand.
|
|
19
|
-
*
|
|
20
|
-
* Place it in an `impakt-scene`'s `controls` slot and set that scene's `drive`
|
|
21
|
-
* to `scrubber`. Dragging moves through the scene; a named stop seeks to it
|
|
22
|
-
* with an eased move rather than a cut, which is what makes the Commit-style
|
|
23
|
-
* "time travel" read as travel.
|
|
24
|
-
*
|
|
25
|
-
* **It is a native range input.** A slider built from divs has to recreate
|
|
26
|
-
* arrow keys, Page Up and Down, Home and End, the value announcement and touch
|
|
27
|
-
* handling, and every one of those is a place to get it wrong. The input
|
|
28
|
-
* already does all of it. The stops are buttons beside it, so a keyboard or
|
|
29
|
-
* switch user reaches each named moment in one action instead of nudging a
|
|
30
|
-
* thumb to find it (2.5.7, dragging movements).
|
|
31
|
-
*
|
|
32
|
-
* @category action
|
|
33
|
-
* @icon adjustments-horizontal
|
|
34
|
-
*/
|
|
35
|
-
export declare class ImpaktScrubber extends ImpaktElement {
|
|
36
|
-
static properties: {
|
|
37
|
-
label: {
|
|
38
|
-
type: StringConstructor;
|
|
39
|
-
};
|
|
40
|
-
stops: {
|
|
41
|
-
type: ArrayConstructor;
|
|
42
|
-
};
|
|
43
|
-
look: {
|
|
44
|
-
type: StringConstructor;
|
|
45
|
-
reflect: boolean;
|
|
46
|
-
};
|
|
47
|
-
hint: {
|
|
48
|
-
type: StringConstructor;
|
|
49
|
-
};
|
|
50
|
-
value: {
|
|
51
|
-
type: NumberConstructor;
|
|
52
|
-
state: boolean;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
/** The slider's accessible name. */
|
|
56
|
-
label: string;
|
|
57
|
-
stops: ScrubberStop[];
|
|
58
|
-
/**
|
|
59
|
-
* `buttons` lists the stops as buttons under the slider. `graph` draws them
|
|
60
|
-
* as commits on a line that fills in each stop's colour as it is dragged,
|
|
61
|
-
* with the current one's code and note beside it.
|
|
62
|
-
*/
|
|
63
|
-
look: 'buttons' | 'graph';
|
|
64
|
-
/** A word of help in the graph look, such as "drag to time-travel". */
|
|
65
|
-
hint: string;
|
|
66
|
-
value: number;
|
|
67
|
-
private scene;
|
|
68
|
-
constructor();
|
|
69
|
-
static styles: import("lit").CSSResult[];
|
|
70
|
-
/** @ignore */
|
|
71
|
-
connectedCallback(): void;
|
|
72
|
-
/** @ignore */
|
|
73
|
-
disconnectedCallback(): void;
|
|
74
|
-
private onProgress;
|
|
75
|
-
private onInput;
|
|
76
|
-
private goTo;
|
|
77
|
-
/** The stop nearest the current position, which the stop list marks as current. */
|
|
78
|
-
private nearest;
|
|
79
|
-
private renderGraph;
|
|
80
|
-
render(): TemplateResult;
|
|
81
|
-
}
|
|
82
|
-
declare global {
|
|
83
|
-
interface HTMLElementTagNameMap {
|
|
84
|
-
'impakt-scrubber': ImpaktScrubber;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|