@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
|
@@ -6,7 +6,10 @@
|
|
|
6
6
|
// 暗色下中性阴影 shadowOpacity / elevation 全部置 0:视觉层次靠 surface 5 层
|
|
7
7
|
// 明度差表达(layered surface 替代 shadow)。
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
import { BRAND_ORANGE } from "./colors.js";
|
|
10
|
+
|
|
11
|
+
// 模块级别名保持历史可读性,同时指向 colors.ts 单一来源。
|
|
12
|
+
const BRAND = BRAND_ORANGE;
|
|
10
13
|
export const lightShadow = {
|
|
11
14
|
/** 轻提示浮起 —— Segmented active 段 */
|
|
12
15
|
subtle: {
|
|
@@ -142,8 +145,15 @@ export const lightShadow = {
|
|
|
142
145
|
elevation: 0
|
|
143
146
|
}
|
|
144
147
|
};
|
|
145
|
-
|
|
146
|
-
|
|
148
|
+
|
|
149
|
+
// readonly 加到嵌套字段:顶层 key 经同态映射已只读,但嵌套 shadowOffset 字段
|
|
150
|
+
// 在运行时仍可合法赋值(t.card.shadowOffset.height = 5 会静默串改全部共享引用)。
|
|
151
|
+
// 此处显式声明 readonly 让 tsc 在编译期捕获误改。
|
|
152
|
+
|
|
153
|
+
// darkZero 辅助函数:每次调用返回独立 offset 对象,消除多 token 共享同一 shadowOffset
|
|
154
|
+
// 引用的隐患——虽然 ShadowTokens readonly 已在类型层阻止赋值,防御深度更好。
|
|
155
|
+
const darkZero = shadowColor => ({
|
|
156
|
+
shadowColor,
|
|
147
157
|
shadowOffset: {
|
|
148
158
|
width: 0,
|
|
149
159
|
height: 0
|
|
@@ -151,17 +161,11 @@ const darkZero = {
|
|
|
151
161
|
shadowOpacity: 0,
|
|
152
162
|
shadowRadius: 0,
|
|
153
163
|
elevation: 0
|
|
154
|
-
};
|
|
164
|
+
});
|
|
155
165
|
export const darkShadow = {
|
|
156
|
-
subtle:
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
},
|
|
160
|
-
card: {
|
|
161
|
-
...darkZero,
|
|
162
|
-
shadowColor: '#000'
|
|
163
|
-
},
|
|
164
|
-
/** floating 暗色不走 darkZero:浮动胶囊在暗 bg 上需要黑色 drop shadow,
|
|
166
|
+
subtle: darkZero('#000'),
|
|
167
|
+
card: darkZero('#000'),
|
|
168
|
+
/** floating 暗色不置零:浮动胶囊在暗 bg 上需要黑色 drop shadow,
|
|
165
169
|
* 否则跟暗背景贴平,视觉无层级。 */
|
|
166
170
|
floating: {
|
|
167
171
|
shadowColor: '#000',
|
|
@@ -173,30 +177,12 @@ export const darkShadow = {
|
|
|
173
177
|
shadowRadius: 60,
|
|
174
178
|
elevation: 16
|
|
175
179
|
},
|
|
176
|
-
brandSm:
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
shadowColor: BRAND
|
|
183
|
-
},
|
|
184
|
-
brandLg: {
|
|
185
|
-
...darkZero,
|
|
186
|
-
shadowColor: BRAND
|
|
187
|
-
},
|
|
188
|
-
brandXl: {
|
|
189
|
-
...darkZero,
|
|
190
|
-
shadowColor: BRAND
|
|
191
|
-
},
|
|
192
|
-
brandAbout: {
|
|
193
|
-
...darkZero,
|
|
194
|
-
shadowColor: BRAND
|
|
195
|
-
},
|
|
196
|
-
brandAssistant: {
|
|
197
|
-
...darkZero,
|
|
198
|
-
shadowColor: BRAND
|
|
199
|
-
},
|
|
180
|
+
brandSm: darkZero(BRAND),
|
|
181
|
+
brandMd: darkZero(BRAND),
|
|
182
|
+
brandLg: darkZero(BRAND),
|
|
183
|
+
brandXl: darkZero(BRAND),
|
|
184
|
+
brandAbout: darkZero(BRAND),
|
|
185
|
+
brandAssistant: darkZero(BRAND),
|
|
200
186
|
/** brandAvatar 暗色不置零:暗色 ring 0.10 几乎隐去,靠橙光晕(0.40 比亮色 0.28 更强)
|
|
201
187
|
* 托起头像。 */
|
|
202
188
|
brandAvatar: {
|
|
@@ -221,9 +207,6 @@ export const darkShadow = {
|
|
|
221
207
|
shadowRadius: 18,
|
|
222
208
|
elevation: 6
|
|
223
209
|
},
|
|
224
|
-
none:
|
|
225
|
-
...darkZero,
|
|
226
|
-
shadowColor: 'transparent'
|
|
227
|
-
}
|
|
210
|
+
none: darkZero('transparent')
|
|
228
211
|
};
|
|
229
212
|
//# sourceMappingURL=shadow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BRAND","lightShadow","subtle","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","card","floating","brandSm","glassBar","brandMd","brandLg","brandXl","brandAbout","brandAssistant","brandAvatar","none","darkZero","darkShadow"],"sourceRoot":"../../../src","sources":["theme/shadow.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;;AAEA,
|
|
1
|
+
{"version":3,"names":["BRAND_ORANGE","BRAND","lightShadow","subtle","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","card","floating","brandSm","glassBar","brandMd","brandLg","brandXl","brandAbout","brandAssistant","brandAvatar","none","darkZero","darkShadow"],"sourceRoot":"../../../src","sources":["theme/shadow.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;;AAEA,SAASA,YAAY,QAAQ,aAAU;;AAEvC;AACA,MAAMC,KAAK,GAAGD,YAAY;AAE1B,OAAO,MAAME,WAAW,GAAG;EACzB;EACAC,MAAM,EAAE;IACNC,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAEC,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCC,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE;EACb,CAAC;EACD;EACAC,IAAI,EAAE;IACJP,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAEC,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCC,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE;EACb,CAAC;EACD;EACAE,QAAQ,EAAE;IACRR,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAEC,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAG,CAAC;IACtCC,aAAa,EAAE,GAAG;IAClBC,YAAY,EAAE,EAAE;IAChBC,SAAS,EAAE;EACb,CAAC;EACD;EACAG,OAAO,EAAE;IACPT,WAAW,EAAEH,KAAK;IA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AAK,CAAC;EACxBe,OAAO,EAAEM,QAAQ,CAACrB,KAAK,CAAC;EACxBgB,OAAO,EAAEK,QAAQ,CAACrB,KAAK,CAAC;EACxBiB,UAAU,EAAEI,QAAQ,CAACrB,KAAK,CAAC;EAC3BkB,cAAc,EAAEG,QAAQ,CAACrB,KAAK,CAAC;EAC/B;AACF;EACEmB,WAAW,EAAE;IACXhB,WAAW,EAAEH,KAAK;IAClBI,YAAY,EAAE;MAAEC,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAG,CAAC;IACtCC,aAAa,EAAE,GAAG;IAClBC,YAAY,EAAE,EAAE;IAChBC,SAAS,EAAE;EACb,CAAC;EACD;AACF;EACEI,QAAQ,EAAE;IACRV,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MAAEC,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCC,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,EAAE;IAChBC,SAAS,EAAE;EACb,CAAC;EACDW,IAAI,EAAEC,QAAQ,CAAC,aAAa;AAC9B,CAAC","ignoreList":[]}
|
|
@@ -18,9 +18,9 @@ export const type = {
|
|
|
18
18
|
xxs: rf(12),
|
|
19
19
|
micro: rf(11),
|
|
20
20
|
nano: rf(10),
|
|
21
|
-
// TabBar/Grid
|
|
21
|
+
// TabBar/Grid 角标/小标签 10pt
|
|
22
22
|
// ── 半档微调(0.5 step,加于"近似 token + delta"反模式收敛) ──
|
|
23
|
-
/** micro(11)与 xxs(12)之间:VersionPill /
|
|
23
|
+
/** micro(11)与 xxs(12)之间:VersionPill / Splash / carousel 副标题。 */
|
|
24
24
|
microPlus: rf(11.5),
|
|
25
25
|
/** xs(13)与 sm(14)之间:Privacy 长文阅读字号。 */
|
|
26
26
|
xsPlus: rf(13.5),
|
|
@@ -29,7 +29,7 @@ export const type = {
|
|
|
29
29
|
smPlus: rf(14.5),
|
|
30
30
|
/** Hero 区主标题档(一级 brand hero,带 Logo,Login 屏)。 */
|
|
31
31
|
heroLg: rf(26),
|
|
32
|
-
/** Hero 区中等档(独立屏 + NavBar 的二级 hero
|
|
32
|
+
/** Hero 区中等档(独立屏 + NavBar 的二级 hero)。 */
|
|
33
33
|
heroMd: rf(22),
|
|
34
34
|
/** Hero 区小档(承接式 hero,Group 选组/选角色子区)。 */
|
|
35
35
|
heroSm: rf(18)
|
|
@@ -56,7 +56,7 @@ export const space = {
|
|
|
56
56
|
};
|
|
57
57
|
export const radius = {
|
|
58
58
|
'xs': r(4),
|
|
59
|
-
// Radio/Checkbox
|
|
59
|
+
// Radio/Checkbox 内圈 4pt
|
|
60
60
|
'sm': r(6),
|
|
61
61
|
'md': r(8),
|
|
62
62
|
'lg': r(10),
|
|
@@ -97,7 +97,7 @@ export const control = {
|
|
|
97
97
|
|
|
98
98
|
/** 散尺寸 —— 未归到 avatar/icon/control 阶梯的单点常量。 */
|
|
99
99
|
export const dim = {
|
|
100
|
-
/** 发送按钮 32px ——
|
|
100
|
+
/** 发送按钮 32px —— 主送出/发送按钮专用,与 avatar.md 同值 */
|
|
101
101
|
sendBtn: r(32)
|
|
102
102
|
};
|
|
103
103
|
|
|
@@ -115,4 +115,9 @@ export const motion = {
|
|
|
115
115
|
slow: 300,
|
|
116
116
|
pulse: 1600
|
|
117
117
|
};
|
|
118
|
+
|
|
119
|
+
/** 按压态透明度 —— Pressable pressed 时 opacity 的共享常量。
|
|
120
|
+
* ButtonBase、Chip、Cell、Grid、EntryCard、Tabs、Segmented、TabBar 等
|
|
121
|
+
* 凡需要「按压反馈」的组件统一引用此值,避免散落多处手写 0.7 后不同步。 */
|
|
122
|
+
export const pressedOpacity = 0.7;
|
|
118
123
|
//# sourceMappingURL=tokens.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Platform","StyleSheet","r","rf","fontMono","select","ios","android","default","type","display","h1","h2","h3","body","sm","xs","xxs","micro","nano","microPlus","xsPlus","smPlus","heroLg","heroMd","heroSm","fw","regular","medium","semi","bold","heavy","space","radius","avatar","md","lg","xl","icon","control","dim","sendBtn","fixed","hitTarget","navbarH","tabbarH","hairline","hairlineWidth","motion","fast","base","slow","pulse"],"sourceRoot":"../../../src","sources":["theme/tokens.ts"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,UAAU,QAAQ,cAAc;AACnD,SAASC,CAAC,EAAEC,EAAE,QAAQ,YAAS;AAE/B,OAAO,MAAMC,QAAQ,GAAGJ,QAAQ,CAACK,MAAM,CAAC;EACtCC,GAAG,EAAE,OAAO;EACZC,OAAO,EAAE,WAAW;EACpBC,OAAO,EAAE;AACX,CAAC,CAAC;AAEF,OAAO,MAAMC,IAAI,GAAG;EAClBC,OAAO,EAAEP,EAAE,CAAC,EAAE,CAAC;EACfQ,EAAE,EAAER,EAAE,CAAC,EAAE,CAAC;EACVS,EAAE,EAAET,EAAE,CAAC,EAAE,CAAC;EACVU,EAAE,EAAEV,EAAE,CAAC,EAAE,CAAC;EACVW,IAAI,EAAEX,EAAE,CAAC,EAAE,CAAC;EACZY,EAAE,EAAEZ,EAAE,CAAC,EAAE,CAAC;EACVa,EAAE,EAAEb,EAAE,CAAC,EAAE,CAAC;EACVc,GAAG,EAAEd,EAAE,CAAC,EAAE,CAAC;EACXe,KAAK,EAAEf,EAAE,CAAC,EAAE,CAAC;EACbgB,IAAI,EAAEhB,EAAE,CAAC,EAAE,CAAC;EAAE;EACd;EACA;EACAiB,SAAS,EAAEjB,EAAE,CAAC,IAAI,CAAC;EACnB;EACAkB,MAAM,EAAElB,EAAE,CAAC,IAAI,CAAC;EAChB;AACF;EACEmB,MAAM,EAAEnB,EAAE,CAAC,IAAI,CAAC;EAChB;EACAoB,MAAM,EAAEpB,EAAE,CAAC,EAAE,CAAC;EACd;EACAqB,MAAM,EAAErB,EAAE,CAAC,EAAE,CAAC;EACd;EACAsB,MAAM,EAAEtB,EAAE,CAAC,EAAE;AACf,CAAU;AAEV,OAAO,MAAMuB,EAAE,GAAG;EAChBC,OAAO,EAAE,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C,CAAC,EAAE;AACV,CAAU;;AAEV;AACA;AACA,OAAO,MAAMoC,IAAI,GAAG;EAClB,IAAI,EAAEpC,CAAC,CAAC,EAAE,CAAC;EACX,IAAI,EAAEA,CAAC,CAAC,EAAE,CAAC;EACX,IAAI,EAAEA,CAAC,CAAC,EAAE,CAAC;EACX,IAAI,EAAEA,CAAC,CAAC,EAAE,CAAC;EACX,IAAI,EAAEA,CAAC,CAAC,EAAE,CAAC;EACX,KAAK,EAAEA,CAAC,CAAC,EAAE;AACb,CAAU;;AAEV;AACA;AACA;AACA,OAAO,MAAMqC,OAAO,GAAG;EACrBxB,EAAE,EAAEb,CAAC,CAAC,EAAE,CAAC;EACTiC,EAAE,EAAEjC,CAAC,CAAC,EAAE,CAAC;EACTkC,EAAE,EAAElC,CAAC,CAAC,EAAE;AACV,CAAU;;AAEV;AACA,OAAO,MAAMsC,GAAG,GAAG;EACjB;EACAC,OAAO,EAAEvC,CAAC,CAAC,EAAE;AACf,CAAU;;AAEV;AACA;AACA,OAAO,MAAMwC,KAAK,GAAG;EACnBC,SAAS,EAAE,EAAE;EACbC,OAAO,EAAE,EAAE;EACXC,OAAO,EAAE,EAAE;EACXC,QAAQ,EAAE7C,UAAU,CAAC8C;AACvB,CAAU;AAEV,OAAO,MAAMC,MAAM,GAAG;EACpBC,IAAI,EAAE,GAAG;EACTC,IAAI,EAAE,GAAG;EACTC,IAAI,EAAE,GAAG;EACTC,KAAK,EAAE;AACT,CAAU","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["Platform","StyleSheet","r","rf","fontMono","select","ios","android","default","type","display","h1","h2","h3","body","sm","xs","xxs","micro","nano","microPlus","xsPlus","smPlus","heroLg","heroMd","heroSm","fw","regular","medium","semi","bold","heavy","space","radius","avatar","md","lg","xl","icon","control","dim","sendBtn","fixed","hitTarget","navbarH","tabbarH","hairline","hairlineWidth","motion","fast","base","slow","pulse","pressedOpacity"],"sourceRoot":"../../../src","sources":["theme/tokens.ts"],"mappings":";;AAA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;EACX,IAAI,EAAEA,CAAC,CAAC,EAAE,CAAC;EACX,IAAI,EAAEA,CAAC,CAAC,EAAE,CAAC;EACX,IAAI,EAAEA,CAAC,CAAC,EAAE,CAAC;EACX,KAAK,EAAEA,CAAC,CAAC,EAAE;AACb,CAAU;;AAEV;AACA;AACA;AACA,OAAO,MAAMqC,OAAO,GAAG;EACrBxB,EAAE,EAAEb,CAAC,CAAC,EAAE,CAAC;EACTiC,EAAE,EAAEjC,CAAC,CAAC,EAAE,CAAC;EACTkC,EAAE,EAAElC,CAAC,CAAC,EAAE;AACV,CAAU;;AAEV;AACA,OAAO,MAAMsC,GAAG,GAAG;EACjB;EACAC,OAAO,EAAEvC,CAAC,CAAC,EAAE;AACf,CAAU;;AAEV;AACA;AACA,OAAO,MAAMwC,KAAK,GAAG;EACnBC,SAAS,EAAE,EAAE;EACbC,OAAO,EAAE,EAAE;EACXC,OAAO,EAAE,EAAE;EACXC,QAAQ,EAAE7C,UAAU,CAAC8C;AACvB,CAAU;AAEV,OAAO,MAAMC,MAAM,GAAG;EACpBC,IAAI,EAAE,GAAG;EACTC,IAAI,EAAE,GAAG;EACTC,IAAI,EAAE,GAAG;EACTC,KAAK,EAAE;AACT,CAAU;;AAEV;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAAG,GAAG","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 系统「减弱动态效果」开关。
|
|
5
|
+
*
|
|
6
|
+
* native 端的动画由 reanimated 默认 `ReduceMotion.System` 处理(reduce-motion 下自动
|
|
7
|
+
* 跳到端值),此 hook 只有 web 平台的 CSS/JS 动画需要 —— native 恒返回 false,见 `.web.ts`。
|
|
8
|
+
*/
|
|
9
|
+
export function usePrefersReducedMotion() {
|
|
10
|
+
return false;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=usePrefersReducedMotion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["usePrefersReducedMotion"],"sourceRoot":"../../../src","sources":["theme/usePrefersReducedMotion.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,uBAAuBA,CAAA,EAAY;EACjD,OAAO,KAAK;AACd","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useEffect, useState } from 'react';
|
|
4
|
+
const QUERY = '(prefers-reduced-motion: reduce)';
|
|
5
|
+
|
|
6
|
+
// tsconfig 不带 DOM lib(库本体是 RN),用 globalThis 兜底访问浏览器 matchMedia,
|
|
7
|
+
// 类型用 any 通过 strict(本文件只在 web bundle 命中,window 一定有)。
|
|
8
|
+
const win = globalThis;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* web:监听系统「减弱动态效果」开关,返回当前是否开启;开关变化时自动更新。
|
|
12
|
+
* native 端走 reanimated 的 `ReduceMotion.System`,对应 `.ts` 版恒返回 false。
|
|
13
|
+
*/
|
|
14
|
+
export function usePrefersReducedMotion() {
|
|
15
|
+
const [reduced, setReduced] = useState(() => typeof win.matchMedia === 'function' ? win.matchMedia(QUERY).matches : false);
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
if (typeof win.matchMedia !== 'function') return;
|
|
18
|
+
const mq = win.matchMedia(QUERY);
|
|
19
|
+
const onChange = () => setReduced(mq.matches);
|
|
20
|
+
mq.addEventListener('change', onChange);
|
|
21
|
+
return () => mq.removeEventListener('change', onChange);
|
|
22
|
+
}, []);
|
|
23
|
+
return reduced;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=usePrefersReducedMotion.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useEffect","useState","QUERY","win","globalThis","usePrefersReducedMotion","reduced","setReduced","matchMedia","matches","mq","onChange","addEventListener","removeEventListener"],"sourceRoot":"../../../src","sources":["theme/usePrefersReducedMotion.web.ts"],"mappings":";;AAAA,SAASA,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAE3C,MAAMC,KAAK,GAAG,kCAAkC;;AAEhD;AACA;AACA,MAAMC,GAAQ,GAAGC,UAAiB;;AAElC;AACA;AACA;AACA;AACA,OAAO,SAASC,uBAAuBA,CAAA,EAAY;EACjD,MAAM,CAACC,OAAO,EAAEC,UAAU,CAAC,GAAGN,QAAQ,CAAU,MAC9C,OAAOE,GAAG,CAACK,UAAU,KAAK,UAAU,GAAGL,GAAG,CAACK,UAAU,CAACN,KAAK,CAAC,CAACO,OAAO,GAAG,KACzE,CAAC;EAEDT,SAAS,CAAC,MAAM;IACd,IAAI,OAAOG,GAAG,CAACK,UAAU,KAAK,UAAU,EAAE;IAC1C,MAAME,EAAE,GAAGP,GAAG,CAACK,UAAU,CAACN,KAAK,CAAC;IAChC,MAAMS,QAAQ,GAAGA,CAAA,KAAMJ,UAAU,CAACG,EAAE,CAACD,OAAO,CAAC;IAC7CC,EAAE,CAACE,gBAAgB,CAAC,QAAQ,EAAED,QAAQ,CAAC;IACvC,OAAO,MAAMD,EAAE,CAACG,mBAAmB,CAAC,QAAQ,EAAEF,QAAQ,CAAC;EACzD,CAAC,EAAE,EAAE,CAAC;EAEN,OAAOL,OAAO;AAChB","ignoreList":[]}
|
|
@@ -9,8 +9,21 @@ const FALLBACK = {
|
|
|
9
9
|
colors: lightColors,
|
|
10
10
|
shadow: lightShadow
|
|
11
11
|
};
|
|
12
|
+
|
|
13
|
+
// 静默回退而非 throw:FALLBACK 是模块级稳定引用,useThemedStyles 缓存契约不受影响。
|
|
14
|
+
// 缺点:漏包 ThemeProvider 时整 app 永远 light、暗色失效且零信号——
|
|
15
|
+
// 因此在 dev 下一次性告警提示接入方补 Provider。
|
|
16
|
+
// 用 typeof __DEV__ 守卫:裸 __DEV__ 在非 Metro 打包器(Webpack/Next.js)下会 ReferenceError,
|
|
17
|
+
// logger.ts:12 已有同等先例。
|
|
18
|
+
let _warnedMissingProvider = false;
|
|
12
19
|
export function useTheme() {
|
|
13
20
|
const ctx = useContext(ThemeContext);
|
|
21
|
+
if (ctx === undefined && !_warnedMissingProvider) {
|
|
22
|
+
_warnedMissingProvider = true;
|
|
23
|
+
if (typeof __DEV__ !== 'undefined' && __DEV__) {
|
|
24
|
+
console.warn('[unif/theme] useTheme: ThemeContext 未找到 —— 请在 app 根部渲染 <ThemeProvider>,否则暗色切换不生效。');
|
|
25
|
+
}
|
|
26
|
+
}
|
|
14
27
|
return ctx ?? FALLBACK;
|
|
15
28
|
}
|
|
16
29
|
export function useColors() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useContext","ThemeContext","lightColors","lightShadow","FALLBACK","scheme","colors","shadow","useTheme","ctx","useColors","useShadow"],"sourceRoot":"../../../src","sources":["theme/useTheme.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,SAASC,YAAY,QAAgC,oBAAiB;AACtE,SAASC,WAAW,QAAQ,aAAU;AACtC,SAASC,WAAW,QAAQ,aAAU;AAEtC,MAAMC,QAA2B,GAAG;EAClCC,MAAM,EAAE,OAAO;EACfC,MAAM,EAAEJ,WAAW;EACnBK,MAAM,EAAEJ;AACV,CAAC;
|
|
1
|
+
{"version":3,"names":["useContext","ThemeContext","lightColors","lightShadow","FALLBACK","scheme","colors","shadow","_warnedMissingProvider","useTheme","ctx","undefined","__DEV__","console","warn","useColors","useShadow"],"sourceRoot":"../../../src","sources":["theme/useTheme.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,SAASC,YAAY,QAAgC,oBAAiB;AACtE,SAASC,WAAW,QAAQ,aAAU;AACtC,SAASC,WAAW,QAAQ,aAAU;AAEtC,MAAMC,QAA2B,GAAG;EAClCC,MAAM,EAAE,OAAO;EACfC,MAAM,EAAEJ,WAAW;EACnBK,MAAM,EAAEJ;AACV,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,IAAIK,sBAAsB,GAAG,KAAK;AAElC,OAAO,SAASC,QAAQA,CAAA,EAAsB;EAC5C,MAAMC,GAAG,GAAGV,UAAU,CAACC,YAAY,CAAC;EACpC,IAAIS,GAAG,KAAKC,SAAS,IAAI,CAACH,sBAAsB,EAAE;IAChDA,sBAAsB,GAAG,IAAI;IAC7B,IAAI,OAAOI,OAAO,KAAK,WAAW,IAAIA,OAAO,EAAE;MAC7CC,OAAO,CAACC,IAAI,CACV,mFACF,CAAC;IACH;EACF;EACA,OAAOJ,GAAG,IAAIN,QAAQ;AACxB;AAEA,OAAO,SAASW,SAASA,CAAA,EAAG;EAC1B,OAAON,QAAQ,CAAC,CAAC,CAACH,MAAM;AAC1B;AAEA,OAAO,SAASU,SAASA,CAAA,EAAG;EAC1B,OAAOP,QAAQ,CAAC,CAAC,CAACF,MAAM;AAC1B","ignoreList":[]}
|
|
@@ -44,9 +44,13 @@ export function getLogLevel() {
|
|
|
44
44
|
}
|
|
45
45
|
export function addTransport(t) {
|
|
46
46
|
removeTransport(t.id);
|
|
47
|
-
|
|
47
|
+
// push 后立即赋新数组:保证 emit 的 for-of 迭代期间若调用 addTransport,
|
|
48
|
+
// 迭代的旧快照不受影响(重入安全)。
|
|
49
|
+
state.transports = [...state.transports, t];
|
|
48
50
|
}
|
|
49
51
|
export function removeTransport(id) {
|
|
52
|
+
// filter 返回新数组,不原地变更 —— 保证 emit 的 for-of 迭代期间若调用
|
|
53
|
+
// removeTransport(自移除等场景),迭代的旧快照仍完整走完(重入安全)。
|
|
50
54
|
state.transports = state.transports.filter(t => t.id !== id);
|
|
51
55
|
}
|
|
52
56
|
//# sourceMappingURL=logger.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["consoleTransport","LEVEL_RANK","debug","info","warn","error","state","level","__DEV__","transports","emit","scope","message","args","record","ts","Date","now","t","log","createLogger","setLogLevel","getLogLevel","addTransport","removeTransport","id","
|
|
1
|
+
{"version":3,"names":["consoleTransport","LEVEL_RANK","debug","info","warn","error","state","level","__DEV__","transports","emit","scope","message","args","record","ts","Date","now","t","log","createLogger","setLogLevel","getLogLevel","addTransport","removeTransport","id","filter"],"sourceRoot":"../../../../src","sources":["utils/logger/logger.ts"],"mappings":";;AAAA,SAASA,gBAAgB,QAAQ,yBAAsB;AAGvD,MAAMC,UAAoC,GAAG;EAC3CC,KAAK,EAAE,EAAE;EACTC,IAAI,EAAE,EAAE;EACRC,IAAI,EAAE,EAAE;EACRC,KAAK,EAAE;AACT,CAAC;AAED,MAAMC,KAAK,GAAG;EACZC,KAAK,EAAG,OAAOC,OAAO,KAAK,WAAW,IAAIA,OAAO,GAC7C,OAAO,GACP,MAAmB;EACvBC,UAAU,EAAE,CAACT,gBAAgB;AAC/B,CAAC;AAED,SAASU,IAAIA,CACXH,KAAe,EACfI,KAAa,EACbC,OAAe,EACfC,IAAe,EACT;EACN,IAAIZ,UAAU,CAACM,KAAK,CAAC,GAAGN,UAAU,CAACK,KAAK,CAACC,KAAK,CAAC,EAAE;EACjD,MAAMO,MAAiB,GAAG;IACxBP,KAAK;IACLI,KAAK;IACLC,OAAO;IACPC,IAAI;IACJE,EAAE,EAAEC,IAAI,CAACC,GAAG,CAAC;EACf,CAAC;EACD,KAAK,MAAMC,CAAC,IAAIZ,KAAK,CAACG,UAAU,EAAE;IAChC,IAAI;MACFS,CAAC,CAACC,GAAG,CAACL,MAAM,CAAC;IACf,CAAC,CAAC,MAAM;MACN;IAAA;EAEJ;AACF;AAEA,OAAO,SAASM,YAAYA,CAACT,KAAa,EAAU;EAClD,OAAO;IACLT,KAAK,EAAEA,CAACU,OAAe,EAAE,GAAGC,IAAe,KACzCH,IAAI,CAAC,OAAO,EAAEC,KAAK,EAAEC,OAAO,EAAEC,IAAI,CAAC;IACrCV,IAAI,EAAEA,CAACS,OAAe,EAAE,GAAGC,IAAe,KACxCH,IAAI,CAAC,MAAM,EAAEC,KAAK,EAAEC,OAAO,EAAEC,IAAI,CAAC;IACpCT,IAAI,EAAEA,CAACQ,OAAe,EAAE,GAAGC,IAAe,KACxCH,IAAI,CAAC,MAAM,EAAEC,KAAK,EAAEC,OAAO,EAAEC,IAAI,CAAC;IACpCR,KAAK,EAAEA,CAACO,OAAe,EAAE,GAAGC,IAAe,KACzCH,IAAI,CAAC,OAAO,EAAEC,KAAK,EAAEC,OAAO,EAAEC,IAAI;EACtC,CAAC;AACH;AAEA,OAAO,SAASQ,WAAWA,CAACd,KAAe,EAAQ;EACjDD,KAAK,CAACC,KAAK,GAAGA,KAAK;AACrB;AAEA,OAAO,SAASe,WAAWA,CAAA,EAAa;EACtC,OAAOhB,KAAK,CAACC,KAAK;AACpB;AAEA,OAAO,SAASgB,YAAYA,CAACL,CAAe,EAAQ;EAClDM,eAAe,CAACN,CAAC,CAACO,EAAE,CAAC;EACrB;EACA;EACAnB,KAAK,CAACG,UAAU,GAAG,CAAC,GAAGH,KAAK,CAACG,UAAU,EAAES,CAAC,CAAC;AAC7C;AAEA,OAAO,SAASM,eAAeA,CAACC,EAAU,EAAQ;EAChD;EACA;EACAnB,KAAK,CAACG,UAAU,GAAGH,KAAK,CAACG,UAAU,CAACiB,MAAM,CAAER,CAAC,IAAKA,CAAC,CAACO,EAAE,KAAKA,EAAE,CAAC;AAChE","ignoreList":[]}
|
|
@@ -3,17 +3,20 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* `childTestID` —— 把"父 testID + 子 id → 子 testID"的拼接逻辑收口。
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
* Sources / ChainOfThought)重复同一三元:
|
|
6
|
+
* 本仓已接入的 list-like 组件(Tabs / Segmented / TabBar / Grid)原来各自重复:
|
|
8
7
|
*
|
|
9
8
|
* ```ts
|
|
10
9
|
* const itemTestID = item.testID ?? (testID ? `${testID}-${item.id}` : undefined);
|
|
11
10
|
* ```
|
|
12
11
|
*
|
|
13
12
|
* 抽 helper:
|
|
14
|
-
* - `override` 命中
|
|
13
|
+
* - `override` 命中(truthy)→ 用 caller 显式指定
|
|
15
14
|
* - 父 `parent` 缺失 → undefined(testID 不强制)
|
|
16
15
|
* - 都没问题 → `{parent}-{id}` 拼接
|
|
16
|
+
*
|
|
17
|
+
* 注意:与旧式 `??` 不同,**空串 override 视为未提供、回落拼接**。
|
|
18
|
+
* 这是刻意设计:空 testID 没有语义价值,用例已钉死此边界
|
|
19
|
+
* (`__tests__/utils/testID.test.ts:31-33`),勿改回 `??` 判定。
|
|
17
20
|
*/
|
|
18
21
|
export function childTestID(parent, id, override) {
|
|
19
22
|
if (override) return override;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["childTestID","parent","id","override","undefined"],"sourceRoot":"../../../../src","sources":["utils/testID/testID.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,WAAWA,CACzBC,MAA0B,EAC1BC,EAAmB,EACnBC,QAAiB,EACG;EACpB,IAAIA,QAAQ,EAAE,OAAOA,QAAQ;EAC7B,OAAOF,MAAM,GAAG,GAAGA,MAAM,IAAIC,EAAE,EAAE,GAAGE,SAAS;AAC/C","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["childTestID","parent","id","override","undefined"],"sourceRoot":"../../../../src","sources":["utils/testID/testID.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,WAAWA,CACzBC,MAA0B,EAC1BC,EAAmB,EACnBC,QAAiB,EACG;EACpB,IAAIA,QAAQ,EAAE,OAAOA,QAAQ;EAC7B,OAAOF,MAAM,GAAG,GAAGA,MAAM,IAAIC,EAAE,EAAE,GAAGE,SAAS;AAC/C","ignoreList":[]}
|
|
@@ -7,5 +7,5 @@ import type { AvatarWithRingProps } from './types';
|
|
|
7
7
|
* 内含 SVG 渐变 + label) 双层模拟 ring,避免 RN Fabric `borderColor + alpha
|
|
8
8
|
* + borderRadius: 50%` 的 anti-aliasing 渲染缺失(详见 styles.ts)。
|
|
9
9
|
*/
|
|
10
|
-
export declare function AvatarWithRing({ label, size, ringColor, style, }: AvatarWithRingProps): React.JSX.Element;
|
|
10
|
+
export declare function AvatarWithRing({ label, size, ringColor, style, testID, }: AvatarWithRingProps): React.JSX.Element;
|
|
11
11
|
//# sourceMappingURL=AvatarWithRing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarWithRing.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business/AvatarWithRing/AvatarWithRing.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"AvatarWithRing.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business/AvatarWithRing/AvatarWithRing.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAWvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAC7B,KAAK,EACL,IAAS,EACT,SAAS,EACT,KAAK,EACL,MAAM,GACP,EAAE,mBAAmB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAiCzC"}
|
|
@@ -27,7 +27,12 @@ export declare const makeAvatarStyles: (size: number, ringColor: string, shadowS
|
|
|
27
27
|
shell: {
|
|
28
28
|
alignItems: "center";
|
|
29
29
|
justifyContent: "center";
|
|
30
|
+
top?: import("react-native").DimensionValue;
|
|
31
|
+
bottom?: import("react-native").DimensionValue;
|
|
30
32
|
filter?: ReadonlyArray<import("react-native").FilterFunction> | string;
|
|
33
|
+
opacity?: number;
|
|
34
|
+
width: import("react-native").DimensionValue;
|
|
35
|
+
height: import("react-native").DimensionValue;
|
|
31
36
|
shadowColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
32
37
|
shadowOffset?: Readonly<{
|
|
33
38
|
width?: number;
|
|
@@ -99,7 +104,6 @@ export declare const makeAvatarStyles: (size: number, ringColor: string, shadowS
|
|
|
99
104
|
borderRightWidth?: number;
|
|
100
105
|
borderStartWidth?: number;
|
|
101
106
|
borderTopWidth?: number;
|
|
102
|
-
opacity?: number;
|
|
103
107
|
outlineColor?: import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").____ColorValue_Internal;
|
|
104
108
|
outlineOffset?: number;
|
|
105
109
|
outlineStyle?: "solid" | "dotted" | "dashed";
|
|
@@ -115,14 +119,10 @@ export declare const makeAvatarStyles: (size: number, ringColor: string, shadowS
|
|
|
115
119
|
experimental_backgroundRepeat?: ReadonlyArray<import("react-native/types_generated/Libraries/StyleSheet/StyleSheetTypes").BackgroundRepeatValue> | string;
|
|
116
120
|
isolation?: "auto" | "isolate";
|
|
117
121
|
display?: "none" | "flex" | "contents";
|
|
118
|
-
width: import("react-native").DimensionValue;
|
|
119
|
-
height: import("react-native").DimensionValue;
|
|
120
|
-
bottom?: import("react-native").DimensionValue;
|
|
121
122
|
end?: import("react-native").DimensionValue;
|
|
122
123
|
left?: import("react-native").DimensionValue;
|
|
123
124
|
right?: import("react-native").DimensionValue;
|
|
124
125
|
start?: import("react-native").DimensionValue;
|
|
125
|
-
top?: import("react-native").DimensionValue;
|
|
126
126
|
inset?: import("react-native").DimensionValue;
|
|
127
127
|
insetBlock?: import("react-native").DimensionValue;
|
|
128
128
|
insetBlockEnd?: import("react-native").DimensionValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business/AvatarWithRing/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAS,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business/AvatarWithRing/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAS,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAKzD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,gBAAgB,GAC3B,MAAM,MAAM,EACZ,WAAW,MAAM,EACjB,aAAa,SAAS,EACtB,GAAG,WAAW;;;;;;;;;;;;;;;;qBAkDu9tB,CAAC;sBAAoB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAD5/tB,CAAC"}
|
|
@@ -7,9 +7,11 @@ export type AvatarWithRingProps = {
|
|
|
7
7
|
* 视觉占比:label 字号约 size * 0.40,ring 宽度约 size * 0.0625。
|
|
8
8
|
*/
|
|
9
9
|
size?: number;
|
|
10
|
-
/** ring
|
|
10
|
+
/** ring 颜色,默认 c.avatarRing(白系半透明)。 */
|
|
11
11
|
ringColor?: string;
|
|
12
12
|
/** 容器附加样式(margin / position 等定位)。 */
|
|
13
13
|
style?: StyleProp<ViewStyle>;
|
|
14
|
+
/** E2E / 测试定位 */
|
|
15
|
+
testID?: string;
|
|
14
16
|
};
|
|
15
17
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business/AvatarWithRing/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business/AvatarWithRing/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qCAAqC;IACrC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,iBAAiB;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
@@ -1,4 +1,29 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { GradientWashProps } from './types';
|
|
3
|
+
/** 解析 rgba(r,g,b,a) 或 #RRGGBBAA 字符串拆出 alpha,返回 { color: rgb/hex, opacity }。
|
|
4
|
+
* 非支持格式(rgb / hex / named / hsl 等)原样返回 + opacity=1。
|
|
5
|
+
*
|
|
6
|
+
* 支持格式:
|
|
7
|
+
* - 逗号式 rgba(r,g,b,a) → 拆出 alpha
|
|
8
|
+
* - 8 位 hex #RRGGBBAA → 末两位转 alpha
|
|
9
|
+
* - 其它(rgb / hex6 / named) → 原样 + opacity=1
|
|
10
|
+
*
|
|
11
|
+
* Why:react-native-svg `<Stop stopColor>` 接 rgba 时 alpha 可能被忽略
|
|
12
|
+
* (stopColor 只解析 RGB,需要 stopOpacity 分离),拆分后跨平台一致。 */
|
|
13
|
+
export declare function parseRgba(color: string): {
|
|
14
|
+
color: string;
|
|
15
|
+
opacity: number;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* 垂直线性渐变 wash —— 全宽矩形 + 顶到底的 SVG LinearGradient。
|
|
19
|
+
*
|
|
20
|
+
* 两种用法:
|
|
21
|
+
* - 简单单色:`<GradientWash height color fromOpacity toOpacity />`,内部生成 2 stop
|
|
22
|
+
* - 多 stop:`<GradientWash height stops={[...]} />`
|
|
23
|
+
*
|
|
24
|
+
* `pointerEvents="none"` 透传,装饰层不捕事件。
|
|
25
|
+
*
|
|
26
|
+
* gradientId 不传时由 useSvgId 自动生成唯一合法 id(消毒 React 19 useId 的冒号)。
|
|
27
|
+
*/
|
|
3
28
|
export declare function GradientWash(props: GradientWashProps): React.JSX.Element;
|
|
4
29
|
//# sourceMappingURL=GradientWash.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GradientWash.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business/Decorations/GradientWash.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"GradientWash.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business/Decorations/GradientWash.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD;;;;;;;;;sDASsD;AACtD,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CA2B3E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA2CxE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadialHalo.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business/Decorations/RadialHalo.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"RadialHalo.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business/Decorations/RadialHalo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAU/C;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,MAAM,EACN,KAAK,EACL,UAAgC,EAChC,KAAK,EACL,KAAK,EACL,UAAU,GACX,EAAE,eAAe,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAyCrC"}
|
|
@@ -18,5 +18,5 @@ import type { ScreenBackdropProps } from './types';
|
|
|
18
18
|
*
|
|
19
19
|
* 自定义:`stops` 和 `halos` 都可绕过 preset。两者都不传且 preset 不传时,
|
|
20
20
|
* 仅渲染 c.background 实色外壳(等价于普通 View)。 */
|
|
21
|
-
export declare function ScreenBackdrop({ preset, stops, halos, children, style, }: ScreenBackdropProps): React.JSX.Element;
|
|
21
|
+
export declare function ScreenBackdrop({ preset, stops, halos, children, style, testID, }: ScreenBackdropProps): React.JSX.Element;
|
|
22
22
|
//# sourceMappingURL=ScreenBackdrop.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenBackdrop.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business/Decorations/ScreenBackdrop.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAIV,mBAAmB,EACpB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ScreenBackdrop.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business/Decorations/ScreenBackdrop.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAIV,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAmDjB;;;;;;;;;;;;;;;;;yCAiByC;AACzC,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,KAAK,EACL,KAAK,EACL,QAAQ,EACR,KAAK,EACL,MAAM,GACP,EAAE,mBAAmB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA+CzC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { GradientWash } from './GradientWash';
|
|
2
2
|
export { RadialHalo } from './RadialHalo';
|
|
3
3
|
export { ScreenBackdrop } from './ScreenBackdrop';
|
|
4
|
-
export type { GradientWashProps, RadialHaloProps, ScreenBackdropHalo, ScreenBackdropPreset, ScreenBackdropProps, } from './types';
|
|
4
|
+
export type { GradientStop, GradientWashProps, RadialHaloProps, ScreenBackdropHalo, ScreenBackdropPreset, ScreenBackdropProps, } from './types';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business/Decorations/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business/Decorations/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EACV,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business/Decorations/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD;;;;;;;;GAQG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,2CAA2C;AAC3C,KAAK,kBAAkB,GAAG;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB;IAClB,K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AkB,GAAG;IAC/B,cAAc;IACd,IAAI,EAAE,MAAM,CAAC;IACb,qBAAqB;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mCAAmC;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW;IACX,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wDAAwD;IACxD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,wDAAwD;IACxD,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B;2CACuC;IACvC,KAAK,CAAC,EAAE;QACN,KAAK,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;QACnC,IAAI,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;KACnC,CAAC;IACF,6BAA6B;IAC7B,KAAK,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAC;IAC1C,kBAAkB;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,aAAa;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business/Decorations/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD;;;;;;;;GAQG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,2CAA2C;AAC3C,KAAK,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,oBAAoB,GAAG,YAAY,CAAC;AAEhD,yDAAyD;AACzD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,cAAc;IACd,IAAI,EAAE,MAAM,CAAC;IACb,qBAAqB;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mCAAmC;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW;IACX,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wDAAwD;IACxD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,wDAAwD;IACxD,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B;2CACuC;IACvC,KAAK,CAAC,EAAE;QACN,KAAK,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;QACnC,IAAI,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;KACnC,CAAC;IACF,6BAA6B;IAC7B,KAAK,CAAC,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAC;IAC1C,kBAAkB;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,aAAa;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,iBAAiB;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
@@ -6,5 +6,5 @@ import type { GlassStatsProps } from './types';
|
|
|
6
6
|
* BlurLayer 接管 backdrop 双层结构(BlurView soft + glassTintLight tint),
|
|
7
7
|
* blurType 跟 scheme 自动切。
|
|
8
8
|
*/
|
|
9
|
-
export declare function GlassStats({ items }: GlassStatsProps): React.JSX.Element;
|
|
9
|
+
export declare function GlassStats({ items, style, testID, }: GlassStatsProps): React.JSX.Element;
|
|
10
10
|
//# sourceMappingURL=GlassStats.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlassStats.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business/GlassStats/GlassStats.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"GlassStats.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business/GlassStats/GlassStats.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,KAAK,EACL,MAAM,GACP,EAAE,eAAe,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAyBrC"}
|
|
@@ -11,8 +11,8 @@ export declare const makeGlassStatsStyles: (c: ColorTokens, s: ShadowTokens) =>
|
|
|
11
11
|
glassShell: {
|
|
12
12
|
shadowColor: string;
|
|
13
13
|
shadowOffset: {
|
|
14
|
-
width: number;
|
|
15
|
-
height: number;
|
|
14
|
+
readonly width: number;
|
|
15
|
+
readonly height: number;
|
|
16
16
|
};
|
|
17
17
|
shadowOpacity: number;
|
|
18
18
|
shadowRadius: number;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
1
2
|
/** 单元格元组 —— [count, label] —— count 已格式化好(如 '12' / '¥2,016') */
|
|
2
3
|
export type GlassStatItem = readonly [count: string, label: string];
|
|
3
4
|
export type GlassStatsProps = {
|
|
4
5
|
/** 数据列。一般 2~4 列均可,不强制数量。 */
|
|
5
6
|
items: ReadonlyArray<GlassStatItem>;
|
|
7
|
+
/** 容器附加样式(margin / position 等布局微调)。 */
|
|
8
|
+
style?: StyleProp<ViewStyle>;
|
|
9
|
+
/** E2E / 测试定位 */
|
|
10
|
+
testID?: string;
|
|
6
11
|
};
|
|
7
12
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business/GlassStats/types.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AAEpE,MAAM,MAAM,eAAe,GAAG;IAC5B,4BAA4B;IAC5B,KAAK,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business/GlassStats/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,gEAAgE;AAChE,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AAEpE,MAAM,MAAM,eAAe,GAAG;IAC5B,4BAA4B;IAC5B,KAAK,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IACpC,uCAAuC;IACvC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,iBAAiB;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { VersionPillProps } from './types';
|
|
3
3
|
/** 版本徽章胶囊 —— success dot + 版本 + 分点 + build mono。 */
|
|
4
|
-
export declare function VersionPill({ version, build, statusColor, style, }: VersionPillProps): React.JSX.Element;
|
|
4
|
+
export declare function VersionPill({ version, build, statusColor, versionPrefix, buildPrefix, style, testID, }: VersionPillProps): React.JSX.Element;
|
|
5
5
|
//# sourceMappingURL=VersionPill.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VersionPill.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business/VersionPill/VersionPill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,oDAAoD;AACpD,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,KAAK,EACL,WAAW,EACX,KAAK,
|
|
1
|
+
{"version":3,"file":"VersionPill.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business/VersionPill/VersionPill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,oDAAoD;AACpD,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,KAAK,EACL,WAAW,EACX,aAAqB,EACrB,WAAsB,EACtB,KAAK,EACL,MAAM,GACP,EAAE,gBAAgB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAqDtC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ColorTokens } from '../../../theme';
|
|
2
2
|
/** VersionPill 样式工厂 —— hairline 描边 + surface 底胶囊。
|
|
3
|
-
* 字号走 type.microPlus(11.5)
|
|
3
|
+
* 字号走 type.microPlus(11.5),现仓内仅 VersionPill 消费。 */
|
|
4
4
|
export declare const makeVersionPillStyles: (c: ColorTokens) => Readonly<{
|
|
5
5
|
pill: {
|
|
6
6
|
flexDirection: "row";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business/VersionPill/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAML,KAAK,WAAW,EACjB,MAAM,gBAAgB,CAAC;AAExB;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/business/VersionPill/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAML,KAAK,WAAW,EACjB,MAAM,gBAAgB,CAAC;AAExB;oDACoD;AACpD,eAAO,MAAM,qBAAqB,GAAI,GAAG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiChD,CAAC"}
|
|
@@ -2,11 +2,23 @@ import type { StyleProp, ViewStyle } from 'react-native';
|
|
|
2
2
|
export type VersionPillProps = {
|
|
3
3
|
/** 版本号,如 "2.8.0"。 */
|
|
4
4
|
version: string;
|
|
5
|
-
/** 可选 build
|
|
5
|
+
/** 可选 build 号;值为 null/undefined/"" 时省略分点与 build 字。 */
|
|
6
6
|
build?: string;
|
|
7
7
|
/** 状态点颜色,默认 c.success。 */
|
|
8
8
|
statusColor?: string;
|
|
9
|
+
/**
|
|
10
|
+
* 版本号前缀文案,默认 "版本 "。
|
|
11
|
+
* 消费者可传 "v" / "Version " 等覆盖(含末尾空格)。
|
|
12
|
+
*/
|
|
13
|
+
versionPrefix?: string;
|
|
14
|
+
/**
|
|
15
|
+
* build 号前缀文案,默认 "build "。
|
|
16
|
+
* 消费者可传 "Build " / "#" 等覆盖。
|
|
17
|
+
*/
|
|
18
|
+
buildPrefix?: string;
|
|
9
19
|
/** 容器附加样式覆盖。 */
|
|
10
20
|
style?: StyleProp<ViewStyle>;
|
|
21
|
+
/** E2E / 测试定位 */
|
|
22
|
+
testID?: string;
|
|
11
23
|
};
|
|
12
24
|
//# sourceMappingURL=types.d.ts.map
|