@elaraai/east-ui 1.0.27 → 1.0.28
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/dist/src/charts/chart/index.d.ts +34 -0
- package/dist/src/charts/chart/index.d.ts.map +1 -1
- package/dist/src/charts/chart/index.js +3 -3
- package/dist/src/charts/chart/index.js.map +1 -1
- package/dist/src/charts/spec/index.d.ts +40 -0
- package/dist/src/charts/spec/index.d.ts.map +1 -1
- package/dist/src/charts/spec/index.js +3 -2
- package/dist/src/charts/spec/index.js.map +1 -1
- package/dist/src/charts/spec/types.d.ts +19 -5
- package/dist/src/charts/spec/types.d.ts.map +1 -1
- package/dist/src/charts/spec/types.js +10 -4
- package/dist/src/charts/spec/types.js.map +1 -1
- package/dist/src/collections/calendar/index.d.ts +9 -2
- package/dist/src/collections/calendar/index.d.ts.map +1 -1
- package/dist/src/collections/calendar/index.js +8 -1
- package/dist/src/collections/calendar/index.js.map +1 -1
- package/dist/src/collections/calendar/types.d.ts +5 -0
- package/dist/src/collections/calendar/types.d.ts.map +1 -1
- package/dist/src/collections/calendar/types.js +3 -0
- package/dist/src/collections/calendar/types.js.map +1 -1
- package/dist/src/collections/gantt/index.d.ts.map +1 -1
- package/dist/src/collections/gantt/index.js +10 -1
- package/dist/src/collections/gantt/index.js.map +1 -1
- package/dist/src/collections/gantt/types.d.ts +7 -0
- package/dist/src/collections/gantt/types.d.ts.map +1 -1
- package/dist/src/collections/gantt/types.js +2 -0
- package/dist/src/collections/gantt/types.js.map +1 -1
- package/dist/src/collections/matrix/index.d.ts +4 -0
- package/dist/src/collections/matrix/index.d.ts.map +1 -1
- package/dist/src/collections/matrix/index.js +9 -0
- package/dist/src/collections/matrix/index.js.map +1 -1
- package/dist/src/collections/planner/index.d.ts +15 -0
- package/dist/src/collections/planner/index.d.ts.map +1 -1
- package/dist/src/collections/planner/index.js +17 -0
- package/dist/src/collections/planner/index.js.map +1 -1
- package/dist/src/collections/schematic/index.d.ts +2 -2
- package/dist/src/collections/schematic/index.js +2 -2
- package/dist/src/collections/table/index.d.ts.map +1 -1
- package/dist/src/collections/table/index.js +9 -1
- package/dist/src/collections/table/index.js.map +1 -1
- package/dist/src/collections/table/types.d.ts +7 -0
- package/dist/src/collections/table/types.d.ts.map +1 -1
- package/dist/src/collections/table/types.js +2 -0
- package/dist/src/collections/table/types.js.map +1 -1
- package/dist/src/component.d.ts +77 -0
- package/dist/src/component.d.ts.map +1 -1
- package/dist/src/component.js +12 -0
- package/dist/src/component.js.map +1 -1
- package/dist/src/display/chip-rail/index.d.ts +1 -1
- package/dist/src/display/chip-rail/index.js +1 -1
- package/dist/src/display/trace/index.d.ts +8 -0
- package/dist/src/display/trace/index.d.ts.map +1 -1
- package/dist/src/display/trace/index.js +10 -1
- package/dist/src/display/trace/index.js.map +1 -1
- package/dist/src/display/trace/types.d.ts +12 -0
- package/dist/src/display/trace/types.d.ts.map +1 -1
- package/dist/src/display/trace/types.js +3 -0
- package/dist/src/display/trace/types.js.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal.d.ts +3 -1
- package/dist/src/internal.d.ts.map +1 -1
- package/dist/src/internal.js +3 -1
- package/dist/src/internal.js.map +1 -1
- package/dist/src/layout/aligned-stack/index.d.ts +101 -0
- package/dist/src/layout/aligned-stack/index.d.ts.map +1 -0
- package/dist/src/layout/aligned-stack/index.js +105 -0
- package/dist/src/layout/aligned-stack/index.js.map +1 -0
- package/dist/src/layout/aligned-stack/types.d.ts +50 -0
- package/dist/src/layout/aligned-stack/types.d.ts.map +1 -0
- package/dist/src/layout/aligned-stack/types.js +24 -0
- package/dist/src/layout/aligned-stack/types.js.map +1 -0
- package/dist/src/layout/index.d.ts +1 -0
- package/dist/src/layout/index.d.ts.map +1 -1
- package/dist/src/layout/index.js +1 -0
- package/dist/src/layout/index.js.map +1 -1
- package/dist/src/navigation/pages/index.d.ts +2 -2
- package/dist/src/overlays/drawer/index.d.ts +6 -0
- package/dist/src/overlays/drawer/index.d.ts.map +1 -1
- package/dist/src/overlays/drawer/index.js +8 -1
- package/dist/src/overlays/drawer/index.js.map +1 -1
- package/dist/src/overlays/drawer/types.d.ts +18 -0
- package/dist/src/overlays/drawer/types.d.ts.map +1 -1
- package/dist/src/overlays/drawer/types.js +9 -0
- package/dist/src/overlays/drawer/types.js.map +1 -1
- package/dist/src/runtime/collections/schematic.d.ts +2 -2
- package/dist/src/runtime/collections/schematic.js +2 -2
- package/dist/src/runtime/layout/aligned-stack.d.ts +38 -0
- package/dist/src/runtime/layout/aligned-stack.d.ts.map +1 -0
- package/dist/src/runtime/layout/aligned-stack.js +36 -0
- package/dist/src/runtime/layout/aligned-stack.js.map +1 -0
- package/dist/src/runtime/layout/index.d.ts +1 -0
- package/dist/src/runtime/layout/index.d.ts.map +1 -1
- package/dist/src/runtime/layout/index.js +1 -0
- package/dist/src/runtime/layout/index.js.map +1 -1
- package/dist/src/shared/plot-gutter.d.ts +65 -0
- package/dist/src/shared/plot-gutter.d.ts.map +1 -0
- package/dist/src/shared/plot-gutter.js +48 -0
- package/dist/src/shared/plot-gutter.js.map +1 -0
- package/dist/test/charts/chart.examples.d.ts +2 -0
- package/dist/test/charts/chart.examples.d.ts.map +1 -1
- package/dist/test/charts/chart.examples.js +24 -0
- package/dist/test/charts/chart.examples.js.map +1 -1
- package/dist/test/collections/planner.examples.d.ts +6 -0
- package/dist/test/collections/planner.examples.d.ts.map +1 -1
- package/dist/test/collections/planner.examples.js +18 -1
- package/dist/test/collections/planner.examples.js.map +1 -1
- package/dist/test/collections/schematic.examples.js +11 -11
- package/dist/test/collections/schematic.examples.js.map +1 -1
- package/dist/test/disclosure/accordion.examples.js +3 -3
- package/dist/test/disclosure/accordion.examples.js.map +1 -1
- package/dist/test/disclosure/tabs.examples.js +3 -3
- package/dist/test/disclosure/tabs.examples.js.map +1 -1
- package/dist/test/display/chip-rail.examples.js +3 -3
- package/dist/test/display/chip-rail.examples.js.map +1 -1
- package/dist/test/display/combine.examples.js +3 -3
- package/dist/test/display/combine.examples.js.map +1 -1
- package/dist/test/display/trace.examples.js +4 -4
- package/dist/test/display/trace.examples.js.map +1 -1
- package/dist/test/forms/combobox.examples.js +1 -1
- package/dist/test/layout/aligned-stack.examples.d.ts +79 -0
- package/dist/test/layout/aligned-stack.examples.d.ts.map +1 -0
- package/dist/test/layout/aligned-stack.examples.js +355 -0
- package/dist/test/layout/aligned-stack.examples.js.map +1 -0
- package/dist/test/layout/stack.examples.js +1 -1
- package/dist/test/overlays/drawer.examples.d.ts +1 -0
- package/dist/test/overlays/drawer.examples.d.ts.map +1 -1
- package/dist/test/overlays/drawer.examples.js +9 -1
- package/dist/test/overlays/drawer.examples.js.map +1 -1
- package/package.json +3 -3
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { type SubtypeExprOrValue, ArrayType, FloatType, IntegerType, NullType, OptionType, StringType, StructType, VariantType } from "@elaraai/east";
|
|
6
6
|
import { DensityType } from "../../style.js";
|
|
7
7
|
import type { DensityLiteral } from "../../style.js";
|
|
8
|
+
import { type PlotGutter } from "../../shared/plot-gutter.js";
|
|
8
9
|
/**
|
|
9
10
|
* Colour encoding for a Trace's heat fills.
|
|
10
11
|
*
|
|
@@ -52,11 +53,16 @@ export type TraceTrackType = typeof TraceTrackType;
|
|
|
52
53
|
* @property brandColor - Override the heat hue used by the `brand` / `diverge` scales
|
|
53
54
|
* @property nowLineColor - Override the colour of the now-line
|
|
54
55
|
* @property labelWidth - Width of the left-hand track-name gutter (any CSS length); omit for the density default
|
|
56
|
+
* @property plotGutter - Shared plot gutter (#147): pins the lane to `[left, W−right]` so a stacked Chart/Trace line up. `left` supersedes `labelWidth`; presence makes the lane fill the container (flexible steps)
|
|
55
57
|
*/
|
|
56
58
|
export declare const TraceStyleType: StructType<{
|
|
57
59
|
readonly brandColor: OptionType<StringType>;
|
|
58
60
|
readonly nowLineColor: OptionType<StringType>;
|
|
59
61
|
readonly labelWidth: OptionType<StringType>;
|
|
62
|
+
readonly plotGutter: OptionType<StructType<{
|
|
63
|
+
readonly left: OptionType<StringType>;
|
|
64
|
+
readonly right: OptionType<StringType>;
|
|
65
|
+
}>>;
|
|
60
66
|
}>;
|
|
61
67
|
export type TraceStyleType = typeof TraceStyleType;
|
|
62
68
|
/**
|
|
@@ -98,6 +104,10 @@ export declare const TraceType: StructType<{
|
|
|
98
104
|
readonly brandColor: OptionType<StringType>;
|
|
99
105
|
readonly nowLineColor: OptionType<StringType>;
|
|
100
106
|
readonly labelWidth: OptionType<StringType>;
|
|
107
|
+
readonly plotGutter: OptionType<StructType<{
|
|
108
|
+
readonly left: OptionType<StringType>;
|
|
109
|
+
readonly right: OptionType<StringType>;
|
|
110
|
+
}>>;
|
|
101
111
|
}>>;
|
|
102
112
|
}>;
|
|
103
113
|
export type TraceType = typeof TraceType;
|
|
@@ -141,5 +151,7 @@ export interface TraceOptions {
|
|
|
141
151
|
nowLineColor?: SubtypeExprOrValue<StringType>;
|
|
142
152
|
/** Width of the left-hand track-name gutter (any CSS length, e.g. `"120px"`); omit for the density default. */
|
|
143
153
|
labelWidth?: SubtypeExprOrValue<StringType>;
|
|
154
|
+
/** Shared plot gutter (#147) — pins the step lane to `[left, W−right]` (px) so a Trace stacked under a Chart lines up on a common x. `left` supersedes `labelWidth`; when present the steps become flexible (`1fr`) and the lane fills the container. Usually supplied by an enclosing `<AlignedStack>`. */
|
|
155
|
+
plotGutter?: PlotGutter;
|
|
144
156
|
}
|
|
145
157
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/display/trace/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,kBAAkB,EACvB,SAAS,EACT,SAAS,EACT,WAAW,EACX,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,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S,GAAG,OAAO,SAAS,CAAC;AAEzC;;;;;GAKG;AACH,MAAM,WAAW,UAAU;IACvB,qDAAqD;IACrD,IAAI,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IACrC,qFAAqF;IACrF,MAAM,EAAE,kBAAkB,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;CACpD;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,YAAY;IACzB,kHAAkH;IAClH,GAAG,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IACtC,8DAA8D;IAC9D,OAAO,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC,GAAG,cAAc,CAAC;IAC3D,iCAAiC;IACjC,KAAK,CAAC,EAAE,kBAAkB,CAAC,cAAc,CAAC,GAAG,iBAAiB,CAAC;IAC/D,6CAA6C;IAC7C,MAAM,CAAC,EAAE,kBAAkB,CAAC,eAAe,CAAC,GAAG,kBAAkB,CAAC;IAClE,+EAA+E;IAC/E,IAAI,CAAC,EAAE,kBAAkB,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;IACjD,oEAAoE;IACpE,UAAU,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAC5C,2CAA2C;IAC3C,YAAY,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAC9C,+GAA+G;IAC/G,UAAU,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAC5C,4SAA4S;IAC5S,UAAU,CAAC,EAAE,UAAU,CAAC;CAC3B"}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { ArrayType, FloatType, IntegerType, NullType, OptionType, StringType, StructType, VariantType, } from "@elaraai/east";
|
|
6
6
|
import { DensityType } from "../../style.js";
|
|
7
|
+
import { PlotGutterType } from "../../shared/plot-gutter.js";
|
|
7
8
|
/**
|
|
8
9
|
* Colour encoding for a Trace's heat fills.
|
|
9
10
|
*
|
|
@@ -46,11 +47,13 @@ export const TraceTrackType = StructType({
|
|
|
46
47
|
* @property brandColor - Override the heat hue used by the `brand` / `diverge` scales
|
|
47
48
|
* @property nowLineColor - Override the colour of the now-line
|
|
48
49
|
* @property labelWidth - Width of the left-hand track-name gutter (any CSS length); omit for the density default
|
|
50
|
+
* @property plotGutter - Shared plot gutter (#147): pins the lane to `[left, W−right]` so a stacked Chart/Trace line up. `left` supersedes `labelWidth`; presence makes the lane fill the container (flexible steps)
|
|
49
51
|
*/
|
|
50
52
|
export const TraceStyleType = StructType({
|
|
51
53
|
brandColor: OptionType(StringType),
|
|
52
54
|
nowLineColor: OptionType(StringType),
|
|
53
55
|
labelWidth: OptionType(StringType),
|
|
56
|
+
plotGutter: OptionType(PlotGutterType),
|
|
54
57
|
});
|
|
55
58
|
/**
|
|
56
59
|
* East StructType for a Trace value — mirrors the inline `Trace` variant
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/display/trace/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEH,SAAS,EACT,SAAS,EACT,WAAW,EACX,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,GACd,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/display/trace/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEH,SAAS,EACT,SAAS,EACT,WAAW,EACX,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,GACd,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAmB,MAAM,6BAA6B,CAAC;AAE9E;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CAAC;IACtC,KAAK,EAAE,QAAQ;IACf,OAAO,EAAE,QAAQ;IACjB,WAAW,EAAE,QAAQ;CACxB,CAAC,CAAC;AAIH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW,CAAC;IACvC,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,IAAI,EAAE,QAAQ;CACjB,CAAC,CAAC;AAIH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CAAC;IACrC,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,SAAS,CAAC,SAAS,CAAC;CAC/B,CAAC,CAAC;AAGH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CAAC;IACrC,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC;IAClC,YAAY,EAAE,UAAU,CAAC,UAAU,CAAC;IACpC,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC;IAClC,UAAU,EAAE,UAAU,CAAC,cAAc,CAAC;CACzC,CAAC,CAAC;AAGH;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,UAAU,CAAC;IAChC,MAAM,EAAE,SAAS,CAAC,cAAc,CAAC;IACjC,GAAG,EAAE,UAAU,CAAC,WAAW,CAAC;IAC5B,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACvC,OAAO,EAAE,UAAU,CAAC,WAAW,CAAC;IAChC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IACjC,MAAM,EAAE,UAAU,CAAC,eAAe,CAAC;IACnC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;CACpC,CAAC,CAAC"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export { LibraryRefType, CellRefType, DragSinkType, type DragSinkLiteral, DragEd
|
|
|
34
34
|
export { Format } from "./format/index.js";
|
|
35
35
|
export type { NumberFormatOptions, CurrencyFormatOptions, PercentFormatOptions, CompactFormatOptions, UnitFormatOptions, } from "./format/index.js";
|
|
36
36
|
export { Text, Code, Heading, Link, Highlight, Mark, List, CodeBlock, Numeric, Note, } from "./runtime/typography/index.js";
|
|
37
|
-
export { Box, Flex, Stack, VStack, HStack, Separator, Grid, Splitter, Sticky, ScrollArea, } from "./runtime/layout/index.js";
|
|
37
|
+
export { Box, Flex, Stack, VStack, HStack, AlignedStack, Separator, Grid, Splitter, Sticky, ScrollArea, } from "./runtime/layout/index.js";
|
|
38
38
|
export { Button, IconButton, CopyButton, CloseButton, Toggle, ButtonGroup } from "./runtime/buttons/index.js";
|
|
39
39
|
export type { ButtonLabelInput, ButtonOptions } from "./buttons/index.js";
|
|
40
40
|
export { Input, Checkbox, RadioGroup, RadioCardGroup, TimeRangeInput, DateRangeInput, Switch, Select, Combobox, Slider, Field, FileUpload, Textarea, TagsInput } from "./runtime/forms/index.js";
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -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,E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W,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAGtD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAGvD,OAAO,EAAE,eAAe,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAIvE,OAAO,EACH,MAAM,EACN,SAAS,EACT,KAAK,cAAc,EACnB,KAAK,kBAAkB,GAC1B,MAAM,gBAAgB,CAAC;AAIxB,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"}
|
package/dist/src/index.js
CHANGED
|
@@ -37,7 +37,7 @@ export { Format } from "./format/index.js";
|
|
|
37
37
|
// Typography
|
|
38
38
|
export { Text, Code, Heading, Link, Highlight, Mark, List, CodeBlock, Numeric, Note, } from "./runtime/typography/index.js";
|
|
39
39
|
// Layout
|
|
40
|
-
export { Box, Flex, Stack, VStack, HStack, Separator, Grid, Splitter, Sticky, ScrollArea, } from "./runtime/layout/index.js";
|
|
40
|
+
export { Box, Flex, Stack, VStack, HStack, AlignedStack, Separator, Grid, Splitter, Sticky, ScrollArea, } from "./runtime/layout/index.js";
|
|
41
41
|
// Buttons
|
|
42
42
|
export { Button, IconButton, CopyButton, CloseButton, Toggle, ButtonGroup } from "./runtime/buttons/index.js";
|
|
43
43
|
// Forms
|
package/dist/src/index.js.map
CHANGED
|
@@ -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,cAAc,EACd,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,aAAa,GAChB,MAAM,qBAAqB,CAAC;AAE7B,iBAAiB;AACjB,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAS3C,aAAa;AACb,OAAO,EACH,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAC3D,OAAO,EAAE,IAAI,GAChB,MAAM,+BAA+B,CAAC;AAEvC,SAAS;AACT,OAAO,EACH,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,
|
|
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,E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,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"}
|
package/dist/src/internal.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export { LibraryRefType, CellRefType, DragSinkType, type DragSinkLiteral, DragEd
|
|
|
23
23
|
export { Format } from "./format/index.js";
|
|
24
24
|
export type { NumberFormatOptions, CurrencyFormatOptions, PercentFormatOptions, CompactFormatOptions, UnitFormatOptions, } from "./format/index.js";
|
|
25
25
|
export { Text, Code, Heading, Link, Highlight, Mark, List, CodeBlock, Numeric, Note, } from "./typography/index.js";
|
|
26
|
-
export { Box, Flex, Stack, Separator, Grid, Splitter, Sticky, ScrollArea, } from "./layout/index.js";
|
|
26
|
+
export { Box, Flex, Stack, AlignedStack, Separator, Grid, Splitter, Sticky, ScrollArea, } from "./layout/index.js";
|
|
27
27
|
export { Button, IconButton, CopyButton, CloseButton, Toggle, ButtonGroup } from "./buttons/index.js";
|
|
28
28
|
export type { ButtonLabelInput, ButtonOptions } from "./buttons/index.js";
|
|
29
29
|
export { Input, Checkbox, RadioGroup, RadioCardGroup, TimeRangeInput, DateRangeInput, Switch, Select, Combobox, Slider, Field, FileUpload, Textarea, TagsInput } from "./forms/index.js";
|
|
@@ -51,6 +51,8 @@ export { optionsTag, content, leaf, container, hasKeys } from "./runtime/combina
|
|
|
51
51
|
export type { JsxTag, ContainerProps, ContentProps, ValueProps, OptionsProps } from "./runtime/combinators.js";
|
|
52
52
|
export * from "./layout/box/types.js";
|
|
53
53
|
export * from "./layout/stack/types.js";
|
|
54
|
+
export * from "./layout/aligned-stack/types.js";
|
|
55
|
+
export * from "./shared/plot-gutter.js";
|
|
54
56
|
export * from "./layout/grid/types.js";
|
|
55
57
|
export * from "./layout/separator/types.js";
|
|
56
58
|
export * from "./layout/splitter/types.js";
|
|
@@ -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,EAC3D,OAAO,EAAE,IAAI,GAChB,MAAM,uB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;AACzF,YAAY,EAAE,MAAM,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG/G,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,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"}
|
package/dist/src/internal.js
CHANGED
|
@@ -27,7 +27,7 @@ export { LibraryRefType, CellRefType, DragSinkType, DragEdgeType, DragEventType,
|
|
|
27
27
|
export { Format } from "./format/index.js";
|
|
28
28
|
// Component factories, by category
|
|
29
29
|
export { Text, Code, Heading, Link, Highlight, Mark, List, CodeBlock, Numeric, Note, } from "./typography/index.js";
|
|
30
|
-
export { Box, Flex, Stack, Separator, Grid, Splitter, Sticky, ScrollArea, } from "./layout/index.js";
|
|
30
|
+
export { Box, Flex, Stack, AlignedStack, Separator, Grid, Splitter, Sticky, ScrollArea, } from "./layout/index.js";
|
|
31
31
|
export { Button, IconButton, CopyButton, CloseButton, Toggle, ButtonGroup } from "./buttons/index.js";
|
|
32
32
|
export { Input, Checkbox, RadioGroup, RadioCardGroup, TimeRangeInput, DateRangeInput, Switch, Select, Combobox, Slider, Field, FileUpload, Textarea, TagsInput } from "./forms/index.js";
|
|
33
33
|
export { Progress, Banner, EmptyState, Skeleton, Status } from "./feedback/index.js";
|
|
@@ -54,6 +54,8 @@ export { optionsTag, content, leaf, container, hasKeys } from "./runtime/combina
|
|
|
54
54
|
// Standalone style/data types (renderers reference these directly).
|
|
55
55
|
export * from "./layout/box/types.js";
|
|
56
56
|
export * from "./layout/stack/types.js";
|
|
57
|
+
export * from "./layout/aligned-stack/types.js";
|
|
58
|
+
export * from "./shared/plot-gutter.js";
|
|
57
59
|
export * from "./layout/grid/types.js";
|
|
58
60
|
export * from "./layout/separator/types.js";
|
|
59
61
|
export * from "./layout/splitter/types.js";
|
package/dist/src/internal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../src/internal.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;GAaG;AAEH,8CAA8C;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,eAAe;AACf,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,WAAW,EAAuB,MAAM,wBAAwB,CAAC;AAE1E,+BAA+B;AAC/B,OAAO,EACH,cAAc,EACd,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,aAAa,GAChB,MAAM,qBAAqB,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CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,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"}
|
|
@@ -0,0 +1,101 @@
|
|
|
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 { type ExprType, type SubtypeExprOrValue, ArrayType, StructType, OptionType } from "@elaraai/east";
|
|
6
|
+
import { UIComponentType } from "../../component.js";
|
|
7
|
+
/**
|
|
8
|
+
* Standalone East type for `AlignedStack` data — mirrors the inline arm in
|
|
9
|
+
* `component.ts` (which spells `children` with the recursion `node`). Used by the
|
|
10
|
+
* renderer for `equalFor` + `ValueTypeOf`.
|
|
11
|
+
*
|
|
12
|
+
* @property children - The stacked lane components
|
|
13
|
+
* @property gutter - The imposed gutter (`auto` | `fixed{left,right}`)
|
|
14
|
+
* @property style - Optional box-model style
|
|
15
|
+
*/
|
|
16
|
+
export declare const AlignedStackType: StructType<{
|
|
17
|
+
children: ArrayType<UIComponentType>;
|
|
18
|
+
gutter: OptionType<AlignedGutterType>;
|
|
19
|
+
style: OptionType<AlignedStackStyleType>;
|
|
20
|
+
}>;
|
|
21
|
+
export type AlignedStackType = typeof AlignedStackType;
|
|
22
|
+
import { AlignedStackStyleType, type AlignedStackStyle } from "./types.js";
|
|
23
|
+
import { AlignedGutterType, type PlotGutter } from "../../shared/plot-gutter.js";
|
|
24
|
+
export { AlignedStackStyleType, type AlignedStackStyle } from "./types.js";
|
|
25
|
+
export { PlotGutterType, AlignedGutterType, type PlotGutter } from "../../shared/plot-gutter.js";
|
|
26
|
+
/** Options for {@link createAlignedStack} — the gutter mode plus the box-model style fields (flattened, like `Stack`). */
|
|
27
|
+
export interface AlignedStackOptions extends AlignedStackStyle {
|
|
28
|
+
/**
|
|
29
|
+
* The gutter imposed on every child: an explicit `{ left, right }` (px
|
|
30
|
+
* recommended), or `"auto"` to measure the max gutter the children need.
|
|
31
|
+
* Omit to impose nothing (children keep their own gutters).
|
|
32
|
+
*/
|
|
33
|
+
gutter?: PlotGutter | "auto";
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Build an `<AlignedStack>` — a vertical stack of axis/lane components (Chart,
|
|
37
|
+
* Trace, Calendar, …) that share one horizontal plot gutter so their data lanes
|
|
38
|
+
* line up on a common x. The gutter is published to the children via context; a
|
|
39
|
+
* child's own `plotGutter` prop still wins over the inherited value (#147).
|
|
40
|
+
*
|
|
41
|
+
* @param children - The stacked lane components
|
|
42
|
+
* @param options - The {@link AlignedStackOptions} (`gutter` + box-model style)
|
|
43
|
+
* @returns An `AlignedStack` {@link UIComponentType} value
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* import { East } from "@elaraai/east";
|
|
48
|
+
* import { AlignedStack, Chart, UIComponentType } from "@elaraai/east-ui";
|
|
49
|
+
*
|
|
50
|
+
* const aligned = East.function([], UIComponentType, ($) =>
|
|
51
|
+
* AlignedStack.Root([
|
|
52
|
+
* Chart.Root(Chart.Line(rows, { x: r => r.day, y: r => r.value })),
|
|
53
|
+
* // …a Trace / Planner on the same day axis…
|
|
54
|
+
* ], { gutter: { left: "48px", right: "12px" }, gap: "8px" }));
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
declare function createAlignedStack(children: SubtypeExprOrValue<ArrayType<UIComponentType>>, options?: AlignedStackOptions): ExprType<UIComponentType>;
|
|
58
|
+
/**
|
|
59
|
+
* `AlignedStack` — vertically stacks axis/lane components on a shared plot gutter.
|
|
60
|
+
*
|
|
61
|
+
* @remarks
|
|
62
|
+
* Use `AlignedStack.Root(children, { gutter })`. Types via `.Types`.
|
|
63
|
+
*/
|
|
64
|
+
export declare const AlignedStack: {
|
|
65
|
+
/** Build an AlignedStack (see {@link createAlignedStack}). */
|
|
66
|
+
readonly Root: typeof createAlignedStack;
|
|
67
|
+
readonly Types: {
|
|
68
|
+
/** The AlignedStack data struct. */
|
|
69
|
+
readonly AlignedStack: StructType<{
|
|
70
|
+
children: ArrayType<UIComponentType>;
|
|
71
|
+
gutter: OptionType<AlignedGutterType>;
|
|
72
|
+
style: OptionType<AlignedStackStyleType>;
|
|
73
|
+
}>;
|
|
74
|
+
/** The `{ left, right }` plot-gutter struct. */
|
|
75
|
+
readonly PlotGutter: StructType<{
|
|
76
|
+
readonly left: OptionType<import("@elaraai/east").StringType>;
|
|
77
|
+
readonly right: OptionType<import("@elaraai/east").StringType>;
|
|
78
|
+
}>;
|
|
79
|
+
/** The `auto | fixed` gutter mode. */
|
|
80
|
+
readonly Gutter: import("@elaraai/east").VariantType<{
|
|
81
|
+
readonly auto: import("@elaraai/east").NullType;
|
|
82
|
+
readonly fixed: StructType<{
|
|
83
|
+
readonly left: OptionType<import("@elaraai/east").StringType>;
|
|
84
|
+
readonly right: OptionType<import("@elaraai/east").StringType>;
|
|
85
|
+
}>;
|
|
86
|
+
}>;
|
|
87
|
+
/** The AlignedStack style struct. */
|
|
88
|
+
readonly Style: StructType<{
|
|
89
|
+
readonly gap: OptionType<import("@elaraai/east").StringType>;
|
|
90
|
+
readonly width: OptionType<import("@elaraai/east").StringType>;
|
|
91
|
+
readonly height: OptionType<import("@elaraai/east").StringType>;
|
|
92
|
+
readonly minHeight: OptionType<import("@elaraai/east").StringType>;
|
|
93
|
+
readonly density: OptionType<import("@elaraai/east").VariantType<{
|
|
94
|
+
readonly comfortable: import("@elaraai/east").NullType;
|
|
95
|
+
readonly compact: import("@elaraai/east").NullType;
|
|
96
|
+
readonly condensed: import("@elaraai/east").NullType;
|
|
97
|
+
}>>;
|
|
98
|
+
}>;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/layout/aligned-stack/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAEvB,SAAS,EACT,UAAU,EACV,UAAU,EAIb,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAGrD;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,EAAE,UAAU,CAAC;IACtC,QAAQ,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC;IACrC,MAAM,EAAE,UAAU,CAAC,iBAAiB,CAAC,CAAC;IACtC,KAAK,EAAE,UAAU,CAAC,qBAAqB,CAAC,CAAC;CAC5C,CAIC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC3E,OAAO,EAEH,iBAAiB,EACjB,KAAK,UAAU,EAClB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,qBAAqB,EAAE,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,KAAK,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEjG,0HAA0H;AAC1H,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB;IAC1D;;;;OAIG;IACH,MAAM,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;CAChC;AAaD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,iBAAS,kBAAkB,CACvB,QAAQ,EAAE,kBAAkB,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC,EACxD,OAAO,CAAC,EAAE,mBAAmB,GAC9B,QAAQ,CAAC,eAAe,CAAC,CAwB3B;AAED;;;;;GAKG;AACH,eAAO,MAAM,YAAY;IACrB,8DAA8D;;;QAG1D,oCAAoC;;sBArG9B,SAAS,CAAC,eAAe,CAAC;oBAC5B,UAAU,CAAC,iBAAiB,CAAC;mBAC9B,UAAU,CAAC,qBAAqB,CAAC;;QAqGpC,gDAAgD;;;;;QAEhD,sCAAsC;;;;;;;;QAEtC,qCAAqC;;;;;;;;;;;;;CAGnC,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
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, ArrayType, StructType, OptionType, variant, some, none, } from "@elaraai/east";
|
|
6
|
+
import { UIComponentType } from "../../component.js";
|
|
7
|
+
import { DensityType } from "../../style/interaction.js";
|
|
8
|
+
/**
|
|
9
|
+
* Standalone East type for `AlignedStack` data — mirrors the inline arm in
|
|
10
|
+
* `component.ts` (which spells `children` with the recursion `node`). Used by the
|
|
11
|
+
* renderer for `equalFor` + `ValueTypeOf`.
|
|
12
|
+
*
|
|
13
|
+
* @property children - The stacked lane components
|
|
14
|
+
* @property gutter - The imposed gutter (`auto` | `fixed{left,right}`)
|
|
15
|
+
* @property style - Optional box-model style
|
|
16
|
+
*/
|
|
17
|
+
export const AlignedStackType = StructType({
|
|
18
|
+
children: ArrayType(UIComponentType),
|
|
19
|
+
gutter: OptionType(AlignedGutterType),
|
|
20
|
+
style: OptionType(AlignedStackStyleType),
|
|
21
|
+
});
|
|
22
|
+
import { AlignedStackStyleType } from "./types.js";
|
|
23
|
+
import { PlotGutterType, AlignedGutterType, } from "../../shared/plot-gutter.js";
|
|
24
|
+
export { AlignedStackStyleType } from "./types.js";
|
|
25
|
+
export { PlotGutterType, AlignedGutterType } from "../../shared/plot-gutter.js";
|
|
26
|
+
/** Build the `AlignedGutterType` value (`auto` | `fixed{left,right}`) from the input. */
|
|
27
|
+
function resolveGutter(g) {
|
|
28
|
+
if (g === undefined)
|
|
29
|
+
return undefined;
|
|
30
|
+
if (g === "auto")
|
|
31
|
+
return East.value(variant("auto", null), AlignedGutterType);
|
|
32
|
+
const gutter = East.value({
|
|
33
|
+
left: g.left !== undefined ? some(g.left) : none,
|
|
34
|
+
right: g.right !== undefined ? some(g.right) : none,
|
|
35
|
+
}, PlotGutterType);
|
|
36
|
+
return East.value(variant("fixed", gutter), AlignedGutterType);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Build an `<AlignedStack>` — a vertical stack of axis/lane components (Chart,
|
|
40
|
+
* Trace, Calendar, …) that share one horizontal plot gutter so their data lanes
|
|
41
|
+
* line up on a common x. The gutter is published to the children via context; a
|
|
42
|
+
* child's own `plotGutter` prop still wins over the inherited value (#147).
|
|
43
|
+
*
|
|
44
|
+
* @param children - The stacked lane components
|
|
45
|
+
* @param options - The {@link AlignedStackOptions} (`gutter` + box-model style)
|
|
46
|
+
* @returns An `AlignedStack` {@link UIComponentType} value
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* import { East } from "@elaraai/east";
|
|
51
|
+
* import { AlignedStack, Chart, UIComponentType } from "@elaraai/east-ui";
|
|
52
|
+
*
|
|
53
|
+
* const aligned = East.function([], UIComponentType, ($) =>
|
|
54
|
+
* AlignedStack.Root([
|
|
55
|
+
* Chart.Root(Chart.Line(rows, { x: r => r.day, y: r => r.value })),
|
|
56
|
+
* // …a Trace / Planner on the same day axis…
|
|
57
|
+
* ], { gutter: { left: "48px", right: "12px" }, gap: "8px" }));
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
function createAlignedStack(children, options) {
|
|
61
|
+
const gutter = resolveGutter(options?.gutter);
|
|
62
|
+
const densityValue = options?.density !== undefined
|
|
63
|
+
? (typeof options.density === "string"
|
|
64
|
+
? East.value(variant(options.density, null), DensityType)
|
|
65
|
+
: options.density)
|
|
66
|
+
: undefined;
|
|
67
|
+
const hasStyle = options !== undefined &&
|
|
68
|
+
(options.gap !== undefined || options.width !== undefined ||
|
|
69
|
+
options.height !== undefined || options.minHeight !== undefined ||
|
|
70
|
+
options.density !== undefined);
|
|
71
|
+
return East.value(variant("AlignedStack", {
|
|
72
|
+
children,
|
|
73
|
+
gutter: gutter !== undefined ? some(gutter) : none,
|
|
74
|
+
style: hasStyle
|
|
75
|
+
? some(East.value({
|
|
76
|
+
gap: options.gap !== undefined ? some(options.gap) : none,
|
|
77
|
+
width: options.width !== undefined ? some(options.width) : none,
|
|
78
|
+
height: options.height !== undefined ? some(options.height) : none,
|
|
79
|
+
minHeight: options.minHeight !== undefined ? some(options.minHeight) : none,
|
|
80
|
+
density: densityValue !== undefined ? some(densityValue) : none,
|
|
81
|
+
}, AlignedStackStyleType))
|
|
82
|
+
: none,
|
|
83
|
+
}), UIComponentType);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* `AlignedStack` — vertically stacks axis/lane components on a shared plot gutter.
|
|
87
|
+
*
|
|
88
|
+
* @remarks
|
|
89
|
+
* Use `AlignedStack.Root(children, { gutter })`. Types via `.Types`.
|
|
90
|
+
*/
|
|
91
|
+
export const AlignedStack = {
|
|
92
|
+
/** Build an AlignedStack (see {@link createAlignedStack}). */
|
|
93
|
+
Root: createAlignedStack,
|
|
94
|
+
Types: {
|
|
95
|
+
/** The AlignedStack data struct. */
|
|
96
|
+
AlignedStack: AlignedStackType,
|
|
97
|
+
/** The `{ left, right }` plot-gutter struct. */
|
|
98
|
+
PlotGutter: PlotGutterType,
|
|
99
|
+
/** The `auto | fixed` gutter mode. */
|
|
100
|
+
Gutter: AlignedGutterType,
|
|
101
|
+
/** The AlignedStack style struct. */
|
|
102
|
+
Style: AlignedStackStyleType,
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/layout/aligned-stack/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAGH,IAAI,EACJ,SAAS,EACT,UAAU,EACV,UAAU,EACV,OAAO,EACP,IAAI,EACJ,IAAI,GACP,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAIxB,UAAU,CAAC;IACZ,QAAQ,EAAE,SAAS,CAAC,eAAe,CAAC;IACpC,MAAM,EAAE,UAAU,CAAC,iBAAiB,CAAC;IACrC,KAAK,EAAE,UAAU,CAAC,qBAAqB,CAAC;CAC3C,CAAC,CAAC;AAEH,OAAO,EAAE,qBAAqB,EAA0B,MAAM,YAAY,CAAC;AAC3E,OAAO,EACH,cAAc,EACd,iBAAiB,GAEpB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,qBAAqB,EAA0B,MAAM,YAAY,CAAC;AAC3E,OAA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DAA8D;IAC9D,IAAI,EAAE,kBAAkB;IACxB,KAAK,EAAE;QACH,oCAAoC;QACpC,YAAY,EAAE,gBAAgB;QAC9B,gDAAgD;QAChD,UAAU,EAAE,cAAc;QAC1B,sCAAsC;QACtC,MAAM,EAAE,iBAAiB;QACzB,qCAAqC;QACrC,KAAK,EAAE,qBAAqB;KAC/B;CACK,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { type SubtypeExprOrValue, OptionType, StringType, StructType } from "@elaraai/east";
|
|
6
|
+
import { DensityType, type DensityLiteral } from "../../style/interaction.js";
|
|
7
|
+
/**
|
|
8
|
+
* Style for {@link AlignedStack} — a vertical stack of axis/lane components that
|
|
9
|
+
* share one plot gutter. Minimal box-model knobs (the gutter is the point).
|
|
10
|
+
*
|
|
11
|
+
* @property gap - Vertical spacing between stacked children (CSS length / token)
|
|
12
|
+
* @property width - Stack width (default `100%`)
|
|
13
|
+
* @property height - Stack height
|
|
14
|
+
* @property minHeight - Stack min-height
|
|
15
|
+
* @property density - Density preset imposed on every lane child (comfortable | compact | condensed)
|
|
16
|
+
*/
|
|
17
|
+
export declare const AlignedStackStyleType: StructType<{
|
|
18
|
+
readonly gap: OptionType<StringType>;
|
|
19
|
+
readonly width: OptionType<StringType>;
|
|
20
|
+
readonly height: OptionType<StringType>;
|
|
21
|
+
readonly minHeight: OptionType<StringType>;
|
|
22
|
+
readonly density: OptionType<import("@elaraai/east").VariantType<{
|
|
23
|
+
readonly comfortable: import("@elaraai/east").NullType;
|
|
24
|
+
readonly compact: import("@elaraai/east").NullType;
|
|
25
|
+
readonly condensed: import("@elaraai/east").NullType;
|
|
26
|
+
}>>;
|
|
27
|
+
}>;
|
|
28
|
+
export type AlignedStackStyleType = typeof AlignedStackStyleType;
|
|
29
|
+
/**
|
|
30
|
+
* TS input for {@link AlignedStackStyleType}.
|
|
31
|
+
*
|
|
32
|
+
* @property gap - Vertical spacing between stacked children
|
|
33
|
+
* @property width - Stack width (default `100%`)
|
|
34
|
+
* @property height - Stack height
|
|
35
|
+
* @property minHeight - Stack min-height
|
|
36
|
+
* @property density - Density preset imposed on every lane child
|
|
37
|
+
*/
|
|
38
|
+
export interface AlignedStackStyle {
|
|
39
|
+
/** Vertical spacing between stacked children (CSS length / token). */
|
|
40
|
+
gap?: SubtypeExprOrValue<StringType>;
|
|
41
|
+
/** Stack width (default `100%`). */
|
|
42
|
+
width?: SubtypeExprOrValue<StringType>;
|
|
43
|
+
/** Stack height. */
|
|
44
|
+
height?: SubtypeExprOrValue<StringType>;
|
|
45
|
+
/** Stack min-height. */
|
|
46
|
+
minHeight?: SubtypeExprOrValue<StringType>;
|
|
47
|
+
/** Density preset imposed on every lane child (comfortable | compact | condensed). Each child still overrides with its own `density` if set. */
|
|
48
|
+
density?: SubtypeExprOrValue<DensityType> | DensityLiteral;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/layout/aligned-stack/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,kBAAkB,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAE,KAAK,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE9E;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;EAMhC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC;AAEjE;;;;;;;;GAQG;AACH,MAAM,WAAW,iBAAiB;IAC9B,sEAAsE;IACtE,GAAG,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IACrC,oCAAoC;IACpC,KAAK,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IACvC,oBAAoB;IACpB,MAAM,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IACxC,wBAAwB;IACxB,SAAS,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAC3C,gJAAgJ;IAChJ,OAAO,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC,GAAG,cAAc,CAAC;CAC9D"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { OptionType, StringType, StructType } from "@elaraai/east";
|
|
6
|
+
import { DensityType } from "../../style/interaction.js";
|
|
7
|
+
/**
|
|
8
|
+
* Style for {@link AlignedStack} — a vertical stack of axis/lane components that
|
|
9
|
+
* share one plot gutter. Minimal box-model knobs (the gutter is the point).
|
|
10
|
+
*
|
|
11
|
+
* @property gap - Vertical spacing between stacked children (CSS length / token)
|
|
12
|
+
* @property width - Stack width (default `100%`)
|
|
13
|
+
* @property height - Stack height
|
|
14
|
+
* @property minHeight - Stack min-height
|
|
15
|
+
* @property density - Density preset imposed on every lane child (comfortable | compact | condensed)
|
|
16
|
+
*/
|
|
17
|
+
export const AlignedStackStyleType = StructType({
|
|
18
|
+
gap: OptionType(StringType),
|
|
19
|
+
width: OptionType(StringType),
|
|
20
|
+
height: OptionType(StringType),
|
|
21
|
+
minHeight: OptionType(StringType),
|
|
22
|
+
density: OptionType(DensityType),
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/layout/aligned-stack/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAA2B,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAE,WAAW,EAAuB,MAAM,4BAA4B,CAAC;AAE9E;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,UAAU,CAAC;IAC5C,GAAG,EAAQ,UAAU,CAAC,UAAU,CAAC;IACjC,KAAK,EAAM,UAAU,CAAC,UAAU,CAAC;IACjC,MAAM,EAAK,UAAU,CAAC,UAAU,CAAC;IACjC,SAAS,EAAE,UAAU,CAAC,UAAU,CAAC;IACjC,OAAO,EAAI,UAAU,CAAC,WAAW,CAAC;CACrC,CAAC,CAAC"}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
export { Box } from "./box/index.js";
|
|
6
6
|
export { Flex } from "./flex/index.js";
|
|
7
7
|
export { Stack } from "./stack/index.js";
|
|
8
|
+
export { AlignedStack } from "./aligned-stack/index.js";
|
|
8
9
|
export { Separator } from "./separator/index.js";
|
|
9
10
|
export { Grid } from "./grid/index.js";
|
|
10
11
|
export { Splitter } from "./splitter/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layout/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layout/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC"}
|
package/dist/src/layout/index.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
export { Box } from "./box/index.js";
|
|
6
6
|
export { Flex } from "./flex/index.js";
|
|
7
7
|
export { Stack } from "./stack/index.js";
|
|
8
|
+
export { AlignedStack } from "./aligned-stack/index.js";
|
|
8
9
|
export { Separator } from "./separator/index.js";
|
|
9
10
|
export { Grid } from "./grid/index.js";
|
|
10
11
|
export { Splitter } from "./splitter/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/layout/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/layout/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -20,8 +20,8 @@ export { NavBindHandleType, navBindPlatformFn, NavBindPrimitives, routeVariantTy
|
|
|
20
20
|
/**
|
|
21
21
|
* Per-route typed segment constructors. `Page.<route>(payload)` returns
|
|
22
22
|
* `variant(route, payload)`, type-checked against the config's payload — so a
|
|
23
|
-
* whole typed path is `[Page.overview(), Page.
|
|
24
|
-
* raw `[variant("overview", null), variant("
|
|
23
|
+
* whole typed path is `[Page.overview(), Page.detail(row)]` (identical to the
|
|
24
|
+
* raw `[variant("overview", null), variant("detail", row)]`).
|
|
25
25
|
*/
|
|
26
26
|
export type PageConstructors<R extends NavRoutes> = {
|
|
27
27
|
[K in keyof R]: R[K]["value"] extends typeof NullType ? () => ExprType<RouteVariantOf<R>> : (payload: SubtypeExprOrValue<R[K]["value"]>) => ExprType<RouteVariantOf<R>>;
|
|
@@ -211,6 +211,9 @@ export declare const Drawer: {
|
|
|
211
211
|
* @property size - Drawer size variant
|
|
212
212
|
* @property placement - Edge placement
|
|
213
213
|
* @property contained - Render within parent container
|
|
214
|
+
* @property bodyPadding - CSS padding shorthand for the body (default `"16px 20px"`)
|
|
215
|
+
* @property flush - Removes body padding (full-bleed); overrides `bodyPadding`
|
|
216
|
+
* @property fillBody - Body becomes a definite-height flex column so a single child fills + owns its scroll
|
|
214
217
|
*/
|
|
215
218
|
readonly Style: StructType<{
|
|
216
219
|
readonly size: OptionType<import("@elaraai/east").VariantType<{
|
|
@@ -230,6 +233,9 @@ export declare const Drawer: {
|
|
|
230
233
|
readonly contained: OptionType<import("@elaraai/east").BooleanType>;
|
|
231
234
|
readonly onOpenChange: OptionType<import("@elaraai/east").FunctionType<[import("@elaraai/east").BooleanType], NullType>>;
|
|
232
235
|
readonly onExitComplete: OptionType<import("@elaraai/east").FunctionType<[], NullType>>;
|
|
236
|
+
readonly bodyPadding: OptionType<StringType>;
|
|
237
|
+
readonly flush: OptionType<import("@elaraai/east").BooleanType>;
|
|
238
|
+
readonly fillBody: OptionType<import("@elaraai/east").BooleanType>;
|
|
233
239
|
}>;
|
|
234
240
|
/**
|
|
235
241
|
* Size variant type for Drawer component.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/overlays/drawer/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAEvB,UAAU,EAAE,UAAU,EACtB,UAAU,EACV,SAAS,EAIT,QAAQ,EACX,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAGH,eAAe,EACf,KAAK,WAAW,EACnB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACH,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,KAAK,WAAW,GACnB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AA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