@xaui/core 0.1.8 → 0.1.10

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.
@@ -121,8 +121,113 @@ interface XUITheme {
121
121
  fontFamilies: ThemeFontFamilies;
122
122
  shadows: ThemeShadows;
123
123
  }
124
- type PartialXUITheme = Partial<XUITheme>;
124
+ type PartialXUITheme = {
125
+ readonly mode?: 'light' | 'dark';
126
+ readonly palette?: typeof colors;
127
+ colors?: Partial<ThemeColors>;
128
+ spacing?: Partial<ThemeSpacing>;
129
+ borderRadius?: Partial<ThemeBorderRadius>;
130
+ borderWidth?: Partial<ThemeBorderWidth>;
131
+ fontSizes?: Partial<ThemeFontSizes>;
132
+ fontWeights?: Partial<ThemeFontWeights>;
133
+ fontFamilies?: Partial<ThemeFontFamilies>;
134
+ shadows?: Partial<ThemeShadows>;
135
+ };
136
+ declare const baseTheme: {
137
+ readonly spacing: {
138
+ readonly xs: 4;
139
+ readonly sm: 8;
140
+ readonly md: 16;
141
+ readonly lg: 24;
142
+ readonly xl: 32;
143
+ readonly '2xl': 48;
144
+ readonly '3xl': 64;
145
+ };
146
+ readonly borderRadius: {
147
+ readonly none: 0;
148
+ readonly sm: 4;
149
+ readonly md: 8;
150
+ readonly lg: 12;
151
+ readonly xl: 16;
152
+ readonly '2xl': 24;
153
+ readonly '3xl': 32;
154
+ readonly full: 9999;
155
+ };
156
+ readonly borderWidth: {
157
+ readonly none: 0;
158
+ readonly xs: 0.5;
159
+ readonly sm: 1;
160
+ readonly md: 1.75;
161
+ readonly lg: 2.5;
162
+ readonly xl: 3;
163
+ };
164
+ readonly fontSizes: {
165
+ readonly xs: 12;
166
+ readonly sm: 14;
167
+ readonly md: 16;
168
+ readonly lg: 18;
169
+ readonly xl: 20;
170
+ readonly '2xl': 24;
171
+ readonly '3xl': 30;
172
+ readonly '4xl': 36;
173
+ };
174
+ readonly fontWeights: {
175
+ readonly light: "300";
176
+ readonly normal: "400";
177
+ readonly medium: "500";
178
+ readonly semibold: "600";
179
+ readonly bold: "700";
180
+ readonly extrabold: "800";
181
+ };
182
+ readonly fontFamilies: {
183
+ readonly body: "System";
184
+ readonly heading: "System";
185
+ readonly default: "monospace";
186
+ };
187
+ readonly shadows: {
188
+ readonly sm: {
189
+ readonly shadowColor: "#000";
190
+ readonly shadowOffset: {
191
+ readonly width: 0;
192
+ readonly height: 1;
193
+ };
194
+ readonly shadowOpacity: 0.18;
195
+ readonly shadowRadius: 1;
196
+ readonly elevation: 1;
197
+ };
198
+ readonly md: {
199
+ readonly shadowColor: "#000";
200
+ readonly shadowOffset: {
201
+ readonly width: 0;
202
+ readonly height: 2;
203
+ };
204
+ readonly shadowOpacity: 0.23;
205
+ readonly shadowRadius: 2.62;
206
+ readonly elevation: 4;
207
+ };
208
+ readonly lg: {
209
+ readonly shadowColor: "#000";
210
+ readonly shadowOffset: {
211
+ readonly width: 0;
212
+ readonly height: 4;
213
+ };
214
+ readonly shadowOpacity: 0.3;
215
+ readonly shadowRadius: 4.65;
216
+ readonly elevation: 8;
217
+ };
218
+ readonly xl: {
219
+ readonly shadowColor: "#000";
220
+ readonly shadowOffset: {
221
+ readonly width: 0;
222
+ readonly height: 6;
223
+ };
224
+ readonly shadowOpacity: 0.37;
225
+ readonly shadowRadius: 7.49;
226
+ readonly elevation: 12;
227
+ };
228
+ };
229
+ };
125
230
  declare const defaultTheme: XUITheme;
126
231
  declare const defaultDarkTheme: XUITheme;
127
232
 
128
- export { type PartialXUITheme, type XUITheme, defaultDarkTheme, defaultTheme };
233
+ export { type PartialXUITheme, type XUITheme, baseTheme as XuiStyles, defaultDarkTheme, defaultTheme };
@@ -121,8 +121,113 @@ interface XUITheme {
121
121
  fontFamilies: ThemeFontFamilies;
122
122
  shadows: ThemeShadows;
123
123
  }
