@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":"AvatarToken.d.cts","sourceRoot":"","sources":["../../../src/components/avatar-token/AvatarToken.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAG1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,gCAA4B;AAE5D,eAAO,MAAM,WAAW,sGAsCvB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { AvatarTokenProps } from "./AvatarToken.types.mjs";
|
|
3
|
+
export declare const AvatarToken: React.ForwardRefExoticComponent<Omit<AvatarTokenProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
//# sourceMappingURL=AvatarToken.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarToken.d.mts","sourceRoot":"","sources":["../../../src/components/avatar-token/AvatarToken.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAG1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,gCAA4B;AAE5D,eAAO,MAAM,WAAW,sGAsCvB,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 AvatarToken = React.forwardRef(({ src, name, fallbackText, fallbackTextProps, className, size = AvatarBaseSize.Md, imageProps, ...props }, ref) => {
|
|
11
|
+
const displayText = fallbackText || (name ? name[0] : '');
|
|
12
|
+
const altText = name || 'Token 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
|
+
AvatarToken.displayName = 'AvatarToken';
|
|
16
|
+
//# sourceMappingURL=AvatarToken.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarToken.mjs","sourceRoot":"","sources":["../../../src/components/avatar-token/AvatarToken.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,cAAc,EAAE,iCAAuB;AAG7E,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,CAAC,UAAU,CACzC,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,YAAY,CAAC,CAAC,yCAAyC;IAE/E,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,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC","sourcesContent":["import React from 'react';\n\nimport { AvatarBase, AvatarBaseShape, AvatarBaseSize } from '../avatar-base';\nimport type { AvatarTokenProps } from './AvatarToken.types';\n\nexport const AvatarToken = React.forwardRef<HTMLDivElement, AvatarTokenProps>(\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 || 'Token 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\nAvatarToken.displayName = 'AvatarToken';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarToken.types.cjs","sourceRoot":"","sources":["../../../src/components/avatar-token/AvatarToken.types.ts"],"names":[],"mappings":";;AAGA,kCAAoC","sourcesContent":["import type { ComponentProps } from 'react';\n\nimport type { TextProps } from '../text';\nimport { AvatarTokenSize } from '.';\n\nexport type AvatarTokenProps = Omit<\n ComponentProps<'img'>,\n 'children' | 'size'\n> & {\n /**\n * Required name of the token\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 token image\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 token name\n */\n imageProps?: ComponentProps<'img'>;\n /**\n * Optional prop to control the size of the avatar\n * @default AvatarTokenSize.Md\n */\n size?: AvatarTokenSize;\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 { AvatarTokenSize } from "./index.cjs";
|
|
4
|
+
export type AvatarTokenProps = Omit<ComponentProps<'img'>, 'children' | 'size'> & {
|
|
5
|
+
/**
|
|
6
|
+
* Required name of the token
|
|
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 token image
|
|
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 token name
|
|
18
|
+
*/
|
|
19
|
+
imageProps?: ComponentProps<'img'>;
|
|
20
|
+
/**
|
|
21
|
+
* Optional prop to control the size of the avatar
|
|
22
|
+
* @default AvatarTokenSize.Md
|
|
23
|
+
*/
|
|
24
|
+
size?: AvatarTokenSize;
|
|
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=AvatarToken.types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarToken.types.d.cts","sourceRoot":"","sources":["../../../src/components/avatar-token/AvatarToken.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AACzC,OAAO,EAAE,eAAe,EAAE,oBAAU;AAEpC,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,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,eAAe,CAAC;IACvB;;;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 { AvatarTokenSize } from "./index.mjs";
|
|
4
|
+
export type AvatarTokenProps = Omit<ComponentProps<'img'>, 'children' | 'size'> & {
|
|
5
|
+
/**
|
|
6
|
+
* Required name of the token
|
|
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 token image
|
|
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 token name
|
|
18
|
+
*/
|
|
19
|
+
imageProps?: ComponentProps<'img'>;
|
|
20
|
+
/**
|
|
21
|
+
* Optional prop to control the size of the avatar
|
|
22
|
+
* @default AvatarTokenSize.Md
|
|
23
|
+
*/
|
|
24
|
+
size?: AvatarTokenSize;
|
|
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=AvatarToken.types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarToken.types.d.mts","sourceRoot":"","sources":["../../../src/components/avatar-token/AvatarToken.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C,OAAO,KAAK,EAAE,SAAS,EAAE,0BAAgB;AACzC,OAAO,EAAE,eAAe,EAAE,oBAAU;AAEpC,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,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,eAAe,CAAC;IACvB;;;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":"AvatarToken.types.mjs","sourceRoot":"","sources":["../../../src/components/avatar-token/AvatarToken.types.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,oBAAU","sourcesContent":["import type { ComponentProps } from 'react';\n\nimport type { TextProps } from '../text';\nimport { AvatarTokenSize } from '.';\n\nexport type AvatarTokenProps = Omit<\n ComponentProps<'img'>,\n 'children' | 'size'\n> & {\n /**\n * Required name of the token\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 token image\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 token name\n */\n imageProps?: ComponentProps<'img'>;\n /**\n * Optional prop to control the size of the avatar\n * @default AvatarTokenSize.Md\n */\n size?: AvatarTokenSize;\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.AvatarTokenSize = exports.AvatarToken = void 0;
|
|
4
|
+
var AvatarToken_1 = require("./AvatarToken.cjs");
|
|
5
|
+
Object.defineProperty(exports, "AvatarToken", { enumerable: true, get: function () { return AvatarToken_1.AvatarToken; } });
|
|
6
|
+
var avatar_base_1 = require("../avatar-base/index.cjs");
|
|
7
|
+
Object.defineProperty(exports, "AvatarTokenSize", { 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-token/index.ts"],"names":[],"mappings":";;;AAAA,iDAA4C;AAAnC,0GAAA,WAAW,OAAA;AAEpB,wDAAmE;AAA1D,8GAAA,cAAc,OAAmB","sourcesContent":["export { AvatarToken } from './AvatarToken';\nexport type { AvatarTokenProps } from './AvatarToken.types';\nexport { AvatarBaseSize as AvatarTokenSize } from '../avatar-base';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/avatar-token/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,0BAAsB;AAC5C,YAAY,EAAE,gBAAgB,EAAE,gCAA4B;AAC5D,OAAO,EAAE,cAAc,IAAI,eAAe,EAAE,iCAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/avatar-token/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,0BAAsB;AAC5C,YAAY,EAAE,gBAAgB,EAAE,gCAA4B;AAC5D,OAAO,EAAE,cAAc,IAAI,eAAe,EAAE,iCAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/avatar-token/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,0BAAsB;AAE5C,OAAO,EAAE,cAAc,IAAI,eAAe,EAAE,iCAAuB","sourcesContent":["export { AvatarToken } from './AvatarToken';\nexport type { AvatarTokenProps } from './AvatarToken.types';\nexport { AvatarBaseSize as AvatarTokenSize } from '../avatar-base';\n"]}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.Blockies = void 0;
|
|
27
|
+
const react_1 = __importStar(require("react"));
|
|
28
|
+
const Blockies = ({ address, size = 32, ...props }) => {
|
|
29
|
+
const [bloModule, setBloModule] = (0, react_1.useState)(null);
|
|
30
|
+
(0, react_1.useEffect)(() => {
|
|
31
|
+
import("blo").then((module) => setBloModule(module));
|
|
32
|
+
}, []);
|
|
33
|
+
if (!bloModule) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return (react_1.default.createElement("img", { src: bloModule.blo(address), height: size, width: size, alt: `Blockies for ${address}`, ...props }));
|
|
37
|
+
};
|
|
38
|
+
exports.Blockies = Blockies;
|
|
39
|
+
exports.Blockies.displayName = 'Blockies';
|
|
40
|
+
//# sourceMappingURL=Blockies.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Blockies.cjs","sourceRoot":"","sources":["../../../src/components/blockies/Blockies.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAmD;AAG5C,MAAM,QAAQ,GAAG,CAAC,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,EAAE,GAAG,KAAK,EAAiB,EAAE,EAAE;IAC1E,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAEhC,IAAI,CAAC,CAAC;IAEhB,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAC5B,YAAY,CAAC,MAA8C,CAAC,CAC7D,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAI,CAAC,SAAS,EAAE;QACd,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,uCACE,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,EAC3B,MAAM,EAAE,IAAI,EACZ,KAAK,EAAE,IAAI,EACX,GAAG,EAAE,gBAAgB,OAAO,EAAE,KAC1B,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CAAC;AAxBW,QAAA,QAAQ,YAwBnB;AAEF,gBAAQ,CAAC,WAAW,GAAG,UAAU,CAAC","sourcesContent":["import React, { useState, useEffect } from 'react';\nimport type { BlockiesProps } from './Blockies.types';\n\nexport const Blockies = ({ address, size = 32, ...props }: BlockiesProps) => {\n const [bloModule, setBloModule] = useState<{\n blo: (address: string) => string;\n } | null>(null);\n\n useEffect(() => {\n import('blo').then((module) =>\n setBloModule(module as { blo: (address: string) => string }),\n );\n }, []);\n\n if (!bloModule) {\n return null;\n }\n\n return (\n <img\n src={bloModule.blo(address)}\n height={size}\n width={size}\n alt={`Blockies for ${address}`} // TODO: Add localization for this\n {...props}\n />\n );\n};\n\nBlockies.displayName = 'Blockies';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Blockies.d.cts","sourceRoot":"","sources":["../../../src/components/blockies/Blockies.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,cAAc;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,6BAAyB;AAEtD,eAAO,MAAM,QAAQ;kCAAsC,aAAa;;CAwBvE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Blockies.d.mts","sourceRoot":"","sources":["../../../src/components/blockies/Blockies.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,cAAc;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,6BAAyB;AAEtD,eAAO,MAAM,QAAQ;kCAAsC,aAAa;;CAwBvE,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
function $importDefault(module) {
|
|
2
|
+
if (module?.__esModule) {
|
|
3
|
+
return module.default;
|
|
4
|
+
}
|
|
5
|
+
return module;
|
|
6
|
+
}
|
|
7
|
+
import $React from "react";
|
|
8
|
+
const { useState, useEffect } = $React;
|
|
9
|
+
const React = $importDefault($React);
|
|
10
|
+
export const Blockies = ({ address, size = 32, ...props }) => {
|
|
11
|
+
const [bloModule, setBloModule] = useState(null);
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
import("blo").then((module) => setBloModule(module));
|
|
14
|
+
}, []);
|
|
15
|
+
if (!bloModule) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
return (React.createElement("img", { src: bloModule.blo(address), height: size, width: size, alt: `Blockies for ${address}`, ...props }));
|
|
19
|
+
};
|
|
20
|
+
Blockies.displayName = 'Blockies';
|
|
21
|
+
//# sourceMappingURL=Blockies.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Blockies.mjs","sourceRoot":"","sources":["../../../src/components/blockies/Blockies.tsx"],"names":[],"mappings":";;;;;;;;;AAGA,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,EAAE,GAAG,KAAK,EAAiB,EAAE,EAAE;IAC1E,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAEhC,IAAI,CAAC,CAAC;IAEhB,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAC5B,YAAY,CAAC,MAA8C,CAAC,CAC7D,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAI,CAAC,SAAS,EAAE;QACd,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,6BACE,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,EAC3B,MAAM,EAAE,IAAI,EACZ,KAAK,EAAE,IAAI,EACX,GAAG,EAAE,gBAAgB,OAAO,EAAE,KAC1B,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC","sourcesContent":["import React, { useState, useEffect } from 'react';\nimport type { BlockiesProps } from './Blockies.types';\n\nexport const Blockies = ({ address, size = 32, ...props }: BlockiesProps) => {\n const [bloModule, setBloModule] = useState<{\n blo: (address: string) => string;\n } | null>(null);\n\n useEffect(() => {\n import('blo').then((module) =>\n setBloModule(module as { blo: (address: string) => string }),\n );\n }, []);\n\n if (!bloModule) {\n return null;\n }\n\n return (\n <img\n src={bloModule.blo(address)}\n height={size}\n width={size}\n alt={`Blockies for ${address}`} // TODO: Add localization for this\n {...props}\n />\n );\n};\n\nBlockies.displayName = 'Blockies';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Blockies.types.cjs","sourceRoot":"","sources":["../../../src/components/blockies/Blockies.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps } from 'react';\n\nexport type BlockiesProps = ComponentProps<'img'> & {\n /**\n * Required address used as a unique identifier to generate the Blockies.\n */\n address: string;\n /**\n * Optional prop to control the size of the Blockies.\n */\n size?: number;\n /**\n * Optional prop to add a test id to the icon\n */\n 'data-testid'?: string;\n};\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
export type BlockiesProps = ComponentProps<'img'> & {
|
|
3
|
+
/**
|
|
4
|
+
* Required address used as a unique identifier to generate the Blockies.
|
|
5
|
+
*/
|
|
6
|
+
address: string;
|
|
7
|
+
/**
|
|
8
|
+
* Optional prop to control the size of the Blockies.
|
|
9
|
+
*/
|
|
10
|
+
size?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Optional prop to add a test id to the icon
|
|
13
|
+
*/
|
|
14
|
+
'data-testid'?: string;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=Blockies.types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Blockies.types.d.cts","sourceRoot":"","sources":["../../../src/components/blockies/Blockies.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IAClD;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
export type BlockiesProps = ComponentProps<'img'> & {
|
|
3
|
+
/**
|
|
4
|
+
* Required address used as a unique identifier to generate the Blockies.
|
|
5
|
+
*/
|
|
6
|
+
address: string;
|
|
7
|
+
/**
|
|
8
|
+
* Optional prop to control the size of the Blockies.
|
|
9
|
+
*/
|
|
10
|
+
size?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Optional prop to add a test id to the icon
|
|
13
|
+
*/
|
|
14
|
+
'data-testid'?: string;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=Blockies.types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Blockies.types.d.mts","sourceRoot":"","sources":["../../../src/components/blockies/Blockies.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc;AAE5C,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IAClD;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Blockies.types.mjs","sourceRoot":"","sources":["../../../src/components/blockies/Blockies.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps } from 'react';\n\nexport type BlockiesProps = ComponentProps<'img'> & {\n /**\n * Required address used as a unique identifier to generate the Blockies.\n */\n address: string;\n /**\n * Optional prop to control the size of the Blockies.\n */\n size?: number;\n /**\n * Optional prop to add a test id to the icon\n */\n 'data-testid'?: string;\n};\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Blockies = void 0;
|
|
4
|
+
var Blockies_1 = require("./Blockies.cjs");
|
|
5
|
+
Object.defineProperty(exports, "Blockies", { enumerable: true, get: function () { return Blockies_1.Blockies; } });
|
|
6
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/components/blockies/index.ts"],"names":[],"mappings":";;;AAAA,2CAAsC;AAA7B,oGAAA,QAAQ,OAAA","sourcesContent":["export { Blockies } from './Blockies';\nexport type { BlockiesProps } from './Blockies.types';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/components/blockies/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,uBAAmB;AACtC,YAAY,EAAE,aAAa,EAAE,6BAAyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/components/blockies/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,uBAAmB;AACtC,YAAY,EAAE,aAAa,EAAE,6BAAyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/components/blockies/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,uBAAmB","sourcesContent":["export { Blockies } from './Blockies';\nexport type { BlockiesProps } from './Blockies.types';\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
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.Button = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const button_tertiary_1 = require("../button-tertiary/index.cjs");
|
|
9
|
+
const button_primary_1 = require("../button-primary/index.cjs");
|
|
10
|
+
const button_secondary_1 = require("../button-secondary/index.cjs");
|
|
11
|
+
const Button_types_1 = require("./Button.types.cjs");
|
|
12
|
+
exports.Button = react_1.default.forwardRef(({ variant = Button_types_1.ButtonVariant.Primary, ...props }, ref) => {
|
|
13
|
+
switch (variant) {
|
|
14
|
+
case Button_types_1.ButtonVariant.Primary:
|
|
15
|
+
return react_1.default.createElement(button_primary_1.ButtonPrimary, { ref: ref, ...props });
|
|
16
|
+
case Button_types_1.ButtonVariant.Secondary:
|
|
17
|
+
return (react_1.default.createElement(button_secondary_1.ButtonSecondary, { ref: ref, ...props }));
|
|
18
|
+
case Button_types_1.ButtonVariant.Tertiary:
|
|
19
|
+
return react_1.default.createElement(button_tertiary_1.ButtonTertiary, { ref: ref, ...props });
|
|
20
|
+
default:
|
|
21
|
+
return react_1.default.createElement(button_primary_1.ButtonPrimary, { ref: ref, ...props });
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
exports.Button.displayName = 'Button';
|
|
25
|
+
//# sourceMappingURL=Button.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.cjs","sourceRoot":"","sources":["../../../src/components/button/Button.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,kEAAoD;AACpD,gEAAkD;AAClD,oEAAsD;AAKtD,qDAA+C;AAElC,QAAA,MAAM,GAAG,eAAK,CAAC,UAAU,CACpC,CAAC,EAAE,OAAO,GAAG,4BAAa,CAAC,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IACrD,QAAQ,OAAO,EAAE;QACf,KAAK,4BAAa,CAAC,OAAO;YACxB,OAAO,8BAAC,8BAAa,IAAC,GAAG,EAAE,GAAG,KAAO,KAA4B,GAAI,CAAC;QACxE,KAAK,4BAAa,CAAC,SAAS;YAC1B,OAAO,CACL,8BAAC,kCAAe,IAAC,GAAG,EAAE,GAAG,KAAO,KAA8B,GAAI,CACnE,CAAC;QACJ,KAAK,4BAAa,CAAC,QAAQ;YACzB,OAAO,8BAAC,gCAAc,IAAC,GAAG,EAAE,GAAG,KAAO,KAA6B,GAAI,CAAC;QAC1E;YACE,OAAO,8BAAC,8BAAa,IAAC,GAAG,EAAE,GAAG,KAAO,KAA4B,GAAI,CAAC;KACzE;AACH,CAAC,CACF,CAAC;AAEF,cAAM,CAAC,WAAW,GAAG,QAAQ,CAAC","sourcesContent":["import React from 'react';\n\nimport { ButtonTertiary } from '../button-tertiary';\nimport { ButtonPrimary } from '../button-primary';\nimport { ButtonSecondary } from '../button-secondary';\nimport type { ButtonTertiaryProps } from '../button-tertiary';\nimport type { ButtonPrimaryProps } from '../button-primary';\nimport type { ButtonSecondaryProps } from '../button-secondary';\nimport type { ButtonProps } from './Button.types';\nimport { ButtonVariant } from './Button.types';\n\nexport const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ variant = ButtonVariant.Primary, ...props }, ref) => {\n switch (variant) {\n case ButtonVariant.Primary:\n return <ButtonPrimary ref={ref} {...(props as ButtonPrimaryProps)} />;\n case ButtonVariant.Secondary:\n return (\n <ButtonSecondary ref={ref} {...(props as ButtonSecondaryProps)} />\n );\n case ButtonVariant.Tertiary:\n return <ButtonTertiary ref={ref} {...(props as ButtonTertiaryProps)} />;\n default:\n return <ButtonPrimary ref={ref} {...(props as ButtonPrimaryProps)} />;\n }\n },\n);\n\nButton.displayName = 'Button';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.cts","sourceRoot":"","sources":["../../../src/components/button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAQ1B,OAAO,KAAK,EAAE,WAAW,EAAE,2BAAuB;AAGlD,eAAO,MAAM,MAAM,uFAelB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.mts","sourceRoot":"","sources":["../../../src/components/button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc;AAQ1B,OAAO,KAAK,EAAE,WAAW,EAAE,2BAAuB;AAGlD,eAAO,MAAM,MAAM,uFAelB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 { ButtonTertiary } from "../button-tertiary/index.mjs";
|
|
10
|
+
import { ButtonPrimary } from "../button-primary/index.mjs";
|
|
11
|
+
import { ButtonSecondary } from "../button-secondary/index.mjs";
|
|
12
|
+
import { ButtonVariant } from "./Button.types.mjs";
|
|
13
|
+
export const Button = React.forwardRef(({ variant = ButtonVariant.Primary, ...props }, ref) => {
|
|
14
|
+
switch (variant) {
|
|
15
|
+
case ButtonVariant.Primary:
|
|
16
|
+
return React.createElement(ButtonPrimary, { ref: ref, ...props });
|
|
17
|
+
case ButtonVariant.Secondary:
|
|
18
|
+
return (React.createElement(ButtonSecondary, { ref: ref, ...props }));
|
|
19
|
+
case ButtonVariant.Tertiary:
|
|
20
|
+
return React.createElement(ButtonTertiary, { ref: ref, ...props });
|
|
21
|
+
default:
|
|
22
|
+
return React.createElement(ButtonPrimary, { ref: ref, ...props });
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
Button.displayName = 'Button';
|
|
26
|
+
//# sourceMappingURL=Button.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.mjs","sourceRoot":"","sources":["../../../src/components/button/Button.tsx"],"names":[],"mappings":";;;;;;AAAA,OAAO,MAAK,cAAc;;AAE1B,OAAO,EAAE,cAAc,EAAE,qCAA2B;AACpD,OAAO,EAAE,aAAa,EAAE,oCAA0B;AAClD,OAAO,EAAE,eAAe,EAAE,sCAA4B;AAKtD,OAAO,EAAE,aAAa,EAAE,2BAAuB;AAE/C,MAAM,CAAC,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CACpC,CAAC,EAAE,OAAO,GAAG,aAAa,CAAC,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IACrD,QAAQ,OAAO,EAAE;QACf,KAAK,aAAa,CAAC,OAAO;YACxB,OAAO,oBAAC,aAAa,IAAC,GAAG,EAAE,GAAG,KAAO,KAA4B,GAAI,CAAC;QACxE,KAAK,aAAa,CAAC,SAAS;YAC1B,OAAO,CACL,oBAAC,eAAe,IAAC,GAAG,EAAE,GAAG,KAAO,KAA8B,GAAI,CACnE,CAAC;QACJ,KAAK,aAAa,CAAC,QAAQ;YACzB,OAAO,oBAAC,cAAc,IAAC,GAAG,EAAE,GAAG,KAAO,KAA6B,GAAI,CAAC;QAC1E;YACE,OAAO,oBAAC,aAAa,IAAC,GAAG,EAAE,GAAG,KAAO,KAA4B,GAAI,CAAC;KACzE;AACH,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC","sourcesContent":["import React from 'react';\n\nimport { ButtonTertiary } from '../button-tertiary';\nimport { ButtonPrimary } from '../button-primary';\nimport { ButtonSecondary } from '../button-secondary';\nimport type { ButtonTertiaryProps } from '../button-tertiary';\nimport type { ButtonPrimaryProps } from '../button-primary';\nimport type { ButtonSecondaryProps } from '../button-secondary';\nimport type { ButtonProps } from './Button.types';\nimport { ButtonVariant } from './Button.types';\n\nexport const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ variant = ButtonVariant.Primary, ...props }, ref) => {\n switch (variant) {\n case ButtonVariant.Primary:\n return <ButtonPrimary ref={ref} {...(props as ButtonPrimaryProps)} />;\n case ButtonVariant.Secondary:\n return (\n <ButtonSecondary ref={ref} {...(props as ButtonSecondaryProps)} />\n );\n case ButtonVariant.Tertiary:\n return <ButtonTertiary ref={ref} {...(props as ButtonTertiaryProps)} />;\n default:\n return <ButtonPrimary ref={ref} {...(props as ButtonPrimaryProps)} />;\n }\n },\n);\n\nButton.displayName = 'Button';\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ButtonVariant = void 0;
|
|
4
|
+
var ButtonVariant;
|
|
5
|
+
(function (ButtonVariant) {
|
|
6
|
+
/**
|
|
7
|
+
* Primary button variant - used for primary actions
|
|
8
|
+
*/
|
|
9
|
+
ButtonVariant["Primary"] = "primary";
|
|
10
|
+
/**
|
|
11
|
+
* Secondary button variant - used for secondary actions
|
|
12
|
+
*/
|
|
13
|
+
ButtonVariant["Secondary"] = "secondary";
|
|
14
|
+
/**
|
|
15
|
+
* Tertiary button variant - used for tertiary-like actions
|
|
16
|
+
*/
|
|
17
|
+
ButtonVariant["Tertiary"] = "tertiary";
|
|
18
|
+
})(ButtonVariant || (exports.ButtonVariant = ButtonVariant = {}));
|
|
19
|
+
//# sourceMappingURL=Button.types.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.types.cjs","sourceRoot":"","sources":["../../../src/components/button/Button.types.ts"],"names":[],"mappings":";;;AAIA,IAAY,aAaX;AAbD,WAAY,aAAa;IACvB;;OAEG;IACH,oCAAmB,CAAA;IACnB;;OAEG;IACH,wCAAuB,CAAA;IACvB;;OAEG;IACH,sCAAqB,CAAA;AACvB,CAAC,EAbW,aAAa,6BAAb,aAAa,QAaxB","sourcesContent":["import type { ButtonPrimaryProps } from '../button-primary';\nimport type { ButtonSecondaryProps } from '../button-secondary';\nimport type { ButtonTertiaryProps } from '../button-tertiary';\n\nexport enum ButtonVariant {\n /**\n * Primary button variant - used for primary actions\n */\n Primary = 'primary',\n /**\n * Secondary button variant - used for secondary actions\n */\n Secondary = 'secondary',\n /**\n * Tertiary button variant - used for tertiary-like actions\n */\n Tertiary = 'tertiary',\n}\n\nexport type ButtonProps = {\n /**\n * Optional prop to control the variant of the Button\n * @default ButtonVariant.Primary\n */\n variant?: ButtonVariant;\n} & (\n | (Omit<ButtonPrimaryProps, 'ref'> & {\n variant?: ButtonVariant.Primary;\n })\n | (Omit<ButtonSecondaryProps, 'ref'> & {\n variant?: ButtonVariant.Secondary;\n })\n | (Omit<ButtonTertiaryProps, 'ref'> & {\n variant?: ButtonVariant.Tertiary;\n })\n);\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ButtonPrimaryProps } from "../button-primary/index.cjs";
|
|
2
|
+
import type { ButtonSecondaryProps } from "../button-secondary/index.cjs";
|
|
3
|
+
import type { ButtonTertiaryProps } from "../button-tertiary/index.cjs";
|
|
4
|
+
export declare enum ButtonVariant {
|
|
5
|
+
/**
|
|
6
|
+
* Primary button variant - used for primary actions
|
|
7
|
+
*/
|
|
8
|
+
Primary = "primary",
|
|
9
|
+
/**
|
|
10
|
+
* Secondary button variant - used for secondary actions
|
|
11
|
+
*/
|
|
12
|
+
Secondary = "secondary",
|
|
13
|
+
/**
|
|
14
|
+
* Tertiary button variant - used for tertiary-like actions
|
|
15
|
+
*/
|
|
16
|
+
Tertiary = "tertiary"
|
|
17
|
+
}
|
|
18
|
+
export type ButtonProps = {
|
|
19
|
+
/**
|
|
20
|
+
* Optional prop to control the variant of the Button
|
|
21
|
+
* @default ButtonVariant.Primary
|
|
22
|
+
*/
|
|
23
|
+
variant?: ButtonVariant;
|
|
24
|
+
} & ((Omit<ButtonPrimaryProps, 'ref'> & {
|
|
25
|
+
variant?: ButtonVariant.Primary;
|
|
26
|
+
}) | (Omit<ButtonSecondaryProps, 'ref'> & {
|
|
27
|
+
variant?: ButtonVariant.Secondary;
|
|
28
|
+
}) | (Omit<ButtonTertiaryProps, 'ref'> & {
|
|
29
|
+
variant?: ButtonVariant.Tertiary;
|
|
30
|
+
}));
|
|
31
|
+
//# sourceMappingURL=Button.types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.types.d.cts","sourceRoot":"","sources":["../../../src/components/button/Button.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,oCAA0B;AAC5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,sCAA4B;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,qCAA2B;AAE9D,oBAAY,aAAa;IACvB;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;IACH,SAAS,cAAc;IACvB;;OAEG;IACH,QAAQ,aAAa;CACtB;AAED,MAAM,MAAM,WAAW,GAAG;IACxB;;;OAGG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB,GAAG,CACA,CAAC,IAAI,CAAC,kBAAkB,EAAE,KAAK,CAAC,GAAG;IACjC,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC;CACjC,CAAC,GACF,CAAC,IAAI,CAAC,oBAAoB,EAAE,KAAK,CAAC,GAAG;IACnC,OAAO,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC;CACnC,CAAC,GACF,CAAC,IAAI,CAAC,mBAAmB,EAAE,KAAK,CAAC,GAAG;IAClC,OAAO,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC;CAClC,CAAC,CACL,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ButtonPrimaryProps } from "../button-primary/index.mjs";
|
|
2
|
+
import type { ButtonSecondaryProps } from "../button-secondary/index.mjs";
|
|
3
|
+
import type { ButtonTertiaryProps } from "../button-tertiary/index.mjs";
|
|
4
|
+
export declare enum ButtonVariant {
|
|
5
|
+
/**
|
|
6
|
+
* Primary button variant - used for primary actions
|
|
7
|
+
*/
|
|
8
|
+
Primary = "primary",
|
|
9
|
+
/**
|
|
10
|
+
* Secondary button variant - used for secondary actions
|
|
11
|
+
*/
|
|
12
|
+
Secondary = "secondary",
|
|
13
|
+
/**
|
|
14
|
+
* Tertiary button variant - used for tertiary-like actions
|
|
15
|
+
*/
|
|
16
|
+
Tertiary = "tertiary"
|
|
17
|
+
}
|
|
18
|
+
export type ButtonProps = {
|
|
19
|
+
/**
|
|
20
|
+
* Optional prop to control the variant of the Button
|
|
21
|
+
* @default ButtonVariant.Primary
|
|
22
|
+
*/
|
|
23
|
+
variant?: ButtonVariant;
|
|
24
|
+
} & ((Omit<ButtonPrimaryProps, 'ref'> & {
|
|
25
|
+
variant?: ButtonVariant.Primary;
|
|
26
|
+
}) | (Omit<ButtonSecondaryProps, 'ref'> & {
|
|
27
|
+
variant?: ButtonVariant.Secondary;
|
|
28
|
+
}) | (Omit<ButtonTertiaryProps, 'ref'> & {
|
|
29
|
+
variant?: ButtonVariant.Tertiary;
|
|
30
|
+
}));
|
|
31
|
+
//# sourceMappingURL=Button.types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.types.d.mts","sourceRoot":"","sources":["../../../src/components/button/Button.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,oCAA0B;AAC5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,sCAA4B;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,qCAA2B;AAE9D,oBAAY,aAAa;IACvB;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;IACH,SAAS,cAAc;IACvB;;OAEG;IACH,QAAQ,aAAa;CACtB;AAED,MAAM,MAAM,WAAW,GAAG;IACxB;;;OAGG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB,GAAG,CACA,CAAC,IAAI,CAAC,kBAAkB,EAAE,KAAK,CAAC,GAAG;IACjC,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC;CACjC,CAAC,GACF,CAAC,IAAI,CAAC,oBAAoB,EAAE,KAAK,CAAC,GAAG;IACnC,OAAO,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC;CACnC,CAAC,GACF,CAAC,IAAI,CAAC,mBAAmB,EAAE,KAAK,CAAC,GAAG;IAClC,OAAO,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC;CAClC,CAAC,CACL,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export var ButtonVariant;
|
|
2
|
+
(function (ButtonVariant) {
|
|
3
|
+
/**
|
|
4
|
+
* Primary button variant - used for primary actions
|
|
5
|
+
*/
|
|
6
|
+
ButtonVariant["Primary"] = "primary";
|
|
7
|
+
/**
|
|
8
|
+
* Secondary button variant - used for secondary actions
|
|
9
|
+
*/
|
|
10
|
+
ButtonVariant["Secondary"] = "secondary";
|
|
11
|
+
/**
|
|
12
|
+
* Tertiary button variant - used for tertiary-like actions
|
|
13
|
+
*/
|
|
14
|
+
ButtonVariant["Tertiary"] = "tertiary";
|
|
15
|
+
})(ButtonVariant || (ButtonVariant = {}));
|
|
16
|
+
//# sourceMappingURL=Button.types.mjs.map
|