@webority/mobile-ui 0.149.0 → 0.152.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 (489) hide show
  1. package/dist/canvas-kit/kit.js +13 -56714
  2. package/dist/canvas-kit/manifest.json +157 -56
  3. package/dist/canvas-kit/release.json +6 -6
  4. package/lib/commonjs/components/Accordion/Accordion.js +1 -1
  5. package/lib/commonjs/components/AppBar/AppBar.js +1 -1
  6. package/lib/commonjs/components/AppIcon/AppIcon.js +1 -1
  7. package/lib/commonjs/components/AppIcon/glyphs.g.js +1 -1
  8. package/lib/commonjs/components/AsyncBlock/AsyncBlock.js +1 -1
  9. package/lib/commonjs/components/AuthedImage/AuthedImage.js +1 -1
  10. package/lib/commonjs/components/AuthedImage/authedImageCache.js +1 -1
  11. package/lib/commonjs/components/Avatar/Avatar.js +1 -1
  12. package/lib/commonjs/components/Badge/Badge.js +1 -1
  13. package/lib/commonjs/components/Banner/Banner.js +1 -1
  14. package/lib/commonjs/components/BottomNavigation/BottomNavigation.js +1 -1
  15. package/lib/commonjs/components/Box/Box.js +1 -1
  16. package/lib/commonjs/components/Button/Button.js +1 -1
  17. package/lib/commonjs/components/Calendar/calendarStyles.js +1 -1
  18. package/lib/commonjs/components/Card/Card.js +1 -1
  19. package/lib/commonjs/components/Carousel/Carousel.js +1 -1
  20. package/lib/commonjs/components/Chip/Chip.js +1 -1
  21. package/lib/commonjs/components/ChoiceGroup/ChoiceGroup.js +1 -1
  22. package/lib/commonjs/components/Confetti/Confetti.js +1 -1
  23. package/lib/commonjs/components/DatePicker/DatePicker.js +1 -1
  24. package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +1 -1
  25. package/lib/commonjs/components/Descriptions/Descriptions.js +1 -1
  26. package/lib/commonjs/components/Dialog/Dialog.js +1 -1
  27. package/lib/commonjs/components/FilePicker/FilePicker.js +1 -1
  28. package/lib/commonjs/components/FileViewer/fileSource.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/Menu/MenuSurface.js +1 -1
  36. package/lib/commonjs/components/Menu/focusHost.js +1 -1
  37. package/lib/commonjs/components/NonModalBottomSheet/NonModalBottomSheet.js +1 -0
  38. package/lib/commonjs/components/NonModalBottomSheet/index.js +1 -0
  39. package/lib/commonjs/components/OptionSheet/OptionSheet.js +1 -1
  40. package/lib/commonjs/components/OptionSheet/optionAccessors.js +1 -0
  41. package/lib/commonjs/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
  42. package/lib/commonjs/components/ProgressRing/ProgressRing.js +1 -1
  43. package/lib/commonjs/components/Radio/RadioGroup.js +1 -1
  44. package/lib/commonjs/components/Rating/Rating.js +1 -1
  45. package/lib/commonjs/components/Repeater/Repeater.js +1 -1
  46. package/lib/commonjs/components/Screen/Screen.js +1 -1
  47. package/lib/commonjs/components/SearchBar/useRecentSearches.js +1 -1
  48. package/lib/commonjs/components/SegmentedControl/SegmentedControl.js +1 -1
  49. package/lib/commonjs/components/Select/Select.js +1 -1
  50. package/lib/commonjs/components/Skeleton/SkeletonContent.js +1 -1
  51. package/lib/commonjs/components/Skeleton/SkeletonList.js +1 -1
  52. package/lib/commonjs/components/Slider/Slider.js +1 -1
  53. package/lib/commonjs/components/SliderField/SliderField.js +1 -1
  54. package/lib/commonjs/components/SortableList/SortableList.js +1 -1
  55. package/lib/commonjs/components/Sparkline/Sparkline.js +1 -1
  56. package/lib/commonjs/components/SquircleFill/SquircleFill.js +1 -1
  57. package/lib/commonjs/components/StatTile/StatTile.js +1 -1
  58. package/lib/commonjs/components/StatusBadge/StatusBadge.js +1 -1
  59. package/lib/commonjs/components/StatusBadge/statusMap.js +1 -1
  60. package/lib/commonjs/components/Stepper/Stepper.js +1 -1
  61. package/lib/commonjs/components/Text/Text.js +1 -1
  62. package/lib/commonjs/components/TimePicker/TimePicker.js +1 -1
  63. package/lib/commonjs/components/Toast/Toast.js +1 -1
  64. package/lib/commonjs/components/WheelPicker/Wheel.js +1 -1
  65. package/lib/commonjs/components/WheelPicker/WheelPicker.js +1 -1
  66. package/lib/commonjs/components/index.js +1 -1
  67. package/lib/commonjs/form/HookFormField.js +1 -1
  68. package/lib/commonjs/form/path.js +1 -1
  69. package/lib/commonjs/hooks/useControllableState.js +1 -1
  70. package/lib/commonjs/index.js +1 -1
  71. package/lib/commonjs/specs/NativePdfRasterizer.js +1 -1
  72. package/lib/commonjs/theme/ThemeContext.js +1 -1
  73. package/lib/commonjs/theme/animatedValue.js +1 -1
  74. package/lib/commonjs/theme/componentSizes.js +1 -1
  75. package/lib/commonjs/theme/merge.js +1 -1
  76. package/lib/commonjs/theme/scale.js +1 -1
  77. package/lib/commonjs/theme/tokens.generated.js +1 -1
  78. package/lib/commonjs/utils/complete.js +1 -0
  79. package/lib/commonjs/utils/guards.js +1 -0
  80. package/lib/commonjs/utils/hapticUtils.js +1 -1
  81. package/lib/module/components/Accordion/Accordion.js +1 -1
  82. package/lib/module/components/AppBar/AppBar.js +1 -1
  83. package/lib/module/components/AppIcon/AppIcon.js +1 -1
  84. package/lib/module/components/AppIcon/glyphs.g.js +1 -1
  85. package/lib/module/components/AsyncBlock/AsyncBlock.js +1 -1
  86. package/lib/module/components/AuthedImage/AuthedImage.js +1 -1
  87. package/lib/module/components/AuthedImage/authedImageCache.js +1 -1
  88. package/lib/module/components/Avatar/Avatar.js +1 -1
  89. package/lib/module/components/Badge/Badge.js +1 -1
  90. package/lib/module/components/Banner/Banner.js +1 -1
  91. package/lib/module/components/BottomNavigation/BottomNavigation.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/Chip/Chip.js +1 -1
  98. package/lib/module/components/ChoiceGroup/ChoiceGroup.js +1 -1
  99. package/lib/module/components/Confetti/Confetti.js +1 -1
  100. package/lib/module/components/DatePicker/DatePicker.js +1 -1
  101. package/lib/module/components/DateRangePicker/DateRangePicker.js +1 -1
  102. package/lib/module/components/Descriptions/Descriptions.js +1 -1
  103. package/lib/module/components/Dialog/Dialog.js +1 -1
  104. package/lib/module/components/FilePicker/FilePicker.js +1 -1
  105. package/lib/module/components/FileViewer/fileSource.js +1 -1
  106. package/lib/module/components/FloatingActionButton/FloatingActionButton.js +1 -1
  107. package/lib/module/components/ImageGallery/ImageGallery.js +1 -1
  108. package/lib/module/components/InlineSelect/InlineSelect.js +1 -1
  109. package/lib/module/components/Input/Input.js +1 -1
  110. package/lib/module/components/ListItem/ListItem.js +1 -1
  111. package/lib/module/components/Markdown/Markdown.js +1 -1
  112. package/lib/module/components/Menu/MenuSurface.js +1 -1
  113. package/lib/module/components/Menu/focusHost.js +1 -1
  114. package/lib/module/components/NonModalBottomSheet/NonModalBottomSheet.js +1 -0
  115. package/lib/module/components/NonModalBottomSheet/index.js +1 -0
  116. package/lib/module/components/OptionSheet/OptionSheet.js +1 -1
  117. package/lib/module/components/OptionSheet/optionAccessors.js +1 -0
  118. package/lib/module/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
  119. package/lib/module/components/ProgressRing/ProgressRing.js +1 -1
  120. package/lib/module/components/Radio/RadioGroup.js +1 -1
  121. package/lib/module/components/Rating/Rating.js +1 -1
  122. package/lib/module/components/Repeater/Repeater.js +1 -1
  123. package/lib/module/components/Screen/Screen.js +1 -1
  124. package/lib/module/components/SearchBar/useRecentSearches.js +1 -1
  125. package/lib/module/components/SegmentedControl/SegmentedControl.js +1 -1
  126. package/lib/module/components/Select/Select.js +1 -1
  127. package/lib/module/components/Skeleton/SkeletonContent.js +1 -1
  128. package/lib/module/components/Skeleton/SkeletonList.js +1 -1
  129. package/lib/module/components/Slider/Slider.js +1 -1
  130. package/lib/module/components/SliderField/SliderField.js +1 -1
  131. package/lib/module/components/SortableList/SortableList.js +1 -1
  132. package/lib/module/components/Sparkline/Sparkline.js +1 -1
  133. package/lib/module/components/SquircleFill/SquircleFill.js +1 -1
  134. package/lib/module/components/StatTile/StatTile.js +1 -1
  135. package/lib/module/components/StatusBadge/StatusBadge.js +1 -1
  136. package/lib/module/components/StatusBadge/statusMap.js +1 -1
  137. package/lib/module/components/Stepper/Stepper.js +1 -1
  138. package/lib/module/components/Text/Text.js +1 -1
  139. package/lib/module/components/TimePicker/TimePicker.js +1 -1
  140. package/lib/module/components/Toast/Toast.js +1 -1
  141. package/lib/module/components/WheelPicker/Wheel.js +1 -1
  142. package/lib/module/components/WheelPicker/WheelPicker.js +1 -1
  143. package/lib/module/components/index.js +1 -1
  144. package/lib/module/form/HookFormField.js +1 -1
  145. package/lib/module/form/path.js +1 -1
  146. package/lib/module/hooks/useControllableState.js +1 -1
  147. package/lib/module/index.js +1 -1
  148. package/lib/module/specs/NativePdfRasterizer.js +1 -1
  149. package/lib/module/theme/ThemeContext.js +1 -1
  150. package/lib/module/theme/animatedValue.js +1 -1
  151. package/lib/module/theme/componentSizes.js +1 -1
  152. package/lib/module/theme/merge.js +1 -1
  153. package/lib/module/theme/scale.js +1 -1
  154. package/lib/module/theme/tokens.generated.js +1 -1
  155. package/lib/module/utils/complete.js +1 -0
  156. package/lib/module/utils/guards.js +1 -0
  157. package/lib/module/utils/hapticUtils.js +1 -1
  158. package/lib/typescript/commonjs/canvasKit/index.d.ts +12 -12
  159. package/lib/typescript/commonjs/canvasKit/meta.d.ts +5 -7
  160. package/lib/typescript/commonjs/components/Accordion/Accordion.d.ts +22 -22
  161. package/lib/typescript/commonjs/components/AmountSlider/AmountSlider.d.ts +23 -23
  162. package/lib/typescript/commonjs/components/AnimatePresence/AnimatePresence.d.ts +5 -5
  163. package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +39 -39
  164. package/lib/typescript/commonjs/components/AppIcon/AppIcon.d.ts +7 -7
  165. package/lib/typescript/commonjs/components/AppIcon/defaultIcons.d.ts +2 -1
  166. package/lib/typescript/commonjs/components/AppIcon/glyphs.g.d.ts +233 -233
  167. package/lib/typescript/commonjs/components/AppIcon/slotIcon.d.ts +1 -1
  168. package/lib/typescript/commonjs/components/AppLockOverlay/AppLockOverlay.d.ts +5 -5
  169. package/lib/typescript/commonjs/components/AsyncBlock/AsyncBlock.d.ts +22 -40
  170. package/lib/typescript/commonjs/components/AuthedImage/AuthedImage.d.ts +15 -15
  171. package/lib/typescript/commonjs/components/AuthedImage/authedImageCache.d.ts +2 -2
  172. package/lib/typescript/commonjs/components/Autocomplete/Autocomplete.d.ts +24 -24
  173. package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +41 -39
  174. package/lib/typescript/commonjs/components/Badge/Badge.d.ts +18 -18
  175. package/lib/typescript/commonjs/components/Banner/Banner.d.ts +25 -25
  176. package/lib/typescript/commonjs/components/BarChart/BarChart.d.ts +21 -21
  177. package/lib/typescript/commonjs/components/BottomNavigation/BottomNavigation.d.ts +36 -36
  178. package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +32 -32
  179. package/lib/typescript/commonjs/components/Box/Box.d.ts +27 -27
  180. package/lib/typescript/commonjs/components/Button/Button.d.ts +29 -24
  181. package/lib/typescript/commonjs/components/Calendar/Calendar.d.ts +20 -20
  182. package/lib/typescript/commonjs/components/Calendar/CalendarDay.d.ts +4 -2
  183. package/lib/typescript/commonjs/components/Card/Card.d.ts +41 -41
  184. package/lib/typescript/commonjs/components/Carousel/Carousel.d.ts +21 -21
  185. package/lib/typescript/commonjs/components/Checkbox/Checkbox.d.ts +21 -21
  186. package/lib/typescript/commonjs/components/Chip/Chip.d.ts +23 -23
  187. package/lib/typescript/commonjs/components/ChoiceGroup/ChoiceGroup.d.ts +51 -46
  188. package/lib/typescript/commonjs/components/Composer/Composer.d.ts +27 -27
  189. package/lib/typescript/commonjs/components/Confetti/Confetti.d.ts +22 -21
  190. package/lib/typescript/commonjs/components/Confirm/confirm.d.ts +4 -4
  191. package/lib/typescript/commonjs/components/DatePicker/DatePicker.d.ts +20 -20
  192. package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +22 -22
  193. package/lib/typescript/commonjs/components/DateSeparator/DateSeparator.d.ts +9 -9
  194. package/lib/typescript/commonjs/components/DecimalInput/DecimalInput.d.ts +14 -14
  195. package/lib/typescript/commonjs/components/Descriptions/Descriptions.d.ts +13 -13
  196. package/lib/typescript/commonjs/components/Dialog/Dialog.d.ts +24 -24
  197. package/lib/typescript/commonjs/components/Dialog/OverlayActions.d.ts +5 -5
  198. package/lib/typescript/commonjs/components/Divider/Divider.d.ts +9 -9
  199. package/lib/typescript/commonjs/components/Drawer/Drawer.d.ts +14 -14
  200. package/lib/typescript/commonjs/components/EmptyState/EmptyState.d.ts +13 -13
  201. package/lib/typescript/commonjs/components/ErrorBoundary/ErrorBoundary.d.ts +8 -8
  202. package/lib/typescript/commonjs/components/FieldBase/Chevron.d.ts +2 -2
  203. package/lib/typescript/commonjs/components/FieldBase/ChoiceText.d.ts +10 -10
  204. package/lib/typescript/commonjs/components/FieldBase/FieldBase.d.ts +54 -54
  205. package/lib/typescript/commonjs/components/FieldBase/useFloatingLabel.d.ts +8 -8
  206. package/lib/typescript/commonjs/components/FilePicker/FilePicker.d.ts +35 -35
  207. package/lib/typescript/commonjs/components/FileViewer/FileViewer.d.ts +10 -10
  208. package/lib/typescript/commonjs/components/FileViewer/fileSource.d.ts +3 -3
  209. package/lib/typescript/commonjs/components/FilterChipRow/FilterChipRow.d.ts +12 -12
  210. package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +35 -35
  211. package/lib/typescript/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +11 -11
  212. package/lib/typescript/commonjs/components/FormField/FormField.d.ts +15 -15
  213. package/lib/typescript/commonjs/components/IconBadge/IconBadge.d.ts +11 -11
  214. package/lib/typescript/commonjs/components/IconButton/IconButton.d.ts +14 -14
  215. package/lib/typescript/commonjs/components/ImageGallery/ImageGallery.d.ts +14 -14
  216. package/lib/typescript/commonjs/components/InlineSelect/InlineSelect.d.ts +36 -31
  217. package/lib/typescript/commonjs/components/Input/Input.d.ts +47 -47
  218. package/lib/typescript/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +7 -7
  219. package/lib/typescript/commonjs/components/KeyboardToolbar/KeyboardToolbar.d.ts +8 -8
  220. package/lib/typescript/commonjs/components/ListItem/ListItem.d.ts +44 -44
  221. package/lib/typescript/commonjs/components/ListSection/ListSection.d.ts +6 -6
  222. package/lib/typescript/commonjs/components/LoaderOverlay/LoaderOverlay.d.ts +17 -11
  223. package/lib/typescript/commonjs/components/Markdown/Markdown.d.ts +15 -15
  224. package/lib/typescript/commonjs/components/Menu/Menu.d.ts +17 -12
  225. package/lib/typescript/commonjs/components/Menu/MenuSurface.d.ts +8 -8
  226. package/lib/typescript/commonjs/components/Menu/menuModel.d.ts +11 -11
  227. package/lib/typescript/commonjs/components/Menu/useContextMenu.d.ts +13 -13
  228. package/lib/typescript/commonjs/components/Menu/webOnly.d.ts +3 -3
  229. package/lib/typescript/commonjs/components/MessageBubble/MessageBubble.d.ts +20 -20
  230. package/lib/typescript/commonjs/components/MessageList/MessageList.d.ts +14 -14
  231. package/lib/typescript/commonjs/components/Modal/Modal.d.ts +19 -19
  232. package/lib/typescript/commonjs/components/NonModalBottomSheet/NonModalBottomSheet.d.ts +52 -0
  233. package/lib/typescript/commonjs/components/NonModalBottomSheet/index.d.ts +3 -0
  234. package/lib/typescript/commonjs/components/NumberInput/NumberInput.d.ts +27 -27
  235. package/lib/typescript/commonjs/components/OTPInput/OTPInput.d.ts +20 -20
  236. package/lib/typescript/commonjs/components/OTPInput/OTPResendRow.d.ts +9 -9
  237. package/lib/typescript/commonjs/components/OnboardingPager/OnboardingPager.d.ts +5 -5
  238. package/lib/typescript/commonjs/components/OptionSheet/OptionSheet.d.ts +39 -34
  239. package/lib/typescript/commonjs/components/OptionSheet/optionAccessors.d.ts +9 -0
  240. package/lib/typescript/commonjs/components/PagedListFooter/PagedListFooter.d.ts +2 -2
  241. package/lib/typescript/commonjs/components/PermissionPrompt/PermissionPrompt.d.ts +6 -6
  242. package/lib/typescript/commonjs/components/PermissionPrompt/usePermissionPrompt.d.ts +1 -1
  243. package/lib/typescript/commonjs/components/PhoneNumberInput/PhoneNumberInput.d.ts +43 -43
  244. package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +23 -23
  245. package/lib/typescript/commonjs/components/ProfileCompletion/ProfileCompletion.d.ts +23 -23
  246. package/lib/typescript/commonjs/components/ProfilePicker/ProfilePicker.d.ts +30 -30
  247. package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +21 -21
  248. package/lib/typescript/commonjs/components/ProgressRing/ProgressRing.d.ts +13 -13
  249. package/lib/typescript/commonjs/components/Radio/Radio.d.ts +18 -18
  250. package/lib/typescript/commonjs/components/Radio/RadioDot.d.ts +5 -5
  251. package/lib/typescript/commonjs/components/Radio/RadioGroup.d.ts +8 -8
  252. package/lib/typescript/commonjs/components/Rating/Rating.d.ts +15 -15
  253. package/lib/typescript/commonjs/components/Repeater/Repeater.d.ts +10 -10
  254. package/lib/typescript/commonjs/components/RichTextEditor/RichTextEditor.d.ts +15 -15
  255. package/lib/typescript/commonjs/components/ScannerOverlay/ScannerOverlay.d.ts +13 -13
  256. package/lib/typescript/commonjs/components/Screen/Screen.d.ts +43 -44
  257. package/lib/typescript/commonjs/components/Screen/index.d.ts +1 -1
  258. package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +31 -31
  259. package/lib/typescript/commonjs/components/SearchBar/SearchPanel.d.ts +6 -6
  260. package/lib/typescript/commonjs/components/SearchBar/useRecentSearches.d.ts +1 -1
  261. package/lib/typescript/commonjs/components/SectionHeader/SectionHeader.d.ts +10 -10
  262. package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +25 -24
  263. package/lib/typescript/commonjs/components/Select/Select.d.ts +50 -45
  264. package/lib/typescript/commonjs/components/SignaturePad/SignaturePad.d.ts +20 -20
  265. package/lib/typescript/commonjs/components/Skeleton/Skeleton.d.ts +13 -13
  266. package/lib/typescript/commonjs/components/Skeleton/SkeletonContent.d.ts +9 -9
  267. package/lib/typescript/commonjs/components/Skeleton/SkeletonList.d.ts +30 -8
  268. package/lib/typescript/commonjs/components/Skeleton/SkeletonProvider.d.ts +9 -9
  269. package/lib/typescript/commonjs/components/SlideToConfirm/SlideToConfirm.d.ts +14 -14
  270. package/lib/typescript/commonjs/components/Slider/Slider.d.ts +30 -30
  271. package/lib/typescript/commonjs/components/Slider/valueText.d.ts +9 -9
  272. package/lib/typescript/commonjs/components/SliderField/SliderField.d.ts +41 -41
  273. package/lib/typescript/commonjs/components/SortableList/SortableList.d.ts +5 -5
  274. package/lib/typescript/commonjs/components/Sparkline/Sparkline.d.ts +13 -13
  275. package/lib/typescript/commonjs/components/Sparkline/geometry.d.ts +3 -1
  276. package/lib/typescript/commonjs/components/Spinner/Spinner.d.ts +10 -10
  277. package/lib/typescript/commonjs/components/SquircleFill/SquircleFill.d.ts +3 -3
  278. package/lib/typescript/commonjs/components/SquircleImage/SquircleImage.d.ts +5 -12
  279. package/lib/typescript/commonjs/components/StatTile/StatTile.d.ts +14 -14
  280. package/lib/typescript/commonjs/components/StatusBadge/StatusBadge.d.ts +13 -13
  281. package/lib/typescript/commonjs/components/Stepper/Stepper.d.ts +21 -21
  282. package/lib/typescript/commonjs/components/Swipeable/Swipeable.d.ts +15 -15
  283. package/lib/typescript/commonjs/components/Switch/Switch.d.ts +19 -19
  284. package/lib/typescript/commonjs/components/Tabs/Tabs.d.ts +20 -20
  285. package/lib/typescript/commonjs/components/TagInput/TagInput.d.ts +19 -19
  286. package/lib/typescript/commonjs/components/Text/Text.d.ts +10 -10
  287. package/lib/typescript/commonjs/components/TimePicker/TimePicker.d.ts +14 -14
  288. package/lib/typescript/commonjs/components/Timeline/Timeline.d.ts +12 -12
  289. package/lib/typescript/commonjs/components/Toast/Toast.d.ts +17 -17
  290. package/lib/typescript/commonjs/components/Toast/ToastProvider.d.ts +8 -8
  291. package/lib/typescript/commonjs/components/Tooltip/RichTooltipBody.d.ts +4 -4
  292. package/lib/typescript/commonjs/components/Tooltip/Tooltip.d.ts +24 -19
  293. package/lib/typescript/commonjs/components/Tour/Tour.d.ts +7 -7
  294. package/lib/typescript/commonjs/components/TypingIndicator/TypingIndicator.d.ts +6 -6
  295. package/lib/typescript/commonjs/components/WheelPicker/Wheel.d.ts +10 -6
  296. package/lib/typescript/commonjs/components/WheelPicker/WheelPicker.d.ts +22 -20
  297. package/lib/typescript/commonjs/components/ZoomableImage/ZoomableImage.d.ts +8 -8
  298. package/lib/typescript/commonjs/components/index.d.ts +2 -0
  299. package/lib/typescript/commonjs/form/HookFormField.d.ts +5 -18
  300. package/lib/typescript/commonjs/form/path.d.ts +4 -2
  301. package/lib/typescript/commonjs/form/useFormCompletion.d.ts +1 -1
  302. package/lib/typescript/commonjs/hooks/useControllableState.d.ts +2 -2
  303. package/lib/typescript/commonjs/hooks/useDragToDismiss.d.ts +3 -3
  304. package/lib/typescript/commonjs/hooks/useFieldErrorScroll.d.ts +1 -1
  305. package/lib/typescript/commonjs/hooks/usePressAnimation.d.ts +4 -4
  306. package/lib/typescript/commonjs/hooks/useRefreshControl.d.ts +8 -8
  307. package/lib/typescript/commonjs/hooks/useResendCountdown.d.ts +1 -1
  308. package/lib/typescript/commonjs/hooks/useScrollDirection.d.ts +1 -1
  309. package/lib/typescript/commonjs/index.d.ts +1 -1
  310. package/lib/typescript/commonjs/navigation/DiscardGuard.d.ts +2 -2
  311. package/lib/typescript/commonjs/navigation/NavigationScreen.d.ts +3 -3
  312. package/lib/typescript/commonjs/network/NetworkStatusBanner.d.ts +7 -7
  313. package/lib/typescript/commonjs/theme/Gradient.d.ts +2 -2
  314. package/lib/typescript/commonjs/theme/ThemeContext.d.ts +5 -5
  315. package/lib/typescript/commonjs/theme/componentSizes.d.ts +15 -38
  316. package/lib/typescript/commonjs/theme/types.d.ts +84 -84
  317. package/lib/typescript/commonjs/utils/announce.d.ts +1 -1
  318. package/lib/typescript/commonjs/utils/complete.d.ts +5 -0
  319. package/lib/typescript/commonjs/utils/feedback.d.ts +3 -1
  320. package/lib/typescript/commonjs/utils/guards.d.ts +9 -0
  321. package/lib/typescript/commonjs/utils/placement.d.ts +3 -3
  322. package/lib/typescript/commonjs/utils/squircle.d.ts +2 -2
  323. package/lib/typescript/module/canvasKit/index.d.ts +12 -12
  324. package/lib/typescript/module/canvasKit/meta.d.ts +5 -7
  325. package/lib/typescript/module/components/Accordion/Accordion.d.ts +22 -22
  326. package/lib/typescript/module/components/AmountSlider/AmountSlider.d.ts +23 -23
  327. package/lib/typescript/module/components/AnimatePresence/AnimatePresence.d.ts +5 -5
  328. package/lib/typescript/module/components/AppBar/AppBar.d.ts +39 -39
  329. package/lib/typescript/module/components/AppIcon/AppIcon.d.ts +7 -7
  330. package/lib/typescript/module/components/AppIcon/defaultIcons.d.ts +2 -1
  331. package/lib/typescript/module/components/AppIcon/glyphs.g.d.ts +233 -233
  332. package/lib/typescript/module/components/AppIcon/slotIcon.d.ts +1 -1
  333. package/lib/typescript/module/components/AppLockOverlay/AppLockOverlay.d.ts +5 -5
  334. package/lib/typescript/module/components/AsyncBlock/AsyncBlock.d.ts +22 -40
  335. package/lib/typescript/module/components/AuthedImage/AuthedImage.d.ts +15 -15
  336. package/lib/typescript/module/components/AuthedImage/authedImageCache.d.ts +2 -2
  337. package/lib/typescript/module/components/Autocomplete/Autocomplete.d.ts +24 -24
  338. package/lib/typescript/module/components/Avatar/Avatar.d.ts +41 -39
  339. package/lib/typescript/module/components/Badge/Badge.d.ts +18 -18
  340. package/lib/typescript/module/components/Banner/Banner.d.ts +25 -25
  341. package/lib/typescript/module/components/BarChart/BarChart.d.ts +21 -21
  342. package/lib/typescript/module/components/BottomNavigation/BottomNavigation.d.ts +36 -36
  343. package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +32 -32
  344. package/lib/typescript/module/components/Box/Box.d.ts +27 -27
  345. package/lib/typescript/module/components/Button/Button.d.ts +29 -24
  346. package/lib/typescript/module/components/Calendar/Calendar.d.ts +20 -20
  347. package/lib/typescript/module/components/Calendar/CalendarDay.d.ts +4 -2
  348. package/lib/typescript/module/components/Card/Card.d.ts +41 -41
  349. package/lib/typescript/module/components/Carousel/Carousel.d.ts +21 -21
  350. package/lib/typescript/module/components/Checkbox/Checkbox.d.ts +21 -21
  351. package/lib/typescript/module/components/Chip/Chip.d.ts +23 -23
  352. package/lib/typescript/module/components/ChoiceGroup/ChoiceGroup.d.ts +51 -46
  353. package/lib/typescript/module/components/Composer/Composer.d.ts +27 -27
  354. package/lib/typescript/module/components/Confetti/Confetti.d.ts +22 -21
  355. package/lib/typescript/module/components/Confirm/confirm.d.ts +4 -4
  356. package/lib/typescript/module/components/DatePicker/DatePicker.d.ts +20 -20
  357. package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +22 -22
  358. package/lib/typescript/module/components/DateSeparator/DateSeparator.d.ts +9 -9
  359. package/lib/typescript/module/components/DecimalInput/DecimalInput.d.ts +14 -14
  360. package/lib/typescript/module/components/Descriptions/Descriptions.d.ts +13 -13
  361. package/lib/typescript/module/components/Dialog/Dialog.d.ts +24 -24
  362. package/lib/typescript/module/components/Dialog/OverlayActions.d.ts +5 -5
  363. package/lib/typescript/module/components/Divider/Divider.d.ts +9 -9
  364. package/lib/typescript/module/components/Drawer/Drawer.d.ts +14 -14
  365. package/lib/typescript/module/components/EmptyState/EmptyState.d.ts +13 -13
  366. package/lib/typescript/module/components/ErrorBoundary/ErrorBoundary.d.ts +8 -8
  367. package/lib/typescript/module/components/FieldBase/Chevron.d.ts +2 -2
  368. package/lib/typescript/module/components/FieldBase/ChoiceText.d.ts +10 -10
  369. package/lib/typescript/module/components/FieldBase/FieldBase.d.ts +54 -54
  370. package/lib/typescript/module/components/FieldBase/useFloatingLabel.d.ts +8 -8
  371. package/lib/typescript/module/components/FilePicker/FilePicker.d.ts +35 -35
  372. package/lib/typescript/module/components/FileViewer/FileViewer.d.ts +10 -10
  373. package/lib/typescript/module/components/FileViewer/fileSource.d.ts +3 -3
  374. package/lib/typescript/module/components/FilterChipRow/FilterChipRow.d.ts +12 -12
  375. package/lib/typescript/module/components/FloatingActionButton/FloatingActionButton.d.ts +35 -35
  376. package/lib/typescript/module/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +11 -11
  377. package/lib/typescript/module/components/FormField/FormField.d.ts +15 -15
  378. package/lib/typescript/module/components/IconBadge/IconBadge.d.ts +11 -11
  379. package/lib/typescript/module/components/IconButton/IconButton.d.ts +14 -14
  380. package/lib/typescript/module/components/ImageGallery/ImageGallery.d.ts +14 -14
  381. package/lib/typescript/module/components/InlineSelect/InlineSelect.d.ts +36 -31
  382. package/lib/typescript/module/components/Input/Input.d.ts +47 -47
  383. package/lib/typescript/module/components/KeyboardAwareScrollView/KeyboardAwareScrollView.d.ts +7 -7
  384. package/lib/typescript/module/components/KeyboardToolbar/KeyboardToolbar.d.ts +8 -8
  385. package/lib/typescript/module/components/ListItem/ListItem.d.ts +44 -44
  386. package/lib/typescript/module/components/ListSection/ListSection.d.ts +6 -6
  387. package/lib/typescript/module/components/LoaderOverlay/LoaderOverlay.d.ts +17 -11
  388. package/lib/typescript/module/components/Markdown/Markdown.d.ts +15 -15
  389. package/lib/typescript/module/components/Menu/Menu.d.ts +17 -12
  390. package/lib/typescript/module/components/Menu/MenuSurface.d.ts +8 -8
  391. package/lib/typescript/module/components/Menu/menuModel.d.ts +11 -11
  392. package/lib/typescript/module/components/Menu/useContextMenu.d.ts +13 -13
  393. package/lib/typescript/module/components/Menu/webOnly.d.ts +3 -3
  394. package/lib/typescript/module/components/MessageBubble/MessageBubble.d.ts +20 -20
  395. package/lib/typescript/module/components/MessageList/MessageList.d.ts +14 -14
  396. package/lib/typescript/module/components/Modal/Modal.d.ts +19 -19
  397. package/lib/typescript/module/components/NonModalBottomSheet/NonModalBottomSheet.d.ts +52 -0
  398. package/lib/typescript/module/components/NonModalBottomSheet/index.d.ts +3 -0
  399. package/lib/typescript/module/components/NumberInput/NumberInput.d.ts +27 -27
  400. package/lib/typescript/module/components/OTPInput/OTPInput.d.ts +20 -20
  401. package/lib/typescript/module/components/OTPInput/OTPResendRow.d.ts +9 -9
  402. package/lib/typescript/module/components/OnboardingPager/OnboardingPager.d.ts +5 -5
  403. package/lib/typescript/module/components/OptionSheet/OptionSheet.d.ts +39 -34
  404. package/lib/typescript/module/components/OptionSheet/optionAccessors.d.ts +9 -0
  405. package/lib/typescript/module/components/PagedListFooter/PagedListFooter.d.ts +2 -2
  406. package/lib/typescript/module/components/PermissionPrompt/PermissionPrompt.d.ts +6 -6
  407. package/lib/typescript/module/components/PermissionPrompt/usePermissionPrompt.d.ts +1 -1
  408. package/lib/typescript/module/components/PhoneNumberInput/PhoneNumberInput.d.ts +43 -43
  409. package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +23 -23
  410. package/lib/typescript/module/components/ProfileCompletion/ProfileCompletion.d.ts +23 -23
  411. package/lib/typescript/module/components/ProfilePicker/ProfilePicker.d.ts +30 -30
  412. package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +21 -21
  413. package/lib/typescript/module/components/ProgressRing/ProgressRing.d.ts +13 -13
  414. package/lib/typescript/module/components/Radio/Radio.d.ts +18 -18
  415. package/lib/typescript/module/components/Radio/RadioDot.d.ts +5 -5
  416. package/lib/typescript/module/components/Radio/RadioGroup.d.ts +8 -8
  417. package/lib/typescript/module/components/Rating/Rating.d.ts +15 -15
  418. package/lib/typescript/module/components/Repeater/Repeater.d.ts +10 -10
  419. package/lib/typescript/module/components/RichTextEditor/RichTextEditor.d.ts +15 -15
  420. package/lib/typescript/module/components/ScannerOverlay/ScannerOverlay.d.ts +13 -13
  421. package/lib/typescript/module/components/Screen/Screen.d.ts +43 -44
  422. package/lib/typescript/module/components/Screen/index.d.ts +1 -1
  423. package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +31 -31
  424. package/lib/typescript/module/components/SearchBar/SearchPanel.d.ts +6 -6
  425. package/lib/typescript/module/components/SearchBar/useRecentSearches.d.ts +1 -1
  426. package/lib/typescript/module/components/SectionHeader/SectionHeader.d.ts +10 -10
  427. package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +25 -24
  428. package/lib/typescript/module/components/Select/Select.d.ts +50 -45
  429. package/lib/typescript/module/components/SignaturePad/SignaturePad.d.ts +20 -20
  430. package/lib/typescript/module/components/Skeleton/Skeleton.d.ts +13 -13
  431. package/lib/typescript/module/components/Skeleton/SkeletonContent.d.ts +9 -9
  432. package/lib/typescript/module/components/Skeleton/SkeletonList.d.ts +30 -8
  433. package/lib/typescript/module/components/Skeleton/SkeletonProvider.d.ts +9 -9
  434. package/lib/typescript/module/components/SlideToConfirm/SlideToConfirm.d.ts +14 -14
  435. package/lib/typescript/module/components/Slider/Slider.d.ts +30 -30
  436. package/lib/typescript/module/components/Slider/valueText.d.ts +9 -9
  437. package/lib/typescript/module/components/SliderField/SliderField.d.ts +41 -41
  438. package/lib/typescript/module/components/SortableList/SortableList.d.ts +5 -5
  439. package/lib/typescript/module/components/Sparkline/Sparkline.d.ts +13 -13
  440. package/lib/typescript/module/components/Sparkline/geometry.d.ts +3 -1
  441. package/lib/typescript/module/components/Spinner/Spinner.d.ts +10 -10
  442. package/lib/typescript/module/components/SquircleFill/SquircleFill.d.ts +3 -3
  443. package/lib/typescript/module/components/SquircleImage/SquircleImage.d.ts +5 -12
  444. package/lib/typescript/module/components/StatTile/StatTile.d.ts +14 -14
  445. package/lib/typescript/module/components/StatusBadge/StatusBadge.d.ts +13 -13
  446. package/lib/typescript/module/components/Stepper/Stepper.d.ts +21 -21
  447. package/lib/typescript/module/components/Swipeable/Swipeable.d.ts +15 -15
  448. package/lib/typescript/module/components/Switch/Switch.d.ts +19 -19
  449. package/lib/typescript/module/components/Tabs/Tabs.d.ts +20 -20
  450. package/lib/typescript/module/components/TagInput/TagInput.d.ts +19 -19
  451. package/lib/typescript/module/components/Text/Text.d.ts +10 -10
  452. package/lib/typescript/module/components/TimePicker/TimePicker.d.ts +14 -14
  453. package/lib/typescript/module/components/Timeline/Timeline.d.ts +12 -12
  454. package/lib/typescript/module/components/Toast/Toast.d.ts +17 -17
  455. package/lib/typescript/module/components/Toast/ToastProvider.d.ts +8 -8
  456. package/lib/typescript/module/components/Tooltip/RichTooltipBody.d.ts +4 -4
  457. package/lib/typescript/module/components/Tooltip/Tooltip.d.ts +24 -19
  458. package/lib/typescript/module/components/Tour/Tour.d.ts +7 -7
  459. package/lib/typescript/module/components/TypingIndicator/TypingIndicator.d.ts +6 -6
  460. package/lib/typescript/module/components/WheelPicker/Wheel.d.ts +10 -6
  461. package/lib/typescript/module/components/WheelPicker/WheelPicker.d.ts +22 -20
  462. package/lib/typescript/module/components/ZoomableImage/ZoomableImage.d.ts +8 -8
  463. package/lib/typescript/module/components/index.d.ts +2 -0
  464. package/lib/typescript/module/form/HookFormField.d.ts +5 -18
  465. package/lib/typescript/module/form/path.d.ts +4 -2
  466. package/lib/typescript/module/form/useFormCompletion.d.ts +1 -1
  467. package/lib/typescript/module/hooks/useControllableState.d.ts +2 -2
  468. package/lib/typescript/module/hooks/useDragToDismiss.d.ts +3 -3
  469. package/lib/typescript/module/hooks/useFieldErrorScroll.d.ts +1 -1
  470. package/lib/typescript/module/hooks/usePressAnimation.d.ts +4 -4
  471. package/lib/typescript/module/hooks/useRefreshControl.d.ts +8 -8
  472. package/lib/typescript/module/hooks/useResendCountdown.d.ts +1 -1
  473. package/lib/typescript/module/hooks/useScrollDirection.d.ts +1 -1
  474. package/lib/typescript/module/index.d.ts +1 -1
  475. package/lib/typescript/module/navigation/DiscardGuard.d.ts +2 -2
  476. package/lib/typescript/module/navigation/NavigationScreen.d.ts +3 -3
  477. package/lib/typescript/module/network/NetworkStatusBanner.d.ts +7 -7
  478. package/lib/typescript/module/theme/Gradient.d.ts +2 -2
  479. package/lib/typescript/module/theme/ThemeContext.d.ts +5 -5
  480. package/lib/typescript/module/theme/componentSizes.d.ts +15 -38
  481. package/lib/typescript/module/theme/types.d.ts +84 -84
  482. package/lib/typescript/module/utils/announce.d.ts +1 -1
  483. package/lib/typescript/module/utils/complete.d.ts +5 -0
  484. package/lib/typescript/module/utils/feedback.d.ts +3 -1
  485. package/lib/typescript/module/utils/guards.d.ts +9 -0
  486. package/lib/typescript/module/utils/placement.d.ts +3 -3
  487. package/lib/typescript/module/utils/squircle.d.ts +2 -2
  488. package/package.json +9 -9
  489. package/src/specs/NativePdfRasterizer.ts +1 -1
