@atomic-ui/blocks 0.14.0 → 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.
Files changed (69) hide show
  1. package/README.md +15 -15
  2. package/custom-elements.json +2978 -9654
  3. package/dist/chunk-GQ2I44OU.js +226 -0
  4. package/dist/chunk-GQ2I44OU.js.map +1 -0
  5. package/dist/chunk-HISF6RYK.js +199 -0
  6. package/dist/chunk-HISF6RYK.js.map +1 -0
  7. package/dist/{chunk-Q366ZM2X.js → chunk-LJGOTYDJ.js} +17 -41
  8. package/dist/chunk-LJGOTYDJ.js.map +1 -0
  9. package/dist/{chunk-BW5ZMKES.js → chunk-OBBPBN4S.js} +17 -144
  10. package/dist/chunk-OBBPBN4S.js.map +1 -0
  11. package/dist/chunk-OHXEZPBB.js +109 -0
  12. package/dist/chunk-OHXEZPBB.js.map +1 -0
  13. package/dist/{chunk-NZQZRBKV.js → chunk-VOONXP5H.js} +15 -57
  14. package/dist/chunk-VOONXP5H.js.map +1 -0
  15. package/dist/chunk-XSKGWT2D.js +84 -0
  16. package/dist/chunk-XSKGWT2D.js.map +1 -0
  17. package/dist/components/changelog.d.ts +0 -288
  18. package/dist/components/changelog.js +3 -12
  19. package/dist/components/g2-site.d.ts +27 -40
  20. package/dist/components/g2-site.js +1 -3
  21. package/dist/components/marketing.d.ts +0 -283
  22. package/dist/components/marketing.js +3 -13
  23. package/dist/components/organisms.d.ts +0 -489
  24. package/dist/components/organisms.js +3 -19
  25. package/dist/components/selling.d.ts +0 -255
  26. package/dist/components/selling.js +3 -15
  27. package/dist/components/site.d.ts +6 -52
  28. package/dist/components/site.js +3 -5
  29. package/dist/components/studio.d.ts +10 -95
  30. package/dist/components/studio.js +1 -3
  31. package/dist/index.d.ts +9 -13
  32. package/dist/index.js +23 -101
  33. package/dist/index.js.map +1 -1
  34. package/dist/standalone/atomic-ui-blocks.js +751 -1642
  35. package/dist/standalone/atomic-ui-blocks.js.map +4 -4
  36. package/dist/standalone/index.html +18 -26
  37. package/package.json +3 -3
  38. package/specimen/index.html +18 -26
  39. package/dist/chunk-BW5ZMKES.js.map +0 -1
  40. package/dist/chunk-GZTBAT6P.js +0 -574
  41. package/dist/chunk-GZTBAT6P.js.map +0 -1
  42. package/dist/chunk-NHWD2LUR.js +0 -255
  43. package/dist/chunk-NHWD2LUR.js.map +0 -1
  44. package/dist/chunk-NZQZRBKV.js.map +0 -1
  45. package/dist/chunk-Q366ZM2X.js.map +0 -1
  46. package/dist/chunk-R7SSIE2E.js +0 -362
  47. package/dist/chunk-R7SSIE2E.js.map +0 -1
  48. package/dist/chunk-XB6FD4SF.js +0 -438
  49. package/dist/chunk-XB6FD4SF.js.map +0 -1
  50. package/dist/chunk-YXMXLVK7.js +0 -230
  51. package/dist/chunk-YXMXLVK7.js.map +0 -1
  52. package/dist/chunk-ZD75GU6J.js +0 -75
  53. package/dist/chunk-ZD75GU6J.js.map +0 -1
  54. package/dist/chunk-ZM2HLQOG.js +0 -783
  55. package/dist/chunk-ZM2HLQOG.js.map +0 -1
  56. package/dist/chunk-ZODL5HD4.js +0 -535
  57. package/dist/chunk-ZODL5HD4.js.map +0 -1
  58. package/dist/components/card-grid.d.ts +0 -72
  59. package/dist/components/card-grid.js +0 -7
  60. package/dist/components/card-grid.js.map +0 -1
  61. package/dist/components/property.d.ts +0 -389
  62. package/dist/components/property.js +0 -17
  63. package/dist/components/property.js.map +0 -1
  64. package/dist/components/scene.d.ts +0 -138
  65. package/dist/components/scene.js +0 -7
  66. package/dist/components/scene.js.map +0 -1
  67. package/dist/components/scrubber.d.ts +0 -86
  68. package/dist/components/scrubber.js +0 -7
  69. 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
- }
@@ -1,7 +0,0 @@
1
- import {
2
- ImpaktScene
3
- } from "../chunk-NHWD2LUR.js";
4
- export {
5
- ImpaktScene
6
- };
7
- //# sourceMappingURL=scene.js.map
@@ -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,7 +0,0 @@
1
- import {
2
- ImpaktScrubber
3
- } from "../chunk-YXMXLVK7.js";
4
- export {
5
- ImpaktScrubber
6
- };
7
- //# sourceMappingURL=scrubber.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}