@elaraai/east-ui 1.0.7 → 1.0.9

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 (41) hide show
  1. package/dist/src/charts/chart/index.d.ts +4 -2
  2. package/dist/src/charts/chart/index.d.ts.map +1 -1
  3. package/dist/src/charts/chart/index.js +1 -1
  4. package/dist/src/charts/chart/index.js.map +1 -1
  5. package/dist/src/component.d.ts +70 -0
  6. package/dist/src/component.d.ts.map +1 -1
  7. package/dist/src/component.js +47 -0
  8. package/dist/src/component.js.map +1 -1
  9. package/dist/src/disclosure/index.d.ts +1 -0
  10. package/dist/src/disclosure/index.d.ts.map +1 -1
  11. package/dist/src/disclosure/index.js +1 -0
  12. package/dist/src/disclosure/index.js.map +1 -1
  13. package/dist/src/disclosure/story/index.d.ts +400 -0
  14. package/dist/src/disclosure/story/index.d.ts.map +1 -0
  15. package/dist/src/disclosure/story/index.js +369 -0
  16. package/dist/src/disclosure/story/index.js.map +1 -0
  17. package/dist/src/disclosure/story/types.d.ts +184 -0
  18. package/dist/src/disclosure/story/types.d.ts.map +1 -0
  19. package/dist/src/disclosure/story/types.js +128 -0
  20. package/dist/src/disclosure/story/types.js.map +1 -0
  21. package/dist/src/index.d.ts +1 -1
  22. package/dist/src/index.d.ts.map +1 -1
  23. package/dist/src/index.js +1 -1
  24. package/dist/src/index.js.map +1 -1
  25. package/dist/src/internal.d.ts +2 -1
  26. package/dist/src/internal.d.ts.map +1 -1
  27. package/dist/src/internal.js +2 -1
  28. package/dist/src/internal.js.map +1 -1
  29. package/dist/src/runtime/disclosure/index.d.ts +1 -0
  30. package/dist/src/runtime/disclosure/index.d.ts.map +1 -1
  31. package/dist/src/runtime/disclosure/index.js +1 -0
  32. package/dist/src/runtime/disclosure/index.js.map +1 -1
  33. package/dist/src/runtime/disclosure/story.d.ts +61 -0
  34. package/dist/src/runtime/disclosure/story.d.ts.map +1 -0
  35. package/dist/src/runtime/disclosure/story.js +58 -0
  36. package/dist/src/runtime/disclosure/story.js.map +1 -0
  37. package/dist/test/disclosure/story.examples.d.ts +11 -0
  38. package/dist/test/disclosure/story.examples.d.ts.map +1 -0
  39. package/dist/test/disclosure/story.examples.js +156 -0
  40. package/dist/test/disclosure/story.examples.js.map +1 -0
  41. package/package.json +3 -3
