@metamask-previews/design-system-react-native 0.15.0-preview.a73a010 → 0.18.0-preview.9d477a9
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 +37 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.cjs +1 -2
- 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 +1 -2
- package/dist/components/AvatarFavicon/AvatarFavicon.mjs.map +1 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.types.cjs.map +1 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.types.d.cts +5 -7
- package/dist/components/AvatarFavicon/AvatarFavicon.types.d.cts.map +1 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.types.d.mts +5 -7
- package/dist/components/AvatarFavicon/AvatarFavicon.types.d.mts.map +1 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.types.mjs.map +1 -1
- package/dist/components/AvatarFavicon/index.cjs +2 -2
- package/dist/components/AvatarFavicon/index.cjs.map +1 -1
- package/dist/components/AvatarFavicon/index.d.cts +1 -1
- package/dist/components/AvatarFavicon/index.d.cts.map +1 -1
- package/dist/components/AvatarFavicon/index.d.mts +1 -1
- package/dist/components/AvatarFavicon/index.d.mts.map +1 -1
- package/dist/components/AvatarFavicon/index.mjs +1 -1
- package/dist/components/AvatarFavicon/index.mjs.map +1 -1
- package/dist/components/BadgeNetwork/BadgeNetwork.types.cjs.map +1 -1
- package/dist/components/BadgeNetwork/BadgeNetwork.types.d.cts +6 -15
- package/dist/components/BadgeNetwork/BadgeNetwork.types.d.cts.map +1 -1
- package/dist/components/BadgeNetwork/BadgeNetwork.types.d.mts +6 -15
- package/dist/components/BadgeNetwork/BadgeNetwork.types.d.mts.map +1 -1
- package/dist/components/BadgeNetwork/BadgeNetwork.types.mjs.map +1 -1
- package/dist/components/BannerAlert/BannerAlert.cjs +1 -2
- package/dist/components/BannerAlert/BannerAlert.cjs.map +1 -1
- package/dist/components/BannerAlert/BannerAlert.constants.cjs +16 -16
- 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/BannerAlert/BannerAlert.d.cts.map +1 -1
- package/dist/components/BannerAlert/BannerAlert.d.mts.map +1 -1
- package/dist/components/BannerAlert/BannerAlert.mjs +1 -2
- package/dist/components/BannerAlert/BannerAlert.mjs.map +1 -1
- package/dist/components/BannerBase/BannerBase.cjs +5 -5
- package/dist/components/BannerBase/BannerBase.cjs.map +1 -1
- package/dist/components/BannerBase/BannerBase.mjs +2 -2
- package/dist/components/BannerBase/BannerBase.mjs.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.types.cjs.map +1 -1
- package/dist/components/Box/Box.types.d.cts +107 -3
- package/dist/components/Box/Box.types.d.cts.map +1 -1
- package/dist/components/Box/Box.types.d.mts +107 -3
- 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 +2 -1
- package/dist/components/Box/index.d.cts.map +1 -1
- package/dist/components/Box/index.d.mts +2 -1
- 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/{BoxVertical/BoxVertical.cjs → BoxColumn/BoxColumn.cjs} +6 -6
- package/dist/components/BoxColumn/BoxColumn.cjs.map +1 -0
- package/dist/components/BoxColumn/BoxColumn.d.cts +7 -0
- package/dist/components/BoxColumn/BoxColumn.d.cts.map +1 -0
- package/dist/components/BoxColumn/BoxColumn.d.mts +7 -0
- package/dist/components/BoxColumn/BoxColumn.d.mts.map +1 -0
- package/dist/components/{BoxVertical/BoxVertical.mjs → BoxColumn/BoxColumn.mjs} +4 -4
- package/dist/components/BoxColumn/BoxColumn.mjs.map +1 -0
- package/dist/components/{BoxVertical/BoxVertical.types.cjs → BoxColumn/BoxColumn.types.cjs} +1 -1
- package/dist/components/BoxColumn/BoxColumn.types.cjs.map +1 -0
- package/dist/components/BoxColumn/BoxColumn.types.d.cts +13 -0
- package/dist/components/BoxColumn/BoxColumn.types.d.cts.map +1 -0
- package/dist/components/BoxColumn/BoxColumn.types.d.mts +13 -0
- package/dist/components/BoxColumn/BoxColumn.types.d.mts.map +1 -0
- package/dist/components/BoxColumn/BoxColumn.types.mjs +2 -0
- package/dist/components/BoxColumn/BoxColumn.types.mjs.map +1 -0
- package/dist/components/BoxColumn/index.cjs +6 -0
- package/dist/components/BoxColumn/index.cjs.map +1 -0
- package/dist/components/BoxColumn/index.d.cts +3 -0
- package/dist/components/BoxColumn/index.d.cts.map +1 -0
- package/dist/components/BoxColumn/index.d.mts +3 -0
- package/dist/components/BoxColumn/index.d.mts.map +1 -0
- package/dist/components/BoxColumn/index.mjs +2 -0
- package/dist/components/BoxColumn/index.mjs.map +1 -0
- package/dist/components/{BoxHorizontal/BoxHorizontal.cjs → BoxRow/BoxRow.cjs} +6 -6
- package/dist/components/BoxRow/BoxRow.cjs.map +1 -0
- package/dist/components/BoxRow/BoxRow.d.cts +7 -0
- package/dist/components/BoxRow/BoxRow.d.cts.map +1 -0
- package/dist/components/BoxRow/BoxRow.d.mts +7 -0
- package/dist/components/BoxRow/BoxRow.d.mts.map +1 -0
- package/dist/components/{BoxHorizontal/BoxHorizontal.mjs → BoxRow/BoxRow.mjs} +4 -4
- package/dist/components/BoxRow/BoxRow.mjs.map +1 -0
- package/dist/components/{BoxHorizontal/BoxHorizontal.types.cjs → BoxRow/BoxRow.types.cjs} +1 -1
- package/dist/components/BoxRow/BoxRow.types.cjs.map +1 -0
- package/dist/components/BoxRow/BoxRow.types.d.cts +13 -0
- package/dist/components/BoxRow/BoxRow.types.d.cts.map +1 -0
- package/dist/components/BoxRow/BoxRow.types.d.mts +13 -0
- package/dist/components/BoxRow/BoxRow.types.d.mts.map +1 -0
- package/dist/components/BoxRow/BoxRow.types.mjs +2 -0
- package/dist/components/BoxRow/BoxRow.types.mjs.map +1 -0
- package/dist/components/BoxRow/index.cjs +6 -0
- package/dist/components/BoxRow/index.cjs.map +1 -0
- package/dist/components/BoxRow/index.d.cts +3 -0
- package/dist/components/BoxRow/index.d.cts.map +1 -0
- package/dist/components/BoxRow/index.d.mts +3 -0
- package/dist/components/BoxRow/index.d.mts.map +1 -0
- package/dist/components/BoxRow/index.mjs +2 -0
- package/dist/components/BoxRow/index.mjs.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.cts +1 -6
- package/dist/components/Checkbox/Checkbox.d.cts.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.mts +1 -6
- package/dist/components/Checkbox/Checkbox.d.mts.map +1 -1
- package/dist/components/Checkbox/Checkbox.types.cjs.map +1 -1
- package/dist/components/Checkbox/Checkbox.types.d.cts +2 -28
- package/dist/components/Checkbox/Checkbox.types.d.cts.map +1 -1
- package/dist/components/Checkbox/Checkbox.types.d.mts +2 -28
- package/dist/components/Checkbox/Checkbox.types.d.mts.map +1 -1
- package/dist/components/Checkbox/Checkbox.types.mjs.map +1 -1
- package/dist/components/HeaderRoot/HeaderRoot.cjs +3 -3
- package/dist/components/HeaderRoot/HeaderRoot.cjs.map +1 -1
- package/dist/components/HeaderRoot/HeaderRoot.mjs +3 -3
- package/dist/components/HeaderRoot/HeaderRoot.mjs.map +1 -1
- package/dist/components/HeaderSearch/HeaderSearch.cjs +80 -0
- package/dist/components/HeaderSearch/HeaderSearch.cjs.map +1 -0
- package/dist/components/HeaderSearch/HeaderSearch.d.cts +37 -0
- package/dist/components/HeaderSearch/HeaderSearch.d.cts.map +1 -0
- package/dist/components/HeaderSearch/HeaderSearch.d.mts +37 -0
- package/dist/components/HeaderSearch/HeaderSearch.d.mts.map +1 -0
- package/dist/components/HeaderSearch/HeaderSearch.mjs +80 -0
- package/dist/components/HeaderSearch/HeaderSearch.mjs.map +1 -0
- package/dist/components/HeaderSearch/HeaderSearch.types.cjs +3 -0
- package/dist/components/HeaderSearch/HeaderSearch.types.cjs.map +1 -0
- package/dist/components/HeaderSearch/HeaderSearch.types.d.cts +33 -0
- package/dist/components/HeaderSearch/HeaderSearch.types.d.cts.map +1 -0
- package/dist/components/HeaderSearch/HeaderSearch.types.d.mts +33 -0
- package/dist/components/HeaderSearch/HeaderSearch.types.d.mts.map +1 -0
- package/dist/components/HeaderSearch/HeaderSearch.types.mjs +2 -0
- package/dist/components/HeaderSearch/HeaderSearch.types.mjs.map +1 -0
- package/dist/components/HeaderSearch/index.cjs +8 -0
- package/dist/components/HeaderSearch/index.cjs.map +1 -0
- package/dist/components/HeaderSearch/index.d.cts +4 -0
- package/dist/components/HeaderSearch/index.d.cts.map +1 -0
- package/dist/components/HeaderSearch/index.d.mts +4 -0
- package/dist/components/HeaderSearch/index.d.mts.map +1 -0
- package/dist/components/HeaderSearch/index.mjs +3 -0
- package/dist/components/HeaderSearch/index.mjs.map +1 -0
- package/dist/components/HeaderStandard/HeaderStandard.cjs +3 -3
- package/dist/components/HeaderStandard/HeaderStandard.cjs.map +1 -1
- package/dist/components/HeaderStandard/HeaderStandard.mjs +3 -3
- package/dist/components/HeaderStandard/HeaderStandard.mjs.map +1 -1
- package/dist/components/Icon/Icon.assets.cjs +284 -281
- 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 -281
- package/dist/components/Icon/Icon.assets.mjs.map +1 -1
- package/dist/components/Icon/Icon.cjs +2 -2
- package/dist/components/Icon/Icon.cjs.map +1 -1
- package/dist/components/Icon/Icon.constants.cjs +6 -6
- package/dist/components/Icon/Icon.constants.cjs.map +1 -1
- package/dist/components/Icon/Icon.constants.d.cts +1 -1
- package/dist/components/Icon/Icon.constants.d.cts.map +1 -1
- package/dist/components/Icon/Icon.constants.d.mts +1 -1
- package/dist/components/Icon/Icon.constants.d.mts.map +1 -1
- package/dist/components/Icon/Icon.constants.mjs +1 -1
- 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/Icon.mjs +1 -1
- package/dist/components/Icon/Icon.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/pop-up.svg +1 -0
- package/dist/components/Icon/assets/side-panel.svg +1 -0
- package/dist/components/Icon/index.cjs +4 -4
- package/dist/components/Icon/index.cjs.map +1 -1
- package/dist/components/Icon/index.d.cts +1 -1
- package/dist/components/Icon/index.d.cts.map +1 -1
- package/dist/components/Icon/index.d.mts +1 -1
- package/dist/components/Icon/index.d.mts.map +1 -1
- package/dist/components/Icon/index.mjs +1 -1
- package/dist/components/Icon/index.mjs.map +1 -1
- package/dist/components/IconAlert/IconAlert.cjs +16 -0
- package/dist/components/IconAlert/IconAlert.cjs.map +1 -0
- package/dist/components/IconAlert/IconAlert.constants.cjs +23 -0
- package/dist/components/IconAlert/IconAlert.constants.cjs.map +1 -0
- package/dist/components/IconAlert/IconAlert.constants.d.cts +6 -0
- package/dist/components/IconAlert/IconAlert.constants.d.cts.map +1 -0
- package/dist/components/IconAlert/IconAlert.constants.d.mts +6 -0
- package/dist/components/IconAlert/IconAlert.constants.d.mts.map +1 -0
- package/dist/components/IconAlert/IconAlert.constants.mjs +20 -0
- package/dist/components/IconAlert/IconAlert.constants.mjs.map +1 -0
- package/dist/components/IconAlert/IconAlert.d.cts +7 -0
- package/dist/components/IconAlert/IconAlert.d.cts.map +1 -0
- package/dist/components/IconAlert/IconAlert.d.mts +7 -0
- package/dist/components/IconAlert/IconAlert.d.mts.map +1 -0
- package/dist/components/IconAlert/IconAlert.mjs +16 -0
- package/dist/components/IconAlert/IconAlert.mjs.map +1 -0
- package/dist/components/IconAlert/IconAlert.types.cjs +3 -0
- package/dist/components/IconAlert/IconAlert.types.cjs.map +1 -0
- package/dist/components/IconAlert/IconAlert.types.d.cts +4 -0
- package/dist/components/IconAlert/IconAlert.types.d.cts.map +1 -0
- package/dist/components/IconAlert/IconAlert.types.d.mts +4 -0
- package/dist/components/IconAlert/IconAlert.types.d.mts.map +1 -0
- package/dist/components/IconAlert/IconAlert.types.mjs +2 -0
- package/dist/components/IconAlert/IconAlert.types.mjs.map +1 -0
- package/dist/components/IconAlert/index.cjs +8 -0
- package/dist/components/IconAlert/index.cjs.map +1 -0
- package/dist/components/IconAlert/index.d.cts +4 -0
- package/dist/components/IconAlert/index.d.cts.map +1 -0
- package/dist/components/IconAlert/index.d.mts +4 -0
- package/dist/components/IconAlert/index.d.mts.map +1 -0
- package/dist/components/IconAlert/index.mjs +3 -0
- package/dist/components/IconAlert/index.mjs.map +1 -0
- package/dist/components/Input/Input.cjs +4 -4
- package/dist/components/Input/Input.cjs.map +1 -1
- package/dist/components/Input/Input.constants.cjs +15 -15
- package/dist/components/Input/Input.constants.cjs.map +1 -1
- package/dist/components/Input/Input.constants.d.cts +1 -1
- package/dist/components/Input/Input.constants.d.cts.map +1 -1
- package/dist/components/Input/Input.constants.d.mts +1 -1
- package/dist/components/Input/Input.constants.d.mts.map +1 -1
- package/dist/components/Input/Input.constants.mjs +1 -1
- package/dist/components/Input/Input.constants.mjs.map +1 -1
- package/dist/components/Input/Input.d.cts +1 -1
- package/dist/components/Input/Input.d.cts.map +1 -1
- package/dist/components/Input/Input.d.mts +1 -1
- package/dist/components/Input/Input.d.mts.map +1 -1
- package/dist/components/Input/Input.mjs +3 -3
- 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.cts.map +1 -1
- package/dist/components/Input/Input.types.d.mts +1 -1
- package/dist/components/Input/Input.types.d.mts.map +1 -1
- package/dist/components/Input/Input.types.mjs.map +1 -1
- package/dist/components/KeyValueColumn/KeyValueColumn.cjs +17 -16
- 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 +10 -9
- package/dist/components/KeyValueColumn/KeyValueColumn.mjs.map +1 -1
- package/dist/components/KeyValueRow/KeyValueRow.cjs +43 -64
- package/dist/components/KeyValueRow/KeyValueRow.cjs.map +1 -1
- package/dist/components/KeyValueRow/KeyValueRow.d.cts +3 -20
- package/dist/components/KeyValueRow/KeyValueRow.d.cts.map +1 -1
- package/dist/components/KeyValueRow/KeyValueRow.d.mts +3 -20
- package/dist/components/KeyValueRow/KeyValueRow.d.mts.map +1 -1
- package/dist/components/KeyValueRow/KeyValueRow.mjs +42 -63
- package/dist/components/KeyValueRow/KeyValueRow.mjs.map +1 -1
- package/dist/components/KeyValueRow/KeyValueRow.types.cjs +0 -26
- package/dist/components/KeyValueRow/KeyValueRow.types.cjs.map +1 -1
- package/dist/components/KeyValueRow/KeyValueRow.types.d.cts +14 -174
- package/dist/components/KeyValueRow/KeyValueRow.types.d.cts.map +1 -1
- package/dist/components/KeyValueRow/KeyValueRow.types.d.mts +14 -174
- package/dist/components/KeyValueRow/KeyValueRow.types.d.mts.map +1 -1
- package/dist/components/KeyValueRow/KeyValueRow.types.mjs +1 -25
- package/dist/components/KeyValueRow/KeyValueRow.types.mjs.map +1 -1
- package/dist/components/KeyValueRow/index.cjs +3 -7
- package/dist/components/KeyValueRow/index.cjs.map +1 -1
- package/dist/components/KeyValueRow/index.d.cts +3 -2
- package/dist/components/KeyValueRow/index.d.cts.map +1 -1
- package/dist/components/KeyValueRow/index.d.mts +3 -2
- package/dist/components/KeyValueRow/index.d.mts.map +1 -1
- package/dist/components/KeyValueRow/index.mjs +2 -2
- package/dist/components/KeyValueRow/index.mjs.map +1 -1
- package/dist/components/Text/Text.cjs +5 -5
- package/dist/components/Text/Text.cjs.map +1 -1
- package/dist/components/Text/Text.constants.cjs +20 -25
- package/dist/components/Text/Text.constants.cjs.map +1 -1
- package/dist/components/Text/Text.constants.d.cts +2 -2
- package/dist/components/Text/Text.constants.d.cts.map +1 -1
- package/dist/components/Text/Text.constants.d.mts +2 -2
- package/dist/components/Text/Text.constants.d.mts.map +1 -1
- package/dist/components/Text/Text.constants.mjs +16 -21
- package/dist/components/Text/Text.constants.mjs.map +1 -1
- package/dist/components/Text/Text.d.cts.map +1 -1
- package/dist/components/Text/Text.d.mts.map +1 -1
- package/dist/components/Text/Text.mjs +3 -3
- package/dist/components/Text/Text.mjs.map +1 -1
- package/dist/components/Text/Text.types.cjs.map +1 -1
- package/dist/components/Text/Text.types.d.cts +3 -35
- package/dist/components/Text/Text.types.d.cts.map +1 -1
- package/dist/components/Text/Text.types.d.mts +3 -35
- package/dist/components/Text/Text.types.d.mts.map +1 -1
- package/dist/components/Text/Text.types.mjs.map +1 -1
- package/dist/components/Text/index.cjs +7 -7
- package/dist/components/Text/index.cjs.map +1 -1
- package/dist/components/Text/index.d.cts +1 -1
- package/dist/components/Text/index.d.cts.map +1 -1
- package/dist/components/Text/index.d.mts +1 -1
- package/dist/components/Text/index.d.mts.map +1 -1
- package/dist/components/Text/index.mjs +1 -1
- package/dist/components/Text/index.mjs.map +1 -1
- package/dist/components/TextButton/TextButton.cjs +3 -3
- package/dist/components/TextButton/TextButton.cjs.map +1 -1
- package/dist/components/TextButton/TextButton.d.cts.map +1 -1
- package/dist/components/TextButton/TextButton.d.mts.map +1 -1
- package/dist/components/TextButton/TextButton.mjs +1 -1
- package/dist/components/TextButton/TextButton.mjs.map +1 -1
- package/dist/components/TextField/TextField.cjs +2 -2
- package/dist/components/TextField/TextField.cjs.map +1 -1
- package/dist/components/TextField/TextField.d.cts.map +1 -1
- package/dist/components/TextField/TextField.d.mts.map +1 -1
- package/dist/components/TextField/TextField.mjs +1 -1
- package/dist/components/TextField/TextField.mjs.map +1 -1
- package/dist/components/index.cjs +16 -7
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +10 -4
- package/dist/components/index.d.cts.map +1 -1
- package/dist/components/index.d.mts +10 -4
- package/dist/components/index.d.mts.map +1 -1
- package/dist/components/index.mjs +5 -2
- package/dist/components/index.mjs.map +1 -1
- package/dist/types/index.cjs +177 -467
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.cts +174 -443
- package/dist/types/index.d.cts.map +1 -1
- package/dist/types/index.d.mts +174 -443
- package/dist/types/index.d.mts.map +1 -1
- package/dist/types/index.mjs +172 -461
- package/dist/types/index.mjs.map +1 -1
- package/package.json +6 -7
- package/dist/components/BoxHorizontal/BoxHorizontal.cjs.map +0 -1
- package/dist/components/BoxHorizontal/BoxHorizontal.d.cts +0 -7
- package/dist/components/BoxHorizontal/BoxHorizontal.d.cts.map +0 -1
- package/dist/components/BoxHorizontal/BoxHorizontal.d.mts +0 -7
- package/dist/components/BoxHorizontal/BoxHorizontal.d.mts.map +0 -1
- package/dist/components/BoxHorizontal/BoxHorizontal.mjs.map +0 -1
- package/dist/components/BoxHorizontal/BoxHorizontal.types.cjs.map +0 -1
- package/dist/components/BoxHorizontal/BoxHorizontal.types.d.cts +0 -13
- package/dist/components/BoxHorizontal/BoxHorizontal.types.d.cts.map +0 -1
- package/dist/components/BoxHorizontal/BoxHorizontal.types.d.mts +0 -13
- package/dist/components/BoxHorizontal/BoxHorizontal.types.d.mts.map +0 -1
- package/dist/components/BoxHorizontal/BoxHorizontal.types.mjs +0 -2
- package/dist/components/BoxHorizontal/BoxHorizontal.types.mjs.map +0 -1
- package/dist/components/BoxHorizontal/index.cjs +0 -6
- package/dist/components/BoxHorizontal/index.cjs.map +0 -1
- package/dist/components/BoxHorizontal/index.d.cts +0 -3
- package/dist/components/BoxHorizontal/index.d.cts.map +0 -1
- package/dist/components/BoxHorizontal/index.d.mts +0 -3
- package/dist/components/BoxHorizontal/index.d.mts.map +0 -1
- package/dist/components/BoxHorizontal/index.mjs +0 -2
- package/dist/components/BoxHorizontal/index.mjs.map +0 -1
- package/dist/components/BoxVertical/BoxVertical.cjs.map +0 -1
- package/dist/components/BoxVertical/BoxVertical.d.cts +0 -7
- package/dist/components/BoxVertical/BoxVertical.d.cts.map +0 -1
- package/dist/components/BoxVertical/BoxVertical.d.mts +0 -7
- package/dist/components/BoxVertical/BoxVertical.d.mts.map +0 -1
- package/dist/components/BoxVertical/BoxVertical.mjs.map +0 -1
- package/dist/components/BoxVertical/BoxVertical.types.cjs.map +0 -1
- package/dist/components/BoxVertical/BoxVertical.types.d.cts +0 -13
- package/dist/components/BoxVertical/BoxVertical.types.d.cts.map +0 -1
- package/dist/components/BoxVertical/BoxVertical.types.d.mts +0 -13
- package/dist/components/BoxVertical/BoxVertical.types.d.mts.map +0 -1
- package/dist/components/BoxVertical/BoxVertical.types.mjs +0 -2
- package/dist/components/BoxVertical/BoxVertical.types.mjs.map +0 -1
- package/dist/components/BoxVertical/index.cjs +0 -6
- package/dist/components/BoxVertical/index.cjs.map +0 -1
- package/dist/components/BoxVertical/index.d.cts +0 -3
- package/dist/components/BoxVertical/index.d.cts.map +0 -1
- package/dist/components/BoxVertical/index.d.mts +0 -3
- package/dist/components/BoxVertical/index.d.mts.map +0 -1
- package/dist/components/BoxVertical/index.mjs +0 -2
- package/dist/components/BoxVertical/index.mjs.map +0 -1
- package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.cjs +0 -34
- package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.cjs.map +0 -1
- package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.cts +0 -13
- package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.cts.map +0 -1
- package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.mts +0 -13
- package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.d.mts.map +0 -1
- package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.mjs +0 -34
- package/dist/components/KeyValueRow/KeyValueLabel/KeyValueLabel.mjs.map +0 -1
- package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.cjs +0 -40
- package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.cjs.map +0 -1
- package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.cts +0 -24
- package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.cts.map +0 -1
- package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.mts +0 -24
- package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.d.mts.map +0 -1
- package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.mjs +0 -40
- package/dist/components/KeyValueRow/KeyValueRoot/KeyValueRoot.mjs.map +0 -1
- package/dist/components/KeyValueRow/KeyValueRow.utils.cjs +0 -6
- package/dist/components/KeyValueRow/KeyValueRow.utils.cjs.map +0 -1
- package/dist/components/KeyValueRow/KeyValueRow.utils.d.cts +0 -3
- package/dist/components/KeyValueRow/KeyValueRow.utils.d.cts.map +0 -1
- package/dist/components/KeyValueRow/KeyValueRow.utils.d.mts +0 -3
- package/dist/components/KeyValueRow/KeyValueRow.utils.d.mts.map +0 -1
- package/dist/components/KeyValueRow/KeyValueRow.utils.mjs +0 -2
- package/dist/components/KeyValueRow/KeyValueRow.utils.mjs.map +0 -1
- package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.cjs +0 -30
- package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.cjs.map +0 -1
- package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.cts +0 -16
- package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.cts.map +0 -1
- package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.mts +0 -16
- package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.d.mts.map +0 -1
- package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.mjs +0 -30
- package/dist/components/KeyValueRow/KeyValueSection/KeyValueSection.mjs.map +0 -1
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { KeyValueRowRootProps } from "../KeyValueRow.types.cjs";
|
|
3
|
-
/**
|
|
4
|
-
* The main container for the KeyValueRow component.
|
|
5
|
-
* When creating custom KeyValueRow components, this must be the outermost component
|
|
6
|
-
* wrapping the two <KeyValueSection/> components.
|
|
7
|
-
*
|
|
8
|
-
* e.g.
|
|
9
|
-
* ```
|
|
10
|
-
* <KeyValueRowRoot>
|
|
11
|
-
* <KeyValueSection></KeyValueSection>
|
|
12
|
-
* <KeyValueSection></KeyValueSection>
|
|
13
|
-
* </KeyValueRowRoot>
|
|
14
|
-
* ```
|
|
15
|
-
*
|
|
16
|
-
* @param props - Component props.
|
|
17
|
-
* @param props.children - The two <KeyValueSection> children.
|
|
18
|
-
* @param props.twClassName - Optional Tailwind class names to override root styles.
|
|
19
|
-
* @param props.style - Optional additional styles for the root element.
|
|
20
|
-
*
|
|
21
|
-
* @returns The rendered Root component.
|
|
22
|
-
*/
|
|
23
|
-
export declare const KeyValueRowRoot: React.FC<KeyValueRowRootProps>;
|
|
24
|
-
//# sourceMappingURL=KeyValueRoot.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValueRoot.d.cts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueRoot/KeyValueRoot.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAG1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,iCAA6B;AAEjE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAsB1D,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { KeyValueRowRootProps } from "../KeyValueRow.types.mjs";
|
|
3
|
-
/**
|
|
4
|
-
* The main container for the KeyValueRow component.
|
|
5
|
-
* When creating custom KeyValueRow components, this must be the outermost component
|
|
6
|
-
* wrapping the two <KeyValueSection/> components.
|
|
7
|
-
*
|
|
8
|
-
* e.g.
|
|
9
|
-
* ```
|
|
10
|
-
* <KeyValueRowRoot>
|
|
11
|
-
* <KeyValueSection></KeyValueSection>
|
|
12
|
-
* <KeyValueSection></KeyValueSection>
|
|
13
|
-
* </KeyValueRowRoot>
|
|
14
|
-
* ```
|
|
15
|
-
*
|
|
16
|
-
* @param props - Component props.
|
|
17
|
-
* @param props.children - The two <KeyValueSection> children.
|
|
18
|
-
* @param props.twClassName - Optional Tailwind class names to override root styles.
|
|
19
|
-
* @param props.style - Optional additional styles for the root element.
|
|
20
|
-
*
|
|
21
|
-
* @returns The rendered Root component.
|
|
22
|
-
*/
|
|
23
|
-
export declare const KeyValueRowRoot: React.FC<KeyValueRowRootProps>;
|
|
24
|
-
//# sourceMappingURL=KeyValueRoot.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValueRoot.d.mts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueRoot/KeyValueRoot.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAG1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,iCAA6B;AAEjE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAsB1D,CAAC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
function $importDefault(module) {
|
|
2
|
-
if (module?.__esModule) {
|
|
3
|
-
return module.default;
|
|
4
|
-
}
|
|
5
|
-
return module;
|
|
6
|
-
}
|
|
7
|
-
import { useTailwind } from "@metamask-previews/design-system-twrnc-preset";
|
|
8
|
-
import $React from "react";
|
|
9
|
-
const React = $importDefault($React);
|
|
10
|
-
import { View } from "react-native/index.js";
|
|
11
|
-
/**
|
|
12
|
-
* The main container for the KeyValueRow component.
|
|
13
|
-
* When creating custom KeyValueRow components, this must be the outermost component
|
|
14
|
-
* wrapping the two <KeyValueSection/> components.
|
|
15
|
-
*
|
|
16
|
-
* e.g.
|
|
17
|
-
* ```
|
|
18
|
-
* <KeyValueRowRoot>
|
|
19
|
-
* <KeyValueSection></KeyValueSection>
|
|
20
|
-
* <KeyValueSection></KeyValueSection>
|
|
21
|
-
* </KeyValueRowRoot>
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @param props - Component props.
|
|
25
|
-
* @param props.children - The two <KeyValueSection> children.
|
|
26
|
-
* @param props.twClassName - Optional Tailwind class names to override root styles.
|
|
27
|
-
* @param props.style - Optional additional styles for the root element.
|
|
28
|
-
*
|
|
29
|
-
* @returns The rendered Root component.
|
|
30
|
-
*/
|
|
31
|
-
export const KeyValueRowRoot = ({ children, twClassName, style, ...props }) => {
|
|
32
|
-
const tw = useTailwind();
|
|
33
|
-
return (<View style={[
|
|
34
|
-
tw.style('flex-row justify-between items-center overflow-hidden', twClassName),
|
|
35
|
-
style,
|
|
36
|
-
]} {...props}>
|
|
37
|
-
{children}
|
|
38
|
-
</View>);
|
|
39
|
-
};
|
|
40
|
-
//# sourceMappingURL=KeyValueRoot.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValueRoot.mjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueRoot/KeyValueRoot.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAIpC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,eAAe,GAAmC,CAAC,EAC9D,QAAQ,EACR,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,OAAO,CACL,CAAC,IAAI,CACH,KAAK,CAAC,CAAC;YACL,EAAE,CAAC,KAAK,CACN,uDAAuD,EACvD,WAAW,CACZ;YACD,KAAK;SACN,CAAC,CACF,IAAI,KAAK,CAAC,CAEV;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport type { KeyValueRowRootProps } from '../KeyValueRow.types';\n\n/**\n * The main container for the KeyValueRow component.\n * When creating custom KeyValueRow components, this must be the outermost component\n * wrapping the two <KeyValueSection/> components.\n *\n * e.g.\n * ```\n * <KeyValueRowRoot>\n * <KeyValueSection></KeyValueSection>\n * <KeyValueSection></KeyValueSection>\n * </KeyValueRowRoot>\n * ```\n *\n * @param props - Component props.\n * @param props.children - The two <KeyValueSection> children.\n * @param props.twClassName - Optional Tailwind class names to override root styles.\n * @param props.style - Optional additional styles for the root element.\n *\n * @returns The rendered Root component.\n */\nexport const KeyValueRowRoot: React.FC<KeyValueRowRootProps> = ({\n children,\n twClassName,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n\n return (\n <View\n style={[\n tw.style(\n 'flex-row justify-between items-center overflow-hidden',\n twClassName,\n ),\n style,\n ]}\n {...props}\n >\n {children}\n </View>\n );\n};\n"]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isPreDefinedKeyValueRowLabel = void 0;
|
|
4
|
-
const isPreDefinedKeyValueRowLabel = (label) => label !== null && typeof label === 'object' && 'text' in label;
|
|
5
|
-
exports.isPreDefinedKeyValueRowLabel = isPreDefinedKeyValueRowLabel;
|
|
6
|
-
//# sourceMappingURL=KeyValueRow.utils.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValueRow.utils.cjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.utils.ts"],"names":[],"mappings":";;;AAKO,MAAM,4BAA4B,GAAG,CAC1C,KAAqC,EACA,EAAE,CACvC,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,IAAI,KAAK,CAAC;AAHpD,QAAA,4BAA4B,gCAGwB","sourcesContent":["import {\n KeyValueRowLabelProps,\n PreDefinedKeyValueRowLabel,\n} from './KeyValueRow.types';\n\nexport const isPreDefinedKeyValueRowLabel = (\n label: KeyValueRowLabelProps['label'],\n): label is PreDefinedKeyValueRowLabel =>\n label !== null && typeof label === 'object' && 'text' in label;\n"]}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { KeyValueRowLabelProps, PreDefinedKeyValueRowLabel } from "./KeyValueRow.types.cjs";
|
|
2
|
-
export declare const isPreDefinedKeyValueRowLabel: (label: KeyValueRowLabelProps['label']) => label is PreDefinedKeyValueRowLabel;
|
|
3
|
-
//# sourceMappingURL=KeyValueRow.utils.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValueRow.utils.d.cts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,0BAA0B,EAC3B,gCAA4B;AAE7B,eAAO,MAAM,4BAA4B,UAChC,qBAAqB,CAAC,OAAO,CAAC,wCAEyB,CAAC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { KeyValueRowLabelProps, PreDefinedKeyValueRowLabel } from "./KeyValueRow.types.mjs";
|
|
2
|
-
export declare const isPreDefinedKeyValueRowLabel: (label: KeyValueRowLabelProps['label']) => label is PreDefinedKeyValueRowLabel;
|
|
3
|
-
//# sourceMappingURL=KeyValueRow.utils.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValueRow.utils.d.mts","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,0BAA0B,EAC3B,gCAA4B;AAE7B,eAAO,MAAM,4BAA4B,UAChC,qBAAqB,CAAC,OAAO,CAAC,wCAEyB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValueRow.utils.mjs","sourceRoot":"","sources":["../../../src/components/KeyValueRow/KeyValueRow.utils.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAC1C,KAAqC,EACA,EAAE,CACvC,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,IAAI,KAAK,CAAC","sourcesContent":["import {\n KeyValueRowLabelProps,\n PreDefinedKeyValueRowLabel,\n} from './KeyValueRow.types';\n\nexport const isPreDefinedKeyValueRowLabel = (\n label: KeyValueRowLabelProps['label'],\n): label is PreDefinedKeyValueRowLabel =>\n label !== null && typeof label === 'object' && 'text' in label;\n"]}
|
|
@@ -1,30 +0,0 @@
|
|
|
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.KeyValueSection = void 0;
|
|
7
|
-
const design_system_twrnc_preset_1 = require("@metamask-previews/design-system-twrnc-preset");
|
|
8
|
-
const react_1 = __importDefault(require("react"));
|
|
9
|
-
const react_native_1 = require("react-native/index.js");
|
|
10
|
-
const KeyValueRow_types_1 = require("../KeyValueRow.types.cjs");
|
|
11
|
-
/**
|
|
12
|
-
* A container representing either the left or right side of the KeyValueRow.
|
|
13
|
-
* For desired results, use only two <KeyValueSection> components within the <KeyValueRowRoot>.
|
|
14
|
-
*
|
|
15
|
-
* @param props - Component props.
|
|
16
|
-
* @param props.children - The child components.
|
|
17
|
-
* @param props.align - The alignment of the section.
|
|
18
|
-
* @param props.twClassName - Optional Tailwind class names to override root styles.
|
|
19
|
-
* @param props.style - Optional additional styles for the root element.
|
|
20
|
-
*
|
|
21
|
-
* @returns The rendered KeyValueSection component.
|
|
22
|
-
*/
|
|
23
|
-
const KeyValueSection = ({ children, align = KeyValueRow_types_1.KeyValueRowSectionAlignments.Left, twClassName, style, ...props }) => {
|
|
24
|
-
const tw = (0, design_system_twrnc_preset_1.useTailwind)();
|
|
25
|
-
return (<react_native_1.View style={[tw.style('flex-1', align, twClassName), style]} {...props}>
|
|
26
|
-
{children}
|
|
27
|
-
</react_native_1.View>);
|
|
28
|
-
};
|
|
29
|
-
exports.KeyValueSection = KeyValueSection;
|
|
30
|
-
//# sourceMappingURL=KeyValueSection.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValueSection.cjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueSection/KeyValueSection.tsx"],"names":[],"mappings":";;;;;;AAAA,8FAA4E;AAC5E,kDAA0B;AAC1B,wDAAoC;AAEpC,gEAAoE;AAGpE;;;;;;;;;;;GAWG;AACI,MAAM,eAAe,GAAmC,CAAC,EAC9D,QAAQ,EACR,KAAK,GAAG,gDAA4B,CAAC,IAAI,EACzC,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,OAAO,CACL,CAAC,mBAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CACtE;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAdW,QAAA,eAAe,mBAc1B","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { KeyValueRowSectionAlignments } from '../KeyValueRow.types';\nimport type { KeyValueSectionProps } from '../KeyValueRow.types';\n\n/**\n * A container representing either the left or right side of the KeyValueRow.\n * For desired results, use only two <KeyValueSection> components within the <KeyValueRowRoot>.\n *\n * @param props - Component props.\n * @param props.children - The child components.\n * @param props.align - The alignment of the section.\n * @param props.twClassName - Optional Tailwind class names to override root styles.\n * @param props.style - Optional additional styles for the root element.\n *\n * @returns The rendered KeyValueSection component.\n */\nexport const KeyValueSection: React.FC<KeyValueSectionProps> = ({\n children,\n align = KeyValueRowSectionAlignments.Left,\n twClassName,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n\n return (\n <View style={[tw.style('flex-1', align, twClassName), style]} {...props}>\n {children}\n </View>\n );\n};\n"]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { KeyValueSectionProps } from "../KeyValueRow.types.cjs";
|
|
3
|
-
/**
|
|
4
|
-
* A container representing either the left or right side of the KeyValueRow.
|
|
5
|
-
* For desired results, use only two <KeyValueSection> components within the <KeyValueRowRoot>.
|
|
6
|
-
*
|
|
7
|
-
* @param props - Component props.
|
|
8
|
-
* @param props.children - The child components.
|
|
9
|
-
* @param props.align - The alignment of the section.
|
|
10
|
-
* @param props.twClassName - Optional Tailwind class names to override root styles.
|
|
11
|
-
* @param props.style - Optional additional styles for the root element.
|
|
12
|
-
*
|
|
13
|
-
* @returns The rendered KeyValueSection component.
|
|
14
|
-
*/
|
|
15
|
-
export declare const KeyValueSection: React.FC<KeyValueSectionProps>;
|
|
16
|
-
//# sourceMappingURL=KeyValueSection.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValueSection.d.cts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueSection/KeyValueSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,iCAA6B;AAEjE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAc1D,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { KeyValueSectionProps } from "../KeyValueRow.types.mjs";
|
|
3
|
-
/**
|
|
4
|
-
* A container representing either the left or right side of the KeyValueRow.
|
|
5
|
-
* For desired results, use only two <KeyValueSection> components within the <KeyValueRowRoot>.
|
|
6
|
-
*
|
|
7
|
-
* @param props - Component props.
|
|
8
|
-
* @param props.children - The child components.
|
|
9
|
-
* @param props.align - The alignment of the section.
|
|
10
|
-
* @param props.twClassName - Optional Tailwind class names to override root styles.
|
|
11
|
-
* @param props.style - Optional additional styles for the root element.
|
|
12
|
-
*
|
|
13
|
-
* @returns The rendered KeyValueSection component.
|
|
14
|
-
*/
|
|
15
|
-
export declare const KeyValueSection: React.FC<KeyValueSectionProps>;
|
|
16
|
-
//# sourceMappingURL=KeyValueSection.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValueSection.d.mts","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueSection/KeyValueSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,iCAA6B;AAEjE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAc1D,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
function $importDefault(module) {
|
|
2
|
-
if (module?.__esModule) {
|
|
3
|
-
return module.default;
|
|
4
|
-
}
|
|
5
|
-
return module;
|
|
6
|
-
}
|
|
7
|
-
import { useTailwind } from "@metamask-previews/design-system-twrnc-preset";
|
|
8
|
-
import $React from "react";
|
|
9
|
-
const React = $importDefault($React);
|
|
10
|
-
import { View } from "react-native/index.js";
|
|
11
|
-
import { KeyValueRowSectionAlignments } from "../KeyValueRow.types.mjs";
|
|
12
|
-
/**
|
|
13
|
-
* A container representing either the left or right side of the KeyValueRow.
|
|
14
|
-
* For desired results, use only two <KeyValueSection> components within the <KeyValueRowRoot>.
|
|
15
|
-
*
|
|
16
|
-
* @param props - Component props.
|
|
17
|
-
* @param props.children - The child components.
|
|
18
|
-
* @param props.align - The alignment of the section.
|
|
19
|
-
* @param props.twClassName - Optional Tailwind class names to override root styles.
|
|
20
|
-
* @param props.style - Optional additional styles for the root element.
|
|
21
|
-
*
|
|
22
|
-
* @returns The rendered KeyValueSection component.
|
|
23
|
-
*/
|
|
24
|
-
export const KeyValueSection = ({ children, align = KeyValueRowSectionAlignments.Left, twClassName, style, ...props }) => {
|
|
25
|
-
const tw = useTailwind();
|
|
26
|
-
return (<View style={[tw.style('flex-1', align, twClassName), style]} {...props}>
|
|
27
|
-
{children}
|
|
28
|
-
</View>);
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=KeyValueSection.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KeyValueSection.mjs","sourceRoot":"","sources":["../../../../src/components/KeyValueRow/KeyValueSection/KeyValueSection.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,IAAI,EAAE,8BAAqB;AAEpC,OAAO,EAAE,4BAA4B,EAAE,iCAA6B;AAGpE;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,eAAe,GAAmC,CAAC,EAC9D,QAAQ,EACR,KAAK,GAAG,4BAA4B,CAAC,IAAI,EACzC,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CACtE;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { KeyValueRowSectionAlignments } from '../KeyValueRow.types';\nimport type { KeyValueSectionProps } from '../KeyValueRow.types';\n\n/**\n * A container representing either the left or right side of the KeyValueRow.\n * For desired results, use only two <KeyValueSection> components within the <KeyValueRowRoot>.\n *\n * @param props - Component props.\n * @param props.children - The child components.\n * @param props.align - The alignment of the section.\n * @param props.twClassName - Optional Tailwind class names to override root styles.\n * @param props.style - Optional additional styles for the root element.\n *\n * @returns The rendered KeyValueSection component.\n */\nexport const KeyValueSection: React.FC<KeyValueSectionProps> = ({\n children,\n align = KeyValueRowSectionAlignments.Left,\n twClassName,\n style,\n ...props\n}) => {\n const tw = useTailwind();\n\n return (\n <View style={[tw.style('flex-1', align, twClassName), style]} {...props}>\n {children}\n </View>\n );\n};\n"]}
|