@webority/mobile-ui 0.18.1 → 0.19.1

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 (215) hide show
  1. package/lib/commonjs/canvasKit/index.js +1 -1
  2. package/lib/commonjs/components/Accordion/Accordion.js +1 -1
  3. package/lib/commonjs/components/AppBar/AppBar.js +1 -1
  4. package/lib/commonjs/components/Avatar/Avatar.js +1 -1
  5. package/lib/commonjs/components/Badge/Badge.js +1 -1
  6. package/lib/commonjs/components/Banner/Banner.js +1 -1
  7. package/lib/commonjs/components/BarChart/BarChart.js +1 -1
  8. package/lib/commonjs/components/BottomNavigation/BottomNavigation.js +1 -1
  9. package/lib/commonjs/components/BottomSheet/BottomSheet.js +1 -1
  10. package/lib/commonjs/components/Box/Box.js +1 -1
  11. package/lib/commonjs/components/Button/Button.js +1 -1
  12. package/lib/commonjs/components/Calendar/calendarStyles.js +1 -1
  13. package/lib/commonjs/components/Card/Card.js +1 -1
  14. package/lib/commonjs/components/Carousel/Carousel.js +1 -1
  15. package/lib/commonjs/components/Checkbox/Checkbox.js +1 -1
  16. package/lib/commonjs/components/Chip/Chip.js +1 -1
  17. package/lib/commonjs/components/ChoiceGroup/ChoiceGroup.js +1 -1
  18. package/lib/commonjs/components/Composer/Composer.js +1 -1
  19. package/lib/commonjs/components/DatePicker/DatePicker.js +1 -1
  20. package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +1 -1
  21. package/lib/commonjs/components/Descriptions/Descriptions.js +1 -1
  22. package/lib/commonjs/components/Dialog/Dialog.js +1 -1
  23. package/lib/commonjs/components/EmptyState/EmptyState.js +1 -1
  24. package/lib/commonjs/components/FieldBase/ChoiceText.js +1 -1
  25. package/lib/commonjs/components/FieldBase/FieldBase.js +1 -1
  26. package/lib/commonjs/components/FieldBase/index.js +1 -1
  27. package/lib/commonjs/components/FieldBase/useFloatingLabel.js +1 -1
  28. package/lib/commonjs/components/FilePicker/FilePicker.js +1 -1
  29. package/lib/commonjs/components/FloatingActionButton/FloatingActionButton.js +1 -1
  30. package/lib/commonjs/components/ImageGallery/ImageGallery.js +1 -1
  31. package/lib/commonjs/components/InlineSelect/InlineSelect.js +1 -1
  32. package/lib/commonjs/components/Input/Input.js +1 -1
  33. package/lib/commonjs/components/ListItem/ListItem.js +1 -1
  34. package/lib/commonjs/components/Markdown/Markdown.js +1 -1
  35. package/lib/commonjs/components/MessageBubble/MessageBubble.js +1 -1
  36. package/lib/commonjs/components/MessageList/MessageList.js +1 -1
  37. package/lib/commonjs/components/Modal/Modal.js +1 -1
  38. package/lib/commonjs/components/NumberInput/NumberInput.js +1 -1
  39. package/lib/commonjs/components/OTPInput/OTPInput.js +1 -1
  40. package/lib/commonjs/components/OptionSheet/OptionSheet.js +1 -1
  41. package/lib/commonjs/components/PaymentResult/PaymentResult.js +1 -1
  42. package/lib/commonjs/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
  43. package/lib/commonjs/components/PickerTrigger/PickerTrigger.js +1 -1
  44. package/lib/commonjs/components/ProfileCompletion/ProfileCompletion.js +1 -1
  45. package/lib/commonjs/components/ProfilePicker/ProfilePicker.js +1 -1
  46. package/lib/commonjs/components/ProgressBar/ProgressBar.js +1 -1
  47. package/lib/commonjs/components/Radio/Radio.js +1 -1
  48. package/lib/commonjs/components/Radio/RadioDot.js +1 -1
  49. package/lib/commonjs/components/Rating/Rating.js +1 -1
  50. package/lib/commonjs/components/ScannerOverlay/ScannerOverlay.js +1 -1
  51. package/lib/commonjs/components/SearchBar/SearchBar.js +1 -1
  52. package/lib/commonjs/components/SegmentedControl/SegmentedControl.js +1 -1
  53. package/lib/commonjs/components/Select/Select.js +1 -1
  54. package/lib/commonjs/components/Skeleton/Skeleton.js +1 -1
  55. package/lib/commonjs/components/Skeleton/SkeletonContent.js +1 -1
  56. package/lib/commonjs/components/SlideToConfirm/SlideToConfirm.js +1 -1
  57. package/lib/commonjs/components/Slider/Slider.js +1 -1
  58. package/lib/commonjs/components/SliderField/SliderField.js +1 -1
  59. package/lib/commonjs/components/Spinner/Spinner.js +1 -1
  60. package/lib/commonjs/components/StatusBadge/StatusBadge.js +1 -1
  61. package/lib/commonjs/components/Stepper/Stepper.js +1 -1
  62. package/lib/commonjs/components/Swipeable/Swipeable.js +1 -1
  63. package/lib/commonjs/components/Switch/Switch.js +1 -1
  64. package/lib/commonjs/components/Tabs/Tabs.js +1 -1
  65. package/lib/commonjs/components/TagInput/TagInput.js +1 -1
  66. package/lib/commonjs/components/TimePicker/TimePicker.js +1 -1
  67. package/lib/commonjs/components/Timeline/Timeline.js +1 -1
  68. package/lib/commonjs/components/Toast/Toast.js +1 -1
  69. package/lib/commonjs/components/Tooltip/Tooltip.js +1 -1
  70. package/lib/commonjs/components/Tour/Tour.js +1 -1
  71. package/lib/commonjs/components/TypingIndicator/TypingIndicator.js +1 -1
  72. package/lib/commonjs/components/WheelPicker/Wheel.js +1 -1
  73. package/lib/commonjs/index.js +1 -1
  74. package/lib/commonjs/network/NetworkStatusBanner.js +1 -1
  75. package/lib/commonjs/theme/componentSizes.js +1 -0
  76. package/lib/commonjs/theme/componentTokens.js +1 -0
  77. package/lib/commonjs/theme/index.js +1 -1
  78. package/lib/commonjs/theme/merge.js +1 -1
  79. package/lib/commonjs/theme/retiredThemeKeys.js +1 -0
  80. package/lib/commonjs/theme/scale.js +1 -0
  81. package/lib/commonjs/theme/tokens.js +1 -1
  82. package/lib/commonjs/utils/index.js +1 -1
  83. package/lib/module/canvasKit/index.js +1 -1
  84. package/lib/module/components/Accordion/Accordion.js +1 -1
  85. package/lib/module/components/AppBar/AppBar.js +1 -1
  86. package/lib/module/components/Avatar/Avatar.js +1 -1
  87. package/lib/module/components/Badge/Badge.js +1 -1
  88. package/lib/module/components/Banner/Banner.js +1 -1
  89. package/lib/module/components/BarChart/BarChart.js +1 -1
  90. package/lib/module/components/BottomNavigation/BottomNavigation.js +1 -1
  91. package/lib/module/components/BottomSheet/BottomSheet.js +1 -1
  92. package/lib/module/components/Box/Box.js +1 -1
  93. package/lib/module/components/Button/Button.js +1 -1
  94. package/lib/module/components/Calendar/calendarStyles.js +1 -1
  95. package/lib/module/components/Card/Card.js +1 -1
  96. package/lib/module/components/Carousel/Carousel.js +1 -1
  97. package/lib/module/components/Checkbox/Checkbox.js +1 -1
  98. package/lib/module/components/Chip/Chip.js +1 -1
  99. package/lib/module/components/ChoiceGroup/ChoiceGroup.js +1 -1
  100. package/lib/module/components/Composer/Composer.js +1 -1
  101. package/lib/module/components/DatePicker/DatePicker.js +1 -1
  102. package/lib/module/components/DateRangePicker/DateRangePicker.js +1 -1
  103. package/lib/module/components/Descriptions/Descriptions.js +1 -1
  104. package/lib/module/components/Dialog/Dialog.js +1 -1
  105. package/lib/module/components/EmptyState/EmptyState.js +1 -1
  106. package/lib/module/components/FieldBase/ChoiceText.js +1 -1
  107. package/lib/module/components/FieldBase/FieldBase.js +1 -1
  108. package/lib/module/components/FieldBase/index.js +1 -1
  109. package/lib/module/components/FieldBase/useFloatingLabel.js +1 -1
  110. package/lib/module/components/FilePicker/FilePicker.js +1 -1
  111. package/lib/module/components/FloatingActionButton/FloatingActionButton.js +1 -1
  112. package/lib/module/components/ImageGallery/ImageGallery.js +1 -1
  113. package/lib/module/components/InlineSelect/InlineSelect.js +1 -1
  114. package/lib/module/components/Input/Input.js +1 -1
  115. package/lib/module/components/ListItem/ListItem.js +1 -1
  116. package/lib/module/components/Markdown/Markdown.js +1 -1
  117. package/lib/module/components/MessageBubble/MessageBubble.js +1 -1
  118. package/lib/module/components/MessageList/MessageList.js +1 -1
  119. package/lib/module/components/Modal/Modal.js +1 -1
  120. package/lib/module/components/NumberInput/NumberInput.js +1 -1
  121. package/lib/module/components/OTPInput/OTPInput.js +1 -1
  122. package/lib/module/components/OptionSheet/OptionSheet.js +1 -1
  123. package/lib/module/components/PaymentResult/PaymentResult.js +1 -1
  124. package/lib/module/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
  125. package/lib/module/components/PickerTrigger/PickerTrigger.js +1 -1
  126. package/lib/module/components/ProfileCompletion/ProfileCompletion.js +1 -1
  127. package/lib/module/components/ProfilePicker/ProfilePicker.js +1 -1
  128. package/lib/module/components/ProgressBar/ProgressBar.js +1 -1
  129. package/lib/module/components/Radio/Radio.js +1 -1
  130. package/lib/module/components/Radio/RadioDot.js +1 -1
  131. package/lib/module/components/Rating/Rating.js +1 -1
  132. package/lib/module/components/ScannerOverlay/ScannerOverlay.js +1 -1
  133. package/lib/module/components/SearchBar/SearchBar.js +1 -1
  134. package/lib/module/components/SegmentedControl/SegmentedControl.js +1 -1
  135. package/lib/module/components/Select/Select.js +1 -1
  136. package/lib/module/components/Skeleton/Skeleton.js +1 -1
  137. package/lib/module/components/Skeleton/SkeletonContent.js +1 -1
  138. package/lib/module/components/SlideToConfirm/SlideToConfirm.js +1 -1
  139. package/lib/module/components/Slider/Slider.js +1 -1
  140. package/lib/module/components/SliderField/SliderField.js +1 -1
  141. package/lib/module/components/Spinner/Spinner.js +1 -1
  142. package/lib/module/components/StatusBadge/StatusBadge.js +1 -1
  143. package/lib/module/components/Stepper/Stepper.js +1 -1
  144. package/lib/module/components/Swipeable/Swipeable.js +1 -1
  145. package/lib/module/components/Switch/Switch.js +1 -1
  146. package/lib/module/components/Tabs/Tabs.js +1 -1
  147. package/lib/module/components/TagInput/TagInput.js +1 -1
  148. package/lib/module/components/TimePicker/TimePicker.js +1 -1
  149. package/lib/module/components/Timeline/Timeline.js +1 -1
  150. package/lib/module/components/Toast/Toast.js +1 -1
  151. package/lib/module/components/Tooltip/Tooltip.js +1 -1
  152. package/lib/module/components/Tour/Tour.js +1 -1
  153. package/lib/module/components/TypingIndicator/TypingIndicator.js +1 -1
  154. package/lib/module/components/WheelPicker/Wheel.js +1 -1
  155. package/lib/module/index.js +1 -1
  156. package/lib/module/network/NetworkStatusBanner.js +1 -1
  157. package/lib/module/theme/componentSizes.js +1 -0
  158. package/lib/module/theme/componentTokens.js +1 -0
  159. package/lib/module/theme/index.js +1 -1
  160. package/lib/module/theme/merge.js +1 -1
  161. package/lib/module/theme/retiredThemeKeys.js +1 -0
  162. package/lib/module/theme/scale.js +1 -0
  163. package/lib/module/theme/tokens.js +1 -1
  164. package/lib/module/utils/index.js +1 -1
  165. package/lib/typescript/commonjs/components/BottomNavigation/BottomNavigation.d.ts +6 -6
  166. package/lib/typescript/commonjs/components/Box/Box.d.ts +18 -20
  167. package/lib/typescript/commonjs/components/Calendar/calendarStyles.d.ts +1 -1
  168. package/lib/typescript/commonjs/components/Card/Card.d.ts +1 -1
  169. package/lib/typescript/commonjs/components/FieldBase/FieldBase.d.ts +2 -8
  170. package/lib/typescript/commonjs/components/FieldBase/index.d.ts +1 -1
  171. package/lib/typescript/commonjs/components/FieldBase/useFloatingLabel.d.ts +3 -2
  172. package/lib/typescript/commonjs/components/InlineSelect/InlineSelect.d.ts +1 -1
  173. package/lib/typescript/commonjs/components/Input/Input.d.ts +1 -1
  174. package/lib/typescript/commonjs/components/PhoneNumberInput/PhoneNumberInput.d.ts +1 -1
  175. package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +1 -1
  176. package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +1 -15
  177. package/lib/typescript/commonjs/components/Select/Select.d.ts +2 -2
  178. package/lib/typescript/commonjs/components/Skeleton/Skeleton.d.ts +1 -1
  179. package/lib/typescript/commonjs/components/Tabs/Tabs.d.ts +1 -1
  180. package/lib/typescript/commonjs/index.d.ts +4 -4
  181. package/lib/typescript/commonjs/theme/componentSizes.d.ts +27 -0
  182. package/lib/typescript/commonjs/theme/componentTokens.d.ts +762 -0
  183. package/lib/typescript/commonjs/theme/index.d.ts +4 -1
  184. package/lib/typescript/commonjs/theme/retiredThemeKeys.d.ts +22 -0
  185. package/lib/typescript/commonjs/theme/scale.d.ts +5 -0
  186. package/lib/typescript/commonjs/theme/types.d.ts +6 -790
  187. package/lib/typescript/commonjs/utils/index.d.ts +0 -2
  188. package/lib/typescript/module/components/BottomNavigation/BottomNavigation.d.ts +6 -6
  189. package/lib/typescript/module/components/Box/Box.d.ts +18 -20
  190. package/lib/typescript/module/components/Calendar/calendarStyles.d.ts +1 -1
  191. package/lib/typescript/module/components/Card/Card.d.ts +1 -1
  192. package/lib/typescript/module/components/FieldBase/FieldBase.d.ts +2 -8
  193. package/lib/typescript/module/components/FieldBase/index.d.ts +1 -1
  194. package/lib/typescript/module/components/FieldBase/useFloatingLabel.d.ts +3 -2
  195. package/lib/typescript/module/components/InlineSelect/InlineSelect.d.ts +1 -1
  196. package/lib/typescript/module/components/Input/Input.d.ts +1 -1
  197. package/lib/typescript/module/components/PhoneNumberInput/PhoneNumberInput.d.ts +1 -1
  198. package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +1 -1
  199. package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +1 -15
  200. package/lib/typescript/module/components/Select/Select.d.ts +2 -2
  201. package/lib/typescript/module/components/Skeleton/Skeleton.d.ts +1 -1
  202. package/lib/typescript/module/components/Tabs/Tabs.d.ts +1 -1
  203. package/lib/typescript/module/index.d.ts +4 -4
  204. package/lib/typescript/module/theme/componentSizes.d.ts +27 -0
  205. package/lib/typescript/module/theme/componentTokens.d.ts +762 -0
  206. package/lib/typescript/module/theme/index.d.ts +4 -1
  207. package/lib/typescript/module/theme/retiredThemeKeys.d.ts +22 -0
  208. package/lib/typescript/module/theme/scale.d.ts +5 -0
  209. package/lib/typescript/module/theme/types.d.ts +6 -790
  210. package/lib/typescript/module/utils/index.d.ts +0 -2
  211. package/package.json +14 -4
  212. package/lib/commonjs/utils/spacing.js +0 -1
  213. package/lib/module/utils/spacing.js +0 -1
  214. package/lib/typescript/commonjs/utils/spacing.d.ts +0 -61
  215. package/lib/typescript/module/utils/spacing.d.ts +0 -61