@@ -1 +1 @@
1
- "use strict";export{PHONE_CHROME_INSETS}from"./canvasKit/index.js";export{Accordion,AccordionGroup,ALL_CALLING_CODES,AmountSlider,AnimatePresence,AppBar,AppLockOverlay,AsyncBlock,AuthedImage,Autocomplete,Avatar,AvatarGroup,authedImageCacheStats,Badge,Banner,BarChart,BottomNavigation,BottomSheet,Box,Button,buttonLabelInk,Calendar,Card,Carousel,Checkbox,Chip,ChoiceGroup,Composer,Confetti,ConfirmHost,clearAuthedImageCache,confirm,DatePicker,DateRangePicker,DateSeparator,DEFAULT_CALLING_CODES,DecimalInput,Descriptions,Dialog,Divider,Drawer,defineStatusMap,EmptyState,ErrorBoundary,FilePicker,FileViewer,FilterChipRow,FloatingActionButton,FloatingActionButtonGroup,ForceUpdateDialog,FormField,formatE164,formatFileSize,getAuthedImageCacheLimit,IconBadge,IconButton,ImageGallery,InlineSelect,Input,KeyboardAwareScrollView,KeyboardToolbar,ListItem,ListSection,LoaderOverlay,loader,Markdown,Menu,MessageBubble,MessageList,MODAL_DISMISS_GRACE_MS,Modal,NumberInput,OnboardingPager,OptionSheet,OTPInput,OTPResendRow,PagedListFooter,PermissionPrompt,PhoneNumberInput,PickerTrigger,ProfileCompletion,ProfilePicker,ProgressBar,ProgressRing,Radio,RadioDot,RadioGroup,Rating,Repeater,RichTextEditor,Row,ScannerOverlay,Screen,SearchBar,SectionHeader,SegmentedControl,Select,SignaturePad,Skeleton,SkeletonCircle,SkeletonClockProvider,SkeletonContent,SkeletonList,SkeletonProvider,SkeletonSkip,SkeletonText,Slider,SliderField,SlideToConfirm,SortableList,Spacer,Sparkline,Spinner,SquircleImage,SquircleView,Stack,StatTile,StatusBadge,Stepper,Swipeable,Switch,setAuthedImageCacheLimit,Tabs,TagInput,Text,TextInkContext,Timeline,TimePicker,Toast,ToastHost,ToastProvider,Tooltip,Tour,TypingIndicator,toast,useBottomSheet,useErrorHandler,useRecentSearches,useTextInk,useToast,WheelPicker,withErrorBoundary,ZoomableImage}from"./components/index.js";export{AppIcon}from"./components/AppIcon/index.js";export{HookFormField,useHookFormField}from"./form/index.js";export{useDebounce,useFieldChain,useReducedMotion,useRefreshControl,useScrollDirection}from"./hooks/index.js";export{NetworkStatusBanner}from"./network/index.js";export{fontFor,KitThemeBridge,lightTheme,makeStyles,radiusOf,ThemeProvider,useTheme,useThemeMode}from"./theme/index.js";export{announce,isHapticsEnabled,setHapticImplementation,setHapticsEnabled,triggerHaptic}from"./utils/index.js";
1
+ "use strict";export{PHONE_CHROME_INSETS}from"./canvasKit/index.js";export{Accordion,AccordionGroup,ALL_CALLING_CODES,AmountSlider,AnimatePresence,AppBar,AppLockOverlay,AsyncBlock,AuthedImage,Autocomplete,Avatar,AvatarGroup,authedImageCacheStats,Badge,Banner,BarChart,BottomNavigation,BottomSheet,Box,Button,buttonLabelInk,Calendar,Card,Carousel,Checkbox,Chip,ChoiceGroup,Composer,Confetti,ConfirmHost,clearAuthedImageCache,confirm,DatePicker,DateRangePicker,DateSeparator,DEFAULT_CALLING_CODES,DecimalInput,Descriptions,Dialog,Divider,Drawer,defineStatusMap,EmptyState,ErrorBoundary,FilePicker,FileViewer,FilterChipRow,FloatingActionButton,FloatingActionButtonGroup,ForceUpdateDialog,FormField,formatE164,formatFileSize,getAuthedImageCacheLimit,IconBadge,IconButton,ImageGallery,InlineSelect,Input,KeyboardAwareScrollView,KeyboardToolbar,ListItem,ListSection,LoaderOverlay,loader,Markdown,Menu,MessageBubble,MessageList,MODAL_DISMISS_GRACE_MS,Modal,NonModalBottomSheet,NumberInput,OnboardingPager,OptionSheet,OTPInput,OTPResendRow,PagedListFooter,PermissionPrompt,PhoneNumberInput,PickerTrigger,ProfileCompletion,ProfilePicker,ProgressBar,ProgressRing,Radio,RadioDot,RadioGroup,Rating,Repeater,RichTextEditor,Row,ScannerOverlay,Screen,SearchBar,SectionHeader,SegmentedControl,Select,SignaturePad,Skeleton,SkeletonCircle,SkeletonClockProvider,SkeletonContent,SkeletonList,SkeletonProvider,SkeletonSkip,SkeletonText,Slider,SliderField,SlideToConfirm,SortableList,Spacer,Sparkline,Spinner,SquircleImage,SquircleView,Stack,StatTile,StatusBadge,Stepper,Swipeable,Switch,setAuthedImageCacheLimit,Tabs,TagInput,Text,TextInkContext,Timeline,TimePicker,Toast,ToastHost,ToastProvider,Tooltip,Tour,TypingIndicator,toast,useBottomSheet,useErrorHandler,useRecentSearches,useTextInk,useToast,WheelPicker,withErrorBoundary,ZoomableImage}from"./components/index.js";export{AppIcon}from"./components/AppIcon/index.js";export{HookFormField,useHookFormField}from"./form/index.js";export{useDebounce,useFieldChain,useReducedMotion,useRefreshControl,useScrollDirection}from"./hooks/index.js";export{NetworkStatusBanner}from"./network/index.js";export{fontFor,KitThemeBridge,lightTheme,makeStyles,radiusOf,ThemeProvider,useTheme,useThemeMode}from"./theme/index.js";export{announce,isHapticsEnabled,setHapticImplementation,setHapticsEnabled,triggerHaptic}from"./utils/index.js";
@@ -1 +1 @@
1
- "use strict";import{TurboModuleRegistry}from"react-native";export default TurboModuleRegistry.get("PdfRasterizer");
1
+ "use strict";import{TurboModuleRegistry}from"react-native";export default TurboModuleRegistry.get("PdfRasterizer")??null;
@@ -1 +1 @@
1
- "use strict";import{Storage}from"@webority/mobile-core";import{createContext,useCallback,useContext,useEffect,useMemo,useRef,useState}from"react";import{Appearance}from"react-native";import{useReducedMotion}from"../hooks/useReducedMotion.js";import{mergeBrand}from"./merge.js";import{darkTheme,lightTheme}from"./tokens.js";import{jsx as _jsx}from"react/jsx-runtime";const REDUCED_SPRING={damping:100,stiffness:1e3,mass:1},collapseMotion=e=>({...e,duration:{instant:0,fast:0,default:0,slow:0,slower:0},spring:{gentle:REDUCED_SPRING,bouncy:REDUCED_SPRING,snappy:REDUCED_SPRING}}),isPreference=e=>"light"===e||"dark"===e||"system"===e,defaultValue={theme:lightTheme,mode:"light",preference:"system",setPreference:()=>{},toggleColorMode:()=>{}},ThemeContext=createContext(defaultValue);export const ThemeProvider=e=>{const{children:t,initialPreference:r="system",persistKey:o,brand:n,settings:s,...i}=e;if(Object.keys(i).length>0)throw new Error("ThemeProvider takes only these props: children, initialPreference, persistKey, brand, settings (mobile-ui 0.89.0). Run webority upgrade 0.89.0 to move an app.");const[m,a]=useState(r),c=useRef(!1);useEffect(()=>{if(!o)return;let e=!0;return Storage.getItem(o).then(t=>{e&&!c.current&&isPreference(t)&&a(t)}),()=>{e=!1}},[o]);const d=useCallback(e=>{c.current=!0,a(e)},[]);useEffect(()=>{o&&c.current&&Storage.setItem(o,m)},[o,m]);const[l,u]=useState(()=>Appearance.getColorScheme()??"light");useEffect(()=>{const e=Appearance.addChangeListener(({colorScheme:e})=>{u(e??"light")});return()=>e.remove()},[]);const h="system"===m?l:m,g=useReducedMotion(),f=useMemo(()=>{const e="dark"===h?darkTheme:lightTheme,t=n||s?mergeBrand(e,n,s):e;return g?{...t,motion:collapseMotion(t.motion)}:t},[h,n,s,g]),p=useMemo(()=>({theme:f,mode:h,preference:m,setPreference:d,toggleColorMode:()=>d(e=>"system"===e?"dark"===l?"light":"dark":"dark"===e?"light":"dark")}),[f,h,m,l,d]);return _jsx(ThemeContext.Provider,{value:p,children:t})};export const KitThemeBridge=({mode:e,brand:t,children:r})=>{const o=useReducedMotion();if("light"!==e&&"dark"!==e)throw new Error('KitThemeBridge takes mode "light" or "dark".');const n=useMemo(()=>{const r="dark"===e?darkTheme:lightTheme,n=t?mergeBrand(r,t,void 0):r;return o?{...n,motion:collapseMotion(n.motion)}:n},[e,t,o]),s=useMemo(()=>({theme:n,mode:e,preference:e,setPreference:()=>{},toggleColorMode:()=>{}}),[n,e]);return _jsx(ThemeContext.Provider,{value:s,children:r})};export const useTheme=()=>useContext(ThemeContext).theme;export const useThemeMode=()=>{const e=useContext(ThemeContext);return{mode:e.mode,preference:e.preference,setPreference:e.setPreference,toggleColorMode:e.toggleColorMode}};
1
+ "use strict";import{Storage}from"@webority/mobile-core";import{createContext,useCallback,useContext,useEffect,useMemo,useRef,useState}from"react";import{Appearance}from"react-native";import{useReducedMotion}from"../hooks/useReducedMotion.js";import{isOneOf}from"../utils/guards.js";import{mergeBrand}from"./merge.js";import{darkTheme,lightTheme}from"./tokens.js";import{jsx as _jsx}from"react/jsx-runtime";const REDUCED_SPRING={damping:100,stiffness:1e3,mass:1},collapseMotion=e=>({...e,duration:{instant:0,fast:0,default:0,slow:0,slower:0},spring:{gentle:REDUCED_SPRING,bouncy:REDUCED_SPRING,snappy:REDUCED_SPRING}}),isPreference=e=>"light"===e||"dark"===e||"system"===e,COLOR_MODES=["light","dark"],colorModeOf=e=>isOneOf(COLOR_MODES,e)?e:"light",defaultValue={theme:lightTheme,mode:"light",preference:"system",setPreference:()=>{},toggleColorMode:()=>{}},ThemeContext=createContext(defaultValue);export const ThemeProvider=e=>{const{children:t,initialPreference:r="system",persistKey:o,brand:s,settings:n,...i}=e;if(Object.keys(i).length>0)throw new Error("ThemeProvider takes only these props: children, initialPreference, persistKey, brand, settings (mobile-ui 0.89.0). Run webority upgrade 0.89.0 to move an app.");const[m,c]=useState(r),a=useRef(!1);useEffect(()=>{if(!o)return;let e=!0;return Storage.getItem(o).then(t=>{e&&!a.current&&isPreference(t)&&c(t)}),()=>{e=!1}},[o]);const d=useCallback(e=>{a.current=!0,c(e)},[]);useEffect(()=>{o&&a.current&&Storage.setItem(o,m)},[o,m]);const[l,u]=useState(()=>colorModeOf(Appearance.getColorScheme()));useEffect(()=>{const e=Appearance.addChangeListener(({colorScheme:e})=>{u(colorModeOf(e))});return()=>e.remove()},[]);const h="system"===m?l:m,f=useReducedMotion(),g=useMemo(()=>{const e="dark"===h?darkTheme:lightTheme,t=s||n?mergeBrand(e,s,n):e;return f?{...t,motion:collapseMotion(t.motion)}:t},[h,s,n,f]),p=useMemo(()=>({theme:g,mode:h,preference:m,setPreference:d,toggleColorMode:()=>d(e=>"system"===e?"dark"===l?"light":"dark":"dark"===e?"light":"dark")}),[g,h,m,l,d]);return _jsx(ThemeContext.Provider,{value:p,children:t})};export const KitThemeBridge=({mode:e,brand:t,children:r})=>{const o=useReducedMotion();if("light"!==e&&"dark"!==e)throw new Error('KitThemeBridge takes mode "light" or "dark".');const s=useMemo(()=>{const r="dark"===e?darkTheme:lightTheme,s=t?mergeBrand(r,t,void 0):r;return o?{...s,motion:collapseMotion(s.motion)}:s},[e,t,o]),n=useMemo(()=>({theme:s,mode:e,preference:e,setPreference:()=>{},toggleColorMode:()=>{}}),[s,e]);return _jsx(ThemeContext.Provider,{value:n,children:r})};export const useTheme=()=>useContext(ThemeContext).theme;export const useThemeMode=()=>{const e=useContext(ThemeContext);return{mode:e.mode,preference:e.preference,setPreference:e.setPreference,toggleColorMode:e.toggleColorMode}};
@@ -1 +1 @@
1
- "use strict";import{Animated,Platform}from"react-native";import{nativeDriver}from"../utils/nativeDriver.js";export const createAnimatedValue=(t,e)=>{const r=new Animated.Value(t,e);return"web"===Platform.OS?r:(r._tracking=null,Object.seal(r))};export const setNativeValue=(t,e)=>{Animated.timing(t,{toValue:e,duration:0,useNativeDriver:nativeDriver}).start()};
1
+ "use strict";import{Animated,Platform}from"react-native";import{nativeDriver}from"../utils/nativeDriver.js";export const createAnimatedValue=(t,e)=>{const r=new Animated.Value(t,e);return"web"===Platform.OS?r:(Object.assign(r,{_tracking:null}),Object.seal(r))};export const setNativeValue=(t,e)=>{Animated.timing(t,{toValue:e,duration:0,useNativeDriver:nativeDriver}).start()};
@@ -1 +1 @@
1
- "use strict";import{scaleStep}from"./scale.js";import{COMPONENT_KINDS}from"./tokens.generated.js";const SIZE_KEYS=["xs","sm","md","lg","xl"],kindOf=(e,o,t)=>{const s=COMPONENT_KINDS[e][o];if(!s)throw new Error(`components.${e}${t?`.${t}`:""}.${o} has no kind in COMPONENT_KINDS.`);return s},pixelsOf=(e,o,t,s)=>{if("space"===o||"text"===o||"radius"===o)return scaleStep(e,o,String(t),s);if("number"!=typeof t)throw new Error(`${s} is ${JSON.stringify(t)}; it takes a number.`);return t},resolveSize=(e,o,t)=>{const s=e.components[o][t];if(void 0===s)throw new Error(`components.${o} has no "${t}" size in the theme.`);const r={};for(const i of Object.keys(s))r[i]=pixelsOf(e,kindOf(o,i,t),s[i],`components.${o}.${t}.${i}`);return r};export const resolveButtonSize=(e,o)=>resolveSize(e,"button",o);export const resolveFieldSize=(e,o)=>resolveSize(e,"field",o);export const resolveEmptyStateSize=(e,o)=>resolveSize(e,"empty-state",o);export const resolveListItemSize=(e,o)=>resolveSize(e,"list-item",o);export const resolveBadgeSize=(e,o)=>resolveSize(e,"badge",o);export const resolveChipSize=(e,o)=>resolveSize(e,"chip",o);export const resolveCheckboxSize=(e,o)=>resolveSize(e,"checkbox",o);export const resolveRadioSize=(e,o)=>resolveSize(e,"radio",o);export const resolveSwitchSize=(e,o)=>resolveSize(e,"switch",o);export const resolveOtpInputSize=(e,o)=>resolveSize(e,"otp-input",o);export const resolveSegmentedControlSize=(e,o)=>resolveSize(e,"segmented-control",o);export const resolveTabsSize=(e,o)=>resolveSize(e,"tabs",o);export const resolveSliderSize=(e,o)=>resolveSize(e,"slider",o);export const resolveFloatingActionButtonSize=(e,o)=>resolveSize(e,"floating-action-button",o);export const validateComponentTokens=e=>{for(const o of Object.keys(COMPONENT_KINDS)){const t=e.components[o];for(const s of Object.keys(t))SIZE_KEYS.includes(s)?resolveSize(e,o,s):pixelsOf(e,kindOf(o,s),t[s],`components.${o}.${s}`)}};
1
+ "use strict";import{isOneOf,isRecord,keysOf}from"../utils/guards.js";import{scaleStep}from"./scale.js";import{COMPONENT_KINDS}from"./tokens.generated.js";const SIZE_KEYS=["xs","sm","md","lg","xl"],kindOf=(e,t,i)=>{const o=COMPONENT_KINDS[e][t];if(!o)throw new Error(`components.${e}${i?`.${i}`:""}.${t} has no kind in COMPONENT_KINDS.`);return o},pixelsOf=(e,t,i,o)=>{if("space"===t||"text"===t||"radius"===t)return scaleStep(e,t,String(i),o);if("number"!=typeof i)throw new Error(`${o} is ${JSON.stringify(i)}; it takes a number.`);return i},resolveSize=(e,t,i)=>{const o=e.components[t];if(!isRecord(o))throw new Error(`components.${t} is missing in the theme.`);const n=o[i];if(!isRecord(n))throw new Error(`components.${t} has no "${i}" size in the theme.`);const s={};for(const o of Object.keys(n))s[o]=pixelsOf(e,kindOf(t,o,i),n[o],`components.${t}.${i}.${o}`);return s},sizeToken=(e,t,i,o)=>{const n=e[o];if(void 0===n)throw new Error(`components.${t}.${i}.${o} is missing`);return n};export const resolveButtonSize=(e,t)=>{const i=resolveSize(e,"button",t);return{"padding-x":sizeToken(i,"button",t,"padding-x"),"padding-y":sizeToken(i,"button",t,"padding-y"),"min-height":sizeToken(i,"button",t,"min-height"),text:sizeToken(i,"button",t,"text"),radius:sizeToken(i,"button",t,"radius"),icon:sizeToken(i,"button",t,"icon"),"badge-icon":sizeToken(i,"button",t,"badge-icon")}};export const resolveFieldSize=(e,t)=>{const i=resolveSize(e,"field",t);return{radius:sizeToken(i,"field",t,"radius"),"padding-x":sizeToken(i,"field",t,"padding-x"),"padding-y":sizeToken(i,"field",t,"padding-y"),"min-height":sizeToken(i,"field",t,"min-height"),text:sizeToken(i,"field",t,"text"),icon:sizeToken(i,"field",t,"icon"),"label-text":sizeToken(i,"field",t,"label-text"),"label-gap":sizeToken(i,"field",t,"label-gap"),"message-text":sizeToken(i,"field",t,"message-text"),"message-gap":sizeToken(i,"field",t,"message-gap")}};export const resolveEmptyStateSize=(e,t)=>{const i=resolveSize(e,"empty-state",t);return{icon:sizeToken(i,"empty-state",t,"icon"),"illustration-size":sizeToken(i,"empty-state",t,"illustration-size"),"title-text":sizeToken(i,"empty-state",t,"title-text"),"description-text":sizeToken(i,"empty-state",t,"description-text"),"padding-y":sizeToken(i,"empty-state",t,"padding-y"),"title-gap":sizeToken(i,"empty-state",t,"title-gap"),"description-gap":sizeToken(i,"empty-state",t,"description-gap")}};export const resolveListItemSize=(e,t)=>{const i=resolveSize(e,"list-item",t);return{"padding-y":sizeToken(i,"list-item",t,"padding-y"),"title-text":sizeToken(i,"list-item",t,"title-text"),"subtitle-text":sizeToken(i,"list-item",t,"subtitle-text"),"min-height":sizeToken(i,"list-item",t,"min-height")}};export const resolveBadgeSize=(e,t)=>{const i=resolveSize(e,"badge",t);return{text:sizeToken(i,"badge",t,"text"),"min-width":sizeToken(i,"badge",t,"min-width"),height:sizeToken(i,"badge",t,"height"),"padding-x":sizeToken(i,"badge",t,"padding-x"),"dot-size":sizeToken(i,"badge",t,"dot-size")}};export const resolveChipSize=(e,t)=>{const i=resolveSize(e,"chip",t);return{"padding-x":sizeToken(i,"chip",t,"padding-x"),"padding-y":sizeToken(i,"chip",t,"padding-y"),text:sizeToken(i,"chip",t,"text"),"min-height":sizeToken(i,"chip",t,"min-height"),"close-size":sizeToken(i,"chip",t,"close-size"),"close-text":sizeToken(i,"chip",t,"close-text"),gap:sizeToken(i,"chip",t,"gap"),icon:sizeToken(i,"chip",t,"icon")}};export const resolveCheckboxSize=(e,t)=>{const i=resolveSize(e,"checkbox",t);return{"box-size":sizeToken(i,"checkbox",t,"box-size")}};export const resolveRadioSize=(e,t)=>{const i=resolveSize(e,"radio",t);return{outer:sizeToken(i,"radio",t,"outer"),inner:sizeToken(i,"radio",t,"inner")}};export const resolveSwitchSize=(e,t)=>{const i=resolveSize(e,"switch",t);return{"track-width":sizeToken(i,"switch",t,"track-width"),"track-height":sizeToken(i,"switch",t,"track-height"),"thumb-size":sizeToken(i,"switch",t,"thumb-size"),padding:sizeToken(i,"switch",t,"padding")}};export const resolveOtpInputSize=(e,t)=>{const i=resolveSize(e,"otp-input",t);return{cell:sizeToken(i,"otp-input",t,"cell"),text:sizeToken(i,"otp-input",t,"text"),radius:sizeToken(i,"otp-input",t,"radius"),gap:sizeToken(i,"otp-input",t,"gap")}};export const resolveSegmentedControlSize=(e,t)=>{const i=resolveSize(e,"segmented-control",t);return{height:sizeToken(i,"segmented-control",t,"height"),text:sizeToken(i,"segmented-control",t,"text"),"padding-x":sizeToken(i,"segmented-control",t,"padding-x"),icon:sizeToken(i,"segmented-control",t,"icon")}};export const resolveTabsSize=(e,t)=>{const i=resolveSize(e,"tabs",t);return{text:sizeToken(i,"tabs",t,"text"),"padding-y":sizeToken(i,"tabs",t,"padding-y"),"padding-x":sizeToken(i,"tabs",t,"padding-x"),"scrollable-padding-x":sizeToken(i,"tabs",t,"scrollable-padding-x"),icon:sizeToken(i,"tabs",t,"icon")}};export const resolveSliderSize=(e,t)=>{const i=resolveSize(e,"slider",t);return{"track-height":sizeToken(i,"slider",t,"track-height"),"thumb-diameter":sizeToken(i,"slider",t,"thumb-diameter")}};export const resolveFloatingActionButtonSize=(e,t)=>{const i=resolveSize(e,"floating-action-button",t);return{diameter:sizeToken(i,"floating-action-button",t,"diameter"),icon:sizeToken(i,"floating-action-button",t,"icon"),text:sizeToken(i,"floating-action-button",t,"text"),"label-padding-x":sizeToken(i,"floating-action-button",t,"label-padding-x")}};export const validateComponentTokens=e=>{for(const t of keysOf(COMPONENT_KINDS))for(const[i,o]of Object.entries(e.components[t]))isOneOf(SIZE_KEYS,i)?resolveSize(e,t,i):pixelsOf(e,kindOf(t,i),o,`components.${t}.${i}`)};
@@ -1 +1 @@
1
- "use strict";import{validateComponentTokens}from"./componentSizes.js";import{COLOR_NAMES,FONT_NAMES,RADIUS_NAMES,WEIGHT_NAMES}from"./tokens.generated.js";import{deriveSolidFill,deriveStateFills,deriveToneInk}from"./toneInk.js";const HINT="Run webority upgrade to rename old names.",BRAND_KEYS=["colors","radius","font"],COLOR_MODES=["light","dark"],FIXED_RADII=["none","pill"],RADIUS_ALLOWED="sm, md, lg, xl",SETTINGS_KEYS=["icons","gradients","textVariants","maxFontSizeMultiplier","components"],COMPONENT_SETTING_KEYS={field:{defaultVariant:!0,requiredMarker:!0},input:{defaultVariant:!0,defaultLabelMode:!0,tintLabelOnFocus:!0,shakeOnError:!0},"search-bar":{defaultVariant:!0},select:{defaultVariant:!0},"otp-input":{shakeOnError:!0},"option-sheet":{selectedMarker:!0},"profile-picker":{defaultTone:!0,defaultVariant:!0,defaultAvatarTone:!0},slider:{thumbPressAnimation:!0},rating:{pulseOnPress:!0},stepper:{pulseAnimation:!0},tooltip:{enableScaleAnimation:!0},toast:{enableSwipeDismiss:!0,defaultDurationMs:!0},button:{defaultVariant:!0,defaultSize:!0,defaultPressAnimation:!0},card:{defaultVariant:!0,defaultPadding:!0,defaultRadius:!0,defaultTitleFont:!0},"section-header":{defaultVariant:!0,defaultFlush:!0},"empty-state":{defaultSize:!0,defaultVariant:!0},screen:{tabBarFloats:!0,headerShadowOnScroll:!0}},isPlainObject=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),validateBrand=e=>{if(void 0===e)return;if(!isPlainObject(e))throw new Error(`A brand is an object of colors, radius and font; got ${typeof e}. ${HINT}`);for(const o of Object.keys(e))if(!BRAND_KEYS.includes(o))throw new Error(`A brand sets colors, radius and font only; ${o} is not allowed (allowed: colors, radius, font). ${HINT}`);const o=e.colors;if(void 0!==o&&!isPlainObject(o))throw new Error(`A brand's colors is an object of light and dark; got ${typeof o}. ${HINT}`);for(const e of Object.keys(o??{})){if(!COLOR_MODES.includes(e))throw new Error(`A brand sets colours under light and dark only; ${e} is not allowed (allowed: light, dark). ${HINT}`);const t=o[e];if(void 0===t)throw new Error(`A brand's ${e} colours are missing. ${HINT}`);for(const e of Object.keys(t)){if(!COLOR_NAMES.includes(e))throw new Error(`unknown colour ${e}; allowed: ${COLOR_NAMES.join(", ")}. ${HINT}`);if(void 0!==t[e]&&"string"!=typeof t[e])throw new Error(`colour ${e} must be a string; got ${typeof t[e]}.`)}}const t=e.radius;if(void 0!==t&&!isPlainObject(t))throw new Error(`A brand's radius is an object of radius names; got ${typeof t}. ${HINT}`);for(const e of Object.keys(t??{})){const o=t[e];if(!RADIUS_NAMES.includes(e))throw new Error(`unknown radius ${e}; allowed: ${RADIUS_ALLOWED}. ${HINT}`);if(FIXED_RADII.includes(e))throw new Error(`radius ${e} is fixed by the library; allowed: ${RADIUS_ALLOWED}.`);if("number"!=typeof o||!Number.isFinite(o))throw new Error(`radius ${e} must be a number; got ${typeof o}.`)}const n=e.font;if(void 0!==n&&!isPlainObject(n))throw new Error(`A brand's font is an object of font names; got ${typeof n}. ${HINT}`);for(const e of Object.keys(n??{})){if(!FONT_NAMES.includes(e))throw new Error(`unknown font ${e}; allowed: ${FONT_NAMES.join(", ")}. ${HINT}`);const o=n[e];if(!isPlainObject(o))throw new Error(`font ${e} must be an object of weights; got ${typeof o}. ${HINT}`);for(const t of Object.keys(o)){if(!WEIGHT_NAMES.includes(t))throw new Error(`unknown font weight ${t} in font ${e}; allowed: ${WEIGHT_NAMES.join(", ")}. ${HINT}`);const n=o[t];if("string"!=typeof n||0===n.length)throw new Error(`font ${e} weight ${t} must be a non-empty string.`)}}},validateSettings=e=>{if(void 0===e)return;if(!isPlainObject(e))throw new Error(`Theme settings is an object; got ${typeof e}. ${HINT}`);for(const o of Object.keys(e))if(!SETTINGS_KEYS.includes(o))throw new Error(`Theme settings take ${SETTINGS_KEYS.join(", ")} only; ${o} is not allowed. ${HINT}`);const o=e.components;if(void 0===o)return;if(!isPlainObject(o))throw new Error(`Theme settings components is an object of component names; got ${typeof o}. ${HINT}`);const t=COMPONENT_SETTING_KEYS;for(const e of Object.keys(o)){if(!Object.keys(t).includes(e))throw new Error(`unknown component ${e} in theme settings; allowed: ${Object.keys(COMPONENT_SETTING_KEYS).join(", ")}. ${HINT}`);const n=o[e];if(void 0===n)continue;if(!isPlainObject(n))throw new Error(`theme settings for ${e} is an object; got ${typeof n}. ${HINT}`);const r=t[e];if(void 0===r)throw new Error(`theme settings for ${e} have no allowed keys table. ${HINT}`);for(const o of Object.keys(n))if(!(o in r))throw new Error(`unknown setting ${o} for ${e}; allowed: ${Object.keys(r).join(", ")}. ${HINT}`)}},TONES=["primary","success","warning","danger","info"];export const mergeBrand=(e,o,t)=>{validateBrand(o),validateSettings(t);const n=Object.fromEntries(Object.entries(o?.colors?.[e.mode]??{}).filter(([,e])=>void 0!==e)),r={...e.colors,...n},colorOf=e=>{const o=r[e];if(void 0===o)throw new Error(`The theme has no colour ${e}.`);return o},i={...e.radius,...o?.radius},s={...e.font};for(const t of Object.keys(o?.font??{}))s[t]={...e.font[t],...o?.font?.[t]};const a=[colorOf("bg"),colorOf("bg-subtle"),colorOf("bg-muted")],l={};for(const o of TONES){const t="string"==typeof n[o];let r=colorOf(o);if(t||"string"==typeof n[`on-${o}`]){const e=deriveSolidFill(r,colorOf(`on-${o}`));e!==r&&(l[o]=e,r=e)}if(t&&"string"!=typeof n[`${o}-text`]&&(l[`${o}-text`]=deriveToneInk(r,a,e.mode)),"primary"===o&&(t||void 0!==l.primary)){const o=deriveStateFills(r,colorOf("on-primary"),{fill:e.colors.primary,hover:e.colors["primary-hover"],pressed:e.colors["primary-pressed"]});"string"!=typeof n["primary-hover"]&&(l["primary-hover"]=o.hover),"string"!=typeof n["primary-pressed"]&&(l["primary-pressed"]=o.pressed)}}const d={},f=new Set([...Object.keys(e.settings.components),...Object.keys(t?.components??{})]);for(const o of f)d[o]={...e.settings.components[o],...t?.components?.[o]};const c=t?.maxFontSizeMultiplier??e.settings.maxFontSizeMultiplier,u={icons:{...e.settings.icons,...t?.icons},gradients:{...e.settings.gradients,...t?.gradients},textVariants:{...e.settings.textVariants,...t?.textVariants},components:d,...void 0===c?{}:{maxFontSizeMultiplier:c}},w={...e,colors:{...r,...l},radius:i,font:s,settings:u};return validateComponentTokens(w),w};
1
+ "use strict";import{hasKey,isOneOf,isRecord,keysOf}from"../utils/guards.js";import{validateComponentTokens}from"./componentSizes.js";import{COLOR_NAMES,FONT_NAMES,RADIUS_NAMES,WEIGHT_NAMES}from"./tokens.generated.js";import{deriveSolidFill,deriveStateFills,deriveToneInk}from"./toneInk.js";const HINT="Run webority upgrade to rename old names.",BRAND_KEYS=["colors","radius","font"],COLOR_MODES=["light","dark"],FIXED_RADII=["none","pill"],RADIUS_ALLOWED="sm, md, lg, xl",SETTINGS_KEYS=["icons","gradients","textVariants","maxFontSizeMultiplier","components"],COMPONENT_SETTING_KEYS={field:{defaultVariant:!0,requiredMarker:!0},input:{defaultVariant:!0,defaultLabelMode:!0,tintLabelOnFocus:!0,shakeOnError:!0},"search-bar":{defaultVariant:!0},select:{defaultVariant:!0},"otp-input":{shakeOnError:!0},"option-sheet":{selectedMarker:!0},"profile-picker":{defaultTone:!0,defaultVariant:!0,defaultAvatarTone:!0},slider:{thumbPressAnimation:!0},rating:{pulseOnPress:!0},stepper:{pulseAnimation:!0},tooltip:{enableScaleAnimation:!0},toast:{enableSwipeDismiss:!0,defaultDurationMs:!0},button:{defaultVariant:!0,defaultSize:!0,defaultPressAnimation:!0},card:{defaultVariant:!0,defaultPadding:!0,defaultRadius:!0,defaultTitleFont:!0},"section-header":{defaultVariant:!0,defaultFlush:!0},"empty-state":{defaultSize:!0,defaultVariant:!0},screen:{tabBarFloats:!0,headerShadowOnScroll:!0}},isPlainObject=o=>"object"==typeof o&&null!==o&&!Array.isArray(o),validateBrand=o=>{if(void 0===o)return;if(!isPlainObject(o))throw new Error(`A brand is an object of colors, radius and font; got ${typeof o}. ${HINT}`);for(const e of Object.keys(o))if(!BRAND_KEYS.includes(e))throw new Error(`A brand sets colors, radius and font only; ${e} is not allowed (allowed: colors, radius, font). ${HINT}`);const e=o.colors;if(void 0!==e&&!isPlainObject(e))throw new Error(`A brand's colors is an object of light and dark; got ${typeof e}. ${HINT}`);if(isRecord(e))for(const o of Object.keys(e)){if(!COLOR_MODES.includes(o))throw new Error(`A brand sets colours under light and dark only; ${o} is not allowed (allowed: light, dark). ${HINT}`);const t=e[o];if(void 0===t)throw new Error(`A brand's ${o} colours are missing. ${HINT}`);if(!isRecord(t))throw new Error(`A brand's ${o} colours is an object of colour names; got ${typeof t}. ${HINT}`);for(const o of Object.keys(t)){if(!isOneOf(COLOR_NAMES,o))throw new Error(`unknown colour ${o}; allowed: ${COLOR_NAMES.join(", ")}. ${HINT}`);if(void 0!==t[o]&&"string"!=typeof t[o])throw new Error(`colour ${o} must be a string; got ${typeof t[o]}.`)}}const t=o.radius;if(void 0!==t){if(!isPlainObject(t))throw new Error(`A brand's radius is an object of radius names; got ${typeof t}. ${HINT}`);for(const o of Object.keys(t)){const e=t[o];if(!isOneOf(RADIUS_NAMES,o))throw new Error(`unknown radius ${o}; allowed: ${RADIUS_ALLOWED}. ${HINT}`);if(FIXED_RADII.includes(o))throw new Error(`radius ${o} is fixed by the library; allowed: ${RADIUS_ALLOWED}.`);if("number"!=typeof e||!Number.isFinite(e))throw new Error(`radius ${o} must be a number; got ${typeof e}.`)}}const n=o.font;if(void 0!==n){if(!isPlainObject(n))throw new Error(`A brand's font is an object of font names; got ${typeof n}. ${HINT}`);for(const o of Object.keys(n)){if(!isOneOf(FONT_NAMES,o))throw new Error(`unknown font ${o}; allowed: ${FONT_NAMES.join(", ")}. ${HINT}`);const e=n[o];if(!isPlainObject(e))throw new Error(`font ${o} must be an object of weights; got ${typeof e}. ${HINT}`);for(const t of Object.keys(e)){if(!isOneOf(WEIGHT_NAMES,t))throw new Error(`unknown font weight ${t} in font ${o}; allowed: ${WEIGHT_NAMES.join(", ")}. ${HINT}`);const n=e[t];if("string"!=typeof n||0===n.length)throw new Error(`font ${o} weight ${t} must be a non-empty string.`)}}}},validateSettings=o=>{if(void 0===o)return;if(!isPlainObject(o))throw new Error(`Theme settings is an object; got ${typeof o}. ${HINT}`);for(const e of Object.keys(o))if(!isOneOf(SETTINGS_KEYS,e))throw new Error(`Theme settings take ${SETTINGS_KEYS.join(", ")} only; ${e} is not allowed. ${HINT}`);const e=o.components;if(void 0!==e){if(!isPlainObject(e))throw new Error(`Theme settings components is an object of component names; got ${typeof e}. ${HINT}`);for(const o of Object.keys(e)){if(!hasKey(COMPONENT_SETTING_KEYS,o))throw new Error(`unknown component ${o} in theme settings; allowed: ${Object.keys(COMPONENT_SETTING_KEYS).join(", ")}. ${HINT}`);const t=e[o];if(void 0===t)continue;if(!isPlainObject(t))throw new Error(`theme settings for ${o} is an object; got ${typeof t}. ${HINT}`);const n=COMPONENT_SETTING_KEYS[o];for(const e of Object.keys(t))if(!(e in n))throw new Error(`unknown setting ${e} for ${o}; allowed: ${Object.keys(n).join(", ")}. ${HINT}`)}}},TONES=["primary","success","warning","danger","info"],setComponentSettings=(o,e,t)=>{o[e]=t},mergeComponentSettings=(o,e,t)=>({...hasKey(o,t)?o[t]:void 0,...void 0!==e&&hasKey(e,t)?e[t]:void 0});export const mergeBrand=(o,e,t)=>{validateBrand(e),validateSettings(t);const n={};for(const[t,r]of Object.entries(e?.colors?.[o.mode]??{}))void 0!==r&&(n[t]=r);const r={...o.colors,...n},colorOf=o=>{const e=r[o];if(void 0===e)throw new Error(`The theme has no colour ${o}.`);return e},i={...o.radius,...e?.radius},s={...o.font};if(void 0!==e?.font)for(const t of keysOf(e.font))s[t]={...o.font[t],...e.font[t]};const a=[colorOf("bg"),colorOf("bg-subtle"),colorOf("bg-muted")],f={};for(const e of TONES){const t="string"==typeof n[e];let r=colorOf(e);if(t||"string"==typeof n[`on-${e}`]){const o=deriveSolidFill(r,colorOf(`on-${e}`));o!==r&&(f[e]=o,r=o)}if(t&&"string"!=typeof n[`${e}-text`]&&(f[`${e}-text`]=deriveToneInk(r,a,o.mode)),"primary"===e&&(t||void 0!==f.primary)){const e=deriveStateFills(r,colorOf("on-primary"),{fill:o.colors.primary,hover:o.colors["primary-hover"],pressed:o.colors["primary-pressed"]});"string"!=typeof n["primary-hover"]&&(f["primary-hover"]=e.hover),"string"!=typeof n["primary-pressed"]&&(f["primary-pressed"]=e.pressed)}}const l=o.settings.components,d=t?.components,c={},u=new Set([...keysOf(l),...void 0===d?[]:keysOf(d)]);for(const o of u)setComponentSettings(c,o,mergeComponentSettings(l,d,o));const p=t?.maxFontSizeMultiplier??o.settings.maxFontSizeMultiplier,m={icons:{...o.settings.icons,...t?.icons},gradients:{...o.settings.gradients,...t?.gradients},textVariants:{...o.settings.textVariants,...t?.textVariants},components:c,...void 0===p?{}:{maxFontSizeMultiplier:p}},w={...o.colors};for(const o of COLOR_NAMES)w[o]=f[o]??r[o];const O={...o,colors:w,radius:i,font:s,settings:m};return validateComponentTokens(O),O};
@@ -1 +1 @@
1
- "use strict";export const scaleStep=(e,t,s,r)=>{const c="space"===t?e.space:"radius"===t?e.radius:e.text,o=c[s],a="text"===t?o?.size:o;if("number"!=typeof a){const e=Object.keys(c).join(", ");throw new Error(`${r?`${r} is `:""}${JSON.stringify(s)}, which is not a ${"text"===t?"text size":"radius"===t?"corner":"space"} name. Use one of: ${e}.`)}return a};export const spaceOf=(e,t)=>scaleStep(e,"space",t);export const radiusOf=(e,t)=>scaleStep(e,"radius",t);export const textOf=(e,t)=>scaleStep(e,"text",t);
1
+ "use strict";import{isRecord}from"../utils/guards.js";export const scaleStep=(e,t,s,r)=>{const o="space"===t?e.space:"radius"===t?e.radius:e.text,c=o[s],i="text"===t?isRecord(c)?c.size:void 0:c;if("number"!=typeof i){const e=Object.keys(o).join(", ");throw new Error(`${r?`${r} is `:""}${JSON.stringify(s)}, which is not a ${"text"===t?"text size":"radius"===t?"corner":"space"} name. Use one of: ${e}.`)}return i};export const spaceOf=(e,t)=>scaleStep(e,"space",t);export const radiusOf=(e,t)=>scaleStep(e,"radius",t);export const textOf=(e,t)=>scaleStep(e,"text",t);
@@ -1 +1 @@
1
- "use strict";export const COLOR_NAMES=["bg","bg-subtle","bg-muted","surface","surface-inverse","surface-dark","surface-dark-border","on-surface-dark","on-surface-dark-muted","surface-ink","text","text-body","text-muted","text-subtle","text-inverse","link","border","border-subtle","field-bg","field-border","field-border-focus","focus-ring","scrim","on-scrim","thumb","primary","primary-hover","primary-soft","primary-text","on-primary","primary-wash","primary-wash-strong","neutral","neutral-hover","neutral-text","on-neutral","success","success-soft","success-text","on-success","warning","warning-soft","warning-text","on-warning","danger","danger-soft","danger-border","danger-text","offline-fill","online-fill","on-danger","info","info-soft","info-text","on-info","primary-pressed","switch-thumb","on-neutral-strong","text-disabled","surface-pressed","surface-hover","surface-selected","surface-disabled","skeleton","skeleton-highlight","glass-fill","glass-border","on-glass","glass-badge","field-bg-focus","field-bg-disabled","field-border-error","field-label","field-text","field-text-disabled","field-placeholder","field-placeholder-disabled","field-icon","field-icon-focus","field-icon-disabled","field-caret","field-message","avatar-1","avatar-2","avatar-3","avatar-4","avatar-5","avatar-6","avatar-7","avatar-8"];export const SPACE_NAMES=["none","xxs","xs","sm","md","lg","xl","2xl","3xl","4xl"];export const RADIUS_NAMES=["none","sm","md","lg","xl","pill"];export const TEXT_NAMES=["xs","sm","base","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl"];export const WEIGHT_NAMES=["normal","medium","semibold","bold"];export const LEADING_NAMES=["heading","body","display"];export const LETTER_SPACING_NAMES=["tight","normal","wide"];export const FONT_NAMES=["ui","display","mono"];export const SHADOW_NAMES=["card","elevated","popover","modal","drawer"];export const DURATION_NAMES=["instant","fast","default","slow","slower"];export const EASE_NAMES=["in-out","accelerate","decelerate","sharp"];export const SIZE_NAMES=["border"];export const COMPONENT_KINDS={field:{radius:"radius","padding-x":"space","padding-y":"space","min-height":"px",text:"text",icon:"px","label-text":"text","label-gap":"space","message-text":"text","message-gap":"space"},press:{opacity:"number"},disabled:{opacity:"number"},button:{"padding-x":"space","padding-y":"space","min-height":"px",text:"text",radius:"radius",icon:"px","badge-icon":"px"},input:{"multiline-min-height":"px"},"search-bar":{radius:"radius"},"empty-state":{icon:"px","illustration-size":"px","title-text":"text","description-text":"text","padding-y":"space","title-gap":"space","description-gap":"space"},"list-item":{"padding-y":"space","title-text":"text","subtitle-text":"text","min-height":"px"},badge:{text:"text","min-width":"px",height:"px","padding-x":"space","dot-size":"px","border-width":"px","anchor-offset":"px"},chip:{"padding-x":"space","padding-y":"space",text:"text","min-height":"px","close-size":"px","close-text":"text",gap:"space",icon:"px"},checkbox:{"box-size":"px","label-gap":"space"},radio:{outer:"px",inner:"px","label-gap":"space"},switch:{"track-width":"px","track-height":"px","thumb-size":"px",padding:"space"},"otp-input":{cell:"px",text:"text",radius:"radius",gap:"space"},"segmented-control":{height:"px",text:"text","padding-x":"space",icon:"px","track-padding":"space","underline-height":"px","pill-inset":"space"},tabs:{text:"text","padding-y":"space","padding-x":"space","scrollable-padding-x":"space",icon:"px","icon-gap":"space","track-padding":"space","underline-height":"px","pill-inset":"space","disabled-opacity":"number","badge-gap":"space"},slider:{"track-height":"px","thumb-diameter":"px"},"floating-action-button":{diameter:"px",icon:"px",text:"text","label-padding-x":"space","edge-offset":"space","bottom-offset":"space","secondary-gap":"space","stagger-ms":"ms"},dialog:{"icon-wrapper-size":"px","action-button-min-height":"px"},toast:{"icon-circle-size":"px","icon-glyph-text":"text","tint-bar-width":"px","action-min-height":"px"},banner:{"tint-bar-width":"px"},screen:{gutter:"space"}};export const lightTokens={mode:"light",colors:{bg:"#ffffff","bg-subtle":"#f8f8fb","bg-muted":"#f1f1f5",surface:"#ffffff","surface-inverse":"#0f0f1a","surface-dark":"#071437","surface-dark-border":"#2a3553","on-surface-dark":"#ffffff","on-surface-dark-muted":"#babdc7","surface-ink":"#0b0e16",text:"#252f4a","text-body":"#0f0f1a","text-muted":"#52525b","text-subtle":"#62626b","text-inverse":"#ffffff",link:"#5b5bd6",border:"#e5e5ec","border-subtle":"#efeff3","field-bg":"#f9fbfc","field-border":"#ebedf3","field-border-focus":"#bed2f9","focus-ring":"#5b5bd6",scrim:"#0f0f1a80","on-scrim":"#ffffff",thumb:"#ffffff",primary:"#5b5bd6","primary-hover":"#4f4fbf","primary-soft":"#eeeefc","primary-text":"#4f4fd3","on-primary":"#ffffff","primary-wash":"#5b5bd614","primary-wash-strong":"#5b5bd633",neutral:"#f4f4f8","neutral-hover":"#e9e9f0","neutral-text":"#52525b","on-neutral":"#0f0f1a",success:"#18864f","success-soft":"#e8faee","success-text":"#147042","on-success":"#ffffff",warning:"#f59e0b","warning-soft":"#fff8e6","warning-text":"#8f5c06","on-warning":"#0f0f1a",danger:"#e12c32","danger-soft":"#ffeaef","danger-border":"#e5484d","danger-text":"#bc1b20","offline-fill":"#e82646","online-fill":"#04b440","on-danger":"#ffffff",info:"#1b6ef5","info-soft":"#e9f3ff","info-text":"#0958d9","on-info":"#ffffff","primary-pressed":"#4040a8","switch-thumb":"#ffffff","on-neutral-strong":"#ffffff","text-disabled":"#b4b4bb","surface-pressed":"#0f0f1a0f","surface-hover":"#0f0f1a0a","surface-selected":"#5b5bd61a","surface-disabled":"#f1f1f5",skeleton:"#ebedf3","skeleton-highlight":"#f5f6fa","glass-fill":"#ffffff47","glass-border":"#ffffff73","on-glass":"#0f0f1a","glass-badge":"#ffffff","field-bg-focus":"#ffffff","field-bg-disabled":"#f5f6fa","field-border-error":"#fdbfce","field-label":"#242f4a","field-text":"#252f4a","field-text-disabled":"#7a8197","field-placeholder":"#626d8b","field-placeholder-disabled":"#7a8197","field-icon":"#7a849f","field-icon-focus":"#4b5675","field-icon-disabled":"#c4cada","field-caret":"#5b8dee","field-message":"#d81736","avatar-1":"#5b5bd6","avatar-2":"#0a7979","avatar-3":"#a45a05","avatar-4":"#cd226e","avatar-5":"#2462eb","avatar-6":"#7c3aed","avatar-7":"#047c57","avatar-8":"#d42222"},space:{none:0,xxs:2,xs:4,sm:8,md:12,lg:16,xl:24,"2xl":32,"3xl":48,"4xl":64},radius:{none:0,sm:6,md:10,lg:14,xl:20,pill:9999},text:{xs:{size:11},sm:{size:13},base:{size:15},lg:{size:17},xl:{size:20},"2xl":{size:24},"3xl":{size:30},"4xl":{size:36},"5xl":{size:45},"6xl":{size:57},"7xl":{size:64},"8xl":{size:72}},weight:{normal:"400",medium:"500",semibold:"600",bold:"700"},leading:{heading:1.2,body:1.4,display:1.2},"letter-spacing":{tight:-.2,normal:0,wide:.4},font:{ui:{},display:{},mono:{}},shadow:{card:{shadowColor:"#000000",shadowOffset:{width:0,height:2},shadowOpacity:.059,shadowRadius:4,elevation:2},elevated:{shadowColor:"#000000",shadowOffset:{width:0,height:4},shadowOpacity:.078,shadowRadius:8,elevation:4},popover:{shadowColor:"#000000",shadowOffset:{width:0,height:8},shadowOpacity:.102,shadowRadius:16,elevation:8},modal:{shadowColor:"#000000",shadowOffset:{width:0,height:12},shadowOpacity:.141,shadowRadius:24,elevation:12},drawer:{shadowColor:"#000000",shadowOffset:{width:0,height:12},shadowOpacity:.141,shadowRadius:24,elevation:12}},motion:{duration:{instant:80,fast:160,default:240,slow:360,slower:500},ease:{"in-out":[.4,0,.2,1],accelerate:[.4,0,1,1],decelerate:[0,0,.2,1],sharp:[.4,0,.6,1]}},size:{border:1},components:{field:{sm:{radius:"md","padding-x":"sm","padding-y":"sm","min-height":38,text:"sm",icon:14,"label-text":"xs","label-gap":"xs","message-text":"xs","message-gap":"xxs"},md:{radius:"md","padding-x":"md","padding-y":"md","min-height":44,text:"base",icon:16,"label-text":"sm","label-gap":"xs","message-text":"sm","message-gap":"xxs"},lg:{radius:"md","padding-x":"lg","padding-y":"lg","min-height":52,text:"lg",icon:18,"label-text":"base","label-gap":"xs","message-text":"base","message-gap":"xxs"}},press:{opacity:.85},disabled:{opacity:.55},button:{xs:{"padding-x":"sm","padding-y":"xs","min-height":28,text:"xs",radius:"md",icon:14,"badge-icon":11},sm:{"padding-x":"md","padding-y":"xs","min-height":34,text:"sm",radius:"md",icon:16,"badge-icon":16},md:{"padding-x":"lg","padding-y":"sm","min-height":44,text:"base",radius:"md",icon:18,"badge-icon":18},lg:{"padding-x":"xl","padding-y":"md","min-height":50,text:"lg",radius:"lg",icon:20,"badge-icon":20},xl:{"padding-x":"2xl","padding-y":"md","min-height":58,text:"xl",radius:"lg",icon:22,"badge-icon":22}},input:{sm:{"multiline-min-height":72},md:{"multiline-min-height":92},lg:{"multiline-min-height":110}},"search-bar":{sm:{radius:"pill"},md:{radius:"pill"},lg:{radius:"pill"}},"empty-state":{sm:{icon:48,"illustration-size":96,"title-text":"lg","description-text":"sm","padding-y":"lg","title-gap":"md","description-gap":"xs"},md:{icon:64,"illustration-size":160,"title-text":"xl","description-text":"base","padding-y":"xl","title-gap":"md","description-gap":"xs"},lg:{icon:80,"illustration-size":240,"title-text":"2xl","description-text":"lg","padding-y":"2xl","title-gap":"md","description-gap":"xs"}},"list-item":{sm:{"padding-y":"sm","title-text":"sm","subtitle-text":"xs","min-height":44},md:{"padding-y":"md","title-text":"base","subtitle-text":"sm","min-height":56},lg:{"padding-y":"lg","title-text":"lg","subtitle-text":"base","min-height":72}},badge:{sm:{text:"xs","min-width":16,height:16,"padding-x":"xs","dot-size":8},md:{text:"sm","min-width":20,height:20,"padding-x":"sm","dot-size":10},"border-width":1.5,"anchor-offset":4},chip:{sm:{"padding-x":"sm","padding-y":"xs",text:"xs","min-height":26,"close-size":16,"close-text":"xs",gap:"xs",icon:14},md:{"padding-x":"md","padding-y":"xs",text:"sm","min-height":32,"close-size":18,"close-text":"sm",gap:"sm",icon:16}},checkbox:{sm:{"box-size":16},md:{"box-size":20},lg:{"box-size":24},"label-gap":"sm"},radio:{sm:{outer:16,inner:8},md:{outer:20,inner:10},lg:{outer:24,inner:12},"label-gap":"sm"},switch:{sm:{"track-width":42,"track-height":26,"thumb-size":22,padding:"xxs"},md:{"track-width":51,"track-height":31,"thumb-size":27,padding:"xxs"},lg:{"track-width":60,"track-height":36,"thumb-size":32,padding:"xxs"}},"otp-input":{sm:{cell:36,text:"base",radius:"sm",gap:"sm"},md:{cell:48,text:"xl",radius:"md",gap:"sm"},lg:{cell:56,text:"2xl",radius:"lg",gap:"md"}},"segmented-control":{sm:{height:32,text:"sm","padding-x":"sm",icon:14},md:{height:40,text:"base","padding-x":"md",icon:16},lg:{height:48,text:"lg","padding-x":"lg",icon:18},"track-padding":"xs","underline-height":2,"pill-inset":"xs"},tabs:{sm:{text:"sm","padding-y":"sm","padding-x":"xs","scrollable-padding-x":"md",icon:16},md:{text:"base","padding-y":"md","padding-x":"sm","scrollable-padding-x":"lg",icon:18},lg:{text:"lg","padding-y":"lg","padding-x":"md","scrollable-padding-x":"xl",icon:20},"icon-gap":"xs","track-padding":"xs","underline-height":2,"pill-inset":"xs","disabled-opacity":.45,"badge-gap":"xs"},slider:{sm:{"track-height":4,"thumb-diameter":24},md:{"track-height":6,"thumb-diameter":28},lg:{"track-height":8,"thumb-diameter":32}},"floating-action-button":{sm:{diameter:40,icon:18,text:"sm","label-padding-x":"md"},md:{diameter:56,icon:22,text:"base","label-padding-x":"lg"},lg:{diameter:72,icon:28,text:"lg","label-padding-x":"xl"},"edge-offset":"xl","bottom-offset":"xl","secondary-gap":"lg","stagger-ms":50},dialog:{"icon-wrapper-size":48,"action-button-min-height":44},toast:{"icon-circle-size":28,"icon-glyph-text":"lg","tint-bar-width":0,"action-min-height":30},banner:{"tint-bar-width":0},screen:{gutter:"lg"}}};export const darkTokens={mode:"dark",colors:{bg:"#0b0b12","bg-subtle":"#13131c","bg-muted":"#1c1c26",surface:"#1c1c26","surface-inverse":"#fafafa","surface-dark":"#071437","surface-dark-border":"#2a3553","on-surface-dark":"#ffffff","on-surface-dark-muted":"#babdc7","surface-ink":"#0b0e16",text:"#e2e2e2","text-body":"#fafafa","text-muted":"#b4b4bb","text-subtle":"#919199","text-inverse":"#0f0f1a",link:"#9292ee",border:"#27272f","border-subtle":"#1c1c26","field-bg":"#13131c","field-border":"#27272f","field-border-focus":"#3d5fb0","focus-ring":"#7c7ce8",scrim:"#000000a6","on-scrim":"#ffffff",thumb:"#3a3e49",primary:"#7c7ce8","primary-hover":"#9292ee","primary-soft":"#1f1f3d","primary-text":"#8989ea","on-primary":"#0f0f1a","primary-wash":"#7c7ce814","primary-wash-strong":"#7c7ce833",neutral:"#1f1f26","neutral-hover":"#2a2a33","neutral-text":"#b4b4bb","on-neutral":"#fafafa",success:"#30c780","success-soft":"#04b4402e","success-text":"#30c780","on-success":"#0f0f1a",warning:"#fbbf24","warning-soft":"#dfa0002e","warning-text":"#fbbf24","on-warning":"#0f0f1a",danger:"#f87171","danger-soft":"#e826462e","danger-border":"#f87171","danger-text":"#f87171","offline-fill":"#e82646","online-fill":"#04b440","on-danger":"#0f0f1a",info:"#60a5fa","info-soft":"#056ee92e","info-text":"#60a5fa","on-info":"#0f0f1a","primary-pressed":"#a8a8f2","switch-thumb":"#ffffff","on-neutral-strong":"#0f0f1a","text-disabled":"#52525b","surface-pressed":"#ffffff14","surface-hover":"#ffffff0d","surface-selected":"#7c7ce82e","surface-disabled":"#1c1c26",skeleton:"#1c1c26","skeleton-highlight":"#27272f","glass-fill":"#ffffff47","glass-border":"#ffffff73","on-glass":"#0f0f1a","glass-badge":"#ffffff","field-bg-focus":"#0b0b12","field-bg-disabled":"#1c1c26","field-border-error":"#8a2f42","field-label":"#e4e6ee","field-text":"#fafafa","field-text-disabled":"#71717a","field-placeholder":"#84848d","field-placeholder-disabled":"#71717a","field-icon":"#8b8b95","field-icon-focus":"#d4d4db","field-icon-disabled":"#52525b","field-caret":"#7c9ef0","field-message":"#f87171","avatar-1":"#8b8bee","avatar-2":"#2dd4bf","avatar-3":"#fcd34d","avatar-4":"#f472b6","avatar-5":"#60a5fa","avatar-6":"#a78bfa","avatar-7":"#34d399","avatar-8":"#f87171"},space:{none:0,xxs:2,xs:4,sm:8,md:12,lg:16,xl:24,"2xl":32,"3xl":48,"4xl":64},radius:{none:0,sm:6,md:10,lg:14,xl:20,pill:9999},text:{xs:{size:11},sm:{size:13},base:{size:15},lg:{size:17},xl:{size:20},"2xl":{size:24},"3xl":{size:30},"4xl":{size:36},"5xl":{size:45},"6xl":{size:57},"7xl":{size:64},"8xl":{size:72}},weight:{normal:"400",medium:"500",semibold:"600",bold:"700"},leading:{heading:1.2,body:1.4,display:1.2},"letter-spacing":{tight:-.2,normal:0,wide:.4},font:{ui:{},display:{},mono:{}},shadow:{card:{shadowColor:"#000000",shadowOffset:{width:0,height:2},shadowOpacity:.4,shadowRadius:4,elevation:2},elevated:{shadowColor:"#000000",shadowOffset:{width:0,height:4},shadowOpacity:.502,shadowRadius:8,elevation:4},popover:{shadowColor:"#000000",shadowOffset:{width:0,height:8},shadowOpacity:.549,shadowRadius:16,elevation:8},modal:{shadowColor:"#000000",shadowOffset:{width:0,height:12},shadowOpacity:.6,shadowRadius:24,elevation:12},drawer:{shadowColor:"#000000",shadowOffset:{width:0,height:12},shadowOpacity:.6,shadowRadius:24,elevation:12}},motion:{duration:{instant:80,fast:160,default:240,slow:360,slower:500},ease:{"in-out":[.4,0,.2,1],accelerate:[.4,0,1,1],decelerate:[0,0,.2,1],sharp:[.4,0,.6,1]}},size:{border:1},components:{field:{sm:{radius:"md","padding-x":"sm","padding-y":"sm","min-height":38,text:"sm",icon:14,"label-text":"xs","label-gap":"xs","message-text":"xs","message-gap":"xxs"},md:{radius:"md","padding-x":"md","padding-y":"md","min-height":44,text:"base",icon:16,"label-text":"sm","label-gap":"xs","message-text":"sm","message-gap":"xxs"},lg:{radius:"md","padding-x":"lg","padding-y":"lg","min-height":52,text:"lg",icon:18,"label-text":"base","label-gap":"xs","message-text":"base","message-gap":"xxs"}},press:{opacity:.85},disabled:{opacity:.55},button:{xs:{"padding-x":"sm","padding-y":"xs","min-height":28,text:"xs",radius:"md",icon:14,"badge-icon":11},sm:{"padding-x":"md","padding-y":"xs","min-height":34,text:"sm",radius:"md",icon:16,"badge-icon":16},md:{"padding-x":"lg","padding-y":"sm","min-height":44,text:"base",radius:"md",icon:18,"badge-icon":18},lg:{"padding-x":"xl","padding-y":"md","min-height":50,text:"lg",radius:"lg",icon:20,"badge-icon":20},xl:{"padding-x":"2xl","padding-y":"md","min-height":58,text:"xl",radius:"lg",icon:22,"badge-icon":22}},input:{sm:{"multiline-min-height":72},md:{"multiline-min-height":92},lg:{"multiline-min-height":110}},"search-bar":{sm:{radius:"pill"},md:{radius:"pill"},lg:{radius:"pill"}},"empty-state":{sm:{icon:48,"illustration-size":96,"title-text":"lg","description-text":"sm","padding-y":"lg","title-gap":"md","description-gap":"xs"},md:{icon:64,"illustration-size":160,"title-text":"xl","description-text":"base","padding-y":"xl","title-gap":"md","description-gap":"xs"},lg:{icon:80,"illustration-size":240,"title-text":"2xl","description-text":"lg","padding-y":"2xl","title-gap":"md","description-gap":"xs"}},"list-item":{sm:{"padding-y":"sm","title-text":"sm","subtitle-text":"xs","min-height":44},md:{"padding-y":"md","title-text":"base","subtitle-text":"sm","min-height":56},lg:{"padding-y":"lg","title-text":"lg","subtitle-text":"base","min-height":72}},badge:{sm:{text:"xs","min-width":16,height:16,"padding-x":"xs","dot-size":8},md:{text:"sm","min-width":20,height:20,"padding-x":"sm","dot-size":10},"border-width":1.5,"anchor-offset":4},chip:{sm:{"padding-x":"sm","padding-y":"xs",text:"xs","min-height":26,"close-size":16,"close-text":"xs",gap:"xs",icon:14},md:{"padding-x":"md","padding-y":"xs",text:"sm","min-height":32,"close-size":18,"close-text":"sm",gap:"sm",icon:16}},checkbox:{sm:{"box-size":16},md:{"box-size":20},lg:{"box-size":24},"label-gap":"sm"},radio:{sm:{outer:16,inner:8},md:{outer:20,inner:10},lg:{outer:24,inner:12},"label-gap":"sm"},switch:{sm:{"track-width":42,"track-height":26,"thumb-size":22,padding:"xxs"},md:{"track-width":51,"track-height":31,"thumb-size":27,padding:"xxs"},lg:{"track-width":60,"track-height":36,"thumb-size":32,padding:"xxs"}},"otp-input":{sm:{cell:36,text:"base",radius:"sm",gap:"sm"},md:{cell:48,text:"xl",radius:"md",gap:"sm"},lg:{cell:56,text:"2xl",radius:"lg",gap:"md"}},"segmented-control":{sm:{height:32,text:"sm","padding-x":"sm",icon:14},md:{height:40,text:"base","padding-x":"md",icon:16},lg:{height:48,text:"lg","padding-x":"lg",icon:18},"track-padding":"xs","underline-height":2,"pill-inset":"xs"},tabs:{sm:{text:"sm","padding-y":"sm","padding-x":"xs","scrollable-padding-x":"md",icon:16},md:{text:"base","padding-y":"md","padding-x":"sm","scrollable-padding-x":"lg",icon:18},lg:{text:"lg","padding-y":"lg","padding-x":"md","scrollable-padding-x":"xl",icon:20},"icon-gap":"xs","track-padding":"xs","underline-height":2,"pill-inset":"xs","disabled-opacity":.45,"badge-gap":"xs"},slider:{sm:{"track-height":4,"thumb-diameter":24},md:{"track-height":6,"thumb-diameter":28},lg:{"track-height":8,"thumb-diameter":32}},"floating-action-button":{sm:{diameter:40,icon:18,text:"sm","label-padding-x":"md"},md:{diameter:56,icon:22,text:"base","label-padding-x":"lg"},lg:{diameter:72,icon:28,text:"lg","label-padding-x":"xl"},"edge-offset":"xl","bottom-offset":"xl","secondary-gap":"lg","stagger-ms":50},dialog:{"icon-wrapper-size":48,"action-button-min-height":44},toast:{"icon-circle-size":28,"icon-glyph-text":"lg","tint-bar-width":0,"action-min-height":30},banner:{"tint-bar-width":0},screen:{gutter:"lg"}}};
1
+ "use strict";export const COLOR_NAMES=["bg","bg-subtle","bg-muted","surface","surface-inverse","surface-dark","surface-dark-border","on-surface-dark","on-surface-dark-muted","surface-ink","text","text-body","text-muted","text-subtle","text-inverse","link","border","border-subtle","field-bg","field-border","field-border-focus","focus-ring","scrim","on-scrim","thumb","primary","primary-hover","primary-soft","primary-text","on-primary","primary-wash","primary-wash-strong","neutral","neutral-hover","neutral-text","on-neutral","success","success-soft","success-text","on-success","warning","warning-soft","warning-text","on-warning","danger","danger-soft","danger-border","danger-text","offline-fill","online-fill","on-danger","info","info-soft","info-text","on-info","primary-pressed","switch-thumb","on-neutral-strong","text-disabled","surface-pressed","surface-hover","surface-selected","surface-disabled","skeleton","skeleton-highlight","glass-fill","glass-border","on-glass","glass-badge","field-bg-focus","field-bg-disabled","field-border-error","field-label","field-text","field-text-disabled","field-placeholder","field-placeholder-disabled","field-icon","field-icon-focus","field-icon-disabled","field-caret","field-message","avatar-1","avatar-2","avatar-3","avatar-4","avatar-5","avatar-6","avatar-7","avatar-8"];export const SPACE_NAMES=["none","xxs","xs","sm","md","lg","xl","2xl","3xl","4xl"];export const RADIUS_NAMES=["none","sm","md","lg","xl","pill"];export const TEXT_NAMES=["xs","sm","base","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl","8xl"];export const WEIGHT_NAMES=["normal","medium","semibold","bold"];export const LEADING_NAMES=["heading","body","display"];export const LETTER_SPACING_NAMES=["tight","normal","wide"];export const FONT_NAMES=["ui","display","mono"];export const SHADOW_NAMES=["card","elevated","popover","modal","drawer"];export const DURATION_NAMES=["instant","fast","default","slow","slower"];export const EASE_NAMES=["in-out","accelerate","decelerate","sharp"];export const SIZE_NAMES=["border"];export const COMPONENT_KINDS={field:{radius:"radius","padding-x":"space","padding-y":"space","min-height":"px",text:"text",icon:"px","label-text":"text","label-gap":"space","message-text":"text","message-gap":"space"},press:{opacity:"number"},disabled:{opacity:"number"},button:{"padding-x":"space","padding-y":"space","min-height":"px",text:"text",radius:"radius",icon:"px","badge-icon":"px"},input:{"multiline-min-height":"px"},"search-bar":{radius:"radius"},"empty-state":{icon:"px","illustration-size":"px","title-text":"text","description-text":"text","padding-y":"space","title-gap":"space","description-gap":"space"},"list-item":{"padding-y":"space","title-text":"text","subtitle-text":"text","min-height":"px"},badge:{text:"text","min-width":"px",height:"px","padding-x":"space","dot-size":"px","border-width":"px","anchor-offset":"px"},chip:{"padding-x":"space","padding-y":"space",text:"text","min-height":"px","close-size":"px","close-text":"text",gap:"space",icon:"px"},checkbox:{"box-size":"px","label-gap":"space"},radio:{outer:"px",inner:"px","label-gap":"space"},switch:{"track-width":"px","track-height":"px","thumb-size":"px",padding:"space"},"otp-input":{cell:"px",text:"text",radius:"radius",gap:"space"},"segmented-control":{height:"px",text:"text","padding-x":"space",icon:"px","track-padding":"space","underline-height":"px","pill-inset":"space"},tabs:{text:"text","padding-y":"space","padding-x":"space","scrollable-padding-x":"space",icon:"px","icon-gap":"space","track-padding":"space","underline-height":"px","pill-inset":"space","disabled-opacity":"number","badge-gap":"space"},slider:{"track-height":"px","thumb-diameter":"px"},"floating-action-button":{diameter:"px",icon:"px",text:"text","label-padding-x":"space","edge-offset":"space","bottom-offset":"space","secondary-gap":"space","stagger-ms":"ms"},dialog:{"icon-wrapper-size":"px","action-button-min-height":"px"},toast:{"icon-circle-size":"px","icon-glyph-text":"text","tint-bar-width":"px","action-min-height":"px"},banner:{"tint-bar-width":"px"},screen:{gutter:"space"}};export const lightTokens={mode:"light",colors:{bg:"#ffffff","bg-subtle":"#f8f8fb","bg-muted":"#f1f1f5",surface:"#ffffff","surface-inverse":"#0f0f1a","surface-dark":"#071437","surface-dark-border":"#2a3553","on-surface-dark":"#ffffff","on-surface-dark-muted":"#babdc7","surface-ink":"#0b0e16",text:"#252f4a","text-body":"#0f0f1a","text-muted":"#52525b","text-subtle":"#62626b","text-inverse":"#ffffff",link:"#4f46e5",border:"#e5e5ec","border-subtle":"#efeff3","field-bg":"#f9fbfc","field-border":"#ebedf3","field-border-focus":"#bed2f9","focus-ring":"#4f46e5",scrim:"#0f0f1a80","on-scrim":"#ffffff",thumb:"#ffffff",primary:"#4f46e5","primary-hover":"#4338ca","primary-soft":"#e0e7ff","primary-text":"#4f46e5","on-primary":"#ffffff","primary-wash":"#4f46e514","primary-wash-strong":"#4f46e533",neutral:"#f4f4f8","neutral-hover":"#e9e9f0","neutral-text":"#52525b","on-neutral":"#0f0f1a",success:"#18864f","success-soft":"#e8faee","success-text":"#147042","on-success":"#ffffff",warning:"#f59e0b","warning-soft":"#fff8e6","warning-text":"#8f5c06","on-warning":"#0f0f1a",danger:"#e12c32","danger-soft":"#ffeaef","danger-border":"#e5484d","danger-text":"#bc1b20","offline-fill":"#e82646","online-fill":"#04b440","on-danger":"#ffffff",info:"#1b6ef5","info-soft":"#e9f3ff","info-text":"#0958d9","on-info":"#ffffff","primary-pressed":"#3730a3","switch-thumb":"#ffffff","on-neutral-strong":"#ffffff","text-disabled":"#b4b4bb","surface-pressed":"#0f0f1a0f","surface-hover":"#0f0f1a0a","surface-selected":"#4f46e51a","surface-disabled":"#f1f1f5",skeleton:"#ebedf3","skeleton-highlight":"#f5f6fa","glass-fill":"#ffffff47","glass-border":"#ffffff73","on-glass":"#0f0f1a","glass-badge":"#ffffff","field-bg-focus":"#ffffff","field-bg-disabled":"#f5f6fa","field-border-error":"#fdbfce","field-label":"#242f4a","field-text":"#252f4a","field-text-disabled":"#7a8197","field-placeholder":"#626d8b","field-placeholder-disabled":"#7a8197","field-icon":"#7a849f","field-icon-focus":"#4b5675","field-icon-disabled":"#c4cada","field-caret":"#5b8dee","field-message":"#d81736","avatar-1":"#4f46e5","avatar-2":"#0a7979","avatar-3":"#a45a05","avatar-4":"#cd226e","avatar-5":"#2462eb","avatar-6":"#7c3aed","avatar-7":"#047c57","avatar-8":"#d42222"},space:{none:0,xxs:2,xs:4,sm:8,md:12,lg:16,xl:24,"2xl":32,"3xl":48,"4xl":64},radius:{none:0,sm:6,md:10,lg:14,xl:20,pill:9999},text:{xs:{size:11},sm:{size:13},base:{size:15},lg:{size:17},xl:{size:20},"2xl":{size:24},"3xl":{size:30},"4xl":{size:36},"5xl":{size:45},"6xl":{size:57},"7xl":{size:64},"8xl":{size:72}},weight:{normal:"400",medium:"500",semibold:"600",bold:"700"},leading:{heading:1.2,body:1.4,display:1.2},"letter-spacing":{tight:-.2,normal:0,wide:.4},font:{ui:{},display:{},mono:{}},shadow:{card:{shadowColor:"#000000",shadowOffset:{width:0,height:2},shadowOpacity:.059,shadowRadius:4,elevation:2},elevated:{shadowColor:"#000000",shadowOffset:{width:0,height:4},shadowOpacity:.078,shadowRadius:8,elevation:4},popover:{shadowColor:"#000000",shadowOffset:{width:0,height:8},shadowOpacity:.102,shadowRadius:16,elevation:8},modal:{shadowColor:"#000000",shadowOffset:{width:0,height:12},shadowOpacity:.141,shadowRadius:24,elevation:12},drawer:{shadowColor:"#000000",shadowOffset:{width:0,height:12},shadowOpacity:.141,shadowRadius:24,elevation:12}},motion:{duration:{instant:80,fast:160,default:240,slow:360,slower:500},ease:{"in-out":[.4,0,.2,1],accelerate:[.4,0,1,1],decelerate:[0,0,.2,1],sharp:[.4,0,.6,1]}},size:{border:1},components:{field:{sm:{radius:"md","padding-x":"sm","padding-y":"sm","min-height":38,text:"sm",icon:14,"label-text":"xs","label-gap":"xs","message-text":"xs","message-gap":"xxs"},md:{radius:"md","padding-x":"md","padding-y":"md","min-height":44,text:"base",icon:16,"label-text":"sm","label-gap":"xs","message-text":"sm","message-gap":"xxs"},lg:{radius:"md","padding-x":"lg","padding-y":"lg","min-height":52,text:"lg",icon:18,"label-text":"base","label-gap":"xs","message-text":"base","message-gap":"xxs"}},press:{opacity:.85},disabled:{opacity:.55},button:{xs:{"padding-x":"sm","padding-y":"xs","min-height":28,text:"xs",radius:"md",icon:14,"badge-icon":11},sm:{"padding-x":"md","padding-y":"xs","min-height":34,text:"sm",radius:"md",icon:16,"badge-icon":16},md:{"padding-x":"lg","padding-y":"sm","min-height":44,text:"base",radius:"md",icon:18,"badge-icon":18},lg:{"padding-x":"xl","padding-y":"md","min-height":50,text:"lg",radius:"lg",icon:20,"badge-icon":20},xl:{"padding-x":"2xl","padding-y":"md","min-height":58,text:"xl",radius:"lg",icon:22,"badge-icon":22}},input:{sm:{"multiline-min-height":72},md:{"multiline-min-height":92},lg:{"multiline-min-height":110}},"search-bar":{sm:{radius:"pill"},md:{radius:"pill"},lg:{radius:"pill"}},"empty-state":{sm:{icon:48,"illustration-size":96,"title-text":"lg","description-text":"sm","padding-y":"lg","title-gap":"md","description-gap":"xs"},md:{icon:64,"illustration-size":160,"title-text":"xl","description-text":"base","padding-y":"xl","title-gap":"md","description-gap":"xs"},lg:{icon:80,"illustration-size":240,"title-text":"2xl","description-text":"lg","padding-y":"2xl","title-gap":"md","description-gap":"xs"}},"list-item":{sm:{"padding-y":"sm","title-text":"sm","subtitle-text":"xs","min-height":44},md:{"padding-y":"md","title-text":"base","subtitle-text":"sm","min-height":56},lg:{"padding-y":"lg","title-text":"lg","subtitle-text":"base","min-height":72}},badge:{sm:{text:"xs","min-width":16,height:16,"padding-x":"xs","dot-size":8},md:{text:"sm","min-width":20,height:20,"padding-x":"sm","dot-size":10},"border-width":1.5,"anchor-offset":4},chip:{sm:{"padding-x":"sm","padding-y":"xs",text:"xs","min-height":26,"close-size":16,"close-text":"xs",gap:"xs",icon:14},md:{"padding-x":"md","padding-y":"xs",text:"sm","min-height":32,"close-size":18,"close-text":"sm",gap:"sm",icon:16}},checkbox:{sm:{"box-size":16},md:{"box-size":20},lg:{"box-size":24},"label-gap":"sm"},radio:{sm:{outer:16,inner:8},md:{outer:20,inner:10},lg:{outer:24,inner:12},"label-gap":"sm"},switch:{sm:{"track-width":42,"track-height":26,"thumb-size":22,padding:"xxs"},md:{"track-width":51,"track-height":31,"thumb-size":27,padding:"xxs"},lg:{"track-width":60,"track-height":36,"thumb-size":32,padding:"xxs"}},"otp-input":{sm:{cell:36,text:"base",radius:"sm",gap:"sm"},md:{cell:48,text:"xl",radius:"md",gap:"sm"},lg:{cell:56,text:"2xl",radius:"lg",gap:"md"}},"segmented-control":{sm:{height:32,text:"sm","padding-x":"sm",icon:14},md:{height:40,text:"base","padding-x":"md",icon:16},lg:{height:48,text:"lg","padding-x":"lg",icon:18},"track-padding":"xs","underline-height":2,"pill-inset":"xs"},tabs:{sm:{text:"sm","padding-y":"sm","padding-x":"xs","scrollable-padding-x":"md",icon:16},md:{text:"base","padding-y":"md","padding-x":"sm","scrollable-padding-x":"lg",icon:18},lg:{text:"lg","padding-y":"lg","padding-x":"md","scrollable-padding-x":"xl",icon:20},"icon-gap":"xs","track-padding":"xs","underline-height":2,"pill-inset":"xs","disabled-opacity":.45,"badge-gap":"xs"},slider:{sm:{"track-height":4,"thumb-diameter":24},md:{"track-height":6,"thumb-diameter":28},lg:{"track-height":8,"thumb-diameter":32}},"floating-action-button":{sm:{diameter:40,icon:18,text:"sm","label-padding-x":"md"},md:{diameter:56,icon:22,text:"base","label-padding-x":"lg"},lg:{diameter:72,icon:28,text:"lg","label-padding-x":"xl"},"edge-offset":"xl","bottom-offset":"xl","secondary-gap":"lg","stagger-ms":50},dialog:{"icon-wrapper-size":48,"action-button-min-height":44},toast:{"icon-circle-size":28,"icon-glyph-text":"lg","tint-bar-width":0,"action-min-height":30},banner:{"tint-bar-width":0},screen:{gutter:"lg"}}};export const darkTokens={mode:"dark",colors:{bg:"#0b0b12","bg-subtle":"#13131c","bg-muted":"#1c1c26",surface:"#1c1c26","surface-inverse":"#fafafa","surface-dark":"#071437","surface-dark-border":"#2a3553","on-surface-dark":"#ffffff","on-surface-dark-muted":"#babdc7","surface-ink":"#0b0e16",text:"#e2e2e2","text-body":"#fafafa","text-muted":"#b4b4bb","text-subtle":"#919199","text-inverse":"#0f0f1a",link:"#9292ee",border:"#27272f","border-subtle":"#1c1c26","field-bg":"#13131c","field-border":"#27272f","field-border-focus":"#3d5fb0","focus-ring":"#7c7ce8",scrim:"#000000a6","on-scrim":"#ffffff",thumb:"#3a3e49",primary:"#7c7ce8","primary-hover":"#9292ee","primary-soft":"#1f1f3d","primary-text":"#8989ea","on-primary":"#0f0f1a","primary-wash":"#7c7ce814","primary-wash-strong":"#7c7ce833",neutral:"#1f1f26","neutral-hover":"#2a2a33","neutral-text":"#b4b4bb","on-neutral":"#fafafa",success:"#30c780","success-soft":"#04b4402e","success-text":"#30c780","on-success":"#0f0f1a",warning:"#fbbf24","warning-soft":"#dfa0002e","warning-text":"#fbbf24","on-warning":"#0f0f1a",danger:"#f87171","danger-soft":"#e826462e","danger-border":"#f87171","danger-text":"#f87171","offline-fill":"#e82646","online-fill":"#04b440","on-danger":"#0f0f1a",info:"#60a5fa","info-soft":"#056ee92e","info-text":"#60a5fa","on-info":"#0f0f1a","primary-pressed":"#a8a8f2","switch-thumb":"#ffffff","on-neutral-strong":"#0f0f1a","text-disabled":"#52525b","surface-pressed":"#ffffff14","surface-hover":"#ffffff0d","surface-selected":"#7c7ce82e","surface-disabled":"#1c1c26",skeleton:"#1c1c26","skeleton-highlight":"#27272f","glass-fill":"#ffffff47","glass-border":"#ffffff73","on-glass":"#0f0f1a","glass-badge":"#ffffff","field-bg-focus":"#0b0b12","field-bg-disabled":"#1c1c26","field-border-error":"#8a2f42","field-label":"#e4e6ee","field-text":"#fafafa","field-text-disabled":"#71717a","field-placeholder":"#84848d","field-placeholder-disabled":"#71717a","field-icon":"#8b8b95","field-icon-focus":"#d4d4db","field-icon-disabled":"#52525b","field-caret":"#7c9ef0","field-message":"#f87171","avatar-1":"#8b8bee","avatar-2":"#2dd4bf","avatar-3":"#fcd34d","avatar-4":"#f472b6","avatar-5":"#60a5fa","avatar-6":"#a78bfa","avatar-7":"#34d399","avatar-8":"#f87171"},space:{none:0,xxs:2,xs:4,sm:8,md:12,lg:16,xl:24,"2xl":32,"3xl":48,"4xl":64},radius:{none:0,sm:6,md:10,lg:14,xl:20,pill:9999},text:{xs:{size:11},sm:{size:13},base:{size:15},lg:{size:17},xl:{size:20},"2xl":{size:24},"3xl":{size:30},"4xl":{size:36},"5xl":{size:45},"6xl":{size:57},"7xl":{size:64},"8xl":{size:72}},weight:{normal:"400",medium:"500",semibold:"600",bold:"700"},leading:{heading:1.2,body:1.4,display:1.2},"letter-spacing":{tight:-.2,normal:0,wide:.4},font:{ui:{},display:{},mono:{}},shadow:{card:{shadowColor:"#000000",shadowOffset:{width:0,height:2},shadowOpacity:.4,shadowRadius:4,elevation:2},elevated:{shadowColor:"#000000",shadowOffset:{width:0,height:4},shadowOpacity:.502,shadowRadius:8,elevation:4},popover:{shadowColor:"#000000",shadowOffset:{width:0,height:8},shadowOpacity:.549,shadowRadius:16,elevation:8},modal:{shadowColor:"#000000",shadowOffset:{width:0,height:12},shadowOpacity:.6,shadowRadius:24,elevation:12},drawer:{shadowColor:"#000000",shadowOffset:{width:0,height:12},shadowOpacity:.6,shadowRadius:24,elevation:12}},motion:{duration:{instant:80,fast:160,default:240,slow:360,slower:500},ease:{"in-out":[.4,0,.2,1],accelerate:[.4,0,1,1],decelerate:[0,0,.2,1],sharp:[.4,0,.6,1]}},size:{border:1},components:{field:{sm:{radius:"md","padding-x":"sm","padding-y":"sm","min-height":38,text:"sm",icon:14,"label-text":"xs","label-gap":"xs","message-text":"xs","message-gap":"xxs"},md:{radius:"md","padding-x":"md","padding-y":"md","min-height":44,text:"base",icon:16,"label-text":"sm","label-gap":"xs","message-text":"sm","message-gap":"xxs"},lg:{radius:"md","padding-x":"lg","padding-y":"lg","min-height":52,text:"lg",icon:18,"label-text":"base","label-gap":"xs","message-text":"base","message-gap":"xxs"}},press:{opacity:.85},disabled:{opacity:.55},button:{xs:{"padding-x":"sm","padding-y":"xs","min-height":28,text:"xs",radius:"md",icon:14,"badge-icon":11},sm:{"padding-x":"md","padding-y":"xs","min-height":34,text:"sm",radius:"md",icon:16,"badge-icon":16},md:{"padding-x":"lg","padding-y":"sm","min-height":44,text:"base",radius:"md",icon:18,"badge-icon":18},lg:{"padding-x":"xl","padding-y":"md","min-height":50,text:"lg",radius:"lg",icon:20,"badge-icon":20},xl:{"padding-x":"2xl","padding-y":"md","min-height":58,text:"xl",radius:"lg",icon:22,"badge-icon":22}},input:{sm:{"multiline-min-height":72},md:{"multiline-min-height":92},lg:{"multiline-min-height":110}},"search-bar":{sm:{radius:"pill"},md:{radius:"pill"},lg:{radius:"pill"}},"empty-state":{sm:{icon:48,"illustration-size":96,"title-text":"lg","description-text":"sm","padding-y":"lg","title-gap":"md","description-gap":"xs"},md:{icon:64,"illustration-size":160,"title-text":"xl","description-text":"base","padding-y":"xl","title-gap":"md","description-gap":"xs"},lg:{icon:80,"illustration-size":240,"title-text":"2xl","description-text":"lg","padding-y":"2xl","title-gap":"md","description-gap":"xs"}},"list-item":{sm:{"padding-y":"sm","title-text":"sm","subtitle-text":"xs","min-height":44},md:{"padding-y":"md","title-text":"base","subtitle-text":"sm","min-height":56},lg:{"padding-y":"lg","title-text":"lg","subtitle-text":"base","min-height":72}},badge:{sm:{text:"xs","min-width":16,height:16,"padding-x":"xs","dot-size":8},md:{text:"sm","min-width":20,height:20,"padding-x":"sm","dot-size":10},"border-width":1.5,"anchor-offset":4},chip:{sm:{"padding-x":"sm","padding-y":"xs",text:"xs","min-height":26,"close-size":16,"close-text":"xs",gap:"xs",icon:14},md:{"padding-x":"md","padding-y":"xs",text:"sm","min-height":32,"close-size":18,"close-text":"sm",gap:"sm",icon:16}},checkbox:{sm:{"box-size":16},md:{"box-size":20},lg:{"box-size":24},"label-gap":"sm"},radio:{sm:{outer:16,inner:8},md:{outer:20,inner:10},lg:{outer:24,inner:12},"label-gap":"sm"},switch:{sm:{"track-width":42,"track-height":26,"thumb-size":22,padding:"xxs"},md:{"track-width":51,"track-height":31,"thumb-size":27,padding:"xxs"},lg:{"track-width":60,"track-height":36,"thumb-size":32,padding:"xxs"}},"otp-input":{sm:{cell:36,text:"base",radius:"sm",gap:"sm"},md:{cell:48,text:"xl",radius:"md",gap:"sm"},lg:{cell:56,text:"2xl",radius:"lg",gap:"md"}},"segmented-control":{sm:{height:32,text:"sm","padding-x":"sm",icon:14},md:{height:40,text:"base","padding-x":"md",icon:16},lg:{height:48,text:"lg","padding-x":"lg",icon:18},"track-padding":"xs","underline-height":2,"pill-inset":"xs"},tabs:{sm:{text:"sm","padding-y":"sm","padding-x":"xs","scrollable-padding-x":"md",icon:16},md:{text:"base","padding-y":"md","padding-x":"sm","scrollable-padding-x":"lg",icon:18},lg:{text:"lg","padding-y":"lg","padding-x":"md","scrollable-padding-x":"xl",icon:20},"icon-gap":"xs","track-padding":"xs","underline-height":2,"pill-inset":"xs","disabled-opacity":.45,"badge-gap":"xs"},slider:{sm:{"track-height":4,"thumb-diameter":24},md:{"track-height":6,"thumb-diameter":28},lg:{"track-height":8,"thumb-diameter":32}},"floating-action-button":{sm:{diameter:40,icon:18,text:"sm","label-padding-x":"md"},md:{diameter:56,icon:22,text:"base","label-padding-x":"lg"},lg:{diameter:72,icon:28,text:"lg","label-padding-x":"xl"},"edge-offset":"xl","bottom-offset":"xl","secondary-gap":"lg","stagger-ms":50},dialog:{"icon-wrapper-size":48,"action-button-min-height":44},toast:{"icon-circle-size":28,"icon-glyph-text":"lg","tint-bar-width":0,"action-min-height":30},banner:{"tint-bar-width":0},screen:{gutter:"lg"}}};
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";export function isOneOf(e,r){return e.some(e=>e===r)}export function hasKey(e,r){return Object.hasOwn(e,r)}export function isRecord(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}export function keysOf(e){return Object.keys(e).filter(r=>hasKey(e,r))}
@@ -1 +1 @@
1
- "use strict";import*as Haptics from"expo-haptics";import{Platform}from"react-native";let hapticImpl=null;const EXPO_HANDLERS={selection:()=>Haptics.selectionAsync(),impactLight:()=>Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light),impactMedium:()=>Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Medium),impactHeavy:()=>Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Heavy),notificationSuccess:()=>Haptics.notificationAsync(Haptics.NotificationFeedbackType.Success),notificationWarning:()=>Haptics.notificationAsync(Haptics.NotificationFeedbackType.Warning),notificationError:()=>Haptics.notificationAsync(Haptics.NotificationFeedbackType.Error),longPress:()=>Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Medium),tick:()=>Haptics.selectionAsync(),denseTick:()=>Haptics.selectionAsync(),confirm:()=>Haptics.notificationAsync(Haptics.NotificationFeedbackType.Success),reject:()=>Haptics.notificationAsync(Haptics.NotificationFeedbackType.Error),gestureStart:()=>Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light)},ANDROID_HAPTICS={longPress:"Long_Press",tick:"Segment_Tick",denseTick:"Segment_Frequent_Tick",confirm:"Confirm",reject:"Reject",gestureStart:"Gesture_Start"},androidHandler=t=>{const c=ANDROID_HAPTICS[t];return"android"===Platform.OS&&c&&"function"==typeof Haptics.performAndroidHapticsAsync&&Haptics.AndroidHaptics?.[c]?()=>Haptics.performAndroidHapticsAsync(Haptics.AndroidHaptics[c]):null};let hapticsEnabled=!0;export const setHapticsEnabled=t=>{hapticsEnabled=t};export const isHapticsEnabled=()=>hapticsEnabled;export const triggerHaptic=(t="selection")=>{if(!hapticsEnabled)return;if(hapticImpl)try{return void hapticImpl(t)}catch{}const c=androidHandler(t)??EXPO_HANDLERS[t];try{c().catch(()=>{})}catch{}};export const setHapticImplementation=t=>{hapticImpl=t};export const resolveHaptic=(t,c)=>!1===t?null:t??c;
1
+ "use strict";import{Logger}from"@webority/mobile-core";import*as Haptics from"expo-haptics";import{Platform}from"react-native";let hapticImpl=null;const EXPO_HANDLERS={selection:()=>Haptics.selectionAsync(),impactLight:()=>Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light),impactMedium:()=>Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Medium),impactHeavy:()=>Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Heavy),notificationSuccess:()=>Haptics.notificationAsync(Haptics.NotificationFeedbackType.Success),notificationWarning:()=>Haptics.notificationAsync(Haptics.NotificationFeedbackType.Warning),notificationError:()=>Haptics.notificationAsync(Haptics.NotificationFeedbackType.Error),longPress:()=>Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Medium),tick:()=>Haptics.selectionAsync(),denseTick:()=>Haptics.selectionAsync(),confirm:()=>Haptics.notificationAsync(Haptics.NotificationFeedbackType.Success),reject:()=>Haptics.notificationAsync(Haptics.NotificationFeedbackType.Error),gestureStart:()=>Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light)},ANDROID_HAPTICS={longPress:"Long_Press",tick:"Segment_Tick",denseTick:"Segment_Frequent_Tick",confirm:"Confirm",reject:"Reject",gestureStart:"Gesture_Start"},androidHandler=t=>{const c=ANDROID_HAPTICS[t];return"android"===Platform.OS&&c&&"function"==typeof Haptics.performAndroidHapticsAsync&&Haptics.AndroidHaptics?.[c]?()=>Haptics.performAndroidHapticsAsync(Haptics.AndroidHaptics[c]):null};let hapticsEnabled=!0;export const setHapticsEnabled=t=>{hapticsEnabled=t};export const isHapticsEnabled=()=>hapticsEnabled;export const triggerHaptic=(t="selection")=>{if(!hapticsEnabled)return;if(hapticImpl)try{return void hapticImpl(t)}catch(t){Logger.recordError(t,{op:"triggerHaptic"})}const c=androidHandler(t)??EXPO_HANDLERS[t];try{c().catch(t=>{Logger.recordError(t,{op:"triggerHaptic"})})}catch(t){Logger.recordError(t,{op:"triggerHaptic"})}};export const setHapticImplementation=t=>{hapticImpl=t};export const resolveHaptic=(t,c)=>!1===t?null:t??c;
@@ -13,43 +13,43 @@ export declare const PHONE_CHROME_INSETS: {
13
13
  };
