@unif/react-native-design 0.8.2 → 0.10.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.
- package/README.md +1 -2
- package/lib/module/components/business/AvatarWithRing/AvatarWithRing.js +6 -4
- package/lib/module/components/business/AvatarWithRing/AvatarWithRing.js.map +1 -1
- package/lib/module/components/business/AvatarWithRing/styles.js +15 -3
- package/lib/module/components/business/AvatarWithRing/styles.js.map +1 -1
- package/lib/module/components/business/Decorations/GradientWash.js +50 -36
- package/lib/module/components/business/Decorations/GradientWash.js.map +1 -1
- package/lib/module/components/business/Decorations/RadialHalo.js +10 -4
- package/lib/module/components/business/Decorations/RadialHalo.js.map +1 -1
- package/lib/module/components/business/Decorations/ScreenBackdrop.js +22 -14
- package/lib/module/components/business/Decorations/ScreenBackdrop.js.map +1 -1
- package/lib/module/components/business/Decorations/index.js +3 -0
- package/lib/module/components/business/Decorations/index.js.map +1 -1
- package/lib/module/components/business/GlassStats/GlassStats.js +7 -4
- package/lib/module/components/business/GlassStats/GlassStats.js.map +1 -1
- package/lib/module/components/business/GlassStats/types.js +2 -0
- package/lib/module/components/business/VersionPill/VersionPill.js +23 -5
- package/lib/module/components/business/VersionPill/VersionPill.js.map +1 -1
- package/lib/module/components/business/VersionPill/styles.js +1 -1
- package/lib/module/components/business/index.js.map +1 -1
- package/lib/module/components/business/useSvgId.js +20 -0
- package/lib/module/components/business/useSvgId.js.map +1 -0
- package/lib/module/components/ui/Avatar/Avatar.js +13 -8
- package/lib/module/components/ui/Avatar/Avatar.js.map +1 -1
- package/lib/module/components/ui/Avatar/styles.js +7 -7
- package/lib/module/components/ui/Avatar/styles.js.map +1 -1
- package/lib/module/components/ui/BlurLayer/BlurLayer.js +5 -1
- package/lib/module/components/ui/BlurLayer/BlurLayer.js.map +1 -1
- package/lib/module/components/ui/BlurLayer/BlurLayer.web.js +7 -1
- package/lib/module/components/ui/BlurLayer/BlurLayer.web.js.map +1 -1
- package/lib/module/components/ui/Button/Button.js +2 -1
- package/lib/module/components/ui/Button/Button.js.map +1 -1
- package/lib/module/components/ui/Button/ButtonBase.js +36 -2
- package/lib/module/components/ui/Button/ButtonBase.js.map +1 -1
- package/lib/module/components/ui/Button/styles.js +27 -25
- package/lib/module/components/ui/Button/styles.js.map +1 -1
- package/lib/module/components/ui/Card/Card.js +17 -8
- package/lib/module/components/ui/Card/Card.js.map +1 -1
- package/lib/module/components/ui/Card/styles.js +6 -1
- package/lib/module/components/ui/Card/styles.js.map +1 -1
- package/lib/module/components/ui/Carousel/Carousel.js +36 -6
- package/lib/module/components/ui/Carousel/Carousel.js.map +1 -1
- package/lib/module/components/ui/Cell/Cell.js +23 -5
- package/lib/module/components/ui/Cell/Cell.js.map +1 -1
- package/lib/module/components/ui/Cell/Leading.js +2 -2
- package/lib/module/components/ui/Cell/Leading.js.map +1 -1
- package/lib/module/components/ui/Cell/List.js +10 -5
- package/lib/module/components/ui/Cell/List.js.map +1 -1
- package/lib/module/components/ui/Cell/styles.js +7 -6
- package/lib/module/components/ui/Cell/styles.js.map +1 -1
- package/lib/module/components/ui/Checkbox/Checkbox.js +10 -8
- package/lib/module/components/ui/Checkbox/Checkbox.js.map +1 -1
- package/lib/module/components/ui/Checkbox/styles.js +9 -1
- package/lib/module/components/ui/Checkbox/styles.js.map +1 -1
- package/lib/module/components/ui/Chip/Chip.js +19 -5
- package/lib/module/components/ui/Chip/Chip.js.map +1 -1
- package/lib/module/components/ui/Confirm/ConfirmHost.js +28 -11
- package/lib/module/components/ui/Confirm/ConfirmHost.js.map +1 -1
- package/lib/module/components/ui/Confirm/confirm.js +6 -0
- package/lib/module/components/ui/Confirm/confirm.js.map +1 -1
- package/lib/module/components/ui/DrawerHeader/DrawerHeader.js +14 -9
- package/lib/module/components/ui/DrawerHeader/DrawerHeader.js.map +1 -1
- package/lib/module/components/ui/DrawerHeader/styles.js +10 -6
- package/lib/module/components/ui/DrawerHeader/styles.js.map +1 -1
- package/lib/module/components/ui/Empty/Empty.js +5 -4
- package/lib/module/components/ui/Empty/Empty.js.map +1 -1
- package/lib/module/components/ui/EntryCard/EntryCard.js +5 -3
- package/lib/module/components/ui/EntryCard/EntryCard.js.map +1 -1
- package/lib/module/components/ui/EntryCard/styles.js +4 -4
- package/lib/module/components/ui/EntryCard/styles.js.map +1 -1
- package/lib/module/components/ui/Form/FormRow.js +1 -0
- package/lib/module/components/ui/Form/FormRow.js.map +1 -1
- package/lib/module/components/ui/Form/styles.js +3 -1
- package/lib/module/components/ui/Form/styles.js.map +1 -1
- package/lib/module/components/ui/Grid/Grid.js +39 -24
- package/lib/module/components/ui/Grid/Grid.js.map +1 -1
- package/lib/module/components/ui/Grid/styles.js +35 -46
- package/lib/module/components/ui/Grid/styles.js.map +1 -1
- package/lib/module/components/ui/Icon/Icon.js +46 -29
- package/lib/module/components/ui/Icon/Icon.js.map +1 -1
- package/lib/module/components/ui/IconButton/IconButton.js +2 -0
- package/lib/module/components/ui/IconButton/IconButton.js.map +1 -1
- package/lib/module/components/ui/Logo/Logo.js +2 -1
- package/lib/module/components/ui/Logo/Logo.js.map +1 -1
- package/lib/module/components/ui/NavBar/NavBar.js +15 -3
- package/lib/module/components/ui/NavBar/NavBar.js.map +1 -1
- package/lib/module/components/ui/PasswordInput/PasswordInput.js +43 -14
- package/lib/module/components/ui/PasswordInput/PasswordInput.js.map +1 -1
- package/lib/module/components/ui/PasswordInput/styles.js +1 -1
- package/lib/module/components/ui/Pulse/Pulse.js +2 -1
- package/lib/module/components/ui/Pulse/Pulse.js.map +1 -1
- package/lib/module/components/ui/Pulse/PulseDot.js +8 -10
- package/lib/module/components/ui/Pulse/PulseDot.js.map +1 -1
- package/lib/module/components/ui/Pulse/types.js +2 -0
- package/lib/module/components/ui/Pulse/usePulse.web.js +51 -30
- package/lib/module/components/ui/Pulse/usePulse.web.js.map +1 -1
- package/lib/module/components/ui/Radio/Radio.js +19 -5
- package/lib/module/components/ui/Radio/Radio.js.map +1 -1
- package/lib/module/components/ui/Radio/RadioGroup.js +10 -6
- package/lib/module/components/ui/Radio/RadioGroup.js.map +1 -1
- package/lib/module/components/ui/Radio/styles.js +10 -3
- package/lib/module/components/ui/Radio/styles.js.map +1 -1
- package/lib/module/components/ui/Reveal/Reveal.web.js +18 -3
- package/lib/module/components/ui/Reveal/Reveal.web.js.map +1 -1
- package/lib/module/components/ui/Search/Search.js +26 -10
- package/lib/module/components/ui/Search/Search.js.map +1 -1
- package/lib/module/components/ui/Segmented/Segmented.js +40 -30
- package/lib/module/components/ui/Segmented/Segmented.js.map +1 -1
- package/lib/module/components/ui/Segmented/styles.js +4 -2
- package/lib/module/components/ui/Segmented/styles.js.map +1 -1
- package/lib/module/components/ui/Skeleton/Skeleton.js +9 -8
- package/lib/module/components/ui/Skeleton/Skeleton.js.map +1 -1
- package/lib/module/components/ui/Spinner/Spinner.js +15 -16
- package/lib/module/components/ui/Spinner/Spinner.js.map +1 -1
- package/lib/module/components/ui/Spinner/Spinner.web.js +10 -14
- package/lib/module/components/ui/Spinner/Spinner.web.js.map +1 -1
- package/lib/module/components/ui/Spinner/shared.js +31 -0
- package/lib/module/components/ui/Spinner/shared.js.map +1 -0
- package/lib/module/components/ui/StatusDot/StatusDot.js +21 -4
- package/lib/module/components/ui/StatusDot/StatusDot.js.map +1 -1
- package/lib/module/components/ui/StatusDot/styles.js +1 -1
- package/lib/module/components/ui/StatusDot/types.js +2 -0
- package/lib/module/components/ui/Stepper/Stepper.js +46 -10
- package/lib/module/components/ui/Stepper/Stepper.js.map +1 -1
- package/lib/module/components/ui/Switch/Switch.js +6 -11
- package/lib/module/components/ui/Switch/Switch.js.map +1 -1
- package/lib/module/components/ui/Switch/Switch.web.js +2 -8
- package/lib/module/components/ui/Switch/Switch.web.js.map +1 -1
- package/lib/module/components/ui/Switch/styles.js +12 -3
- package/lib/module/components/ui/Switch/styles.js.map +1 -1
- package/lib/module/components/ui/TabBar/TabBar.js +10 -6
- package/lib/module/components/ui/TabBar/TabBar.js.map +1 -1
- package/lib/module/components/ui/TabBar/styles.js +28 -39
- package/lib/module/components/ui/TabBar/styles.js.map +1 -1
- package/lib/module/components/ui/Tabs/Tabs.js +19 -5
- package/lib/module/components/ui/Tabs/Tabs.js.map +1 -1
- package/lib/module/components/ui/Tabs/styles.js +6 -2
- package/lib/module/components/ui/Tabs/styles.js.map +1 -1
- package/lib/module/components/ui/Tabs/types.js +2 -0
- package/lib/module/components/ui/Tag/styles.js +15 -14
- package/lib/module/components/ui/Tag/styles.js.map +1 -1
- package/lib/module/components/ui/TextField/TextFieldBase.js +24 -6
- package/lib/module/components/ui/TextField/TextFieldBase.js.map +1 -1
- package/lib/module/components/ui/Thumbnail/Thumbnail.js +11 -3
- package/lib/module/components/ui/Thumbnail/Thumbnail.js.map +1 -1
- package/lib/module/components/ui/Thumbnail/styles.js +6 -2
- package/lib/module/components/ui/Thumbnail/styles.js.map +1 -1
- package/lib/module/components/ui/Toast/ToastHost.js +16 -5
- package/lib/module/components/ui/Toast/ToastHost.js.map +1 -1
- package/lib/module/components/ui/Toast/ToastHost.web.js +21 -4
- package/lib/module/components/ui/Toast/ToastHost.web.js.map +1 -1
- package/lib/module/components/ui/Toast/styles.js +2 -0
- package/lib/module/components/ui/Toast/styles.js.map +1 -1
- package/lib/module/components/ui/Toast/toast.js +23 -3
- package/lib/module/components/ui/Toast/toast.js.map +1 -1
- package/lib/module/components/ui/shared/badgeStyles.js +31 -0
- package/lib/module/components/ui/shared/badgeStyles.js.map +1 -0
- package/lib/module/icons/data.js +45 -19
- package/lib/module/icons/data.js.map +1 -1
- package/lib/module/theme/colors.js +28 -10
- package/lib/module/theme/colors.js.map +1 -1
- package/lib/module/theme/index.js +6 -2
- package/lib/module/theme/index.js.map +1 -1
- package/lib/module/theme/scale.js +9 -1
- package/lib/module/theme/scale.js.map +1 -1
- package/lib/module/theme/shadow.js +24 -41
- package/lib/module/theme/shadow.js.map +1 -1
- package/lib/module/theme/tokens.js +10 -5
- package/lib/module/theme/tokens.js.map +1 -1
- package/lib/module/theme/usePrefersReducedMotion.js +12 -0
- package/lib/module/theme/usePrefersReducedMotion.js.map +1 -0
- package/lib/module/theme/usePrefersReducedMotion.web.js +25 -0
- package/lib/module/theme/usePrefersReducedMotion.web.js.map +1 -0
- package/lib/module/theme/useTheme.js +13 -0
- package/lib/module/theme/useTheme.js.map +1 -1
- package/lib/module/utils/logger/logger.js +5 -1
- package/lib/module/utils/logger/logger.js.map +1 -1
- package/lib/module/utils/testID/testID.js +6 -3
- package/lib/module/utils/testID/testID.js.map +1 -1
- package/lib/typescript/src/components/business/AvatarWithRing/AvatarWithRing.d.ts +1 -1
- package/lib/typescript/src/components/business/AvatarWithRing/AvatarWithRing.d.ts.map +1 -1
- package/lib/typescript/src/components/business/AvatarWithRing/styles.d.ts +5 -5
- package/lib/typescript/src/components/business/AvatarWithRing/styles.d.ts.map +1 -1
- package/lib/typescript/src/components/business/AvatarWithRing/types.d.ts +3 -1
- package/lib/typescript/src/components/business/AvatarWithRing/types.d.ts.map +1 -1
- package/lib/typescript/src/components/business/Decorations/GradientWash.d.ts +25 -0
- package/lib/typescript/src/components/business/Decorations/GradientWash.d.ts.map +1 -1
- package/lib/typescript/src/components/business/Decorations/RadialHalo.d.ts.map +1 -1
- package/lib/typescript/src/components/business/Decorations/ScreenBackdrop.d.ts +1 -1
- package/lib/typescript/src/components/business/Decorations/ScreenBackdrop.d.ts.map +1 -1
- package/lib/typescript/src/components/business/Decorations/index.d.ts +1 -1
- package/lib/typescript/src/components/business/Decorations/index.d.ts.map +1 -1
- package/lib/typescript/src/components/business/Decorations/types.d.ts +2 -0
- package/lib/typescript/src/components/business/Decorations/types.d.ts.map +1 -1
- package/lib/typescript/src/components/business/GlassStats/GlassStats.d.ts +1 -1
- package/lib/typescript/src/components/business/GlassStats/GlassStats.d.ts.map +1 -1
- package/lib/typescript/src/components/business/GlassStats/styles.d.ts +2 -2
- package/lib/typescript/src/components/business/GlassStats/types.d.ts +5 -0
- package/lib/typescript/src/components/business/GlassStats/types.d.ts.map +1 -1
- package/lib/typescript/src/components/business/VersionPill/VersionPill.d.ts +1 -1
- package/lib/typescript/src/components/business/VersionPill/VersionPill.d.ts.map +1 -1
- package/lib/typescript/src/components/business/VersionPill/styles.d.ts +1 -1
- package/lib/typescript/src/components/business/VersionPill/styles.d.ts.map +1 -1
- package/lib/typescript/src/components/business/VersionPill/types.d.ts +13 -1
- package/lib/typescript/src/components/business/VersionPill/types.d.ts.map +1 -1
- package/lib/typescript/src/components/business/index.d.ts +1 -1
- package/lib/typescript/src/components/business/index.d.ts.map +1 -1
- package/lib/typescript/src/components/business/useSvgId.d.ts +12 -0
- package/lib/typescript/src/components/business/useSvgId.d.ts.map +1 -0
- package/lib/typescript/src/components/ui/Avatar/Avatar.d.ts +1 -1
- package/lib/typescript/src/components/ui/Avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Avatar/styles.d.ts +1 -1
- package/lib/typescript/src/components/ui/Avatar/styles.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Avatar/types.d.ts +3 -1
- package/lib/typescript/src/components/ui/Avatar/types.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/BlurLayer/BlurLayer.d.ts +1 -1
- package/lib/typescript/src/components/ui/BlurLayer/BlurLayer.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/BlurLayer/BlurLayer.web.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Button/Button.d.ts +1 -1
- package/lib/typescript/src/components/ui/Button/Button.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Button/ButtonBase.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Button/styles.d.ts +2 -1
- package/lib/typescript/src/components/ui/Button/styles.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Button/types.d.ts +1 -1
- package/lib/typescript/src/components/ui/Button/types.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Card/Card.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Card/styles.d.ts +2 -0
- package/lib/typescript/src/components/ui/Card/styles.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Card/types.d.ts +4 -4
- package/lib/typescript/src/components/ui/Card/types.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Carousel/Carousel.d.ts +4 -11
- package/lib/typescript/src/components/ui/Carousel/Carousel.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Carousel/index.d.ts +1 -1
- package/lib/typescript/src/components/ui/Carousel/index.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Carousel/types.d.ts +4 -0
- package/lib/typescript/src/components/ui/Carousel/types.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Cell/Cell.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Cell/List.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Cell/styles.d.ts +1 -1
- package/lib/typescript/src/components/ui/Cell/styles.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Cell/types.d.ts +5 -2
- package/lib/typescript/src/components/ui/Cell/types.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Checkbox/Checkbox.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Checkbox/styles.d.ts +6 -0
- package/lib/typescript/src/components/ui/Checkbox/styles.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Chip/Chip.d.ts +4 -3
- package/lib/typescript/src/components/ui/Chip/Chip.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Chip/types.d.ts +2 -0
- package/lib/typescript/src/components/ui/Chip/types.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Confirm/ConfirmHost.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Confirm/confirm.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Confirm/types.d.ts +4 -2
- package/lib/typescript/src/components/ui/Confirm/types.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/DrawerHeader/DrawerHeader.d.ts +1 -1
- package/lib/typescript/src/components/ui/DrawerHeader/DrawerHeader.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/DrawerHeader/styles.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/DrawerHeader/types.d.ts +3 -1
- package/lib/typescript/src/components/ui/DrawerHeader/types.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Empty/Empty.d.ts +2 -2
- package/lib/typescript/src/components/ui/Empty/Empty.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Empty/types.d.ts +3 -0
- package/lib/typescript/src/components/ui/Empty/types.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/EntryCard/EntryCard.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/EntryCard/styles.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/EntryCard/types.d.ts +2 -2
- package/lib/typescript/src/components/ui/EntryCard/types.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Form/FormRow.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Form/styles.d.ts +1 -0
- package/lib/typescript/src/components/ui/Form/styles.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Form/types.d.ts +7 -2
- package/lib/typescript/src/components/ui/Form/types.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Grid/Grid.d.ts +1 -1
- package/lib/typescript/src/components/ui/Grid/Grid.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Grid/styles.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Grid/types.d.ts +4 -1
- package/lib/typescript/src/components/ui/Grid/types.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Icon/Icon.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/IconButton/IconButton.d.ts +1 -1
- package/lib/typescript/src/components/ui/IconButton/IconButton.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/IconButton/types.d.ts +7 -2
- package/lib/typescript/src/components/ui/IconButton/types.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Input/Input.d.ts +16 -16
- package/lib/typescript/src/components/ui/Input/types.d.ts +3 -2
- package/lib/typescript/src/components/ui/Input/types.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Logo/Logo.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/NavBar/NavBar.d.ts +8 -1
- package/lib/typescript/src/components/ui/NavBar/NavBar.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/NavBar/types.d.ts +5 -1
- package/lib/typescript/src/components/ui/NavBar/types.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/PasswordInput/PasswordInput.d.ts +13 -5
- package/lib/typescript/src/components/ui/PasswordInput/PasswordInput.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/PasswordInput/styles.d.ts +1 -1
- package/lib/typescript/src/components/ui/PasswordInput/styles.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/PasswordInput/types.d.ts +7 -2
- package/lib/typescript/src/components/ui/PasswordInput/types.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Pulse/Pulse.d.ts +1 -1
- package/lib/typescript/src/components/ui/Pulse/Pulse.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Pulse/PulseDot.d.ts +1 -1
- package/lib/typescript/src/components/ui/Pulse/PulseDot.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Pulse/types.d.ts +5 -0
- package/lib/typescript/src/components/ui/Pulse/types.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Pulse/usePulse.web.d.ts +12 -8
- package/lib/typescript/src/components/ui/Pulse/usePulse.web.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Radio/Radio.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Radio/RadioGroup.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Radio/styles.d.ts +4 -2
- package/lib/typescript/src/components/ui/Radio/styles.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Reveal/Reveal.web.d.ts +9 -0
- package/lib/typescript/src/components/ui/Reveal/Reveal.web.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Search/Search.d.ts +16 -15
- package/lib/typescript/src/components/ui/Search/Search.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Search/types.d.ts +3 -1
- package/lib/typescript/src/components/ui/Search/types.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Segmented/Segmented.d.ts +1 -1
- package/lib/typescript/src/components/ui/Segmented/Segmented.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Segmented/styles.d.ts +1 -1
- package/lib/typescript/src/components/ui/Segmented/styles.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Segmented/types.d.ts +2 -0
- package/lib/typescript/src/components/ui/Segmented/types.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Skeleton/Skeleton.d.ts +3 -2
- package/lib/typescript/src/components/ui/Skeleton/Skeleton.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Spinner/Spinner.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Spinner/Spinner.web.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Spinner/shared.d.ts +5 -0
- package/lib/typescript/src/components/ui/Spinner/shared.d.ts.map +1 -0
- package/lib/typescript/src/components/ui/StatusDot/StatusDot.d.ts +1 -5
- package/lib/typescript/src/components/ui/StatusDot/StatusDot.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/StatusDot/styles.d.ts +1 -1
- package/lib/typescript/src/components/ui/StatusDot/types.d.ts +13 -1
- package/lib/typescript/src/components/ui/StatusDot/types.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Stepper/Stepper.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Switch/Switch.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Switch/Switch.web.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Switch/styles.d.ts +7 -1
- package/lib/typescript/src/components/ui/Switch/styles.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/TabBar/TabBar.d.ts +2 -2
- package/lib/typescript/src/components/ui/TabBar/TabBar.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/TabBar/styles.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/TabBar/types.d.ts +3 -0
- package/lib/typescript/src/components/ui/TabBar/types.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Tabs/Tabs.d.ts +1 -1
- package/lib/typescript/src/components/ui/Tabs/Tabs.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Tabs/styles.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Tabs/types.d.ts +9 -1
- package/lib/typescript/src/components/ui/Tabs/types.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Tag/styles.d.ts +2 -1
- package/lib/typescript/src/components/ui/Tag/styles.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Tag/types.d.ts +6 -2
- package/lib/typescript/src/components/ui/Tag/types.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/TextField/TextFieldBase.d.ts +16 -16
- package/lib/typescript/src/components/ui/TextField/TextFieldBase.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Textarea/Textarea.d.ts +16 -16
- package/lib/typescript/src/components/ui/Textarea/types.d.ts +2 -1
- package/lib/typescript/src/components/ui/Textarea/types.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Thumbnail/Thumbnail.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Thumbnail/styles.d.ts +3 -0
- package/lib/typescript/src/components/ui/Thumbnail/styles.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Toast/ToastHost.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Toast/ToastHost.web.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Toast/styles.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Toast/toast.d.ts +0 -5
- package/lib/typescript/src/components/ui/Toast/toast.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/Toast/types.d.ts +1 -1
- package/lib/typescript/src/components/ui/Toast/types.d.ts.map +1 -1
- package/lib/typescript/src/components/ui/shared/badgeStyles.d.ts +27 -0
- package/lib/typescript/src/components/ui/shared/badgeStyles.d.ts.map +1 -0
- package/lib/typescript/src/icons/data.d.ts +1 -1
- package/lib/typescript/src/icons/data.d.ts.map +1 -1
- package/lib/typescript/src/icons/types.d.ts +18 -12
- package/lib/typescript/src/icons/types.d.ts.map +1 -1
- package/lib/typescript/src/theme/colors.d.ts +9 -3
- package/lib/typescript/src/theme/colors.d.ts.map +1 -1
- package/lib/typescript/src/theme/index.d.ts +3 -2
- package/lib/typescript/src/theme/index.d.ts.map +1 -1
- package/lib/typescript/src/theme/scale.d.ts.map +1 -1
- package/lib/typescript/src/theme/shadow.d.ts +8 -8
- package/lib/typescript/src/theme/shadow.d.ts.map +1 -1
- package/lib/typescript/src/theme/tokens.d.ts +7 -3
- package/lib/typescript/src/theme/tokens.d.ts.map +1 -1
- package/lib/typescript/src/theme/usePrefersReducedMotion.d.ts +8 -0
- package/lib/typescript/src/theme/usePrefersReducedMotion.d.ts.map +1 -0
- package/lib/typescript/src/theme/usePrefersReducedMotion.web.d.ts +6 -0
- package/lib/typescript/src/theme/usePrefersReducedMotion.web.d.ts.map +1 -0
- package/lib/typescript/src/theme/useTheme.d.ts.map +1 -1
- package/lib/typescript/src/utils/logger/logger.d.ts.map +1 -1
- package/lib/typescript/src/utils/testID/testID.d.ts +6 -3
- package/lib/typescript/src/utils/testID/testID.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/components/business/AvatarWithRing/AvatarWithRing.tsx +5 -4
- package/src/components/business/AvatarWithRing/styles.ts +21 -3
- package/src/components/business/AvatarWithRing/types.ts +3 -1
- package/src/components/business/Decorations/GradientWash.tsx +46 -22
- package/src/components/business/Decorations/RadialHalo.tsx +8 -4
- package/src/components/business/Decorations/ScreenBackdrop.tsx +23 -5
- package/src/components/business/Decorations/index.ts +4 -0
- package/src/components/business/Decorations/types.ts +2 -0
- package/src/components/business/GlassStats/GlassStats.tsx +8 -4
- package/src/components/business/GlassStats/types.ts +6 -0
- package/src/components/business/VersionPill/VersionPill.tsx +46 -6
- package/src/components/business/VersionPill/styles.ts +1 -1
- package/src/components/business/VersionPill/types.ts +13 -1
- package/src/components/business/index.ts +1 -0
- package/src/components/business/useSvgId.ts +17 -0
- package/src/components/ui/Avatar/Avatar.tsx +17 -10
- package/src/components/ui/Avatar/styles.ts +7 -7
- package/src/components/ui/Avatar/types.ts +3 -1
- package/src/components/ui/BlurLayer/BlurLayer.tsx +4 -1
- package/src/components/ui/BlurLayer/BlurLayer.web.tsx +7 -1
- package/src/components/ui/Button/Button.tsx +2 -1
- package/src/components/ui/Button/ButtonBase.tsx +26 -2
- package/src/components/ui/Button/styles.ts +27 -25
- package/src/components/ui/Button/types.ts +1 -1
- package/src/components/ui/Card/Card.tsx +17 -7
- package/src/components/ui/Card/styles.ts +5 -0
- package/src/components/ui/Card/types.ts +4 -4
- package/src/components/ui/Carousel/Carousel.tsx +44 -15
- package/src/components/ui/Carousel/index.ts +1 -1
- package/src/components/ui/Carousel/types.ts +5 -0
- package/src/components/ui/Cell/Cell.tsx +28 -6
- package/src/components/ui/Cell/Leading.tsx +2 -2
- package/src/components/ui/Cell/List.tsx +14 -8
- package/src/components/ui/Cell/styles.ts +8 -5
- package/src/components/ui/Cell/types.ts +5 -2
- package/src/components/ui/Checkbox/Checkbox.tsx +18 -5
- package/src/components/ui/Checkbox/styles.ts +8 -0
- package/src/components/ui/Chip/Chip.tsx +20 -5
- package/src/components/ui/Chip/types.ts +2 -0
- package/src/components/ui/Confirm/ConfirmHost.tsx +26 -10
- package/src/components/ui/Confirm/confirm.ts +8 -0
- package/src/components/ui/Confirm/types.ts +4 -2
- package/src/components/ui/DrawerHeader/DrawerHeader.tsx +18 -12
- package/src/components/ui/DrawerHeader/styles.ts +10 -6
- package/src/components/ui/DrawerHeader/types.ts +3 -1
- package/src/components/ui/Empty/Empty.tsx +5 -4
- package/src/components/ui/Empty/types.ts +3 -0
- package/src/components/ui/EntryCard/EntryCard.tsx +5 -3
- package/src/components/ui/EntryCard/styles.ts +13 -4
- package/src/components/ui/EntryCard/types.ts +2 -2
- package/src/components/ui/Form/FormRow.tsx +7 -1
- package/src/components/ui/Form/styles.ts +2 -0
- package/src/components/ui/Form/types.ts +7 -2
- package/src/components/ui/Grid/Grid.tsx +42 -25
- package/src/components/ui/Grid/styles.ts +8 -20
- package/src/components/ui/Grid/types.ts +4 -1
- package/src/components/ui/Icon/Icon.tsx +42 -27
- package/src/components/ui/IconButton/IconButton.tsx +2 -0
- package/src/components/ui/IconButton/types.ts +8 -2
- package/src/components/ui/Input/types.ts +3 -2
- package/src/components/ui/Logo/Logo.tsx +2 -1
- package/src/components/ui/NavBar/NavBar.tsx +16 -2
- package/src/components/ui/NavBar/types.ts +5 -1
- package/src/components/ui/PasswordInput/PasswordInput.tsx +77 -43
- package/src/components/ui/PasswordInput/styles.ts +1 -1
- package/src/components/ui/PasswordInput/types.ts +7 -2
- package/src/components/ui/Pulse/Pulse.tsx +2 -1
- package/src/components/ui/Pulse/PulseDot.tsx +7 -6
- package/src/components/ui/Pulse/types.ts +6 -0
- package/src/components/ui/Pulse/usePulse.web.ts +50 -33
- package/src/components/ui/Radio/Radio.tsx +29 -6
- package/src/components/ui/Radio/RadioGroup.tsx +10 -3
- package/src/components/ui/Radio/styles.ts +9 -2
- package/src/components/ui/Reveal/Reveal.web.tsx +18 -3
- package/src/components/ui/Search/Search.tsx +22 -9
- package/src/components/ui/Search/types.ts +7 -1
- package/src/components/ui/Segmented/Segmented.tsx +8 -3
- package/src/components/ui/Segmented/styles.ts +4 -2
- package/src/components/ui/Segmented/types.ts +2 -0
- package/src/components/ui/Skeleton/Skeleton.tsx +9 -8
- package/src/components/ui/Spinner/Spinner.tsx +17 -17
- package/src/components/ui/Spinner/Spinner.web.tsx +7 -15
- package/src/components/ui/Spinner/shared.ts +37 -0
- package/src/components/ui/StatusDot/StatusDot.tsx +21 -3
- package/src/components/ui/StatusDot/styles.ts +1 -1
- package/src/components/ui/StatusDot/types.ts +14 -1
- package/src/components/ui/Stepper/Stepper.tsx +45 -10
- package/src/components/ui/Switch/Switch.tsx +4 -10
- package/src/components/ui/Switch/Switch.web.tsx +2 -8
- package/src/components/ui/Switch/styles.ts +10 -1
- package/src/components/ui/TabBar/TabBar.tsx +14 -6
- package/src/components/ui/TabBar/styles.ts +9 -21
- package/src/components/ui/TabBar/types.ts +3 -0
- package/src/components/ui/Tabs/Tabs.tsx +24 -5
- package/src/components/ui/Tabs/styles.ts +6 -2
- package/src/components/ui/Tabs/types.ts +10 -1
- package/src/components/ui/Tag/styles.ts +18 -10
- package/src/components/ui/Tag/types.ts +6 -2
- package/src/components/ui/TextField/TextFieldBase.tsx +31 -6
- package/src/components/ui/Textarea/types.ts +2 -1
- package/src/components/ui/Thumbnail/Thumbnail.tsx +14 -3
- package/src/components/ui/Thumbnail/styles.ts +6 -2
- package/src/components/ui/Toast/ToastHost.tsx +16 -8
- package/src/components/ui/Toast/ToastHost.web.tsx +26 -4
- package/src/components/ui/Toast/styles.ts +2 -0
- package/src/components/ui/Toast/toast.ts +35 -2
- package/src/components/ui/Toast/types.ts +1 -1
- package/src/components/ui/shared/badgeStyles.ts +36 -0
- package/src/icons/data.ts +30 -0
- package/src/icons/types.ts +25 -10
- package/src/theme/colors.ts +29 -10
- package/src/theme/index.ts +10 -1
- package/src/theme/scale.ts +5 -1
- package/src/theme/shadow.ts +33 -24
- package/src/theme/tokens.ts +10 -5
- package/src/theme/usePrefersReducedMotion.ts +9 -0
- package/src/theme/usePrefersReducedMotion.web.ts +27 -0
- package/src/theme/useTheme.ts +15 -0
- package/src/utils/logger/logger.ts +5 -1
- package/src/utils/testID/testID.ts +6 -3
- package/lib/module/components/index.js +0 -5
- package/lib/module/components/index.js.map +0 -1
- package/lib/typescript/src/components/index.d.ts +0 -3
- package/lib/typescript/src/components/index.d.ts.map +0 -1
- package/src/components/index.ts +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","ButtonBase","Icon","jsx","_jsx","IconButton","icon","onPress","size","variant","color","disabled","accessibilityLabel","accessibilityHint","style","testID","square","children","sizing","palette","name","fs","fg"],"sourceRoot":"../../../../../src","sources":["components/ui/IconButton/IconButton.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,QAAQ,yBAAsB;AACjD,SAASC,IAAI,QAAQ,kBAAS;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAG/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CAAC;EACzBC,IAAI;EACJC,OAAO;EACPC,IAAI,GAAG,IAAI;EACXC,OAAO,GAAG,OAAO;EACjBC,KAAK;EACLC,QAAQ;EACRC,kBAAkB;EAClBC,iBAAiB;EACjBC,KAAK;EACLC;AACe,CAAC,EAAqB;EACrC,
|
|
1
|
+
{"version":3,"names":["React","ButtonBase","Icon","jsx","_jsx","IconButton","icon","onPress","size","variant","color","disabled","loading","accessibilityLabel","accessibilityHint","style","testID","square","children","sizing","palette","name","fs","fg"],"sourceRoot":"../../../../../src","sources":["components/ui/IconButton/IconButton.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,QAAQ,yBAAsB;AACjD,SAASC,IAAI,QAAQ,kBAAS;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAG/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CAAC;EACzBC,IAAI;EACJC,OAAO;EACPC,IAAI,GAAG,IAAI;EACXC,OAAO,GAAG,OAAO;EACjBC,KAAK;EACLC,QAAQ;EACRC,OAAO;EACPC,kBAAkB;EAClBC,iBAAiB;EACjBC,KAAK;EACLC;AACe,CAAC,EAAqB;EACrC,oBACEZ,IAAA,CAACH,UAAU;IACTgB,MAAM;IACNV,OAAO,EAAEA,OAAQ;IACjBC,IAAI,EAAEA,IAAK;IACXC,OAAO,EAAEA,OAAQ;IACjBG,OAAO,EAAEA,OAAQ;IACjBD,QAAQ,EAAEA,QAAS;IACnBE,kBAAkB,EAAEA,kBAAmB;IACvCC,iBAAiB,EAAEA,iBAAkB;IACrCC,KAAK,EAAEA,KAAM;IACbC,MAAM,EAAEA,MAAO;IAAAE,QAAA,EAEdA,CAAC;MAAEC,MAAM;MAAEC;IAAQ,CAAC,kBACnBhB,IAAA,CAACF,IAAI;MAACmB,IAAI,EAAEf,IAAK;MAACE,IAAI,EAAEW,MAAM,CAACG,EAAE,GAAG,CAAE;MAACZ,KAAK,EAAEA,KAAK,IAAIU,OAAO,CAACG;IAAG,CAAE;EACrE,CACS,CAAC;AAEjB","ignoreList":[]}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { Image } from 'react-native';
|
|
5
|
+
import { r } from "../../../theme/index.js";
|
|
5
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
7
|
/**
|
|
7
8
|
* 品牌 logo 容器组件 —— 提供尺寸 / 圆角 / a11y 标准化包装。
|
|
@@ -14,7 +15,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
14
15
|
*/
|
|
15
16
|
export function Logo({
|
|
16
17
|
source,
|
|
17
|
-
size = 64,
|
|
18
|
+
size = r(64),
|
|
18
19
|
borderRadius,
|
|
19
20
|
label = 'Logo',
|
|
20
21
|
style,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Image","jsx","_jsx","Logo","source","size","borderRadius","label","style","testID","accessibilityLabel","width","height","resizeMode"],"sourceRoot":"../../../../../src","sources":["components/ui/Logo/Logo.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;
|
|
1
|
+
{"version":3,"names":["React","Image","r","jsx","_jsx","Logo","source","size","borderRadius","label","style","testID","accessibilityLabel","width","height","resizeMode"],"sourceRoot":"../../../../../src","sources":["components/ui/Logo/Logo.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,QAAQ,cAAc;AACpC,SAASC,CAAC,QAAQ,yBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,IAAIA,CAAC;EACnBC,MAAM;EACNC,IAAI,GAAGL,CAAC,CAAC,EAAE,CAAC;EACZM,YAAY;EACZC,KAAK,GAAG,MAAM;EACdC,KAAK;EACLC;AACS,CAAC,EAAqB;EAC/B,oBACEP,IAAA,CAACH,KAAK;IACJK,MAAM,EAAEA,MAAO;IACfM,kBAAkB,EAAEH,KAAM;IAC1BC,KAAK,EAAE,CACL;MACEG,KAAK,EAAEN,IAAI;MACXO,MAAM,EAAEP,IAAI;MACZC,YAAY,EAAEA,YAAY,IAAID,IAAI,GAAG;IACvC,CAAC,EACDG,KAAK,CACL;IACFK,UAAU,EAAC,OAAO;IAClBJ,MAAM,EAAEA;EAAO,CAChB,CAAC;AAEN","ignoreList":[]}
|
|
@@ -7,9 +7,12 @@ import { IconButton } from "../IconButton/index.js";
|
|
|
7
7
|
import { isSlot } from "./isSlot.js";
|
|
8
8
|
import { makeStyles } from "./styles.js";
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
-
/** NavBarSlotConfig → IconButton(variant='ghost' + 外部 tint)。
|
|
11
|
-
* accessibilityLabel 必填(IconButton 强制),fallback 到 icon 名。 */
|
|
10
|
+
/** NavBarSlotConfig → IconButton(variant='ghost' + 外部 tint)。 */
|
|
12
11
|
function renderSlot(slot, tint) {
|
|
12
|
+
// [L-50] 缺 accessibilityLabel 时 dev 告警 —— 回退读英文 icon 名(如 "menu")体验不佳。
|
|
13
|
+
if (!slot.accessibilityLabel && typeof __DEV__ !== 'undefined' && __DEV__) {
|
|
14
|
+
console.warn(`NavBar slot(icon="${slot.icon}")未传 accessibilityLabel,SR 将读出 icon 名,请传人类可读短语。`);
|
|
15
|
+
}
|
|
13
16
|
return /*#__PURE__*/_jsx(IconButton, {
|
|
14
17
|
icon: slot.icon,
|
|
15
18
|
onPress: slot.onPress,
|
|
@@ -25,12 +28,21 @@ function resolveSlot(slot, tint) {
|
|
|
25
28
|
if (isSlot(slot)) return renderSlot(slot, tint);
|
|
26
29
|
return slot;
|
|
27
30
|
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 安全区归属:NavBar **不**内置 top safe-area inset。
|
|
34
|
+
* 宿主页面负责处理(推荐做法:在屏幕根容器或 Stack.Screen header 里
|
|
35
|
+
* 用 `<SafeAreaView edges={['top']}>` 包住 NavBar,或配合
|
|
36
|
+
* `react-navigation` 的 `headerStatusBarHeight` 选项)。
|
|
37
|
+
* 这样 NavBar 可在任何场景复用(modal、底部抽屉 header 等不需要 top inset)。
|
|
38
|
+
*/
|
|
28
39
|
export function NavBar({
|
|
29
40
|
title,
|
|
30
41
|
subtitle,
|
|
31
42
|
left,
|
|
32
43
|
right,
|
|
33
44
|
variant = 'default',
|
|
45
|
+
style,
|
|
34
46
|
testID
|
|
35
47
|
}) {
|
|
36
48
|
const c = useColors();
|
|
@@ -43,7 +55,7 @@ export function NavBar({
|
|
|
43
55
|
const tint = isBrand ? c.onPrimary : c.foreground;
|
|
44
56
|
const subtint = isBrand ? c.onPrimaryMuted : c.foregroundSubtle;
|
|
45
57
|
return /*#__PURE__*/_jsxs(View, {
|
|
46
|
-
style: [styles.bar, isBrand && styles.barBrand, isTransparent && styles.barTransparent],
|
|
58
|
+
style: [styles.bar, isBrand && styles.barBrand, isTransparent && styles.barTransparent, style],
|
|
47
59
|
testID: testID,
|
|
48
60
|
children: [/*#__PURE__*/_jsx(View, {
|
|
49
61
|
style: styles.side,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Text","View","useColors","useThemedStyles","IconButton","isSlot","makeStyles","jsx","_jsx","jsxs","_jsxs","renderSlot","slot","tint","icon","onPress","variant","color","
|
|
1
|
+
{"version":3,"names":["React","Text","View","useColors","useThemedStyles","IconButton","isSlot","makeStyles","jsx","_jsx","jsxs","_jsxs","renderSlot","slot","tint","accessibilityLabel","__DEV__","console","warn","icon","onPress","variant","color","resolveSlot","NavBar","title","subtitle","left","right","style","testID","c","styles","isBrand","isTransparent","onPrimary","foreground","subtint","onPrimaryMuted","foregroundSubtle","bar","barBrand","barTransparent","children","side","center","numberOfLines","sideRight"],"sourceRoot":"../../../../../src","sources":["components/ui/NavBar/NavBar.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,50 +1,79 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import React, { useState } from 'react';
|
|
3
|
+
import React, { forwardRef, useState } from 'react';
|
|
4
4
|
import { Pressable } from 'react-native-gesture-handler';
|
|
5
5
|
import { Icon } from "../Icon/index.js";
|
|
6
6
|
import { Input } from "../Input/index.js";
|
|
7
|
-
import { useColors } from "../../../theme/index.js";
|
|
7
|
+
import { control, fixed, r, useColors } from "../../../theme/index.js";
|
|
8
|
+
import { childTestID } from "../../../utils/testID/index.js";
|
|
8
9
|
import { styles } from "./styles.js";
|
|
9
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
|
|
11
|
+
/**
|
|
12
|
+
* 密码 Input —— Input + leading lock + trailing eye 切换明文 / 密文。
|
|
13
|
+
*
|
|
14
|
+
* [L-32] 增强:
|
|
15
|
+
* - forwardRef<TextInput> —— 业务表单 focus() 聚焦
|
|
16
|
+
* - inputProps 类型改为 Omit<TextInputProps,'secureTextEntry'>
|
|
17
|
+
* - 补 textContentType='password' / autoComplete='current-password' / autoCapitalize='none' 默认值
|
|
18
|
+
* - 暴露 error / disabled 透传给底层 Input
|
|
19
|
+
*
|
|
20
|
+
* showPw 内部 useState,caller 只关心 value/onChangeText。
|
|
21
|
+
* a11y:label 已表达"显示/隐藏密码"意图,不再加 accessibilityHint(避免 SR 朗读 over-hint)。
|
|
22
|
+
*/
|
|
23
|
+
export const PasswordInput = /*#__PURE__*/forwardRef(function PasswordInput({
|
|
15
24
|
value,
|
|
16
25
|
onChangeText,
|
|
17
26
|
placeholder = '请输入密码',
|
|
18
27
|
testID,
|
|
28
|
+
error,
|
|
29
|
+
disabled,
|
|
19
30
|
inputProps
|
|
20
|
-
}) {
|
|
31
|
+
}, ref) {
|
|
21
32
|
const c = useColors();
|
|
22
33
|
const [showPw, setShowPw] = useState(false);
|
|
23
34
|
return /*#__PURE__*/_jsx(Input, {
|
|
35
|
+
ref: ref,
|
|
24
36
|
testID: testID,
|
|
25
37
|
value: value,
|
|
26
38
|
onChangeText: onChangeText,
|
|
27
39
|
placeholder: placeholder,
|
|
40
|
+
error: error,
|
|
41
|
+
disabled: disabled
|
|
42
|
+
// [L-32] 补 textContentType / autoComplete / autoCapitalize 默认值 —— 提升密码自动填充体验
|
|
43
|
+
,
|
|
44
|
+
textContentType: "password",
|
|
45
|
+
autoComplete: "current-password",
|
|
46
|
+
autoCapitalize: "none",
|
|
28
47
|
...inputProps,
|
|
48
|
+
// secureTextEntry 在 inputProps spread 之后覆盖,确保组件自管不被 caller 干扰
|
|
29
49
|
secureTextEntry: !showPw,
|
|
30
50
|
leading: /*#__PURE__*/_jsx(Icon, {
|
|
31
51
|
name: "lock",
|
|
32
|
-
size: 18,
|
|
52
|
+
size: r(18),
|
|
33
53
|
color: c.iconFaint40
|
|
34
54
|
}),
|
|
35
55
|
trailing: /*#__PURE__*/_jsx(Pressable, {
|
|
36
|
-
testID: testID
|
|
56
|
+
testID: childTestID(testID, 'toggle'),
|
|
37
57
|
style: styles.eyeBtn,
|
|
38
58
|
onPress: () => setShowPw(v => !v),
|
|
39
59
|
accessibilityRole: "button",
|
|
40
|
-
accessibilityLabel: showPw ? '隐藏密码' : '显示密码'
|
|
41
|
-
|
|
60
|
+
accessibilityLabel: showPw ? '隐藏密码' : '显示密码'
|
|
61
|
+
// [M-7] eye icon r(16)≈16pt;Input 高 control.md≈36pt 限制垂直扩展
|
|
62
|
+
// vertical 走 (44-control.md)/2≈4;horizontal 走 (44-16)/2=14
|
|
63
|
+
,
|
|
64
|
+
hitSlop: {
|
|
65
|
+
top: Math.round((fixed.hitTarget - control.md) / 2),
|
|
66
|
+
bottom: Math.round((fixed.hitTarget - control.md) / 2),
|
|
67
|
+
left: Math.round((fixed.hitTarget - r(16)) / 2),
|
|
68
|
+
right: Math.round((fixed.hitTarget - r(16)) / 2)
|
|
69
|
+
},
|
|
42
70
|
children: /*#__PURE__*/_jsx(Icon, {
|
|
43
71
|
name: showPw ? 'eye' : 'eye-off',
|
|
44
|
-
size: 16,
|
|
72
|
+
size: r(16),
|
|
45
73
|
color: c.iconFaint40
|
|
46
74
|
})
|
|
47
75
|
})
|
|
48
76
|
});
|
|
49
|
-
}
|
|
77
|
+
});
|
|
78
|
+
PasswordInput.displayName = 'PasswordInput';
|
|
50
79
|
//# sourceMappingURL=PasswordInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","Pressable","Icon","Input","useColors","styles","jsx","_jsx","PasswordInput","value","onChangeText","placeholder","testID","inputProps","c","showPw","setShowPw","secureTextEntry","leading","name","size","color","iconFaint40","trailing","
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useState","Pressable","Icon","Input","control","fixed","r","useColors","childTestID","styles","jsx","_jsx","PasswordInput","value","onChangeText","placeholder","testID","error","disabled","inputProps","ref","c","showPw","setShowPw","textContentType","autoComplete","autoCapitalize","secureTextEntry","leading","name","size","color","iconFaint40","trailing","style","eyeBtn","onPress","v","accessibilityRole","accessibilityLabel","hitSlop","top","Math","round","hitTarget","md","bottom","left","right","children","displayName"],"sourceRoot":"../../../../../src","sources":["components/ui/PasswordInput/PasswordInput.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,QAAQ,QAAQ,OAAO;AACnD,SAASC,SAAS,QAAQ,8BAA8B;AACxD,SAASC,IAAI,QAAQ,kBAAS;AAC9B,SAASC,KAAK,QAAQ,mBAAU;AAChC,SAASC,OAAO,EAAEC,KAAK,EAAEC,CAAC,EAAEC,SAAS,QAAQ,yBAAgB;AAC7D,SAASC,WAAW,QAAQ,gCAAuB;AACnD,SAASC,MAAM,QAAQ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAIlC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,aAAa,gBAAGb,UAAU,CACrC,SAASa,aAAaA,CACpB;EACEC,KAAK;EACLC,YAAY;EACZC,WAAW,GAAG,OAAO;EACrBC,MAAM;EACNC,KAAK;EACLC,QAAQ;EACRC;AACF,CAAC,EACDC,GAAG,EACgB;EACnB,MAAMC,CAAC,GAAGd,SAAS,CAAC,CAAC;EACrB,MAAM,CAACe,MAAM,EAAEC,SAAS,CAAC,GAAGvB,QAAQ,CAAC,KAAK,CAAC;EAE3C,oBACEW,IAAA,CAACR,KAAK;IACJiB,GAAG,EAAEA,GAAI;IACTJ,MAAM,EAAEA,MAAO;IACfH,KAAK,EAAEA,KAAM;IACbC,YAAY,EAAEA,YAAa;IAC3BC,WAAW,EAAEA,WAAY;IACzBE,KAAK,EAAEA,KAAM;IACbC,QAAQ,EAAEA;IACV;IAAA;IACAM,eAAe,EAAC,UAAU;IAC1BC,YAAY,EAAC,kBAAkB;IAC/BC,cAAc,EAAC,MAAM;IAAA,GACjBP,UAAU;IACd;IACAQ,eAAe,EAAE,CAACL,MAAO;IACzBM,OAAO,eAAEjB,IAAA,CAACT,IAAI;MAAC2B,IAAI,EAAC,MAAM;MAACC,IAAI,EAAExB,CAAC,CAAC,EAAE,CAAE;MAACyB,KAAK,EAAEV,CAAC,CAACW;IAAY,CAAE,CAAE;IACjEC,QAAQ,eACNtB,IAAA,CAACV,SAAS;MACRe,MAAM,EAAER,WAAW,CAACQ,MAAM,EAAE,QAAQ,CAAE;MACtCkB,KAAK,EAAEzB,MAAM,CAAC0B,MAAO;MACrBC,OAAO,EAAEA,CAAA,KAAMb,SAAS,CAAEc,CAAC,IAAK,CAACA,CAAC,CAAE;MACpCC,iBAAiB,EAAC,QAAQ;MAC1BC,kBAAkB,EAAEjB,MAAM,GAAG,MAAM,GAAG;MACtC;MACA;MAAA;MACAkB,OAAO,EAAE;QACPC,GAAG,EAAEC,IAAI,CAACC,KAAK,CAAC,CAACtC,KAAK,CAACuC,SAAS,GAAGxC,OAAO,CAACyC,EAAE,IAAI,CAAC,CAAC;QACnDC,MAAM,EAAEJ,IAAI,CAACC,KAAK,CAAC,CAACtC,KAAK,CAACuC,SAAS,GAAGxC,OAAO,CAACyC,EAAE,IAAI,CAAC,CAAC;QACtDE,IAAI,EAAEL,IAAI,CAACC,KAAK,CAAC,CAACtC,KAAK,CAACuC,SAAS,GAAGtC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;QAC/C0C,KAAK,EAAEN,IAAI,CAACC,KAAK,CAAC,CAACtC,KAAK,CAACuC,SAAS,GAAGtC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC;MACjD,CAAE;MAAA2C,QAAA,eAEFtC,IAAA,CAACT,IAAI;QACH2B,IAAI,EAAEP,MAAM,GAAG,KAAK,GAAG,SAAU;QACjCQ,IAAI,EAAExB,CAAC,CAAC,EAAE,CAAE;QACZyB,KAAK,EAAEV,CAAC,CAACW;MAAY,CACtB;IAAC,CACO;EACZ,CACF,CAAC;AAEN,CACF,CAAC;AAEDpB,aAAa,CAACsC,WAAW,GAAG,eAAe","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { StyleSheet } from 'react-native';
|
|
4
4
|
import { space } from "../../../theme/index.js";
|
|
5
5
|
|
|
6
|
-
/** eye Pressable hit area
|
|
6
|
+
/** eye Pressable hit area 微间距 4px。 */
|
|
7
7
|
export const styles = StyleSheet.create({
|
|
8
8
|
eyeBtn: {
|
|
9
9
|
paddingHorizontal: space['1']
|
|
@@ -6,12 +6,13 @@ import { usePulse } from './usePulse';
|
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
export function Pulse({
|
|
8
8
|
children,
|
|
9
|
+
style,
|
|
9
10
|
testID,
|
|
10
11
|
...opts
|
|
11
12
|
}) {
|
|
12
13
|
const animatedStyle = usePulse(opts);
|
|
13
14
|
return /*#__PURE__*/_jsx(Animated.View, {
|
|
14
|
-
style: animatedStyle,
|
|
15
|
+
style: [animatedStyle, style],
|
|
15
16
|
testID: testID,
|
|
16
17
|
children: children
|
|
17
18
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Animated","usePulse","jsx","_jsx","Pulse","children","testID","opts","animatedStyle","View"
|
|
1
|
+
{"version":3,"names":["React","Animated","usePulse","jsx","_jsx","Pulse","children","style","testID","opts","animatedStyle","View"],"sourceRoot":"../../../../../src","sources":["components/ui/Pulse/Pulse.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,yBAAyB;AAC9C,SAASC,QAAQ,QAAQ,YAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGtC,OAAO,SAASC,KAAKA,CAAC;EACpBC,QAAQ;EACRC,KAAK;EACLC,MAAM;EACN,GAAGC;AACuC,CAAC,EAAqB;EAChE,MAAMC,aAAa,GAAGR,QAAQ,CAACO,IAAI,CAAC;EACpC,oBACEL,IAAA,CAACH,QAAQ,CAACU,IAAI;IAACJ,KAAK,EAAE,CAACG,aAAa,EAAEH,KAAK,CAAE;IAACC,MAAM,EAAEA,MAAO;IAAAF,QAAA,EAC1DA;EAAQ,CACI,CAAC;AAEpB","ignoreList":[]}
|
|
@@ -2,25 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import Animated from 'react-native-reanimated';
|
|
5
|
-
import { useColors } from "../../../theme/index.js";
|
|
5
|
+
import { r, useColors } from "../../../theme/index.js";
|
|
6
6
|
import { usePulse } from './usePulse';
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
export function PulseDot({
|
|
9
|
-
size = 6,
|
|
9
|
+
size = r(6),
|
|
10
10
|
color,
|
|
11
11
|
from = 0.5,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
testID
|
|
12
|
+
style,
|
|
13
|
+
testID,
|
|
14
|
+
...opts
|
|
16
15
|
} = {}) {
|
|
17
16
|
const c = useColors();
|
|
18
17
|
const fill = color ?? c.primary;
|
|
18
|
+
// [L-93] 只显式覆盖 from(默认 0.5 与 usePulse 的 0.6 不同),其余 opts 透传 usePulse。
|
|
19
19
|
const animatedStyle = usePulse({
|
|
20
20
|
from,
|
|
21
|
-
|
|
22
|
-
duration,
|
|
23
|
-
delay
|
|
21
|
+
...opts
|
|
24
22
|
});
|
|
25
23
|
return /*#__PURE__*/_jsx(Animated.View, {
|
|
26
24
|
style: [{
|
|
@@ -28,7 +26,7 @@ export function PulseDot({
|
|
|
28
26
|
height: size,
|
|
29
27
|
borderRadius: size / 2,
|
|
30
28
|
backgroundColor: fill
|
|
31
|
-
}, animatedStyle],
|
|
29
|
+
}, animatedStyle, style],
|
|
32
30
|
testID: testID,
|
|
33
31
|
accessibilityElementsHidden: true,
|
|
34
32
|
importantForAccessibility: "no-hide-descendants"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Animated","useColors","usePulse","jsx","_jsx","PulseDot","size","color","from","
|
|
1
|
+
{"version":3,"names":["React","Animated","r","useColors","usePulse","jsx","_jsx","PulseDot","size","color","from","style","testID","opts","c","fill","primary","animatedStyle","View","width","height","borderRadius","backgroundColor","accessibilityElementsHidden","importantForAccessibility"],"sourceRoot":"../../../../../src","sources":["components/ui/Pulse/PulseDot.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,yBAAyB;AAC9C,SAASC,CAAC,EAAEC,SAAS,QAAQ,yBAAgB;AAC7C,SAASC,QAAQ,QAAQ,YAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGtC,OAAO,SAASC,QAAQA,CAAC;EACvBC,IAAI,GAAGN,CAAC,CAAC,CAAC,CAAC;EACXO,KAAK;EACLC,IAAI,GAAG,GAAG;EACVC,KAAK;EACLC,MAAM;EACN,GAAGC;AACU,CAAC,GAAG,CAAC,CAAC,EAAqB;EACxC,MAAMC,CAAC,GAAGX,SAAS,CAAC,CAAC;EACrB,MAAMY,IAAI,GAAGN,KAAK,IAAIK,CAAC,CAACE,OAAO;EAC/B;EACA,MAAMC,aAAa,GAAGb,QAAQ,CAAC;IAAEM,IAAI;IAAE,GAAGG;EAAK,CAAC,CAAC;EACjD,oBACEP,IAAA,CAACL,QAAQ,CAACiB,IAAI;IACZP,KAAK,EAAE,CACL;MACEQ,KAAK,EAAEX,IAAI;MACXY,MAAM,EAAEZ,IAAI;MACZa,YAAY,EAAEb,IAAI,GAAG,CAAC;MACtBc,eAAe,EAAEP;IACnB,CAAC,EACDE,aAAa,EACbN,KAAK,CACL;IACFC,MAAM,EAAEA,MAAO;IACfW,2BAA2B;IAC3BC,yBAAyB,EAAC;EAAqB,CAChD,CAAC;AAEN","ignoreList":[]}
|
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { useEffect, useState } from 'react';
|
|
4
|
+
import { usePrefersReducedMotion } from "../../../theme/index.js";
|
|
4
5
|
/**
|
|
5
6
|
* Web 端 usePulse —— RN-Web 上 reanimated 4 + worklets 0.9.x 的 useAnimatedStyle
|
|
6
7
|
* 链路会抛 `Object.keys(undefined)` TypeError(animation frame 每帧打印),pulse 卡死
|
|
7
|
-
*
|
|
8
|
-
* 返回 RN style({ opacity }),保持 native API 兼容。
|
|
8
|
+
* 在初始值。
|
|
9
9
|
*
|
|
10
10
|
* native 端走 usePulse.ts(reanimated worklet) 不动。
|
|
11
11
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
12
|
+
* [M-19] 实现方案 —— CSS transition 降级(零 rAF JS 帧):
|
|
13
|
+
* rnw 0.21 的 animationKeyframes 字段类型侧尚未稳定暴露;
|
|
14
|
+
* 且 <style> 注入在 Spinner.web.tsx 已有安全注释(不拼外部输入)——为保持
|
|
15
|
+
* 一致性,Pulse 侧不再注入第二处 <style> 标签,故采用 CSS transition 降级:
|
|
16
|
+
*
|
|
17
|
+
* - 返回 { opacity, transition } 作为 RN style(RN-Web 把 transition 透传 DOM)
|
|
18
|
+
* - setInterval 每隔 `duration` ms 在 from/to 两档切换 opacity ——
|
|
19
|
+
* setState 频率从原来的 ~60fps 降到 1 次/duration ms(参 ToastHost.web.tsx)
|
|
20
|
+
* - CSS transition 负责两档之间的视觉补间,JS 侧零插值
|
|
21
|
+
* - reduce-motion:静止于 `to`(完全显示),骨架/圆点静态呈现
|
|
15
22
|
*/
|
|
16
23
|
export function usePulse({
|
|
17
24
|
from = 0.6,
|
|
@@ -19,37 +26,51 @@ export function usePulse({
|
|
|
19
26
|
duration = 700,
|
|
20
27
|
delay = 0
|
|
21
28
|
} = {}) {
|
|
29
|
+
const reduced = usePrefersReducedMotion();
|
|
22
30
|
const [opacity, setOpacity] = useState(from);
|
|
23
31
|
useEffect(() => {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
direction = direction === 'up' ? 'down' : 'up';
|
|
41
|
-
start = now;
|
|
42
|
-
}
|
|
43
|
-
raf = requestAnimationFrame(tick);
|
|
32
|
+
// reduce-motion:不脉冲,直接停在完全显示(to),骨架/圆点静态呈现。
|
|
33
|
+
if (reduced) {
|
|
34
|
+
setOpacity(to);
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// CSS transition 模式:setInterval 只负责在 from/to 两档翻转(1 次/duration ms),
|
|
39
|
+
// 浏览器 CSS transition 负责补间 —— 与原方案 rAF 每帧 setState 相比
|
|
40
|
+
// setState 频率从 ~60fps 降到 1/(duration/1000) fps,无 JS 插值开销。
|
|
41
|
+
let timer = null;
|
|
42
|
+
let current = from;
|
|
43
|
+
const start = () => {
|
|
44
|
+
timer = setInterval(() => {
|
|
45
|
+
current = current === from ? to : from;
|
|
46
|
+
setOpacity(current);
|
|
47
|
+
}, duration);
|
|
44
48
|
};
|
|
45
|
-
|
|
49
|
+
if (delay > 0) {
|
|
50
|
+
const delayTimer = setTimeout(start, delay);
|
|
51
|
+
return () => {
|
|
52
|
+
clearTimeout(delayTimer);
|
|
53
|
+
if (timer != null) clearInterval(timer);
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
start();
|
|
46
57
|
return () => {
|
|
47
|
-
|
|
48
|
-
|
|
58
|
+
if (timer != null) clearInterval(timer);
|
|
59
|
+
};
|
|
60
|
+
}, [from, to, duration, delay, reduced]);
|
|
61
|
+
if (reduced) {
|
|
62
|
+
return {
|
|
63
|
+
opacity: to
|
|
49
64
|
};
|
|
50
|
-
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// RN-Web 把 transition 字段透传到 DOM style,实现 CSS 级平滑过渡。
|
|
68
|
+
// RN style typedef 无 transition 字段,cast any 绕过 TS strict
|
|
69
|
+
// (实际只在 web bundle 命中,DOM div 原样接受该字段)。
|
|
70
|
+
|
|
51
71
|
return {
|
|
52
|
-
opacity
|
|
72
|
+
opacity,
|
|
73
|
+
transition: `opacity ${duration}ms ease-in-out`
|
|
53
74
|
};
|
|
54
75
|
}
|
|
55
76
|
//# sourceMappingURL=usePulse.web.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useEffect","useState","usePulse","from","to","duration","delay","opacity","setOpacity","
|
|
1
|
+
{"version":3,"names":["useEffect","useState","usePrefersReducedMotion","usePulse","from","to","duration","delay","reduced","opacity","setOpacity","timer","current","start","setInterval","delayTimer","setTimeout","clearTimeout","clearInterval","transition"],"sourceRoot":"../../../../../src","sources":["components/ui/Pulse/usePulse.web.ts"],"mappings":";;AAAA,SAASA,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC3C,SAASC,uBAAuB,QAAQ,yBAAgB;AAGxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,QAAQA,CAAC;EACvBC,IAAI,GAAG,GAAG;EACVC,EAAE,GAAG,CAAC;EACNC,QAAQ,GAAG,GAAG;EACdC,KAAK,GAAG;AACI,CAAC,GAAG,CAAC,CAAC,EAAE;EACpB,MAAMC,OAAO,GAAGN,uBAAuB,CAAC,CAAC;EACzC,MAAM,CAACO,OAAO,EAAEC,UAAU,CAAC,GAAGT,QAAQ,CAACG,IAAI,CAAC;EAE5CJ,SAAS,CAAC,MAAM;IACd;IACA,IAAIQ,OAAO,EAAE;MACXE,UAAU,CAACL,EAAE,CAAC;MACd;IACF;;IAEA;IACA;IACA;IACA,IAAIM,KAA4C,GAAG,IAAI;IACvD,IAAIC,OAAO,GAAGR,IAAI;IAElB,MAAMS,KAAK,GAAGA,CAAA,KAAM;MAClBF,KAAK,GAAGG,WAAW,CAAC,MAAM;QACxBF,OAAO,GAAGA,OAAO,KAAKR,IAAI,GAAGC,EAAE,GAAGD,IAAI;QACtCM,UAAU,CAACE,OAAO,CAAC;MACrB,CAAC,EAAEN,QAAQ,CAAC;IACd,CAAC;IAED,IAAIC,KAAK,GAAG,CAAC,EAAE;MACb,MAAMQ,UAAU,GAAGC,UAAU,CAACH,KAAK,EAAEN,KAAK,CAAC;MAC3C,OAAO,MAAM;QACXU,YAAY,CAACF,UAAU,CAAC;QACxB,IAAIJ,KAAK,IAAI,IAAI,EAAEO,aAAa,CAACP,KAAK,CAAC;MACzC,CAAC;IACH;IACAE,KAAK,CAAC,CAAC;IACP,OAAO,MAAM;MACX,IAAIF,KAAK,IAAI,IAAI,EAAEO,aAAa,CAACP,KAAK,CAAC;IACzC,CAAC;EACH,CAAC,EAAE,CAACP,IAAI,EAAEC,EAAE,EAAEC,QAAQ,EAAEC,KAAK,EAAEC,OAAO,CAAC,CAAC;EAExC,IAAIA,OAAO,EAAE;IACX,OAAO;MAAEC,OAAO,EAAEJ;IAAG,CAAC;EACxB;;EAEA;EACA;EACA;;EAEA,OAAO;IAAEI,OAAO;IAAEU,UAAU,EAAE,WAAWb,QAAQ;EAAiB,CAAC;AACrE","ignoreList":[]}
|
|
@@ -3,14 +3,18 @@
|
|
|
3
3
|
import React, { useContext } from 'react';
|
|
4
4
|
import { Text, View } from 'react-native';
|
|
5
5
|
import { Pressable } from 'react-native-gesture-handler';
|
|
6
|
-
import { useColors, useThemedStyles } from "../../../theme/index.js";
|
|
6
|
+
import { fixed, pressedOpacity, r, space, useColors, useThemedStyles } from "../../../theme/index.js";
|
|
7
7
|
import { createLogger } from "../../../utils/logger/index.js";
|
|
8
|
+
import { childTestID } from "../../../utils/testID/index.js";
|
|
8
9
|
import { RadioContext } from "./RadioContext.js";
|
|
9
10
|
import { RadioGroup } from "./RadioGroup.js";
|
|
10
11
|
import { makeStyles } from "./styles.js";
|
|
11
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
13
|
const log = createLogger('Radio');
|
|
13
14
|
|
|
15
|
+
// [L-30] 模块级 Set 去重 —— "must be inside Group" 只告警一次,避免 FlatList 滚动时刷屏
|
|
16
|
+
const _warnedCtx = new Set();
|
|
17
|
+
|
|
14
18
|
/**
|
|
15
19
|
* 单个 radio 选项。必须放在 `<Radio.Group>` 里使用。
|
|
16
20
|
*/
|
|
@@ -24,15 +28,25 @@ export function Radio({
|
|
|
24
28
|
const styles = useThemedStyles(makeStyles);
|
|
25
29
|
const ctx = useContext(RadioContext);
|
|
26
30
|
if (!ctx) {
|
|
27
|
-
|
|
31
|
+
// [L-30] 去重:同一 value 的 warn 只打一次,避免渲染阶段反复刷屏
|
|
32
|
+
const warnKey = `no-ctx:${String(value)}`;
|
|
33
|
+
if (!_warnedCtx.has(warnKey)) {
|
|
34
|
+
_warnedCtx.add(warnKey);
|
|
35
|
+
log.warn('<Radio> must be used inside <Radio.Group>');
|
|
36
|
+
}
|
|
28
37
|
return /*#__PURE__*/_jsx(View, {});
|
|
29
38
|
}
|
|
30
39
|
const checked = ctx.value === value;
|
|
31
|
-
|
|
40
|
+
// [L-92] 改用 childTestID:收口 parent+id 拼接逻辑,保持空串 override 回落拼接语义
|
|
41
|
+
const resolvedTestID = childTestID(ctx.groupTestID, value, testID);
|
|
42
|
+
|
|
43
|
+
// [M-7] row 含 paddingVertical space[2](上下各 ~6pt) → 行高 ≈ r(20) + 2×space[2] ≈ 32pt
|
|
44
|
+
// 补足到 fixed.hitTarget:slop = (44 - 32) / 2 = 6
|
|
45
|
+
const hitSlopV = Math.max(0, Math.round((fixed.hitTarget - (r(20) + 2 * space[2])) / 2));
|
|
32
46
|
return /*#__PURE__*/_jsxs(Pressable, {
|
|
33
47
|
onPress: () => !disabled && ctx.onChange(value),
|
|
34
48
|
disabled: disabled,
|
|
35
|
-
hitSlop:
|
|
49
|
+
hitSlop: hitSlopV,
|
|
36
50
|
accessibilityRole: "radio",
|
|
37
51
|
accessibilityState: {
|
|
38
52
|
checked,
|
|
@@ -43,7 +57,7 @@ export function Radio({
|
|
|
43
57
|
style: ({
|
|
44
58
|
pressed
|
|
45
59
|
}) => [styles.row, {
|
|
46
|
-
opacity: disabled ? 0.5 : pressed ?
|
|
60
|
+
opacity: disabled ? 0.5 : pressed ? pressedOpacity : 1
|
|
47
61
|
}],
|
|
48
62
|
children: [/*#__PURE__*/_jsx(View, {
|
|
49
63
|
style: [styles.circle, checked && {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useContext","Text","View","Pressable","useColors","useThemedStyles","createLogger","RadioContext","RadioGroup","makeStyles","jsx","_jsx","jsxs","_jsxs","log","Radio","value","label","disabled","testID","c","styles","ctx","warn","checked","resolvedTestID","groupTestID","
|
|
1
|
+
{"version":3,"names":["React","useContext","Text","View","Pressable","fixed","pressedOpacity","r","space","useColors","useThemedStyles","createLogger","childTestID","RadioContext","RadioGroup","makeStyles","jsx","_jsx","jsxs","_jsxs","log","_warnedCtx","Set","Radio","value","label","disabled","testID","c","styles","ctx","warnKey","String","has","add","warn","checked","resolvedTestID","groupTestID","hitSlopV","Math","max","round","hitTarget","onPress","onChange","hitSlop","accessibilityRole","accessibilityState","accessibilityLabel","style","pressed","row","opacity","children","circle","borderColor","primary","dot","Group"],"sourceRoot":"../../../../../src","sources":["components/ui/Radio/Radio.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import React, { useMemo } from 'react';
|
|
4
4
|
import { View } from 'react-native';
|
|
5
5
|
import { useThemedStyles } from "../../../theme/index.js";
|
|
6
6
|
import { RadioContext } from "./RadioContext.js";
|
|
@@ -21,15 +21,19 @@ export function RadioGroup({
|
|
|
21
21
|
testID
|
|
22
22
|
}) {
|
|
23
23
|
const styles = useThemedStyles(makeStyles);
|
|
24
|
+
// [L-80b] useMemo 稳定 context value —— 避免每次渲染都产生新对象引用,
|
|
25
|
+
// 防止所有 Radio 子项因 context 变化而不必要 re-render。
|
|
26
|
+
const ctx = useMemo(() => ({
|
|
27
|
+
value,
|
|
28
|
+
onChange,
|
|
29
|
+
groupTestID: testID
|
|
30
|
+
}), [value, onChange, testID]);
|
|
24
31
|
return /*#__PURE__*/_jsx(RadioContext.Provider, {
|
|
25
|
-
value:
|
|
26
|
-
value,
|
|
27
|
-
onChange,
|
|
28
|
-
groupTestID: testID
|
|
29
|
-
},
|
|
32
|
+
value: ctx,
|
|
30
33
|
children: /*#__PURE__*/_jsx(View, {
|
|
31
34
|
style: styles.group,
|
|
32
35
|
testID: testID,
|
|
36
|
+
accessibilityRole: "radiogroup",
|
|
33
37
|
children: children
|
|
34
38
|
})
|
|
35
39
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","useThemedStyles","RadioContext","makeStyles","jsx","_jsx","RadioGroup","value","onChange","children","testID","styles","
|
|
1
|
+
{"version":3,"names":["React","useMemo","View","useThemedStyles","RadioContext","makeStyles","jsx","_jsx","RadioGroup","value","onChange","children","testID","styles","ctx","groupTestID","Provider","style","group","accessibilityRole"],"sourceRoot":"../../../../../src","sources":["components/ui/Radio/RadioGroup.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,eAAe,QAAQ,yBAAgB;AAChD,SAASC,YAAY,QAAQ,mBAAgB;AAC7C,SAASC,UAAU,QAAQ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CAAC;EACzBC,KAAK;EACLC,QAAQ;EACRC,QAAQ;EACRC;AACU,CAAC,EAAqB;EAChC,MAAMC,MAAM,GAAGV,eAAe,CAACE,UAAU,CAAC;EAC1C;EACA;EACA,MAAMS,GAAG,GAAGb,OAAO,CACjB,OAAO;IAAEQ,KAAK;IAAEC,QAAQ;IAAEK,WAAW,EAAEH;EAAO,CAAC,CAAC,EAChD,CAACH,KAAK,EAAEC,QAAQ,EAAEE,MAAM,CAC1B,CAAC;EACD,oBACEL,IAAA,CAACH,YAAY,CAACY,QAAQ;IAACP,KAAK,EAAEK,GAAI;IAAAH,QAAA,eAEhCJ,IAAA,CAACL,IAAI;MAACe,KAAK,EAAEJ,MAAM,CAACK,KAAM;MAACN,MAAM,EAAEA,MAAO;MAACO,iBAAiB,EAAC,YAAY;MAAAR,QAAA,EACtEA;IAAQ,CACL;EAAC,CACc,CAAC;AAE5B","ignoreList":[]}
|
|
@@ -5,17 +5,21 @@ import { fw, r, radius, space, type as t } from "../../../theme/index.js";
|
|
|
5
5
|
export const makeStyles = c => StyleSheet.create({
|
|
6
6
|
group: {
|
|
7
7
|
gap: space[1]
|
|
8
|
+
// [L-34] radiogroup 角色由 RadioGroup.tsx 容器 View 上设置
|
|
8
9
|
},
|
|
9
10
|
row: {
|
|
10
11
|
flexDirection: 'row',
|
|
11
12
|
alignItems: 'center',
|
|
13
|
+
// [L-37] alignSelf:'flex-start' 防止父容器拉伸(与 Chip [M-8] 同口径)
|
|
14
|
+
alignSelf: 'flex-start',
|
|
12
15
|
gap: space[4],
|
|
13
16
|
paddingVertical: space[2]
|
|
14
17
|
},
|
|
15
18
|
circle: {
|
|
16
19
|
width: r(20),
|
|
17
20
|
height: r(20),
|
|
18
|
-
|
|
21
|
+
// [L-79] radius.pill —— sentinel 999 确保任何尺寸下都是真圆
|
|
22
|
+
borderRadius: radius.pill,
|
|
19
23
|
borderWidth: r(1.5),
|
|
20
24
|
borderColor: c.outline,
|
|
21
25
|
alignItems: 'center',
|
|
@@ -24,13 +28,16 @@ export const makeStyles = c => StyleSheet.create({
|
|
|
24
28
|
dot: {
|
|
25
29
|
width: r(8),
|
|
26
30
|
height: r(8),
|
|
27
|
-
|
|
31
|
+
// [L-79] radius.pill —— 内圆点同理
|
|
32
|
+
borderRadius: radius.pill,
|
|
28
33
|
backgroundColor: c.primary
|
|
29
34
|
},
|
|
30
35
|
label: {
|
|
31
36
|
fontSize: t.sm,
|
|
32
37
|
color: c.foreground,
|
|
33
|
-
fontWeight: fw.regular
|
|
38
|
+
fontWeight: fw.regular,
|
|
39
|
+
// flexShrink:长 label 在 row 内换行/截断,不溢出也不把同行控件挤没([M-10])
|
|
40
|
+
flexShrink: 1
|
|
34
41
|
}
|
|
35
42
|
});
|
|
36
43
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","fw","r","radius","space","type","t","makeStyles","c","create","group","gap","row","flexDirection","alignItems","paddingVertical","circle","width","height","borderRadius","
|
|
1
|
+
{"version":3,"names":["StyleSheet","fw","r","radius","space","type","t","makeStyles","c","create","group","gap","row","flexDirection","alignItems","alignSelf","paddingVertical","circle","width","height","borderRadius","pill","borderWidth","borderColor","outline","justifyContent","dot","backgroundColor","primary","label","fontSize","sm","color","foreground","fontWeight","regular","flexShrink"],"sourceRoot":"../../../../../src","sources":["components/ui/Radio/styles.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,EAAE,EAAEC,CAAC,EAAEC,MAAM,EAAEC,KAAK,EAAEC,IAAI,IAAIC,CAAC,QAAQ,yBAAgB;AAGhE,OAAO,MAAMC,UAAU,GAAIC,CAAc,IACvCR,UAAU,CAACS,MAAM,CAAC;EAChBC,KAAK,EAAE;IACLC,GAAG,EAAEP,KAAK,CAAC,CAAC;IACZ;EACF,CAAC;EACDQ,GAAG,EAAE;IACHC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpB;IACAC,SAAS,EAAE,YAAqB;IAChCJ,GAAG,EAAEP,KAAK,CAAC,CAAC,CAAC;IACbY,eAAe,EAAEZ,KAAK,CAAC,CAAC;EAC1B,CAAC;EACDa,MAAM,EAAE;IACNC,KAAK,EAAEhB,CAAC,CAAC,EAAE,CAAC;IACZiB,MAAM,EAAEjB,CAAC,CAAC,EAAE,CAAC;IACb;IACAkB,YAAY,EAAEjB,MAAM,CAACkB,IAAI;IACzBC,WAAW,EAAEpB,CAAC,CAAC,GAAG,CAAC;IACnBqB,WAAW,EAAEf,CAAC,CAACgB,OAAO;IACtBV,UAAU,EAAE,QAAQ;IACpBW,cAAc,EAAE;EAClB,CAAC;EACDC,GAAG,EAAE;IACHR,KAAK,EAAEhB,CAAC,CAAC,CAAC,CAAC;IACXiB,MAAM,EAAEjB,CAAC,CAAC,CAAC,CAAC;IACZ;IACAkB,YAAY,EAAEjB,MAAM,CAACkB,IAAI;IACzBM,eAAe,EAAEnB,CAAC,CAACoB;EACrB,CAAC;EACDC,KAAK,EAAE;IACLC,QAAQ,EAAExB,CAAC,CAACyB,EAAE;IACdC,KAAK,EAAExB,CAAC,CAACyB,UAAU;IACnBC,UAAU,EAAEjC,EAAE,CAACkC,OAAO;IACtB;IACAC,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|