@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.
@@ -479,6 +479,12 @@ var baseTheme = {
479
479
  shadowRadius: 7.49,
480
480
  elevation: 12
481
481
  }
482
+ },
483
+ componentSizes: {
484
+ xs: 38,
485
+ sm: 42,
486
+ md: 46,
487
+ lg: 50
482
488
  }
483
489
  };
484
490
  var theme = {
@@ -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: '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>;
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;
@@ -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: '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>;
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;
@@ -163,6 +163,12 @@ var baseTheme = {
163
163
  shadowRadius: 7.49,
164
164
  elevation: 12
165
165
  }
166
+ },
167
+ componentSizes: {
168
+ xs: 38,
169
+ sm: 42,
170
+ md: 46,
171
+ lg: 50
166
172
  }
167
173
  };
168
174
  var theme = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaui/core",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
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",