@atomic-ui/ui 0.1.7 → 0.2.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 (168) hide show
  1. package/README.md +5 -3
  2. package/custom-elements.json +24569 -0
  3. package/dist/base/ImpktElement.d.ts +14 -0
  4. package/dist/base/locale.d.ts +8 -0
  5. package/dist/base/say.d.ts +1 -0
  6. package/dist/base/styles.d.ts +1 -1
  7. package/dist/base/tokens.d.ts +5 -1
  8. package/dist/{chunk-GSCVG2ER.js → chunk-26O27BQS.js} +3 -3
  9. package/dist/chunk-2CFVV2NZ.js +494 -0
  10. package/dist/chunk-2CFVV2NZ.js.map +1 -0
  11. package/dist/chunk-3IGNZTJU.js +14 -0
  12. package/dist/chunk-3IGNZTJU.js.map +1 -0
  13. package/dist/{chunk-4HU4Y23Q.js → chunk-3IQ73WNW.js} +3 -3
  14. package/dist/{chunk-7Y6UCSUS.js → chunk-4X723QBD.js} +4 -4
  15. package/dist/chunk-4X723QBD.js.map +1 -0
  16. package/dist/{chunk-OB7LC6NJ.js → chunk-6YYAOKNI.js} +2 -2
  17. package/dist/{chunk-7BIQ3K6H.js → chunk-7AJN2TIS.js} +2 -2
  18. package/dist/chunk-7BSZPUE3.js +53 -0
  19. package/dist/chunk-7BSZPUE3.js.map +1 -0
  20. package/dist/{chunk-HWWA27DN.js → chunk-7OXTZJR4.js} +2 -2
  21. package/dist/chunk-7XEPNEVQ.js +264 -0
  22. package/dist/chunk-7XEPNEVQ.js.map +1 -0
  23. package/dist/{chunk-NTNXHLTM.js → chunk-D6C7XEY4.js} +41 -1
  24. package/dist/chunk-D6C7XEY4.js.map +1 -0
  25. package/dist/{chunk-C36CZRHK.js → chunk-E2VBUWJ4.js} +43 -13
  26. package/dist/chunk-E2VBUWJ4.js.map +1 -0
  27. package/dist/{chunk-XJP45LFA.js → chunk-E3XJK7MY.js} +13 -5
  28. package/dist/chunk-E3XJK7MY.js.map +1 -0
  29. package/dist/{chunk-GO2IBRFP.js → chunk-EDSZI227.js} +2 -2
  30. package/dist/{chunk-6ICOJPMD.js → chunk-FFCIY7NM.js} +4 -3
  31. package/dist/chunk-FFCIY7NM.js.map +1 -0
  32. package/dist/{chunk-MOEMFL4K.js → chunk-FJRHZA3C.js} +5 -5
  33. package/dist/chunk-FJRHZA3C.js.map +1 -0
  34. package/dist/{chunk-ZGAOMRYD.js → chunk-GQDUHZE3.js} +3 -3
  35. package/dist/{chunk-QCNT7D5V.js → chunk-HYPPG4NF.js} +12 -8
  36. package/dist/chunk-HYPPG4NF.js.map +1 -0
  37. package/dist/chunk-J4JULXUG.js +249 -0
  38. package/dist/chunk-J4JULXUG.js.map +1 -0
  39. package/dist/{chunk-2YQA3VBY.js → chunk-KFD4O7VA.js} +4 -2
  40. package/dist/chunk-KFD4O7VA.js.map +1 -0
  41. package/dist/{chunk-ZQJD4YEJ.js → chunk-MVEFM5QI.js} +3 -3
  42. package/dist/{chunk-WECSVHIM.js → chunk-NCASAXQT.js} +7 -3
  43. package/dist/chunk-NCASAXQT.js.map +1 -0
  44. package/dist/{chunk-QDNI54ON.js → chunk-NKTMMJYD.js} +7 -6
  45. package/dist/chunk-NKTMMJYD.js.map +1 -0
  46. package/dist/{chunk-T6L3USBZ.js → chunk-OB7WULFK.js} +23 -11
  47. package/dist/chunk-OB7WULFK.js.map +1 -0
  48. package/dist/{chunk-ZBLTU67D.js → chunk-OHDPGIJ3.js} +15 -11
  49. package/dist/chunk-OHDPGIJ3.js.map +1 -0
  50. package/dist/{chunk-TPF4MOMF.js → chunk-OLLZFNO6.js} +7 -4
  51. package/dist/chunk-OLLZFNO6.js.map +1 -0
  52. package/dist/{chunk-NQKYHILD.js → chunk-OMJMUFOW.js} +3 -3
  53. package/dist/{chunk-MLVUMCQ2.js → chunk-QB2KMV6S.js} +14 -5
  54. package/dist/chunk-QB2KMV6S.js.map +1 -0
  55. package/dist/{chunk-5EA4IDUD.js → chunk-R67PDFKE.js} +2 -2
  56. package/dist/chunk-RZSZQMSE.js +236 -0
  57. package/dist/chunk-RZSZQMSE.js.map +1 -0
  58. package/dist/{chunk-XVKEM5JY.js → chunk-TGT7J4EG.js} +2 -2
  59. package/dist/{chunk-VTFCTWSX.js → chunk-UCHJCUYI.js} +2 -2
  60. package/dist/chunk-UHLRXI6J.js +453 -0
  61. package/dist/chunk-UHLRXI6J.js.map +1 -0
  62. package/dist/{chunk-X7IPZPTG.js → chunk-UNVL3CNM.js} +34 -19
  63. package/dist/chunk-UNVL3CNM.js.map +1 -0
  64. package/dist/{chunk-VWNBB7FW.js → chunk-WDDWWCHN.js} +2 -2
  65. package/dist/chunk-WFKSOM6O.js +498 -0
  66. package/dist/chunk-WFKSOM6O.js.map +1 -0
  67. package/dist/{chunk-G6OVKNL7.js → chunk-XEJMFFIM.js} +4 -3
  68. package/dist/chunk-XEJMFFIM.js.map +1 -0
  69. package/dist/{chunk-CMAU4DSB.js → chunk-XJXCTGDR.js} +5 -5
  70. package/dist/chunk-XJXCTGDR.js.map +1 -0
  71. package/dist/{chunk-BTGCUONV.js → chunk-YD6IZ2C5.js} +2 -2
  72. package/dist/chunk-YK5QI57J.js +396 -0
  73. package/dist/chunk-YK5QI57J.js.map +1 -0
  74. package/dist/components/accordion.js +2 -2
  75. package/dist/components/alert.js +2 -2
  76. package/dist/components/app-ui.js +5 -4
  77. package/dist/components/blocks.js +3 -3
  78. package/dist/components/button.d.ts +7 -0
  79. package/dist/components/button.js +3 -3
  80. package/dist/components/changelog.d.ts +386 -0
  81. package/dist/components/changelog.js +25 -0
  82. package/dist/components/changelog.js.map +1 -0
  83. package/dist/components/checkbox-group.js +3 -3
  84. package/dist/components/checkbox.js +3 -3
  85. package/dist/components/date-input.js +3 -3
  86. package/dist/components/dialog.js +2 -2
  87. package/dist/components/estimator.d.ts +246 -0
  88. package/dist/components/estimator.js +16 -0
  89. package/dist/components/estimator.js.map +1 -0
  90. package/dist/components/fieldset.js +2 -2
  91. package/dist/components/grid.js +2 -2
  92. package/dist/components/help.js +2 -2
  93. package/dist/components/icon.d.ts +2 -0
  94. package/dist/components/icon.js +2 -2
  95. package/dist/components/journey.d.ts +433 -0
  96. package/dist/components/journey.js +22 -0
  97. package/dist/components/journey.js.map +1 -0
  98. package/dist/components/layout.d.ts +24 -0
  99. package/dist/components/layout.js +2 -2
  100. package/dist/components/link.js +3 -3
  101. package/dist/components/list.d.ts +50 -0
  102. package/dist/components/list.js +8 -0
  103. package/dist/components/list.js.map +1 -0
  104. package/dist/components/marketing.js +3 -3
  105. package/dist/components/media.d.ts +10 -0
  106. package/dist/components/media.js +2 -2
  107. package/dist/components/navigation.d.ts +16 -0
  108. package/dist/components/navigation.js +3 -3
  109. package/dist/components/organisms.d.ts +12 -0
  110. package/dist/components/organisms.js +3 -3
  111. package/dist/components/page.js +2 -2
  112. package/dist/components/price.d.ts +1 -1
  113. package/dist/components/price.js +3 -2
  114. package/dist/components/progress.js +2 -2
  115. package/dist/components/property.js +4 -3
  116. package/dist/components/radio-group.js +3 -3
  117. package/dist/components/scene.d.ts +138 -0
  118. package/dist/components/scene.js +8 -0
  119. package/dist/components/scene.js.map +1 -0
  120. package/dist/components/scrubber.d.ts +86 -0
  121. package/dist/components/scrubber.js +8 -0
  122. package/dist/components/scrubber.js.map +1 -0
  123. package/dist/components/select.js +3 -3
  124. package/dist/components/selling.d.ts +407 -0
  125. package/dist/components/selling.js +25 -0
  126. package/dist/components/selling.js.map +1 -0
  127. package/dist/components/site.d.ts +283 -0
  128. package/dist/components/site.js +20 -0
  129. package/dist/components/site.js.map +1 -0
  130. package/dist/components/summary-list.js +2 -2
  131. package/dist/components/table.js +2 -2
  132. package/dist/components/text-input.js +3 -3
  133. package/dist/components/textarea.d.ts +13 -0
  134. package/dist/components/textarea.js +3 -3
  135. package/dist/index.d.ts +9 -1
  136. package/dist/index.js +134 -55
  137. package/package.json +11 -4
  138. package/dist/chunk-2YQA3VBY.js.map +0 -1
  139. package/dist/chunk-6ICOJPMD.js.map +0 -1
  140. package/dist/chunk-7Y6UCSUS.js.map +0 -1
  141. package/dist/chunk-C36CZRHK.js.map +0 -1
  142. package/dist/chunk-CMAU4DSB.js.map +0 -1
  143. package/dist/chunk-G6OVKNL7.js.map +0 -1
  144. package/dist/chunk-MLVUMCQ2.js.map +0 -1
  145. package/dist/chunk-MOEMFL4K.js.map +0 -1
  146. package/dist/chunk-NTNXHLTM.js.map +0 -1
  147. package/dist/chunk-QCNT7D5V.js.map +0 -1
  148. package/dist/chunk-QDNI54ON.js.map +0 -1
  149. package/dist/chunk-T6L3USBZ.js.map +0 -1
  150. package/dist/chunk-TPF4MOMF.js.map +0 -1
  151. package/dist/chunk-WECSVHIM.js.map +0 -1
  152. package/dist/chunk-X7IPZPTG.js.map +0 -1
  153. package/dist/chunk-XJP45LFA.js.map +0 -1
  154. package/dist/chunk-ZBLTU67D.js.map +0 -1
  155. /package/dist/{chunk-GSCVG2ER.js.map → chunk-26O27BQS.js.map} +0 -0
  156. /package/dist/{chunk-4HU4Y23Q.js.map → chunk-3IQ73WNW.js.map} +0 -0
  157. /package/dist/{chunk-OB7LC6NJ.js.map → chunk-6YYAOKNI.js.map} +0 -0
  158. /package/dist/{chunk-7BIQ3K6H.js.map → chunk-7AJN2TIS.js.map} +0 -0
  159. /package/dist/{chunk-HWWA27DN.js.map → chunk-7OXTZJR4.js.map} +0 -0
  160. /package/dist/{chunk-GO2IBRFP.js.map → chunk-EDSZI227.js.map} +0 -0
  161. /package/dist/{chunk-ZGAOMRYD.js.map → chunk-GQDUHZE3.js.map} +0 -0
  162. /package/dist/{chunk-ZQJD4YEJ.js.map → chunk-MVEFM5QI.js.map} +0 -0
  163. /package/dist/{chunk-NQKYHILD.js.map → chunk-OMJMUFOW.js.map} +0 -0
  164. /package/dist/{chunk-5EA4IDUD.js.map → chunk-R67PDFKE.js.map} +0 -0
  165. /package/dist/{chunk-XVKEM5JY.js.map → chunk-TGT7J4EG.js.map} +0 -0
  166. /package/dist/{chunk-VTFCTWSX.js.map → chunk-UCHJCUYI.js.map} +0 -0
  167. /package/dist/{chunk-VWNBB7FW.js.map → chunk-WDDWWCHN.js.map} +0 -0
  168. /package/dist/{chunk-BTGCUONV.js.map → chunk-YD6IZ2C5.js.map} +0 -0
