@metamask-previews/design-system-react-native 0.14.0-preview.dff9dce → 0.16.0-preview.d854123
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 +29 -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 +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/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 +4 -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 +2 -2
- package/dist/components/BannerBase/BannerBase.mjs.map +1 -1
- package/dist/components/{BoxVertical/BoxVertical.cjs → BoxColumn/BoxColumn.cjs} +5 -5
- 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} +3 -3
- 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} +5 -5
- 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} +3 -3
- 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/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 +286 -280
- 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 +8 -2
- 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 -2
- package/dist/components/Icon/Icon.types.d.cts.map +1 -1
- package/dist/components/Icon/Icon.types.d.mts +2 -2
- 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/no-photography.svg +1 -0
- 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/Input/Input.cjs +3 -3
- 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 +1 -1
- 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 +43 -0
- package/dist/components/KeyValueColumn/KeyValueColumn.cjs.map +1 -0
- package/dist/components/KeyValueColumn/KeyValueColumn.d.cts +7 -0
- package/dist/components/KeyValueColumn/KeyValueColumn.d.cts.map +1 -0
- package/dist/components/KeyValueColumn/KeyValueColumn.d.mts +7 -0
- package/dist/components/KeyValueColumn/KeyValueColumn.d.mts.map +1 -0
- package/dist/components/KeyValueColumn/KeyValueColumn.mjs +43 -0
- package/dist/components/KeyValueColumn/KeyValueColumn.mjs.map +1 -0
- package/dist/components/KeyValueColumn/KeyValueColumn.types.cjs +3 -0
- package/dist/components/KeyValueColumn/KeyValueColumn.types.cjs.map +1 -0
- package/dist/components/KeyValueColumn/KeyValueColumn.types.d.cts +17 -0
- package/dist/components/KeyValueColumn/KeyValueColumn.types.d.cts.map +1 -0
- package/dist/components/KeyValueColumn/KeyValueColumn.types.d.mts +17 -0
- package/dist/components/KeyValueColumn/KeyValueColumn.types.d.mts.map +1 -0
- package/dist/components/KeyValueColumn/KeyValueColumn.types.mjs +2 -0
- package/dist/components/KeyValueColumn/KeyValueColumn.types.mjs.map +1 -0
- package/dist/components/KeyValueColumn/index.cjs +6 -0
- package/dist/components/KeyValueColumn/index.cjs.map +1 -0
- package/dist/components/KeyValueColumn/index.d.cts +3 -0
- package/dist/components/KeyValueColumn/index.d.cts.map +1 -0
- package/dist/components/KeyValueColumn/index.d.mts +3 -0
- package/dist/components/KeyValueColumn/index.d.mts.map +1 -0
- package/dist/components/KeyValueColumn/index.mjs +2 -0
- package/dist/components/KeyValueColumn/index.mjs.map +1 -0
- 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 +4 -4
- package/dist/components/Text/Text.cjs.map +1 -1
- package/dist/components/Text/Text.constants.cjs +23 -18
- package/dist/components/Text/Text.constants.cjs.map +1 -1
- package/dist/components/Text/Text.constants.d.cts +1 -1
- package/dist/components/Text/Text.constants.d.cts.map +1 -1
- package/dist/components/Text/Text.constants.d.mts +1 -1
- package/dist/components/Text/Text.constants.d.mts.map +1 -1
- package/dist/components/Text/Text.constants.mjs +20 -15
- 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 +1 -1
- 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 +17 -3
- package/dist/components/Text/Text.types.d.cts.map +1 -1
- package/dist/components/Text/Text.types.d.mts +17 -3
- 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 +15 -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 +106 -347
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.cts +74 -318
- package/dist/types/index.d.cts.map +1 -1
- package/dist/types/index.d.mts +74 -318
- package/dist/types/index.d.mts.map +1 -1
- package/dist/types/index.mjs +102 -346
- package/dist/types/index.mjs.map +1 -1
- package/package.json +5 -6
- 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.constants.d.mts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"Icon.constants.d.mts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,gDAAgD;AAEnE,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAMnE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.constants.mjs","sourceRoot":"","sources":["../../../src/components/Icon/Icon.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"Icon.constants.mjs","sourceRoot":"","sources":["../../../src/components/Icon/Icon.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,gDAAgD;AAEnE,MAAM,CAAC,MAAM,8BAA8B,GAA6B;IACtE,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,SAAS;IACxB,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,SAAS;IACxB,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,SAAS;IACxB,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,SAAS;IACxB,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,OAAO;CAClC,CAAC","sourcesContent":["import { IconSize } from '@metamask-previews/design-system-shared';\n\nexport const TWCLASSMAP_ICON_SIZE_DIMENSION: Record<IconSize, string> = {\n [IconSize.Xs]: 'w-3 h-3', // 12px\n [IconSize.Sm]: 'w-4 h-4', // 16px\n [IconSize.Md]: 'w-5 h-5', // 20px\n [IconSize.Lg]: 'w-6 h-6', // 24px\n [IconSize.Xl]: 'w-8 h-8', // 32px\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.cts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Icon.d.cts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,SAAS,EAAE,yBAAqB;AAE9C,eAAO,MAAM,IAAI,wDAOd,SAAS,sBAYX,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.mts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Icon.d.mts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,cAAc;AAI1B,OAAO,KAAK,EAAE,SAAS,EAAE,yBAAqB;AAE9C,eAAO,MAAM,IAAI,wDAOd,SAAS,sBAYX,CAAC"}
|
|
@@ -4,10 +4,10 @@ function $importDefault(module) {
|
|
|
4
4
|
}
|
|
5
5
|
return module;
|
|
6
6
|
}
|
|
7
|
+
import { IconColor, IconSize } from "@metamask-previews/design-system-shared";
|
|
7
8
|
import { useTailwind } from "@metamask-previews/design-system-twrnc-preset";
|
|
8
9
|
import $React from "react";
|
|
9
10
|
const React = $importDefault($React);
|
|
10
|
-
import { IconColor, IconSize } from "../../types/index.mjs";
|
|
11
11
|
import { assetByIconName } from "./Icon.assets.mjs";
|
|
12
12
|
import { TWCLASSMAP_ICON_SIZE_DIMENSION } from "./Icon.constants.mjs";
|
|
13
13
|
export const Icon = ({ size = IconSize.Md, name, color = IconColor.IconDefault, twClassName, style, ...props }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.mjs","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Icon.mjs","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,gDAAgD;AAC9E,OAAO,EAAE,WAAW,EAAE,sDAAsD;AAC5E,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,eAAe,EAAE,0BAAsB;AAChD,OAAO,EAAE,8BAA8B,EAAE,6BAAyB;AAGlE,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EACnB,IAAI,GAAG,QAAQ,CAAC,EAAE,EAClB,IAAI,EACJ,KAAK,GAAG,SAAS,CAAC,WAAW,EAC7B,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACE,EAAE,EAAE;IACd,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IACzB,MAAM,GAAG,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IAClC,MAAM,OAAO,GAAG,EAAE,CAAC,KAAK,CACtB,KAAK,EACL,8BAA8B,CAAC,IAAI,CAAC,EACpC,WAAW,CACZ,CAAC;IAEF,OAAO,CACL,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,EAAG,CAC5E,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { IconColor, IconSize } from '@metamask-previews/design-system-shared';\nimport { useTailwind } from '@metamask-previews/design-system-twrnc-preset';\nimport React from 'react';\n\nimport { assetByIconName } from './Icon.assets';\nimport { TWCLASSMAP_ICON_SIZE_DIMENSION } from './Icon.constants';\nimport type { IconProps } from './Icon.types';\n\nexport const Icon = ({\n size = IconSize.Md,\n name,\n color = IconColor.IconDefault,\n twClassName,\n style,\n ...props\n}: IconProps) => {\n const tw = useTailwind();\n const SVG = assetByIconName[name];\n const twStyle = tw.style(\n color,\n TWCLASSMAP_ICON_SIZE_DIMENSION[size],\n twClassName,\n );\n\n return (\n <SVG name={name} fill=\"currentColor\" style={[twStyle, style]} {...props} />\n );\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.types.cjs","sourceRoot":"","sources":["../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":"","sourcesContent":["import type
|
|
1
|
+
{"version":3,"file":"Icon.types.cjs","sourceRoot":"","sources":["../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n IconColor,\n IconName,\n IconPropsShared,\n IconSize,\n} from '@metamask-previews/design-system-shared';\nimport type React from 'react';\nimport type { ViewProps } from 'react-native';\nimport type { SvgProps } from 'react-native-svg';\n\n/**\n * Icon component props.\n */\nexport type IconProps = IconPropsShared & {\n /**\n * Required prop to specify which icon to render from the icon set\n */\n name: IconName;\n /**\n * Optional prop to control the size of the icon\n * Different sizes map to specific pixel dimensions\n *\n * @default IconSize.Md\n */\n size?: IconSize;\n /**\n * Optional prop that sets the color of the icon using predefined theme colors\n *\n * @default IconColor.IconDefault\n */\n color?: IconColor;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & ViewProps;\n\n/**\n * Asset stored by icon name\n */\nexport type AssetByIconName = {\n [key in IconName]: React.FC<SvgProps & { name: string }>;\n};\n"]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import type { IconColor, IconName, IconPropsShared, IconSize } from "@metamask-previews/design-system-shared";
|
|
1
2
|
import type React from "react";
|
|
2
3
|
import type { ViewProps } from "react-native/index.js";
|
|
3
4
|
import type { SvgProps } from "react-native-svg";
|
|
4
|
-
import type { IconColor, IconName, IconSize } from "../../types/index.cjs";
|
|
5
5
|
/**
|
|
6
6
|
* Icon component props.
|
|
7
7
|
*/
|
|
8
|
-
export type IconProps = {
|
|
8
|
+
export type IconProps = IconPropsShared & {
|
|
9
9
|
/**
|
|
10
10
|
* Required prop to specify which icon to render from the icon set
|
|
11
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.types.d.cts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,cAAc;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,yBAAyB;AAEjD
|
|
1
|
+
{"version":3,"file":"Icon.types.d.cts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,QAAQ,EACR,eAAe,EACf,QAAQ,EACT,gDAAgD;AACjD,OAAO,KAAK,KAAK,cAAc;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,yBAAyB;AAEjD;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG;IACxC;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;IACf;;;;;OAKG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC;AAEd;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;KAC3B,GAAG,IAAI,QAAQ,GAAG,KAAK,CAAC,EAAE,CAAC,QAAQ,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CACzD,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import type { IconColor, IconName, IconPropsShared, IconSize } from "@metamask-previews/design-system-shared";
|
|
1
2
|
import type React from "react";
|
|
2
3
|
import type { ViewProps } from "react-native/index.js";
|
|
3
4
|
import type { SvgProps } from "react-native-svg";
|
|
4
|
-
import type { IconColor, IconName, IconSize } from "../../types/index.mjs";
|
|
5
5
|
/**
|
|
6
6
|
* Icon component props.
|
|
7
7
|
*/
|
|
8
|
-
export type IconProps = {
|
|
8
|
+
export type IconProps = IconPropsShared & {
|
|
9
9
|
/**
|
|
10
10
|
* Required prop to specify which icon to render from the icon set
|
|
11
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.types.d.mts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,cAAc;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,yBAAyB;AAEjD
|
|
1
|
+
{"version":3,"file":"Icon.types.d.mts","sourceRoot":"","sources":["../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,QAAQ,EACR,eAAe,EACf,QAAQ,EACT,gDAAgD;AACjD,OAAO,KAAK,KAAK,cAAc;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,8BAAqB;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,yBAAyB;AAEjD;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG;IACxC;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;IACf;;;;;OAKG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,SAAS,CAAC;AAEd;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;KAC3B,GAAG,IAAI,QAAQ,GAAG,KAAK,CAAC,EAAE,CAAC,QAAQ,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CACzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.types.mjs","sourceRoot":"","sources":["../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":"","sourcesContent":["import type
|
|
1
|
+
{"version":3,"file":"Icon.types.mjs","sourceRoot":"","sources":["../../../src/components/Icon/Icon.types.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n IconColor,\n IconName,\n IconPropsShared,\n IconSize,\n} from '@metamask-previews/design-system-shared';\nimport type React from 'react';\nimport type { ViewProps } from 'react-native';\nimport type { SvgProps } from 'react-native-svg';\n\n/**\n * Icon component props.\n */\nexport type IconProps = IconPropsShared & {\n /**\n * Required prop to specify which icon to render from the icon set\n */\n name: IconName;\n /**\n * Optional prop to control the size of the icon\n * Different sizes map to specific pixel dimensions\n *\n * @default IconSize.Md\n */\n size?: IconSize;\n /**\n * Optional prop that sets the color of the icon using predefined theme colors\n *\n * @default IconColor.IconDefault\n */\n color?: IconColor;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n} & ViewProps;\n\n/**\n * Asset stored by icon name\n */\nexport type AssetByIconName = {\n [key in IconName]: React.FC<SvgProps & { name: string }>;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m11.9873 3.9873c-2.23105.00294-4.12144.77965-5.67089 2.32911-1.5524 1.55239-2.32911 3.44701-2.32911 5.68359 0 2.2366.77671 4.1312 2.32911 5.6836 1.54945 1.5494 3.43984 2.3252 5.67089 2.3281v1.9746c-1.377-.0016-2.6715-.2624-3.88281-.7851-1.21513-.5244-2.27214-1.236-3.1709-2.1348-.89875-.8987-1.61038-1.9558-2.13476-3.1709-.5243-1.215-.78613-2.5138-.78613-3.8955s.26183-2.68047.78613-3.89551c.52438-1.21513 1.23601-2.27214 2.13476-3.1709.89876-.89875 1.95577-1.61038 3.1709-2.13476 1.21131-.52269 2.50581-.78453 3.88281-.78613zm3.2627 15.0254c.3468 0 .6396.1191.8789.3584s.3584.5321.3584.8789-.1191.6396-.3584.8789-.5321.3584-.8789.3584-.6396-.1191-.8789-.3584-.3584-.5321-.3584-.8789.1191-.6396.3584-.8789.5321-.3584.8789-.3584zm4-3.5c.3468 0 .6396.1191.8789.3584s.3584.5321.3584.8789-.1191.6396-.3584.8789-.5321.3584-.8789.3584-.6396-.1191-.8789-.3584-.3584-.5321-.3584-.8789.1191-.6396.3584-.8789.5321-.3584.8789-.3584zm-6.2627-8.5v4.5869h-.0049l3.7002 3.7002-1.3828 1.3828-4.2871-4.2871v-5.3828zm7.7627 3.75c.3468 0 .6396.1191.8789.3584s.3584.5321.3584.8789-.1191.6396-.3584.8789-.5321.3584-.8789.3584-.6396-.1191-.8789-.3584-.3584-.5321-.3584-.8789.1191-.6396.3584-.8789.5321-.3584.8789-.3584zm-1.5-4.75c.3468 0 .6396.11913.8789.35839s.3584.53214.3584.87891-.1191.63965-.3584.87891-.5321.35839-.8789.35839-.6396-.11913-.8789-.35839-.3584-.53214-.3584-.87891.1191-.63965.3584-.87891.5321-.35839.8789-.35839zm-4-3.5c.3468 0 .6396.11913.8789.35839s.3584.53214.3584.87891-.1191.63965-.3584.87891-.5321.35839-.8789.35839-.6396-.11913-.8789-.35839-.3584-.53214-.3584-.87891.1191-.63965.3584-.87891.5321-.35839.8789-.35839z" /></svg>
|
|
1
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m11.9873 3.9873c-2.23105.00294-4.12144.77965-5.67089 2.32911-1.5524 1.55239-2.32911 3.44701-2.32911 5.68359 0 2.2366.77671 4.1312 2.32911 5.6836 1.54945 1.5494 3.43984 2.3252 5.67089 2.3281v1.9746c-1.377-.0016-2.6715-.2624-3.88281-.7851-1.21513-.5244-2.27214-1.236-3.1709-2.1348-.89875-.8987-1.61038-1.9558-2.13476-3.1709-.5243-1.215-.78613-2.5138-.78613-3.8955s.26183-2.68047.78613-3.89551c.52438-1.21513 1.23601-2.27214 2.13476-3.1709.89876-.89875 1.95577-1.61038 3.1709-2.13476 1.21131-.52269 2.50581-.78453 3.88281-.78613zm3.2627 15.0254c.3468 0 .6396.1191.8789.3584s.3584.5321.3584.8789-.1191.6396-.3584.8789-.5321.3584-.8789.3584-.6396-.1191-.8789-.3584-.3584-.5321-.3584-.8789.1191-.6396.3584-.8789.5321-.3584.8789-.3584zm4-3.5c.3468 0 .6396.1191.8789.3584s.3584.5321.3584.8789-.1191.6396-.3584.8789-.5321.3584-.8789.3584-.6396-.1191-.8789-.3584-.3584-.5321-.3584-.8789.1191-.6396.3584-.8789.5321-.3584.8789-.3584zm-6.2627-8.5v4.5869h-.0049l3.7002 3.7002-1.3828 1.3828-4.2871-4.2871v-5.3828zm7.7627 3.75c.3468 0 .6396.1191.8789.3584s.3584.5321.3584.8789-.1191.6396-.3584.8789-.5321.3584-.8789.3584-.6396-.1191-.8789-.3584-.3584-.5321-.3584-.8789.1191-.6396.3584-.8789.5321-.3584.8789-.3584zm-1.5-4.75c.3468 0 .6396.11913.8789.35839s.3584.53214.3584.87891-.1191.63965-.3584.87891-.5321.35839-.8789.35839-.6396-.11913-.8789-.35839-.3584-.53214-.3584-.87891.1191-.63965.3584-.87891.5321-.35839.8789-.35839zm-4-3.5c.3468 0 .6396.11913.8789.35839s.3584.53214.3584.87891-.1191.63965-.3584.87891-.5321.35839-.8789.35839-.6396-.11913-.8789-.35839-.3584-.53214-.3584-.87891.1191-.63965.3584-.87891.5321-.35839.8789-.35839z" stroke-width=".025"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m22.0002 19.1248-2-2v-10.12509h-4.05l-1.825-2h-4.24991l-.95 1.05-1.425-1.425 1.5-1.625h5.99991l1.85 2h3.15c.55 0 1.0209.19583 1.4125.5875.3917.39167.5875.8625.5875 1.4125zm-17.99991 1.875c-.55 0-1.02083-.1959-1.4125-.5875-.39167-.3917-.5875-.8625-.5875-1.4125v-12.00009c0-.55.19583-1.02083.5875-1.4125s.8625-.5875 1.4125-.5875h1.025l2 2h-3.025v12.00009h15.02491l2 2zm11.64991-5.375c-.4166.5666-.9375 1.0208-1.5625 1.3625-.625.3416-1.3208.5125-2.0875.5125-1.25 0-2.31241-.4375-3.18741-1.3125s-1.3125-1.9375-1.3125-3.1875c0-.7667.17083-1.4625.5125-2.0875s.79583-1.14592 1.3625-1.56259l1.44991 1.45009c-.4.2166-.7208.5166-.96241.9-.24167.3833-.3625.8166-.3625 1.3 0 .7.24167 1.2916.72491 1.775.4834.4833 1.075.725 1.775.725.4834 0 .9167-.1209 1.3-.3625.3834-.2417.6834-.5625.9-.9625zm-.45-5.82509c.4167.40009.7375.87509.9625 1.42509s.3375 1.1416.3375 1.775v.3c0 .1-.0083.2-.025.3l-5.075-5.07509c.1-.01667.2-.025.3-.025h.3c.6334 0 1.225.1125 1.775.3375s1.025.54583 1.425.9625zm5.275 13.50009-19.799907-19.80009 1.424997-1.425 19.79991 19.80009z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13 14H18V8H13V14ZM4 20C3.45 20 2.97917 19.8042 2.5875 19.4125C2.19583 19.0208 2 18.55 2 18V6C2 5.45 2.19583 4.97917 2.5875 4.5875C2.97917 4.19583 3.45 4 4 4H20C20.55 4 21.0208 4.19583 21.4125 4.5875C21.8042 4.97917 22 5.45 22 6V18C22 18.55 21.8042 19.0208 21.4125 19.4125C21.0208 19.8042 20.55 20 20 20H4ZM4 18H20V6H4V18Z" /></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H19C19.55 3 20.0208 3.19583 20.4125 3.5875C20.8042 3.97917 21 4.45 21 5V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5ZM16 19H19V5H16V19ZM14 19V5H5V19H14Z"/></svg>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Icon = exports.IconSize = exports.IconName = exports.IconColor = void 0;
|
|
4
|
-
var
|
|
5
|
-
Object.defineProperty(exports, "IconColor", { enumerable: true, get: function () { return
|
|
6
|
-
Object.defineProperty(exports, "IconName", { enumerable: true, get: function () { return
|
|
7
|
-
Object.defineProperty(exports, "IconSize", { enumerable: true, get: function () { return
|
|
4
|
+
var design_system_shared_1 = require("@metamask-previews/design-system-shared");
|
|
5
|
+
Object.defineProperty(exports, "IconColor", { enumerable: true, get: function () { return design_system_shared_1.IconColor; } });
|
|
6
|
+
Object.defineProperty(exports, "IconName", { enumerable: true, get: function () { return design_system_shared_1.IconName; } });
|
|
7
|
+
Object.defineProperty(exports, "IconSize", { enumerable: true, get: function () { return design_system_shared_1.IconSize; } });
|
|
8
8
|
var Icon_1 = require("./Icon.cjs");
|
|
9
9
|
Object.defineProperty(exports, "Icon", { enumerable: true, get: function () { return Icon_1.Icon; } });
|
|
10
10
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/Icon/index.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/Icon/index.ts"],"names":[],"mappings":";;;AAAA,gFAAwF;AAA/E,iHAAA,SAAS,OAAA;AAAE,gHAAA,QAAQ,OAAA;AAAE,gHAAA,QAAQ,OAAA;AACtC,mCAA8B;AAArB,4FAAA,IAAI,OAAA","sourcesContent":["export { IconColor, IconName, IconSize } from '@metamask-previews/design-system-shared';\nexport { Icon } from './Icon';\nexport type { IconProps } from './Icon.types';\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { IconColor, IconName, IconSize } from "
|
|
1
|
+
export { IconColor, IconName, IconSize } from "@metamask-previews/design-system-shared";
|
|
2
2
|
export { Icon } from "./Icon.cjs";
|
|
3
3
|
export type { IconProps } from "./Icon.types.cjs";
|
|
4
4
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/Icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/Icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,gDAAgD;AACxF,OAAO,EAAE,IAAI,EAAE,mBAAe;AAC9B,YAAY,EAAE,SAAS,EAAE,yBAAqB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { IconColor, IconName, IconSize } from "
|
|
1
|
+
export { IconColor, IconName, IconSize } from "@metamask-previews/design-system-shared";
|
|
2
2
|
export { Icon } from "./Icon.mjs";
|
|
3
3
|
export type { IconProps } from "./Icon.types.mjs";
|
|
4
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/Icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/Icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,gDAAgD;AACxF,OAAO,EAAE,IAAI,EAAE,mBAAe;AAC9B,YAAY,EAAE,SAAS,EAAE,yBAAqB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/Icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/Icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,gDAAgD;AACxF,OAAO,EAAE,IAAI,EAAE,mBAAe","sourcesContent":["export { IconColor, IconName, IconSize } from '@metamask-previews/design-system-shared';\nexport { Icon } from './Icon';\nexport type { IconProps } from './Icon.types';\n"]}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Input = void 0;
|
|
4
|
-
const design_system_shared_1 = require("@metamask-previews/design-system-shared");
|
|
5
4
|
const design_system_twrnc_preset_1 = require("@metamask-previews/design-system-twrnc-preset");
|
|
6
5
|
const design_tokens_1 = require("@metamask-previews/design-tokens");
|
|
7
6
|
const react_1 = require("react");
|
|
8
7
|
const react_native_1 = require("react-native/index.js");
|
|
8
|
+
const types_1 = require("../../types/index.cjs");
|
|
9
9
|
const Text_constants_1 = require("../Text/Text.constants.cjs");
|
|
10
10
|
const Input_constants_1 = require("./Input.constants.cjs");
|
|
11
|
-
exports.Input = (0, react_1.forwardRef)(({ style, textVariant =
|
|
11
|
+
exports.Input = (0, react_1.forwardRef)(({ style, textVariant = types_1.TextVariant.BodyMd, isStateStylesDisabled, isDisabled = false, isReadonly = false, value, placeholder, twClassName, onBlur, onFocus, autoFocus = false, ...props }, ref) => {
|
|
12
12
|
const [isFocused, setIsFocused] = (0, react_1.useState)(autoFocus);
|
|
13
13
|
const tw = (0, design_system_twrnc_preset_1.useTailwind)();
|
|
14
14
|
const theme = (0, design_system_twrnc_preset_1.useTheme)();
|
|
@@ -17,7 +17,7 @@ exports.Input = (0, react_1.forwardRef)(({ style, textVariant = design_system_sh
|
|
|
17
17
|
: design_tokens_1.darkTheme.colors.text.alternative, [theme]);
|
|
18
18
|
const finalFontWeight = Text_constants_1.MAP_TEXT_VARIANT_FONTWEIGHT[textVariant];
|
|
19
19
|
const fontSuffix = Text_constants_1.TWCLASSMAP_TEXT_FONTWEIGHT[finalFontWeight];
|
|
20
|
-
const fontClass = `font-${
|
|
20
|
+
const fontClass = `font-${types_1.FontFamily.Default}${fontSuffix}`;
|
|
21
21
|
const hasPlaceholder = placeholder !== undefined && placeholder !== null && placeholder !== '';
|
|
22
22
|
// Only apply placeholder-mode styling when a placeholder is present and
|
|
23
23
|
// the controlled value is empty. This keeps the iOS lineHeight workaround
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.cjs","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"Input.cjs","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":";;;AAAA,8FAIuD;AACvD,oEAAyE;AACzE,iCAAmE;AACnE,wDAAmD;AAEnD,iDAAsD;AACtD,+DAGgC;AAEhC,2DAAmE;AAGtD,QAAA,KAAK,GAAG,IAAA,kBAAU,EAC7B,CACE,EACE,KAAK,EACL,WAAW,GAAG,mBAAW,CAAC,MAAM,EAChC,qBAAqB,EACrB,UAAU,GAAG,KAAK,EAClB,UAAU,GAAG,KAAK,EAClB,KAAK,EACL,WAAW,EACX,WAAW,EACX,MAAM,EACN,OAAO,EACP,SAAS,GAAG,KAAK,EACjB,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAC,SAAS,CAAC,CAAC;IACtD,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IACzB,MAAM,KAAK,GAAG,IAAA,qCAAQ,GAAE,CAAC;IAEzB,MAAM,oBAAoB,GAAG,IAAA,eAAO,EAClC,GAAG,EAAE,CACH,KAAK,KAAK,kCAAK,CAAC,KAAK;QACnB,CAAC,CAAC,0BAAU,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW;QACpC,CAAC,CAAC,yBAAS,CAAC,MAAM,CAAC,I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ChC,CAAC,CAAoD,EAAE,EAAE;QACvD,IAAI,CAAC,UAAU,EAAE;YACf,YAAY,CAAC,IAAI,CAAC,CAAC;YACnB,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;SACd;IACH,CAAC,EACD,CAAC,UAAU,EAAE,OAAO,CAAC,CACtB,CAAC;IACF,MAAM,aAAa,GAAG;QACpB,UAAU;QACV,gBAAgB;QAChB,iEAAiE;QACjE,2DAA2D;QAC3D,yEAAyE;QACzE,uBAAQ,CAAC,EAAE,KAAK,KAAK;YACnB,oBAAoB,IAAI,EAAE,UAAU,EAAE,CAAU,EAAE;QACpD,KAAK;KACN,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAElB,OAAO,CACL,CAAC,wBAAS,CACR,GAAG,CAAC,CAAC,GAAG,CAAC,CACT,oBAAoB,CAAC,CAAC,oBAAoB,CAAC,CAC3C,IAAI,KAAK,CAAC,CACV,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,KAAK,CAAC,CAAC,aAAa,CAAC,CACrB,QAAQ,CAAC,CAAC,CAAC,UAAU,IAAI,CAAC,UAAU,CAAC,CACrC,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,MAAM,CAAC,CAAC,aAAa,CAAC,CACtB,OAAO,CAAC,CAAC,cAAc,CAAC,EACxB,CACH,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["import {\n Theme,\n useTailwind,\n useTheme,\n} from '@metamask-previews/design-system-twrnc-preset';\nimport { darkTheme, lightTheme } from '@metamask-previews/design-tokens';\nimport { forwardRef, useCallback, useMemo, useState } from 'react';\nimport { Platform, TextInput } from 'react-native';\n\nimport { FontFamily, TextVariant } from '../../types';\nimport {\n MAP_TEXT_VARIANT_FONTWEIGHT,\n TWCLASSMAP_TEXT_FONTWEIGHT,\n} from '../Text/Text.constants';\n\nimport { MAP_TEXT_VARIANT_INPUT_METRICS } from './Input.constants';\nimport type { InputProps } from './Input.types';\n\nexport const Input = forwardRef<TextInput, InputProps>(\n (\n {\n style,\n textVariant = TextVariant.BodyMd,\n isStateStylesDisabled,\n isDisabled = false,\n isReadonly = false,\n value,\n placeholder,\n twClassName,\n onBlur,\n onFocus,\n autoFocus = false,\n ...props\n },\n ref,\n ) => {\n const [isFocused, setIsFocused] = useState(autoFocus);\n const tw = useTailwind();\n const theme = useTheme();\n\n const placeholderTextColor = useMemo(\n () =>\n theme === Theme.Light\n ? lightTheme.colors.text.alternative\n : darkTheme.colors.text.alternative,\n [theme],\n );\n\n const finalFontWeight = MAP_TEXT_VARIANT_FONTWEIGHT[textVariant];\n const fontSuffix = TWCLASSMAP_TEXT_FONTWEIGHT[finalFontWeight];\n const fontClass = `font-${FontFamily.Default}${fontSuffix}`;\n const hasPlaceholder =\n placeholder !== undefined && placeholder !== null && placeholder !== '';\n // Only apply placeholder-mode styling when a placeholder is present and\n // the controlled value is empty. This keeps the iOS lineHeight workaround\n // scoped to the placeholder-visible state without affecting typed text.\n const isPlaceholderVisible = hasPlaceholder && value === '';\n\n const inputStyle = useMemo(\n () =>\n tw.style(\n fontClass,\n 'text-default',\n 'bg-default',\n 'border',\n 'border-transparent',\n !isStateStylesDisabled && isDisabled && 'opacity-50',\n !isStateStylesDisabled &&\n !isDisabled &&\n isFocused &&\n 'border-primary-default',\n twClassName,\n ),\n [\n fontClass,\n isStateStylesDisabled,\n isDisabled,\n isFocused,\n twClassName,\n tw,\n ],\n );\n\n const variantTextStyle = useMemo(\n () => MAP_TEXT_VARIANT_INPUT_METRICS[textVariant],\n [textVariant],\n );\n\n /* istanbul ignore next: handler body covered by focus/blur tests */\n const onBlurHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onBlur']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(false);\n onBlur?.(e);\n }\n },\n [isDisabled, onBlur],\n );\n\n /* istanbul ignore next: handler body covered by focus/blur tests */\n const onFocusHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onFocus']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(true);\n onFocus?.(e);\n }\n },\n [isDisabled, onFocus],\n );\n const resolvedStyle = [\n inputStyle,\n variantTextStyle,\n // iOS-only workaround: when a placeholder is visible, native iOS\n // TextInput can render placeholder text vertically offset.\n // Keep this iOS-only because lineHeight: 0 can collapse text on Android.\n Platform.OS === 'ios' &&\n isPlaceholderVisible && { lineHeight: 0 as const },\n style,\n ].filter(Boolean);\n\n return (\n <TextInput\n ref={ref}\n placeholderTextColor={placeholderTextColor}\n {...props}\n placeholder={placeholder}\n value={value}\n style={resolvedStyle}\n editable={!isDisabled && !isReadonly}\n autoFocus={autoFocus}\n onBlur={onBlurHandler}\n onFocus={onFocusHandler}\n />\n );\n },\n);\n"]}
|
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MAP_TEXT_VARIANT_INPUT_METRICS = void 0;
|
|
4
|
-
const design_system_shared_1 = require("@metamask-previews/design-system-shared");
|
|
5
4
|
const design_tokens_1 = require("@metamask-previews/design-tokens");
|
|
5
|
+
const types_1 = require("../../types/index.cjs");
|
|
6
6
|
/**
|
|
7
7
|
* Typographic metrics for Input: same tokens as `text-*` utilities but **without** `lineHeight`.
|
|
8
8
|
* React Native `TextInput` aligns single-line text more predictably when line height is not set
|
|
9
9
|
* from the design-system paragraph specs (matches legacy / temp Input.styles behavior).
|
|
10
10
|
*/
|
|
11
11
|
exports.MAP_TEXT_VARIANT_INPUT_METRICS = {
|
|
12
|
-
[
|
|
12
|
+
[types_1.TextVariant.DisplayLg]: {
|
|
13
13
|
fontSize: design_tokens_1.typography.sDisplayLG.fontSize,
|
|
14
14
|
letterSpacing: design_tokens_1.typography.sDisplayLG.letterSpacing,
|
|
15
15
|
},
|
|
16
|
-
[
|
|
16
|
+
[types_1.TextVariant.DisplayMd]: {
|
|
17
17
|
fontSize: design_tokens_1.typography.sDisplayMD.fontSize,
|
|
18
18
|
letterSpacing: design_tokens_1.typography.sDisplayMD.letterSpacing,
|
|
19
19
|
},
|
|
20
|
-
[
|
|
20
|
+
[types_1.TextVariant.HeadingLg]: {
|
|
21
21
|
fontSize: design_tokens_1.typography.sHeadingLG.fontSize,
|
|
22
22
|
letterSpacing: design_tokens_1.typography.sHeadingLG.letterSpacing,
|
|
23
23
|
},
|
|
24
|
-
[
|
|
24
|
+
[types_1.TextVariant.HeadingMd]: {
|
|
25
25
|
fontSize: design_tokens_1.typography.sHeadingMD.fontSize,
|
|
26
26
|
letterSpacing: design_tokens_1.typography.sHeadingMD.letterSpacing,
|
|
27
27
|
},
|
|
28
|
-
[
|
|
28
|
+
[types_1.TextVariant.HeadingSm]: {
|
|
29
29
|
fontSize: design_tokens_1.typography.sHeadingSM.fontSize,
|
|
30
30
|
letterSpacing: design_tokens_1.typography.sHeadingSM.letterSpacing,
|
|
31
31
|
},
|
|
32
|
-
[
|
|
32
|
+
[types_1.TextVariant.BodyLg]: {
|
|
33
33
|
fontSize: design_tokens_1.typography.sBodyLGMedium.fontSize,
|
|
34
34
|
letterSpacing: design_tokens_1.typography.sBodyLGMedium.letterSpacing,
|
|
35
35
|
},
|
|
36
|
-
[
|
|
36
|
+
[types_1.TextVariant.BodyMd]: {
|
|
37
37
|
fontSize: design_tokens_1.typography.sBodyMD.fontSize,
|
|
38
38
|
letterSpacing: design_tokens_1.typography.sBodyMD.letterSpacing,
|
|
39
39
|
},
|
|
40
|
-
[
|
|
40
|
+
[types_1.TextVariant.BodySm]: {
|
|
41
41
|
fontSize: design_tokens_1.typography.sBodySM.fontSize,
|
|
42
42
|
letterSpacing: design_tokens_1.typography.sBodySM.letterSpacing,
|
|
43
43
|
},
|
|
44
|
-
[
|
|
44
|
+
[types_1.TextVariant.BodyXs]: {
|
|
45
45
|
fontSize: design_tokens_1.typography.sBodyXS.fontSize,
|
|
46
46
|
letterSpacing: design_tokens_1.typography.sBodyXS.letterSpacing,
|
|
47
47
|
},
|
|
48
|
-
[
|
|
48
|
+
[types_1.TextVariant.PageHeading]: {
|
|
49
49
|
fontSize: design_tokens_1.typography.sPageHeading.fontSize,
|
|
50
50
|
letterSpacing: design_tokens_1.typography.sPageHeading.letterSpacing,
|
|
51
51
|
},
|
|
52
|
-
[
|
|
52
|
+
[types_1.TextVariant.SectionHeading]: {
|
|
53
53
|
fontSize: design_tokens_1.typography.sSectionHeading.fontSize,
|
|
54
54
|
letterSpacing: design_tokens_1.typography.sSectionHeading.letterSpacing,
|
|
55
55
|
},
|
|
56
|
-
[
|
|
56
|
+
[types_1.TextVariant.ButtonLabelMd]: {
|
|
57
57
|
fontSize: design_tokens_1.typography.sButtonLabelMd.fontSize,
|
|
58
58
|
letterSpacing: design_tokens_1.typography.sButtonLabelMd.letterSpacing,
|
|
59
59
|
},
|
|
60
|
-
[
|
|
60
|
+
[types_1.TextVariant.ButtonLabelLg]: {
|
|
61
61
|
fontSize: design_tokens_1.typography.sButtonLabelLg.fontSize,
|
|
62
62
|
letterSpacing: design_tokens_1.typography.sButtonLabelLg.letterSpacing,
|
|
63
63
|
},
|
|
64
|
-
[
|
|
64
|
+
[types_1.TextVariant.AmountDisplayLg]: {
|
|
65
65
|
fontSize: design_tokens_1.typography.sAmountDisplayLg.fontSize,
|
|
66
66
|
letterSpacing: design_tokens_1.typography.sAmountDisplayLg.letterSpacing,
|
|
67
67
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.constants.cjs","sourceRoot":"","sources":["../../../src/components/Input/Input.constants.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"Input.constants.cjs","sourceRoot":"","sources":["../../../src/components/Input/Input.constants.ts"],"names":[],"mappings":";;;AAAA,oEAA8D;AAE9D,iDAA0C;AAE1C;;;;GAIG;AACU,QAAA,8BAA8B,GAGvC;IACF,CAAC,mBAAW,CAAC,SAAS,CAAC,EAAE;QACvB,QAAQ,EAAE,0BAAU,CAAC,UAAU,CAAC,QAAQ;QACx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C,aAAa;KAChD;IACD,CAAC,mBAAW,CAAC,WAAW,CAAC,EAAE;QACzB,QAAQ,EAAE,0BAAU,CAAC,YAAY,CAAC,QAAQ;QAC1C,aAAa,EAAE,0BAAU,CAAC,YAAY,CAAC,aAAa;KACrD;IACD,CAAC,mBAAW,CAAC,cAAc,CAAC,EAAE;QAC5B,QAAQ,EAAE,0BAAU,CAAC,eAAe,CAAC,QAAQ;QAC7C,aAAa,EAAE,0BAAU,CAAC,eAAe,CAAC,aAAa;KACxD;IACD,CAAC,mBAAW,CAAC,aAAa,CAAC,EAAE;QAC3B,QAAQ,EAAE,0BAAU,CAAC,cAAc,CAAC,QAAQ;QAC5C,aAAa,EAAE,0BAAU,CAAC,cAAc,CAAC,aAAa;KACvD;IACD,CAAC,mBAAW,CAAC,aAAa,CAAC,EAAE;QAC3B,QAAQ,EAAE,0BAAU,CAAC,cAAc,CAAC,QAAQ;QAC5C,aAAa,EAAE,0BAAU,CAAC,cAAc,CAAC,aAAa;KACvD;IACD,CAAC,mBAAW,CAAC,eAAe,CAAC,EAAE;QAC7B,QAAQ,EAAE,0BAAU,CAAC,gBAAgB,CAAC,QAAQ;QAC9C,aAAa,EAAE,0BAAU,CAAC,gBAAgB,CAAC,aAAa;KACzD;CACF,CAAC","sourcesContent":["import { typography } from '@metamask-previews/design-tokens';\n\nimport { TextVariant } from '../../types';\n\n/**\n * Typographic metrics for Input: same tokens as `text-*` utilities but **without** `lineHeight`.\n * React Native `TextInput` aligns single-line text more predictably when line height is not set\n * from the design-system paragraph specs (matches legacy / temp Input.styles behavior).\n */\nexport const MAP_TEXT_VARIANT_INPUT_METRICS: Record<\n TextVariant,\n { fontSize: number; letterSpacing: number }\n> = {\n [TextVariant.DisplayLg]: {\n fontSize: typography.sDisplayLG.fontSize,\n letterSpacing: typography.sDisplayLG.letterSpacing,\n },\n [TextVariant.DisplayMd]: {\n fontSize: typography.sDisplayMD.fontSize,\n letterSpacing: typography.sDisplayMD.letterSpacing,\n },\n [TextVariant.HeadingLg]: {\n fontSize: typography.sHeadingLG.fontSize,\n letterSpacing: typography.sHeadingLG.letterSpacing,\n },\n [TextVariant.HeadingMd]: {\n fontSize: typography.sHeadingMD.fontSize,\n letterSpacing: typography.sHeadingMD.letterSpacing,\n },\n [TextVariant.HeadingSm]: {\n fontSize: typography.sHeadingSM.fontSize,\n letterSpacing: typography.sHeadingSM.letterSpacing,\n },\n [TextVariant.BodyLg]: {\n fontSize: typography.sBodyLGMedium.fontSize,\n letterSpacing: typography.sBodyLGMedium.letterSpacing,\n },\n [TextVariant.BodyMd]: {\n fontSize: typography.sBodyMD.fontSize,\n letterSpacing: typography.sBodyMD.letterSpacing,\n },\n [TextVariant.BodySm]: {\n fontSize: typography.sBodySM.fontSize,\n letterSpacing: typography.sBodySM.letterSpacing,\n },\n [TextVariant.BodyXs]: {\n fontSize: typography.sBodyXS.fontSize,\n letterSpacing: typography.sBodyXS.letterSpacing,\n },\n [TextVariant.PageHeading]: {\n fontSize: typography.sPageHeading.fontSize,\n letterSpacing: typography.sPageHeading.letterSpacing,\n },\n [TextVariant.SectionHeading]: {\n fontSize: typography.sSectionHeading.fontSize,\n letterSpacing: typography.sSectionHeading.letterSpacing,\n },\n [TextVariant.ButtonLabelMd]: {\n fontSize: typography.sButtonLabelMd.fontSize,\n letterSpacing: typography.sButtonLabelMd.letterSpacing,\n },\n [TextVariant.ButtonLabelLg]: {\n fontSize: typography.sButtonLabelLg.fontSize,\n letterSpacing: typography.sButtonLabelLg.letterSpacing,\n },\n [TextVariant.AmountDisplayLg]: {\n fontSize: typography.sAmountDisplayLg.fontSize,\n letterSpacing: typography.sAmountDisplayLg.letterSpacing,\n },\n};\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TextVariant } from "
|
|
1
|
+
import { TextVariant } from "../../types/index.cjs";
|
|
2
2
|
/**
|
|
3
3
|
* Typographic metrics for Input: same tokens as `text-*` utilities but **without** `lineHeight`.
|
|
4
4
|
* React Native `TextInput` aligns single-line text more predictably when line height is not set
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.constants.d.cts","sourceRoot":"","sources":["../../../src/components/Input/Input.constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Input.constants.d.cts","sourceRoot":"","sources":["../../../src/components/Input/Input.constants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,8BAAoB;AAE1C;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,EAAE,MAAM,CACjD,WAAW,EACX;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,CA0D5C,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TextVariant } from "
|
|
1
|
+
import { TextVariant } from "../../types/index.mjs";
|
|
2
2
|
/**
|
|
3
3
|
* Typographic metrics for Input: same tokens as `text-*` utilities but **without** `lineHeight`.
|
|
4
4
|
* React Native `TextInput` aligns single-line text more predictably when line height is not set
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.constants.d.mts","sourceRoot":"","sources":["../../../src/components/Input/Input.constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Input.constants.d.mts","sourceRoot":"","sources":["../../../src/components/Input/Input.constants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,8BAAoB;AAE1C;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,EAAE,MAAM,CACjD,WAAW,EACX;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,CA0D5C,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TextVariant } from "@metamask-previews/design-system-shared";
|
|
2
1
|
import { typography } from "@metamask-previews/design-tokens";
|
|
2
|
+
import { TextVariant } from "../../types/index.mjs";
|
|
3
3
|
/**
|
|
4
4
|
* Typographic metrics for Input: same tokens as `text-*` utilities but **without** `lineHeight`.
|
|
5
5
|
* React Native `TextInput` aligns single-line text more predictably when line height is not set
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.constants.mjs","sourceRoot":"","sources":["../../../src/components/Input/Input.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Input.constants.mjs","sourceRoot":"","sources":["../../../src/components/Input/Input.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,yCAAyC;AAE9D,OAAO,EAAE,WAAW,EAAE,8BAAoB;AAE1C;;;;GAIG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAGvC;IACF,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE;QACvB,QAAQ,EAAE,UAAU,CAAC,UAAU,CAAC,QAAQ;QACxC,aAAa,EAAE,UAAU,CAAC,UAAU,CAAC,aAAa;KACnD;IACD,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE;QACvB,QAAQ,EAAE,UAAU,CAAC,UAAU,CAAC,QAAQ;QACxC,aAAa,EAAE,UAAU,CAAC,UAAU,CAAC,aAAa;KACnD;IACD,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE;QACvB,QAAQ,EAAE,UAAU,CAAC,UAAU,CAAC,QAAQ;QACxC,aAAa,EAAE,UAAU,CAAC,UAAU,CAAC,aAAa;KACnD;IACD,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE;QACvB,QAAQ,EAAE,UAAU,CAAC,UAAU,CAAC,QAAQ;QACxC,aAAa,EAAE,UAAU,CAAC,UAAU,CAAC,aAAa;KACnD;IACD,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE;QACvB,QAAQ,EAAE,UAAU,CAAC,UAAU,CAAC,QAAQ;QACxC,aAAa,EAAE,UAAU,CAAC,UAAU,CAAC,aAAa;KACnD;IACD,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE;QACpB,QAAQ,EAAE,UAAU,CAAC,aAAa,CAAC,QAAQ;QAC3C,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,CAAC","sourcesContent":["import { typography } from '@metamask-previews/design-tokens';\n\nimport { TextVariant } from '../../types';\n\n/**\n * Typographic metrics for Input: same tokens as `text-*` utilities but **without** `lineHeight`.\n * React Native `TextInput` aligns single-line text more predictably when line height is not set\n * from the design-system paragraph specs (matches legacy / temp Input.styles behavior).\n */\nexport const MAP_TEXT_VARIANT_INPUT_METRICS: Record<\n TextVariant,\n { fontSize: number; letterSpacing: number }\n> = {\n [TextVariant.DisplayLg]: {\n fontSize: typography.sDisplayLG.fontSize,\n letterSpacing: typography.sDisplayLG.letterSpacing,\n },\n [TextVariant.DisplayMd]: {\n fontSize: typography.sDisplayMD.fontSize,\n letterSpacing: typography.sDisplayMD.letterSpacing,\n },\n [TextVariant.HeadingLg]: {\n fontSize: typography.sHeadingLG.fontSize,\n letterSpacing: typography.sHeadingLG.letterSpacing,\n },\n [TextVariant.HeadingMd]: {\n fontSize: typography.sHeadingMD.fontSize,\n letterSpacing: typography.sHeadingMD.letterSpacing,\n },\n [TextVariant.HeadingSm]: {\n fontSize: typography.sHeadingSM.fontSize,\n letterSpacing: typography.sHeadingSM.letterSpacing,\n },\n [TextVariant.BodyLg]: {\n fontSize: typography.sBodyLGMedium.fontSize,\n letterSpacing: typography.sBodyLGMedium.letterSpacing,\n },\n [TextVariant.BodyMd]: {\n fontSize: typography.sBodyMD.fontSize,\n letterSpacing: typography.sBodyMD.letterSpacing,\n },\n [TextVariant.BodySm]: {\n fontSize: typography.sBodySM.fontSize,\n letterSpacing: typography.sBodySM.letterSpacing,\n },\n [TextVariant.BodyXs]: {\n fontSize: typography.sBodyXS.fontSize,\n letterSpacing: typography.sBodyXS.letterSpacing,\n },\n [TextVariant.PageHeading]: {\n fontSize: typography.sPageHeading.fontSize,\n letterSpacing: typography.sPageHeading.letterSpacing,\n },\n [TextVariant.SectionHeading]: {\n fontSize: typography.sSectionHeading.fontSize,\n letterSpacing: typography.sSectionHeading.letterSpacing,\n },\n [TextVariant.ButtonLabelMd]: {\n fontSize: typography.sButtonLabelMd.fontSize,\n letterSpacing: typography.sButtonLabelMd.letterSpacing,\n },\n [TextVariant.ButtonLabelLg]: {\n fontSize: typography.sButtonLabelLg.fontSize,\n letterSpacing: typography.sButtonLabelLg.letterSpacing,\n },\n [TextVariant.AmountDisplayLg]: {\n fontSize: typography.sAmountDisplayLg.fontSize,\n letterSpacing: typography.sAmountDisplayLg.letterSpacing,\n },\n};\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TextVariant } from "@metamask-previews/design-system-shared";
|
|
2
1
|
import { TextInput } from "react-native/index.js";
|
|
2
|
+
import { TextVariant } from "../../types/index.cjs";
|
|
3
3
|
export declare const Input: import("react").ForwardRefExoticComponent<Omit<import("react-native").TextInputProps, "editable" | "value" | "defaultValue"> & {
|
|
4
4
|
value: string;
|
|
5
5
|
textVariant?: TextVariant | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.cts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Input.d.cts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAY,SAAS,EAAE,8BAAqB;AAEnD,OAAO,EAAc,WAAW,EAAE,8BAAoB;AAStD,eAAO,MAAM,KAAK;;;;;;;6CAqHjB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TextVariant } from "@metamask-previews/design-system-shared";
|
|
2
1
|
import { TextInput } from "react-native/index.js";
|
|
2
|
+
import { TextVariant } from "../../types/index.mjs";
|
|
3
3
|
export declare const Input: import("react").ForwardRefExoticComponent<Omit<import("react-native").TextInputProps, "editable" | "value" | "defaultValue"> & {
|
|
4
4
|
value: string;
|
|
5
5
|
textVariant?: TextVariant | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.mts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Input.d.mts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAY,SAAS,EAAE,8BAAqB;AAEnD,OAAO,EAAc,WAAW,EAAE,8BAAoB;AAStD,eAAO,MAAM,KAAK;;;;;;;6CAqHjB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FontFamily, TextVariant } from "@metamask-previews/design-system-shared";
|
|
2
1
|
import { Theme, useTailwind, useTheme } from "@metamask-previews/design-system-twrnc-preset";
|
|
3
2
|
import { darkTheme, lightTheme } from "@metamask-previews/design-tokens";
|
|
4
3
|
import { forwardRef, useCallback, useMemo, useState } from "react";
|
|
5
4
|
import { Platform, TextInput } from "react-native/index.js";
|
|
5
|
+
import { FontFamily, TextVariant } from "../../types/index.mjs";
|
|
6
6
|
import { MAP_TEXT_VARIANT_FONTWEIGHT, TWCLASSMAP_TEXT_FONTWEIGHT } from "../Text/Text.constants.mjs";
|
|
7
7
|
import { MAP_TEXT_VARIANT_INPUT_METRICS } from "./Input.constants.mjs";
|
|
8
8
|
export const Input = forwardRef(({ style, textVariant = TextVariant.BodyMd, isStateStylesDisabled, isDisabled = false, isReadonly = false, value, placeholder, twClassName, onBlur, onFocus, autoFocus = false, ...props }, ref) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.mjs","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Input.mjs","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,WAAW,EACX,QAAQ,EACT,sDAAsD;AACvD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,yCAAyC;AACzE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc;AACnE,OAAO,EAAE,QAAQ,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,CACL,CAAC,SAAS,CACR,GAAG,CAAC,CAAC,GAAG,CAAC,CACT,oBAAoB,CAAC,CAAC,oBAAoB,CAAC,CAC3C,IAAI,KAAK,CAAC,CACV,WAAW,CAAC,CAAC,WAAW,CAAC,CACzB,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,KAAK,CAAC,CAAC,aAAa,CAAC,CACrB,QAAQ,CAAC,CAAC,CAAC,UAAU,IAAI,CAAC,UAAU,CAAC,CACrC,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,MAAM,CAAC,CAAC,aAAa,CAAC,CACtB,OAAO,CAAC,CAAC,cAAc,CAAC,EACxB,CACH,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["import {\n Theme,\n useTailwind,\n useTheme,\n} from '@metamask-previews/design-system-twrnc-preset';\nimport { darkTheme, lightTheme } from '@metamask-previews/design-tokens';\nimport { forwardRef, useCallback, useMemo, useState } from 'react';\nimport { Platform, TextInput } from 'react-native';\n\nimport { FontFamily, TextVariant } from '../../types';\nimport {\n MAP_TEXT_VARIANT_FONTWEIGHT,\n TWCLASSMAP_TEXT_FONTWEIGHT,\n} from '../Text/Text.constants';\n\nimport { MAP_TEXT_VARIANT_INPUT_METRICS } from './Input.constants';\nimport type { InputProps } from './Input.types';\n\nexport const Input = forwardRef<TextInput, InputProps>(\n (\n {\n style,\n textVariant = TextVariant.BodyMd,\n isStateStylesDisabled,\n isDisabled = false,\n isReadonly = false,\n value,\n placeholder,\n twClassName,\n onBlur,\n onFocus,\n autoFocus = false,\n ...props\n },\n ref,\n ) => {\n const [isFocused, setIsFocused] = useState(autoFocus);\n const tw = useTailwind();\n const theme = useTheme();\n\n const placeholderTextColor = useMemo(\n () =>\n theme === Theme.Light\n ? lightTheme.colors.text.alternative\n : darkTheme.colors.text.alternative,\n [theme],\n );\n\n const finalFontWeight = MAP_TEXT_VARIANT_FONTWEIGHT[textVariant];\n const fontSuffix = TWCLASSMAP_TEXT_FONTWEIGHT[finalFontWeight];\n const fontClass = `font-${FontFamily.Default}${fontSuffix}`;\n const hasPlaceholder =\n placeholder !== undefined && placeholder !== null && placeholder !== '';\n // Only apply placeholder-mode styling when a placeholder is present and\n // the controlled value is empty. This keeps the iOS lineHeight workaround\n // scoped to the placeholder-visible state without affecting typed text.\n const isPlaceholderVisible = hasPlaceholder && value === '';\n\n const inputStyle = useMemo(\n () =>\n tw.style(\n fontClass,\n 'text-default',\n 'bg-default',\n 'border',\n 'border-transparent',\n !isStateStylesDisabled && isDisabled && 'opacity-50',\n !isStateStylesDisabled &&\n !isDisabled &&\n isFocused &&\n 'border-primary-default',\n twClassName,\n ),\n [\n fontClass,\n isStateStylesDisabled,\n isDisabled,\n isFocused,\n twClassName,\n tw,\n ],\n );\n\n const variantTextStyle = useMemo(\n () => MAP_TEXT_VARIANT_INPUT_METRICS[textVariant],\n [textVariant],\n );\n\n /* istanbul ignore next: handler body covered by focus/blur tests */\n const onBlurHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onBlur']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(false);\n onBlur?.(e);\n }\n },\n [isDisabled, onBlur],\n );\n\n /* istanbul ignore next: handler body covered by focus/blur tests */\n const onFocusHandler = useCallback(\n (e: Parameters<NonNullable<InputProps['onFocus']>>[0]) => {\n if (!isDisabled) {\n setIsFocused(true);\n onFocus?.(e);\n }\n },\n [isDisabled, onFocus],\n );\n const resolvedStyle = [\n inputStyle,\n variantTextStyle,\n // iOS-only workaround: when a placeholder is visible, native iOS\n // TextInput can render placeholder text vertically offset.\n // Keep this iOS-only because lineHeight: 0 can collapse text on Android.\n Platform.OS === 'ios' &&\n isPlaceholderVisible && { lineHeight: 0 as const },\n style,\n ].filter(Boolean);\n\n return (\n <TextInput\n ref={ref}\n placeholderTextColor={placeholderTextColor}\n {...props}\n placeholder={placeholder}\n value={value}\n style={resolvedStyle}\n editable={!isDisabled && !isReadonly}\n autoFocus={autoFocus}\n onBlur={onBlurHandler}\n onFocus={onFocusHandler}\n />\n );\n },\n);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.types.cjs","sourceRoot":"","sources":["../../../src/components/Input/Input.types.ts"],"names":[],"mappings":"","sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"Input.types.cjs","sourceRoot":"","sources":["../../../src/components/Input/Input.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { TextInputProps } from 'react-native';\n\nimport type { TextVariant } from '../../types';\n\nexport type InputProps = Omit<\n TextInputProps,\n 'editable' | 'value' | 'defaultValue'\n> & {\n /**\n * Controlled value for Input.\n */\n value: string;\n /**\n * Optional enum to select between Typography variants.\n *\n * @default BodyMd\n */\n textVariant?: TextVariant;\n /**\n * Optional boolean to disable Input.\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * Optional boolean to show readonly input.\n *\n * @default false\n */\n isReadonly?: boolean;\n /**\n * Optional boolean to disable state styles.\n *\n * @default false\n */\n isStateStylesDisabled?: boolean;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n};\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TextVariant } from "@metamask-previews/design-system-shared";
|
|
2
1
|
import type { TextInputProps } from "react-native/index.js";
|
|
2
|
+
import type { TextVariant } from "../../types/index.cjs";
|
|
3
3
|
export type InputProps = Omit<TextInputProps, 'editable' | 'value' | 'defaultValue'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Controlled value for Input.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.types.d.cts","sourceRoot":"","sources":["../../../src/components/Input/Input.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Input.types.d.cts","sourceRoot":"","sources":["../../../src/components/Input/Input.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,8BAAqB;AAEnD,OAAO,KAAK,EAAE,WAAW,EAAE,8BAAoB;AAE/C,MAAM,MAAM,UAAU,GAAG,IAAI,CAC3B,cAAc,EACd,UAAU,GAAG,OAAO,GAAG,cAAc,CACtC,GAAG;IACF;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TextVariant } from "@metamask-previews/design-system-shared";
|
|
2
1
|
import type { TextInputProps } from "react-native/index.js";
|
|
2
|
+
import type { TextVariant } from "../../types/index.mjs";
|
|
3
3
|
export type InputProps = Omit<TextInputProps, 'editable' | 'value' | 'defaultValue'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Controlled value for Input.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.types.d.mts","sourceRoot":"","sources":["../../../src/components/Input/Input.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Input.types.d.mts","sourceRoot":"","sources":["../../../src/components/Input/Input.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,8BAAqB;AAEnD,OAAO,KAAK,EAAE,WAAW,EAAE,8BAAoB;AAE/C,MAAM,MAAM,UAAU,GAAG,IAAI,CAC3B,cAAc,EACd,UAAU,GAAG,OAAO,GAAG,cAAc,CACtC,GAAG;IACF;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.types.mjs","sourceRoot":"","sources":["../../../src/components/Input/Input.types.ts"],"names":[],"mappings":"","sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"Input.types.mjs","sourceRoot":"","sources":["../../../src/components/Input/Input.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { TextInputProps } from 'react-native';\n\nimport type { TextVariant } from '../../types';\n\nexport type InputProps = Omit<\n TextInputProps,\n 'editable' | 'value' | 'defaultValue'\n> & {\n /**\n * Controlled value for Input.\n */\n value: string;\n /**\n * Optional enum to select between Typography variants.\n *\n * @default BodyMd\n */\n textVariant?: TextVariant;\n /**\n * Optional boolean to disable Input.\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * Optional boolean to show readonly input.\n *\n * @default false\n */\n isReadonly?: boolean;\n /**\n * Optional boolean to disable state styles.\n *\n * @default false\n */\n isStateStylesDisabled?: boolean;\n /**\n * Optional prop to add twrnc overriding classNames.\n */\n twClassName?: string;\n};\n"]}
|