124
- type PartialXUITheme = Partial<XUITheme>;
124
+ type PartialXUITheme = {
125
+ readonly mode?: 'light' | 'dark';
126
+ readonly palette?: typeof colors;
127
+ colors?: Partial<ThemeColors>;
128
+ spacing?: Partial<ThemeSpacing>;
129
+ borderRadius?: Partial<ThemeBorderRadius>;
130
+ borderWidth?: Partial<ThemeBorderWidth>;
131
+ fontSizes?: Partial<ThemeFontSizes>;
132
+ fontWeights?: Partial<ThemeFontWeights>;
133
+ fontFamilies?: Partial<ThemeFontFamilies>;
134
+ shadows?: Partial<ThemeShadows>;
135
+ };
136
+ declare const baseTheme: {
137
+ readonly spacing: {
138
+ readonly xs: 4;
139
+ readonly sm: 8;
140
+ readonly md: 16;
141
+ readonly lg: 24;
142
+ readonly xl: 32;
143
+ readonly '2xl': 48;
144
+ readonly '3xl': 64;
145
+ };
146
+ readonly borderRadius: {
147
+ readonly none: 0;
148
+ readonly sm: 4;
149
+ readonly md: 8;
150
+ readonly lg: 12;
151
+ readonly xl: 16;
152
+ readonly '2xl': 24;
153
+ readonly '3xl': 32;
154
+ readonly full: 9999;
155
+ };
156
+ readonly borderWidth: {
157
+ readonly none: 0;
158
+ readonly xs: 0.5;
159
+ readonly sm: 1;
160
+ readonly md: 1.75;
161
+ readonly lg: 2.5;
162
+ readonly xl: 3;
163
+ };
164
+ readonly fontSizes: {
165
+ readonly xs: 12;
166
+ readonly sm: 14;
167
+ readonly md: 16;
168
+ readonly lg: 18;
169
+ readonly xl: 20;
170
+ readonly '2xl': 24;
171
+ readonly '3xl': 30;
172
+ readonly '4xl': 36;
173
+ };
174
+ readonly fontWeights: {
175
+ readonly light: "300";
176
+ readonly normal: "400";
177
+ readonly medium: "500";
178
+ readonly semibold: "600";
179
+ readonly bold: "700";
180
+ readonly extrabold: "800";
181
+ };
182
+ readonly fontFamilies: {
183
+ readonly body: "System";
184
+ readonly heading: "System";
185
+ readonly default: "monospace";
186
+ };
187
+ readonly shadows: {
188
+ readonly sm: {
189
+ readonly shadowColor: "#000";
190
+ readonly shadowOffset: {
191
+ readonly width: 0;
192
+ readonly height: 1;
193
+ };
194
+ readonly shadowOpacity: 0.18;
195
+ readonly shadowRadius: 1;
196
+ readonly elevation: 1;
197
+ };
198
+ readonly md: {
199
+ readonly shadowColor: "#000";
200
+ readonly shadowOffset: {
201
+ readonly width: 0;
202
+ readonly height: 2;
203
+ };
204
+ readonly shadowOpacity: 0.23;
205
+ readonly shadowRadius: 2.62;
206
+ readonly elevation: 4;
207
+ };
208
+ readonly lg: {
209
+ readonly shadowColor: "#000";
210
+ readonly shadowOffset: {
211
+ readonly width: 0;
212
+ readonly height: 4;
213
+ };
214
+ readonly shadowOpacity: 0.3;
215
+ readonly shadowRadius: 4.65;
216
+ readonly elevation: 8;
217
+ };
218
+ readonly xl: {
219
+ readonly shadowColor: "#000";
220
+ readonly shadowOffset: {
221
+ readonly width: 0;
222
+ readonly height: 6;
223
+ };
224
+ readonly shadowOpacity: 0.37;
225
+ readonly shadowRadius: 7.49;
226
+ readonly elevation: 12;
227
+ };
228
+ };
229
+ };
125
230
  declare const defaultTheme: XUITheme;
126
231
  declare const defaultDarkTheme: XUITheme;
127
232
 
128
- export { type PartialXUITheme, type XUITheme, defaultDarkTheme, defaultTheme };
233
+ export { type PartialXUITheme, type XUITheme, baseTheme as XuiStyles, defaultDarkTheme, defaultTheme };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaui/core",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "A modern React Native UI library with Flutter-inspired API, smooth animations, and comprehensive design system",
5
5
  "keywords": [
6
6
  "react-native",