@metamask-previews/design-system-react 0.0.0-preview.bf69b6b → 0.0.0-preview.e6fc4b7
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/dist/components/avatar-account/AvatarAccount.cjs +27 -0
- package/dist/components/avatar-account/AvatarAccount.cjs.map +1 -0
- package/dist/components/avatar-account/AvatarAccount.constants.cjs +12 -0
- package/dist/components/avatar-account/AvatarAccount.constants.cjs.map +1 -0
- package/dist/components/avatar-account/AvatarAccount.constants.d.cts +3 -0
- package/dist/components/avatar-account/AvatarAccount.constants.d.cts.map +1 -0
- package/dist/components/avatar-account/AvatarAccount.constants.d.mts +3 -0
- package/dist/components/avatar-account/AvatarAccount.constants.d.mts.map +1 -0
- package/dist/components/avatar-account/AvatarAccount.constants.mjs +9 -0
- package/dist/components/avatar-account/AvatarAccount.constants.mjs.map +1 -0
- package/dist/components/avatar-account/AvatarAccount.d.cts +4 -0
- package/dist/components/avatar-account/AvatarAccount.d.cts.map +1 -0
- package/dist/components/avatar-account/AvatarAccount.d.mts +4 -0
- package/dist/components/avatar-account/AvatarAccount.d.mts.map +1 -0
- package/dist/components/avatar-account/AvatarAccount.mjs +28 -0
- package/dist/components/avatar-account/AvatarAccount.mjs.map +1 -0
- package/dist/components/avatar-account/AvatarAccount.types.cjs +32 -0
- package/dist/components/avatar-account/AvatarAccount.types.cjs.map +1 -0
- package/dist/components/avatar-account/AvatarAccount.types.d.cts +58 -0
- package/dist/components/avatar-account/AvatarAccount.types.d.cts.map +1 -0
- package/dist/components/avatar-account/AvatarAccount.types.d.mts +58 -0
- package/dist/components/avatar-account/AvatarAccount.types.d.mts.map +1 -0
- package/dist/components/avatar-account/AvatarAccount.types.mjs +29 -0
- package/dist/components/avatar-account/AvatarAccount.types.mjs.map +1 -0
- package/dist/components/avatar-account/index.cjs +9 -0
- package/dist/components/avatar-account/index.cjs.map +1 -0
- package/dist/components/avatar-account/index.d.cts +4 -0
- package/dist/components/avatar-account/index.d.cts.map +1 -0
- package/dist/components/avatar-account/index.d.mts +4 -0
- package/dist/components/avatar-account/index.d.mts.map +1 -0
- package/dist/components/avatar-account/index.mjs +3 -0
- package/dist/components/avatar-account/index.mjs.map +1 -0
- package/dist/components/avatar-base/AvatarBase.cjs +28 -0
- package/dist/components/avatar-base/AvatarBase.cjs.map +1 -0
- package/dist/components/avatar-base/AvatarBase.constants.cjs +19 -0
- package/dist/components/avatar-base/AvatarBase.constants.cjs.map +1 -0
- package/dist/components/avatar-base/AvatarBase.constants.d.cts +4 -0
- package/dist/components/avatar-base/AvatarBase.constants.d.cts.map +1 -0
- package/dist/components/avatar-base/AvatarBase.constants.d.mts +4 -0
- package/dist/components/avatar-base/AvatarBase.constants.d.mts.map +1 -0
- package/dist/components/avatar-base/AvatarBase.constants.mjs +16 -0
- package/dist/components/avatar-base/AvatarBase.constants.mjs.map +1 -0
- package/dist/components/avatar-base/AvatarBase.d.cts +4 -0
- package/dist/components/avatar-base/AvatarBase.d.cts.map +1 -0
- package/dist/components/avatar-base/AvatarBase.d.mts +4 -0
- package/dist/components/avatar-base/AvatarBase.d.mts.map +1 -0
- package/dist/components/avatar-base/AvatarBase.mjs +29 -0
- package/dist/components/avatar-base/AvatarBase.mjs.map +1 -0
- package/dist/components/avatar-base/AvatarBase.types.cjs +38 -0
- package/dist/components/avatar-base/AvatarBase.types.cjs.map +1 -0
- package/dist/components/avatar-base/AvatarBase.types.d.cts +77 -0
- package/dist/components/avatar-base/AvatarBase.types.d.cts.map +1 -0
- package/dist/components/avatar-base/AvatarBase.types.d.mts +77 -0
- package/dist/components/avatar-base/AvatarBase.types.d.mts.map +1 -0
- package/dist/components/avatar-base/AvatarBase.types.mjs +35 -0
- package/dist/components/avatar-base/AvatarBase.types.mjs.map +1 -0
- package/dist/components/avatar-base/index.cjs +9 -0
- package/dist/components/avatar-base/index.cjs.map +1 -0
- package/dist/components/avatar-base/index.d.cts +4 -0
- package/dist/components/{button-link → avatar-base}/index.d.cts.map +1 -1
- package/dist/components/avatar-base/index.d.mts +4 -0
- package/dist/components/{button-link → avatar-base}/index.d.mts.map +1 -1
- package/dist/components/avatar-base/index.mjs +3 -0
- package/dist/components/avatar-base/index.mjs.map +1 -0
- package/dist/components/avatar-favicon/AvatarFavicon.cjs +15 -0
- package/dist/components/avatar-favicon/AvatarFavicon.cjs.map +1 -0
- package/dist/components/avatar-favicon/AvatarFavicon.d.cts +4 -0
- package/dist/components/avatar-favicon/AvatarFavicon.d.cts.map +1 -0
- package/dist/components/avatar-favicon/AvatarFavicon.d.mts +4 -0
- package/dist/components/avatar-favicon/AvatarFavicon.d.mts.map +1 -0
- package/dist/components/avatar-favicon/AvatarFavicon.mjs +16 -0
- package/dist/components/avatar-favicon/AvatarFavicon.mjs.map +1 -0
- package/dist/components/avatar-favicon/AvatarFavicon.types.cjs +4 -0
- package/dist/components/avatar-favicon/AvatarFavicon.types.cjs.map +1 -0
- package/dist/components/avatar-favicon/AvatarFavicon.types.d.cts +40 -0
- package/dist/components/avatar-favicon/AvatarFavicon.types.d.cts.map +1 -0
- package/dist/components/avatar-favicon/AvatarFavicon.types.d.mts +40 -0
- package/dist/components/avatar-favicon/AvatarFavicon.types.d.mts.map +1 -0
- package/dist/components/avatar-favicon/AvatarFavicon.types.mjs +2 -0
- package/dist/components/avatar-favicon/AvatarFavicon.types.mjs.map +1 -0
- package/dist/components/avatar-favicon/index.cjs +8 -0
- package/dist/components/avatar-favicon/index.cjs.map +1 -0
- package/dist/components/avatar-favicon/index.d.cts +4 -0
- package/dist/components/avatar-favicon/index.d.cts.map +1 -0
- package/dist/components/avatar-favicon/index.d.mts +4 -0
- package/dist/components/avatar-favicon/index.d.mts.map +1 -0
- package/dist/components/avatar-favicon/index.mjs +3 -0
- package/dist/components/avatar-favicon/index.mjs.map +1 -0
- package/dist/components/avatar-icon/AvatarIcon.cjs +19 -0
- package/dist/components/avatar-icon/AvatarIcon.cjs.map +1 -0
- package/dist/components/avatar-icon/AvatarIcon.constants.cjs +44 -0
- package/dist/components/avatar-icon/AvatarIcon.constants.cjs.map +1 -0
- package/dist/components/avatar-icon/AvatarIcon.constants.d.cts +11 -0
- package/dist/components/avatar-icon/AvatarIcon.constants.d.cts.map +1 -0
- package/dist/components/avatar-icon/AvatarIcon.constants.d.mts +11 -0
- package/dist/components/avatar-icon/AvatarIcon.constants.d.mts.map +1 -0
- package/dist/components/avatar-icon/AvatarIcon.constants.mjs +41 -0
- package/dist/components/avatar-icon/AvatarIcon.constants.mjs.map +1 -0
- package/dist/components/avatar-icon/AvatarIcon.d.cts +4 -0
- package/dist/components/avatar-icon/AvatarIcon.d.cts.map +1 -0
- package/dist/components/avatar-icon/AvatarIcon.d.mts +4 -0
- package/dist/components/avatar-icon/AvatarIcon.d.mts.map +1 -0
- package/dist/components/avatar-icon/AvatarIcon.mjs +20 -0
- package/dist/components/avatar-icon/AvatarIcon.mjs.map +1 -0
- package/dist/components/avatar-icon/AvatarIcon.types.cjs +36 -0
- package/dist/components/avatar-icon/AvatarIcon.types.cjs.map +1 -0
- package/dist/components/avatar-icon/AvatarIcon.types.d.cts +57 -0
- package/dist/components/avatar-icon/AvatarIcon.types.d.cts.map +1 -0
- package/dist/components/avatar-icon/AvatarIcon.types.d.mts +57 -0
- package/dist/components/avatar-icon/AvatarIcon.types.d.mts.map +1 -0
- package/dist/components/avatar-icon/AvatarIcon.types.mjs +33 -0
- package/dist/components/avatar-icon/AvatarIcon.types.mjs.map +1 -0
- package/dist/components/avatar-icon/index.cjs +9 -0
- package/dist/components/avatar-icon/index.cjs.map +1 -0
- package/dist/components/avatar-icon/index.d.cts +4 -0
- package/dist/components/avatar-icon/index.d.cts.map +1 -0
- package/dist/components/avatar-icon/index.d.mts +4 -0
- package/dist/components/avatar-icon/index.d.mts.map +1 -0
- package/dist/components/avatar-icon/index.mjs +3 -0
- package/dist/components/avatar-icon/index.mjs.map +1 -0
- package/dist/components/avatar-network/AvatarNetwork.cjs +15 -0
- package/dist/components/avatar-network/AvatarNetwork.cjs.map +1 -0
- package/dist/components/avatar-network/AvatarNetwork.d.cts +4 -0
- package/dist/components/avatar-network/AvatarNetwork.d.cts.map +1 -0
- package/dist/components/avatar-network/AvatarNetwork.d.mts +4 -0
- package/dist/components/avatar-network/AvatarNetwork.d.mts.map +1 -0
- package/dist/components/avatar-network/AvatarNetwork.mjs +16 -0
- package/dist/components/avatar-network/AvatarNetwork.mjs.map +1 -0
- package/dist/components/avatar-network/AvatarNetwork.types.cjs +4 -0
- package/dist/components/avatar-network/AvatarNetwork.types.cjs.map +1 -0
- package/dist/components/avatar-network/AvatarNetwork.types.d.cts +40 -0
- package/dist/components/avatar-network/AvatarNetwork.types.d.cts.map +1 -0
- package/dist/components/avatar-network/AvatarNetwork.types.d.mts +40 -0
- package/dist/components/avatar-network/AvatarNetwork.types.d.mts.map +1 -0
- package/dist/components/avatar-network/AvatarNetwork.types.mjs +2 -0
- package/dist/components/avatar-network/AvatarNetwork.types.mjs.map +1 -0
- package/dist/components/avatar-network/index.cjs +8 -0
- package/dist/components/avatar-network/index.cjs.map +1 -0
- package/dist/components/avatar-network/index.d.cts +4 -0
- package/dist/components/avatar-network/index.d.cts.map +1 -0
- package/dist/components/avatar-network/index.d.mts +4 -0
- package/dist/components/avatar-network/index.d.mts.map +1 -0
- package/dist/components/avatar-network/index.mjs +3 -0
- package/dist/components/avatar-network/index.mjs.map +1 -0
- package/dist/components/avatar-token/AvatarToken.cjs +15 -0
- package/dist/components/avatar-token/AvatarToken.cjs.map +1 -0
- package/dist/components/avatar-token/AvatarToken.d.cts +4 -0
- package/dist/components/avatar-token/AvatarToken.d.cts.map +1 -0
- package/dist/components/avatar-token/AvatarToken.d.mts +4 -0
- package/dist/components/avatar-token/AvatarToken.d.mts.map +1 -0
- package/dist/components/avatar-token/AvatarToken.mjs +16 -0
- package/dist/components/avatar-token/AvatarToken.mjs.map +1 -0
- package/dist/components/avatar-token/AvatarToken.types.cjs +4 -0
- package/dist/components/avatar-token/AvatarToken.types.cjs.map +1 -0
- package/dist/components/avatar-token/AvatarToken.types.d.cts +40 -0
- package/dist/components/avatar-token/AvatarToken.types.d.cts.map +1 -0
- package/dist/components/avatar-token/AvatarToken.types.d.mts +40 -0
- package/dist/components/avatar-token/AvatarToken.types.d.mts.map +1 -0
- package/dist/components/avatar-token/AvatarToken.types.mjs +2 -0
- package/dist/components/avatar-token/AvatarToken.types.mjs.map +1 -0
- package/dist/components/avatar-token/index.cjs +8 -0
- package/dist/components/avatar-token/index.cjs.map +1 -0
- package/dist/components/avatar-token/index.d.cts +4 -0
- package/dist/components/avatar-token/index.d.cts.map +1 -0
- package/dist/components/avatar-token/index.d.mts +4 -0
- package/dist/components/avatar-token/index.d.mts.map +1 -0
- package/dist/components/avatar-token/index.mjs +3 -0
- package/dist/components/avatar-token/index.mjs.map +1 -0
- package/dist/components/badge-count/BadgeCount.cjs +21 -0
- package/dist/components/badge-count/BadgeCount.cjs.map +1 -0
- package/dist/components/badge-count/BadgeCount.constants.cjs +15 -0
- package/dist/components/badge-count/BadgeCount.constants.cjs.map +1 -0
- package/dist/components/badge-count/BadgeCount.constants.d.cts +5 -0
- package/dist/components/badge-count/BadgeCount.constants.d.cts.map +1 -0
- package/dist/components/badge-count/BadgeCount.constants.d.mts +5 -0
- package/dist/components/badge-count/BadgeCount.constants.d.mts.map +1 -0
- package/dist/components/badge-count/BadgeCount.constants.mjs +12 -0
- package/dist/components/badge-count/BadgeCount.constants.mjs.map +1 -0
- package/dist/components/badge-count/BadgeCount.d.cts +4 -0
- package/dist/components/badge-count/BadgeCount.d.cts.map +1 -0
- package/dist/components/badge-count/BadgeCount.d.mts +4 -0
- package/dist/components/badge-count/BadgeCount.d.mts.map +1 -0
- package/dist/components/badge-count/BadgeCount.mjs +22 -0
- package/dist/components/badge-count/BadgeCount.mjs.map +1 -0
- package/dist/components/badge-count/BadgeCount.types.cjs +15 -0
- package/dist/components/badge-count/BadgeCount.types.cjs.map +1 -0
- package/dist/components/badge-count/BadgeCount.types.d.cts +48 -0
- package/dist/components/badge-count/BadgeCount.types.d.cts.map +1 -0
- package/dist/components/badge-count/BadgeCount.types.d.mts +48 -0
- package/dist/components/badge-count/BadgeCount.types.d.mts.map +1 -0
- package/dist/components/badge-count/BadgeCount.types.mjs +12 -0
- package/dist/components/badge-count/BadgeCount.types.mjs.map +1 -0
- package/dist/components/badge-count/index.cjs +8 -0
- package/dist/components/badge-count/index.cjs.map +1 -0
- package/dist/components/badge-count/index.d.cts +4 -0
- package/dist/components/badge-count/index.d.cts.map +1 -0
- package/dist/components/badge-count/index.d.mts +4 -0
- package/dist/components/badge-count/index.d.mts.map +1 -0
- package/dist/components/badge-count/index.mjs +3 -0
- package/dist/components/badge-count/index.mjs.map +1 -0
- package/dist/components/badge-icon/BadgeIcon.cjs +18 -0
- package/dist/components/badge-icon/BadgeIcon.cjs.map +1 -0
- package/dist/components/badge-icon/BadgeIcon.d.cts +4 -0
- package/dist/components/badge-icon/BadgeIcon.d.cts.map +1 -0
- package/dist/components/badge-icon/BadgeIcon.d.mts +4 -0
- package/dist/components/badge-icon/BadgeIcon.d.mts.map +1 -0
- package/dist/components/badge-icon/BadgeIcon.mjs +19 -0
- package/dist/components/badge-icon/BadgeIcon.mjs.map +1 -0
- package/dist/components/badge-icon/BadgeIcon.types.cjs +4 -0
- package/dist/components/badge-icon/BadgeIcon.types.cjs.map +1 -0
- package/dist/components/badge-icon/BadgeIcon.types.d.cts +26 -0
- package/dist/components/badge-icon/BadgeIcon.types.d.cts.map +1 -0
- package/dist/components/badge-icon/BadgeIcon.types.d.mts +26 -0
- package/dist/components/badge-icon/BadgeIcon.types.d.mts.map +1 -0
- package/dist/components/badge-icon/BadgeIcon.types.mjs +2 -0
- package/dist/components/badge-icon/BadgeIcon.types.mjs.map +1 -0
- package/dist/components/badge-icon/index.cjs +6 -0
- package/dist/components/badge-icon/index.cjs.map +1 -0
- package/dist/components/badge-icon/index.d.cts +3 -0
- package/dist/components/badge-icon/index.d.cts.map +1 -0
- package/dist/components/badge-icon/index.d.mts +3 -0
- package/dist/components/badge-icon/index.d.mts.map +1 -0
- package/dist/components/badge-icon/index.mjs +2 -0
- package/dist/components/badge-icon/index.mjs.map +1 -0
- package/dist/components/badge-status/BadgeStatus.cjs +32 -0
- package/dist/components/badge-status/BadgeStatus.cjs.map +1 -0
- package/dist/components/badge-status/BadgeStatus.constants.cjs +17 -0
- package/dist/components/badge-status/BadgeStatus.constants.cjs.map +1 -0
- package/dist/components/badge-status/BadgeStatus.constants.d.cts +4 -0
- package/dist/components/badge-status/BadgeStatus.constants.d.cts.map +1 -0
- package/dist/components/badge-status/BadgeStatus.constants.d.mts +4 -0
- package/dist/components/badge-status/BadgeStatus.constants.d.mts.map +1 -0
- package/dist/components/badge-status/BadgeStatus.constants.mjs +14 -0
- package/dist/components/badge-status/BadgeStatus.constants.mjs.map +1 -0
- package/dist/components/badge-status/BadgeStatus.d.cts +4 -0
- package/dist/components/badge-status/BadgeStatus.d.cts.map +1 -0
- package/dist/components/badge-status/BadgeStatus.d.mts +4 -0
- package/dist/components/badge-status/BadgeStatus.d.mts.map +1 -0
- package/dist/components/badge-status/BadgeStatus.mjs +33 -0
- package/dist/components/badge-status/BadgeStatus.mjs.map +1 -0
- package/dist/components/badge-status/BadgeStatus.types.cjs +29 -0
- package/dist/components/badge-status/BadgeStatus.types.cjs.map +1 -0
- package/dist/components/badge-status/BadgeStatus.types.d.cts +63 -0
- package/dist/components/badge-status/BadgeStatus.types.d.cts.map +1 -0
- package/dist/components/badge-status/BadgeStatus.types.d.mts +63 -0
- package/dist/components/badge-status/BadgeStatus.types.d.mts.map +1 -0
- package/dist/components/badge-status/BadgeStatus.types.mjs +26 -0
- package/dist/components/badge-status/BadgeStatus.types.mjs.map +1 -0
- package/dist/components/badge-status/index.cjs +9 -0
- package/dist/components/badge-status/index.cjs.map +1 -0
- package/dist/components/badge-status/index.d.cts +4 -0
- package/dist/components/badge-status/index.d.cts.map +1 -0
- package/dist/components/badge-status/index.d.mts +4 -0
- package/dist/components/badge-status/index.d.mts.map +1 -0
- package/dist/components/badge-status/index.mjs +3 -0
- package/dist/components/badge-status/index.mjs.map +1 -0
- package/dist/components/blockies/Blockies.cjs +40 -0
- package/dist/components/blockies/Blockies.cjs.map +1 -0
- package/dist/components/blockies/Blockies.d.cts +7 -0
- package/dist/components/blockies/Blockies.d.cts.map +1 -0
- package/dist/components/blockies/Blockies.d.mts +7 -0
- package/dist/components/blockies/Blockies.d.mts.map +1 -0
- package/dist/components/blockies/Blockies.mjs +21 -0
- package/dist/components/blockies/Blockies.mjs.map +1 -0
- package/dist/components/{button-link/ButtonLink.types.cjs → blockies/Blockies.types.cjs} +1 -1
- package/dist/components/blockies/Blockies.types.cjs.map +1 -0
- package/dist/components/blockies/Blockies.types.d.cts +16 -0
- package/dist/components/blockies/Blockies.types.d.cts.map +1 -0
- package/dist/components/blockies/Blockies.types.d.mts +16 -0
- package/dist/components/blockies/Blockies.types.d.mts.map +1 -0
- package/dist/components/blockies/Blockies.types.mjs +2 -0
- package/dist/components/blockies/Blockies.types.mjs.map +1 -0
- package/dist/components/blockies/index.cjs +6 -0
- package/dist/components/blockies/index.cjs.map +1 -0
- package/dist/components/blockies/index.d.cts +3 -0
- package/dist/components/blockies/index.d.cts.map +1 -0
- package/dist/components/blockies/index.d.mts +3 -0
- package/dist/components/blockies/index.d.mts.map +1 -0
- package/dist/components/blockies/index.mjs +2 -0
- package/dist/components/blockies/index.mjs.map +1 -0
- package/dist/components/button/Button.cjs +25 -0
- package/dist/components/button/Button.cjs.map +1 -0
- package/dist/components/button/Button.d.cts +4 -0
- package/dist/components/button/Button.d.cts.map +1 -0
- package/dist/components/button/Button.d.mts +4 -0
- package/dist/components/button/Button.d.mts.map +1 -0
- package/dist/components/button/Button.mjs +26 -0
- package/dist/components/button/Button.mjs.map +1 -0
- package/dist/components/button/Button.types.cjs +19 -0
- package/dist/components/button/Button.types.cjs.map +1 -0
- package/dist/components/button/Button.types.d.cts +31 -0
- package/dist/components/button/Button.types.d.cts.map +1 -0
- package/dist/components/button/Button.types.d.mts +31 -0
- package/dist/components/button/Button.types.d.mts.map +1 -0
- package/dist/components/button/Button.types.mjs +16 -0
- package/dist/components/button/Button.types.mjs.map +1 -0
- package/dist/components/button/index.cjs +10 -0
- package/dist/components/button/index.cjs.map +1 -0
- package/dist/components/button/index.d.cts +5 -0
- package/dist/components/button/index.d.cts.map +1 -0
- package/dist/components/button/index.d.mts +5 -0
- package/dist/components/button/index.d.mts.map +1 -0
- package/dist/components/button/index.mjs +4 -0
- package/dist/components/button/index.mjs.map +1 -0
- package/dist/components/button-base/ButtonBase.cjs +24 -10
- package/dist/components/button-base/ButtonBase.cjs.map +1 -1
- package/dist/components/button-base/ButtonBase.d.cts.map +1 -1
- package/dist/components/button-base/ButtonBase.d.mts.map +1 -1
- package/dist/components/button-base/ButtonBase.mjs +22 -8
- package/dist/components/button-base/ButtonBase.mjs.map +1 -1
- package/dist/components/button-base/ButtonBase.types.cjs.map +1 -1
- package/dist/components/button-base/ButtonBase.types.d.cts +1 -1
- package/dist/components/button-base/ButtonBase.types.d.mts +1 -1
- package/dist/components/button-base/ButtonBase.types.mjs.map +1 -1
- package/dist/components/button-icon/ButtonIcon.cjs +38 -0
- package/dist/components/button-icon/ButtonIcon.cjs.map +1 -0
- package/dist/components/button-icon/ButtonIcon.constants.cjs +16 -0
- package/dist/components/button-icon/ButtonIcon.constants.cjs.map +1 -0
- package/dist/components/button-icon/ButtonIcon.constants.d.cts +12 -0
- package/dist/components/button-icon/ButtonIcon.constants.d.cts.map +1 -0
- package/dist/components/button-icon/ButtonIcon.constants.d.mts +12 -0
- package/dist/components/button-icon/ButtonIcon.constants.d.mts.map +1 -0
- package/dist/components/button-icon/ButtonIcon.constants.mjs +13 -0
- package/dist/components/button-icon/ButtonIcon.constants.mjs.map +1 -0
- package/dist/components/button-icon/ButtonIcon.d.cts +4 -0
- package/dist/components/button-icon/ButtonIcon.d.cts.map +1 -0
- package/dist/components/button-icon/ButtonIcon.d.mts +4 -0
- package/dist/components/button-icon/ButtonIcon.d.mts.map +1 -0
- package/dist/components/button-icon/ButtonIcon.mjs +39 -0
- package/dist/components/button-icon/ButtonIcon.mjs.map +1 -0
- package/dist/components/button-icon/ButtonIcon.types.cjs +19 -0
- package/dist/components/button-icon/ButtonIcon.types.cjs.map +1 -0
- package/dist/components/button-icon/ButtonIcon.types.d.cts +61 -0
- package/dist/components/button-icon/ButtonIcon.types.d.cts.map +1 -0
- package/dist/components/button-icon/ButtonIcon.types.d.mts +61 -0
- package/dist/components/button-icon/ButtonIcon.types.d.mts.map +1 -0
- package/dist/components/button-icon/ButtonIcon.types.mjs +16 -0
- package/dist/components/button-icon/ButtonIcon.types.mjs.map +1 -0
- package/dist/components/button-icon/index.cjs +8 -0
- package/dist/components/button-icon/index.cjs.map +1 -0
- package/dist/components/button-icon/index.d.cts +4 -0
- package/dist/components/button-icon/index.d.cts.map +1 -0
- package/dist/components/button-icon/index.d.mts +4 -0
- package/dist/components/button-icon/index.d.mts.map +1 -0
- package/dist/components/button-icon/index.mjs +3 -0
- package/dist/components/button-icon/index.mjs.map +1 -0
- package/dist/components/button-primary/ButtonPrimary.cjs +45 -23
- package/dist/components/button-primary/ButtonPrimary.cjs.map +1 -1
- package/dist/components/button-primary/ButtonPrimary.d.cts.map +1 -1
- package/dist/components/button-primary/ButtonPrimary.d.mts.map +1 -1
- package/dist/components/button-primary/ButtonPrimary.mjs +45 -23
- package/dist/components/button-primary/ButtonPrimary.mjs.map +1 -1
- package/dist/components/button-secondary/ButtonSecondary.cjs +26 -25
- package/dist/components/button-secondary/ButtonSecondary.cjs.map +1 -1
- package/dist/components/button-secondary/ButtonSecondary.d.cts.map +1 -1
- package/dist/components/button-secondary/ButtonSecondary.d.mts.map +1 -1
- package/dist/components/button-secondary/ButtonSecondary.mjs +26 -25
- package/dist/components/button-secondary/ButtonSecondary.mjs.map +1 -1
- package/dist/components/button-tertiary/ButtonTertiary.cjs +60 -0
- package/dist/components/button-tertiary/ButtonTertiary.cjs.map +1 -0
- package/dist/components/button-tertiary/ButtonTertiary.d.cts +4 -0
- package/dist/components/button-tertiary/ButtonTertiary.d.cts.map +1 -0
- package/dist/components/button-tertiary/ButtonTertiary.d.mts +4 -0
- package/dist/components/button-tertiary/ButtonTertiary.d.mts.map +1 -0
- package/dist/components/button-tertiary/ButtonTertiary.mjs +61 -0
- package/dist/components/button-tertiary/ButtonTertiary.mjs.map +1 -0
- package/dist/components/button-tertiary/ButtonTertiary.types.cjs +3 -0
- package/dist/components/button-tertiary/ButtonTertiary.types.cjs.map +1 -0
- package/dist/components/{button-link/ButtonLink.types.d.cts → button-tertiary/ButtonTertiary.types.d.cts} +8 -3
- package/dist/components/button-tertiary/ButtonTertiary.types.d.cts.map +1 -0
- package/dist/components/{button-link/ButtonLink.types.d.mts → button-tertiary/ButtonTertiary.types.d.mts} +8 -3
- package/dist/components/button-tertiary/ButtonTertiary.types.d.mts.map +1 -0
- package/dist/components/button-tertiary/ButtonTertiary.types.mjs +2 -0
- package/dist/components/button-tertiary/ButtonTertiary.types.mjs.map +1 -0
- package/dist/components/button-tertiary/index.cjs +8 -0
- package/dist/components/button-tertiary/index.cjs.map +1 -0
- package/dist/components/button-tertiary/index.d.cts +4 -0
- package/dist/components/button-tertiary/index.d.cts.map +1 -0
- package/dist/components/button-tertiary/index.d.mts +4 -0
- package/dist/components/button-tertiary/index.d.mts.map +1 -0
- package/dist/components/button-tertiary/index.mjs +3 -0
- package/dist/components/button-tertiary/index.mjs.map +1 -0
- package/dist/components/index.cjs +51 -9
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +34 -7
- package/dist/components/index.d.cts.map +1 -1
- package/dist/components/index.d.mts +34 -7
- package/dist/components/index.d.mts.map +1 -1
- package/dist/components/index.mjs +19 -6
- package/dist/components/index.mjs.map +1 -1
- package/dist/components/jazzicon/Jazzicon.cjs +98 -0
- package/dist/components/jazzicon/Jazzicon.cjs.map +1 -0
- package/dist/components/jazzicon/Jazzicon.d.cts +7 -0
- package/dist/components/jazzicon/Jazzicon.d.cts.map +1 -0
- package/dist/components/jazzicon/Jazzicon.d.mts +7 -0
- package/dist/components/jazzicon/Jazzicon.d.mts.map +1 -0
- package/dist/components/jazzicon/Jazzicon.mjs +77 -0
- package/dist/components/jazzicon/Jazzicon.mjs.map +1 -0
- package/dist/components/jazzicon/Jazzicon.types.cjs +3 -0
- package/dist/components/jazzicon/Jazzicon.types.cjs.map +1 -0
- package/dist/components/jazzicon/Jazzicon.types.d.cts +16 -0
- package/dist/components/jazzicon/Jazzicon.types.d.cts.map +1 -0
- package/dist/components/jazzicon/Jazzicon.types.d.mts +16 -0
- package/dist/components/jazzicon/Jazzicon.types.d.mts.map +1 -0
- package/dist/components/jazzicon/Jazzicon.types.mjs +2 -0
- package/dist/components/jazzicon/Jazzicon.types.mjs.map +1 -0
- package/dist/components/jazzicon/Jazzicon.utilities.cjs +58 -0
- package/dist/components/jazzicon/Jazzicon.utilities.cjs.map +1 -0
- package/dist/components/jazzicon/Jazzicon.utilities.d.cts +15 -0
- package/dist/components/jazzicon/Jazzicon.utilities.d.cts.map +1 -0
- package/dist/components/jazzicon/Jazzicon.utilities.d.mts +15 -0
- package/dist/components/jazzicon/Jazzicon.utilities.d.mts.map +1 -0
- package/dist/components/jazzicon/Jazzicon.utilities.mjs +52 -0
- package/dist/components/jazzicon/Jazzicon.utilities.mjs.map +1 -0
- package/dist/components/jazzicon/index.cjs +6 -0
- package/dist/components/jazzicon/index.cjs.map +1 -0
- package/dist/components/jazzicon/index.d.cts +3 -0
- package/dist/components/jazzicon/index.d.cts.map +1 -0
- package/dist/components/jazzicon/index.d.mts +3 -0
- package/dist/components/jazzicon/index.d.mts.map +1 -0
- package/dist/components/jazzicon/index.mjs +2 -0
- package/dist/components/jazzicon/index.mjs.map +1 -0
- package/dist/components/text/Text.cjs +2 -2
- package/dist/components/text/Text.cjs.map +1 -1
- package/dist/components/text/Text.d.cts.map +1 -1
- package/dist/components/text/Text.d.mts.map +1 -1
- package/dist/components/text/Text.mjs +2 -2
- package/dist/components/text/Text.mjs.map +1 -1
- package/dist/components/text/Text.types.cjs.map +1 -1
- package/dist/components/text/Text.types.d.cts +4 -0
- package/dist/components/text/Text.types.d.cts.map +1 -1
- package/dist/components/text/Text.types.d.mts +4 -0
- package/dist/components/text/Text.types.d.mts.map +1 -1
- package/dist/components/text/Text.types.mjs.map +1 -1
- package/dist/components/text-button/TextButton.cjs +49 -0
- package/dist/components/text-button/TextButton.cjs.map +1 -0
- package/dist/components/text-button/TextButton.d.cts +4 -0
- package/dist/components/text-button/TextButton.d.cts.map +1 -0
- package/dist/components/text-button/TextButton.d.mts +4 -0
- package/dist/components/text-button/TextButton.d.mts.map +1 -0
- package/dist/components/text-button/TextButton.mjs +50 -0
- package/dist/components/text-button/TextButton.mjs.map +1 -0
- package/dist/components/text-button/TextButton.types.cjs +3 -0
- package/dist/components/text-button/TextButton.types.cjs.map +1 -0
- package/dist/components/text-button/TextButton.types.d.cts +35 -0
- package/dist/components/text-button/TextButton.types.d.cts.map +1 -0
- package/dist/components/text-button/TextButton.types.d.mts +35 -0
- package/dist/components/text-button/TextButton.types.d.mts.map +1 -0
- package/dist/components/text-button/TextButton.types.mjs +2 -0
- package/dist/components/text-button/TextButton.types.mjs.map +1 -0
- package/dist/components/text-button/index.cjs +6 -0
- package/dist/components/text-button/index.cjs.map +1 -0
- package/dist/components/text-button/index.d.cts +3 -0
- package/dist/components/text-button/index.d.cts.map +1 -0
- package/dist/components/text-button/index.d.mts +3 -0
- package/dist/components/text-button/index.d.mts.map +1 -0
- package/dist/components/text-button/index.mjs +2 -0
- package/dist/components/text-button/index.mjs.map +1 -0
- package/package.json +11 -6
- package/dist/components/button-link/ButtonLink.cjs +0 -32
- package/dist/components/button-link/ButtonLink.cjs.map +0 -1
- package/dist/components/button-link/ButtonLink.d.cts +0 -4
- package/dist/components/button-link/ButtonLink.d.cts.map +0 -1
- package/dist/components/button-link/ButtonLink.d.mts +0 -4
- package/dist/components/button-link/ButtonLink.d.mts.map +0 -1
- package/dist/components/button-link/ButtonLink.mjs +0 -33
- package/dist/components/button-link/ButtonLink.mjs.map +0 -1
- package/dist/components/button-link/ButtonLink.types.cjs.map +0 -1
- package/dist/components/button-link/ButtonLink.types.d.cts.map +0 -1
- package/dist/components/button-link/ButtonLink.types.d.mts.map +0 -1
- package/dist/components/button-link/ButtonLink.types.mjs +0 -2
- package/dist/components/button-link/ButtonLink.types.mjs.map +0 -1
- package/dist/components/button-link/index.cjs +0 -8
- package/dist/components/button-link/index.cjs.map +0 -1
- package/dist/components/button-link/index.d.cts +0 -4
- package/dist/components/button-link/index.d.mts +0 -4
- package/dist/components/button-link/index.mjs +0 -3
- package/dist/components/button-link/index.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonTertiary.types.cjs","sourceRoot":"","sources":["../../../src/components/button-tertiary/ButtonTertiary.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonBaseProps } from '../button-base';\n\nexport type ButtonTertiaryProps = Omit<\n ButtonBaseProps,\n 'className' | 'isDisabled' | 'isLoading' | 'style'\n> & {\n /**\n * Optional prop for additional CSS classes to be applied to the ButtonTertiary component\n */\n className?: string;\n /**\n * Optional prop that when true, applies error/danger styling to the button\n * @default false\n */\n isDanger?: boolean;\n /**\n * Optional prop that when true, applies inverse styling to the button\n * @default false\n */\n isInverse?: boolean;\n /**\n * Optional prop that when true, disables the button\n * @default false\n */\n isDisabled?: boolean;\n /**\n * Optional prop that when true, shows a loading spinner\n * @default false\n */\n isLoading?: boolean;\n /**\n * Optional CSS styles to be applied to the component.\n * Should be used sparingly and only for dynamic styles that can't be achieved with className.\n */\n style?: React.CSSProperties;\n};\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ButtonBaseProps } from "../button-base/index.cjs";
|
|
3
|
-
export type
|
|
3
|
+
export type ButtonTertiaryProps = Omit<ButtonBaseProps, 'className' | 'isDisabled' | 'isLoading' | 'style'> & {
|
|
4
4
|
/**
|
|
5
|
-
* Optional prop for additional CSS classes to be applied to the
|
|
5
|
+
* Optional prop for additional CSS classes to be applied to the ButtonTertiary component
|
|
6
6
|
*/
|
|
7
7
|
className?: string;
|
|
8
8
|
/**
|
|
@@ -10,6 +10,11 @@ export type ButtonLinkProps = Omit<ButtonBaseProps, 'className' | 'isDisabled' |
|
|
|
10
10
|
* @default false
|
|
11
11
|
*/
|
|
12
12
|
isDanger?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Optional prop that when true, applies inverse styling to the button
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
isInverse?: boolean;
|
|
13
18
|
/**
|
|
14
19
|
* Optional prop that when true, disables the button
|
|
15
20
|
* @default false
|
|
@@ -26,4 +31,4 @@ export type ButtonLinkProps = Omit<ButtonBaseProps, 'className' | 'isDisabled' |
|
|
|
26
31
|
*/
|
|
27
32
|
style?: React.CSSProperties;
|
|
28
33
|
};
|
|
29
|
-
//# sourceMappingURL=
|
|
34
|
+
//# sourceMappingURL=ButtonTertiary.types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonTertiary.types.d.cts","sourceRoot":"","sources":["../../../src/components/button-tertiary/ButtonTertiary.types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,iCAAuB;AAEtD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,eAAe,EACf,WAAW,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,CACnD,GAAG;IACF;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ButtonBaseProps } from "../button-base/index.mjs";
|
|
3
|
-
export type
|
|
3
|
+
export type ButtonTertiaryProps = Omit<ButtonBaseProps, 'className' | 'isDisabled' | 'isLoading' | 'style'> & {
|
|
4
4
|
/**
|
|
5
|
-
* Optional prop for additional CSS classes to be applied to the
|
|
5
|
+
* Optional prop for additional CSS classes to be applied to the ButtonTertiary component
|
|
6
6
|
*/
|
|
7
7
|
className?: string;
|
|
8
8
|
/**
|
|
@@ -10,6 +10,11 @@ export type ButtonLinkProps = Omit<ButtonBaseProps, 'className' | 'isDisabled' |
|
|
|
10
10
|
* @default false
|
|
11
11
|
*/
|
|
12
12
|
isDanger?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Optional prop that when true, applies inverse styling to the button
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
isInverse?: boolean;
|
|
13
18
|
/**
|
|
14
19
|
* Optional prop that when true, disables the button
|
|
15
20
|
* @default false
|
|
@@ -26,4 +31,4 @@ export type ButtonLinkProps = Omit<ButtonBaseProps, 'className' | 'isDisabled' |
|
|
|
26
31
|
*/
|
|
27
32
|
style?: React.CSSProperties;
|
|
28
33
|
};
|
|
29
|
-
//# sourceMappingURL=
|
|
34
|
+
//# sourceMappingURL=ButtonTertiary.types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonTertiary.types.d.mts","sourceRoot":"","sources":["../../../src/components/button-tertiary/ButtonTertiary.types.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,iCAAuB;AAEtD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACpC,eAAe,EACf,WAAW,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,CACnD,GAAG;IACF;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonTertiary.types.mjs","sourceRoot":"","sources":["../../../src/components/button-tertiary/ButtonTertiary.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonBaseProps } from '../button-base';\n\nexport type ButtonTertiaryProps = Omit<\n ButtonBaseProps,\n 'className' | 'isDisabled' | 'isLoading' | 'style'\n> & {\n /**\n * Optional prop for additional CSS classes to be applied to the ButtonTertiary component\n */\n className?: string;\n /**\n * Optional prop that when true, applies error/danger styling to the button\n * @default false\n */\n isDanger?: boolean;\n /**\n * Optional prop that when true, applies inverse styling to the button\n * @default false\n */\n isInverse?: boolean;\n /**\n * Optional prop that when true, disables the button\n * @default false\n */\n isDisabled?: boolean;\n /**\n * Optional prop that when true, shows a loading spinner\n * @default false\n */\n isLoading?: boolean;\n /**\n * Optional CSS styles to be applied to the component.\n * Should be used sparingly and only for dynamic styles that can't be achieved with className.\n */\n style?: React.CSSProperties;\n};\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ButtonTertiarySize = exports.ButtonTertiary = void 0;
|
|
4
|
+
var ButtonTertiary_1 = require("./ButtonTertiary.cjs");
|
|
5
|
+
Object.defineProperty(exports, "ButtonTertiary", { enumerable: true, get: function () { return ButtonTertiary_1.ButtonTertiary; } });
|
|
6
|
+
var button_base_1 = require("../button-base/index.cjs");
|
|
7
|
+
Object.defineProperty(exports, "ButtonTertiarySize", { enumerable: true, get: function () { return button_base_1.ButtonBaseSize; } });
|
|
8
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/button-tertiary/index.ts"],"names":[],"mappings":";;;AAAA,uDAAkD;AAAzC,gHAAA,cAAc,OAAA;AAEvB,wDAAsE;AAA7D,iHAAA,cAAc,OAAsB","sourcesContent":["export { ButtonTertiary } from './ButtonTertiary';\nexport type { ButtonTertiaryProps } from './ButtonTertiary.types';\nexport { ButtonBaseSize as ButtonTertiarySize } from '../button-base';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/button-tertiary/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,6BAAyB;AAClD,YAAY,EAAE,mBAAmB,EAAE,mCAA+B;AAClE,OAAO,EAAE,cAAc,IAAI,kBAAkB,EAAE,iCAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/button-tertiary/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,6BAAyB;AAClD,YAAY,EAAE,mBAAmB,EAAE,mCAA+B;AAClE,OAAO,EAAE,cAAc,IAAI,kBAAkB,EAAE,iCAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/button-tertiary/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,6BAAyB;AAElD,OAAO,EAAE,cAAc,IAAI,kBAAkB,EAAE,iCAAuB","sourcesContent":["export { ButtonTertiary } from './ButtonTertiary';\nexport type { ButtonTertiaryProps } from './ButtonTertiary.types';\nexport { ButtonBaseSize as ButtonTertiarySize } from '../button-base';\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.BadgeStatusSize = exports.BadgeStatusStatus = exports.BadgeStatus = exports.BadgeIcon = exports.BadgeCountSize = exports.BadgeCount = exports.Blockies = exports.AvatarAccountVariant = exports.AvatarAccountSize = exports.AvatarAccount = exports.Jazzicon = exports.AvatarIconSeverity = exports.AvatarIconSize = exports.AvatarIcon = exports.AvatarFaviconSize = exports.AvatarFavicon = exports.AvatarTokenSize = exports.AvatarToken = exports.AvatarNetworkSize = exports.AvatarNetwork = exports.AvatarBaseShape = exports.AvatarBaseSize = exports.AvatarBase = exports.ButtonIconSize = exports.ButtonIcon = exports.TextButton = exports.ButtonVariant = exports.ButtonSize = exports.Button = exports.ButtonTertiarySize = exports.ButtonTertiary = exports.ButtonSecondarySize = exports.ButtonSecondary = exports.ButtonPrimarySize = exports.ButtonPrimary = exports.ButtonBaseSize = exports.ButtonBase = exports.IconColor = exports.IconSize = exports.IconName = exports.Icon = exports.OverflowWrap = exports.TextTransform = exports.FontStyle = exports.FontWeight = exports.TextAlign = exports.TextColor = exports.TextVariant = exports.Text = void 0;
|
|
4
4
|
var text_1 = require("./text/index.cjs");
|
|
5
5
|
Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return text_1.Text; } });
|
|
6
6
|
var text_2 = require("./text/index.cjs");
|
|
@@ -23,14 +23,56 @@ var button_base_2 = require("./button-base/index.cjs");
|
|
|
23
23
|
Object.defineProperty(exports, "ButtonBaseSize", { enumerable: true, get: function () { return button_base_2.ButtonBaseSize; } });
|
|
24
24
|
var button_primary_1 = require("./button-primary/index.cjs");
|
|
25
25
|
Object.defineProperty(exports, "ButtonPrimary", { enumerable: true, get: function () { return button_primary_1.ButtonPrimary; } });
|
|
26
|
-
|
|
27
|
-
Object.defineProperty(exports, "ButtonPrimarySize", { enumerable: true, get: function () { return button_primary_2.ButtonPrimarySize; } });
|
|
26
|
+
Object.defineProperty(exports, "ButtonPrimarySize", { enumerable: true, get: function () { return button_primary_1.ButtonPrimarySize; } });
|
|
28
27
|
var button_secondary_1 = require("./button-secondary/index.cjs");
|
|
29
28
|
Object.defineProperty(exports, "ButtonSecondary", { enumerable: true, get: function () { return button_secondary_1.ButtonSecondary; } });
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
Object.defineProperty(exports, "
|
|
34
|
-
var
|
|
35
|
-
Object.defineProperty(exports, "
|
|
29
|
+
Object.defineProperty(exports, "ButtonSecondarySize", { enumerable: true, get: function () { return button_secondary_1.ButtonSecondarySize; } });
|
|
30
|
+
var button_tertiary_1 = require("./button-tertiary/index.cjs");
|
|
31
|
+
Object.defineProperty(exports, "ButtonTertiary", { enumerable: true, get: function () { return button_tertiary_1.ButtonTertiary; } });
|
|
32
|
+
Object.defineProperty(exports, "ButtonTertiarySize", { enumerable: true, get: function () { return button_tertiary_1.ButtonTertiarySize; } });
|
|
33
|
+
var button_1 = require("./button/index.cjs");
|
|
34
|
+
Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return button_1.Button; } });
|
|
35
|
+
Object.defineProperty(exports, "ButtonSize", { enumerable: true, get: function () { return button_1.ButtonSize; } });
|
|
36
|
+
Object.defineProperty(exports, "ButtonVariant", { enumerable: true, get: function () { return button_1.ButtonVariant; } });
|
|
37
|
+
var text_button_1 = require("./text-button/index.cjs");
|
|
38
|
+
Object.defineProperty(exports, "TextButton", { enumerable: true, get: function () { return text_button_1.TextButton; } });
|
|
39
|
+
var button_icon_1 = require("./button-icon/index.cjs");
|
|
40
|
+
Object.defineProperty(exports, "ButtonIcon", { enumerable: true, get: function () { return button_icon_1.ButtonIcon; } });
|
|
41
|
+
Object.defineProperty(exports, "ButtonIconSize", { enumerable: true, get: function () { return button_icon_1.ButtonIconSize; } });
|
|
42
|
+
var avatar_base_1 = require("./avatar-base/index.cjs");
|
|
43
|
+
Object.defineProperty(exports, "AvatarBase", { enumerable: true, get: function () { return avatar_base_1.AvatarBase; } });
|
|
44
|
+
Object.defineProperty(exports, "AvatarBaseSize", { enumerable: true, get: function () { return avatar_base_1.AvatarBaseSize; } });
|
|
45
|
+
Object.defineProperty(exports, "AvatarBaseShape", { enumerable: true, get: function () { return avatar_base_1.AvatarBaseShape; } });
|
|
46
|
+
var avatar_network_1 = require("./avatar-network/index.cjs");
|
|
47
|
+
Object.defineProperty(exports, "AvatarNetwork", { enumerable: true, get: function () { return avatar_network_1.AvatarNetwork; } });
|
|
48
|
+
Object.defineProperty(exports, "AvatarNetworkSize", { enumerable: true, get: function () { return avatar_network_1.AvatarNetworkSize; } });
|
|
49
|
+
var avatar_token_1 = require("./avatar-token/index.cjs");
|
|
50
|
+
Object.defineProperty(exports, "AvatarToken", { enumerable: true, get: function () { return avatar_token_1.AvatarToken; } });
|
|
51
|
+
Object.defineProperty(exports, "AvatarTokenSize", { enumerable: true, get: function () { return avatar_token_1.AvatarTokenSize; } });
|
|
52
|
+
var avatar_favicon_1 = require("./avatar-favicon/index.cjs");
|
|
53
|
+
Object.defineProperty(exports, "AvatarFavicon", { enumerable: true, get: function () { return avatar_favicon_1.AvatarFavicon; } });
|
|
54
|
+
Object.defineProperty(exports, "AvatarFaviconSize", { enumerable: true, get: function () { return avatar_favicon_1.AvatarFaviconSize; } });
|
|
55
|
+
var avatar_icon_1 = require("./avatar-icon/index.cjs");
|
|
56
|
+
Object.defineProperty(exports, "AvatarIcon", { enumerable: true, get: function () { return avatar_icon_1.AvatarIcon; } });
|
|
57
|
+
Object.defineProperty(exports, "AvatarIconSize", { enumerable: true, get: function () { return avatar_icon_1.AvatarIconSize; } });
|
|
58
|
+
Object.defineProperty(exports, "AvatarIconSeverity", { enumerable: true, get: function () { return avatar_icon_1.AvatarIconSeverity; } });
|
|
59
|
+
var jazzicon_1 = require("./jazzicon/index.cjs");
|
|
60
|
+
Object.defineProperty(exports, "Jazzicon", { enumerable: true, get: function () { return jazzicon_1.Jazzicon; } });
|
|
61
|
+
var avatar_account_1 = require("./avatar-account/index.cjs");
|
|
62
|
+
Object.defineProperty(exports, "AvatarAccount", { enumerable: true, get: function () { return avatar_account_1.AvatarAccount; } });
|
|
63
|
+
Object.defineProperty(exports, "AvatarAccountSize", { enumerable: true, get: function () { return avatar_account_1.AvatarAccountSize; } });
|
|
64
|
+
Object.defineProperty(exports, "AvatarAccountVariant", { enumerable: true, get: function () { return avatar_account_1.AvatarAccountVariant; } });
|
|
65
|
+
var blockies_1 = require("./blockies/index.cjs");
|
|
66
|
+
Object.defineProperty(exports, "Blockies", { enumerable: true, get: function () { return blockies_1.Blockies; } });
|
|
67
|
+
var badge_count_1 = require("./badge-count/index.cjs");
|
|
68
|
+
Object.defineProperty(exports, "BadgeCount", { enumerable: true, get: function () { return badge_count_1.BadgeCount; } });
|
|
69
|
+
var badge_count_2 = require("./badge-count/index.cjs");
|
|
70
|
+
Object.defineProperty(exports, "BadgeCountSize", { enumerable: true, get: function () { return badge_count_2.BadgeCountSize; } });
|
|
71
|
+
var badge_icon_1 = require("./badge-icon/index.cjs");
|
|
72
|
+
Object.defineProperty(exports, "BadgeIcon", { enumerable: true, get: function () { return badge_icon_1.BadgeIcon; } });
|
|
73
|
+
var badge_status_1 = require("./badge-status/index.cjs");
|
|
74
|
+
Object.defineProperty(exports, "BadgeStatus", { enumerable: true, get: function () { return badge_status_1.BadgeStatus; } });
|
|
75
|
+
var badge_status_2 = require("./badge-status/index.cjs");
|
|
76
|
+
Object.defineProperty(exports, "BadgeStatusStatus", { enumerable: true, get: function () { return badge_status_2.BadgeStatusStatus; } });
|
|
77
|
+
Object.defineProperty(exports, "BadgeStatusSize", { enumerable: true, get: function () { return badge_status_2.BadgeStatusSize; } });
|
|
36
78
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":";;;AAAA,yCAA8B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AAA,aAAa,OAAA;AAG1C,uDAA2C;AAAlC,yGAAA,UAAU,OAAA;AAGnB,uDAA2D;AAAlD,yGAAA,UAAU,OAAA;AAAE,6GAAA,cAAc,OAAA;AAGnC,uDAA4E;AAAnE,yGAAA,UAAU,OAAA;AAAE,6GAAA,cAAc,OAAA;AAAE,8GAAA,eAAe,OAAA;AAGpD,6DAAoE;AAA3D,+GAAA,aAAa,OAAA;AAAE,mHAAA,iBAAiB,OAAA;AAGzC,yDAA8D;AAArD,2GAAA,WAAW,OAAA;AAAE,+GAAA,eAAe,OAAA;AAGrC,6DAAoE;AAA3D,+GAAA,aAAa,OAAA;AAAE,mHAAA,iBAAiB,OAAA;AAGzC,uDAA+E;AAAtE,yGAAA,UAAU,OAAA;AAAE,6GAAA,cAAc,OAAA;AAAE,iHAAA,kBAAkB,OAAA;AAGvD,iDAAsC;AAA7B,oGAAA,QAAQ,OAAA;AAGjB,6DAI0B;AAHxB,+GAAA,aAAa,OAAA;AACb,mHAAA,iBAAiB,OAAA;AACjB,sHAAA,oBAAoB,OAAA;AAItB,iDAAsC;AAA7B,oGAAA,QAAQ,OAAA;AAGjB,uDAA2C;AAAlC,yGAAA,UAAU,OAAA;AAEnB,uDAA+C;AAAtC,6GAAA,cAAc,OAAA;AAEvB,qDAAyC;AAAhC,uGAAA,SAAS,OAAA;AAGlB,yDAA6C;AAApC,2GAAA,WAAW,OAAA;AAEpB,yDAAoE;AAA3D,iHAAA,iBAAiB,OAAA;AAAE,+GAAA,eAAe,OAAA","sourcesContent":["export { Text } from './text';\nexport {\n TextVariant,\n TextColor,\n TextAlign,\n FontWeight,\n FontStyle,\n TextTransform,\n OverflowWrap,\n} from './text';\nexport type { TextProps } from './text';\n\nexport { Icon } from './icon';\nexport { IconName, IconSize, IconColor } from './icon';\nexport type { IconProps } from './icon';\n\nexport { ButtonBase } from './button-base';\nexport type { ButtonBaseProps } from './button-base';\nexport { ButtonBaseSize } from './button-base';\n\nexport { ButtonPrimary, ButtonPrimarySize } from './button-primary';\nexport type { ButtonPrimaryProps } from './button-primary';\n\nexport { ButtonSecondary, ButtonSecondarySize } from './button-secondary';\nexport type { ButtonSecondaryProps } from './button-secondary';\n\nexport { ButtonTertiary, ButtonTertiarySize } from './button-tertiary';\nexport type { ButtonTertiaryProps } from './button-tertiary';\n\nexport { Button, ButtonSize, ButtonVariant } from './button';\nexport type { ButtonProps } from './button';\n\nexport { TextButton } from './text-button';\nexport type { TextButtonProps } from './text-button';\n\nexport { ButtonIcon, ButtonIconSize } from './button-icon';\nexport type { ButtonIconProps } from './button-icon';\n\nexport { AvatarBase, AvatarBaseSize, AvatarBaseShape } from './avatar-base';\nexport type { AvatarBaseProps } from './avatar-base';\n\nexport { AvatarNetwork, AvatarNetworkSize } from './avatar-network';\nexport type { AvatarNetworkProps } from './avatar-network';\n\nexport { AvatarToken, AvatarTokenSize } from './avatar-token';\nexport type { AvatarTokenProps } from './avatar-token';\n\nexport { AvatarFavicon, AvatarFaviconSize } from './avatar-favicon';\nexport type { AvatarFaviconProps } from './avatar-favicon';\n\nexport { AvatarIcon, AvatarIconSize, AvatarIconSeverity } from './avatar-icon';\nexport type { AvatarIconProps } from './avatar-icon';\n\nexport { Jazzicon } from './jazzicon';\nexport type { JazziconProps } from './jazzicon';\n\nexport {\n AvatarAccount,\n AvatarAccountSize,\n AvatarAccountVariant,\n} from './avatar-account';\nexport type { AvatarAccountProps } from './avatar-account';\n\nexport { Blockies } from './blockies';\nexport type { BlockiesProps } from './blockies';\n\nexport { BadgeCount } from './badge-count';\nexport type { BadgeCountProps } from './badge-count';\nexport { BadgeCountSize } from './badge-count';\n\nexport { BadgeIcon } from './badge-icon';\nexport type { BadgeIconProps } from './badge-icon';\n\nexport { BadgeStatus } from './badge-status';\nexport type { BadgeStatusProps } from './badge-status';\nexport { BadgeStatusStatus, BadgeStatusSize } from './badge-status';\n"]}
|
|
@@ -7,13 +7,40 @@ export type { IconProps } from "./icon/index.cjs";
|
|
|
7
7
|
export { ButtonBase } from "./button-base/index.cjs";
|
|
8
8
|
export type { ButtonBaseProps } from "./button-base/index.cjs";
|
|
9
9
|
export { ButtonBaseSize } from "./button-base/index.cjs";
|
|
10
|
-
export { ButtonPrimary } from "./button-primary/index.cjs";
|
|
10
|
+
export { ButtonPrimary, ButtonPrimarySize } from "./button-primary/index.cjs";
|
|
11
11
|
export type { ButtonPrimaryProps } from "./button-primary/index.cjs";
|
|
12
|
-
export {
|
|
13
|
-
export { ButtonSecondary } from "./button-secondary/index.cjs";
|
|
12
|
+
export { ButtonSecondary, ButtonSecondarySize } from "./button-secondary/index.cjs";
|
|
14
13
|
export type { ButtonSecondaryProps } from "./button-secondary/index.cjs";
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export
|
|
18
|
-
export {
|
|
14
|
+
export { ButtonTertiary, ButtonTertiarySize } from "./button-tertiary/index.cjs";
|
|
15
|
+
export type { ButtonTertiaryProps } from "./button-tertiary/index.cjs";
|
|
16
|
+
export { Button, ButtonSize, ButtonVariant } from "./button/index.cjs";
|
|
17
|
+
export type { ButtonProps } from "./button/index.cjs";
|
|
18
|
+
export { TextButton } from "./text-button/index.cjs";
|
|
19
|
+
export type { TextButtonProps } from "./text-button/index.cjs";
|
|
20
|
+
export { ButtonIcon, ButtonIconSize } from "./button-icon/index.cjs";
|
|
21
|
+
export type { ButtonIconProps } from "./button-icon/index.cjs";
|
|
22
|
+
export { AvatarBase, AvatarBaseSize, AvatarBaseShape } from "./avatar-base/index.cjs";
|
|
23
|
+
export type { AvatarBaseProps } from "./avatar-base/index.cjs";
|
|
24
|
+
export { AvatarNetwork, AvatarNetworkSize } from "./avatar-network/index.cjs";
|
|
25
|
+
export type { AvatarNetworkProps } from "./avatar-network/index.cjs";
|
|
26
|
+
export { AvatarToken, AvatarTokenSize } from "./avatar-token/index.cjs";
|
|
27
|
+
export type { AvatarTokenProps } from "./avatar-token/index.cjs";
|
|
28
|
+
export { AvatarFavicon, AvatarFaviconSize } from "./avatar-favicon/index.cjs";
|
|
29
|
+
export type { AvatarFaviconProps } from "./avatar-favicon/index.cjs";
|
|
30
|
+
export { AvatarIcon, AvatarIconSize, AvatarIconSeverity } from "./avatar-icon/index.cjs";
|
|
31
|
+
export type { AvatarIconProps } from "./avatar-icon/index.cjs";
|
|
32
|
+
export { Jazzicon } from "./jazzicon/index.cjs";
|
|
33
|
+
export type { JazziconProps } from "./jazzicon/index.cjs";
|
|
34
|
+
export { AvatarAccount, AvatarAccountSize, AvatarAccountVariant, } from "./avatar-account/index.cjs";
|
|
35
|
+
export type { AvatarAccountProps } from "./avatar-account/index.cjs";
|
|
36
|
+
export { Blockies } from "./blockies/index.cjs";
|
|
37
|
+
export type { BlockiesProps } from "./blockies/index.cjs";
|
|
38
|
+
export { BadgeCount } from "./badge-count/index.cjs";
|
|
39
|
+
export type { BadgeCountProps } from "./badge-count/index.cjs";
|
|
40
|
+
export { BadgeCountSize } from "./badge-count/index.cjs";
|
|
41
|
+
export { BadgeIcon } from "./badge-icon/index.cjs";
|
|
42
|
+
export type { BadgeIconProps } from "./badge-icon/index.cjs";
|
|
43
|
+
export { BadgeStatus } from "./badge-status/index.cjs";
|
|
44
|
+
export type { BadgeStatusProps } from "./badge-status/index.cjs";
|
|
45
|
+
export { BadgeStatusStatus, BadgeStatusSize } from "./badge-status/index.cjs";
|
|
19
46
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,yBAAe;AAC9B,OAAO,EACL,WAAW,EACX,SAAS,EACT,SAAS,EACT,UAAU,EACV,SAAS,EACT,aAAa,EACb,YAAY,GACb,yBAAe;AAChB,YAAY,EAAE,SAAS,EAAE,yBAAe;AAExC,OAAO,EAAE,IAAI,EAAE,yBAAe;AAC9B,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,yBAAe;AACvD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ps } from "./button-base/index.mjs";
|
|
9
9
|
export { ButtonBaseSize } from "./button-base/index.mjs";
|
|
10
|
-
export { ButtonPrimary } from "./button-primary/index.mjs";
|
|
10
|
+
export { ButtonPrimary, ButtonPrimarySize } from "./button-primary/index.mjs";
|
|
11
11
|
export type { ButtonPrimaryProps } from "./button-primary/index.mjs";
|
|
12
|
-
export {
|
|
13
|
-
export { ButtonSecondary } from "./button-secondary/index.mjs";
|
|
12
|
+
export { ButtonSecondary, ButtonSecondarySize } from "./button-secondary/index.mjs";
|
|
14
13
|
export type { ButtonSecondaryProps } from "./button-secondary/index.mjs";
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export
|
|
18
|
-
export {
|
|
14
|
+
export { ButtonTertiary, ButtonTertiarySize } from "./button-tertiary/index.mjs";
|
|
15
|
+
export type { ButtonTertiaryProps } from "./button-tertiary/index.mjs";
|
|
16
|
+
export { Button, ButtonSize, ButtonVariant } from "./button/index.mjs";
|
|
17
|
+
export type { ButtonProps } from "./button/index.mjs";
|
|
18
|
+
export { TextButton } from "./text-button/index.mjs";
|
|
19
|
+
export type { TextButtonProps } from "./text-button/index.mjs";
|
|
20
|
+
export { ButtonIcon, ButtonIconSize } from "./button-icon/index.mjs";
|
|
21
|
+
export type { ButtonIconProps } from "./button-icon/index.mjs";
|
|
22
|
+
export { AvatarBase, AvatarBaseSize, AvatarBaseShape } from "./avatar-base/index.mjs";
|
|
23
|
+
export type { AvatarBaseProps } from "./avatar-base/index.mjs";
|
|
24
|
+
export { AvatarNetwork, AvatarNetworkSize } from "./avatar-network/index.mjs";
|
|
25
|
+
export type { AvatarNetworkProps } from "./avatar-network/index.mjs";
|
|
26
|
+
export { AvatarToken, AvatarTokenSize } from "./avatar-token/index.mjs";
|
|
27
|
+
export type { AvatarTokenProps } from "./avatar-token/index.mjs";
|
|
28
|
+
export { AvatarFavicon, AvatarFaviconSize } from "./avatar-favicon/index.mjs";
|
|
29
|
+
export type { AvatarFaviconProps } from "./avatar-favicon/index.mjs";
|
|
30
|
+
export { AvatarIcon, AvatarIconSize, AvatarIconSeverity } from "./avatar-icon/index.mjs";
|
|
31
|
+
export type { AvatarIconProps } from "./avatar-icon/index.mjs";
|
|
32
|
+
export { Jazzicon } from "./jazzicon/index.mjs";
|
|
33
|
+
export type { JazziconProps } from "./jazzicon/index.mjs";
|
|
34
|
+
export { AvatarAccount, AvatarAccountSize, AvatarAccountVariant, } from "./avatar-account/index.mjs";
|
|
35
|
+
export type { AvatarAccountProps } from "./avatar-account/index.mjs";
|
|
36
|
+
export { Blockies } from "./blockies/index.mjs";
|
|
37
|
+
export type { BlockiesProps } from "./blockies/index.mjs";
|
|
38
|
+
export { BadgeCount } from "./badge-count/index.mjs";
|
|
39
|
+
export type { BadgeCountProps } from "./badge-count/index.mjs";
|
|
40
|
+
export { BadgeCountSize } from "./badge-count/index.mjs";
|
|
41
|
+
export { BadgeIcon } from "./badge-icon/index.mjs";
|
|
42
|
+
export type { BadgeIconProps } from "./badge-icon/index.mjs";
|
|
43
|
+
export { BadgeStatus } from "./badge-status/index.mjs";
|
|
44
|
+
export type { BadgeStatusProps } from "./badge-status/index.mjs";
|
|
45
|
+
export { BadgeStatusStatus, BadgeStatusSize } from "./badge-status/index.mjs";
|
|
19
46
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,yBAAe;AAC9B,OAAO,EACL,WAAW,EACX,SAAS,EACT,SAAS,EACT,UAAU,EACV,SAAS,EACT,aAAa,EACb,YAAY,GACb,yBAAe;AAChB,YAAY,EAAE,SAAS,EAAE,yBAAe;AAExC,OAAO,EAAE,IAAI,EAAE,yBAAe;AAC9B,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,yBAAe;AACvD,YAAY,EAAE,SAAS,EAAE,yBAAe;AAExC,OAA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,UAAU,EAAE,cAAc,EAAE,eAAe,EAAE,gCAAsB;AAC5E,YAAY,EAAE,eAAe,EAAE,gCAAsB;AAErD,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,mCAAyB;AACpE,YAAY,EAAE,kBAAkB,EAAE,mCAAyB;AAE3D,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,iCAAuB;AAC9D,YAAY,EAAE,gBAAgB,EAAE,iCAAuB;AAEvD,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,mCAAyB;AACpE,YAAY,EAAE,kBAAkB,EAAE,mCAAyB;AAE3D,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,kBAAkB,EAAE,gCAAsB;AAC/E,YAAY,EAAE,eAAe,EAAE,gCAAsB;AAErD,OAAO,EAAE,QAAQ,EAAE,6BAAmB;AACtC,YAAY,EAAE,aAAa,EAAE,6BAAmB;AAEhD,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,oBAAoB,GACrB,mCAAyB;AAC1B,YAAY,EAAE,kBAAkB,EAAE,mCAAyB;AAE3D,OAAO,EAAE,QAAQ,EAAE,6BAAmB;AACtC,YAAY,EAAE,aAAa,EAAE,6BAAmB;AAEhD,OAAO,EAAE,UAAU,EAAE,gCAAsB;AAC3C,YAAY,EAAE,eAAe,EAAE,gCAAsB;AACrD,OAAO,EAAE,cAAc,EAAE,gCAAsB;AAE/C,OAAO,EAAE,SAAS,EAAE,+BAAqB;AACzC,YAAY,EAAE,cAAc,EAAE,+BAAqB;AAEnD,OAAO,EAAE,WAAW,EAAE,iCAAuB;AAC7C,YAAY,EAAE,gBAAgB,EAAE,iCAAuB;AACvD,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,iCAAuB"}
|
|
@@ -4,10 +4,23 @@ export { Icon } from "./icon/index.mjs";
|
|
|
4
4
|
export { IconName, IconSize, IconColor } from "./icon/index.mjs";
|
|
5
5
|
export { ButtonBase } from "./button-base/index.mjs";
|
|
6
6
|
export { ButtonBaseSize } from "./button-base/index.mjs";
|
|
7
|
-
export { ButtonPrimary } from "./button-primary/index.mjs";
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
7
|
+
export { ButtonPrimary, ButtonPrimarySize } from "./button-primary/index.mjs";
|
|
8
|
+
export { ButtonSecondary, ButtonSecondarySize } from "./button-secondary/index.mjs";
|
|
9
|
+
export { ButtonTertiary, ButtonTertiarySize } from "./button-tertiary/index.mjs";
|
|
10
|
+
export { Button, ButtonSize, ButtonVariant } from "./button/index.mjs";
|
|
11
|
+
export { TextButton } from "./text-button/index.mjs";
|
|
12
|
+
export { ButtonIcon, ButtonIconSize } from "./button-icon/index.mjs";
|
|
13
|
+
export { AvatarBase, AvatarBaseSize, AvatarBaseShape } from "./avatar-base/index.mjs";
|
|
14
|
+
export { AvatarNetwork, AvatarNetworkSize } from "./avatar-network/index.mjs";
|
|
15
|
+
export { AvatarToken, AvatarTokenSize } from "./avatar-token/index.mjs";
|
|
16
|
+
export { AvatarFavicon, AvatarFaviconSize } from "./avatar-favicon/index.mjs";
|
|
17
|
+
export { AvatarIcon, AvatarIconSize, AvatarIconSeverity } from "./avatar-icon/index.mjs";
|
|
18
|
+
export { Jazzicon } from "./jazzicon/index.mjs";
|
|
19
|
+
export { AvatarAccount, AvatarAccountSize, AvatarAccountVariant } from "./avatar-account/index.mjs";
|
|
20
|
+
export { Blockies } from "./blockies/index.mjs";
|
|
21
|
+
export { BadgeCount } from "./badge-count/index.mjs";
|
|
22
|
+
export { BadgeCountSize } from "./badge-count/index.mjs";
|
|
23
|
+
export { BadgeIcon } from "./badge-icon/index.mjs";
|
|
24
|
+
export { BadgeStatus } from "./badge-status/index.mjs";
|
|
25
|
+
export { BadgeStatusStatus, BadgeStatusSize } from "./badge-status/index.mjs";
|
|
13
26
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,yBAAe;AAC9B,OAAO,EACL,WAAW,EACX,SAAS,EACT,SAAS,EACT,UAAU,EACV,SAAS,EACT,aAAa,EACb,YAAY,EACb,yBAAe;AAGhB,OAAO,EAAE,IAAI,EAAE,yBAAe;AAC9B,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,yBAAe;AAGvD,OAAO,EAAE,UAAU,EAAE,gCAAsB;AAE3C,OAAO,EAAE,cAAc,EAAE,gCAAsB;AAE/C,OAAO,EAAE,aAAa,EAAE,mCAAyB;
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,yBAAe;AAC9B,OAAO,EACL,WAAW,EACX,SAAS,EACT,SAAS,EACT,UAAU,EACV,SAAS,EACT,aAAa,EACb,YAAY,EACb,yBAAe;AAGhB,OAAO,EAAE,IAAI,EAAE,yBAAe;AAC9B,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,yBAAe;AAGvD,OAAO,EAAE,UAAU,EAAE,gCAAsB;AAE3C,OAAO,EAAE,cAAc,EAAE,gCAAsB;AAE/C,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,mCAAyB;AAGpE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,qCAA2B;AAG1E,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,oCAA0B;AAGvE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,2BAAiB;AAG7D,OAAO,EAAE,UAAU,EAAE,gCAAsB;AAG3C,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,gCAAsB;AAG3D,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,eAAe,EAAE,gCAAsB;AAG5E,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,mCAAyB;AAGpE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,iCAAuB;AAG9D,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,mCAAyB;AAGpE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,kBAAkB,EAAE,gCAAsB;AAG/E,OAAO,EAAE,QAAQ,EAAE,6BAAmB;AAGtC,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACrB,mCAAyB;AAG1B,OAAO,EAAE,QAAQ,EAAE,6BAAmB;AAGtC,OAAO,EAAE,UAAU,EAAE,gCAAsB;AAE3C,OAAO,EAAE,cAAc,EAAE,gCAAsB;AAE/C,OAAO,EAAE,SAAS,EAAE,+BAAqB;AAGzC,OAAO,EAAE,WAAW,EAAE,iCAAuB;AAE7C,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,iCAAuB","sourcesContent":["export { Text } from './text';\nexport {\n TextVariant,\n TextColor,\n TextAlign,\n FontWeight,\n FontStyle,\n TextTransform,\n OverflowWrap,\n} from './text';\nexport type { TextProps } from './text';\n\nexport { Icon } from './icon';\nexport { IconName, IconSize, IconColor } from './icon';\nexport type { IconProps } from './icon';\n\nexport { ButtonBase } from './button-base';\nexport type { ButtonBaseProps } from './button-base';\nexport { ButtonBaseSize } from './button-base';\n\nexport { ButtonPrimary, ButtonPrimarySize } from './button-primary';\nexport type { ButtonPrimaryProps } from './button-primary';\n\nexport { ButtonSecondary, ButtonSecondarySize } from './button-secondary';\nexport type { ButtonSecondaryProps } from './button-secondary';\n\nexport { ButtonTertiary, ButtonTertiarySize } from './button-tertiary';\nexport type { ButtonTertiaryProps } from './button-tertiary';\n\nexport { Button, ButtonSize, ButtonVariant } from './button';\nexport type { ButtonProps } from './button';\n\nexport { TextButton } from './text-button';\nexport type { TextButtonProps } from './text-button';\n\nexport { ButtonIcon, ButtonIconSize } from './button-icon';\nexport type { ButtonIconProps } from './button-icon';\n\nexport { AvatarBase, AvatarBaseSize, AvatarBaseShape } from './avatar-base';\nexport type { AvatarBaseProps } from './avatar-base';\n\nexport { AvatarNetwork, AvatarNetworkSize } from './avatar-network';\nexport type { AvatarNetworkProps } from './avatar-network';\n\nexport { AvatarToken, AvatarTokenSize } from './avatar-token';\nexport type { AvatarTokenProps } from './avatar-token';\n\nexport { AvatarFavicon, AvatarFaviconSize } from './avatar-favicon';\nexport type { AvatarFaviconProps } from './avatar-favicon';\n\nexport { AvatarIcon, AvatarIconSize, AvatarIconSeverity } from './avatar-icon';\nexport type { AvatarIconProps } from './avatar-icon';\n\nexport { Jazzicon } from './jazzicon';\nexport type { JazziconProps } from './jazzicon';\n\nexport {\n AvatarAccount,\n AvatarAccountSize,\n AvatarAccountVariant,\n} from './avatar-account';\nexport type { AvatarAccountProps } from './avatar-account';\n\nexport { Blockies } from './blockies';\nexport type { BlockiesProps } from './blockies';\n\nexport { BadgeCount } from './badge-count';\nexport type { BadgeCountProps } from './badge-count';\nexport { BadgeCountSize } from './badge-count';\n\nexport { BadgeIcon } from './badge-icon';\nexport type { BadgeIconProps } from './badge-icon';\n\nexport { BadgeStatus } from './badge-status';\nexport type { BadgeStatusProps } from './badge-status';\nexport { BadgeStatusStatus, BadgeStatusSize } from './badge-status';\n"]}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Jazzicon = void 0;
|
|
30
|
+
const react_1 = __importStar(require("react"));
|
|
31
|
+
const jazzicon_1 = __importDefault(require("@metamask/jazzicon"));
|
|
32
|
+
const utils_1 = require("@metamask/utils");
|
|
33
|
+
const Jazzicon_types_1 = require("./Jazzicon.types.cjs");
|
|
34
|
+
const Jazzicon_utilities_1 = require("./Jazzicon.utilities.cjs");
|
|
35
|
+
/**
|
|
36
|
+
* Cache for storing generated SVG elements by `address:diameter` so
|
|
37
|
+
* we don't regenerate them repeatedly.
|
|
38
|
+
*/
|
|
39
|
+
const iconCache = {};
|
|
40
|
+
const Jazzicon = ({ address, size = 32, ...props }) => {
|
|
41
|
+
const containerRef = (0, react_1.useRef)(null);
|
|
42
|
+
(0, react_1.useEffect)(() => {
|
|
43
|
+
let isCancelled = false;
|
|
44
|
+
(async () => {
|
|
45
|
+
if (!containerRef.current) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
// Clear any existing content
|
|
49
|
+
while (containerRef.current.firstChild) {
|
|
50
|
+
containerRef.current.removeChild(containerRef.current.firstChild);
|
|
51
|
+
}
|
|
52
|
+
// Check the cache
|
|
53
|
+
const cacheKey = `${address.toLowerCase()}:${size}`;
|
|
54
|
+
if (iconCache[cacheKey]) {
|
|
55
|
+
// If cached, just append a clone
|
|
56
|
+
if (!isCancelled) {
|
|
57
|
+
const clone = iconCache[cacheKey].cloneNode(true);
|
|
58
|
+
containerRef.current.appendChild(clone);
|
|
59
|
+
}
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
// Determine the CAIP namespace
|
|
63
|
+
const namespace = await (0, Jazzicon_utilities_1.getCaipNamespaceFromAddress)(address);
|
|
64
|
+
if (isCancelled) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
// Pick seeding strategy based on namespace
|
|
68
|
+
let seed;
|
|
69
|
+
if (namespace === utils_1.KnownCaipNamespace.Eip155) {
|
|
70
|
+
seed = (0, Jazzicon_utilities_1.generateSeedEthereum)(address);
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
seed = (0, Jazzicon_utilities_1.generateSeedNonEthereum)(address);
|
|
74
|
+
}
|
|
75
|
+
// Create Jazzicon
|
|
76
|
+
const newIcon = (0, jazzicon_1.default)(size, seed);
|
|
77
|
+
// Cache it
|
|
78
|
+
iconCache[cacheKey] = newIcon;
|
|
79
|
+
// Append a fresh clone
|
|
80
|
+
if (!isCancelled && containerRef.current) {
|
|
81
|
+
containerRef.current.appendChild(newIcon.cloneNode(true));
|
|
82
|
+
}
|
|
83
|
+
})();
|
|
84
|
+
// Cleanup
|
|
85
|
+
return () => {
|
|
86
|
+
isCancelled = true;
|
|
87
|
+
if (containerRef.current) {
|
|
88
|
+
while (containerRef.current.firstChild) {
|
|
89
|
+
containerRef.current.removeChild(containerRef.current.firstChild);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
}, [address, size]);
|
|
94
|
+
return react_1.default.createElement("div", { ref: containerRef, ...props });
|
|
95
|
+
};
|
|
96
|
+
exports.Jazzicon = Jazzicon;
|
|
97
|
+
exports.Jazzicon.displayName = 'Jazzic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O,CAAC,CAAC;YAC7D,IAAI,WAAW,EAAE;gBACf,OAAO;aACR;YAED,2CAA2C;YAC3C,IAAI,IAAuB,CAAC;YAC5B,IAAI,SAAS,KAAK,0BAAkB,CAAC,MAAM,EAAE;gBAC3C,IAAI,GAAG,IAAA,yCAAoB,EAAC,OAAO,CAAC,CAAC;aACtC;iBAAM;gBACL,IAAI,GAAG,IAAA,4CAAuB,EAAC,OAAO,CAAC,CAAC;aACzC;YAED,kBAAkB;YAClB,MAAM,OAAO,GAAG,IAAA,kBAAQ,EAAC,IAAI,EAAE,IAAI,CAAmB,CAAC;YAEvD,WAAW;YACX,SAAS,CAAC,QAAQ,CAAC,GAAG,OAAyB,CAAC;YAEhD,uBAAuB;YACvB,IAAI,CAAC,WAAW,IAAI,YAAY,CAAC,OAAO,EAAE;gBACxC,YAAY,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;aAC3D;QACH,CAAC,CAAC,EAAE,CAAC;QAEL,UAAU;QACV,OAAO,GAAG,EAAE;YACV,WAAW,GAAG,IAAI,CAAC;YACnB,IAAI,YAAY,CAAC,OAAO,EAAE;gBACxB,OAAO,YAAY,CAAC,OAAO,CAAC,UAAU,EAAE;oBACtC,YAAY,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;iBACnE;aACF;QACH,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;IAEpB,OAAO,uCAAK,GAAG,EAAE,YAAY,KAAM,KAAK,GAAI,CAAC;AAC/C,CAAC,CAAC;AAhEW,QAAA,QAAQ,YAgEnB;AAEF,gBAAQ,CAAC,WAAW,GAAG,UAAU,CAAC","sourcesContent":["import React, { useEffect, useRef } from 'react';\nimport jazzicon from '@metamask/jazzicon';\nimport { KnownCaipNamespace } from '@metamask/utils';\n\nimport { JazziconProps } from './Jazzicon.types';\nimport {\n generateSeedEthereum,\n generateSeedNonEthereum,\n getCaipNamespaceFromAddress,\n} from './Jazzicon.utilities';\n\n/**\n * Cache for storing generated SVG elements by `address:diameter` so\n * we don't regenerate them repeatedly.\n */\nconst iconCache: Record<string, HTMLDivElement> = {};\n\nexport const Jazzicon = ({ address, size = 32, ...props }: JazziconProps) => {\n const containerRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n let isCancelled = false;\n\n (async () => {\n if (!containerRef.current) {\n return;\n }\n // Clear any existing content\n while (containerRef.current.firstChild) {\n containerRef.current.removeChild(containerRef.current.firstChild);\n }\n\n // Check the cache\n const cacheKey = `${address.toLowerCase()}:${size}`;\n if (iconCache[cacheKey]) {\n // If cached, just append a clone\n if (!isCancelled) {\n const clone = iconCache[cacheKey].cloneNode(true) as HTMLDivElement;\n containerRef.current.appendChild(clone);\n }\n return;\n }\n\n // Determine the CAIP namespace\n const namespace = await getCaipNamespaceFromAddress(address);\n if (isCancelled) {\n return;\n }\n\n // Pick seeding strategy based on namespace\n let seed: number | number[];\n if (namespace === KnownCaipNamespace.Eip155) {\n seed = generateSeedEthereum(address);\n } else {\n seed = generateSeedNonEthereum(address);\n }\n\n // Create Jazzicon\n const newIcon = jazzicon(size, seed) as HTMLDivElement;\n\n // Cache it\n iconCache[cacheKey] = newIcon as HTMLDivElement;\n\n // Append a fresh clone\n if (!isCancelled && containerRef.current) {\n containerRef.current.appendChild(newIcon.cloneNode(true));\n }\n })();\n\n // Cleanup\n return () => {\n isCancelled = true;\n if (containerRef.current) {\n while (containerRef.current.firstChild) {\n containerRef.current.removeChild(containerRef.current.firstChild);\n }\n }\n };\n }, [address, size]);\n\n return <div ref={containerRef} {...props} />;\n};\n\nJazzicon.displayName = 'Jazzicon';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Jazzicon.d.cts","sourceRoot":"","sources":["../../../src/components/jazzicon/Jazzicon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,cAAc;AAIjD,OAAO,EAAE,aAAa,EAAE,6BAAyB;AAajD,eAAO,MAAM,QAAQ;kCAAsC,aAAa;;CAgEvE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Jazzicon.d.mts","sourceRoot":"","sources":["../../../src/components/jazzicon/Jazzicon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,cAAc;AAIjD,OAAO,EAAE,aAAa,EAAE,6BAAyB;AAajD,eAAO,MAAM,QAAQ;kCAAsC,aAAa;;CAgEvE,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
function $importDefault(module) {
|
|
2
|
+
if (module?.__esModule) {
|
|
3
|
+
return module.default;
|
|
4
|
+
}
|
|
5
|
+
return module;
|
|
6
|
+
}
|
|
7
|
+
import $React from "react";
|
|
8
|
+
const { useEffect, useRef } = $React;
|
|
9
|
+
const React = $importDefault($React);
|
|
10
|
+
import $jazzicon from "@metamask/jazzicon";
|
|
11
|
+
const jazzicon = $importDefault($jazzicon);
|
|
12
|
+
import { KnownCaipNamespace } from "@metamask/utils";
|
|
13
|
+
import { JazziconProps } from "./Jazzicon.types.mjs";
|
|
14
|
+
import { generateSeedEthereum, generateSeedNonEthereum, getCaipNamespaceFromAddress } from "./Jazzicon.utilities.mjs";
|
|
15
|
+
/**
|
|
16
|
+
* Cache for storing generated SVG elements by `address:diameter` so
|
|
17
|
+
* we don't regenerate them repeatedly.
|
|
18
|
+
*/
|
|
19
|
+
const iconCache = {};
|
|
20
|
+
export const Jazzicon = ({ address, size = 32, ...props }) => {
|
|
21
|
+
const containerRef = useRef(null);
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
let isCancelled = false;
|
|
24
|
+
(async () => {
|
|
25
|
+
if (!containerRef.current) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
// Clear any existing content
|
|
29
|
+
while (containerRef.current.firstChild) {
|
|
30
|
+
containerRef.current.removeChild(containerRef.current.firstChild);
|
|
31
|
+
}
|
|
32
|
+
// Check the cache
|
|
33
|
+
const cacheKey = `${address.toLowerCase()}:${size}`;
|
|
34
|
+
if (iconCache[cacheKey]) {
|
|
35
|
+
// If cached, just append a clone
|
|
36
|
+
if (!isCancelled) {
|
|
37
|
+
const clone = iconCache[cacheKey].cloneNode(true);
|
|
38
|
+
containerRef.current.appendChild(clone);
|
|
39
|
+
}
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
// Determine the CAIP namespace
|
|
43
|
+
const namespace = await getCaipNamespaceFromAddress(address);
|
|
44
|
+
if (isCancelled) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
// Pick seeding strategy based on namespace
|
|
48
|
+
let seed;
|
|
49
|
+
if (namespace === KnownCaipNamespace.Eip155) {
|
|
50
|
+
seed = generateSeedEthereum(address);
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
seed = generateSeedNonEthereum(address);
|
|
54
|
+
}
|
|
55
|
+
// Create Jazzicon
|
|
56
|
+
const newIcon = jazzicon(size, seed);
|
|
57
|
+
// Cache it
|
|
58
|
+
iconCache[cacheKey] = newIcon;
|
|
59
|
+
// Append a fresh clone
|
|
60
|
+
if (!isCancelled && containerRef.current) {
|
|
61
|
+
containerRef.current.appendChild(newIcon.cloneNode(true));
|
|
62
|
+
}
|
|
63
|
+
})();
|
|
64
|
+
// Cleanup
|
|
65
|
+
return () => {
|
|
66
|
+
isCancelled = true;
|
|
67
|
+
if (containerRef.current) {
|
|
68
|
+
while (containerRef.current.firstChild) {
|
|
69
|
+
containerRef.current.removeChild(containerRef.current.firstChild);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
}, [address, size]);
|
|
74
|
+
return React.createElement("div", { ref: containerRef, ...props });
|
|
75
|
+
};
|
|
76
|
+
Jazzicon.displayName = 'Jazzicon';
|
|
77
|
+
//# sourceMappingURL=Jazzicon.mjs.map
|