@xaui/core 0.1.9 → 0.1.11
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/theme/index.cjs +6 -0
- package/dist/theme/index.d.cts +24 -10
- package/dist/theme/index.d.ts +24 -10
- package/dist/theme/index.js +6 -0
- package/package.json +1 -1
package/dist/theme/index.cjs
CHANGED
package/dist/theme/index.d.cts
CHANGED
|
@@ -67,6 +67,12 @@ interface ThemeFontFamilies {
|
|
|
67
67
|
heading: string;
|
|
68
68
|
default: string;
|
|
69
69
|
}
|
|
70
|
+
interface ThemeComponentSizes {
|
|
71
|
+
xs: number;
|
|
72
|
+
sm: number;
|
|
73
|
+
md: number;
|
|
74
|
+
lg: number;
|
|
75
|
+
}
|
|
70
76
|
interface ThemeShadows {
|
|
71
77
|
sm: {
|
|
72
78
|
shadowColor: string;
|
|
@@ -120,18 +126,20 @@ interface XUITheme {
|
|
|
120
126
|
fontWeights: ThemeFontWeights;
|
|
121
127
|
fontFamilies: ThemeFontFamilies;
|
|
122
128
|
shadows: ThemeShadows;
|
|
129
|
+
componentSizes: ThemeComponentSizes;
|
|
123
130
|
}
|
|
124
131
|
type PartialXUITheme = {
|
|
125
|
-
readonly mode
|
|
126
|
-
readonly palette
|
|
127
|
-
colors
|
|
128
|
-
spacing
|
|
129
|
-
borderRadius
|
|
130
|
-
borderWidth
|
|
131
|
-
fontSizes
|
|
132
|
-
fontWeights
|
|
133
|
-
fontFamilies
|
|
134
|
-
shadows
|
|
132
|
+
readonly mode?: 'light' | 'dark';
|
|
133
|
+
readonly palette?: typeof colors;
|
|
134
|
+
colors?: Partial<ThemeColors>;
|
|
135
|
+
spacing?: Partial<ThemeSpacing>;
|
|
136
|
+
borderRadius?: Partial<ThemeBorderRadius>;
|
|
137
|
+
borderWidth?: Partial<ThemeBorderWidth>;
|
|
138
|
+
fontSizes?: Partial<ThemeFontSizes>;
|
|
139
|
+
fontWeights?: Partial<ThemeFontWeights>;
|
|
140
|
+
fontFamilies?: Partial<ThemeFontFamilies>;
|
|
141
|
+
shadows?: Partial<ThemeShadows>;
|
|
142
|
+
componentSizes?: Partial<ThemeComponentSizes>;
|
|
135
143
|
};
|
|
136
144
|
declare const baseTheme: {
|
|
137
145
|
readonly spacing: {
|
|
@@ -226,6 +234,12 @@ declare const baseTheme: {
|
|
|
226
234
|
readonly elevation: 12;
|
|
227
235
|
};
|
|
228
236
|
};
|
|
237
|
+
readonly componentSizes: {
|
|
238
|
+
readonly xs: 38;
|
|
239
|
+
readonly sm: 42;
|
|
240
|
+
readonly md: 46;
|
|
241
|
+
readonly lg: 50;
|
|
242
|
+
};
|
|
229
243
|
};
|
|
230
244
|
declare const defaultTheme: XUITheme;
|
|
231
245
|
declare const defaultDarkTheme: XUITheme;
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -67,6 +67,12 @@ interface ThemeFontFamilies {
|
|
|
67
67
|
heading: string;
|
|
68
68
|
default: string;
|
|
69
69
|
}
|
|
70
|
+
interface ThemeComponentSizes {
|
|
71
|
+
xs: number;
|
|
72
|
+
sm: number;
|
|
73
|
+
md: number;
|
|
74
|
+
lg: number;
|
|
75
|
+
}
|
|
70
76
|
interface ThemeShadows {
|
|
71
77
|
sm: {
|
|
72
78
|
shadowColor: string;
|
|
@@ -120,18 +126,20 @@ interface XUITheme {
|
|
|
120
126
|
fontWeights: ThemeFontWeights;
|
|
121
127
|
fontFamilies: ThemeFontFamilies;
|
|
122
128
|
shadows: ThemeShadows;
|
|
129
|
+
componentSizes: ThemeComponentSizes;
|
|
123
130
|
}
|
|
124
131
|
type PartialXUITheme = {
|
|
125
|
-
readonly mode
|
|
126
|
-
readonly palette
|
|
127
|
-
colors
|
|
128
|
-
spacing
|
|
129
|
-
borderRadius
|
|
130
|
-
borderWidth
|
|
131
|
-
fontSizes
|
|
132
|
-
fontWeights
|
|
133
|
-
fontFamilies
|
|
134
|
-
shadows
|
|
132
|
+
readonly mode?: 'light' | 'dark';
|
|
133
|
+
readonly palette?: typeof colors;
|
|
134
|
+
colors?: Partial<ThemeColors>;
|
|
135
|
+
spacing?: Partial<ThemeSpacing>;
|
|
136
|
+
borderRadius?: Partial<ThemeBorderRadius>;
|
|
137
|
+
borderWidth?: Partial<ThemeBorderWidth>;
|
|
138
|
+
fontSizes?: Partial<ThemeFontSizes>;
|
|
139
|
+
fontWeights?: Partial<ThemeFontWeights>;
|
|
140
|
+
fontFamilies?: Partial<ThemeFontFamilies>;
|
|
141
|
+
shadows?: Partial<ThemeShadows>;
|
|
142
|
+
componentSizes?: Partial<ThemeComponentSizes>;
|
|
135
143
|
};
|
|
136
144
|
declare const baseTheme: {
|
|
137
145
|
readonly spacing: {
|
|
@@ -226,6 +234,12 @@ declare const baseTheme: {
|
|
|
226
234
|
readonly elevation: 12;
|
|
227
235
|
};
|
|
228
236
|
};
|
|
237
|
+
readonly componentSizes: {
|
|
238
|
+
readonly xs: 38;
|
|
239
|
+
readonly sm: 42;
|
|
240
|
+
readonly md: 46;
|
|
241
|
+
readonly lg: 50;
|
|
242
|
+
};
|
|
229
243
|
};
|
|
230
244
|
declare const defaultTheme: XUITheme;
|
|
231
245
|
declare const defaultDarkTheme: XUITheme;
|
package/dist/theme/index.js
CHANGED