14
14
  export interface StatusBarProps {
15
15
  os: PhoneChromeOs;
16
- colorMode?: ColorMode;
16
+ colorMode?: ColorMode | undefined;
17
17
  /** The clock as shown, such as 9:41. */
18
- time?: string;
18
+ time?: string | undefined;
19
19
  /** Signal strength in bars, 0 to 4. */
20
- signal?: number;
20
+ signal?: number | undefined;
21
21
  /** Battery level in percent, 0 to 100. */
22
- battery?: number;
22
+ battery?: number | undefined;
23
23
  }
24
24
  export declare const StatusBar: ({ os, colorMode, time, signal, battery }: StatusBarProps) => import("react").FunctionComponentElement<Omit<import("react-native").ViewProps, "ref"> & {
25
25
  ref?: React.Ref<import("react-native").ViewInstance> | undefined;
26
26
  }>;
27
27
  export interface HomeIndicatorProps {
28
28
  os: PhoneChromeOs;
29
- colorMode?: ColorMode;
29
+ colorMode?: ColorMode | undefined;
30
30
  }
31
31
  export declare const HomeIndicator: ({ os, colorMode }: HomeIndicatorProps) => import("react").FunctionComponentElement<Omit<import("react-native").ViewProps, "ref"> & {
32
32
  ref?: React.Ref<import("react-native").ViewInstance> | undefined;
33
33
  }>;