@@ -10,8 +10,6 @@ export { mergeRefs } from './mergeRefs';
10
10
  export type { BreakpointKey, ResponsiveScales, ScreenInfo } from './responsive';
11
11
  export { Breakpoints, isScreenSize, isTablet, Responsive, ScreenDimensions, useScreenDimensions } from './responsive';
12
12
  export { shadowStyle } from './shadows';
13
- export type { SpacingToken } from './spacing';
14
- export { Margin, Padding, Spacing } from './spacing';
15
13
  export type { SquirclePathParams } from './squircle';
16
14
  export { SQUIRCLE_MIN_RADIUS, SQUIRCLE_SMOOTHING, squircleApplies, squircleHostRadius, squirclePath } from './squircle';
17
15
  export { warnUnknownProps } from './warnUnknownProps';
@@ -24,10 +24,10 @@ import type { SlotIcon, SlotIconState } from '../AppIcon/index.js';
24
24
  export type BottomNavigationVariant = 'pill' | 'underline' | 'floating' | 'bubble' | 'expand' | 'solid' | 'tile';
25
25
  export type BottomNavigationIndicatorPosition = 'top' | 'bottom';
26
26
  /**
27
- * Corner radius of the bar surface in pixels, or `full`: half the surface's
27
+ * Corner radius of the bar surface in pixels, or `pill`: half the surface's
28
28
  * own height, so the bar's ends are round whatever the bar's height comes to.
29
29
  */
