@webority/mobile-ui 0.109.6 → 0.109.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/dist/canvas-kit/kit.js +8178 -7802
  2. package/dist/canvas-kit/manifest.json +360 -2
  3. package/dist/canvas-kit/release.json +6 -6
  4. package/lib/commonjs/components/AppBar/AppBar.js +1 -1
  5. package/lib/commonjs/components/Avatar/Avatar.js +1 -1
  6. package/lib/commonjs/components/Badge/Badge.js +1 -1
  7. package/lib/commonjs/components/Banner/Banner.js +1 -1
  8. package/lib/commonjs/components/BottomNavigation/BottomNavigation.js +1 -1
  9. package/lib/commonjs/components/BottomSheet/BottomSheet.js +1 -1
  10. package/lib/commonjs/components/Card/Card.js +1 -1
  11. package/lib/commonjs/components/Dialog/Dialog.js +1 -1
  12. package/lib/commonjs/components/Dialog/OverlayActions.js +1 -0
  13. package/lib/commonjs/components/EmptyState/EmptyState.js +1 -1
  14. package/lib/commonjs/components/IconBadge/IconBadge.js +1 -1
  15. package/lib/commonjs/components/ListItem/ListItem.js +1 -1
  16. package/lib/commonjs/components/ListSection/ListSection.js +1 -0
  17. package/lib/commonjs/components/ListSection/index.js +1 -0
  18. package/lib/commonjs/components/Menu/MenuSurface.js +1 -1
  19. package/lib/commonjs/components/ProfileCompletion/ProfileCompletion.js +1 -1
  20. package/lib/commonjs/components/ProfilePicker/ProfilePicker.js +1 -1
  21. package/lib/commonjs/components/ProgressBar/ProgressBar.js +1 -1
  22. package/lib/commonjs/components/StatusBadge/StatusBadge.js +1 -1
  23. package/lib/commonjs/components/Tabs/Tabs.js +1 -1
  24. package/lib/commonjs/components/Timeline/Timeline.js +1 -1
  25. package/lib/commonjs/components/index.js +1 -1
  26. package/lib/commonjs/hooks/usePressAnimation.js +1 -1
  27. package/lib/module/components/AppBar/AppBar.js +1 -1
  28. package/lib/module/components/Avatar/Avatar.js +1 -1
  29. package/lib/module/components/Badge/Badge.js +1 -1
  30. package/lib/module/components/Banner/Banner.js +1 -1
  31. package/lib/module/components/BottomNavigation/BottomNavigation.js +1 -1
  32. package/lib/module/components/BottomSheet/BottomSheet.js +1 -1
  33. package/lib/module/components/Card/Card.js +1 -1
  34. package/lib/module/components/Dialog/Dialog.js +1 -1
  35. package/lib/module/components/Dialog/OverlayActions.js +1 -0
  36. package/lib/module/components/EmptyState/EmptyState.js +1 -1
  37. package/lib/module/components/IconBadge/IconBadge.js +1 -1
  38. package/lib/module/components/ListItem/ListItem.js +1 -1
  39. package/lib/module/components/ListSection/ListSection.js +1 -0
  40. package/lib/module/components/ListSection/index.js +1 -0
  41. package/lib/module/components/Menu/MenuSurface.js +1 -1
  42. package/lib/module/components/ProfileCompletion/ProfileCompletion.js +1 -1
  43. package/lib/module/components/ProfilePicker/ProfilePicker.js +1 -1
  44. package/lib/module/components/ProgressBar/ProgressBar.js +1 -1
  45. package/lib/module/components/StatusBadge/StatusBadge.js +1 -1
  46. package/lib/module/components/Tabs/Tabs.js +1 -1
  47. package/lib/module/components/Timeline/Timeline.js +1 -1
  48. package/lib/module/components/index.js +1 -1
  49. package/lib/module/hooks/usePressAnimation.js +1 -1
  50. package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +22 -2
  51. package/lib/typescript/commonjs/components/AppBar/index.d.ts +1 -1
  52. package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +20 -2
  53. package/lib/typescript/commonjs/components/Avatar/index.d.ts +1 -1
  54. package/lib/typescript/commonjs/components/Badge/Badge.d.ts +5 -0
  55. package/lib/typescript/commonjs/components/Badge/index.d.ts +1 -1
  56. package/lib/typescript/commonjs/components/Banner/Banner.d.ts +3 -1
  57. package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +6 -0
  58. package/lib/typescript/commonjs/components/Card/Card.d.ts +3 -0
  59. package/lib/typescript/commonjs/components/Dialog/Dialog.d.ts +9 -0
  60. package/lib/typescript/commonjs/components/Dialog/OverlayActions.d.ts +19 -0
  61. package/lib/typescript/commonjs/components/EmptyState/EmptyState.d.ts +4 -0
  62. package/lib/typescript/commonjs/components/EmptyState/index.d.ts +1 -1
  63. package/lib/typescript/commonjs/components/IconBadge/IconBadge.d.ts +20 -1
  64. package/lib/typescript/commonjs/components/IconBadge/index.d.ts +1 -1
  65. package/lib/typescript/commonjs/components/ListItem/ListItem.d.ts +9 -3
  66. package/lib/typescript/commonjs/components/ListItem/index.d.ts +1 -1
  67. package/lib/typescript/commonjs/components/ListSection/ListSection.d.ts +20 -0
  68. package/lib/typescript/commonjs/components/ListSection/index.d.ts +3 -0
  69. package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +2 -0
  70. package/lib/typescript/commonjs/components/StatusBadge/StatusBadge.d.ts +18 -1
  71. package/lib/typescript/commonjs/components/StatusBadge/index.d.ts +1 -1
  72. package/lib/typescript/commonjs/components/index.d.ts +9 -7
  73. package/lib/typescript/commonjs/hooks/usePressAnimation.d.ts +6 -3
  74. package/lib/typescript/module/components/AppBar/AppBar.d.ts +22 -2
  75. package/lib/typescript/module/components/AppBar/index.d.ts +1 -1
  76. package/lib/typescript/module/components/Avatar/Avatar.d.ts +20 -2
  77. package/lib/typescript/module/components/Avatar/index.d.ts +1 -1
  78. package/lib/typescript/module/components/Badge/Badge.d.ts +5 -0
  79. package/lib/typescript/module/components/Badge/index.d.ts +1 -1
  80. package/lib/typescript/module/components/Banner/Banner.d.ts +3 -1
  81. package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +6 -0
  82. package/lib/typescript/module/components/Card/Card.d.ts +3 -0
  83. package/lib/typescript/module/components/Dialog/Dialog.d.ts +9 -0
  84. package/lib/typescript/module/components/Dialog/OverlayActions.d.ts +19 -0
  85. package/lib/typescript/module/components/EmptyState/EmptyState.d.ts +4 -0
  86. package/lib/typescript/module/components/EmptyState/index.d.ts +1 -1
  87. package/lib/typescript/module/components/IconBadge/IconBadge.d.ts +20 -1
  88. package/lib/typescript/module/components/IconBadge/index.d.ts +1 -1
  89. package/lib/typescript/module/components/ListItem/ListItem.d.ts +9 -3
  90. package/lib/typescript/module/components/ListItem/index.d.ts +1 -1
  91. package/lib/typescript/module/components/ListSection/ListSection.d.ts +20 -0
  92. package/lib/typescript/module/components/ListSection/index.d.ts +3 -0
  93. package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +2 -0
  94. package/lib/typescript/module/components/StatusBadge/StatusBadge.d.ts +18 -1
  95. package/lib/typescript/module/components/StatusBadge/index.d.ts +1 -1
  96. package/lib/typescript/module/components/index.d.ts +9 -7
  97. package/lib/typescript/module/hooks/usePressAnimation.d.ts +6 -3
  98. package/package.json +7 -7
