@elaraai/east-ui 1.0.32 → 1.0.34
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 +183 -9
- package/dist/src/charts/chart/index.d.ts.map +1 -1
- package/dist/src/charts/chart/index.js +15 -3
- package/dist/src/charts/chart/index.js.map +1 -1
- package/dist/src/charts/spec/index.d.ts +465 -142
- package/dist/src/charts/spec/index.d.ts.map +1 -1
- package/dist/src/charts/spec/index.js +49 -3
- package/dist/src/charts/spec/index.js.map +1 -1
- package/dist/src/charts/spec/types.d.ts +91 -3
- package/dist/src/charts/spec/types.d.ts.map +1 -1
- package/dist/src/charts/spec/types.js +45 -3
- package/dist/src/charts/spec/types.js.map +1 -1
- package/dist/src/collections/board/index.d.ts +12 -0
- package/dist/src/collections/board/index.d.ts.map +1 -1
- package/dist/src/collections/board/index.js +6 -0
- package/dist/src/collections/board/index.js.map +1 -1
- package/dist/src/collections/calendar/index.d.ts +6 -0
- package/dist/src/collections/calendar/index.d.ts.map +1 -1
- package/dist/src/collections/calendar/index.js +2 -0
- package/dist/src/collections/calendar/index.js.map +1 -1
- package/dist/src/collections/calendar/types.d.ts +4 -0
- package/dist/src/collections/calendar/types.d.ts.map +1 -1
- package/dist/src/collections/calendar/types.js +4 -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 +6 -1
- package/dist/src/collections/gantt/index.js.map +1 -1
- package/dist/src/collections/gantt/types.d.ts +4 -1
- package/dist/src/collections/gantt/types.d.ts.map +1 -1
- package/dist/src/collections/gantt/types.js +1 -0
- package/dist/src/collections/gantt/types.js.map +1 -1
- package/dist/src/collections/library/types.d.ts +2 -2
- package/dist/src/collections/library/types.d.ts.map +1 -1
- package/dist/src/collections/matrix/index.d.ts +6 -0
- package/dist/src/collections/matrix/index.d.ts.map +1 -1
- package/dist/src/collections/matrix/index.js +6 -0
- package/dist/src/collections/matrix/index.js.map +1 -1
- package/dist/src/collections/planner/index.d.ts +31 -9
- package/dist/src/collections/planner/index.d.ts.map +1 -1
- package/dist/src/collections/planner/index.js +52 -10
- package/dist/src/collections/planner/index.js.map +1 -1
- package/dist/src/collections/planner/types.d.ts +70 -4
- package/dist/src/collections/planner/types.d.ts.map +1 -1
- package/dist/src/collections/planner/types.js +35 -1
- package/dist/src/collections/planner/types.js.map +1 -1
- package/dist/src/collections/roster/index.d.ts +12 -0
- package/dist/src/collections/roster/index.d.ts.map +1 -1
- package/dist/src/collections/roster/index.js +6 -0
- package/dist/src/collections/roster/index.js.map +1 -1
- package/dist/src/collections/schematic/index.d.ts +6 -2
- package/dist/src/collections/schematic/index.d.ts.map +1 -1
- package/dist/src/collections/schematic/index.js +2 -0
- package/dist/src/collections/schematic/index.js.map +1 -1
- package/dist/src/collections/table/index.d.ts +48 -5
- package/dist/src/collections/table/index.d.ts.map +1 -1
- package/dist/src/collections/table/index.js +43 -3
- package/dist/src/collections/table/index.js.map +1 -1
- package/dist/src/collections/table/types.d.ts +37 -1
- package/dist/src/collections/table/types.d.ts.map +1 -1
- package/dist/src/collections/table/types.js +33 -0
- package/dist/src/collections/table/types.js.map +1 -1
- package/dist/src/component.d.ts +245 -3
- package/dist/src/component.d.ts.map +1 -1
- package/dist/src/component.js +30 -1
- package/dist/src/component.js.map +1 -1
- package/dist/src/display/image/index.d.ts +76 -0
- package/dist/src/display/image/index.d.ts.map +1 -0
- package/dist/src/display/image/index.js +185 -0
- package/dist/src/display/image/index.js.map +1 -0
- package/dist/src/display/image/types.d.ts +237 -0
- package/dist/src/display/image/types.d.ts.map +1 -0
- package/dist/src/display/image/types.js +127 -0
- package/dist/src/display/image/types.js.map +1 -0
- package/dist/src/display/index.d.ts +1 -0
- package/dist/src/display/index.d.ts.map +1 -1
- package/dist/src/display/index.js +1 -0
- package/dist/src/display/index.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 +2 -1
- package/dist/src/internal.d.ts.map +1 -1
- package/dist/src/internal.js +2 -1
- package/dist/src/internal.js.map +1 -1
- package/dist/src/layout/box/index.d.ts +7 -0
- package/dist/src/layout/box/index.d.ts.map +1 -1
- package/dist/src/layout/box/index.js +7 -0
- package/dist/src/layout/box/index.js.map +1 -1
- package/dist/src/layout/box/types.d.ts +22 -1
- package/dist/src/layout/box/types.d.ts.map +1 -1
- package/dist/src/layout/box/types.js +8 -1
- package/dist/src/layout/box/types.js.map +1 -1
- package/dist/src/layout/flex/index.d.ts +4 -0
- package/dist/src/layout/flex/index.d.ts.map +1 -1
- package/dist/src/layout/flex/index.js +4 -0
- package/dist/src/layout/flex/index.js.map +1 -1
- package/dist/src/layout/flex/types.d.ts +13 -1
- package/dist/src/layout/flex/types.d.ts.map +1 -1
- package/dist/src/layout/flex/types.js +5 -1
- package/dist/src/layout/flex/types.js.map +1 -1
- package/dist/src/layout/stack/index.d.ts +7 -0
- package/dist/src/layout/stack/index.d.ts.map +1 -1
- package/dist/src/layout/stack/index.js +7 -0
- package/dist/src/layout/stack/index.js.map +1 -1
- package/dist/src/layout/stack/types.d.ts +22 -1
- package/dist/src/layout/stack/types.d.ts.map +1 -1
- package/dist/src/layout/stack/types.js +8 -1
- package/dist/src/layout/stack/types.js.map +1 -1
- package/dist/src/navigation/breadcrumb/index.d.ts +2 -0
- package/dist/src/navigation/breadcrumb/index.d.ts.map +1 -1
- package/dist/src/navigation/breadcrumb/index.js +3 -2
- package/dist/src/navigation/breadcrumb/index.js.map +1 -1
- package/dist/src/navigation/breadcrumb/types.d.ts +7 -0
- package/dist/src/navigation/breadcrumb/types.d.ts.map +1 -1
- package/dist/src/navigation/breadcrumb/types.js +3 -0
- package/dist/src/navigation/breadcrumb/types.js.map +1 -1
- package/dist/src/navigation/nav-list/index.d.ts +2 -2
- package/dist/src/navigation/nav-list/index.d.ts.map +1 -1
- package/dist/src/navigation/nav-list/index.js +9 -3
- package/dist/src/navigation/nav-list/index.js.map +1 -1
- package/dist/src/navigation/nav-list/types.d.ts +54 -19
- package/dist/src/navigation/nav-list/types.d.ts.map +1 -1
- package/dist/src/navigation/nav-list/types.js +18 -1
- package/dist/src/navigation/nav-list/types.js.map +1 -1
- package/dist/src/runtime/collections/table.d.ts +2 -2
- package/dist/src/runtime/collections/table.d.ts.map +1 -1
- package/dist/src/runtime/collections/table.js.map +1 -1
- package/dist/src/runtime/display/image.d.ts +37 -0
- package/dist/src/runtime/display/image.d.ts.map +1 -0
- package/dist/src/runtime/display/image.js +37 -0
- package/dist/src/runtime/display/image.js.map +1 -0
- package/dist/src/runtime/display/index.d.ts +1 -0
- package/dist/src/runtime/display/index.d.ts.map +1 -1
- package/dist/src/runtime/display/index.js +1 -0
- package/dist/src/runtime/display/index.js.map +1 -1
- package/dist/test/charts/chart.examples.d.ts +19 -0
- package/dist/test/charts/chart.examples.d.ts.map +1 -1
- package/dist/test/charts/chart.examples.js +98 -2
- package/dist/test/charts/chart.examples.js.map +1 -1
- package/dist/test/collections/board.examples.d.ts +2 -0
- package/dist/test/collections/board.examples.d.ts.map +1 -1
- package/dist/test/collections/board.examples.js +57 -1
- package/dist/test/collections/board.examples.js.map +1 -1
- package/dist/test/collections/calendar.examples.d.ts +2 -0
- package/dist/test/collections/calendar.examples.d.ts.map +1 -1
- package/dist/test/collections/calendar.examples.js +48 -1
- package/dist/test/collections/calendar.examples.js.map +1 -1
- package/dist/test/collections/gantt.examples.d.ts +1 -0
- package/dist/test/collections/gantt.examples.d.ts.map +1 -1
- package/dist/test/collections/gantt.examples.js +17 -1
- package/dist/test/collections/gantt.examples.js.map +1 -1
- package/dist/test/collections/library.examples.d.ts +2 -0
- package/dist/test/collections/library.examples.d.ts.map +1 -1
- package/dist/test/collections/library.examples.js +31 -1
- package/dist/test/collections/library.examples.js.map +1 -1
- package/dist/test/collections/matrix.examples.d.ts +6 -0
- package/dist/test/collections/matrix.examples.d.ts.map +1 -1
- package/dist/test/collections/matrix.examples.js +46 -2
- package/dist/test/collections/matrix.examples.js.map +1 -1
- package/dist/test/collections/planner.examples.d.ts +22 -0
- package/dist/test/collections/planner.examples.d.ts.map +1 -1
- package/dist/test/collections/planner.examples.js +92 -1
- package/dist/test/collections/planner.examples.js.map +1 -1
- package/dist/test/collections/roster.examples.d.ts +2 -0
- package/dist/test/collections/roster.examples.d.ts.map +1 -1
- package/dist/test/collections/roster.examples.js +45 -1
- package/dist/test/collections/roster.examples.js.map +1 -1
- package/dist/test/collections/schematic.examples.d.ts.map +1 -1
- package/dist/test/collections/schematic.examples.js +33 -13
- package/dist/test/collections/schematic.examples.js.map +1 -1
- package/dist/test/collections/table.examples.d.ts +12 -0
- package/dist/test/collections/table.examples.d.ts.map +1 -1
- package/dist/test/collections/table.examples.js +75 -1
- package/dist/test/collections/table.examples.js.map +1 -1
- package/dist/test/container/card.examples.d.ts +1 -0
- package/dist/test/container/card.examples.d.ts.map +1 -1
- package/dist/test/container/card.examples.js +9 -1
- package/dist/test/container/card.examples.js.map +1 -1
- package/dist/test/display/image.examples.d.ts +5 -0
- package/dist/test/display/image.examples.d.ts.map +1 -0
- package/dist/test/display/image.examples.js +42 -0
- package/dist/test/display/image.examples.js.map +1 -0
- package/dist/test/layout/aligned-stack.examples.d.ts +11 -0
- package/dist/test/layout/aligned-stack.examples.d.ts.map +1 -1
- package/dist/test/layout/aligned-stack.examples.js +36 -1
- package/dist/test/layout/aligned-stack.examples.js.map +1 -1
- package/dist/test/layout/box.examples.d.ts +1 -0
- package/dist/test/layout/box.examples.d.ts.map +1 -1
- package/dist/test/layout/box.examples.js +8 -0
- package/dist/test/layout/box.examples.js.map +1 -1
- package/dist/test/layout/flex.examples.d.ts +1 -0
- package/dist/test/layout/flex.examples.d.ts.map +1 -1
- package/dist/test/layout/flex.examples.js +8 -0
- package/dist/test/layout/flex.examples.js.map +1 -1
- package/dist/test/layout/stack.examples.d.ts +1 -0
- package/dist/test/layout/stack.examples.d.ts.map +1 -1
- package/dist/test/layout/stack.examples.js +8 -0
- package/dist/test/layout/stack.examples.js.map +1 -1
- package/dist/test/navigation/breadcrumb.examples.d.ts +1 -0
- package/dist/test/navigation/breadcrumb.examples.d.ts.map +1 -1
- package/dist/test/navigation/breadcrumb.examples.js +12 -0
- package/dist/test/navigation/breadcrumb.examples.js.map +1 -1
- package/dist/test/navigation/nav-list.examples.d.ts +1 -0
- package/dist/test/navigation/nav-list.examples.d.ts.map +1 -1
- package/dist/test/navigation/nav-list.examples.js +17 -0
- package/dist/test/navigation/nav-list.examples.js.map +1 -1
- package/dist/test/slice/slice.examples.d.ts +1 -0
- package/dist/test/slice/slice.examples.d.ts.map +1 -1
- package/dist/test/slice/slice.examples.js +44 -3
- package/dist/test/slice/slice.examples.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/navigation/breadcrumb/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAGH,IAAI,EACJ,SAAS,EACT,OAAO,EACP,IAAI,EACJ,IAAI,GACP,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAwB,MAAM,YAAY,CAAC;AAE/G,kBAAkB;AAClB,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAwB,MAAM,YAAY,CAAC;AAG/G,+EAA+E;AAC/E,2BAA2B;AAC3B,+EAA+E;AAE/E;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,SAAS,gBAAgB,CACrB,KAAwD,EACxD,KAAuB;IAEvB,MAAM,UAAU,GAAG,KAAK,EAAE,SAAS,KAAK,SAAS;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/navigation/breadcrumb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;;;;;GAKG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,IAAI,EAAE,gBAAgB;IACtB,KAAK,EAAE;QACH;;;;;WAKG;QACH,IAAI,EAAE,kBAAkB;QACxB;;;;WAIG;QACH,KAAK,EAAE,mBAAmB;QAC1B;;WAEG;QACH,IAAI,EAAE,kBAAkB;KAC3B;CACK,CAAC"}
|
|
@@ -24,9 +24,12 @@ export type BreadcrumbItemType = typeof BreadcrumbItemType;
|
|
|
24
24
|
*
|
|
25
25
|
* @property runAnchor - Optional trailing run anchor text (e.g. `run #42`),
|
|
26
26
|
* rendered after a vertical rule to pin the crumb to a specific run
|
|
27
|
+
* @property leadingSeparator - Render a separator before the first item too, so
|
|
28
|
+
* the trail reads as a path (`/ workspace / page`) — the e3-cloud / bsys style
|
|
27
29
|
*/
|
|
28
30
|
export declare const BreadcrumbStyleType: StructType<{
|
|
29
31
|
readonly runAnchor: OptionType<StringType>;
|
|
32
|
+
readonly leadingSeparator: OptionType<BooleanType>;
|
|
30
33
|
}>;
|
|
31
34
|
/** Type alias for the Breadcrumb style struct. */
|
|
32
35
|
export type BreadcrumbStyleType = typeof BreadcrumbStyleType;
|
|
@@ -44,6 +47,7 @@ export declare const BreadcrumbRootType: StructType<{
|
|
|
44
47
|
}>>;
|
|
45
48
|
readonly style: OptionType<StructType<{
|
|
46
49
|
readonly runAnchor: OptionType<StringType>;
|
|
50
|
+
readonly leadingSeparator: OptionType<BooleanType>;
|
|
47
51
|
}>>;
|
|
48
52
|
}>;
|
|
49
53
|
/**
|
|
@@ -54,9 +58,12 @@ export type BreadcrumbRootType = typeof BreadcrumbRootType;
|
|
|
54
58
|
* TypeScript interface for Breadcrumb style options.
|
|
55
59
|
*
|
|
56
60
|
* @property runAnchor - Optional trailing run anchor text (e.g. `run #42`)
|
|
61
|
+
* @property leadingSeparator - Render a separator before the first item (path style)
|
|
57
62
|
*/
|
|
58
63
|
export interface BreadcrumbStyle {
|
|
59
64
|
/** Optional trailing run anchor text (e.g. `run #42`), pinned after a vertical rule. */
|
|
60
65
|
runAnchor?: SubtypeExprOrValue<StringType>;
|
|
66
|
+
/** Render a separator before the first item too, so the trail reads as a path (`/ workspace / page`). */
|
|
67
|
+
leadingSeparator?: SubtypeExprOrValue<BooleanType>;
|
|
61
68
|
}
|
|
62
69
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/navigation/breadcrumb/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,kBAAkB,EACvB,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,SAAS,EACT,QAAQ,EACR,YAAY,EACf,MAAM,eAAe,CAAC;AAMvB;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;;;;EAI7B,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC;AAM3D
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/navigation/breadcrumb/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,kBAAkB,EACvB,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,SAAS,EACT,QAAQ,EACR,YAAY,EACf,MAAM,eAAe,CAAC;AAMvB;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;;;;EAI7B,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC;AAM3D;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB;;;EAG9B,CAAC;AAEH,kDAAkD;AAClD,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC;AAE7D;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;EAG7B,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC;AAM3D;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC5B,wFAAwF;IACxF,SAAS,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAC3C,yGAAyG;IACzG,gBAAgB,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;CACtD"}
|
|
@@ -26,9 +26,12 @@ export const BreadcrumbItemType = StructType({
|
|
|
26
26
|
*
|
|
27
27
|
* @property runAnchor - Optional trailing run anchor text (e.g. `run #42`),
|
|
28
28
|
* rendered after a vertical rule to pin the crumb to a specific run
|
|
29
|
+
* @property leadingSeparator - Render a separator before the first item too, so
|
|
30
|
+
* the trail reads as a path (`/ workspace / page`) — the e3-cloud / bsys style
|
|
29
31
|
*/
|
|
30
32
|
export const BreadcrumbStyleType = StructType({
|
|
31
33
|
runAnchor: OptionType(StringType),
|
|
34
|
+
leadingSeparator: OptionType(BooleanType),
|
|
32
35
|
});
|
|
33
36
|
/**
|
|
34
37
|
* Type for the Breadcrumb component.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/navigation/breadcrumb/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEH,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,SAAS,EACT,QAAQ,EACR,YAAY,GACf,MAAM,eAAe,CAAC;AAEvB,+EAA+E;AAC/E,uBAAuB;AACvB,+EAA+E;AAE/E;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAAC;IACzC,KAAK,EAAE,UAAU;IACjB,OAAO,EAAE,UAAU,CAAC,WAAW,CAAC;IAChC,OAAO,EAAE,UAAU,CAAC,YAAY,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;CAClD,CAAC,CAAC;AAOH,+EAA+E;AAC/E,wBAAwB;AACxB,+EAA+E;AAE/E
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/navigation/breadcrumb/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEH,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,SAAS,EACT,QAAQ,EACR,YAAY,GACf,MAAM,eAAe,CAAC;AAEvB,+EAA+E;AAC/E,uBAAuB;AACvB,+EAA+E;AAE/E;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAAC;IACzC,KAAK,EAAE,UAAU;IACjB,OAAO,EAAE,UAAU,CAAC,WAAW,CAAC;IAChC,OAAO,EAAE,UAAU,CAAC,YAAY,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;CAClD,CAAC,CAAC;AAOH,+EAA+E;AAC/E,wBAAwB;AACxB,+EAA+E;AAE/E;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,UAAU,CAAC;IAC1C,SAAS,EAAE,UAAU,CAAC,UAAU,CAAC;IACjC,gBAAgB,EAAE,UAAU,CAAC,WAAW,CAAC;CAC5C,CAAC,CAAC;AAKH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAAC;IACzC,KAAK,EAAE,SAAS,CAAC,kBAAkB,CAAC;IACpC,KAAK,EAAE,UAAU,CAAC,mBAAmB,CAAC;CACzC,CAAC,CAAC"}
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
import { type ExprType } from "@elaraai/east";
|
|
6
6
|
import { UIComponentType } from "../../component.js";
|
|
7
7
|
import { NavListType, NavSectionType, NavItemType, type NavListStyle, type NavSectionInput } from "./types.js";
|
|
8
|
-
export { NavListType, NavSectionType, NavItemType, type NavListStyle, type NavSectionInput, type NavItemInput, } from "./types.js";
|
|
8
|
+
export { NavListType, NavSectionType, NavItemType, NavListSurfaceType, type NavListSurfaceLiteral, type NavListStyle, type NavSectionInput, type NavItemInput, } from "./types.js";
|
|
9
9
|
/**
|
|
10
10
|
* Creates a `NavList` — grouped top-level navigation rendered as the
|
|
11
11
|
* bsys Sidebar recipe (mono uppercase rows, brand-tint active with a
|
|
12
12
|
* 3 px brand-d left rule, paper-2 card chrome).
|
|
13
13
|
*
|
|
14
14
|
* @param sections - Array of sections, each with optional label + items
|
|
15
|
-
* @param style - Optional
|
|
15
|
+
* @param style - Optional configuration (`onSelect`, `surface`, `background`)
|
|
16
16
|
* @returns An East expression representing the NavList
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/navigation/nav-list/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,QAAQ,EAKhB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EACH,WAAW,EACX,cAAc,EACd,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/navigation/nav-list/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,QAAQ,EAKhB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EACH,WAAW,EACX,cAAc,EACd,WAAW,EAEX,KAAK,YAAY,EACjB,KAAK,eAAe,EACvB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACH,WAAW,EACX,cAAc,EACd,WAAW,EACX,kBAAkB,EAClB,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,YAAY,GACpB,MAAM,YAAY,CAAC;AAMpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,iBAAS,aAAa,CAClB,QAAQ,EAAE,eAAe,EAAE,EAC3B,KAAK,CAAC,EAAE,YAAY,GACrB,QAAQ,CAAC,eAAe,CAAC,CAoC3B;AAED,UAAU,gBAAgB;IACtB,IAAI,EAAE,OAAO,aAAa,CAAC;IAC3B,KAAK,EAAE;QACH,OAAO,EAAE,OAAO,WAAW,CAAC;QAC5B,OAAO,EAAE,OAAO,cAAc,CAAC;QAC/B,IAAI,EAAE,OAAO,WAAW,CAAC;KAC5B,CAAC;CACL;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,OAAO,EAAE,gBA+BrB,CAAC"}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
import { East, variant, some, none, } from "@elaraai/east";
|
|
6
6
|
import { UIComponentType } from "../../component.js";
|
|
7
7
|
import { IconType } from "../../display/icon/types.js";
|
|
8
|
-
import { NavListType, NavSectionType, NavItemType, } from "./types.js";
|
|
9
|
-
export { NavListType, NavSectionType, NavItemType, } from "./types.js";
|
|
8
|
+
import { NavListType, NavSectionType, NavItemType, NavListSurfaceType, } from "./types.js";
|
|
9
|
+
export { NavListType, NavSectionType, NavItemType, NavListSurfaceType, } from "./types.js";
|
|
10
10
|
// ============================================================================
|
|
11
11
|
// NavList Factory
|
|
12
12
|
// ============================================================================
|
|
@@ -16,7 +16,7 @@ export { NavListType, NavSectionType, NavItemType, } from "./types.js";
|
|
|
16
16
|
* 3 px brand-d left rule, paper-2 card chrome).
|
|
17
17
|
*
|
|
18
18
|
* @param sections - Array of sections, each with optional label + items
|
|
19
|
-
* @param style - Optional
|
|
19
|
+
* @param style - Optional configuration (`onSelect`, `surface`, `background`)
|
|
20
20
|
* @returns An East expression representing the NavList
|
|
21
21
|
*
|
|
22
22
|
* @remarks
|
|
@@ -73,6 +73,12 @@ function createNavList(sections, style) {
|
|
|
73
73
|
return East.value(variant("NavList", {
|
|
74
74
|
sections: sectionsExpr,
|
|
75
75
|
onSelect: style?.onSelect ? some(style.onSelect) : none,
|
|
76
|
+
surface: style?.surface !== undefined
|
|
77
|
+
? some(typeof style.surface === "string"
|
|
78
|
+
? East.value(variant(style.surface, null), NavListSurfaceType)
|
|
79
|
+
: style.surface)
|
|
80
|
+
: none,
|
|
81
|
+
background: style?.background !== undefined ? some(style.background) : none,
|
|
76
82
|
}), UIComponentType);
|
|
77
83
|
}
|
|
78
84
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/navigation/nav-list/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEH,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,IAAI,GACP,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EACH,WAAW,EACX,cAAc,EACd,WAAW,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/navigation/nav-list/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEH,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,IAAI,GACP,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EACH,WAAW,EACX,cAAc,EACd,WAAW,EACX,kBAAkB,GAGrB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACH,WAAW,EACX,cAAc,EACd,WAAW,EACX,kBAAkB,GAKrB,MAAM,YAAY,CAAC;AAEpB,+EAA+E;AAC/E,kBAAkB;AAClB,+EAA+E;AAE/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,SAAS,aAAa,CAClB,QAA2B,EAC3B,KAAoB;IAEpB,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAC3B,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC;QACzB,KAAK,EAAE,CAAC,CAAC,KAAK,KAAK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YACjC,CAAC,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,OAAO,KAAK,QAAQ;gBACpC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE,kBAAkB,CAAC;gBAC9D,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC;YACpB,CAAC,CAAC,IAAI;QACV,UAAU,EAAE,KAAK,EAAE,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI;KAC9E,CAAC,EAAE,eAAe,CAAC,CAAC;AACzB,CAAC;AAWD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,OAAO,GAAqB;IACrC;;OAEG;IACH,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE;QACH;;;;;WAKG;QACH,OAAO,EAAE,WAAW;QACpB;;;;;WAKG;QACH,OAAO,EAAE,cAAc;QACvB;;;;;;;;WAQG;QACH,IAAI,EAAE,WAAW;KACpB;CACJ,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
3
|
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
4
|
*/
|
|
5
|
-
import { type SubtypeExprOrValue, OptionType, StructType, StringType, BooleanType, ArrayType, NullType, FunctionType } from "@elaraai/east";
|
|
5
|
+
import { type SubtypeExprOrValue, OptionType, StructType, StringType, BooleanType, ArrayType, NullType, FunctionType, VariantType } from "@elaraai/east";
|
|
6
6
|
/**
|
|
7
7
|
* East StructType for an individual nav item.
|
|
8
8
|
*
|
|
@@ -20,7 +20,7 @@ export declare const NavItemType: StructType<{
|
|
|
20
20
|
readonly prefix: StringType;
|
|
21
21
|
readonly label: OptionType<StringType>;
|
|
22
22
|
readonly style: OptionType<StructType<{
|
|
23
|
-
readonly size: OptionType<
|
|
23
|
+
readonly size: OptionType<VariantType<{
|
|
24
24
|
readonly xs: NullType;
|
|
25
25
|
readonly sm: NullType;
|
|
26
26
|
readonly md: NullType;
|
|
@@ -28,7 +28,7 @@ export declare const NavItemType: StructType<{
|
|
|
28
28
|
readonly xl: NullType;
|
|
29
29
|
readonly "2xl": NullType;
|
|
30
30
|
}>>;
|
|
31
|
-
readonly variant: OptionType<
|
|
31
|
+
readonly variant: OptionType<VariantType<{
|
|
32
32
|
readonly solid: NullType;
|
|
33
33
|
readonly regular: NullType;
|
|
34
34
|
readonly light: NullType;
|
|
@@ -37,7 +37,7 @@ export declare const NavItemType: StructType<{
|
|
|
37
37
|
}>>;
|
|
38
38
|
readonly color: OptionType<StringType>;
|
|
39
39
|
readonly background: OptionType<StringType>;
|
|
40
|
-
readonly colorPalette: OptionType<
|
|
40
|
+
readonly colorPalette: OptionType<VariantType<{
|
|
41
41
|
readonly gray: NullType;
|
|
42
42
|
readonly red: NullType;
|
|
43
43
|
readonly orange: NullType;
|
|
@@ -56,19 +56,19 @@ export declare const NavItemType: StructType<{
|
|
|
56
56
|
}>>;
|
|
57
57
|
readonly opacity: OptionType<import("@elaraai/east").FloatType>;
|
|
58
58
|
readonly borderRadius: OptionType<StringType>;
|
|
59
|
-
readonly overflow: OptionType<
|
|
59
|
+
readonly overflow: OptionType<VariantType<{
|
|
60
60
|
readonly visible: NullType;
|
|
61
61
|
readonly hidden: NullType;
|
|
62
62
|
readonly scroll: NullType;
|
|
63
63
|
readonly auto: NullType;
|
|
64
64
|
}>>;
|
|
65
|
-
readonly overflowX: OptionType<
|
|
65
|
+
readonly overflowX: OptionType<VariantType<{
|
|
66
66
|
readonly visible: NullType;
|
|
67
67
|
readonly hidden: NullType;
|
|
68
68
|
readonly scroll: NullType;
|
|
69
69
|
readonly auto: NullType;
|
|
70
70
|
}>>;
|
|
71
|
-
readonly overflowY: OptionType<
|
|
71
|
+
readonly overflowY: OptionType<VariantType<{
|
|
72
72
|
readonly visible: NullType;
|
|
73
73
|
readonly hidden: NullType;
|
|
74
74
|
readonly scroll: NullType;
|
|
@@ -138,7 +138,7 @@ export declare const NavSectionType: StructType<{
|
|
|
138
138
|
readonly prefix: StringType;
|
|
139
139
|
readonly label: OptionType<StringType>;
|
|
140
140
|
readonly style: OptionType<StructType<{
|
|
141
|
-
readonly size: OptionType<
|
|
141
|
+
readonly size: OptionType<VariantType<{
|
|
142
142
|
readonly xs: NullType;
|
|
143
143
|
readonly sm: NullType;
|
|
144
144
|
readonly md: NullType;
|
|
@@ -146,7 +146,7 @@ export declare const NavSectionType: StructType<{
|
|
|
146
146
|
readonly xl: NullType;
|
|
147
147
|
readonly "2xl": NullType;
|
|
148
148
|
}>>;
|
|
149
|
-
readonly variant: OptionType<
|
|
149
|
+
readonly variant: OptionType<VariantType<{
|
|
150
150
|
readonly solid: NullType;
|
|
151
151
|
readonly regular: NullType;
|
|
152
152
|
readonly light: NullType;
|
|
@@ -155,7 +155,7 @@ export declare const NavSectionType: StructType<{
|
|
|
155
155
|
}>>;
|
|
156
156
|
readonly color: OptionType<StringType>;
|
|
157
157
|
readonly background: OptionType<StringType>;
|
|
158
|
-
readonly colorPalette: OptionType<
|
|
158
|
+
readonly colorPalette: OptionType<VariantType<{
|
|
159
159
|
readonly gray: NullType;
|
|
160
160
|
readonly red: NullType;
|
|
161
161
|
readonly orange: NullType;
|
|
@@ -174,19 +174,19 @@ export declare const NavSectionType: StructType<{
|
|
|
174
174
|
}>>;
|
|
175
175
|
readonly opacity: OptionType<import("@elaraai/east").FloatType>;
|
|
176
176
|
readonly borderRadius: OptionType<StringType>;
|
|
177
|
-
readonly overflow: OptionType<
|
|
177
|
+
readonly overflow: OptionType<VariantType<{
|
|
178
178
|
readonly visible: NullType;
|
|
179
179
|
readonly hidden: NullType;
|
|
180
180
|
readonly scroll: NullType;
|
|
181
181
|
readonly auto: NullType;
|
|
182
182
|
}>>;
|
|
183
|
-
readonly overflowX: OptionType<
|
|
183
|
+
readonly overflowX: OptionType<VariantType<{
|
|
184
184
|
readonly visible: NullType;
|
|
185
185
|
readonly hidden: NullType;
|
|
186
186
|
readonly scroll: NullType;
|
|
187
187
|
readonly auto: NullType;
|
|
188
188
|
}>>;
|
|
189
|
-
readonly overflowY: OptionType<
|
|
189
|
+
readonly overflowY: OptionType<VariantType<{
|
|
190
190
|
readonly visible: NullType;
|
|
191
191
|
readonly hidden: NullType;
|
|
192
192
|
readonly scroll: NullType;
|
|
@@ -229,14 +229,42 @@ export interface NavSectionInput {
|
|
|
229
229
|
/** Items belonging to this section. */
|
|
230
230
|
items: NavItemInput[];
|
|
231
231
|
}
|
|
232
|
+
/**
|
|
233
|
+
* East VariantType for the `NavList` panel surface treatment.
|
|
234
|
+
*
|
|
235
|
+
* @property card - Standalone card chrome: fill, 1 px rule, radius, vertical padding
|
|
236
|
+
* @property shell - No chrome; the host rail owns fill + rule (app-shell sidebar)
|
|
237
|
+
*/
|
|
238
|
+
export declare const NavListSurfaceType: VariantType<{
|
|
239
|
+
readonly card: NullType;
|
|
240
|
+
readonly shell: NullType;
|
|
241
|
+
}>;
|
|
242
|
+
export type NavListSurfaceType = typeof NavListSurfaceType;
|
|
243
|
+
/** String shorthands accepted for {@link NavListStyle.surface}. */
|
|
244
|
+
export type NavListSurfaceLiteral = "card" | "shell";
|
|
232
245
|
/**
|
|
233
246
|
* TypeScript interface for `NavList` options.
|
|
234
247
|
*
|
|
235
248
|
* @property onSelect - Callback fired with the selected item's `key` when an item is clicked
|
|
249
|
+
* @property surface - Panel surface treatment (`card` card chrome, `shell` chrome-less)
|
|
250
|
+
* @property background - Panel background colour token or CSS colour
|
|
236
251
|
*/
|
|
237
252
|
export interface NavListStyle {
|
|
238
253
|
/** Callback fired with the selected item's `key` when an item is clicked. */
|
|
239
254
|
onSelect?: SubtypeExprOrValue<FunctionType<[StringType], NullType>>;
|
|
255
|
+
/**
|
|
256
|
+
* Panel surface treatment. `card` (default) keeps the standalone card
|
|
257
|
+
* chrome — fill, 1 px rule, radius, vertical padding. `shell` drops all of
|
|
258
|
+
* it so the list reads as one surface with a host app-shell rail that
|
|
259
|
+
* brings its own panel chrome.
|
|
260
|
+
*/
|
|
261
|
+
surface?: SubtypeExprOrValue<NavListSurfaceType> | NavListSurfaceLiteral;
|
|
262
|
+
/**
|
|
263
|
+
* Panel background — a Chakra colour token (`bg.subtle`, …) or CSS colour —
|
|
264
|
+
* so the list can inherit or blend with the host rail. Overrides the
|
|
265
|
+
* surface fill when set.
|
|
266
|
+
*/
|
|
267
|
+
background?: SubtypeExprOrValue<StringType>;
|
|
240
268
|
}
|
|
241
269
|
/**
|
|
242
270
|
* East StructType for `NavList` — grouped top-level navigation rendered
|
|
@@ -251,6 +279,8 @@ export interface NavListStyle {
|
|
|
251
279
|
*
|
|
252
280
|
* @property sections - Array of sections, each containing items
|
|
253
281
|
* @property onSelect - Callback fired with the selected item's `key`
|
|
282
|
+
* @property surface - Panel surface treatment (`card` card chrome, `shell` chrome-less)
|
|
283
|
+
* @property background - Panel background colour token or CSS colour
|
|
254
284
|
*/
|
|
255
285
|
export declare const NavListType: StructType<{
|
|
256
286
|
readonly sections: ArrayType<StructType<{
|
|
@@ -263,7 +293,7 @@ export declare const NavListType: StructType<{
|
|
|
263
293
|
readonly prefix: StringType;
|
|
264
294
|
readonly label: OptionType<StringType>;
|
|
265
295
|
readonly style: OptionType<StructType<{
|
|
266
|
-
readonly size: OptionType<
|
|
296
|
+
readonly size: OptionType<VariantType<{
|
|
267
297
|
readonly xs: NullType;
|
|
268
298
|
readonly sm: NullType;
|
|
269
299
|
readonly md: NullType;
|
|
@@ -271,7 +301,7 @@ export declare const NavListType: StructType<{
|
|
|
271
301
|
readonly xl: NullType;
|
|
272
302
|
readonly "2xl": NullType;
|
|
273
303
|
}>>;
|
|
274
|
-
readonly variant: OptionType<
|
|
304
|
+
readonly variant: OptionType<VariantType<{
|
|
275
305
|
readonly solid: NullType;
|
|
276
306
|
readonly regular: NullType;
|
|
277
307
|
readonly light: NullType;
|
|
@@ -280,7 +310,7 @@ export declare const NavListType: StructType<{
|
|
|
280
310
|
}>>;
|
|
281
311
|
readonly color: OptionType<StringType>;
|
|
282
312
|
readonly background: OptionType<StringType>;
|
|
283
|
-
readonly colorPalette: OptionType<
|
|
313
|
+
readonly colorPalette: OptionType<VariantType<{
|
|
284
314
|
readonly gray: NullType;
|
|
285
315
|
readonly red: NullType;
|
|
286
316
|
readonly orange: NullType;
|
|
@@ -299,19 +329,19 @@ export declare const NavListType: StructType<{
|
|
|
299
329
|
}>>;
|
|
300
330
|
readonly opacity: OptionType<import("@elaraai/east").FloatType>;
|
|
301
331
|
readonly borderRadius: OptionType<StringType>;
|
|
302
|
-
readonly overflow: OptionType<
|
|
332
|
+
readonly overflow: OptionType<VariantType<{
|
|
303
333
|
readonly visible: NullType;
|
|
304
334
|
readonly hidden: NullType;
|
|
305
335
|
readonly scroll: NullType;
|
|
306
336
|
readonly auto: NullType;
|
|
307
337
|
}>>;
|
|
308
|
-
readonly overflowX: OptionType<
|
|
338
|
+
readonly overflowX: OptionType<VariantType<{
|
|
309
339
|
readonly visible: NullType;
|
|
310
340
|
readonly hidden: NullType;
|
|
311
341
|
readonly scroll: NullType;
|
|
312
342
|
readonly auto: NullType;
|
|
313
343
|
}>>;
|
|
314
|
-
readonly overflowY: OptionType<
|
|
344
|
+
readonly overflowY: OptionType<VariantType<{
|
|
315
345
|
readonly visible: NullType;
|
|
316
346
|
readonly hidden: NullType;
|
|
317
347
|
readonly scroll: NullType;
|
|
@@ -342,6 +372,11 @@ export declare const NavListType: StructType<{
|
|
|
342
372
|
}>>;
|
|
343
373
|
}>>;
|
|
344
374
|
readonly onSelect: OptionType<FunctionType<[StringType], NullType>>;
|
|
375
|
+
readonly surface: OptionType<VariantType<{
|
|
376
|
+
readonly card: NullType;
|
|
377
|
+
readonly shell: NullType;
|
|
378
|
+
}>>;
|
|
379
|
+
readonly background: OptionType<StringType>;
|
|
345
380
|
}>;
|
|
346
381
|
/**
|
|
347
382
|
* Type alias for the NavList struct.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/navigation/nav-list/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,kBAAkB,EACvB,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,SAAS,EACT,QAAQ,EACR,YAAY,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/navigation/nav-list/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,kBAAkB,EACvB,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,WAAW,EACd,MAAM,eAAe,CAAC;AAQvB;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMtB,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC;AAE7C;;;;;;;;GAQG;AACH,MAAM,WAAW,YAAY;IACzB,wEAAwE;IACxE,GAAG,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IACpC,oBAAoB;IACpB,KAAK,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IACtC,0DAA0D;IAC1D,IAAI,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC,oCAAoC;IACpC,KAAK,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IACvC,6CAA6C;IAC7C,MAAM,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;CAC5C;AAMD;;;;;GAKG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGzB,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC;AAEnD;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC5B,gCAAgC;IAChC,KAAK,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IACvC,uCAAuC;IACvC,KAAK,EAAE,YAAY,EAAE,CAAC;CACzB;AAMD;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;;;EAG7B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC;AAE3D,mEAAmE;AACnE,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,OAAO,CAAC;AAMrD;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IACzB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC,UAAU,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;IACpE;;;;;OAKG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC,kBAAkB,CAAC,GAAG,qBAAqB,CAAC;IACzE;;;;OAIG;IACH,UAAU,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;CAC/C;AAMD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKtB,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
3
|
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
4
|
*/
|
|
5
|
-
import { OptionType, StructType, StringType, BooleanType, ArrayType, NullType, FunctionType, } from "@elaraai/east";
|
|
5
|
+
import { OptionType, StructType, StringType, BooleanType, ArrayType, NullType, FunctionType, VariantType, } from "@elaraai/east";
|
|
6
6
|
import { IconType } from "../../display/icon/types.js";
|
|
7
7
|
// ============================================================================
|
|
8
8
|
// NavItem
|
|
@@ -37,6 +37,19 @@ export const NavSectionType = StructType({
|
|
|
37
37
|
items: ArrayType(NavItemType),
|
|
38
38
|
});
|
|
39
39
|
// ============================================================================
|
|
40
|
+
// NavList Surface
|
|
41
|
+
// ============================================================================
|
|
42
|
+
/**
|
|
43
|
+
* East VariantType for the `NavList` panel surface treatment.
|
|
44
|
+
*
|
|
45
|
+
* @property card - Standalone card chrome: fill, 1 px rule, radius, vertical padding
|
|
46
|
+
* @property shell - No chrome; the host rail owns fill + rule (app-shell sidebar)
|
|
47
|
+
*/
|
|
48
|
+
export const NavListSurfaceType = VariantType({
|
|
49
|
+
card: NullType,
|
|
50
|
+
shell: NullType,
|
|
51
|
+
});
|
|
52
|
+
// ============================================================================
|
|
40
53
|
// NavList Type
|
|
41
54
|
// ============================================================================
|
|
42
55
|
/**
|
|
@@ -52,9 +65,13 @@ export const NavSectionType = StructType({
|
|
|
52
65
|
*
|
|
53
66
|
* @property sections - Array of sections, each containing items
|
|
54
67
|
* @property onSelect - Callback fired with the selected item's `key`
|
|
68
|
+
* @property surface - Panel surface treatment (`card` card chrome, `shell` chrome-less)
|
|
69
|
+
* @property background - Panel background colour token or CSS colour
|
|
55
70
|
*/
|
|
56
71
|
export const NavListType = StructType({
|
|
57
72
|
sections: ArrayType(NavSectionType),
|
|
58
73
|
onSelect: OptionType(FunctionType([StringType], NullType)),
|
|
74
|
+
surface: OptionType(NavListSurfaceType),
|
|
75
|
+
background: OptionType(StringType),
|
|
59
76
|
});
|
|
60
77
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/navigation/nav-list/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEH,UAAU,EACV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AAY,CAAC,CAAC,UAAU,CAAC,EAAE,QAAQ,CAAC,CAAC;IAC1D,OAAO,EAAE,UAAU,CAAC,kBAAkB,CAAC;IACvC,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC;CACrC,CAAC,CAAC"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* `<Table>` tag — see the export's JSDoc.
|
|
7
7
|
*/
|
|
8
8
|
import type { SubtypeExprOrValue, ArrayType, StructType } from "@elaraai/east";
|
|
9
|
-
import { Table as TableFactory, type ColumnSpec, type DataFieldKeys, type TableOptions } from "../../collections/table/index.js";
|
|
9
|
+
import { Table as TableFactory, type ColumnSpec, type DataFieldKeys, type DataRowType, type TableOptions } from "../../collections/table/index.js";
|
|
10
10
|
import type { UIElement } from "../runtime.js";
|
|
11
11
|
/**
|
|
12
12
|
* `<Table data={rows} columns={["name", "age"]} striped />` — schema-typed
|
|
@@ -17,7 +17,7 @@ import type { UIElement } from "../runtime.js";
|
|
|
17
17
|
declare function TableTag<T extends SubtypeExprOrValue<ArrayType<StructType>>>(props: {
|
|
18
18
|
data: T;
|
|
19
19
|
columns: ColumnSpec<T>;
|
|
20
|
-
} & TableOptions<DataFieldKeys<T>>): UIElement;
|
|
20
|
+
} & TableOptions<DataFieldKeys<T>, DataRowType<T>>): UIElement;
|
|
21
21
|
/**
|
|
22
22
|
* Schema-typed data table — renders an array of struct rows as columns. The
|
|
23
23
|
* row type drives everything: `columns` is a key list or a per-key config map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/runtime/collections/table.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EACH,KAAK,IAAI,YAAY,EACrB,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,YAAY,EACpB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C;;;;;GAKG;AACH,iBAAS,QAAQ,CAAC,CAAC,SAAS,kBAAkB,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,EACjE,KAAK,EAAE;IAAE,IAAI,EAAE,CAAC,CAAC;IAAC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,CAAA;CAAE,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/runtime/collections/table.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EACH,KAAK,IAAI,YAAY,EACrB,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,YAAY,EACpB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C;;;;;GAKG;AACH,iBAAS,QAAQ,CAAC,CAAC,SAAS,kBAAkB,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,EACjE,KAAK,EAAE;IAAE,IAAI,EAAE,CAAC,CAAC;IAAC,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,CAAA;CAAE,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,GAC5F,SAAS,CAOX;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,eAAO,MAAM,KAAK,EAAE,OAAO,QAAQ,GAAG;IAAE,KAAK,EAAE,OAAO,YAAY,CAAC,KAAK,CAAA;CACd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../../../src/runtime/collections/table.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH,OAAO,EACH,KAAK,IAAI,YAAY,
|
|
1
|
+
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../../../src/runtime/collections/table.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH,OAAO,EACH,KAAK,IAAI,YAAY,GAKxB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C;;;;;GAKG;AACH,SAAS,QAAQ,CACb,KAA2F;IAE3F,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,GAAG,KAAsE,CAAC;IAC7G,OAAO,YAAY,CAAC,IAAI,CACpB,IAAI,EACJ,OAAO,EACP,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAmD,CAC7F,CAAC;AACN,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,MAAM,CAAC,MAAM,KAAK,GACd,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
/** `<Image>` tag — a raster/vector image or logo. */
|
|
6
|
+
import { Image as ImageFactory } from "../../display/image/index.js";
|
|
7
|
+
import { type ValueProps, type JsxTag } from "../combinators.js";
|
|
8
|
+
/**
|
|
9
|
+
* A raster/vector image or logo, with fine-grained control over size, aspect
|
|
10
|
+
* ratio and object-fit. The required `source` prop is built with a source helper
|
|
11
|
+
* — `Image.url(url)` (hosted), `Image.dataUri(uri)` (self-contained base64), or
|
|
12
|
+
* `Image.blob(bytes, format)` (raw bytes) — and the rest are flat style props
|
|
13
|
+
* ({@link ImageStyle}: `alt`, `fit`, `aspectRatio`, `width`/`height`,
|
|
14
|
+
* `borderRadius`, …).
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* // .tsx file with the `@jsxImportSource @elaraai/east-ui` pragma
|
|
19
|
+
* import { East } from "@elaraai/east";
|
|
20
|
+
* import { Image, UIComponentType } from "@elaraai/east-ui";
|
|
21
|
+
*
|
|
22
|
+
* const logo = East.function([], UIComponentType, _$ => (
|
|
23
|
+
* <Image source={Image.url("https://example.com/logo.svg")} height="32px" fit="contain" alt="Acme" />
|
|
24
|
+
* ));
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* Carries `Image.Types` — the East data type, the source/format/fit variants, and
|
|
29
|
+
* the style struct. Desugars to `Image.Root(source, options)`.
|
|
30
|
+
*/
|
|
31
|
+
export declare const Image: JsxTag<ValueProps<typeof ImageFactory.Root, "source">> & {
|
|
32
|
+
Types: typeof ImageFactory.Types;
|
|
33
|
+
url: typeof ImageFactory.url;
|
|
34
|
+
dataUri: typeof ImageFactory.dataUri;
|
|
35
|
+
blob: typeof ImageFactory.blob;
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../src/runtime/display/image.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,qDAAqD;AAErD,OAAO,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAQ,KAAK,UAAU,EAAE,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEvE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,KAAK,EAAE,MAAM,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,GAAG;IACzE,KAAK,EAAE,OAAO,YAAY,CAAC,KAAK,CAAC;IACjC,GAAG,EAAE,OAAO,YAAY,CAAC,GAAG,CAAC;IAC7B,OAAO,EAAE,OAAO,YAAY,CAAC,OAAO,CAAC;IACrC,IAAI,EAAE,OAAO,YAAY,CAAC,IAAI,CAAC;CAMjC,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
/** `<Image>` tag — a raster/vector image or logo. */
|
|
6
|
+
import { Image as ImageFactory } from "../../display/image/index.js";
|
|
7
|
+
import { leaf } from "../combinators.js";
|
|
8
|
+
/**
|
|
9
|
+
* A raster/vector image or logo, with fine-grained control over size, aspect
|
|
10
|
+
* ratio and object-fit. The required `source` prop is built with a source helper
|
|
11
|
+
* — `Image.url(url)` (hosted), `Image.dataUri(uri)` (self-contained base64), or
|
|
12
|
+
* `Image.blob(bytes, format)` (raw bytes) — and the rest are flat style props
|
|
13
|
+
* ({@link ImageStyle}: `alt`, `fit`, `aspectRatio`, `width`/`height`,
|
|
14
|
+
* `borderRadius`, …).
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* // .tsx file with the `@jsxImportSource @elaraai/east-ui` pragma
|
|
19
|
+
* import { East } from "@elaraai/east";
|
|
20
|
+
* import { Image, UIComponentType } from "@elaraai/east-ui";
|
|
21
|
+
*
|
|
22
|
+
* const logo = East.function([], UIComponentType, _$ => (
|
|
23
|
+
* <Image source={Image.url("https://example.com/logo.svg")} height="32px" fit="contain" alt="Acme" />
|
|
24
|
+
* ));
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* Carries `Image.Types` — the East data type, the source/format/fit variants, and
|
|
29
|
+
* the style struct. Desugars to `Image.Root(source, options)`.
|
|
30
|
+
*/
|
|
31
|
+
export const Image = Object.assign(leaf(ImageFactory.Root, "source"), {
|
|
32
|
+
Types: ImageFactory.Types,
|
|
33
|
+
url: ImageFactory.url,
|
|
34
|
+
dataUri: ImageFactory.dataUri,
|
|
35
|
+
blob: ImageFactory.blob,
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=image.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.js","sourceRoot":"","sources":["../../../../src/runtime/display/image.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,qDAAqD;AAErD,OAAO,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,IAAI,EAAgC,MAAM,mBAAmB,CAAC;AAEvE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,MAAM,KAAK,GAKd,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE;IACjD,KAAK,EAAE,YAAY,CAAC,KAAK;IACzB,GAAG,EAAE,YAAY,CAAC,GAAG;IACrB,OAAO,EAAE,YAAY,CAAC,OAAO;IAC7B,IAAI,EAAE,YAAY,CAAC,IAAI;CAC1B,CAAC,CAAC"}
|
|
@@ -10,6 +10,7 @@ export { Kbd } from "./kbd.js";
|
|
|
10
10
|
export { EditableChip } from "./editable-chip.js";
|
|
11
11
|
export { MetricChip } from "./metric-chip.js";
|
|
12
12
|
export { Avatar } from "./avatar.js";
|
|
13
|
+
export { Image } from "./image.js";
|
|
13
14
|
export { AvatarGroup } from "./avatar-group.js";
|
|
14
15
|
export { BarStrip } from "./bar-strip.js";
|
|
15
16
|
export { SegmentedMeter } from "./segmented-meter.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/runtime/display/index.ts"],"names":[],"mappings":"A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;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -10,6 +10,7 @@ export { Kbd } from "./kbd.js";
|
|
|
10
10
|
export { EditableChip } from "./editable-chip.js";
|
|
11
11
|
export { MetricChip } from "./metric-chip.js";
|
|
12
12
|
export { Avatar } from "./avatar.js";
|
|
13
|
+
export { Image } from "./image.js";
|
|
13
14
|
export { AvatarGroup } from "./avatar-group.js";
|
|
14
15
|
export { BarStrip } from "./bar-strip.js";
|
|
15
16
|
export { SegmentedMeter } from "./segmented-meter.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/runtime/display/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,gDAAgD;AAEhD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/runtime/display/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,gDAAgD;AAEhD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export declare const lineBasic: import("@elaraai/east").ExampleDef<[], any>;
|
|
2
|
+
export declare const tooltipOverStickyTable: import("@elaraai/east").ExampleDef<[], any>;
|
|
3
|
+
export declare const columnStackedDiverging: import("@elaraai/east").ExampleDef<[], any>;
|
|
2
4
|
export declare const lineMultiColumns: import("@elaraai/east").ExampleDef<[], any>;
|
|
3
5
|
export declare const lineBreakdown: import("@elaraai/east").ExampleDef<[], any>;
|
|
4
6
|
export declare const lineCurveNatural: import("@elaraai/east").ExampleDef<[], any>;
|
|
@@ -10,6 +12,15 @@ export declare const lineNumericX: import("@elaraai/east").ExampleDef<[], any>;
|
|
|
10
12
|
export declare const lineIntegerDayTicks: import("@elaraai/east").ExampleDef<[], any>;
|
|
11
13
|
export declare const lineRuntimeDomain: import("@elaraai/east").ExampleDef<[], any>;
|
|
12
14
|
export declare const lineRuntimeTimeDomain: import("@elaraai/east").ExampleDef<[], any>;
|
|
15
|
+
/**
|
|
16
|
+
* Axis typography overrides (#315) — `tickStyle` / `titleStyle` on any axis
|
|
17
|
+
* restyle its tick labels and caption over the spec chrome (mono 11px,
|
|
18
|
+
* `fg.muted`): CSS font size, theme font family (`sans` / `serif` / `mono`),
|
|
19
|
+
* weight, colour token, and letter spacing. Here the weekday date ticks read
|
|
20
|
+
* in 12px sans `fg.default` and the y caption is a semibold sans eyebrow —
|
|
21
|
+
* the legibility treatment for a dense dashboard lane.
|
|
22
|
+
*/
|
|
23
|
+
export declare const axisTextStyled: import("@elaraai/east").ExampleDef<[], any>;
|
|
13
24
|
export declare const lineSampleFan: import("@elaraai/east").ExampleDef<[], any>;
|
|
14
25
|
export declare const columnBasic: import("@elaraai/east").ExampleDef<[], any>;
|
|
15
26
|
export declare const columnPerCategory: import("@elaraai/east").ExampleDef<[], any>;
|
|
@@ -30,4 +41,12 @@ export declare const composedDualAxisForecast: import("@elaraai/east").ExampleDe
|
|
|
30
41
|
export declare const referenceAnnotations: import("@elaraai/east").ExampleDef<[], any>;
|
|
31
42
|
export declare const axisFormatting: import("@elaraai/east").ExampleDef<[], any>;
|
|
32
43
|
export declare const interactiveValue: import("@elaraai/east").ExampleDef<[], any>;
|
|
44
|
+
/**
|
|
45
|
+
* Explicit Date ticks on a `time` axis (#318) — `tickValues` accepts
|
|
46
|
+
* `DateTime[]` positions on a time scale (previously float-only), rendered
|
|
47
|
+
* through the date `tickFormat`; pins ticks to exact instants (e.g. a stacked
|
|
48
|
+
* Planner's day-column starts under a shared AlignedStack gutter) instead of
|
|
49
|
+
* the scale's auto-chosen ones. Float `tickValues` on linear axes unchanged.
|
|
50
|
+
*/
|
|
51
|
+
export declare const chartTimeTickValues: import("@elaraai/east").ExampleDef<[], any>;
|
|
33
52
|
//# sourceMappingURL=chart.examples.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart.examples.d.ts","sourceRoot":"","sources":["../../../test/charts/chart.examples.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chart.examples.d.ts","sourceRoot":"","sources":["../../../test/charts/chart.examples.tsx"],"names":[],"mappings":"AAoBA,eAAO,MAAM,SAAS,6CAepB,CAAC;AAEH,eAAO,MAAM,sBAAsB,6CAmBjC,CAAC;AAEH,eAAO,MAAM,sBAAsB,6CAyBjC,CAAC;AAEH,eAAO,MAAM,gBAAgB,6CAe3B,CAAC;AAEH,eAAO,MAAM,aAAa,6CAgBxB,CAAC;AAEH,eAAO,MAAM,gBAAgB,6CAe3B,CAAC;AAEH,eAAO,MAAM,cAAc,6CAezB,CAAC;AAEH,eAAO,MAAM,qBAAqB,6CAehC,CAAC;AAEH,eAAO,MAAM,uBAAuB,6CAkBlC,CAAC;AAEH,eAAO,MAAM,YAAY,6CAoBvB,CAAC;AAEH,eAAO,MAAM,YAAY,6CAoBvB,CAAC;AAEH,eAAO,MAAM,mBAAmB,6CAoB9B,CAAC;AAEH,eAAO,MAAM,iBAAiB,6CAyB5B,CAAC;AAEH,eAAO,MAAM,qBAAqB,6CAuBhC,CAAC;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,6CAuBzB,CAAC;AAEH,eAAO,MAAM,aAAa,6CA6BxB,CA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