30
- export type BottomNavigationRadius = number | 'full';
30
+ export type BottomNavigationRadius = number | 'pill';
31
31
  /**
32
32
  * Corner radius of the active tab's background: `auto` follows the bar's
33
33
  * radius, a number sets its own in pixels. Every value is capped at half the
@@ -142,9 +142,9 @@ export interface BottomNavigationProps {
142
142
  /**
143
143
  * Corner radius of the bar's own surface: the docked bar for every variant
144
144
  * but `floating` and `tile`, where it rounds the detached capsule instead.
145
- * A pixel value, or `full`, which rounds the ends completely at half the
145
+ * A pixel value, or `pill`, which rounds the ends completely at half the
146
146
  * surface's measured height. Defaults to square for the docked
147
- * bar, to `floatingRadius` (28) for the `floating` capsule and to fully
147
+ * bar, to `floatingRadius` (20) for the `floating` capsule and to fully
148
148
  * round for the `tile` capsule.
149
149
  *
150
150
  * Set the radius here rather than through `style`: the `underline` variant
@@ -157,7 +157,7 @@ export interface BottomNavigationProps {
157
157
  /**
158
158
  * Corner radius of the active tab's background on the `pill`, `floating`,
159
159
  * `solid`, `tile` and `expand` variants. `auto` (default) takes the bar's
160
- * radius once one is set through `radius` or the `borderRadius` token, and
160
+ * radius once one is set through `radius` or the `radius` token, and
161
161
  * stays fully round while none is. A number sets the background's own
162
162
  * radius whatever the bar's. Capped at half the background's height, since
163
163
  * Android squares off a larger radius, so a large number is fully round.
@@ -197,7 +197,7 @@ export interface BottomNavigationProps {
197
197
  paddingHorizontal?: number;
198
198
  /**
199
199
  * Air inside the bar surface above and below the tab row, in pixels.
200
- * Default 6 (8 above the `bubble` row). On a docked bar that is not lifted
200
+ * Default 4 (8 above the `bubble` row). On a docked bar that is not lifted
201
201
  * by `marginVertical`, the bottom takes the safe-area inset instead when
202
202
  * that is larger. The `underline` line sits on this padding's outer edge.
203
203
  */
