@webority/mobile-ui 0.164.0 → 0.165.0

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 (95) hide show
  1. package/LICENSE.txt +1 -1
  2. package/dist/canvas-kit/kit.js +5 -5
  3. package/dist/canvas-kit/manifest.json +6 -1
  4. package/dist/canvas-kit/release.json +6 -6
  5. package/lib/commonjs/components/Avatar/Avatar.js +1 -1
  6. package/lib/commonjs/components/Banner/Banner.js +1 -1
  7. package/lib/commonjs/components/BottomSheet/BottomSheet.js +1 -1
  8. package/lib/commonjs/components/Card/Card.js +1 -1
  9. package/lib/commonjs/components/Carousel/Carousel.js +1 -1
  10. package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +1 -1
  11. package/lib/commonjs/components/FieldBase/FieldBase.js +1 -1
  12. package/lib/commonjs/components/IconBadge/IconBadge.js +1 -1
  13. package/lib/commonjs/components/ImageGallery/ImageGallery.js +1 -1
  14. package/lib/commonjs/components/Input/Input.js +1 -1
  15. package/lib/commonjs/components/MessageBubble/MessageBubble.js +1 -1
  16. package/lib/commonjs/components/Modal/Modal.js +1 -1
  17. package/lib/commonjs/components/NumberInput/NumberInput.js +1 -1
  18. package/lib/commonjs/components/OptionSheet/OptionSheet.js +1 -1
  19. package/lib/commonjs/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
  20. package/lib/commonjs/components/ProfilePicker/ProfilePicker.js +1 -1
  21. package/lib/commonjs/components/Screen/Screen.js +1 -1
  22. package/lib/commonjs/components/SearchBar/SearchBar.js +1 -1
  23. package/lib/commonjs/components/Slider/Slider.js +1 -1
  24. package/lib/commonjs/components/SliderField/SliderField.js +1 -1
  25. package/lib/commonjs/components/TagInput/TagInput.js +1 -1
  26. package/lib/commonjs/components/Tooltip/Tooltip.js +1 -1
  27. package/lib/commonjs/hooks/useDragToDismiss.js +1 -1
  28. package/lib/commonjs/theme/merge.js +1 -1
  29. package/lib/module/components/Avatar/Avatar.js +1 -1
  30. package/lib/module/components/Banner/Banner.js +1 -1
  31. package/lib/module/components/BottomSheet/BottomSheet.js +1 -1
  32. package/lib/module/components/Card/Card.js +1 -1
  33. package/lib/module/components/Carousel/Carousel.js +1 -1
  34. package/lib/module/components/DateRangePicker/DateRangePicker.js +1 -1
  35. package/lib/module/components/FieldBase/FieldBase.js +1 -1
  36. package/lib/module/components/IconBadge/IconBadge.js +1 -1
  37. package/lib/module/components/ImageGallery/ImageGallery.js +1 -1
  38. package/lib/module/components/Input/Input.js +1 -1
  39. package/lib/module/components/MessageBubble/MessageBubble.js +1 -1
  40. package/lib/module/components/Modal/Modal.js +1 -1
  41. package/lib/module/components/NumberInput/NumberInput.js +1 -1
  42. package/lib/module/components/OptionSheet/OptionSheet.js +1 -1
  43. package/lib/module/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
  44. package/lib/module/components/ProfilePicker/ProfilePicker.js +1 -1
  45. package/lib/module/components/Screen/Screen.js +1 -1
  46. package/lib/module/components/SearchBar/SearchBar.js +1 -1
  47. package/lib/module/components/Slider/Slider.js +1 -1
  48. package/lib/module/components/SliderField/SliderField.js +1 -1
  49. package/lib/module/components/TagInput/TagInput.js +1 -1
  50. package/lib/module/components/Tooltip/Tooltip.js +1 -1
  51. package/lib/module/hooks/useDragToDismiss.js +1 -1
  52. package/lib/module/theme/merge.js +1 -1
  53. package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +1 -0
  54. package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +1 -0
  55. package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +1 -0
  56. package/lib/typescript/commonjs/components/Carousel/Carousel.d.ts +1 -0
  57. package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +1 -0
  58. package/lib/typescript/commonjs/components/FieldBase/FieldBase.d.ts +1 -0
  59. package/lib/typescript/commonjs/components/ImageGallery/ImageGallery.d.ts +1 -0
  60. package/lib/typescript/commonjs/components/Input/Input.d.ts +1 -0
  61. package/lib/typescript/commonjs/components/Menu/Menu.d.ts +1 -1
  62. package/lib/typescript/commonjs/components/Modal/Modal.d.ts +1 -0
  63. package/lib/typescript/commonjs/components/NumberInput/NumberInput.d.ts +1 -0
  64. package/lib/typescript/commonjs/components/OptionSheet/OptionSheet.d.ts +1 -1
  65. package/lib/typescript/commonjs/components/PhoneNumberInput/PhoneNumberInput.d.ts +1 -0
  66. package/lib/typescript/commonjs/components/ProfilePicker/ProfilePicker.d.ts +1 -0
  67. package/lib/typescript/commonjs/components/Screen/Screen.d.ts +1 -0
  68. package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +1 -0
  69. package/lib/typescript/commonjs/components/Slider/Slider.d.ts +5 -0
  70. package/lib/typescript/commonjs/components/SliderField/SliderField.d.ts +1 -0
  71. package/lib/typescript/commonjs/components/TagInput/TagInput.d.ts +1 -0
  72. package/lib/typescript/commonjs/hooks/useDragToDismiss.d.ts +2 -0
  73. package/lib/typescript/commonjs/theme/types.d.ts +9 -3
  74. package/lib/typescript/module/components/AppBar/AppBar.d.ts +1 -0
  75. package/lib/typescript/module/components/Avatar/Avatar.d.ts +1 -0
  76. package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +1 -0
  77. package/lib/typescript/module/components/Carousel/Carousel.d.ts +1 -0
  78. package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +1 -0
  79. package/lib/typescript/module/components/FieldBase/FieldBase.d.ts +1 -0
  80. package/lib/typescript/module/components/ImageGallery/ImageGallery.d.ts +1 -0
  81. package/lib/typescript/module/components/Input/Input.d.ts +1 -0
  82. package/lib/typescript/module/components/Menu/Menu.d.ts +1 -1
  83. package/lib/typescript/module/components/Modal/Modal.d.ts +1 -0
  84. package/lib/typescript/module/components/NumberInput/NumberInput.d.ts +1 -0
  85. package/lib/typescript/module/components/OptionSheet/OptionSheet.d.ts +1 -1
  86. package/lib/typescript/module/components/PhoneNumberInput/PhoneNumberInput.d.ts +1 -0
  87. package/lib/typescript/module/components/ProfilePicker/ProfilePicker.d.ts +1 -0
  88. package/lib/typescript/module/components/Screen/Screen.d.ts +1 -0
  89. package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +1 -0
  90. package/lib/typescript/module/components/Slider/Slider.d.ts +5 -0
  91. package/lib/typescript/module/components/SliderField/SliderField.d.ts +1 -0
  92. package/lib/typescript/module/components/TagInput/TagInput.d.ts +1 -0
  93. package/lib/typescript/module/hooks/useDragToDismiss.d.ts +2 -0
  94. package/lib/typescript/module/theme/types.d.ts +9 -3
  95. package/package.json +9 -10