@@ -0,0 +1,128 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
+ */
5
+ import { East, BooleanType, FloatType, FunctionType, IntegerType, NullType, OptionType, StringType, StructType, VariantType, variant, } from "@elaraai/east";
6
+ // ============================================================================
7
+ // Story Layout Type
8
+ // ============================================================================
9
+ /**
10
+ * Layout options for Story (design/story.html §Story.Root Layouts).
11
+ *
12
+ * @remarks
13
+ * `stacked` is also forced automatically below 720px container width: the
14
+ * stage compresses to `min(stageHeight, 280px)`, sticks to the top, and the
15
+ * prose scrolls beneath it full-width. There is no overlay layout — text
16
+ * never floats over the visual.
17
+ *
18
+ * @property rail-left - Prose rail left, stage right (default; reading order matches scan order)
19
+ * @property rail-right - Mirror image; for pages whose surrounding chrome already sits left
20
+ * @property stacked - Stage on top, prose beneath (forced under 720px)
21
+ */
22
+ export const StoryLayoutType = VariantType({
23
+ "rail-left": NullType,
24
+ "rail-right": NullType,
25
+ stacked: NullType,
26
+ });
27
+ /**
28
+ * Helper function to create story layout values.
29
+ *
30
+ * @param v - The layout string
31
+ * @returns An East expression representing the story layout
32
+ */
33
+ export function StoryLayout(v) {
34
+ return East.value(variant(v, null), StoryLayoutType);
35
+ }
36
+ // ============================================================================
37
+ // Story Step Length Type
38
+ // ============================================================================
39
+ /**
40
+ * Step runway presets — the scroll distance the reader travels per keyframe
41
+ * (design/story.html §Story.Root Dimensions).
42
+ *
43
+ * @property compact - 36vh per step
44
+ * @property default - 52vh per step
45
+ * @property long - 72vh per step
46
+ */
47
+ export const StoryStepLengthType = VariantType({
48
+ compact: NullType,
49
+ default: NullType,
50
+ long: NullType,
51
+ });
52
+ /**
53
+ * Helper function to create story step length values.
54
+ *
55
+ * @param v - The step length string
56
+ * @returns An East expression representing the step length
57
+ */
58
+ export function StoryStepLength(v) {
59
+ return East.value(variant(v, null), StoryStepLengthType);
60
+ }
61
+ // ============================================================================
62
+ // Story Binding Types
63
+ // ============================================================================
64
+ /**
65
+ * The narrative-position binding: Integer read/write closures, the exact
66
+ * struct `State.bind([IntegerType], key, default)` produces — bindings pass
67
+ * straight through, no adapter (design/story.html §Wiring).
68
+ *
69
+ * @remarks
70
+ * The scroll driver writes it as steps cross the trigger line; an external
71
+ * write is treated as navigation — the rail smooth-scrolls that step to the
72
+ * trigger line, then resumes observing. Anything exposing these closures
73
+ * works; there is no bespoke handle type.
74
+ *
75
+ * @property read - Returns the active step index
76
+ * @property write - Sets the active step index (navigation when external)
77
+ * @property has - True when the underlying state key exists
78
+ */
79
+ export const StoryActiveBindingType = StructType({
80
+ read: FunctionType([], IntegerType),
81
+ write: FunctionType([IntegerType], NullType),
82
+ has: FunctionType([], BooleanType),
83
+ });
84
+ /**
85
+ * The within-step scrub binding: Float read/write closures over progress
86
+ * ∈ [0, 1] through the active step, the exact struct
87
+ * `State.bind([FloatType], key, default)` produces.
88
+ *
89
+ * @remarks
90
+ * Written by the scroll driver only; consumers read it (inside `Reactive`)
91
+ * for scroll-locked effects and never write it. Scrub maps 1:1 to scroll —
92
+ * no easing, no duration.
93
+ *
94
+ * @property read - Returns progress through the active step (0–1)
95
+ * @property write - Sets the progress (scroll driver only)
96
+ * @property has - True when the underlying state key exists
97
+ */
98
+ export const StoryProgressBindingType = StructType({
99
+ read: FunctionType([], FloatType),
100
+ write: FunctionType([FloatType], NullType),
101
+ has: FunctionType([], BooleanType),
102
+ });
103
+ // ============================================================================
104
+ // Story Style Type
105
+ // ============================================================================
106
+ /**
107
+ * Visual-only style struct for Story. Content (`steps`), state (`active` /
108
+ * `progress` / `activeStep`), and behaviour (`onStepEnter` / `onStepExit`)
109
+ * live on the main `Story` variant (inline in `component.ts` because steps
110
+ * are recursive `node` children).
111
+ *
112
+ * @property layout - Rail placement (rail-left / rail-right / stacked)
113
+ * @property stageHeight - Stage height as a CSS length (default "420px") —
114
+ * fixed per story so keyframe tweens never reflow the page
115
+ * @property stepLength - Step runway preset (compact / default / long)
116
+ * @property height - Scrollport height as a CSS length. When set, the
117
+ * story owns an internal scroll container (the spec demo's `.story-demo`
118
+ * form) — use it for embeds whose ancestors break sticky (cards,
119
+ * overflow-clipped frames, showcases). When omitted the story rides the
120
+ * native page scroll, the default for report pages.
121
+ */
122
+ export const StoryStyleType = StructType({
123
+ layout: OptionType(StoryLayoutType),
124
+ stageHeight: OptionType(StringType),
125
+ stepLength: OptionType(StoryStepLengthType),
126
+ height: OptionType(StringType),
127
+ });
128
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/disclosure/story/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAGH,IAAI,EACJ,WAAW,EACX,SAAS,EACT,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,OAAO,GACV,MAAM,eAAe,CAAC;AAEvB,+EAA+E;AAC/E,oBAAoB;AACpB,+EAA+E;AAE/E;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW,CAAC;IACvC,WAAW,EAAE,QAAQ;IACrB,YAAY,EAAE,QAAQ;IACtB,OAAO,EAAE,QAAQ;CACpB,CAAC,CAAC;AAYH;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CAAC,CAAqB;IAC7C,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,eAAe,CAAC,CAAC;AACzD,CAAC;AAED,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAE/E;;;;;;;GAOG;AACH,MAAM,C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display/index.js";
47
47
  export { Card } from "./runtime/container/index.js";
48
48
  export { DataList, Matrix, Pagination, Table, TreeView, Gantt, Planner, Library, Roster, Calendar, Schematic, Blend } from "./runtime/collections/index.js";
49
49
  export { Chart, Sparkline } from "./runtime/charts/index.js";
50
- export { Accordion, Carousel, Collapsible, Disclosure, OptionList, SegmentGroup, Tabs } from "./runtime/disclosure/index.js";
50
+ export { Accordion, Carousel, Collapsible, Disclosure, OptionList, SegmentGroup, Story, Tabs } from "./runtime/disclosure/index.js";
51
51
  export { Tooltip, Menu, Dialog, Drawer, Popover, HoverCard, ActionBar, ToggleTip, CommandPalette } from "./runtime/overlays/index.js";
52
52
  export { dialog_open, drawer_open } from "./overlays/index.js";
53
53
  export { HotkeyType } from "./platform/hotkey/index.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACzF,YAAY,EAAE,MAAM,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC/G,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,YAAY,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AACnE,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGtD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,KAAK,cAAc,EAAE,eAAe,EAAE,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAGpH,OAAO,EACH,cAAc,EACd,WAAW,EACX,YAAY,EAAE,KAAK,eAAe,EAClC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E,WAAW,EAAE,oBAAoB,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACvL,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EACH,gBAAgB,EAAE,oBAAoB,EAAE,eAAe,EACvD,eAAe,EAAE,wBAAwB,EACzC,eAAe,EAAE,oBAAoB,GACxC,MAAM,kBAAkB,CAAC"}
