@danielito1996/compose-svelted 0.2.0 → 0.2.2
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/index.d.ts +16 -16
- package/package.json +5 -1
- package/dist/components/ContentScale.d.ts +0 -10
- package/dist/components/layouts/Alignment.d.ts +0 -20
- package/dist/components/layouts/Arrangement.d.ts +0 -23
- package/dist/components/textFields/TextFieldColors.d.ts +0 -12
- package/dist/components/textFields/TextFieldDefaults.d.ts +0 -11
- package/dist/core/elevation/elevation.d.ts +0 -1
- package/dist/core/helpers/painterResource.d.ts +0 -12
- package/dist/core/modifier/Modifier.d.ts +0 -195
- package/dist/core/modifier/ModifierImpl.d.ts +0 -38
- package/dist/core/motion/AnimationSpec.d.ts +0 -6
- package/dist/core/motion/ContentTransition.d.ts +0 -5
- package/dist/core/motion/applyAnimation.d.ts +0 -0
- package/dist/core/motion/contentTransitions.d.ts +0 -4
- package/dist/core/motion/transitions.d.ts +0 -7
- package/dist/core/navigation/NavBackStackEntry.d.ts +0 -4
- package/dist/core/navigation/NavController.d.ts +0 -8
- package/dist/core/navigation/NavStore.d.ts +0 -6
- package/dist/core/navigation/Route.d.ts +0 -3
- package/dist/core/navigation/composable.d.ts +0 -5
- package/dist/core/navigation/rememberNavController.d.ts +0 -2
- package/dist/core/shapes/RoundedCornerShape.d.ts +0 -13
- package/dist/core/shapes/Shape.d.ts +0 -3
- package/dist/core/theme/ColorScheme.d.ts +0 -17
- package/dist/core/theme/Density.d.ts +0 -5
- package/dist/core/theme/TextStyle.d.ts +0 -19
- package/dist/core/theme/colors.d.ts +0 -15
- package/dist/core/theme/cssVars.d.ts +0 -2
- package/dist/core/theme/defaults/darkColors.d.ts +0 -2
- package/dist/core/theme/defaults/defaultTheme.d.ts +0 -3
- package/dist/core/theme/defaults/lightColors.d.ts +0 -2
- package/dist/core/theme/defaults/typography.d.ts +0 -2
- package/dist/core/theme/elevation.d.ts +0 -7
- package/dist/core/theme/getCurrentColor.d.ts +0 -1
- package/dist/core/theme/resolve.d.ts +0 -5
- package/dist/core/theme/shapes.d.ts +0 -7
- package/dist/core/theme/spacing.d.ts +0 -7
- package/dist/core/theme/store.d.ts +0 -2
- package/dist/core/theme/systemTheme.d.ts +0 -2
- package/dist/core/theme/theme.d.ts +0 -13
- package/dist/core/theme/typography.d.ts +0 -24
package/dist/index.d.ts
CHANGED
|
@@ -70,27 +70,27 @@ export class CodeBlock extends SvelteComponent {}
|
|
|
70
70
|
// Tokens / Helpers (TypeScript only)
|
|
71
71
|
// =======================================
|
|
72
72
|
|
|
73
|
-
export * from "../
|
|
74
|
-
export * from "../
|
|
75
|
-
export * from "../
|
|
76
|
-
export * from "../
|
|
73
|
+
export * from "../lib/core/shapes/RoundedCornerShape";
|
|
74
|
+
export * from "../lib/core/theme/ColorScheme";
|
|
75
|
+
export * from "../lib/core/theme/TextStyle";
|
|
76
|
+
export * from "../lib/core/theme/Density";
|
|
77
77
|
|
|
78
|
-
export * from "../
|
|
78
|
+
export * from "../lib/core/modifier/Modifier";
|
|
79
79
|
|
|
80
|
-
export * from "../
|
|
81
|
-
export * from "../
|
|
82
|
-
export * from "../
|
|
80
|
+
export * from "../lib/components/layouts/Arrangement";
|
|
81
|
+
export * from "../lib/components/layouts/Alignment";
|
|
82
|
+
export * from "../lib/components/ContentScale";
|
|
83
83
|
|
|
84
|
-
export * from "../
|
|
84
|
+
export * from "../lib/core/helpers/painterResource";
|
|
85
85
|
|
|
86
|
-
export * from "../
|
|
87
|
-
export * from "../
|
|
88
|
-
export * from "../
|
|
86
|
+
export * from "../lib/core/motion/AnimationSpec";
|
|
87
|
+
export * from "../lib/core/motion/transitions";
|
|
88
|
+
export * from "../lib/core/motion/contentTransitions";
|
|
89
89
|
|
|
90
|
-
export * from "../
|
|
91
|
-
export * from "../
|
|
92
|
-
export * from "../
|
|
93
|
-
export * from "../
|
|
90
|
+
export * from "../lib/core/navigation/Route";
|
|
91
|
+
export * from "../lib/core/navigation/NavController";
|
|
92
|
+
export * from "../lib/core/navigation/rememberNavController";
|
|
93
|
+
export * from "../lib/core/navigation/composable";
|
|
94
94
|
/*// =========================
|
|
95
95
|
// COMPONENTS (Svelte)
|
|
96
96
|
// =========================
|
package/package.json
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danielito1996/compose-svelted",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Compose-like UI toolkit for Svelte",
|
|
7
7
|
"main": "./dist/index.js",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build:lib": "vite build -c vite.lib.config.ts && copy src\\lib\\index.d.ts dist\\index.d.ts"
|
|
11
|
+
},
|
|
9
12
|
"exports": {
|
|
10
13
|
".": {
|
|
11
14
|
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/index.js",
|
|
12
16
|
"default": "./dist/index.js"
|
|
13
17
|
}
|
|
14
18
|
},
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const ContentScale: {
|
|
2
|
-
readonly Crop: "cover";
|
|
3
|
-
readonly Fit: "contain";
|
|
4
|
-
readonly FillBounds: "fill";
|
|
5
|
-
readonly Inside: "contain";
|
|
6
|
-
readonly FillWidth: "fillWidth";
|
|
7
|
-
readonly FillHeight: "fillHeight";
|
|
8
|
-
readonly None: "none";
|
|
9
|
-
};
|
|
10
|
-
export type ContentScaleToken = typeof ContentScale[keyof typeof ContentScale];
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export declare const Alignment: {
|
|
2
|
-
readonly Start: "flex-start";
|
|
3
|
-
readonly CenterHorizontally: "center";
|
|
4
|
-
readonly End: "flex-end";
|
|
5
|
-
readonly Top: "flex-start";
|
|
6
|
-
readonly CenterVertically: "center";
|
|
7
|
-
readonly Bottom: "flex-end";
|
|
8
|
-
readonly TopStart: "flex-start flex-start";
|
|
9
|
-
readonly TopCenter: "center flex-start";
|
|
10
|
-
readonly TopEnd: "flex-end flex-start";
|
|
11
|
-
readonly CenterStart: "flex-start center";
|
|
12
|
-
readonly Center: "center center";
|
|
13
|
-
readonly CenterEnd: "flex-end center";
|
|
14
|
-
readonly BottomStart: "flex-start flex-end";
|
|
15
|
-
readonly BottomCenter: "center flex-end";
|
|
16
|
-
readonly BottomEnd: "flex-end flex-end";
|
|
17
|
-
};
|
|
18
|
-
export type HorizontalAlignment = typeof Alignment.Start | typeof Alignment.CenterHorizontally | typeof Alignment.End;
|
|
19
|
-
export type VerticalAlignment = typeof Alignment.Top | typeof Alignment.CenterVertically | typeof Alignment.Bottom;
|
|
20
|
-
export type BoxAlignment = typeof Alignment[keyof typeof Alignment];
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Arrangement — eje principal (main axis)
|
|
3
|
-
* Fiel a Jetpack Compose
|
|
4
|
-
*/
|
|
5
|
-
export type ArrangementValue = {
|
|
6
|
-
type: "static";
|
|
7
|
-
justifyContent: string;
|
|
8
|
-
} | {
|
|
9
|
-
type: "spaced";
|
|
10
|
-
gap: number;
|
|
11
|
-
justifyContent: string;
|
|
12
|
-
};
|
|
13
|
-
export declare const Arrangement: {
|
|
14
|
-
readonly Start: ArrangementValue;
|
|
15
|
-
readonly Center: ArrangementValue;
|
|
16
|
-
readonly End: ArrangementValue;
|
|
17
|
-
readonly Bottom: ArrangementValue;
|
|
18
|
-
readonly Top: ArrangementValue;
|
|
19
|
-
readonly SpaceBetween: ArrangementValue;
|
|
20
|
-
readonly SpaceAround: ArrangementValue;
|
|
21
|
-
readonly SpaceEvenly: ArrangementValue;
|
|
22
|
-
readonly spacedBy: (value: number) => ArrangementValue;
|
|
23
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface TextFieldColors {
|
|
2
|
-
container: string;
|
|
3
|
-
label: string;
|
|
4
|
-
placeholder: string;
|
|
5
|
-
text: string;
|
|
6
|
-
cursor: string;
|
|
7
|
-
indicatorFocused: string;
|
|
8
|
-
indicatorUnfocused: string;
|
|
9
|
-
borderFocused?: string;
|
|
10
|
-
borderUnfocused?: string;
|
|
11
|
-
error?: string;
|
|
12
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { TextFieldColors } from "./TextFieldColors";
|
|
2
|
-
export declare const TextFieldDefaults: {
|
|
3
|
-
/**
|
|
4
|
-
* FilledTextField (Material default)
|
|
5
|
-
*/
|
|
6
|
-
filledColors(): TextFieldColors;
|
|
7
|
-
/**
|
|
8
|
-
* OutlinedTextField
|
|
9
|
-
*/
|
|
10
|
-
outlinedColors(): TextFieldColors;
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function elevationToShadow(value: number | string): string;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* painterResource - como en Jetpack Compose
|
|
3
|
-
* Carga un recurso local desde src/lib/assets/
|
|
4
|
-
* Soporta SVG (?raw para string) e imágenes (?url para URL)
|
|
5
|
-
*/
|
|
6
|
-
export declare const Res: {
|
|
7
|
-
readonly raw: (fileName: string) => string;
|
|
8
|
-
readonly image: (fileName: string) => string;
|
|
9
|
-
readonly values: (fileName: string) => string;
|
|
10
|
-
readonly fonts: (fileName: string) => string;
|
|
11
|
-
};
|
|
12
|
-
export declare function painterResource(resourceName: string): string;
|
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
import { ModifierImpl } from "./ModifierImpl";
|
|
2
|
-
import type { BoxAlignment } from "../../components/layouts/Alignment";
|
|
3
|
-
import type { Shape } from "../shapes/Shape";
|
|
4
|
-
import type { ColorToken } from "../theme/ColorScheme";
|
|
5
|
-
/**
|
|
6
|
-
* Modifier
|
|
7
|
-
*
|
|
8
|
-
* Modifier is an immutable, chainable object used to decorate or augment
|
|
9
|
-
* a UI component.
|
|
10
|
-
*
|
|
11
|
-
* Inspired by Jetpack Compose Modifier.
|
|
12
|
-
*
|
|
13
|
-
* Usage:
|
|
14
|
-
* ```
|
|
15
|
-
* Modifier
|
|
16
|
-
* .padding(16)
|
|
17
|
-
* .fillMaxWidth()
|
|
18
|
-
* .background(ColorScheme.Surface)
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
export declare const Modifier: {
|
|
22
|
-
/**
|
|
23
|
-
* Returns an empty Modifier with no effects.
|
|
24
|
-
*
|
|
25
|
-
* Useful as a default value or starting point.
|
|
26
|
-
*/
|
|
27
|
-
readonly empty: () => ModifierImpl;
|
|
28
|
-
/**
|
|
29
|
-
* Adds padding around the content.
|
|
30
|
-
*
|
|
31
|
-
* Can be used with:
|
|
32
|
-
* - a single number (uniform padding)
|
|
33
|
-
* - an object with directional values
|
|
34
|
-
*
|
|
35
|
-
* Examples:
|
|
36
|
-
* ```
|
|
37
|
-
* Modifier.padding(16)
|
|
38
|
-
* Modifier.padding({ top: 8, bottom: 8 })
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
readonly padding: (valueOrParams?: number | {
|
|
42
|
-
top?: number;
|
|
43
|
-
bottom?: number;
|
|
44
|
-
start?: number;
|
|
45
|
-
end?: number;
|
|
46
|
-
}, unit?: string) => ModifierImpl;
|
|
47
|
-
/**
|
|
48
|
-
* Adds horizontal padding (left and right).
|
|
49
|
-
*/
|
|
50
|
-
readonly paddingHorizontal: (value: number) => ModifierImpl;
|
|
51
|
-
/**
|
|
52
|
-
* Adds a border around the component.
|
|
53
|
-
*
|
|
54
|
-
* Optionally accepts a Shape to match rounded corners.
|
|
55
|
-
*
|
|
56
|
-
* Examples:
|
|
57
|
-
* ```
|
|
58
|
-
* Modifier.border(1, ColorScheme.Outline)
|
|
59
|
-
* Modifier.border(2, "#FF0000", RoundedCornerShape(12))
|
|
60
|
-
* ```
|
|
61
|
-
*/
|
|
62
|
-
readonly border: (width: number, color: string, shape?: Shape) => ModifierImpl;
|
|
63
|
-
/**
|
|
64
|
-
* Marks the component as clickable.
|
|
65
|
-
*
|
|
66
|
-
* This modifier applies interaction semantics such as:
|
|
67
|
-
* - pointer cursor
|
|
68
|
-
* - user-select disabling
|
|
69
|
-
*
|
|
70
|
-
* Note:
|
|
71
|
-
* The click handler must still be attached at the component level.
|
|
72
|
-
*
|
|
73
|
-
* Example:
|
|
74
|
-
* ```
|
|
75
|
-
* <Box
|
|
76
|
-
* on:click={onClick}
|
|
77
|
-
* modifier={Modifier.clickable(onClick)}
|
|
78
|
-
* />
|
|
79
|
-
* ```
|
|
80
|
-
*/
|
|
81
|
-
readonly clickable: (onClick: () => void) => ModifierImpl;
|
|
82
|
-
/**
|
|
83
|
-
* Offsets the component visually without affecting its layout.
|
|
84
|
-
*
|
|
85
|
-
* Equivalent to Jetpack Compose Modifier.offset.
|
|
86
|
-
*
|
|
87
|
-
* Note:
|
|
88
|
-
* This uses CSS transform and does not affect surrounding layout.
|
|
89
|
-
*/
|
|
90
|
-
readonly offset: (x: number, y: number) => ModifierImpl;
|
|
91
|
-
/**
|
|
92
|
-
* Enables vertical scrolling for the component.
|
|
93
|
-
*
|
|
94
|
-
* Useful for Column or large content containers.
|
|
95
|
-
*/
|
|
96
|
-
readonly verticalScroll: (enabled?: boolean) => ModifierImpl;
|
|
97
|
-
/**
|
|
98
|
-
* Enables horizontal scrolling for the component.
|
|
99
|
-
*/
|
|
100
|
-
readonly horizontalScroll: (enabled?: boolean) => ModifierImpl;
|
|
101
|
-
/**
|
|
102
|
-
* Adds vertical padding (top and bottom).
|
|
103
|
-
*/
|
|
104
|
-
readonly paddingVertical: (value: number) => ModifierImpl;
|
|
105
|
-
/**
|
|
106
|
-
* Aligns the component inside a Box.
|
|
107
|
-
*
|
|
108
|
-
* ⚠️ This modifier is intended to be used only inside Box layouts.
|
|
109
|
-
*
|
|
110
|
-
* Example:
|
|
111
|
-
* ```
|
|
112
|
-
* Modifier.align(Alignment.Center)
|
|
113
|
-
* ```
|
|
114
|
-
*/
|
|
115
|
-
readonly align: (alignment: BoxAlignment) => ModifierImpl;
|
|
116
|
-
/**
|
|
117
|
-
* Makes the component fill the maximum available width.
|
|
118
|
-
*/
|
|
119
|
-
readonly fillMaxWidth: () => ModifierImpl;
|
|
120
|
-
/**
|
|
121
|
-
* Makes the component fill the maximum available height.
|
|
122
|
-
*/
|
|
123
|
-
readonly fillMaxHeight: () => ModifierImpl;
|
|
124
|
-
/**
|
|
125
|
-
* Makes the component fill both width and height.
|
|
126
|
-
*/
|
|
127
|
-
readonly fillMaxSize: () => ModifierImpl;
|
|
128
|
-
/**
|
|
129
|
-
* Sets a fixed height for the component.
|
|
130
|
-
*
|
|
131
|
-
* Accepts either a number (px by default) or a CSS size string.
|
|
132
|
-
*/
|
|
133
|
-
readonly height: (value: number | string, unit?: string) => ModifierImpl;
|
|
134
|
-
/**
|
|
135
|
-
* Sets a fixed width for the component.
|
|
136
|
-
*
|
|
137
|
-
* Accepts either a number (px by default) or a CSS size string.
|
|
138
|
-
*/
|
|
139
|
-
readonly width: (value: number | string, unit?: string) => ModifierImpl;
|
|
140
|
-
/**
|
|
141
|
-
* Applies a background color to the component.
|
|
142
|
-
*
|
|
143
|
-
* Accepts either:
|
|
144
|
-
* - A CSS color string (e.g. "#2A2A2A", "transparent")
|
|
145
|
-
* - A Compose color token (e.g. ColorScheme.Surface)
|
|
146
|
-
*
|
|
147
|
-
* Examples:
|
|
148
|
-
* ```
|
|
149
|
-
* Modifier.background(ColorScheme.Surface)
|
|
150
|
-
* Modifier.background("#121212")
|
|
151
|
-
* ```
|
|
152
|
-
*/
|
|
153
|
-
readonly background: (color: ColorToken | string) => ModifierImpl;
|
|
154
|
-
/**
|
|
155
|
-
* Assigns a proportional weight to the component inside
|
|
156
|
-
* a Row or Column.
|
|
157
|
-
*
|
|
158
|
-
* Similar to flex-grow.
|
|
159
|
-
*
|
|
160
|
-
* Example:
|
|
161
|
-
* ```
|
|
162
|
-
* Modifier.weight(1)
|
|
163
|
-
* ```
|
|
164
|
-
*/
|
|
165
|
-
readonly weight: (weight: number, fill?: boolean) => ModifierImpl;
|
|
166
|
-
/**
|
|
167
|
-
* Assigns weight without forcing fill behavior.
|
|
168
|
-
*/
|
|
169
|
-
readonly weightNoFill: (weight: number) => ModifierImpl;
|
|
170
|
-
/**
|
|
171
|
-
* Adds top margin to the component.
|
|
172
|
-
*/
|
|
173
|
-
readonly marginTop: (value: number, unit?: string) => ModifierImpl;
|
|
174
|
-
/**
|
|
175
|
-
* Clips the component using the provided Shape.
|
|
176
|
-
*
|
|
177
|
-
* Example:
|
|
178
|
-
* ```
|
|
179
|
-
* Modifier.clip(RoundedCornerShape(16))
|
|
180
|
-
* ```
|
|
181
|
-
*/
|
|
182
|
-
readonly clip: (shape: Shape) => ModifierImpl;
|
|
183
|
-
/**
|
|
184
|
-
* Sets both width and height to the same value.
|
|
185
|
-
*
|
|
186
|
-
* Useful for icons and square components.
|
|
187
|
-
*
|
|
188
|
-
* Example:
|
|
189
|
-
* ```
|
|
190
|
-
* Modifier.size(24)
|
|
191
|
-
* ```
|
|
192
|
-
*/
|
|
193
|
-
readonly size: (value: number | string, unit?: string) => ModifierImpl;
|
|
194
|
-
};
|
|
195
|
-
export type Modifier = ModifierImpl;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { BoxAlignment } from "../../components/layouts/Alignment";
|
|
2
|
-
import type { Shape } from "../shapes/Shape";
|
|
3
|
-
import type { ColorToken } from "../theme/ColorScheme";
|
|
4
|
-
export type ModifierEntry = {
|
|
5
|
-
className?: string;
|
|
6
|
-
style?: string;
|
|
7
|
-
};
|
|
8
|
-
export declare class ModifierImpl {
|
|
9
|
-
private readonly entries;
|
|
10
|
-
constructor(entries?: ModifierEntry[]);
|
|
11
|
-
then(other: ModifierImpl): ModifierImpl;
|
|
12
|
-
paddingHorizontal(value: number): ModifierImpl;
|
|
13
|
-
verticalScroll(enabled?: boolean): ModifierImpl;
|
|
14
|
-
horizontalScroll(enabled?: boolean): ModifierImpl;
|
|
15
|
-
paddingVertical(value: number): ModifierImpl;
|
|
16
|
-
fillMaxWidth(): ModifierImpl;
|
|
17
|
-
fillMaxHeight(): ModifierImpl;
|
|
18
|
-
fillMaxSize(): ModifierImpl;
|
|
19
|
-
background(color: ColorToken | string): ModifierImpl;
|
|
20
|
-
weight(weight: number, fill?: boolean): ModifierImpl;
|
|
21
|
-
align(alignment: BoxAlignment): ModifierImpl;
|
|
22
|
-
padding(valueOrParams?: number | {
|
|
23
|
-
top?: number;
|
|
24
|
-
bottom?: number;
|
|
25
|
-
start?: number;
|
|
26
|
-
end?: number;
|
|
27
|
-
}, unit?: string): ModifierImpl;
|
|
28
|
-
width(value: number | string, unit?: string): ModifierImpl;
|
|
29
|
-
height(value: number | string, unit?: string): ModifierImpl;
|
|
30
|
-
marginTop(value: number, unit?: string): ModifierImpl;
|
|
31
|
-
clip(shape: Shape): ModifierImpl;
|
|
32
|
-
size(value: number | string, unit?: string): ModifierImpl;
|
|
33
|
-
offset(x: number, y: number): ModifierImpl;
|
|
34
|
-
clickable(onClick: () => void): ModifierImpl;
|
|
35
|
-
border(width: number, color: string, shape?: Shape): ModifierImpl;
|
|
36
|
-
toStyle(): string;
|
|
37
|
-
toClass(): string;
|
|
38
|
-
}
|
|
File without changes
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { AnimationSpec } from "./AnimationSpec";
|
|
2
|
-
export declare function fadeIn(duration?: number): AnimationSpec;
|
|
3
|
-
export declare function fadeOut(duration?: number): AnimationSpec;
|
|
4
|
-
export declare function scaleIn(duration?: number): AnimationSpec;
|
|
5
|
-
export declare function scaleOut(duration?: number): AnimationSpec;
|
|
6
|
-
export declare function slideIn(duration?: number, direction?: "left" | "right" | "up" | "down"): AnimationSpec;
|
|
7
|
-
export declare function slideOut(duration?: number, direction?: "left" | "right" | "up" | "down"): AnimationSpec;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { NavBackStackEntry } from "./NavBackStackEntry";
|
|
2
|
-
export declare class NavController {
|
|
3
|
-
private readonly stackStore;
|
|
4
|
-
constructor(startDestination: string);
|
|
5
|
-
_getStackStore(): Writable<NavBackStackEntry[]>;
|
|
6
|
-
navigate<T = unknown>(route: string, args?: T): void;
|
|
7
|
-
popBackStack(): void;
|
|
8
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Shape } from "./Shape";
|
|
2
|
-
type CornerSize = number | string;
|
|
3
|
-
type RoundedCornerParams = CornerSize | {
|
|
4
|
-
topStart?: CornerSize;
|
|
5
|
-
topEnd?: CornerSize;
|
|
6
|
-
bottomEnd?: CornerSize;
|
|
7
|
-
bottomStart?: CornerSize;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Compose-like factory
|
|
11
|
-
*/
|
|
12
|
-
export declare function RoundedCornerShape(params: RoundedCornerParams): Shape;
|
|
13
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { ColorScheme as Def } from "./colors";
|
|
2
|
-
export type ColorToken = keyof Def;
|
|
3
|
-
export declare const ColorScheme: {
|
|
4
|
-
readonly Primary: "primary";
|
|
5
|
-
readonly OnPrimary: "onPrimary";
|
|
6
|
-
readonly Secondary: "secondary";
|
|
7
|
-
readonly OnSecondary: "onSecondary";
|
|
8
|
-
readonly Background: "background";
|
|
9
|
-
readonly OnBackground: "onBackground";
|
|
10
|
-
readonly Surface: "surface";
|
|
11
|
-
readonly OnSurface: "onSurface";
|
|
12
|
-
readonly SurfaceVariant: "surfaceVariant";
|
|
13
|
-
readonly OnSurfaceVariant: "onSurfaceVariant";
|
|
14
|
-
readonly Outline: "outline";
|
|
15
|
-
readonly Error: "error";
|
|
16
|
-
readonly OnError: "onError";
|
|
17
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { Typography } from "./typography";
|
|
2
|
-
export type TextStyleToken = keyof Typography;
|
|
3
|
-
export declare const TextStyle: {
|
|
4
|
-
readonly DisplayLarge: "displayLarge";
|
|
5
|
-
readonly DisplayMedium: "displayMedium";
|
|
6
|
-
readonly DisplaySmall: "displaySmall";
|
|
7
|
-
readonly HeadlineLarge: "headlineLarge";
|
|
8
|
-
readonly HeadlineMedium: "headlineMedium";
|
|
9
|
-
readonly HeadlineSmall: "headlineSmall";
|
|
10
|
-
readonly TitleLarge: "titleLarge";
|
|
11
|
-
readonly TitleMedium: "titleMedium";
|
|
12
|
-
readonly TitleSmall: "titleSmall";
|
|
13
|
-
readonly BodyLarge: "bodyLarge";
|
|
14
|
-
readonly BodyMedium: "bodyMedium";
|
|
15
|
-
readonly BodySmall: "bodySmall";
|
|
16
|
-
readonly LabelLarge: "labelLarge";
|
|
17
|
-
readonly LabelMedium: "labelMedium";
|
|
18
|
-
readonly LabelSmall: "labelSmall";
|
|
19
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface ColorScheme {
|
|
2
|
-
primary: string;
|
|
3
|
-
onPrimary: string;
|
|
4
|
-
secondary: string;
|
|
5
|
-
onSecondary: string;
|
|
6
|
-
background: string;
|
|
7
|
-
onBackground: string;
|
|
8
|
-
surface: string;
|
|
9
|
-
onSurface: string;
|
|
10
|
-
surfaceVariant: string;
|
|
11
|
-
onSurfaceVariant: string;
|
|
12
|
-
outline: string;
|
|
13
|
-
error: string;
|
|
14
|
-
onError: string;
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getCurrentColor(token: string): string;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { ColorToken } from "./ColorScheme";
|
|
2
|
-
import type { TextStyleToken } from "./TextStyle";
|
|
3
|
-
export declare const resolveColor: (c: ColorToken) => string;
|
|
4
|
-
export declare function resolveTintColor(color: ColorToken | string): string;
|
|
5
|
-
export declare const resolveTextStyle: (t: TextStyleToken) => string;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { ColorScheme } from "./colors";
|
|
2
|
-
import type { Typography } from "./typography";
|
|
3
|
-
import type { Shapes } from "./shapes";
|
|
4
|
-
import type { Spacing } from "./spacing";
|
|
5
|
-
import type { Elevation } from "./elevation";
|
|
6
|
-
export interface ComposeTheme {
|
|
7
|
-
colorScheme: ColorScheme;
|
|
8
|
-
typography: Typography;
|
|
9
|
-
shapes: Shapes;
|
|
10
|
-
spacing: Spacing;
|
|
11
|
-
elevation: Elevation;
|
|
12
|
-
}
|
|
13
|
-
export type ThemeMode = "light" | "dark" | "system";
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export interface TextStyle {
|
|
2
|
-
fontFamily: string;
|
|
3
|
-
fontSize: string;
|
|
4
|
-
lineHeight: string;
|
|
5
|
-
letterSpacing: string;
|
|
6
|
-
fontWeight: number;
|
|
7
|
-
}
|
|
8
|
-
export interface Typography {
|
|
9
|
-
displayLarge: TextStyle;
|
|
10
|
-
displayMedium: TextStyle;
|
|
11
|
-
displaySmall: TextStyle;
|
|
12
|
-
headlineLarge: TextStyle;
|
|
13
|
-
headlineMedium: TextStyle;
|
|
14
|
-
headlineSmall: TextStyle;
|
|
15
|
-
titleLarge: TextStyle;
|
|
16
|
-
titleMedium: TextStyle;
|
|
17
|
-
titleSmall: TextStyle;
|
|
18
|
-
bodyLarge: TextStyle;
|
|
19
|
-
bodyMedium: TextStyle;
|
|
20
|
-
bodySmall: TextStyle;
|
|
21
|
-
labelLarge: TextStyle;
|
|
22
|
-
labelMedium: TextStyle;
|
|
23
|
-
labelSmall: TextStyle;
|
|
24
|
-
}
|