@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
@@ -2,7 +2,7 @@
2
2
  "kind": "WeborityPhone",
3
3
  "library": {
4
4
  "name": "@webority/mobile-ui",
5
- "version": "0.149.0"
5
+ "version": "0.152.0"
6
6
  },
7
7
  "rendererProtocolVersion": 13,
8
8
  "platform": "Phone",
@@ -995,35 +995,9 @@
995
995
  "props": [
996
996
  {
997
997
  "name": "empty",
998
- "type": "boolean",
999
- "required": false,
1000
- "description": "The fetch succeeded with nothing to show.",
1001
- "default": false
1002
- },
1003
- {
1004
- "name": "emptyDescription",
1005
- "type": "string",
1006
- "required": false,
1007
- "description": "The text under the empty title."
1008
- },
1009
- {
1010
- "name": "emptyIcon",
1011
- "type": "icon",
1012
- "required": false,
1013
- "description": "The icon of the empty state."
1014
- },
1015
- {
1016
- "name": "emptyTitle",
1017
- "type": "string",
1018
- "required": false,
1019
- "description": "The title of the empty state.",
1020
- "default": "Nothing here yet"
1021
- },
1022
- {
1023
- "name": "error",
1024
- "type": "any",
998
+ "type": "object",
1025
999
  "required": false,
1026
- "description": "An error to show in place of the content; a string is the description, and any other value is read for its message."
1000
+ "description": "The EmptyState of the empty state. Left out, it is titled with labels.emptyTitle."
1027
1001
  },
1028
1002
  {
1029
1003
  "name": "errorTitle",
@@ -1046,14 +1020,7 @@
1046
1020
  "name": "labels",
1047
1021
  "type": "object",
1048
1022
  "required": false,
1049
- "description": "Override the built-in copy: emptyTitle, errorTitle, offlineTitle, offlineHint, retry."
1050
- },
1051
- {
1052
- "name": "loading",
1053
- "type": "boolean",
1054
- "required": false,
1055
- "description": "Shows the placeholder instead of the content.",
1056
- "default": false
1023
+ "description": "Override the built-in copy: emptyTitle, errorTitle, offlineTitle, retry."
1057
1024
  },
1058
1025
  {
1059
1026
  "name": "offlineTitle",
@@ -1067,6 +1034,12 @@
1067
1034
  "type": "node",
1068
1035
  "required": false,
1069
1036
  "description": "A placeholder shaped like the content; it falls back to a centred spinner."
1037
+ },
1038
+ {
1039
+ "name": "state",
1040
+ "type": "any",
1041
+ "required": true,
1042
+ "description": "The request's data state: loading, error (its error and retry), empty (its refresh) or data (its data and refresh)."
1070
1043
  }
1071
1044
  ],
1072
1045
  "itemsTakeAction": [],
@@ -1101,7 +1074,7 @@
1101
1074
  ]
1102
1075
  },
1103
1076
  {
1104
- "note": "Pass a retry handler so a failure can be recovered.",
1077
+ "note": "Every error state has a retry: the query's retry runs from the error state's button.",
1105
1078
  "example": [
1106
1079
  {
1107
1080
  "component": "Button",
@@ -1114,13 +1087,19 @@
1114
1087
  ],
1115
1088
  "dont": [
1116
1089
  {
1117
- "note": "Do not show a raw error message from the server; pass a text written for the person.",
1090
+ "note": "Do not show a raw server message; the error state shows the message of the ApiError it is given, so map it to a curated one first.",
1118
1091
  "example": [
1119
1092
  {
1120
1093
  "component": "AsyncBlock",
1121
1094
  "props": {
1122
1095
  "errorTitle": "That didn't load",
1123
- "error": "Network unreachable",
1096
+ "state": {
1097
+ "status": "error",
1098
+ "error": {
1099
+ "code": "SERVER",
1100
+ "message": "Network unreachable"
1101
+ }
1102
+ },
1124
1103
  "labels": {
1125
1104
  "retry": "Try again"
1126
1105
  }
@@ -1142,7 +1121,7 @@
1142
1121
  ],
1143
1122
  "a11y": [
1144
1123
  "The error and empty states are plain text, so screen readers read their title and description.",
1145
- "Loading wins over error, error over empty, and empty over content."
1124
+ "The state decides what is drawn: loading, error, empty or data, one at a time. Idle, a skipped query, draws nothing."
1146
1125
  ]
1147
1126
  }
1148
1127
  },
@@ -1672,10 +1651,11 @@
1672
1651
  "offline",
1673
1652
  "online",
1674
1653
  "pending",
1654
+ "rejected",
1675
1655
  "verified"
1676
1656
  ],
1677
1657
  "required": false,
1678
- "description": "A presence dot, or a verified or pending ring; leave out to show nothing."
1658
+ "description": "A presence dot, or a verified, pending or rejected ring; leave out to show nothing."
1679
1659
  },
1680
1660
  {
1681
1661
  "name": "statusPosition",
@@ -1783,7 +1763,7 @@
1783
1763
  }
1784
1764
  ],
1785
1765
  "a11y": [
1786
- "The spoken label is the name followed by avatar, with verified or pending added for the ring states.",
1766
+ "The spoken label is the name followed by avatar, with verified, pending verification or rejected added for the ring states.",
1787
1767
  "A pressable avatar is announced as a button and keeps a touch area of at least 44 points."
1788
1768
  ]
1789
1769
  }
@@ -10371,6 +10351,107 @@
10371
10351
  "takesAction": [],
10372
10352
  "source": "@webority/mobile-ui"
10373
10353
  },
10354
+ {
10355
+ "name": "NonModalBottomSheet",
10356
+ "marker": null,
10357
+ "acceptsChildren": true,
10358
+ "props": [
10359
+ {
10360
+ "name": "accessibilityLabel",
10361
+ "type": "string",
10362
+ "required": false,
10363
+ "description": "Names the sheet for a screen reader."
10364
+ },
10365
+ {
10366
+ "name": "enablePanDownToClose",
10367
+ "type": "boolean",
10368
+ "required": false,
10369
+ "description": "Lets a downward drag on the handle past the threshold close the sheet.",
10370
+ "default": true
10371
+ },
10372
+ {
10373
+ "name": "footer",
10374
+ "type": "node",
10375
+ "required": false,
10376
+ "description": "A fixed region at the bottom of the sheet, such as a row of buttons."
10377
+ },
10378
+ {
10379
+ "name": "header",
10380
+ "type": "node",
10381
+ "required": false,
10382
+ "description": "A fixed region between the handle and the content. It does not scroll."
10383
+ },
10384
+ {
10385
+ "name": "labels",
10386
+ "type": "object",
10387
+ "fields": [
10388
+ {
10389
+ "name": "dragHandle",
10390
+ "type": "string",
10391
+ "required": false,
10392
+ "description": "Names the drag handle for a screen reader."
10393
+ }
10394
+ ],
10395
+ "required": false,
10396
+ "description": "Spoken labels for the sheet's own controls."
10397
+ },
10398
+ {
10399
+ "name": "open",
10400
+ "type": "boolean",
10401
+ "required": true,
10402
+ "description": "Whether the sheet is open. A drag close calls onClose; the parent sets this to false."
10403
+ },
10404
+ {
10405
+ "name": "scrollable",
10406
+ "type": "boolean",
10407
+ "required": false,
10408
+ "description": "Wraps the content in a vertical scroll view between the header and the footer.",
10409
+ "default": false
10410
+ },
10411
+ {
10412
+ "name": "snapIndex",
10413
+ "type": "number",
10414
+ "required": false,
10415
+ "description": "The snap point the sheet rests at, counted from 0 for the smallest."
10416
+ },
10417
+ {
10418
+ "name": "snapPoints",
10419
+ "type": "array",
10420
+ "required": true,
10421
+ "description": "The heights the sheet rests at: a height in dp, or a percentage such as 50%. Sorted ascending."
10422
+ },
10423
+ {
10424
+ "name": "title",
10425
+ "type": "string",
10426
+ "required": false,
10427
+ "description": "A heading drawn above the header, read as a heading by a screen reader."
10428
+ }
10429
+ ],
10430
+ "itemsTakeAction": [],
10431
+ "takesAction": [],
10432
+ "source": "@webority/mobile-ui",
10433
+ "usage": {
10434
+ "when": [
10435
+ "A map or live view must stay usable while a short list or detail is open beside it."
10436
+ ],
10437
+ "whenNot": [
10438
+ {
10439
+ "text": "The person must answer a question before going on.",
10440
+ "instead": "Dialog"
10441
+ },
10442
+ {
10443
+ "text": "The content is a full screen of its own.",
10444
+ "instead": "a new screen"
10445
+ }
10446
+ ],
10447
+ "do": [],
10448
+ "dont": [],
10449
+ "a11y": [
10450
+ "The drag handle is an adjustable: swipe up or down to change the height, and the screen behind stays reachable.",
10451
+ "The sheet has no scrim, so it does not block the screen behind it or Back."
10452
+ ]
10453
+ }
10454
+ },
10374
10455
  {
10375
10456
  "name": "NumberInput",
10376
10457
  "marker": null,
@@ -10986,7 +11067,7 @@
10986
11067
  "name": "options",
10987
11068
  "type": "array",
10988
11069
  "required": true,
10989
- "description": "The options to list, each with a label, a value and optionally a description, an icon and a disabled flag."
11070
+ "description": "The options to list, each with a label, a value and optionally a description, an icon and a disabled flag. A row may carry an `onPress` action: it runs on tap, the sheet closes and `onChange` does not fire for that row."
10990
11071
  },