package/dist/src/index.js CHANGED
@@ -56,7 +56,7 @@ export { DataList, Matrix, Pagination, Table, TreeView, Gantt, Planner, Library,
56
56
  // Charts
57
57
  export { Chart, Sparkline } from "./runtime/charts/index.js";
58
58
  // Disclosure
59
- export { Accordion, Carousel, Collapsible, Disclosure, OptionList, SegmentGroup, Tabs } from "./runtime/disclosure/index.js";
59
+ export { Accordion, Carousel, Collapsible, Disclosure, OptionList, SegmentGroup, Story, Tabs } from "./runtime/disclosure/index.js";
60
60
  // Overlays
61
61
  export { Tooltip, Menu, Dialog, Drawer, Popover, HoverCard, ActionBar, ToggleTip, CommandPalette } from "./runtime/overlays/index.js";
62
62
  export { dialog_open, drawer_open } from "./overlays/index.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,8CAA8C;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,0EAA0E;AAC1E,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAEzF,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAIzD,eAAe;AACf,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,WAAW,EAAuB,eAAe,EAA2B,MAAM,wBAAwB,CAAC;AAEpH,4EAA4E;AAC5E,OAAO,EACH,cAA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AQ,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAEpI,WAAW;AACX,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AACtI,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAEtD,oCAAoC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD,kBAAkB;AAClB,OAAO,EAAE,eAAe,EAAwB,MAAM,gBAAgB,CAAC;AAEvE,0EAA0E;AAC1E,4EAA4E;AAC5E,OAAO,EACH,MAAM,EACN,SAAS,GAGZ,MAAM,gBAAgB,CAAC;AAExB,gDAAgD;AAChD,6DAA6D;AAC7D,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,oBAAoB,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACvL,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EACH,gBAAgB,EAAE,oBAAoB,EAAE,eAAe,EACvD,eAAe,EAAE,wBAAwB,EACzC,eAAe,EAAE,oBAAoB,GACxC,MAAM,kBAAkB,CAAC"}
@@ -35,7 +35,7 @@ export { Card } from "./container/index.js";
35
35
  export { DataList, Matrix, Pagination, Table, TreeView, Gantt, Planner, Library, Roster, Calendar, Schematic, Blend } from "./collections/index.js";
36
36
  export { Chart } from "./charts/chart/index.js";
37
37
  export { Sparkline } from "./charts/index.js";
38
- export { Accordion, Carousel, Collapsible, Disclosure, OptionList, SegmentGroup, Tabs } from "./disclosure/index.js";
38
+ export { Accordion, Carousel, Collapsible, Disclosure, OptionList, SegmentGroup, Story, Tabs } from "./disclosure/index.js";
39
39
  export { Tooltip, Menu, Dialog, dialog_open, Drawer, drawer_open, Popover, HoverCard, ActionBar, ToggleTip, CommandPalette } from "./overlays/index.js";
40
40
  export { Hotkey, HotkeyType } from "./platform/hotkey/index.js";
41
41
  export { Reactive } from "./reactive/index.js";
@@ -78,6 +78,7 @@ export * from "./format/types.js";
78
78
  export * from "./charts/sparkline/types.js";
79
79
  export * from "./disclosure/accordion/types.js";
80
80
  export * from "./disclosure/carousel/types.js";
81
+ export * from "./disclosure/story/types.js";
81
82
  export * from "./overlays/tooltip/types.js";
82
83
  export * from "./overlays/menu/types.js";
83
84
  //# sourceMappingURL=internal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../src/internal.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;GAaG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAG1E,OAAO,EACH,cAAc,EACd,WAAW,EACX,YAAY,EAAE,KAAK,eAAe,EAClC,YAAY,EAAE,KAAK,eAAe,EAClC,aAAa,GAChB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,YAAY,EACR,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,GACpB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EACH,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,E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C3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC"}
@@ -37,7 +37,7 @@ export { Card } from "./container/index.js";
37
37
  export { DataList, Matrix, Pagination, Table, TreeView, Gantt, Planner, Library, Roster, Calendar, Schematic, Blend } from "./collections/index.js";
38
38
  export { Chart } from "./charts/chart/index.js";
39
39
  export { Sparkline } from "./charts/index.js";
40
- export { Accordion, Carousel, Collapsible, Disclosure, OptionList, SegmentGroup, Tabs } from "./disclosure/index.js";
40
+ export { Accordion, Carousel, Collapsible, Disclosure, OptionList, SegmentGroup, Story, Tabs } from "./disclosure/index.js";
41
41
  export { Tooltip, Menu, Dialog, dialog_open, Drawer, drawer_open, Popover, HoverCard, ActionBar, ToggleTip, CommandPalette } from "./overlays/index.js";
42
42
  export { Hotkey, HotkeyType } from "./platform/hotkey/index.js";
43
43
  export { Reactive } from "./reactive/index.js";
@@ -82,6 +82,7 @@ export * from "./format/types.js";
82
82
  export * from "./charts/sparkline/types.js";
83
83
  export * from "./disclosure/accordion/types.js";
84
84
  export * from "./disclosure/carousel/types.js";
85
+ export * from "./disclosure/story/types.js";
85
86
  export * from "./overlays/tooltip/types.js";
86
87
  export * from "./overlays/menu/types.js";
87
88
  //# sourceMappingURL=internal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources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AAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC"}
@@ -7,6 +7,7 @@ export { Carousel } from "./carousel.js";
7
7
  export { Accordion } from "./accordion.js";
8
8
  export { Collapsible } from "./collapsible.js";
9
9
  export { SegmentGroup } from "./segment-group.js";
10
+ export { Story } from "./story.js";
10
11
  export { Tabs } from "./tabs.js";
11
12
  export { Disclosure } from "./show-more.js";
12
13
  export { OptionList } from "./option-list.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/runtime/disclosure/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,sDAAsD;AAEtD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/runtime/disclosure/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,sDAAsD;AAEtD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC"}
@@ -7,6 +7,7 @@ export { Carousel } from "./carousel.js";
7
7
  export { Accordion } from "./accordion.js";
8
8
  export { Collapsible } from "./collapsible.js";
9
9
  export { SegmentGroup } from "./segment-group.js";
10
+ export { Story } from "./story.js";
10
11
  export { Tabs } from "./tabs.js";
11
12
  export { Disclosure } from "./show-more.js";
12
13
  export { OptionList } from "./option-list.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/runtime/disclosure/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,sDAAsD;AAEtD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/runtime/disclosure/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,sDAAsD;AAEtD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