@@ -211,6 +211,8 @@ export interface StepItem {
211
211
  id?: string;
212
212
  heading: string;
213
213
  text?: string;
214
+ /** A short line above the heading, such as how long the step takes. */
215
+ meta?: string;
214
216
  }
215
217
  /**
216
218
  * A process, in order, joined by a line: how buying a home works, what happens
@@ -231,6 +233,10 @@ export declare class ImpktSteps extends ImpktElement {
231
233
  type: StringConstructor;
232
234
  reflect: boolean;
233
235
  };
236
+ look: {
237
+ type: StringConstructor;
238
+ reflect: boolean;
239
+ };
234
240
  headingLevel: {
235
241
  type: NumberConstructor;
236
242
  attribute: string;
@@ -249,6 +255,12 @@ export declare class ImpktSteps extends ImpktElement {
249
255
  items: StepItem[];
250
256
  /** Across the page, or down it. Across becomes down on a narrow screen. */
251
257
  orientation: 'horizontal' | 'vertical';
258
+ /**
259
+ * `numbered` joins numbered circles with a line. `ruled` gives each step a
260
+ * coloured rule along its top, in the brand's chart colours, as a project
261
+ * plan's phases are drawn. The steps are an ordered list either way.
262
+ */
263
+ look: 'numbered' | 'ruled';
252
264
  /** The level of each step's heading. One below the heading above the steps. */