10991
11072
  {
10992
11073
  "name": "searchSelectionColor",
@@ -20044,6 +20125,20 @@
20044
20125
  "required": false,
20045
20126
  "description": "Label for the minutes column.",
20046
20127
  "default": "Minutes"
20128
+ },
20129
+ {
20130
+ "name": "typeAction",
20131
+ "type": "string",
20132
+ "required": false,
20133
+ "description": "Name of the screen reader action that opens the typed entry.",
20134
+ "default": "Type a value"
20135
+ },
20136
+ {
20137
+ "name": "typeEditor",
20138
+ "type": "string",
20139
+ "required": false,
20140
+ "description": "Spoken when the typed entry opens.",
20141
+ "default": "Type a number"
20047
20142
  }
20048
20143
  ],
20049
20144
  "required": false,
@@ -20164,7 +20259,8 @@
20164
20259
  }
20165
20260
  ],
20166
20261
  "a11y": [
20167
- "The value is spoken in words, such as 2 hours; keep labels in the person's language."
20262
+ "The value is spoken in words, such as 2 hours; keep labels in the person's language.",
20263
+ "A screen reader offers a Type a value action on each wheel; it opens a number field and focus returns to the wheel when it closes."
20168
20264
  ]
20169
20265
  }
20170
20266
  },
@@ -20696,7 +20792,7 @@
20696
20792
  "tokenValues": {
20697
20793
  "color": {
20698
20794
  "avatar-1": {
20699
- "light": "#5b5bd6",
20795
+ "light": "#4f46e5",
20700
20796
  "dark": "#8b8bee"
20701
20797
  },
20702
20798
  "avatar-2": {
@@ -20828,7 +20924,7 @@
20828
20924
  "dark": "#71717a"
20829
20925
  },
20830
20926
  "focus-ring": {
20831
- "light": "#5b5bd6",
20927
+ "light": "#4f46e5",
20832
20928
  "dark": "#7c7ce8"
20833
20929
  },
20834
20930
  "glass-badge": {
@@ -20856,7 +20952,7 @@
20856
20952
  "dark": "#60a5fa"
20857
20953
  },
20858
20954
  "link": {
20859
- "light": "#5b5bd6",
20955
+ "light": "#4f46e5",
20860
20956
  "dark": "#9292ee"
20861
20957
  },
20862
20958
  "neutral": {
@@ -20924,31 +21020,31 @@
20924
21020
  "dark": "#04b440"
20925
21021
  },
20926
21022
  "primary": {
20927
- "light": "#5b5bd6",
21023
+ "light": "#4f46e5",
20928
21024
  "dark": "#7c7ce8"
20929
21025
  },
20930
21026
  "primary-hover": {
20931
- "light": "#4f4fbf",
21027
+ "light": "#4338ca",
20932
21028
  "dark": "#9292ee"
20933
21029
  },
20934
21030
  "primary-pressed": {
20935
- "light": "#4040a8",
21031
+ "light": "#3730a3",
20936
21032
  "dark": "#a8a8f2"
20937
21033
  },
20938
21034
  "primary-soft": {
20939
- "light": "#eeeefc",
21035
+ "light": "#e0e7ff",
20940
21036
  "dark": "#1f1f3d"
20941
21037
  },
20942
21038
  "primary-text": {
20943
- "light": "#4f4fd3",
21039
+ "light": "#4f46e5",
20944
21040
  "dark": "#8989ea"
20945
21041
  },
20946
21042
  "primary-wash": {
20947
- "light": "#5b5bd614",
21043
+ "light": "#4f46e514",
20948
21044
  "dark": "#7c7ce814"
20949
21045
  },
20950
21046
  "primary-wash-strong": {
20951
- "light": "#5b5bd633",
21047
+ "light": "#4f46e533",
20952
21048
  "dark": "#7c7ce833"
20953
21049
  },
20954
21050
  "scrim": {
@@ -21008,7 +21104,7 @@
21008
21104
  "dark": "#ffffff14"
21009
21105
  },
21010
21106
  "surface-selected": {
21011
- "light": "#5b5bd61a",
21107
+ "light": "#4f46e51a",
21012
21108
  "dark": "#7c7ce82e"
21013
21109
  },
21014
21110
  "switch-thumb": {
@@ -22889,6 +22985,11 @@
22889
22985
  "version": "0.139.0",
22890
22986
  "components": [],
22891
22987
  "values": {}
22988
+ },
22989
+ {
22990
+ "version": "0.152.0",
22991
+ "components": [],
22992
+ "values": {}
22892
22993
  }
22893
22994
  ]
22894
22995
  }
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "webority-phone",
3
- "version": "0.149.0",
3
+ "version": "0.152.0",
4
4
  "platform": "Phone",
5
5
  "kitModuleVersion": 2,
6
6
  "rendererProtocolVersion": 13,
7
7
  "library": {
8
8
  "name": "@webority/mobile-ui",
9
- "version": "0.149.0"
9
+ "version": "0.152.0"
10
10
  },