@@ -183,11 +183,14 @@ export interface ThemeSettings {
183
183
  components?: ComponentSettings | undefined;
184
184
  }
185
185
  /** A product's brand, generated by `webority brand` as theme/generated/brand.phone.js. Never spacing, text or component sizes. */
186
+ type BrandColors = Partial<Record<ColorName, string>> & Record<string, string | undefined>;
186
187
  export interface BrandOverrides {
187
188
  colors?: {
188
- light?: Partial<Record<ColorName, string>> | undefined;
189
- dark?: Partial<Record<ColorName, string>> | undefined;
189
+ light?: BrandColors | undefined;
190
+ dark?: BrandColors | undefined;
190
191
  } | undefined;
192
+ /** What each colour the brand adds is for, by name. A colour name the library does not define must be described here. */
193
+ descriptions?: Record<string, string> | undefined;
191
194
  radius?: Partial<Record<Exclude<RadiusName, "none" | "pill">, number>> | undefined;
192
195
  font?: Partial<Record<FontName, FontFaces>> | undefined;
193
196
  }
@@ -201,7 +204,10 @@ export interface SpringScale {
201
204
  bouncy: Spring;
202
205
  snappy: Spring;
203
206
  }
204
- export interface Theme extends Omit<TokenSet, "motion"> {
207
+ export interface Theme extends Omit<TokenSet, "motion" | "colors"> {
208
+ colors: TokenSet["colors"] & {
209
+ readonly [name: string]: string | undefined;
210
+ };
205
211
  motion: TokenSet["motion"] & {
206
212
  spring: SpringScale;
207
213
  fadeDuration: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/mobile-ui",
3
- "version": "0.164.0",
3
+ "version": "0.165.0",
4
4
  "description": "Beautiful, animated, accessible React Native components, theme and form engine for Webority projects.",
5
5
  "keywords": [
6
6
  "react-native",
@@ -115,13 +115,13 @@
115
115
  }
116
116
  },
117
117
  "dependencies": {
118
- "@webority/markdown-core": "0.164.0"
118
+ "@webority/markdown-core": "0.165.0"
119
119
  },
120
120
  "peerDependencies": {
121
121
  "@react-navigation/bottom-tabs": ">=7.0.0",
122
122
  "@react-navigation/native": ">=7.0.0",
123
- "@webority/canvas-kit": "0.164.0",
124
- "@webority/mobile-core": "0.164.0",
123
+ "@webority/canvas-kit": "0.165.0",
124
+ "@webority/mobile-core": "0.165.0",
125
125
  "expo": ">=58.0.0",
126
126
  "expo-file-system": ">=58.0.0",
127
127
  "expo-haptics": ">=58.0.0",
@@ -181,14 +181,13 @@
181
181
  "@react-native/metro-config": "0.88.1",
182
182
  "@react-navigation/bottom-tabs": "7.19.2",
183
183
  "@react-navigation/native": "7.5.1",
184
- "@testing-library/react-native": "12.9.0",
184
+ "@testing-library/react-native": "14.1.0",
185
185
  "@types/node": "25.6.0",
186
186
  "@types/react": "19.3.0",
187
- "@types/react-test-renderer": "19.3.0",
188
- "@webority/canvas-kit": "0.164.0",
189
- "@webority/mobile-core": "0.164.0",
187
+ "@webority/canvas-kit": "0.165.0",
188
+ "@webority/mobile-core": "0.165.0",
190
189
  "@webority/mobile-dev": "0.0.0",
191
- "@webority/tokens": "0.164.0",
190
+ "@webority/tokens": "0.165.0",
192
191
  "expo": "58.0.23",
193
192
  "expo-file-system": "58.0.13",
194
193
  "expo-haptics": "58.0.7",
@@ -204,7 +203,7 @@
204
203
  "react-native-safe-area-context": "5.11.1",
205
204
  "react-native-svg": "15.16.0",
206
205
  "react-native-worklets": "0.13.0",
207
- "react-test-renderer": "19.3.0",
206
+ "test-renderer": "1.3.1",
208
207
  "typescript": "7.0.2"
209
208
  },
210
209
  "scripts": {