34
34
  export interface NavigationBarProps {
35
35
  os: PhoneChromeOs;
36
- colorMode?: ColorMode;
36
+ colorMode?: ColorMode | undefined;
37
37
  }
38
38
  export declare const NavigationBar: ({ os, colorMode }: NavigationBarProps) => import("react").FunctionComponentElement<Omit<import("react-native").ViewProps, "ref"> & {
39
39
  ref?: React.Ref<import("react-native").ViewInstance> | undefined;
40
40
  }> | null;
41
41
  export interface SafeAreaProps {
42
42
  os: PhoneChromeOs;
43
- children?: ReactNode;
43
+ children?: ReactNode | undefined;
44
44
  }
45
45
  export declare const SafeArea: ({ os, children }: SafeAreaProps) => import("react").FunctionComponentElement<Omit<import("react-native").ViewProps, "ref"> & {
46
46
  ref?: React.Ref<import("react-native").ViewInstance> | undefined;
47
47
  }>;
48
48
  export type KeyboardPreviewOs = "ios" | "android";
49
49
  export interface KeyboardFrameProps {
50
- colorMode?: ColorMode;
51
- previewOs?: KeyboardPreviewOs;
52
- children?: ReactNode;
50
+ colorMode?: ColorMode | undefined;
51
+ previewOs?: KeyboardPreviewOs | undefined;
52
+ children?: ReactNode | undefined;
53
53
  }
