react-native-terra-ui 0.5.0 → 0.6.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 +31 -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 +2 -2
- package/lib/module/components/header/parts/HeaderGradientOverlay.js.map +1 -1
- package/lib/module/components/header/variants/LargeTitleHeader/index.js +58 -58
- package/lib/module/components/header/variants/LargeTitleHeader/index.js.map +1 -1
- package/lib/module/components/header/variants/TitleHeader/index.js +27 -27
- 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 +11 -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 +25 -25
- 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/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.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 +2 -2
- 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 +99 -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 +3 -7
- package/src/components/header/variants/LargeTitleHeader/index.tsx +75 -139
- package/src/components/header/variants/TitleHeader/index.tsx +40 -62
- package/src/components/icon/Icon.tsx +31 -39
- package/src/components/icon/index.ts +2 -2
- package/src/components/image/Image.tsx +22 -11
- 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 +42 -61
- 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 +138 -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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { readableOn, shade, withAlpha } from "./color-utils.js";
|
|
4
|
-
const isShorthand = accent => typeof accent.light ===
|
|
4
|
+
const isShorthand = accent => typeof accent.light === "string" || typeof accent.dark === "string";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Expands a single hue into a fuller per-scheme patch so primary AND subtle
|
|
@@ -14,22 +14,22 @@ const isShorthand = accent => typeof accent.light === 'string' || typeof accent.
|
|
|
14
14
|
*/
|
|
15
15
|
function hueToPartial(hue, scheme) {
|
|
16
16
|
if (!hue) return {};
|
|
17
|
-
const dir = scheme ===
|
|
18
|
-
const isLight = scheme ===
|
|
17
|
+
const dir = scheme === "light" ? -1 : 1;
|
|
18
|
+
const isLight = scheme === "light";
|
|
19
19
|
const fg = readableOn(hue);
|
|
20
20
|
// Flat color keys to patch — deepMerge replaces string leaves directly.
|
|
21
21
|
const color = {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
22
|
+
"action.bg.primary": hue,
|
|
23
|
+
"action.fg.primary": fg,
|
|
24
|
+
"action.bg.primary.hover": shade(hue, dir * 0.12),
|
|
25
|
+
"action.bg.primary.active": shade(hue, dir * 0.24),
|
|
26
|
+
"action.bg.primary.subtle": withAlpha(hue, isLight ? 0.12 : 0.2),
|
|
27
|
+
"action.fg.primary.subtle": hue,
|
|
28
|
+
"action.bg.primary.subtle.hover": withAlpha(hue, isLight ? 0.18 : 0.28),
|
|
29
|
+
"action.bg.primary.subtle.active": withAlpha(hue, isLight ? 0.24 : 0.36),
|
|
30
|
+
"text.accent": hue,
|
|
31
|
+
"text.link": hue,
|
|
32
|
+
"text.on-accent": fg
|
|
33
33
|
};
|
|
34
34
|
return {
|
|
35
35
|
color
|
|
@@ -40,8 +40,8 @@ function hueToPartial(hue, scheme) {
|
|
|
40
40
|
export function normalizeAccent(accent) {
|
|
41
41
|
if (isShorthand(accent)) {
|
|
42
42
|
return {
|
|
43
|
-
light: hueToPartial(accent.light,
|
|
44
|
-
dark: hueToPartial(accent.dark,
|
|
43
|
+
light: hueToPartial(accent.light, "light"),
|
|
44
|
+
dark: hueToPartial(accent.dark, "dark")
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["readableOn","shade","withAlpha","isShorthand","accent","light","dark","hueToPartial","hue","scheme","dir","isLight","fg","color","normalizeAccent"],"sourceRoot":"../../../src","sources":["utils/accent-utils.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"names":["readableOn","shade","withAlpha","isShorthand","accent","light","dark","hueToPartial","hue","scheme","dir","isLight","fg","color","normalizeAccent"],"sourceRoot":"../../../src","sources":["utils/accent-utils.ts"],"mappings":";;AACA,SAASA,UAAU,EAAEC,KAAK,EAAEC,SAAS;AAGrC,MAAMC,WAAW,GAAIC,MAAc,IACjC,OAAQA,MAAM,CAAqBC,KAAK,KAAK,QAAQ,IACrD,OAAQD,MAAM,CAAqBE,IAAI,KAAK,QAAQ;;AAEtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,YAAYA,CAACC,GAAuB,EAAEC,MAAwB,EAA2B;EAChG,IAAI,CAACD,GAAG,EAAE,OAAO,CAAC,CAAC;EACnB,MAAME,GAAG,GAAGD,MAAM,KAAK,OAAO,GAAG,CAAC,CAAC,GAAG,CAAC;EACvC,MAAME,OAAO,GAAGF,MAAM,KAAK,OAAO;EAClC,MAAMG,EAAE,GAAGZ,UAAU,CAACQ,GAAG,CAAC;EAC1B;EACA,MAAMK,KAAK,GAAG;IACZ,mBAAmB,EAAEL,GAAG;IACxB,mBAAmB,EAAEI,EAAE;IACvB,yBAAyB,EAAEX,KAAK,CAACO,GAAG,EAAEE,GAAG,GAAG,IAAI,CAAC;IACjD,0BAA0B,EAAET,KAAK,CAACO,GAAG,EAAEE,GAAG,GAAG,IAAI,CAAC;IAClD,0BAA0B,EAAER,SAAS,CAACM,GAAG,EAAEG,OAAO,GAAG,IAAI,GAAG,GAAG,CAAC;IAChE,0BAA0B,EAAEH,GAAG;IAC/B,gCAAgC,EAAEN,SAAS,CAACM,GAAG,EAAEG,OAAO,GAAG,IAAI,GAAG,IAAI,CAAC;IACvE,iCAAiC,EAAET,SAAS,CAACM,GAAG,EAAEG,OAAO,GAAG,IAAI,GAAG,IAAI,CAAC;IACxE,aAAa,EAAEH,GAAG;IAClB,WAAW,EAAEA,GAAG;IAChB,gBAAgB,EAAEI;EACpB,CAAC;EACD,OAAO;IAAEC;EAAM,CAAC;AAClB;;AAEA;AACA,OAAO,SAASC,eAAeA,CAACV,MAAc,EAAoB;EAChE,IAAID,WAAW,CAACC,MAAM,CAAC,EAAE;IACvB,OAAO;MACLC,KAAK,EAAEE,YAAY,CAACH,MAAM,CAACC,KAAK,EAAE,OAAO,CAAC;MAC1CC,IAAI,EAAEC,YAAY,CAACH,MAAM,CAACE,IAAI,EAAE,MAAM;IACxC,CAAC;EACH;EACA,OAAO;IAAED,KAAK,EAAED,MAAM,CAACC,KAAK,IAAI,CAAC,CAAC;IAAEC,IAAI,EAAEF,MAAM,CAACE,IAAI,IAAI,CAAC;EAAE,CAAC;AAC/D","ignoreList":[]}
|
|
@@ -17,7 +17,7 @@ const toHex = ({
|
|
|
17
17
|
r,
|
|
18
18
|
g,
|
|
19
19
|
b
|
|
20
|
-
}) => `#${[r, g, b].map(v => clamp(v).toString(16).padStart(2,
|
|
20
|
+
}) => `#${[r, g, b].map(v => clamp(v).toString(16).padStart(2, "0")).join("")}`;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Shifts a hex color toward black (negative `amount`) or white (positive),
|
|
@@ -45,9 +45,9 @@ export function withAlpha(hex, alpha) {
|
|
|
45
45
|
/** Picks black or white for legible text/icons on top of `hex`. */
|
|
46
46
|
export function readableOn(hex) {
|
|
47
47
|
const c = parseHex(hex);
|
|
48
|
-
if (!c) return
|
|
48
|
+
if (!c) return "#ffffff";
|
|
49
49
|
// Perceived luminance (0–1).
|
|
50
50
|
const luminance = (0.299 * c.r + 0.587 * c.g + 0.114 * c.b) / 255;
|
|
51
|
-
return luminance > 0.6 ?
|
|
51
|
+
return luminance > 0.6 ? "#000000" : "#ffffff";
|
|
52
52
|
}
|
|
53
53
|
//# sourceMappingURL=color-utils.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
/** Recursively makes every property (and nested property) optional. */
|
|
4
4
|
|
|
5
|
-
const isPlainObject = value => typeof value ===
|
|
5
|
+
const isPlainObject = value => typeof value === "object" && value !== null && !Array.isArray(value) && Object.getPrototypeOf(value) === Object.prototype;
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Deep-merges `override` onto `base`, returning a new object.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
const isColorLiteral = value => value.startsWith(
|
|
3
|
+
const isColorLiteral = value => value.startsWith("#") || value.startsWith("rgb") || value.startsWith("hsl") || value === "transparent" || value === "currentColor";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Resolves a {@link ColorToken} to a concrete color string using the theme.
|
|
@@ -15,6 +15,6 @@ export function resolveThemeColor(token, theme) {
|
|
|
15
15
|
if (!token) return undefined;
|
|
16
16
|
if (isColorLiteral(token)) return token;
|
|
17
17
|
const value = theme.color[token];
|
|
18
|
-
return typeof value ===
|
|
18
|
+
return typeof value === "string" ? value : undefined;
|
|
19
19
|
}
|
|
20
20
|
//# sourceMappingURL=resolve-theme-color.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["isColorLiteral","value","startsWith","resolveThemeColor","token","theme","undefined","color"],"sourceRoot":"../../../src","sources":["utils/resolve-theme-color.ts"],"mappings":";;AAEA,MAAMA,cAAc,GAAIC,KAAa,IACnCA,KAAK,CAACC,UAAU,CAAC,GAAG,CAAC,IACrBD,KAAK,CAACC,UAAU,CAAC,KAAK,CAAC,IACvBD,KAAK,CAACC,UAAU,CAAC,KAAK,CAAC,IACvBD,KAAK,KAAK,aAAa,IACvBA,KAAK,KAAK,cAAc;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASE,iBAAiBA,
|
|
1
|
+
{"version":3,"names":["isColorLiteral","value","startsWith","resolveThemeColor","token","theme","undefined","color"],"sourceRoot":"../../../src","sources":["utils/resolve-theme-color.ts"],"mappings":";;AAEA,MAAMA,cAAc,GAAIC,KAAa,IACnCA,KAAK,CAACC,UAAU,CAAC,GAAG,CAAC,IACrBD,KAAK,CAACC,UAAU,CAAC,KAAK,CAAC,IACvBD,KAAK,CAACC,UAAU,CAAC,KAAK,CAAC,IACvBD,KAAK,KAAK,aAAa,IACvBA,KAAK,KAAK,cAAc;;AAE1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASE,iBAAiBA,CAACC,KAA6B,EAAEC,KAAiB,EAAsB;EACtG,IAAI,CAACD,KAAK,EAAE,OAAOE,SAAS;EAC5B,IAAIN,cAAc,CAACI,KAAK,CAAC,EAAE,OAAOA,KAAK;EACvC,MAAMH,KAAK,GAAII,KAAK,CAACE,KAAK,CAAwCH,KAAK,CAAC;EACxE,OAAO,OAAOH,KAAK,KAAK,QAAQ,GAAGA,KAAK,GAAGK,SAAS;AACtD","ignoreList":[]}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
/** RN's sentinel for the platform default font (SF on iOS, Roboto on Android). */
|
|
4
|
-
export const SYSTEM_FONT =
|
|
4
|
+
export const SYSTEM_FONT = "System";
|
|
5
5
|
|
|
6
6
|
/** Numeric fontWeight applied when a weight token maps to the system font. */
|
|
7
7
|
export const FONT_WEIGHT_VALUE = {
|
|
8
|
-
regular:
|
|
9
|
-
medium:
|
|
10
|
-
semibold:
|
|
11
|
-
bold:
|
|
8
|
+
regular: "400",
|
|
9
|
+
medium: "500",
|
|
10
|
+
semibold: "600",
|
|
11
|
+
bold: "700"
|
|
12
12
|
};
|
|
13
13
|
//# sourceMappingURL=typography.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SYSTEM_FONT","FONT_WEIGHT_VALUE","regular","medium","semibold","bold"],"sourceRoot":"../../../src","sources":["utils/typography.ts"],"mappings":";;AAEA;AACA,OAAO,MAAMA,WAAW,GAAG,QAAQ;;AAEnC;AACA,OAAO,MAAMC,
|
|
1
|
+
{"version":3,"names":["SYSTEM_FONT","FONT_WEIGHT_VALUE","regular","medium","semibold","bold"],"sourceRoot":"../../../src","sources":["utils/typography.ts"],"mappings":";;AAEA;AACA,OAAO,MAAMA,WAAW,GAAG,QAAQ;;AAEnC;AACA,OAAO,MAAMC,iBAAyE,GAAG;EACvFC,OAAO,EAAE,KAAK;EACdC,MAAM,EAAE,KAAK;EACbC,QAAQ,EAAE,KAAK;EACfC,IAAI,EAAE;AACR,CAAC","ignoreList":[]}
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
export function unflatten(flat) {
|
|
14
14
|
const root = {};
|
|
15
15
|
for (const [path, value] of Object.entries(flat)) {
|
|
16
|
-
const segments = path.split(
|
|
16
|
+
const segments = path.split(".");
|
|
17
17
|
let node = root;
|
|
18
18
|
for (let i = 0; i < segments.length - 1; i++) {
|
|
19
19
|
const seg = segments[i];
|
|
20
20
|
if (seg === undefined) continue;
|
|
21
21
|
const next = node[seg];
|
|
22
|
-
if (typeof next ===
|
|
22
|
+
if (typeof next === "object" && next !== null) {
|
|
23
23
|
node = next;
|
|
24
24
|
} else {
|
|
25
25
|
const created = {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { AvatarProps } from
|
|
1
|
+
import type { AvatarProps } from "./types.js";
|
|
2
2
|
export declare function Avatar({ size, shape, source, name, fallback, contentFit, color, variant, style, ...rest }: AvatarProps): import("react").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../../src/components/avatar/Avatar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../../src/components/avatar/Avatar.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAA2B,MAAM,YAAS,CAAC;AAyCpE,wBAAgB,MAAM,CAAC,EACrB,IAAW,EACX,KAAgB,EAChB,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,UAAoB,EACpB,KAAmB,EACnB,OAAiB,EACjB,KAAK,EACL,GAAG,IAAI,EACR,EAAE,WAAW,+BA6Db"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Avatar } from
|
|
2
|
-
export type { AvatarColor, AvatarProps, AvatarShape, AvatarSize, AvatarVariant, } from
|
|
1
|
+
export { Avatar } from "./Avatar.js";
|
|
2
|
+
export type { AvatarColor, AvatarProps, AvatarShape, AvatarSize, AvatarVariant, } from "./types.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { ReactNode } from
|
|
2
|
-
import type { ViewProps } from
|
|
3
|
-
import type { TerraImageContentFit } from
|
|
4
|
-
export type AvatarSize =
|
|
5
|
-
export type AvatarShape =
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { ViewProps } from "react-native";
|
|
3
|
+
import type { TerraImageContentFit } from "../../theme/types";
|
|
4
|
+
export type AvatarSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
5
|
+
export type AvatarShape = "circle" | "rounded" | "square";
|
|
6
6
|
/** Semantic color scheme for the fallback state (initials / placeholder icon). */
|
|
7
|
-
export type AvatarColor =
|
|
7
|
+
export type AvatarColor = "secondary" | "primary" | "success" | "warning" | "danger";
|
|
8
8
|
/** Visual weight of the fallback background. */
|
|
9
|
-
export type AvatarVariant =
|
|
9
|
+
export type AvatarVariant = "solid" | "soft";
|
|
10
10
|
export interface AvatarProps extends ViewProps {
|
|
11
11
|
/** Predefined size token. Defaults to `'md'`. */
|
|
12
12
|
size?: AvatarSize;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/avatar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC1D,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC1D,kFAAkF;AAClF,MAAM,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/avatar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC1D,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC1D,kFAAkF;AAClF,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AACrF,gDAAgD;AAChD,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,CAAC;AAE7C,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,iDAAiD;IACjD,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,uFAAuF;IACvF,MAAM,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAC;IAClC,0EAA0E;IAC1E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,gEAAgE;IAChE,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,uDAAuD;IACvD,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,mDAAmD;IACnD,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ViewProps } from
|
|
2
|
-
import { type BoxStyleProps } from
|
|
1
|
+
import { type ViewProps } from "react-native";
|
|
2
|
+
import { type BoxStyleProps } from "./utils.js";
|
|
3
3
|
export interface BoxProps extends ViewProps, BoxStyleProps {
|
|
4
4
|
/** Merge Box's style/props onto a single child instead of rendering a View. */
|
|
5
5
|
asChild?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../../src/components/box/Box.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAKpD,OAAO,
|
|
1
|
+
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../../src/components/box/Box.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAKpD,OAAO,EAAuB,KAAK,aAAa,EAAmB,MAAM,YAAS,CAAC;AAEnF,MAAM,WAAW,QAAS,SAAQ,SAAS,EAAE,aAAa;IACxD,+EAA+E;IAC/E,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAID;;;GAGG;AACH,eAAO,MAAM,GAAG,sLA6Bd,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { BoxProps } from
|
|
2
|
-
export { Box } from
|
|
3
|
-
export type { Align, BorderWidthInput, BoxStyleProps, Justify, } from
|
|
1
|
+
export type { BoxProps } from "./Box.js";
|
|
2
|
+
export { Box } from "./Box.js";
|
|
3
|
+
export type { Align, BorderWidthInput, BoxStyleProps, Justify, } from "./utils.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type ViewStyle } from
|
|
2
|
-
import type { ColorToken, ElevationKey, RadiusKey, SpacingKey, TerraTheme } from
|
|
3
|
-
export type Align =
|
|
4
|
-
export type Justify =
|
|
5
|
-
export type BorderWidthInput = number |
|
|
1
|
+
import { type ViewStyle } from "react-native";
|
|
2
|
+
import type { ColorToken, ElevationKey, RadiusKey, SpacingKey, TerraTheme } from "../../theme/types";
|
|
3
|
+
export type Align = "start" | "center" | "end" | "stretch" | "baseline";
|
|
4
|
+
export type Justify = "start" | "center" | "end" | "between" | "around" | "evenly";
|
|
5
|
+
export type BorderWidthInput = number | "hairline";
|
|
6
6
|
/** Token-driven style props accepted by `Box`. */
|
|
7
7
|
export interface BoxStyleProps {
|
|
8
8
|
p?: SpacingKey;
|
|
@@ -27,13 +27,13 @@ export interface BoxStyleProps {
|
|
|
27
27
|
wrap?: boolean;
|
|
28
28
|
flex?: number;
|
|
29
29
|
alignSelf?: Align;
|
|
30
|
-
|
|
30
|
+
background?: ColorToken;
|
|
31
31
|
radius?: RadiusKey;
|
|
32
32
|
borderWidth?: BorderWidthInput;
|
|
33
33
|
borderColor?: ColorToken;
|
|
34
34
|
/**
|
|
35
35
|
* Drop-shadow depth — platform-aware shadow plus Android elevation. A shadow
|
|
36
|
-
* only renders over a non-transparent `
|
|
36
|
+
* only renders over a non-transparent `background`.
|
|
37
37
|
*/
|
|
38
38
|
elevation?: ElevationKey;
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/box/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/box/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE1D,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAGhG,MAAM,MAAM,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,UAAU,CAAC;AACxE,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;AACnF,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,UAAU,CAAC;AAKnD,kDAAkD;AAClD,MAAM,WAAW,aAAa;IAE5B,CAAC,CAAC,EAAE,UAAU,CAAC;IACf,EAAE,CAAC,EAAE,UAAU,CAAC;IAChB,EAAE,CAAC,EAAE,UAAU,CAAC;IAChB,EAAE,CAAC,EAAE,UAAU,CAAC;IAChB,EAAE,CAAC,EAAE,UAAU,CAAC;IAChB,EAAE,CAAC,EAAE,UAAU,CAAC;IAChB,EAAE,CAAC,EAAE,UAAU,CAAC;IAChB,CAAC,CAAC,EAAE,UAAU,CAAC;IACf,EAAE,CAAC,EAAE,UAAU,CAAC;IAChB,EAAE,CAAC,EAAE,UAAU,CAAC;IAChB,EAAE,CAAC,EAAE,UAAU,CAAC;IAChB,EAAE,CAAC,EAAE,UAAU,CAAC;IAChB,EAAE,CAAC,EAAE,UAAU,CAAC;IAChB,EAAE,CAAC,EAAE,UAAU,CAAC;IAChB,GAAG,CAAC,EAAE,UAAU,CAAC;IAEjB,sEAAsE;IACtE,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,KAAK,CAAC;IAElB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,WAAW,CAAC,EAAE,UAAU,CAAC;IACzB;;;OAGG;IACH,SAAS,CAAC,EAAE,YAAY,CAAC;CAC1B;AAsBD,2EAA2E;AAC3E,wBAAgB,eAAe,CAAC,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,GAAG,SAAS,CAmElF;AAED,gFAAgF;AAChF,eAAO,MAAM,mBAAmB,EAAE,SAAS,CAAC,MAAM,aAAa,CAAC,EA2B/D,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type ReactNode } from
|
|
2
|
-
import type { PressableProps } from
|
|
3
|
-
import type { ColorToken, TerraIconName } from
|
|
4
|
-
export type ButtonVariant =
|
|
5
|
-
export type ButtonSize =
|
|
6
|
-
export type ButtonRadius =
|
|
7
|
-
export interface ButtonProps extends Omit<PressableProps,
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { PressableProps } from "react-native";
|
|
3
|
+
import type { ColorToken, TerraIconName } from "../../theme/types";
|
|
4
|
+
export type ButtonVariant = "primary" | "secondary" | "outline" | "ghost" | "danger";
|
|
5
|
+
export type ButtonSize = "sm" | "md" | "lg";
|
|
6
|
+
export type ButtonRadius = "none" | "sm" | "md" | "lg" | "xl" | "full";
|
|
7
|
+
export interface ButtonProps extends Omit<PressableProps, "style" | "children" | "disabled"> {
|
|
8
8
|
variant?: ButtonVariant;
|
|
9
9
|
size?: ButtonSize;
|
|
10
10
|
radius?: ButtonRadius;
|
|
@@ -19,6 +19,13 @@ export interface ButtonProps extends Omit<PressableProps, 'style' | 'children' |
|
|
|
19
19
|
fullWidth?: boolean;
|
|
20
20
|
/** Remove the button's built-in horizontal padding. */
|
|
21
21
|
compact?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Overrides the variant's resolved background color (theme token or raw
|
|
24
|
+
* CSS color). The label/icon/spinner foreground automatically switches to
|
|
25
|
+
* whichever of light or dark is legible against it. `border`/`borderWidth`
|
|
26
|
+
* still come from `variant`.
|
|
27
|
+
*/
|
|
28
|
+
background?: ColorToken | (string & {});
|
|
22
29
|
children?: ReactNode;
|
|
23
30
|
}
|
|
24
31
|
interface ButtonContextValue {
|
|
@@ -35,7 +42,7 @@ export interface ButtonIconProps {
|
|
|
35
42
|
color?: ColorToken;
|
|
36
43
|
strokeWidth?: number;
|
|
37
44
|
}
|
|
38
|
-
declare const ButtonIcon: ({ name, size: sizeProp, color: colorProp, strokeWidth
|
|
45
|
+
declare const ButtonIcon: ({ name, size: sizeProp, color: colorProp, strokeWidth }: ButtonIconProps) => import("react").JSX.Element;
|
|
39
46
|
declare const ButtonRoot: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<import("react-native/types_generated/src/private/webapis/dom/nodes/ReactNativeElement").default>>;
|
|
40
47
|
type ButtonComponent = typeof ButtonRoot & {
|
|
41
48
|
Icon: typeof ButtonIcon;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/components/button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/components/button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA0D,KAAK,SAAS,EAAc,MAAM,OAAO,CAAC;AAC3G,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAMnD,OAAO,KAAK,EAAE,UAAU,EAAmB,aAAa,EAA2B,MAAM,cAAc,CAAC;AAOxG,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;AACrF,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC5C,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAEvE,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,UAAU,GAAG,UAAU,CAAC;IAC1F,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,4DAA4D;IAC5D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,uDAAuD;IACvD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,UAAU,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IACxC,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAID,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,UAAU,CAAC;CAClB;AAOD,eAAO,MAAM,gBAAgB,QAAO,kBAA+C,CAAC;AAmEpF,QAAA,MAAM,WAAW,GAAI,cAAc;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,gCAQzD,CAAC;AAUF,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,UAAU,GAAI,yDAAyD,eAAe,gCAW3F,CAAC;AAgBF,QAAA,MAAM,UAAU,yLAyDd,CAAC;AAEH,KAAK,eAAe,GAAG,OAAO,UAAU,GAAG;IACzC,IAAI,EAAE,OAAO,UAAU,CAAC;IACxB,KAAK,EAAE,OAAO,WAAW,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAiB,eAAe,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { ButtonIconProps, ButtonProps, ButtonRadius, ButtonSize, ButtonVariant, } from
|
|
2
|
-
export { Button, useButtonContext } from
|
|
1
|
+
export type { ButtonIconProps, ButtonProps, ButtonRadius, ButtonSize, ButtonVariant, } from "./Button.js";
|
|
2
|
+
export { Button, useButtonContext } from "./Button.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { type ReactNode } from
|
|
2
|
-
import { type ViewProps } from
|
|
3
|
-
import type { ColorToken, TerraIconName } from
|
|
4
|
-
import type { ChipColor, ChipSize, ChipVariant } from
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type ViewProps } from "react-native";
|
|
3
|
+
import type { ColorToken, TerraIconName } from "../../theme/types";
|
|
4
|
+
import type { ChipColor, ChipSize, ChipVariant } from "./types.js";
|
|
5
5
|
export interface ChipProps extends ViewProps {
|
|
6
6
|
size?: ChipSize;
|
|
7
7
|
variant?: ChipVariant;
|
|
8
8
|
color?: ChipColor;
|
|
9
9
|
children?: ReactNode;
|
|
10
10
|
}
|
|
11
|
-
export interface ChipIconProps extends Omit<ViewProps,
|
|
11
|
+
export interface ChipIconProps extends Omit<ViewProps, "children"> {
|
|
12
12
|
name: TerraIconName;
|
|
13
13
|
size?: number;
|
|
14
14
|
color?: ColorToken;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../../../src/components/chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../../../src/components/chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA0D,KAAK,SAAS,EAAc,MAAM,OAAO,CAAC;AAC3G,OAAO,EAAwB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAIpE,OAAO,KAAK,EAAE,UAAU,EAAmB,aAAa,EAAE,MAAM,cAAc,CAAC;AAI/E,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,YAAS,CAAC;AAGhE,MAAM,WAAW,SAAU,SAAQ,SAAS;IAC1C,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AA6HD,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAChE,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,QAAQ,GAAI,8DAA8D,aAAa,gCAa5F,CAAC;AAgBF,QAAA,MAAM,QAAQ,uLAgCZ,CAAC;AAEH,KAAK,aAAa,GAAG,OAAO,QAAQ,GAAG;IACrC,IAAI,EAAE,OAAO,QAAQ,CAAC;CACvB,CAAC;AAiBF,eAAO,MAAM,IAAI,EAA8B,aAAa,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { ChipIconProps, ChipProps } from
|
|
2
|
-
export { Chip } from
|
|
3
|
-
export type { ChipColor, ChipSize, ChipVariant } from
|
|
1
|
+
export type { ChipIconProps, ChipProps } from "./Chip.js";
|
|
2
|
+
export { Chip } from "./Chip.js";
|
|
3
|
+
export type { ChipColor, ChipSize, ChipVariant } from "./types.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export type ChipSize =
|
|
2
|
-
export type ChipVariant =
|
|
1
|
+
export type ChipSize = "sm" | "md" | "lg";
|
|
2
|
+
export type ChipVariant = "solid" | "soft" | "outline" | "ghost";
|
|
3
3
|
/**
|
|
4
4
|
* Semantic color scheme, or a raw CSS color literal (`#fff`, `rgb(...)`, `hsl(...)`).
|
|
5
5
|
* Has no effect when `variant="ghost"` — ghost always renders `text.default`.
|
|
6
6
|
*/
|
|
7
|
-
export type ChipColor =
|
|
7
|
+
export type ChipColor = "primary" | "secondary" | "success" | "warning" | "danger" | (string & {});
|
|
8
8
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -4,5 +4,5 @@ export interface CustomChipColors {
|
|
|
4
4
|
borderWidth: number;
|
|
5
5
|
fg: string;
|
|
6
6
|
}
|
|
7
|
-
export declare function getCustomColorColors(literal: string, variant:
|
|
7
|
+
export declare function getCustomColorColors(literal: string, variant: "solid" | "soft" | "outline"): CustomChipColors;
|
|
8
8
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type ReactNode } from
|
|
2
|
-
import { type ViewProps } from
|
|
3
|
-
import type { ColorToken, TerraIconName } from
|
|
4
|
-
import type { EmptyStateSize } from
|
|
5
|
-
export interface EmptyStateProps extends Omit<ViewProps,
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type ViewProps } from "react-native";
|
|
3
|
+
import type { ColorToken, TerraIconName } from "../../theme/types";
|
|
4
|
+
import type { EmptyStateSize } from "./types.js";
|
|
5
|
+
export interface EmptyStateProps extends Omit<ViewProps, "children"> {
|
|
6
6
|
/** Icon rendered in the circular badge above the title. */
|
|
7
7
|
icon?: TerraIconName;
|
|
8
8
|
/** Icon tint. Defaults to `text.subtle`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../../../src/components/empty-state/EmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAIpD,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAe,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../../../src/components/empty-state/EmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAIpD,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAe,MAAM,cAAc,CAAC;AAG3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAS,CAAC;AAE9C,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAClE,2DAA2D;IAC3D,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,qEAAqE;IACrE,KAAK,EAAE,SAAS,CAAC;IACjB,+EAA+E;IAC/E,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,mEAAmE;IACnE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AA0BD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,UAAU,6LA4CrB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { EmptyStateProps } from
|
|
2
|
-
export { EmptyState } from
|
|
3
|
-
export type { EmptyStateSize } from
|
|
1
|
+
export type { EmptyStateProps } from "./EmptyState.js";
|
|
2
|
+
export { EmptyState } from "./EmptyState.js";
|
|
3
|
+
export type { EmptyStateSize } from "./types.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* Overall scale of an empty state — drives the icon size, the typography of the
|
|
3
3
|
* title/description, and the spacing between them.
|
|
4
4
|
*/
|
|
5
|
-
export type EmptyStateSize =
|
|
5
|
+
export type EmptyStateSize = "sm" | "md" | "lg";
|
|
6
6
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LargeTitleHeader } from
|
|
2
|
-
import { TitleHeader } from
|
|
1
|
+
import { LargeTitleHeader } from "./variants/LargeTitleHeader/index.js";
|
|
2
|
+
import { TitleHeader } from "./variants/TitleHeader/index.js";
|
|
3
3
|
/**
|
|
4
4
|
* Composite header namespace.
|
|
5
5
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ToolbarButtonProps } from
|
|
1
|
+
import { type ToolbarButtonProps } from "../toolbar/index.js";
|
|
2
2
|
/**
|
|
3
3
|
* @deprecated Use {@link Toolbar.Button}. `HeaderButton` is an alias kept for
|
|
4
4
|
* compatibility and renders identically; `Toolbar.Button` additionally goes
|
|
@@ -25,7 +25,7 @@ export type HeaderButtonProps = ToolbarButtonProps;
|
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
27
27
|
export declare const HeaderButton: typeof import("../toolbar/Toolbar.js").ToolbarButton;
|
|
28
|
-
export type HeaderDismissAction =
|
|
28
|
+
export type HeaderDismissAction = "back" | "close" | "none";
|
|
29
29
|
export interface HeaderDismissNavigation {
|
|
30
30
|
canGoBack?: () => boolean;
|
|
31
31
|
goBack?: () => void;
|
|
@@ -39,5 +39,5 @@ export interface HeaderDismissProps {
|
|
|
39
39
|
/** Optional navigation object, usually from `useNavigation()`. */
|
|
40
40
|
navigation?: HeaderDismissNavigation;
|
|
41
41
|
}
|
|
42
|
-
export declare function HeaderDismissButton({ dismissAction, navigation, onDismiss
|
|
42
|
+
export declare function HeaderDismissButton({ dismissAction, navigation, onDismiss }: HeaderDismissProps): import("react").JSX.Element | null;
|
|
43
43
|
//# sourceMappingURL=header-buttons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header-buttons.d.ts","sourceRoot":"","sources":["../../../../../src/components/header/header-buttons.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"header-buttons.d.ts","sourceRoot":"","sources":["../../../../../src/components/header/header-buttons.tsx"],"names":[],"mappings":"AACA,OAAO,EAAW,KAAK,kBAAkB,EAAE,MAAM,qBAAY,CAAC;AAE9D;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;AAEnD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,YAAY,sDAAiB,CAAC;AAE3C,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAE5D,MAAM,WAAW,uBAAuB;IACtC,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,0EAA0E;IAC1E,aAAa,CAAC,EAAE,mBAAmB,CAAC;IACpC,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,kEAAkE;IAClE,UAAU,CAAC,EAAE,uBAAuB,CAAC;CACtC;AAQD,wBAAgB,mBAAmB,CAAC,EAAE,aAAsB,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE,kBAAkB,sCA4BxG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { Header } from
|
|
2
|
-
export { HeaderButton, type HeaderButtonProps, type HeaderDismissAction, HeaderDismissButton, type HeaderDismissNavigation, type HeaderDismissProps, } from
|
|
3
|
-
export type { LargeTitleHeaderProps } from
|
|
4
|
-
export { LargeTitleHeader } from
|
|
5
|
-
export type { TitleHeaderProps } from
|
|
6
|
-
export { TitleHeader } from
|
|
1
|
+
export { Header } from "./Header.js";
|
|
2
|
+
export { HeaderButton, type HeaderButtonProps, type HeaderDismissAction, HeaderDismissButton, type HeaderDismissNavigation, type HeaderDismissProps, } from "./header-buttons.js";
|
|
3
|
+
export type { LargeTitleHeaderProps } from "./variants/LargeTitleHeader/index.js";
|
|
4
|
+
export { LargeTitleHeader } from "./variants/LargeTitleHeader/index.js";
|
|
5
|
+
export type { TitleHeaderProps } from "./variants/TitleHeader/index.js";
|
|
6
|
+
export { TitleHeader } from "./variants/TitleHeader/index.js";
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderGradientOverlay.d.ts","sourceRoot":"","sources":["../../../../../../src/components/header/parts/HeaderGradientOverlay.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HeaderGradientOverlay.d.ts","sourceRoot":"","sources":["../../../../../../src/components/header/parts/HeaderGradientOverlay.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,0BAA0B;IACzC,8EAA8E;IAC9E,KAAK,EAAE,MAAM,CAAC;CACf;AAED,kFAAkF;AAClF,wBAAgB,qBAAqB,CAAC,EAAE,KAAK,EAAE,EAAE,0BAA0B,+BAc1E"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TitleHeaderProps } from
|
|
1
|
+
import type { TitleHeaderProps } from "../TitleHeader/index.js";
|
|
2
2
|
export interface LargeTitleHeaderProps extends TitleHeaderProps {
|
|
3
3
|
/** Optional small line shown above the large title. */
|
|
4
4
|
overline?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/header/variants/LargeTitleHeader/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/header/variants/LargeTitleHeader/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAgB,CAAC;AASvD,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;IAC7D,uDAAuD;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yEAAyE;IACzE,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AA0DD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,aAAsB,EACtB,UAAU,EACV,SAAS,EACT,cAAyB,EACzB,kBAA0B,EAC1B,EAAsB,GACvB,EAAE,qBAAqB,+BA0GvB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ReactNode } from
|
|
2
|
-
import type { ColorToken } from
|
|
3
|
-
import { type HeaderDismissProps } from
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { ColorToken } from "../../../../theme/types";
|
|
3
|
+
import { type HeaderDismissProps } from "../../header-buttons.js";
|
|
4
4
|
export interface TitleHeaderProps extends HeaderDismissProps {
|
|
5
5
|
title?: string;
|
|
6
6
|
/**
|
|
@@ -14,7 +14,7 @@ export interface TitleHeaderProps extends HeaderDismissProps {
|
|
|
14
14
|
*/
|
|
15
15
|
RightToolbar?: ReactNode;
|
|
16
16
|
/** Title placement within the bar. Defaults to `'center'`. */
|
|
17
|
-
titleAlignment?:
|
|
17
|
+
titleAlignment?: "center" | "left";
|
|
18
18
|
/** Background color token. Defaults to `surface.default`. */
|
|
19
19
|
bg?: ColorToken;
|
|
20
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/header/variants/TitleHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/header/variants/TitleHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI/C,OAAO,EAAuB,KAAK,kBAAkB,EAAE,MAAM,yBAAsB,CAAC;AAGpF,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;OAGG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,8DAA8D;IAC9D,cAAc,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IACnC,6DAA6D;IAC7D,EAAE,CAAC,EAAE,UAAU,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,WAAW,EACX,YAAY,EACZ,aAAsB,EACtB,UAAU,EACV,SAAS,EACT,cAAyB,EACzB,EAAsB,GACvB,EAAE,gBAAgB,+BA6ClB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type ViewProps } from
|
|
2
|
-
import type { ColorToken, TerraIconName } from
|
|
3
|
-
export interface IconProps extends Omit<ViewProps,
|
|
1
|
+
import { type ViewProps } from "react-native";
|
|
2
|
+
import type { ColorToken, TerraIconName } from "../../theme/types";
|
|
3
|
+
export interface IconProps extends Omit<ViewProps, "children"> {
|
|
4
4
|
/** Semantic or configured icon name from the theme registry. */
|
|
5
5
|
name: TerraIconName;
|
|
6
6
|
/** Icon size in density-independent pixels. Defaults to `20`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../../src/components/icon/Icon.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAKpD,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAG9D,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAC5D,gEAAgE;IAChE,IAAI,EAAE,aAAa,CAAC;IACpB,iEAAiE;IACjE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../../src/components/icon/Icon.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAKpD,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAG9D,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAC5D,gEAAgE;IAChE,IAAI,EAAE,aAAa,CAAC;IACpB,iEAAiE;IACjE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,IAAI,uLAwBf,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { IconProps } from
|
|
2
|
-
export { Icon } from
|
|
1
|
+
export type { IconProps } from "./Icon.js";
|
|
2
|
+
export { Icon } from "./Icon.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ImageProps } from
|
|
1
|
+
import type { ImageProps } from "./types.js";
|
|
2
2
|
/**
|
|
3
3
|
* Renders the image implementation configured via
|
|
4
4
|
* `configureTerraUI({ image })` (defaults to React Native's `Image`).
|
|
@@ -12,5 +12,5 @@ import type { ImageProps } from './types.js';
|
|
|
12
12
|
* />
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
|
-
export declare function Image({ contentFit, width, height, radius, style, ...rest }: ImageProps): import("react").JSX.Element;
|
|
15
|
+
export declare function Image({ contentFit, width, height, radius, style, placeholderContentFit, ...rest }: ImageProps): import("react").JSX.Element;
|
|
16
16
|
//# sourceMappingURL=Image.d.ts.map
|