@webority-technologies/mobile 0.0.6 → 0.0.8

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.
Files changed (92) hide show
  1. package/README.md +3 -463
  2. package/lib/commonjs/components/Badge/Badge.js +23 -13
  3. package/lib/commonjs/components/BottomSheet/BottomSheet.js +39 -5
  4. package/lib/commonjs/components/Button/Button.js +25 -6
  5. package/lib/commonjs/components/Card/Card.js +13 -1
  6. package/lib/commonjs/components/Checkbox/Checkbox.js +5 -3
  7. package/lib/commonjs/components/Chip/Chip.js +12 -3
  8. package/lib/commonjs/components/Dialog/Dialog.js +15 -8
  9. package/lib/commonjs/components/EmptyState/EmptyState.js +32 -26
  10. package/lib/commonjs/components/FormField/FormField.js +3 -3
  11. package/lib/commonjs/components/Input/Input.js +13 -5
  12. package/lib/commonjs/components/ListItem/ListItem.js +33 -27
  13. package/lib/commonjs/components/OTPInput/OTPInput.js +6 -3
  14. package/lib/commonjs/components/Radio/Radio.js +7 -6
  15. package/lib/commonjs/components/SearchBar/SearchBar.js +9 -5
  16. package/lib/commonjs/components/Skeleton/Skeleton.js +20 -12
  17. package/lib/commonjs/components/Skeleton/SkeletonContent.js +25 -9
  18. package/lib/commonjs/components/Skeleton/SkeletonList.js +7 -2
  19. package/lib/commonjs/components/Skeleton/SkeletonProvider.js +48 -0
  20. package/lib/commonjs/components/Skeleton/SkeletonSkip.js +37 -0
  21. package/lib/commonjs/components/Skeleton/index.js +20 -0
  22. package/lib/commonjs/components/Switch/Switch.js +31 -2
  23. package/lib/commonjs/components/Toast/Toast.js +16 -11
  24. package/lib/commonjs/components/index.js +18 -0
  25. package/lib/commonjs/theme/Gradient.js +57 -0
  26. package/lib/commonjs/theme/index.js +20 -0
  27. package/lib/commonjs/theme/textStyle.js +37 -0
  28. package/lib/commonjs/theme/tokens.js +260 -2
  29. package/lib/module/components/Badge/Badge.js +24 -14
  30. package/lib/module/components/BottomSheet/BottomSheet.js +40 -6
  31. package/lib/module/components/Button/Button.js +26 -7
  32. package/lib/module/components/Card/Card.js +14 -2
  33. package/lib/module/components/Checkbox/Checkbox.js +5 -3
  34. package/lib/module/components/Chip/Chip.js +13 -4
  35. package/lib/module/components/Dialog/Dialog.js +16 -9
  36. package/lib/module/components/EmptyState/EmptyState.js +33 -27
  37. package/lib/module/components/FormField/FormField.js +4 -4
  38. package/lib/module/components/Input/Input.js +14 -6
  39. package/lib/module/components/ListItem/ListItem.js +34 -28
  40. package/lib/module/components/OTPInput/OTPInput.js +7 -4
  41. package/lib/module/components/Radio/Radio.js +7 -6
  42. package/lib/module/components/SearchBar/SearchBar.js +10 -6
  43. package/lib/module/components/Skeleton/Skeleton.js +20 -12
  44. package/lib/module/components/Skeleton/SkeletonContent.js +25 -9
  45. package/lib/module/components/Skeleton/SkeletonList.js +7 -2
  46. package/lib/module/components/Skeleton/SkeletonProvider.js +41 -0
  47. package/lib/module/components/Skeleton/SkeletonSkip.js +31 -0
  48. package/lib/module/components/Skeleton/index.js +2 -0
  49. package/lib/module/components/Switch/Switch.js +31 -2
  50. package/lib/module/components/Toast/Toast.js +17 -12
  51. package/lib/module/components/index.js +1 -1
  52. package/lib/module/theme/Gradient.js +50 -0
  53. package/lib/module/theme/index.js +2 -0
  54. package/lib/module/theme/textStyle.js +32 -0
  55. package/lib/module/theme/tokens.js +260 -2
  56. package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +10 -0
  57. package/lib/typescript/commonjs/components/Button/Button.d.ts +8 -0
  58. package/lib/typescript/commonjs/components/Card/Card.d.ts +8 -0
  59. package/lib/typescript/commonjs/components/Dialog/Dialog.d.ts +5 -0
  60. package/lib/typescript/commonjs/components/Input/Input.d.ts +12 -0
  61. package/lib/typescript/commonjs/components/Skeleton/Skeleton.d.ts +9 -0
  62. package/lib/typescript/commonjs/components/Skeleton/SkeletonContent.d.ts +6 -0
  63. package/lib/typescript/commonjs/components/Skeleton/SkeletonList.d.ts +3 -0
  64. package/lib/typescript/commonjs/components/Skeleton/SkeletonProvider.d.ts +32 -0
  65. package/lib/typescript/commonjs/components/Skeleton/SkeletonSkip.d.ts +25 -0
  66. package/lib/typescript/commonjs/components/Skeleton/index.d.ts +4 -0
  67. package/lib/typescript/commonjs/components/Switch/Switch.d.ts +5 -0
  68. package/lib/typescript/commonjs/components/Toast/Toast.d.ts +5 -0
  69. package/lib/typescript/commonjs/components/index.d.ts +2 -2
  70. package/lib/typescript/commonjs/theme/Gradient.d.ts +11 -0
  71. package/lib/typescript/commonjs/theme/index.d.ts +5 -1
  72. package/lib/typescript/commonjs/theme/textStyle.d.ts +18 -0
  73. package/lib/typescript/commonjs/theme/types.d.ts +178 -0
  74. package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +10 -0
  75. package/lib/typescript/module/components/Button/Button.d.ts +8 -0
  76. package/lib/typescript/module/components/Card/Card.d.ts +8 -0
  77. package/lib/typescript/module/components/Dialog/Dialog.d.ts +5 -0
  78. package/lib/typescript/module/components/Input/Input.d.ts +12 -0
  79. package/lib/typescript/module/components/Skeleton/Skeleton.d.ts +9 -0
  80. package/lib/typescript/module/components/Skeleton/SkeletonContent.d.ts +6 -0
  81. package/lib/typescript/module/components/Skeleton/SkeletonList.d.ts +3 -0
  82. package/lib/typescript/module/components/Skeleton/SkeletonProvider.d.ts +32 -0
  83. package/lib/typescript/module/components/Skeleton/SkeletonSkip.d.ts +25 -0
  84. package/lib/typescript/module/components/Skeleton/index.d.ts +4 -0
  85. package/lib/typescript/module/components/Switch/Switch.d.ts +5 -0
  86. package/lib/typescript/module/components/Toast/Toast.d.ts +5 -0
  87. package/lib/typescript/module/components/index.d.ts +2 -2
  88. package/lib/typescript/module/theme/Gradient.d.ts +11 -0
  89. package/lib/typescript/module/theme/index.d.ts +5 -1
  90. package/lib/typescript/module/theme/textStyle.d.ts +18 -0
  91. package/lib/typescript/module/theme/types.d.ts +178 -0
  92. package/package.json +5 -1