@@ -4,7 +4,7 @@ export type { AmountSliderLabels, AmountSliderProps } from "./AmountSlider/index
4
4
  export { AmountSlider, DEFAULT_AMOUNT_SLIDER_LABELS } from "./AmountSlider/index.js";
5
5
  export type { AnimatePresenceProps, PresencePreset } from "./AnimatePresence/index.js";
6
6
  export { AnimatePresence } from "./AnimatePresence/index.js";
7
- export type { AppBarAction, AppBarLabels, AppBarProps, AppBarVariant } from "./AppBar/index.js";
7
+ export type { AppBarAction, AppBarLabels, AppBarMenuAction, AppBarPressAction, AppBarProps, AppBarVariant } from "./AppBar/index.js";
8
8
  export { AppBar, DEFAULT_APP_BAR_LABELS } from "./AppBar/index.js";
9
9
  export type { AppLockOverlayLabels, AppLockOverlayProps } from "./AppLockOverlay/index.js";
10
10
  export { AppLockOverlay, DEFAULT_APP_LOCK_OVERLAY_LABELS } from "./AppLockOverlay/index.js";
@@ -14,9 +14,9 @@ export type { AuthedImageCacheMeta, AuthedImageProps } from "./AuthedImage/index
14
14
  export { AuthedImage, authedImageCacheStats, clearAuthedImageCache, getAuthedImageCacheLimit, setAuthedImageCacheLimit, } from "./AuthedImage/index.js";
15
15
  export type { AutocompleteLabels, AutocompleteProps } from "./Autocomplete/index.js";
16
16
  export { Autocomplete, DEFAULT_AUTOCOMPLETE_LABELS } from "./Autocomplete/index.js";
