@metamask/design-system-react-native 0.28.0 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -1
- package/dist/components/AvatarBase/AvatarBase.cjs +1 -1
- package/dist/components/AvatarBase/AvatarBase.cjs.map +1 -1
- package/dist/components/AvatarBase/AvatarBase.d.cts.map +1 -1
- package/dist/components/AvatarBase/AvatarBase.d.mts.map +1 -1
- package/dist/components/AvatarBase/AvatarBase.mjs +2 -2
- package/dist/components/AvatarBase/AvatarBase.mjs.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.constants.cjs +2 -2
- package/dist/components/AvatarIcon/AvatarIcon.constants.cjs.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.constants.mjs +2 -2
- package/dist/components/AvatarIcon/AvatarIcon.constants.mjs.map +1 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.cjs +1 -2
- package/dist/components/AvatarNetwork/AvatarNetwork.cjs.map +1 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.d.cts.map +1 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.d.mts.map +1 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.mjs +1 -2
- package/dist/components/AvatarNetwork/AvatarNetwork.mjs.map +1 -1
- package/dist/components/AvatarNetwork/index.cjs +2 -2
- package/dist/components/AvatarNetwork/index.cjs.map +1 -1
- package/dist/components/AvatarNetwork/index.d.cts +1 -1
- package/dist/components/AvatarNetwork/index.d.cts.map +1 -1
- package/dist/components/AvatarNetwork/index.d.mts +1 -1
- package/dist/components/AvatarNetwork/index.d.mts.map +1 -1
- package/dist/components/AvatarNetwork/index.mjs +1 -1
- package/dist/components/AvatarNetwork/index.mjs.map +1 -1
- package/dist/components/BadgeCount/BadgeCount.cjs +1 -1
- package/dist/components/BadgeCount/BadgeCount.cjs.map +1 -1
- package/dist/components/BadgeCount/BadgeCount.d.cts.map +1 -1
- package/dist/components/BadgeCount/BadgeCount.d.mts.map +1 -1
- package/dist/components/BadgeCount/BadgeCount.mjs +2 -2
- package/dist/components/BadgeCount/BadgeCount.mjs.map +1 -1
- package/dist/components/BannerBase/BannerBase.cjs +1 -1
- 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/ButtonBase/ButtonBase.cjs +5 -3
- package/dist/components/ButtonBase/ButtonBase.cjs.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.d.cts.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.d.mts.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.mjs +6 -4
- package/dist/components/ButtonBase/ButtonBase.mjs.map +1 -1
- package/dist/components/Content/Content.cjs +4 -10
- package/dist/components/Content/Content.cjs.map +1 -1
- package/dist/components/Content/Content.d.cts.map +1 -1
- package/dist/components/Content/Content.d.mts.map +1 -1
- package/dist/components/Content/Content.mjs +5 -11
- package/dist/components/Content/Content.mjs.map +1 -1
- package/dist/components/Content/Content.types.cjs.map +1 -1
- package/dist/components/Content/Content.types.d.cts +1 -1
- package/dist/components/Content/Content.types.d.mts +1 -1
- package/dist/components/Content/Content.types.mjs.map +1 -1
- package/dist/components/{SegmentButton/SegmentButton.cjs → FilterButton/FilterButton.cjs} +19 -17
- package/dist/components/FilterButton/FilterButton.cjs.map +1 -0
- package/dist/components/FilterButton/FilterButton.d.cts +7 -0
- package/dist/components/FilterButton/FilterButton.d.cts.map +1 -0
- package/dist/components/FilterButton/FilterButton.d.mts +7 -0
- package/dist/components/FilterButton/FilterButton.d.mts.map +1 -0
- package/dist/components/{SegmentButton/SegmentButton.mjs → FilterButton/FilterButton.mjs} +18 -16
- package/dist/components/FilterButton/FilterButton.mjs.map +1 -0
- package/dist/components/{SegmentGroup/SegmentGroup.types.cjs → FilterButton/FilterButton.types.cjs} +1 -1
- package/dist/components/FilterButton/FilterButton.types.cjs.map +1 -0
- package/dist/components/FilterButton/FilterButton.types.d.cts +9 -0
- package/dist/components/FilterButton/FilterButton.types.d.cts.map +1 -0
- package/dist/components/FilterButton/FilterButton.types.d.mts +9 -0
- package/dist/components/FilterButton/FilterButton.types.d.mts.map +1 -0
- package/dist/components/FilterButton/FilterButton.types.mjs +2 -0
- package/dist/components/FilterButton/FilterButton.types.mjs.map +1 -0
- package/dist/components/FilterButton/index.cjs +8 -0
- package/dist/components/FilterButton/index.cjs.map +1 -0
- package/dist/components/FilterButton/index.d.cts +4 -0
- package/dist/components/FilterButton/index.d.cts.map +1 -0
- package/dist/components/FilterButton/index.d.mts +4 -0
- package/dist/components/FilterButton/index.d.mts.map +1 -0
- package/dist/components/FilterButton/index.mjs +3 -0
- package/dist/components/FilterButton/index.mjs.map +1 -0
- package/dist/components/{SegmentGroup/SegmentGroup.cjs → FilterButtonGroup/FilterButtonGroup.cjs} +7 -7
- package/dist/components/FilterButtonGroup/FilterButtonGroup.cjs.map +1 -0
- package/dist/components/FilterButtonGroup/FilterButtonGroup.d.cts +7 -0
- package/dist/components/FilterButtonGroup/FilterButtonGroup.d.cts.map +1 -0
- package/dist/components/FilterButtonGroup/FilterButtonGroup.d.mts +7 -0
- package/dist/components/FilterButtonGroup/FilterButtonGroup.d.mts.map +1 -0
- package/dist/components/{SegmentGroup/SegmentGroup.mjs → FilterButtonGroup/FilterButtonGroup.mjs} +6 -6
- package/dist/components/FilterButtonGroup/FilterButtonGroup.mjs.map +1 -0
- package/dist/components/FilterButtonGroup/FilterButtonGroup.types.cjs +3 -0
- package/dist/components/FilterButtonGroup/FilterButtonGroup.types.cjs.map +1 -0
- package/dist/components/FilterButtonGroup/FilterButtonGroup.types.d.cts +12 -0
- package/dist/components/FilterButtonGroup/FilterButtonGroup.types.d.cts.map +1 -0
- package/dist/components/FilterButtonGroup/FilterButtonGroup.types.d.mts +12 -0
- package/dist/components/FilterButtonGroup/FilterButtonGroup.types.d.mts.map +1 -0
- package/dist/components/FilterButtonGroup/FilterButtonGroup.types.mjs +2 -0
- package/dist/components/FilterButtonGroup/FilterButtonGroup.types.mjs.map +1 -0
- package/dist/components/FilterButtonGroup/index.cjs +6 -0
- package/dist/components/FilterButtonGroup/index.cjs.map +1 -0
- package/dist/components/FilterButtonGroup/index.d.cts +3 -0
- package/dist/components/FilterButtonGroup/index.d.cts.map +1 -0
- package/dist/components/FilterButtonGroup/index.d.mts +3 -0
- package/dist/components/FilterButtonGroup/index.d.mts.map +1 -0
- package/dist/components/FilterButtonGroup/index.mjs +2 -0
- package/dist/components/FilterButtonGroup/index.mjs.map +1 -0
- package/dist/components/HeaderRoot/HeaderRoot.cjs +2 -1
- package/dist/components/HeaderRoot/HeaderRoot.cjs.map +1 -1
- package/dist/components/HeaderRoot/HeaderRoot.d.cts.map +1 -1
- package/dist/components/HeaderRoot/HeaderRoot.d.mts.map +1 -1
- package/dist/components/HeaderRoot/HeaderRoot.mjs +2 -1
- package/dist/components/HeaderRoot/HeaderRoot.mjs.map +1 -1
- package/dist/components/HeaderStandard/HeaderStandard.cjs +2 -1
- package/dist/components/HeaderStandard/HeaderStandard.cjs.map +1 -1
- package/dist/components/HeaderStandard/HeaderStandard.d.cts.map +1 -1
- package/dist/components/HeaderStandard/HeaderStandard.d.mts.map +1 -1
- package/dist/components/HeaderStandard/HeaderStandard.mjs +2 -1
- package/dist/components/HeaderStandard/HeaderStandard.mjs.map +1 -1
- package/dist/components/HeaderSubpage/HeaderSubpage.cjs +90 -0
- package/dist/components/HeaderSubpage/HeaderSubpage.cjs.map +1 -0
- package/dist/components/HeaderSubpage/HeaderSubpage.d.cts +4 -0
- package/dist/components/HeaderSubpage/HeaderSubpage.d.cts.map +1 -0
- package/dist/components/HeaderSubpage/HeaderSubpage.d.mts +4 -0
- package/dist/components/HeaderSubpage/HeaderSubpage.d.mts.map +1 -0
- package/dist/components/HeaderSubpage/HeaderSubpage.mjs +70 -0
- package/dist/components/HeaderSubpage/HeaderSubpage.mjs.map +1 -0
- package/dist/components/{SegmentButton/SegmentButton.types.cjs → HeaderSubpage/HeaderSubpage.types.cjs} +1 -1
- package/dist/components/HeaderSubpage/HeaderSubpage.types.cjs.map +1 -0
- package/dist/components/HeaderSubpage/HeaderSubpage.types.d.cts +59 -0
- package/dist/components/HeaderSubpage/HeaderSubpage.types.d.cts.map +1 -0
- package/dist/components/HeaderSubpage/HeaderSubpage.types.d.mts +59 -0
- package/dist/components/HeaderSubpage/HeaderSubpage.types.d.mts.map +1 -0
- package/dist/components/HeaderSubpage/HeaderSubpage.types.mjs +2 -0
- package/dist/components/HeaderSubpage/HeaderSubpage.types.mjs.map +1 -0
- package/dist/components/HeaderSubpage/index.cjs +6 -0
- package/dist/components/HeaderSubpage/index.cjs.map +1 -0
- package/dist/components/HeaderSubpage/index.d.cts +3 -0
- package/dist/components/HeaderSubpage/index.d.cts.map +1 -0
- package/dist/components/HeaderSubpage/index.d.mts +3 -0
- package/dist/components/HeaderSubpage/index.d.mts.map +1 -0
- package/dist/components/HeaderSubpage/index.mjs +2 -0
- package/dist/components/HeaderSubpage/index.mjs.map +1 -0
- package/dist/components/Icon/Icon.assets.cjs +2 -0
- package/dist/components/Icon/Icon.assets.cjs.map +1 -1
- package/dist/components/Icon/Icon.assets.d.cts.map +1 -1
- package/dist/components/Icon/Icon.assets.d.mts.map +1 -1
- package/dist/components/Icon/Icon.assets.mjs +2 -0
- package/dist/components/Icon/Icon.assets.mjs.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/assets/trophy.svg +1 -0
- package/dist/components/IconAlert/IconAlert.constants.cjs +1 -1
- package/dist/components/IconAlert/IconAlert.constants.cjs.map +1 -1
- package/dist/components/IconAlert/IconAlert.constants.mjs +1 -1
- package/dist/components/IconAlert/IconAlert.constants.mjs.map +1 -1
- package/dist/components/KeyValueColumn/KeyValueColumn.cjs +2 -3
- 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 +1 -2
- package/dist/components/KeyValueColumn/KeyValueColumn.mjs.map +1 -1
- package/dist/components/KeyValueRow/KeyValueRow.cjs +2 -3
- package/dist/components/KeyValueRow/KeyValueRow.cjs.map +1 -1
- package/dist/components/KeyValueRow/KeyValueRow.d.cts.map +1 -1
- package/dist/components/KeyValueRow/KeyValueRow.d.mts.map +1 -1
- package/dist/components/KeyValueRow/KeyValueRow.mjs +1 -2
- package/dist/components/KeyValueRow/KeyValueRow.mjs.map +1 -1
- package/dist/components/ListItem/ListItem.cjs +34 -48
- package/dist/components/ListItem/ListItem.cjs.map +1 -1
- package/dist/components/ListItem/ListItem.d.cts.map +1 -1
- package/dist/components/ListItem/ListItem.d.mts.map +1 -1
- package/dist/components/ListItem/ListItem.mjs +34 -28
- package/dist/components/ListItem/ListItem.mjs.map +1 -1
- package/dist/components/ListItem/ListItem.types.cjs +0 -9
- package/dist/components/ListItem/ListItem.types.cjs.map +1 -1
- package/dist/components/ListItem/ListItem.types.d.cts +14 -55
- package/dist/components/ListItem/ListItem.types.d.cts.map +1 -1
- package/dist/components/ListItem/ListItem.types.d.mts +14 -55
- package/dist/components/ListItem/ListItem.types.d.mts.map +1 -1
- package/dist/components/ListItem/ListItem.types.mjs +1 -8
- package/dist/components/ListItem/ListItem.types.mjs.map +1 -1
- package/dist/components/ListItem/index.cjs +3 -3
- package/dist/components/ListItem/index.cjs.map +1 -1
- package/dist/components/ListItem/index.d.cts +1 -1
- package/dist/components/ListItem/index.d.cts.map +1 -1
- package/dist/components/ListItem/index.d.mts +1 -1
- package/dist/components/ListItem/index.d.mts.map +1 -1
- package/dist/components/ListItem/index.mjs +1 -1
- package/dist/components/ListItem/index.mjs.map +1 -1
- package/dist/components/ListItemMultiSelect/ListItemMultiSelect.cjs +20 -0
- package/dist/components/ListItemMultiSelect/ListItemMultiSelect.cjs.map +1 -0
- package/dist/components/ListItemMultiSelect/ListItemMultiSelect.d.cts +7 -0
- package/dist/components/ListItemMultiSelect/ListItemMultiSelect.d.cts.map +1 -0
- package/dist/components/ListItemMultiSelect/ListItemMultiSelect.d.mts +7 -0
- package/dist/components/ListItemMultiSelect/ListItemMultiSelect.d.mts.map +1 -0
- package/dist/components/ListItemMultiSelect/ListItemMultiSelect.mjs +20 -0
- package/dist/components/ListItemMultiSelect/ListItemMultiSelect.mjs.map +1 -0
- package/dist/components/ListItemMultiSelect/ListItemMultiSelect.types.cjs +3 -0
- package/dist/components/ListItemMultiSelect/ListItemMultiSelect.types.cjs.map +1 -0
- package/dist/components/ListItemMultiSelect/ListItemMultiSelect.types.d.cts +14 -0
- package/dist/components/ListItemMultiSelect/ListItemMultiSelect.types.d.cts.map +1 -0
- package/dist/components/ListItemMultiSelect/ListItemMultiSelect.types.d.mts +14 -0
- package/dist/components/ListItemMultiSelect/ListItemMultiSelect.types.d.mts.map +1 -0
- package/dist/components/ListItemMultiSelect/ListItemMultiSelect.types.mjs +2 -0
- package/dist/components/ListItemMultiSelect/ListItemMultiSelect.types.mjs.map +1 -0
- package/dist/components/ListItemMultiSelect/index.cjs +6 -0
- package/dist/components/ListItemMultiSelect/index.cjs.map +1 -0
- package/dist/components/ListItemMultiSelect/index.d.cts +3 -0
- package/dist/components/ListItemMultiSelect/index.d.cts.map +1 -0
- package/dist/components/ListItemMultiSelect/index.d.mts +3 -0
- package/dist/components/ListItemMultiSelect/index.d.mts.map +1 -0
- package/dist/components/ListItemMultiSelect/index.mjs +2 -0
- package/dist/components/ListItemMultiSelect/index.mjs.map +1 -0
- package/dist/components/ListItemSelect/ListItemSelect.cjs +21 -0
- package/dist/components/ListItemSelect/ListItemSelect.cjs.map +1 -0
- package/dist/components/ListItemSelect/ListItemSelect.d.cts +7 -0
- package/dist/components/ListItemSelect/ListItemSelect.d.cts.map +1 -0
- package/dist/components/ListItemSelect/ListItemSelect.d.mts +7 -0
- package/dist/components/ListItemSelect/ListItemSelect.d.mts.map +1 -0
- package/dist/components/ListItemSelect/ListItemSelect.mjs +21 -0
- package/dist/components/ListItemSelect/ListItemSelect.mjs.map +1 -0
- package/dist/components/ListItemSelect/ListItemSelect.types.cjs +3 -0
- package/dist/components/ListItemSelect/ListItemSelect.types.cjs.map +1 -0
- package/dist/components/ListItemSelect/ListItemSelect.types.d.cts +18 -0
- package/dist/components/ListItemSelect/ListItemSelect.types.d.cts.map +1 -0
- package/dist/components/ListItemSelect/ListItemSelect.types.d.mts +18 -0
- package/dist/components/ListItemSelect/ListItemSelect.types.d.mts.map +1 -0
- package/dist/components/ListItemSelect/ListItemSelect.types.mjs +2 -0
- package/dist/components/ListItemSelect/ListItemSelect.types.mjs.map +1 -0
- package/dist/components/ListItemSelect/index.cjs +6 -0
- package/dist/components/ListItemSelect/index.cjs.map +1 -0
- package/dist/components/ListItemSelect/index.d.cts +3 -0
- package/dist/components/ListItemSelect/index.d.cts.map +1 -0
- package/dist/components/ListItemSelect/index.d.mts +3 -0
- package/dist/components/ListItemSelect/index.d.mts.map +1 -0
- package/dist/components/ListItemSelect/index.mjs +2 -0
- package/dist/components/ListItemSelect/index.mjs.map +1 -0
- package/dist/components/SectionHeader/SectionHeader.cjs +1 -1
- package/dist/components/SectionHeader/SectionHeader.cjs.map +1 -1
- package/dist/components/SectionHeader/SectionHeader.d.cts.map +1 -1
- package/dist/components/SectionHeader/SectionHeader.d.mts.map +1 -1
- package/dist/components/SectionHeader/SectionHeader.mjs +2 -2
- package/dist/components/SectionHeader/SectionHeader.mjs.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.cjs +50 -0
- package/dist/components/SegmentedControl/SegmentedControl.cjs.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.constants.cjs +12 -0
- package/dist/components/SegmentedControl/SegmentedControl.constants.cjs.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.constants.d.cts +4 -0
- package/dist/components/SegmentedControl/SegmentedControl.constants.d.cts.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.constants.d.mts +4 -0
- package/dist/components/SegmentedControl/SegmentedControl.constants.d.mts.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.constants.mjs +8 -0
- package/dist/components/SegmentedControl/SegmentedControl.constants.mjs.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.cts +7 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.cts.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.mts +7 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.mts.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.mjs +30 -0
- package/dist/components/SegmentedControl/SegmentedControl.mjs.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.types.cjs +3 -0
- package/dist/components/SegmentedControl/SegmentedControl.types.cjs.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.types.d.cts +12 -0
- package/dist/components/SegmentedControl/SegmentedControl.types.d.cts.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.types.d.mts +12 -0
- package/dist/components/SegmentedControl/SegmentedControl.types.d.mts.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.types.mjs +2 -0
- package/dist/components/SegmentedControl/SegmentedControl.types.mjs.map +1 -0
- package/dist/components/SegmentedControl/index.cjs +6 -0
- package/dist/components/SegmentedControl/index.cjs.map +1 -0
- package/dist/components/SegmentedControl/index.d.cts +3 -0
- package/dist/components/SegmentedControl/index.d.cts.map +1 -0
- package/dist/components/SegmentedControl/index.d.mts +3 -0
- package/dist/components/SegmentedControl/index.d.mts.map +1 -0
- package/dist/components/SegmentedControl/index.mjs +2 -0
- package/dist/components/SegmentedControl/index.mjs.map +1 -0
- package/dist/components/SelectButton/SelectButton.constants.cjs +4 -5
- package/dist/components/SelectButton/SelectButton.constants.cjs.map +1 -1
- package/dist/components/SelectButton/SelectButton.constants.d.cts +1 -2
- package/dist/components/SelectButton/SelectButton.constants.d.cts.map +1 -1
- package/dist/components/SelectButton/SelectButton.constants.d.mts +1 -2
- package/dist/components/SelectButton/SelectButton.constants.d.mts.map +1 -1
- package/dist/components/SelectButton/SelectButton.constants.mjs +1 -2
- package/dist/components/SelectButton/SelectButton.constants.mjs.map +1 -1
- package/dist/components/Switch/Switch.cjs +28 -0
- package/dist/components/Switch/Switch.cjs.map +1 -0
- package/dist/components/Switch/Switch.d.cts +4 -0
- package/dist/components/Switch/Switch.d.cts.map +1 -0
- package/dist/components/Switch/Switch.d.mts +4 -0
- package/dist/components/Switch/Switch.d.mts.map +1 -0
- package/dist/components/Switch/Switch.mjs +28 -0
- package/dist/components/Switch/Switch.mjs.map +1 -0
- package/dist/components/Switch/Switch.types.cjs +3 -0
- package/dist/components/Switch/Switch.types.cjs.map +1 -0
- package/dist/components/Switch/Switch.types.d.cts +14 -0
- package/dist/components/Switch/Switch.types.d.cts.map +1 -0
- package/dist/components/Switch/Switch.types.d.mts +14 -0
- package/dist/components/Switch/Switch.types.d.mts.map +1 -0
- package/dist/components/Switch/Switch.types.mjs +2 -0
- package/dist/components/Switch/Switch.types.mjs.map +1 -0
- package/dist/components/Switch/index.cjs +6 -0
- package/dist/components/Switch/index.cjs.map +1 -0
- package/dist/components/Switch/index.d.cts +3 -0
- package/dist/components/Switch/index.d.cts.map +1 -0
- package/dist/components/Switch/index.d.mts +3 -0
- package/dist/components/Switch/index.d.mts.map +1 -0
- package/dist/components/Switch/index.mjs +2 -0
- package/dist/components/Switch/index.mjs.map +1 -0
- package/dist/components/TabEmptyState/TabEmptyState.cjs +2 -1
- package/dist/components/TabEmptyState/TabEmptyState.cjs.map +1 -1
- package/dist/components/TabEmptyState/TabEmptyState.d.cts.map +1 -1
- package/dist/components/TabEmptyState/TabEmptyState.d.mts.map +1 -1
- package/dist/components/TabEmptyState/TabEmptyState.mjs +2 -1
- package/dist/components/TabEmptyState/TabEmptyState.mjs.map +1 -1
- package/dist/components/Tag/Tag.constants.cjs +3 -3
- package/dist/components/Tag/Tag.constants.cjs.map +1 -1
- package/dist/components/Tag/Tag.constants.mjs +3 -3
- package/dist/components/Tag/Tag.constants.mjs.map +1 -1
- package/dist/components/TextButton/TextButton.types.cjs.map +1 -1
- package/dist/components/TextButton/TextButton.types.d.cts +2 -5
- package/dist/components/TextButton/TextButton.types.d.cts.map +1 -1
- package/dist/components/TextButton/TextButton.types.d.mts +2 -5
- package/dist/components/TextButton/TextButton.types.d.mts.map +1 -1
- package/dist/components/TextButton/TextButton.types.mjs.map +1 -1
- package/dist/components/TextField/TextField.cjs +2 -1
- 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 +2 -1
- package/dist/components/TextField/TextField.mjs.map +1 -1
- package/dist/components/Toast/Toast.cjs +1 -1
- package/dist/components/Toast/Toast.cjs.map +1 -1
- package/dist/components/Toast/Toast.constants.cjs +5 -8
- package/dist/components/Toast/Toast.constants.cjs.map +1 -1
- package/dist/components/Toast/Toast.constants.d.cts +2 -7
- package/dist/components/Toast/Toast.constants.d.cts.map +1 -1
- package/dist/components/Toast/Toast.constants.d.mts +2 -7
- package/dist/components/Toast/Toast.constants.d.mts.map +1 -1
- package/dist/components/Toast/Toast.constants.mjs +2 -7
- package/dist/components/Toast/Toast.constants.mjs.map +1 -1
- package/dist/components/Toast/Toast.d.cts.map +1 -1
- package/dist/components/Toast/Toast.d.mts.map +1 -1
- package/dist/components/Toast/Toast.mjs +2 -2
- package/dist/components/Toast/Toast.mjs.map +1 -1
- package/dist/components/Toast/Toast.types.cjs +2 -10
- package/dist/components/Toast/Toast.types.cjs.map +1 -1
- package/dist/components/Toast/Toast.types.d.cts +4 -11
- package/dist/components/Toast/Toast.types.d.cts.map +1 -1
- package/dist/components/Toast/Toast.types.d.mts +4 -11
- package/dist/components/Toast/Toast.types.d.mts.map +1 -1
- package/dist/components/Toast/Toast.types.mjs +2 -10
- package/dist/components/Toast/Toast.types.mjs.map +1 -1
- package/dist/components/Toast/index.cjs +3 -5
- package/dist/components/Toast/index.cjs.map +1 -1
- package/dist/components/Toast/index.d.cts +2 -2
- package/dist/components/Toast/index.d.cts.map +1 -1
- package/dist/components/Toast/index.d.mts +2 -2
- package/dist/components/Toast/index.d.mts.map +1 -1
- package/dist/components/Toast/index.mjs +2 -2
- package/dist/components/Toast/index.mjs.map +1 -1
- package/dist/components/index.cjs +19 -9
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +16 -6
- package/dist/components/index.d.cts.map +1 -1
- package/dist/components/index.d.mts +16 -6
- package/dist/components/index.d.mts.map +1 -1
- package/dist/components/index.mjs +8 -3
- package/dist/components/index.mjs.map +1 -1
- package/package.json +7 -5
- package/dist/components/ListItem/ListItem.constants.cjs +0 -14
- package/dist/components/ListItem/ListItem.constants.cjs.map +0 -1
- package/dist/components/ListItem/ListItem.constants.d.cts +0 -8
- package/dist/components/ListItem/ListItem.constants.d.cts.map +0 -1
- package/dist/components/ListItem/ListItem.constants.d.mts +0 -8
- package/dist/components/ListItem/ListItem.constants.d.mts.map +0 -1
- package/dist/components/ListItem/ListItem.constants.mjs +0 -11
- package/dist/components/ListItem/ListItem.constants.mjs.map +0 -1
- package/dist/components/SegmentButton/SegmentButton.cjs.map +0 -1
- package/dist/components/SegmentButton/SegmentButton.d.cts +0 -7
- package/dist/components/SegmentButton/SegmentButton.d.cts.map +0 -1
- package/dist/components/SegmentButton/SegmentButton.d.mts +0 -7
- package/dist/components/SegmentButton/SegmentButton.d.mts.map +0 -1
- package/dist/components/SegmentButton/SegmentButton.mjs.map +0 -1
- package/dist/components/SegmentButton/SegmentButton.types.cjs.map +0 -1
- package/dist/components/SegmentButton/SegmentButton.types.d.cts +0 -9
- package/dist/components/SegmentButton/SegmentButton.types.d.cts.map +0 -1
- package/dist/components/SegmentButton/SegmentButton.types.d.mts +0 -9
- package/dist/components/SegmentButton/SegmentButton.types.d.mts.map +0 -1
- package/dist/components/SegmentButton/SegmentButton.types.mjs +0 -2
- package/dist/components/SegmentButton/SegmentButton.types.mjs.map +0 -1
- package/dist/components/SegmentButton/index.cjs +0 -8
- package/dist/components/SegmentButton/index.cjs.map +0 -1
- package/dist/components/SegmentButton/index.d.cts +0 -4
- package/dist/components/SegmentButton/index.d.cts.map +0 -1
- package/dist/components/SegmentButton/index.d.mts +0 -4
- package/dist/components/SegmentButton/index.d.mts.map +0 -1
- package/dist/components/SegmentButton/index.mjs +0 -3
- package/dist/components/SegmentButton/index.mjs.map +0 -1
- package/dist/components/SegmentGroup/SegmentGroup.cjs.map +0 -1
- package/dist/components/SegmentGroup/SegmentGroup.d.cts +0 -7
- package/dist/components/SegmentGroup/SegmentGroup.d.cts.map +0 -1
- package/dist/components/SegmentGroup/SegmentGroup.d.mts +0 -7
- package/dist/components/SegmentGroup/SegmentGroup.d.mts.map +0 -1
- package/dist/components/SegmentGroup/SegmentGroup.mjs.map +0 -1
- package/dist/components/SegmentGroup/SegmentGroup.types.cjs.map +0 -1
- package/dist/components/SegmentGroup/SegmentGroup.types.d.cts +0 -12
- package/dist/components/SegmentGroup/SegmentGroup.types.d.cts.map +0 -1
- package/dist/components/SegmentGroup/SegmentGroup.types.d.mts +0 -12
- package/dist/components/SegmentGroup/SegmentGroup.types.d.mts.map +0 -1
- package/dist/components/SegmentGroup/SegmentGroup.types.mjs +0 -2
- package/dist/components/SegmentGroup/SegmentGroup.types.mjs.map +0 -1
- package/dist/components/SegmentGroup/index.cjs +0 -6
- package/dist/components/SegmentGroup/index.cjs.map +0 -1
- package/dist/components/SegmentGroup/index.d.cts +0 -3
- package/dist/components/SegmentGroup/index.d.cts.map +0 -1
- package/dist/components/SegmentGroup/index.d.mts +0 -3
- package/dist/components/SegmentGroup/index.d.mts.map +0 -1
- package/dist/components/SegmentGroup/index.mjs +0 -2
- package/dist/components/SegmentGroup/index.mjs.map +0 -1
- package/dist/types/index.cjs +0 -18
- package/dist/types/index.cjs.map +0 -1
- package/dist/types/index.d.cts +0 -8
- package/dist/types/index.d.cts.map +0 -1
- package/dist/types/index.d.mts +0 -8
- package/dist/types/index.d.mts.map +0 -1
- package/dist/types/index.mjs +0 -8
- package/dist/types/index.mjs.map +0 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { SegmentedControlProps } from "./SegmentedControl.types.mjs";
|
|
3
|
+
export declare const SegmentedControl: {
|
|
4
|
+
({ value, onChange, size, isFullWidth, children, twClassName, style, ...rest }: SegmentedControlProps): React.JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=SegmentedControl.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentedControl.d.mts","sourceRoot":"","sources":["../../../src/components/SegmentedControl/SegmentedControl.tsx"],"names":[],"mappings":"AAMA,OAAO,KAA4B,cAAc;AAKjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,qCAAiC;AAEtE,eAAO,MAAM,gBAAgB;oFAS1B,qBAAqB;;CAwCvB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
function $importDefault(module) {
|
|
2
|
+
if (module?.__esModule) {
|
|
3
|
+
return module.default;
|
|
4
|
+
}
|
|
5
|
+
return module;
|
|
6
|
+
}
|
|
7
|
+
import { ButtonBaseSize, FilterButtonGroupContext, FilterButtonVariant, mergeTwClassName } from "@metamask/design-system-shared";
|
|
8
|
+
import $React, { Children, useMemo } from "react";
|
|
9
|
+
const React = $importDefault($React);
|
|
10
|
+
import { Box } from "../Box/index.mjs";
|
|
11
|
+
import { getSegmentedControlBorderRadiusTwClass } from "./SegmentedControl.constants.mjs";
|
|
12
|
+
export const SegmentedControl = ({ value, onChange, size = ButtonBaseSize.Sm, isFullWidth = false, children, twClassName, style, ...rest }) => {
|
|
13
|
+
const contextValue = useMemo(() => ({
|
|
14
|
+
value,
|
|
15
|
+
onChange,
|
|
16
|
+
variant: FilterButtonVariant.Secondary,
|
|
17
|
+
size,
|
|
18
|
+
isEqualWidth: isFullWidth,
|
|
19
|
+
}), [value, onChange, size, isFullWidth]);
|
|
20
|
+
const widthClass = isFullWidth ? 'self-stretch' : 'self-start';
|
|
21
|
+
return (<FilterButtonGroupContext.Provider value={contextValue}>
|
|
22
|
+
<Box {...rest} accessibilityRole="tablist" twClassName={mergeTwClassName(mergeTwClassName(`${widthClass} flex-row items-center gap-1 border border-muted p-1`, getSegmentedControlBorderRadiusTwClass(size)), twClassName)} style={style}>
|
|
23
|
+
{Children.map(children, (child, index) => isFullWidth ? (<Box key={index} twClassName="flex-1">
|
|
24
|
+
{child}
|
|
25
|
+
</Box>) : (<React.Fragment key={index}>{child}</React.Fragment>))}
|
|
26
|
+
</Box>
|
|
27
|
+
</FilterButtonGroupContext.Provider>);
|
|
28
|
+
};
|
|
29
|
+
SegmentedControl.displayName = 'SegmentedControl';
|
|
30
|
+
//# sourceMappingURL=SegmentedControl.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentedControl.mjs","sourceRoot":"","sources":["../../../src/components/SegmentedControl/SegmentedControl.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,cAAc,EACd,wBAAwB,EACxB,mBAAmB,EACnB,gBAAgB,EACjB,uCAAuC;AACxC,OAAO,QAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc;;AAEjD,OAAO,EAAE,GAAG,EAAE,yBAAe;AAE7B,OAAO,EAAE,sCAAsC,EAAE,yCAAqC;AAGtF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAC/B,KAAK,EACL,QAAQ,EACR,IAAI,GAAG,cAAc,CAAC,EAAE,EACxB,WAAW,GAAG,KAAK,EACnB,QAAQ,EACR,WAAW,EACX,KAAK,EACL,GAAG,IAAI,EACe,EAAE,EAAE;IAC1B,MAAM,YAAY,GAAG,OAAO,CAC1B,GAAG,EAAE,CAAC,CAAC;QACL,KAAK;QACL,QAAQ;QACR,OAAO,EAAE,mBAAmB,CAAC,SAAS;QACtC,IAAI;QACJ,YAAY,EAAE,WAAW;KAC1B,CAAC,EACF,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,CAAC,CACrC,CAAC;IAEF,MAAM,UAAU,GAAG,WAAW,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,YAAY,CAAC;IAE/D,OAAO,CACL,CAAC,wBAAwB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CACrD;MAAA,CAAC,GAAG,CACF,IAAI,IAAI,CAAC,CACT,iBAAiB,CAAC,SAAS,CAC3B,WAAW,CAAC,CAAC,gBAAgB,CAC3B,gBAAgB,CACd,GAAG,UAAU,sDAAsD,EACnE,sCAAsC,CAAC,IAAI,CAAC,CAC7C,EACD,WAAW,CACZ,CAAC,CACF,KAAK,CAAC,CAAC,KAAK,CAAC,CAEb;QAAA,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CACvC,WAAW,CAAC,CAAC,CAAC,CACZ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,QAAQ,CACnC;cAAA,CAAC,KAAK,CACR;YAAA,EAAE,GAAG,CAAC,CACP,CAAC,CAAC,CAAC,CACF,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CACrD,CACF,CACH;MAAA,EAAE,GAAG,CACP;IAAA,EAAE,wBAAwB,CAAC,QAAQ,CAAC,CACrC,CAAC;AACJ,CAAC,CAAC;AAEF,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC","sourcesContent":["import {\n ButtonBaseSize,\n FilterButtonGroupContext,\n FilterButtonVariant,\n mergeTwClassName,\n} from '@metamask/design-system-shared';\nimport React, { Children, useMemo } from 'react';\n\nimport { Box } from '../Box';\n\nimport { getSegmentedControlBorderRadiusTwClass } from './SegmentedControl.constants';\nimport type { SegmentedControlProps } from './SegmentedControl.types';\n\nexport const SegmentedControl = ({\n value,\n onChange,\n size = ButtonBaseSize.Sm,\n isFullWidth = false,\n children,\n twClassName,\n style,\n ...rest\n}: SegmentedControlProps) => {\n const contextValue = useMemo(\n () => ({\n value,\n onChange,\n variant: FilterButtonVariant.Secondary,\n size,\n isEqualWidth: isFullWidth,\n }),\n [value, onChange, size, isFullWidth],\n );\n\n const widthClass = isFullWidth ? 'self-stretch' : 'self-start';\n\n return (\n <FilterButtonGroupContext.Provider value={contextValue}>\n <Box\n {...rest}\n accessibilityRole=\"tablist\"\n twClassName={mergeTwClassName(\n mergeTwClassName(\n `${widthClass} flex-row items-center gap-1 border border-muted p-1`,\n getSegmentedControlBorderRadiusTwClass(size),\n ),\n twClassName,\n )}\n style={style}\n >\n {Children.map(children, (child, index) =>\n isFullWidth ? (\n <Box key={index} twClassName=\"flex-1\">\n {child}\n </Box>\n ) : (\n <React.Fragment key={index}>{child}</React.Fragment>\n ),\n )}\n </Box>\n </FilterButtonGroupContext.Provider>\n );\n};\n\nSegmentedControl.displayName = 'SegmentedControl';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentedControl.types.cjs","sourceRoot":"","sources":["../../../src/components/SegmentedControl/SegmentedControl.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { SegmentedControlPropsShared } from '@metamask/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\n/**\n * SegmentedControl component props.\n */\nexport type SegmentedControlProps = SegmentedControlPropsShared &\n ViewProps & {\n /**\n * Optional twrnc classes merged into the root container after defaults.\n */\n twClassName?: string;\n };\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { SegmentedControlPropsShared } from "@metamask/design-system-shared";
|
|
2
|
+
import type { ViewProps } from "react-native";
|
|
3
|
+
/**
|
|
4
|
+
* SegmentedControl component props.
|
|
5
|
+
*/
|
|
6
|
+
export type SegmentedControlProps = SegmentedControlPropsShared & ViewProps & {
|
|
7
|
+
/**
|
|
8
|
+
* Optional twrnc classes merged into the root container after defaults.
|
|
9
|
+
*/
|
|
10
|
+
twClassName?: string;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=SegmentedControl.types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentedControl.types.d.cts","sourceRoot":"","sources":["../../../src/components/SegmentedControl/SegmentedControl.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,uCAAuC;AAClF,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAE9C;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,2BAA2B,GAC7D,SAAS,GAAG;IACV;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { SegmentedControlPropsShared } from "@metamask/design-system-shared";
|
|
2
|
+
import type { ViewProps } from "react-native";
|
|
3
|
+
/**
|
|
4
|
+
* SegmentedControl component props.
|
|
5
|
+
*/
|
|
6
|
+
export type SegmentedControlProps = SegmentedControlPropsShared & ViewProps & {
|
|
7
|
+
/**
|
|
8
|
+
* Optional twrnc classes merged into the root container after defaults.
|
|
9
|
+
*/
|
|
10
|
+
twClassName?: string;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=SegmentedControl.types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentedControl.types.d.mts","sourceRoot":"","sources":["../../../src/components/SegmentedControl/SegmentedControl.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,uCAAuC;AAClF,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB;AAE9C;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,2BAA2B,GAC7D,SAAS,GAAG;IACV;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentedControl.types.mjs","sourceRoot":"","sources":["../../../src/components/SegmentedControl/SegmentedControl.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { SegmentedControlPropsShared } from '@metamask/design-system-shared';\nimport type { ViewProps } from 'react-native';\n\n/**\n * SegmentedControl component props.\n */\nexport type SegmentedControlProps = SegmentedControlPropsShared &\n ViewProps & {\n /**\n * Optional twrnc classes merged into the root container after defaults.\n */\n twClassName?: string;\n };\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SegmentedControl = void 0;
|
|
4
|
+
var SegmentedControl_1 = require("./SegmentedControl.cjs");
|
|
5
|
+
Object.defineProperty(exports, "SegmentedControl", { enumerable: true, get: function () { return SegmentedControl_1.SegmentedControl; } });
|
|
6
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/SegmentedControl/index.ts"],"names":[],"mappings":";;;AAAA,2DAAsD;AAA7C,oHAAA,gBAAgB,OAAA","sourcesContent":["export { SegmentedControl } from './SegmentedControl';\nexport type { SegmentedControlProps } from './SegmentedControl.types';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/SegmentedControl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,+BAA2B;AACtD,YAAY,EAAE,qBAAqB,EAAE,qCAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/SegmentedControl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,+BAA2B;AACtD,YAAY,EAAE,qBAAqB,EAAE,qCAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/SegmentedControl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,+BAA2B","sourcesContent":["export { SegmentedControl } from './SegmentedControl';\nexport type { SegmentedControlProps } from './SegmentedControl.types';\n"]}
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MAP_SELECTBUTTON_END_ARROW_DIRECTION_TO_ICON_NAME = void 0;
|
|
4
4
|
const design_system_shared_1 = require("@metamask/design-system-shared");
|
|
5
|
-
const types_1 = require("../../types/index.cjs");
|
|
6
5
|
exports.MAP_SELECTBUTTON_END_ARROW_DIRECTION_TO_ICON_NAME = {
|
|
7
|
-
[design_system_shared_1.SelectButtonEndArrow.Up]:
|
|
8
|
-
[design_system_shared_1.SelectButtonEndArrow.Down]:
|
|
9
|
-
[design_system_shared_1.SelectButtonEndArrow.Left]:
|
|
10
|
-
[design_system_shared_1.SelectButtonEndArrow.Right]:
|
|
6
|
+
[design_system_shared_1.SelectButtonEndArrow.Up]: design_system_shared_1.IconName.ArrowUp,
|
|
7
|
+
[design_system_shared_1.SelectButtonEndArrow.Down]: design_system_shared_1.IconName.ArrowDown,
|
|
8
|
+
[design_system_shared_1.SelectButtonEndArrow.Left]: design_system_shared_1.IconName.ArrowLeft,
|
|
9
|
+
[design_system_shared_1.SelectButtonEndArrow.Right]: design_system_shared_1.IconName.ArrowRight,
|
|
11
10
|
};
|
|
12
11
|
//# sourceMappingURL=SelectButton.constants.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectButton.constants.cjs","sourceRoot":"","sources":["../../../src/components/SelectButton/SelectButton.constants.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"SelectButton.constants.cjs","sourceRoot":"","sources":["../../../src/components/SelectButton/SelectButton.constants.ts"],"names":[],"mappings":";;;AAAA,yEAAgF;AAEnE,QAAA,iDAAiD,GAG1D;IACF,CAAC,2CAAoB,CAAC,EAAE,CAAC,EAAE,+BAAQ,CAAC,OAAO;IAC3C,CAAC,2CAAoB,CAAC,IAAI,CAAC,EAAE,+BAAQ,CAAC,SAAS;IAC/C,CAAC,2CAAoB,CAAC,IAAI,CAAC,EAAE,+BAAQ,CAAC,SAAS;IAC/C,CAAC,2CAAoB,CAAC,KAAK,CAAC,EAAE,+BAAQ,CAAC,UAAU;CAClD,CAAC","sourcesContent":["import { IconName, SelectButtonEndArrow } from '@metamask/design-system-shared';\n\nexport const MAP_SELECTBUTTON_END_ARROW_DIRECTION_TO_ICON_NAME: Record<\n (typeof SelectButtonEndArrow)[keyof typeof SelectButtonEndArrow],\n IconName\n> = {\n [SelectButtonEndArrow.Up]: IconName.ArrowUp,\n [SelectButtonEndArrow.Down]: IconName.ArrowDown,\n [SelectButtonEndArrow.Left]: IconName.ArrowLeft,\n [SelectButtonEndArrow.Right]: IconName.ArrowRight,\n};\n"]}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SelectButtonEndArrow } from "@metamask/design-system-shared";
|
|
2
|
-
import { IconName } from "../../types/index.cjs";
|
|
1
|
+
import { IconName, SelectButtonEndArrow } from "@metamask/design-system-shared";
|
|
3
2
|
export declare const MAP_SELECTBUTTON_END_ARROW_DIRECTION_TO_ICON_NAME: Record<(typeof SelectButtonEndArrow)[keyof typeof SelectButtonEndArrow], IconName>;
|
|
4
3
|
//# sourceMappingURL=SelectButton.constants.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectButton.constants.d.cts","sourceRoot":"","sources":["../../../src/components/SelectButton/SelectButton.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"SelectButton.constants.d.cts","sourceRoot":"","sources":["../../../src/components/SelectButton/SelectButton.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,uCAAuC;AAEhF,eAAO,MAAM,iDAAiD,EAAE,MAAM,CACpE,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,EAChE,QAAQ,CAMT,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SelectButtonEndArrow } from "@metamask/design-system-shared";
|
|
2
|
-
import { IconName } from "../../types/index.mjs";
|
|
1
|
+
import { IconName, SelectButtonEndArrow } from "@metamask/design-system-shared";
|
|
3
2
|
export declare const MAP_SELECTBUTTON_END_ARROW_DIRECTION_TO_ICON_NAME: Record<(typeof SelectButtonEndArrow)[keyof typeof SelectButtonEndArrow], IconName>;
|
|
4
3
|
//# sourceMappingURL=SelectButton.constants.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectButton.constants.d.mts","sourceRoot":"","sources":["../../../src/components/SelectButton/SelectButton.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"SelectButton.constants.d.mts","sourceRoot":"","sources":["../../../src/components/SelectButton/SelectButton.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,uCAAuC;AAEhF,eAAO,MAAM,iDAAiD,EAAE,MAAM,CACpE,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,EAChE,QAAQ,CAMT,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { SelectButtonEndArrow } from "@metamask/design-system-shared";
|
|
2
|
-
import { IconName } from "../../types/index.mjs";
|
|
1
|
+
import { IconName, SelectButtonEndArrow } from "@metamask/design-system-shared";
|
|
3
2
|
export const MAP_SELECTBUTTON_END_ARROW_DIRECTION_TO_ICON_NAME = {
|
|
4
3
|
[SelectButtonEndArrow.Up]: IconName.ArrowUp,
|
|
5
4
|
[SelectButtonEndArrow.Down]: IconName.ArrowDown,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectButton.constants.mjs","sourceRoot":"","sources":["../../../src/components/SelectButton/SelectButton.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"SelectButton.constants.mjs","sourceRoot":"","sources":["../../../src/components/SelectButton/SelectButton.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,uCAAuC;AAEhF,MAAM,CAAC,MAAM,iDAAiD,GAG1D;IACF,CAAC,oBAAoB,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,OAAO;IAC3C,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,SAAS;IAC/C,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,SAAS;IAC/C,CAAC,oBAAoB,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,UAAU;CAClD,CAAC","sourcesContent":["import { IconName, SelectButtonEndArrow } from '@metamask/design-system-shared';\n\nexport const MAP_SELECTBUTTON_END_ARROW_DIRECTION_TO_ICON_NAME: Record<\n (typeof SelectButtonEndArrow)[keyof typeof SelectButtonEndArrow],\n IconName\n> = {\n [SelectButtonEndArrow.Up]: IconName.ArrowUp,\n [SelectButtonEndArrow.Down]: IconName.ArrowDown,\n [SelectButtonEndArrow.Left]: IconName.ArrowLeft,\n [SelectButtonEndArrow.Right]: IconName.ArrowRight,\n};\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
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.Switch = void 0;
|
|
7
|
+
const design_system_twrnc_preset_1 = require("@metamask/design-system-twrnc-preset");
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
9
|
+
const react_native_1 = require("react-native");
|
|
10
|
+
const Text_1 = require("../Text/index.cjs");
|
|
11
|
+
const IOS_SWITCH_MARGIN_FIX = 4;
|
|
12
|
+
const Switch = ({ isOn, isDisabled = false, onValueChange, label, style, testID, ...props }) => {
|
|
13
|
+
const tw = (0, design_system_twrnc_preset_1.useTailwind)();
|
|
14
|
+
return (<react_native_1.View testID={testID} style={tw.style('flex-row items-center', isDisabled && 'opacity-50')}>
|
|
15
|
+
{label ? (<Text_1.Text variant={Text_1.TextVariant.BodyMd} color={Text_1.TextColor.TextDefault} style={tw `mr-2 flex-1`}>
|
|
16
|
+
{label}
|
|
17
|
+
</Text_1.Text>) : null}
|
|
18
|
+
<react_native_1.Switch {...props} value={isOn} disabled={isDisabled} onValueChange={onValueChange} accessibilityRole="switch" accessibilityState={{
|
|
19
|
+
checked: isOn,
|
|
20
|
+
disabled: isDisabled,
|
|
21
|
+
}} accessibilityLabel={label} style={[
|
|
22
|
+
react_native_1.Platform.OS === 'ios' && { marginRight: IOS_SWITCH_MARGIN_FIX },
|
|
23
|
+
style,
|
|
24
|
+
]}/>
|
|
25
|
+
</react_native_1.View>);
|
|
26
|
+
};
|
|
27
|
+
exports.Switch = Switch;
|
|
28
|
+
//# sourceMappingURL=Switch.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.cjs","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":";;;;;;AAAA,qFAAmE;AACnE,kDAA0B;AAC1B,+CAAkE;AAElE,4CAAuD;AAIvD,MAAM,qBAAqB,GAAG,CAAC,CAAC;AAEzB,MAAM,MAAM,GAAG,CAAC,EACrB,IAAI,EACJ,UAAU,GAAG,KAAK,EAClB,aAAa,EACb,KAAK,EACL,KAAK,EACL,MAAM,EACN,GAAG,KAAK,EACI,EAAE,EAAE;IAChB,MAAM,EAAE,GAAG,IAAA,wCAAW,GAAE,CAAC;IAEzB,OAAO,CACL,CAAC,mBAAI,CACH,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,KAAK,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,uBAAuB,EAAE,UAAU,IAAI,YAAY,CAAC,CAAC,CAErE;MAAA,CAAC,KAAK,CAAC,CAAC,CAAC,CACP,CAAC,WAAI,CACH,OAAO,CAAC,CAAC,kBAAW,CAAC,MAAM,CAAC,CAC5B,KAAK,CAAC,CAAC,gBAAS,CAAC,WAAW,CAAC,CAC7B,KAAK,CAAC,CAAC,EAAE,CAAA,aAAa,CAAC,CAEvB;UAAA,CAAC,KAAK,CACR;QAAA,EAAE,WAAI,CAAC,CACR,CAAC,CAAC,CAAC,IAAI,CACR;MAAA,CAAC,qBAAQ,CACP,IAAI,KAAK,CAAC,CACV,KAAK,CAAC,CAAC,IAAI,CAAC,CACZ,QAAQ,CAAC,CAAC,UAAU,CAAC,CACrB,aAAa,CAAC,CAAC,aAAa,CAAC,CAC7B,iBAAiB,CAAC,QAAQ,CAC1B,kBAAkB,CAAC,CAAC;YAClB,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,UAAU;SACrB,CAAC,CACF,kBAAkB,CAAC,CAAC,KAAK,CAAC,CAC1B,KAAK,CAAC,CAAC;YACL,uBAAQ,CAAC,EAAE,KAAK,KAAK,IAAI,EAAE,WAAW,EAAE,qBAAqB,EAAE;YAC/D,KAAK;SACN,CAAC,EAEN;IAAA,EAAE,mBAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AA3CW,QAAA,MAAM,UA2CjB","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { Switch as RNSwitch, Platform, View } from 'react-native';\n\nimport { Text, TextVariant, TextColor } from '../Text';\n\nimport type { SwitchProps } from './Switch.types';\n\nconst IOS_SWITCH_MARGIN_FIX = 4;\n\nexport const Switch = ({\n isOn,\n isDisabled = false,\n onValueChange,\n label,\n style,\n testID,\n ...props\n}: SwitchProps) => {\n const tw = useTailwind();\n\n return (\n <View\n testID={testID}\n style={tw.style('flex-row items-center', isDisabled && 'opacity-50')}\n >\n {label ? (\n <Text\n variant={TextVariant.BodyMd}\n color={TextColor.TextDefault}\n style={tw`mr-2 flex-1`}\n >\n {label}\n </Text>\n ) : null}\n <RNSwitch\n {...props}\n value={isOn}\n disabled={isDisabled}\n onValueChange={onValueChange}\n accessibilityRole=\"switch\"\n accessibilityState={{\n checked: isOn,\n disabled: isDisabled,\n }}\n accessibilityLabel={label}\n style={[\n Platform.OS === 'ios' && { marginRight: IOS_SWITCH_MARGIN_FIX },\n style,\n ]}\n />\n </View>\n );\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.d.cts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,WAAW,EAAE,2BAAuB;AAIlD,eAAO,MAAM,MAAM,wEAQhB,WAAW,sBAmCb,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.d.mts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,WAAW,EAAE,2BAAuB;AAIlD,eAAO,MAAM,MAAM,wEAQhB,WAAW,sBAmCb,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
function $importDefault(module) {
|
|
2
|
+
if (module?.__esModule) {
|
|
3
|
+
return module.default;
|
|
4
|
+
}
|
|
5
|
+
return module;
|
|
6
|
+
}
|
|
7
|
+
import { useTailwind } from "@metamask/design-system-twrnc-preset";
|
|
8
|
+
import $React from "react";
|
|
9
|
+
const React = $importDefault($React);
|
|
10
|
+
import { Switch as RNSwitch, Platform, View } from "react-native";
|
|
11
|
+
import { Text, TextVariant, TextColor } from "../Text/index.mjs";
|
|
12
|
+
const IOS_SWITCH_MARGIN_FIX = 4;
|
|
13
|
+
export const Switch = ({ isOn, isDisabled = false, onValueChange, label, style, testID, ...props }) => {
|
|
14
|
+
const tw = useTailwind();
|
|
15
|
+
return (<View testID={testID} style={tw.style('flex-row items-center', isDisabled && 'opacity-50')}>
|
|
16
|
+
{label ? (<Text variant={TextVariant.BodyMd} color={TextColor.TextDefault} style={tw `mr-2 flex-1`}>
|
|
17
|
+
{label}
|
|
18
|
+
</Text>) : null}
|
|
19
|
+
<RNSwitch {...props} value={isOn} disabled={isDisabled} onValueChange={onValueChange} accessibilityRole="switch" accessibilityState={{
|
|
20
|
+
checked: isOn,
|
|
21
|
+
disabled: isDisabled,
|
|
22
|
+
}} accessibilityLabel={label} style={[
|
|
23
|
+
Platform.OS === 'ios' && { marginRight: IOS_SWITCH_MARGIN_FIX },
|
|
24
|
+
style,
|
|
25
|
+
]}/>
|
|
26
|
+
</View>);
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=Switch.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.mjs","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,MAAM,IAAI,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,qBAAqB;AAElE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,0BAAgB;AAIvD,MAAM,qBAAqB,GAAG,CAAC,CAAC;AAEhC,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EACrB,IAAI,EACJ,UAAU,GAAG,KAAK,EAClB,aAAa,EACb,KAAK,EACL,KAAK,EACL,MAAM,EACN,GAAG,KAAK,EACI,EAAE,EAAE;IAChB,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,OAAO,CACL,CAAC,IAAI,CACH,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,KAAK,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,uBAAuB,EAAE,UAAU,IAAI,YAAY,CAAC,CAAC,CAErE;MAAA,CAAC,KAAK,CAAC,CAAC,CAAC,CACP,CAAC,IAAI,CACH,OAAO,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAC5B,KAAK,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,CAC7B,KAAK,CAAC,CAAC,EAAE,CAAA,aAAa,CAAC,CAEvB;UAAA,CAAC,KAAK,CACR;QAAA,EAAE,IAAI,CAAC,CACR,CAAC,CAAC,CAAC,IAAI,CACR;MAAA,CAAC,QAAQ,CACP,IAAI,KAAK,CAAC,CACV,KAAK,CAAC,CAAC,IAAI,CAAC,CACZ,QAAQ,CAAC,CAAC,UAAU,CAAC,CACrB,aAAa,CAAC,CAAC,aAAa,CAAC,CAC7B,iBAAiB,CAAC,QAAQ,CAC1B,kBAAkB,CAAC,CAAC;YAClB,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,UAAU;SACrB,CAAC,CACF,kBAAkB,CAAC,CAAC,KAAK,CAAC,CAC1B,KAAK,CAAC,CAAC;YACL,QAAQ,CAAC,EAAE,KAAK,KAAK,IAAI,EAAE,WAAW,EAAE,qBAAqB,EAAE;YAC/D,KAAK;SACN,CAAC,EAEN;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { Switch as RNSwitch, Platform, View } from 'react-native';\n\nimport { Text, TextVariant, TextColor } from '../Text';\n\nimport type { SwitchProps } from './Switch.types';\n\nconst IOS_SWITCH_MARGIN_FIX = 4;\n\nexport const Switch = ({\n isOn,\n isDisabled = false,\n onValueChange,\n label,\n style,\n testID,\n ...props\n}: SwitchProps) => {\n const tw = useTailwind();\n\n return (\n <View\n testID={testID}\n style={tw.style('flex-row items-center', isDisabled && 'opacity-50')}\n >\n {label ? (\n <Text\n variant={TextVariant.BodyMd}\n color={TextColor.TextDefault}\n style={tw`mr-2 flex-1`}\n >\n {label}\n </Text>\n ) : null}\n <RNSwitch\n {...props}\n value={isOn}\n disabled={isDisabled}\n onValueChange={onValueChange}\n accessibilityRole=\"switch\"\n accessibilityState={{\n checked: isOn,\n disabled: isDisabled,\n }}\n accessibilityLabel={label}\n style={[\n Platform.OS === 'ios' && { marginRight: IOS_SWITCH_MARGIN_FIX },\n style,\n ]}\n />\n </View>\n );\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.types.cjs","sourceRoot":"","sources":["../../../src/components/Switch/Switch.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { SwitchPropsShared } from '@metamask/design-system-shared';\nimport type { SwitchProps as RNSwitchProps } from 'react-native';\n\n/**\n * Switch component props (React Native platform-specific)\n * Extends shared props from @metamask/design-system-shared with React Native specific platform concerns\n */\nexport type SwitchProps = SwitchPropsShared &\n Omit<RNSwitchProps, 'value' | 'disabled' | 'onValueChange'> & {\n /**\n * Required callback for when the switch value changes.\n * Use this to update your state.\n */\n onValueChange: (value: boolean) => void;\n };\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SwitchPropsShared } from "@metamask/design-system-shared";
|
|
2
|
+
import type { SwitchProps as RNSwitchProps } from "react-native";
|
|
3
|
+
/**
|
|
4
|
+
* Switch component props (React Native platform-specific)
|
|
5
|
+
* Extends shared props from @metamask/design-system-shared with React Native specific platform concerns
|
|
6
|
+
*/
|
|
7
|
+
export type SwitchProps = SwitchPropsShared & Omit<RNSwitchProps, 'value' | 'disabled' | 'onValueChange'> & {
|
|
8
|
+
/**
|
|
9
|
+
* Required callback for when the switch value changes.
|
|
10
|
+
* Use this to update your state.
|
|
11
|
+
*/
|
|
12
|
+
onValueChange: (value: boolean) => void;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=Switch.types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.types.d.cts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,uCAAuC;AACxE,OAAO,KAAK,EAAE,WAAW,IAAI,aAAa,EAAE,qBAAqB;AAEjE;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,iBAAiB,GACzC,IAAI,CAAC,aAAa,EAAE,OAAO,GAAG,UAAU,GAAG,eAAe,CAAC,GAAG;IAC5D;;;OAGG;IACH,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACzC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { SwitchPropsShared } from "@metamask/design-system-shared";
|
|
2
|
+
import type { SwitchProps as RNSwitchProps } from "react-native";
|
|
3
|
+
/**
|
|
4
|
+
* Switch component props (React Native platform-specific)
|
|
5
|
+
* Extends shared props from @metamask/design-system-shared with React Native specific platform concerns
|
|
6
|
+
*/
|
|
7
|
+
export type SwitchProps = SwitchPropsShared & Omit<RNSwitchProps, 'value' | 'disabled' | 'onValueChange'> & {
|
|
8
|
+
/**
|
|
9
|
+
* Required callback for when the switch value changes.
|
|
10
|
+
* Use this to update your state.
|
|
11
|
+
*/
|
|
12
|
+
onValueChange: (value: boolean) => void;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=Switch.types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.types.d.mts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,uCAAuC;AACxE,OAAO,KAAK,EAAE,WAAW,IAAI,aAAa,EAAE,qBAAqB;AAEjE;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,iBAAiB,GACzC,IAAI,CAAC,aAAa,EAAE,OAAO,GAAG,UAAU,GAAG,eAAe,CAAC,GAAG;IAC5D;;;OAGG;IACH,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.types.mjs","sourceRoot":"","sources":["../../../src/components/Switch/Switch.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { SwitchPropsShared } from '@metamask/design-system-shared';\nimport type { SwitchProps as RNSwitchProps } from 'react-native';\n\n/**\n * Switch component props (React Native platform-specific)\n * Extends shared props from @metamask/design-system-shared with React Native specific platform concerns\n */\nexport type SwitchProps = SwitchPropsShared &\n Omit<RNSwitchProps, 'value' | 'disabled' | 'onValueChange'> & {\n /**\n * Required callback for when the switch value changes.\n * Use this to update your state.\n */\n onValueChange: (value: boolean) => void;\n };\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Switch = void 0;
|
|
4
|
+
var Switch_1 = require("./Switch.cjs");
|
|
5
|
+
Object.defineProperty(exports, "Switch", { enumerable: true, get: function () { return Switch_1.Switch; } });
|
|
6
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/Switch/index.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAAzB,gGAAA,MAAM,OAAA","sourcesContent":["export { Switch } from './Switch';\nexport type { SwitchProps } from './Switch.types';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/Switch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,qBAAiB;AAClC,YAAY,EAAE,WAAW,EAAE,2BAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/Switch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,qBAAiB;AAClC,YAAY,EAAE,WAAW,EAAE,2BAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/Switch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,qBAAiB","sourcesContent":["export { Switch } from './Switch';\nexport type { SwitchProps } from './Switch.types';\n"]}
|
|
@@ -4,11 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.TabEmptyState = void 0;
|
|
7
|
+
const design_system_shared_1 = require("@metamask/design-system-shared");
|
|
7
8
|
const react_1 = __importDefault(require("react"));
|
|
8
9
|
const Box_1 = require("../Box/index.cjs");
|
|
9
10
|
const Button_1 = require("../Button/index.cjs");
|
|
10
11
|
const Text_1 = require("../Text/index.cjs");
|
|
11
|
-
const TabEmptyState = ({ icon, description, descriptionProps, actionButtonText, actionButtonProps, onAction, children, style, twClassName = '', ...props }) => (<Box_1.Box flexDirection={Box_1.BoxFlexDirection.Column} alignItems={Box_1.BoxAlignItems.Center} justifyContent={Box_1.BoxJustifyContent.Center} backgroundColor={Box_1.BoxBackgroundColor.BackgroundDefault} gap={3} twClassName={
|
|
12
|
+
const TabEmptyState = ({ icon, description, descriptionProps, actionButtonText, actionButtonProps, onAction, children, style, twClassName = '', ...props }) => (<Box_1.Box flexDirection={Box_1.BoxFlexDirection.Column} alignItems={Box_1.BoxAlignItems.Center} justifyContent={Box_1.BoxJustifyContent.Center} backgroundColor={Box_1.BoxBackgroundColor.BackgroundDefault} gap={3} twClassName={(0, design_system_shared_1.mergeTwClassName)('max-w-64', twClassName)} style={style} {...props}>
|
|
12
13
|
{icon}
|
|
13
14
|
{description && (<Text_1.Text variant={Text_1.TextVariant.BodyMd} color={Text_1.TextColor.TextAlternative} twClassName="text-center" {...descriptionProps}>
|
|
14
15
|
{description}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabEmptyState.cjs","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,0CAMgB;AAChB,gDAAkD;AAClD,4CAAuD;AAIhD,MAAM,aAAa,GAAG,CAAC,EAC5B,IAAI,EACJ,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACW,EAAE,EAAE,CAAC,CACxB,CAAC,SAAG,CACF,aAAa,CAAC,CAAC,sBAAgB,CAAC,MAAM,CAAC,CACvC,UAAU,CAAC,CAAC,mBAAa,CAAC,MAAM,CAAC,CACjC,cAAc,CAAC,CAAC,uBAAiB,CAAC,MAAM,CAAC,CACzC,eAAe,CAAC,CAAC,wBAAkB,CAAC,iBAAiB,CAAC,CACtD,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,WAAW,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"TabEmptyState.cjs","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.tsx"],"names":[],"mappings":";;;;;;AAAA,yEAAkE;AAClE,kDAA0B;AAE1B,0CAMgB;AAChB,gDAAkD;AAClD,4CAAuD;AAIhD,MAAM,aAAa,GAAG,CAAC,EAC5B,IAAI,EACJ,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACW,EAAE,EAAE,CAAC,CACxB,CAAC,SAAG,CACF,aAAa,CAAC,CAAC,sBAAgB,CAAC,MAAM,CAAC,CACvC,UAAU,CAAC,CAAC,mBAAa,CAAC,MAAM,CAAC,CACjC,cAAc,CAAC,CAAC,uBAAiB,CAAC,MAAM,CAAC,CACzC,eAAe,CAAC,CAAC,wBAAkB,CAAC,iBAAiB,CAAC,CACtD,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,WAAW,CAAC,CAAC,IAAA,uCAAgB,EAAC,UAAU,EAAE,WAAW,CAAC,CAAC,CACvD,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,IAAI,KAAK,CAAC,CAEV;IAAA,CAAC,IAAI,CACL;IAAA,CAAC,WAAW,IAAI,CACd,CAAC,WAAI,CACH,OAAO,CAAC,CAAC,kBAAW,CAAC,MAAM,CAAC,CAC5B,KAAK,CAAC,CAAC,gBAAS,CAAC,eAAe,CAAC,CACjC,WAAW,CAAC,aAAa,CACzB,IAAI,gBAAgB,CAAC,CAErB;QAAA,CAAC,WAAW,CACd;MAAA,EAAE,WAAI,CAAC,CACR,CACD;IAAA,CAAC,gBAAgB,IAAI,QAAQ,IAAI,CAC/B,CAAC,eAAM,CACL,OAAO,CAAC,CAAC,sBAAa,CAAC,SAAS,CAAC,CACjC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAClB,WAAW,CAAC,aAAa,CACzB,IAAI,iBAAiB,CAAC,CAEtB;QAAA,CAAC,gBAAgB,CACnB;MAAA,EAAE,eAAM,CAAC,CACV,CACD;IAAA,CAAC,QAAQ,CACX;EAAA,EAAE,SAAG,CAAC,CACP,CAAC;AA7CW,QAAA,aAAa,iBA6CxB","sourcesContent":["import { mergeTwClassName } from '@metamask/design-system-shared';\nimport React from 'react';\n\nimport {\n Box,\n BoxFlexDirection,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n} from '../Box';\nimport { Button, ButtonVariant } from '../Button';\nimport { Text, TextVariant, TextColor } from '../Text';\n\nimport type { TabEmptyStateProps } from './TabEmptyState.types';\n\nexport const TabEmptyState = ({\n icon,\n description,\n descriptionProps,\n actionButtonText,\n actionButtonProps,\n onAction,\n children,\n style,\n twClassName = '',\n ...props\n}: TabEmptyStateProps) => (\n <Box\n flexDirection={BoxFlexDirection.Column}\n alignItems={BoxAlignItems.Center}\n justifyContent={BoxJustifyContent.Center}\n backgroundColor={BoxBackgroundColor.BackgroundDefault}\n gap={3}\n twClassName={mergeTwClassName('max-w-64', twClassName)}\n style={style}\n {...props}\n >\n {icon}\n {description && (\n <Text\n variant={TextVariant.BodyMd}\n color={TextColor.TextAlternative}\n twClassName=\"text-center\"\n {...descriptionProps}\n >\n {description}\n </Text>\n )}\n {actionButtonText && onAction && (\n <Button\n variant={ButtonVariant.Secondary}\n onPress={onAction}\n twClassName=\"self-center\"\n {...actionButtonProps}\n >\n {actionButtonText}\n </Button>\n )}\n {children}\n </Box>\n);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabEmptyState.d.cts","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TabEmptyState.d.cts","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAY1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE,eAAO,MAAM,aAAa,mIAWvB,kBAAkB,sBAkCpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabEmptyState.d.mts","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TabEmptyState.d.mts","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAY1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE,eAAO,MAAM,aAAa,mIAWvB,kBAAkB,sBAkCpB,CAAC"}
|
|
@@ -4,12 +4,13 @@ function $importDefault(module) {
|
|
|
4
4
|
}
|
|
5
5
|
return module;
|
|
6
6
|
}
|
|
7
|
+
import { mergeTwClassName } from "@metamask/design-system-shared";
|
|
7
8
|
import $React from "react";
|
|
8
9
|
const React = $importDefault($React);
|
|
9
10
|
import { Box, BoxFlexDirection, BoxAlignItems, BoxJustifyContent, BoxBackgroundColor } from "../Box/index.mjs";
|
|
10
11
|
import { Button, ButtonVariant } from "../Button/index.mjs";
|
|
11
12
|
import { Text, TextVariant, TextColor } from "../Text/index.mjs";
|
|
12
|
-
export const TabEmptyState = ({ icon, description, descriptionProps, actionButtonText, actionButtonProps, onAction, children, style, twClassName = '', ...props }) => (<Box flexDirection={BoxFlexDirection.Column} alignItems={BoxAlignItems.Center} justifyContent={BoxJustifyContent.Center} backgroundColor={BoxBackgroundColor.BackgroundDefault} gap={3} twClassName={
|
|
13
|
+
export const TabEmptyState = ({ icon, description, descriptionProps, actionButtonText, actionButtonProps, onAction, children, style, twClassName = '', ...props }) => (<Box flexDirection={BoxFlexDirection.Column} alignItems={BoxAlignItems.Center} justifyContent={BoxJustifyContent.Center} backgroundColor={BoxBackgroundColor.BackgroundDefault} gap={3} twClassName={mergeTwClassName('max-w-64', twClassName)} style={style} {...props}>
|
|
13
14
|
{icon}
|
|
14
15
|
{description && (<Text variant={TextVariant.BodyMd} color={TextColor.TextAlternative} twClassName="text-center" {...descriptionProps}>
|
|
15
16
|
{description}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabEmptyState.mjs","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,MAAK,cAAc;;AAE1B,OAAO,EACL,GAAG,EACH,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EACnB,yBAAe;AAChB,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,4BAAkB;AAClD,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,0BAAgB;AAIvD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC5B,IAAI,EACJ,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACW,EAAE,EAAE,CAAC,CACxB,CAAC,GAAG,CACF,aAAa,CAAC,CAAC,gBAAgB,CAAC,MAAM,CAAC,CACvC,UAAU,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CACjC,cAAc,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,CACzC,eAAe,CAAC,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,CACtD,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,WAAW,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"TabEmptyState.mjs","sourceRoot":"","sources":["../../../src/components/TabEmptyState/TabEmptyState.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,gBAAgB,EAAE,uCAAuC;AAClE,OAAO,MAAK,cAAc;;AAE1B,OAAO,EACL,GAAG,EACH,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EACnB,yBAAe;AAChB,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,4BAAkB;AAClD,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,0BAAgB;AAIvD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC5B,IAAI,EACJ,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,WAAW,GAAG,EAAE,EAChB,GAAG,KAAK,EACW,EAAE,EAAE,CAAC,CACxB,CAAC,GAAG,CACF,aAAa,CAAC,CAAC,gBAAgB,CAAC,MAAM,CAAC,CACvC,UAAU,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CACjC,cAAc,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,CACzC,eAAe,CAAC,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,CACtD,GAAG,CAAC,CAAC,CAAC,CAAC,CACP,WAAW,CAAC,CAAC,gBAAgB,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC,CACvD,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,IAAI,KAAK,CAAC,CAEV;IAAA,CAAC,IAAI,CACL;IAAA,CAAC,WAAW,IAAI,CACd,CAAC,IAAI,CACH,OAAO,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAC5B,KAAK,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC,CACjC,WAAW,CAAC,aAAa,CACzB,IAAI,gBAAgB,CAAC,CAErB;QAAA,CAAC,WAAW,CACd;MAAA,EAAE,IAAI,CAAC,CACR,CACD;IAAA,CAAC,gBAAgB,IAAI,QAAQ,IAAI,CAC/B,CAAC,MAAM,CACL,OAAO,CAAC,CAAC,aAAa,CAAC,SAAS,CAAC,CACjC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAClB,WAAW,CAAC,aAAa,CACzB,IAAI,iBAAiB,CAAC,CAEtB;QAAA,CAAC,gBAAgB,CACnB;MAAA,EAAE,MAAM,CAAC,CACV,CACD;IAAA,CAAC,QAAQ,CACX;EAAA,EAAE,GAAG,CAAC,CACP,CAAC","sourcesContent":["import { mergeTwClassName } from '@metamask/design-system-shared';\nimport React from 'react';\n\nimport {\n Box,\n BoxFlexDirection,\n BoxAlignItems,\n BoxJustifyContent,\n BoxBackgroundColor,\n} from '../Box';\nimport { Button, ButtonVariant } from '../Button';\nimport { Text, TextVariant, TextColor } from '../Text';\n\nimport type { TabEmptyStateProps } from './TabEmptyState.types';\n\nexport const TabEmptyState = ({\n icon,\n description,\n descriptionProps,\n actionButtonText,\n actionButtonProps,\n onAction,\n children,\n style,\n twClassName = '',\n ...props\n}: TabEmptyStateProps) => (\n <Box\n flexDirection={BoxFlexDirection.Column}\n alignItems={BoxAlignItems.Center}\n justifyContent={BoxJustifyContent.Center}\n backgroundColor={BoxBackgroundColor.BackgroundDefault}\n gap={3}\n twClassName={mergeTwClassName('max-w-64', twClassName)}\n style={style}\n {...props}\n >\n {icon}\n {description && (\n <Text\n variant={TextVariant.BodyMd}\n color={TextColor.TextAlternative}\n twClassName=\"text-center\"\n {...descriptionProps}\n >\n {description}\n </Text>\n )}\n {actionButtonText && onAction && (\n <Button\n variant={ButtonVariant.Secondary}\n onPress={onAction}\n twClassName=\"self-center\"\n {...actionButtonProps}\n >\n {actionButtonText}\n </Button>\n )}\n {children}\n </Box>\n);\n"]}
|
|
@@ -5,21 +5,21 @@ const design_system_shared_1 = require("@metamask/design-system-shared");
|
|
|
5
5
|
exports.MAP_TAG_SEVERITY_BACKGROUND = {
|
|
6
6
|
[design_system_shared_1.TagSeverity.Neutral]: design_system_shared_1.BoxBackgroundColor.BackgroundMuted,
|
|
7
7
|
[design_system_shared_1.TagSeverity.Success]: design_system_shared_1.BoxBackgroundColor.SuccessMuted,
|
|
8
|
-
[design_system_shared_1.TagSeverity.
|
|
8
|
+
[design_system_shared_1.TagSeverity.Danger]: design_system_shared_1.BoxBackgroundColor.ErrorMuted,
|
|
9
9
|
[design_system_shared_1.TagSeverity.Warning]: design_system_shared_1.BoxBackgroundColor.WarningMuted,
|
|
10
10
|
[design_system_shared_1.TagSeverity.Info]: design_system_shared_1.BoxBackgroundColor.InfoMuted,
|
|
11
11
|
};
|
|
12
12
|
exports.MAP_TAG_SEVERITY_TEXT_COLOR = {
|
|
13
13
|
[design_system_shared_1.TagSeverity.Neutral]: design_system_shared_1.TextColor.TextDefault,
|
|
14
14
|
[design_system_shared_1.TagSeverity.Success]: design_system_shared_1.TextColor.SuccessDefault,
|
|
15
|
-
[design_system_shared_1.TagSeverity.
|
|
15
|
+
[design_system_shared_1.TagSeverity.Danger]: design_system_shared_1.TextColor.ErrorDefault,
|
|
16
16
|
[design_system_shared_1.TagSeverity.Warning]: design_system_shared_1.TextColor.WarningDefault,
|
|
17
17
|
[design_system_shared_1.TagSeverity.Info]: design_system_shared_1.TextColor.InfoDefault,
|
|
18
18
|
};
|
|
19
19
|
exports.MAP_TAG_SEVERITY_ICON_COLOR = {
|
|
20
20
|
[design_system_shared_1.TagSeverity.Neutral]: design_system_shared_1.IconColor.IconDefault,
|
|
21
21
|
[design_system_shared_1.TagSeverity.Success]: design_system_shared_1.IconColor.SuccessDefault,
|
|
22
|
-
[design_system_shared_1.TagSeverity.
|
|
22
|
+
[design_system_shared_1.TagSeverity.Danger]: design_system_shared_1.IconColor.ErrorDefault,
|
|
23
23
|
[design_system_shared_1.TagSeverity.Warning]: design_system_shared_1.IconColor.WarningDefault,
|
|
24
24
|
[design_system_shared_1.TagSeverity.Info]: design_system_shared_1.IconColor.InfoDefault,
|
|
25
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.constants.cjs","sourceRoot":"","sources":["../../../src/components/Tag/Tag.constants.ts"],"names":[],"mappings":";;;AAAA,yEAKwC;AAE3B,QAAA,2BAA2B,GAGpC;IACF,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,yCAAkB,CAAC,eAAe;IACzD,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,yCAAkB,CAAC,YAAY;IACtD,CAAC,kCAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"Tag.constants.cjs","sourceRoot":"","sources":["../../../src/components/Tag/Tag.constants.ts"],"names":[],"mappings":";;;AAAA,yEAKwC;AAE3B,QAAA,2BAA2B,GAGpC;IACF,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,yCAAkB,CAAC,eAAe;IACzD,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,yCAAkB,CAAC,YAAY;IACtD,CAAC,kCAAW,CAAC,MAAM,CAAC,EAAE,yCAAkB,CAAC,UAAU;IACnD,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,yCAAkB,CAAC,YAAY;IACtD,CAAC,kCAAW,CAAC,IAAI,CAAC,EAAE,yCAAkB,CAAC,SAAS;CACjD,CAAC;AAEW,QAAA,2BAA2B,GAAmC;IACzE,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,gCAAS,CAAC,WAAW;IAC5C,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,gCAAS,CAAC,cAAc;IAC/C,CAAC,kCAAW,CAAC,MAAM,CAAC,EAAE,gCAAS,CAAC,YAAY;IAC5C,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,gCAAS,CAAC,cAAc;IAC/C,CAAC,kCAAW,CAAC,IAAI,CAAC,EAAE,gCAAS,CAAC,WAAW;CAC1C,CAAC;AAEW,QAAA,2BAA2B,GAAmC;IACzE,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,gCAAS,CAAC,WAAW;IAC5C,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,gCAAS,CAAC,cAAc;IAC/C,CAAC,kCAAW,CAAC,MAAM,CAAC,EAAE,gCAAS,CAAC,YAAY;IAC5C,CAAC,kCAAW,CAAC,OAAO,CAAC,EAAE,gCAAS,CAAC,cAAc;IAC/C,CAAC,kCAAW,CAAC,IAAI,CAAC,EAAE,gCAAS,CAAC,WAAW;CAC1C,CAAC","sourcesContent":["import {\n BoxBackgroundColor,\n IconColor,\n TagSeverity,\n TextColor,\n} from '@metamask/design-system-shared';\n\nexport const MAP_TAG_SEVERITY_BACKGROUND: Record<\n TagSeverity,\n BoxBackgroundColor\n> = {\n [TagSeverity.Neutral]: BoxBackgroundColor.BackgroundMuted,\n [TagSeverity.Success]: BoxBackgroundColor.SuccessMuted,\n [TagSeverity.Danger]: BoxBackgroundColor.ErrorMuted,\n [TagSeverity.Warning]: BoxBackgroundColor.WarningMuted,\n [TagSeverity.Info]: BoxBackgroundColor.InfoMuted,\n};\n\nexport const MAP_TAG_SEVERITY_TEXT_COLOR: Record<TagSeverity, TextColor> = {\n [TagSeverity.Neutral]: TextColor.TextDefault,\n [TagSeverity.Success]: TextColor.SuccessDefault,\n [TagSeverity.Danger]: TextColor.ErrorDefault,\n [TagSeverity.Warning]: TextColor.WarningDefault,\n [TagSeverity.Info]: TextColor.InfoDefault,\n};\n\nexport const MAP_TAG_SEVERITY_ICON_COLOR: Record<TagSeverity, IconColor> = {\n [TagSeverity.Neutral]: IconColor.IconDefault,\n [TagSeverity.Success]: IconColor.SuccessDefault,\n [TagSeverity.Danger]: IconColor.ErrorDefault,\n [TagSeverity.Warning]: IconColor.WarningDefault,\n [TagSeverity.Info]: IconColor.InfoDefault,\n};\n"]}
|
|
@@ -2,21 +2,21 @@ import { BoxBackgroundColor, IconColor, TagSeverity, TextColor } from "@metamask
|
|
|
2
2
|
export const MAP_TAG_SEVERITY_BACKGROUND = {
|
|
3
3
|
[TagSeverity.Neutral]: BoxBackgroundColor.BackgroundMuted,
|
|
4
4
|
[TagSeverity.Success]: BoxBackgroundColor.SuccessMuted,
|
|
5
|
-
[TagSeverity.
|
|
5
|
+
[TagSeverity.Danger]: BoxBackgroundColor.ErrorMuted,
|
|
6
6
|
[TagSeverity.Warning]: BoxBackgroundColor.WarningMuted,
|
|
7
7
|
[TagSeverity.Info]: BoxBackgroundColor.InfoMuted,
|
|
8
8
|
};
|
|
9
9
|
export const MAP_TAG_SEVERITY_TEXT_COLOR = {
|
|
10
10
|
[TagSeverity.Neutral]: TextColor.TextDefault,
|
|
11
11
|
[TagSeverity.Success]: TextColor.SuccessDefault,
|
|
12
|
-
[TagSeverity.
|
|
12
|
+
[TagSeverity.Danger]: TextColor.ErrorDefault,
|
|
13
13
|
[TagSeverity.Warning]: TextColor.WarningDefault,
|
|
14
14
|
[TagSeverity.Info]: TextColor.InfoDefault,
|
|
15
15
|
};
|
|
16
16
|
export const MAP_TAG_SEVERITY_ICON_COLOR = {
|
|
17
17
|
[TagSeverity.Neutral]: IconColor.IconDefault,
|
|
18
18
|
[TagSeverity.Success]: IconColor.SuccessDefault,
|
|
19
|
-
[TagSeverity.
|
|
19
|
+
[TagSeverity.Danger]: IconColor.ErrorDefault,
|
|
20
20
|
[TagSeverity.Warning]: IconColor.WarningDefault,
|
|
21
21
|
[TagSeverity.Info]: IconColor.InfoDefault,
|
|
22
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.constants.mjs","sourceRoot":"","sources":["../../../src/components/Tag/Tag.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,SAAS,EACT,WAAW,EACX,SAAS,EACV,uCAAuC;AAExC,MAAM,CAAC,MAAM,2BAA2B,GAGpC;IACF,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,kBAAkB,CAAC,eAAe;IACzD,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,kBAAkB,CAAC,YAAY;IACtD,CAAC,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"Tag.constants.mjs","sourceRoot":"","sources":["../../../src/components/Tag/Tag.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,SAAS,EACT,WAAW,EACX,SAAS,EACV,uCAAuC;AAExC,MAAM,CAAC,MAAM,2BAA2B,GAGpC;IACF,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,kBAAkB,CAAC,eAAe;IACzD,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,kBAAkB,CAAC,YAAY;IACtD,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,kBAAkB,CAAC,UAAU;IACnD,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,kBAAkB,CAAC,YAAY;IACtD,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,kBAAkB,CAAC,SAAS;CACjD,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAmC;IACzE,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,WAAW;IAC5C,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,cAAc;IAC/C,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,YAAY;IAC5C,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,cAAc;IAC/C,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,WAAW;CAC1C,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAmC;IACzE,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,WAAW;IAC5C,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,cAAc;IAC/C,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,YAAY;IAC5C,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,cAAc;IAC/C,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,WAAW;CAC1C,CAAC","sourcesContent":["import {\n BoxBackgroundColor,\n IconColor,\n TagSeverity,\n TextColor,\n} from '@metamask/design-system-shared';\n\nexport const MAP_TAG_SEVERITY_BACKGROUND: Record<\n TagSeverity,\n BoxBackgroundColor\n> = {\n [TagSeverity.Neutral]: BoxBackgroundColor.BackgroundMuted,\n [TagSeverity.Success]: BoxBackgroundColor.SuccessMuted,\n [TagSeverity.Danger]: BoxBackgroundColor.ErrorMuted,\n [TagSeverity.Warning]: BoxBackgroundColor.WarningMuted,\n [TagSeverity.Info]: BoxBackgroundColor.InfoMuted,\n};\n\nexport const MAP_TAG_SEVERITY_TEXT_COLOR: Record<TagSeverity, TextColor> = {\n [TagSeverity.Neutral]: TextColor.TextDefault,\n [TagSeverity.Success]: TextColor.SuccessDefault,\n [TagSeverity.Danger]: TextColor.ErrorDefault,\n [TagSeverity.Warning]: TextColor.WarningDefault,\n [TagSeverity.Info]: TextColor.InfoDefault,\n};\n\nexport const MAP_TAG_SEVERITY_ICON_COLOR: Record<TagSeverity, IconColor> = {\n [TagSeverity.Neutral]: IconColor.IconDefault,\n [TagSeverity.Success]: IconColor.SuccessDefault,\n [TagSeverity.Danger]: IconColor.ErrorDefault,\n [TagSeverity.Warning]: IconColor.WarningDefault,\n [TagSeverity.Info]: IconColor.InfoDefault,\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextButton.types.cjs","sourceRoot":"","sources":["../../../src/components/TextButton/TextButton.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { TextProps } from '../Text';\n\n/**\n * Props for `TextButton`, a text-only control for links and inline actions.\n * Extends {@link Text} props.\n */\nexport type TextButtonProps = Omit<\n TextProps,\n 'children' | 'color' | 'onPress'\n> & {\n
|
|
1
|
+
{"version":3,"file":"TextButton.types.cjs","sourceRoot":"","sources":["../../../src/components/TextButton/TextButton.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { TextButtonPropsShared } from '@metamask/design-system-shared';\n\nimport type { TextProps } from '../Text';\n\n/**\n * Props for `TextButton`, a text-only control for links and inline actions.\n * Extends {@link Text} props.\n */\nexport type TextButtonProps = Omit<\n TextProps,\n 'children' | 'color' | 'onPress'\n> &\n TextButtonPropsShared & {\n /**\n * Called when the user presses the label. Primary interaction for this control.\n */\n onPress?: TextProps['onPress'];\n };\n"]}
|