@elaraai/east-ui 0.0.1-beta.18 → 0.0.1-beta.19
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/buttons/button/index.d.ts +54 -54
- package/dist/src/buttons/button/types.d.ts +54 -54
- package/dist/src/buttons/icon-button/index.d.ts +55 -55
- package/dist/src/buttons/icon-button/types.d.ts +51 -51
- package/dist/src/charts/area/index.d.ts.map +1 -1
- package/dist/src/charts/area/index.js +13 -3
- package/dist/src/charts/area/index.js.map +1 -1
- package/dist/src/charts/area/types.d.ts +1464 -1454
- package/dist/src/charts/area/types.d.ts.map +1 -1
- package/dist/src/charts/area/types.js +1 -0
- package/dist/src/charts/area/types.js.map +1 -1
- package/dist/src/charts/bar/index.js +13 -3
- package/dist/src/charts/bar/index.js.map +1 -1
- package/dist/src/charts/bar/types.d.ts +736 -726
- package/dist/src/charts/bar/types.d.ts.map +1 -1
- package/dist/src/charts/bar/types.js +1 -0
- package/dist/src/charts/bar/types.js.map +1 -1
- package/dist/src/charts/bar-list/types.d.ts +168 -168
- package/dist/src/charts/bar-segment/types.d.ts +14 -14
- package/dist/src/charts/composed/index.d.ts.map +1 -1
- package/dist/src/charts/composed/index.js +12 -3
- package/dist/src/charts/composed/index.js.map +1 -1
- package/dist/src/charts/composed/types.d.ts +872 -849
- package/dist/src/charts/composed/types.d.ts.map +1 -1
- package/dist/src/charts/composed/types.js +1 -0
- package/dist/src/charts/composed/types.js.map +1 -1
- package/dist/src/charts/index.d.ts +5684 -5665
- package/dist/src/charts/index.d.ts.map +1 -1
- package/dist/src/charts/line/index.js +13 -3
- package/dist/src/charts/line/index.js.map +1 -1
- package/dist/src/charts/line/types.d.ts +750 -736
- package/dist/src/charts/line/types.d.ts.map +1 -1
- package/dist/src/charts/line/types.js +5 -1
- package/dist/src/charts/line/types.js.map +1 -1
- package/dist/src/charts/pie/types.d.ts +38 -38
- package/dist/src/charts/radar/index.d.ts.map +1 -1
- package/dist/src/charts/radar/index.js +1 -0
- package/dist/src/charts/radar/index.js.map +1 -1
- package/dist/src/charts/radar/types.d.ts +55 -54
- package/dist/src/charts/radar/types.d.ts.map +1 -1
- package/dist/src/charts/scatter/index.d.ts +3 -2
- package/dist/src/charts/scatter/index.d.ts.map +1 -1
- package/dist/src/charts/scatter/index.js +13 -39
- package/dist/src/charts/scatter/index.js.map +1 -1
- package/dist/src/charts/scatter/types.d.ts +721 -711
- package/dist/src/charts/scatter/types.d.ts.map +1 -1
- package/dist/src/charts/scatter/types.js +1 -0
- package/dist/src/charts/scatter/types.js.map +1 -1
- package/dist/src/charts/sparkline/index.d.ts +9 -9
- package/dist/src/charts/sparkline/types.d.ts +9 -9
- package/dist/src/charts/types.d.ts +844 -841
- package/dist/src/charts/types.d.ts.map +1 -1
- package/dist/src/charts/types.js +5 -0
- package/dist/src/charts/types.js.map +1 -1
- package/dist/src/collections/data-list/index.d.ts +35 -35
- package/dist/src/collections/data-list/types.d.ts +5 -5
- package/dist/src/collections/gantt/index.d.ts +721 -721
- package/dist/src/collections/gantt/types.d.ts +195 -195
- package/dist/src/collections/planner/index.d.ts +255 -255
- package/dist/src/collections/planner/types.d.ts +200 -200
- package/dist/src/collections/table/index.d.ts +396 -396
- package/dist/src/collections/table/types.d.ts +145 -145
- package/dist/src/collections/tree-view/index.d.ts +583 -583
- package/dist/src/collections/tree-view/types.d.ts +21 -21
- package/dist/src/component.d.ts +7519 -7505
- package/dist/src/component.d.ts.map +1 -1
- package/dist/src/container/card/index.d.ts +24 -24
- package/dist/src/container/card/types.d.ts +24 -24
- package/dist/src/disclosure/accordion/index.d.ts +29 -29
- package/dist/src/disclosure/accordion/types.d.ts +11 -11
- package/dist/src/disclosure/carousel/index.d.ts +6 -6
- package/dist/src/disclosure/carousel/types.d.ts +6 -6
- package/dist/src/disclosure/tabs/index.d.ts +126 -126
- package/dist/src/disclosure/tabs/types.d.ts +48 -48
- package/dist/src/display/avatar/index.d.ts +22 -22
- package/dist/src/display/avatar/types.d.ts +22 -22
- package/dist/src/display/badge/index.d.ts +24 -24
- package/dist/src/display/badge/types.d.ts +24 -24
- package/dist/src/display/icon/index.d.ts +64 -64
- package/dist/src/display/icon/types.d.ts +64 -64
- package/dist/src/display/stat/index.d.ts +8 -8
- package/dist/src/display/stat/types.d.ts +8 -8
- package/dist/src/display/tag/index.d.ts +30 -30
- package/dist/src/display/tag/types.d.ts +30 -30
- package/dist/src/feedback/alert/index.d.ts +18 -18
- package/dist/src/feedback/alert/types.d.ts +18 -18
- package/dist/src/feedback/progress/index.d.ts +28 -28
- package/dist/src/feedback/progress/types.d.ts +28 -28
- package/dist/src/forms/checkbox/index.d.ts +21 -21
- package/dist/src/forms/checkbox/types.d.ts +21 -21
- package/dist/src/forms/field/index.d.ts +294 -294
- package/dist/src/forms/field/types.d.ts +579 -579
- package/dist/src/forms/file-upload/index.d.ts +27 -27
- package/dist/src/forms/file-upload/types.d.ts +35 -35
- package/dist/src/forms/input/index.d.ts +102 -102
- package/dist/src/forms/input/types.d.ts +102 -102
- package/dist/src/forms/select/index.d.ts +19 -19
- package/dist/src/forms/select/types.d.ts +19 -19
- package/dist/src/forms/slider/index.d.ts +31 -31
- package/dist/src/forms/slider/types.d.ts +31 -31
- package/dist/src/forms/switch/index.d.ts +20 -20
- package/dist/src/forms/switch/types.d.ts +20 -20
- package/dist/src/forms/tags-input/index.d.ts +41 -41
- package/dist/src/forms/tags-input/types.d.ts +41 -41
- package/dist/src/forms/textarea/index.d.ts +30 -30
- package/dist/src/forms/textarea/types.d.ts +30 -30
- package/dist/src/layout/box/index.d.ts +70 -70
- package/dist/src/layout/box/types.d.ts +62 -62
- package/dist/src/layout/flex/index.d.ts +65 -65
- package/dist/src/layout/flex/types.d.ts +57 -57
- package/dist/src/layout/grid/index.d.ts +51 -51
- package/dist/src/layout/grid/types.d.ts +56 -56
- package/dist/src/layout/separator/index.d.ts +42 -42
- package/dist/src/layout/separator/types.d.ts +17 -17
- package/dist/src/layout/splitter/index.d.ts +9 -9
- package/dist/src/layout/splitter/types.d.ts +14 -14
- package/dist/src/layout/stack/index.d.ts +63 -63
- package/dist/src/layout/stack/types.d.ts +55 -55
- package/dist/src/layout/style.d.ts +8 -8
- package/dist/src/overlays/action-bar/index.d.ts +7 -7
- package/dist/src/overlays/action-bar/types.d.ts +7 -7
- package/dist/src/overlays/dialog/index.d.ts +49 -49
- package/dist/src/overlays/dialog/types.d.ts +49 -49
- package/dist/src/overlays/drawer/index.d.ts +25 -25
- package/dist/src/overlays/drawer/types.d.ts +25 -25
- package/dist/src/overlays/hover-card/index.d.ts +38 -38
- package/dist/src/overlays/hover-card/types.d.ts +26 -26
- package/dist/src/overlays/menu/index.d.ts +32 -32
- package/dist/src/overlays/menu/types.d.ts +20 -20
- package/dist/src/overlays/popover/index.d.ts +37 -37
- package/dist/src/overlays/popover/types.d.ts +25 -25
- package/dist/src/overlays/toggle-tip/index.d.ts +27 -27
- package/dist/src/overlays/toggle-tip/types.d.ts +15 -15
- package/dist/src/overlays/tooltip/index.d.ts +26 -26
- package/dist/src/overlays/tooltip/types.d.ts +26 -26
- package/dist/src/reactive/index.d.ts.map +1 -1
- package/dist/src/reactive/index.js +2 -2
- package/dist/src/reactive/index.js.map +1 -1
- package/dist/src/style.d.ts +87 -87
- package/dist/src/typography/code/index.d.ts +14 -14
- package/dist/src/typography/code/types.d.ts +14 -14
- package/dist/src/typography/code-block/index.d.ts +36 -36
- package/dist/src/typography/code-block/types.d.ts +36 -36
- package/dist/src/typography/heading/index.d.ts +41 -41
- package/dist/src/typography/heading/types.d.ts +41 -41
- package/dist/src/typography/highlight/index.d.ts +3 -3
- package/dist/src/typography/highlight/types.d.ts +3 -3
- package/dist/src/typography/link/index.d.ts +9 -9
- package/dist/src/typography/link/types.d.ts +9 -9
- package/dist/src/typography/list/index.d.ts +8 -8
- package/dist/src/typography/list/types.d.ts +8 -8
- package/dist/src/typography/mark/index.d.ts +11 -11
- package/dist/src/typography/mark/types.d.ts +11 -11
- package/dist/src/typography/text/index.d.ts +53 -53
- package/dist/src/typography/text/types.d.ts +53 -53
- package/package.json +2 -2
|
@@ -13,23 +13,23 @@ export { PlacementType, type PlacementLiteral } from "../tooltip/types.js";
|
|
|
13
13
|
* @property onOpenChange - Callback triggered when open state changes
|
|
14
14
|
*/
|
|
15
15
|
export declare const ToggleTipStyleType: StructType<{
|
|
16
|
-
placement: OptionType<import("@elaraai/east").VariantType<{
|
|
17
|
-
top: NullType;
|
|
18
|
-
"top-start": NullType;
|
|
19
|
-
"top-end": NullType;
|
|
20
|
-
bottom: NullType;
|
|
21
|
-
"bottom-start": NullType;
|
|
22
|
-
"bottom-end": NullType;
|
|
23
|
-
left: NullType;
|
|
24
|
-
"left-start": NullType;
|
|
25
|
-
"left-end": NullType;
|
|
26
|
-
right: NullType;
|
|
27
|
-
"right-start": NullType;
|
|
28
|
-
"right-end": NullType;
|
|
16
|
+
readonly placement: OptionType<import("@elaraai/east").VariantType<{
|
|
17
|
+
readonly top: NullType;
|
|
18
|
+
readonly "top-start": NullType;
|
|
19
|
+
readonly "top-end": NullType;
|
|
20
|
+
readonly bottom: NullType;
|
|
21
|
+
readonly "bottom-start": NullType;
|
|
22
|
+
readonly "bottom-end": NullType;
|
|
23
|
+
readonly left: NullType;
|
|
24
|
+
readonly "left-start": NullType;
|
|
25
|
+
readonly "left-end": NullType;
|
|
26
|
+
readonly right: NullType;
|
|
27
|
+
readonly "right-start": NullType;
|
|
28
|
+
readonly "right-end": NullType;
|
|
29
29
|
}>>;
|
|
30
|
-
hasArrow: OptionType<BooleanType>;
|
|
30
|
+
readonly hasArrow: OptionType<BooleanType>;
|
|
31
31
|
/** Callback triggered when open state changes */
|
|
32
|
-
onOpenChange: OptionType<FunctionType<[BooleanType], NullType>>;
|
|
32
|
+
readonly onOpenChange: OptionType<FunctionType<[BooleanType], NullType>>;
|
|
33
33
|
}>;
|
|
34
34
|
export type ToggleTipStyleType = typeof ToggleTipStyleType;
|
|
35
35
|
/**
|
|
@@ -129,21 +129,21 @@ export declare const Tooltip: {
|
|
|
129
129
|
* @property hasArrow - Show arrow pointing to trigger (OptionType<BooleanType>)
|
|
130
130
|
*/
|
|
131
131
|
readonly Style: StructType<{
|
|
132
|
-
placement: OptionType<import("@elaraai/east").VariantType<{
|
|
133
|
-
top: import("@elaraai/east").NullType;
|
|
134
|
-
"top-start": import("@elaraai/east").NullType;
|
|
135
|
-
"top-end": import("@elaraai/east").NullType;
|
|
136
|
-
bottom: import("@elaraai/east").NullType;
|
|
137
|
-
"bottom-start": import("@elaraai/east").NullType;
|
|
138
|
-
"bottom-end": import("@elaraai/east").NullType;
|
|
139
|
-
left: import("@elaraai/east").NullType;
|
|
140
|
-
"left-start": import("@elaraai/east").NullType;
|
|
141
|
-
"left-end": import("@elaraai/east").NullType;
|
|
142
|
-
right: import("@elaraai/east").NullType;
|
|
143
|
-
"right-start": import("@elaraai/east").NullType;
|
|
144
|
-
"right-end": import("@elaraai/east").NullType;
|
|
132
|
+
readonly placement: OptionType<import("@elaraai/east").VariantType<{
|
|
133
|
+
readonly top: import("@elaraai/east").NullType;
|
|
134
|
+
readonly "top-start": import("@elaraai/east").NullType;
|
|
135
|
+
readonly "top-end": import("@elaraai/east").NullType;
|
|
136
|
+
readonly bottom: import("@elaraai/east").NullType;
|
|
137
|
+
readonly "bottom-start": import("@elaraai/east").NullType;
|
|
138
|
+
readonly "bottom-end": import("@elaraai/east").NullType;
|
|
139
|
+
readonly left: import("@elaraai/east").NullType;
|
|
140
|
+
readonly "left-start": import("@elaraai/east").NullType;
|
|
141
|
+
readonly "left-end": import("@elaraai/east").NullType;
|
|
142
|
+
readonly right: import("@elaraai/east").NullType;
|
|
143
|
+
readonly "right-start": import("@elaraai/east").NullType;
|
|
144
|
+
readonly "right-end": import("@elaraai/east").NullType;
|
|
145
145
|
}>>;
|
|
146
|
-
hasArrow: OptionType<BooleanType>;
|
|
146
|
+
readonly hasArrow: OptionType<BooleanType>;
|
|
147
147
|
}>;
|
|
148
148
|
/**
|
|
149
149
|
* Placement variant type for Tooltip positioning.
|
|
@@ -166,18 +166,18 @@ export declare const Tooltip: {
|
|
|
166
166
|
* @property right-end - Right, aligned to end
|
|
167
167
|
*/
|
|
168
168
|
readonly Placement: import("@elaraai/east").VariantType<{
|
|
169
|
-
top: import("@elaraai/east").NullType;
|
|
170
|
-
"top-start": import("@elaraai/east").NullType;
|
|
171
|
-
"top-end": import("@elaraai/east").NullType;
|
|
172
|
-
bottom: import("@elaraai/east").NullType;
|
|
173
|
-
"bottom-start": import("@elaraai/east").NullType;
|
|
174
|
-
"bottom-end": import("@elaraai/east").NullType;
|
|
175
|
-
left: import("@elaraai/east").NullType;
|
|
176
|
-
"left-start": import("@elaraai/east").NullType;
|
|
177
|
-
"left-end": import("@elaraai/east").NullType;
|
|
178
|
-
right: import("@elaraai/east").NullType;
|
|
179
|
-
"right-start": import("@elaraai/east").NullType;
|
|
180
|
-
"right-end": import("@elaraai/east").NullType;
|
|
169
|
+
readonly top: import("@elaraai/east").NullType;
|
|
170
|
+
readonly "top-start": import("@elaraai/east").NullType;
|
|
171
|
+
readonly "top-end": import("@elaraai/east").NullType;
|
|
172
|
+
readonly bottom: import("@elaraai/east").NullType;
|
|
173
|
+
readonly "bottom-start": import("@elaraai/east").NullType;
|
|
174
|
+
readonly "bottom-end": import("@elaraai/east").NullType;
|
|
175
|
+
readonly left: import("@elaraai/east").NullType;
|
|
176
|
+
readonly "left-start": import("@elaraai/east").NullType;
|
|
177
|
+
readonly "left-end": import("@elaraai/east").NullType;
|
|
178
|
+
readonly right: import("@elaraai/east").NullType;
|
|
179
|
+
readonly "right-start": import("@elaraai/east").NullType;
|
|
180
|
+
readonly "right-end": import("@elaraai/east").NullType;
|
|
181
181
|
}>;
|
|
182
182
|
};
|
|
183
183
|
};
|
|
@@ -25,29 +25,29 @@ import { type ExprType, type SubtypeExprOrValue, OptionType, StructType, NullTyp
|
|
|
25
25
|
*/
|
|
26
26
|
export declare const PlacementType: VariantType<{
|
|
27
27
|
/** Centered above the trigger */
|
|
28
|
-
top: NullType;
|
|
28
|
+
readonly top: NullType;
|
|
29
29
|
/** Above, aligned to start */
|
|
30
|
-
"top-start": NullType;
|
|
30
|
+
readonly "top-start": NullType;
|
|
31
31
|
/** Above, aligned to end */
|
|
32
|
-
"top-end": NullType;
|
|
32
|
+
readonly "top-end": NullType;
|
|
33
33
|
/** Centered below the trigger */
|
|
34
|
-
bottom: NullType;
|
|
34
|
+
readonly bottom: NullType;
|
|
35
35
|
/** Below, aligned to start */
|
|
36
|
-
"bottom-start": NullType;
|
|
36
|
+
readonly "bottom-start": NullType;
|
|
37
37
|
/** Below, aligned to end */
|
|
38
|
-
"bottom-end": NullType;
|
|
38
|
+
readonly "bottom-end": NullType;
|
|
39
39
|
/** Centered to the left */
|
|
40
|
-
left: NullType;
|
|
40
|
+
readonly left: NullType;
|
|
41
41
|
/** Left, aligned to start */
|
|
42
|
-
"left-start": NullType;
|
|
42
|
+
readonly "left-start": NullType;
|
|
43
43
|
/** Left, aligned to end */
|
|
44
|
-
"left-end": NullType;
|
|
44
|
+
readonly "left-end": NullType;
|
|
45
45
|
/** Centered to the right */
|
|
46
|
-
right: NullType;
|
|
46
|
+
readonly right: NullType;
|
|
47
47
|
/** Right, aligned to start */
|
|
48
|
-
"right-start": NullType;
|
|
48
|
+
readonly "right-start": NullType;
|
|
49
49
|
/** Right, aligned to end */
|
|
50
|
-
"right-end": NullType;
|
|
50
|
+
readonly "right-end": NullType;
|
|
51
51
|
}>;
|
|
52
52
|
/**
|
|
53
53
|
* Type representing the Placement structure.
|
|
@@ -92,33 +92,33 @@ export declare function Placement(placement: PlacementLiteral): ExprType<Placeme
|
|
|
92
92
|
* @property hasArrow - Whether to show an arrow pointing to the trigger
|
|
93
93
|
*/
|
|
94
94
|
export declare const TooltipStyleType: StructType<{
|
|
95
|
-
placement: OptionType<VariantType<{
|
|
95
|
+
readonly placement: OptionType<VariantType<{
|
|
96
96
|
/** Centered above the trigger */
|
|
97
|
-
top: NullType;
|
|
97
|
+
readonly top: NullType;
|
|
98
98
|
/** Above, aligned to start */
|
|
99
|
-
"top-start": NullType;
|
|
99
|
+
readonly "top-start": NullType;
|
|
100
100
|
/** Above, aligned to end */
|
|
101
|
-
"top-end": NullType;
|
|
101
|
+
readonly "top-end": NullType;
|
|
102
102
|
/** Centered below the trigger */
|
|
103
|
-
bottom: NullType;
|
|
103
|
+
readonly bottom: NullType;
|
|
104
104
|
/** Below, aligned to start */
|
|
105
|
-
"bottom-start": NullType;
|
|
105
|
+
readonly "bottom-start": NullType;
|
|
106
106
|
/** Below, aligned to end */
|
|
107
|
-
"bottom-end": NullType;
|
|
107
|
+
readonly "bottom-end": NullType;
|
|
108
108
|
/** Centered to the left */
|
|
109
|
-
left: NullType;
|
|
109
|
+
readonly left: NullType;
|
|
110
110
|
/** Left, aligned to start */
|
|
111
|
-
"left-start": NullType;
|
|
111
|
+
readonly "left-start": NullType;
|
|
112
112
|
/** Left, aligned to end */
|
|
113
|
-
"left-end": NullType;
|
|
113
|
+
readonly "left-end": NullType;
|
|
114
114
|
/** Centered to the right */
|
|
115
|
-
right: NullType;
|
|
115
|
+
readonly right: NullType;
|
|
116
116
|
/** Right, aligned to start */
|
|
117
|
-
"right-start": NullType;
|
|
117
|
+
readonly "right-start": NullType;
|
|
118
118
|
/** Right, aligned to end */
|
|
119
|
-
"right-end": NullType;
|
|
119
|
+
readonly "right-end": NullType;
|
|
120
120
|
}>>;
|
|
121
|
-
hasArrow: OptionType<BooleanType>;
|
|
121
|
+
readonly hasArrow: OptionType<BooleanType>;
|
|
122
122
|
}>;
|
|
123
123
|
/**
|
|
124
124
|
* Type representing the TooltipStyle structure.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/reactive/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEH,KAAK,QAAQ,EACb,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/reactive/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEH,KAAK,QAAQ,EACb,KAAK,YAAY,EAGpB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAOlD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,iBAAS,cAAc,CACnB,IAAI,EAAE,CAAC,CAAC,EAAE,YAAY,CAAC,OAAO,eAAe,CAAC,KAAK,QAAQ,CAAC,OAAO,eAAe,CAAC,GAAG,IAAI,GAC3F,QAAQ,CAAC,OAAO,eAAe,CAAC,CAuBlC;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,QAAQ;IACjB;;;;;;;OAOG;;CAEG,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 { East, variant,
|
|
5
|
+
import { East, variant, printLocations } from "@elaraai/east";
|
|
6
6
|
import { UIComponentType } from "../component.js";
|
|
7
7
|
import { OutOfScopeException } from "@elaraai/east/internal";
|
|
8
8
|
// ============================================================================
|
|
@@ -58,7 +58,7 @@ function createReactive(body) {
|
|
|
58
58
|
catch (e) {
|
|
59
59
|
if (e instanceof OutOfScopeException) {
|
|
60
60
|
throw new Error(`Reactive.Root body must be a free function with no captures from parent scope. ` +
|
|
61
|
-
`Found capture from variable defined at ${
|
|
61
|
+
`Found capture from variable defined at ${printLocations(e.definedLocation)}. ` +
|
|
62
62
|
`Move state reads inside the Reactive body or use State for shared data.`);
|
|
63
63
|
}
|
|
64
64
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/reactive/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,IAAI,EAGJ,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/reactive/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,IAAI,EAGJ,OAAO,EACP,cAAc,EACjB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,+EAA+E;AAC/E,6BAA6B;AAC7B,+EAA+E;AAE/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,SAAS,cAAc,CACnB,IAA0F;IAE1F,mCAAmC;IACnC,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,eAAe,EAAE,IAAI,CAAC,CAAC;IAE1D,wDAAwD;IACxD,IAAI,CAAC;QACD,QAAQ,CAAC,IAAI,EAAE,CAAC;IACpB,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACT,IAAI,CAAC,YAAY,mBAAmB,EAAE,CAAC;YACnC,MAAM,IAAI,KAAK,CACX,iFAAiF;gBACjF,0CAA0C,cAAc,CAAC,CAAC,CAAC,eAAe,CAAC,IAAI;gBAC/E,yEAAyE,CAC5E,CAAC;QACN,CAAC;aAAM,CAAC;YACJ,MAAM,CAAC,CAAC;QACZ,CAAC;IACL,CAAC;IAED,uCAAuC;IACvC,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,mBAAmB,EAAE;QAC3C,MAAM,EAAE,QAAQ;KACnB,CAAC,EAAE,eAAe,CAAC,CAAC;AACzB,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG;IACpB;;;;;;;OAOG;IACH,IAAI,EAAE,cAAc;CACd,CAAC"}
|
package/dist/src/style.d.ts
CHANGED
|
@@ -17,11 +17,11 @@ import { NullType, VariantType, type ExprType } from "@elaraai/east";
|
|
|
17
17
|
* @property light - Light font weight (typically 300 in CSS)
|
|
18
18
|
*/
|
|
19
19
|
export declare const FontWeightType: VariantType<{
|
|
20
|
-
normal: NullType;
|
|
21
|
-
bold: NullType;
|
|
22
|
-
semibold: NullType;
|
|
23
|
-
medium: NullType;
|
|
24
|
-
light: NullType;
|
|
20
|
+
readonly normal: NullType;
|
|
21
|
+
readonly bold: NullType;
|
|
22
|
+
readonly semibold: NullType;
|
|
23
|
+
readonly medium: NullType;
|
|
24
|
+
readonly light: NullType;
|
|
25
25
|
}>;
|
|
26
26
|
/**
|
|
27
27
|
* Type representing font weight variant values.
|
|
@@ -65,8 +65,8 @@ export declare function FontWeight(weight: "normal" | "bold" | "semibold" | "med
|
|
|
65
65
|
* @property italic - Italic (slanted) text style
|
|
66
66
|
*/
|
|
67
67
|
export declare const FontStyleType: VariantType<{
|
|
68
|
-
normal: NullType;
|
|
69
|
-
italic: NullType;
|
|
68
|
+
readonly normal: NullType;
|
|
69
|
+
readonly italic: NullType;
|
|
70
70
|
}>;
|
|
71
71
|
/**
|
|
72
72
|
* Type representing font style variant values.
|
|
@@ -102,10 +102,10 @@ export declare function FontStyle(style: "normal" | "italic"): ExprType<FontStyl
|
|
|
102
102
|
* @property justify - Justify text to fill the full width
|
|
103
103
|
*/
|
|
104
104
|
export declare const TextAlignType: VariantType<{
|
|
105
|
-
left: NullType;
|
|
106
|
-
center: NullType;
|
|
107
|
-
right: NullType;
|
|
108
|
-
justify: NullType;
|
|
105
|
+
readonly left: NullType;
|
|
106
|
+
readonly center: NullType;
|
|
107
|
+
readonly right: NullType;
|
|
108
|
+
readonly justify: NullType;
|
|
109
109
|
}>;
|
|
110
110
|
/**
|
|
111
111
|
* Type representing text alignment variant values.
|
|
@@ -141,10 +141,10 @@ export declare function TextAlign(align: "left" | "center" | "right" | "justify"
|
|
|
141
141
|
* @property thick - Thick border (4px)
|
|
142
142
|
*/
|
|
143
143
|
export declare const BorderWidthType: VariantType<{
|
|
144
|
-
none: NullType;
|
|
145
|
-
thin: NullType;
|
|
146
|
-
medium: NullType;
|
|
147
|
-
thick: NullType;
|
|
144
|
+
readonly none: NullType;
|
|
145
|
+
readonly thin: NullType;
|
|
146
|
+
readonly medium: NullType;
|
|
147
|
+
readonly thick: NullType;
|
|
148
148
|
}>;
|
|
149
149
|
/**
|
|
150
150
|
* Type representing border width variant values.
|
|
@@ -181,11 +181,11 @@ export declare function BorderWidth(width: "none" | "thin" | "medium" | "thick")
|
|
|
181
181
|
* @property none - No border
|
|
182
182
|
*/
|
|
183
183
|
export declare const BorderStyleType: VariantType<{
|
|
184
|
-
solid: NullType;
|
|
185
|
-
dashed: NullType;
|
|
186
|
-
dotted: NullType;
|
|
187
|
-
double: NullType;
|
|
188
|
-
none: NullType;
|
|
184
|
+
readonly solid: NullType;
|
|
185
|
+
readonly dashed: NullType;
|
|
186
|
+
readonly dotted: NullType;
|
|
187
|
+
readonly double: NullType;
|
|
188
|
+
readonly none: NullType;
|
|
189
189
|
}>;
|
|
190
190
|
/**
|
|
191
191
|
* Type representing border style variant values.
|
|
@@ -220,9 +220,9 @@ export declare function BorderStyle(style: "solid" | "dashed" | "dotted" | "doub
|
|
|
220
220
|
* @property unstyled - No default styling
|
|
221
221
|
*/
|
|
222
222
|
export declare const TableVariantType: VariantType<{
|
|
223
|
-
simple: NullType;
|
|
224
|
-
striped: NullType;
|
|
225
|
-
unstyled: NullType;
|
|
223
|
+
readonly simple: NullType;
|
|
224
|
+
readonly striped: NullType;
|
|
225
|
+
readonly unstyled: NullType;
|
|
226
226
|
}>;
|
|
227
227
|
/**
|
|
228
228
|
* Type representing table variant values.
|
|
@@ -258,10 +258,10 @@ export declare function TableVariant(variant_: "simple" | "striped" | "unstyled"
|
|
|
258
258
|
* @property lg - Large size with generous spacing
|
|
259
259
|
*/
|
|
260
260
|
export declare const SizeType: VariantType<{
|
|
261
|
-
xs: NullType;
|
|
262
|
-
sm: NullType;
|
|
263
|
-
md: NullType;
|
|
264
|
-
lg: NullType;
|
|
261
|
+
readonly xs: NullType;
|
|
262
|
+
readonly sm: NullType;
|
|
263
|
+
readonly md: NullType;
|
|
264
|
+
readonly lg: NullType;
|
|
265
265
|
}>;
|
|
266
266
|
/**
|
|
267
267
|
* Type representing size variant values.
|
|
@@ -303,16 +303,16 @@ export declare function Size(size: "xs" | "sm" | "md" | "lg"): ExprType<SizeType
|
|
|
303
303
|
* @property pink - Pink color scheme
|
|
304
304
|
*/
|
|
305
305
|
export declare const ColorSchemeType: VariantType<{
|
|
306
|
-
gray: NullType;
|
|
307
|
-
red: NullType;
|
|
308
|
-
orange: NullType;
|
|
309
|
-
yellow: NullType;
|
|
310
|
-
green: NullType;
|
|
311
|
-
teal: NullType;
|
|
312
|
-
blue: NullType;
|
|
313
|
-
cyan: NullType;
|
|
314
|
-
purple: NullType;
|
|
315
|
-
pink: NullType;
|
|
306
|
+
readonly gray: NullType;
|
|
307
|
+
readonly red: NullType;
|
|
308
|
+
readonly orange: NullType;
|
|
309
|
+
readonly yellow: NullType;
|
|
310
|
+
readonly green: NullType;
|
|
311
|
+
readonly teal: NullType;
|
|
312
|
+
readonly blue: NullType;
|
|
313
|
+
readonly cyan: NullType;
|
|
314
|
+
readonly purple: NullType;
|
|
315
|
+
readonly pink: NullType;
|
|
316
316
|
}>;
|
|
317
317
|
/**
|
|
318
318
|
* Type representing color scheme variant values.
|
|
@@ -348,10 +348,10 @@ export declare function ColorScheme(scheme: "gray" | "red" | "orange" | "yellow"
|
|
|
348
348
|
* @property none - No text transformation
|
|
349
349
|
*/
|
|
350
350
|
export declare const TextTransformType: VariantType<{
|
|
351
|
-
uppercase: NullType;
|
|
352
|
-
lowercase: NullType;
|
|
353
|
-
capitalize: NullType;
|
|
354
|
-
none: NullType;
|
|
351
|
+
readonly uppercase: NullType;
|
|
352
|
+
readonly lowercase: NullType;
|
|
353
|
+
readonly capitalize: NullType;
|
|
354
|
+
readonly none: NullType;
|
|
355
355
|
}>;
|
|
356
356
|
/**
|
|
357
357
|
* Type representing text transform variant values.
|
|
@@ -386,9 +386,9 @@ export declare function TextTransform(transform: "uppercase" | "lowercase" | "ca
|
|
|
386
386
|
* @property outline - Transparent background with colored border
|
|
387
387
|
*/
|
|
388
388
|
export declare const StyleVariantType: VariantType<{
|
|
389
|
-
subtle: NullType;
|
|
390
|
-
solid: NullType;
|
|
391
|
-
outline: NullType;
|
|
389
|
+
readonly subtle: NullType;
|
|
390
|
+
readonly solid: NullType;
|
|
391
|
+
readonly outline: NullType;
|
|
392
392
|
}>;
|
|
393
393
|
/**
|
|
394
394
|
* Type representing badge variant values.
|
|
@@ -422,8 +422,8 @@ export declare function StyleVariant(variant_: "subtle" | "solid" | "outline"):
|
|
|
422
422
|
* @property vertical - Vertical layout (top to bottom)
|
|
423
423
|
*/
|
|
424
424
|
export declare const OrientationType: VariantType<{
|
|
425
|
-
horizontal: NullType;
|
|
426
|
-
vertical: NullType;
|
|
425
|
+
readonly horizontal: NullType;
|
|
426
|
+
readonly vertical: NullType;
|
|
427
427
|
}>;
|
|
428
428
|
/**
|
|
429
429
|
* Type representing orientation variant values.
|
|
@@ -459,10 +459,10 @@ export declare function Orientation(orientation: "horizontal" | "vertical"): Exp
|
|
|
459
459
|
* @property column-reverse - Column direction reversed (vertical, bottom to top)
|
|
460
460
|
*/
|
|
461
461
|
export declare const FlexDirectionType: VariantType<{
|
|
462
|
-
row: NullType;
|
|
463
|
-
column: NullType;
|
|
464
|
-
"row-reverse": NullType;
|
|
465
|
-
"column-reverse": NullType;
|
|
462
|
+
readonly row: NullType;
|
|
463
|
+
readonly column: NullType;
|
|
464
|
+
readonly "row-reverse": NullType;
|
|
465
|
+
readonly "column-reverse": NullType;
|
|
466
466
|
}>;
|
|
467
467
|
/**
|
|
468
468
|
* Type representing flex direction variant values.
|
|
@@ -493,12 +493,12 @@ export declare function FlexDirection(direction: "row" | "column" | "row-reverse
|
|
|
493
493
|
* @property space-evenly - Distribute items with equal space
|
|
494
494
|
*/
|
|
495
495
|
export declare const JustifyContentType: VariantType<{
|
|
496
|
-
"flex-start": NullType;
|
|
497
|
-
"flex-end": NullType;
|
|
498
|
-
center: NullType;
|
|
499
|
-
"space-between": NullType;
|
|
500
|
-
"space-around": NullType;
|
|
501
|
-
"space-evenly": NullType;
|
|
496
|
+
readonly "flex-start": NullType;
|
|
497
|
+
readonly "flex-end": NullType;
|
|
498
|
+
readonly center: NullType;
|
|
499
|
+
readonly "space-between": NullType;
|
|
500
|
+
readonly "space-around": NullType;
|
|
501
|
+
readonly "space-evenly": NullType;
|
|
502
502
|
}>;
|
|
503
503
|
/**
|
|
504
504
|
* Type representing justify content variant values.
|
|
@@ -528,11 +528,11 @@ export declare function JustifyContent(justify: "flex-start" | "flex-end" | "cen
|
|
|
528
528
|
* @property stretch - Stretch items to fill the container
|
|
529
529
|
*/
|
|
530
530
|
export declare const AlignItemsType: VariantType<{
|
|
531
|
-
"flex-start": NullType;
|
|
532
|
-
"flex-end": NullType;
|
|
533
|
-
center: NullType;
|
|
534
|
-
baseline: NullType;
|
|
535
|
-
stretch: NullType;
|
|
531
|
+
readonly "flex-start": NullType;
|
|
532
|
+
readonly "flex-end": NullType;
|
|
533
|
+
readonly center: NullType;
|
|
534
|
+
readonly baseline: NullType;
|
|
535
|
+
readonly stretch: NullType;
|
|
536
536
|
}>;
|
|
537
537
|
/**
|
|
538
538
|
* Type representing align items variant values.
|
|
@@ -560,9 +560,9 @@ export declare function AlignItems(align: "flex-start" | "flex-end" | "center" |
|
|
|
560
560
|
* @property wrap-reverse - Items wrap in reverse order
|
|
561
561
|
*/
|
|
562
562
|
export declare const FlexWrapType: VariantType<{
|
|
563
|
-
nowrap: NullType;
|
|
564
|
-
wrap: NullType;
|
|
565
|
-
"wrap-reverse": NullType;
|
|
563
|
+
readonly nowrap: NullType;
|
|
564
|
+
readonly wrap: NullType;
|
|
565
|
+
readonly "wrap-reverse": NullType;
|
|
566
566
|
}>;
|
|
567
567
|
/**
|
|
568
568
|
* Type representing flex wrap variant values.
|
|
@@ -602,14 +602,14 @@ export declare function FlexWrap(wrap: "nowrap" | "wrap" | "wrap-reverse"): Expr
|
|
|
602
602
|
* @property none - Hidden element
|
|
603
603
|
*/
|
|
604
604
|
export declare const DisplayType: VariantType<{
|
|
605
|
-
block: NullType;
|
|
606
|
-
inline: NullType;
|
|
607
|
-
"inline-block": NullType;
|
|
608
|
-
flex: NullType;
|
|
609
|
-
"inline-flex": NullType;
|
|
610
|
-
grid: NullType;
|
|
611
|
-
"inline-grid": NullType;
|
|
612
|
-
none: NullType;
|
|
605
|
+
readonly block: NullType;
|
|
606
|
+
readonly inline: NullType;
|
|
607
|
+
readonly "inline-block": NullType;
|
|
608
|
+
readonly flex: NullType;
|
|
609
|
+
readonly "inline-flex": NullType;
|
|
610
|
+
readonly grid: NullType;
|
|
611
|
+
readonly "inline-grid": NullType;
|
|
612
|
+
readonly none: NullType;
|
|
613
613
|
}>;
|
|
614
614
|
/**
|
|
615
615
|
* Type representing display variant values.
|
|
@@ -645,10 +645,10 @@ export declare function Display(display: "block" | "inline" | "inline-block" | "
|
|
|
645
645
|
* @property baseline - Align to text baseline
|
|
646
646
|
*/
|
|
647
647
|
export declare const VerticalAlignType: VariantType<{
|
|
648
|
-
top: NullType;
|
|
649
|
-
middle: NullType;
|
|
650
|
-
bottom: NullType;
|
|
651
|
-
baseline: NullType;
|
|
648
|
+
readonly top: NullType;
|
|
649
|
+
readonly middle: NullType;
|
|
650
|
+
readonly bottom: NullType;
|
|
651
|
+
readonly baseline: NullType;
|
|
652
652
|
}>;
|
|
653
653
|
/**
|
|
654
654
|
* Type representing vertical align variant values.
|
|
@@ -675,8 +675,8 @@ export declare function VerticalAlign(align: "top" | "middle" | "bottom" | "base
|
|
|
675
675
|
* @property ellipsis - Show ellipsis (...) for overflowing text
|
|
676
676
|
*/
|
|
677
677
|
export declare const TextOverflowType: VariantType<{
|
|
678
|
-
clip: NullType;
|
|
679
|
-
ellipsis: NullType;
|
|
678
|
+
readonly clip: NullType;
|
|
679
|
+
readonly ellipsis: NullType;
|
|
680
680
|
}>;
|
|
681
681
|
/**
|
|
682
682
|
* Type representing text overflow variant values.
|
|
@@ -713,11 +713,11 @@ export declare function TextOverflow(overflow: "clip" | "ellipsis"): ExprType<Te
|
|
|
713
713
|
* @property pre-line - Collapse whitespace but preserve newlines
|
|
714
714
|
*/
|
|
715
715
|
export declare const WhiteSpaceType: VariantType<{
|
|
716
|
-
normal: NullType;
|
|
717
|
-
nowrap: NullType;
|
|
718
|
-
pre: NullType;
|
|
719
|
-
"pre-wrap": NullType;
|
|
720
|
-
"pre-line": NullType;
|
|
716
|
+
readonly normal: NullType;
|
|
717
|
+
readonly nowrap: NullType;
|
|
718
|
+
readonly pre: NullType;
|
|
719
|
+
readonly "pre-wrap": NullType;
|
|
720
|
+
readonly "pre-line": NullType;
|
|
721
721
|
}>;
|
|
722
722
|
/**
|
|
723
723
|
* Type representing white space variant values.
|
|
@@ -753,10 +753,10 @@ export declare function WhiteSpace(whiteSpace: "normal" | "nowrap" | "pre" | "pr
|
|
|
753
753
|
* @property auto - Content is clipped with scrollbars as needed
|
|
754
754
|
*/
|
|
755
755
|
export declare const OverflowType: VariantType<{
|
|
756
|
-
visible: NullType;
|
|
757
|
-
hidden: NullType;
|
|
758
|
-
scroll: NullType;
|
|
759
|
-
auto: NullType;
|
|
756
|
+
readonly visible: NullType;
|
|
757
|
+
readonly hidden: NullType;
|
|
758
|
+
readonly scroll: NullType;
|
|
759
|
+
readonly auto: NullType;
|
|
760
760
|
}>;
|
|
761
761
|
/**
|
|
762
762
|
* Type representing overflow variant values.
|
|
@@ -37,24 +37,24 @@ export declare const Code: {
|
|
|
37
37
|
readonly Root: typeof createCode;
|
|
38
38
|
readonly Types: {
|
|
39
39
|
readonly Code: import("@elaraai/east").StructType<{
|
|
40
|
-
value: StringType;
|
|
41
|
-
variant: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
42
|
-
subtle: import("@elaraai/east").NullType;
|
|
43
|
-
surface: import("@elaraai/east").NullType;
|
|
44
|
-
outline: import("@elaraai/east").NullType;
|
|
40
|
+
readonly value: StringType;
|
|
41
|
+
readonly variant: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
42
|
+
readonly subtle: import("@elaraai/east").NullType;
|
|
43
|
+
readonly surface: import("@elaraai/east").NullType;
|
|
44
|
+
readonly outline: import("@elaraai/east").NullType;
|
|
45
45
|
}>>;
|
|
46
|
-
colorPalette: import("@elaraai/east").OptionType<StringType>;
|
|
47
|
-
size: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
48
|
-
xs: import("@elaraai/east").NullType;
|
|
49
|
-
sm: import("@elaraai/east").NullType;
|
|
50
|
-
md: import("@elaraai/east").NullType;
|
|
51
|
-
lg: import("@elaraai/east").NullType;
|
|
46
|
+
readonly colorPalette: import("@elaraai/east").OptionType<StringType>;
|
|
47
|
+
readonly size: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
48
|
+
readonly xs: import("@elaraai/east").NullType;
|
|
49
|
+
readonly sm: import("@elaraai/east").NullType;
|
|
50
|
+
readonly md: import("@elaraai/east").NullType;
|
|
51
|
+
readonly lg: import("@elaraai/east").NullType;
|
|
52
52
|
}>>;
|
|
53
53
|
}>;
|
|
54
54
|
readonly Variant: import("@elaraai/east").VariantType<{
|
|
55
|
-
subtle: import("@elaraai/east").NullType;
|
|
56
|
-
surface: import("@elaraai/east").NullType;
|
|
57
|
-
outline: import("@elaraai/east").NullType;
|
|
55
|
+
readonly subtle: import("@elaraai/east").NullType;
|
|
56
|
+
readonly surface: import("@elaraai/east").NullType;
|
|
57
|
+
readonly outline: import("@elaraai/east").NullType;
|
|
58
58
|
}>;
|
|
59
59
|
};
|
|
60
60
|
};
|
|
@@ -12,9 +12,9 @@ import { SizeType, type SizeLiteral } from "../../style.js";
|
|
|
12
12
|
* @property outline - Transparent background with colored border
|
|
13
13
|
*/
|
|
14
14
|
export declare const CodeVariantType: VariantType<{
|
|
15
|
-
subtle: NullType;
|
|
16
|
-
surface: NullType;
|
|
17
|
-
outline: NullType;
|
|
15
|
+
readonly subtle: NullType;
|
|
16
|
+
readonly surface: NullType;
|
|
17
|
+
readonly outline: NullType;
|
|
18
18
|
}>;
|
|
19
19
|
export type CodeVariantType = typeof CodeVariantType;
|
|
20
20
|
export type CodeVariantLiteral = "subtle" | "surface" | "outline";
|
|
@@ -27,18 +27,18 @@ export type CodeVariantLiteral = "subtle" | "surface" | "outline";
|
|
|
27
27
|
* @property size - Size of the code text
|
|
28
28
|
*/
|
|
29
29
|
export declare const CodeType: StructType<{
|
|
30
|
-
value: StringType;
|
|
31
|
-
variant: OptionType<VariantType<{
|
|
32
|
-
subtle: NullType;
|
|
33
|
-
surface: NullType;
|
|
34
|
-
outline: NullType;
|
|
30
|
+
readonly value: StringType;
|
|
31
|
+
readonly variant: OptionType<VariantType<{
|
|
32
|
+
readonly subtle: NullType;
|
|
33
|
+
readonly surface: NullType;
|
|
34
|
+
readonly outline: NullType;
|
|
35
35
|
}>>;
|
|
36
|
-
colorPalette: OptionType<StringType>;
|
|
37
|
-
size: OptionType<VariantType<{
|
|
38
|
-
xs: NullType;
|
|
39
|
-
sm: NullType;
|
|
40
|
-
md: NullType;
|
|
41
|
-
lg: NullType;
|
|
36
|
+
readonly colorPalette: OptionType<StringType>;
|
|
37
|
+
readonly size: OptionType<VariantType<{
|
|
38
|
+
readonly xs: NullType;
|
|
39
|
+
readonly sm: NullType;
|
|
40
|
+
readonly md: NullType;
|
|
41
|
+
readonly lg: NullType;
|
|
42
42
|
}>>;
|
|
43
43
|
}>;
|
|
44
44
|
export type CodeType = typeof CodeType;
|