17
- export type { AvatarGroupOverflowVariant, AvatarGroupProps, AvatarGroupSpacing, AvatarImageProps, AvatarLabels, AvatarProps, AvatarShape, AvatarSize, AvatarStatus, AvatarTone, } from "./Avatar/index.js";
17
+ export type { AvatarContentFit, AvatarGroupOverflowVariant, AvatarGroupProps, AvatarGroupSpacing, AvatarImageProps, AvatarLabels, AvatarProps, AvatarRadius, AvatarShape, AvatarSize, AvatarStatus, AvatarTone, } from "./Avatar/index.js";
18
18
  export { Avatar, AvatarGroup, avatarToneColors, DEFAULT_AVATAR_LABELS } from "./Avatar/index.js";
19
- export type { BadgeAnchor, BadgeLabels, BadgeProps, BadgeSize, BadgeTone, BadgeVariant } from "./Badge/index.js";
19
+ export type { BadgeAnchor, BadgeFill, BadgeLabels, BadgeProps, BadgeSize, BadgeTone, BadgeVariant } from "./Badge/index.js";
20
20
  export { Badge, DEFAULT_BADGE_LABELS } from "./Badge/index.js";
21
21
  export type { BannerAction, BannerActionSize, BannerActionTone, BannerActionVariant, BannerLabels, BannerProps, BannerRole, BannerTone, BannerVariant, } from "./Banner/index.js";
22
22
  export { Banner, DEFAULT_BANNER_LABELS } from "./Banner/index.js";
@@ -64,7 +64,7 @@ export type { DividerOrientation, DividerProps, DividerSpacing } from "./Divider
64
64
  export { Divider } from "./Divider/index.js";
65
65
  export type { DrawerLabels, DrawerProps, DrawerRef, DrawerSide } from "./Drawer/index.js";
66
66
  export { DEFAULT_DRAWER_LABELS, Drawer } from "./Drawer/index.js";
67
- export type { EmptyStateAction, EmptyStateProps, EmptyStateSize } from "./EmptyState/index.js";
67
+ export type { EmptyStateAction, EmptyStateProps, EmptyStateSize, EmptyStateVariant } from "./EmptyState/index.js";
68
68
  export { EmptyState } from "./EmptyState/index.js";
69
69
  export type { ErrorBoundaryInfo, ErrorBoundaryLabels, ErrorBoundaryProps } from "./ErrorBoundary/index.js";
70
70
  export { DEFAULT_ERROR_BOUNDARY_LABELS, ErrorBoundary, useErrorHandler, withErrorBoundary } from "./ErrorBoundary/index.js";
@@ -80,7 +80,7 @@ export type { ForceUpdateDialogLabels, ForceUpdateDialogProps } from "./ForceUpd
80
80
  export { DEFAULT_FORCE_UPDATE_DIALOG_LABELS, ForceUpdateDialog } from "./ForceUpdateDialog/index.js";
81
81
  export type { FormFieldLabels, FormFieldLayout, FormFieldProps } from "./FormField/index.js";
82
82
  export { DEFAULT_FORM_FIELD_LABELS, FormField } from "./FormField/index.js";
83
- export type { IconBadgeProps, IconBadgeSize, IconBadgeTone } from "./IconBadge/index.js";
83
+ export type { IconBadgeFill, IconBadgeProps, IconBadgeSize, IconBadgeTone } from "./IconBadge/index.js";
84
84
  export { IconBadge } from "./IconBadge/index.js";
85
85
  export type { IconButtonProps, IconButtonShape, IconButtonSize, IconButtonTone, IconButtonVariant, } from "./IconButton/index.js";
86
86
  export { IconButton } from "./IconButton/index.js";
@@ -94,8 +94,10 @@ export type { KeyboardAwareScrollViewProps, KeyboardAwareScrollViewRef, } from "
94
94
  export { KeyboardAwareScrollView } from "./KeyboardAwareScrollView/index.js";
95
95
  export type { KeyboardToolbarLabels, KeyboardToolbarProps } from "./KeyboardToolbar/index.js";
96
96
  export { DEFAULT_KEYBOARD_TOOLBAR_LABELS, KeyboardToolbar } from "./KeyboardToolbar/index.js";
97
- export type { ListItemAction, ListItemProps, ListItemRightPlacement, ListItemSize, } from "./ListItem/index.js";
97
+ export type { ListItemAction, ListItemProps, ListItemRightPlacement, ListItemSize, ListItemVariant, } from "./ListItem/index.js";
98
98
  export { ListItem } from "./ListItem/index.js";
99
+ export type { ListSectionProps } from "./ListSection/index.js";
100
+ export { ListSection } from "./ListSection/index.js";
99
101
  export type { LoaderOverlayLabels, LoaderOverlayProps } from "./LoaderOverlay/index.js";
