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,5 +1,5 @@
|
|
|
1
|
-
import type { ReactElement, ReactNode } from
|
|
2
|
-
import type { ScreenScrollableProps } from
|
|
1
|
+
import type { ReactElement, ReactNode } from "react";
|
|
2
|
+
import type { ScreenScrollableProps } from "../types.js";
|
|
3
3
|
/**
|
|
4
4
|
* Centres a loading/empty placeholder in whatever space the content leaves.
|
|
5
5
|
* Grows so the placeholder sits in the middle of the content area rather than
|
|
@@ -8,7 +8,7 @@ import type { ScreenScrollableProps } from '../types.js';
|
|
|
8
8
|
export declare function ScreenPlaceholder({ children }: {
|
|
9
9
|
children: ReactNode;
|
|
10
10
|
}): import("react").JSX.Element;
|
|
11
|
-
interface PlaceholderInput extends Pick<ScreenScrollableProps,
|
|
11
|
+
interface PlaceholderInput extends Pick<ScreenScrollableProps, "loading" | "LoadingComponent" | "EmptyComponent"> {
|
|
12
12
|
/** Whether the container has nothing to render (empty `data`, no children). */
|
|
13
13
|
isEmpty: boolean;
|
|
14
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenPlaceholder.d.ts","sourceRoot":"","sources":["../../../../../../src/components/screen/parts/ScreenPlaceholder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAU,CAAC;AAEtD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAEtE;AAED,UAAU,gBACR,SAAQ,IAAI,
|
|
1
|
+
{"version":3,"file":"ScreenPlaceholder.d.ts","sourceRoot":"","sources":["../../../../../../src/components/screen/parts/ScreenPlaceholder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAU,CAAC;AAEtD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAEtE;AAED,UAAU,gBACR,SAAQ,IAAI,CAAC,qBAAqB,EAAE,SAAS,GAAG,kBAAkB,GAAG,gBAAgB,CAAC;IACtF,+EAA+E;IAC/E,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,OAAO,EACP,gBAAgB,EAChB,cAAc,EACd,OAAO,GACR,EAAE,gBAAgB,GAAG,YAAY,GAAG,IAAI,CAQxC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ReactNode } from
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
2
|
/**
|
|
3
3
|
* Which axes of the `layout.screen.margin` token a scroll container pads its
|
|
4
4
|
* content with.
|
|
@@ -7,7 +7,7 @@ import type { ReactNode } from 'react';
|
|
|
7
7
|
* structural insets — the header height and the safe area — which apply
|
|
8
8
|
* whether or not margins are on.
|
|
9
9
|
*/
|
|
10
|
-
export type ScreenMargins =
|
|
10
|
+
export type ScreenMargins = "all" | "x" | "y" | "none";
|
|
11
11
|
/**
|
|
12
12
|
* Props shared by `Screen.ScrollView`, `Screen.FlatList` and `Screen.List`, so
|
|
13
13
|
* a screen can swap one container for another without relearning its API.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ComponentType, type ReactElement } from
|
|
2
|
-
import type { ScreenMargins } from
|
|
1
|
+
import { type ComponentType, type ReactElement } from "react";
|
|
2
|
+
import type { ScreenMargins } from "./types.js";
|
|
3
3
|
export type ListHeaderComponent = ComponentType | ReactElement | null | undefined;
|
|
4
4
|
/** Renders a `ListHeaderComponent`-shaped prop (element, component, or nullish) into an element. */
|
|
5
5
|
export declare function renderListHeader(ListHeaderComponent: ListHeaderComponent): ReactElement | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/screen/utils.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/screen/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAiC,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAE7F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAS,CAAC;AAE7C,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG,YAAY,GAAG,IAAI,GAAG,SAAS,CAAC;AAElF,oGAAoG;AACpG,wBAAgB,gBAAgB,CAAC,mBAAmB,EAAE,mBAAmB,GAAG,YAAY,GAAG,IAAI,CAI9F;AAED,kDAAkD;AAClD,eAAO,MAAM,UAAU,GAAI,SAAS,aAAa,KAAG,OAA+C,CAAC;AAEpG,iFAAiF;AACjF,eAAO,MAAM,UAAU,GAAI,SAAS,aAAa,KAAG,OAA+C,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactElement, type ReactNode } from
|
|
1
|
+
import { type ReactElement, type ReactNode } from "react";
|
|
2
2
|
type AnyProps = Record<string, unknown>;
|
|
3
3
|
export interface SlotProps {
|
|
4
4
|
/** Props (incl. pre-merged `style` and optional `ref`) to merge onto the child. */
|
|
@@ -12,6 +12,6 @@ export interface SlotProps {
|
|
|
12
12
|
* rendering a wrapper. Composes `on*` handlers (child first), `style`
|
|
13
13
|
* (`[slotStyle, childStyle]`), and refs.
|
|
14
14
|
*/
|
|
15
|
-
export declare function Slot({ slotProps, ownerName, children
|
|
15
|
+
export declare function Slot({ slotProps, ownerName, children }: SlotProps): ReactElement | null;
|
|
16
16
|
export {};
|
|
17
17
|
//# sourceMappingURL=Slot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slot.d.ts","sourceRoot":"","sources":["../../../../../src/components/slot/Slot.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Slot.d.ts","sourceRoot":"","sources":["../../../../../src/components/slot/Slot.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,YAAY,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAIlG,KAAK,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAExC,MAAM,WAAW,SAAS;IACxB,mFAAmF;IACnF,SAAS,EAAE,QAAQ,CAAC;IACpB,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,EAAE,SAAS,EAAE,SAAuB,EAAE,QAAQ,EAAE,EAAE,SAAS,GAAG,YAAY,GAAG,IAAI,CAqBrG"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Low-level composition helpers for advanced use cases (custom primitives,
|
|
3
3
|
* `asChild` patterns). Most apps should use component APIs directly.
|
|
4
4
|
*/
|
|
5
|
-
export type { SlotProps } from
|
|
6
|
-
export { Slot } from
|
|
7
|
-
export { composeRefs, mergeProps } from
|
|
5
|
+
export type { SlotProps } from "./Slot.js";
|
|
6
|
+
export { Slot } from "./Slot.js";
|
|
7
|
+
export { composeRefs, mergeProps } from "./utils.js";
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/slot/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,GAAG,EAAE,MAAM,OAAO,CAAC;AAUnD,wDAAwD;AACxD,wBAAgB,WAAW,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,CAMtE;AAED,KAAK,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAIxC;;;;;;;;;GASG;AACH,wBAAgB,UAAU,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/slot/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,GAAG,EAAE,MAAM,OAAO,CAAC;AAUnD,wDAAwD;AACxD,wBAAgB,WAAW,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,CAMtE;AAED,KAAK,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAIxC;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,GAAG,QAAQ,CAwB9E"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ColorToken } from
|
|
2
|
-
export type SpinnerSize =
|
|
1
|
+
import type { ColorToken } from "../../theme/types";
|
|
2
|
+
export type SpinnerSize = "sm" | "md" | "lg";
|
|
3
3
|
export interface SpinnerProps {
|
|
4
4
|
/** Spinner diameter preset. Defaults to `'md'`. */
|
|
5
5
|
size?: SpinnerSize;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../../../src/components/spinner/Spinner.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../../../src/components/spinner/Spinner.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE7C,MAAM,WAAW,YAAY;IAC3B,mDAAmD;IACnD,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,wEAAwE;IACxE,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB;AAyCD;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,EAAE,IAAW,EAAE,KAAqB,EAAE,EAAE,YAAY,+BA+C3E"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { SpinnerProps, SpinnerSize } from
|
|
2
|
-
export { Spinner } from
|
|
1
|
+
export type { SpinnerProps, SpinnerSize } from "./Spinner.js";
|
|
2
|
+
export { Spinner } from "./Spinner.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { ElevationKey } from
|
|
2
|
-
import { type BoxProps } from
|
|
1
|
+
import type { ElevationKey } from "../../theme/types";
|
|
2
|
+
import { type BoxProps } from "../box/index.js";
|
|
3
3
|
/** Background level of a {@link Surface}. */
|
|
4
|
-
export type SurfaceVariant =
|
|
5
|
-
export interface SurfaceProps extends Omit<BoxProps,
|
|
4
|
+
export type SurfaceVariant = "base" | "raised" | "sunken" | "transparent";
|
|
5
|
+
export interface SurfaceProps extends Omit<BoxProps, "background"> {
|
|
6
6
|
/** Background surface level. Defaults to `'base'`. */
|
|
7
7
|
variant?: SurfaceVariant;
|
|
8
8
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Surface.d.ts","sourceRoot":"","sources":["../../../../../src/components/surface/Surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAc,YAAY,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Surface.d.ts","sourceRoot":"","sources":["../../../../../src/components/surface/Surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAc,YAAY,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAA8B,KAAK,QAAQ,EAAE,MAAM,iBAAQ,CAAC;AAEnE,6CAA6C;AAC7C,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,aAAa,CAAC;AAE1E,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,QAAQ,EAAE,YAAY,CAAC;IAChE,sDAAsD;IACtD,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,YAAY,CAAC;CAC1B;AA6BD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,OAAO,0LAiBlB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { SurfaceProps, SurfaceVariant } from
|
|
2
|
-
export { Surface } from
|
|
1
|
+
export type { SurfaceProps, SurfaceVariant } from "./Surface.js";
|
|
2
|
+
export { Surface } from "./Surface.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type TextProps as RNTextProps } from
|
|
2
|
-
import type { ColorToken, FontWeightToken, TextVariant } from
|
|
3
|
-
export type TextAlign =
|
|
1
|
+
import { type TextProps as RNTextProps } from "react-native";
|
|
2
|
+
import type { ColorToken, FontWeightToken, TextVariant } from "../../theme/types";
|
|
3
|
+
export type TextAlign = "left" | "center" | "right" | "justify";
|
|
4
4
|
export interface TextProps extends RNTextProps {
|
|
5
5
|
/** Typographic role. Defaults to `body-md`. */
|
|
6
6
|
variant?: TextVariant;
|
|
@@ -11,7 +11,7 @@ export interface TextProps extends RNTextProps {
|
|
|
11
11
|
align?: TextAlign;
|
|
12
12
|
italic?: boolean;
|
|
13
13
|
underline?: boolean;
|
|
14
|
-
transform?:
|
|
14
|
+
transform?: "uppercase" | "lowercase" | "capitalize";
|
|
15
15
|
strikeThrough?: boolean;
|
|
16
16
|
/** Truncate to a single line with a trailing ellipsis. */
|
|
17
17
|
isTruncated?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../../src/components/text/Text.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../../src/components/text/Text.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkB,KAAK,SAAS,IAAI,WAAW,EAAkB,MAAM,cAAc,CAAC;AAI7F,OAAO,KAAK,EACV,UAAU,EACV,eAAe,EAGf,WAAW,EACZ,MAAM,cAAc,CAAC;AAKtB,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;AAiBhE,MAAM,WAAW,SAAU,SAAQ,WAAW;IAC5C,+CAA+C;IAC/C,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,8EAA8E;IAC9E,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,WAAW,GAAG,WAAW,GAAG,YAAY,CAAC;IACrD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,0DAA0D;IAC1D,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;GAGG;AACH,eAAO,MAAM,IAAI,uLA6Df,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { TextAlign, TextProps } from
|
|
2
|
-
export { Text } from
|
|
1
|
+
export type { TextAlign, TextProps } from "./Text.js";
|
|
2
|
+
export { Text } from "./Text.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { type ReactNode } from
|
|
2
|
-
import type { PressableProps } from
|
|
3
|
-
import type { TerraIconName } from
|
|
4
|
-
import { type ButtonProps } from
|
|
5
|
-
import { type IconProps } from
|
|
6
|
-
import { type SurfaceProps } from
|
|
7
|
-
import { type TextProps } from
|
|
8
|
-
import type { ToastId as StackToastId, ToastShowOptions } from
|
|
9
|
-
export type ToastVariant =
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { PressableProps } from "react-native";
|
|
3
|
+
import type { TerraIconName } from "../../theme/types";
|
|
4
|
+
import { type ButtonProps } from "../button/index.js";
|
|
5
|
+
import { type IconProps } from "../icon/index.js";
|
|
6
|
+
import { type SurfaceProps } from "../surface/index.js";
|
|
7
|
+
import { type TextProps } from "../text/index.js";
|
|
8
|
+
import type { ToastId as StackToastId, ToastShowOptions } from "./types.js";
|
|
9
|
+
export type ToastVariant = "default" | "accent" | "info" | "success" | "warning" | "danger";
|
|
10
10
|
type ToastInstanceId = string | number;
|
|
11
11
|
export interface ToastControls {
|
|
12
12
|
hide?: (id: ToastInstanceId) => void;
|
|
13
13
|
id?: ToastInstanceId;
|
|
14
14
|
}
|
|
15
|
-
export interface ToastProps extends Omit<SurfaceProps,
|
|
15
|
+
export interface ToastProps extends Omit<SurfaceProps, "id" | "variant"> {
|
|
16
16
|
/** Visual tone for the toast. Defaults to `default`. */
|
|
17
17
|
variant?: ToastVariant;
|
|
18
18
|
/** Optional identifier passed back to `hide` when `Toast.Close` is pressed. */
|
|
@@ -29,26 +29,26 @@ declare const ToastTitle: import("react").ForwardRefExoticComponent<ToastTitlePr
|
|
|
29
29
|
export interface ToastDescriptionProps extends TextProps {
|
|
30
30
|
}
|
|
31
31
|
declare const ToastDescription: import("react").ForwardRefExoticComponent<ToastDescriptionProps & import("react").RefAttributes<import("react-native/types_generated/src/private/webapis/dom/nodes/ReactNativeElement").default>>;
|
|
32
|
-
export interface ToastActionProps extends Omit<PressableProps,
|
|
32
|
+
export interface ToastActionProps extends Omit<PressableProps, "children" | "disabled" | "style"> {
|
|
33
33
|
children?: ReactNode;
|
|
34
34
|
/** Override the action button colour. Defaults to the parent Toast variant. */
|
|
35
35
|
variant?: ToastVariant;
|
|
36
36
|
fullWidth?: boolean;
|
|
37
37
|
isDisabled?: boolean;
|
|
38
|
-
size?:
|
|
39
|
-
style?: PressableProps[
|
|
38
|
+
size?: "sm" | "md" | "lg";
|
|
39
|
+
style?: PressableProps["style"];
|
|
40
40
|
}
|
|
41
41
|
declare const ToastAction: import("react").ForwardRefExoticComponent<ToastActionProps & import("react").RefAttributes<import("react-native/types_generated/src/private/webapis/dom/nodes/ReactNativeElement").default>>;
|
|
42
|
-
export interface ToastCloseProps extends Omit<ButtonProps,
|
|
42
|
+
export interface ToastCloseProps extends Omit<ButtonProps, "children"> {
|
|
43
43
|
children?: ReactNode;
|
|
44
|
-
iconProps?: Omit<IconProps,
|
|
44
|
+
iconProps?: Omit<IconProps, "name">;
|
|
45
45
|
}
|
|
46
46
|
declare const ToastClose: import("react").ForwardRefExoticComponent<ToastCloseProps & import("react").RefAttributes<import("react-native/types_generated/src/private/webapis/dom/nodes/ReactNativeElement").default>>;
|
|
47
|
-
export interface ToastIconProps extends Omit<IconProps,
|
|
47
|
+
export interface ToastIconProps extends Omit<IconProps, "name"> {
|
|
48
48
|
name?: TerraIconName;
|
|
49
49
|
}
|
|
50
50
|
declare const ToastIcon: import("react").ForwardRefExoticComponent<ToastIconProps & import("react").RefAttributes<import("react-native/types_generated/src/private/webapis/dom/nodes/ReactNativeElement").default>>;
|
|
51
|
-
export interface DefaultToastProps extends Omit<ToastProps,
|
|
51
|
+
export interface DefaultToastProps extends Omit<ToastProps, "children"> {
|
|
52
52
|
label?: ReactNode;
|
|
53
53
|
description?: ReactNode;
|
|
54
54
|
actionLabel?: ReactNode;
|
|
@@ -64,7 +64,7 @@ type ToastComponent = typeof ToastRoot & {
|
|
|
64
64
|
Close: typeof ToastClose;
|
|
65
65
|
Icon: typeof ToastIcon;
|
|
66
66
|
show: (options: ToastShowOptions) => StackToastId;
|
|
67
|
-
hide: (id?: StackToastId | StackToastId[] |
|
|
67
|
+
hide: (id?: StackToastId | StackToastId[] | "all") => void;
|
|
68
68
|
};
|
|
69
69
|
export declare const Toast: ToastComponent;
|
|
70
70
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../../src/components/toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,SAAS,EAIf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAyB,cAAc,EAAQ,MAAM,cAAc,CAAC;AAKhF,OAAO,KAAK,EAAE,aAAa,EAAc,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../../../src/components/toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,SAAS,EAIf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAyB,cAAc,EAAQ,MAAM,cAAc,CAAC;AAKhF,OAAO,KAAK,EAAE,aAAa,EAAc,MAAM,cAAc,CAAC;AAE9D,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,oBAAW,CAAC;AACrD,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,kBAAS,CAA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AC;IAC3B,KAAK,EAAE,OAAO,UAAU,CAAC;IACzB,IAAI,EAAE,OAAO,SAAS,CAAC;IACvB,IAAI,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,YAAY,CAAC;IAClD,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,YAAY,GAAG,YAAY,EAAE,GAAG,KAAK,KAAK,IAAI,CAAC;CAC5D,CAAC;AAEF,eAAO,MAAM,KAAK,EAAgB,cAAc,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ToastManager, ToastProviderProps } from
|
|
1
|
+
import type { ToastManager, ToastProviderProps } from "./types.js";
|
|
2
2
|
export declare function ToastProvider({ children, defaultPlacement, defaultDuration, maxVisibleToasts, offset, }: ToastProviderProps): import("react").JSX.Element;
|
|
3
3
|
export declare function useToast(): ToastManager;
|
|
4
4
|
//# sourceMappingURL=ToastProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToastProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/toast/ToastProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ToastProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/toast/ToastProvider.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAKV,YAAY,EAEZ,kBAAkB,EAInB,MAAM,YAAS,CAAC;AA2DjB,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,gBAAwB,EACxB,eAAkC,EAClC,gBAA6C,EAC7C,MAAM,GACP,EAAE,kBAAkB,+BA8IpB;AA+FD,wBAAgB,QAAQ,IAAI,YAAY,CAMvC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type { DefaultToastProps, ToastActionProps, ToastCloseProps, ToastControls, ToastDescriptionProps, ToastIconProps, ToastProps, ToastTitleProps, ToastVariant, } from
|
|
2
|
-
export { DefaultToast, Toast } from
|
|
3
|
-
export { ToastProvider, useToast } from
|
|
4
|
-
export type { ToastActionHelpers, ToastComponentProps, ToastDuration, ToastId, ToastItem, ToastManager, ToastPlacement, ToastProviderProps, ToastShowConfig, ToastShowOptions, ToastShowOptionsWithComponent, } from
|
|
1
|
+
export type { DefaultToastProps, ToastActionProps, ToastCloseProps, ToastControls, ToastDescriptionProps, ToastIconProps, ToastProps, ToastTitleProps, ToastVariant, } from "./Toast.js";
|
|
2
|
+
export { DefaultToast, Toast } from "./Toast.js";
|
|
3
|
+
export { ToastProvider, useToast } from "./ToastProvider.js";
|
|
4
|
+
export type { ToastActionHelpers, ToastComponentProps, ToastDuration, ToastId, ToastItem, ToastManager, ToastPlacement, ToastProviderProps, ToastShowConfig, ToastShowOptions, ToastShowOptionsWithComponent, } from "./types.js";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ReactElement } from
|
|
2
|
-
import { type SharedValue } from
|
|
3
|
-
import type { ToastId, ToastPlacement } from
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import { type SharedValue } from "react-native-reanimated";
|
|
3
|
+
import type { ToastId, ToastPlacement } from "../types.js";
|
|
4
4
|
export interface ToastAnimatedItemProps {
|
|
5
5
|
children: ReactElement;
|
|
6
6
|
heights: SharedValue<Record<ToastId, number>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToastAnimatedItem.d.ts","sourceRoot":"","sources":["../../../../../../src/components/toast/parts/ToastAnimatedItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAiB,EAKf,KAAK,WAAW,EAIjB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAU,CAAC;AAExD,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,YAAY,CAAC;IACvB,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,C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,CAAC;AASjB,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,OAAO,EACP,EAAE,EACF,KAAK,EACL,gBAAgB,EAChB,SAAS,EACT,KAAK,GACN,EAAE,sBAAsB,+BAkExB"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { ReactElement, ReactNode } from
|
|
2
|
-
import type { ToastProps, ToastVariant } from
|
|
1
|
+
import type { ReactElement, ReactNode } from "react";
|
|
2
|
+
import type { ToastProps, ToastVariant } from "./Toast.js";
|
|
3
3
|
export type ToastId = string;
|
|
4
|
-
export type ToastDuration = number |
|
|
5
|
-
export type ToastPlacement =
|
|
4
|
+
export type ToastDuration = number | "persistent";
|
|
5
|
+
export type ToastPlacement = "top" | "bottom";
|
|
6
6
|
export interface ToastActionHelpers {
|
|
7
|
-
show: ToastManager[
|
|
8
|
-
hide: ToastManager[
|
|
7
|
+
show: ToastManager["show"];
|
|
8
|
+
hide: ToastManager["hide"];
|
|
9
9
|
}
|
|
10
|
-
export interface ToastShowConfig extends Pick<ToastProps,
|
|
10
|
+
export interface ToastShowConfig extends Pick<ToastProps, "variant"> {
|
|
11
11
|
id?: ToastId;
|
|
12
12
|
label?: ReactNode;
|
|
13
13
|
description?: ReactNode;
|
|
@@ -23,8 +23,8 @@ export interface ToastShowConfig extends Pick<ToastProps, 'variant'> {
|
|
|
23
23
|
export interface ToastComponentProps {
|
|
24
24
|
id: ToastId;
|
|
25
25
|
index: number;
|
|
26
|
-
hide: ToastManager[
|
|
27
|
-
show: ToastManager[
|
|
26
|
+
hide: ToastManager["hide"];
|
|
27
|
+
show: ToastManager["show"];
|
|
28
28
|
}
|
|
29
29
|
export interface ToastShowOptionsWithComponent {
|
|
30
30
|
id?: ToastId;
|
|
@@ -44,7 +44,7 @@ export interface ToastItem {
|
|
|
44
44
|
}
|
|
45
45
|
export interface ToastManager {
|
|
46
46
|
show: (options: ToastShowOptions) => ToastId;
|
|
47
|
-
hide: (id?: ToastId | ToastId[] |
|
|
47
|
+
hide: (id?: ToastId | ToastId[] | "all") => void;
|
|
48
48
|
}
|
|
49
49
|
export interface ToastProviderProps {
|
|
50
50
|
children?: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/toast/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,YAAS,CAAC;AAExD,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC;AAC7B,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,YAAY,CAAC;AAClD,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,QAAQ,CAAC;AAE9C,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC3B,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC;IAClE,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,IAAI,CAAC,EAAE,SAAS,GAAG,KAAK,CAAC;IACzB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACtD,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,EAAE,MAA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C,EAAE,SAAS,CAAC;IACrB,gBAAgB,CAAC,EAAE,cAAc,CAAC;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE;QACP,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AAED,YAAY,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ToastId, ToastManager, ToastShowOptions } from
|
|
1
|
+
import type { ToastId, ToastManager, ToastShowOptions } from "../types.js";
|
|
2
2
|
export declare function setToastManager(manager: ToastManager | null): void;
|
|
3
3
|
export declare function showToast(options: ToastShowOptions): ToastId;
|
|
4
|
-
export declare function hideToast(id?: ToastId | ToastId[] |
|
|
4
|
+
export declare function hideToast(id?: ToastId | ToastId[] | "all"): void;
|
|
5
5
|
//# sourceMappingURL=controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../../../../src/components/toast/utils/controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,aAAU,CAAC;AAIxE,wBAAgB,eAAe,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI,GAAG,IAAI,CAElE;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../../../../src/components/toast/utils/controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,aAAU,CAAC;AAIxE,wBAAgB,eAAe,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI,GAAG,IAAI,CAElE;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAQ5D;AAED,wBAAgB,SAAS,CAAC,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,EAAE,GAAG,KAAK,GAAG,IAAI,CAEhE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type ReactNode } from
|
|
2
|
-
import { type PressableProps, type ViewProps } from
|
|
3
|
-
import type { ColorToken, SpacingKey, TerraIconName } from
|
|
4
|
-
interface ToolbarButtonBaseProps extends Omit<PressableProps,
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type PressableProps, type ViewProps } from "react-native";
|
|
3
|
+
import type { ColorToken, SpacingKey, TerraIconName } from "../../theme/types";
|
|
4
|
+
interface ToolbarButtonBaseProps extends Omit<PressableProps, "children" | "style"> {
|
|
5
5
|
/** Icon to render, before the label when both are given. */
|
|
6
6
|
icon?: TerraIconName;
|
|
7
7
|
/** Icon size in density-independent pixels. Defaults to `20`. */
|
|
@@ -28,7 +28,7 @@ interface ToolbarButtonBaseProps extends Omit<PressableProps, 'children' | 'styl
|
|
|
28
28
|
* pinned over a hero image) without a wrapper view. Supports `Pressable`'s
|
|
29
29
|
* function form for press-state styling.
|
|
30
30
|
*/
|
|
31
|
-
style?: PressableProps[
|
|
31
|
+
style?: PressableProps["style"];
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* An icon-only button has no visible text, so it must carry an
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/toolbar/Toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,SAAS,EAGf,MAAM,OAAO,CAAC;AACf,OAAO,
|
|
1
|
+
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/toolbar/Toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,SAA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,eAAO,MAAM,YAAY,+LAgBvB,CAAC;AAIH,MAAM,WAAW,YAAa,SAAQ,SAAS;IAC7C;;;OAGG;IACH,GAAG,CAAC,EAAE,UAAU,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,WAAW,0LASf,CAAC;AAEH,KAAK,gBAAgB,GAAG,OAAO,WAAW,GAAG;IAC3C,KAAK,EAAE,OAAO,YAAY,CAAC;IAC3B,MAAM,EAAE,OAAO,aAAa,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,OAAO,EAAkB,gBAAgB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { ToolbarButtonProps, ToolbarGroupProps, ToolbarProps, } from
|
|
2
|
-
export { Toolbar } from
|
|
1
|
+
export type { ToolbarButtonProps, ToolbarGroupProps, ToolbarProps, } from "./Toolbar.js";
|
|
2
|
+
export { Toolbar } from "./Toolbar.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type PropsWithChildren } from
|
|
2
|
-
import { type ResolvedScreenMargin } from
|
|
3
|
-
import type { Scheme, TerraTheme } from
|
|
1
|
+
import { type PropsWithChildren } from "react";
|
|
2
|
+
import { type ResolvedScreenMargin } from "../theme/screen-margin.js";
|
|
3
|
+
import type { Scheme, TerraTheme } from "../theme/types.js";
|
|
4
4
|
/**
|
|
5
5
|
* Root provider for Terra UI. Wrap your app once near the root.
|
|
6
6
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../../src/context/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../../../src/context/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,iBAAiB,EAA8C,MAAM,OAAO,CAAC;AAO1G,OAAO,EAAE,KAAK,oBAAoB,EAAuB,MAAM,2BAAwB,CAAC;AACxF,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,mBAAgB,CAAC;AAczD;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAI,cAAc,iBAAiB,gCAe9D,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B,iCAAiC;IACjC,KAAK,EAAE,UAAU,CAAC;IAClB,2BAA2B;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,wDAAwD;IACxD,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,kCAAkC;IAClC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,qCAAqC;IACrC,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED;;;GAGG;AACH,wBAAgB,QAAQ,IAAI,cAAc,CAezC;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,IAAI,oBAAoB,CAGtD"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { UseThemeResult } from
|
|
2
|
-
export { TerraUIProvider, useScreenMargin, useTheme } from
|
|
1
|
+
export type { UseThemeResult } from "./ThemeProvider.js";
|
|
2
|
+
export { TerraUIProvider, useScreenMargin, useTheme } from "./ThemeProvider.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from "./context/index.js";
|
|
2
|
+
export * from "./components/index.js";
|
|
3
|
+
export * from "./theme/index.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { UnistylesBreakpoints } from
|
|
1
|
+
import type { UnistylesBreakpoints } from "react-native-unistyles";
|
|
2
2
|
/**
|
|
3
3
|
* Viewport-width breakpoints (dp), registered with Unistyles via
|
|
4
4
|
* `StyleSheet.configure({ breakpoints })` in {@link ./registry.ts}. `xs` must
|
|
@@ -13,7 +13,7 @@ export declare const breakpoints: {
|
|
|
13
13
|
};
|
|
14
14
|
export type AppBreakpoints = typeof breakpoints;
|
|
15
15
|
export type BreakpointName = keyof AppBreakpoints;
|
|
16
|
-
declare module
|
|
16
|
+
declare module "react-native-unistyles" {
|
|
17
17
|
interface UnistylesBreakpoints extends AppBreakpoints {
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../../../src/theme/breakpoints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE;;;;GAIG;AACH,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,OAAO,WAAW,CAAC;AAChD,MAAM,MAAM,cAAc,GAAG,MAAM,cAAc,CAAC;AAElD,OAAO,QAAQ,wBAAwB,CAAC;IACtC,UAAiB,oBAAqB,SAAQ,cAAc;KAAG;CAChE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EACtC,MAAM,EAAE,MAAM,CAAC,cAAc,EAAE,CAAC,CAAC,EACjC,UAAU,EAAE,MAAM,oBAAoB,GAAG,SAAS,GACjD,CAAC,
|
|
1
|
+
{"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../../../src/theme/breakpoints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE;;;;GAIG;AACH,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,OAAO,WAAW,CAAC;AAChD,MAAM,MAAM,cAAc,GAAG,MAAM,cAAc,CAAC;AAElD,OAAO,QAAQ,wBAAwB,CAAC;IACtC,UAAiB,oBAAqB,SAAQ,cAAc;KAAG;CAChE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EACtC,MAAM,EAAE,MAAM,CAAC,cAAc,EAAE,CAAC,CAAC,EACjC,UAAU,EAAE,MAAM,oBAAoB,GAAG,SAAS,GACjD,CAAC,CAEH"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TerraIconComponent, TerraSemanticIconName } from
|
|
1
|
+
import type { TerraIconComponent, TerraSemanticIconName } from "../types.js";
|
|
2
2
|
export declare const PersonIcon: TerraIconComponent;
|
|
3
3
|
export declare const defaultIcons: Record<TerraSemanticIconName, TerraIconComponent>;
|
|
4
4
|
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../../src/theme/defaults/icons.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../../src/theme/defaults/icons.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAkB,qBAAqB,EAAE,MAAM,aAAU,CAAC;AA2G1F,eAAO,MAAM,UAAU,EAAE,kBAWxB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,qBAAqB,EAAE,kBAAkB,CAS1E,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TerraImageComponent } from
|
|
1
|
+
import type { TerraImageComponent } from "../types.js";
|
|
2
2
|
/** Default image implementation, backed by React Native's `Image`. */
|
|
3
3
|
export declare const defaultImage: TerraImageComponent;
|
|
4
4
|
//# sourceMappingURL=image.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../../src/theme/defaults/image.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAwB,MAAM,aAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../../src/theme/defaults/image.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAwB,MAAM,aAAU,CAAC;AAQ1E,sEAAsE;AACtE,eAAO,MAAM,YAAY,EAAE,mBAmBvB,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { normalizeAccent } from
|
|
2
|
-
export { readableOn, shade, withAlpha } from
|
|
3
|
-
export type { DeepPartial } from
|
|
4
|
-
export { deepMerge } from
|
|
5
|
-
export { resolveThemeColor } from
|
|
6
|
-
export { FONT_WEIGHT_VALUE, SYSTEM_FONT } from
|
|
7
|
-
export type { AppBreakpoints, BreakpointName } from
|
|
8
|
-
export { breakpoints, resolveBreakpointValue } from
|
|
9
|
-
export { configureTerraUI, getAccentNames, getDefaultRadius, getIcon, getImageComponent, getIsConfigured, getRequiredIcon, getSurfaceElevation, resolveTheme, } from
|
|
10
|
-
export { applyAccent, applyScheme, getCurrentAccent } from
|
|
11
|
-
export type { ResolvedScreenMargin } from
|
|
12
|
-
export { resolveScreenMargin } from
|
|
13
|
-
export { defaultDarkTheme, defaultLightTheme } from
|
|
14
|
-
export type { Accent, AccentOverride, AccentShorthand, ActionColorToken, BackgroundColorToken, BorderColorToken, ButtonDefaults, ColorToken, ComponentDefaults, ContentColorToken, DefaultRadiusToken, ElevationKey, ElevationScale, ElevationStyle, FontWeightToken, LayoutTokens, OpacityTokens, RadiusComponent, RadiusKey, Scheme, SpacingKey, StatusColorToken, SurfaceColorToken, SurfaceDefaults, TerraConfig, TerraIconComponent, TerraIconName, TerraIconProps, TerraImageComponent, TerraImageContentFit, TerraImageProps, TerraSemanticIconName, TerraTheme, TerraThemeOverride, TextColorToken, TextVariant, ThemeColor, ThemeRadiusOverride, TypeStyle, Typography, } from
|
|
1
|
+
export { normalizeAccent } from "../utils/accent-utils";
|
|
2
|
+
export { readableOn, shade, withAlpha } from "../utils/color-utils";
|
|
3
|
+
export type { DeepPartial } from "../utils/deep-merge";
|
|
4
|
+
export { deepMerge } from "../utils/deep-merge";
|
|
5
|
+
export { resolveThemeColor } from "../utils/resolve-theme-color";
|
|
6
|
+
export { FONT_WEIGHT_VALUE, SYSTEM_FONT } from "../utils/typography";
|
|
7
|
+
export type { AppBreakpoints, BreakpointName } from "./breakpoints.js";
|
|
8
|
+
export { breakpoints, resolveBreakpointValue } from "./breakpoints.js";
|
|
9
|
+
export { configureTerraUI, getAccentNames, getDefaultRadius, getIcon, getImageComponent, getIsConfigured, getRequiredIcon, getSurfaceElevation, resolveTheme, } from "./registry.js";
|
|
10
|
+
export { applyAccent, applyScheme, getCurrentAccent } from "./runtime.js";
|
|
11
|
+
export type { ResolvedScreenMargin } from "./screen-margin.js";
|
|
12
|
+
export { resolveScreenMargin } from "./screen-margin.js";
|
|
13
|
+
export { defaultDarkTheme, defaultLightTheme } from "./theme.js";
|
|
14
|
+
export type { Accent, AccentOverride, AccentShorthand, ActionColorToken, BackgroundColorToken, BorderColorToken, ButtonDefaults, ColorToken, ComponentDefaults, ContentColorToken, DefaultRadiusToken, ElevationKey, ElevationScale, ElevationStyle, FontWeightToken, LayoutTokens, OpacityTokens, RadiusComponent, RadiusKey, Scheme, SpacingKey, StatusColorToken, SurfaceColorToken, SurfaceDefaults, TerraConfig, TerraIconComponent, TerraIconName, TerraIconProps, TerraImageComponent, TerraImageContentFit, TerraImageProps, TerraSemanticIconName, TerraTheme, TerraThemeOverride, TextColorToken, TextVariant, ThemeColor, ThemeRadiusOverride, TypeStyle, Typography, } from "./types.js";
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { DefaultRadiusToken, ElevationKey, NormalizedAccent, RadiusComponent, Scheme, TerraConfig, TerraIconComponent, TerraImageComponent, TerraSemanticIconName, TerraTheme } from
|
|
1
|
+
import type { DefaultRadiusToken, ElevationKey, NormalizedAccent, RadiusComponent, Scheme, TerraConfig, TerraIconComponent, TerraImageComponent, TerraSemanticIconName, TerraTheme } from "./types.js";
|
|
2
2
|
type ResolvedRadius = Record<RadiusComponent, DefaultRadiusToken>;
|
|
3
|
-
declare module
|
|
3
|
+
declare module "react-native-unistyles" {
|
|
4
4
|
interface UnistylesThemes {
|
|
5
5
|
light: TerraTheme;
|
|
6
6
|
dark: TerraTheme;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../src/theme/registry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../src/theme/registry.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAEV,kBAAkB,EAClB,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,MAAM,EACN,WAAW,EACX,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,UAAU,EAEX,MAAM,YAAS,CAAC;AASjB,KAAK,cAAc,GAAG,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAAC;AASlE,OAAO,QAAQ,wBAAwB,CAAC;IACtC,UAAiB,eAAe;QAC9B,KAAK,EAAE,UAAU,CAAC;QAClB,IAAI,EAAE,UAAU,CAAC;KAClB;CACF;AAED,UAAU,QAAQ;IAChB,SAAS,EAAE,UAAU,CAAC;IACtB,QAAQ,EAAE,UAAU,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC1C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,cAAc,CAAC;IAC9B,gBAAgB,EAAE,YAAY,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAC1C,cAAc,EAAE,mBAAmB,CAAC;IACpC,UAAU,EAAE,OAAO,CAAC;CACrB;AAcD,gBAAgB;AAChB,eAAO,MAAM,WAAW,QAAO,QAAoB,CAAC;AAEpD,eAAO,MAAM,eAAe,QAAO,OAA8B,CAAC;AAElE,eAAO,MAAM,cAAc,QAAO,MAAM,EAAmC,CAAC;AAE5E,eAAO,MAAM,iBAAiB,QAAO,mBAA8C,CAAC;AAEpF,eAAO,MAAM,OAAO,GAAI,MAAM,MAAM,KAAG,kBAAkB,GAAG,SACS,CAAC;AAEtE,eAAO,MAAM,eAAe,GAAI,MAAM,qBAAqB,KAAG,kBAClB,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,WAAW,eAAe,KAAG,kBAC3B,CAAC;AAEpC;;;GAGG;AACH,eAAO,MAAM,mBAAmB,QAAO,YAAyC,CAAC;AAEjF,8EAA8E;AAC9E,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,UAAU,CAI5E;AAwCD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,GAAE,WAAgB,GAAG,IAAI,CAY/D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,CAOvC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Scheme } from
|
|
1
|
+
import type { Scheme } from "./types.js";
|
|
2
2
|
/** Apply a named accent at runtime by updating both registered themes. */
|
|
3
3
|
export declare function applyAccent(name: string): void;
|
|
4
4
|
export declare const getCurrentAccent: () => string | undefined;
|