@metamask-previews/design-system-react-native 0.53.0-preview.f03faa2 → 0.56.1-preview-00dfeb8
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 +61 -1
- package/dist/components/ActionListItem/ActionListItem.cjs +17 -7
- package/dist/components/ActionListItem/ActionListItem.cjs.map +1 -1
- package/dist/components/ActionListItem/ActionListItem.mjs.map +1 -1
- package/dist/components/AvatarAccount/AvatarAccount.cjs.map +1 -1
- package/dist/components/AvatarAccount/AvatarAccount.d.cts.map +1 -1
- package/dist/components/AvatarAccount/AvatarAccount.d.mts.map +1 -1
- package/dist/components/AvatarAccount/AvatarAccount.mjs.map +1 -1
- package/dist/components/AvatarBase/AvatarBase.constants.cjs +16 -16
- package/dist/components/AvatarBase/AvatarBase.constants.cjs.map +1 -1
- package/dist/components/AvatarBase/AvatarBase.constants.mjs +16 -16
- package/dist/components/AvatarBase/AvatarBase.constants.mjs.map +1 -1
- package/dist/components/AvatarBase/AvatarBase.d.cts.map +1 -1
- package/dist/components/AvatarBase/AvatarBase.d.mts.map +1 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.cjs +24 -8
- package/dist/components/AvatarFavicon/AvatarFavicon.cjs.map +1 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.d.cts.map +1 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.d.mts.map +1 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.mjs +7 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.mjs.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.cjs +17 -7
- package/dist/components/AvatarGroup/AvatarGroup.cjs.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.d.cts.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.d.mts.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.mjs.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.constants.cjs +4 -4
- package/dist/components/AvatarIcon/AvatarIcon.constants.cjs.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.constants.mjs +4 -4
- package/dist/components/AvatarIcon/AvatarIcon.constants.mjs.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.d.cts.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.d.mts.map +1 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.cjs +24 -8
- package/dist/components/AvatarNetwork/AvatarNetwork.cjs.map +1 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.d.cts.map +1 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.d.mts.map +1 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.mjs +7 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.mjs.map +1 -1
- package/dist/components/AvatarToken/AvatarToken.cjs +24 -8
- package/dist/components/AvatarToken/AvatarToken.cjs.map +1 -1
- package/dist/components/AvatarToken/AvatarToken.d.cts.map +1 -1
- package/dist/components/AvatarToken/AvatarToken.d.mts.map +1 -1
- package/dist/components/AvatarToken/AvatarToken.mjs +7 -1
- package/dist/components/AvatarToken/AvatarToken.mjs.map +1 -1
- package/dist/components/BadgeCount/BadgeCount.constants.cjs +1 -1
- package/dist/components/BadgeCount/BadgeCount.constants.cjs.map +1 -1
- package/dist/components/BadgeCount/BadgeCount.constants.mjs +1 -1
- package/dist/components/BadgeCount/BadgeCount.constants.mjs.map +1 -1
- package/dist/components/BadgeCount/BadgeCount.d.cts.map +1 -1
- package/dist/components/BadgeCount/BadgeCount.d.mts.map +1 -1
- package/dist/components/BadgeIcon/BadgeIcon.d.cts.map +1 -1
- package/dist/components/BadgeIcon/BadgeIcon.d.mts.map +1 -1
- package/dist/components/BadgeNetwork/BadgeNetwork.d.cts.map +1 -1
- package/dist/components/BadgeNetwork/BadgeNetwork.d.mts.map +1 -1
- package/dist/components/BadgeStatus/BadgeStatus.constants.cjs +1 -1
- package/dist/components/BadgeStatus/BadgeStatus.constants.cjs.map +1 -1
- package/dist/components/BadgeStatus/BadgeStatus.constants.mjs +1 -1
- package/dist/components/BadgeStatus/BadgeStatus.constants.mjs.map +1 -1
- package/dist/components/BadgeStatus/BadgeStatus.d.cts.map +1 -1
- package/dist/components/BadgeStatus/BadgeStatus.d.mts.map +1 -1
- package/dist/components/BadgeWrapper/BadgeWrapper.d.cts.map +1 -1
- package/dist/components/BadgeWrapper/BadgeWrapper.d.mts.map +1 -1
- package/dist/components/BannerAlert/BannerAlert.cjs.map +1 -1
- package/dist/components/BannerAlert/BannerAlert.mjs.map +1 -1
- package/dist/components/BannerBase/BannerBase.cjs +17 -7
- package/dist/components/BannerBase/BannerBase.cjs.map +1 -1
- package/dist/components/BannerBase/BannerBase.mjs.map +1 -1
- package/dist/components/BottomSheet/BottomSheet.cjs +17 -7
- package/dist/components/BottomSheet/BottomSheet.cjs.map +1 -1
- package/dist/components/BottomSheet/BottomSheet.d.cts +8 -8
- package/dist/components/BottomSheet/BottomSheet.d.cts.map +1 -1
- package/dist/components/BottomSheet/BottomSheet.d.mts +8 -8
- package/dist/components/BottomSheet/BottomSheet.d.mts.map +1 -1
- package/dist/components/BottomSheet/BottomSheet.mjs.map +1 -1
- package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs +17 -7
- package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs.map +1 -1
- package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts +6 -6
- package/dist/components/BottomSheetDialog/BottomSheetDialog.d.cts.map +1 -1
- package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts +6 -6
- package/dist/components/BottomSheetDialog/BottomSheetDialog.d.mts.map +1 -1
- package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs.map +1 -1
- package/dist/components/BottomSheetFooter/BottomSheetFooter.cjs.map +1 -1
- package/dist/components/BottomSheetFooter/BottomSheetFooter.mjs.map +1 -1
- package/dist/components/BottomSheetOverlay/BottomSheetOverlay.cjs +17 -7
- package/dist/components/BottomSheetOverlay/BottomSheetOverlay.cjs.map +1 -1
- package/dist/components/Box/Box.cjs +17 -7
- package/dist/components/Box/Box.cjs.map +1 -1
- package/dist/components/Box/Box.d.cts +1 -1
- package/dist/components/Box/Box.d.mts +1 -1
- package/dist/components/BoxColumn/BoxColumn.cjs +13 -0
- package/dist/components/BoxColumn/BoxColumn.cjs.map +1 -1
- package/dist/components/BoxColumn/BoxColumn.d.cts +13 -0
- package/dist/components/BoxColumn/BoxColumn.d.cts.map +1 -1
- package/dist/components/BoxColumn/BoxColumn.d.mts +13 -0
- package/dist/components/BoxColumn/BoxColumn.d.mts.map +1 -1
- package/dist/components/BoxColumn/BoxColumn.mjs +13 -0
- package/dist/components/BoxColumn/BoxColumn.mjs.map +1 -1
- package/dist/components/BoxColumn/BoxColumn.types.cjs.map +1 -1
- package/dist/components/BoxColumn/BoxColumn.types.d.cts +2 -0
- package/dist/components/BoxColumn/BoxColumn.types.d.cts.map +1 -1
- package/dist/components/BoxColumn/BoxColumn.types.d.mts +2 -0
- package/dist/components/BoxColumn/BoxColumn.types.d.mts.map +1 -1
- package/dist/components/BoxColumn/BoxColumn.types.mjs.map +1 -1
- package/dist/components/BoxRow/BoxRow.cjs +13 -0
- package/dist/components/BoxRow/BoxRow.cjs.map +1 -1
- package/dist/components/BoxRow/BoxRow.d.cts +13 -0
- package/dist/components/BoxRow/BoxRow.d.cts.map +1 -1
- package/dist/components/BoxRow/BoxRow.d.mts +13 -0
- package/dist/components/BoxRow/BoxRow.d.mts.map +1 -1
- package/dist/components/BoxRow/BoxRow.mjs +13 -0
- package/dist/components/BoxRow/BoxRow.mjs.map +1 -1
- package/dist/components/BoxRow/BoxRow.types.cjs.map +1 -1
- package/dist/components/BoxRow/BoxRow.types.d.cts +2 -0
- package/dist/components/BoxRow/BoxRow.types.d.cts.map +1 -1
- package/dist/components/BoxRow/BoxRow.types.d.mts +2 -0
- package/dist/components/BoxRow/BoxRow.types.d.mts.map +1 -1
- package/dist/components/BoxRow/BoxRow.types.mjs.map +1 -1
- package/dist/components/Button/Button.cjs.map +1 -1
- package/dist/components/Button/Button.d.cts.map +1 -1
- package/dist/components/Button/Button.d.mts.map +1 -1
- package/dist/components/Button/Button.mjs.map +1 -1
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.cjs +17 -7
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.cjs.map +1 -1
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.cts.map +1 -1
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.mts.map +1 -1
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.mjs.map +1 -1
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.cjs +17 -7
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.cjs.map +1 -1
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.cts.map +1 -1
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.mts.map +1 -1
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.mjs.map +1 -1
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.cjs +17 -7
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.cjs.map +1 -1
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.cts.map +1 -1
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.mts.map +1 -1
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.mjs.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.cjs +27 -13
- package/dist/components/ButtonBase/ButtonBase.cjs.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.constants.cjs +2 -2
- package/dist/components/ButtonBase/ButtonBase.constants.cjs.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.constants.d.cts.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.constants.d.mts.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.constants.mjs +2 -2
- package/dist/components/ButtonBase/ButtonBase.constants.mjs.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.d.cts.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.d.mts.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.mjs +11 -7
- package/dist/components/ButtonBase/ButtonBase.mjs.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.types.cjs.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.types.d.cts +3 -4
- package/dist/components/ButtonBase/ButtonBase.types.d.cts.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.types.d.mts +3 -4
- package/dist/components/ButtonBase/ButtonBase.types.d.mts.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.types.mjs.map +1 -1
- package/dist/components/ButtonHero/ButtonHero.cjs.map +1 -1
- package/dist/components/ButtonHero/ButtonHero.mjs.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.cjs +17 -7
- package/dist/components/ButtonIcon/ButtonIcon.cjs.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.d.cts.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.d.mts.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.mjs.map +1 -1
- package/dist/components/ButtonSemantic/ButtonSemantic.cjs +17 -7
- package/dist/components/ButtonSemantic/ButtonSemantic.cjs.map +1 -1
- package/dist/components/ButtonSemantic/ButtonSemantic.d.cts.map +1 -1
- package/dist/components/ButtonSemantic/ButtonSemantic.d.mts.map +1 -1
- package/dist/components/Card/Card.cjs.map +1 -1
- package/dist/components/Card/Card.mjs.map +1 -1
- package/dist/components/Checkbox/Checkbox.cjs +17 -7
- package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.cts +5 -6
- package/dist/components/Checkbox/Checkbox.d.cts.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.mts +5 -6
- package/dist/components/Checkbox/Checkbox.d.mts.map +1 -1
- package/dist/components/Checkbox/Checkbox.mjs.map +1 -1
- package/dist/components/Content/Content.cjs +40 -32
- package/dist/components/Content/Content.cjs.map +1 -1
- package/dist/components/Content/Content.d.cts.map +1 -1
- package/dist/components/Content/Content.d.mts.map +1 -1
- package/dist/components/Content/Content.mjs +40 -32
- package/dist/components/Content/Content.mjs.map +1 -1
- package/dist/components/FilterButton/FilterButton.cjs +17 -7
- package/dist/components/FilterButton/FilterButton.cjs.map +1 -1
- package/dist/components/FilterButton/FilterButton.mjs.map +1 -1
- package/dist/components/FilterButtonGroup/FilterButtonGroup.cjs +17 -7
- package/dist/components/FilterButtonGroup/FilterButtonGroup.cjs.map +1 -1
- package/dist/components/HeaderBase/HeaderBase.cjs +17 -7
- package/dist/components/HeaderBase/HeaderBase.cjs.map +1 -1
- package/dist/components/HeaderBase/HeaderBase.mjs.map +1 -1
- package/dist/components/HeaderRoot/HeaderRoot.cjs +8 -5
- package/dist/components/HeaderRoot/HeaderRoot.cjs.map +1 -1
- package/dist/components/HeaderRoot/HeaderRoot.d.cts.map +1 -1
- package/dist/components/HeaderRoot/HeaderRoot.d.mts.map +1 -1
- package/dist/components/HeaderRoot/HeaderRoot.mjs +8 -5
- package/dist/components/HeaderRoot/HeaderRoot.mjs.map +1 -1
- package/dist/components/HeaderSearch/HeaderSearch.cjs +2 -0
- package/dist/components/HeaderSearch/HeaderSearch.cjs.map +1 -1
- package/dist/components/HeaderSearch/HeaderSearch.d.cts +2 -0
- package/dist/components/HeaderSearch/HeaderSearch.d.cts.map +1 -1
- package/dist/components/HeaderSearch/HeaderSearch.d.mts +2 -0
- package/dist/components/HeaderSearch/HeaderSearch.d.mts.map +1 -1
- package/dist/components/HeaderSearch/HeaderSearch.mjs +2 -0
- package/dist/components/HeaderSearch/HeaderSearch.mjs.map +1 -1
- package/dist/components/HeaderStandard/HeaderStandard.cjs +17 -7
- package/dist/components/HeaderStandard/HeaderStandard.cjs.map +1 -1
- package/dist/components/HeaderStandard/HeaderStandard.mjs.map +1 -1
- package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.cjs +17 -7
- package/dist/components/HeaderStandardAnimated/HeaderStandardAnimated.cjs.map +1 -1
- package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.cjs +1 -2
- package/dist/components/HeaderStandardAnimated/useHeaderStandardAnimated.cjs.map +1 -1
- package/dist/components/HeaderSubpage/HeaderSubpage.cjs +17 -7
- package/dist/components/HeaderSubpage/HeaderSubpage.cjs.map +1 -1
- package/dist/components/HeaderSubpage/HeaderSubpage.mjs.map +1 -1
- package/dist/components/HelpText/HelpText.cjs.map +1 -1
- package/dist/components/HelpText/HelpText.mjs.map +1 -1
- package/dist/components/Icon/Icon.assets.cjs +32 -0
- package/dist/components/Icon/Icon.assets.cjs.map +1 -1
- package/dist/components/Icon/Icon.assets.d.cts.map +1 -1
- package/dist/components/Icon/Icon.assets.d.mts.map +1 -1
- package/dist/components/Icon/Icon.assets.mjs +32 -0
- package/dist/components/Icon/Icon.assets.mjs.map +1 -1
- package/dist/components/Icon/Icon.constants.cjs +4 -4
- package/dist/components/Icon/Icon.constants.cjs.map +1 -1
- package/dist/components/Icon/Icon.constants.mjs +4 -4
- package/dist/components/Icon/Icon.constants.mjs.map +1 -1
- package/dist/components/Icon/Icon.d.cts.map +1 -1
- package/dist/components/Icon/Icon.d.mts.map +1 -1
- package/dist/components/Icon/assets/baseball.svg +1 -0
- package/dist/components/Icon/assets/basketball.svg +1 -0
- package/dist/components/Icon/assets/bicycle.svg +1 -0
- package/dist/components/Icon/assets/boxing-glove.svg +1 -0
- package/dist/components/Icon/assets/cricket.svg +1 -0
- package/dist/components/Icon/assets/feed-post.svg +1 -0
- package/dist/components/Icon/assets/flag-checkered.svg +1 -0
- package/dist/components/Icon/assets/football.svg +1 -0
- package/dist/components/Icon/assets/game-controller.svg +1 -0
- package/dist/components/Icon/assets/golf.svg +1 -0
- package/dist/components/Icon/assets/hockey.svg +1 -0
- package/dist/components/Icon/assets/horse.svg +1 -0
- package/dist/components/Icon/assets/medal.svg +1 -0
- package/dist/components/Icon/assets/musd-filled.svg +1 -1
- package/dist/components/Icon/assets/ping-pong.svg +1 -0
- package/dist/components/Icon/assets/soccer-ball.svg +1 -0
- package/dist/components/Icon/assets/tennis-ball.svg +1 -0
- package/dist/components/IconAlert/IconAlert.constants.cjs +1 -1
- package/dist/components/IconAlert/IconAlert.constants.cjs.map +1 -1
- package/dist/components/IconAlert/IconAlert.constants.mjs +1 -1
- package/dist/components/IconAlert/IconAlert.constants.mjs.map +1 -1
- package/dist/components/Input/Input.cjs.map +1 -1
- package/dist/components/Input/Input.d.cts +1 -1
- package/dist/components/Input/Input.d.mts +1 -1
- package/dist/components/Input/Input.mjs.map +1 -1
- package/dist/components/KeyValueColumn/KeyValueColumn.cjs +21 -12
- package/dist/components/KeyValueColumn/KeyValueColumn.cjs.map +1 -1
- package/dist/components/KeyValueColumn/KeyValueColumn.d.cts.map +1 -1
- package/dist/components/KeyValueColumn/KeyValueColumn.d.mts.map +1 -1
- package/dist/components/KeyValueColumn/KeyValueColumn.mjs +22 -13
- package/dist/components/KeyValueColumn/KeyValueColumn.mjs.map +1 -1
- package/dist/components/KeyValueRow/KeyValueRow.cjs +19 -10
- package/dist/components/KeyValueRow/KeyValueRow.cjs.map +1 -1
- package/dist/components/KeyValueRow/KeyValueRow.d.cts.map +1 -1
- package/dist/components/KeyValueRow/KeyValueRow.d.mts.map +1 -1
- package/dist/components/KeyValueRow/KeyValueRow.mjs +20 -11
- package/dist/components/KeyValueRow/KeyValueRow.mjs.map +1 -1
- package/dist/components/KeyValueSelect/KeyValueSelect.cjs +17 -7
- package/dist/components/KeyValueSelect/KeyValueSelect.cjs.map +1 -1
- package/dist/components/KeyValueSelect/KeyValueSelect.d.cts +5 -5
- package/dist/components/KeyValueSelect/KeyValueSelect.d.mts +5 -5
- package/dist/components/KeyValueSelect/KeyValueSelect.mjs.map +1 -1
- package/dist/components/ListItem/ListItem.cjs +4 -3
- package/dist/components/ListItem/ListItem.cjs.map +1 -1
- package/dist/components/ListItem/ListItem.d.cts.map +1 -1
- package/dist/components/ListItem/ListItem.d.mts.map +1 -1
- package/dist/components/ListItem/ListItem.mjs +5 -4
- package/dist/components/ListItem/ListItem.mjs.map +1 -1
- package/dist/components/ListItemMultiSelect/ListItemMultiSelect.cjs.map +1 -1
- package/dist/components/ListItemMultiSelect/ListItemMultiSelect.mjs.map +1 -1
- package/dist/components/MainActionButton/MainActionButton.d.cts.map +1 -1
- package/dist/components/MainActionButton/MainActionButton.d.mts.map +1 -1
- package/dist/components/RadioButton/RadioButton.cjs +2 -2
- package/dist/components/RadioButton/RadioButton.cjs.map +1 -1
- package/dist/components/RadioButton/RadioButton.d.cts.map +1 -1
- package/dist/components/RadioButton/RadioButton.d.mts.map +1 -1
- package/dist/components/RadioButton/RadioButton.mjs +2 -2
- package/dist/components/RadioButton/RadioButton.mjs.map +1 -1
- package/dist/components/SectionDivider/SectionDivider.cjs +17 -7
- package/dist/components/SectionDivider/SectionDivider.cjs.map +1 -1
- package/dist/components/SectionDivider/SectionDivider.d.cts +1 -1
- package/dist/components/SectionDivider/SectionDivider.d.mts +1 -1
- package/dist/components/SectionDivider/SectionDivider.mjs.map +1 -1
- package/dist/components/SectionHeader/SectionHeader.cjs +17 -10
- package/dist/components/SectionHeader/SectionHeader.cjs.map +1 -1
- package/dist/components/SectionHeader/SectionHeader.d.cts +2 -2
- package/dist/components/SectionHeader/SectionHeader.d.cts.map +1 -1
- package/dist/components/SectionHeader/SectionHeader.d.mts +2 -2
- package/dist/components/SectionHeader/SectionHeader.d.mts.map +1 -1
- package/dist/components/SectionHeader/SectionHeader.mjs +18 -11
- package/dist/components/SectionHeader/SectionHeader.mjs.map +1 -1
- package/dist/components/SectionHeader/SectionHeader.types.cjs.map +1 -1
- package/dist/components/SectionHeader/SectionHeader.types.d.cts +5 -5
- package/dist/components/SectionHeader/SectionHeader.types.d.cts.map +1 -1
- package/dist/components/SectionHeader/SectionHeader.types.d.mts +5 -5
- package/dist/components/SectionHeader/SectionHeader.types.d.mts.map +1 -1
- package/dist/components/SectionHeader/SectionHeader.types.mjs.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.cjs +17 -7
- package/dist/components/SegmentedControl/SegmentedControl.cjs.map +1 -1
- package/dist/components/SelectButton/SelectButton.cjs.map +1 -1
- package/dist/components/SelectButton/SelectButton.mjs.map +1 -1
- package/dist/components/SensitiveText/SensitiveText.cjs +17 -7
- package/dist/components/SensitiveText/SensitiveText.cjs.map +1 -1
- package/dist/components/SensitiveText/SensitiveText.mjs.map +1 -1
- package/dist/components/Skeleton/Skeleton.cjs +17 -7
- package/dist/components/Skeleton/Skeleton.cjs.map +1 -1
- package/dist/components/Skeleton/Skeleton.mjs.map +1 -1
- package/dist/components/Slider/Slider.cjs +17 -7
- package/dist/components/Slider/Slider.cjs.map +1 -1
- package/dist/components/Slider/Slider.constants.cjs +5 -6
- package/dist/components/Slider/Slider.constants.cjs.map +1 -1
- package/dist/components/Slider/Slider.constants.d.cts +5 -6
- package/dist/components/Slider/Slider.constants.d.cts.map +1 -1
- package/dist/components/Slider/Slider.constants.d.mts +5 -6
- package/dist/components/Slider/Slider.constants.d.mts.map +1 -1
- package/dist/components/Slider/Slider.constants.mjs +5 -6
- package/dist/components/Slider/Slider.constants.mjs.map +1 -1
- package/dist/components/Slider/Slider.mjs.map +1 -1
- package/dist/components/Slider/Slider.types.cjs.map +1 -1
- package/dist/components/Slider/Slider.types.d.cts +4 -5
- package/dist/components/Slider/Slider.types.d.cts.map +1 -1
- package/dist/components/Slider/Slider.types.d.mts +4 -5
- package/dist/components/Slider/Slider.types.d.mts.map +1 -1
- package/dist/components/Slider/Slider.types.mjs.map +1 -1
- package/dist/components/Slider/Slider.utilities.cjs +55 -26
- package/dist/components/Slider/Slider.utilities.cjs.map +1 -1
- package/dist/components/Slider/Slider.utilities.d.cts +24 -3
- package/dist/components/Slider/Slider.utilities.d.cts.map +1 -1
- package/dist/components/Slider/Slider.utilities.d.mts +24 -3
- package/dist/components/Slider/Slider.utilities.d.mts.map +1 -1
- package/dist/components/Slider/Slider.utilities.mjs +38 -8
- package/dist/components/Slider/Slider.utilities.mjs.map +1 -1
- package/dist/components/Slider/useSliderGesture.cjs +1 -2
- package/dist/components/Slider/useSliderGesture.cjs.map +1 -1
- package/dist/components/Slider/useSliderGesture.mjs.map +1 -1
- package/dist/components/Spinner/Spinner.cjs +95 -0
- package/dist/components/Spinner/Spinner.cjs.map +1 -0
- package/dist/components/Spinner/Spinner.d.cts.map +1 -0
- package/dist/components/Spinner/Spinner.d.mts.map +1 -0
- package/dist/components/Spinner/Spinner.mjs +65 -0
- package/dist/components/Spinner/Spinner.mjs.map +1 -0
- package/dist/components/Spinner/Spinner.types.cjs.map +1 -0
- package/dist/components/{temp-components/Spinner → Spinner}/Spinner.types.d.cts +2 -2
- package/dist/components/Spinner/Spinner.types.d.cts.map +1 -0
- package/dist/components/{temp-components/Spinner → Spinner}/Spinner.types.d.mts +2 -2
- package/dist/components/Spinner/Spinner.types.d.mts.map +1 -0
- package/dist/components/Spinner/Spinner.types.mjs.map +1 -0
- package/dist/components/Spinner/index.cjs.map +1 -0
- package/dist/components/Spinner/index.d.cts.map +1 -0
- package/dist/components/Spinner/index.d.mts.map +1 -0
- package/dist/components/Spinner/index.mjs.map +1 -0
- package/dist/components/Switch/Switch.d.cts.map +1 -1
- package/dist/components/Switch/Switch.d.mts.map +1 -1
- package/dist/components/TabEmptyState/TabEmptyState.d.cts.map +1 -1
- package/dist/components/TabEmptyState/TabEmptyState.d.mts.map +1 -1
- package/dist/components/Tag/Tag.cjs +12 -18
- package/dist/components/Tag/Tag.cjs.map +1 -1
- package/dist/components/Tag/Tag.d.cts.map +1 -1
- package/dist/components/Tag/Tag.d.mts.map +1 -1
- package/dist/components/Tag/Tag.mjs +13 -19
- package/dist/components/Tag/Tag.mjs.map +1 -1
- package/dist/components/Text/Text.cjs +17 -7
- package/dist/components/Text/Text.cjs.map +1 -1
- package/dist/components/TextArea/TextArea.cjs.map +1 -1
- package/dist/components/TextArea/TextArea.d.cts +131 -130
- package/dist/components/TextArea/TextArea.d.cts.map +1 -1
- package/dist/components/TextArea/TextArea.d.mts +131 -130
- package/dist/components/TextArea/TextArea.d.mts.map +1 -1
- package/dist/components/TextArea/TextArea.mjs.map +1 -1
- package/dist/components/TextButton/TextButton.cjs +17 -7
- package/dist/components/TextButton/TextButton.cjs.map +1 -1
- package/dist/components/TextButton/TextButton.mjs.map +1 -1
- package/dist/components/TextField/TextField.cjs.map +1 -1
- package/dist/components/TextField/TextField.d.cts +136 -135
- package/dist/components/TextField/TextField.d.cts.map +1 -1
- package/dist/components/TextField/TextField.d.mts +136 -135
- package/dist/components/TextField/TextField.d.mts.map +1 -1
- package/dist/components/TextField/TextField.mjs.map +1 -1
- package/dist/components/TextFieldSearch/TextFieldSearch.cjs +22 -9
- package/dist/components/TextFieldSearch/TextFieldSearch.cjs.map +1 -1
- package/dist/components/TextFieldSearch/TextFieldSearch.d.cts +137 -136
- package/dist/components/TextFieldSearch/TextFieldSearch.d.cts.map +1 -1
- package/dist/components/TextFieldSearch/TextFieldSearch.d.mts +137 -136
- package/dist/components/TextFieldSearch/TextFieldSearch.d.mts.map +1 -1
- package/dist/components/TextFieldSearch/TextFieldSearch.mjs +5 -2
- package/dist/components/TextFieldSearch/TextFieldSearch.mjs.map +1 -1
- package/dist/components/TextFieldSearch/TextFieldSearch.types.cjs.map +1 -1
- package/dist/components/TextFieldSearch/TextFieldSearch.types.d.cts +5 -0
- package/dist/components/TextFieldSearch/TextFieldSearch.types.d.cts.map +1 -1
- package/dist/components/TextFieldSearch/TextFieldSearch.types.d.mts +5 -0
- package/dist/components/TextFieldSearch/TextFieldSearch.types.d.mts.map +1 -1
- package/dist/components/TextFieldSearch/TextFieldSearch.types.mjs.map +1 -1
- package/dist/components/TitleAlert/TitleAlert.cjs +21 -19
- package/dist/components/TitleAlert/TitleAlert.cjs.map +1 -1
- package/dist/components/TitleAlert/TitleAlert.d.cts +4 -4
- package/dist/components/TitleAlert/TitleAlert.d.cts.map +1 -1
- package/dist/components/TitleAlert/TitleAlert.d.mts +4 -4
- package/dist/components/TitleAlert/TitleAlert.d.mts.map +1 -1
- package/dist/components/TitleAlert/TitleAlert.mjs +22 -20
- package/dist/components/TitleAlert/TitleAlert.mjs.map +1 -1
- package/dist/components/TitleAlert/TitleAlert.types.cjs.map +1 -1
- package/dist/components/TitleAlert/TitleAlert.types.d.cts +6 -7
- package/dist/components/TitleAlert/TitleAlert.types.d.cts.map +1 -1
- package/dist/components/TitleAlert/TitleAlert.types.d.mts +6 -7
- package/dist/components/TitleAlert/TitleAlert.types.d.mts.map +1 -1
- package/dist/components/TitleAlert/TitleAlert.types.mjs.map +1 -1
- package/dist/components/TitleHub/TitleHub.cjs +22 -13
- package/dist/components/TitleHub/TitleHub.cjs.map +1 -1
- package/dist/components/TitleHub/TitleHub.d.cts +3 -3
- package/dist/components/TitleHub/TitleHub.d.cts.map +1 -1
- package/dist/components/TitleHub/TitleHub.d.mts +3 -3
- package/dist/components/TitleHub/TitleHub.d.mts.map +1 -1
- package/dist/components/TitleHub/TitleHub.mjs +23 -14
- package/dist/components/TitleHub/TitleHub.mjs.map +1 -1
- package/dist/components/TitleHub/TitleHub.types.cjs.map +1 -1
- package/dist/components/TitleHub/TitleHub.types.d.cts +10 -10
- package/dist/components/TitleHub/TitleHub.types.d.cts.map +1 -1
- package/dist/components/TitleHub/TitleHub.types.d.mts +10 -10
- package/dist/components/TitleHub/TitleHub.types.d.mts.map +1 -1
- package/dist/components/TitleHub/TitleHub.types.mjs.map +1 -1
- package/dist/components/TitleStandard/TitleStandard.cjs +15 -9
- package/dist/components/TitleStandard/TitleStandard.cjs.map +1 -1
- package/dist/components/TitleStandard/TitleStandard.d.cts +2 -2
- package/dist/components/TitleStandard/TitleStandard.d.cts.map +1 -1
- package/dist/components/TitleStandard/TitleStandard.d.mts +2 -2
- package/dist/components/TitleStandard/TitleStandard.d.mts.map +1 -1
- package/dist/components/TitleStandard/TitleStandard.mjs +16 -10
- package/dist/components/TitleStandard/TitleStandard.mjs.map +1 -1
- package/dist/components/TitleStandard/TitleStandard.types.cjs.map +1 -1
- package/dist/components/TitleStandard/TitleStandard.types.d.cts +7 -7
- package/dist/components/TitleStandard/TitleStandard.types.d.cts.map +1 -1
- package/dist/components/TitleStandard/TitleStandard.types.d.mts +7 -7
- package/dist/components/TitleStandard/TitleStandard.types.d.mts.map +1 -1
- package/dist/components/TitleStandard/TitleStandard.types.mjs.map +1 -1
- package/dist/components/TitleSubpage/TitleSubpage.cjs +31 -18
- package/dist/components/TitleSubpage/TitleSubpage.cjs.map +1 -1
- package/dist/components/TitleSubpage/TitleSubpage.d.cts +3 -3
- package/dist/components/TitleSubpage/TitleSubpage.d.cts.map +1 -1
- package/dist/components/TitleSubpage/TitleSubpage.d.mts +3 -3
- package/dist/components/TitleSubpage/TitleSubpage.d.mts.map +1 -1
- package/dist/components/TitleSubpage/TitleSubpage.mjs +32 -19
- package/dist/components/TitleSubpage/TitleSubpage.mjs.map +1 -1
- package/dist/components/TitleSubpage/TitleSubpage.types.cjs.map +1 -1
- package/dist/components/TitleSubpage/TitleSubpage.types.d.cts +8 -9
- package/dist/components/TitleSubpage/TitleSubpage.types.d.cts.map +1 -1
- package/dist/components/TitleSubpage/TitleSubpage.types.d.mts +8 -9
- package/dist/components/TitleSubpage/TitleSubpage.types.d.mts.map +1 -1
- package/dist/components/TitleSubpage/TitleSubpage.types.mjs.map +1 -1
- package/dist/components/Toast/Toast.cjs.map +1 -1
- package/dist/components/Toast/Toast.mjs.map +1 -1
- package/dist/components/Toast/Toaster.cjs +17 -7
- package/dist/components/Toast/Toaster.cjs.map +1 -1
- package/dist/components/Toast/Toaster.d.cts +1 -1
- package/dist/components/Toast/Toaster.d.cts.map +1 -1
- package/dist/components/Toast/Toaster.d.mts +1 -1
- package/dist/components/Toast/Toaster.d.mts.map +1 -1
- package/dist/components/Toast/Toaster.mjs.map +1 -1
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +2 -2
- package/dist/components/index.d.cts.map +1 -1
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.d.mts.map +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/components/index.mjs.map +1 -1
- package/dist/components/temp-components/Blockies/Blockies.d.cts.map +1 -1
- package/dist/components/temp-components/Blockies/Blockies.d.mts.map +1 -1
- package/dist/components/temp-components/Blockies/Blockies.utilities.cjs +2 -2
- package/dist/components/temp-components/Blockies/Blockies.utilities.cjs.map +1 -1
- package/dist/components/temp-components/Blockies/Blockies.utilities.mjs.map +1 -1
- package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.cjs +17 -7
- package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.cjs.map +1 -1
- package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.cts.map +1 -1
- package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.mts.map +1 -1
- package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.cjs +10 -9
- package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.cjs.map +1 -1
- package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.d.cts.map +1 -1
- package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.d.mts.map +1 -1
- package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.mjs +10 -8
- package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.mjs.map +1 -1
- package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.cjs +0 -5
- package/dist/components/temp-components/HeaderStandardCenterColumn/HeaderStandardCenterColumn.types.cjs.map +1 -1
- package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.cjs +17 -7
- package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.cjs.map +1 -1
- package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.d.cts.map +1 -1
- package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.d.mts.map +1 -1
- package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.mjs.map +1 -1
- package/dist/components/temp-components/Jazzicon/Jazzicon.cjs +1 -1
- package/dist/components/temp-components/Jazzicon/Jazzicon.cjs.map +1 -1
- package/dist/components/temp-components/Jazzicon/Jazzicon.d.cts.map +1 -1
- package/dist/components/temp-components/Jazzicon/Jazzicon.d.mts.map +1 -1
- package/dist/components/temp-components/Jazzicon/Jazzicon.mjs +1 -1
- package/dist/components/temp-components/Jazzicon/Jazzicon.mjs.map +1 -1
- package/dist/components/temp-components/Maskicon/Maskicon.cjs +17 -7
- package/dist/components/temp-components/Maskicon/Maskicon.cjs.map +1 -1
- package/dist/components/temp-components/Maskicon/Maskicon.d.cts.map +1 -1
- package/dist/components/temp-components/Maskicon/Maskicon.d.mts.map +1 -1
- package/dist/components/temp-components/Maskicon/Maskicon.mjs.map +1 -1
- package/dist/components/temp-components/Maskicon/Maskicon.utilities.cjs +4 -5
- package/dist/components/temp-components/Maskicon/Maskicon.utilities.cjs.map +1 -1
- package/dist/components/temp-components/Maskicon/Maskicon.utilities.mjs.map +1 -1
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.cjs +1 -1
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.cjs.map +1 -1
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.d.cts.map +1 -1
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.d.mts.map +1 -1
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.mjs +1 -1
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.mjs.map +1 -1
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.cjs.map +1 -1
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.d.cts +1 -1
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.d.mts +1 -1
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.mjs.map +1 -1
- package/dist/test-utils/createRenderer.cjs +17 -11
- package/dist/test-utils/createRenderer.cjs.map +1 -1
- package/dist/test-utils/createRenderer.d.cts.map +1 -1
- package/dist/test-utils/createRenderer.d.mts.map +1 -1
- package/package.json +8 -8
- package/dist/components/temp-components/Spinner/Spinner.cjs +0 -68
- package/dist/components/temp-components/Spinner/Spinner.cjs.map +0 -1
- package/dist/components/temp-components/Spinner/Spinner.d.cts.map +0 -1
- package/dist/components/temp-components/Spinner/Spinner.d.mts.map +0 -1
- package/dist/components/temp-components/Spinner/Spinner.mjs +0 -48
- package/dist/components/temp-components/Spinner/Spinner.mjs.map +0 -1
- package/dist/components/temp-components/Spinner/Spinner.types.cjs.map +0 -1
- package/dist/components/temp-components/Spinner/Spinner.types.d.cts.map +0 -1
- package/dist/components/temp-components/Spinner/Spinner.types.d.mts.map +0 -1
- package/dist/components/temp-components/Spinner/Spinner.types.mjs.map +0 -1
- package/dist/components/temp-components/Spinner/index.cjs.map +0 -1
- package/dist/components/temp-components/Spinner/index.d.cts.map +0 -1
- package/dist/components/temp-components/Spinner/index.d.mts.map +0 -1
- package/dist/components/temp-components/Spinner/index.mjs.map +0 -1
- /package/dist/components/{temp-components/Spinner → Spinner}/Spinner.d.cts +0 -0
- /package/dist/components/{temp-components/Spinner → Spinner}/Spinner.d.mts +0 -0
- /package/dist/components/{temp-components/Spinner → Spinner}/Spinner.types.cjs +0 -0
- /package/dist/components/{temp-components/Spinner → Spinner}/Spinner.types.mjs +0 -0
- /package/dist/components/{temp-components/Spinner → Spinner}/index.cjs +0 -0
- /package/dist/components/{temp-components/Spinner → Spinner}/index.d.cts +0 -0
- /package/dist/components/{temp-components/Spinner → Spinner}/index.d.mts +0 -0
- /package/dist/components/{temp-components/Spinner → Spinner}/index.mjs +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TitleHub.types.mjs","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.types.ts"],"names":[],"mappings":"","sourcesContent":["// Third party dependencies.\nimport type { TitleHubPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\n// Internal dependencies.\nimport type {
|
|
1
|
+
{"version":3,"file":"TitleHub.types.mjs","sourceRoot":"","sources":["../../../src/components/TitleHub/TitleHub.types.ts"],"names":[],"mappings":"","sourcesContent":["// Third party dependencies.\nimport type { TitleHubPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\n// Internal dependencies.\nimport type { BoxProps } from '../Box/Box.types';\nimport type { SensitiveTextProps } from '../SensitiveText';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TitleHub component props (React Native).\n * Extends {@link TitleHubPropsShared} (requires `title`) with platform `Text` passthroughs, `twClassName`, and `View` props.\n */\nexport type TitleHubProps = TitleHubPropsShared & {\n /**\n * Optional props merged into the title `Text` when `title` is a string.\n */\n titleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props spread onto the title row {@link Box} (a row with centered items and `gap={1}` by default; values here override those defaults). Omits `children` (TitleHub sets it via `title` and `titleEndAccessory`).\n */\n titleWrapperProps?: Omit<Partial<BoxProps>, 'children'>;\n /**\n * Optional props merged into the amount `Text` when `amount` is a string.\n * Supports Text props plus `isHidden` / `length`.\n */\n amountProps?: Partial<Omit<SensitiveTextProps, 'children'>>;\n /**\n * Optional props spread onto the amount row {@link Box} (a row with centered items and `gap={1}` by default; values here override those defaults). Omits `children` (TitleHub sets it via `amount` and `amountEndAccessory`).\n */\n amountWrapperProps?: Omit<Partial<BoxProps>, 'children'>;\n /**\n * Optional props merged into the bottom label `Text` when `bottomLabel` is a string.\n * Supports Text props plus `isHidden` / `length`.\n */\n bottomLabelProps?: Partial<Omit<SensitiveTextProps, 'children'>>;\n /**\n * Optional props spread onto the bottom label row {@link Box} (a row with centered items and `gap={1}` by default; values here override those defaults). Omits `children` (TitleHub sets it via `bottomLabel` and `bottomLabelEndAccessory`).\n */\n bottomLabelWrapperProps?: Omit<Partial<BoxProps>, 'children'>;\n /**\n * Optional Tailwind class name to apply to the container.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}
|
|
@@ -9,7 +9,7 @@ const design_system_shared_1 = require("@metamask-previews/design-system-shared"
|
|
|
9
9
|
const react_1 = __importDefault(require("react"));
|
|
10
10
|
// Internal dependencies.
|
|
11
11
|
const Box_1 = require("../Box/index.cjs");
|
|
12
|
-
const
|
|
12
|
+
const TextOrChildren_1 = require("../temp-components/TextOrChildren/index.cjs");
|
|
13
13
|
/**
|
|
14
14
|
* Displays a primary title with optional top, inline, and bottom rows in a left-aligned layout.
|
|
15
15
|
* Remaining `View` props are forwarded to the root `Box`.
|
|
@@ -23,8 +23,8 @@ const BoxRow_1 = require("../BoxRow/index.cjs");
|
|
|
23
23
|
* @param props.bottomLabelEndAccessory - Optional inline accessory to the right of the bottom label
|
|
24
24
|
* @param props.titleProps - Optional props merged into title `Text` when `title` is a string
|
|
25
25
|
* @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string
|
|
26
|
-
* @param props.titleWrapperProps - Optional props forwarded to the title row `
|
|
27
|
-
* @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `
|
|
26
|
+
* @param props.titleWrapperProps - Optional props forwarded to the title row `Box`
|
|
27
|
+
* @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `Box`
|
|
28
28
|
* @param props.twClassName - Optional Tailwind classes on the root container
|
|
29
29
|
*
|
|
30
30
|
* @returns The rendered TitleStandard layout.
|
|
@@ -34,21 +34,27 @@ const TitleStandard = ({ title, titleEndAccessory, topAccessory, bottomAccessory
|
|
|
34
34
|
{/* Top Accessory Slot */}
|
|
35
35
|
{topAccessory}
|
|
36
36
|
{/* Title Row */}
|
|
37
|
-
<
|
|
37
|
+
<Box_1.Box flexDirection={design_system_shared_1.BoxFlexDirection.Row} alignItems={design_system_shared_1.BoxAlignItems.Center} gap={2} {...titleWrapperProps}>
|
|
38
|
+
<TextOrChildren_1.TextOrChildren textProps={{
|
|
38
39
|
variant: design_system_shared_1.TextVariant.HeadingLg,
|
|
39
40
|
...titleProps,
|
|
40
41
|
}}>
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
{title}
|
|
43
|
+
</TextOrChildren_1.TextOrChildren>
|
|
44
|
+
{titleEndAccessory}
|
|
45
|
+
</Box_1.Box>
|
|
43
46
|
{/* Bottom Label Row */}
|
|
44
|
-
{bottomLabel && (<
|
|
47
|
+
{bottomLabel && (<Box_1.Box flexDirection={design_system_shared_1.BoxFlexDirection.Row} alignItems={design_system_shared_1.BoxAlignItems.Center} gap={2} {...bottomLabelWrapperProps}>
|
|
48
|
+
<TextOrChildren_1.TextOrChildren textProps={{
|
|
45
49
|
variant: design_system_shared_1.TextVariant.BodySm,
|
|
46
50
|
fontWeight: design_system_shared_1.FontWeight.Medium,
|
|
47
51
|
color: design_system_shared_1.TextColor.TextAlternative,
|
|
48
52
|
...bottomLabelProps,
|
|
49
53
|
}}>
|
|
50
|
-
|
|
51
|
-
|
|
54
|
+
{bottomLabel}
|
|
55
|
+
</TextOrChildren_1.TextOrChildren>
|
|
56
|
+
{bottomLabelEndAccessory}
|
|
57
|
+
</Box_1.Box>)}
|
|
52
58
|
{/* Bottom Accessory Slot */}
|
|
53
59
|
{!bottomLabel && bottomAccessory}
|
|
54
60
|
</Box_1.Box>);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TitleStandard.cjs","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,
|
|
1
|
+
{"version":3,"file":"TitleStandard.cjs","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,kFAMiD;AACjD,kDAA0B;AAE1B,yBAAyB;AACzB,0CAA6B;AAC7B,gFAAmE;AAInE;;;;;;;;;;;;;;;;;;GAkBG;AACI,MAAM,aAAa,GAAiC,CAAC,EAC1D,KAAK,EACL,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,WAAW,EACX,uBAAuB,EACvB,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,EACvB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,CAAC,SAAG,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAC/C;MAAA,CAAC,wBAAwB,CACzB;MAAA,CAAC,YAAY,CACb;MAAA,CAAC,eAAe,CAChB;MAAA,CAAC,SAAG,CACF,aAAa,CAAC,CAAC,uCAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,oCAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,IAAI,iBAAiB,CAAC,CAEtB;QAAA,CAAC,+BAAc,CACb,SAAS,CAAC,CAAC;YACT,OAAO,EAAE,kCAAW,CAAC,SAAS;YAC9B,GAAG,UAAU;SACd,CAAC,CAEF;UAAA,CAAC,KAAK,CACR;QAAA,EAAE,+BAAc,CAChB;QAAA,CAAC,iBAAiB,CACpB;MAAA,EAAE,SAAG,CACL;MAAA,CAAC,sBAAsB,CACvB;MAAA,CAAC,WAAW,IAAI,CACd,CAAC,SAAG,CACF,aAAa,CAAC,CAAC,uCAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,oCAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,IAAI,uBAAuB,CAAC,CAE5B;UAAA,CAAC,+BAAc,CACb,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,kCAAW,CAAC,MAAM;gBAC3B,UAAU,EAAE,iCAAU,CAAC,MAAM;gBAC7B,KAAK,EAAE,gCAAS,CAAC,eAAe;gBAChC,GAAG,gBAAgB;aACpB,CAAC,CAEF;YAAA,CAAC,WAAW,CACd;UAAA,EAAE,+BAAc,CAChB;UAAA,CAAC,uBAAuB,CAC1B;QAAA,EAAE,SAAG,CAAC,CACP,CACD;MAAA,CAAC,2BAA2B,CAC5B;MAAA,CAAC,CAAC,WAAW,IAAI,eAAe,CAClC;IAAA,EAAE,SAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AA5DW,QAAA,aAAa,iBA4DxB;AAEF,qBAAa,CAAC,WAAW,GAAG,eAAe,CAAC","sourcesContent":["// Third party dependencies.\nimport {\n BoxAlignItems,\n BoxFlexDirection,\n FontWeight,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\n// Internal dependencies.\nimport { Box } from '../Box';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { TitleStandardProps } from './TitleStandard.types';\n\n/**\n * Displays a primary title with optional top, inline, and bottom rows in a left-aligned layout.\n * Remaining `View` props are forwarded to the root `Box`.\n *\n * @param props - Component props\n * @param props.title - Primary title content\n * @param props.titleEndAccessory - Optional inline accessory to the right of the title\n * @param props.topAccessory - Optional row above the title\n * @param props.bottomAccessory - Optional custom bottom row when `bottomLabel` is not renderable\n * @param props.bottomLabel - Optional secondary label below the title\n * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of the bottom label\n * @param props.titleProps - Optional props merged into title `Text` when `title` is a string\n * @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string\n * @param props.titleWrapperProps - Optional props forwarded to the title row `Box`\n * @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `Box`\n * @param props.twClassName - Optional Tailwind classes on the root container\n *\n * @returns The rendered TitleStandard layout.\n */\nexport const TitleStandard: React.FC<TitleStandardProps> = ({\n title,\n titleEndAccessory,\n topAccessory,\n bottomAccessory,\n bottomLabel,\n bottomLabelEndAccessory,\n titleProps,\n titleWrapperProps,\n bottomLabelProps,\n bottomLabelWrapperProps,\n twClassName = '',\n ...props\n}) => {\n return (\n <Box twClassName={twClassName} gap={1} {...props}>\n {/* Top Accessory Slot */}\n {topAccessory}\n {/* Title Row */}\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={2}\n {...titleWrapperProps}\n >\n <TextOrChildren\n textProps={{\n variant: TextVariant.HeadingLg,\n ...titleProps,\n }}\n >\n {title}\n </TextOrChildren>\n {titleEndAccessory}\n </Box>\n {/* Bottom Label Row */}\n {bottomLabel && (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={2}\n {...bottomLabelWrapperProps}\n >\n <TextOrChildren\n textProps={{\n variant: TextVariant.BodySm,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextAlternative,\n ...bottomLabelProps,\n }}\n >\n {bottomLabel}\n </TextOrChildren>\n {bottomLabelEndAccessory}\n </Box>\n )}\n {/* Bottom Accessory Slot */}\n {!bottomLabel && bottomAccessory}\n </Box>\n );\n};\n\nTitleStandard.displayName = 'TitleStandard';\n"]}
|
|
@@ -13,8 +13,8 @@ import type { TitleStandardProps } from "./TitleStandard.types.cjs";
|
|
|
13
13
|
* @param props.bottomLabelEndAccessory - Optional inline accessory to the right of the bottom label
|
|
14
14
|
* @param props.titleProps - Optional props merged into title `Text` when `title` is a string
|
|
15
15
|
* @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string
|
|
16
|
-
* @param props.titleWrapperProps - Optional props forwarded to the title row `
|
|
17
|
-
* @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `
|
|
16
|
+
* @param props.titleWrapperProps - Optional props forwarded to the title row `Box`
|
|
17
|
+
* @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `Box`
|
|
18
18
|
* @param props.twClassName - Optional Tailwind classes on the root container
|
|
19
19
|
*
|
|
20
20
|
* @returns The rendered TitleStandard layout.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TitleStandard.d.cts","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TitleStandard.d.cts","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA4DtD,CAAC"}
|
|
@@ -13,8 +13,8 @@ import type { TitleStandardProps } from "./TitleStandard.types.mjs";
|
|
|
13
13
|
* @param props.bottomLabelEndAccessory - Optional inline accessory to the right of the bottom label
|
|
14
14
|
* @param props.titleProps - Optional props merged into title `Text` when `title` is a string
|
|
15
15
|
* @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string
|
|
16
|
-
* @param props.titleWrapperProps - Optional props forwarded to the title row `
|
|
17
|
-
* @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `
|
|
16
|
+
* @param props.titleWrapperProps - Optional props forwarded to the title row `Box`
|
|
17
|
+
* @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `Box`
|
|
18
18
|
* @param props.twClassName - Optional Tailwind classes on the root container
|
|
19
19
|
*
|
|
20
20
|
* @returns The rendered TitleStandard layout.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TitleStandard.d.mts","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TitleStandard.d.mts","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA4DtD,CAAC"}
|
|
@@ -5,12 +5,12 @@ function $importDefault(module) {
|
|
|
5
5
|
return module;
|
|
6
6
|
}
|
|
7
7
|
// Third party dependencies.
|
|
8
|
-
import { FontWeight, TextColor, TextVariant } from "@metamask-previews/design-system-shared";
|
|
8
|
+
import { BoxAlignItems, BoxFlexDirection, FontWeight, TextColor, TextVariant } from "@metamask-previews/design-system-shared";
|
|
9
9
|
import $React from "react";
|
|
10
10
|
const React = $importDefault($React);
|
|
11
11
|
// Internal dependencies.
|
|
12
12
|
import { Box } from "../Box/index.mjs";
|
|
13
|
-
import {
|
|
13
|
+
import { TextOrChildren } from "../temp-components/TextOrChildren/index.mjs";
|
|
14
14
|
/**
|
|
15
15
|
* Displays a primary title with optional top, inline, and bottom rows in a left-aligned layout.
|
|
16
16
|
* Remaining `View` props are forwarded to the root `Box`.
|
|
@@ -24,8 +24,8 @@ import { BoxRow } from "../BoxRow/index.mjs";
|
|
|
24
24
|
* @param props.bottomLabelEndAccessory - Optional inline accessory to the right of the bottom label
|
|
25
25
|
* @param props.titleProps - Optional props merged into title `Text` when `title` is a string
|
|
26
26
|
* @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string
|
|
27
|
-
* @param props.titleWrapperProps - Optional props forwarded to the title row `
|
|
28
|
-
* @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `
|
|
27
|
+
* @param props.titleWrapperProps - Optional props forwarded to the title row `Box`
|
|
28
|
+
* @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `Box`
|
|
29
29
|
* @param props.twClassName - Optional Tailwind classes on the root container
|
|
30
30
|
*
|
|
31
31
|
* @returns The rendered TitleStandard layout.
|
|
@@ -35,21 +35,27 @@ export const TitleStandard = ({ title, titleEndAccessory, topAccessory, bottomAc
|
|
|
35
35
|
{/* Top Accessory Slot */}
|
|
36
36
|
{topAccessory}
|
|
37
37
|
{/* Title Row */}
|
|
38
|
-
<
|
|
38
|
+
<Box flexDirection={BoxFlexDirection.Row} alignItems={BoxAlignItems.Center} gap={2} {...titleWrapperProps}>
|
|
39
|
+
<TextOrChildren textProps={{
|
|
39
40
|
variant: TextVariant.HeadingLg,
|
|
40
41
|
...titleProps,
|
|
41
42
|
}}>
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
{title}
|
|
44
|
+
</TextOrChildren>
|
|
45
|
+
{titleEndAccessory}
|
|
46
|
+
</Box>
|
|
44
47
|
{/* Bottom Label Row */}
|
|
45
|
-
{bottomLabel && (<
|
|
48
|
+
{bottomLabel && (<Box flexDirection={BoxFlexDirection.Row} alignItems={BoxAlignItems.Center} gap={2} {...bottomLabelWrapperProps}>
|
|
49
|
+
<TextOrChildren textProps={{
|
|
46
50
|
variant: TextVariant.BodySm,
|
|
47
51
|
fontWeight: FontWeight.Medium,
|
|
48
52
|
color: TextColor.TextAlternative,
|
|
49
53
|
...bottomLabelProps,
|
|
50
54
|
}}>
|
|
51
|
-
|
|
52
|
-
|
|
55
|
+
{bottomLabel}
|
|
56
|
+
</TextOrChildren>
|
|
57
|
+
{bottomLabelEndAccessory}
|
|
58
|
+
</Box>)}
|
|
53
59
|
{/* Bottom Accessory Slot */}
|
|
54
60
|
{!bottomLabel && bottomAccessory}
|
|
55
61
|
</Box>);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TitleStandard.mjs","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,OAAO,EACL,UAAU,EACV,SAAS,EACT,WAAW,EACZ,gDAAgD;AACjD,OAAO,MAAK,cAAc;;AAE1B,yBAAyB;AACzB,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"TitleStandard.mjs","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,WAAW,EACZ,gDAAgD;AACjD,OAAO,MAAK,cAAc;;AAE1B,yBAAyB;AACzB,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,cAAc,EAAE,oDAA0C;AAInE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,aAAa,GAAiC,CAAC,EAC1D,KAAK,EACL,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,WAAW,EACX,uBAAuB,EACvB,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,EACvB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAC/C;MAAA,CAAC,wBAAwB,CACzB;MAAA,CAAC,YAAY,CACb;MAAA,CAAC,eAAe,CAChB;MAAA,CAAC,GAAG,CACF,aAAa,CAAC,CAAC,gBAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,IAAI,iBAAiB,CAAC,CAEtB;QAAA,CAAC,cAAc,CACb,SAAS,CAAC,CAAC;YACT,OAAO,EAAE,WAAW,CAAC,SAAS;YAC9B,GAAG,UAAU;SACd,CAAC,CAEF;UAAA,CAAC,KAAK,CACR;QAAA,EAAE,cAAc,CAChB;QAAA,CAAC,iBAAiB,CACpB;MAAA,EAAE,GAAG,CACL;MAAA,CAAC,sBAAsB,CACvB;MAAA,CAAC,WAAW,IAAI,CACd,CAAC,GAAG,CACF,aAAa,CAAC,CAAC,gBAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,IAAI,uBAAuB,CAAC,CAE5B;UAAA,CAAC,cAAc,CACb,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,WAAW,CAAC,MAAM;gBAC3B,UAAU,EAAE,UAAU,CAAC,MAAM;gBAC7B,KAAK,EAAE,SAAS,CAAC,eAAe;gBAChC,GAAG,gBAAgB;aACpB,CAAC,CAEF;YAAA,CAAC,WAAW,CACd;UAAA,EAAE,cAAc,CAChB;UAAA,CAAC,uBAAuB,CAC1B;QAAA,EAAE,GAAG,CAAC,CACP,CACD;MAAA,CAAC,2BAA2B,CAC5B;MAAA,CAAC,CAAC,WAAW,IAAI,eAAe,CAClC;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC","sourcesContent":["// Third party dependencies.\nimport {\n BoxAlignItems,\n BoxFlexDirection,\n FontWeight,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\n// Internal dependencies.\nimport { Box } from '../Box';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { TitleStandardProps } from './TitleStandard.types';\n\n/**\n * Displays a primary title with optional top, inline, and bottom rows in a left-aligned layout.\n * Remaining `View` props are forwarded to the root `Box`.\n *\n * @param props - Component props\n * @param props.title - Primary title content\n * @param props.titleEndAccessory - Optional inline accessory to the right of the title\n * @param props.topAccessory - Optional row above the title\n * @param props.bottomAccessory - Optional custom bottom row when `bottomLabel` is not renderable\n * @param props.bottomLabel - Optional secondary label below the title\n * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of the bottom label\n * @param props.titleProps - Optional props merged into title `Text` when `title` is a string\n * @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string\n * @param props.titleWrapperProps - Optional props forwarded to the title row `Box`\n * @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `Box`\n * @param props.twClassName - Optional Tailwind classes on the root container\n *\n * @returns The rendered TitleStandard layout.\n */\nexport const TitleStandard: React.FC<TitleStandardProps> = ({\n title,\n titleEndAccessory,\n topAccessory,\n bottomAccessory,\n bottomLabel,\n bottomLabelEndAccessory,\n titleProps,\n titleWrapperProps,\n bottomLabelProps,\n bottomLabelWrapperProps,\n twClassName = '',\n ...props\n}) => {\n return (\n <Box twClassName={twClassName} gap={1} {...props}>\n {/* Top Accessory Slot */}\n {topAccessory}\n {/* Title Row */}\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={2}\n {...titleWrapperProps}\n >\n <TextOrChildren\n textProps={{\n variant: TextVariant.HeadingLg,\n ...titleProps,\n }}\n >\n {title}\n </TextOrChildren>\n {titleEndAccessory}\n </Box>\n {/* Bottom Label Row */}\n {bottomLabel && (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={2}\n {...bottomLabelWrapperProps}\n >\n <TextOrChildren\n textProps={{\n variant: TextVariant.BodySm,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextAlternative,\n ...bottomLabelProps,\n }}\n >\n {bottomLabel}\n </TextOrChildren>\n {bottomLabelEndAccessory}\n </Box>\n )}\n {/* Bottom Accessory Slot */}\n {!bottomLabel && bottomAccessory}\n </Box>\n );\n};\n\nTitleStandard.displayName = 'TitleStandard';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TitleStandard.types.cjs","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.types.ts"],"names":[],"mappings":"","sourcesContent":["// Third party dependencies.\nimport type { TitleStandardPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\n// Internal dependencies.\nimport type {
|
|
1
|
+
{"version":3,"file":"TitleStandard.types.cjs","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.types.ts"],"names":[],"mappings":"","sourcesContent":["// Third party dependencies.\nimport type { TitleStandardPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\n// Internal dependencies.\nimport type { BoxProps } from '../Box/Box.types';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TitleStandard component props (React Native).\n * Extends {@link TitleStandardPropsShared} (requires `title`) with platform `Text` passthroughs, `twClassName`, and `View` props.\n */\nexport type TitleStandardProps = TitleStandardPropsShared & {\n /**\n * Optional props merged into the title `Text` when `title` is a string.\n */\n titleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props forwarded to the title row {@link Box} (a row with centered items and `gap={2}` by default; values here override those defaults). Excludes `children`, which is controlled by this component.\n */\n titleWrapperProps?: Omit<Partial<BoxProps>, 'children'>;\n /**\n * Optional props merged into the bottom label `Text` when `bottomLabel` is a string.\n */\n bottomLabelProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props forwarded to the bottom label row {@link Box} when `bottomLabel` is renderable (a row with centered items and `gap={2}` by default; values here override those defaults). Excludes `children`, which is controlled by this component.\n */\n bottomLabelWrapperProps?: Omit<Partial<BoxProps>, 'children'>;\n /**\n * Optional Tailwind class name to apply to the container.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TitleStandardPropsShared } from "@metamask-previews/design-system-shared";
|
|
2
2
|
import type { ViewProps } from "react-native";
|
|
3
|
-
import type {
|
|
3
|
+
import type { BoxProps } from "../Box/Box.types.cjs";
|
|
4
4
|
import type { TextProps } from "../Text/Text.types.cjs";
|
|
5
5
|
/**
|
|
6
6
|
* TitleStandard component props (React Native).
|
|
@@ -8,21 +8,21 @@ import type { TextProps } from "../Text/Text.types.cjs";
|
|
|
8
8
|
*/
|
|
9
9
|
export type TitleStandardProps = TitleStandardPropsShared & {
|
|
10
10
|
/**
|
|
11
|
-
* Optional props merged into
|
|
11
|
+
* Optional props merged into the title `Text` when `title` is a string.
|
|
12
12
|
*/
|
|
13
13
|
titleProps?: Omit<Partial<TextProps>, 'children'>;
|
|
14
14
|
/**
|
|
15
|
-
* Optional props forwarded to the title row {@link
|
|
15
|
+
* Optional props forwarded to the title row {@link Box} (a row with centered items and `gap={2}` by default; values here override those defaults). Excludes `children`, which is controlled by this component.
|
|
16
16
|
*/
|
|
17
|
-
titleWrapperProps?: Omit<Partial<
|
|
17
|
+
titleWrapperProps?: Omit<Partial<BoxProps>, 'children'>;
|
|
18
18
|
/**
|
|
19
|
-
* Optional props merged into
|
|
19
|
+
* Optional props merged into the bottom label `Text` when `bottomLabel` is a string.
|
|
20
20
|
*/
|
|
21
21
|
bottomLabelProps?: Omit<Partial<TextProps>, 'children'>;
|
|
22
22
|
/**
|
|
23
|
-
* Optional props forwarded to the bottom label row {@link
|
|
23
|
+
* Optional props forwarded to the bottom label row {@link Box} when `bottomLabel` is renderable (a row with centered items and `gap={2}` by default; values here override those defaults). Excludes `children`, which is controlled by this component.
|
|
24
24
|
*/
|
|
25
|
-
bottomLabelWrapperProps?: Omit<Partial<
|
|
25
|
+
bottomLabelWrapperProps?: Omit<Partial<BoxProps>, 'children'>;
|
|
26
26
|
/**
|
|
27
27
|
* Optional Tailwind class name to apply to the container.
|
|
28
28
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TitleStandard.types.d.cts","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,gDAAgD;AACxF,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAG9C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"TitleStandard.types.d.cts","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,gDAAgD;AACxF,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAG9C,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAyB;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,GAAG;IAC1D;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAClD;;OAEG;IACH,iBAAiB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;OAEG;IACH,uBAAuB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;IAC9D;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TitleStandardPropsShared } from "@metamask-previews/design-system-shared";
|
|
2
2
|
import type { ViewProps } from "react-native";
|
|
3
|
-
import type {
|
|
3
|
+
import type { BoxProps } from "../Box/Box.types.mjs";
|
|
4
4
|
import type { TextProps } from "../Text/Text.types.mjs";
|
|
5
5
|
/**
|
|
6
6
|
* TitleStandard component props (React Native).
|
|
@@ -8,21 +8,21 @@ import type { TextProps } from "../Text/Text.types.mjs";
|
|
|
8
8
|
*/
|
|
9
9
|
export type TitleStandardProps = TitleStandardPropsShared & {
|
|
10
10
|
/**
|
|
11
|
-
* Optional props merged into
|
|
11
|
+
* Optional props merged into the title `Text` when `title` is a string.
|
|
12
12
|
*/
|
|
13
13
|
titleProps?: Omit<Partial<TextProps>, 'children'>;
|
|
14
14
|
/**
|
|
15
|
-
* Optional props forwarded to the title row {@link
|
|
15
|
+
* Optional props forwarded to the title row {@link Box} (a row with centered items and `gap={2}` by default; values here override those defaults). Excludes `children`, which is controlled by this component.
|
|
16
16
|
*/
|
|
17
|
-
titleWrapperProps?: Omit<Partial<
|
|
17
|
+
titleWrapperProps?: Omit<Partial<BoxProps>, 'children'>;
|
|
18
18
|
/**
|
|
19
|
-
* Optional props merged into
|
|
19
|
+
* Optional props merged into the bottom label `Text` when `bottomLabel` is a string.
|
|
20
20
|
*/
|
|
21
21
|
bottomLabelProps?: Omit<Partial<TextProps>, 'children'>;
|
|
22
22
|
/**
|
|
23
|
-
* Optional props forwarded to the bottom label row {@link
|
|
23
|
+
* Optional props forwarded to the bottom label row {@link Box} when `bottomLabel` is renderable (a row with centered items and `gap={2}` by default; values here override those defaults). Excludes `children`, which is controlled by this component.
|
|
24
24
|
*/
|
|
25
|
-
bottomLabelWrapperProps?: Omit<Partial<
|
|
25
|
+
bottomLabelWrapperProps?: Omit<Partial<BoxProps>, 'children'>;
|
|
26
26
|
/**
|
|
27
27
|
* Optional Tailwind class name to apply to the container.
|
|
28
28
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TitleStandard.types.d.mts","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,gDAAgD;AACxF,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAG9C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"TitleStandard.types.d.mts","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,gDAAgD;AACxF,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAG9C,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAyB;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,+BAA2B;AAEpD;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,GAAG;IAC1D;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IAClD;;OAEG;IACH,iBAAiB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;OAEG;IACH,gBAAgB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACxD;;OAEG;IACH,uBAAuB,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;IAC9D;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TitleStandard.types.mjs","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.types.ts"],"names":[],"mappings":"","sourcesContent":["// Third party dependencies.\nimport type { TitleStandardPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\n// Internal dependencies.\nimport type {
|
|
1
|
+
{"version":3,"file":"TitleStandard.types.mjs","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.types.ts"],"names":[],"mappings":"","sourcesContent":["// Third party dependencies.\nimport type { TitleStandardPropsShared } from '@metamask-previews/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\n// Internal dependencies.\nimport type { BoxProps } from '../Box/Box.types';\nimport type { TextProps } from '../Text/Text.types';\n\n/**\n * TitleStandard component props (React Native).\n * Extends {@link TitleStandardPropsShared} (requires `title`) with platform `Text` passthroughs, `twClassName`, and `View` props.\n */\nexport type TitleStandardProps = TitleStandardPropsShared & {\n /**\n * Optional props merged into the title `Text` when `title` is a string.\n */\n titleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props forwarded to the title row {@link Box} (a row with centered items and `gap={2}` by default; values here override those defaults). Excludes `children`, which is controlled by this component.\n */\n titleWrapperProps?: Omit<Partial<BoxProps>, 'children'>;\n /**\n * Optional props merged into the bottom label `Text` when `bottomLabel` is a string.\n */\n bottomLabelProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props forwarded to the bottom label row {@link Box} when `bottomLabel` is renderable (a row with centered items and `gap={2}` by default; values here override those defaults). Excludes `children`, which is controlled by this component.\n */\n bottomLabelWrapperProps?: Omit<Partial<BoxProps>, 'children'>;\n /**\n * Optional Tailwind class name to apply to the container.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}
|
|
@@ -9,17 +9,17 @@ const design_system_shared_1 = require("@metamask-previews/design-system-shared"
|
|
|
9
9
|
const react_1 = __importDefault(require("react"));
|
|
10
10
|
// Internal dependencies.
|
|
11
11
|
const Box_1 = require("../Box/index.cjs");
|
|
12
|
-
const
|
|
12
|
+
const TextOrChildren_1 = require("../temp-components/TextOrChildren/index.cjs");
|
|
13
13
|
/**
|
|
14
14
|
* Displays a required identity row (avatar + title stack) with optional subtitle, amount, inline accessories, and bottom rows in a left-aligned layout.
|
|
15
15
|
* Remaining `View` props are forwarded to the root `Box`.
|
|
16
16
|
*
|
|
17
17
|
* @param props - Component props
|
|
18
18
|
* @param props.title - Title row content (required)
|
|
19
|
-
* @param props.titleAvatar - Leading visual for the identity row (required);
|
|
20
|
-
* @param props.identityRowProps - Optional props spread onto the identity `
|
|
19
|
+
* @param props.titleAvatar - Leading visual for the identity row (required); rendered as the first child of the identity row so callers control layout and composition (for example badges that extend past the token)
|
|
20
|
+
* @param props.identityRowProps - Optional props spread onto the identity row `Box` after defaults (`children` is reserved)
|
|
21
21
|
* @param props.titleColumnProps - Optional props spread onto the title/subtitle column `Box` (`children` is reserved)
|
|
22
|
-
* @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label `
|
|
22
|
+
* @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `Box` after defaults (`children` is reserved)
|
|
23
23
|
* @param props.titleEndAccessory - Optional inline accessory to the right of `title`
|
|
24
24
|
* @param props.subtitle - Optional subtitle row below the title and above the amount
|
|
25
25
|
* @param props.subtitleEndAccessory - Optional inline accessory to the right of `subtitle`
|
|
@@ -39,44 +39,57 @@ const BoxRow_1 = require("../BoxRow/index.cjs");
|
|
|
39
39
|
const TitleSubpage = ({ amount, amountEndAccessory, title, titleAvatar, titleEndAccessory, subtitle, subtitleEndAccessory, bottomAccessory, bottomLabel, bottomLabelEndAccessory, amountProps, titleProps, subtitleProps, bottomLabelProps, identityRowProps, titleColumnProps, bottomLabelWrapperProps, twClassName = '', ...props }) => {
|
|
40
40
|
return (<Box_1.Box twClassName={twClassName} gap={1} {...props}>
|
|
41
41
|
{/* Identity Row */}
|
|
42
|
-
<
|
|
42
|
+
<Box_1.Box flexDirection={design_system_shared_1.BoxFlexDirection.Row} alignItems={design_system_shared_1.BoxAlignItems.Center} gap={4} twClassName="h-14" {...identityRowProps}>
|
|
43
|
+
{titleAvatar}
|
|
43
44
|
{/* Title and Subtitle Column */}
|
|
44
45
|
<Box_1.Box {...titleColumnProps}>
|
|
45
46
|
{/* Title Row */}
|
|
46
|
-
{title && (<
|
|
47
|
+
{title && (<Box_1.Box flexDirection={design_system_shared_1.BoxFlexDirection.Row} alignItems={design_system_shared_1.BoxAlignItems.Center} gap={1}>
|
|
48
|
+
<TextOrChildren_1.TextOrChildren textProps={{
|
|
47
49
|
variant: design_system_shared_1.TextVariant.HeadingSm,
|
|
48
50
|
color: design_system_shared_1.TextColor.TextDefault,
|
|
49
51
|
...titleProps,
|
|
50
52
|
}}>
|
|
51
|
-
|
|
52
|
-
|
|
53
|
+
{title}
|
|
54
|
+
</TextOrChildren_1.TextOrChildren>
|
|
55
|
+
{titleEndAccessory}
|
|
56
|
+
</Box_1.Box>)}
|
|
53
57
|
{/* Subtitle Row */}
|
|
54
|
-
{subtitle && (<
|
|
58
|
+
{subtitle && (<Box_1.Box flexDirection={design_system_shared_1.BoxFlexDirection.Row} alignItems={design_system_shared_1.BoxAlignItems.Center} gap={1}>
|
|
59
|
+
<TextOrChildren_1.TextOrChildren textProps={{
|
|
55
60
|
variant: design_system_shared_1.TextVariant.BodySm,
|
|
56
61
|
fontWeight: design_system_shared_1.FontWeight.Medium,
|
|
57
62
|
color: design_system_shared_1.TextColor.TextAlternative,
|
|
58
63
|
...subtitleProps,
|
|
59
64
|
}}>
|
|
60
|
-
|
|
61
|
-
|
|
65
|
+
{subtitle}
|
|
66
|
+
</TextOrChildren_1.TextOrChildren>
|
|
67
|
+
{subtitleEndAccessory}
|
|
68
|
+
</Box_1.Box>)}
|
|
62
69
|
</Box_1.Box>
|
|
63
|
-
</
|
|
70
|
+
</Box_1.Box>
|
|
64
71
|
{/* Amount Row */}
|
|
65
|
-
{amount && (<
|
|
72
|
+
{amount && (<Box_1.Box flexDirection={design_system_shared_1.BoxFlexDirection.Row} alignItems={design_system_shared_1.BoxAlignItems.Center} gap={1}>
|
|
73
|
+
<TextOrChildren_1.TextOrChildren textProps={{
|
|
66
74
|
variant: design_system_shared_1.TextVariant.DisplayLg,
|
|
67
75
|
...amountProps,
|
|
68
76
|
}}>
|
|
69
|
-
|
|
70
|
-
|
|
77
|
+
{amount}
|
|
78
|
+
</TextOrChildren_1.TextOrChildren>
|
|
79
|
+
{amountEndAccessory}
|
|
80
|
+
</Box_1.Box>)}
|
|
71
81
|
{/* Bottom Label Row */}
|
|
72
|
-
{bottomLabel && (<
|
|
82
|
+
{bottomLabel && (<Box_1.Box flexDirection={design_system_shared_1.BoxFlexDirection.Row} alignItems={design_system_shared_1.BoxAlignItems.Center} gap={1} {...bottomLabelWrapperProps}>
|
|
83
|
+
<TextOrChildren_1.TextOrChildren textProps={{
|
|
73
84
|
variant: design_system_shared_1.TextVariant.BodySm,
|
|
74
85
|
fontWeight: design_system_shared_1.FontWeight.Medium,
|
|
75
86
|
color: design_system_shared_1.TextColor.TextAlternative,
|
|
76
87
|
...bottomLabelProps,
|
|
77
88
|
}}>
|
|
78
|
-
|
|
79
|
-
|
|
89
|
+
{bottomLabel}
|
|
90
|
+
</TextOrChildren_1.TextOrChildren>
|
|
91
|
+
{bottomLabelEndAccessory}
|
|
92
|
+
</Box_1.Box>)}
|
|
80
93
|
{!bottomLabel && bottomAccessory}
|
|
81
94
|
</Box_1.Box>);
|
|
82
95
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TitleSubpage.cjs","sourceRoot":"","sources":["../../../src/components/TitleSubpage/TitleSubpage.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,
|
|
1
|
+
{"version":3,"file":"TitleSubpage.cjs","sourceRoot":"","sources":["../../../src/components/TitleSubpage/TitleSubpage.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,kFAMiD;AACjD,kDAA0B;AAE1B,yBAAyB;AACzB,0CAA6B;AAC7B,gFAAmE;AAInE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACI,MAAM,YAAY,GAAgC,CAAC,EACxD,MAAM,EACN,kBAAkB,EAClB,KAAK,EACL,WAAW,EACX,iBAAiB,EACjB,QAAQ,EACR,oBAAoB,EACpB,eAAe,EACf,WAAW,EACX,uBAAuB,EACvB,WAAW,EACX,UAAU,EACV,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,uBAAuB,EACvB,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,CAAC,SAAG,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAC/C;MAAA,CAAC,kBAAkB,CACnB;MAAA,CAAC,SAAG,CACF,aAAa,CAAC,CAAC,uCAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,oCAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,WAAW,CAAC,MAAM,CAClB,IAAI,gBAAgB,CAAC,CAErB;QAAA,CAAC,WAAW,CACZ;QAAA,CAAC,+BAA+B,CAChC;QAAA,CAAC,SAAG,CAAC,IAAI,gBAAgB,CAAC,CACxB;UAAA,CAAC,eAAe,CAChB;UAAA,CAAC,KAAK,IAAI,CACR,CAAC,SAAG,CACF,aAAa,CAAC,CAAC,uCAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,oCAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CAEP;cAAA,CAAC,+BAAc,CACb,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,kCAAW,CAAC,SAAS;gBAC9B,KAAK,EAAE,gCAAS,CAAC,WAAW;gBAC5B,GAAG,UAAU;aACd,CAAC,CAEF;gBAAA,CAAC,KAAK,CACR;cAAA,EAAE,+BAAc,CAChB;cAAA,CAAC,iBAAiB,CACpB;YAAA,EAAE,SAAG,CAAC,CACP,CACD;UAAA,CAAC,kBAAkB,CACnB;UAAA,CAAC,QAAQ,IAAI,CACX,CAAC,SAAG,CACF,aAAa,CAAC,CAAC,uCAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,oCAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CAEP;cAAA,CAAC,+BAAc,CACb,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,kCAAW,CAAC,MAAM;gBAC3B,UAAU,EAAE,iCAAU,CAAC,MAAM;gBAC7B,KAAK,EAAE,gCAAS,CAAC,eAAe;gBAChC,GAAG,aAAa;aACjB,CAAC,CAEF;gBAAA,CAAC,QAAQ,CACX;cAAA,EAAE,+BAAc,CAChB;cAAA,CAAC,oBAAoB,CACvB;YAAA,EAAE,SAAG,CAAC,CACP,CACH;QAAA,EAAE,SAAG,CACP;MAAA,EAAE,SAAG,CACL;MAAA,CAAC,gBAAgB,CACjB;MAAA,CAAC,MAAM,IAAI,CACT,CAAC,SAAG,CACF,aAAa,CAAC,CAAC,uCAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,oCAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CAEP;UAAA,CAAC,+BAAc,CACb,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,kCAAW,CAAC,SAAS;gBAC9B,GAAG,WAAW;aACf,CAAC,CAEF;YAAA,CAAC,MAAM,CACT;UAAA,EAAE,+BAAc,CAChB;UAAA,CAAC,kBAAkB,CACrB;QAAA,EAAE,SAAG,CAAC,CACP,CACD;MAAA,CAAC,sBAAsB,CACvB;MAAA,CAAC,WAAW,IAAI,CACd,CAAC,SAAG,CACF,aAAa,CAAC,CAAC,uCAAgB,CAAC,GAAG,CAAC,CACpC,UAAU,CAAC,CAAC,oCAAa,CAAC,MAAM,CAAC,CACjC,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,IAAI,uBAAuB,CAAC,CAE5B;UAAA,CAAC,+BAAc,CACb,SAAS,CAAC,CAAC;gBACT,OAAO,EAAE,kCAAW,CAAC,MAAM;gBAC3B,UAAU,EAAE,iCAAU,CAAC,MAAM;gBAC7B,KAAK,EAAE,gCAAS,CAAC,eAAe;gBAChC,GAAG,gBAAgB;aACpB,CAAC,CAEF;YAAA,CAAC,WAAW,CACd;UAAA,EAAE,+BAAc,CAChB;UAAA,CAAC,uBAAuB,CAC1B;QAAA,EAAE,SAAG,CAAC,CACP,CACD;MAAA,CAAC,CAAC,WAAW,IAAI,eAAe,CAClC;IAAA,EAAE,SAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AArHW,QAAA,YAAY,gBAqHvB;AAEF,oBAAY,CAAC,WAAW,GAAG,cAAc,CAAC","sourcesContent":["// Third party dependencies.\nimport {\n BoxAlignItems,\n BoxFlexDirection,\n FontWeight,\n TextColor,\n TextVariant,\n} from '@metamask-previews/design-system-shared';\nimport React from 'react';\n\n// Internal dependencies.\nimport { Box } from '../Box';\nimport { TextOrChildren } from '../temp-components/TextOrChildren';\n\nimport type { TitleSubpageProps } from './TitleSubpage.types';\n\n/**\n * Displays a required identity row (avatar + title stack) with optional subtitle, amount, inline accessories, and bottom rows in a left-aligned layout.\n * Remaining `View` props are forwarded to the root `Box`.\n *\n * @param props - Component props\n * @param props.title - Title row content (required)\n * @param props.titleAvatar - Leading visual for the identity row (required); rendered as the first child of the identity row so callers control layout and composition (for example badges that extend past the token)\n * @param props.identityRowProps - Optional props spread onto the identity row `Box` after defaults (`children` is reserved)\n * @param props.titleColumnProps - Optional props spread onto the title/subtitle column `Box` (`children` is reserved)\n * @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `Box` after defaults (`children` is reserved)\n * @param props.titleEndAccessory - Optional inline accessory to the right of `title`\n * @param props.subtitle - Optional subtitle row below the title and above the amount\n * @param props.subtitleEndAccessory - Optional inline accessory to the right of `subtitle`\n * @param props.amount - Optional primary amount below the title\n * @param props.amountEndAccessory - Optional inline accessory to the right of the amount\n * @param props.bottomAccessory - Optional custom bottom row when the bottom label row is not shown\n * @param props.bottomLabel - Optional secondary label below the amount row\n * @param props.bottomLabelEndAccessory - Optional inline accessory to the right of `bottomLabel`\n * @param props.titleProps - Optional props merged into title row `Text` when `title` is a string\n * @param props.subtitleProps - Optional props merged into subtitle row `Text` when `subtitle` is a string\n * @param props.amountProps - Optional props merged into amount `Text` when `amount` is a string\n * @param props.bottomLabelProps - Optional props merged into bottom label `Text` when `bottomLabel` is a string\n * @param props.twClassName - Optional Tailwind classes on the root container\n *\n * @returns The rendered TitleSubpage layout.\n */\nexport const TitleSubpage: React.FC<TitleSubpageProps> = ({\n amount,\n amountEndAccessory,\n title,\n titleAvatar,\n titleEndAccessory,\n subtitle,\n subtitleEndAccessory,\n bottomAccessory,\n bottomLabel,\n bottomLabelEndAccessory,\n amountProps,\n titleProps,\n subtitleProps,\n bottomLabelProps,\n identityRowProps,\n titleColumnProps,\n bottomLabelWrapperProps,\n twClassName = '',\n ...props\n}) => {\n return (\n <Box twClassName={twClassName} gap={1} {...props}>\n {/* Identity Row */}\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={4}\n twClassName=\"h-14\"\n {...identityRowProps}\n >\n {titleAvatar}\n {/* Title and Subtitle Column */}\n <Box {...titleColumnProps}>\n {/* Title Row */}\n {title && (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n >\n <TextOrChildren\n textProps={{\n variant: TextVariant.HeadingSm,\n color: TextColor.TextDefault,\n ...titleProps,\n }}\n >\n {title}\n </TextOrChildren>\n {titleEndAccessory}\n </Box>\n )}\n {/* Subtitle Row */}\n {subtitle && (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n >\n <TextOrChildren\n textProps={{\n variant: TextVariant.BodySm,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextAlternative,\n ...subtitleProps,\n }}\n >\n {subtitle}\n </TextOrChildren>\n {subtitleEndAccessory}\n </Box>\n )}\n </Box>\n </Box>\n {/* Amount Row */}\n {amount && (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n >\n <TextOrChildren\n textProps={{\n variant: TextVariant.DisplayLg,\n ...amountProps,\n }}\n >\n {amount}\n </TextOrChildren>\n {amountEndAccessory}\n </Box>\n )}\n {/* Bottom Label Row */}\n {bottomLabel && (\n <Box\n flexDirection={BoxFlexDirection.Row}\n alignItems={BoxAlignItems.Center}\n gap={1}\n {...bottomLabelWrapperProps}\n >\n <TextOrChildren\n textProps={{\n variant: TextVariant.BodySm,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextAlternative,\n ...bottomLabelProps,\n }}\n >\n {bottomLabel}\n </TextOrChildren>\n {bottomLabelEndAccessory}\n </Box>\n )}\n {!bottomLabel && bottomAccessory}\n </Box>\n );\n};\n\nTitleSubpage.displayName = 'TitleSubpage';\n"]}
|
|
@@ -6,10 +6,10 @@ import type { TitleSubpageProps } from "./TitleSubpage.types.cjs";
|
|
|
6
6
|
*
|
|
7
7
|
* @param props - Component props
|
|
8
8
|
* @param props.title - Title row content (required)
|
|
9
|
-
* @param props.titleAvatar - Leading visual for the identity row (required);
|
|
10
|
-
* @param props.identityRowProps - Optional props spread onto the identity `
|
|
9
|
+
* @param props.titleAvatar - Leading visual for the identity row (required); rendered as the first child of the identity row so callers control layout and composition (for example badges that extend past the token)
|
|
10
|
+
* @param props.identityRowProps - Optional props spread onto the identity row `Box` after defaults (`children` is reserved)
|
|
11
11
|
* @param props.titleColumnProps - Optional props spread onto the title/subtitle column `Box` (`children` is reserved)
|
|
12
|
-
* @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label `
|
|
12
|
+
* @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `Box` after defaults (`children` is reserved)
|
|
13
13
|
* @param props.titleEndAccessory - Optional inline accessory to the right of `title`
|
|
14
14
|
* @param props.subtitle - Optional subtitle row below the title and above the amount
|
|
15
15
|
* @param props.subtitleEndAccessory - Optional inline accessory to the right of `subtitle`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TitleSubpage.d.cts","sourceRoot":"","sources":["../../../src/components/TitleSubpage/TitleSubpage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TitleSubpage.d.cts","sourceRoot":"","sources":["../../../src/components/TitleSubpage/TitleSubpage.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,iCAA6B;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAqHpD,CAAC"}
|
|
@@ -6,10 +6,10 @@ import type { TitleSubpageProps } from "./TitleSubpage.types.mjs";
|
|
|
6
6
|
*
|
|
7
7
|
* @param props - Component props
|
|
8
8
|
* @param props.title - Title row content (required)
|
|
9
|
-
* @param props.titleAvatar - Leading visual for the identity row (required);
|
|
10
|
-
* @param props.identityRowProps - Optional props spread onto the identity `
|
|
9
|
+
* @param props.titleAvatar - Leading visual for the identity row (required); rendered as the first child of the identity row so callers control layout and composition (for example badges that extend past the token)
|
|
10
|
+
* @param props.identityRowProps - Optional props spread onto the identity row `Box` after defaults (`children` is reserved)
|
|
11
11
|
* @param props.titleColumnProps - Optional props spread onto the title/subtitle column `Box` (`children` is reserved)
|
|
12
|
-
* @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label `
|
|
12
|
+
* @param props.bottomLabelWrapperProps - Optional props spread onto the bottom label row `Box` after defaults (`children` is reserved)
|
|
13
13
|
* @param props.titleEndAccessory - Optional inline accessory to the right of `title`
|
|
14
14
|
* @param props.subtitle - Optional subtitle row below the title and above the amount
|
|
15
15
|
* @param props.subtitleEndAccessory - Optional inline accessory to the right of `subtitle`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TitleSubpage.d.mts","sourceRoot":"","sources":["../../../src/components/TitleSubpage/TitleSubpage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TitleSubpage.d.mts","sourceRoot":"","sources":["../../../src/components/TitleSubpage/TitleSubpage.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,iBAAiB,EAAE,iCAA6B;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAqHpD,CAAC"}
|