+ */
5
+ /**
6
+ * Disclosure JSX tags for {@link StoryFactory | Story} — a scroll-driven
7
+ * narrative where prose steps in a rail drive one persistent sticky stage
8
+ * through keyframes. Use it for the rendered conclusion of an analysis (a
9
+ * postmortem, a model-run explanation, a quarterly review) where the
10
+ * *sequence* of readings carries the argument; random-access beats are
11
+ * {@link Tabs}, equal-weight siblings with no shared visual are a Carousel.
12
+ */
13
+ import { Story as StoryFactory } from "../../disclosure/story/index.js";
14
+ import { type ContainerProps, type OptionsProps, type JsxTag } from "../combinators.js";
15
+ /** Step/Progress tags + types surfaced on the `<Story>` tag. */
16
+ type StoryBuilders = {
17
+ Step: JsxTag<ContainerProps<typeof StoryFactory.Step>>;
18
+ Progress: JsxTag<OptionsProps<typeof StoryFactory.Progress>>;
19
+ Layout: typeof StoryFactory.Layout;
20
+ Types: typeof StoryFactory.Types;
21
+ };
22
+ /**
23
+ * Scroll-driven narrative — steps are the children, each carrying its
24
+ * keyframe on the `stage` prop; the reader's scrollbar is the timeline.
25
+ * Bind the position with `active` (a plain `State.bind([IntegerType], …)`
26
+ * struct) only when something outside the story must read or drive it;
27
+ * omit it and Story manages position internally. `title` opts into the
28
+ * sticky one-row progress chrome; `layout`, `stageHeight`, and
29
+ * `stepLength` shape the rail/stage geometry. Remaining options follow
30
+ * `StoryOptions`.
31
+ *
32
+ * @example
33
+ * ```tsx
34
+ * // .tsx file with the `@jsxImportSource @elaraai/east-ui` pragma
35
+ * import { East } from "@elaraai/east";
36
+ * import { Story, Text, UIComponentType } from "@elaraai/east-ui";
37
+ *
38
+ * const review = East.function([], UIComponentType, _$ => (
39
+ * <Story title="Q4 demand review" stageHeight={420} stepLength="default">
40
+ * <Story.Step id="demand" eyebrow="Demand" title="Demand ran hot"
41
+ * stage={<Text>keyframe 1</Text>}>
42
+ * <Text>Orders climbed from week 6 and never gave the gain back.</Text>
43
+ * </Story.Step>
44
+ * <Story.Step id="forecast" eyebrow="Forecast" title="The plan missed the turn"
45
+ * stage={<Text>keyframe 2</Text>}>
46
+ * <Text>The committed forecast kept its old slope.</Text>
47
+ * </Story.Step>
48
+ * </Story>
49
+ * ));
50
+ * ```
51
+ *
52
+ * @remarks
53
+ * Carries `Story.Step` and `Story.Progress` tags, the `Story.Layout`
54
+ * helper, and `Story.Types` — one import gives the whole family. Desugars
55
+ * to `Story.Root(steps, options)`; `<Story.Step>` desugars to
56
+ * `Story.Step(body, { id, … })` and `<Story.Progress>` to
57
+ * `Story.Progress(options)`.
58
+ */
59
+ export declare const Story: JsxTag<ContainerProps<typeof StoryFactory.Root>> & StoryBuilders;
60
+ export {};
61
+ //# sourceMappingURL=story.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"story.d.ts","sourceRoot":"","sources":["../../../../src/runtime/disclosure/story.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AAEH,OAAO,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAyB,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE/G,gEAAgE;AAChE,KAAK,aAAa,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC;IACvD,QAAQ,EAAE,MAAM,CAAC,YAAY,CAAC,OAAO,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC7D,MAAM,EAAE,OAAO,YAAY,CAAC,MAAM,CAAC;IACnC,KAAK,EAAE,OAAO,YAAY,CAAC,KAAK,CAAC;CACpC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,KAAK,EAAE,MAAM,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC,GAAG,aAMjE,CAAC"}
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
+ */
5
+ /**
6
+ * Disclosure JSX tags for {@link StoryFactory | Story} — a scroll-driven
7
+ * narrative where prose steps in a rail drive one persistent sticky stage
8
+ * through keyframes. Use it for the rendered conclusion of an analysis (a
9
+ * postmortem, a model-run explanation, a quarterly review) where the
10
+ * *sequence* of readings carries the argument; random-access beats are
11
+ * {@link Tabs}, equal-weight siblings with no shared visual are a Carousel.
12
+ */
13
+ import { Story as StoryFactory } from "../../disclosure/story/index.js";
14
+ import { container, optionsTag } from "../combinators.js";
15
+ /**
16
+ * Scroll-driven narrative — steps are the children, each carrying its
17
+ * keyframe on the `stage` prop; the reader's scrollbar is the timeline.
18
+ * Bind the position with `active` (a plain `State.bind([IntegerType], …)`
19
+ * struct) only when something outside the story must read or drive it;
20
+ * omit it and Story manages position internally. `title` opts into the
21
+ * sticky one-row progress chrome; `layout`, `stageHeight`, and
22
+ * `stepLength` shape the rail/stage geometry. Remaining options follow
23
+ * `StoryOptions`.
24
+ *
25
+ * @example
26
+ * ```tsx
27
+ * // .tsx file with the `@jsxImportSource @elaraai/east-ui` pragma
28
+ * import { East } from "@elaraai/east";
29
+ * import { Story, Text, UIComponentType } from "@elaraai/east-ui";
30
+ *
31
+ * const review = East.function([], UIComponentType, _$ => (
32
+ * <Story title="Q4 demand review" stageHeight={420} stepLength="default">
33
+ * <Story.Step id="demand" eyebrow="Demand" title="Demand ran hot"
34
+ * stage={<Text>keyframe 1</Text>}>
35
+ * <Text>Orders climbed from week 6 and never gave the gain back.</Text>
36
+ * </Story.Step>
37
+ * <Story.Step id="forecast" eyebrow="Forecast" title="The plan missed the turn"
38
+ * stage={<Text>keyframe 2</Text>}>
39
+ * <Text>The committed forecast kept its old slope.</Text>
40
+ * </Story.Step>
41
+ * </Story>
42
+ * ));
43
+ * ```
44
+ *
45
+ * @remarks
46
+ * Carries `Story.Step` and `Story.Progress` tags, the `Story.Layout`
47
+ * helper, and `Story.Types` — one import gives the whole family. Desugars
48
+ * to `Story.Root(steps, options)`; `<Story.Step>` desugars to
49
+ * `Story.Step(body, { id, … })` and `<Story.Progress>` to
50
+ * `Story.Progress(options)`.
51
+ */
52
+ export const Story = Object.assign(container(StoryFactory.Root), {
53
+ Step: container(StoryFactory.Step),
54
+ Progress: optionsTag(StoryFactory.Progress),
55
+ Layout: StoryFactory.Layout,
56
+ Types: StoryFactory.Types,
57
+ });
58
+ //# sourceMappingURL=story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"story.js","sourceRoot":"","sources":["../../../../src/runtime/disclosure/story.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AAEH,OAAO,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAuD,MAAM,mBAAmB,CAAC;AAU/G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,CAAC,MAAM,KAAK,GACd,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE;IACxC,IAAI,EAAE,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC;IAClC,QAAQ,EAAE,UAAU,CAAC,YAAY,CAAC,QAAQ,CAAC;IAC3C,MAAM,EAAE,YAAY,CAAC,MAAM;IAC3B,KAAK,EAAE,YAAY,CAAC,KAAK;CAC5B,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ export declare const storyBasic: import("@elaraai/east").ExampleDef<[], any>;
2
+ export declare const storyRailRight: import("@elaraai/east").ExampleDef<[], any>;
3
+ export declare const storyStacked: import("@elaraai/east").ExampleDef<[], any>;
4
+ export declare const storyStepBasic: import("@elaraai/east").ExampleDef<[], any>;
5
+ export declare const storyProgressStandalone: import("@elaraai/east").ExampleDef<[], any>;
6
+ export declare const storyStepLengths: import("@elaraai/east").ExampleDef<[], any>;
7
+ export declare const storyCardKeyframe: import("@elaraai/east").ExampleDef<[], any>;
8
+ export declare const storyActiveStepStatic: import("@elaraai/east").ExampleDef<[], any>;
9
+ export declare const storyConditionalStep: import("@elaraai/east").ExampleDef<[], any>;
10
+ export declare const storyReactive: import("@elaraai/east").ExampleDef<[], any>;
11
+ //# sourceMappingURL=story.examples.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"story.examples.d.ts","sourceRoot":"","sources":["../../../test/disclosure/story.examples.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,UAAU,6CA0DrB,CAAC;AAEH,eAAO,MAAM,cAAc,6CA8BzB,CAAC;AAEH,eAAO,MAAM,YAAY,6CAyBvB,CAAC;AAEH,eAAO,MAAM,cAAc,6CASzB,CAAC;AAEH,eAAO,MAAM,uBAAuB,6CAOlC,CAAC;AAEH,eAAO,MAAM,gBAAgB,6CAwB3B,CAAC;AAEH,eAAO,MAAM,iBAAiB,6CA6B5B,CAAC;AAEH,eAAO,MAAM,qBAAqB,6CA8BhC,CAAC;AAEH,eAAO,MAAM,oBAAoB,6CAuB/B,CAAC;AAEH,eAAO,MAAM,aAAa,6CAiDxB,CAAC"}
@@ -0,0 +1,156 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@elaraai/east-ui/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2025 Elara AI Pty Ltd
4
+ * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
5
+ */
6
+ /** @jsxImportSource @elaraai/east-ui */
7
+ import { ArrayType, East, FloatType, IntegerType, NullType, StringType, StructType, example } from "@elaraai/east";
8
+ import { State, UIComponentType } from "@elaraai/east-ui";
9
+ import { Badge, Box, Button, Card, Chart, HStack, MetricChip, Reactive, Story, Text, VStack } from "@elaraai/east-ui";
10
+ export const storyBasic = example({
11
+ keywords: ["Story", "Step", "stage", "Chart", "narrative", "scrollytelling"],
12
+ description: "The spec's Q4 review: one evolving chart driven by four prose beats (rail-left)",
13
+ fn: East.function([], UIComponentType, ($) => {
14
+ const orders = $.const([
15
+ { week: "wk 1", actual: 820n, forecast: 825n }, { week: "wk 2", actual: 860n, forecast: 862n },
16
+ { week: "wk 3", actual: 880n, forecast: 886n }, { week: "wk 4", actual: 930n, forecast: 898n },
17
+ { week: "wk 5", actual: 1060n, forecast: 922n }, { week: "wk 6", actual: 1115n, forecast: 946n },
18
+ { week: "wk 7", actual: 1150n, forecast: 970n }, { week: "wk 8", actual: 1185n, forecast: 994n },
19
+ ], ArrayType(StructType({ week: StringType, actual: IntegerType, forecast: IntegerType })));
20
+ const uplift = $.const([
21
+ { region: "NA", half: "wk 1–4", orders: 846n }, { region: "NA", half: "wk 5–8", orders: 1110n },
22
+ { region: "EU", half: "wk 1–4", orders: 612n }, { region: "EU", half: "wk 5–8", orders: 668n },
23
+ { region: "APAC", half: "wk 1–4", orders: 418n }, { region: "APAC", half: "wk 5–8", orders: 426n },
24
+ ], ArrayType(StructType({ region: StringType, half: StringType, orders: IntegerType })));
25
+ return (_jsxs(Story, { title: "Q4 demand review", stageHeight: 340, height: 440, children: [_jsxs(Story.Step, { id: "demand", eyebrow: "Demand", title: "Demand ran hot", stage: _jsx(Box, { height: "100%", width: "100%", children: _jsx(Chart, { height: "fill", layers: Chart.Line(orders, { x: r => r.week, y: r => r.actual }, { key: "actual", color: "teal.solid" }), grid: true }) }), children: [_jsx(Text, { children: "Orders climbed steadily from week 4 and never gave the gain back \u2014 the exit rate is 34% above the start of the quarter." }), _jsx(MetricChip, { tone: "positive", children: _jsx(Text, { children: "\u25B2 +34% vs start of Q4" }) })] }), _jsxs(Story.Step, { id: "forecast", eyebrow: "Forecast", title: "The plan missed the turn", stage: _jsx(Box, { height: "100%", width: "100%", children: _jsx(Chart, { height: "fill", layers: [
26
+ Chart.Line(orders, { x: r => r.week, y: r => r.actual }, { key: "actual", color: "teal.solid" }),
27
+ Chart.Line(orders, { x: r => r.week, y: r => r.forecast }, { key: "forecast", color: "gray.solid", dash: "4 3" }),
28
+ ], grid: true, legend: true }) }), children: [_jsx(Text, { children: "The committed forecast (dashed) tracked well until week 4, then kept its old slope. By week 8 the gap is 18% \u2014 that gap is the whole story." }), _jsx(MetricChip, { tone: "negative", children: _jsx(Text, { children: "\u25BC forecast \u221218% at wk 8" }) })] }), _jsxs(Story.Step, { id: "promo", eyebrow: "Cause", title: "One event explains the spike", stage: _jsx(Box, { height: "100%", width: "100%", children: _jsx(Chart, { height: "fill", layers: [
29
+ Chart.Line(orders, { x: r => r.week, y: r => r.actual }, { key: "actual", color: "teal.solid" }),
30
+ Chart.refDot({ x: "wk 4", y: 930, label: "promo live" }),
31
+ ], grid: true }) }), children: [_jsx(Text, { children: "The week-4 inflection lands on the retail promo going live. Demand stepped up and stayed up \u2014 a level shift, not a transient." }), _jsx(Badge, { colorPalette: "teal", children: "promo live \u00B7 Nov 14" })] }), _jsxs(Story.Step, { id: "regions", eyebrow: "Where", title: "The gap wasn't uniform", stage: _jsx(Box, { height: "100%", width: "100%", children: _jsx(Chart, { height: "fill", layers: Chart.Bar(uplift, { x: r => r.region, y: r => r.orders, by: r => r.half }), grid: true, legend: true }) }), children: [_jsx(Text, { children: "NA absorbed nearly all of the uplift; EU moved modestly; APAC ran flat. Re-forecast NA only \u2014 touching the others adds noise, not signal." }), _jsxs(HStack, { gap: "2", children: [_jsx(MetricChip, { tone: "positive", children: _jsx(Text, { children: "\u25B2 NA +29%" }) }), _jsx(MetricChip, { tone: "neutral", children: _jsx(Text, { children: "\u2248 APAC +2%" }) })] })] })] }));
32
+ }),
33
+ inputs: [],
34
+ });
35
+ export const storyRailRight = example({
36
+ keywords: ["Story", "layout", "rail-right", "mirror", "Chart"],
37
+ description: "Mirrored layout: stage left, prose right",
38
+ fn: East.function([], UIComponentType, ($) => {
39
+ const orders = $.const([
40
+ { week: "wk 1", actual: 820n, forecast: 825n }, { week: "wk 2", actual: 860n, forecast: 862n },
41
+ { week: "wk 3", actual: 880n, forecast: 886n }, { week: "wk 4", actual: 930n, forecast: 898n },
42
+ { week: "wk 5", actual: 1060n, forecast: 922n }, { week: "wk 6", actual: 1115n, forecast: 946n },
43
+ ], ArrayType(StructType({ week: StringType, actual: IntegerType, forecast: IntegerType })));
44
+ return (_jsxs(Story, { layout: "rail-right", title: "Q4 demand review", stageHeight: 340, height: 440, children: [_jsx(Story.Step, { id: "demand", eyebrow: "Demand", title: "Demand ran hot", stage: _jsx(Box, { height: "100%", width: "100%", children: _jsx(Chart, { height: "fill", layers: Chart.Line(orders, { x: r => r.week, y: r => r.actual }, { key: "actual", color: "teal.solid" }), grid: true }) }), children: _jsx(Text, { children: "Orders climbed steadily from week 4 and never gave the gain back." }) }), _jsx(Story.Step, { id: "forecast", eyebrow: "Forecast", title: "The plan missed the turn", stage: _jsx(Box, { height: "100%", width: "100%", children: _jsx(Chart, { height: "fill", layers: [
45
+ Chart.Line(orders, { x: r => r.week, y: r => r.actual }, { key: "actual", color: "teal.solid" }),
46
+ Chart.Line(orders, { x: r => r.week, y: r => r.forecast }, { key: "forecast", color: "gray.solid", dash: "4 3" }),
47
+ ], grid: true, legend: true }) }), children: _jsx(Text, { children: "The committed forecast (dashed) kept its old slope after the week-4 turn." }) })] }));
48
+ }),
49
+ inputs: [],
50
+ });
51
+ export const storyStacked = example({
52
+ keywords: ["Story", "layout", "stacked", "responsive", "narrow"],
53
+ description: "Stacked layout: stage on top, prose beneath (the forced sub-720px shape)",
54
+ fn: East.function([], UIComponentType, ($) => {
55
+ const uplift = $.const([
56
+ { region: "NA", half: "wk 1–4", orders: 846n }, { region: "NA", half: "wk 5–8", orders: 1110n },
57
+ { region: "EU", half: "wk 1–4", orders: 612n }, { region: "EU", half: "wk 5–8", orders: 668n },
58
+ { region: "APAC", half: "wk 1–4", orders: 418n }, { region: "APAC", half: "wk 5–8", orders: 426n },
59
+ ], ArrayType(StructType({ region: StringType, half: StringType, orders: IntegerType })));
60
+ return (_jsxs(Story, { layout: "stacked", title: "Q4 demand review", stageHeight: 200, height: 440, children: [_jsx(Story.Step, { id: "regions", eyebrow: "Where", title: "The gap wasn't uniform", stage: _jsx(Box, { height: "100%", width: "100%", children: _jsx(Chart, { height: "fill", layers: Chart.Bar(uplift, { x: r => r.region, y: r => r.orders, by: r => r.half }), grid: true, legend: true }) }), children: _jsx(Text, { children: "NA absorbed nearly all of the uplift; EU moved modestly; APAC ran flat." }) }), _jsxs(Story.Step, { id: "action", eyebrow: "Action", title: "Re-forecast NA only", children: [_jsx(Text, { children: "Touching the other regions adds noise, not signal." }), _jsx(MetricChip, { tone: "positive", children: _jsx(Text, { children: "\u25B2 NA +29%" }) })] })] }));
61
+ }),
62
+ inputs: [],
63
+ });
64
+ export const storyStepBasic = example({
65
+ keywords: ["Story", "Step", "eyebrow", "title", "body", "beat"],
66
+ description: "One narrative beat: id, eyebrow, title, and a rail body",
67
+ fn: East.function([], UIComponentType, (_$) => (_jsx(Story.Step, { id: "demand", eyebrow: "Demand", title: "Demand ran hot", children: _jsx(Text, { children: "Orders climbed from week 4 and never gave the gain back." }) }))),
68
+ inputs: [],
69
+ });
70
+ export const storyProgressStandalone = example({
71
+ keywords: ["Story", "Progress", "chrome", "dots", "counter", "standalone"],
72
+ description: "Standalone progress chrome: title, dots, counter, prev/next",
73
+ fn: East.function([], UIComponentType, (_$) => (_jsx(Story.Progress, { count: 4, title: "Q4 demand review" }))),
74
+ inputs: [],
75
+ });
76
+ export const storyStepLengths = example({
77
+ keywords: ["Story", "stepLength", "compact", "runway", "pacing"],
78
+ description: "compact step runway: less scroll per beat for short, punchy stories",
79
+ fn: East.function([], UIComponentType, ($) => {
80
+ const orders = $.const([
81
+ { week: "wk 1", actual: 820n }, { week: "wk 2", actual: 860n },
82
+ { week: "wk 3", actual: 880n }, { week: "wk 4", actual: 930n },
83
+ { week: "wk 5", actual: 1060n }, { week: "wk 6", actual: 1115n },
84
+ ], ArrayType(StructType({ week: StringType, actual: IntegerType })));
85
+ return (_jsxs(Story, { stepLength: "compact", stageHeight: 320, height: 440, children: [_jsx(Story.Step, { id: "one", eyebrow: "01", title: "Quick beat", stage: _jsx(Box, { height: "100%", width: "100%", children: _jsx(Chart, { height: "fill", layers: Chart.Line(orders, { x: r => r.week, y: r => r.actual }, { color: "teal.solid" }), grid: true }) }), children: _jsx(Text, { children: "compact = 36vh of runway per step; default = 52vh; long = 72vh." }) }), _jsx(Story.Step, { id: "two", eyebrow: "02", title: "Another quick beat", children: _jsx(Text, { children: "Step length sets pacing \u2014 the runway the reader scrolls through per keyframe." }) })] }));
86
+ }),
87
+ inputs: [],
88
+ });
89
+ export const storyCardKeyframe = example({
90
+ keywords: ["Story", "stage", "Card", "framing", "Button", "CTA"],
91
+ description: "Keyframes own their framing (compose Card); a final step carries the call to action",
92
+ fn: East.function([], UIComponentType, ($) => {
93
+ const uplift = $.const([
94
+ { region: "NA", half: "wk 1–4", orders: 846n }, { region: "NA", half: "wk 5–8", orders: 1110n },
95
+ { region: "EU", half: "wk 1–4", orders: 612n }, { region: "EU", half: "wk 5–8", orders: 668n },
96
+ ], ArrayType(StructType({ region: StringType, half: StringType, orders: IntegerType })));
97
+ const openRun = $.const(East.function([], NullType, _$ => {
98
+ // Route to the Observe surface with the slice pre-bound.
99
+ }));
100
+ return (_jsxs(Story, { stageHeight: 380, height: 440, children: [_jsx(Story.Step, { id: "finding", eyebrow: "Finding", title: "NA absorbed the uplift", stage: _jsx(Card, { header: { title: "Uplift by region", description: "wk 1–4 vs wk 5–8" }, children: _jsx(Box, { height: "260px", width: "100%", children: _jsx(Chart, { height: "fill", layers: Chart.Bar(uplift, { x: r => r.region, y: r => r.orders, by: r => r.half }), grid: true, legend: true }) }) }), children: _jsx(Text, { children: "A keyframe that wants the Card treatment composes Card like anywhere else \u2014 the stage itself owns no chrome." }) }), _jsxs(Story.Step, { id: "cta", eyebrow: "Next", title: "Re-forecast NA only", children: [_jsx(Text, { children: "Interactive bodies are allowed \u2014 the last step routinely carries the call to action." }), _jsx(Button, { onClick: openRun, children: "Open the run \u2192" })] })] }));
101
+ }),
102
+ inputs: [],
103
+ });
104
+ export const storyActiveStepStatic = example({
105
+ keywords: ["Story", "activeStep", "static", "snapshot", "deterministic"],
106
+ description: "Static override: activeStep forces one deterministic keyframe",
107
+ fn: East.function([], UIComponentType, ($) => {
108
+ const orders = $.const([
109
+ { week: "wk 1", actual: 820n, forecast: 825n }, { week: "wk 2", actual: 860n, forecast: 862n },
110
+ { week: "wk 3", actual: 880n, forecast: 886n }, { week: "wk 4", actual: 930n, forecast: 898n },
111
+ { week: "wk 5", actual: 1060n, forecast: 922n }, { week: "wk 6", actual: 1115n, forecast: 946n },
112
+ ], ArrayType(StructType({ week: StringType, actual: IntegerType, forecast: IntegerType })));
113
+ return (_jsxs(Story, { activeStep: "forecast", stageHeight: 320, children: [_jsx(Story.Step, { id: "demand", title: "Demand ran hot", stage: _jsx(Box, { height: "100%", width: "100%", children: _jsx(Chart, { height: "fill", layers: Chart.Line(orders, { x: r => r.week, y: r => r.actual }, { color: "teal.solid" }), grid: true }) }), children: _jsx(Text, { children: "Beat one." }) }), _jsx(Story.Step, { id: "forecast", title: "The plan missed the turn", stage: _jsx(Box, { height: "100%", width: "100%", children: _jsx(Chart, { height: "fill", layers: [
114
+ Chart.Line(orders, { x: r => r.week, y: r => r.actual }, { key: "actual", color: "teal.solid" }),
115
+ Chart.Line(orders, { x: r => r.week, y: r => r.forecast }, { key: "forecast", color: "gray.solid", dash: "4 3" }),
116
+ ], grid: true, legend: true }) }), children: _jsx(Text, { children: "Beat two \u2014 rendered active without scroll; the snapshot pipeline renders one PNG per step." }) })] }));
117
+ }),
118
+ inputs: [],
119
+ });
120
+ export const storyConditionalStep = example({
121
+ keywords: ["Story", "Step", "conditional", "ifElse", "runtime children"],
122
+ description: "Steps are values — a conditional step via ifElse is legal",
123
+ fn: East.function([], UIComponentType, ($) => {
124
+ const detailed = $.let(East.value(true));
125
+ const detailStep = $.let(_jsx(Story.Step, { id: "detail", title: "Detail", children: _jsx(Text, { children: "The detailed beat." }) }), UIComponentType);
126
+ const summaryStep = $.let(_jsx(Story.Step, { id: "summary", title: "Summary", children: _jsx(Text, { children: "The summary beat." }) }), UIComponentType);
127
+ return (_jsxs(Story, { height: 320, children: [_jsx(Story.Step, { id: "always", title: "Always", children: _jsx(Text, { children: "Always shown." }) }), detailed.ifElse(_$ => detailStep, _$ => summaryStep)] }));
128
+ }),
129
+ inputs: [],
130
+ });
131
+ export const storyReactive = example({
132
+ keywords: ["Story", "Reactive", "State", "bind", "active", "progress", "onStepEnter", "interactive"],
133
+ description: "Bound narrative position: external surfaces read and drive the active step",
134
+ fn: East.function([], UIComponentType, (_$) => (_jsx(Reactive, { children: $ => {
135
+ const active = $.let(State.bind([IntegerType], "q4-review.step", 0n));
136
+ const scrub = $.let(State.bind([FloatType], "q4-review.progress", 0.0));
137
+ const next = $.const(East.function([], NullType, $ => {
138
+ $(active.write(active.read().add(1n)));
139
+ }));
140
+ const entered = $.let(State.bind([StringType], "q4-review.lastEntered", ""));
141
+ const onStepEnter = $.const(East.function([StringType], NullType, ($, id) => {
142
+ $(entered.write(id));
143
+ }));
144
+ const orders = $.const([
145
+ { week: "wk 1", actual: 820n, forecast: 825n }, { week: "wk 2", actual: 860n, forecast: 862n },
146
+ { week: "wk 3", actual: 880n, forecast: 886n }, { week: "wk 4", actual: 930n, forecast: 898n },
147
+ { week: "wk 5", actual: 1060n, forecast: 922n }, { week: "wk 6", actual: 1115n, forecast: 946n },
148
+ ], ArrayType(StructType({ week: StringType, actual: IntegerType, forecast: IntegerType })));
149
+ return (_jsxs(VStack, { gap: "6", children: [_jsxs(Story, { active: active, progress: scrub, title: "Q4 demand review", height: 440, onStepEnter: onStepEnter, children: [_jsx(Story.Step, { id: "demand", eyebrow: "Demand", title: "Demand ran hot", stage: _jsx(Box, { height: "100%", width: "100%", children: _jsx(Chart, { height: "fill", layers: Chart.Line(orders, { x: r => r.week, y: r => r.actual }, { color: "teal.solid" }), grid: true }) }), children: _jsx(Text, { children: "Orders climbed steadily." }) }), _jsx(Story.Step, { id: "forecast", eyebrow: "Forecast", title: "The plan missed the turn", stage: _jsx(Box, { height: "100%", width: "100%", children: _jsx(Chart, { height: "fill", layers: [
150
+ Chart.Line(orders, { x: r => r.week, y: r => r.actual }, { key: "actual", color: "teal.solid" }),
151
+ Chart.Line(orders, { x: r => r.week, y: r => r.forecast }, { key: "forecast", color: "gray.solid", dash: "4 3" }),
152
+ ], grid: true, legend: true }) }), children: _jsx(Text, { children: "The forecast missed the turn." }) })] }), _jsxs(HStack, { gap: "3", children: [_jsx(Text, { children: East.str `Reviewing beat ${active.read().add(1n)} of 2` }), _jsx(Button, { onClick: next, children: "Skip ahead \u2192" })] }), _jsx(Story.Progress, { count: 2, active: active, title: "Q4 demand review" })] }));
153
+ } }))),
154
+ inputs: [],
155
+ });
156
+ //# sourceMappingURL=story.examples.js.map