54
54
  export declare const KeyboardFrame: ({ colorMode, previewOs, children }: KeyboardFrameProps) => import("react").FunctionComponentElement<Omit<import("react-native").ViewProps, "ref"> & {
55
55
  ref?: React.Ref<import("react-native").ViewInstance> | undefined;
@@ -57,9 +57,9 @@ export declare const KeyboardFrame: ({ colorMode, previewOs, children }: Keyboar
57
57
  export interface PhoneChromeManifestProp {
58
58
  name: string;
59
59
  type: "enum" | "string" | "number";
60
- enum?: string[];
60
+ enum?: string[] | undefined;
61
61
  required: boolean;
62
- description?: string;
62
+ description?: string | undefined;
63
63
  }
64
64
  export interface PhoneChromeManifestComponent {
65
65
  name: string;
@@ -10,7 +10,7 @@ export type KitPropKey<P> = {
10
10
  type Literal<T> = [NonNullable<T>] extends [string] ? string extends NonNullable<T> ? never : NonNullable<T> : [NonNullable<T>] extends [number] ? number extends NonNullable<T> ? never : NonNullable<T> : never;
11
11
  type IsIconName<T> = [NonNullable<T>] extends [AppIconName] ? ([AppIconName] extends [NonNullable<T>] ? true : false) : false;
12
12
  type PropFor<T, Optional extends boolean> = MetaProp & (Optional extends true ? {
13
- required?: false;
13
+ required?: false | undefined;
14
14
  } : {
15
15
  required: true;
16
16
  }) & (IsIconName<T> extends true ? {
@@ -30,20 +30,18 @@ type ObjectKey<P> = {
30
30
  }[KitPropKey<P>];
31
31
  export interface PhoneMeta<P, O extends KitPropKey<P>, F extends KitPropKey<P> = never> extends Omit<ComponentMeta, "props" | "examples" | "omit" | "component" | "fixedProps" | "actions" | "takesAction" | "itemsTakeAction"> {
32
32
  /** The export this description draws, when it is not `name`: one export described once per mode. */
33
- component?: string;
33
+ component?: string | undefined;
34
34
  /** Props the kit sets on every placement; they are neither shown nor set by an example. */
35
35
  fixedProps?: {
36
36
  readonly [K in F]: ExampleValue<P[K]>;
37
- };
37
+ } | undefined;
38
38
  props: {
39
39
  [K in Exclude<KitPropKey<P>, O | F>]: PropFor<P[K], Partial<Pick<P, K>> extends Pick<P, K> ? true : false>;
40
40
  };
41
- /** The part's role in the manifest. */
42
- role?: "title" | "navigation";
43
41
  /** Object props that each carry one action; in play a tap on one runs the stored action. */
44
- takesAction?: readonly ObjectKey<P>[];
42
+ takesAction?: readonly ObjectKey<P>[] | undefined;
45
43
  /** Array props whose items each carry an action. */
46
- itemsTakeAction?: readonly ListKey<P>[];
44
+ itemsTakeAction?: readonly ListKey<P>[] | undefined;
47
45
  /** Kit props deliberately not shown, such as object or render props no kit type fits. */
48
46
  omit: readonly O[];
49
47
  examples: readonly (Omit<MetaExample, "id" | "props"> & {
@@ -5,40 +5,40 @@ export type AccordionVariant = "plain" | "card";
5
5
  export interface AccordionProps {
6
6
  title: string;
7
7
  children: React.ReactNode;
8
- id?: string;
9
- expanded?: boolean;
10
- defaultExpanded?: boolean;
11
- onChange?: (expanded: boolean) => void;
12
- icon?: React.ReactNode;
13
- disabled?: boolean;
14
- variant?: AccordionVariant;
15
- accessibilityLabel?: string;
8
+ id?: string | undefined;
9
+ expanded?: boolean | undefined;
10
+ defaultExpanded?: boolean | undefined;
11
+ onChange?: ((expanded: boolean) => void) | undefined;
12
+ icon?: React.ReactNode | undefined;
13
+ disabled?: boolean | undefined;
14
+ variant?: AccordionVariant | undefined;
15
+ accessibilityLabel?: string | undefined;
16
16
  /** The outer box. Applied last on that node, so it wins over containerStyle. */
17
- style?: StyleProp<ViewStyle>;
18
- headerStyle?: StyleProp<ViewStyle>;
19
- contentStyle?: StyleProp<ViewStyle>;
17
+ style?: StyleProp<ViewStyle> | undefined;
18
+ headerStyle?: StyleProp<ViewStyle> | undefined;
19
+ contentStyle?: StyleProp<ViewStyle> | undefined;
20
20
  /** Style applied to the animated wrapper around the expandable content. */
21
- contentWrapperStyle?: StyleProp<ViewStyle>;
21
+ contentWrapperStyle?: StyleProp<ViewStyle> | undefined;
22
22
  /** Alias of style, applied before it on the same node. Use style. */
23
- containerStyle?: StyleProp<ViewStyle>;
24
- testID?: string;
23
+ containerStyle?: StyleProp<ViewStyle> | undefined;
24
+ testID?: string | undefined;
25
25
  /**
26
26
  * When true, renders the accordion as its authored skeleton placeholder
27
27
  * shape (header row, collapsed body). Footprint matches the closed live
28
28
  * accordion so the layout doesn't shift when data arrives.
29
29
  */
30
- loading?: boolean;
30
+ loading?: boolean | undefined;
31
31
  /** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
32
- haptic?: HapticType | false;
32
+ haptic?: HapticType | false | undefined;
33
33
  }
34
34
  export interface AccordionGroupProps {
35
35
  children: React.ReactNode;
36
- allowMultiple?: boolean;
37
- defaultExpandedKeys?: string[];
38
- expandedKeys?: string[];
39
- onChange?: (keys: string[]) => void;
40
- style?: StyleProp<ViewStyle>;
41
- testID?: string;
36
+ allowMultiple?: boolean | undefined;
37
+ defaultExpandedKeys?: string[] | undefined;
38
+ expandedKeys?: string[] | undefined;
39
+ onChange?: ((keys: string[]) => void) | undefined;
40
+ style?: StyleProp<ViewStyle> | undefined;
41
+ testID?: string | undefined;
42
42
  }
43
43
  declare const AccordionGroup: React.FC<AccordionGroupProps>;
44
44
  declare const Accordion: React.FC<AccordionProps> & {
@@ -13,47 +13,47 @@ export interface AmountSliderLabels {
13
13
  }
14
14
  export declare const DEFAULT_AMOUNT_SLIDER_LABELS: Readonly<AmountSliderLabels>;
15
15
  export interface AmountSliderProps {
16
- value?: number;
17
- defaultValue?: number;
18
- onChange?: (value: number) => void;
19
- min?: number;
20
- max?: number;
21
- step?: number;
22
- disabled?: boolean;
23
- tone?: SliderTone;
24
- size?: SliderSize;
16
+ value?: number | undefined;
17
+ defaultValue?: number | undefined;
18
+ onChange?: ((value: number) => void) | undefined;
19
+ min?: number | undefined;
20
+ max?: number | undefined;
21
+ step?: number | undefined;
22
+ disabled?: boolean | undefined;
23
+ tone?: SliderTone | undefined;
24
+ size?: SliderSize | undefined;
25
25
  /** The slider's look. Default `'inset'`, the design this component comes from. */
26
- variant?: SliderVariant;
26
+ variant?: SliderVariant | undefined;
27
27
  /**
28
28
  * Whether the large amount reads in Thousand, Lakh and Crore or in Thousand,
29
29
  * Million and Billion. Default: the grouping of the configured locale.
30
30
  */
31
- units?: ScaleUnits;
31
+ units?: ScaleUnits | undefined;
32
32
  /** ISO 4217 code of the amount; the symbol drawn before it comes from this. */
33
33
  currency: string;
34
34
  /** Unit words and the input box's label. Omitted keys keep the English defaults. */
35
- labels?: Partial<AmountSliderLabels>;
35
+ labels?: Partial<AmountSliderLabels> | undefined;
36
36
  /**
37
37
  * Text of the input box when it is not being edited. Default: the currency
38
38
  * with no decimals.
39
39
  */
40
- formatInput?: (value: number) => string;
40
+ formatInput?: ((value: number) => string) | undefined;
41
41
  /**
42
42
  * Duration in ms of one digit roll. Default `theme.motion.duration.default`,
43
43
  * which the ThemeProvider collapses to 0 when the OS asks for reduced
44
44
  * motion.
45
45
  */
46
- animationDuration?: number;
47
- haptic?: HapticType | false;
46
+ animationDuration?: number | undefined;
47
+ haptic?: HapticType | false | undefined;
48
48
  /** Read out for the slider. The input box reads `labels.inputLabel`. */
49
- accessibilityLabel?: string;
50
- style?: StyleProp<ViewStyle>;
51
- headerStyle?: StyleProp<ViewStyle>;
52
- valueStyle?: StyleProp<TextStyle>;
53
- unitStyle?: StyleProp<TextStyle>;
54
- inputStyle?: StyleProp<ViewStyle>;
55
- sliderStyle?: StyleProp<ViewStyle>;
56
- testID?: string;
49
+ accessibilityLabel?: string | undefined;
50
+ style?: StyleProp<ViewStyle> | undefined;
51
+ headerStyle?: StyleProp<ViewStyle> | undefined;
52
+ valueStyle?: StyleProp<TextStyle> | undefined;
53
+ unitStyle?: StyleProp<TextStyle> | undefined;
54
+ inputStyle?: StyleProp<ViewStyle> | undefined;
55
+ sliderStyle?: StyleProp<ViewStyle> | undefined;
56
+ testID?: string | undefined;
57
57
  }
58
58
  interface Scaled {
59
59
  amount: number;
@@ -7,13 +7,13 @@ export interface AnimatePresenceProps {
7
7
  * animation plays before the content unmounts; when it returns the enter
8
8
  * animation plays. Drive it like `{visible ? <Panel /> : null}`.
9
9
  */
10
- children?: React.ReactNode;
10
+ children?: React.ReactNode | undefined;
11
11
  /** Enter/exit preset. Default `'fade'`. */
12
- preset?: PresencePreset;
12
+ preset?: PresencePreset | undefined;
13
13
  /** Animation duration (ms). Defaults to `theme.motion.duration.default`. */
14
- duration?: number;
15
- style?: StyleProp<ViewStyle>;
16
- testID?: string;
14
+ duration?: number | undefined;
15
+ style?: StyleProp<ViewStyle> | undefined;
16
+ testID?: string | undefined;
17
17
  }
18
18
  /**
19
19
  * Animates a single child in on mount and out on unmount. Thin, theme-aware