253
265
  headingLevel: 2 | 3 | 4;
254
266
  spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
@@ -8,9 +8,9 @@ import {
8
8
  ImpktReviews,
9
9
  ImpktSteps,
10
10
  gallerySpan
11
- } from "../chunk-X7IPZPTG.js";
12
- import "../chunk-2YQA3VBY.js";
13
- import "../chunk-NTNXHLTM.js";
11
+ } from "../chunk-UNVL3CNM.js";
12
+ import "../chunk-KFD4O7VA.js";
13
+ import "../chunk-D6C7XEY4.js";
14
14
  export {
15
15
  ImpktCarousel,
16
16
  ImpktCtaBanner,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ImpktPage,
3
3
  ImpktSection
4
- } from "../chunk-5EA4IDUD.js";
5
- import "../chunk-NTNXHLTM.js";
4
+ } from "../chunk-R67PDFKE.js";
5
+ import "../chunk-D6C7XEY4.js";
6
6
  export {
7
7
  ImpktPage,
8
8
  ImpktSection
@@ -5,7 +5,7 @@ import { ImpktElement } from '../base/ImpktElement';
5
5
  *
6
6
  * This component exists because of a decision taken in the content model: a
7
7
  * binding names a source and cannot compute
8
- * ([ADR 0003](../../../../docs/decisions/0003-binding-expressions.md)). The
8
+ * ([ADR 0003](https://github.com/matthill8286/strata/blob/main/docs/decisions/0003-binding-expressions.md)). The
9
9
  * consequence is that formatting lives here, where the locale and the currency
10
10
  * are known, rather than in authored content — so there is one place that
11
11
  * decides what "£24.99" looks like, and nobody writes a format string into a
@@ -1,7 +1,8 @@
1
1
  import {
2
2
  ImpktPrice
3
- } from "../chunk-TPF4MOMF.js";
4
- import "../chunk-NTNXHLTM.js";
3
+ } from "../chunk-OLLZFNO6.js";
4
+ import "../chunk-3IGNZTJU.js";
5
+ import "../chunk-D6C7XEY4.js";
5
6
  export {
6
7
  ImpktPrice
7
8
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ImpktProgress
3
- } from "../chunk-G6OVKNL7.js";
4
- import "../chunk-NTNXHLTM.js";
3
+ } from "../chunk-XEJMFFIM.js";
4
+ import "../chunk-D6C7XEY4.js";
5
5
  export {
6
6
  ImpktProgress
7
7
  };
@@ -5,9 +5,10 @@ import {
5
5
  ImpktSitePlan,
6
6
  ImpktStickyBar,
7
7
  monthlyPayment
8
- } from "../chunk-ZBLTU67D.js";
9
- import "../chunk-2YQA3VBY.js";
10
- import "../chunk-NTNXHLTM.js";
8
+ } from "../chunk-OHDPGIJ3.js";
9
+ import "../chunk-3IGNZTJU.js";
10
+ import "../chunk-KFD4O7VA.js";
11
+ import "../chunk-D6C7XEY4.js";
11
12
  export {
12
13
  ImpktBeforeAfter,
13
14
  ImpktLocationCard,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ImpktRadioGroup
3
- } from "../chunk-NQKYHILD.js";
4
- import "../chunk-7BIQ3K6H.js";
5
- import "../chunk-NTNXHLTM.js";
3
+ } from "../chunk-OMJMUFOW.js";
4
+ import "../chunk-7AJN2TIS.js";
5
+ import "../chunk-D6C7XEY4.js";
6
6
  export {
7
7
  ImpktRadioGroup
8
8
  };