100
102
  export { DEFAULT_LOADER_OVERLAY_LABELS, LoaderOverlay, loader, useLoader } from "./LoaderOverlay/index.js";
101
103
  export type { MarkdownProps } from "./Markdown/index.js";
@@ -174,7 +176,7 @@ export type { SquircleViewProps } from "./SquircleView/index.js";
174
176
  export { SquircleView } from "./SquircleView/index.js";
175
177
  export type { StatTileProps, StatTileTrend } from "./StatTile/index.js";
176
178
  export { StatTile } from "./StatTile/index.js";
177
- export type { StatusBadgeProps, StatusBadgeSize, StatusBadgeTone, StatusBadgeVariant, } from "./StatusBadge/index.js";
179
+ export type { StatusBadgeInk, StatusBadgePadding, StatusBadgeProps, StatusBadgeSize, StatusBadgeTone, StatusBadgeVariant, StatusBadgeWeight, } from "./StatusBadge/index.js";
178
180
  export { StatusBadge } from "./StatusBadge/index.js";
179
181
  export type { StatusEntry } from "./StatusBadge/statusMap.js";
180
182
  export { defineStatusMap } from "./StatusBadge/statusMap.js";
@@ -1,8 +1,8 @@
1
1
  import type { Animated } from "react-native";
2
2
  /**
3
3
  * Named press feedback. Every preset drives transform or opacity only, so it
4
- * runs on the native driver. Under Reduce Motion every preset plays as `'fade'`
5
- * over the fade length, so a press never moves or springs.
4
+ * runs on the native driver. Under Reduce Motion every preset but `dim` plays as
5
+ * `'fade'` over the fade length, so a press never moves or springs.
6
6
  *
7
7
  * - `scale`: shrinks a touch on press-in, springs back on release. The default.
8
8
  * - `bounce`: shrinks further and comes back on the bouncy spring, overshooting once.
@@ -11,8 +11,11 @@ import type { Animated } from "react-native";
11
11
  * - `pulse`: nothing on press-in; a confirmed press swells the control past
12
12
  * its size and settles. Plays from `press()`, not `pressOut()`, so a
13
13
  * cancelled touch or a scroll flick does not read as a tap.
14
+ * - `dim`: drops to 0.7 opacity at once on press-in and comes back at once on
15
+ * release, the dim IconButton and Avatar draw. Nothing moves, so Reduce
16
+ * Motion keeps it as it is.
14
17
  */
15
- export type PressAnimationPreset = "scale" | "bounce" | "fade" | "sink" | "pulse";
18
+ export type PressAnimationPreset = "scale" | "bounce" | "fade" | "sink" | "pulse" | "dim";
16
19
  export declare const PRESS_ANIMATION_PRESETS: readonly PressAnimationPreset[];
17
20
  export interface UsePressAnimationOptions {
18
21
  /** Which feedback plays. Default `'scale'`. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/mobile-ui",
3
- "version": "0.109.6",
3
+ "version": "0.109.8",
4
4
  "description": "Beautiful, animated, accessible React Native components, theme and form engine for Webority projects.",
5
5
  "keywords": [
6
6
  "react-native",
@@ -100,8 +100,8 @@
100
100
  "react-native-safe-area-context": ">=5.4.0",
101
101
  "react-native-svg": ">=15.0.0",
102
102
  "react-native-worklets": ">=0.10.0",
103
- "@webority/canvas-kit": "0.109.6",
104
- "@webority/mobile-core": "0.109.6"
103
+ "@webority/mobile-core": "0.109.8",
104
+ "@webority/canvas-kit": "0.109.8"
105
105
  },
106
106
  "peerDependenciesMeta": {
107
107
  "@react-navigation/bottom-tabs": {
@@ -170,10 +170,10 @@
170
170
  "react-test-renderer": "19.2.8",
171
171
  "rimraf": "6.1.3",
172
172
  "typescript": "5.9.3",
173
- "@webority/canvas-kit": "0.109.6",
174
- "@webority/mobile-core": "0.109.6",
175
- "@webority/tokens": "0.109.6",
176
- "@webority/mobile-dev": "0.0.0"
173
+ "@webority/canvas-kit": "0.109.8",
174
+ "@webority/mobile-core": "0.109.8",
175
+ "@webority/mobile-dev": "0.0.0",
176
+ "@webority/tokens": "0.109.8"
177
177
  },
178
178
  "scripts": {
179
179
  "build": "bob build && node ../mobile-dev/scripts/minify-lib.mjs && node -e \"require('node:fs').rmSync('dist/canvas-kit',{recursive:true,force:true})\" && node ../canvas-kit/dist/cli.js build --config canvas-kit.json --out dist/canvas-kit",