@metamask-previews/design-system-react-native 0.19.0-preview.1679aa9 → 0.22.0-preview.f515a62
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 +49 -3
- package/dist/components/AvatarIcon/AvatarIcon.cjs +2 -1
- package/dist/components/AvatarIcon/AvatarIcon.cjs.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.constants.cjs +16 -16
- package/dist/components/AvatarIcon/AvatarIcon.constants.cjs.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.constants.d.cts +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.constants.d.cts.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.constants.d.mts +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.constants.d.mts.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.constants.mjs +1 -1
- 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/AvatarIcon/AvatarIcon.mjs +2 -1
- package/dist/components/AvatarIcon/AvatarIcon.mjs.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.types.cjs.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.types.d.cts +3 -13
- package/dist/components/AvatarIcon/AvatarIcon.types.d.cts.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.types.d.mts +3 -13
- package/dist/components/AvatarIcon/AvatarIcon.types.d.mts.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.types.mjs.map +1 -1
- package/dist/components/AvatarIcon/index.cjs +4 -4
- package/dist/components/AvatarIcon/index.cjs.map +1 -1
- package/dist/components/AvatarIcon/index.d.cts +1 -1
- package/dist/components/AvatarIcon/index.d.cts.map +1 -1
- package/dist/components/AvatarIcon/index.d.mts +1 -1
- package/dist/components/AvatarIcon/index.d.mts.map +1 -1
- package/dist/components/AvatarIcon/index.mjs +1 -1
- package/dist/components/AvatarIcon/index.mjs.map +1 -1
- package/dist/components/BadgeIcon/BadgeIcon.cjs +2 -1
- package/dist/components/BadgeIcon/BadgeIcon.cjs.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/BadgeIcon/BadgeIcon.mjs +2 -1
- package/dist/components/BadgeIcon/BadgeIcon.mjs.map +1 -1
- package/dist/components/BadgeIcon/BadgeIcon.types.cjs.map +1 -1
- package/dist/components/BadgeIcon/BadgeIcon.types.d.cts +5 -7
- package/dist/components/BadgeIcon/BadgeIcon.types.d.cts.map +1 -1
- package/dist/components/BadgeIcon/BadgeIcon.types.d.mts +5 -7
- package/dist/components/BadgeIcon/BadgeIcon.types.d.mts.map +1 -1
- package/dist/components/BadgeIcon/BadgeIcon.types.mjs.map +1 -1
- package/dist/components/BannerAlert/BannerAlert.constants.cjs +8 -8
- package/dist/components/BannerAlert/BannerAlert.constants.cjs.map +1 -1
- package/dist/components/BannerAlert/BannerAlert.constants.d.cts +2 -2
- package/dist/components/BannerAlert/BannerAlert.constants.d.cts.map +1 -1
- package/dist/components/BannerAlert/BannerAlert.constants.d.mts +2 -2
- package/dist/components/BannerAlert/BannerAlert.constants.d.mts.map +1 -1
- package/dist/components/BannerAlert/BannerAlert.constants.mjs +2 -2
- package/dist/components/BannerAlert/BannerAlert.constants.mjs.map +1 -1
- package/dist/components/BannerBase/BannerBase.cjs +3 -4
- package/dist/components/BannerBase/BannerBase.cjs.map +1 -1
- package/dist/components/BannerBase/BannerBase.d.cts.map +1 -1
- package/dist/components/BannerBase/BannerBase.d.mts.map +1 -1
- package/dist/components/BannerBase/BannerBase.mjs +1 -2
- package/dist/components/BannerBase/BannerBase.mjs.map +1 -1
- package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs +1 -1
- package/dist/components/BottomSheetDialog/BottomSheetDialog.cjs.map +1 -1
- package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs +1 -1
- package/dist/components/BottomSheetDialog/BottomSheetDialog.mjs.map +1 -1
- package/dist/components/Box/Box.cjs +35 -12
- package/dist/components/Box/Box.cjs.map +1 -1
- package/dist/components/Box/Box.constants.cjs.map +1 -1
- package/dist/components/Box/Box.constants.d.cts +1 -1
- package/dist/components/Box/Box.constants.d.cts.map +1 -1
- package/dist/components/Box/Box.constants.d.mts +1 -1
- package/dist/components/Box/Box.constants.d.mts.map +1 -1
- package/dist/components/Box/Box.constants.mjs.map +1 -1
- package/dist/components/Box/Box.d.cts +4 -2
- package/dist/components/Box/Box.d.cts.map +1 -1
- package/dist/components/Box/Box.d.mts +4 -2
- package/dist/components/Box/Box.d.mts.map +1 -1
- package/dist/components/Box/Box.mjs +13 -9
- package/dist/components/Box/Box.mjs.map +1 -1
- package/dist/components/Box/Box.types.cjs.map +1 -1
- package/dist/components/Box/Box.types.d.cts +3 -107
- package/dist/components/Box/Box.types.d.cts.map +1 -1
- package/dist/components/Box/Box.types.d.mts +3 -107
- package/dist/components/Box/Box.types.d.mts.map +1 -1
- package/dist/components/Box/Box.types.mjs.map +1 -1
- package/dist/components/Box/index.cjs +7 -7
- package/dist/components/Box/index.cjs.map +1 -1
- package/dist/components/Box/index.d.cts +1 -2
- package/dist/components/Box/index.d.cts.map +1 -1
- package/dist/components/Box/index.d.mts +1 -2
- package/dist/components/Box/index.d.mts.map +1 -1
- package/dist/components/Box/index.mjs +1 -1
- package/dist/components/Box/index.mjs.map +1 -1
- package/dist/components/BoxColumn/BoxColumn.cjs +2 -2
- package/dist/components/BoxColumn/BoxColumn.cjs.map +1 -1
- package/dist/components/BoxColumn/BoxColumn.d.cts.map +1 -1
- package/dist/components/BoxColumn/BoxColumn.d.mts.map +1 -1
- package/dist/components/BoxColumn/BoxColumn.mjs +1 -1
- package/dist/components/BoxColumn/BoxColumn.mjs.map +1 -1
- package/dist/components/BoxRow/BoxRow.cjs +2 -2
- package/dist/components/BoxRow/BoxRow.cjs.map +1 -1
- package/dist/components/BoxRow/BoxRow.d.cts.map +1 -1
- package/dist/components/BoxRow/BoxRow.d.mts.map +1 -1
- package/dist/components/BoxRow/BoxRow.mjs +1 -1
- package/dist/components/BoxRow/BoxRow.mjs.map +1 -1
- package/dist/components/Button/Button.cjs +6 -6
- 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 +1 -1
- package/dist/components/Button/Button.mjs.map +1 -1
- package/dist/components/Button/Button.types.cjs.map +1 -1
- package/dist/components/Button/Button.types.d.cts +2 -7
- package/dist/components/Button/Button.types.d.cts.map +1 -1
- package/dist/components/Button/Button.types.d.mts +2 -7
- package/dist/components/Button/Button.types.d.mts.map +1 -1
- package/dist/components/Button/Button.types.mjs.map +1 -1
- package/dist/components/Button/index.cjs +3 -3
- package/dist/components/Button/index.cjs.map +1 -1
- package/dist/components/Button/index.d.cts +1 -1
- package/dist/components/Button/index.d.cts.map +1 -1
- package/dist/components/Button/index.d.mts +1 -1
- package/dist/components/Button/index.d.mts.map +1 -1
- package/dist/components/Button/index.mjs +1 -1
- package/dist/components/Button/index.mjs.map +1 -1
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.cjs +2 -0
- 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 +2 -0
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.mjs.map +1 -1
- package/dist/components/Button/variants/ButtonPrimary/index.cjs +1 -3
- package/dist/components/Button/variants/ButtonPrimary/index.cjs.map +1 -1
- package/dist/components/Button/variants/ButtonPrimary/index.d.cts +0 -1
- package/dist/components/Button/variants/ButtonPrimary/index.d.cts.map +1 -1
- package/dist/components/Button/variants/ButtonPrimary/index.d.mts +0 -1
- package/dist/components/Button/variants/ButtonPrimary/index.d.mts.map +1 -1
- package/dist/components/Button/variants/ButtonPrimary/index.mjs +0 -1
- package/dist/components/Button/variants/ButtonPrimary/index.mjs.map +1 -1
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.cjs +2 -0
- 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 +2 -0
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.mjs.map +1 -1
- package/dist/components/Button/variants/ButtonSecondary/index.cjs +1 -3
- package/dist/components/Button/variants/ButtonSecondary/index.cjs.map +1 -1
- package/dist/components/Button/variants/ButtonSecondary/index.d.cts +0 -1
- package/dist/components/Button/variants/ButtonSecondary/index.d.cts.map +1 -1
- package/dist/components/Button/variants/ButtonSecondary/index.d.mts +0 -1
- package/dist/components/Button/variants/ButtonSecondary/index.d.mts.map +1 -1
- package/dist/components/Button/variants/ButtonSecondary/index.mjs +0 -1
- package/dist/components/Button/variants/ButtonSecondary/index.mjs.map +1 -1
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.cjs +4 -3
- 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 +4 -3
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.mjs.map +1 -1
- package/dist/components/Button/variants/ButtonTertiary/index.cjs +1 -3
- package/dist/components/Button/variants/ButtonTertiary/index.cjs.map +1 -1
- package/dist/components/Button/variants/ButtonTertiary/index.d.cts +0 -1
- package/dist/components/Button/variants/ButtonTertiary/index.d.cts.map +1 -1
- package/dist/components/Button/variants/ButtonTertiary/index.d.mts +0 -1
- package/dist/components/Button/variants/ButtonTertiary/index.d.mts.map +1 -1
- package/dist/components/Button/variants/ButtonTertiary/index.mjs +0 -1
- package/dist/components/Button/variants/ButtonTertiary/index.mjs.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.cjs +2 -2
- package/dist/components/ButtonBase/ButtonBase.cjs.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.constants.cjs +4 -4
- package/dist/components/ButtonBase/ButtonBase.constants.cjs.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.constants.d.cts +1 -1
- package/dist/components/ButtonBase/ButtonBase.constants.d.cts.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.constants.d.mts +1 -1
- package/dist/components/ButtonBase/ButtonBase.constants.d.mts.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.constants.mjs +1 -1
- 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 +1 -1
- 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 -32
- package/dist/components/ButtonBase/ButtonBase.types.d.cts.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.types.d.mts +3 -32
- package/dist/components/ButtonBase/ButtonBase.types.d.mts.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.types.mjs.map +1 -1
- package/dist/components/ButtonBase/index.cjs +2 -2
- package/dist/components/ButtonBase/index.cjs.map +1 -1
- package/dist/components/ButtonBase/index.d.cts +1 -1
- package/dist/components/ButtonBase/index.d.cts.map +1 -1
- package/dist/components/ButtonBase/index.d.mts +1 -1
- package/dist/components/ButtonBase/index.d.mts.map +1 -1
- package/dist/components/ButtonBase/index.mjs +1 -1
- package/dist/components/ButtonBase/index.mjs.map +1 -1
- package/dist/components/ButtonHero/index.cjs +2 -2
- package/dist/components/ButtonHero/index.cjs.map +1 -1
- package/dist/components/ButtonHero/index.d.cts +1 -1
- package/dist/components/ButtonHero/index.d.cts.map +1 -1
- package/dist/components/ButtonHero/index.d.mts +1 -1
- package/dist/components/ButtonHero/index.d.mts.map +1 -1
- package/dist/components/ButtonHero/index.mjs +1 -1
- package/dist/components/ButtonHero/index.mjs.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.cjs +6 -6
- package/dist/components/ButtonIcon/ButtonIcon.cjs.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.constants.cjs +7 -8
- package/dist/components/ButtonIcon/ButtonIcon.constants.cjs.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.constants.d.cts +1 -2
- package/dist/components/ButtonIcon/ButtonIcon.constants.d.cts.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.constants.d.mts +1 -2
- package/dist/components/ButtonIcon/ButtonIcon.constants.d.mts.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.constants.mjs +1 -2
- package/dist/components/ButtonIcon/ButtonIcon.constants.mjs.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 +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.mjs.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.types.cjs.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.types.d.cts +3 -26
- package/dist/components/ButtonIcon/ButtonIcon.types.d.cts.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.types.d.mts +3 -26
- package/dist/components/ButtonIcon/ButtonIcon.types.d.mts.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.types.mjs.map +1 -1
- package/dist/components/ButtonIcon/index.cjs +3 -3
- package/dist/components/ButtonIcon/index.cjs.map +1 -1
- package/dist/components/ButtonIcon/index.d.cts +1 -1
- package/dist/components/ButtonIcon/index.d.cts.map +1 -1
- package/dist/components/ButtonIcon/index.d.mts +1 -1
- package/dist/components/ButtonIcon/index.d.mts.map +1 -1
- package/dist/components/ButtonIcon/index.mjs +1 -1
- package/dist/components/ButtonIcon/index.mjs.map +1 -1
- package/dist/components/Icon/Icon.assets.cjs +284 -283
- 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 +284 -283
- package/dist/components/Icon/Icon.assets.mjs.map +1 -1
- package/dist/components/Icon/Icon.types.cjs.map +1 -1
- package/dist/components/Icon/Icon.types.d.cts +2 -19
- package/dist/components/Icon/Icon.types.d.cts.map +1 -1
- package/dist/components/Icon/Icon.types.d.mts +2 -19
- package/dist/components/Icon/Icon.types.d.mts.map +1 -1
- package/dist/components/Icon/Icon.types.mjs.map +1 -1
- package/dist/components/Icon/assets/after-hours.svg +1 -1
- package/dist/components/Icon/assets/telegram.svg +3 -0
- package/dist/components/Input/Input.cjs +2 -2
- 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 +2 -2
- package/dist/components/Input/Input.mjs.map +1 -1
- package/dist/components/Input/Input.types.cjs.map +1 -1
- package/dist/components/Input/Input.types.d.cts +1 -1
- package/dist/components/Input/Input.types.d.mts +1 -1
- package/dist/components/Input/Input.types.mjs.map +1 -1
- package/dist/components/KeyValueColumn/KeyValueColumn.cjs +2 -2
- 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 +2 -2
- package/dist/components/KeyValueColumn/KeyValueColumn.mjs.map +1 -1
- package/dist/components/KeyValueRow/KeyValueRow.cjs +2 -2
- 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 +2 -2
- package/dist/components/KeyValueRow/KeyValueRow.mjs.map +1 -1
- package/dist/components/TabEmptyState/TabEmptyState.cjs +1 -1
- package/dist/components/TabEmptyState/TabEmptyState.cjs.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/TabEmptyState/TabEmptyState.mjs +1 -1
- package/dist/components/TabEmptyState/TabEmptyState.mjs.map +1 -1
- package/dist/components/Tag/Tag.constants.cjs +5 -5
- package/dist/components/Tag/Tag.constants.cjs.map +1 -1
- package/dist/components/Tag/Tag.constants.d.cts +2 -2
- package/dist/components/Tag/Tag.constants.d.cts.map +1 -1
- package/dist/components/Tag/Tag.constants.d.mts +2 -2
- package/dist/components/Tag/Tag.constants.d.mts.map +1 -1
- package/dist/components/Tag/Tag.constants.mjs +2 -2
- package/dist/components/Tag/Tag.constants.mjs.map +1 -1
- package/dist/components/TextField/TextField.cjs +10 -30
- package/dist/components/TextField/TextField.cjs.map +1 -1
- package/dist/components/TextField/TextField.d.cts +159 -7
- package/dist/components/TextField/TextField.d.cts.map +1 -1
- package/dist/components/TextField/TextField.d.mts +159 -7
- package/dist/components/TextField/TextField.d.mts.map +1 -1
- package/dist/components/TextField/TextField.mjs +12 -32
- package/dist/components/TextField/TextField.mjs.map +1 -1
- package/dist/components/TextField/TextField.types.cjs.map +1 -1
- package/dist/components/TextField/TextField.types.d.cts +41 -16
- package/dist/components/TextField/TextField.types.d.cts.map +1 -1
- package/dist/components/TextField/TextField.types.d.mts +41 -16
- package/dist/components/TextField/TextField.types.d.mts.map +1 -1
- package/dist/components/TextField/TextField.types.mjs.map +1 -1
- package/dist/components/TextFieldSearch/TextFieldSearch.cjs.map +1 -1
- package/dist/components/TextFieldSearch/TextFieldSearch.d.cts +160 -8
- package/dist/components/TextFieldSearch/TextFieldSearch.d.cts.map +1 -1
- package/dist/components/TextFieldSearch/TextFieldSearch.d.mts +160 -8
- package/dist/components/TextFieldSearch/TextFieldSearch.d.mts.map +1 -1
- package/dist/components/TextFieldSearch/TextFieldSearch.mjs.map +1 -1
- package/dist/components/TitleStandard/TitleStandard.cjs +58 -0
- package/dist/components/TitleStandard/TitleStandard.cjs.map +1 -0
- package/dist/components/TitleStandard/TitleStandard.d.cts +23 -0
- package/dist/components/TitleStandard/TitleStandard.d.cts.map +1 -0
- package/dist/components/TitleStandard/TitleStandard.d.mts +23 -0
- package/dist/components/TitleStandard/TitleStandard.d.mts.map +1 -0
- package/dist/components/TitleStandard/TitleStandard.mjs +58 -0
- package/dist/components/TitleStandard/TitleStandard.mjs.map +1 -0
- package/dist/components/TitleStandard/TitleStandard.types.cjs +3 -0
- package/dist/components/TitleStandard/TitleStandard.types.cjs.map +1 -0
- package/dist/components/TitleStandard/TitleStandard.types.d.cts +31 -0
- package/dist/components/TitleStandard/TitleStandard.types.d.cts.map +1 -0
- package/dist/components/TitleStandard/TitleStandard.types.d.mts +31 -0
- package/dist/components/TitleStandard/TitleStandard.types.d.mts.map +1 -0
- package/dist/components/TitleStandard/TitleStandard.types.mjs +2 -0
- package/dist/components/TitleStandard/TitleStandard.types.mjs.map +1 -0
- package/dist/components/TitleStandard/index.cjs +6 -0
- package/dist/components/TitleStandard/index.cjs.map +1 -0
- package/dist/components/TitleStandard/index.d.cts +3 -0
- package/dist/components/TitleStandard/index.d.cts.map +1 -0
- package/dist/components/TitleStandard/index.d.mts +3 -0
- package/dist/components/TitleStandard/index.d.mts.map +1 -0
- package/dist/components/TitleStandard/index.mjs +2 -0
- package/dist/components/TitleStandard/index.mjs.map +1 -0
- package/dist/components/TitleSubpage/TitleSubpage.cjs +85 -0
- package/dist/components/TitleSubpage/TitleSubpage.cjs.map +1 -0
- package/dist/components/TitleSubpage/TitleSubpage.d.cts +30 -0
- package/dist/components/TitleSubpage/TitleSubpage.d.cts.map +1 -0
- package/dist/components/TitleSubpage/TitleSubpage.d.mts +30 -0
- package/dist/components/TitleSubpage/TitleSubpage.d.mts.map +1 -0
- package/dist/components/TitleSubpage/TitleSubpage.mjs +85 -0
- package/dist/components/TitleSubpage/TitleSubpage.mjs.map +1 -0
- package/dist/components/TitleSubpage/TitleSubpage.types.cjs +3 -0
- package/dist/components/TitleSubpage/TitleSubpage.types.cjs.map +1 -0
- package/dist/components/TitleSubpage/TitleSubpage.types.d.cts +44 -0
- package/dist/components/TitleSubpage/TitleSubpage.types.d.cts.map +1 -0
- package/dist/components/TitleSubpage/TitleSubpage.types.d.mts +44 -0
- package/dist/components/TitleSubpage/TitleSubpage.types.d.mts.map +1 -0
- package/dist/components/TitleSubpage/TitleSubpage.types.mjs +2 -0
- package/dist/components/TitleSubpage/TitleSubpage.types.mjs.map +1 -0
- package/dist/components/TitleSubpage/index.cjs +6 -0
- package/dist/components/TitleSubpage/index.cjs.map +1 -0
- package/dist/components/TitleSubpage/index.d.cts +3 -0
- package/dist/components/TitleSubpage/index.d.cts.map +1 -0
- package/dist/components/TitleSubpage/index.d.mts +3 -0
- package/dist/components/TitleSubpage/index.d.mts.map +1 -0
- package/dist/components/TitleSubpage/index.mjs +2 -0
- package/dist/components/TitleSubpage/index.mjs.map +1 -0
- package/dist/components/Toast/Toast.cjs +29 -142
- package/dist/components/Toast/Toast.cjs.map +1 -1
- package/dist/components/Toast/Toast.d.cts +15 -3
- package/dist/components/Toast/Toast.d.cts.map +1 -1
- package/dist/components/Toast/Toast.d.mts +15 -3
- package/dist/components/Toast/Toast.d.mts.map +1 -1
- package/dist/components/Toast/Toast.mjs +30 -143
- package/dist/components/Toast/Toast.mjs.map +1 -1
- package/dist/components/Toast/Toast.types.cjs.map +1 -1
- package/dist/components/Toast/Toast.types.d.cts +1 -8
- package/dist/components/Toast/Toast.types.d.cts.map +1 -1
- package/dist/components/Toast/Toast.types.d.mts +1 -8
- package/dist/components/Toast/Toast.types.d.mts.map +1 -1
- package/dist/components/Toast/Toast.types.mjs.map +1 -1
- package/dist/components/Toast/ToastView.cjs +174 -0
- package/dist/components/Toast/ToastView.cjs.map +1 -0
- package/dist/components/Toast/ToastView.d.cts +7 -0
- package/dist/components/Toast/ToastView.d.cts.map +1 -0
- package/dist/components/Toast/ToastView.d.mts +7 -0
- package/dist/components/Toast/ToastView.d.mts.map +1 -0
- package/dist/components/Toast/ToastView.mjs +155 -0
- package/dist/components/Toast/ToastView.mjs.map +1 -0
- package/dist/components/Toast/index.cjs +1 -4
- package/dist/components/Toast/index.cjs.map +1 -1
- package/dist/components/Toast/index.d.cts +1 -2
- package/dist/components/Toast/index.d.cts.map +1 -1
- package/dist/components/Toast/index.d.mts +1 -2
- package/dist/components/Toast/index.d.mts.map +1 -1
- package/dist/components/Toast/index.mjs +0 -1
- package/dist/components/Toast/index.mjs.map +1 -1
- package/dist/components/index.cjs +6 -4
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +6 -2
- package/dist/components/index.d.cts.map +1 -1
- package/dist/components/index.d.mts +6 -2
- package/dist/components/index.d.mts.map +1 -1
- package/dist/components/index.mjs +3 -1
- package/dist/components/index.mjs.map +1 -1
- package/dist/types/index.cjs +8 -596
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.cts +4 -586
- package/dist/types/index.d.cts.map +1 -1
- package/dist/types/index.d.mts +4 -586
- package/dist/types/index.d.mts.map +1 -1
- package/dist/types/index.mjs +4 -599
- package/dist/types/index.mjs.map +1 -1
- package/package.json +5 -6
- package/dist/components/Toast/Toast.context.cjs +0 -40
- package/dist/components/Toast/Toast.context.cjs.map +0 -1
- package/dist/components/Toast/Toast.context.d.cts +0 -7
- package/dist/components/Toast/Toast.context.d.cts.map +0 -1
- package/dist/components/Toast/Toast.context.d.mts +0 -7
- package/dist/components/Toast/Toast.context.d.mts.map +0 -1
- package/dist/components/Toast/Toast.context.mjs +0 -20
- package/dist/components/Toast/Toast.context.mjs.map +0 -1
|
@@ -1,14 +1,166 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type {
|
|
3
|
-
export declare const TextFieldSearch: React.ForwardRefExoticComponent<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import type { View } from "react-native/index.js";
|
|
3
|
+
export declare const TextFieldSearch: React.ForwardRefExoticComponent<import("@metamask-previews/design-system-shared").TextFieldPropsShared & {
|
|
4
|
+
onFocus?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputFocusEventData>) => void) | undefined;
|
|
5
|
+
onBlur?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputFocusEventData>) => void) | undefined;
|
|
6
|
+
inputProps?: {
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
hitSlop?: number | import("react-native").Insets | null | undefined;
|
|
9
|
+
id?: string | undefined;
|
|
10
|
+
needsOffscreenAlphaCompositing?: boolean | undefined;
|
|
11
|
+
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | undefined;
|
|
12
|
+
pointerEvents?: "box-none" | "none" | "box-only" | "auto" | undefined;
|
|
13
|
+
removeClippedSubviews?: boolean | undefined;
|
|
14
|
+
testID?: string | undefined;
|
|
15
|
+
nativeID?: string | undefined;
|
|
16
|
+
collapsable?: boolean | undefined;
|
|
17
|
+
collapsableChildren?: boolean | undefined;
|
|
18
|
+
renderToHardwareTextureAndroid?: boolean | undefined;
|
|
19
|
+
focusable?: boolean | undefined;
|
|
20
|
+
tabIndex?: 0 | -1 | undefined;
|
|
21
|
+
shouldRasterizeIOS?: boolean | undefined;
|
|
22
|
+
isTVSelectable?: boolean | undefined;
|
|
23
|
+
hasTVPreferredFocus?: boolean | undefined;
|
|
24
|
+
tvParallaxShiftDistanceX?: number | undefined;
|
|
25
|
+
tvParallaxShiftDistanceY?: number | undefined;
|
|
26
|
+
tvParallaxTiltAngle?: number | undefined;
|
|
27
|
+
tvParallaxMagnification?: number | undefined;
|
|
28
|
+
onStartShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
29
|
+
onMoveShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
30
|
+
onResponderEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
31
|
+
onResponderGrant?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
32
|
+
onResponderReject?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
33
|
+
onResponderMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
34
|
+
onResponderRelease?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
35
|
+
onResponderStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
36
|
+
onResponderTerminationRequest?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
37
|
+
onResponderTerminate?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
38
|
+
onStartShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
39
|
+
onMoveShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
40
|
+
onTouchStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
41
|
+
onTouchMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
42
|
+
onTouchEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
43
|
+
onTouchCancel?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
44
|
+
onTouchEndCapture?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
45
|
+
onPointerEnter?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
46
|
+
onPointerEnterCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
47
|
+
onPointerLeave?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
48
|
+
onPointerLeaveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
49
|
+
onPointerMove?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
50
|
+
onPointerMoveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
51
|
+
onPointerCancel?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
52
|
+
onPointerCancelCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
53
|
+
onPointerDown?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
54
|
+
onPointerDownCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
55
|
+
onPointerUp?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
56
|
+
onPointerUpCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
57
|
+
accessible?: boolean | undefined;
|
|
58
|
+
accessibilityActions?: readonly Readonly<{
|
|
59
|
+
name: string;
|
|
60
|
+
label?: string | undefined;
|
|
61
|
+
}>[] | undefined;
|
|
62
|
+
accessibilityLabel?: string | undefined;
|
|
63
|
+
'aria-label'?: string | undefined;
|
|
64
|
+
accessibilityRole?: import("react-native").AccessibilityRole | undefined;
|
|
65
|
+
accessibilityState?: import("react-native").AccessibilityState | undefined;
|
|
66
|
+
'aria-busy'?: boolean | undefined;
|
|
67
|
+
'aria-checked'?: boolean | "mixed" | undefined;
|
|
68
|
+
'aria-disabled'?: boolean | undefined;
|
|
69
|
+
'aria-expanded'?: boolean | undefined;
|
|
70
|
+
'aria-selected'?: boolean | undefined;
|
|
71
|
+
accessibilityHint?: string | undefined;
|
|
72
|
+
accessibilityValue?: import("react-native").AccessibilityValue | undefined;
|
|
73
|
+
'aria-valuemax'?: number | undefined;
|
|
74
|
+
'aria-valuemin'?: number | undefined;
|
|
75
|
+
'aria-valuenow'?: number | undefined;
|
|
76
|
+
'aria-valuetext'?: string | undefined;
|
|
77
|
+
onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => void) | undefined;
|
|
78
|
+
importantForAccessibility?: "auto" | "yes" | "no" | "no-hide-descendants" | undefined;
|
|
79
|
+
'aria-hidden'?: boolean | undefined;
|
|
80
|
+
'aria-modal'?: boolean | undefined;
|
|
81
|
+
role?: import("react-native").Role | undefined;
|
|
82
|
+
accessibilityLabelledBy?: string | string[] | undefined;
|
|
83
|
+
'aria-labelledby'?: string | undefined;
|
|
84
|
+
accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
|
|
85
|
+
'aria-live'?: "polite" | "assertive" | "off" | undefined;
|
|
86
|
+
accessibilityElementsHidden?: boolean | undefined;
|
|
87
|
+
accessibilityViewIsModal?: boolean | undefined;
|
|
88
|
+
onAccessibilityEscape?: (() => void) | undefined;
|
|
89
|
+
onAccessibilityTap?: (() => void) | undefined;
|
|
90
|
+
onMagicTap?: (() => void) | undefined;
|
|
91
|
+
accessibilityIgnoresInvertColors?: boolean | undefined;
|
|
92
|
+
accessibilityLanguage?: string | undefined;
|
|
93
|
+
accessibilityShowsLargeContentViewer?: boolean | undefined;
|
|
94
|
+
accessibilityLargeContentTitle?: string | undefined;
|
|
95
|
+
twClassName?: string | undefined;
|
|
96
|
+
onPress?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
|
|
97
|
+
onPressIn?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
|
|
98
|
+
onPressOut?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
|
|
99
|
+
allowFontScaling?: boolean | undefined;
|
|
100
|
+
numberOfLines?: number | undefined;
|
|
101
|
+
maxFontSizeMultiplier?: number | null | undefined;
|
|
102
|
+
lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
|
|
103
|
+
selectionColor?: import("react-native").ColorValue | undefined;
|
|
104
|
+
textBreakStrategy?: "simple" | "highQuality" | "balanced" | undefined;
|
|
105
|
+
rejectResponderTermination?: boolean | null | undefined;
|
|
106
|
+
onChange?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputChangeEventData>) => void) | undefined;
|
|
107
|
+
autoCapitalize?: "none" | "sentences" | "words" | "characters" | undefined;
|
|
108
|
+
autoComplete?: "off" | "name" | "email" | "additional-name" | "address-line1" | "address-line2" | "birthdate-day" | "birthdate-full" | "birthdate-month" | "birthdate-year" | "cc-csc" | "cc-exp" | "cc-exp-day" | "cc-exp-month" | "cc-exp-year" | "cc-number" | "cc-name" | "cc-given-name" | "cc-middle-name" | "cc-family-name" | "cc-type" | "country" | "current-password" | "family-name" | "gender" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name-family" | "name-given" | "name-middle" | "name-middle-initial" | "name-prefix" | "name-suffix" | "new-password" | "nickname" | "one-time-code" | "organization" | "organization-title" | "password" | "password-new" | "postal-address" | "postal-address-country" | "postal-address-extended" | "postal-address-extended-postal-code" | "postal-address-locality" | "postal-address-region" | "postal-code" | "street-address" | "sms-otp" | "tel" | "tel-country-code" | "tel-national" | "tel-device" | "url" | "username" | "username-new" | undefined;
|
|
109
|
+
autoCorrect?: boolean | undefined;
|
|
110
|
+
blurOnSubmit?: boolean | undefined;
|
|
111
|
+
submitBehavior?: import("react-native").SubmitBehavior | undefined;
|
|
112
|
+
caretHidden?: boolean | undefined;
|
|
113
|
+
contextMenuHidden?: boolean | undefined;
|
|
114
|
+
keyboardType?: import("react-native").KeyboardTypeOptions | undefined;
|
|
115
|
+
inputMode?: import("react-native").InputModeOptions | undefined;
|
|
116
|
+
maxLength?: number | undefined;
|
|
117
|
+
multiline?: boolean | undefined;
|
|
118
|
+
onContentSizeChange?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputContentSizeChangeEventData>) => void) | undefined;
|
|
119
|
+
onEndEditing?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputEndEditingEventData>) => void) | undefined;
|
|
120
|
+
onSelectionChange?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputSelectionChangeEventData>) => void) | undefined;
|
|
121
|
+
onSubmitEditing?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputSubmitEditingEventData>) => void) | undefined;
|
|
122
|
+
onScroll?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputScrollEventData>) => void) | undefined;
|
|
123
|
+
onKeyPress?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputKeyPressEventData>) => void) | undefined;
|
|
124
|
+
readOnly?: boolean | undefined;
|
|
125
|
+
returnKeyType?: import("react-native").ReturnKeyTypeOptions | undefined;
|
|
126
|
+
enterKeyHint?: import("react-native").EnterKeyHintTypeOptions | undefined;
|
|
127
|
+
secureTextEntry?: boolean | undefined;
|
|
128
|
+
selectTextOnFocus?: boolean | undefined;
|
|
129
|
+
selection?: {
|
|
130
|
+
start: number;
|
|
131
|
+
end?: number | undefined;
|
|
132
|
+
} | undefined;
|
|
133
|
+
textAlign?: "center" | "left" | "right" | undefined;
|
|
134
|
+
inputAccessoryViewID?: string | undefined;
|
|
135
|
+
clearButtonMode?: "never" | "while-editing" | "unless-editing" | "always" | undefined;
|
|
136
|
+
clearTextOnFocus?: boolean | undefined;
|
|
137
|
+
dataDetectorTypes?: import("react-native").DataDetectorTypes | import("react-native").DataDetectorTypes[] | undefined;
|
|
138
|
+
enablesReturnKeyAutomatically?: boolean | undefined;
|
|
139
|
+
keyboardAppearance?: "default" | "light" | "dark" | undefined;
|
|
140
|
+
passwordRules?: string | null | undefined;
|
|
141
|
+
selectionState?: import("react-native").DocumentSelectionState | undefined;
|
|
142
|
+
spellCheck?: boolean | undefined;
|
|
143
|
+
textContentType?: "none" | "name" | "nickname" | "password" | "username" | "URL" | "addressCity" | "addressCityAndState" | "addressState" | "countryName" | "creditCardNumber" | "creditCardExpiration" | "creditCardExpirationMonth" | "creditCardExpirationYear" | "creditCardSecurityCode" | "creditCardType" | "creditCardName" | "creditCardGivenName" | "creditCardMiddleName" | "creditCardFamilyName" | "emailAddress" | "familyName" | "fullStreetAddress" | "givenName" | "jobTitle" | "location" | "middleName" | "namePrefix" | "nameSuffix" | "organizationName" | "postalCode" | "streetAddressLine1" | "streetAddressLine2" | "sublocality" | "telephoneNumber" | "newPassword" | "oneTimeCode" | "birthdate" | "birthdateDay" | "birthdateMonth" | "birthdateYear" | undefined;
|
|
144
|
+
scrollEnabled?: boolean | undefined;
|
|
145
|
+
smartInsertDelete?: boolean | undefined;
|
|
146
|
+
cursorColor?: import("react-native").ColorValue | null | undefined;
|
|
147
|
+
selectionHandleColor?: import("react-native").ColorValue | null | undefined;
|
|
148
|
+
importantForAutofill?: "auto" | "yes" | "no" | "noExcludeDescendants" | "yesExcludeDescendants" | undefined;
|
|
149
|
+
disableFullscreenUI?: boolean | undefined;
|
|
150
|
+
inlineImageLeft?: string | undefined;
|
|
151
|
+
inlineImagePadding?: number | undefined;
|
|
152
|
+
returnKeyLabel?: string | undefined;
|
|
153
|
+
underlineColorAndroid?: import("react-native").ColorValue | undefined;
|
|
154
|
+
textAlignVertical?: "auto" | "center" | "top" | "bottom" | undefined;
|
|
155
|
+
showSoftInputOnFocus?: boolean | undefined;
|
|
156
|
+
verticalAlign?: "auto" | "middle" | "top" | "bottom" | undefined;
|
|
157
|
+
} | undefined;
|
|
158
|
+
inputRef?: React.Ref<import("react-native").TextInput> | undefined;
|
|
8
159
|
twClassName?: string | undefined;
|
|
9
160
|
style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
|
10
|
-
|
|
161
|
+
testID?: string | undefined;
|
|
162
|
+
} & Omit<import("../index.cjs").BoxProps, "children" | "style" | "testID" | "accessible" | "twClassName" | "onBlur" | "onFocus" | keyof import("@metamask-previews/design-system-shared").TextFieldPropsShared | "inputProps" | "inputRef"> & {
|
|
11
163
|
clearButtonProps?: Partial<import("../ButtonIcon/index.cjs").ButtonIconProps> | undefined;
|
|
12
164
|
onPressClearButton: () => void;
|
|
13
|
-
} & React.RefAttributes<
|
|
165
|
+
} & React.RefAttributes<View>>;
|
|
14
166
|
//# sourceMappingURL=TextFieldSearch.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextFieldSearch.d.cts","sourceRoot":"","sources":["../../../src/components/TextFieldSearch/TextFieldSearch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkC,cAAc;AACvD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"TextFieldSearch.d.cts","sourceRoot":"","sources":["../../../src/components/TextFieldSearch/TextFieldSearch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkC,cAAc;AACvD,OAAO,KAAK,EAAE,IAAI,EAAE,8BAAqB;AAQzC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAwD3B,CAAC"}
|
|
@@ -1,14 +1,166 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type {
|
|
3
|
-
export declare const TextFieldSearch: React.ForwardRefExoticComponent<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import type { View } from "react-native/index.js";
|
|
3
|
+
export declare const TextFieldSearch: React.ForwardRefExoticComponent<import("@metamask-previews/design-system-shared").TextFieldPropsShared & {
|
|
4
|
+
onFocus?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputFocusEventData>) => void) | undefined;
|
|
5
|
+
onBlur?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputFocusEventData>) => void) | undefined;
|
|
6
|
+
inputProps?: {
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
hitSlop?: number | import("react-native").Insets | null | undefined;
|
|
9
|
+
id?: string | undefined;
|
|
10
|
+
needsOffscreenAlphaCompositing?: boolean | undefined;
|
|
11
|
+
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | undefined;
|
|
12
|
+
pointerEvents?: "box-none" | "none" | "box-only" | "auto" | undefined;
|
|
13
|
+
removeClippedSubviews?: boolean | undefined;
|
|
14
|
+
testID?: string | undefined;
|
|
15
|
+
nativeID?: string | undefined;
|
|
16
|
+
collapsable?: boolean | undefined;
|
|
17
|
+
collapsableChildren?: boolean | undefined;
|
|
18
|
+
renderToHardwareTextureAndroid?: boolean | undefined;
|
|
19
|
+
focusable?: boolean | undefined;
|
|
20
|
+
tabIndex?: 0 | -1 | undefined;
|
|
21
|
+
shouldRasterizeIOS?: boolean | undefined;
|
|
22
|
+
isTVSelectable?: boolean | undefined;
|
|
23
|
+
hasTVPreferredFocus?: boolean | undefined;
|
|
24
|
+
tvParallaxShiftDistanceX?: number | undefined;
|
|
25
|
+
tvParallaxShiftDistanceY?: number | undefined;
|
|
26
|
+
tvParallaxTiltAngle?: number | undefined;
|
|
27
|
+
tvParallaxMagnification?: number | undefined;
|
|
28
|
+
onStartShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
29
|
+
onMoveShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
30
|
+
onResponderEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
31
|
+
onResponderGrant?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
32
|
+
onResponderReject?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
33
|
+
onResponderMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
34
|
+
onResponderRelease?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
35
|
+
onResponderStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
36
|
+
onResponderTerminationRequest?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
37
|
+
onResponderTerminate?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
38
|
+
onStartShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
39
|
+
onMoveShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
|
|
40
|
+
onTouchStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
41
|
+
onTouchMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
42
|
+
onTouchEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
43
|
+
onTouchCancel?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
44
|
+
onTouchEndCapture?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
|
|
45
|
+
onPointerEnter?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
46
|
+
onPointerEnterCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
47
|
+
onPointerLeave?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
48
|
+
onPointerLeaveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
49
|
+
onPointerMove?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
50
|
+
onPointerMoveCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
51
|
+
onPointerCancel?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
52
|
+
onPointerCancelCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
53
|
+
onPointerDown?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
54
|
+
onPointerDownCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
55
|
+
onPointerUp?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
56
|
+
onPointerUpCapture?: ((event: import("react-native").PointerEvent) => void) | undefined;
|
|
57
|
+
accessible?: boolean | undefined;
|
|
58
|
+
accessibilityActions?: readonly Readonly<{
|
|
59
|
+
name: string;
|
|
60
|
+
label?: string | undefined;
|
|
61
|
+
}>[] | undefined;
|
|
62
|
+
accessibilityLabel?: string | undefined;
|
|
63
|
+
'aria-label'?: string | undefined;
|
|
64
|
+
accessibilityRole?: import("react-native").AccessibilityRole | undefined;
|
|
65
|
+
accessibilityState?: import("react-native").AccessibilityState | undefined;
|
|
66
|
+
'aria-busy'?: boolean | undefined;
|
|
67
|
+
'aria-checked'?: boolean | "mixed" | undefined;
|
|
68
|
+
'aria-disabled'?: boolean | undefined;
|
|
69
|
+
'aria-expanded'?: boolean | undefined;
|
|
70
|
+
'aria-selected'?: boolean | undefined;
|
|
71
|
+
accessibilityHint?: string | undefined;
|
|
72
|
+
accessibilityValue?: import("react-native").AccessibilityValue | undefined;
|
|
73
|
+
'aria-valuemax'?: number | undefined;
|
|
74
|
+
'aria-valuemin'?: number | undefined;
|
|
75
|
+
'aria-valuenow'?: number | undefined;
|
|
76
|
+
'aria-valuetext'?: string | undefined;
|
|
77
|
+
onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => void) | undefined;
|
|
78
|
+
importantForAccessibility?: "auto" | "yes" | "no" | "no-hide-descendants" | undefined;
|
|
79
|
+
'aria-hidden'?: boolean | undefined;
|
|
80
|
+
'aria-modal'?: boolean | undefined;
|
|
81
|
+
role?: import("react-native").Role | undefined;
|
|
82
|
+
accessibilityLabelledBy?: string | string[] | undefined;
|
|
83
|
+
'aria-labelledby'?: string | undefined;
|
|
84
|
+
accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
|
|
85
|
+
'aria-live'?: "polite" | "assertive" | "off" | undefined;
|
|
86
|
+
accessibilityElementsHidden?: boolean | undefined;
|
|
87
|
+
accessibilityViewIsModal?: boolean | undefined;
|
|
88
|
+
onAccessibilityEscape?: (() => void) | undefined;
|
|
89
|
+
onAccessibilityTap?: (() => void) | undefined;
|
|
90
|
+
onMagicTap?: (() => void) | undefined;
|
|
91
|
+
accessibilityIgnoresInvertColors?: boolean | undefined;
|
|
92
|
+
accessibilityLanguage?: string | undefined;
|
|
93
|
+
accessibilityShowsLargeContentViewer?: boolean | undefined;
|
|
94
|
+
accessibilityLargeContentTitle?: string | undefined;
|
|
95
|
+
twClassName?: string | undefined;
|
|
96
|
+
onPress?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
|
|
97
|
+
onPressIn?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
|
|
98
|
+
onPressOut?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").NativeTouchEvent>) => void) | undefined;
|
|
99
|
+
allowFontScaling?: boolean | undefined;
|
|
100
|
+
numberOfLines?: number | undefined;
|
|
101
|
+
maxFontSizeMultiplier?: number | null | undefined;
|
|
102
|
+
lineBreakStrategyIOS?: "none" | "standard" | "hangul-word" | "push-out" | undefined;
|
|
103
|
+
selectionColor?: import("react-native").ColorValue | undefined;
|
|
104
|
+
textBreakStrategy?: "simple" | "highQuality" | "balanced" | undefined;
|
|
105
|
+
rejectResponderTermination?: boolean | null | undefined;
|
|
106
|
+
onChange?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputChangeEventData>) => void) | undefined;
|
|
107
|
+
autoCapitalize?: "none" | "sentences" | "words" | "characters" | undefined;
|
|
108
|
+
autoComplete?: "off" | "name" | "email" | "additional-name" | "address-line1" | "address-line2" | "birthdate-day" | "birthdate-full" | "birthdate-month" | "birthdate-year" | "cc-csc" | "cc-exp" | "cc-exp-day" | "cc-exp-month" | "cc-exp-year" | "cc-number" | "cc-name" | "cc-given-name" | "cc-middle-name" | "cc-family-name" | "cc-type" | "country" | "current-password" | "family-name" | "gender" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name-family" | "name-given" | "name-middle" | "name-middle-initial" | "name-prefix" | "name-suffix" | "new-password" | "nickname" | "one-time-code" | "organization" | "organization-title" | "password" | "password-new" | "postal-address" | "postal-address-country" | "postal-address-extended" | "postal-address-extended-postal-code" | "postal-address-locality" | "postal-address-region" | "postal-code" | "street-address" | "sms-otp" | "tel" | "tel-country-code" | "tel-national" | "tel-device" | "url" | "username" | "username-new" | undefined;
|
|
109
|
+
autoCorrect?: boolean | undefined;
|
|
110
|
+
blurOnSubmit?: boolean | undefined;
|
|
111
|
+
submitBehavior?: import("react-native").SubmitBehavior | undefined;
|
|
112
|
+
caretHidden?: boolean | undefined;
|
|
113
|
+
contextMenuHidden?: boolean | undefined;
|
|
114
|
+
keyboardType?: import("react-native").KeyboardTypeOptions | undefined;
|
|
115
|
+
inputMode?: import("react-native").InputModeOptions | undefined;
|
|
116
|
+
maxLength?: number | undefined;
|
|
117
|
+
multiline?: boolean | undefined;
|
|
118
|
+
onContentSizeChange?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputContentSizeChangeEventData>) => void) | undefined;
|
|
119
|
+
onEndEditing?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputEndEditingEventData>) => void) | undefined;
|
|
120
|
+
onSelectionChange?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputSelectionChangeEventData>) => void) | undefined;
|
|
121
|
+
onSubmitEditing?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputSubmitEditingEventData>) => void) | undefined;
|
|
122
|
+
onScroll?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputScrollEventData>) => void) | undefined;
|
|
123
|
+
onKeyPress?: ((e: import("react-native").NativeSyntheticEvent<import("react-native").TextInputKeyPressEventData>) => void) | undefined;
|
|
124
|
+
readOnly?: boolean | undefined;
|
|
125
|
+
returnKeyType?: import("react-native").ReturnKeyTypeOptions | undefined;
|
|
126
|
+
enterKeyHint?: import("react-native").EnterKeyHintTypeOptions | undefined;
|
|
127
|
+
secureTextEntry?: boolean | undefined;
|
|
128
|
+
selectTextOnFocus?: boolean | undefined;
|
|
129
|
+
selection?: {
|
|
130
|
+
start: number;
|
|
131
|
+
end?: number | undefined;
|
|
132
|
+
} | undefined;
|
|
133
|
+
textAlign?: "center" | "left" | "right" | undefined;
|
|
134
|
+
inputAccessoryViewID?: string | undefined;
|
|
135
|
+
clearButtonMode?: "never" | "while-editing" | "unless-editing" | "always" | undefined;
|
|
136
|
+
clearTextOnFocus?: boolean | undefined;
|
|
137
|
+
dataDetectorTypes?: import("react-native").DataDetectorTypes | import("react-native").DataDetectorTypes[] | undefined;
|
|
138
|
+
enablesReturnKeyAutomatically?: boolean | undefined;
|
|
139
|
+
keyboardAppearance?: "default" | "light" | "dark" | undefined;
|
|
140
|
+
passwordRules?: string | null | undefined;
|
|
141
|
+
selectionState?: import("react-native").DocumentSelectionState | undefined;
|
|
142
|
+
spellCheck?: boolean | undefined;
|
|
143
|
+
textContentType?: "none" | "name" | "nickname" | "password" | "username" | "URL" | "addressCity" | "addressCityAndState" | "addressState" | "countryName" | "creditCardNumber" | "creditCardExpiration" | "creditCardExpirationMonth" | "creditCardExpirationYear" | "creditCardSecurityCode" | "creditCardType" | "creditCardName" | "creditCardGivenName" | "creditCardMiddleName" | "creditCardFamilyName" | "emailAddress" | "familyName" | "fullStreetAddress" | "givenName" | "jobTitle" | "location" | "middleName" | "namePrefix" | "nameSuffix" | "organizationName" | "postalCode" | "streetAddressLine1" | "streetAddressLine2" | "sublocality" | "telephoneNumber" | "newPassword" | "oneTimeCode" | "birthdate" | "birthdateDay" | "birthdateMonth" | "birthdateYear" | undefined;
|
|
144
|
+
scrollEnabled?: boolean | undefined;
|
|
145
|
+
smartInsertDelete?: boolean | undefined;
|
|
146
|
+
cursorColor?: import("react-native").ColorValue | null | undefined;
|
|
147
|
+
selectionHandleColor?: import("react-native").ColorValue | null | undefined;
|
|
148
|
+
importantForAutofill?: "auto" | "yes" | "no" | "noExcludeDescendants" | "yesExcludeDescendants" | undefined;
|
|
149
|
+
disableFullscreenUI?: boolean | undefined;
|
|
150
|
+
inlineImageLeft?: string | undefined;
|
|
151
|
+
inlineImagePadding?: number | undefined;
|
|
152
|
+
returnKeyLabel?: string | undefined;
|
|
153
|
+
underlineColorAndroid?: import("react-native").ColorValue | undefined;
|
|
154
|
+
textAlignVertical?: "auto" | "center" | "top" | "bottom" | undefined;
|
|
155
|
+
showSoftInputOnFocus?: boolean | undefined;
|
|
156
|
+
verticalAlign?: "auto" | "middle" | "top" | "bottom" | undefined;
|
|
157
|
+
} | undefined;
|
|
158
|
+
inputRef?: React.Ref<import("react-native").TextInput> | undefined;
|
|
8
159
|
twClassName?: string | undefined;
|
|
9
160
|
style?: import("react-native").StyleProp<import("react-native").ViewStyle>;
|
|
10
|
-
|
|
161
|
+
testID?: string | undefined;
|
|
162
|
+
} & Omit<import("../index.mjs").BoxProps, "children" | "style" | "testID" | "accessible" | "twClassName" | "onBlur" | "onFocus" | keyof import("@metamask-previews/design-system-shared").TextFieldPropsShared | "inputProps" | "inputRef"> & {
|
|
11
163
|
clearButtonProps?: Partial<import("../ButtonIcon/index.mjs").ButtonIconProps> | undefined;
|
|
12
164
|
onPressClearButton: () => void;
|
|
13
|
-
} & React.RefAttributes<
|
|
165
|
+
} & React.RefAttributes<View>>;
|
|
14
166
|
//# sourceMappingURL=TextFieldSearch.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextFieldSearch.d.mts","sourceRoot":"","sources":["../../../src/components/TextFieldSearch/TextFieldSearch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkC,cAAc;AACvD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"TextFieldSearch.d.mts","sourceRoot":"","sources":["../../../src/components/TextFieldSearch/TextFieldSearch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkC,cAAc;AACvD,OAAO,KAAK,EAAE,IAAI,EAAE,8BAAqB;AAQzC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAwD3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextFieldSearch.mjs","sourceRoot":"","sources":["../../../src/components/TextFieldSearch/TextFieldSearch.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,QAAO,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc;;AAGvD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,gCAAsB;AAC3D,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,0BAAgB;AAC9D,OAAO,EAAE,SAAS,EAAE,+BAAqB;AAIzC,MAAM,CAAC,MAAM,eAAe,GAAG,UAAU,CACvC,CACE,EACE,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,EACL,KAAK,EACL,cAAc,EACd,YAAY,EACZ,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IACzB,MAAM,cAAc,GAAG,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IAEhD,MAAM,UAAU,GAAG,CACjB,CAAC,IAAI,CACH,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CACtB,IAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAClB,KAAK,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC,EACjC,CACH,CAAC;IAEF,MAAM,kBAAkB,GAAG,WAAW,CAAC,GAAG,EAAE;QAC1C,kBAAkB,EAAE,CAAC;IACvB,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAEzB,MAAM,WAAW,GAAG,CAClB,CAAC,UAAU,CACT,IAAI,CAAC,CAAC,cAAc,CAAC,EAAE,CAAC,CACxB,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAC3B,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,eAAe,EAAE,CAAC,CAChD,OAAO,CAAC,CAAC,kBAAkB,CAAC,CAC5B,IAAI,gBAAgB,CAAC,EACrB,CACH,CAAC;IAEF,OAAO,CACL,CAAC,SAAS,CACR,GAAG,CAAC,CAAC,GAAG,CAAC,CACT,IAAI,KAAK,CAAC,CACV,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,cAAc,CAAC,CACb,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,UAAU,CAC3D,CACD,YAAY,CAAC,CACX,YAAY,KAAK,SAAS;YACxB,CAAC,CAAC,YAAY;YACd,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,WAAW,CAClC,CACD,MAAM,CAAC,iBAAiB,CACxB,KAAK,CAAC,CAAC,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC,EAC/B,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,CAAC,WAAW,GAAG,iBAAiB,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { forwardRef, useCallback } from 'react';\nimport type {
|
|
1
|
+
{"version":3,"file":"TextFieldSearch.mjs","sourceRoot":"","sources":["../../../src/components/TextFieldSearch/TextFieldSearch.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,QAAO,EAAE,UAAU,EAAE,WAAW,EAAE,cAAc;;AAGvD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,gCAAsB;AAC3D,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,0BAAgB;AAC9D,OAAO,EAAE,SAAS,EAAE,+BAAqB;AAIzC,MAAM,CAAC,MAAM,eAAe,GAAG,UAAU,CACvC,CACE,EACE,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,EACL,KAAK,EACL,cAAc,EACd,YAAY,EACZ,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IACzB,MAAM,cAAc,GAAG,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IAEhD,MAAM,UAAU,GAAG,CACjB,CAAC,IAAI,CACH,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CACtB,IAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAClB,KAAK,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC,EACjC,CACH,CAAC;IAEF,MAAM,kBAAkB,GAAG,WAAW,CAAC,GAAG,EAAE;QAC1C,kBAAkB,EAAE,CAAC;IACvB,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAEzB,MAAM,WAAW,GAAG,CAClB,CAAC,UAAU,CACT,IAAI,CAAC,CAAC,cAAc,CAAC,EAAE,CAAC,CACxB,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAC3B,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,eAAe,EAAE,CAAC,CAChD,OAAO,CAAC,CAAC,kBAAkB,CAAC,CAC5B,IAAI,gBAAgB,CAAC,EACrB,CACH,CAAC;IAEF,OAAO,CACL,CAAC,SAAS,CACR,GAAG,CAAC,CAAC,GAAG,CAAC,CACT,IAAI,KAAK,CAAC,CACV,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,cAAc,CAAC,CACb,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,UAAU,CAC3D,CACD,YAAY,CAAC,CACX,YAAY,KAAK,SAAS;YACxB,CAAC,CAAC,YAAY;YACd,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,WAAW,CAClC,CACD,MAAM,CAAC,iBAAiB,CACxB,KAAK,CAAC,CAAC,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC,EAC/B,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,CAAC,WAAW,GAAG,iBAAiB,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React, { forwardRef, useCallback } from 'react';\nimport type { View } from 'react-native';\n\nimport { ButtonIcon, ButtonIconSize } from '../ButtonIcon';\nimport { Icon, IconColor, IconName, IconSize } from '../Icon';\nimport { TextField } from '../TextField';\n\nimport type { TextFieldSearchProps } from './TextFieldSearch.types';\n\nexport const TextFieldSearch = forwardRef<View, TextFieldSearchProps>(\n (\n {\n onPressClearButton,\n clearButtonProps,\n value,\n style,\n startAccessory,\n endAccessory,\n ...props\n },\n ref,\n ) => {\n const tw = useTailwind();\n const containerStyle = tw.style('rounded-full');\n\n const searchIcon = (\n <Icon\n name={IconName.Search}\n size={IconSize.Md}\n color={IconColor.IconAlternative}\n />\n );\n\n const clearButtonHandler = useCallback(() => {\n onPressClearButton();\n }, [onPressClearButton]);\n\n const clearButton = (\n <ButtonIcon\n size={ButtonIconSize.Md}\n iconName={IconName.CircleX}\n iconProps={{ color: IconColor.IconAlternative }}\n onPress={clearButtonHandler}\n {...clearButtonProps}\n />\n );\n\n return (\n <TextField\n ref={ref}\n {...props}\n value={value}\n startAccessory={\n startAccessory !== undefined ? startAccessory : searchIcon\n }\n endAccessory={\n endAccessory !== undefined\n ? endAccessory\n : Boolean(value) && clearButton\n }\n testID=\"textfieldsearch\"\n style={[containerStyle, style]}\n />\n );\n },\n);\n\nTextFieldSearch.displayName = 'TextFieldSearch';\n"]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TitleStandard = void 0;
|
|
7
|
+
// Third party dependencies.
|
|
8
|
+
const design_system_shared_1 = require("@metamask-previews/design-system-shared");
|
|
9
|
+
const react_1 = __importDefault(require("react"));
|
|
10
|
+
// Internal dependencies.
|
|
11
|
+
const Box_1 = require("../Box/index.cjs");
|
|
12
|
+
const BoxRow_1 = require("../BoxRow/index.cjs");
|
|
13
|
+
/**
|
|
14
|
+
* Displays a primary title with optional top, inline, and bottom rows in a left-aligned layout.
|
|
15
|
+
* Remaining `View` props are forwarded to the root `Box`.
|
|
16
|
+
*
|
|
17
|
+
* @param props - Component props
|
|
18
|
+
* @param props.title - Primary title content
|
|
19
|
+
* @param props.titleEndAccessory - Optional inline accessory to the right of the title
|
|
20
|
+
* @param props.topAccessory - Optional row above the title
|
|
21
|
+
* @param props.bottomAccessory - Optional custom bottom row when `bottomLabel` is not renderable
|
|
22
|
+
* @param props.bottomLabel - Optional secondary label below the title
|
|
23
|
+
* @param props.bottomLabelEndAccessory - Optional inline accessory to the right of the bottom label
|
|
24
|
+
* @param props.titleProps - Optional props merged into title `Text` when `title` is a string
|
|
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 `BoxRow`
|
|
27
|
+
* @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `BoxRow`
|
|
28
|
+
* @param props.twClassName - Optional Tailwind classes on the root container
|
|
29
|
+
*
|
|
30
|
+
* @returns The rendered TitleStandard layout.
|
|
31
|
+
*/
|
|
32
|
+
const TitleStandard = ({ title, titleEndAccessory, topAccessory, bottomAccessory, bottomLabel, bottomLabelEndAccessory, titleProps, titleWrapperProps, bottomLabelProps, bottomLabelWrapperProps, twClassName = '', ...props }) => {
|
|
33
|
+
return (<Box_1.Box twClassName={twClassName} gap={1} {...props}>
|
|
34
|
+
{/* Top Accessory Slot */}
|
|
35
|
+
{topAccessory}
|
|
36
|
+
{/* Title Row */}
|
|
37
|
+
<BoxRow_1.BoxRow gap={2} {...titleWrapperProps} endAccessory={titleEndAccessory} textProps={{
|
|
38
|
+
variant: design_system_shared_1.TextVariant.HeadingLg,
|
|
39
|
+
...titleProps,
|
|
40
|
+
}}>
|
|
41
|
+
{title}
|
|
42
|
+
</BoxRow_1.BoxRow>
|
|
43
|
+
{/* Bottom Label Row */}
|
|
44
|
+
{bottomLabel && (<BoxRow_1.BoxRow gap={2} {...bottomLabelWrapperProps} endAccessory={bottomLabelEndAccessory} textProps={{
|
|
45
|
+
variant: design_system_shared_1.TextVariant.BodySm,
|
|
46
|
+
fontWeight: design_system_shared_1.FontWeight.Medium,
|
|
47
|
+
color: design_system_shared_1.TextColor.TextAlternative,
|
|
48
|
+
...bottomLabelProps,
|
|
49
|
+
}}>
|
|
50
|
+
{bottomLabel}
|
|
51
|
+
</BoxRow_1.BoxRow>)}
|
|
52
|
+
{/* Bottom Accessory Slot */}
|
|
53
|
+
{!bottomLabel && bottomAccessory}
|
|
54
|
+
</Box_1.Box>);
|
|
55
|
+
};
|
|
56
|
+
exports.TitleStandard = TitleStandard;
|
|
57
|
+
exports.TitleStandard.displayName = 'TitleStandard';
|
|
58
|
+
//# sourceMappingURL=TitleStandard.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TitleStandard.cjs","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.tsx"],"names":[],"mappings":";;;;;;AAAA,4BAA4B;AAC5B,kFAIiD;AACjD,kDAA0B;AAE1B,yBAAyB;AACzB,0CAA6B;AAC7B,gDAAmC;AAInC;;;;;;;;;;;;;;;;;;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,eAAM,CACL,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,IAAI,iBAAiB,CAAC,CACtB,YAAY,CAAC,CAAC,iBAAiB,CAAC,CAChC,SAAS,CAAC,CAAC;YACT,OAAO,EAAE,kCAAW,CAAC,SAAS;YAC9B,GAAG,UAAU;SACd,CAAC,CAEF;QAAA,CAAC,KAAK,CACR;MAAA,EAAE,eAAM,CACR;MAAA,CAAC,sBAAsB,CACvB;MAAA,CAAC,WAAW,IAAI,CACd,CAAC,eAAM,CACL,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,IAAI,uBAAuB,CAAC,CAC5B,YAAY,CAAC,CAAC,uBAAuB,CAAC,CACtC,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;UAAA,CAAC,WAAW,CACd;QAAA,EAAE,eAAM,CAAC,CACV,CACD;MAAA,CAAC,2BAA2B,CAC5B;MAAA,CAAC,CAAC,WAAW,IAAI,eAAe,CAClC;IAAA,EAAE,SAAG,CAAC,CACP,CAAC;AACJ,CAAC,CAAC;AAlDW,QAAA,aAAa,iBAkDxB;AAEF,qBAAa,CAAC,WAAW,GAAG,eAAe,CAAC","sourcesContent":["// Third party dependencies.\nimport {\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 { BoxRow } from '../BoxRow';\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 `BoxRow`\n * @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `BoxRow`\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 <BoxRow\n gap={2}\n {...titleWrapperProps}\n endAccessory={titleEndAccessory}\n textProps={{\n variant: TextVariant.HeadingLg,\n ...titleProps,\n }}\n >\n {title}\n </BoxRow>\n {/* Bottom Label Row */}\n {bottomLabel && (\n <BoxRow\n gap={2}\n {...bottomLabelWrapperProps}\n endAccessory={bottomLabelEndAccessory}\n textProps={{\n variant: TextVariant.BodySm,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextAlternative,\n ...bottomLabelProps,\n }}\n >\n {bottomLabel}\n </BoxRow>\n )}\n {/* Bottom Accessory Slot */}\n {!bottomLabel && bottomAccessory}\n </Box>\n );\n};\n\nTitleStandard.displayName = 'TitleStandard';\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { TitleStandardProps } from "./TitleStandard.types.cjs";
|
|
3
|
+
/**
|
|
4
|
+
* Displays a primary title with optional top, inline, and bottom rows in a left-aligned layout.
|
|
5
|
+
* Remaining `View` props are forwarded to the root `Box`.
|
|
6
|
+
*
|
|
7
|
+
* @param props - Component props
|
|
8
|
+
* @param props.title - Primary title content
|
|
9
|
+
* @param props.titleEndAccessory - Optional inline accessory to the right of the title
|
|
10
|
+
* @param props.topAccessory - Optional row above the title
|
|
11
|
+
* @param props.bottomAccessory - Optional custom bottom row when `bottomLabel` is not renderable
|
|
12
|
+
* @param props.bottomLabel - Optional secondary label below the title
|
|
13
|
+
* @param props.bottomLabelEndAccessory - Optional inline accessory to the right of the bottom label
|
|
14
|
+
* @param props.titleProps - Optional props merged into title `Text` when `title` is a string
|
|
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 `BoxRow`
|
|
17
|
+
* @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `BoxRow`
|
|
18
|
+
* @param props.twClassName - Optional Tailwind classes on the root container
|
|
19
|
+
*
|
|
20
|
+
* @returns The rendered TitleStandard layout.
|
|
21
|
+
*/
|
|
22
|
+
export declare const TitleStandard: React.FC<TitleStandardProps>;
|
|
23
|
+
//# sourceMappingURL=TitleStandard.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TitleStandard.d.cts","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAkDtD,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { TitleStandardProps } from "./TitleStandard.types.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* Displays a primary title with optional top, inline, and bottom rows in a left-aligned layout.
|
|
5
|
+
* Remaining `View` props are forwarded to the root `Box`.
|
|
6
|
+
*
|
|
7
|
+
* @param props - Component props
|
|
8
|
+
* @param props.title - Primary title content
|
|
9
|
+
* @param props.titleEndAccessory - Optional inline accessory to the right of the title
|
|
10
|
+
* @param props.topAccessory - Optional row above the title
|
|
11
|
+
* @param props.bottomAccessory - Optional custom bottom row when `bottomLabel` is not renderable
|
|
12
|
+
* @param props.bottomLabel - Optional secondary label below the title
|
|
13
|
+
* @param props.bottomLabelEndAccessory - Optional inline accessory to the right of the bottom label
|
|
14
|
+
* @param props.titleProps - Optional props merged into title `Text` when `title` is a string
|
|
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 `BoxRow`
|
|
17
|
+
* @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `BoxRow`
|
|
18
|
+
* @param props.twClassName - Optional Tailwind classes on the root container
|
|
19
|
+
*
|
|
20
|
+
* @returns The rendered TitleStandard layout.
|
|
21
|
+
*/
|
|
22
|
+
export declare const TitleStandard: React.FC<TitleStandardProps>;
|
|
23
|
+
//# sourceMappingURL=TitleStandard.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TitleStandard.d.mts","sourceRoot":"","sources":["../../../src/components/TitleStandard/TitleStandard.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,cAAc;AAM1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAkDtD,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
function $importDefault(module) {
|
|
2
|
+
if (module?.__esModule) {
|
|
3
|
+
return module.default;
|
|
4
|
+
}
|
|
5
|
+
return module;
|
|
6
|
+
}
|
|
7
|
+
// Third party dependencies.
|
|
8
|
+
import { FontWeight, TextColor, TextVariant } from "@metamask-previews/design-system-shared";
|
|
9
|
+
import $React from "react";
|
|
10
|
+
const React = $importDefault($React);
|
|
11
|
+
// Internal dependencies.
|
|
12
|
+
import { Box } from "../Box/index.mjs";
|
|
13
|
+
import { BoxRow } from "../BoxRow/index.mjs";
|
|
14
|
+
/**
|
|
15
|
+
* Displays a primary title with optional top, inline, and bottom rows in a left-aligned layout.
|
|
16
|
+
* Remaining `View` props are forwarded to the root `Box`.
|
|
17
|
+
*
|
|
18
|
+
* @param props - Component props
|
|
19
|
+
* @param props.title - Primary title content
|
|
20
|
+
* @param props.titleEndAccessory - Optional inline accessory to the right of the title
|
|
21
|
+
* @param props.topAccessory - Optional row above the title
|
|
22
|
+
* @param props.bottomAccessory - Optional custom bottom row when `bottomLabel` is not renderable
|
|
23
|
+
* @param props.bottomLabel - Optional secondary label below the title
|
|
24
|
+
* @param props.bottomLabelEndAccessory - Optional inline accessory to the right of the bottom label
|
|
25
|
+
* @param props.titleProps - Optional props merged into title `Text` when `title` is a string
|
|
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 `BoxRow`
|
|
28
|
+
* @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `BoxRow`
|
|
29
|
+
* @param props.twClassName - Optional Tailwind classes on the root container
|
|
30
|
+
*
|
|
31
|
+
* @returns The rendered TitleStandard layout.
|
|
32
|
+
*/
|
|
33
|
+
export const TitleStandard = ({ title, titleEndAccessory, topAccessory, bottomAccessory, bottomLabel, bottomLabelEndAccessory, titleProps, titleWrapperProps, bottomLabelProps, bottomLabelWrapperProps, twClassName = '', ...props }) => {
|
|
34
|
+
return (<Box twClassName={twClassName} gap={1} {...props}>
|
|
35
|
+
{/* Top Accessory Slot */}
|
|
36
|
+
{topAccessory}
|
|
37
|
+
{/* Title Row */}
|
|
38
|
+
<BoxRow gap={2} {...titleWrapperProps} endAccessory={titleEndAccessory} textProps={{
|
|
39
|
+
variant: TextVariant.HeadingLg,
|
|
40
|
+
...titleProps,
|
|
41
|
+
}}>
|
|
42
|
+
{title}
|
|
43
|
+
</BoxRow>
|
|
44
|
+
{/* Bottom Label Row */}
|
|
45
|
+
{bottomLabel && (<BoxRow gap={2} {...bottomLabelWrapperProps} endAccessory={bottomLabelEndAccessory} textProps={{
|
|
46
|
+
variant: TextVariant.BodySm,
|
|
47
|
+
fontWeight: FontWeight.Medium,
|
|
48
|
+
color: TextColor.TextAlternative,
|
|
49
|
+
...bottomLabelProps,
|
|
50
|
+
}}>
|
|
51
|
+
{bottomLabel}
|
|
52
|
+
</BoxRow>)}
|
|
53
|
+
{/* Bottom Accessory Slot */}
|
|
54
|
+
{!bottomLabel && bottomAccessory}
|
|
55
|
+
</Box>);
|
|
56
|
+
};
|
|
57
|
+
TitleStandard.displayName = 'TitleStandard';
|
|
58
|
+
//# sourceMappingURL=TitleStandard.mjs.map
|
|
@@ -0,0 +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,MAAM,EAAE,4BAAkB;AAInC;;;;;;;;;;;;;;;;;;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,MAAM,CACL,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,IAAI,iBAAiB,CAAC,CACtB,YAAY,CAAC,CAAC,iBAAiB,CAAC,CAChC,SAAS,CAAC,CAAC;YACT,OAAO,EAAE,WAAW,CAAC,SAAS;YAC9B,GAAG,UAAU;SACd,CAAC,CAEF;QAAA,CAAC,KAAK,CACR;MAAA,EAAE,MAAM,CACR;MAAA,CAAC,sBAAsB,CACvB;MAAA,CAAC,WAAW,IAAI,CACd,CAAC,MAAM,CACL,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,IAAI,uBAAuB,CAAC,CAC5B,YAAY,CAAC,CAAC,uBAAuB,CAAC,CACtC,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;UAAA,CAAC,WAAW,CACd;QAAA,EAAE,MAAM,CAAC,CACV,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 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 { BoxRow } from '../BoxRow';\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 `BoxRow`\n * @param props.bottomLabelWrapperProps - Optional props forwarded to the bottom label row `BoxRow`\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 <BoxRow\n gap={2}\n {...titleWrapperProps}\n endAccessory={titleEndAccessory}\n textProps={{\n variant: TextVariant.HeadingLg,\n ...titleProps,\n }}\n >\n {title}\n </BoxRow>\n {/* Bottom Label Row */}\n {bottomLabel && (\n <BoxRow\n gap={2}\n {...bottomLabelWrapperProps}\n endAccessory={bottomLabelEndAccessory}\n textProps={{\n variant: TextVariant.BodySm,\n fontWeight: FontWeight.Medium,\n color: TextColor.TextAlternative,\n ...bottomLabelProps,\n }}\n >\n {bottomLabel}\n </BoxRow>\n )}\n {/* Bottom Accessory Slot */}\n {!bottomLabel && bottomAccessory}\n </Box>\n );\n};\n\nTitleStandard.displayName = 'TitleStandard';\n"]}
|
|
@@ -0,0 +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 { BoxRowProps } from '../BoxRow/BoxRow.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 {@link BoxRow} `textProps` when `title` is a string.\n */\n titleProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props forwarded to the title row {@link BoxRow} (excluding `children`, `textProps`, and `endAccessory`, which are controlled by this component).\n */\n titleWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'textProps' | 'endAccessory'\n >;\n /**\n * Optional props merged into {@link BoxRow} `textProps` when `bottomLabel` is a string.\n */\n bottomLabelProps?: Omit<Partial<TextProps>, 'children'>;\n /**\n * Optional props forwarded to the bottom label row {@link BoxRow} when `bottomLabel` is renderable (excluding `children`, `textProps`, and `endAccessory`, which are controlled by this component).\n */\n bottomLabelWrapperProps?: Omit<\n Partial<BoxRowProps>,\n 'children' | 'textProps' | 'endAccessory'\n >;\n /**\n * Optional Tailwind class name to apply to the container.\n */\n twClassName?: string;\n} & Omit<ViewProps, 'children'>;\n"]}
|