@@ -50,6 +50,260 @@ const radius = {
50
50
  '2xl': 28,
51
51
  full: 9999
52
52
  };
53
+ const components = {
54
+ button: {
55
+ xs: {
56
+ paddingHorizontal: 10,
57
+ paddingVertical: 4,
58
+ minHeight: 28,
59
+ fontSize: 12,
60
+ borderRadius: 8
61
+ },
62
+ sm: {
63
+ paddingHorizontal: 12,
64
+ paddingVertical: 6,
65
+ minHeight: 34,
66
+ fontSize: 13,
67
+ borderRadius: 10
68
+ },
69
+ md: {
70
+ paddingHorizontal: 16,
71
+ paddingVertical: 9,
72
+ minHeight: 42,
73
+ fontSize: 15,
74
+ borderRadius: 12
75
+ },
76
+ lg: {
77
+ paddingHorizontal: 20,
78
+ paddingVertical: 12,
79
+ minHeight: 50,
80
+ fontSize: 16,
81
+ borderRadius: 14
82
+ },
83
+ xl: {
84
+ paddingHorizontal: 24,
85
+ paddingVertical: 14,
86
+ minHeight: 58,
87
+ fontSize: 17,
88
+ borderRadius: 16
89
+ }
90
+ },
91
+ input: {
92
+ sm: {
93
+ paddingHorizontal: 12,
94
+ paddingVertical: 8,
95
+ minHeight: 38,
96
+ multilineMinHeight: 72,
97
+ fontSize: 13,
98
+ borderRadius: 10,
99
+ iconSize: 16
100
+ },
101
+ md: {
102
+ paddingHorizontal: 14,
103
+ paddingVertical: 11,
104
+ minHeight: 46,
105
+ multilineMinHeight: 92,
106
+ fontSize: 15,
107
+ borderRadius: 12,
108
+ iconSize: 18
109
+ },
110
+ lg: {
111
+ paddingHorizontal: 16,
112
+ paddingVertical: 14,
113
+ minHeight: 54,
114
+ multilineMinHeight: 110,
115
+ fontSize: 16,
116
+ borderRadius: 14,
117
+ iconSize: 20
118
+ }
119
+ },
120
+ searchBar: {
121
+ sm: {
122
+ height: 36,
123
+ paddingHorizontal: 10,
124
+ fontSize: 13,
125
+ iconSize: 16,
126
+ gap: 6
127
+ },
128
+ md: {
129
+ height: 44,
130
+ paddingHorizontal: 12,
131
+ fontSize: 15,
132
+ iconSize: 18,
133
+ gap: 8
134
+ },
135
+ lg: {
136
+ height: 52,
137
+ paddingHorizontal: 14,
138
+ fontSize: 16,
139
+ iconSize: 20,
140
+ gap: 10
141
+ },
142
+ cancelButtonWidth: 72
143
+ },
144
+ emptyState: {
145
+ sm: {
146
+ iconSize: 48,
147
+ titleFontSize: 'lg',
148
+ descriptionFontSize: 'sm',
149
+ paddingVertical: 'lg'
150
+ },
151
+ md: {
152
+ iconSize: 64,
153
+ titleFontSize: 'xl',
154
+ descriptionFontSize: 'base',
155
+ paddingVertical: 'xl'
156
+ },
157
+ lg: {
158
+ iconSize: 80,
159
+ titleFontSize: '2xl',
160
+ descriptionFontSize: 'base',
161
+ paddingVertical: '2xl'
162
+ }
163
+ },
164
+ listItem: {
165
+ sm: {
166
+ paddingVertical: 'sm',
167
+ titleFontSize: 'sm',
168
+ subtitleFontSize: 'xs',
169
+ minHeight: 44
170
+ },
171
+ md: {
172
+ paddingVertical: 'md',
173
+ titleFontSize: 'base',
174
+ subtitleFontSize: 'sm',
175
+ minHeight: 56
176
+ },
177
+ lg: {
178
+ paddingVertical: 'lg',
179
+ titleFontSize: 'lg',
180
+ subtitleFontSize: 'sm',
181
+ minHeight: 72
182
+ }
183
+ },
184
+ badge: {
185
+ sm: {
186
+ fontSize: 10,
187
+ minWidth: 16,
188
+ height: 16,
189
+ paddingHorizontal: 5,
190
+ dotSize: 8
191
+ },
192
+ md: {
193
+ fontSize: 11,
194
+ minWidth: 20,
195
+ height: 20,
196
+ paddingHorizontal: 6,
197
+ dotSize: 10
198
+ },
199
+ borderWidth: 1.5,
200
+ anchorOffset: 4
201
+ },
202
+ chip: {
203
+ sm: {
204
+ paddingHorizontal: 10,
205
+ paddingVertical: 4,
206
+ fontSize: 12,
207
+ minHeight: 26,
208
+ closeSize: 16,
209
+ closeFontSize: 12,
210
+ gap: 6
211
+ },
212
+ md: {
213
+ paddingHorizontal: 12,
214
+ paddingVertical: 6,
215
+ fontSize: 13,
216
+ minHeight: 32,
217
+ closeSize: 18,
218
+ closeFontSize: 13,
219
+ gap: 8
220
+ }
221
+ },
222
+ checkbox: {
223
+ sm: {
224
+ boxSize: 16
225
+ },
226
+ md: {
227
+ boxSize: 20
228
+ },
229
+ lg: {
230
+ boxSize: 24
231
+ },
232
+ borderWidth: 1.5,
233
+ labelGap: 10
234
+ },
235
+ radio: {
236
+ sm: {
237
+ outer: 16,
238
+ inner: 8
239
+ },
240
+ md: {
241
+ outer: 20,
242
+ inner: 10
243
+ },
244
+ lg: {
245
+ outer: 24,
246
+ inner: 12
247
+ },
248
+ borderWidth: 1.5,
249
+ labelGap: 10
250
+ },
251
+ switch: {
252
+ sm: {
253
+ trackWidth: 42,
254
+ trackHeight: 26,
255
+ thumbSize: 22,
256
+ padding: 2
257
+ },
258
+ md: {
259
+ trackWidth: 51,
260
+ trackHeight: 31,
261
+ thumbSize: 27,
262
+ padding: 2
263
+ },
264
+ lg: {
265
+ trackWidth: 60,
266
+ trackHeight: 36,
267
+ thumbSize: 32,
268
+ padding: 2
269
+ },
270
+ thumbColor: '#FFFFFF'
271
+ },
272
+ otpInput: {
273
+ sm: {
274
+ cell: 36,
275
+ fontSize: 16,
276
+ borderRadius: 8,
277
+ gap: 8
278
+ },
279
+ md: {
280
+ cell: 48,
281
+ fontSize: 20,
282
+ borderRadius: 10,
283
+ gap: 10
284
+ },
285
+ lg: {
286
+ cell: 56,
287
+ fontSize: 24,
288
+ borderRadius: 12,
289
+ gap: 12
290
+ }
291
+ },
292
+ dialog: {
293
+ iconWrapperSize: 48,
294
+ iconWrapperBorderRadius: 24,
295
+ actionButtonMinHeight: 44
296
+ },
297
+ toast: {
298
+ iconCircleSize: 28,
299
+ iconCircleBorderRadius: 14,
300
+ iconGlyphFontSize: 16,
301
+ tintBarWidth: 4
302
+ },
303
+ formField: {
304
+ inlineLabelWidth: '35%'
305
+ }
306
+ };
53
307
  const motion = {
54
308
  duration: {
55
309
  instant: 80,
@@ -258,7 +512,9 @@ export const lightTheme = {
258
512
  spacing,
259
513
  radius,
260
514
  shadows: lightShadows,
261
- motion
515
+ motion,
516
+ components,
517
+ gradients: {}
262
518
  };
263
519
  export const darkTheme = {
264
520
  mode: 'dark',
@@ -310,6 +566,8 @@ export const darkTheme = {
310
566
  spacing,
311
567
  radius,
312
568
  shadows: darkShadows,
313
- motion
569
+ motion,
570
+ components,
571
+ gradients: {}
314
572
  };
315
573
  //# sourceMappingURL=tokens.js.map
@@ -19,6 +19,7 @@
19
19
  import React from 'react';
20
20
  import type { StyleProp, ViewStyle } from 'react-native';
21
21
  export type SnapPoint = number | `${number}%`;
22
+ export type KeyboardBehavior = 'none' | 'shift';
22
23
  export interface BottomSheetProps {
23
24
  snapPoints: SnapPoint[];
24
25
  index?: number;
@@ -27,6 +28,15 @@ export interface BottomSheetProps {
27
28
  enablePanDownToClose?: boolean;
28
29
  enableBackdropPress?: boolean;
29
30
  backdropOpacity?: number;
31
+ /**
32
+ * How the sheet reacts to the soft keyboard.
33
+ * - `'none'` (default): the sheet stays put; keyboard may overlap content.
34
+ * - `'shift'`: animate the sheet upward by the keyboard height while it's
35
+ * visible (clamped so the sheet never extends past the top of the screen)
36
+ * and animate back when dismissed. Best for forms that live inside the
37
+ * sheet itself.
38
+ */
39
+ keyboardBehavior?: KeyboardBehavior;
30
40
  handleIndicatorStyle?: StyleProp<ViewStyle>;
31
41
  containerStyle?: StyleProp<ViewStyle>;
32
42
  children?: React.ReactNode;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { View } from 'react-native';
3
3
  import type { PressableProps, StyleProp, TextStyle, ViewStyle } from 'react-native';
4
+ import type { GradientDefinition } from '../../theme/types';
4
5
  import type { HapticType } from '../../utils/hapticUtils';
5
6
  export type ButtonVariant = 'solid' | 'outline' | 'ghost' | 'link';
6
7
  export type ButtonTone = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'neutral';
@@ -23,6 +24,13 @@ export interface ButtonProps extends Omit<PressableProps, 'style' | 'children'>
23
24
  rightIcon?: React.ReactNode;
24
25
  haptic?: HapticType | false;
25
26
  rounded?: boolean;
27
+ /**
28
+ * Optional gradient background. Pass either a key from `theme.gradients`
29
+ * (e.g. `"primary"`) or a `GradientDefinition` literal. Requires
30
+ * `react-native-linear-gradient` to be installed; without it the button
31
+ * falls back to flat colour with a dev warning.
32
+ */
33
+ gradient?: string | GradientDefinition;
26
34
  style?: StyleProp<ViewStyle>;
27
35
  textStyle?: StyleProp<TextStyle>;
28
36
  pressAnimation?: boolean;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { View } from 'react-native';
3
3
  import type { GestureResponderEvent, ImageSourcePropType, PressableProps, StyleProp, ViewStyle } from 'react-native';
4
+ import type { GradientDefinition } from '../../theme/types';
4
5
  export type CardVariant = 'elevated' | 'outlined' | 'filled';
5
6
  export type CardElevation = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
6
7
  export type CardRadius = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
@@ -24,6 +25,13 @@ export interface CardProps extends Omit<PressableProps, 'style' | 'children'> {
24
25
  * with shimmer blocks. Use this when the data driving the component is still being fetched.
25
26
  */
26
27
  loading?: boolean;
28
+ /**
29
+ * Optional gradient background. Pass a key from `theme.gradients` or a
30
+ * literal `GradientDefinition`. Layered behind the card's content so
31
+ * existing variant/elevation/radius continue to work. Requires
32
+ * `react-native-linear-gradient` to be installed.
33
+ */
34
+ gradient?: string | GradientDefinition;
27
35
  onPress?: (event: GestureResponderEvent) => void;
28
36
  accessibilityLabel?: string;
29
37
  style?: StyleProp<ViewStyle>;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import type { StyleProp, ViewStyle } from 'react-native';
2
3
  export type DialogVariant = 'default' | 'success' | 'warning' | 'danger' | 'info';
3
4
  export type DialogActionTone = 'primary' | 'neutral' | 'danger';
4
5
  export interface DialogAction {
@@ -17,6 +18,10 @@ export interface DialogProps {
17
18
  actions?: DialogAction[];
18
19
  dismissOnAction?: boolean;
19
20
  accessibilityLabel?: string;
21
+ /** Style applied to the underlying Modal sheet (consumer may override radius, padding, etc.). */
22
+ contentStyle?: StyleProp<ViewStyle>;
23
+ /** Style applied to the dialog inner container (above icon/title/message). */
24
+ containerStyle?: StyleProp<ViewStyle>;
20
25
  testID?: string;
21
26
  }
22
27
  declare const Dialog: React.FC<DialogProps>;
@@ -20,6 +20,18 @@ export interface InputProps extends Omit<TextInputProps, 'style'> {
20
20
  variant?: InputVariant;
21
21
  required?: boolean;
22
22
  maxLength?: number;
23
+ /**
24
+ * Format the raw `value` for display. Common uses: phone-number formatting
25
+ * ("5551234567" → "(555) 123-4567"), currency, postal codes, masked IDs.
26
+ * The TextInput shows `format(value)`; user input is passed to `parse` (or
27
+ * left raw) before reaching `onChangeText`.
28
+ */
29
+ format?: (raw: string) => string;
30
+ /**
31
+ * Reverse of `format` — strips the formatted display back to the canonical
32
+ * value the consumer wants in state. If omitted, defaults to identity.
33
+ */
34
+ parse?: (formatted: string) => string;
23
35
  style?: StyleProp<ViewStyle>;
24
36
  inputStyle?: StyleProp<TextStyle>;
25
37
  labelStyle?: StyleProp<TextStyle>;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { StyleProp, ViewStyle } from 'react-native';
3
3
  import type { RadiusScale } from '../../theme/types';
4
+ import type { SkeletonColors } from './SkeletonProvider';
4
5
  export type SkeletonVariant = 'shimmer' | 'pulse';
5
6
  export type SkeletonSpeed = 'slow' | 'normal' | 'fast';
6
7
  export type SkeletonRadius = keyof Pick<RadiusScale, 'sm' | 'md' | 'lg' | 'xl' | 'full'> | number;
@@ -12,6 +13,14 @@ export interface SkeletonProps {
12
13
  radius?: SkeletonRadius;
13
14
  variant?: SkeletonVariant;
14
15
  speed?: SkeletonSpeed;
16
+ /**
17
+ * Per-instance colour override. Either `background` or `highlight` (or both)
18
+ * can be set; missing keys fall back to the SkeletonProvider's defaults
19
+ * and finally to the theme. Use this for one-off contrast adjustments
20
+ * (dark shimmer on a light banner, etc.) — for app-wide overrides prefer
21
+ * `<SkeletonProvider colors={{...}}>`.
22
+ */
23
+ colors?: SkeletonColors;
15
24
  style?: StyleProp<ViewStyle>;
16
25
  testID?: string;
17
26
  }
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import type { ReactNode } from 'react';
3
3
  import type { StyleProp, ViewStyle } from 'react-native';
4
4
  import type { SkeletonSpeed, SkeletonVariant } from './Skeleton';
5
+ import type { SkeletonColors } from './SkeletonProvider';
5
6
  export type SkeletonContentMode = 'auto' | 'block';
6
7
  export interface SkeletonContentProps {
7
8
  /** When true, replace children with skeleton placeholders. */
@@ -26,6 +27,11 @@ export interface SkeletonContentProps {
26
27
  * `loading` is false. Default: `1`.
27
28
  */
28
29
  count?: number;
30
+ /**
31
+ * Colour override forwarded to every `<Skeleton>` produced by the walker. Either or both
32
+ * keys can be set; missing keys fall back to provider defaults / theme.
33
+ */
34
+ colors?: SkeletonColors;
29
35
  style?: StyleProp<ViewStyle>;
30
36
  testID?: string;
31
37
  }
@@ -1,6 +1,7 @@
1
1
  import type { ReactElement, ReactNode } from 'react';
2
2
  import type { FlatListProps, StyleProp, ViewStyle } from 'react-native';
3
3
  import type { SkeletonSpeed, SkeletonVariant } from './Skeleton';
4
+ import type { SkeletonColors } from './SkeletonProvider';
4
5
  export interface SkeletonListProps<ItemT> extends Omit<FlatListProps<ItemT>, 'data' | 'renderItem'> {
5
6
  /** Whether the list is in its initial loading state. */
6
7
  loading: boolean;
@@ -19,6 +20,8 @@ export interface SkeletonListProps<ItemT> extends Omit<FlatListProps<ItemT>, 'da
19
20
  variant?: SkeletonVariant;
20
21
  /** Animation speed — same as Skeleton. */
21
22
  speed?: SkeletonSpeed;
23
+ /** Colour override forwarded to the placeholder skeletons. */
24
+ colors?: SkeletonColors;
22
25
  /** Style applied to the wrapper View around the placeholders. */
23
26
  placeholderContainerStyle?: StyleProp<ViewStyle>;
24
27
  testID?: string;
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import type { ReactNode } from 'react';
3
+ import type { SkeletonRadius, SkeletonSpeed, SkeletonVariant } from './Skeleton';
4
+ /**
5
+ * Per-instance color override for a skeleton. `background` is the resting tone
6
+ * of the placeholder; `highlight` is the moving shimmer band (or pulse fade).
7
+ * Either can be omitted — missing keys fall back to the active theme.
8
+ */
9
+ export interface SkeletonColors {
10
+ background?: string;
11
+ highlight?: string;
12
+ }
13
+ export interface SkeletonProviderDefaults {
14
+ variant?: SkeletonVariant;
15
+ speed?: SkeletonSpeed;
16
+ /** Default `placeholderCount` for `<SkeletonList>` when not specified per-instance. */
17
+ placeholderCount?: number;
18
+ /** Default `radius` for `<Skeleton>` when not specified per-instance. */
19
+ radius?: SkeletonRadius;
20
+ /** App-wide colour overrides for the shimmer base + highlight. */
21
+ colors?: SkeletonColors;
22
+ }
23
+ export interface SkeletonProviderProps extends SkeletonProviderDefaults {
24
+ children: ReactNode;
25
+ }
26
+ export declare const SkeletonProvider: React.FC<SkeletonProviderProps>;
27
+ /**
28
+ * Read the current SkeletonProvider defaults. Returns an empty object when no
29
+ * provider is mounted, so the skeleton primitives still work outside of one.
30
+ */
31
+ export declare const useSkeletonDefaults: () => SkeletonProviderDefaults;
32
+ //# sourceMappingURL=SkeletonProvider.d.ts.map
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import type { ReactNode } from 'react';
3
+ export interface SkeletonSkipProps {
4
+ children: ReactNode;
5
+ }
6
+ /**
7
+ * Pass-through marker that opts a subtree out of `SkeletonContent`'s auto walker.
8
+ *
9
+ * The walker recognizes this element type and returns its children unchanged
10
+ * even while `loading` is true. Use it to keep a specific Text/Image/View
11
+ * visible inside a skeleton block — e.g., a brand mark, a status icon, or a
12
+ * decorative element that should never shimmer.
13
+ *
14
+ * @example
15
+ * <SkeletonContent loading>
16
+ * <View style={styles.card}>
17
+ * <SkeletonSkip>
18
+ * <Image source={Logo} style={styles.brandMark} />
19
+ * </SkeletonSkip>
20
+ * <Text>Loading…</Text>
21
+ * </View>
22
+ * </SkeletonContent>
23
+ */
24
+ export declare const SkeletonSkip: React.FC<SkeletonSkipProps>;
25
+ //# sourceMappingURL=SkeletonSkip.d.ts.map
@@ -4,4 +4,8 @@ export { SkeletonContent } from './SkeletonContent';
4
4
  export type { SkeletonContentProps, SkeletonContentMode } from './SkeletonContent';
5
5
  export { SkeletonList } from './SkeletonList';
6
6
  export type { SkeletonListProps } from './SkeletonList';
7
+ export { SkeletonProvider, useSkeletonDefaults } from './SkeletonProvider';
8
+ export type { SkeletonColors, SkeletonProviderDefaults, SkeletonProviderProps } from './SkeletonProvider';
9
+ export { SkeletonSkip } from './SkeletonSkip';
10
+ export type { SkeletonSkipProps } from './SkeletonSkip';
7
11
  //# sourceMappingURL=index.d.ts.map
@@ -13,6 +13,11 @@ export interface SwitchProps extends Omit<PressableProps, 'style' | 'children' |
13
13
  label?: string;
14
14
  accessibilityLabel?: string;
15
15
  haptic?: HapticType | false;
16
+ /**
17
+ * When true, the thumb briefly scales up on value change (1 → 1.15 → 1).
18
+ * Use for playful/brand-flavored switches; default off for system feel.
19
+ */
20
+ bounce?: boolean;
16
21
  style?: StyleProp<ViewStyle>;
17
22
  trackStyle?: StyleProp<ViewStyle>;
18
23
  thumbStyle?: StyleProp<ViewStyle>;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import type { StyleProp, TextStyle, ViewStyle } from 'react-native';
2
3
  import type { HapticType } from '../../utils/hapticUtils';
3
4
  export type ToastVariant = 'default' | 'success' | 'error' | 'warning' | 'info';
4
5
  export type ToastPosition = 'top' | 'bottom';
@@ -15,6 +16,10 @@ export interface ToastOptions {
15
16
  action?: ToastAction;
16
17
  haptic?: HapticType | false;
17
18
  icon?: React.ReactNode;
19
+ /** Style applied to the toast container (override radius, padding, shadow per-toast). */
20
+ style?: StyleProp<ViewStyle>;
21
+ /** Style applied to the toast message Text. */
22
+ textStyle?: StyleProp<TextStyle>;
18
23
  }
19
24
  export interface ToastItem extends ToastOptions {
20
25
  id: string;
@@ -70,8 +70,8 @@ export { Select } from './Select';
70
70
  export type { SelectProps, SelectOption, SelectSize } from './Select';
71
71
  export { Stepper } from './Stepper';
72
72
  export type { StepperProps, StepperVariant, StepperStep, StepperTone } from './Stepper';
73
- export { Skeleton, SkeletonAvatar, SkeletonCard, SkeletonCircle, SkeletonContent, SkeletonList, SkeletonListItem, SkeletonText } from './Skeleton';
74
- export type { SkeletonProps, SkeletonAvatarProps, SkeletonCardProps, SkeletonCircleProps, SkeletonContentMode, SkeletonContentProps, SkeletonListItemProps, SkeletonListProps, SkeletonTextProps, SkeletonVariant, SkeletonSpeed } from './Skeleton';
73
+ export { Skeleton, SkeletonAvatar, SkeletonCard, SkeletonCircle, SkeletonContent, SkeletonList, SkeletonListItem, SkeletonProvider, SkeletonSkip, SkeletonText, useSkeletonDefaults } from './Skeleton';
74
+ export type { SkeletonAvatarProps, SkeletonCardProps, SkeletonCircleProps, SkeletonColors, SkeletonContentMode, SkeletonContentProps, SkeletonListItemProps, SkeletonListProps, SkeletonProps, SkeletonProviderDefaults, SkeletonProviderProps, SkeletonSkipProps, SkeletonSpeed, SkeletonTextProps, SkeletonVariant } from './Skeleton';
75
75
  export { Slider } from './Slider';
76
76
  export type { SliderProps, SliderTone, SliderSize } from './Slider';
77
77
  export { Swipeable } from './Swipeable';
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { StyleProp, ViewStyle } from 'react-native';
3
+ import type { GradientDefinition } from './types';
4
+ export interface GradientProps {
5
+ gradient: GradientDefinition;
6
+ style?: StyleProp<ViewStyle>;
7
+ children?: React.ReactNode;
8
+ }
9
+ export declare const Gradient: React.FC<GradientProps>;
10
+ export declare const isGradientAvailable: () => boolean;
11
+ //# sourceMappingURL=Gradient.d.ts.map
@@ -9,5 +9,9 @@ export { ThemeProvider, useTheme, useThemeMode } from './ThemeContext';
9
9
  export type { ThemeProviderProps, ColorSchemePreference } from './ThemeContext';
10
10
  export { lightTheme, darkTheme } from './tokens';
11
11
  export { mergeTheme } from './merge';
12
- export type { ColorMode, ColorPalette, RadiusScale, ShadowDefinition, ShadowScale, SpacingScale, Theme, ThemeOverrides, TypographyScale, MotionScale, DeepPartial } from './types';
12
+ export { fontFor } from './textStyle';
13
+ export type { FontWeightKey } from './textStyle';
14
+ export { Gradient, isGradientAvailable } from './Gradient';
15
+ export type { GradientProps } from './Gradient';
16
+ export type { ColorMode, ColorPalette, GradientDefinition, GradientScale, RadiusScale, ShadowDefinition, ShadowScale, SpacingScale, Theme, ThemeOverrides, TypographyScale, MotionScale, DeepPartial } from './types';
13
17
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,18 @@
1
+ import type { TextStyle } from 'react-native';
2
+ import type { Theme, TypographyScale } from './types';
3
+ export type FontWeightKey = keyof TypographyScale['fontWeight'];
4
+ /**
5
+ * Resolve text-weight style for the active theme.
6
+ *
7
+ * When the consumer registers a brand `theme.typography.fontFamily.<weight>`,
8
+ * we set `fontFamily` and leave `fontWeight` undefined — RN can't combine the
9
+ * two reliably across iOS/Android once a custom face is in play, so the brand
10
+ * file controls the weight glyph itself. Falls back to `fontWeight` when no
11
+ * brand font is registered for that weight.
12
+ *
13
+ * Note: the fontWeight scale uses `normal` while FontFamilyScale uses
14
+ * `regular` (the conventional font-name suffix). The helper maps between
15
+ * them transparently.
16
+ */
17
+ export declare const fontFor: (theme: Theme, weight: FontWeightKey) => Pick<TextStyle, "fontFamily" | "fontWeight">;
18
+ //# sourceMappingURL=textStyle.d.ts.map