@metamask/design-system-react-native 0.29.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 +25 -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/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/assets/trophy.svg +1 -0
- package/dist/components/ListItem/ListItem.cjs +12 -4
- 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 +12 -4
- package/dist/components/ListItem/ListItem.mjs.map +1 -1
- package/dist/components/ListItem/ListItem.types.cjs.map +1 -1
- package/dist/components/ListItem/ListItem.types.d.cts +3 -2
- package/dist/components/ListItem/ListItem.types.d.cts.map +1 -1
- package/dist/components/ListItem/ListItem.types.d.mts +3 -2
- package/dist/components/ListItem/ListItem.types.d.mts.map +1 -1
- package/dist/components/ListItem/ListItem.types.mjs.map +1 -1
- package/dist/components/ListItem/index.cjs +3 -1
- package/dist/components/ListItem/index.cjs.map +1 -1
- package/dist/components/ListItem/index.d.cts +1 -0
- package/dist/components/ListItem/index.d.cts.map +1 -1
- package/dist/components/ListItem/index.d.mts +1 -0
- package/dist/components/ListItem/index.d.mts.map +1 -1
- package/dist/components/ListItem/index.mjs +1 -0
- 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/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/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.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/index.cjs +20 -9
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +17 -7
- package/dist/components/index.d.cts.map +1 -1
- package/dist/components/index.d.mts +17 -7
- package/dist/components/index.d.mts.map +1 -1
- package/dist/components/index.mjs +9 -4
- package/dist/components/index.mjs.map +1 -1
- package/package.json +5 -3
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.cjs","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.tsx"],"names":[],"mappings":";;;;;;AAAA,qFAAmE;AACnE,kDAA0B;AAC1B,+CAAyC;AAOzC,0CAA6B;AAC7B,kDAAqC;
|
|
1
|
+
{"version":3,"file":"ListItem.cjs","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.tsx"],"names":[],"mappings":"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","sourcesContent":["import { ContentVerticalAlignment } from '@metamask/design-system-shared';\nimport { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { Pressable } from 'react-native';\nimport type {\n PressableStateCallbackType,\n StyleProp,\n ViewStyle,\n} from 'react-native';\n\nimport { Box } from '../Box';\nimport { BoxRow } from '../BoxRow';\nimport { Content } from '../Content';\nimport { VERTICAL_ALIGNMENT_MAP } from '../Content/Content.constants';\n\nimport type { ListItemProps } from './ListItem.types';\n\nexport const ListItem: React.FC<ListItemProps> = ({\n children,\n isInteractive = false,\n twClassName,\n style,\n startAccessory,\n endAccessory,\n accessoryGap = 0,\n verticalAlignment,\n avatar,\n title,\n titleProps,\n titleStartAccessory,\n titleEndAccessory,\n description,\n descriptionProps,\n descriptionStartAccessory,\n descriptionEndAccessory,\n value,\n valueProps,\n valueStartAccessory,\n valueEndAccessory,\n subvalue,\n subvalueProps,\n subvalueStartAccessory,\n subvalueEndAccessory,\n accessibilityRole,\n ...props\n}) => {\n const tw = useTailwind();\n\n const wrapperStyle = style\n ? [tw.style('px-4 py-3', twClassName), style]\n : tw.style('px-4 py-3', twClassName);\n\n const getPressableStyle = ({\n pressed,\n }: PressableStateCallbackType): StyleProp<ViewStyle> => {\n const baseStyle = tw.style(\n 'w-full px-4 py-3',\n twClassName,\n pressed && 'bg-pressed',\n );\n\n if (!style) {\n return baseStyle;\n }\n\n const userStyle = typeof style === 'function' ? style({ pressed }) : style;\n\n return [baseStyle, userStyle];\n };\n\n const hasRowAccessories = Boolean(startAccessory) || Boolean(endAccessory);\n const rowAlignment =\n VERTICAL_ALIGNMENT_MAP[\n verticalAlignment ?? ContentVerticalAlignment.Center\n ];\n\n const content = (\n <Content\n twClassName={hasRowAccessories ? 'flex-1 min-w-0' : undefined}\n verticalAlignment={verticalAlignment}\n avatar={avatar}\n title={title}\n titleProps={titleProps}\n titleStartAccessory={titleStartAccessory}\n titleEndAccessory={titleEndAccessory}\n description={description}\n descriptionProps={descriptionProps}\n descriptionStartAccessory={descriptionStartAccessory}\n descriptionEndAccessory={descriptionEndAccessory}\n value={value}\n valueProps={valueProps}\n valueStartAccessory={valueStartAccessory}\n valueEndAccessory={valueEndAccessory}\n subvalue={subvalue}\n subvalueProps={subvalueProps}\n subvalueStartAccessory={subvalueStartAccessory}\n subvalueEndAccessory={subvalueEndAccessory}\n />\n );\n\n const listContent = hasRowAccessories ? (\n <BoxRow\n startAccessory={startAccessory}\n endAccessory={endAccessory}\n alignItems={rowAlignment}\n gap={accessoryGap}\n twClassName=\"min-h-[46px] w-full\"\n >\n {content}\n </BoxRow>\n ) : (\n content\n );\n\n if (isInteractive) {\n return (\n <Pressable\n accessibilityRole={accessibilityRole ?? 'button'}\n style={getPressableStyle}\n {...props}\n >\n {listContent}\n {children}\n </Pressable>\n );\n }\n\n return (\n <Box style={wrapperStyle} {...props}>\n {listContent}\n {children}\n </Box>\n );\n};\n\nListItem.displayName = 'ListItem';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.d.cts","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ListItem.d.cts","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,cAAc;AAa1B,OAAO,KAAK,EAAE,aAAa,EAAE,6BAAyB;AAEtD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAoH5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.d.mts","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ListItem.d.mts","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,cAAc;AAa1B,OAAO,KAAK,EAAE,aAAa,EAAE,6BAAyB;AAEtD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAoH5C,CAAC"}
|
|
@@ -4,13 +4,16 @@ function $importDefault(module) {
|
|
|
4
4
|
}
|
|
5
5
|
return module;
|
|
6
6
|
}
|
|
7
|
+
import { ContentVerticalAlignment } from "@metamask/design-system-shared";
|
|
7
8
|
import { useTailwind } from "@metamask/design-system-twrnc-preset";
|
|
8
9
|
import $React from "react";
|
|
9
10
|
const React = $importDefault($React);
|
|
10
11
|
import { Pressable } from "react-native";
|
|
11
12
|
import { Box } from "../Box/index.mjs";
|
|
13
|
+
import { BoxRow } from "../BoxRow/index.mjs";
|
|
12
14
|
import { Content } from "../Content/index.mjs";
|
|
13
|
-
|
|
15
|
+
import { VERTICAL_ALIGNMENT_MAP } from "../Content/Content.constants.mjs";
|
|
16
|
+
export const ListItem = ({ children, isInteractive = false, twClassName, style, startAccessory, endAccessory, accessoryGap = 0, verticalAlignment, avatar, title, titleProps, titleStartAccessory, titleEndAccessory, description, descriptionProps, descriptionStartAccessory, descriptionEndAccessory, value, valueProps, valueStartAccessory, valueEndAccessory, subvalue, subvalueProps, subvalueStartAccessory, subvalueEndAccessory, accessibilityRole, ...props }) => {
|
|
14
17
|
const tw = useTailwind();
|
|
15
18
|
const wrapperStyle = style
|
|
16
19
|
? [tw.style('px-4 py-3', twClassName), style]
|
|
@@ -23,15 +26,20 @@ export const ListItem = ({ children, isInteractive = false, twClassName, style,
|
|
|
23
26
|
const userStyle = typeof style === 'function' ? style({ pressed }) : style;
|
|
24
27
|
return [baseStyle, userStyle];
|
|
25
28
|
};
|
|
26
|
-
const
|
|
29
|
+
const hasRowAccessories = Boolean(startAccessory) || Boolean(endAccessory);
|
|
30
|
+
const rowAlignment = VERTICAL_ALIGNMENT_MAP[verticalAlignment ?? ContentVerticalAlignment.Center];
|
|
31
|
+
const content = (<Content twClassName={hasRowAccessories ? 'flex-1 min-w-0' : undefined} verticalAlignment={verticalAlignment} avatar={avatar} title={title} titleProps={titleProps} titleStartAccessory={titleStartAccessory} titleEndAccessory={titleEndAccessory} description={description} descriptionProps={descriptionProps} descriptionStartAccessory={descriptionStartAccessory} descriptionEndAccessory={descriptionEndAccessory} value={value} valueProps={valueProps} valueStartAccessory={valueStartAccessory} valueEndAccessory={valueEndAccessory} subvalue={subvalue} subvalueProps={subvalueProps} subvalueStartAccessory={subvalueStartAccessory} subvalueEndAccessory={subvalueEndAccessory}/>);
|
|
32
|
+
const listContent = hasRowAccessories ? (<BoxRow startAccessory={startAccessory} endAccessory={endAccessory} alignItems={rowAlignment} gap={accessoryGap} twClassName="min-h-[46px] w-full">
|
|
33
|
+
{content}
|
|
34
|
+
</BoxRow>) : (content);
|
|
27
35
|
if (isInteractive) {
|
|
28
36
|
return (<Pressable accessibilityRole={accessibilityRole ?? 'button'} style={getPressableStyle} {...props}>
|
|
29
|
-
{
|
|
37
|
+
{listContent}
|
|
30
38
|
{children}
|
|
31
39
|
</Pressable>);
|
|
32
40
|
}
|
|
33
41
|
return (<Box style={wrapperStyle} {...props}>
|
|
34
|
-
{
|
|
42
|
+
{listContent}
|
|
35
43
|
{children}
|
|
36
44
|
</Box>);
|
|
37
45
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.mjs","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,6CAA6C;AACnE,OAAO,MAAK,cAAc;;AAC1B,OAAO,EAAE,SAAS,EAAE,qBAAqB;AAOzC,OAAO,EAAE,GAAG,EAAE,yBAAe;AAC7B,OAAO,EAAE,OAAO,EAAE,6BAAmB;
|
|
1
|
+
{"version":3,"file":"ListItem.mjs","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.tsx"],"names":[],"mappings":"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","sourcesContent":["import { ContentVerticalAlignment } from '@metamask/design-system-shared';\nimport { useTailwind } from '@metamask/design-system-twrnc-preset';\nimport React from 'react';\nimport { Pressable } from 'react-native';\nimport type {\n PressableStateCallbackType,\n StyleProp,\n ViewStyle,\n} from 'react-native';\n\nimport { Box } from '../Box';\nimport { BoxRow } from '../BoxRow';\nimport { Content } from '../Content';\nimport { VERTICAL_ALIGNMENT_MAP } from '../Content/Content.constants';\n\nimport type { ListItemProps } from './ListItem.types';\n\nexport const ListItem: React.FC<ListItemProps> = ({\n children,\n isInteractive = false,\n twClassName,\n style,\n startAccessory,\n endAccessory,\n accessoryGap = 0,\n verticalAlignment,\n avatar,\n title,\n titleProps,\n titleStartAccessory,\n titleEndAccessory,\n description,\n descriptionProps,\n descriptionStartAccessory,\n descriptionEndAccessory,\n value,\n valueProps,\n valueStartAccessory,\n valueEndAccessory,\n subvalue,\n subvalueProps,\n subvalueStartAccessory,\n subvalueEndAccessory,\n accessibilityRole,\n ...props\n}) => {\n const tw = useTailwind();\n\n const wrapperStyle = style\n ? [tw.style('px-4 py-3', twClassName), style]\n : tw.style('px-4 py-3', twClassName);\n\n const getPressableStyle = ({\n pressed,\n }: PressableStateCallbackType): StyleProp<ViewStyle> => {\n const baseStyle = tw.style(\n 'w-full px-4 py-3',\n twClassName,\n pressed && 'bg-pressed',\n );\n\n if (!style) {\n return baseStyle;\n }\n\n const userStyle = typeof style === 'function' ? style({ pressed }) : style;\n\n return [baseStyle, userStyle];\n };\n\n const hasRowAccessories = Boolean(startAccessory) || Boolean(endAccessory);\n const rowAlignment =\n VERTICAL_ALIGNMENT_MAP[\n verticalAlignment ?? ContentVerticalAlignment.Center\n ];\n\n const content = (\n <Content\n twClassName={hasRowAccessories ? 'flex-1 min-w-0' : undefined}\n verticalAlignment={verticalAlignment}\n avatar={avatar}\n title={title}\n titleProps={titleProps}\n titleStartAccessory={titleStartAccessory}\n titleEndAccessory={titleEndAccessory}\n description={description}\n descriptionProps={descriptionProps}\n descriptionStartAccessory={descriptionStartAccessory}\n descriptionEndAccessory={descriptionEndAccessory}\n value={value}\n valueProps={valueProps}\n valueStartAccessory={valueStartAccessory}\n valueEndAccessory={valueEndAccessory}\n subvalue={subvalue}\n subvalueProps={subvalueProps}\n subvalueStartAccessory={subvalueStartAccessory}\n subvalueEndAccessory={subvalueEndAccessory}\n />\n );\n\n const listContent = hasRowAccessories ? (\n <BoxRow\n startAccessory={startAccessory}\n endAccessory={endAccessory}\n alignItems={rowAlignment}\n gap={accessoryGap}\n twClassName=\"min-h-[46px] w-full\"\n >\n {content}\n </BoxRow>\n ) : (\n content\n );\n\n if (isInteractive) {\n return (\n <Pressable\n accessibilityRole={accessibilityRole ?? 'button'}\n style={getPressableStyle}\n {...props}\n >\n {listContent}\n {children}\n </Pressable>\n );\n }\n\n return (\n <Box style={wrapperStyle} {...props}>\n {listContent}\n {children}\n </Box>\n );\n};\n\nListItem.displayName = 'ListItem';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.types.cjs","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ListItemPropsShared } from '@metamask/design-system-shared';\nimport type { PressableProps } from 'react-native';\n\nimport type { BoxProps } from '../Box/Box.types';\nimport type { ContentProps } from '../Content/Content.types';\n\ntype ListItemPropsBase = ListItemPropsShared & ContentProps;\n\n/**\n * ListItem component props.\n *\n * Wraps {@link Content} in a padded root (`px-4 py-3`). When `isInteractive` is
|
|
1
|
+
{"version":3,"file":"ListItem.types.cjs","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ListItemPropsShared } from '@metamask/design-system-shared';\nimport type { PressableProps } from 'react-native';\n\nimport type { BoxProps } from '../Box/Box.types';\nimport type { ContentProps } from '../Content/Content.types';\n\ntype ListItemPropsBase = ListItemPropsShared & ContentProps;\n\n/**\n * ListItem component props.\n *\n * Wraps {@link Content} in a padded root (`px-4 py-3`) with optional row shell\n * accessories. When `isInteractive` is `false` (default), the root is a `Box`; when `true`,\n * the root is a `Pressable`.\n */\nexport type ListItemProps =\n | (ListItemPropsBase & { isInteractive?: false } & Omit<BoxProps, 'children'>)\n | (ListItemPropsBase & {\n isInteractive: true;\n } & Omit<PressableProps, 'children'>);\n"]}
|
|
@@ -6,8 +6,9 @@ type ListItemPropsBase = ListItemPropsShared & ContentProps;
|
|
|
6
6
|
/**
|
|
7
7
|
* ListItem component props.
|
|
8
8
|
*
|
|
9
|
-
* Wraps {@link Content} in a padded root (`px-4 py-3`)
|
|
10
|
-
* `false` (default), the root is a `Box`; when `true`,
|
|
9
|
+
* Wraps {@link Content} in a padded root (`px-4 py-3`) with optional row shell
|
|
10
|
+
* accessories. When `isInteractive` is `false` (default), the root is a `Box`; when `true`,
|
|
11
|
+
* the root is a `Pressable`.
|
|
11
12
|
*/
|
|
12
13
|
export type ListItemProps = (ListItemPropsBase & {
|
|
13
14
|
isInteractive?: false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.types.d.cts","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,uCAAuC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAyB;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,qCAAiC;AAE7D,KAAK,iBAAiB,GAAG,mBAAmB,GAAG,YAAY,CAAC;AAE5D
|
|
1
|
+
{"version":3,"file":"ListItem.types.d.cts","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,uCAAuC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAyB;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,qCAAiC;AAE7D,KAAK,iBAAiB,GAAG,mBAAmB,GAAG,YAAY,CAAC;AAE5D;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GACrB,CAAC,iBAAiB,GAAG;IAAE,aAAa,CAAC,EAAE,KAAK,CAAA;CAAE,GAAG,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC,GAC5E,CAAC,iBAAiB,GAAG;IACnB,aAAa,EAAE,IAAI,CAAC;CACrB,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC,CAAC"}
|
|
@@ -6,8 +6,9 @@ type ListItemPropsBase = ListItemPropsShared & ContentProps;
|
|
|
6
6
|
/**
|
|
7
7
|
* ListItem component props.
|
|
8
8
|
*
|
|
9
|
-
* Wraps {@link Content} in a padded root (`px-4 py-3`)
|
|
10
|
-
* `false` (default), the root is a `Box`; when `true`,
|
|
9
|
+
* Wraps {@link Content} in a padded root (`px-4 py-3`) with optional row shell
|
|
10
|
+
* accessories. When `isInteractive` is `false` (default), the root is a `Box`; when `true`,
|
|
11
|
+
* the root is a `Pressable`.
|
|
11
12
|
*/
|
|
12
13
|
export type ListItemProps = (ListItemPropsBase & {
|
|
13
14
|
isInteractive?: false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.types.d.mts","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,uCAAuC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAyB;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,qCAAiC;AAE7D,KAAK,iBAAiB,GAAG,mBAAmB,GAAG,YAAY,CAAC;AAE5D
|
|
1
|
+
{"version":3,"file":"ListItem.types.d.mts","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,uCAAuC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,6BAAyB;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,qCAAiC;AAE7D,KAAK,iBAAiB,GAAG,mBAAmB,GAAG,YAAY,CAAC;AAE5D;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GACrB,CAAC,iBAAiB,GAAG;IAAE,aAAa,CAAC,EAAE,KAAK,CAAA;CAAE,GAAG,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC,GAC5E,CAAC,iBAAiB,GAAG;IACnB,aAAa,EAAE,IAAI,CAAC;CACrB,GAAG,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.types.mjs","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ListItemPropsShared } from '@metamask/design-system-shared';\nimport type { PressableProps } from 'react-native';\n\nimport type { BoxProps } from '../Box/Box.types';\nimport type { ContentProps } from '../Content/Content.types';\n\ntype ListItemPropsBase = ListItemPropsShared & ContentProps;\n\n/**\n * ListItem component props.\n *\n * Wraps {@link Content} in a padded root (`px-4 py-3`). When `isInteractive` is
|
|
1
|
+
{"version":3,"file":"ListItem.types.mjs","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ListItemPropsShared } from '@metamask/design-system-shared';\nimport type { PressableProps } from 'react-native';\n\nimport type { BoxProps } from '../Box/Box.types';\nimport type { ContentProps } from '../Content/Content.types';\n\ntype ListItemPropsBase = ListItemPropsShared & ContentProps;\n\n/**\n * ListItem component props.\n *\n * Wraps {@link Content} in a padded root (`px-4 py-3`) with optional row shell\n * accessories. When `isInteractive` is `false` (default), the root is a `Box`; when `true`,\n * the root is a `Pressable`.\n */\nexport type ListItemProps =\n | (ListItemPropsBase & { isInteractive?: false } & Omit<BoxProps, 'children'>)\n | (ListItemPropsBase & {\n isInteractive: true;\n } & Omit<PressableProps, 'children'>);\n"]}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListItem = void 0;
|
|
3
|
+
exports.ListItem = exports.ListItemVerticalAlignment = void 0;
|
|
4
|
+
var design_system_shared_1 = require("@metamask/design-system-shared");
|
|
5
|
+
Object.defineProperty(exports, "ListItemVerticalAlignment", { enumerable: true, get: function () { return design_system_shared_1.ContentVerticalAlignment; } });
|
|
4
6
|
var ListItem_1 = require("./ListItem.cjs");
|
|
5
7
|
Object.defineProperty(exports, "ListItem", { enumerable: true, get: function () { return ListItem_1.ListItem; } });
|
|
6
8
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/ListItem/index.ts"],"names":[],"mappings":";;;AAAA,2CAAsC;AAA7B,oGAAA,QAAQ,OAAA","sourcesContent":["export { ListItem } from './ListItem';\nexport type { ListItemProps } from './ListItem.types';\n"]}
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/ListItem/index.ts"],"names":[],"mappings":";;;AAAA,uEAAuG;AAA9F,iIAAA,wBAAwB,OAA6B;AAC9D,2CAAsC;AAA7B,oGAAA,QAAQ,OAAA","sourcesContent":["export { ContentVerticalAlignment as ListItemVerticalAlignment } from '@metamask/design-system-shared';\nexport { ListItem } from './ListItem';\nexport type { ListItemProps } from './ListItem.types';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/ListItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,uBAAmB;AACtC,YAAY,EAAE,aAAa,EAAE,6BAAyB"}
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/ListItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,IAAI,yBAAyB,EAAE,uCAAuC;AACvG,OAAO,EAAE,QAAQ,EAAE,uBAAmB;AACtC,YAAY,EAAE,aAAa,EAAE,6BAAyB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/ListItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,uBAAmB;AACtC,YAAY,EAAE,aAAa,EAAE,6BAAyB"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/ListItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,IAAI,yBAAyB,EAAE,uCAAuC;AACvG,OAAO,EAAE,QAAQ,EAAE,uBAAmB;AACtC,YAAY,EAAE,aAAa,EAAE,6BAAyB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/ListItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,uBAAmB","sourcesContent":["export { ListItem } from './ListItem';\nexport type { ListItemProps } from './ListItem.types';\n"]}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/ListItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,IAAI,yBAAyB,EAAE,uCAAuC;AACvG,OAAO,EAAE,QAAQ,EAAE,uBAAmB","sourcesContent":["export { ContentVerticalAlignment as ListItemVerticalAlignment } from '@metamask/design-system-shared';\nexport { ListItem } from './ListItem';\nexport type { ListItemProps } from './ListItem.types';\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
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.ListItemMultiSelect = void 0;
|
|
7
|
+
const design_system_shared_1 = require("@metamask/design-system-shared");
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
9
|
+
const Checkbox_1 = require("../Checkbox/index.cjs");
|
|
10
|
+
const ListItem_1 = require("../ListItem/index.cjs");
|
|
11
|
+
const noopChange = () => undefined;
|
|
12
|
+
const ListItemMultiSelect = ({ isSelected, accessoryGap = 3, twClassName, ...props }) => {
|
|
13
|
+
const resolvedTwClassName = isSelected
|
|
14
|
+
? (0, design_system_shared_1.mergeTwClassName)('bg-background-muted', twClassName)
|
|
15
|
+
: twClassName;
|
|
16
|
+
return (<ListItem_1.ListItem isInteractive twClassName={resolvedTwClassName} endAccessory={<Checkbox_1.Checkbox isSelected={isSelected} onChange={noopChange} label="" pointerEvents="none"/>} accessoryGap={accessoryGap} {...props}/>);
|
|
17
|
+
};
|
|
18
|
+
exports.ListItemMultiSelect = ListItemMultiSelect;
|
|
19
|
+
exports.ListItemMultiSelect.displayName = 'ListItemMultiSelect';
|
|
20
|
+
//# sourceMappingURL=ListItemMultiSelect.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItemMultiSelect.cjs","sourceRoot":"","sources":["../../../src/components/ListItemMultiSelect/ListItemMultiSelect.tsx"],"names":[],"mappings":";;;;;;AAAA,yEAAkE;AAClE,kDAA0B;AAE1B,oDAAuC;AACvC,oDAAuC;AAIvC,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC;AAE5B,MAAM,mBAAmB,GAAG,CAAC,EAClC,UAAU,EACV,YAAY,GAAG,CAAC,EAChB,WAAW,EACX,GAAG,KAAK,EACiB,EAAE,EAAE;IAC7B,MAAM,mBAAmB,GAAG,UAAU;QACpC,CAAC,CAAC,IAAA,uCAAgB,EAAC,qBAAqB,EAAE,WAAW,CAAC;QACtD,CAAC,CAAC,WAAW,CAAC;IAEhB,OAAO,CACL,CAAC,mBAAQ,CACP,aAAa,CACb,WAAW,CAAC,CAAC,mBAAmB,CAAC,CACjC,YAAY,CAAC,CACX,CAAC,mBAAQ,CACP,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,QAAQ,CAAC,CAAC,UAAU,CAAC,CACrB,KAAK,CAAC,EAAE,CACR,aAAa,CAAC,MAAM,EACpB,CACH,CACD,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,IAAI,KAAK,CAAC,EACV,CACH,CAAC;AACJ,CAAC,CAAC;AA1BW,QAAA,mBAAmB,uBA0B9B;AAEF,2BAAmB,CAAC,WAAW,GAAG,qBAAqB,CAAC","sourcesContent":["import { mergeTwClassName } from '@metamask/design-system-shared';\nimport React from 'react';\n\nimport { Checkbox } from '../Checkbox';\nimport { ListItem } from '../ListItem';\n\nimport type { ListItemMultiSelectProps } from './ListItemMultiSelect.types';\n\nconst noopChange = () => undefined;\n\nexport const ListItemMultiSelect = ({\n isSelected,\n accessoryGap = 3,\n twClassName,\n ...props\n}: ListItemMultiSelectProps) => {\n const resolvedTwClassName = isSelected\n ? mergeTwClassName('bg-background-muted', twClassName)\n : twClassName;\n\n return (\n <ListItem\n isInteractive\n twClassName={resolvedTwClassName}\n endAccessory={\n <Checkbox\n isSelected={isSelected}\n onChange={noopChange}\n label=\"\"\n pointerEvents=\"none\"\n />\n }\n accessoryGap={accessoryGap}\n {...props}\n />\n );\n};\n\nListItemMultiSelect.displayName = 'ListItemMultiSelect';\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ListItemMultiSelectProps } from "./ListItemMultiSelect.types.cjs";
|
|
3
|
+
export declare const ListItemMultiSelect: {
|
|
4
|
+
({ isSelected, accessoryGap, twClassName, ...props }: ListItemMultiSelectProps): React.JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=ListItemMultiSelect.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItemMultiSelect.d.cts","sourceRoot":"","sources":["../../../src/components/ListItemMultiSelect/ListItemMultiSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,wCAAoC;AAI5E,eAAO,MAAM,mBAAmB;0DAK7B,wBAAwB;;CAqB1B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ListItemMultiSelectProps } from "./ListItemMultiSelect.types.mjs";
|
|
3
|
+
export declare const ListItemMultiSelect: {
|
|
4
|
+
({ isSelected, accessoryGap, twClassName, ...props }: ListItemMultiSelectProps): React.JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=ListItemMultiSelect.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItemMultiSelect.d.mts","sourceRoot":"","sources":["../../../src/components/ListItemMultiSelect/ListItemMultiSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,wCAAoC;AAI5E,eAAO,MAAM,mBAAmB;0DAK7B,wBAAwB;;CAqB1B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
function $importDefault(module) {
|
|
2
|
+
if (module?.__esModule) {
|
|
3
|
+
return module.default;
|
|
4
|
+
}
|
|
5
|
+
return module;
|
|
6
|
+
}
|
|
7
|
+
import { mergeTwClassName } from "@metamask/design-system-shared";
|
|
8
|
+
import $React from "react";
|
|
9
|
+
const React = $importDefault($React);
|
|
10
|
+
import { Checkbox } from "../Checkbox/index.mjs";
|
|
11
|
+
import { ListItem } from "../ListItem/index.mjs";
|
|
12
|
+
const noopChange = () => undefined;
|
|
13
|
+
export const ListItemMultiSelect = ({ isSelected, accessoryGap = 3, twClassName, ...props }) => {
|
|
14
|
+
const resolvedTwClassName = isSelected
|
|
15
|
+
? mergeTwClassName('bg-background-muted', twClassName)
|
|
16
|
+
: twClassName;
|
|
17
|
+
return (<ListItem isInteractive twClassName={resolvedTwClassName} endAccessory={<Checkbox isSelected={isSelected} onChange={noopChange} label="" pointerEvents="none"/>} accessoryGap={accessoryGap} {...props}/>);
|
|
18
|
+
};
|
|
19
|
+
ListItemMultiSelect.displayName = 'ListItemMultiSelect';
|
|
20
|
+
//# sourceMappingURL=ListItemMultiSelect.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItemMultiSelect.mjs","sourceRoot":"","sources":["../../../src/components/ListItemMultiSelect/ListItemMultiSelect.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,gBAAgB,EAAE,uCAAuC;AAClE,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,QAAQ,EAAE,8BAAoB;AACvC,OAAO,EAAE,QAAQ,EAAE,8BAAoB;AAIvC,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC;AAEnC,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAClC,UAAU,EACV,YAAY,GAAG,CAAC,EAChB,WAAW,EACX,GAAG,KAAK,EACiB,EAAE,EAAE;IAC7B,MAAM,mBAAmB,GAAG,UAAU;QACpC,CAAC,CAAC,gBAAgB,CAAC,qBAAqB,EAAE,WAAW,CAAC;QACtD,CAAC,CAAC,WAAW,CAAC;IAEhB,OAAO,CACL,CAAC,QAAQ,CACP,aAAa,CACb,WAAW,CAAC,CAAC,mBAAmB,CAAC,CACjC,YAAY,CAAC,CACX,CAAC,QAAQ,CACP,UAAU,CAAC,CAAC,UAAU,CAAC,CACvB,QAAQ,CAAC,CAAC,UAAU,CAAC,CACrB,KAAK,CAAC,EAAE,CACR,aAAa,CAAC,MAAM,EACpB,CACH,CACD,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,IAAI,KAAK,CAAC,EACV,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,mBAAmB,CAAC,WAAW,GAAG,qBAAqB,CAAC","sourcesContent":["import { mergeTwClassName } from '@metamask/design-system-shared';\nimport React from 'react';\n\nimport { Checkbox } from '../Checkbox';\nimport { ListItem } from '../ListItem';\n\nimport type { ListItemMultiSelectProps } from './ListItemMultiSelect.types';\n\nconst noopChange = () => undefined;\n\nexport const ListItemMultiSelect = ({\n isSelected,\n accessoryGap = 3,\n twClassName,\n ...props\n}: ListItemMultiSelectProps) => {\n const resolvedTwClassName = isSelected\n ? mergeTwClassName('bg-background-muted', twClassName)\n : twClassName;\n\n return (\n <ListItem\n isInteractive\n twClassName={resolvedTwClassName}\n endAccessory={\n <Checkbox\n isSelected={isSelected}\n onChange={noopChange}\n label=\"\"\n pointerEvents=\"none\"\n />\n }\n accessoryGap={accessoryGap}\n {...props}\n />\n );\n};\n\nListItemMultiSelect.displayName = 'ListItemMultiSelect';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItemMultiSelect.types.cjs","sourceRoot":"","sources":["../../../src/components/ListItemMultiSelect/ListItemMultiSelect.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ListItemMultiSelectPropsShared } from '@metamask/design-system-shared';\n\nimport type { ListItemProps } from '../ListItem/ListItem.types';\n\ntype ListItemInteractiveProps = Extract<ListItemProps, { isInteractive: true }>;\n\n/**\n * ListItemMultiSelect component props.\n *\n * Interactive list row for multi-select lists. Wraps {@link ListItem} with\n * `isInteractive`, selection styling, and a trailing Checkbox.\n */\nexport type ListItemMultiSelectProps = Omit<\n ListItemInteractiveProps,\n 'isInteractive' | 'endAccessory'\n> &\n ListItemMultiSelectPropsShared;\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ListItemMultiSelectPropsShared } from "@metamask/design-system-shared";
|
|
2
|
+
import type { ListItemProps } from "../ListItem/ListItem.types.cjs";
|
|
3
|
+
type ListItemInteractiveProps = Extract<ListItemProps, {
|
|
4
|
+
isInteractive: true;
|
|
5
|
+
}>;
|
|
6
|
+
/**
|
|
7
|
+
* ListItemMultiSelect component props.
|
|
8
|
+
*
|
|
9
|
+
* Interactive list row for multi-select lists. Wraps {@link ListItem} with
|
|
10
|
+
* `isInteractive`, selection styling, and a trailing Checkbox.
|
|
11
|
+
*/
|
|
12
|
+
export type ListItemMultiSelectProps = Omit<ListItemInteractiveProps, 'isInteractive' | 'endAccessory'> & ListItemMultiSelectPropsShared;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=ListItemMultiSelect.types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItemMultiSelect.types.d.cts","sourceRoot":"","sources":["../../../src/components/ListItemMultiSelect/ListItemMultiSelect.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,uCAAuC;AAErF,OAAO,KAAK,EAAE,aAAa,EAAE,uCAAmC;AAEhE,KAAK,wBAAwB,GAAG,OAAO,CAAC,aAAa,EAAE;IAAE,aAAa,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC;AAEhF;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACzC,wBAAwB,EACxB,eAAe,GAAG,cAAc,CACjC,GACC,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ListItemMultiSelectPropsShared } from "@metamask/design-system-shared";
|
|
2
|
+
import type { ListItemProps } from "../ListItem/ListItem.types.mjs";
|
|
3
|
+
type ListItemInteractiveProps = Extract<ListItemProps, {
|
|
4
|
+
isInteractive: true;
|
|
5
|
+
}>;
|
|
6
|
+
/**
|
|
7
|
+
* ListItemMultiSelect component props.
|
|
8
|
+
*
|
|
9
|
+
* Interactive list row for multi-select lists. Wraps {@link ListItem} with
|
|
10
|
+
* `isInteractive`, selection styling, and a trailing Checkbox.
|
|
11
|
+
*/
|
|
12
|
+
export type ListItemMultiSelectProps = Omit<ListItemInteractiveProps, 'isInteractive' | 'endAccessory'> & ListItemMultiSelectPropsShared;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=ListItemMultiSelect.types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItemMultiSelect.types.d.mts","sourceRoot":"","sources":["../../../src/components/ListItemMultiSelect/ListItemMultiSelect.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8BAA8B,EAAE,uCAAuC;AAErF,OAAO,KAAK,EAAE,aAAa,EAAE,uCAAmC;AAEhE,KAAK,wBAAwB,GAAG,OAAO,CAAC,aAAa,EAAE;IAAE,aAAa,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC;AAEhF;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACzC,wBAAwB,EACxB,eAAe,GAAG,cAAc,CACjC,GACC,8BAA8B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItemMultiSelect.types.mjs","sourceRoot":"","sources":["../../../src/components/ListItemMultiSelect/ListItemMultiSelect.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ListItemMultiSelectPropsShared } from '@metamask/design-system-shared';\n\nimport type { ListItemProps } from '../ListItem/ListItem.types';\n\ntype ListItemInteractiveProps = Extract<ListItemProps, { isInteractive: true }>;\n\n/**\n * ListItemMultiSelect component props.\n *\n * Interactive list row for multi-select lists. Wraps {@link ListItem} with\n * `isInteractive`, selection styling, and a trailing Checkbox.\n */\nexport type ListItemMultiSelectProps = Omit<\n ListItemInteractiveProps,\n 'isInteractive' | 'endAccessory'\n> &\n ListItemMultiSelectPropsShared;\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListItemMultiSelect = void 0;
|
|
4
|
+
var ListItemMultiSelect_1 = require("./ListItemMultiSelect.cjs");
|
|
5
|
+
Object.defineProperty(exports, "ListItemMultiSelect", { enumerable: true, get: function () { return ListItemMultiSelect_1.ListItemMultiSelect; } });
|
|
6
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/ListItemMultiSelect/index.ts"],"names":[],"mappings":";;;AAAA,iEAA4D;AAAnD,0HAAA,mBAAmB,OAAA","sourcesContent":["export { ListItemMultiSelect } from './ListItemMultiSelect';\nexport type { ListItemMultiSelectProps } from './ListItemMultiSelect.types';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/ListItemMultiSelect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,kCAA8B;AAC5D,YAAY,EAAE,wBAAwB,EAAE,wCAAoC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/ListItemMultiSelect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,kCAA8B;AAC5D,YAAY,EAAE,wBAAwB,EAAE,wCAAoC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/ListItemMultiSelect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,kCAA8B","sourcesContent":["export { ListItemMultiSelect } from './ListItemMultiSelect';\nexport type { ListItemMultiSelectProps } from './ListItemMultiSelect.types';\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
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.ListItemSelect = void 0;
|
|
7
|
+
const design_system_shared_1 = require("@metamask/design-system-shared");
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
9
|
+
const Icon_1 = require("../Icon/index.cjs");
|
|
10
|
+
const ListItem_1 = require("../ListItem/index.cjs");
|
|
11
|
+
const ListItemSelect = ({ isSelected, showSelectedIcon = false, endAccessory, accessoryGap = 3, twClassName, ...props }) => {
|
|
12
|
+
const showCheck = isSelected && showSelectedIcon;
|
|
13
|
+
const resolvedEndAccessory = showCheck ? (<Icon_1.Icon name={Icon_1.IconName.Check} size={Icon_1.IconSize.Lg} color={Icon_1.IconColor.IconDefault}/>) : (endAccessory);
|
|
14
|
+
const resolvedTwClassName = isSelected
|
|
15
|
+
? (0, design_system_shared_1.mergeTwClassName)('bg-background-muted', twClassName)
|
|
16
|
+
: twClassName;
|
|
17
|
+
return (<ListItem_1.ListItem isInteractive twClassName={resolvedTwClassName} endAccessory={resolvedEndAccessory} accessoryGap={accessoryGap} {...props}/>);
|
|
18
|
+
};
|
|
19
|
+
exports.ListItemSelect = ListItemSelect;
|
|
20
|
+
exports.ListItemSelect.displayName = 'ListItemSelect';
|
|
21
|
+
//# sourceMappingURL=ListItemSelect.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItemSelect.cjs","sourceRoot":"","sources":["../../../src/components/ListItemSelect/ListItemSelect.tsx"],"names":[],"mappings":";;;;;;AAAA,yEAAkE;AAClE,kDAA0B;AAE1B,4CAA8D;AAC9D,oDAAuC;AAIhC,MAAM,cAAc,GAAG,CAAC,EAC7B,UAAU,EACV,gBAAgB,GAAG,KAAK,EACxB,YAAY,EACZ,YAAY,GAAG,CAAC,EAChB,WAAW,EACX,GAAG,KAAK,EACY,EAAE,EAAE;IACxB,MAAM,SAAS,GAAG,UAAU,IAAI,gBAAgB,CAAC;IACjD,MAAM,oBAAoB,GAAG,SAAS,CAAC,CAAC,CAAC,CACvC,CAAC,WAAI,CACH,IAAI,CAAC,CAAC,eAAQ,CAAC,KAAK,CAAC,CACrB,IAAI,CAAC,CAAC,eAAQ,CAAC,EAAE,CAAC,CAClB,KAAK,CAAC,CAAC,gBAAS,CAAC,WAAW,CAAC,EAC7B,CACH,CAAC,CAAC,CAAC,CACF,YAAY,CACb,CAAC;IAEF,MAAM,mBAAmB,GAAG,UAAU;QACpC,CAAC,CAAC,IAAA,uCAAgB,EAAC,qBAAqB,EAAE,WAAW,CAAC;QACtD,CAAC,CAAC,WAAW,CAAC;IAEhB,OAAO,CACL,CAAC,mBAAQ,CACP,aAAa,CACb,WAAW,CAAC,CAAC,mBAAmB,CAAC,CACjC,YAAY,CAAC,CAAC,oBAAoB,CAAC,CACnC,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,IAAI,KAAK,CAAC,EACV,CACH,CAAC;AACJ,CAAC,CAAC;AAhCW,QAAA,cAAc,kBAgCzB;AAEF,sBAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC","sourcesContent":["import { mergeTwClassName } from '@metamask/design-system-shared';\nimport React from 'react';\n\nimport { Icon, IconColor, IconName, IconSize } from '../Icon';\nimport { ListItem } from '../ListItem';\n\nimport type { ListItemSelectProps } from './ListItemSelect.types';\n\nexport const ListItemSelect = ({\n isSelected,\n showSelectedIcon = false,\n endAccessory,\n accessoryGap = 3,\n twClassName,\n ...props\n}: ListItemSelectProps) => {\n const showCheck = isSelected && showSelectedIcon;\n const resolvedEndAccessory = showCheck ? (\n <Icon\n name={IconName.Check}\n size={IconSize.Lg}\n color={IconColor.IconDefault}\n />\n ) : (\n endAccessory\n );\n\n const resolvedTwClassName = isSelected\n ? mergeTwClassName('bg-background-muted', twClassName)\n : twClassName;\n\n return (\n <ListItem\n isInteractive\n twClassName={resolvedTwClassName}\n endAccessory={resolvedEndAccessory}\n accessoryGap={accessoryGap}\n {...props}\n />\n );\n};\n\nListItemSelect.displayName = 'ListItemSelect';\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ListItemSelectProps } from "./ListItemSelect.types.cjs";
|
|
3
|
+
export declare const ListItemSelect: {
|
|
4
|
+
({ isSelected, showSelectedIcon, endAccessory, accessoryGap, twClassName, ...props }: ListItemSelectProps): React.JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=ListItemSelect.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItemSelect.d.cts","sourceRoot":"","sources":["../../../src/components/ListItemSelect/ListItemSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAA+B;AAElE,eAAO,MAAM,cAAc;0FAOxB,mBAAmB;;CAyBrB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ListItemSelectProps } from "./ListItemSelect.types.mjs";
|
|
3
|
+
export declare const ListItemSelect: {
|
|
4
|
+
({ isSelected, showSelectedIcon, endAccessory, accessoryGap, twClassName, ...props }: ListItemSelectProps): React.JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=ListItemSelect.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItemSelect.d.mts","sourceRoot":"","sources":["../../../src/components/ListItemSelect/ListItemSelect.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc;AAK1B,OAAO,KAAK,EAAE,mBAAmB,EAAE,mCAA+B;AAElE,eAAO,MAAM,cAAc;0FAOxB,mBAAmB;;CAyBrB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
function $importDefault(module) {
|
|
2
|
+
if (module?.__esModule) {
|
|
3
|
+
return module.default;
|
|
4
|
+
}
|
|
5
|
+
return module;
|
|
6
|
+
}
|
|
7
|
+
import { mergeTwClassName } from "@metamask/design-system-shared";
|
|
8
|
+
import $React from "react";
|
|
9
|
+
const React = $importDefault($React);
|
|
10
|
+
import { Icon, IconColor, IconName, IconSize } from "../Icon/index.mjs";
|
|
11
|
+
import { ListItem } from "../ListItem/index.mjs";
|
|
12
|
+
export const ListItemSelect = ({ isSelected, showSelectedIcon = false, endAccessory, accessoryGap = 3, twClassName, ...props }) => {
|
|
13
|
+
const showCheck = isSelected && showSelectedIcon;
|
|
14
|
+
const resolvedEndAccessory = showCheck ? (<Icon name={IconName.Check} size={IconSize.Lg} color={IconColor.IconDefault}/>) : (endAccessory);
|
|
15
|
+
const resolvedTwClassName = isSelected
|
|
16
|
+
? mergeTwClassName('bg-background-muted', twClassName)
|
|
17
|
+
: twClassName;
|
|
18
|
+
return (<ListItem isInteractive twClassName={resolvedTwClassName} endAccessory={resolvedEndAccessory} accessoryGap={accessoryGap} {...props}/>);
|
|
19
|
+
};
|
|
20
|
+
ListItemSelect.displayName = 'ListItemSelect';
|
|
21
|
+
//# sourceMappingURL=ListItemSelect.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItemSelect.mjs","sourceRoot":"","sources":["../../../src/components/ListItemSelect/ListItemSelect.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,gBAAgB,EAAE,uCAAuC;AAClE,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,0BAAgB;AAC9D,OAAO,EAAE,QAAQ,EAAE,8BAAoB;AAIvC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC7B,UAAU,EACV,gBAAgB,GAAG,KAAK,EACxB,YAAY,EACZ,YAAY,GAAG,CAAC,EAChB,WAAW,EACX,GAAG,KAAK,EACY,EAAE,EAAE;IACxB,MAAM,SAAS,GAAG,UAAU,IAAI,gBAAgB,CAAC;IACjD,MAAM,oBAAoB,GAAG,SAAS,CAAC,CAAC,CAAC,CACvC,CAAC,IAAI,CACH,IAAI,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CACrB,IAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAClB,KAAK,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,EAC7B,CACH,CAAC,CAAC,CAAC,CACF,YAAY,CACb,CAAC;IAEF,MAAM,mBAAmB,GAAG,UAAU;QACpC,CAAC,CAAC,gBAAgB,CAAC,qBAAqB,EAAE,WAAW,CAAC;QACtD,CAAC,CAAC,WAAW,CAAC;IAEhB,OAAO,CACL,CAAC,QAAQ,CACP,aAAa,CACb,WAAW,CAAC,CAAC,mBAAmB,CAAC,CACjC,YAAY,CAAC,CAAC,oBAAoB,CAAC,CACnC,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,IAAI,KAAK,CAAC,EACV,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC","sourcesContent":["import { mergeTwClassName } from '@metamask/design-system-shared';\nimport React from 'react';\n\nimport { Icon, IconColor, IconName, IconSize } from '../Icon';\nimport { ListItem } from '../ListItem';\n\nimport type { ListItemSelectProps } from './ListItemSelect.types';\n\nexport const ListItemSelect = ({\n isSelected,\n showSelectedIcon = false,\n endAccessory,\n accessoryGap = 3,\n twClassName,\n ...props\n}: ListItemSelectProps) => {\n const showCheck = isSelected && showSelectedIcon;\n const resolvedEndAccessory = showCheck ? (\n <Icon\n name={IconName.Check}\n size={IconSize.Lg}\n color={IconColor.IconDefault}\n />\n ) : (\n endAccessory\n );\n\n const resolvedTwClassName = isSelected\n ? mergeTwClassName('bg-background-muted', twClassName)\n : twClassName;\n\n return (\n <ListItem\n isInteractive\n twClassName={resolvedTwClassName}\n endAccessory={resolvedEndAccessory}\n accessoryGap={accessoryGap}\n {...props}\n />\n );\n};\n\nListItemSelect.displayName = 'ListItemSelect';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItemSelect.types.cjs","sourceRoot":"","sources":["../../../src/components/ListItemSelect/ListItemSelect.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ListItemSelectPropsShared } from '@metamask/design-system-shared';\nimport type { ReactNode } from 'react';\n\nimport type { ListItemProps } from '../ListItem/ListItem.types';\n\ntype ListItemInteractiveProps = Extract<ListItemProps, { isInteractive: true }>;\n\n/**\n * ListItemSelect component props.\n *\n * Interactive list row for single-select lists. Wraps {@link ListItem} with\n * `isInteractive` and selection styling.\n */\nexport type ListItemSelectProps = Omit<\n ListItemInteractiveProps,\n 'isInteractive' | 'endAccessory'\n> &\n ListItemSelectPropsShared & {\n /** Used when the check icon is not shown (see `showSelectedIcon`). */\n endAccessory?: ReactNode;\n };\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ListItemSelectPropsShared } from "@metamask/design-system-shared";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
import type { ListItemProps } from "../ListItem/ListItem.types.cjs";
|
|
4
|
+
type ListItemInteractiveProps = Extract<ListItemProps, {
|
|
5
|
+
isInteractive: true;
|
|
6
|
+
}>;
|
|
7
|
+
/**
|
|
8
|
+
* ListItemSelect component props.
|
|
9
|
+
*
|
|
10
|
+
* Interactive list row for single-select lists. Wraps {@link ListItem} with
|
|
11
|
+
* `isInteractive` and selection styling.
|
|
12
|
+
*/
|
|
13
|
+
export type ListItemSelectProps = Omit<ListItemInteractiveProps, 'isInteractive' | 'endAccessory'> & ListItemSelectPropsShared & {
|
|
14
|
+
/** Used when the check icon is not shown (see `showSelectedIcon`). */
|
|
15
|
+
endAccessory?: ReactNode;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=ListItemSelect.types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItemSelect.types.d.cts","sourceRoot":"","sources":["../../../src/components/ListItemSelect/ListItemSelect.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,uCAAuC;AAChF,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC,OAAO,KAAK,EAAE,aAAa,EAAE,uCAAmC;AAEhE,KAAK,wBAAwB,GAAG,OAAO,CAAC,aAAa,EAAE;IAAE,aAAa,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC;AAEhF;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,wBAAwB,EACxB,eAAe,GAAG,cAAc,CACjC,GACC,yBAAyB,GAAG;IAC1B,sEAAsE;IACtE,YAAY,CAAC,EAAE,SAAS,CAAC;CAC1B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ListItemSelectPropsShared } from "@metamask/design-system-shared";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
import type { ListItemProps } from "../ListItem/ListItem.types.mjs";
|
|
4
|
+
type ListItemInteractiveProps = Extract<ListItemProps, {
|
|
5
|
+
isInteractive: true;
|
|
6
|
+
}>;
|
|
7
|
+
/**
|
|
8
|
+
* ListItemSelect component props.
|
|
9
|
+
*
|
|
10
|
+
* Interactive list row for single-select lists. Wraps {@link ListItem} with
|
|
11
|
+
* `isInteractive` and selection styling.
|
|
12
|
+
*/
|
|
13
|
+
export type ListItemSelectProps = Omit<ListItemInteractiveProps, 'isInteractive' | 'endAccessory'> & ListItemSelectPropsShared & {
|
|
14
|
+
/** Used when the check icon is not shown (see `showSelectedIcon`). */
|
|
15
|
+
endAccessory?: ReactNode;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=ListItemSelect.types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItemSelect.types.d.mts","sourceRoot":"","sources":["../../../src/components/ListItemSelect/ListItemSelect.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,uCAAuC;AAChF,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc;AAEvC,OAAO,KAAK,EAAE,aAAa,EAAE,uCAAmC;AAEhE,KAAK,wBAAwB,GAAG,OAAO,CAAC,aAAa,EAAE;IAAE,aAAa,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC;AAEhF;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,wBAAwB,EACxB,eAAe,GAAG,cAAc,CACjC,GACC,yBAAyB,GAAG;IAC1B,sEAAsE;IACtE,YAAY,CAAC,EAAE,SAAS,CAAC;CAC1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItemSelect.types.mjs","sourceRoot":"","sources":["../../../src/components/ListItemSelect/ListItemSelect.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ListItemSelectPropsShared } from '@metamask/design-system-shared';\nimport type { ReactNode } from 'react';\n\nimport type { ListItemProps } from '../ListItem/ListItem.types';\n\ntype ListItemInteractiveProps = Extract<ListItemProps, { isInteractive: true }>;\n\n/**\n * ListItemSelect component props.\n *\n * Interactive list row for single-select lists. Wraps {@link ListItem} with\n * `isInteractive` and selection styling.\n */\nexport type ListItemSelectProps = Omit<\n ListItemInteractiveProps,\n 'isInteractive' | 'endAccessory'\n> &\n ListItemSelectPropsShared & {\n /** Used when the check icon is not shown (see `showSelectedIcon`). */\n endAccessory?: ReactNode;\n };\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListItemSelect = void 0;
|
|
4
|
+
var ListItemSelect_1 = require("./ListItemSelect.cjs");
|
|
5
|
+
Object.defineProperty(exports, "ListItemSelect", { enumerable: true, get: function () { return ListItemSelect_1.ListItemSelect; } });
|
|
6
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/ListItemSelect/index.ts"],"names":[],"mappings":";;;AAAA,uDAAkD;AAAzC,gHAAA,cAAc,OAAA","sourcesContent":["export { ListItemSelect } from './ListItemSelect';\nexport type { ListItemSelectProps } from './ListItemSelect.types';\n"]}
|