11
11
  "files": {
12
12
  "manifest.json": {
13
- "sha256": "6bf27a44120c1bddebbd5827560102c578abf7d52fd0005d223d556906d46dde",
14
- "bytes": 664381
13
+ "sha256": "076fae2f4c73ee4f6af79f7a0677a070b2bc32b67bf5ac5e5aec0462d32869ce",
14
+ "bytes": 668121
15
15
  },
16
16
  "kit.js": {
17
- "sha256": "8f5be6049c165557ee814ba4b4b456b7b8ea2cf52c079f77b94b9426193e55be",
18
- "bytes": 6144222
17
+ "sha256": "5018aa2ac6f3ecb94813b171d22524c8ddda0f9ba8d7c944ee4588be5df3565c",
18
+ "bytes": 5660745
19
19
  },
20
20
  "kit.css": {
21
21
  "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.AccordionGroup=exports.Accordion=void 0;var _react=require("react"),_reactNative=require("react-native"),_usePresenceMotion=require("../../hooks/usePresenceMotion.js"),_index=require("../../theme/index.js"),_assertValidValue=require("../../utils/assertValidValue.js"),_corners=require("../../utils/corners.js"),_hapticUtils=require("../../utils/hapticUtils.js"),_defaultIcons=require("../AppIcon/defaultIcons.js"),_index2=require("../Skeleton/index.js"),_index3=require("../Text/index.js"),_jsxRuntime=require("react/jsx-runtime");const AccordionGroupContext=(0,_react.createContext)(null),useAccordionGroup=()=>(0,_react.useContext)(AccordionGroupContext),AccordionGroup=({children:e,allowMultiple:t=!1,defaultExpandedKeys:i,expandedKeys:r,onChange:a,style:n,testID:s})=>{const o=void 0!==r,[c,l]=(0,_react.useState)(i??[]),d=o?r:c,u=(0,_react.useCallback)(e=>{o||l(e),a?.(e)},[o,a]),p=(0,_react.useCallback)(e=>{let i;i=d.includes(e)?d.filter(t=>t!==e):t?[...d,e]:[e],u(i)},[d,t,u]),_=(0,_react.useCallback)(e=>d.includes(e),[d]),x=(0,_react.useMemo)(()=>({isExpanded:_,toggle:p,allowMultiple:t}),[_,p,t]);return(0,_jsxRuntime.jsx)(AccordionGroupContext.Provider,{value:x,children:(0,_jsxRuntime.jsx)(_reactNative.View,{style:n,testID:s,children:e})})};exports.AccordionGroup=AccordionGroup,AccordionGroup.displayName="AccordionGroup";const Chevron=({rotate:e,color:t})=>{const i=(0,_index.useTheme)();return(0,_jsxRuntime.jsx)(_reactNative.Animated.View,{style:[chevronStyles.icon,{transform:[{rotate:e}]}],accessible:!1,children:(i.settings.icons.chevronDown??_defaultIcons.defaultIcons.chevronDown)({size:16,color:t})})},chevronStyles=_reactNative.StyleSheet.create({icon:{width:16,height:16,alignItems:"center",justifyContent:"center"}}),Accordion=e=>{const{title:t,children:i,id:r,expanded:a,defaultExpanded:n=!1,onChange:s,icon:o,disabled:c=!1,variant:l="plain",accessibilityLabel:d,style:u,headerStyle:p,contentStyle:_,contentWrapperStyle:x,containerStyle:m,testID:h,loading:v=!1,haptic:y}=e;(0,_assertValidValue.assertValidValue)("Accordion","variant",e.variant,["plain","card"]);const g=(0,_index.useTheme)(),j=(0,_usePresenceMotion.usePresenceMotion)(),A=j.duration("default"),b=(0,_react.useMemo)(()=>buildStyles(g),[g]),f=useAccordionGroup(),R=void 0!==a,[V,N]=(0,_react.useState)(n),S=f&&r?f.isExpanded(r):null,w=null!==S?S:R?!!a:V,[C,k]=(0,_react.useState)(null),I=(0,_react.useRef)((0,_index.createAnimatedValue)(w?1:0)).current,q=(0,_react.useRef)((0,_index.createAnimatedValue)(w?1:0)).current,D=(0,_react.useRef)((0,_index.createAnimatedValue)(w?1:0)).current,G=(0,_react.useRef)(w);(0,_react.useEffect)(()=>{if(G.current===w)return;G.current=w;const e=w?1:0,t=_reactNative.Easing.bezier(...g.motion.ease["in-out"]),i=_reactNative.Animated.timing(I,{toValue:e,duration:g.motion.duration.default,easing:t,useNativeDriver:!1}),r=_reactNative.Animated.timing(q,{toValue:e,duration:A,easing:t,useNativeDriver:!1}),a=_reactNative.Animated.timing(D,{toValue:e,duration:g.motion.duration.default,easing:t,useNativeDriver:!1}),n=j.reduced&&!w?_reactNative.Animated.sequence([r,_reactNative.Animated.parallel([i,a])]):_reactNative.Animated.parallel([i,r,a]);return n.start(),()=>n.stop()},[w,I,q,D,A,j.reduced,g.motion]);const L=(0,_react.useCallback)(e=>{const t=e.nativeEvent.layout.height;t>0&&t!==C&&k(t)},[C]),M=(0,_react.useCallback)(()=>{if(c)return;const e=(0,_hapticUtils.resolveHaptic)(y,"selection");if(e&&(0,_hapticUtils.triggerHaptic)(e),f&&r)return f.toggle(r),void s?.(!w);R||N(!w),s?.(!w)},[c,f,r,w,R,s,y]),E=D.interpolate({inputRange:[0,1],outputRange:["0deg","180deg"]}),P=null===C?void 0:I.interpolate({inputRange:[0,1],outputRange:[0,C]}),z="card"===l?[b.card,g.shadow.card,{backgroundColor:g.colors.surface,borderRadius:g.radius.md,..._corners.smoothCorners}]:null;return v?(0,_jsxRuntime.jsx)(AccordionSkeleton,{...e}):(0,_jsxRuntime.jsxs)(_reactNative.View,{style:[z,m,u],testID:h,children:[(0,_jsxRuntime.jsxs)(_reactNative.Pressable,{onPress:M,disabled:c,accessibilityRole:"button",accessibilityLabel:d??t,accessibilityState:{expanded:w,disabled:c},"aria-expanded":w,"aria-disabled":c,style:({pressed:e})=>[b.header,p,{opacity:c?.55:e?.85:1}],children:[o?(0,_jsxRuntime.jsx)(_reactNative.View,{style:b.iconLeft,children:o}):null,(0,_jsxRuntime.jsx)(_index3.Text,{variant:"body",weight:"semibold",color:c?"disabled":"primary",numberOfLines:2,style:b.title,children:t}),(0,_jsxRuntime.jsx)(Chevron,{rotate:E,color:c?g.colors["text-disabled"]:g.colors["text-muted"]})]}),null===C?(0,_jsxRuntime.jsx)(_reactNative.View,{style:b.measurer,pointerEvents:"none",onLayout:L,children:(0,_jsxRuntime.jsx)(_reactNative.View,{style:[b.content,_],children:i})}):null,(0,_jsxRuntime.jsx)(_reactNative.Animated.View,{style:[b.contentWrapper,null===C?{height:0,opacity:0}:{height:P,opacity:q},x],children:(0,_jsxRuntime.jsx)(_reactNative.View,{onLayout:L,style:[b.content,_],children:i})})]})};exports.Accordion=Accordion,Accordion.displayName="Accordion";const AccordionSkeleton=({variant:e="plain",style:t})=>{const i=(0,_index.useTheme)(),r="card"===e;return(0,_jsxRuntime.jsx)(_reactNative.View,{style:[r?{paddingHorizontal:i.space.md,paddingVertical:i.space.sm,backgroundColor:i.colors.surface,borderRadius:i.radius.md,..._corners.smoothCorners}:{paddingVertical:i.space.sm},t],accessibilityRole:"progressbar",accessibilityState:{busy:!0},"aria-busy":!0,children:(0,_jsxRuntime.jsxs)(_reactNative.View,{style:{flexDirection:"row",alignItems:"center"},children:[(0,_jsxRuntime.jsx)(_index2.Skeleton,{shape:"text",width:"60%",height:18,style:{flex:1}}),(0,_jsxRuntime.jsx)(_index2.Skeleton,{width:16,height:16,radius:"sm",style:{marginLeft:i.space.sm}})]})})};AccordionSkeleton.displayName="AccordionSkeleton",Accordion.Skeleton=AccordionSkeleton,_reactNative.LayoutAnimation;const buildStyles=e=>_reactNative.StyleSheet.create({card:{paddingHorizontal:e.space.md,paddingVertical:e.space.xs,marginVertical:e.space.xs},header:{flexDirection:"row",alignItems:"center",paddingVertical:e.space.sm},iconLeft:{marginRight:e.space.sm},title:{flex:1},contentWrapper:{overflow:"hidden"},content:{paddingBottom:e.space.sm},measurer:{position:"absolute",opacity:0,left:0,right:0,top:0,zIndex:-1}});var _default=exports.default=Accordion;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.AccordionGroup=exports.Accordion=void 0;var _react=require("react"),_reactNative=require("react-native"),_usePresenceMotion=require("../../hooks/usePresenceMotion.js"),_index=require("../../theme/index.js"),_assertValidValue=require("../../utils/assertValidValue.js"),_corners=require("../../utils/corners.js"),_hapticUtils=require("../../utils/hapticUtils.js"),_defaultIcons=require("../AppIcon/defaultIcons.js"),_index2=require("../Skeleton/index.js"),_index3=require("../Text/index.js"),_jsxRuntime=require("react/jsx-runtime");const AccordionGroupContext=(0,_react.createContext)(null),useAccordionGroup=()=>(0,_react.useContext)(AccordionGroupContext),AccordionGroup=({children:e,allowMultiple:t=!1,defaultExpandedKeys:i,expandedKeys:r,onChange:a,style:n,testID:s})=>{const o=void 0!==r,[c,l]=(0,_react.useState)(i??[]),d=r??c,u=(0,_react.useCallback)(e=>{o||l(e),a?.(e)},[o,a]),p=(0,_react.useCallback)(e=>{let i;i=d.includes(e)?d.filter(t=>t!==e):t?[...d,e]:[e],u(i)},[d,t,u]),_=(0,_react.useCallback)(e=>d.includes(e),[d]),x=(0,_react.useMemo)(()=>({isExpanded:_,toggle:p,allowMultiple:t}),[_,p,t]);return(0,_jsxRuntime.jsx)(AccordionGroupContext.Provider,{value:x,children:(0,_jsxRuntime.jsx)(_reactNative.View,{style:n,testID:s,children:e})})};exports.AccordionGroup=AccordionGroup,AccordionGroup.displayName="AccordionGroup";const Chevron=({rotate:e,color:t})=>{const i=(0,_index.useTheme)();return(0,_jsxRuntime.jsx)(_reactNative.Animated.View,{style:[chevronStyles.icon,{transform:[{rotate:e}]}],accessible:!1,children:(i.settings.icons.chevronDown??_defaultIcons.defaultIcons.chevronDown)({size:16,color:t})})},chevronStyles=_reactNative.StyleSheet.create({icon:{width:16,height:16,alignItems:"center",justifyContent:"center"}}),Accordion=e=>{const{title:t,children:i,id:r,expanded:a,defaultExpanded:n=!1,onChange:s,icon:o,disabled:c=!1,variant:l="plain",accessibilityLabel:d,style:u,headerStyle:p,contentStyle:_,contentWrapperStyle:x,containerStyle:m,testID:h,loading:v=!1,haptic:y}=e;(0,_assertValidValue.assertValidValue)("Accordion","variant",e.variant,["plain","card"]);const g=(0,_index.useTheme)(),j=(0,_usePresenceMotion.usePresenceMotion)(),A=j.duration("default"),b=(0,_react.useMemo)(()=>buildStyles(g),[g]),f=useAccordionGroup(),R=void 0!==a,[V,N]=(0,_react.useState)(n),S=f&&r?f.isExpanded(r):null,w=null!==S?S:R?!!a:V,[C,k]=(0,_react.useState)(null),I=(0,_react.useRef)((0,_index.createAnimatedValue)(w?1:0)).current,q=(0,_react.useRef)((0,_index.createAnimatedValue)(w?1:0)).current,D=(0,_react.useRef)((0,_index.createAnimatedValue)(w?1:0)).current,G=(0,_react.useRef)(w);(0,_react.useEffect)(()=>{if(G.current===w)return;G.current=w;const e=w?1:0,t=_reactNative.Easing.bezier(...g.motion.ease["in-out"]),i=_reactNative.Animated.timing(I,{toValue:e,duration:g.motion.duration.default,easing:t,useNativeDriver:!1}),r=_reactNative.Animated.timing(q,{toValue:e,duration:A,easing:t,useNativeDriver:!1}),a=_reactNative.Animated.timing(D,{toValue:e,duration:g.motion.duration.default,easing:t,useNativeDriver:!1}),n=j.reduced&&!w?_reactNative.Animated.sequence([r,_reactNative.Animated.parallel([i,a])]):_reactNative.Animated.parallel([i,r,a]);return n.start(),()=>n.stop()},[w,I,q,D,A,j.reduced,g.motion]);const L=(0,_react.useCallback)(e=>{const t=e.nativeEvent.layout.height;t>0&&t!==C&&k(t)},[C]),M=(0,_react.useCallback)(()=>{if(c)return;const e=(0,_hapticUtils.resolveHaptic)(y,"selection");if(e&&(0,_hapticUtils.triggerHaptic)(e),f&&r)return f.toggle(r),void s?.(!w);R||N(!w),s?.(!w)},[c,f,r,w,R,s,y]),E=D.interpolate({inputRange:[0,1],outputRange:["0deg","180deg"]}),P=null===C?void 0:I.interpolate({inputRange:[0,1],outputRange:[0,C]}),z="card"===l?[b.card,g.shadow.card,{backgroundColor:g.colors.surface,borderRadius:g.radius.md,..._corners.smoothCorners}]:null;return v?(0,_jsxRuntime.jsx)(AccordionSkeleton,{...e}):(0,_jsxRuntime.jsxs)(_reactNative.View,{style:[z,m,u],testID:h,children:[(0,_jsxRuntime.jsxs)(_reactNative.Pressable,{onPress:M,disabled:c,accessibilityRole:"button",accessibilityLabel:d??t,accessibilityState:{expanded:w,disabled:c},"aria-expanded":w,"aria-disabled":c,style:({pressed:e})=>[b.header,p,{opacity:c?.55:e?.85:1}],children:[o?(0,_jsxRuntime.jsx)(_reactNative.View,{style:b.iconLeft,children:o}):null,(0,_jsxRuntime.jsx)(_index3.Text,{variant:"body",weight:"semibold",color:c?"disabled":"primary",numberOfLines:2,style:b.title,children:t}),(0,_jsxRuntime.jsx)(Chevron,{rotate:E,color:c?g.colors["text-disabled"]:g.colors["text-muted"]})]}),null===C?(0,_jsxRuntime.jsx)(_reactNative.View,{style:b.measurer,pointerEvents:"none",onLayout:L,children:(0,_jsxRuntime.jsx)(_reactNative.View,{style:[b.content,_],children:i})}):null,(0,_jsxRuntime.jsx)(_reactNative.Animated.View,{style:[b.contentWrapper,null===C?{height:0,opacity:0}:{height:P,opacity:q},x],children:(0,_jsxRuntime.jsx)(_reactNative.View,{onLayout:L,style:[b.content,_],children:i})})]})};exports.Accordion=Accordion,Accordion.displayName="Accordion";const AccordionSkeleton=({variant:e="plain",style:t})=>{const i=(0,_index.useTheme)(),r="card"===e;return(0,_jsxRuntime.jsx)(_reactNative.View,{style:[r?{paddingHorizontal:i.space.md,paddingVertical:i.space.sm,backgroundColor:i.colors.surface,borderRadius:i.radius.md,..._corners.smoothCorners}:{paddingVertical:i.space.sm},t],accessibilityRole:"progressbar",accessibilityState:{busy:!0},"aria-busy":!0,children:(0,_jsxRuntime.jsxs)(_reactNative.View,{style:{flexDirection:"row",alignItems:"center"},children:[(0,_jsxRuntime.jsx)(_index2.Skeleton,{shape:"text",width:"60%",height:18,style:{flex:1}}),(0,_jsxRuntime.jsx)(_index2.Skeleton,{width:16,height:16,radius:"sm",style:{marginLeft:i.space.sm}})]})})};AccordionSkeleton.displayName="AccordionSkeleton",Accordion.Skeleton=AccordionSkeleton,_reactNative.LayoutAnimation;const buildStyles=e=>_reactNative.StyleSheet.create({card:{paddingHorizontal:e.space.md,paddingVertical:e.space.xs,marginVertical:e.space.xs},header:{flexDirection:"row",alignItems:"center",paddingVertical:e.space.sm},iconLeft:{marginRight:e.space.sm},title:{flex:1},contentWrapper:{overflow:"hidden"},content:{paddingBottom:e.space.sm},measurer:{position:"absolute",opacity:0,left:0,right:0,top:0,zIndex:-1}});var _default=exports.default=Accordion;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.DEFAULT_APP_BAR_LABELS=exports.AppBar=void 0;var _react=require("react"),_reactNative=require("react-native"),_reactNativeSafeAreaContext=require("react-native-safe-area-context"),_usePressAnimation=require("../../hooks/usePressAnimation.js"),_index=require("../../theme/index.js"),_assertValidValue=require("../../utils/assertValidValue.js"),_corners=require("../../utils/corners.js"),_hapticUtils=require("../../utils/hapticUtils.js"),_AppIcon=require("../AppIcon/AppIcon.js"),_index2=require("../Menu/index.js"),_Text=require("../Text/Text.js"),_jsxRuntime=require("react/jsx-runtime");const ACTION_BUTTON_SIZE=44,DOT_OFFSET=10,DOT_SIZE=8,BADGE_OFFSET=4,DEFAULT_APP_BAR_LABELS=exports.DEFAULT_APP_BAR_LABELS=Object.freeze({back:"Back"}),variantSize=(e,t)=>{switch(t){case"compact":return{height:44,titleSize:e.text.lg.size,titleWeight:"semibold",subtitleLines:1};case"large":return{height:56,titleSize:e.text["2xl"].size,titleWeight:"bold",subtitleLines:2};default:return{height:56,titleSize:e.text.lg.size,titleWeight:"semibold",subtitleLines:1}}},ActionButton=(0,_react.forwardRef)(({action:e,side:t,badgeStyle:i,haptic:n,flush:a,onPress:s},r)=>{const l=(0,_index.useTheme)(),{style:o,pressIn:c,pressOut:d}=(0,_usePressAnimation.usePressAnimation)({enabled:!0}),u=(0,_react.useMemo)(()=>buildActionStyles(l),[l]),p=e.badge,h=void 0!==p&&0!==p,x=void 0!==e.label;return(0,_jsxRuntime.jsx)(_reactNative.Animated.View,{style:o,children:(0,_jsxRuntime.jsxs)(_reactNative.Pressable,{ref:r,onPress:t=>{const i=(0,_hapticUtils.resolveHaptic)(n,"selection");i&&(0,_hapticUtils.triggerHaptic)(i),"onPress"in e&&e.onPress(),s?.(t)},onPressIn:c,onPressOut:d,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel??e.label,testID:e.testID,android_ripple:{color:l.colors["surface-pressed"],borderless:!x},style:({pressed:e})=>[x?u.textButton:u.actionButton,a?null:"left"===t?u.actionLeft:u.actionRight,e&&!x?u.actionPressed:null,e&&x?u.textPressed:null],children:[x?(0,_jsxRuntime.jsx)(_Text.Text,{variant:"body",weight:"semibold",color:"link",numberOfLines:1,children:e.label}):(0,_jsxRuntime.jsx)(_reactNative.View,{style:u.iconWrap,children:e.icon}),h?(0,_jsxRuntime.jsx)(_reactNative.View,{style:[u.badge,i],pointerEvents:"none",children:(0,_jsxRuntime.jsx)(_Text.Text,{variant:"caption",weight:"semibold",numberOfLines:1,style:u.badgeText,children:String(p)})}):null,e.dot?(0,_jsxRuntime.jsx)(_reactNative.View,{testID:e.testID?`${e.testID}-dot`:"appbar-action-dot",style:u.dot,pointerEvents:"none"}):null]})})}),COLLAPSE_RANGE=60,AppBar=exports.AppBar=(0,_react.forwardRef)((e,t)=>{const{title:i,subtitle:n,titleAlignment:a="left",leftAction:s,rightActions:r,leading:l,trailing:o,onBack:c,gutter:d,titleVariant:u,titleOffset:p,height:h,divider:x,elevated:g=!1,variant:m="default",transparent:_=!1,scrollY:b,style:f,containerStyle:j,titleStyle:y,subtitleStyle:v,badgeStyle:A,haptic:R,labels:S,testID:w}=e;(0,_assertValidValue.assertValidValue)("AppBar","variant",e.variant,["default","large","compact"]),(0,_assertValidValue.assertValidValue)("AppBar","titleAlignment",e.titleAlignment,["left","center"]);const B=(0,_react.useMemo)(()=>({...DEFAULT_APP_BAR_LABELS,...S}),[S]),L=(0,_index.useTheme)(),N=(0,_reactNativeSafeAreaContext.useSafeAreaInsets)(),T=(0,_react.useMemo)(()=>variantSize(L,m),[L,m]),I=(0,_react.useMemo)(()=>buildStyles(L),[L]),V="large"===m,P=V&&void 0!==b,[C,z]=(0,_react.useState)(40),O=(0,_react.useCallback)(e=>z(e.nativeEvent.layout.height),[]),E=s??(c?{icon:(0,_jsxRuntime.jsx)(_AppIcon.AppIcon,{name:"arrow-left",size:24,color:L.colors["text-body"]}),onPress:c,accessibilityLabel:B.back}:void 0),D=o?void 0:r?.[r.length-1],opticalInset=e=>void 0===e?0:void 0!==e.label?L.space.sm:Math.max((44-(e.glyphSize??24))/2,0),W=void 0===d?null:{paddingLeft:Math.max(d-opticalInset(E),0),paddingRight:Math.max(d-opticalInset(D),0)},k=void 0!==p,F=Boolean(E)||Boolean(l),q=!k&&"left"===a&&Boolean(E),H=k||q||!F&&"left"===a,M="default"!==m||F?T.titleSize:L.text.xl.size,U=x??!1,$=_reactNative.StyleSheet.hairlineWidth,G=(0,_react.useMemo)(()=>{if(!b)return null;const e=b;return{rootHeight:e.interpolate({inputRange:[0,60],outputRange:[N.top+T.height+C,N.top+T.height],extrapolate:"clamp"}),titleRowOpacity:e.interpolate({inputRange:[0,30],outputRange:[1,0],extrapolate:"clamp"}),compactTitleOpacity:e.interpolate({inputRange:[30,60],outputRange:[0,1],extrapolate:"clamp"}),borderOpacity:e.interpolate({inputRange:[0,60],outputRange:[0,1],extrapolate:"clamp"})}},[b,N.top,T.height,C]),Z=i?u?(0,_jsxRuntime.jsx)(_Text.Text,{variant:u,align:"center"===a?"center":"left",accessibilityRole:"header",numberOfLines:1,style:[I.titleVariant,y],children:i}):(0,_jsxRuntime.jsx)(_reactNative.Animated.Text,{accessibilityRole:"header",style:[I.title,{fontSize:M,fontWeight:L.weight[T.titleWeight],textAlign:"center"===a?"center":"left"},n?I.stackedText:null,y],numberOfLines:1,children:i}):null,Y=P&&G&&i?(0,_jsxRuntime.jsx)(_reactNative.Animated.Text,{accessibilityElementsHidden:!0,importantForAccessibility:"no-hide-descendants",style:[I.title,{fontSize:L.text.lg.size,fontWeight:L.weight.semibold,textAlign:"center"===a?"center":"left",opacity:G.compactTitleOpacity}],numberOfLines:1,children:i}):null,J=n?(0,_jsxRuntime.jsx)(_reactNative.Animated.Text,{style:[I.subtitle,{textAlign:"center"===a?"center":"left"},v],numberOfLines:T.subtitleLines,children:n}):null,K=(0,_jsxRuntime.jsxs)(_reactNative.View,{style:[I.titleColumn,"center"===a?I.titleColumnCenter:null],children:[Z,J]}),Q=P?_reactNative.Animated.View:_reactNative.View,X=P&&G?{height:G.rootHeight,overflow:"hidden"}:V&&void 0===h?null:{height:(h??T.height)+N.top};return(0,_jsxRuntime.jsxs)(Q,{ref:t,testID:w,style:[I.root,{paddingTop:N.top,backgroundColor:_?"transparent":L.colors.surface},X,!P&&U?{borderBottomWidth:$,borderBottomColor:L.colors.border}:null,g&&!_?L.shadow.card:null,j,f],children:[P&&G&&U?(0,_jsxRuntime.jsx)(_reactNative.Animated.View,{pointerEvents:"none",style:[I.animatedBorder,{backgroundColor:L.colors.border,opacity:G.borderOpacity}]}):null,(0,_jsxRuntime.jsxs)(_reactNative.View,{testID:V&&w?`${w}-bar-row`:void 0,style:[I.row,V?{height:T.height}:{flex:1},W],children:[(0,_jsxRuntime.jsxs)(_reactNative.View,{testID:w?`${w}-leading-slot`:void 0,style:[I.sideSlot,H?I.sideSlotCompact:null],children:[E?(0,_jsxRuntime.jsx)(ActionButton,{action:E,side:"left",haptic:R,flush:k||q}):null,null!=l&&!1!==l?(0,_jsxRuntime.jsx)(_reactNative.View,{style:I.slotNode,children:l}):null]}),(0,_jsxRuntime.jsx)(_reactNative.View,{pointerEvents:"none",style:[I.center,"center"===a?I.centerAligned:I.centerLeft,k?{paddingLeft:F?p:L.space.none,paddingRight:L.space.none}:H?{paddingLeft:L.space.none}:null],children:V?Y:K}),(0,_jsxRuntime.jsxs)(_reactNative.View,{style:[I.sideSlot,I.sideSlotRight,k?I.sideSlotCompact:null],children:[r?.map((e,t)=>(0,_jsxRuntime.jsx)(_react.Fragment,{children:"menu"in e?(0,_jsxRuntime.jsx)(_index2.Menu,{items:e.menu,title:e.menuTitle,haptic:R,trigger:(0,_jsxRuntime.jsx)(ActionButton,{action:e,side:"right",badgeStyle:A,haptic:R,flush:k})}):(0,_jsxRuntime.jsx)(ActionButton,{action:e,side:"right",badgeStyle:A,haptic:R,flush:k})},`appbar-right-${t}`)),null!=o&&!1!==o?(0,_jsxRuntime.jsx)(_reactNative.View,{style:I.slotNode,children:o}):null]})]}),V?(0,_jsxRuntime.jsx)(_reactNative.Animated.View,{testID:w?`${w}-title-row`:void 0,onLayout:P?O:void 0,pointerEvents:"none",style:[{paddingHorizontal:d??L.space.md,paddingBottom:L.space.sm},P&&G?{opacity:G.titleRowOpacity}:null],children:K}):null]})});AppBar.displayName="AppBar";const buildStyles=e=>_reactNative.StyleSheet.create({root:{width:"100%"},row:{flexDirection:"row",alignItems:"center",paddingHorizontal:e.space.xs},sideSlot:{flexDirection:"row",alignItems:"center",minWidth:48},sideSlotRight:{justifyContent:"flex-end"},sideSlotCompact:{minWidth:0},slotNode:{flexDirection:"row",alignItems:"center"},center:{flex:1,minWidth:0,paddingHorizontal:e.space.xs},centerAligned:{alignItems:"center"},centerLeft:{alignItems:"flex-start"},titleColumn:{flexDirection:"column",maxWidth:"100%"},titleColumnCenter:{alignItems:"center"},title:{color:e.colors["text-body"]},titleVariant:{includeFontPadding:!1,textAlignVertical:"center"},stackedText:{includeFontPadding:!1},subtitle:{includeFontPadding:!1,color:e.colors["text-subtle"],fontSize:e.text.sm.size,fontWeight:e.weight.normal},animatedBorder:{position:"absolute",left:0,right:0,bottom:0,height:_reactNative.StyleSheet.hairlineWidth}}),buildActionStyles=e=>_reactNative.StyleSheet.create({actionButton:{width:44,height:44,borderRadius:e.radius.pill,..._corners.smoothCorners,alignItems:"center",justifyContent:"center"},actionLeft:{marginRight:e.space.xs},actionRight:{marginLeft:e.space.xs},actionPressed:{backgroundColor:e.colors["surface-pressed"]},textButton:{minWidth:44,minHeight:44,paddingHorizontal:e.space.sm,alignItems:"center",justifyContent:"center"},textPressed:{opacity:.6},dot:{position:"absolute",top:10,right:10,width:8,height:8,borderRadius:e.radius.pill,backgroundColor:e.colors.danger},iconWrap:{alignItems:"center",justifyContent:"center"},badge:{position:"absolute",top:4,right:4,minWidth:16,height:16,paddingHorizontal:e.space.xs,borderRadius:e.radius.pill,..._corners.smoothCorners,backgroundColor:e.colors.danger,alignItems:"center",justifyContent:"center"},badgeText:{color:e.colors["on-danger"],fontSize:e.text.xs.size,fontWeight:e.weight.semibold,lineHeight:13}});var _default=exports.default=AppBar;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.DEFAULT_APP_BAR_LABELS=exports.AppBar=void 0;var _react=require("react"),_reactNative=require("react-native"),_reactNativeSafeAreaContext=require("react-native-safe-area-context"),_usePressAnimation=require("../../hooks/usePressAnimation.js"),_index=require("../../theme/index.js"),_assertValidValue=require("../../utils/assertValidValue.js"),_corners=require("../../utils/corners.js"),_hapticUtils=require("../../utils/hapticUtils.js"),_AppIcon=require("../AppIcon/AppIcon.js"),_index2=require("../Menu/index.js"),_Text=require("../Text/Text.js"),_jsxRuntime=require("react/jsx-runtime");const ACTION_BUTTON_SIZE=44,DOT_OFFSET=10,DOT_SIZE=8,BADGE_OFFSET=4,DEFAULT_APP_BAR_LABELS=exports.DEFAULT_APP_BAR_LABELS=Object.freeze({back:"Back"}),variantSize=(e,t)=>{switch(t){case"compact":return{height:44,titleSize:e.text.lg.size,titleWeight:"semibold",subtitleLines:1};case"large":return{height:56,titleSize:e.text["2xl"].size,titleWeight:"bold",subtitleLines:2};default:return{height:56,titleSize:e.text.lg.size,titleWeight:"semibold",subtitleLines:1}}},ActionButton=(0,_react.forwardRef)(({action:e,side:t,badgeStyle:i,haptic:n,flush:a,onPress:s},r)=>{const l=(0,_index.useTheme)(),{style:o,pressIn:c,pressOut:d}=(0,_usePressAnimation.usePressAnimation)({enabled:!0}),u=(0,_react.useMemo)(()=>buildActionStyles(l),[l]),p=e.badge,h=void 0!==p&&0!==p,x=void 0!==e.label;return(0,_jsxRuntime.jsx)(_reactNative.Animated.View,{style:o,children:(0,_jsxRuntime.jsxs)(_reactNative.Pressable,{ref:r,onPress:t=>{const i=(0,_hapticUtils.resolveHaptic)(n,"selection");i&&(0,_hapticUtils.triggerHaptic)(i),"onPress"in e&&e.onPress(),s?.(t)},onPressIn:c,onPressOut:d,accessibilityRole:"button",accessibilityLabel:e.accessibilityLabel??e.label,testID:e.testID,android_ripple:{color:l.colors["surface-pressed"],borderless:!x},style:({pressed:e})=>[x?u.textButton:u.actionButton,a?null:"left"===t?u.actionLeft:u.actionRight,e&&!x?u.actionPressed:null,e&&x?u.textPressed:null],children:[x?(0,_jsxRuntime.jsx)(_Text.Text,{variant:"body",weight:"semibold",color:"link",numberOfLines:1,children:e.label}):(0,_jsxRuntime.jsx)(_reactNative.View,{style:u.iconWrap,children:e.icon}),h?(0,_jsxRuntime.jsx)(_reactNative.View,{style:[u.badge,i],pointerEvents:"none",children:(0,_jsxRuntime.jsx)(_Text.Text,{variant:"caption",weight:"semibold",numberOfLines:1,style:u.badgeText,children:String(p)})}):null,e.dot?(0,_jsxRuntime.jsx)(_reactNative.View,{testID:e.testID?`${e.testID}-dot`:"appbar-action-dot",style:u.dot,pointerEvents:"none"}):null]})})}),COLLAPSE_RANGE=60,AppBar=exports.AppBar=(0,_react.forwardRef)((e,t)=>{const{title:i,subtitle:n,titleAlignment:a="left",leftAction:s,rightActions:r,leading:l,trailing:o,onBack:c,gutter:d,titleVariant:u,titleOffset:p,height:h,divider:x,elevated:g=!1,variant:m="default",transparent:_=!1,scrollY:b,style:f,containerStyle:j,titleStyle:y,subtitleStyle:v,badgeStyle:A,haptic:R,labels:S,testID:w}=e;(0,_assertValidValue.assertValidValue)("AppBar","variant",e.variant,["default","large","compact"]),(0,_assertValidValue.assertValidValue)("AppBar","titleAlignment",e.titleAlignment,["left","center"]);const B=(0,_react.useMemo)(()=>({...DEFAULT_APP_BAR_LABELS,...S}),[S]),L=(0,_index.useTheme)(),N=(0,_reactNativeSafeAreaContext.useSafeAreaInsets)(),T=(0,_react.useMemo)(()=>variantSize(L,m),[L,m]),I=(0,_react.useMemo)(()=>buildStyles(L),[L]),V="large"===m,P=V&&void 0!==b,[C,z]=(0,_react.useState)(40),O=(0,_react.useCallback)(e=>z(e.nativeEvent.layout.height),[]),E=s??(c?{icon:(0,_jsxRuntime.jsx)(_AppIcon.AppIcon,{name:"arrow-left",size:24,color:L.colors["text-body"]}),onPress:c,accessibilityLabel:B.back}:void 0),D=o?void 0:r?.[r.length-1],opticalInset=e=>void 0===e?0:void 0!==e.label?L.space.sm:Math.max((44-(e.glyphSize??24))/2,0),W=void 0===d?null:{paddingLeft:Math.max(d-opticalInset(E),0),paddingRight:Math.max(d-opticalInset(D),0)},k=void 0!==p,F=Boolean(E)||Boolean(l),q=!k&&"left"===a&&Boolean(E),H=k||q||!F&&"left"===a,M="default"!==m||F?T.titleSize:L.text.xl.size,U=x??!1,$=_reactNative.StyleSheet.hairlineWidth,G=(0,_react.useMemo)(()=>{if(!b)return null;const e=b;return{rootHeight:e.interpolate({inputRange:[0,60],outputRange:[N.top+T.height+C,N.top+T.height],extrapolate:"clamp"}),titleRowOpacity:e.interpolate({inputRange:[0,30],outputRange:[1,0],extrapolate:"clamp"}),compactTitleOpacity:e.interpolate({inputRange:[30,60],outputRange:[0,1],extrapolate:"clamp"}),borderOpacity:e.interpolate({inputRange:[0,60],outputRange:[0,1],extrapolate:"clamp"})}},[b,N.top,T.height,C]),Z=i?u?(0,_jsxRuntime.jsx)(_Text.Text,{variant:u,align:"center"===a?"center":"left",accessibilityRole:"header",numberOfLines:1,style:[I.titleVariant,y],children:i}):(0,_jsxRuntime.jsx)(_reactNative.Animated.Text,{accessibilityRole:"header",style:[I.title,{fontSize:M,fontWeight:L.weight[T.titleWeight],textAlign:"center"===a?"center":"left"},n?I.stackedText:null,y],numberOfLines:1,children:i}):null,Y=P&&G&&i?(0,_jsxRuntime.jsx)(_reactNative.Animated.Text,{accessibilityElementsHidden:!0,importantForAccessibility:"no-hide-descendants",style:[I.title,{fontSize:L.text.lg.size,fontWeight:L.weight.semibold,textAlign:"center"===a?"center":"left",opacity:G.compactTitleOpacity}],numberOfLines:1,children:i}):null,J=n?(0,_jsxRuntime.jsx)(_reactNative.Animated.Text,{style:[I.subtitle,{textAlign:"center"===a?"center":"left"},v],numberOfLines:T.subtitleLines,children:n}):null,K=(0,_jsxRuntime.jsxs)(_reactNative.View,{style:[I.titleColumn,"center"===a?I.titleColumnCenter:null],children:[Z,J]}),Q=P?_reactNative.Animated.View:_reactNative.View,X=P&&G?{height:G.rootHeight,overflow:"hidden"}:V&&void 0===h?null:{height:(h??T.height)+N.top};return(0,_jsxRuntime.jsxs)(Q,{ref:t,testID:w,style:[I.root,{paddingTop:N.top,backgroundColor:_?"transparent":L.colors.surface},X,!P&&U?{borderBottomWidth:$,borderBottomColor:L.colors.border}:null,g&&!_?L.shadow.card:null,j,f],children:[P&&G&&U?(0,_jsxRuntime.jsx)(_reactNative.Animated.View,{pointerEvents:"none",style:[I.animatedBorder,{backgroundColor:L.colors.border,opacity:G.borderOpacity}]}):null,(0,_jsxRuntime.jsxs)(_reactNative.View,{testID:V&&w?`${w}-bar-row`:void 0,style:[I.row,V?{height:T.height}:{flex:1},W],children:[(0,_jsxRuntime.jsxs)(_reactNative.View,{testID:w?`${w}-leading-slot`:void 0,style:[I.sideSlot,H?I.sideSlotCompact:null],children:[E?(0,_jsxRuntime.jsx)(ActionButton,{action:E,side:"left",haptic:R,flush:k||q}):null,null!=l&&!1!==l?(0,_jsxRuntime.jsx)(_reactNative.View,{style:I.slotNode,children:l}):null]}),(0,_jsxRuntime.jsx)(_reactNative.View,{pointerEvents:"none",style:[I.center,"center"===a?I.centerAligned:I.centerLeft,k?{paddingLeft:F?p:L.space.none,paddingRight:L.space.none}:H?{paddingLeft:L.space.none}:null],children:V?Y:K}),(0,_jsxRuntime.jsxs)(_reactNative.View,{style:[I.sideSlot,I.sideSlotRight,k?I.sideSlotCompact:null],children:[r?.map((e,t)=>(0,_jsxRuntime.jsx)(_react.Fragment,{children:"menu"in e?(0,_jsxRuntime.jsx)(_index2.Menu,{items:e.menu,title:e.menuTitle,haptic:R,trigger:(0,_jsxRuntime.jsx)(ActionButton,{action:e,side:"right",badgeStyle:A,haptic:R,flush:k})}):(0,_jsxRuntime.jsx)(ActionButton,{action:e,side:"right",badgeStyle:A,haptic:R,flush:k})},`appbar-right-${t}`)),null!=o&&!1!==o?(0,_jsxRuntime.jsx)(_reactNative.View,{style:I.slotNode,children:o}):null]})]}),V?(0,_jsxRuntime.jsx)(_reactNative.Animated.View,{testID:w?`${w}-title-row`:void 0,onLayout:P?O:void 0,pointerEvents:"none",style:[{paddingHorizontal:d??L.space.md,paddingBottom:L.space.sm},P&&G?{opacity:G.titleRowOpacity}:null],children:K}):null]})});AppBar.displayName="AppBar";const buildStyles=e=>_reactNative.StyleSheet.create({root:{width:"100%"},row:{flexDirection:"row",alignItems:"center",paddingHorizontal:e.space.xs},sideSlot:{flexDirection:"row",alignItems:"center",minWidth:48},sideSlotRight:{justifyContent:"flex-end"},sideSlotCompact:{minWidth:0},slotNode:{flexDirection:"row",alignItems:"center"},center:{flex:1,minWidth:0,paddingHorizontal:e.space.xs},centerAligned:{alignItems:"center"},centerLeft:{alignItems:"flex-start"},titleColumn:{flexDirection:"column",maxWidth:"100%"},titleColumnCenter:{alignItems:"center"},title:{color:e.colors["text-body"]},titleVariant:{includeFontPadding:!1,textAlignVertical:"center"},stackedText:{includeFontPadding:!1},subtitle:{includeFontPadding:!1,color:e.colors["text-subtle"],fontSize:e.text.sm.size,fontWeight:e.weight.normal},animatedBorder:{position:"absolute",left:0,right:0,bottom:0,height:_reactNative.StyleSheet.hairlineWidth}}),buildActionStyles=e=>_reactNative.StyleSheet.create({actionButton:{width:44,height:44,borderRadius:e.radius.pill,..._corners.smoothCorners,alignItems:"center",justifyContent:"center"},actionLeft:{marginRight:e.space.xs},actionRight:{marginLeft:e.space.xs},actionPressed:{backgroundColor:e.colors["surface-pressed"]},textButton:{minWidth:44,minHeight:44,paddingHorizontal:e.space.sm,alignItems:"center",justifyContent:"center"},textPressed:{opacity:.6},dot:{position:"absolute",top:10,right:10,width:8,height:8,borderRadius:e.radius.pill,backgroundColor:e.colors.danger},iconWrap:{alignItems:"center",justifyContent:"center"},badge:{position:"absolute",top:4,right:4,minWidth:16,height:16,paddingHorizontal:e.space.xs,borderRadius:e.radius.pill,..._corners.smoothCorners,backgroundColor:e.colors.danger,alignItems:"center",justifyContent:"center"},badgeText:{color:e.colors["on-danger"],fontSize:e.text.xs.size,fontWeight:e.weight.semibold,lineHeight:Math.round(e.text.xs.size*e.leading.heading)}});var _default=exports.default=AppBar;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AppIcon=exports.APP_ICON_SIZES=void 0,Object.defineProperty(exports,"CURATED_ICON_NAMES",{enumerable:!0,get:function(){return _glyphsG.CURATED_ICON_NAMES}}),exports.ICONSAX_SUFFIX=void 0,Object.defineProperty(exports,"ICON_NAMES",{enumerable:!0,get:function(){return _catalogG.ICON_NAMES}}),exports.resolveGlyph=exports.default=exports.buildIconXml=void 0;var _mobileCore=require("@webority/mobile-core"),_react=require("react"),_reactNativeSvg=require("react-native-svg"),_index=require("../../theme/index.js"),_assertValidValue=require("../../utils/assertValidValue.js"),_Text=require("../Text/Text.js"),_catalogG=require("./catalog.g.js"),_glyphsG=require("./glyphs.g.js"),_jsxRuntime=require("react/jsx-runtime");const ICONSAX_SUFFIX=exports.ICONSAX_SUFFIX="-iconsax",APP_ICON_SIZES=exports.APP_ICON_SIZES={xs:14,sm:18,md:22,lg:28,xl:36},tryRequire=e=>{try{return e()}catch{return null}};let curatedVariants=null;const loadCuratedVariants=()=>(curatedVariants||(curatedVariants=tryRequire(()=>require("./variants.g").VARIANT_GLYPHS)??{}),curatedVariants),shardCache=new Map,loadShard=(e,r)=>{const t=r[0]?.toLowerCase()??"",a=`${e}:${t}`,o=shardCache.get(a);if(void 0!==o)return o;const l=_catalogG.CATALOG_LOADERS[e]?.[t],n=l?tryRequire(l):null;return shardCache.set(a,n),n},warned=new Set,resolveCatalogue=(e,r)=>{const t=loadShard(r,e)?.[e];return t||("linear"===r?null:loadShard("linear",e)?.[e]??null)},resolveGlyph=(e,r="linear")=>{if(e.endsWith(ICONSAX_SUFFIX)){const t=e.slice(0,-ICONSAX_SUFFIX.length);return t in _glyphsG.GLYPHS?resolveCatalogue(t,r):null}const t=_glyphsG.GLYPHS[e];return t?"linear"===r?t:loadCuratedVariants()[r]?.[e]??t:resolveCatalogue(e,r)};exports.resolveGlyph=resolveGlyph;const buildIconXml=(e,r,t)=>`<svg xmlns="http://www.w3.org/2000/svg" width="${r}" height="${r}" viewBox="0 0 24 24" fill="none">${e.replace(/currentColor/g,t)}</svg>`;exports.buildIconXml=buildIconXml;const iconXmlCache=new Map,AppIcon=({name:e,size:r="md",color:t,variant:a="linear",style:o,accessibilityLabel:l,testID:n})=>{const s=(0,_index.useTheme)();"string"==typeof r&&(0,_assertValidValue.assertValidValue)("AppIcon","size",r,Object.keys(APP_ICON_SIZES)),(0,_assertValidValue.assertValidValue)("AppIcon","variant",a,["linear","bold","bulk","broken","outline","twotone"]);const i="number"==typeof r?r:APP_ICON_SIZES[r]??APP_ICON_SIZES.md,c=void 0===t?s.colors["text-body"]:(0,_Text.resolveColor)(s,t),u=resolveGlyph(e,a),d=(0,_react.useMemo)(()=>{if(!u)return null;const r=`${e}|${a}|${i}|${c}`,t=iconXmlCache.get(r);if(void 0!==t)return t;iconXmlCache.size>=500&&iconXmlCache.clear();const o=buildIconXml(u,i,c);return iconXmlCache.set(r,o),o},[e,a,u,i,c]);return d?(0,_jsxRuntime.jsx)(_reactNativeSvg.SvgXml,{xml:d,width:i,height:i,style:o,accessible:null!=l,accessibilityLabel:l,accessibilityRole:null!=l?"image":void 0,testID:n}):(__DEV__&&!warned.has(e)&&(warned.add(e),_mobileCore.Logger.warn(`[@webority/mobile-ui] AppIcon: Unknown icon "${e}". Names come from webority-ui's icon map and the Iconsax catalogue; run node scripts/gen-icons.mjs after adding one there.`)),null)};exports.AppIcon=AppIcon,AppIcon.displayName="AppIcon";var _default=exports.default=AppIcon;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AppIcon=exports.APP_ICON_SIZES=void 0,Object.defineProperty(exports,"CURATED_ICON_NAMES",{enumerable:!0,get:function(){return _glyphsG.CURATED_ICON_NAMES}}),exports.ICONSAX_SUFFIX=void 0,Object.defineProperty(exports,"ICON_NAMES",{enumerable:!0,get:function(){return _catalogG.ICON_NAMES}}),exports.resolveGlyph=exports.default=exports.buildIconXml=void 0;var _mobileCore=require("@webority/mobile-core"),_react=require("react"),_reactNativeSvg=require("react-native-svg"),_index=require("../../theme/index.js"),_assertValidValue=require("../../utils/assertValidValue.js"),_guards=require("../../utils/guards.js"),_Text=require("../Text/Text.js"),_catalogG=require("./catalog.g.js"),_glyphsG=require("./glyphs.g.js"),_jsxRuntime=require("react/jsx-runtime");const ICONSAX_SUFFIX=exports.ICONSAX_SUFFIX="-iconsax",APP_ICON_SIZES=exports.APP_ICON_SIZES={xs:14,sm:18,md:22,lg:28,xl:36},tryRequire=e=>{try{return e()}catch{return null}};let curatedVariants=null;const loadCuratedVariants=()=>(curatedVariants||(curatedVariants=tryRequire(()=>require("./variants.g").VARIANT_GLYPHS)??{}),curatedVariants),shardCache=new Map,loadShard=(e,r)=>{const t=r[0]?.toLowerCase()??"",a=`${e}:${t}`,o=shardCache.get(a);if(void 0!==o)return o;const l=_catalogG.CATALOG_LOADERS[e]?.[t],s=l?tryRequire(l):null;return shardCache.set(a,s),s},warned=new Set,resolveCatalogue=(e,r)=>{const t=loadShard(r,e)?.[e];return t||("linear"===r?null:loadShard("linear",e)?.[e]??null)},resolveGlyph=(e,r="linear")=>{if(e.endsWith(ICONSAX_SUFFIX)){const t=e.slice(0,-ICONSAX_SUFFIX.length);return t in _glyphsG.GLYPHS?resolveCatalogue(t,r):null}const t=(0,_guards.hasKey)(_glyphsG.GLYPHS,e)?_glyphsG.GLYPHS[e]:void 0;return t?"linear"===r?t:loadCuratedVariants()[r]?.[e]??t:resolveCatalogue(e,r)};exports.resolveGlyph=resolveGlyph;const buildIconXml=(e,r,t)=>`<svg xmlns="http://www.w3.org/2000/svg" width="${r}" height="${r}" viewBox="0 0 24 24" fill="none">${e.replace(/currentColor/g,t)}</svg>`;exports.buildIconXml=buildIconXml;const iconXmlCache=new Map,AppIcon=({name:e,size:r="md",color:t,variant:a="linear",style:o,accessibilityLabel:l,testID:s})=>{const n=(0,_index.useTheme)();"string"==typeof r&&(0,_assertValidValue.assertValidValue)("AppIcon","size",r,Object.keys(APP_ICON_SIZES)),(0,_assertValidValue.assertValidValue)("AppIcon","variant",a,["linear","bold","bulk","broken","outline","twotone"]);const i="number"==typeof r?r:APP_ICON_SIZES[r]??APP_ICON_SIZES.md,c=void 0===t?n.colors["text-body"]:(0,_Text.resolveColor)(n,t),u=resolveGlyph(e,a),d=(0,_react.useMemo)(()=>{if(!u)return null;const r=`${e}|${a}|${i}|${c}`,t=iconXmlCache.get(r);if(void 0!==t)return t;iconXmlCache.size>=500&&iconXmlCache.clear();const o=buildIconXml(u,i,c);return iconXmlCache.set(r,o),o},[e,a,u,i,c]);if(!d)return __DEV__&&!warned.has(e)&&(warned.add(e),_mobileCore.Logger.warn(`[@webority/mobile-ui] AppIcon: Unknown icon "${e}". Names come from webority-ui's icon map and the Iconsax catalogue; run node scripts/gen-icons.mjs after adding one there.`)),null;const p=null!=l?{accessibilityLabel:l,accessibilityRole:"image"}:{};return(0,_jsxRuntime.jsx)(_reactNativeSvg.SvgXml,{xml:d,width:i,height:i,...void 0!==o?{style:o}:{},accessible:null!=l,...p,...void 0!==s?{testID:s}:{}})};exports.AppIcon=AppIcon,AppIcon.displayName="AppIcon";var _default=exports.default=AppIcon;