@@ -0,0 +1,138 @@
1
+ import { type TemplateResult, type PropertyValues } from 'lit';
2
+ import { ImpktElement } from '../base/ImpktElement';
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 `impkt-scrubber` placed in the `controls` slot.
21
+ *
22
+ * Progress is published three ways: the `progress` property, the
23
+ * `--impkt-scene-progress` custom property on the host, and an
24
+ * `impkt-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 `impkt-scrubber`, for a scene driven by one.
36
+ * @fires impkt-scene-progress - `{ progress }` whenever the progress changes.
37
+ */
38
+ export declare class ImpktScene extends ImpktElement {
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
+ 'impkt-scene': ImpktScene;
137
+ }
138
+ }
@@ -0,0 +1,8 @@
1
+ import {
2
+ ImpktScene
3
+ } from "../chunk-7XEPNEVQ.js";
4
+ import "../chunk-D6C7XEY4.js";
5
+ export {
6
+ ImpktScene
7
+ };
8
+ //# sourceMappingURL=scene.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,86 @@
1
+ import { type TemplateResult } from 'lit';
2
+ import { ImpktElement } from '../base/ImpktElement';
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 `impkt-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 ImpktScrubber extends ImpktElement {
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
+ 'impkt-scrubber': ImpktScrubber;
85
+ }
86
+ }
@@ -0,0 +1,8 @@
1
+ import {
2
+ ImpktScrubber
3
+ } from "../chunk-RZSZQMSE.js";
4
+ import "../chunk-D6C7XEY4.js";
5
+ export {
6
+ ImpktScrubber
7
+ };
8
+ //# sourceMappingURL=scrubber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ImpktSelect
3
- } from "../chunk-CMAU4DSB.js";
4
- import "../chunk-7BIQ3K6H.js";
5
- import "../chunk-NTNXHLTM.js";
3
+ } from "../chunk-XJXCTGDR.js";
4
+ import "../chunk-7AJN2TIS.js";
5
+ import "../chunk-D6C7XEY4.js";
6
6
  export {
7
7
  ImpktSelect
8
8
  };