react-native-terra-ui 0.5.1 → 0.7.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/CHANGELOG.md +86 -0
- package/lib/module/components/avatar/Avatar.js +60 -60
- package/lib/module/components/avatar/Avatar.js.map +1 -1
- package/lib/module/components/box/Box.js +2 -2
- package/lib/module/components/box/Box.js.map +1 -1
- package/lib/module/components/box/utils.js +19 -19
- package/lib/module/components/box/utils.js.map +1 -1
- package/lib/module/components/button/Button.js +54 -48
- package/lib/module/components/button/Button.js.map +1 -1
- package/lib/module/components/chip/Chip.js +94 -94
- package/lib/module/components/chip/Chip.js.map +1 -1
- package/lib/module/components/chip/utils.js +3 -3
- package/lib/module/components/empty-state/EmptyState.js +40 -40
- package/lib/module/components/empty-state/EmptyState.js.map +1 -1
- package/lib/module/components/header/header-buttons.js +5 -5
- package/lib/module/components/header/header-buttons.js.map +1 -1
- package/lib/module/components/header/parts/HeaderGradientOverlay.js +82 -12
- package/lib/module/components/header/parts/HeaderGradientOverlay.js.map +1 -1
- package/lib/module/components/header/variants/LargeTitleHeader/index.js +64 -60
- package/lib/module/components/header/variants/LargeTitleHeader/index.js.map +1 -1
- package/lib/module/components/header/variants/TitleHeader/index.js +33 -29
- package/lib/module/components/header/variants/TitleHeader/index.js.map +1 -1
- package/lib/module/components/icon/Icon.js +6 -6
- package/lib/module/components/icon/Icon.js.map +1 -1
- package/lib/module/components/image/Image.js +6 -6
- package/lib/module/components/image/Image.js.map +1 -1
- package/lib/module/components/page-indicator/PageIndicator.js +1 -1
- package/lib/module/components/page-indicator/PageIndicatorRoot.js.map +1 -1
- package/lib/module/components/page-indicator/hooks/use-page-indicator-colors.js +8 -8
- package/lib/module/components/page-indicator/hooks/use-page-indicator-colors.js.map +1 -1
- package/lib/module/components/page-indicator/hooks/use-page-indicator-core.js.map +1 -1
- package/lib/module/components/page-indicator/hooks/use-page-indicator-progress.js +6 -6
- package/lib/module/components/page-indicator/hooks/use-page-indicator-progress.js.map +1 -1
- package/lib/module/components/page-indicator/utils.js +8 -8
- package/lib/module/components/page-indicator/utils.js.map +1 -1
- package/lib/module/components/page-indicator/variants/DotIndicator/InactiveDot.js +2 -2
- package/lib/module/components/page-indicator/variants/DotIndicator/InactiveDot.js.map +1 -1
- package/lib/module/components/page-indicator/variants/DotIndicator/LoadingOrbit.js +9 -9
- package/lib/module/components/page-indicator/variants/DotIndicator/LoadingOrbit.js.map +1 -1
- package/lib/module/components/page-indicator/variants/DotIndicator/TravelingPill.js +2 -2
- package/lib/module/components/page-indicator/variants/DotIndicator/TravelingPill.js.map +1 -1
- package/lib/module/components/page-indicator/variants/DotIndicator/index.js +3 -3
- package/lib/module/components/page-indicator/variants/DotIndicator/index.js.map +1 -1
- package/lib/module/components/page-indicator/variants/DotIndicator/utils.js +1 -1
- package/lib/module/components/page-indicator/variants/DotIndicator/utils.js.map +1 -1
- package/lib/module/components/page-indicator/variants/PillIndicator/PillIndicatorDot.js +1 -1
- package/lib/module/components/page-indicator/variants/PillIndicator/PillIndicatorDot.js.map +1 -1
- package/lib/module/components/page-indicator/variants/PillIndicator/index.js +5 -5
- package/lib/module/components/page-indicator/variants/PillIndicator/index.js.map +1 -1
- package/lib/module/components/page-indicator/variants/PillIndicator/utils.js +3 -3
- package/lib/module/components/portal/Portal.js +1 -1
- package/lib/module/components/portal/PortalContext.js +1 -1
- package/lib/module/components/portal/PortalHost.js +1 -1
- package/lib/module/components/portal/PortalProvider.js +1 -1
- package/lib/module/components/portal/PortalProvider.js.map +1 -1
- package/lib/module/components/screen/Screen.js +8 -8
- package/lib/module/components/screen/Screen.js.map +1 -1
- package/lib/module/components/screen/ScreenContext.js +6 -6
- package/lib/module/components/screen/ScreenContext.js.map +1 -1
- package/lib/module/components/screen/ScreenFlatList.js +3 -3
- package/lib/module/components/screen/ScreenFlatList.js.map +1 -1
- package/lib/module/components/screen/ScreenList.js +5 -5
- package/lib/module/components/screen/ScreenList.js.map +1 -1
- package/lib/module/components/screen/ScreenScrollView.js +6 -6
- package/lib/module/components/screen/ScreenScrollView.js.map +1 -1
- package/lib/module/components/screen/parts/BottomSafeArea.js +1 -1
- package/lib/module/components/screen/parts/BottomSafeArea.js.map +1 -1
- package/lib/module/components/screen/parts/ScreenPlaceholder.js +3 -3
- package/lib/module/components/screen/parts/ScreenPlaceholder.js.map +1 -1
- package/lib/module/components/screen/utils.js +3 -3
- package/lib/module/components/screen/utils.js.map +1 -1
- package/lib/module/components/slot/Slot.js +2 -2
- package/lib/module/components/slot/Slot.js.map +1 -1
- package/lib/module/components/slot/utils.js +3 -3
- package/lib/module/components/slot/utils.js.map +1 -1
- package/lib/module/components/spinner/Spinner.js +10 -10
- package/lib/module/components/spinner/Spinner.js.map +1 -1
- package/lib/module/components/surface/Surface.js +14 -14
- package/lib/module/components/surface/Surface.js.map +1 -1
- package/lib/module/components/text/Text.js +13 -13
- package/lib/module/components/text/Text.js.map +1 -1
- package/lib/module/components/toast/Toast.js +46 -46
- package/lib/module/components/toast/Toast.js.map +1 -1
- package/lib/module/components/toast/ToastProvider.js +32 -32
- package/lib/module/components/toast/ToastProvider.js.map +1 -1
- package/lib/module/components/toast/parts/ToastAnimatedItem.js +10 -10
- package/lib/module/components/toast/parts/ToastAnimatedItem.js.map +1 -1
- package/lib/module/components/toast/utils/controller.js +2 -2
- package/lib/module/components/toast/utils/controller.js.map +1 -1
- package/lib/module/components/toolbar/Toolbar.js +103 -33
- package/lib/module/components/toolbar/Toolbar.js.map +1 -1
- package/lib/module/context/ThemeProvider.js +5 -5
- package/lib/module/context/ThemeProvider.js.map +1 -1
- package/lib/module/theme/breakpoints.js.map +1 -1
- package/lib/module/theme/defaults/icons.js +11 -11
- package/lib/module/theme/defaults/icons.js.map +1 -1
- package/lib/module/theme/defaults/image.js +7 -7
- package/lib/module/theme/defaults/image.js.map +1 -1
- package/lib/module/theme/registry.js +11 -11
- package/lib/module/theme/registry.js.map +1 -1
- package/lib/module/theme/runtime.js +3 -3
- package/lib/module/theme/runtime.js.map +1 -1
- package/lib/module/theme/theme.js +9 -9
- package/lib/module/theme/theme.js.map +1 -1
- package/lib/module/theme/tokens/dark.js +67 -67
- package/lib/module/theme/tokens/dark.js.map +1 -1
- package/lib/module/theme/tokens/light.js +67 -67
- package/lib/module/theme/tokens/primitives.js +417 -417
- package/lib/module/utils/accent-utils.js +16 -16
- package/lib/module/utils/accent-utils.js.map +1 -1
- package/lib/module/utils/color-utils.js +3 -3
- package/lib/module/utils/deep-merge.js +1 -1
- package/lib/module/utils/resolve-theme-color.js +2 -2
- package/lib/module/utils/resolve-theme-color.js.map +1 -1
- package/lib/module/utils/typography.js +5 -5
- package/lib/module/utils/typography.js.map +1 -1
- package/lib/module/utils/unflatten.js +2 -2
- package/lib/typescript/src/components/avatar/Avatar.d.ts +1 -1
- package/lib/typescript/src/components/avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/src/components/avatar/index.d.ts +2 -2
- package/lib/typescript/src/components/avatar/types.d.ts +7 -7
- package/lib/typescript/src/components/avatar/types.d.ts.map +1 -1
- package/lib/typescript/src/components/box/Box.d.ts +2 -2
- package/lib/typescript/src/components/box/Box.d.ts.map +1 -1
- package/lib/typescript/src/components/box/index.d.ts +3 -3
- package/lib/typescript/src/components/box/utils.d.ts +7 -7
- package/lib/typescript/src/components/box/utils.d.ts.map +1 -1
- package/lib/typescript/src/components/button/Button.d.ts +15 -8
- package/lib/typescript/src/components/button/Button.d.ts.map +1 -1
- package/lib/typescript/src/components/button/index.d.ts +2 -2
- package/lib/typescript/src/components/chip/Chip.d.ts +5 -5
- package/lib/typescript/src/components/chip/Chip.d.ts.map +1 -1
- package/lib/typescript/src/components/chip/index.d.ts +3 -3
- package/lib/typescript/src/components/chip/types.d.ts +3 -3
- package/lib/typescript/src/components/chip/utils.d.ts +1 -1
- package/lib/typescript/src/components/empty-state/EmptyState.d.ts +5 -5
- package/lib/typescript/src/components/empty-state/EmptyState.d.ts.map +1 -1
- package/lib/typescript/src/components/empty-state/index.d.ts +3 -3
- package/lib/typescript/src/components/empty-state/types.d.ts +1 -1
- package/lib/typescript/src/components/header/Header.d.ts +2 -2
- package/lib/typescript/src/components/header/header-buttons.d.ts +3 -3
- package/lib/typescript/src/components/header/header-buttons.d.ts.map +1 -1
- package/lib/typescript/src/components/header/index.d.ts +6 -6
- package/lib/typescript/src/components/header/parts/HeaderGradientOverlay.d.ts +19 -2
- package/lib/typescript/src/components/header/parts/HeaderGradientOverlay.d.ts.map +1 -1
- package/lib/typescript/src/components/header/variants/LargeTitleHeader/index.d.ts +1 -1
- package/lib/typescript/src/components/header/variants/LargeTitleHeader/index.d.ts.map +1 -1
- package/lib/typescript/src/components/header/variants/TitleHeader/index.d.ts +4 -4
- package/lib/typescript/src/components/header/variants/TitleHeader/index.d.ts.map +1 -1
- package/lib/typescript/src/components/icon/Icon.d.ts +3 -3
- package/lib/typescript/src/components/icon/Icon.d.ts.map +1 -1
- package/lib/typescript/src/components/icon/index.d.ts +2 -2
- package/lib/typescript/src/components/image/Image.d.ts +1 -1
- package/lib/typescript/src/components/image/Image.d.ts.map +1 -1
- package/lib/typescript/src/components/image/index.d.ts +2 -2
- package/lib/typescript/src/components/image/types.d.ts +1 -1
- package/lib/typescript/src/components/index.d.ts +17 -17
- package/lib/typescript/src/components/page-indicator/PageIndicator.d.ts +10 -10
- package/lib/typescript/src/components/page-indicator/PageIndicatorRoot.d.ts +2 -2
- package/lib/typescript/src/components/page-indicator/PageIndicatorRoot.d.ts.map +1 -1
- package/lib/typescript/src/components/page-indicator/hooks/use-page-indicator-colors.d.ts +1 -1
- package/lib/typescript/src/components/page-indicator/hooks/use-page-indicator-colors.d.ts.map +1 -1
- package/lib/typescript/src/components/page-indicator/hooks/use-page-indicator-core.d.ts +3 -3
- package/lib/typescript/src/components/page-indicator/hooks/use-page-indicator-core.d.ts.map +1 -1
- package/lib/typescript/src/components/page-indicator/hooks/use-page-indicator-progress.d.ts +2 -2
- package/lib/typescript/src/components/page-indicator/hooks/use-page-indicator-progress.d.ts.map +1 -1
- package/lib/typescript/src/components/page-indicator/index.d.ts +3 -3
- package/lib/typescript/src/components/page-indicator/utils.d.ts +2 -2
- package/lib/typescript/src/components/page-indicator/utils.d.ts.map +1 -1
- package/lib/typescript/src/components/page-indicator/variants/DotIndicator/InactiveDot.d.ts +1 -1
- package/lib/typescript/src/components/page-indicator/variants/DotIndicator/InactiveDot.d.ts.map +1 -1
- package/lib/typescript/src/components/page-indicator/variants/DotIndicator/LoadingOrbit.d.ts +2 -2
- package/lib/typescript/src/components/page-indicator/variants/DotIndicator/LoadingOrbit.d.ts.map +1 -1
- package/lib/typescript/src/components/page-indicator/variants/DotIndicator/TravelingPill.d.ts +2 -2
- package/lib/typescript/src/components/page-indicator/variants/DotIndicator/TravelingPill.d.ts.map +1 -1
- package/lib/typescript/src/components/page-indicator/variants/DotIndicator/index.d.ts +3 -3
- package/lib/typescript/src/components/page-indicator/variants/DotIndicator/index.d.ts.map +1 -1
- package/lib/typescript/src/components/page-indicator/variants/DotIndicator/utils.d.ts.map +1 -1
- package/lib/typescript/src/components/page-indicator/variants/PillIndicator/PillIndicatorDot.d.ts +2 -2
- package/lib/typescript/src/components/page-indicator/variants/PillIndicator/PillIndicatorDot.d.ts.map +1 -1
- package/lib/typescript/src/components/page-indicator/variants/PillIndicator/index.d.ts +3 -3
- package/lib/typescript/src/components/page-indicator/variants/PillIndicator/index.d.ts.map +1 -1
- package/lib/typescript/src/components/page-indicator/variants/PillIndicator/utils.d.ts +1 -1
- package/lib/typescript/src/components/portal/Portal.d.ts +3 -3
- package/lib/typescript/src/components/portal/PortalContext.d.ts +1 -1
- package/lib/typescript/src/components/portal/PortalHost.d.ts +2 -2
- package/lib/typescript/src/components/portal/PortalProvider.d.ts +1 -1
- package/lib/typescript/src/components/portal/PortalProvider.d.ts.map +1 -1
- package/lib/typescript/src/components/portal/index.d.ts +7 -7
- package/lib/typescript/src/components/screen/Screen.d.ts +10 -10
- package/lib/typescript/src/components/screen/Screen.d.ts.map +1 -1
- package/lib/typescript/src/components/screen/ScreenContext.d.ts +3 -3
- package/lib/typescript/src/components/screen/ScreenContext.d.ts.map +1 -1
- package/lib/typescript/src/components/screen/ScreenFlatList.d.ts +3 -3
- package/lib/typescript/src/components/screen/ScreenFlatList.d.ts.map +1 -1
- package/lib/typescript/src/components/screen/ScreenList.d.ts +5 -5
- package/lib/typescript/src/components/screen/ScreenList.d.ts.map +1 -1
- package/lib/typescript/src/components/screen/ScreenScrollView.d.ts +5 -5
- package/lib/typescript/src/components/screen/ScreenScrollView.d.ts.map +1 -1
- package/lib/typescript/src/components/screen/index.d.ts +11 -11
- package/lib/typescript/src/components/screen/parts/BottomSafeArea.d.ts.map +1 -1
- package/lib/typescript/src/components/screen/parts/ScreenPlaceholder.d.ts +3 -3
- package/lib/typescript/src/components/screen/parts/ScreenPlaceholder.d.ts.map +1 -1
- package/lib/typescript/src/components/screen/types.d.ts +2 -2
- package/lib/typescript/src/components/screen/utils.d.ts +2 -2
- package/lib/typescript/src/components/screen/utils.d.ts.map +1 -1
- package/lib/typescript/src/components/slot/Slot.d.ts +2 -2
- package/lib/typescript/src/components/slot/Slot.d.ts.map +1 -1
- package/lib/typescript/src/components/slot/index.d.ts +3 -3
- package/lib/typescript/src/components/slot/utils.d.ts +1 -1
- package/lib/typescript/src/components/slot/utils.d.ts.map +1 -1
- package/lib/typescript/src/components/spinner/Spinner.d.ts +2 -2
- package/lib/typescript/src/components/spinner/Spinner.d.ts.map +1 -1
- package/lib/typescript/src/components/spinner/index.d.ts +2 -2
- package/lib/typescript/src/components/surface/Surface.d.ts +4 -4
- package/lib/typescript/src/components/surface/Surface.d.ts.map +1 -1
- package/lib/typescript/src/components/surface/index.d.ts +2 -2
- package/lib/typescript/src/components/text/Text.d.ts +4 -4
- package/lib/typescript/src/components/text/Text.d.ts.map +1 -1
- package/lib/typescript/src/components/text/index.d.ts +2 -2
- package/lib/typescript/src/components/toast/Toast.d.ts +18 -18
- package/lib/typescript/src/components/toast/Toast.d.ts.map +1 -1
- package/lib/typescript/src/components/toast/ToastProvider.d.ts +1 -1
- package/lib/typescript/src/components/toast/ToastProvider.d.ts.map +1 -1
- package/lib/typescript/src/components/toast/index.d.ts +4 -4
- package/lib/typescript/src/components/toast/parts/ToastAnimatedItem.d.ts +3 -3
- package/lib/typescript/src/components/toast/parts/ToastAnimatedItem.d.ts.map +1 -1
- package/lib/typescript/src/components/toast/types.d.ts +10 -10
- package/lib/typescript/src/components/toast/types.d.ts.map +1 -1
- package/lib/typescript/src/components/toast/utils/controller.d.ts +2 -2
- package/lib/typescript/src/components/toast/utils/controller.d.ts.map +1 -1
- package/lib/typescript/src/components/toolbar/Toolbar.d.ts +5 -5
- package/lib/typescript/src/components/toolbar/Toolbar.d.ts.map +1 -1
- package/lib/typescript/src/components/toolbar/index.d.ts +2 -2
- package/lib/typescript/src/context/ThemeProvider.d.ts +3 -3
- package/lib/typescript/src/context/ThemeProvider.d.ts.map +1 -1
- package/lib/typescript/src/context/index.d.ts +2 -2
- package/lib/typescript/src/index.d.ts +3 -3
- package/lib/typescript/src/theme/breakpoints.d.ts +2 -2
- package/lib/typescript/src/theme/breakpoints.d.ts.map +1 -1
- package/lib/typescript/src/theme/defaults/icons.d.ts +1 -1
- package/lib/typescript/src/theme/defaults/icons.d.ts.map +1 -1
- package/lib/typescript/src/theme/defaults/image.d.ts +1 -1
- package/lib/typescript/src/theme/defaults/image.d.ts.map +1 -1
- package/lib/typescript/src/theme/index.d.ts +14 -14
- package/lib/typescript/src/theme/registry.d.ts +2 -2
- package/lib/typescript/src/theme/registry.d.ts.map +1 -1
- package/lib/typescript/src/theme/runtime.d.ts +1 -1
- package/lib/typescript/src/theme/runtime.d.ts.map +1 -1
- package/lib/typescript/src/theme/screen-margin.d.ts +2 -2
- package/lib/typescript/src/theme/theme.d.ts +2 -2
- package/lib/typescript/src/theme/theme.d.ts.map +1 -1
- package/lib/typescript/src/theme/tokens/dark.d.ts +67 -67
- package/lib/typescript/src/theme/tokens/light.d.ts +67 -67
- package/lib/typescript/src/theme/tokens/primitives.d.ts +417 -417
- package/lib/typescript/src/theme/types.d.ts +84 -84
- package/lib/typescript/src/theme/types.d.ts.map +1 -1
- package/lib/typescript/src/utils/accent-utils.d.ts +1 -1
- package/lib/typescript/src/utils/accent-utils.d.ts.map +1 -1
- package/lib/typescript/src/utils/resolve-theme-color.d.ts +1 -1
- package/lib/typescript/src/utils/resolve-theme-color.d.ts.map +1 -1
- package/lib/typescript/src/utils/typography.d.ts +2 -2
- package/lib/typescript/src/utils/typography.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/avatar/Avatar.tsx +66 -71
- package/src/components/avatar/index.ts +2 -2
- package/src/components/avatar/types.ts +7 -12
- package/src/components/box/Box.tsx +7 -18
- package/src/components/box/index.ts +3 -3
- package/src/components/box/utils.ts +59 -81
- package/src/components/button/Button.tsx +119 -144
- package/src/components/button/index.ts +2 -2
- package/src/components/chip/Chip.tsx +107 -143
- package/src/components/chip/index.ts +3 -3
- package/src/components/chip/types.ts +7 -7
- package/src/components/chip/utils.ts +5 -5
- package/src/components/empty-state/EmptyState.tsx +44 -60
- package/src/components/empty-state/index.ts +3 -3
- package/src/components/empty-state/types.ts +1 -1
- package/src/components/header/Header.ts +2 -2
- package/src/components/header/header-buttons.tsx +10 -18
- package/src/components/header/index.ts +6 -6
- package/src/components/header/parts/HeaderGradientOverlay.tsx +77 -11
- package/src/components/header/variants/LargeTitleHeader/index.tsx +79 -142
- package/src/components/header/variants/TitleHeader/index.tsx +45 -63
- package/src/components/icon/Icon.tsx +31 -39
- package/src/components/icon/index.ts +2 -2
- package/src/components/image/Image.tsx +12 -10
- package/src/components/image/index.ts +2 -2
- package/src/components/image/types.ts +1 -1
- package/src/components/index.ts +17 -17
- package/src/components/page-indicator/PageIndicator.tsx +14 -14
- package/src/components/page-indicator/PageIndicatorRoot.tsx +4 -12
- package/src/components/page-indicator/hooks/use-page-indicator-colors.ts +17 -35
- package/src/components/page-indicator/hooks/use-page-indicator-core.ts +6 -8
- package/src/components/page-indicator/hooks/use-page-indicator-progress.ts +10 -30
- package/src/components/page-indicator/index.ts +3 -3
- package/src/components/page-indicator/utils.ts +20 -48
- package/src/components/page-indicator/variants/DotIndicator/InactiveDot.tsx +5 -16
- package/src/components/page-indicator/variants/DotIndicator/LoadingOrbit.tsx +21 -63
- package/src/components/page-indicator/variants/DotIndicator/TravelingPill.tsx +6 -16
- package/src/components/page-indicator/variants/DotIndicator/index.tsx +20 -38
- package/src/components/page-indicator/variants/DotIndicator/utils.ts +2 -6
- package/src/components/page-indicator/variants/PillIndicator/PillIndicatorDot.tsx +12 -50
- package/src/components/page-indicator/variants/PillIndicator/index.tsx +19 -41
- package/src/components/page-indicator/variants/PillIndicator/utils.ts +4 -4
- package/src/components/portal/Portal.tsx +4 -4
- package/src/components/portal/PortalContext.tsx +1 -1
- package/src/components/portal/PortalHost.tsx +4 -4
- package/src/components/portal/PortalProvider.tsx +24 -35
- package/src/components/portal/index.ts +7 -7
- package/src/components/screen/Screen.tsx +45 -52
- package/src/components/screen/ScreenContext.tsx +8 -17
- package/src/components/screen/ScreenFlatList.tsx +17 -36
- package/src/components/screen/ScreenList.tsx +31 -63
- package/src/components/screen/ScreenScrollView.tsx +17 -30
- package/src/components/screen/index.ts +11 -11
- package/src/components/screen/parts/BottomSafeArea.tsx +5 -6
- package/src/components/screen/parts/ScreenPlaceholder.tsx +9 -14
- package/src/components/screen/types.ts +2 -2
- package/src/components/screen/utils.ts +6 -19
- package/src/components/slot/Slot.tsx +5 -20
- package/src/components/slot/index.ts +3 -3
- package/src/components/slot/utils.ts +5 -8
- package/src/components/spinner/Spinner.tsx +19 -52
- package/src/components/spinner/index.ts +2 -2
- package/src/components/surface/Surface.tsx +34 -43
- package/src/components/surface/index.ts +2 -2
- package/src/components/text/Text.tsx +75 -85
- package/src/components/text/index.ts +2 -2
- package/src/components/toast/Toast.tsx +195 -251
- package/src/components/toast/ToastProvider.tsx +61 -136
- package/src/components/toast/index.ts +4 -4
- package/src/components/toast/parts/ToastAnimatedItem.tsx +14 -22
- package/src/components/toast/types.ts +11 -14
- package/src/components/toast/utils/controller.ts +4 -6
- package/src/components/toolbar/Toolbar.tsx +117 -72
- package/src/components/toolbar/index.ts +2 -2
- package/src/context/ThemeProvider.tsx +13 -28
- package/src/context/index.ts +2 -2
- package/src/index.tsx +3 -3
- package/src/theme/breakpoints.ts +3 -5
- package/src/theme/defaults/icons.tsx +15 -30
- package/src/theme/defaults/image.tsx +9 -14
- package/src/theme/index.ts +14 -14
- package/src/theme/registry.ts +30 -49
- package/src/theme/runtime.ts +6 -7
- package/src/theme/screen-margin.ts +3 -3
- package/src/theme/theme.ts +39 -60
- package/src/theme/tokens/dark.ts +67 -67
- package/src/theme/tokens/light.ts +67 -67
- package/src/theme/tokens/primitives.ts +417 -417
- package/src/theme/types.ts +123 -135
- package/src/utils/accent-utils.ts +21 -30
- package/src/utils/color-utils.ts +3 -3
- package/src/utils/deep-merge.ts +1 -1
- package/src/utils/resolve-theme-color.ts +8 -11
- package/src/utils/typography.ts +7 -10
- package/src/utils/unflatten.ts +2 -2
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
import { View } from "react-native-unistyles/components/native/View";
|
|
4
4
|
import { Text } from "react-native-unistyles/components/native/Text";
|
|
5
|
-
import { useEffect } from
|
|
6
|
-
import Animated, { interpolate, useAnimatedStyle, useSharedValue } from
|
|
7
|
-
import { StyleSheet, useUnistyles } from
|
|
5
|
+
import { useEffect } from "react";
|
|
6
|
+
import Animated, { interpolate, useAnimatedStyle, useSharedValue } from "react-native-reanimated";
|
|
7
|
+
import { StyleSheet, useUnistyles } from "react-native-unistyles";
|
|
8
8
|
import { resolveThemeColor } from "../../../../utils/resolve-theme-color.js";
|
|
9
9
|
import { FONT_WEIGHT_VALUE } from "../../../../utils/typography.js";
|
|
10
10
|
import { Portal } from "../../../portal/index.js";
|
|
11
11
|
import { SCREEN_HEADER_PORTAL_HOST, useScreen } from "../../../screen/ScreenContext.js";
|
|
12
12
|
import { Toolbar } from "../../../toolbar/index.js";
|
|
13
13
|
import { HeaderDismissButton } from "../../header-buttons.js";
|
|
14
|
-
import { HeaderGradientOverlay } from "../../parts/HeaderGradientOverlay.js";
|
|
14
|
+
import { HEADER_FADE_EXTENT, HeaderGradientOverlay } from "../../parts/HeaderGradientOverlay.js";
|
|
15
15
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
16
16
|
const AnimatedText = Animated.createAnimatedComponent(Text);
|
|
17
17
|
|
|
@@ -23,7 +23,7 @@ function LargeTitlePortalContent({
|
|
|
23
23
|
title,
|
|
24
24
|
overline,
|
|
25
25
|
subtitle,
|
|
26
|
-
titleAlignment =
|
|
26
|
+
titleAlignment = "center"
|
|
27
27
|
}) {
|
|
28
28
|
const {
|
|
29
29
|
theme
|
|
@@ -48,9 +48,9 @@ function LargeTitlePortalContent({
|
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
return {
|
|
51
|
-
opacity: interpolate(scrollY.value, [0, height], [1, 0],
|
|
51
|
+
opacity: interpolate(scrollY.value, [0, height], [1, 0], "clamp"),
|
|
52
52
|
transform: [{
|
|
53
|
-
translateY: interpolate(scrollY.value, [0, height], [0, -LARGE_TITLE_SLIDE_OFFSET],
|
|
53
|
+
translateY: interpolate(scrollY.value, [0, height], [0, -LARGE_TITLE_SLIDE_OFFSET], "clamp")
|
|
54
54
|
}]
|
|
55
55
|
};
|
|
56
56
|
});
|
|
@@ -58,15 +58,15 @@ function LargeTitlePortalContent({
|
|
|
58
58
|
style: [styles.portalContent, largeTitleAnimatedStyle],
|
|
59
59
|
children: [!!overline && /*#__PURE__*/_jsx(Text, {
|
|
60
60
|
style: styles.overline,
|
|
61
|
-
maxFontSizeMultiplier: theme.typography.variants[
|
|
61
|
+
maxFontSizeMultiplier: theme.typography.variants["label-sm"].maxFontSizeMultiplier,
|
|
62
62
|
children: overline
|
|
63
63
|
}), /*#__PURE__*/_jsx(Text, {
|
|
64
64
|
style: styles.largeTitle,
|
|
65
|
-
maxFontSizeMultiplier: theme.typography.variants[
|
|
65
|
+
maxFontSizeMultiplier: theme.typography.variants["headline-lg"].maxFontSizeMultiplier,
|
|
66
66
|
children: title
|
|
67
67
|
}), !!subtitle && /*#__PURE__*/_jsx(Text, {
|
|
68
68
|
style: styles.subtitle,
|
|
69
|
-
maxFontSizeMultiplier: theme.typography.variants[
|
|
69
|
+
maxFontSizeMultiplier: theme.typography.variants["body-lg"].maxFontSizeMultiplier,
|
|
70
70
|
children: subtitle
|
|
71
71
|
})]
|
|
72
72
|
});
|
|
@@ -99,18 +99,18 @@ export function LargeTitleHeader({
|
|
|
99
99
|
subtitle,
|
|
100
100
|
LeftToolbar,
|
|
101
101
|
RightToolbar,
|
|
102
|
-
dismissAction =
|
|
102
|
+
dismissAction = "none",
|
|
103
103
|
navigation,
|
|
104
104
|
onDismiss,
|
|
105
|
-
titleAlignment =
|
|
105
|
+
titleAlignment = "center",
|
|
106
106
|
isLargeTitleHidden = false,
|
|
107
|
-
bg =
|
|
107
|
+
bg = "background"
|
|
108
108
|
}) {
|
|
109
109
|
const {
|
|
110
110
|
theme
|
|
111
111
|
} = useUnistyles();
|
|
112
|
-
const bgColor = resolveThemeColor(bg, theme) ??
|
|
113
|
-
const isTransparent = bgColor ===
|
|
112
|
+
const bgColor = resolveThemeColor(bg, theme) ?? "";
|
|
113
|
+
const isTransparent = bgColor === "transparent";
|
|
114
114
|
const gradientColor = isTransparent ? theme.color.background : bgColor;
|
|
115
115
|
const {
|
|
116
116
|
scrollY
|
|
@@ -136,7 +136,7 @@ export function LargeTitleHeader({
|
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
138
|
return {
|
|
139
|
-
opacity: interpolate(scrollY.value, [0, height], [0, 1],
|
|
139
|
+
opacity: interpolate(scrollY.value, [0, height], [0, 1], "clamp")
|
|
140
140
|
};
|
|
141
141
|
});
|
|
142
142
|
const compactTitleAnimatedStyle = useAnimatedStyle(() => {
|
|
@@ -158,23 +158,23 @@ export function LargeTitleHeader({
|
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
160
|
return {
|
|
161
|
-
opacity: interpolate(scrollY.value, [0, height], [0, 1],
|
|
161
|
+
opacity: interpolate(scrollY.value, [0, height], [0, 1], "clamp"),
|
|
162
162
|
transform: [{
|
|
163
|
-
translateY: interpolate(scrollY.value, [0, height], [COMPACT_TITLE_SLIDE_OFFSET, 0],
|
|
163
|
+
translateY: interpolate(scrollY.value, [0, height], [COMPACT_TITLE_SLIDE_OFFSET, 0], "clamp")
|
|
164
164
|
}]
|
|
165
165
|
};
|
|
166
166
|
});
|
|
167
167
|
useEffect(() => {
|
|
168
168
|
isLargeTitleHiddenValue.value = isLargeTitleHidden;
|
|
169
169
|
}, [isLargeTitleHidden, isLargeTitleHiddenValue]);
|
|
170
|
-
const leading = dismissAction ===
|
|
170
|
+
const leading = dismissAction === "back" ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
171
171
|
children: [/*#__PURE__*/_jsx(HeaderDismissButton, {
|
|
172
172
|
dismissAction: dismissAction,
|
|
173
173
|
navigation: navigation,
|
|
174
174
|
onDismiss: onDismiss
|
|
175
175
|
}), LeftToolbar]
|
|
176
176
|
}) : LeftToolbar;
|
|
177
|
-
const trailing = dismissAction ===
|
|
177
|
+
const trailing = dismissAction === "close" ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
178
178
|
children: [RightToolbar, /*#__PURE__*/_jsx(HeaderDismissButton, {
|
|
179
179
|
dismissAction: dismissAction,
|
|
180
180
|
navigation: navigation,
|
|
@@ -208,7 +208,7 @@ export function LargeTitleHeader({
|
|
|
208
208
|
pointerEvents: "none",
|
|
209
209
|
children: /*#__PURE__*/_jsx(AnimatedText, {
|
|
210
210
|
style: styles.compactTitle,
|
|
211
|
-
maxFontSizeMultiplier: theme.typography.variants[
|
|
211
|
+
maxFontSizeMultiplier: theme.typography.variants["title-md"].maxFontSizeMultiplier,
|
|
212
212
|
children: title
|
|
213
213
|
})
|
|
214
214
|
}), trailing != null && /*#__PURE__*/_jsx(Toolbar, {
|
|
@@ -221,7 +221,7 @@ export function LargeTitleHeader({
|
|
|
221
221
|
}
|
|
222
222
|
const styles = StyleSheet.create((theme, runtime) => ({
|
|
223
223
|
container: {
|
|
224
|
-
position:
|
|
224
|
+
position: "absolute",
|
|
225
225
|
top: 0,
|
|
226
226
|
left: 0,
|
|
227
227
|
right: 0,
|
|
@@ -232,99 +232,103 @@ const styles = StyleSheet.create((theme, runtime) => ({
|
|
|
232
232
|
backgroundColor: bgColor,
|
|
233
233
|
uni__dependencies: [9]
|
|
234
234
|
}),
|
|
235
|
+
// Overhangs the bar by `HEADER_FADE_EXTENT` so the fade has room to finish
|
|
236
|
+
// below it — confined to the bar, the curve would be steep enough to read as a
|
|
237
|
+
// band. Nothing on the path clips and the overlay is `pointerEvents="none"`,
|
|
238
|
+
// so the spill costs neither layout nor touches.
|
|
235
239
|
gradient: {
|
|
236
|
-
position:
|
|
240
|
+
position: "absolute",
|
|
237
241
|
top: 0,
|
|
238
242
|
left: 0,
|
|
239
243
|
right: 0,
|
|
240
|
-
bottom:
|
|
244
|
+
bottom: -HEADER_FADE_EXTENT
|
|
241
245
|
},
|
|
242
246
|
bar: {
|
|
243
247
|
height: theme.layout.header.height,
|
|
244
|
-
flexDirection:
|
|
245
|
-
alignItems:
|
|
248
|
+
flexDirection: "row",
|
|
249
|
+
alignItems: "center",
|
|
246
250
|
paddingHorizontal: theme.layout.screen.margin.x,
|
|
247
|
-
gap: theme.spacing[
|
|
248
|
-
justifyContent:
|
|
251
|
+
gap: theme.spacing["3"],
|
|
252
|
+
justifyContent: "space-between",
|
|
249
253
|
uni__dependencies: [0]
|
|
250
254
|
},
|
|
251
255
|
trailing: {
|
|
252
|
-
justifyContent:
|
|
256
|
+
justifyContent: "flex-end"
|
|
253
257
|
},
|
|
254
258
|
portalContent: {
|
|
255
259
|
gap: 2,
|
|
256
260
|
minHeight: theme.layout.header.height,
|
|
257
261
|
// paddingTop: theme.spacing['1'],
|
|
258
|
-
paddingBottom: theme.spacing[
|
|
262
|
+
paddingBottom: theme.spacing["3"],
|
|
259
263
|
paddingHorizontal: theme.layout.screen.margin.x,
|
|
260
264
|
uni__dependencies: [0]
|
|
261
265
|
},
|
|
262
266
|
overline: {
|
|
263
|
-
fontSize: theme.typography.variants[
|
|
264
|
-
lineHeight: theme.typography.variants[
|
|
265
|
-
letterSpacing: theme.typography.variants[
|
|
266
|
-
fontWeight: FONT_WEIGHT_VALUE[theme.typography.variants[
|
|
267
|
-
color: theme.color[
|
|
267
|
+
fontSize: theme.typography.variants["label-sm"].fontSize,
|
|
268
|
+
lineHeight: theme.typography.variants["label-sm"].lineHeight,
|
|
269
|
+
letterSpacing: theme.typography.variants["label-sm"].letterSpacing,
|
|
270
|
+
fontWeight: FONT_WEIGHT_VALUE[theme.typography.variants["label-sm"].fontWeight],
|
|
271
|
+
color: theme.color["text.subtle"] ?? "",
|
|
268
272
|
variants: {
|
|
269
273
|
titleAlignment: {
|
|
270
274
|
center: {
|
|
271
|
-
textAlign:
|
|
275
|
+
textAlign: "center"
|
|
272
276
|
},
|
|
273
277
|
left: {
|
|
274
|
-
textAlign:
|
|
278
|
+
textAlign: "left"
|
|
275
279
|
}
|
|
276
280
|
}
|
|
277
281
|
},
|
|
278
282
|
uni__dependencies: [0, 4]
|
|
279
283
|
},
|
|
280
284
|
largeTitle: {
|
|
281
|
-
fontSize: theme.typography.variants[
|
|
282
|
-
lineHeight: theme.typography.variants[
|
|
283
|
-
letterSpacing: theme.typography.variants[
|
|
284
|
-
fontWeight: FONT_WEIGHT_VALUE[theme.typography.variants[
|
|
285
|
-
color: theme.color[
|
|
285
|
+
fontSize: theme.typography.variants["headline-lg"].fontSize,
|
|
286
|
+
lineHeight: theme.typography.variants["headline-lg"].lineHeight,
|
|
287
|
+
letterSpacing: theme.typography.variants["headline-lg"].letterSpacing,
|
|
288
|
+
fontWeight: FONT_WEIGHT_VALUE[theme.typography.variants["headline-lg"].fontWeight],
|
|
289
|
+
color: theme.color["text.default"] ?? "",
|
|
286
290
|
variants: {
|
|
287
291
|
titleAlignment: {
|
|
288
292
|
center: {
|
|
289
|
-
textAlign:
|
|
293
|
+
textAlign: "center"
|
|
290
294
|
},
|
|
291
295
|
left: {
|
|
292
|
-
textAlign:
|
|
296
|
+
textAlign: "left"
|
|
293
297
|
}
|
|
294
298
|
}
|
|
295
299
|
},
|
|
296
300
|
uni__dependencies: [0, 4]
|
|
297
301
|
},
|
|
298
302
|
subtitle: {
|
|
299
|
-
fontSize: theme.typography.variants[
|
|
300
|
-
lineHeight: theme.typography.variants[
|
|
301
|
-
letterSpacing: theme.typography.variants[
|
|
302
|
-
color: theme.color[
|
|
303
|
+
fontSize: theme.typography.variants["body-lg"].fontSize,
|
|
304
|
+
lineHeight: theme.typography.variants["body-lg"].lineHeight,
|
|
305
|
+
letterSpacing: theme.typography.variants["body-lg"].letterSpacing,
|
|
306
|
+
color: theme.color["text.subtle"] ?? "",
|
|
303
307
|
variants: {
|
|
304
308
|
titleAlignment: {
|
|
305
309
|
center: {
|
|
306
|
-
textAlign:
|
|
310
|
+
textAlign: "center"
|
|
307
311
|
},
|
|
308
312
|
left: {
|
|
309
|
-
textAlign:
|
|
313
|
+
textAlign: "left"
|
|
310
314
|
}
|
|
311
315
|
}
|
|
312
316
|
},
|
|
313
317
|
uni__dependencies: [0, 4]
|
|
314
318
|
},
|
|
315
319
|
compactTitle: {
|
|
316
|
-
fontSize: theme.typography.variants[
|
|
317
|
-
lineHeight: theme.typography.variants[
|
|
318
|
-
letterSpacing: theme.typography.variants[
|
|
319
|
-
fontWeight: FONT_WEIGHT_VALUE[theme.typography.variants[
|
|
320
|
-
color: theme.color[
|
|
320
|
+
fontSize: theme.typography.variants["title-md"].fontSize,
|
|
321
|
+
lineHeight: theme.typography.variants["title-md"].lineHeight,
|
|
322
|
+
letterSpacing: theme.typography.variants["title-md"].letterSpacing,
|
|
323
|
+
fontWeight: FONT_WEIGHT_VALUE[theme.typography.variants["title-md"].fontWeight],
|
|
324
|
+
color: theme.color["text.default"] ?? "",
|
|
321
325
|
variants: {
|
|
322
326
|
titleAlignment: {
|
|
323
327
|
center: {
|
|
324
|
-
textAlign:
|
|
328
|
+
textAlign: "center"
|
|
325
329
|
},
|
|
326
330
|
left: {
|
|
327
|
-
textAlign:
|
|
331
|
+
textAlign: "left"
|
|
328
332
|
}
|
|
329
333
|
}
|
|
330
334
|
},
|
|
@@ -335,14 +339,14 @@ const styles = StyleSheet.create((theme, runtime) => ({
|
|
|
335
339
|
variants: {
|
|
336
340
|
titleAlignment: {
|
|
337
341
|
center: {
|
|
338
|
-
position:
|
|
342
|
+
position: "absolute",
|
|
339
343
|
left: 0,
|
|
340
344
|
right: 0,
|
|
341
|
-
alignItems:
|
|
345
|
+
alignItems: "center"
|
|
342
346
|
},
|
|
343
347
|
left: {
|
|
344
348
|
flex: 1,
|
|
345
|
-
alignItems:
|
|
349
|
+
alignItems: "flex-start"
|
|
346
350
|
}
|
|
347
351
|
}
|
|
348
352
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useEffect","Animated","interpolate","useAnimatedStyle","useSharedValue","StyleSheet","useUnistyles","resolveThemeColor","FONT_WEIGHT_VALUE","Portal","SCREEN_HEADER_PORTAL_HOST","useScreen","Toolbar","HeaderDismissButton","HeaderGradientOverlay","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","AnimatedText","createAnimatedComponent","Text","COMPACT_TITLE_SLIDE_OFFSET","LARGE_TITLE_SLIDE_OFFSET","LargeTitlePortalContent","title","overline","subtitle","titleAlignment","theme","scrollY","_styles","styles","useVariants","headerCollapseHeight","layout","header","height","largeTitleAnimatedStyle","opacity","transform","translateY","value","View","style","portalContent","children","maxFontSizeMultiplier","typography","variants","largeTitle","LargeTitleHeader","LeftToolbar","RightToolbar","dismissAction","navigation","onDismiss","isLargeTitleHidden","bg","bgColor","color","isTransparent","gradientColor","background","isLargeTitleHiddenValue","_styles2","gradientOpacityStyle","compactTitleAnimatedStyle","leading","trailing","container","hostName","safeArea","bar","gradient","pointerEvents","titleContainer","compactTitle","create","runtime","position","top","left","right","zIndex","insets","backgroundColor","uni__dependencies","bottom","flexDirection","alignItems","paddingHorizontal","screen","margin","x","gap","spacing","justifyContent","minHeight","paddingBottom","fontSize","lineHeight","letterSpacing","fontWeight","center","textAlign","flex"],"sourceRoot":"../../../../../../src","sources":["components/header/variants/LargeTitleHeader/index.tsx"],"mappings":";;;;AAAA,SAASA,SAAS,QAAQ,OAAO;AAGjC,OAAOC,QAAQ,IACbC,WAAW,EACXC,gBAAgB,EAChBC,cAAc,QACT,yBAAyB;AAChC,SAASC,UAAU,EAAEC,YAAY,QAAQ,wBAAwB;AAEjE,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAE1B,SAASC,MAAM;AACf,SACEC,yBAAyB,EACzBC,SAAS;AAEX,SAASC,OAAO;AAChB,SAASC,mBAAmB;AAC5B,SAASC,qBAAqB;AAA4C,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAG1E,MAAMC,YAAY,GAAGpB,QAAQ,CAACqB,uBAAuB,CAACC,IAAI,CAAC;;AAE3D;AACA,MAAMC,0BAA0B,GAAG,CAAC;AACpC;AACA,MAAMC,wBAAwB,GAAG,CAAC;AAWlC,SAASC,uBAAuBA,CAAC;EAC/BC,KAAK;EACLC,QAAQ;EACRC,QAAQ;EACRC,cAAc,GAAG;AAInB,CAAC,EAAE;EACD,MAAM;IAAEC;EAAM,CAAC,GAAGzB,YAAY,CAAC,CAAC;EAChC,MAAM;IAAE0B;EAAQ,CAAC,GAAGrB,SAAS,CAAC,CAAC;EAAC,MAAAsB,OAAA,GAAAC,MAAA;EAAA;IAAA,MAAAA,MAAA,GAAAD,OAAA,CAAAE,WAAA,CACb;MAAEL;IAAe,CAAC;IAErC,MAAMM,oBAAoB,GAA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IAAAlB,iBAAA;EACH,CAAC;EACDV,YAAY,EAAE;IACZuB,QAAQ,EAAEvE,KAAK,CAACmB,UAAU,CAACC,QAAQ,CAAC,UAAU,CAAC,CAACmD,QAAQ;IACxDC,UAAU,EAAExE,KAAK,CAACmB,UAAU,CAACC,QAAQ,CAAC,UAAU,CAAC,CAACoD,UAAU;IAC5DC,aAAa,EAAEzE,KAAK,CAACmB,UAAU,CAACC,QAAQ,CAAC,UAAU,CAAC,CAACqD,aAAa;IAClEC,UAAU,EACRjG,iBAAiB,CAACuB,KAAK,CAACmB,UAAU,CAACC,QAAQ,CAAC,UAAU,CAAC,CAACsD,UAAU,CAAC;IACrE3C,KAAK,EACF/B,KAAK,CAAC+B,KAAK,CACV,cAAc,CACf,IAAI,EAAE;IACTX,QAAQ,EAAE;MACRrB,cAAc,EAAE;QACd4E,MAAM,EAAE;UAAEC,SAAS,EAAE;QAAS,CAAC;QAC/BvB,IAAI,EAAE;UAAEuB,SAAS,EAAE;QAAO;MAC5B;IACF,CAAC;IAAAlB,iBAAA;EACH,CAAC;EACDX,cAAc,EAAE;IACd8B,IAAI,EAAE,CAAC;IACPzD,QAAQ,EAAE;MACRrB,cAAc,EAAE;QACd4E,MAAM,EAAE;UACNxB,QAAQ,EAAE,UAAU;UACpBE,IAAI,EAAE,CAAC;UACPC,KAAK,EAAE,CAAC;UACRO,UAAU,EAAE;QACd,CAAC;QACDR,IAAI,EAAE;UACJwB,IAAI,EAAE,CAAC;UACPhB,UAAU,EAAE;QACd;MACF;IACF,CAAC;IAAAH,iBAAA;EACH;AACF,CAAC,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["useEffect","Animated","interpolate","useAnimatedStyle","useSharedValue","StyleSheet","useUnistyles","resolveThemeColor","FONT_WEIGHT_VALUE","Portal","SCREEN_HEADER_PORTAL_HOST","useScreen","Toolbar","HeaderDismissButton","HEADER_FADE_EXTENT","HeaderGradientOverlay","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","AnimatedText","createAnimatedComponent","Text","COMPACT_TITLE_SLIDE_OFFSET","LARGE_TITLE_SLIDE_OFFSET","LargeTitlePortalContent","title","overline","subtitle","titleAlignment","theme","scrollY","_styles","styles","useVariants","headerCollapseHeight","layout","header","height","largeTitleAnimatedStyle","opacity","transform","translateY","value","View","style","portalContent","children","maxFontSizeMultiplier","typography","variants","largeTitle","LargeTitleHeader","LeftToolbar","RightToolbar","dismissAction","navigation","onDismiss","isLargeTitleHidden","bg","bgColor","isTransparent","gradientColor","color","background","isLargeTitleHiddenValue","_styles2","gradientOpacityStyle","compactTitleAnimatedStyle","leading","trailing","container","hostName","safeArea","bar","gradient","pointerEvents","titleContainer","compactTitle","create","runtime","position","top","left","right","zIndex","insets","backgroundColor","uni__dependencies","bottom","flexDirection","alignItems","paddingHorizontal","screen","margin","x","gap","spacing","justifyContent","minHeight","paddingBottom","fontSize","lineHeight","letterSpacing","fontWeight","center","textAlign","flex"],"sourceRoot":"../../../../../../src","sources":["components/header/variants/LargeTitleHeader/index.tsx"],"mappings":";;;;AAAA,SAASA,SAAS,QAAQ,OAAO;AAGjC,OAAOC,QAAQ,IAAIC,WAAW,EAAEC,gBAAgB,EAAEC,cAAc,QAAQ,yBAAyB;AACjG,SAASC,UAAU,EAAEC,YAAY,QAAQ,wBAAwB;AAEjE,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAC1B,SAASC,MAAM;AACf,SAASC,yBAAyB,EAAEC,SAAS;AAC7C,SAASC,OAAO;AAChB,SAASC,mBAAmB;AAC5B,SAASC,kBAAkB,EAAEC,qBAAqB;AAA4C,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAG9F,MAAMC,YAAY,GAAGrB,QAAQ,CAACsB,uBAAuB,CAACC,IAAI,CAAC;;AAE3D;AACA,MAAMC,0BAA0B,GAAG,CAAC;AACpC;AACA,MAAMC,wBAAwB,GAAG,CAAC;AAWlC,SA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ACDR,IAAI,EAAE;UACJwB,IAAI,EAAE,CAAC;UACPhB,UAAU,EAAE;QACd;MACF;IACF,CAAC;IAAAH,iBAAA;EACH;AACF,CAAC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
import { View } from "react-native-unistyles/components/native/View";
|
|
4
4
|
import { Text } from "react-native-unistyles/components/native/Text";
|
|
5
|
-
import { StyleSheet, useUnistyles } from
|
|
5
|
+
import { StyleSheet, useUnistyles } from "react-native-unistyles";
|
|
6
6
|
import { resolveThemeColor } from "../../../../utils/resolve-theme-color.js";
|
|
7
7
|
import { FONT_WEIGHT_VALUE } from "../../../../utils/typography.js";
|
|
8
8
|
import { Toolbar } from "../../../toolbar/index.js";
|
|
9
9
|
import { HeaderDismissButton } from "../../header-buttons.js";
|
|
10
|
-
import { HeaderGradientOverlay } from "../../parts/HeaderGradientOverlay.js";
|
|
10
|
+
import { HEADER_FADE_EXTENT, HeaderGradientOverlay } from "../../parts/HeaderGradientOverlay.js";
|
|
11
11
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
12
|
/**
|
|
13
13
|
* Compact title bar (leading slot · title · trailing slot) with a top safe-area
|
|
@@ -30,31 +30,31 @@ export function TitleHeader({
|
|
|
30
30
|
title,
|
|
31
31
|
LeftToolbar,
|
|
32
32
|
RightToolbar,
|
|
33
|
-
dismissAction =
|
|
33
|
+
dismissAction = "none",
|
|
34
34
|
navigation,
|
|
35
35
|
onDismiss,
|
|
36
|
-
titleAlignment =
|
|
37
|
-
bg =
|
|
36
|
+
titleAlignment = "center",
|
|
37
|
+
bg = "background"
|
|
38
38
|
}) {
|
|
39
39
|
const {
|
|
40
40
|
theme
|
|
41
41
|
} = useUnistyles();
|
|
42
|
-
const bgColor = resolveThemeColor(bg, theme) ?? theme.color[
|
|
43
|
-
const isTransparent = bgColor ===
|
|
44
|
-
const gradientColor = isTransparent ? theme.color[
|
|
42
|
+
const bgColor = resolveThemeColor(bg, theme) ?? theme.color["surface.default"] ?? "";
|
|
43
|
+
const isTransparent = bgColor === "transparent";
|
|
44
|
+
const gradientColor = isTransparent ? theme.color["surface.default"] : bgColor;
|
|
45
45
|
const _styles = styles;
|
|
46
46
|
{
|
|
47
47
|
const styles = _styles.useVariants({
|
|
48
48
|
titleAlignment
|
|
49
49
|
});
|
|
50
|
-
const leading = dismissAction ===
|
|
50
|
+
const leading = dismissAction === "back" ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
51
51
|
children: [/*#__PURE__*/_jsx(HeaderDismissButton, {
|
|
52
52
|
dismissAction: dismissAction,
|
|
53
53
|
navigation: navigation,
|
|
54
54
|
onDismiss: onDismiss
|
|
55
55
|
}), LeftToolbar]
|
|
56
56
|
}) : LeftToolbar;
|
|
57
|
-
const trailing = dismissAction ===
|
|
57
|
+
const trailing = dismissAction === "close" ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
58
58
|
children: [RightToolbar, /*#__PURE__*/_jsx(HeaderDismissButton, {
|
|
59
59
|
dismissAction: dismissAction,
|
|
60
60
|
navigation: navigation,
|
|
@@ -92,7 +92,7 @@ export function TitleHeader({
|
|
|
92
92
|
}
|
|
93
93
|
const styles = StyleSheet.create((theme, runtime) => ({
|
|
94
94
|
container: {
|
|
95
|
-
position:
|
|
95
|
+
position: "absolute",
|
|
96
96
|
top: 0,
|
|
97
97
|
left: 0,
|
|
98
98
|
right: 0,
|
|
@@ -100,58 +100,62 @@ const styles = StyleSheet.create((theme, runtime) => ({
|
|
|
100
100
|
},
|
|
101
101
|
safeArea: (isTransparent, bgColor) => ({
|
|
102
102
|
height: runtime.insets.top,
|
|
103
|
-
backgroundColor: isTransparent ?
|
|
103
|
+
backgroundColor: isTransparent ? "transparent" : bgColor,
|
|
104
104
|
uni__dependencies: [9]
|
|
105
105
|
}),
|
|
106
|
+
// Overhangs the bar by `HEADER_FADE_EXTENT` so the fade has room to finish
|
|
107
|
+
// below it — confined to the bar, the curve would be steep enough to read as a
|
|
108
|
+
// band. Nothing on the path clips and the overlay is `pointerEvents="none"`,
|
|
109
|
+
// so the spill costs neither layout nor touches.
|
|
106
110
|
gradient: {
|
|
107
|
-
position:
|
|
111
|
+
position: "absolute",
|
|
108
112
|
top: 0,
|
|
109
113
|
left: 0,
|
|
110
114
|
right: 0,
|
|
111
|
-
bottom:
|
|
115
|
+
bottom: -HEADER_FADE_EXTENT
|
|
112
116
|
},
|
|
113
117
|
bar: {
|
|
114
118
|
height: theme.layout.header.height,
|
|
115
|
-
flexDirection:
|
|
116
|
-
alignItems:
|
|
119
|
+
flexDirection: "row",
|
|
120
|
+
alignItems: "center",
|
|
117
121
|
paddingHorizontal: theme.layout.screen.margin.x,
|
|
118
|
-
gap: theme.spacing[
|
|
119
|
-
justifyContent:
|
|
122
|
+
gap: theme.spacing["3"],
|
|
123
|
+
justifyContent: "space-between",
|
|
120
124
|
uni__dependencies: [0]
|
|
121
125
|
},
|
|
122
126
|
trailing: {
|
|
123
|
-
justifyContent:
|
|
127
|
+
justifyContent: "flex-end"
|
|
124
128
|
},
|
|
125
129
|
titleContainer: {
|
|
126
130
|
variants: {
|
|
127
131
|
titleAlignment: {
|
|
128
132
|
center: {
|
|
129
|
-
position:
|
|
133
|
+
position: "absolute",
|
|
130
134
|
left: 0,
|
|
131
135
|
right: 0,
|
|
132
|
-
alignItems:
|
|
136
|
+
alignItems: "center"
|
|
133
137
|
},
|
|
134
138
|
left: {
|
|
135
139
|
flex: 1,
|
|
136
|
-
alignItems:
|
|
140
|
+
alignItems: "flex-start"
|
|
137
141
|
}
|
|
138
142
|
}
|
|
139
143
|
},
|
|
140
144
|
uni__dependencies: [4]
|
|
141
145
|
},
|
|
142
146
|
title: {
|
|
143
|
-
fontSize: theme.typography.variants[
|
|
144
|
-
lineHeight: theme.typography.variants[
|
|
145
|
-
letterSpacing: theme.typography.variants[
|
|
146
|
-
fontWeight: FONT_WEIGHT_VALUE[theme.typography.variants[
|
|
147
|
-
color: theme.color[
|
|
147
|
+
fontSize: theme.typography.variants["title-md"].fontSize,
|
|
148
|
+
lineHeight: theme.typography.variants["title-md"].lineHeight,
|
|
149
|
+
letterSpacing: theme.typography.variants["title-md"].letterSpacing,
|
|
150
|
+
fontWeight: FONT_WEIGHT_VALUE[theme.typography.variants["title-md"].fontWeight],
|
|
151
|
+
color: theme.color["text.default"] ?? "",
|
|
148
152
|
variants: {
|
|
149
153
|
titleAlignment: {
|
|
150
154
|
center: {
|
|
151
|
-
textAlign:
|
|
155
|
+
textAlign: "center"
|
|
152
156
|
},
|
|
153
157
|
left: {
|
|
154
|
-
textAlign:
|
|
158
|
+
textAlign: "left"
|
|
155
159
|
}
|
|
156
160
|
}
|
|
157
161
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","useUnistyles","resolveThemeColor","FONT_WEIGHT_VALUE","Toolbar","HeaderDismissButton","HeaderGradientOverlay","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","TitleHeader","title","LeftToolbar","RightToolbar","dismissAction","navigation","onDismiss","titleAlignment","bg","theme","bgColor","color","isTransparent","gradientColor","_styles","styles","useVariants","leading","children","trailing","View","style","container","safeArea","bar","gradient","pointerEvents","titleContainer","Text","create","runtime","position","top","left","right","zIndex","height","insets","backgroundColor","uni__dependencies","bottom","layout","header","flexDirection","alignItems","paddingHorizontal","screen","margin","x","gap","spacing","justifyContent","variants","center","flex","fontSize","typography","lineHeight","letterSpacing","fontWeight","textAlign"],"sourceRoot":"../../../../../../src","sources":["components/header/variants/TitleHeader/index.tsx"],"mappings":";;;;AAGA,SAASA,UAAU,EAAEC,YAAY,QAAQ,wBAAwB;AAGjE,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;
|
|
1
|
+
{"version":3,"names":["StyleSheet","useUnistyles","resolveThemeColor","FONT_WEIGHT_VALUE","Toolbar","HeaderDismissButton","HEADER_FADE_EXTENT","HeaderGradientOverlay","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","TitleHeader","title","LeftToolbar","RightToolbar","dismissAction","navigation","onDismiss","titleAlignment","bg","theme","bgColor","color","isTransparent","gradientColor","_styles","styles","useVariants","leading","children","trailing","View","style","container","safeArea","bar","gradient","pointerEvents","titleContainer","Text","create","runtime","position","top","left","right","zIndex","height","insets","backgroundColor","uni__dependencies","bottom","layout","header","flexDirection","alignItems","paddingHorizontal","screen","margin","x","gap","spacing","justifyContent","variants","center","flex","fontSize","typography","lineHeight","letterSpacing","fontWeight","textAlign"],"sourceRoot":"../../../../../../src","sources":["components/header/variants/TitleHeader/index.tsx"],"mappings":";;;;AAGA,SAASA,UAAU,EAAEC,YAAY,QAAQ,wBAAwB;AAGjE,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAC1B,SAASC,OAAO;AAChB,SAASC,mBAAmB;AAC5B,SAASC,kBAAkB,EAAEC,qBAAqB;AAA4C,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AAoB9F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,WAAWA,CAAC;EAC1BC,KAAK;EACLC,WAAW;EACXC,YAAY;EACZC,aAAa,GAAG,MAAM;EACtBC,UAAU;EACVC,SAAS;EACTC,cAAc,GAAG,QAAQ;EACzBC,EAAE,GAAG;AACW,CAAC,EAAE;EACnB,MAAM;IAAEC;EAAM,CAAC,GAAGtB,YAAY,CAAC,CAAC;EAEhC,MAAMuB,OAAO,GACXtB,iBAAiB,CAACoB,EAAE,EAAEC,KAAK,CAAC,IAC3BA,KAAK,CAACE,KAAK,CAAmD,iBAAiB,CAAC,IACjF,EAAE;EACJ,MAAMC,aAAa,GAAGF,OAAO,KAAK,aAAa;EAC/C,MAAMG,aAAa,GAAGD,aAAa,GAAGH,KAAK,CAACE,KAAK,CAAC,iBAAiB,CAAC,GAAGD,OAAO;EAAC,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eAAe;IAAAZ,iBAAA;EACjC,CAAC;EACDpB,QAAQ,EAAE;IACRgC,cAAc,EAAE;EAClB,CAAC;EACDxB,cAAc,EAAE;IACdyB,QAAQ,EAAE;MACR7C,cAAc,EAAE;QACd8C,MAAM,EAAE;UACNtB,QAAQ,EAAE,UAAU;UACpBE,IAAI,EAAE,CAAC;UACPC,KAAK,EAAE,CAAC;UACRU,UAAU,EAAE;QACd,CAAC;QACDX,IAAI,EAAE;UACJqB,IAAI,EAAE,CAAC;UACPV,UAAU,EAAE;QACd;MACF;IACF,CAAC;IAAAL,iBAAA;EACH,CAAC;EACDtC,KAAK,EAAE;IACLsD,QAAQ,EAAE9C,KAAK,CAAC+C,UAAU,CAACJ,QAAQ,CAAC,UAAU,CAAC,CAACG,QAAQ;IACxDE,UAAU,EAAEhD,KAAK,CAAC+C,UAAU,CAACJ,QAAQ,CAAC,UAAU,CAAC,CAACK,UAAU;IAC5DC,aAAa,EAAEjD,KAAK,CAAC+C,UAAU,CAACJ,QAAQ,CAAC,UAAU,CAAC,CAACM,aAAa;IAClEC,UAAU,EAAEtE,iBAAiB,CAACoB,KAAK,CAAC+C,UAAU,CAACJ,QAAQ,CAAC,UAAU,CAAC,CAACO,UAAU,CAAC;IAC/EhD,KAAK,EAAGF,KAAK,CAACE,KAAK,CAAmD,cAAc,CAAC,IAAI,EAAE;IAC3FyC,QAAQ,EAAE;MACR7C,cAAc,EAAE;QACd8C,MAAM,EAAE;UAAEO,SAAS,EAAE;QAAS,CAAC;QAC/B3B,IAAI,EAAE;UAAE2B,SAAS,EAAE;QAAO;MAC5B;IACF,CAAC;IAAArB,iBAAA;EACH;AACF,CAAC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { View } from "react-native-unistyles/components/native/View";
|
|
4
|
-
import { forwardRef } from
|
|
5
|
-
import { StyleSheet, useUnistyles } from
|
|
4
|
+
import { forwardRef } from "react";
|
|
5
|
+
import { StyleSheet, useUnistyles } from "react-native-unistyles";
|
|
6
6
|
import { getIcon } from "../../theme/registry.js";
|
|
7
7
|
import { resolveThemeColor } from "../../utils/resolve-theme-color.js";
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -18,7 +18,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
18
18
|
export const Icon = /*#__PURE__*/forwardRef(function Icon({
|
|
19
19
|
name,
|
|
20
20
|
size = 20,
|
|
21
|
-
color =
|
|
21
|
+
color = "text.default",
|
|
22
22
|
strokeWidth,
|
|
23
23
|
style,
|
|
24
24
|
...rest
|
|
@@ -33,7 +33,7 @@ export const Icon = /*#__PURE__*/forwardRef(function Icon({
|
|
|
33
33
|
}
|
|
34
34
|
return null;
|
|
35
35
|
}
|
|
36
|
-
const resolvedColor = resolveThemeColor(color, theme) ?? theme.color[
|
|
36
|
+
const resolvedColor = resolveThemeColor(color, theme) ?? theme.color["text.default"] ?? "";
|
|
37
37
|
return /*#__PURE__*/_jsx(View, {
|
|
38
38
|
ref: ref,
|
|
39
39
|
style: [styles.container(size), style],
|
|
@@ -58,8 +58,8 @@ const styles = StyleSheet.create(() => ({
|
|
|
58
58
|
container: size => ({
|
|
59
59
|
width: size,
|
|
60
60
|
height: size,
|
|
61
|
-
alignItems:
|
|
62
|
-
justifyContent:
|
|
61
|
+
alignItems: "center",
|
|
62
|
+
justifyContent: "center"
|
|
63
63
|
})
|
|
64
64
|
}));
|
|
65
65
|
//# sourceMappingURL=Icon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["forwardRef","StyleSheet","useUnistyles","getIcon","resolveThemeColor","jsx","_jsx","Icon","name","size","color","strokeWidth","style","rest","ref","theme","IconComponent","__DEV__","console","warn","resolvedColor","View","styles","container","children","create","width","height","alignItems","justifyContent"],"sourceRoot":"../../../../src","sources":["components/icon/Icon.tsx"],"mappings":";;;AACA,SAASA,UAAU,QAAQ,OAAO;AAGlC,SAASC,UAAU,EAAEC,YAAY,QAAQ,wBAAwB;AAEjE,SAASC,OAAO;AAEhB,SAASC,iBAAiB;AAAqC,SAAAC,GAAA,IAAAC,IAAA;AAY/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,IAAI,gBAAGP,UAAU,
|
|
1
|
+
{"version":3,"names":["forwardRef","StyleSheet","useUnistyles","getIcon","resolveThemeColor","jsx","_jsx","Icon","name","size","color","strokeWidth","style","rest","ref","theme","IconComponent","__DEV__","console","warn","resolvedColor","View","styles","container","children","create","width","height","alignItems","justifyContent"],"sourceRoot":"../../../../src","sources":["components/icon/Icon.tsx"],"mappings":";;;AACA,SAASA,UAAU,QAAQ,OAAO;AAGlC,SAASC,UAAU,EAAEC,YAAY,QAAQ,wBAAwB;AAEjE,SAASC,OAAO;AAEhB,SAASC,iBAAiB;AAAqC,SAAAC,GAAA,IAAAC,IAAA;AAY/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,IAAI,gBAAGP,UAAU,CAAuC,SAASO,IAAIA,CAChF;EAAEC,IAAI;EAAEC,IAAI,GAAG,EAAE;EAAEC,KAAK,GAAG,cAAc;EAAEC,WAAW;EAAEC,KAAK;EAAE,GAAGC;AAAK,CAAC,EACxEC,GAAG,EACH;EACA,MAAM;IAAEC;EAAM,CAAC,GAAGb,YAAY,CAAC,CAAC;EAChC,MAAMc,aAAa,GAAGb,OAAO,CAACK,IAAI,CAAC;EAEnC,IAAI,CAACQ,aAAa,EAAE;IAClB,IAAIC,OAAO,EAAE;MACXC,OAAO,CAACC,IAAI,CAAC,yCAAyCX,IAAI,IAAI,CAAC;IACjE;IACA,OAAO,IAAI;EACb;EAEA,MAAMY,aAAa,GACjBhB,iBAAiB,CAACM,KAAK,EAAEK,KAAK,CAAC,IAC9BA,KAAK,CAACL,KAAK,CAAmD,cAAc,CAAC,IAC9E,EAAE;EAEJ,oBACEJ,IAAA,CAACe,IAAI;IAACP,GAAG,EAAEA,GAAI;IAACF,KAAK,EAAE,CAACU,MAAM,CAACC,SAAS,CAACd,IAAI,CAAC,EAAEG,KAAK,CAAE;IAAA,GAAKC,IAAI;IAAAW,QAAA,eAC9DlB,IAAA,CAACU,aAAa;MAACN,KAAK,EAAEU,aAAc;MAACX,IAAI,EAAEA,IAAK;MAACE,WAAW,EAAEA;IAAY,CAAE;EAAC,CACzE,CAAC;AAEX,CAAC,CAAC;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMW,MAAM,GAAGrB,UAAU,CAACwB,MAAM,CAAC,OAAO;EACtCF,SAAS,EAAGd,IAAY,KAAM;IAC5BiB,KAAK,EAAEjB,IAAI;IACXkB,MAAM,EAAElB,IAAI;IACZmB,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;AACH,CAAC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { View } from "react-native-unistyles/components/native/View";
|
|
4
|
-
import { StyleSheet } from
|
|
4
|
+
import { StyleSheet } from "react-native-unistyles";
|
|
5
5
|
import { getImageComponent } from "../../theme/registry.js";
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
/**
|
|
@@ -18,10 +18,10 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
20
|
export function Image({
|
|
21
|
-
contentFit =
|
|
21
|
+
contentFit = "cover",
|
|
22
22
|
width,
|
|
23
23
|
height,
|
|
24
|
-
radius =
|
|
24
|
+
radius = "none",
|
|
25
25
|
style,
|
|
26
26
|
// Defaults to `contentFit` here (rather than leaving it to each backend's
|
|
27
27
|
// own default) so a same-resolution placeholder never renders smaller than
|
|
@@ -49,12 +49,12 @@ const styles = StyleSheet.create(_theme => ({
|
|
|
49
49
|
height: h
|
|
50
50
|
} : {}),
|
|
51
51
|
borderRadius: _theme.radius[r],
|
|
52
|
-
overflow:
|
|
52
|
+
overflow: "hidden",
|
|
53
53
|
uni__dependencies: [0]
|
|
54
54
|
}),
|
|
55
55
|
image: {
|
|
56
|
-
width:
|
|
57
|
-
height:
|
|
56
|
+
width: "100%",
|
|
57
|
+
height: "100%"
|
|
58
58
|
}
|
|
59
59
|
}));
|
|
60
60
|
//# sourceMappingURL=Image.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","getImageComponent","jsx","_jsx","Image","contentFit","width","height","radius","style","placeholderContentFit","rest","ImageComponent","View","styles","container","children","image","create","_theme","w","h","r","borderRadius","overflow","uni__dependencies"],"sourceRoot":"../../../../src","sources":["components/image/Image.tsx"],"mappings":";;;
|
|
1
|
+
{"version":3,"names":["StyleSheet","getImageComponent","jsx","_jsx","Image","contentFit","width","height","radius","style","placeholderContentFit","rest","ImageComponent","View","styles","container","children","image","create","_theme","w","h","r","borderRadius","overflow","uni__dependencies"],"sourceRoot":"../../../../src","sources":["components/image/Image.tsx"],"mappings":";;;AAEA,SAASA,UAAU,QAAQ,wBAAwB;AAEnD,SAASC,iBAAiB;AAA0B,SAAAC,GAAA,IAAAC,IAAA;AAIpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,KAAKA,CAAC;EACpBC,UAAU,GAAG,OAAO;EACpBC,KAAK;EACLC,MAAM;EACNC,MAAM,GAAG,MAAM;EACfC,KAAK;EACL;EACA;EACA;EACAC,qBAAqB,GAAGL,UAAU;EAClC,GAAGM;AACO,CAAC,EAAE;EACb,MAAMC,cAAc,GAAGX,iBAAiB,CAAC,CAAC;EAE1C,oBACEE,IAAA,CAACU,IAAI;IAACJ,KAAK,EAAE,CAACK,MAAM,CAACC,SAAS,CAACT,KAAK,EAAEC,MAAM,EAAEC,MAAM,CAAC,EAAEC,KAAK,CAAE;IAAAO,QAAA,eAC5Db,IAAA,CAACS,cAAc;MACbP,UAAU,EAAEA,UAAW;MACvBK,qBAAqB,EAAEA,qBAAsB;MAC7CD,KAAK,EAAEK,MAAM,CAACG,KAAM;MAAA,GAChBN;IAAI,CACT;EAAC,CACE,CAAC;AAEX;AAEA,MAAMG,MAAM,GAAGd,UAAU,CAACkB,MAAM,CAAEC,MAAM,KAAM;EAC5CJ,SAAS,EAAEA,CAACK,CAAqB,EAAEC,CAAqB,EAAEC,CAAY,MAAM;IAC1E,IAAIF,CAAC,GAAG;MAAEd,KAAK,EAAEc;IAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,IAAIC,CAAC,GAAG;MAAEd,MAAM,EAAEc;IAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3BE,YAAY,EAAEJ,MAAM,CAACX,MAAM,CAACc,CAAC,CAAC;IAC9BE,QAAQ,EAAE,QAAQ;IAAAC,iBAAA;EACpB,CAAC,CAAC;EACFR,KAAK,EAAE;IACLX,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE;EACV;AACF,CAAC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -19,7 +19,7 @@ export function PageIndicator(props) {
|
|
|
19
19
|
maxVisible = DEFAULT_PAGE_INDICATOR_MAX_VISIBLE,
|
|
20
20
|
style
|
|
21
21
|
} = props;
|
|
22
|
-
if (props.variant ===
|
|
22
|
+
if (props.variant === "dot") {
|
|
23
23
|
return /*#__PURE__*/_jsx(DotIndicator, {
|
|
24
24
|
count: count,
|
|
25
25
|
current: current,
|