@metamask-previews/design-system-react 0.0.0-preview.bf69b6b → 0.0.0-preview.e1b50dd
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/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 +40 -9
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +26 -7
- package/dist/components/index.d.cts.map +1 -1
- package/dist/components/index.d.mts +26 -7
- package/dist/components/index.d.mts.map +1 -1
- package/dist/components/index.mjs +14 -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":"AvatarBase.types.cjs","sourceRoot":"","sources":["../../../src/components/avatar-base/AvatarBase.types.ts"],"names":[],"mappings":";;;AAGA,IAAY,cAqBX;AArBD,WAAY,cAAc;IACxB;;OAEG;IACH,2BAAS,CAAA;IACT;;OAEG;IACH,2BAAS,CAAA;IACT;;OAEG;IACH,2BAAS,CAAA;IACT;;OAEG;IACH,2BAAS,CAAA;IACT;;OAEG;IACH,2BAAS,CAAA;AACX,CAAC,EArBW,cAAc,8BAAd,cAAc,QAqBzB;AAED,IAAY,eASX;AATD,WAAY,eAAe;IACzB;;OAEG;IACH,oCAAiB,CAAA;IACjB;;OAEG;IACH,oCAAiB,CAAA;AACnB,CAAC,EATW,eAAe,+BAAf,eAAe,QAS1B","sourcesContent":["import type { ComponentProps } from 'react';\nimport type { TextProps } from '../text';\n\nexport enum AvatarBaseSize {\n /**\n * Extra small size (16px)\n */\n Xs = 'xs',\n /**\n * Small size (24px)\n */\n Sm = 'sm',\n /**\n * Medium size (32px)\n */\n Md = 'md',\n /**\n * Large size (40px)\n */\n Lg = 'lg',\n /**\n * Extra large size (48px)\n */\n Xl = 'xl',\n}\n\nexport enum AvatarBaseShape {\n /**\n * Circular shape with fully rounded corners\n */\n Circle = 'circle',\n /**\n * Square shape with slight rounded corners\n */\n Square = 'square',\n}\n\nexport type AvatarBaseProps = ComponentProps<'div'> & {\n /**\n * Required prop for the content to be rendered within the AvatarBase\n * Not required if fallbackText is provided\n */\n children?: React.ReactNode;\n /**\n * Optional text to display when no children are provided\n */\n fallbackText?: string;\n /**\n * Optional props to be passed to the Text component when rendering fallback text\n * Only used when fallbackText is provided and no children\n */\n fallbackTextProps?: Partial<\n React.HTMLAttributes<HTMLSpanElement> & TextProps\n >;\n /**\n * Optional prop for additional CSS classes to be applied to the AvatarBase component.\n * These classes will be merged with the component's default classes using twMerge.\n */\n className?: string;\n /**\n * Optional prop to control the size of the AvatarBase\n * @default AvatarBaseSize.Md\n */\n size?: AvatarBaseSize;\n /**\n * Optional boolean that determines if the component should merge its props onto its immediate child\n * instead of rendering a div element\n * @default false\n */\n asChild?: 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 * Optional prop to control the shape of the AvatarBase\n * @default AvatarBaseShape.Circle\n */\n shape?: AvatarBaseShape;\n};\n"]}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
import type { TextProps } from "../text/index.cjs";
|
|
3
|
+
export declare enum AvatarBaseSize {
|
|
4
|
+
/**
|
|
5
|
+
* Extra small size (16px)
|
|
6
|
+
*/
|
|
7
|
+
Xs = "xs",
|
|
8
|
+
/**
|
|
9
|
+
* Small size (24px)
|
|
10
|
+
*/
|
|
11
|
+
Sm = "sm",
|
|
12
|
+
/**
|
|
13
|
+
* Medium size (32px)
|
|
14
|
+
*/
|
|
15
|
+
Md = "md",
|
|
16
|
+
/**
|
|
17
|
+
* Large size (40px)
|
|
18
|
+
*/
|
|
19
|
+
Lg = "lg",
|
|
20
|
+
/**
|
|
21
|
+
* Extra large size (48px)
|
|
22
|
+
*/
|
|
23
|
+
Xl = "xl"
|
|
24
|
+
}
|
|
25
|
+
export declare enum AvatarBaseShape {
|
|
26
|
+
/**
|
|
27
|
+
* Circular shape with fully rounded corners
|
|
28
|
+
*/
|
|
29
|
+
Circle = "circle",
|
|
30
|
+
/**
|
|
31
|
+
* Square shape with slight rounded corners
|
|
32
|
+
*/
|
|
33
|
+
Square = "square"
|
|
34
|
+
}
|
|
35
|
+
export type AvatarBaseProps = ComponentProps<'div'> & {
|
|
36
|
+
/**
|
|
37
|
+
* Required prop for the content to be rendered within the AvatarBase
|
|
38
|
+
* Not required if fallbackText is provided
|
|
39
|
+
*/
|
|
40
|
+
children?: React.ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* Optional text to display when no children are provided
|
|
43
|
+
*/
|
|
44
|
+
fallbackText?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Optional props to be passed to the Text component when rendering fallback text
|
|
47
|
+
* Only used when fallbackText is provided and no children
|
|
48
|
+
*/
|
|
49
|
+
fallbackTextProps?: Partial<React.HTMLAttributes<HTMLSpanElement> & TextProps>;
|
|
50
|
+
/**
|
|
51
|
+
* Optional prop for additional CSS classes to be applied to the AvatarBase component.
|
|
52
|
+
* These classes will be merged with the component's default classes using twMerge.
|
|
53
|
+
*/
|
|
54
|
+
className?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Optional prop to control the size of the AvatarBase
|
|
57
|
+
* @default AvatarBaseSize.Md
|
|
58
|
+
*/
|
|
59
|
+
size?: AvatarBaseSize;
|
|
60
|
+
/**
|
|
61
|
+
* Optional boolean that determines if the component should merge its props onto its immediate child
|
|
62
|
+
* instead of rendering a div element
|
|
63
|
+
* @default false
|
|
64
|
+
*/
|
|
65
|
+
asChild?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Optional CSS styles to be applied to the component.
|
|
68
|
+
* Should be used sparingly and only for dynamic styles that can't be achieved with className.
|
|
69
|
+
*/
|
|
70
|
+
style?: React.CSSProperties;
|
|
71
|
+
/**
|
|
72
|
+
* Optional prop to control the shape of the AvatarBase
|
|
73
|
+
* @default AvatarBaseShape.Circle
|
|
74
|
+
*/
|
|
75
|
+
shape?: AvatarBaseShape;
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=AvatarBase.types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarBase.types.d.cts","sourceRoot":"","sources":["../../../src/components/avatar-base/AvatarBase.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC,oBAAY,cAAc;IACxB;;OAEG;IACH,EAAE,OAAO;IACT;;OAEG;IACH,EAAE,OAAO;IACT;;OAEG;IACH,EAAE,OAAO;IACT;;OAEG;IACH,EAAE,OAAO;IACT;;OAEG;IACH,EAAE,OAAO;CACV;AAED,oBAAY,eAAe;IACzB;;OAEG;IACH,MAAM,WAAW;IACjB;;OAEG;IACH,MAAM,WAAW;CAClB;AAED,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACpD;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CACzB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAClD,CAAC;IACF;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B;;;OAGG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
import type { TextProps } from "../text/index.mjs";
|
|
3
|
+
export declare enum AvatarBaseSize {
|
|
4
|
+
/**
|
|
5
|
+
* Extra small size (16px)
|
|
6
|
+
*/
|
|
7
|
+
Xs = "xs",
|
|
8
|
+
/**
|
|
9
|
+
* Small size (24px)
|
|
10
|
+
*/
|
|
11
|
+
Sm = "sm",
|
|
12
|
+
/**
|
|
13
|
+
* Medium size (32px)
|
|
14
|
+
*/
|
|
15
|
+
Md = "md",
|
|
16
|
+
/**
|
|
17
|
+
* Large size (40px)
|
|
18
|
+
*/
|
|
19
|
+
Lg = "lg",
|
|
20
|
+
/**
|
|
21
|
+
* Extra large size (48px)
|
|
22
|
+
*/
|
|
23
|
+
Xl = "xl"
|
|
24
|
+
}
|
|
25
|
+
export declare enum AvatarBaseShape {
|
|
26
|
+
/**
|
|
27
|
+
* Circular shape with fully rounded corners
|
|
28
|
+
*/
|
|
29
|
+
Circle = "circle",
|
|
30
|
+
/**
|
|
31
|
+
* Square shape with slight rounded corners
|
|
32
|
+
*/
|
|
33
|
+
Square = "square"
|
|
34
|
+
}
|
|
35
|
+
export type AvatarBaseProps = ComponentProps<'div'> & {
|
|
36
|
+
/**
|
|
37
|
+
* Required prop for the content to be rendered within the AvatarBase
|
|
38
|
+
* Not required if fallbackText is provided
|
|
39
|
+
*/
|
|
40
|
+
children?: React.ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* Optional text to display when no children are provided
|
|
43
|
+
*/
|
|
44
|
+
fallbackText?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Optional props to be passed to the Text component when rendering fallback text
|
|
47
|
+
* Only used when fallbackText is provided and no children
|
|
48
|
+
*/
|
|
49
|
+
fallbackTextProps?: Partial<React.HTMLAttributes<HTMLSpanElement> & TextProps>;
|
|
50
|
+
/**
|
|
51
|
+
* Optional prop for additional CSS classes to be applied to the AvatarBase component.
|
|
52
|
+
* These classes will be merged with the component's default classes using twMerge.
|
|
53
|
+
*/
|
|
54
|
+
className?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Optional prop to control the size of the AvatarBase
|
|
57
|
+
* @default AvatarBaseSize.Md
|
|
58
|
+
*/
|
|
59
|
+
size?: AvatarBaseSize;
|
|
60
|
+
/**
|
|
61
|
+
* Optional boolean that determines if the component should merge its props onto its immediate child
|
|
62
|
+
* instead of rendering a div element
|
|
63
|
+
* @default false
|
|
64
|
+
*/
|
|
65
|
+
asChild?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Optional CSS styles to be applied to the component.
|
|
68
|
+
* Should be used sparingly and only for dynamic styles that can't be achieved with className.
|
|
69
|
+
*/
|
|
70
|
+
style?: React.CSSProperties;
|
|
71
|
+
/**
|
|
72
|
+
* Optional prop to control the shape of the AvatarBase
|
|
73
|
+
* @default AvatarBaseShape.Circle
|
|
74
|
+
*/
|
|
75
|
+
shape?: AvatarBaseShape;
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=AvatarBase.types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarBase.types.d.mts","sourceRoot":"","sources":["../../../src/components/avatar-base/AvatarBase.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AAEzC,oBAAY,cAAc;IACxB;;OAEG;IACH,EAAE,OAAO;IACT;;OAEG;IACH,EAAE,OAAO;IACT;;OAEG;IACH,EAAE,OAAO;IACT;;OAEG;IACH,EAAE,OAAO;IACT;;OAEG;IACH,EAAE,OAAO;CACV;AAED,oBAAY,eAAe;IACzB;;OAEG;IACH,MAAM,WAAW;IACjB;;OAEG;IACH,MAAM,WAAW;CAClB;AAED,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACpD;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CACzB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAClD,CAAC;IACF;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B;;;OAGG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export var AvatarBaseSize;
|
|
2
|
+
(function (AvatarBaseSize) {
|
|
3
|
+
/**
|
|
4
|
+
* Extra small size (16px)
|
|
5
|
+
*/
|
|
6
|
+
AvatarBaseSize["Xs"] = "xs";
|
|
7
|
+
/**
|
|
8
|
+
* Small size (24px)
|
|
9
|
+
*/
|
|
10
|
+
AvatarBaseSize["Sm"] = "sm";
|
|
11
|
+
/**
|
|
12
|
+
* Medium size (32px)
|
|
13
|
+
*/
|
|
14
|
+
AvatarBaseSize["Md"] = "md";
|
|
15
|
+
/**
|
|
16
|
+
* Large size (40px)
|
|
17
|
+
*/
|
|
18
|
+
AvatarBaseSize["Lg"] = "lg";
|
|
19
|
+
/**
|
|
20
|
+
* Extra large size (48px)
|
|
21
|
+
*/
|
|
22
|
+
AvatarBaseSize["Xl"] = "xl";
|
|
23
|
+
})(AvatarBaseSize || (AvatarBaseSize = {}));
|
|
24
|
+
export var AvatarBaseShape;
|
|
25
|
+
(function (AvatarBaseShape) {
|
|
26
|
+
/**
|
|
27
|
+
* Circular shape with fully rounded corners
|
|
28
|
+
*/
|
|
29
|
+
AvatarBaseShape["Circle"] = "circle";
|
|
30
|
+
/**
|
|
31
|
+
* Square shape with slight rounded corners
|
|
32
|
+
*/
|
|
33
|
+
AvatarBaseShape["Square"] = "square";
|
|
34
|
+
})(AvatarBaseShape || (AvatarBaseShape = {}));
|
|
35
|
+
//# sourceMappingURL=AvatarBase.types.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarBase.types.mjs","sourceRoot":"","sources":["../../../src/components/avatar-base/AvatarBase.types.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,cAqBX;AArBD,WAAY,cAAc;IACxB;;OAEG;IACH,2BAAS,CAAA;IACT;;OAEG;IACH,2BAAS,CAAA;IACT;;OAEG;IACH,2BAAS,CAAA;IACT;;OAEG;IACH,2BAAS,CAAA;IACT;;OAEG;IACH,2BAAS,CAAA;AACX,CAAC,EArBW,cAAc,KAAd,cAAc,QAqBzB;AAED,MAAM,CAAN,IAAY,eASX;AATD,WAAY,eAAe;IACzB;;OAEG;IACH,oCAAiB,CAAA;IACjB;;OAEG;IACH,oCAAiB,CAAA;AACnB,CAAC,EATW,eAAe,KAAf,eAAe,QAS1B","sourcesContent":["import type { ComponentProps } from 'react';\nimport type { TextProps } from '../text';\n\nexport enum AvatarBaseSize {\n /**\n * Extra small size (16px)\n */\n Xs = 'xs',\n /**\n * Small size (24px)\n */\n Sm = 'sm',\n /**\n * Medium size (32px)\n */\n Md = 'md',\n /**\n * Large size (40px)\n */\n Lg = 'lg',\n /**\n * Extra large size (48px)\n */\n Xl = 'xl',\n}\n\nexport enum AvatarBaseShape {\n /**\n * Circular shape with fully rounded corners\n */\n Circle = 'circle',\n /**\n * Square shape with slight rounded corners\n */\n Square = 'square',\n}\n\nexport type AvatarBaseProps = ComponentProps<'div'> & {\n /**\n * Required prop for the content to be rendered within the AvatarBase\n * Not required if fallbackText is provided\n */\n children?: React.ReactNode;\n /**\n * Optional text to display when no children are provided\n */\n fallbackText?: string;\n /**\n * Optional props to be passed to the Text component when rendering fallback text\n * Only used when fallbackText is provided and no children\n */\n fallbackTextProps?: Partial<\n React.HTMLAttributes<HTMLSpanElement> & TextProps\n >;\n /**\n * Optional prop for additional CSS classes to be applied to the AvatarBase component.\n * These classes will be merged with the component's default classes using twMerge.\n */\n className?: string;\n /**\n * Optional prop to control the size of the AvatarBase\n * @default AvatarBaseSize.Md\n */\n size?: AvatarBaseSize;\n /**\n * Optional boolean that determines if the component should merge its props onto its immediate child\n * instead of rendering a div element\n * @default false\n */\n asChild?: 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 * Optional prop to control the shape of the AvatarBase\n * @default AvatarBaseShape.Circle\n */\n shape?: AvatarBaseShape;\n};\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AvatarBaseShape = exports.AvatarBaseSize = exports.AvatarBase = void 0;
|
|
4
|
+
var AvatarBase_1 = require("./AvatarBase.cjs");
|
|
5
|
+
Object.defineProperty(exports, "AvatarBase", { enumerable: true, get: function () { return AvatarBase_1.AvatarBase; } });
|
|
6
|
+
var AvatarBase_types_1 = require("./AvatarBase.types.cjs");
|
|
7
|
+
Object.defineProperty(exports, "AvatarBaseSize", { enumerable: true, get: function () { return AvatarBase_types_1.AvatarBaseSize; } });
|
|
8
|
+
Object.defineProperty(exports, "AvatarBaseShape", { enumerable: true, get: function () { return AvatarBase_types_1.AvatarBaseShape; } });
|
|
9
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/avatar-base/index.ts"],"names":[],"mappings":";;;AAAA,+CAA0C;AAAjC,wGAAA,UAAU,OAAA;AAEnB,2DAAqE;AAA5D,kHAAA,cAAc,OAAA;AAAE,mHAAA,eAAe,OAAA","sourcesContent":["export { AvatarBase } from './AvatarBase';\nexport type { AvatarBaseProps } from './AvatarBase.types';\nexport { AvatarBaseSize, AvatarBaseShape } from './AvatarBase.types';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/avatar-base/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAC1C,YAAY,EAAE,eAAe,EAAE,+BAA2B;AAC1D,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,+BAA2B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/avatar-base/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAC1C,YAAY,EAAE,eAAe,EAAE,+BAA2B;AAC1D,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,+BAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/avatar-base/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,yBAAqB;AAE1C,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,+BAA2B","sourcesContent":["export { AvatarBase } from './AvatarBase';\nexport type { AvatarBaseProps } from './AvatarBase.types';\nexport { AvatarBaseSize, AvatarBaseShape } from './AvatarBase.types';\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
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.AvatarFavicon = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const avatar_base_1 = require("../avatar-base/index.cjs");
|
|
9
|
+
exports.AvatarFavicon = react_1.default.forwardRef(({ src, name, fallbackText, fallbackTextProps, className, size = avatar_base_1.AvatarBaseSize.Md, imageProps, ...props }, ref) => {
|
|
10
|
+
const displayText = fallbackText || (name ? name[0] : '');
|
|
11
|
+
const altText = name || 'Dapp logo'; // TBC: Add localization for default text
|
|
12
|
+
return (react_1.default.createElement(avatar_base_1.AvatarBase, { ref: ref, shape: avatar_base_1.AvatarBaseShape.Circle, size: size, className: className, fallbackText: displayText, fallbackTextProps: fallbackTextProps, ...props }, src && (react_1.default.createElement("img", { src: src, alt: altText, className: "w-full h-full object-cover", ...imageProps }))));
|
|
13
|
+
});
|
|
14
|
+
exports.AvatarFavicon.displayName = 'AvatarFavicon';
|
|
15
|
+
//# sourceMappingURL=AvatarFavicon.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarFavicon.cjs","sourceRoot":"","sources":["../../../src/components/avatar-favicon/AvatarFavicon.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,0DAA6E;AAGhE,QAAA,aAAa,GAAG,eAAK,CAAC,UAAU,CAI3C,CACE,EACE,GAAG,EACH,IAAI,EACJ,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,IAAI,GAAG,4BAAc,CAAC,EAAE,EACxB,UAAU,EACV,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,WAAW,GAAG,YAAY,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAC1D,MAAM,OAAO,GAAG,IAAI,IAAI,WAAW,CAAC,CAAC,yCAAyC;IAE9E,OAAO,CACL,8BAAC,wBAAU,IACT,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,6BAAe,CAAC,MAAM,EAC7B,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,WAAW,EACzB,iBAAiB,EAAE,iBAAiB,KAChC,KAAK,IAER,GAAG,IAAI,CACN,uCACE,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,OAAO,EACZ,SAAS,EAAC,4BAA4B,KAClC,UAAU,GACd,CACH,CACU,CACd,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,qBAAa,CAAC,WAAW,GAAG,eAAe,CAAC","sourcesContent":["import React from 'react';\n\nimport { AvatarBase, AvatarBaseShape, AvatarBaseSize } from '../avatar-base';\nimport type { AvatarFaviconProps } from './AvatarFavicon.types';\n\nexport const AvatarFavicon = React.forwardRef<\n HTMLDivElement,\n AvatarFaviconProps\n>(\n (\n {\n src,\n name,\n fallbackText,\n fallbackTextProps,\n className,\n size = AvatarBaseSize.Md,\n imageProps,\n ...props\n },\n ref,\n ) => {\n const displayText = fallbackText || (name ? name[0] : '');\n const altText = name || 'Dapp logo'; // TBC: Add localization for default text\n\n return (\n <AvatarBase\n ref={ref}\n shape={AvatarBaseShape.Circle}\n size={size}\n className={className}\n fallbackText={displayText}\n fallbackTextProps={fallbackTextProps}\n {...props}\n >\n {src && (\n <img\n src={src}\n alt={altText}\n className=\"w-full h-full object-cover\"\n {...imageProps}\n />\n )}\n </AvatarBase>\n );\n },\n);\n\nAvatarFavicon.displayName = 'AvatarFavicon';\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { AvatarFaviconProps } from "./AvatarFavicon.types.cjs";
|
|
3
|
+
export declare const AvatarFavicon: React.ForwardRefExoticComponent<Omit<AvatarFaviconProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
//# sourceMappingURL=AvatarFavicon.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarFavicon.d.cts","sourceRoot":"","sources":["../../../src/components/avatar-favicon/AvatarFavicon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAG1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE,eAAO,MAAM,aAAa,wGAyCzB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { AvatarFaviconProps } from "./AvatarFavicon.types.mjs";
|
|
3
|
+
export declare const AvatarFavicon: React.ForwardRefExoticComponent<Omit<AvatarFaviconProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
//# sourceMappingURL=AvatarFavicon.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarFavicon.d.mts","sourceRoot":"","sources":["../../../src/components/avatar-favicon/AvatarFavicon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAG1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,kCAA8B;AAEhE,eAAO,MAAM,aAAa,wGAyCzB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
function $importDefault(module) {
|
|
2
|
+
if (module?.__esModule) {
|
|
3
|
+
return module.default;
|
|
4
|
+
}
|
|
5
|
+
return module;
|
|
6
|
+
}
|
|
7
|
+
import $React from "react";
|
|
8
|
+
const React = $importDefault($React);
|
|
9
|
+
import { AvatarBase, AvatarBaseShape, AvatarBaseSize } from "../avatar-base/index.mjs";
|
|
10
|
+
export const AvatarFavicon = React.forwardRef(({ src, name, fallbackText, fallbackTextProps, className, size = AvatarBaseSize.Md, imageProps, ...props }, ref) => {
|
|
11
|
+
const displayText = fallbackText || (name ? name[0] : '');
|
|
12
|
+
const altText = name || 'Dapp logo'; // TBC: Add localization for default text
|
|
13
|
+
return (React.createElement(AvatarBase, { ref: ref, shape: AvatarBaseShape.Circle, size: size, className: className, fallbackText: displayText, fallbackTextProps: fallbackTextProps, ...props }, src && (React.createElement("img", { src: src, alt: altText, className: "w-full h-full object-cover", ...imageProps }))));
|
|
14
|
+
});
|
|
15
|
+
AvatarFavicon.displayName = 'AvatarFavicon';
|
|
16
|
+
//# sourceMappingURL=AvatarFavicon.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarFavicon.mjs","sourceRoot":"","sources":["../../../src/components/avatar-favicon/AvatarFavicon.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,cAAc,EAAE,iCAAuB;AAG7E,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAI3C,CACE,EACE,GAAG,EACH,IAAI,EACJ,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,IAAI,GAAG,cAAc,CAAC,EAAE,EACxB,UAAU,EACV,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,WAAW,GAAG,YAAY,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAC1D,MAAM,OAAO,GAAG,IAAI,IAAI,WAAW,CAAC,CAAC,yCAAyC;IAE9E,OAAO,CACL,oBAAC,UAAU,IACT,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,eAAe,CAAC,MAAM,EAC7B,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,WAAW,EACzB,iBAAiB,EAAE,iBAAiB,KAChC,KAAK,IAER,GAAG,IAAI,CACN,6BACE,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,OAAO,EACZ,SAAS,EAAC,4BAA4B,KAClC,UAAU,GACd,CACH,CACU,CACd,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC","sourcesContent":["import React from 'react';\n\nimport { AvatarBase, AvatarBaseShape, AvatarBaseSize } from '../avatar-base';\nimport type { AvatarFaviconProps } from './AvatarFavicon.types';\n\nexport const AvatarFavicon = React.forwardRef<\n HTMLDivElement,\n AvatarFaviconProps\n>(\n (\n {\n src,\n name,\n fallbackText,\n fallbackTextProps,\n className,\n size = AvatarBaseSize.Md,\n imageProps,\n ...props\n },\n ref,\n ) => {\n const displayText = fallbackText || (name ? name[0] : '');\n const altText = name || 'Dapp logo'; // TBC: Add localization for default text\n\n return (\n <AvatarBase\n ref={ref}\n shape={AvatarBaseShape.Circle}\n size={size}\n className={className}\n fallbackText={displayText}\n fallbackTextProps={fallbackTextProps}\n {...props}\n >\n {src && (\n <img\n src={src}\n alt={altText}\n className=\"w-full h-full object-cover\"\n {...imageProps}\n />\n )}\n </AvatarBase>\n );\n },\n);\n\nAvatarFavicon.displayName = 'AvatarFavicon';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarFavicon.types.cjs","sourceRoot":"","sources":["../../../src/components/avatar-favicon/AvatarFavicon.types.ts"],"names":[],"mappings":";;AAGA,kCAAsC","sourcesContent":["import type { ComponentProps } from 'react';\n\nimport type { TextProps } from '../text';\nimport { AvatarFaviconSize } from '.';\n\nexport type AvatarFaviconProps = Omit<\n ComponentProps<'img'>,\n 'children' | 'size'\n> & {\n /**\n * Required name of the dapp\n * Used as alt text for image and first letter is used as fallback if no fallbackText provided\n */\n name: string;\n /**\n * Optional URL for the dapp favicon/logo\n * When provided, displays the image instead of fallback text\n */\n src?: string;\n /**\n * Optional prop to pass to the underlying img element\n * Useful for overriding the default alt text which is the dapp name\n */\n imageProps?: ComponentProps<'img'>;\n /**\n * Optional prop to control the size of the avatar\n * @default AvatarFaviconSize.Md\n */\n size?: AvatarFaviconSize;\n /**\n * Optional text to display when no image is provided\n * If not provided, first letter of name will be used\n */\n fallbackText?: string;\n /**\n * Optional props to be passed to the Text component when rendering fallback text\n * Only used when src is not provided\n */\n fallbackTextProps?: Partial<\n React.HTMLAttributes<HTMLSpanElement> & TextProps\n >;\n /**\n * Optional additional CSS classes to be applied to the component\n */\n className?: string;\n};\n"]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
import type { TextProps } from "../text/index.cjs";
|
|
3
|
+
import { AvatarFaviconSize } from "./index.cjs";
|
|
4
|
+
export type AvatarFaviconProps = Omit<ComponentProps<'img'>, 'children' | 'size'> & {
|
|
5
|
+
/**
|
|
6
|
+
* Required name of the dapp
|
|
7
|
+
* Used as alt text for image and first letter is used as fallback if no fallbackText provided
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* Optional URL for the dapp favicon/logo
|
|
12
|
+
* When provided, displays the image instead of fallback text
|
|
13
|
+
*/
|
|
14
|
+
src?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Optional prop to pass to the underlying img element
|
|
17
|
+
* Useful for overriding the default alt text which is the dapp name
|
|
18
|
+
*/
|
|
19
|
+
imageProps?: ComponentProps<'img'>;
|
|
20
|
+
/**
|
|
21
|
+
* Optional prop to control the size of the avatar
|
|
22
|
+
* @default AvatarFaviconSize.Md
|
|
23
|
+
*/
|
|
24
|
+
size?: AvatarFaviconSize;
|
|
25
|
+
/**
|
|
26
|
+
* Optional text to display when no image is provided
|
|
27
|
+
* If not provided, first letter of name will be used
|
|
28
|
+
*/
|
|
29
|
+
fallbackText?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Optional props to be passed to the Text component when rendering fallback text
|
|
32
|
+
* Only used when src is not provided
|
|
33
|
+
*/
|
|
34
|
+
fallbackTextProps?: Partial<React.HTMLAttributes<HTMLSpanElement> & TextProps>;
|
|
35
|
+
/**
|
|
36
|
+
* Optional additional CSS classes to be applied to the component
|
|
37
|
+
*/
|
|
38
|
+
className?: string;
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=AvatarFavicon.types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarFavicon.types.d.cts","sourceRoot":"","sources":["../../../src/components/avatar-favicon/AvatarFavicon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AACzC,OAAO,EAAE,iBAAiB,EAAE,oBAAU;AAEtC,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,cAAc,CAAC,KAAK,CAAC,EACrB,UAAU,GAAG,MAAM,CACpB,GAAG;IACF;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;IACnC;;;OAGG;IACH,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CACzB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAClD,CAAC;IACF;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
import type { TextProps } from "../text/index.mjs";
|
|
3
|
+
import { AvatarFaviconSize } from "./index.mjs";
|
|
4
|
+
export type AvatarFaviconProps = Omit<ComponentProps<'img'>, 'children' | 'size'> & {
|
|
5
|
+
/**
|
|
6
|
+
* Required name of the dapp
|
|
7
|
+
* Used as alt text for image and first letter is used as fallback if no fallbackText provided
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* Optional URL for the dapp favicon/logo
|
|
12
|
+
* When provided, displays the image instead of fallback text
|
|
13
|
+
*/
|
|
14
|
+
src?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Optional prop to pass to the underlying img element
|
|
17
|
+
* Useful for overriding the default alt text which is the dapp name
|
|
18
|
+
*/
|
|
19
|
+
imageProps?: ComponentProps<'img'>;
|
|
20
|
+
/**
|
|
21
|
+
* Optional prop to control the size of the avatar
|
|
22
|
+
* @default AvatarFaviconSize.Md
|
|
23
|
+
*/
|
|
24
|
+
size?: AvatarFaviconSize;
|
|
25
|
+
/**
|
|
26
|
+
* Optional text to display when no image is provided
|
|
27
|
+
* If not provided, first letter of name will be used
|
|
28
|
+
*/
|
|
29
|
+
fallbackText?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Optional props to be passed to the Text component when rendering fallback text
|
|
32
|
+
* Only used when src is not provided
|
|
33
|
+
*/
|
|
34
|
+
fallbackTextProps?: Partial<React.HTMLAttributes<HTMLSpanElement> & TextProps>;
|
|
35
|
+
/**
|
|
36
|
+
* Optional additional CSS classes to be applied to the component
|
|
37
|
+
*/
|
|
38
|
+
className?: string;
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=AvatarFavicon.types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarFavicon.types.d.mts","sourceRoot":"","sources":["../../../src/components/avatar-favicon/AvatarFavicon.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AACzC,OAAO,EAAE,iBAAiB,EAAE,oBAAU;AAEtC,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,cAAc,CAAC,KAAK,CAAC,EACrB,UAAU,GAAG,MAAM,CACpB,GAAG;IACF;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;IACnC;;;OAGG;IACH,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CACzB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAClD,CAAC;IACF;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarFavicon.types.mjs","sourceRoot":"","sources":["../../../src/components/avatar-favicon/AvatarFavicon.types.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,oBAAU","sourcesContent":["import type { ComponentProps } from 'react';\n\nimport type { TextProps } from '../text';\nimport { AvatarFaviconSize } from '.';\n\nexport type AvatarFaviconProps = Omit<\n ComponentProps<'img'>,\n 'children' | 'size'\n> & {\n /**\n * Required name of the dapp\n * Used as alt text for image and first letter is used as fallback if no fallbackText provided\n */\n name: string;\n /**\n * Optional URL for the dapp favicon/logo\n * When provided, displays the image instead of fallback text\n */\n src?: string;\n /**\n * Optional prop to pass to the underlying img element\n * Useful for overriding the default alt text which is the dapp name\n */\n imageProps?: ComponentProps<'img'>;\n /**\n * Optional prop to control the size of the avatar\n * @default AvatarFaviconSize.Md\n */\n size?: AvatarFaviconSize;\n /**\n * Optional text to display when no image is provided\n * If not provided, first letter of name will be used\n */\n fallbackText?: string;\n /**\n * Optional props to be passed to the Text component when rendering fallback text\n * Only used when src is not provided\n */\n fallbackTextProps?: Partial<\n React.HTMLAttributes<HTMLSpanElement> & TextProps\n >;\n /**\n * Optional additional CSS classes to be applied to the component\n */\n className?: string;\n};\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AvatarFaviconSize = exports.AvatarFavicon = void 0;
|
|
4
|
+
var AvatarFavicon_1 = require("./AvatarFavicon.cjs");
|
|
5
|
+
Object.defineProperty(exports, "AvatarFavicon", { enumerable: true, get: function () { return AvatarFavicon_1.AvatarFavicon; } });
|
|
6
|
+
var avatar_base_1 = require("../avatar-base/index.cjs");
|
|
7
|
+
Object.defineProperty(exports, "AvatarFaviconSize", { enumerable: true, get: function () { return avatar_base_1.AvatarBaseSize; } });
|
|
8
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/avatar-favicon/index.ts"],"names":[],"mappings":";;;AAAA,qDAAgD;AAAvC,8GAAA,aAAa,OAAA;AAEtB,wDAAqE;AAA5D,gHAAA,cAAc,OAAqB","sourcesContent":["export { AvatarFavicon } from './AvatarFavicon';\nexport type { AvatarFaviconProps } from './AvatarFavicon.types';\nexport { AvatarBaseSize as AvatarFaviconSize } from '../avatar-base';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/avatar-favicon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,4BAAwB;AAChD,YAAY,EAAE,kBAAkB,EAAE,kCAA8B;AAChE,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,iCAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/avatar-favicon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,4BAAwB;AAChD,YAAY,EAAE,kBAAkB,EAAE,kCAA8B;AAChE,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,iCAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/avatar-favicon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,4BAAwB;AAEhD,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,iCAAuB","sourcesContent":["export { AvatarFavicon } from './AvatarFavicon';\nexport type { AvatarFaviconProps } from './AvatarFavicon.types';\nexport { AvatarBaseSize as AvatarFaviconSize } from '../avatar-base';\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
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.AvatarIcon = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const avatar_base_1 = require("../avatar-base/index.cjs");
|
|
9
|
+
const icon_1 = require("../icon/index.cjs");
|
|
10
|
+
const AvatarIcon_constants_1 = require("./AvatarIcon.constants.cjs");
|
|
11
|
+
const AvatarIcon_types_1 = require("./AvatarIcon.types.cjs");
|
|
12
|
+
const AvatarIcon_types_2 = require("./AvatarIcon.types.cjs");
|
|
13
|
+
const tw_merge_1 = require("../../utils/tw-merge.cjs");
|
|
14
|
+
exports.AvatarIcon = react_1.default.forwardRef(({ iconName, iconProps, size = AvatarIcon_types_2.AvatarIconSize.Md, severity = AvatarIcon_types_1.AvatarIconSeverity.Default, className, ...props }, ref) => {
|
|
15
|
+
const baseSize = AvatarIcon_constants_1.AVATAR_ICON_TO_AVATAR_BASE_SIZE_MAP[size];
|
|
16
|
+
return (react_1.default.createElement(avatar_base_1.AvatarBase, { ref: ref, shape: avatar_base_1.AvatarBaseShape.Circle, size: baseSize, className: (0, tw_merge_1.twMerge)(AvatarIcon_constants_1.AVATAR_ICON_SEVERITY_CLASSNAME_MAP[severity].background, className), ...props }, iconName && (react_1.default.createElement(icon_1.Icon, { name: iconName, size: AvatarIcon_constants_1.AVATAR_ICON_SIZE_TO_ICON_SIZE_CLASSNAME_MAP[size], color: AvatarIcon_constants_1.AVATAR_ICON_SEVERITY_CLASSNAME_MAP[severity].iconColor, ...iconProps }))));
|
|
17
|
+
});
|
|
18
|
+
exports.AvatarIcon.displayName = 'AvatarIcon';
|
|
19
|
+
//# sourceMappingURL=AvatarIcon.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarIcon.cjs","sourceRoot":"","sources":["../../../src/components/avatar-icon/AvatarIcon.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,0DAA6D;AAC7D,4CAA+B;AAE/B,qEAIgC;AAChC,6DAAwD;AACxD,6DAAoD;AACpD,uDAA+C;AAElC,QAAA,UAAU,GAAG,eAAK,CAAC,UAAU,CACxC,CACE,EACE,QAAQ,EACR,SAAS,EACT,IAAI,GAAG,iCAAc,CAAC,EAAE,EACxB,QAAQ,GAAG,qCAAkB,CAAC,OAAO,EACrC,SAAS,EACT,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,QAAQ,GAAG,0DAAmC,CAAC,IAAI,CAAC,CAAC;IAE3D,OAAO,CACL,8BAAC,wBAAU,IACT,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,6BAAe,CAAC,MAAM,EAC7B,IAAI,EAAE,QAAQ,EACd,SAAS,EAAE,IAAA,kBAAO,EAChB,yDAAkC,CAAC,QAAQ,CAAC,CAAC,UAAU,EACvD,SAAS,CACV,KACG,KAAK,IAER,QAAQ,IAAI,CACX,8BAAC,WAAI,IACH,IAAI,EAAE,QAAQ,EACd,IAAI,EAAE,kEAA2C,CAAC,IAAI,CAAC,EACvD,KAAK,EAAE,yDAAkC,CAAC,QAAQ,CAAC,CAAC,SAAS,KACzD,SAAS,GACb,CACH,CACU,CACd,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,kBAAU,CAAC,WAAW,GAAG,YAAY,CAAC","sourcesContent":["import React from 'react';\n\nimport { AvatarBase, AvatarBaseShape } from '../avatar-base';\nimport { Icon } from '../icon';\nimport type { AvatarIconProps } from './AvatarIcon.types';\nimport {\n AVATAR_ICON_SIZE_TO_ICON_SIZE_CLASSNAME_MAP,\n AVATAR_ICON_SEVERITY_CLASSNAME_MAP,\n AVATAR_ICON_TO_AVATAR_BASE_SIZE_MAP,\n} from './AvatarIcon.constants';\nimport { AvatarIconSeverity } from './AvatarIcon.types';\nimport { AvatarIconSize } from './AvatarIcon.types';\nimport { twMerge } from '../../utils/tw-merge';\n\nexport const AvatarIcon = React.forwardRef<HTMLDivElement, AvatarIconProps>(\n (\n {\n iconName,\n iconProps,\n size = AvatarIconSize.Md,\n severity = AvatarIconSeverity.Default,\n className,\n ...props\n },\n ref,\n ) => {\n const baseSize = AVATAR_ICON_TO_AVATAR_BASE_SIZE_MAP[size];\n\n return (\n <AvatarBase\n ref={ref}\n shape={AvatarBaseShape.Circle}\n size={baseSize}\n className={twMerge(\n AVATAR_ICON_SEVERITY_CLASSNAME_MAP[severity].background,\n className,\n )}\n {...props}\n >\n {iconName && (\n <Icon\n name={iconName}\n size={AVATAR_ICON_SIZE_TO_ICON_SIZE_CLASSNAME_MAP[size]}\n color={AVATAR_ICON_SEVERITY_CLASSNAME_MAP[severity].iconColor}\n {...iconProps}\n />\n )}\n </AvatarBase>\n );\n },\n);\n\nAvatarIcon.displayName = 'AvatarIcon';\n"]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AVATAR_ICON_TO_AVATAR_BASE_SIZE_MAP = exports.AVATAR_ICON_SEVERITY_CLASSNAME_MAP = exports.AVATAR_ICON_SIZE_TO_ICON_SIZE_CLASSNAME_MAP = void 0;
|
|
4
|
+
const icon_1 = require("../icon/index.cjs");
|
|
5
|
+
const AvatarIcon_types_1 = require("./AvatarIcon.types.cjs");
|
|
6
|
+
const AvatarIcon_types_2 = require("./AvatarIcon.types.cjs");
|
|
7
|
+
const avatar_base_1 = require("../avatar-base/index.cjs");
|
|
8
|
+
exports.AVATAR_ICON_SIZE_TO_ICON_SIZE_CLASSNAME_MAP = {
|
|
9
|
+
[AvatarIcon_types_1.AvatarIconSize.Xs]: icon_1.IconSize.Xs,
|
|
10
|
+
[AvatarIcon_types_1.AvatarIconSize.Sm]: icon_1.IconSize.Sm,
|
|
11
|
+
[AvatarIcon_types_1.AvatarIconSize.Md]: icon_1.IconSize.Md,
|
|
12
|
+
[AvatarIcon_types_1.AvatarIconSize.Lg]: icon_1.IconSize.Lg,
|
|
13
|
+
[AvatarIcon_types_1.AvatarIconSize.Xl]: icon_1.IconSize.Xl, // 48px avatar -> 32px icon
|
|
14
|
+
};
|
|
15
|
+
exports.AVATAR_ICON_SEVERITY_CLASSNAME_MAP = {
|
|
16
|
+
[AvatarIcon_types_2.AvatarIconSeverity.Default]: {
|
|
17
|
+
background: 'bg-background-muted',
|
|
18
|
+
iconColor: icon_1.IconColor.IconAlternative,
|
|
19
|
+
},
|
|
20
|
+
[AvatarIcon_types_2.AvatarIconSeverity.Info]: {
|
|
21
|
+
background: 'bg-info-muted',
|
|
22
|
+
iconColor: icon_1.IconColor.InfoDefault,
|
|
23
|
+
},
|
|
24
|
+
[AvatarIcon_types_2.AvatarIconSeverity.Success]: {
|
|
25
|
+
background: 'bg-success-muted',
|
|
26
|
+
iconColor: icon_1.IconColor.SuccessDefault,
|
|
27
|
+
},
|
|
28
|
+
[AvatarIcon_types_2.AvatarIconSeverity.Error]: {
|
|
29
|
+
background: 'bg-error-muted',
|
|
30
|
+
iconColor: icon_1.IconColor.ErrorDefault,
|
|
31
|
+
},
|
|
32
|
+
[AvatarIcon_types_2.AvatarIconSeverity.Warning]: {
|
|
33
|
+
background: 'bg-warning-muted',
|
|
34
|
+
iconColor: icon_1.IconColor.WarningDefault,
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
exports.AVATAR_ICON_TO_AVATAR_BASE_SIZE_MAP = {
|
|
38
|
+
[AvatarIcon_types_1.AvatarIconSize.Xs]: avatar_base_1.AvatarBaseSize.Xs,
|
|
39
|
+
[AvatarIcon_types_1.AvatarIconSize.Sm]: avatar_base_1.AvatarBaseSize.Sm,
|
|
40
|
+
[AvatarIcon_types_1.AvatarIconSize.Md]: avatar_base_1.AvatarBaseSize.Md,
|
|
41
|
+
[AvatarIcon_types_1.AvatarIconSize.Lg]: avatar_base_1.AvatarBaseSize.Lg,
|
|
42
|
+
[AvatarIcon_types_1.AvatarIconSize.Xl]: avatar_base_1.AvatarBaseSize.Xl,
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=AvatarIcon.constants.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarIcon.constants.cjs","sourceRoot":"","sources":["../../../src/components/avatar-icon/AvatarIcon.constants.ts"],"names":[],"mappings":";;;AAAA,4CAA8C;AAC9C,6DAAoD;AACpD,6DAAwD;AACxD,0DAAgD;AAEnC,QAAA,2CAA2C,GAGpD;IACF,CAAC,iCAAc,CAAC,EAAE,CAAC,EAAE,eAAQ,CAAC,EAAE;IAChC,CAAC,iCAAc,CAAC,EAAE,CAAC,EAAE,eAAQ,CAAC,EAAE;IAChC,CAAC,iCAAc,CAAC,EAAE,CAAC,EAAE,eAAQ,CAAC,EAAE;IAChC,CAAC,iCAAc,CAAC,EAAE,CAAC,EAAE,eAAQ,CAAC,EAAE;IAChC,CAAC,iCAAc,CAAC,EAAE,CAAC,EAAE,eAAQ,CAAC,EAAE,EAAE,2BAA2B;CAC9D,CAAC;AAEW,QAAA,kCAAkC,GAG3C;IACF,CAAC,qCAAkB,CAAC,OAAO,CAAC,EAAE;QAC5B,UAAU,EAAE,qBAAqB;QACjC,SAAS,EAAE,gBAAS,CAAC,eAAe;KACrC;IACD,CAAC,qCAAkB,CAAC,IAAI,CAAC,EAAE;QACzB,UAAU,EAAE,eAAe;QAC3B,SAAS,EAAE,gBAAS,CAAC,WAAW;KACjC;IACD,CAAC,qCAAkB,CAAC,OAAO,CAAC,EAAE;QAC5B,UAAU,EAAE,kBAAkB;QAC9B,SAAS,EAAE,gBAAS,CAAC,cAAc;KACpC;IACD,CAAC,qCAAkB,CAAC,KAAK,CAAC,EAAE;QAC1B,UAAU,EAAE,gBAAgB;QAC5B,SAAS,EAAE,gBAAS,CAAC,YAAY;KAClC;IACD,CAAC,qCAAkB,CAAC,OAAO,CAAC,EAAE;QAC5B,UAAU,EAAE,kBAAkB;QAC9B,SAAS,EAAE,gBAAS,CAAC,cAAc;KACpC;CACF,CAAC;AAEW,QAAA,mCAAmC,GAG5C;IACF,CAAC,iCAAc,CAAC,EAAE,CAAC,EAAE,4BAAc,CAAC,EAAE;IACtC,CAAC,iCAAc,CAAC,EAAE,CAAC,EAAE,4BAAc,CAAC,EAAE;IACtC,CAAC,iCAAc,CAAC,EAAE,CAAC,EAAE,4BAAc,CAAC,EAAE;IACtC,CAAC,iCAAc,CAAC,EAAE,CAAC,EAAE,4BAAc,CAAC,EAAE;IACtC,CAAC,iCAAc,CAAC,EAAE,CAAC,EAAE,4BAAc,CAAC,EAAE;CACvC,CAAC","sourcesContent":["import { IconSize, IconColor } from '../icon';\nimport { AvatarIconSize } from './AvatarIcon.types';\nimport { AvatarIconSeverity } from './AvatarIcon.types';\nimport { AvatarBaseSize } from '../avatar-base';\n\nexport const AVATAR_ICON_SIZE_TO_ICON_SIZE_CLASSNAME_MAP: Record<\n AvatarIconSize,\n IconSize\n> = {\n [AvatarIconSize.Xs]: IconSize.Xs, // 16px avatar -> 12px icon\n [AvatarIconSize.Sm]: IconSize.Sm, // 24px avatar -> 16px icon\n [AvatarIconSize.Md]: IconSize.Md, // 32px avatar -> 20px icon\n [AvatarIconSize.Lg]: IconSize.Lg, // 40px avatar -> 24px icon\n [AvatarIconSize.Xl]: IconSize.Xl, // 48px avatar -> 32px icon\n};\n\nexport const AVATAR_ICON_SEVERITY_CLASSNAME_MAP: Record<\n AvatarIconSeverity,\n { background: string; iconColor: IconColor }\n> = {\n [AvatarIconSeverity.Default]: {\n background: 'bg-background-muted',\n iconColor: IconColor.IconAlternative,\n },\n [AvatarIconSeverity.Info]: {\n background: 'bg-info-muted',\n iconColor: IconColor.InfoDefault,\n },\n [AvatarIconSeverity.Success]: {\n background: 'bg-success-muted',\n iconColor: IconColor.SuccessDefault,\n },\n [AvatarIconSeverity.Error]: {\n background: 'bg-error-muted',\n iconColor: IconColor.ErrorDefault,\n },\n [AvatarIconSeverity.Warning]: {\n background: 'bg-warning-muted',\n iconColor: IconColor.WarningDefault,\n },\n};\n\nexport const AVATAR_ICON_TO_AVATAR_BASE_SIZE_MAP: Record<\n AvatarIconSize,\n AvatarBaseSize\n> = {\n [AvatarIconSize.Xs]: AvatarBaseSize.Xs,\n [AvatarIconSize.Sm]: AvatarBaseSize.Sm,\n [AvatarIconSize.Md]: AvatarBaseSize.Md,\n [AvatarIconSize.Lg]: AvatarBaseSize.Lg,\n [AvatarIconSize.Xl]: AvatarBaseSize.Xl,\n};\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IconSize, IconColor } from "../icon/index.cjs";
|
|
2
|
+
import { AvatarIconSize } from "./AvatarIcon.types.cjs";
|
|
3
|
+
import { AvatarIconSeverity } from "./AvatarIcon.types.cjs";
|
|
4
|
+
import { AvatarBaseSize } from "../avatar-base/index.cjs";
|
|
5
|
+
export declare const AVATAR_ICON_SIZE_TO_ICON_SIZE_CLASSNAME_MAP: Record<AvatarIconSize, IconSize>;
|
|
6
|
+
export declare const AVATAR_ICON_SEVERITY_CLASSNAME_MAP: Record<AvatarIconSeverity, {
|
|
7
|
+
background: string;
|
|
8
|
+
iconColor: IconColor;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const AVATAR_ICON_TO_AVATAR_BASE_SIZE_MAP: Record<AvatarIconSize, AvatarBaseSize>;
|
|
11
|
+
//# sourceMappingURL=AvatarIcon.constants.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarIcon.constants.d.cts","sourceRoot":"","sources":["../../../src/components/avatar-icon/AvatarIcon.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,0BAAgB;AAC9C,OAAO,EAAE,cAAc,EAAE,+BAA2B;AACpD,OAAO,EAAE,kBAAkB,EAAE,+BAA2B;AACxD,OAAO,EAAE,cAAc,EAAE,iCAAuB;AAEhD,eAAO,MAAM,2CAA2C,EAAE,MAAM,CAC9D,cAAc,EACd,QAAQ,CAOT,CAAC;AAEF,eAAO,MAAM,kCAAkC,EAAE,MAAM,CACrD,kBAAkB,EAClB;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,SAAS,CAAA;CAAE,CAsB7C,CAAC;AAEF,eAAO,MAAM,mCAAmC,EAAE,MAAM,CACtD,cAAc,EACd,cAAc,CAOf,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IconSize, IconColor } from "../icon/index.mjs";
|
|
2
|
+
import { AvatarIconSize } from "./AvatarIcon.types.mjs";
|
|
3
|
+
import { AvatarIconSeverity } from "./AvatarIcon.types.mjs";
|
|
4
|
+
import { AvatarBaseSize } from "../avatar-base/index.mjs";
|
|
5
|
+
export declare const AVATAR_ICON_SIZE_TO_ICON_SIZE_CLASSNAME_MAP: Record<AvatarIconSize, IconSize>;
|
|
6
|
+
export declare const AVATAR_ICON_SEVERITY_CLASSNAME_MAP: Record<AvatarIconSeverity, {
|
|
7
|
+
background: string;
|
|
8
|
+
iconColor: IconColor;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const AVATAR_ICON_TO_AVATAR_BASE_SIZE_MAP: Record<AvatarIconSize, AvatarBaseSize>;
|
|
11
|
+
//# sourceMappingURL=AvatarIcon.constants.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarIcon.constants.d.mts","sourceRoot":"","sources":["../../../src/components/avatar-icon/AvatarIcon.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,0BAAgB;AAC9C,OAAO,EAAE,cAAc,EAAE,+BAA2B;AACpD,OAAO,EAAE,kBAAkB,EAAE,+BAA2B;AACxD,OAAO,EAAE,cAAc,EAAE,iCAAuB;AAEhD,eAAO,MAAM,2CAA2C,EAAE,MAAM,CAC9D,cAAc,EACd,QAAQ,CAOT,CAAC;AAEF,eAAO,MAAM,kCAAkC,EAAE,MAAM,CACrD,kBAAkB,EAClB;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,SAAS,CAAA;CAAE,CAsB7C,CAAC;AAEF,eAAO,MAAM,mCAAmC,EAAE,MAAM,CACtD,cAAc,EACd,cAAc,CAOf,CAAC"}
|