@@ -1,33 +1,31 @@
1
1
  import type React from 'react';
2
2
  import type { View as RNView, StyleProp, ViewProps, ViewStyle } from 'react-native';
3
- import type { ColorPalette, RadiusScale, SpacingScale, Theme } from '../../theme/types.js';
4
- export type SpacingToken = keyof SpacingScale;
5
- export type RadiusToken = keyof RadiusScale;
3
+ import type { ColorPalette, RadiusKey, SpacingKey, Theme } from '../../theme/types.js';
6
4
  export type BackgroundToken = keyof ColorPalette['background'];
7
5
  export interface BoxProps extends ViewProps {
8
6
  /** padding (all sides) */
9
- p?: SpacingToken;
7
+ p?: SpacingKey;
10
8
  /** paddingHorizontal */
11
- px?: SpacingToken;
9
+ px?: SpacingKey;
12
10
  /** paddingVertical */
13
- py?: SpacingToken;
14
- pt?: SpacingToken;
15
- pr?: SpacingToken;
16
- pb?: SpacingToken;
17
- pl?: SpacingToken;
11
+ py?: SpacingKey;
12
+ pt?: SpacingKey;
13
+ pr?: SpacingKey;
14
+ pb?: SpacingKey;
15
+ pl?: SpacingKey;
18
16
  /** margin (all sides) */
19
- m?: SpacingToken;
20
- mx?: SpacingToken;
21
- my?: SpacingToken;
22
- mt?: SpacingToken;
23
- mr?: SpacingToken;
24
- mb?: SpacingToken;
25
- ml?: SpacingToken;
17
+ m?: SpacingKey;
18
+ mx?: SpacingKey;
19
+ my?: SpacingKey;
20
+ mt?: SpacingKey;
21
+ mr?: SpacingKey;
22
+ mb?: SpacingKey;
23
+ ml?: SpacingKey;
26
24
  /** Flexbox gap between children (spacing token). */
27
- gap?: SpacingToken;
25
+ gap?: SpacingKey;
28
26
  /** Background — a `colors.background.*` token or a raw colour string. */
29
27
  bg?: BackgroundToken | (string & {});
30
- radius?: RadiusToken;
28
+ radius?: RadiusKey;
31
29
  /** Draw a hairline border in `colors.border.primary`. */
32
30
  border?: boolean;
33
31
  flex?: number;
@@ -48,7 +46,7 @@ export type RowProps = Omit<BoxProps, 'direction'>;
48
46
  declare const Row: React.ForwardRefExoticComponent<RowProps & React.RefAttributes<RNView>>;
49
47
  export interface SpacerProps {
50
48
  /** Fixed spacer of this spacing token. Omit for a flexible spacer (`flex: 1`). */
51
- size?: SpacingToken;
49
+ size?: SpacingKey;
52
50
  style?: StyleProp<ViewStyle>;
53
51
  testID?: string;
54
52
  }
@@ -67,7 +67,7 @@ export declare const buildCalendarStyles: (theme: Theme) => {
67
67
  dayCell: {
68
68
  alignItems: "center";
69
69
  justifyContent: "center";
70
- padding: number;
70
+ padding: 0;
71
71
  };
72
72
  barLeft: {
73
73
  position: "absolute";
@@ -11,7 +11,7 @@ export interface CardTextAction {
11
11
  accessibilityLabel?: string;
12
12
  }
13
13
  export type CardElevation = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
14
- export type CardRadius = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
14
+ export type CardRadius = 'sm' | 'md' | 'lg' | 'xl';
15
15
  export type CardPadding = 'none' | 'sm' | 'md' | 'lg' | 'xl';
16
16
  export type CardBackground = keyof ColorPalette['background'] | (string & {});
17
17
  export interface CardProps extends Omit<PressableProps, 'style' | 'children'> {
@@ -24,7 +24,7 @@
24
24
  import type React from 'react';
25
25
  import type { AccessibilityRole, AccessibilityState, StyleProp, TextStyle, ViewStyle } from 'react-native';
26
26
  import { Animated } from 'react-native';
27
- import type { FieldSide, FieldVariantTokens, ResolvedFieldSizeTokens, Theme } from '../../theme/types.js';
27
+ import type { FieldSide, FieldVariantTokens, Theme } from '../../theme/types.js';
28
28
  export type FieldBaseSize = 'sm' | 'md' | 'lg';
29
29
  export type FieldBaseVariant = 'outlined' | 'filled' | 'underline';
30
30
  /**
@@ -114,7 +114,7 @@ export interface FieldBaseProps {
114
114
  paddingRight?: number;
115
115
  /** Override vertical padding (single-line). Multiline parents usually leave this default. */
116
116
  paddingVertical?: number;
117
- /** Override corner radius (shorthand — all four corners). SearchBar pill uses this to apply `radius.full`. */
117
+ /** Override corner radius (shorthand — all four corners). SearchBar pill uses this to apply `radius.pill`. */
118
118
  borderRadius?: number;
119
119
  /** Top-left corner radius. Wins over `borderRadius`. */
120
120
  borderTopLeftRadius?: number;
@@ -253,12 +253,6 @@ export declare const FieldMessage: React.FC<{
253
253
  size?: FieldBaseSize;
254
254
  style?: StyleProp<TextStyle>;
255
255
  }>;
256
- /**
257
- * Public re-export of the resolved size tokens — components that need to
258
- * compute their own padding adjustments (e.g. multiline Input, icon-slot
259
- * sizing) read from this rather than re-hardcoding the size table.
260
- */
261
- export declare const resolveFieldSize: (theme: Theme, size: FieldBaseSize) => ResolvedFieldSizeTokens;
262
256
  /**
263
257
  * Strict, fully-resolved colour set used internally. Mirrors `FieldVariantTokens`
264
258
  * but every border colour / width is expanded to a 4-side record by the time
@@ -1,5 +1,5 @@
1
1
  export type { FieldBaseProps, FieldBaseSize, FieldBaseVariant, FieldTextStyle, FieldTextStyleResolverOptions } from './FieldBase.js';
2
- export { default, FieldBase, FieldErrorGlyph, FieldLabel, FieldMessage, fieldTextAsString, hasFieldText, RequiredMark, RequiredPlaceholder, resolveFieldSize, resolveFieldTextStyle } from './FieldBase.js';
2
+ export { default, FieldBase, FieldErrorGlyph, FieldLabel, FieldMessage, fieldTextAsString, hasFieldText, RequiredMark, RequiredPlaceholder, resolveFieldTextStyle } from './FieldBase.js';
3
3
  export type { UseFloatingLabelOptions, UseFloatingLabelResult } from './useFloatingLabel.js';
4
4
  export { FLOATED_LABEL_SCALE, useFloatingLabel } from './useFloatingLabel.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -15,7 +15,8 @@
15
15
  */
16
16
  import type React from 'react';
17
17
  import type { StyleProp, TextStyle } from 'react-native';
18
- import type { ResolvedFieldSizeTokens } from '../../theme/types.js';
18
+ import { type Resolved } from '../../theme/index.js';
19
+ import type { FieldSizeTokens } from '../../theme/types.js';
19
20
  import type { FieldBaseProps, FieldBaseVariant } from './FieldBase.js';
20
21
  /** The floated label's scale; the outlined notch is sized from it. */
21
22
  export declare const FLOATED_LABEL_SCALE = 0.85;
@@ -28,7 +29,7 @@ export interface UseFloatingLabelOptions {
28
29
  floated: boolean;
29
30
  required?: boolean;
30
31
  variant: FieldBaseVariant;
31
- sizeTokens: ResolvedFieldSizeTokens;
32
+ sizeTokens: Resolved<FieldSizeTokens>;
32
33
  /** Where the text starts past the leading slot (icon, gaps, divider), px. */
33
34
  leadingOffset: number;
34
35
  /** Width the trailing slot takes, for a right-aligned label, px. */
@@ -75,7 +75,7 @@ export interface InlineSelectProps<T = SelectOption> {
75
75
  color?: string;
76
76
  /** Chevron colour override — falls back to `color`'s resolution. */
77
77
  chevronColor?: string;
78
- /** Chevron size in pixels. Default: the field size's `iconSize`. */
78
+ /** Chevron size in pixels. Default: the field size's `icon`. */
79
79
  chevronSize?: number;
80
80
  textStyle?: StyleProp<TextStyle>;
81
81
  style?: StyleProp<ViewStyle>;
@@ -164,7 +164,7 @@ export interface InputProps extends Omit<TextInputProps, 'style'> {
164
164
  labelStyle?: StyleProp<TextStyle>;
165
165
  /** Style applied to the helper/error text below the field. */
166
166
  messageStyle?: StyleProp<TextStyle>;
167
- /** Per-instance override for the field's corner radius. Wins over `theme.components.input.borderRadius` and size defaults. */
167
+ /** Per-instance override for the field's corner radius. Wins over the field size's radius. */
168
168
  borderRadius?: number;
169
169
  onFocus?: (e: FocusEvent) => void;
170
170
  onBlur?: (e: BlurEvent) => void;
@@ -179,7 +179,7 @@ export interface PhoneNumberInputProps extends Pick<TextInputProps, 'returnKeyTy
179
179
  disabled?: boolean;
180
180
  size?: FieldBaseSize;
181
181
  variant?: FieldBaseVariant;
182
- /** Per-instance corner radius. Wins over `theme.components.phoneNumberInput.borderRadius` and the field default. */
182
+ /** Per-instance corner radius. Wins over the field size's radius. */
183
183
  borderRadius?: number;
184
184
  countrySheetTitle?: string;
185
185
  haptic?: HapticType | false;
@@ -31,7 +31,7 @@ export interface SearchBarProps extends Omit<TextInputProps, 'style' | 'value' |
31
31
  size?: SearchBarSize;
32
32
  variant?: SearchBarVariant;
33
33
  /**
34
- * Corner radius. Default: the theme's `components.searchBar.<size>.borderRadius`
34
+ * Corner radius. Default: the theme's `components.searchBar.<size>.radius`
35
35
  * (the pill). Ignored on `underline`, which is always square.
36
36
  */
37
37
  borderRadius?: number;
@@ -70,7 +70,7 @@ export interface SegmentedControlProps {
70
70
  * Corner radius, a theme token or a pixel number. Rounds the segmented
71
71
  * track (the thumb nests inside with the track's corner minus the inset),
72
72
  * the pill, and the ends of the underline. Unset, each variant keeps its
73
- * own default: `md` track with an `sm` thumb, a `full` pill, a square
73
+ * own default: `md` track with an `sm` thumb, a `pill`-radius pill, a square
74
74
  * underline. The theme's `segmentedControl.radius` token is the app-wide
75
75
  * default under this prop.
76
76
  */
@@ -93,20 +93,6 @@ export interface SegmentedControlProps {
93
93
  labelStyle?: StyleProp<TextStyle>;
94
94
  testID?: string;
95
95
  }
96
- export interface SegmentedControlSizeStyle {
97
- height: number;
98
- fontSize: number;
99
- paddingHorizontal: number;
100
- /** Pixel size a named icon is drawn at. */
101
- iconSize: number;
102
- }
103
- /**
104
- * The control's sizes. Exported so `Tabs`' segmented variant draws from the
105
- * same numbers and the two looks cannot drift.
106
- */
107
- export declare const segmentedControlSizes: Record<SegmentedControlSize, SegmentedControlSizeStyle>;
108
- /** Inset between the track edge and the thumb; also read by `Tabs`' segmented variant. */
109
- export declare const segmentedControlTrackPadding = 4;
110
96
  declare const SegmentedControl: import("react").ForwardRefExoticComponent<SegmentedControlProps & import("react").RefAttributes<RNView>>;
111
97
  export { SegmentedControl };
112
98
  export default SegmentedControl;
@@ -111,9 +111,9 @@ interface BaseSelectProps<T = SelectOption> {
111
111
  rightIcon?: SlotIcon;
112
112
  /** Colour of the built-in chevron. Ignored when `rightIcon` is set. Default: `colors.text.tertiary` (`text.disabled` when disabled). */
113
113
  chevronColor?: string;
114
- /** Size of the built-in chevron in pixels. Ignored when `rightIcon` is set. Default: the field size's `iconSize`. */
114
+ /** Size of the built-in chevron in pixels. Ignored when `rightIcon` is set. Default: the field size's `icon`. */
115
115
  chevronSize?: number;
116
- /** Per-instance override for the trigger's corner radius. Wins over `components.select.borderRadius` and size defaults. */
116
+ /** Per-instance override for the trigger's corner radius. Wins over the field size's radius. */
117
117
  borderRadius?: number;
118
118
  accessibilityLabel?: string;
119
119
  /** Style for the field label text above the trigger; the same prop as Input's and NumberInput's. */
@@ -33,7 +33,7 @@ export type SkeletonSpeed = 'slow' | 'normal' | 'fast';
33
33
  /** Pre-defined shape archetype. Plays nicely with `width`/`height` overrides. */
34
34
  export type SkeletonShape = 'rect' | 'rounded' | 'circle' | 'text';
35
35
  /** `theme.radius` token name or a literal pixel value. */
36
- export type SkeletonRadius = keyof Pick<RadiusScale, 'sm' | 'md' | 'lg' | 'xl' | 'full'> | number;
36
+ export type SkeletonRadius = keyof Pick<RadiusScale, 'sm' | 'md' | 'lg' | 'xl' | 'pill'> | number;
37
37
  export type SkeletonWidth = number | 'auto' | '100%' | `${number}%`;
38
38
  export interface SkeletonProps {
39
39
  /**
@@ -52,7 +52,7 @@ export interface TabsProps {
52
52
  * Corner radius, a theme token or a pixel number. Rounds the segmented
53
53
  * track (the thumb nests inside it, its corner the track's minus the inset),
54
54
  * the pill, and the ends of the underline. Unset, each variant keeps its own
55
- * default: `md` track with an `sm` thumb, a `full` pill, a square underline.
55
+ * default: `md` track with an `sm` thumb, a `pill`-radius pill, a square underline.
56
56
  * The theme's `tabs.radius` token is the app-wide default under this prop.
57
57
  */
58
58
  radius?: TabsRadius;
@@ -9,8 +9,8 @@ export type { InitUIOptions } from './initUI.js';
9
9
  export { initUI } from './initUI.js';
10
10
  export type { NetworkStatusBannerProps } from './network/index.js';
11
11
  export { NetworkStatusBanner } from './network/index.js';
12
- export type { ColorMode, ColorPalette, ColorSchemePreference, DeepPartial, IconRegistry, IconRenderer, MotionScale, RadiusScale, ShadowDefinition, ShadowScale, SpacingScale, TextVariantSpec, Theme, ThemeOverrides, ThemeProviderProps, TypographyScale } from './theme/index.js';
13
- export { darkTheme, getColorMode, getTheme, lightTheme, mergeTheme, resetTheme, setColorMode, setTheme, subscribeTheme, ThemeProvider, useTheme, useThemeMode } from './theme/index.js';
14
- export type { AnnounceOptions, BreakpointKey, FeedbackIntent, HapticType, ResponsiveScales, ScreenInfo, SpacingToken, SquirclePathParams } from './utils/index.js';
15
- export { announce, Breakpoints, configureFeedback, feedback, hapticForIntent, isFeedbackEnabled, isScreenSize, isTablet, Margin, Padding, Responsive, ScreenDimensions, Spacing, SQUIRCLE_MIN_RADIUS, SQUIRCLE_SMOOTHING, setHapticImplementation, shadowStyle, smoothCorners, squircleApplies, squircleHostRadius, squirclePath, triggerHaptic, useScreenDimensions, warnUnknownProps } from './utils/index.js';
12
+ export type { ColorMode, ColorPalette, ColorSchemePreference, ComponentTokens, DeepPartial, FontSizeKey, IconRegistry, IconRenderer, MotionScale, RadiusKey, RadiusScale, Resolved, ShadowDefinition, ShadowScale, SpacingKey, SpacingScale, TextVariantSpec, Theme, ThemeOverrides, ThemeProviderProps, TypographyScale } from './theme/index.js';
13
+ export { darkTheme, fontSizeOf, getColorMode, getTheme, lightTheme, mergeTheme, radiusOf, resetTheme, resolveBadgeSize, resolveButtonSize, resolveCheckboxSize, resolveChipSize, resolveEmptyStateSize, resolveFieldSize, resolveFloatingActionButtonSize, resolveListItemSize, resolveOtpInputSize, resolveRadioSize, resolveSegmentedControlSize, resolveSliderSize, resolveSwitchSize, resolveTabsSize, setColorMode, setTheme, spaceOf, subscribeTheme, ThemeProvider, useTheme, useThemeMode } from './theme/index.js';
14
+ export type { AnnounceOptions, BreakpointKey, FeedbackIntent, HapticType, ResponsiveScales, ScreenInfo, SquirclePathParams } from './utils/index.js';
15
+ export { announce, Breakpoints, configureFeedback, feedback, hapticForIntent, isFeedbackEnabled, isScreenSize, isTablet, Responsive, ScreenDimensions, SQUIRCLE_MIN_RADIUS, SQUIRCLE_SMOOTHING, setHapticImplementation, shadowStyle, smoothCorners, squircleApplies, squircleHostRadius, squirclePath, triggerHaptic, useScreenDimensions, warnUnknownProps } from './utils/index.js';
16
16
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,27 @@
1
+ import type { BadgeSizeTokens, ButtonSizeTokens, CheckboxSizeTokens, ChipSizeTokens, ComponentSizeKey, EmptyStateSizeTokens, FieldSizeTokens, FloatingActionButtonSizeTokens, ListItemSizeTokens, OTPInputSizeTokens, RadioSizeTokens, SegmentedControlSizeTokens, SliderSizeTokens, SwitchSizeTokens, TabsSizeTokens } from './componentTokens.js';
2
+ import type { Theme } from './types.js';
3
+ /** A size token with every scale name turned into pixels. */
4
+ export type Resolved<T> = {
5
+ [K in keyof T]: number;
6
+ };
7
+ export declare const resolveButtonSize: (theme: Theme, size: ComponentSizeKey) => Resolved<ButtonSizeTokens>;
8
+ export declare const resolveFieldSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<FieldSizeTokens>;
9
+ export declare const resolveEmptyStateSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<EmptyStateSizeTokens>;
10
+ export declare const resolveListItemSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<ListItemSizeTokens>;
11
+ export declare const resolveBadgeSize: (theme: Theme, size: "sm" | "md") => Resolved<BadgeSizeTokens>;
12
+ export declare const resolveChipSize: (theme: Theme, size: "sm" | "md") => Resolved<ChipSizeTokens>;
13
+ export declare const resolveCheckboxSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<CheckboxSizeTokens>;
14
+ export declare const resolveRadioSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<RadioSizeTokens>;
15
+ export declare const resolveSwitchSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<SwitchSizeTokens>;
16
+ export declare const resolveOtpInputSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<OTPInputSizeTokens>;
17
+ export declare const resolveSegmentedControlSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<SegmentedControlSizeTokens>;
18
+ export declare const resolveTabsSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<TabsSizeTokens>;
19
+ export declare const resolveSliderSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<SliderSizeTokens>;
20
+ export declare const resolveFloatingActionButtonSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<FloatingActionButtonSizeTokens>;
21
+ /**
22
+ * Resolves every scale-named component token once, so a theme override that
23
+ * names a missing scale step stops the app where the theme is built, with the
24
+ * token's path, instead of drawing a component with no padding.
25
+ */
26
+ export declare const validateComponentTokens: (theme: Theme) => void;
27
+ //# sourceMappingURL=componentSizes.d.ts.map