@metamask-previews/design-system-react-native 0.0.0-preview.8561168 → 0.0.0-preview.85a0952
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/README.md +18 -0
- package/dist/components/AvatarAccount/AvatarAccount.constants.d.ts +1 -2
- package/dist/components/AvatarAccount/AvatarAccount.constants.d.ts.map +1 -1
- package/dist/components/AvatarAccount/AvatarAccount.constants.js +16 -9
- package/dist/components/AvatarAccount/AvatarAccount.constants.js.map +1 -1
- package/dist/components/AvatarAccount/AvatarAccount.d.ts +1 -2
- package/dist/components/AvatarAccount/AvatarAccount.d.ts.map +1 -1
- package/dist/components/AvatarAccount/AvatarAccount.js +17 -14
- package/dist/components/AvatarAccount/AvatarAccount.js.map +1 -1
- package/dist/components/AvatarAccount/AvatarAccount.types.d.ts +18 -5
- package/dist/components/AvatarAccount/AvatarAccount.types.d.ts.map +1 -1
- package/dist/components/AvatarAccount/AvatarAccount.types.js +0 -6
- package/dist/components/AvatarAccount/AvatarAccount.types.js.map +1 -1
- package/dist/components/AvatarAccount/index.d.ts +2 -3
- package/dist/components/AvatarAccount/index.d.ts.map +1 -1
- package/dist/components/AvatarAccount/index.js +5 -9
- package/dist/components/AvatarAccount/index.js.map +1 -1
- package/dist/components/AvatarBase/AvatarBase.constants.d.ts +6 -0
- package/dist/components/AvatarBase/AvatarBase.constants.d.ts.map +1 -0
- package/dist/components/AvatarBase/AvatarBase.constants.js +33 -0
- package/dist/components/AvatarBase/AvatarBase.constants.js.map +1 -0
- package/dist/components/AvatarBase/AvatarBase.d.ts +4 -0
- package/dist/components/AvatarBase/AvatarBase.d.ts.map +1 -0
- package/dist/components/AvatarBase/AvatarBase.js +31 -0
- package/dist/components/AvatarBase/AvatarBase.js.map +1 -0
- package/dist/{primitives → components}/AvatarBase/AvatarBase.types.d.ts +13 -3
- package/dist/components/AvatarBase/AvatarBase.types.d.ts.map +1 -0
- package/dist/components/AvatarBase/AvatarBase.types.js.map +1 -0
- package/dist/components/AvatarBase/index.d.ts +4 -0
- package/dist/components/AvatarBase/index.d.ts.map +1 -0
- package/dist/components/AvatarBase/index.js +9 -0
- package/dist/components/AvatarBase/index.js.map +1 -0
- package/dist/components/AvatarFavicon/AvatarFavicon.d.ts +1 -2
- package/dist/components/AvatarFavicon/AvatarFavicon.d.ts.map +1 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.js +14 -17
- package/dist/components/AvatarFavicon/AvatarFavicon.js.map +1 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.types.d.ts +12 -3
- package/dist/components/AvatarFavicon/AvatarFavicon.types.d.ts.map +1 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.types.js.map +1 -1
- package/dist/components/AvatarFavicon/index.d.ts +2 -2
- package/dist/components/AvatarFavicon/index.d.ts.map +1 -1
- package/dist/components/AvatarFavicon/index.js +4 -7
- package/dist/components/AvatarFavicon/index.js.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.constants.d.ts +5 -0
- package/dist/components/AvatarGroup/AvatarGroup.constants.d.ts.map +1 -0
- package/dist/components/AvatarGroup/AvatarGroup.constants.js +21 -0
- package/dist/components/AvatarGroup/AvatarGroup.constants.js.map +1 -0
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +4 -0
- package/dist/components/AvatarGroup/AvatarGroup.d.ts.map +1 -0
- package/dist/components/AvatarGroup/AvatarGroup.js +71 -0
- package/dist/components/AvatarGroup/AvatarGroup.js.map +1 -0
- package/dist/components/AvatarGroup/AvatarGroup.types.d.ts +68 -0
- package/dist/components/AvatarGroup/AvatarGroup.types.d.ts.map +1 -0
- package/dist/components/AvatarGroup/AvatarGroup.types.js +3 -0
- package/dist/components/AvatarGroup/AvatarGroup.types.js.map +1 -0
- package/dist/components/AvatarGroup/index.d.ts +4 -0
- package/dist/components/AvatarGroup/index.d.ts.map +1 -0
- package/dist/components/AvatarGroup/index.js +9 -0
- package/dist/components/AvatarGroup/index.js.map +1 -0
- package/dist/components/AvatarIcon/AvatarIcon.constants.d.ts +1 -4
- package/dist/components/AvatarIcon/AvatarIcon.constants.d.ts.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.constants.js +17 -24
- package/dist/components/AvatarIcon/AvatarIcon.constants.js.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.d.ts +1 -2
- package/dist/components/AvatarIcon/AvatarIcon.d.ts.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.js +14 -39
- package/dist/components/AvatarIcon/AvatarIcon.js.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.types.d.ts +5 -10
- package/dist/components/AvatarIcon/AvatarIcon.types.d.ts.map +1 -1
- package/dist/components/AvatarIcon/AvatarIcon.types.js +0 -9
- package/dist/components/AvatarIcon/AvatarIcon.types.js.map +1 -1
- package/dist/components/AvatarIcon/index.d.ts +2 -3
- package/dist/components/AvatarIcon/index.d.ts.map +1 -1
- package/dist/components/AvatarIcon/index.js +5 -9
- package/dist/components/AvatarIcon/index.js.map +1 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.d.ts +1 -2
- package/dist/components/AvatarNetwork/AvatarNetwork.d.ts.map +1 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.js +14 -17
- package/dist/components/AvatarNetwork/AvatarNetwork.js.map +1 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.types.d.ts +12 -3
- package/dist/components/AvatarNetwork/AvatarNetwork.types.d.ts.map +1 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.types.js.map +1 -1
- package/dist/components/AvatarNetwork/index.d.ts +2 -2
- package/dist/components/AvatarNetwork/index.d.ts.map +1 -1
- package/dist/components/AvatarNetwork/index.js +4 -7
- package/dist/components/AvatarNetwork/index.js.map +1 -1
- package/dist/components/AvatarToken/AvatarToken.d.ts +1 -2
- package/dist/components/AvatarToken/AvatarToken.d.ts.map +1 -1
- package/dist/components/AvatarToken/AvatarToken.js +14 -17
- package/dist/components/AvatarToken/AvatarToken.js.map +1 -1
- package/dist/components/AvatarToken/AvatarToken.types.d.ts +12 -3
- package/dist/components/AvatarToken/AvatarToken.types.d.ts.map +1 -1
- package/dist/components/AvatarToken/AvatarToken.types.js.map +1 -1
- package/dist/components/AvatarToken/index.d.ts +2 -2
- package/dist/components/AvatarToken/index.d.ts.map +1 -1
- package/dist/components/AvatarToken/index.js +4 -7
- package/dist/components/AvatarToken/index.js.map +1 -1
- package/dist/components/BadgeCount/BadgeCount.constants.d.ts +6 -0
- package/dist/components/BadgeCount/BadgeCount.constants.d.ts.map +1 -0
- package/dist/components/BadgeCount/BadgeCount.constants.js +19 -0
- package/dist/components/BadgeCount/BadgeCount.constants.js.map +1 -0
- package/dist/components/BadgeCount/BadgeCount.d.ts +4 -0
- package/dist/components/BadgeCount/BadgeCount.d.ts.map +1 -0
- package/dist/components/BadgeCount/BadgeCount.js +30 -0
- package/dist/components/BadgeCount/BadgeCount.js.map +1 -0
- package/dist/components/BadgeCount/BadgeCount.types.d.ts +39 -0
- package/dist/components/BadgeCount/BadgeCount.types.d.ts.map +1 -0
- package/dist/components/BadgeCount/BadgeCount.types.js +3 -0
- package/dist/components/BadgeCount/BadgeCount.types.js.map +1 -0
- package/dist/components/BadgeCount/index.d.ts +4 -0
- package/dist/components/BadgeCount/index.d.ts.map +1 -0
- package/dist/components/BadgeCount/index.js +8 -0
- package/dist/components/BadgeCount/index.js.map +1 -0
- package/dist/components/BadgeIcon/BadgeIcon.d.ts +4 -0
- package/dist/components/BadgeIcon/BadgeIcon.d.ts.map +1 -0
- package/dist/components/BadgeIcon/BadgeIcon.js +26 -0
- package/dist/components/BadgeIcon/BadgeIcon.js.map +1 -0
- package/dist/components/BadgeIcon/BadgeIcon.types.d.ts +20 -0
- package/dist/components/BadgeIcon/BadgeIcon.types.d.ts.map +1 -0
- package/dist/components/BadgeIcon/BadgeIcon.types.js +3 -0
- package/dist/components/BadgeIcon/BadgeIcon.types.js.map +1 -0
- package/dist/components/BadgeIcon/index.d.ts +3 -0
- package/dist/components/BadgeIcon/index.d.ts.map +1 -0
- package/dist/components/BadgeIcon/index.js +6 -0
- package/dist/components/BadgeIcon/index.js.map +1 -0
- package/dist/components/BadgeNetwork/BadgeNetwork.d.ts +4 -0
- package/dist/components/BadgeNetwork/BadgeNetwork.d.ts.map +1 -0
- package/dist/components/BadgeNetwork/BadgeNetwork.js +11 -0
- package/dist/components/BadgeNetwork/BadgeNetwork.js.map +1 -0
- package/dist/components/BadgeNetwork/BadgeNetwork.types.d.ts +17 -0
- package/dist/components/BadgeNetwork/BadgeNetwork.types.d.ts.map +1 -0
- package/dist/components/BadgeNetwork/BadgeNetwork.types.js +3 -0
- package/dist/components/BadgeNetwork/BadgeNetwork.types.js.map +1 -0
- package/dist/components/BadgeNetwork/index.d.ts +3 -0
- package/dist/components/BadgeNetwork/index.d.ts.map +1 -0
- package/dist/components/BadgeNetwork/index.js +6 -0
- package/dist/components/BadgeNetwork/index.js.map +1 -0
- package/dist/components/BadgeStatus/BadgeStatus.constants.d.ts +4 -0
- package/dist/components/BadgeStatus/BadgeStatus.constants.d.ts.map +1 -0
- package/dist/components/BadgeStatus/BadgeStatus.constants.js +17 -0
- package/dist/components/BadgeStatus/BadgeStatus.constants.js.map +1 -0
- package/dist/components/BadgeStatus/BadgeStatus.d.ts +4 -0
- package/dist/components/BadgeStatus/BadgeStatus.d.ts.map +1 -0
- package/dist/components/BadgeStatus/BadgeStatus.js +24 -0
- package/dist/components/BadgeStatus/BadgeStatus.js.map +1 -0
- package/dist/components/BadgeStatus/BadgeStatus.types.d.ts +37 -0
- package/dist/components/BadgeStatus/BadgeStatus.types.d.ts.map +1 -0
- package/dist/components/BadgeStatus/BadgeStatus.types.js +3 -0
- package/dist/components/BadgeStatus/BadgeStatus.types.js.map +1 -0
- package/dist/components/BadgeStatus/index.d.ts +4 -0
- package/dist/components/BadgeStatus/index.d.ts.map +1 -0
- package/dist/components/BadgeStatus/index.js +9 -0
- package/dist/components/BadgeStatus/index.js.map +1 -0
- package/dist/components/BadgeWrapper/BadgeWrapper.d.ts +4 -0
- package/dist/components/BadgeWrapper/BadgeWrapper.d.ts.map +1 -0
- package/dist/components/BadgeWrapper/BadgeWrapper.js +110 -0
- package/dist/components/BadgeWrapper/BadgeWrapper.js.map +1 -0
- package/dist/components/BadgeWrapper/BadgeWrapper.types.d.ts +73 -0
- package/dist/components/BadgeWrapper/BadgeWrapper.types.d.ts.map +1 -0
- package/dist/components/BadgeWrapper/BadgeWrapper.types.js +3 -0
- package/dist/components/BadgeWrapper/BadgeWrapper.types.js.map +1 -0
- package/dist/components/BadgeWrapper/index.d.ts +5 -0
- package/dist/components/BadgeWrapper/index.d.ts.map +1 -0
- package/dist/components/BadgeWrapper/index.js +9 -0
- package/dist/components/BadgeWrapper/index.js.map +1 -0
- package/dist/components/Button/Button.d.ts +1 -2
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +13 -12
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/Button.types.d.ts +1 -10
- package/dist/components/Button/Button.types.d.ts.map +1 -1
- package/dist/components/Button/Button.types.js +0 -12
- package/dist/components/Button/Button.types.js.map +1 -1
- package/dist/components/Button/index.d.ts +2 -2
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +5 -8
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.ts +1 -2
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.d.ts.map +1 -1
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.js +63 -54
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.js.map +1 -1
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.types.d.ts +3 -1
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.types.d.ts.map +1 -1
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.types.js.map +1 -1
- package/dist/components/Button/variants/ButtonPrimary/index.d.ts +2 -2
- package/dist/components/Button/variants/ButtonPrimary/index.d.ts.map +1 -1
- package/dist/components/Button/variants/ButtonPrimary/index.js +4 -7
- package/dist/components/Button/variants/ButtonPrimary/index.js.map +1 -1
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.ts +1 -2
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.d.ts.map +1 -1
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.js +62 -50
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.js.map +1 -1
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.types.d.ts +3 -1
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.types.d.ts.map +1 -1
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.types.js.map +1 -1
- package/dist/components/Button/variants/ButtonSecondary/index.d.ts +2 -2
- package/dist/components/Button/variants/ButtonSecondary/index.d.ts.map +1 -1
- package/dist/components/Button/variants/ButtonSecondary/index.js +4 -7
- package/dist/components/Button/variants/ButtonSecondary/index.js.map +1 -1
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.ts +1 -2
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.d.ts.map +1 -1
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.js +69 -50
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.js.map +1 -1
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.types.d.ts +3 -1
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.types.d.ts.map +1 -1
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.types.js.map +1 -1
- package/dist/components/Button/variants/ButtonTertiary/index.d.ts +2 -2
- package/dist/components/Button/variants/ButtonTertiary/index.d.ts.map +1 -1
- package/dist/components/Button/variants/ButtonTertiary/index.js +4 -7
- package/dist/components/Button/variants/ButtonTertiary/index.js.map +1 -1
- package/dist/components/ButtonBase/ButtonBase.d.ts +4 -0
- package/dist/components/ButtonBase/ButtonBase.d.ts.map +1 -0
- package/dist/components/ButtonBase/ButtonBase.js +48 -0
- package/dist/components/ButtonBase/ButtonBase.js.map +1 -0
- package/dist/{primitives → components}/ButtonBase/ButtonBase.types.d.ts +9 -17
- package/dist/components/ButtonBase/ButtonBase.types.d.ts.map +1 -0
- package/dist/components/ButtonBase/ButtonBase.types.js +3 -0
- package/dist/components/ButtonBase/ButtonBase.types.js.map +1 -0
- package/dist/components/ButtonBase/index.d.ts +4 -0
- package/dist/components/ButtonBase/index.d.ts.map +1 -0
- package/dist/components/ButtonBase/index.js +8 -0
- package/dist/components/ButtonBase/index.js.map +1 -0
- package/dist/components/ButtonIcon/ButtonIcon.constants.d.ts +7 -4
- package/dist/components/ButtonIcon/ButtonIcon.constants.d.ts.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.constants.js +10 -13
- package/dist/components/ButtonIcon/ButtonIcon.constants.js.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.d.ts +1 -2
- package/dist/components/ButtonIcon/ButtonIcon.d.ts.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.js +17 -32
- package/dist/components/ButtonIcon/ButtonIcon.js.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.types.d.ts +8 -16
- package/dist/components/ButtonIcon/ButtonIcon.types.d.ts.map +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.types.js +0 -16
- package/dist/components/ButtonIcon/ButtonIcon.types.js.map +1 -1
- package/dist/components/ButtonIcon/index.d.ts +2 -2
- package/dist/components/ButtonIcon/index.d.ts.map +1 -1
- package/dist/components/ButtonIcon/index.js +4 -7
- package/dist/components/ButtonIcon/index.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +17 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.js +122 -0
- package/dist/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts +57 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.types.js +3 -0
- package/dist/components/Checkbox/Checkbox.types.js.map +1 -0
- package/dist/components/Checkbox/index.d.ts +3 -0
- package/dist/components/Checkbox/index.d.ts.map +1 -0
- package/dist/components/Checkbox/index.js +6 -0
- package/dist/components/Checkbox/index.js.map +1 -0
- package/dist/components/Icon/Icon.assets.d.ts.map +1 -1
- package/dist/components/Icon/Icon.assets.js +403 -169
- package/dist/components/Icon/Icon.assets.js.map +1 -1
- package/dist/components/Icon/Icon.d.ts +1 -2
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/Icon/Icon.js +4 -3
- package/dist/components/Icon/Icon.js.map +1 -1
- package/dist/components/Icon/Icon.types.d.ts +3 -218
- package/dist/components/Icon/Icon.types.d.ts.map +1 -1
- package/dist/components/Icon/Icon.types.js +0 -226
- package/dist/components/Icon/Icon.types.js.map +1 -1
- package/dist/components/Icon/Icon.utilities.d.ts.map +1 -1
- package/dist/components/Icon/Icon.utilities.js +2 -2
- package/dist/components/Icon/Icon.utilities.js.map +1 -1
- package/dist/components/Icon/assets/accessibility.svg +1 -0
- package/dist/components/Icon/assets/activity.svg +1 -0
- package/dist/components/Icon/assets/add-card.svg +1 -0
- package/dist/components/Icon/assets/add-circle.svg +1 -0
- package/dist/components/Icon/assets/add-square.svg +1 -0
- package/dist/components/Icon/assets/add.svg +1 -0
- package/dist/components/Icon/assets/ai.svg +1 -0
- package/dist/components/Icon/assets/alternate-email.svg +1 -0
- package/dist/components/Icon/assets/apps.svg +1 -0
- package/dist/components/Icon/assets/arrow-2-down.svg +1 -0
- package/dist/components/Icon/assets/arrow-2-left.svg +1 -0
- package/dist/components/Icon/assets/arrow-2-right.svg +1 -0
- package/dist/components/Icon/assets/arrow-2-up-right.svg +1 -0
- package/dist/components/Icon/assets/arrow-2-up.svg +1 -0
- package/dist/components/Icon/assets/arrow-circle-down.svg +1 -0
- package/dist/components/Icon/assets/arrow-circle-up.svg +1 -0
- package/dist/components/Icon/assets/arrow-double-left.svg +1 -0
- package/dist/components/Icon/assets/arrow-double-right.svg +1 -0
- package/dist/components/Icon/assets/arrow-down.svg +1 -0
- package/dist/components/Icon/assets/arrow-drop-down-circle.svg +1 -0
- package/dist/components/Icon/assets/arrow-left.svg +1 -0
- package/dist/components/Icon/assets/arrow-right.svg +1 -0
- package/dist/components/Icon/assets/arrow-up.svg +1 -0
- package/dist/components/Icon/assets/attachment.svg +1 -0
- package/dist/components/Icon/assets/ban.svg +1 -0
- package/dist/components/Icon/assets/bank-assured.svg +1 -0
- package/dist/components/Icon/assets/bank.svg +1 -0
- package/dist/components/Icon/assets/bold.svg +1 -0
- package/dist/components/Icon/assets/book.svg +1 -0
- package/dist/components/Icon/assets/bookmark.svg +1 -0
- package/dist/components/Icon/assets/bridge.svg +1 -0
- package/dist/components/Icon/assets/briefcase.svg +1 -0
- package/dist/components/Icon/assets/bulb.svg +1 -0
- package/dist/components/Icon/assets/buy-sell.svg +1 -0
- package/dist/components/Icon/assets/cake.svg +1 -0
- package/dist/components/Icon/assets/calculator.svg +1 -0
- package/dist/components/Icon/assets/calendar.svg +1 -0
- package/dist/components/Icon/assets/call.svg +1 -0
- package/dist/components/Icon/assets/camera.svg +1 -0
- package/dist/components/Icon/assets/campaign.svg +1 -0
- package/dist/components/Icon/assets/card-pos.svg +1 -0
- package/dist/components/Icon/assets/card.svg +1 -0
- package/dist/components/Icon/assets/cash.svg +1 -0
- package/dist/components/Icon/assets/category.svg +1 -0
- package/dist/components/Icon/assets/chart.svg +1 -0
- package/dist/components/Icon/assets/check-bold.svg +1 -0
- package/dist/components/Icon/assets/check.svg +1 -0
- package/dist/components/Icon/assets/circle-x.svg +1 -0
- package/dist/components/Icon/assets/clock-filled.svg +1 -0
- package/dist/components/Icon/assets/clock.svg +1 -0
- package/dist/components/Icon/assets/close.svg +1 -0
- package/dist/components/Icon/assets/cloud-download.svg +1 -0
- package/dist/components/Icon/assets/cloud-upload.svg +1 -0
- package/dist/components/Icon/assets/cloud.svg +1 -0
- package/dist/components/Icon/assets/code-circle.svg +1 -0
- package/dist/components/Icon/assets/code.svg +1 -0
- package/dist/components/Icon/assets/coin.svg +1 -0
- package/dist/components/Icon/assets/collapse.svg +1 -0
- package/dist/components/Icon/assets/confirmation.svg +1 -0
- package/dist/components/Icon/assets/connect.svg +1 -0
- package/dist/components/Icon/assets/copy-success.svg +1 -0
- package/dist/components/Icon/assets/copy.svg +1 -0
- package/dist/components/Icon/assets/credit-check.svg +1 -0
- package/dist/components/Icon/assets/currency-franc.svg +1 -0
- package/dist/components/Icon/assets/currency-lira.svg +1 -0
- package/dist/components/Icon/assets/currency-pound.svg +1 -0
- package/dist/components/Icon/assets/currency-yuan.svg +3 -0
- package/dist/components/Icon/assets/customize.svg +1 -0
- package/dist/components/Icon/assets/danger.svg +1 -0
- package/dist/components/Icon/assets/dark-filled.svg +1 -0
- package/dist/components/Icon/assets/dark.svg +1 -0
- package/dist/components/Icon/assets/data.svg +1 -0
- package/dist/components/Icon/assets/description.svg +1 -0
- package/dist/components/Icon/assets/details.svg +1 -0
- package/dist/components/Icon/assets/diagram.svg +1 -0
- package/dist/components/Icon/assets/document-code.svg +1 -0
- package/dist/components/Icon/assets/download.svg +1 -0
- package/dist/components/Icon/assets/draft.svg +1 -0
- package/dist/components/Icon/assets/eco-leaf.svg +1 -0
- package/dist/components/Icon/assets/edit-square.svg +1 -0
- package/dist/components/Icon/assets/edit.svg +1 -0
- package/dist/components/Icon/assets/encrypted-add.svg +1 -0
- package/dist/components/Icon/assets/eraser.svg +1 -0
- package/dist/components/Icon/assets/error.svg +1 -0
- package/dist/components/Icon/assets/ethereum.svg +1 -0
- package/dist/components/Icon/assets/exchange.svg +1 -0
- package/dist/components/Icon/assets/expand-vertical.svg +1 -0
- package/dist/components/Icon/assets/expand.svg +1 -0
- package/dist/components/Icon/assets/explore-filled.svg +1 -0
- package/dist/components/Icon/assets/explore.svg +1 -0
- package/dist/components/Icon/assets/export.svg +1 -0
- package/dist/components/Icon/assets/extension.svg +1 -0
- package/dist/components/Icon/assets/eye-slash.svg +1 -0
- package/dist/components/Icon/assets/eye.svg +1 -0
- package/dist/components/Icon/assets/face-id.svg +1 -0
- package/dist/components/Icon/assets/feedback.svg +1 -0
- package/dist/components/Icon/assets/file.svg +1 -0
- package/dist/components/Icon/assets/filter.svg +1 -0
- package/dist/components/Icon/assets/fingerprint.svg +1 -0
- package/dist/components/Icon/assets/fire.svg +1 -0
- package/dist/components/Icon/assets/first-page.svg +1 -0
- package/dist/components/Icon/assets/flag.svg +1 -0
- package/dist/components/Icon/assets/flash-slash.svg +1 -0
- package/dist/components/Icon/assets/flash.svg +1 -0
- package/dist/components/Icon/assets/flask.svg +1 -0
- package/dist/components/Icon/assets/flower.svg +1 -0
- package/dist/components/Icon/assets/folder.svg +1 -0
- package/dist/components/Icon/assets/forest.svg +1 -0
- package/dist/components/Icon/assets/full-circle.svg +1 -0
- package/dist/components/Icon/assets/gas.svg +1 -0
- package/dist/components/Icon/assets/gift.svg +1 -0
- package/dist/components/Icon/assets/global-search.svg +1 -0
- package/dist/components/Icon/assets/global.svg +1 -0
- package/dist/components/Icon/assets/graph.svg +1 -0
- package/dist/components/Icon/assets/hardware.svg +1 -0
- package/dist/components/Icon/assets/hash-tag.svg +1 -0
- package/dist/components/Icon/assets/heart-filled.svg +1 -0
- package/dist/components/Icon/assets/heart.svg +1 -0
- package/dist/components/Icon/assets/hierarchy.svg +1 -0
- package/dist/components/Icon/assets/home-filled.svg +1 -0
- package/dist/components/Icon/assets/home.svg +1 -0
- package/dist/components/Icon/assets/image.svg +1 -0
- package/dist/components/Icon/assets/info.svg +1 -0
- package/dist/components/Icon/assets/inventory.svg +1 -0
- package/dist/components/Icon/assets/joystick.svg +1 -0
- package/dist/components/Icon/assets/keep-filled.svg +1 -0
- package/dist/components/Icon/assets/keep.svg +1 -0
- package/dist/components/Icon/assets/key.svg +1 -0
- package/dist/components/Icon/assets/last-page.svg +1 -0
- package/dist/components/Icon/assets/light-filled.svg +1 -0
- package/dist/components/Icon/assets/light.svg +1 -0
- package/dist/components/Icon/assets/link.svg +1 -0
- package/dist/components/Icon/assets/loading.svg +1 -0
- package/dist/components/Icon/assets/location.svg +1 -0
- package/dist/components/Icon/assets/lock-slash.svg +1 -0
- package/dist/components/Icon/assets/lock.svg +1 -0
- package/dist/components/Icon/assets/locked-filled.svg +1 -0
- package/dist/components/Icon/assets/login.svg +1 -0
- package/dist/components/Icon/assets/logout.svg +1 -0
- package/dist/components/Icon/assets/mail.svg +1 -0
- package/dist/components/Icon/assets/map.svg +1 -0
- package/dist/components/Icon/assets/menu.svg +1 -0
- package/dist/components/Icon/assets/message-question.svg +1 -0
- package/dist/components/Icon/assets/messages.svg +1 -0
- package/dist/components/Icon/assets/mic.svg +1 -0
- package/dist/components/Icon/assets/minus-bold.svg +1 -0
- package/dist/components/Icon/assets/minus-square.svg +1 -0
- package/dist/components/Icon/assets/minus.svg +1 -0
- package/dist/components/Icon/assets/mobile.svg +1 -0
- package/dist/components/Icon/assets/money-bag.svg +1 -0
- package/dist/components/Icon/assets/money.svg +1 -0
- package/dist/components/Icon/assets/monitor.svg +1 -0
- package/dist/components/Icon/assets/more-horizontal.svg +1 -0
- package/dist/components/Icon/assets/more-vertical.svg +1 -0
- package/dist/components/Icon/assets/mountain-flag.svg +1 -0
- package/dist/components/Icon/assets/music-note.svg +1 -0
- package/dist/components/Icon/assets/notification.svg +1 -0
- package/dist/components/Icon/assets/page-info.svg +1 -0
- package/dist/components/Icon/assets/palette.svg +1 -0
- package/dist/components/Icon/assets/password-check.svg +1 -0
- package/dist/components/Icon/assets/pending.svg +1 -0
- package/dist/components/Icon/assets/people.svg +1 -0
- package/dist/components/Icon/assets/person-cancel.svg +1 -0
- package/dist/components/Icon/assets/pin.svg +1 -0
- package/dist/components/Icon/assets/plant.svg +1 -0
- package/dist/components/Icon/assets/plug.svg +1 -0
- package/dist/components/Icon/assets/plus-and-minus.svg +1 -0
- package/dist/components/Icon/assets/policy-alert.svg +1 -0
- package/dist/components/Icon/assets/print.svg +1 -0
- package/dist/components/Icon/assets/priority-high.svg +1 -0
- package/dist/components/Icon/assets/privacy-tip.svg +1 -0
- package/dist/components/Icon/assets/programming-arrows.svg +1 -0
- package/dist/components/Icon/assets/publish.svg +1 -0
- package/dist/components/Icon/assets/qr-code.svg +1 -0
- package/dist/components/Icon/assets/question.svg +1 -0
- package/dist/components/Icon/assets/receive.svg +1 -0
- package/dist/components/Icon/assets/received.svg +1 -0
- package/dist/components/Icon/assets/refresh.svg +1 -0
- package/dist/components/Icon/assets/remove-minus.svg +1 -0
- package/dist/components/Icon/assets/report.svg +1 -0
- package/dist/components/Icon/assets/rocket.svg +1 -0
- package/dist/components/Icon/assets/save-filled.svg +1 -0
- package/dist/components/Icon/assets/save.svg +1 -0
- package/dist/components/Icon/assets/saving.svg +1 -0
- package/dist/components/Icon/assets/scan-barcode.svg +1 -0
- package/dist/components/Icon/assets/scan-focus.svg +1 -0
- package/dist/components/Icon/assets/scan.svg +1 -0
- package/dist/components/Icon/assets/search.svg +1 -0
- package/dist/components/Icon/assets/security-alert.svg +1 -0
- package/dist/components/Icon/assets/security-cross.svg +1 -0
- package/dist/components/Icon/assets/security-key.svg +1 -0
- package/dist/components/Icon/assets/security-search.svg +1 -0
- package/dist/components/Icon/assets/security-slash.svg +1 -0
- package/dist/components/Icon/assets/security-tick.svg +1 -0
- package/dist/components/Icon/assets/security-time.svg +1 -0
- package/dist/components/Icon/assets/security-user.svg +1 -0
- package/dist/components/Icon/assets/security.svg +1 -0
- package/dist/components/Icon/assets/send.svg +1 -0
- package/dist/components/Icon/assets/sentiment-dissatisfied.svg +1 -0
- package/dist/components/Icon/assets/sentiment-neutral.svg +1 -0
- package/dist/components/Icon/assets/sentiment-satisfied.svg +1 -0
- package/dist/components/Icon/assets/sentiment-very-satisfied.svg +1 -0
- package/dist/components/Icon/assets/setting-filled.svg +1 -0
- package/dist/components/Icon/assets/setting.svg +1 -0
- package/dist/components/Icon/assets/share.svg +1 -0
- package/dist/components/Icon/assets/shield-lock.svg +1 -0
- package/dist/components/Icon/assets/shopping-bag.svg +1 -0
- package/dist/components/Icon/assets/shopping-cart.svg +1 -0
- package/dist/components/Icon/assets/signal-cellular.svg +1 -0
- package/dist/components/Icon/assets/slash.svg +1 -0
- package/dist/components/Icon/assets/sms.svg +1 -0
- package/dist/components/Icon/assets/snaps-mobile.svg +1 -0
- package/dist/components/Icon/assets/snaps-plus.svg +1 -0
- package/dist/components/Icon/assets/snaps-round.svg +1 -0
- package/dist/components/Icon/assets/snaps.svg +1 -0
- package/dist/components/Icon/assets/sort-by-alpha.svg +1 -0
- package/dist/components/Icon/assets/sort.svg +1 -0
- package/dist/components/Icon/assets/sparkle.svg +1 -0
- package/dist/components/Icon/assets/speed.svg +1 -0
- package/dist/components/Icon/assets/speedometer.svg +1 -0
- package/dist/components/Icon/assets/square.svg +1 -0
- package/dist/components/Icon/assets/stake.svg +1 -0
- package/dist/components/Icon/assets/star-filled.svg +1 -0
- package/dist/components/Icon/assets/star.svg +1 -0
- package/dist/components/Icon/assets/start.svg +1 -0
- package/dist/components/Icon/assets/storefront.svg +1 -0
- package/dist/components/Icon/assets/student.svg +1 -0
- package/dist/components/Icon/assets/swap-horizontal.svg +1 -0
- package/dist/components/Icon/assets/swap-vertical.svg +3 -0
- package/dist/components/Icon/assets/tab-close.svg +1 -0
- package/dist/components/Icon/assets/table-row.svg +1 -0
- package/dist/components/Icon/assets/tablet.svg +1 -0
- package/dist/components/Icon/assets/tag.svg +1 -0
- package/dist/components/Icon/assets/thumb-down-filled.svg +1 -0
- package/dist/components/Icon/assets/thumb-down.svg +1 -0
- package/dist/components/Icon/assets/thumb-up-filled.svg +1 -0
- package/dist/components/Icon/assets/thumb-up.svg +1 -0
- package/dist/components/Icon/assets/tint.svg +1 -0
- package/dist/components/Icon/assets/tooltip.svg +1 -0
- package/dist/components/Icon/assets/translate.svg +1 -0
- package/dist/components/Icon/assets/trash.svg +1 -0
- package/dist/components/Icon/assets/trend-down.svg +1 -0
- package/dist/components/Icon/assets/trend-up.svg +1 -0
- package/dist/components/Icon/assets/undo.svg +1 -0
- package/dist/components/Icon/assets/unfold.svg +1 -0
- package/dist/components/Icon/assets/unlocked-filled.svg +1 -0
- package/dist/components/Icon/assets/unpin.svg +1 -0
- package/dist/components/Icon/assets/upload-file.svg +1 -0
- package/dist/components/Icon/assets/upload.svg +1 -0
- package/dist/components/Icon/assets/usb.svg +1 -0
- package/dist/components/Icon/assets/user-check.svg +1 -0
- package/dist/components/Icon/assets/user-circle-add.svg +1 -0
- package/dist/components/Icon/assets/user-circle-remove.svg +1 -0
- package/dist/components/Icon/assets/user-circle.svg +1 -0
- package/dist/components/Icon/assets/user.svg +1 -0
- package/dist/components/Icon/assets/verified-filled.svg +1 -0
- package/dist/components/Icon/assets/verified.svg +1 -0
- package/dist/components/Icon/assets/videocam.svg +1 -0
- package/dist/components/Icon/assets/view-column.svg +1 -0
- package/dist/components/Icon/assets/view-in-ar.svg +1 -0
- package/dist/components/Icon/assets/volume-off.svg +1 -0
- package/dist/components/Icon/assets/volume-up.svg +1 -0
- package/dist/components/Icon/assets/wallet-filled.svg +1 -0
- package/dist/components/Icon/assets/wallet.svg +1 -0
- package/dist/components/Icon/assets/warning.svg +1 -0
- package/dist/components/Icon/assets/web-traffic.svg +1 -0
- package/dist/components/Icon/assets/widgets.svg +1 -0
- package/dist/components/Icon/assets/wifi-off.svg +1 -0
- package/dist/components/Icon/assets/wifi.svg +1 -0
- package/dist/components/Icon/assets/x.svg +1 -0
- package/dist/components/Icon/index.d.ts +2 -2
- package/dist/components/Icon/index.d.ts.map +1 -1
- package/dist/components/Icon/index.js +6 -9
- package/dist/components/Icon/index.js.map +1 -1
- package/dist/components/Text/Text.constants.d.ts +5 -6
- package/dist/components/Text/Text.constants.d.ts.map +1 -1
- package/dist/components/Text/Text.constants.js +17 -15
- package/dist/components/Text/Text.constants.js.map +1 -1
- package/dist/components/Text/Text.d.ts +1 -2
- package/dist/components/Text/Text.d.ts.map +1 -1
- package/dist/components/Text/Text.js +38 -13
- package/dist/components/Text/Text.js.map +1 -1
- package/dist/components/Text/Text.types.d.ts +14 -79
- package/dist/components/Text/Text.types.d.ts.map +1 -1
- package/dist/components/Text/Text.types.js +0 -86
- package/dist/components/Text/Text.types.js.map +1 -1
- package/dist/components/Text/Text.utilities.d.ts +4 -2
- package/dist/components/Text/Text.utilities.d.ts.map +1 -1
- package/dist/components/Text/Text.utilities.js +7 -6
- package/dist/components/Text/Text.utilities.js.map +1 -1
- package/dist/components/Text/index.d.ts +2 -2
- package/dist/components/Text/index.d.ts.map +1 -1
- package/dist/components/Text/index.js +8 -10
- package/dist/components/Text/index.js.map +1 -1
- package/dist/components/TextButton/TextButton.constants.d.ts +3 -2
- package/dist/components/TextButton/TextButton.constants.d.ts.map +1 -1
- package/dist/components/TextButton/TextButton.constants.js +7 -24
- package/dist/components/TextButton/TextButton.constants.js.map +1 -1
- package/dist/components/TextButton/TextButton.d.ts +1 -2
- package/dist/components/TextButton/TextButton.d.ts.map +1 -1
- package/dist/components/TextButton/TextButton.js +33 -152
- package/dist/components/TextButton/TextButton.js.map +1 -1
- package/dist/components/TextButton/TextButton.types.d.ts +11 -15
- package/dist/components/TextButton/TextButton.types.d.ts.map +1 -1
- package/dist/components/TextButton/TextButton.types.js.map +1 -1
- package/dist/components/TextButton/index.d.ts +2 -1
- package/dist/components/TextButton/index.d.ts.map +1 -1
- package/dist/components/TextButton/index.js +4 -5
- package/dist/components/TextButton/index.js.map +1 -1
- package/dist/components/index.d.ts +49 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +81 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/temp-components/Blockies/Blockies.d.ts +4 -0
- package/dist/components/temp-components/Blockies/Blockies.d.ts.map +1 -0
- package/dist/{primitives → components/temp-components}/Blockies/Blockies.js +4 -5
- package/dist/components/temp-components/Blockies/Blockies.js.map +1 -0
- package/dist/{primitives → components/temp-components}/Blockies/Blockies.types.d.ts +1 -1
- package/dist/components/temp-components/Blockies/Blockies.types.d.ts.map +1 -0
- package/dist/components/temp-components/Blockies/Blockies.types.js.map +1 -0
- package/dist/components/temp-components/Blockies/Blockies.utilities.d.ts +24 -0
- package/dist/components/temp-components/Blockies/Blockies.utilities.d.ts.map +1 -0
- package/dist/components/temp-components/Blockies/Blockies.utilities.js +492 -0
- package/dist/components/temp-components/Blockies/Blockies.utilities.js.map +1 -0
- package/dist/components/temp-components/Blockies/index.d.ts +3 -0
- package/dist/components/temp-components/Blockies/index.d.ts.map +1 -0
- package/dist/components/temp-components/Blockies/index.js +6 -0
- package/dist/components/temp-components/Blockies/index.js.map +1 -0
- package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.ts +4 -0
- package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.d.ts.map +1 -0
- package/dist/{primitives → components/temp-components}/ButtonAnimated/ButtonAnimated.js +2 -1
- package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.js.map +1 -0
- package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.d.ts.map +1 -0
- package/dist/components/temp-components/ButtonAnimated/ButtonAnimated.types.js.map +1 -0
- package/dist/components/temp-components/ButtonAnimated/index.d.ts +3 -0
- package/dist/components/temp-components/ButtonAnimated/index.d.ts.map +1 -0
- package/dist/components/temp-components/ButtonAnimated/index.js +6 -0
- package/dist/components/temp-components/ButtonAnimated/index.js.map +1 -0
- package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.d.ts +4 -0
- package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.d.ts.map +1 -0
- package/dist/{primitives → components/temp-components}/ImageOrSvg/ImageOrSvg.js +3 -5
- package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.js.map +1 -0
- package/dist/{primitives → components/temp-components}/ImageOrSvg/ImageOrSvg.types.d.ts +7 -7
- package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.d.ts.map +1 -0
- package/dist/components/temp-components/ImageOrSvg/ImageOrSvg.types.js.map +1 -0
- package/dist/components/temp-components/ImageOrSvg/index.d.ts +3 -0
- package/dist/components/temp-components/ImageOrSvg/index.d.ts.map +1 -0
- package/dist/components/temp-components/ImageOrSvg/index.js +6 -0
- package/dist/components/temp-components/ImageOrSvg/index.js.map +1 -0
- package/dist/components/temp-components/Jazzicon/Jazzicon.d.ts +4 -0
- package/dist/components/temp-components/Jazzicon/Jazzicon.d.ts.map +1 -0
- package/dist/{primitives → components/temp-components}/Jazzicon/Jazzicon.js +2 -2
- package/dist/components/temp-components/Jazzicon/Jazzicon.js.map +1 -0
- package/dist/{primitives → components/temp-components}/Jazzicon/Jazzicon.types.d.ts +1 -1
- package/dist/components/temp-components/Jazzicon/Jazzicon.types.d.ts.map +1 -0
- package/dist/components/temp-components/Jazzicon/Jazzicon.types.js.map +1 -0
- package/dist/components/temp-components/Jazzicon/index.d.ts +3 -0
- package/dist/components/temp-components/Jazzicon/index.d.ts.map +1 -0
- package/dist/components/temp-components/Jazzicon/index.js +6 -0
- package/dist/components/temp-components/Jazzicon/index.js.map +1 -0
- package/dist/components/temp-components/Maskicon/Maskicon.d.ts +4 -0
- package/dist/components/temp-components/Maskicon/Maskicon.d.ts.map +1 -0
- package/dist/components/temp-components/Maskicon/Maskicon.js +52 -0
- package/dist/components/temp-components/Maskicon/Maskicon.js.map +1 -0
- package/dist/components/temp-components/Maskicon/Maskicon.types.d.ts +15 -0
- package/dist/components/temp-components/Maskicon/Maskicon.types.d.ts.map +1 -0
- package/dist/components/temp-components/Maskicon/Maskicon.types.js +3 -0
- package/dist/components/temp-components/Maskicon/Maskicon.types.js.map +1 -0
- package/dist/components/temp-components/Maskicon/Maskicon.utilities.d.ts +57 -0
- package/dist/components/temp-components/Maskicon/Maskicon.utilities.d.ts.map +1 -0
- package/dist/components/temp-components/Maskicon/Maskicon.utilities.js +282 -0
- package/dist/components/temp-components/Maskicon/Maskicon.utilities.js.map +1 -0
- package/dist/components/temp-components/Maskicon/index.d.ts +3 -0
- package/dist/components/temp-components/Maskicon/index.d.ts.map +1 -0
- package/dist/components/temp-components/Maskicon/index.js +6 -0
- package/dist/components/temp-components/Maskicon/index.js.map +1 -0
- package/dist/components/temp-components/Spinner/Spinner.d.ts +4 -0
- package/dist/components/temp-components/Spinner/Spinner.d.ts.map +1 -0
- package/dist/{temp-components → components/temp-components}/Spinner/Spinner.js +13 -13
- package/dist/components/temp-components/Spinner/Spinner.js.map +1 -0
- package/dist/{temp-components → components/temp-components}/Spinner/Spinner.types.d.ts +3 -2
- package/dist/components/temp-components/Spinner/Spinner.types.d.ts.map +1 -0
- package/dist/components/temp-components/Spinner/Spinner.types.js.map +1 -0
- package/dist/components/temp-components/Spinner/index.d.ts +3 -0
- package/dist/components/temp-components/Spinner/index.d.ts.map +1 -0
- package/dist/components/temp-components/Spinner/index.js +6 -0
- package/dist/components/temp-components/Spinner/index.js.map +1 -0
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.d.ts +4 -0
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.d.ts.map +1 -0
- package/dist/{primitives → components/temp-components}/TextOrChildren/TextOrChildren.js +5 -4
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.js.map +1 -0
- package/dist/{primitives → components/temp-components}/TextOrChildren/TextOrChildren.types.d.ts +2 -1
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.d.ts.map +1 -0
- package/dist/components/temp-components/TextOrChildren/TextOrChildren.types.js.map +1 -0
- package/dist/components/temp-components/TextOrChildren/index.d.ts +3 -0
- package/dist/components/temp-components/TextOrChildren/index.d.ts.map +1 -0
- package/dist/components/temp-components/TextOrChildren/index.js +6 -0
- package/dist/components/temp-components/TextOrChildren/index.js.map +1 -0
- package/dist/index.d.ts +1 -107
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -66
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +618 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +629 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +15 -5
- package/dist/components/AvatarFavicon/AvatarFavicon.constants.d.ts +0 -3
- package/dist/components/AvatarFavicon/AvatarFavicon.constants.d.ts.map +0 -1
- package/dist/components/AvatarFavicon/AvatarFavicon.constants.js +0 -12
- package/dist/components/AvatarFavicon/AvatarFavicon.constants.js.map +0 -1
- package/dist/components/AvatarIcon/AvatarIcon.utilities.d.ts +0 -24
- package/dist/components/AvatarIcon/AvatarIcon.utilities.d.ts.map +0 -1
- package/dist/components/AvatarIcon/AvatarIcon.utilities.js +0 -30
- package/dist/components/AvatarIcon/AvatarIcon.utilities.js.map +0 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.constants.d.ts +0 -3
- package/dist/components/AvatarNetwork/AvatarNetwork.constants.d.ts.map +0 -1
- package/dist/components/AvatarNetwork/AvatarNetwork.constants.js +0 -12
- package/dist/components/AvatarNetwork/AvatarNetwork.constants.js.map +0 -1
- package/dist/components/AvatarToken/AvatarToken.constants.d.ts +0 -3
- package/dist/components/AvatarToken/AvatarToken.constants.d.ts.map +0 -1
- package/dist/components/AvatarToken/AvatarToken.constants.js +0 -12
- package/dist/components/AvatarToken/AvatarToken.constants.js.map +0 -1
- package/dist/components/Button/Button.constants.d.ts +0 -2
- package/dist/components/Button/Button.constants.d.ts.map +0 -1
- package/dist/components/Button/Button.constants.js +0 -7
- package/dist/components/Button/Button.constants.js.map +0 -1
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.d.ts +0 -3
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.d.ts.map +0 -1
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.js +0 -29
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.constants.js.map +0 -1
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.d.ts +0 -78
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.d.ts.map +0 -1
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.js +0 -122
- package/dist/components/Button/variants/ButtonPrimary/ButtonPrimary.utilities.js.map +0 -1
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.d.ts +0 -3
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.d.ts.map +0 -1
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.js +0 -29
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.constants.js.map +0 -1
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.d.ts +0 -90
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.d.ts.map +0 -1
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.js +0 -145
- package/dist/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.js.map +0 -1
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.d.ts +0 -3
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.d.ts.map +0 -1
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.js +0 -29
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.js.map +0 -1
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.d.ts +0 -88
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.d.ts.map +0 -1
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.js +0 -147
- package/dist/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.js.map +0 -1
- package/dist/components/ButtonIcon/ButtonIcon.utilities.d.ts +0 -55
- package/dist/components/ButtonIcon/ButtonIcon.utilities.d.ts.map +0 -1
- package/dist/components/ButtonIcon/ButtonIcon.utilities.js +0 -73
- package/dist/components/ButtonIcon/ButtonIcon.utilities.js.map +0 -1
- package/dist/components/Icon/Icon.constants.d.ts +0 -7
- package/dist/components/Icon/Icon.constants.d.ts.map +0 -1
- package/dist/components/Icon/Icon.constants.js +0 -15
- package/dist/components/Icon/Icon.constants.js.map +0 -1
- package/dist/components/TextButton/TextButton.utilities.d.ts +0 -55
- package/dist/components/TextButton/TextButton.utilities.d.ts.map +0 -1
- package/dist/components/TextButton/TextButton.utilities.js +0 -77
- package/dist/components/TextButton/TextButton.utilities.js.map +0 -1
- package/dist/primitives/AvatarBase/AvatarBase.constants.d.ts +0 -5
- package/dist/primitives/AvatarBase/AvatarBase.constants.d.ts.map +0 -1
- package/dist/primitives/AvatarBase/AvatarBase.constants.js +0 -25
- package/dist/primitives/AvatarBase/AvatarBase.constants.js.map +0 -1
- package/dist/primitives/AvatarBase/AvatarBase.d.ts +0 -5
- package/dist/primitives/AvatarBase/AvatarBase.d.ts.map +0 -1
- package/dist/primitives/AvatarBase/AvatarBase.js +0 -52
- package/dist/primitives/AvatarBase/AvatarBase.js.map +0 -1
- package/dist/primitives/AvatarBase/AvatarBase.types.d.ts.map +0 -1
- package/dist/primitives/AvatarBase/AvatarBase.types.js.map +0 -1
- package/dist/primitives/AvatarBase/AvatarBase.utilities.d.ts +0 -26
- package/dist/primitives/AvatarBase/AvatarBase.utilities.d.ts.map +0 -1
- package/dist/primitives/AvatarBase/AvatarBase.utilities.js +0 -43
- package/dist/primitives/AvatarBase/AvatarBase.utilities.js.map +0 -1
- package/dist/primitives/AvatarBase/index.d.ts +0 -4
- package/dist/primitives/AvatarBase/index.d.ts.map +0 -1
- package/dist/primitives/AvatarBase/index.js +0 -11
- package/dist/primitives/AvatarBase/index.js.map +0 -1
- package/dist/primitives/Blockies/Blockies.d.ts +0 -5
- package/dist/primitives/Blockies/Blockies.d.ts.map +0 -1
- package/dist/primitives/Blockies/Blockies.js.map +0 -1
- package/dist/primitives/Blockies/Blockies.types.d.ts.map +0 -1
- package/dist/primitives/Blockies/Blockies.types.js.map +0 -1
- package/dist/primitives/Blockies/index.d.ts +0 -3
- package/dist/primitives/Blockies/index.d.ts.map +0 -1
- package/dist/primitives/Blockies/index.js +0 -9
- package/dist/primitives/Blockies/index.js.map +0 -1
- package/dist/primitives/ButtonAnimated/ButtonAnimated.d.ts +0 -5
- package/dist/primitives/ButtonAnimated/ButtonAnimated.d.ts.map +0 -1
- package/dist/primitives/ButtonAnimated/ButtonAnimated.js.map +0 -1
- package/dist/primitives/ButtonAnimated/ButtonAnimated.types.d.ts.map +0 -1
- package/dist/primitives/ButtonAnimated/ButtonAnimated.types.js.map +0 -1
- package/dist/primitives/ButtonAnimated/index.d.ts +0 -3
- package/dist/primitives/ButtonAnimated/index.d.ts.map +0 -1
- package/dist/primitives/ButtonAnimated/index.js +0 -9
- package/dist/primitives/ButtonAnimated/index.js.map +0 -1
- package/dist/primitives/ButtonBase/ButtonBase.constants.d.ts +0 -3
- package/dist/primitives/ButtonBase/ButtonBase.constants.d.ts.map +0 -1
- package/dist/primitives/ButtonBase/ButtonBase.constants.js +0 -32
- package/dist/primitives/ButtonBase/ButtonBase.constants.js.map +0 -1
- package/dist/primitives/ButtonBase/ButtonBase.d.ts +0 -5
- package/dist/primitives/ButtonBase/ButtonBase.d.ts.map +0 -1
- package/dist/primitives/ButtonBase/ButtonBase.js +0 -84
- package/dist/primitives/ButtonBase/ButtonBase.js.map +0 -1
- package/dist/primitives/ButtonBase/ButtonBase.types.d.ts.map +0 -1
- package/dist/primitives/ButtonBase/ButtonBase.types.js +0 -19
- package/dist/primitives/ButtonBase/ButtonBase.types.js.map +0 -1
- package/dist/primitives/ButtonBase/ButtonBase.utilities.d.ts +0 -28
- package/dist/primitives/ButtonBase/ButtonBase.utilities.d.ts.map +0 -1
- package/dist/primitives/ButtonBase/ButtonBase.utilities.js +0 -41
- package/dist/primitives/ButtonBase/ButtonBase.utilities.js.map +0 -1
- package/dist/primitives/ButtonBase/index.d.ts +0 -4
- package/dist/primitives/ButtonBase/index.d.ts.map +0 -1
- package/dist/primitives/ButtonBase/index.js +0 -11
- package/dist/primitives/ButtonBase/index.js.map +0 -1
- package/dist/primitives/ImageOrSvg/ImageOrSvg.d.ts +0 -5
- package/dist/primitives/ImageOrSvg/ImageOrSvg.d.ts.map +0 -1
- package/dist/primitives/ImageOrSvg/ImageOrSvg.js.map +0 -1
- package/dist/primitives/ImageOrSvg/ImageOrSvg.types.d.ts.map +0 -1
- package/dist/primitives/ImageOrSvg/ImageOrSvg.types.js.map +0 -1
- package/dist/primitives/ImageOrSvg/index.d.ts +0 -3
- package/dist/primitives/ImageOrSvg/index.d.ts.map +0 -1
- package/dist/primitives/ImageOrSvg/index.js +0 -9
- package/dist/primitives/ImageOrSvg/index.js.map +0 -1
- package/dist/primitives/Jazzicon/Jazzicon.d.ts +0 -5
- package/dist/primitives/Jazzicon/Jazzicon.d.ts.map +0 -1
- package/dist/primitives/Jazzicon/Jazzicon.js.map +0 -1
- package/dist/primitives/Jazzicon/Jazzicon.types.d.ts.map +0 -1
- package/dist/primitives/Jazzicon/Jazzicon.types.js.map +0 -1
- package/dist/primitives/Jazzicon/index.d.ts +0 -3
- package/dist/primitives/Jazzicon/index.d.ts.map +0 -1
- package/dist/primitives/Jazzicon/index.js +0 -9
- package/dist/primitives/Jazzicon/index.js.map +0 -1
- package/dist/primitives/TextOrChildren/TextOrChildren.d.ts +0 -5
- package/dist/primitives/TextOrChildren/TextOrChildren.d.ts.map +0 -1
- package/dist/primitives/TextOrChildren/TextOrChildren.js.map +0 -1
- package/dist/primitives/TextOrChildren/TextOrChildren.types.d.ts.map +0 -1
- package/dist/primitives/TextOrChildren/TextOrChildren.types.js.map +0 -1
- package/dist/primitives/TextOrChildren/index.d.ts +0 -3
- package/dist/primitives/TextOrChildren/index.d.ts.map +0 -1
- package/dist/primitives/TextOrChildren/index.js +0 -9
- package/dist/primitives/TextOrChildren/index.js.map +0 -1
- package/dist/shared/enums.d.ts +0 -46
- package/dist/shared/enums.d.ts.map +0 -1
- package/dist/shared/enums.js +0 -44
- package/dist/shared/enums.js.map +0 -1
- package/dist/temp-components/Spinner/Spinner.constants.d.ts +0 -3
- package/dist/temp-components/Spinner/Spinner.constants.d.ts.map +0 -1
- package/dist/temp-components/Spinner/Spinner.constants.js +0 -21
- package/dist/temp-components/Spinner/Spinner.constants.js.map +0 -1
- package/dist/temp-components/Spinner/Spinner.d.ts +0 -5
- package/dist/temp-components/Spinner/Spinner.d.ts.map +0 -1
- package/dist/temp-components/Spinner/Spinner.js.map +0 -1
- package/dist/temp-components/Spinner/Spinner.types.d.ts.map +0 -1
- package/dist/temp-components/Spinner/Spinner.types.js.map +0 -1
- package/dist/temp-components/Spinner/index.d.ts +0 -3
- package/dist/temp-components/Spinner/index.d.ts.map +0 -1
- package/dist/temp-components/Spinner/index.js +0 -9
- package/dist/temp-components/Spinner/index.js.map +0 -1
- /package/dist/{primitives → components}/AvatarBase/AvatarBase.types.js +0 -0
- /package/dist/{primitives → components/temp-components}/Blockies/Blockies.types.js +0 -0
- /package/dist/{primitives → components/temp-components}/ButtonAnimated/ButtonAnimated.types.d.ts +0 -0
- /package/dist/{primitives → components/temp-components}/ButtonAnimated/ButtonAnimated.types.js +0 -0
- /package/dist/{primitives → components/temp-components}/ImageOrSvg/ImageOrSvg.types.js +0 -0
- /package/dist/{primitives → components/temp-components}/Jazzicon/Jazzicon.types.js +0 -0
- /package/dist/{temp-components → components/temp-components}/Spinner/Spinner.types.js +0 -0
- /package/dist/{primitives → components/temp-components}/TextOrChildren/TextOrChildren.types.js +0 -0
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import type { ButtonSecondaryProps } from './ButtonSecondary.types';
|
|
2
|
-
/**
|
|
3
|
-
* Generates Tailwind class names for the button's container based on its state.
|
|
4
|
-
*
|
|
5
|
-
* This function calculates the appropriate background, border color, and border width
|
|
6
|
-
* class names for a secondary button container. It considers the button's states
|
|
7
|
-
* (`isPressed`, `isDanger`, `isInverse`, `isLoading`) to generate the correct styling,
|
|
8
|
-
* and allows for additional customization through `twClassName`.
|
|
9
|
-
*
|
|
10
|
-
* @param isPressed - Indicates whether the button is currently being pressed.
|
|
11
|
-
* @param isDanger - Indicates whether the button is in a "danger" state.
|
|
12
|
-
* @param isInverse - Indicates whether the button is using an "inverse" theme.
|
|
13
|
-
* @param isLoading - Indicates whether the button is in a loading state.
|
|
14
|
-
* @param twClassName - Additional Tailwind class names for customization.
|
|
15
|
-
* @returns A string representing the combined Tailwind class names for the container's background, border, and custom styles.
|
|
16
|
-
*
|
|
17
|
-
* Example:
|
|
18
|
-
* ```
|
|
19
|
-
* const classNames = generateButtonSecondaryContainerClassNames({
|
|
20
|
-
* isPressed: true,
|
|
21
|
-
* isDanger: true,
|
|
22
|
-
* isInverse: false,
|
|
23
|
-
* isLoading: false,
|
|
24
|
-
* twClassName: 'rounded-md',
|
|
25
|
-
* });
|
|
26
|
-
*
|
|
27
|
-
* console.log(classNames);
|
|
28
|
-
* // Output: "bg-error-mutedPressed border-[1.5px] border-error-defaultPressed rounded-md"
|
|
29
|
-
*
|
|
30
|
-
* const inverseClassNames = generateButtonSecondaryContainerClassNames({
|
|
31
|
-
* isInverse: true,
|
|
32
|
-
* twClassName: 'rounded-lg',
|
|
33
|
-
* });
|
|
34
|
-
*
|
|
35
|
-
* console.log(inverseClassNames);
|
|
36
|
-
* // Output: "bg-transparent border-[1.5px] border-primary-inverse rounded-lg"
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* State Priorities:
|
|
40
|
-
* 1. If `isInverse` and `isDanger` are true, the background and border styles are derived dynamically based on `isPressed` or `isLoading`.
|
|
41
|
-
* 2. If only `isDanger` is true, the background and border styles use error-specific values.
|
|
42
|
-
* 3. If only `isInverse` is true, the border color uses inverse-specific values while the background remains transparent.
|
|
43
|
-
* 4. If none of the above states are true, default styles are applied for a non-inverse, non-danger secondary button.
|
|
44
|
-
* 5. The border width is always set to `border-[1.5px]`.
|
|
45
|
-
*/
|
|
46
|
-
export declare const generateButtonSecondaryContainerClassNames: ({ isPressed, isDanger, isInverse, isLoading, twClassName, }: Partial<ButtonSecondaryProps> & {
|
|
47
|
-
isPressed?: boolean | undefined;
|
|
48
|
-
}) => string;
|
|
49
|
-
/**
|
|
50
|
-
* Generates Tailwind class names for the text styling of a secondary button based on its state.
|
|
51
|
-
*
|
|
52
|
-
* This function determines the appropriate text color class name for a secondary button
|
|
53
|
-
* by considering its current states (`isPressed`, `isDanger`, `isInverse`, `isLoading`).
|
|
54
|
-
* The returned class name ensures that the text color dynamically adapts to the button's
|
|
55
|
-
* configuration.
|
|
56
|
-
*
|
|
57
|
-
* @param isPressed - Indicates whether the button is currently being pressed.
|
|
58
|
-
* @param isDanger - Indicates whether the button is in a "danger" state.
|
|
59
|
-
* @param isInverse - Indicates whether the button is using an "inverse" theme.
|
|
60
|
-
* @param isLoading - Indicates whether the button is in a loading state.
|
|
61
|
-
* @returns A string representing the Tailwind class name for the button's text color.
|
|
62
|
-
*
|
|
63
|
-
* Example:
|
|
64
|
-
* ```
|
|
65
|
-
* const classNames = generateButtonSecondaryTextClassNames({
|
|
66
|
-
* isPressed: true,
|
|
67
|
-
* isDanger: true,
|
|
68
|
-
* isInverse: true,
|
|
69
|
-
* isLoading: false,
|
|
70
|
-
* });
|
|
71
|
-
*
|
|
72
|
-
* console.log(classNames);
|
|
73
|
-
* // Output: "text-error-defaultPressed"
|
|
74
|
-
*
|
|
75
|
-
* const defaultClassNames = generateButtonSecondaryTextClassNames({});
|
|
76
|
-
*
|
|
77
|
-
* console.log(defaultClassNames);
|
|
78
|
-
* // Output: "text-text-default"
|
|
79
|
-
* ```
|
|
80
|
-
*
|
|
81
|
-
* State Priorities:
|
|
82
|
-
* 1. If `isInverse` and `isDanger` are true, the text color changes dynamically based on `isPressed` or `isLoading`.
|
|
83
|
-
* 2. If only `isDanger` is true, the text uses `text-error-default` or `text-error-defaultPressed` depending on the state.
|
|
84
|
-
* 3. If only `isInverse` is true, the text uses `text-primary-inverse`.
|
|
85
|
-
* 4. If none of the above states are true, the text defaults to `text-text-default`.
|
|
86
|
-
*/
|
|
87
|
-
export declare const generateButtonSecondaryTextClassNames: ({ isPressed, isDanger, isInverse, isLoading, }: Partial<ButtonSecondaryProps> & {
|
|
88
|
-
isPressed?: boolean | undefined;
|
|
89
|
-
}) => string;
|
|
90
|
-
//# sourceMappingURL=ButtonSecondary.utilities.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonSecondary.utilities.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,eAAO,MAAM,0CAA0C;;MAQnD,MAmCH,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,qCAAqC;;MAO9C,MAmBH,CAAC"}
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generateButtonSecondaryTextClassNames = exports.generateButtonSecondaryContainerClassNames = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Generates Tailwind class names for the button's container based on its state.
|
|
6
|
-
*
|
|
7
|
-
* This function calculates the appropriate background, border color, and border width
|
|
8
|
-
* class names for a secondary button container. It considers the button's states
|
|
9
|
-
* (`isPressed`, `isDanger`, `isInverse`, `isLoading`) to generate the correct styling,
|
|
10
|
-
* and allows for additional customization through `twClassName`.
|
|
11
|
-
*
|
|
12
|
-
* @param isPressed - Indicates whether the button is currently being pressed.
|
|
13
|
-
* @param isDanger - Indicates whether the button is in a "danger" state.
|
|
14
|
-
* @param isInverse - Indicates whether the button is using an "inverse" theme.
|
|
15
|
-
* @param isLoading - Indicates whether the button is in a loading state.
|
|
16
|
-
* @param twClassName - Additional Tailwind class names for customization.
|
|
17
|
-
* @returns A string representing the combined Tailwind class names for the container's background, border, and custom styles.
|
|
18
|
-
*
|
|
19
|
-
* Example:
|
|
20
|
-
* ```
|
|
21
|
-
* const classNames = generateButtonSecondaryContainerClassNames({
|
|
22
|
-
* isPressed: true,
|
|
23
|
-
* isDanger: true,
|
|
24
|
-
* isInverse: false,
|
|
25
|
-
* isLoading: false,
|
|
26
|
-
* twClassName: 'rounded-md',
|
|
27
|
-
* });
|
|
28
|
-
*
|
|
29
|
-
* console.log(classNames);
|
|
30
|
-
* // Output: "bg-error-mutedPressed border-[1.5px] border-error-defaultPressed rounded-md"
|
|
31
|
-
*
|
|
32
|
-
* const inverseClassNames = generateButtonSecondaryContainerClassNames({
|
|
33
|
-
* isInverse: true,
|
|
34
|
-
* twClassName: 'rounded-lg',
|
|
35
|
-
* });
|
|
36
|
-
*
|
|
37
|
-
* console.log(inverseClassNames);
|
|
38
|
-
* // Output: "bg-transparent border-[1.5px] border-primary-inverse rounded-lg"
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* State Priorities:
|
|
42
|
-
* 1. If `isInverse` and `isDanger` are true, the background and border styles are derived dynamically based on `isPressed` or `isLoading`.
|
|
43
|
-
* 2. If only `isDanger` is true, the background and border styles use error-specific values.
|
|
44
|
-
* 3. If only `isInverse` is true, the border color uses inverse-specific values while the background remains transparent.
|
|
45
|
-
* 4. If none of the above states are true, default styles are applied for a non-inverse, non-danger secondary button.
|
|
46
|
-
* 5. The border width is always set to `border-[1.5px]`.
|
|
47
|
-
*/
|
|
48
|
-
const generateButtonSecondaryContainerClassNames = ({ isPressed = false, isDanger = false, isInverse = false, isLoading = false, twClassName = '', }) => {
|
|
49
|
-
let backgroundStyle;
|
|
50
|
-
let borderColorStyle;
|
|
51
|
-
const isPressedOrLoading = isPressed || isLoading;
|
|
52
|
-
if (isInverse && isDanger) {
|
|
53
|
-
backgroundStyle = isPressedOrLoading
|
|
54
|
-
? 'bg-background-defaultPressed'
|
|
55
|
-
: 'bg-background-default';
|
|
56
|
-
borderColorStyle = isPressedOrLoading
|
|
57
|
-
? 'border-background-defaultPressed'
|
|
58
|
-
: 'border-background-default';
|
|
59
|
-
}
|
|
60
|
-
else if (isDanger) {
|
|
61
|
-
backgroundStyle = isPressedOrLoading
|
|
62
|
-
? 'bg-error-mutedPressed'
|
|
63
|
-
: 'bg-transparent';
|
|
64
|
-
borderColorStyle = isPressedOrLoading
|
|
65
|
-
? 'border-error-defaultPressed'
|
|
66
|
-
: 'border-error-default';
|
|
67
|
-
}
|
|
68
|
-
else if (isInverse) {
|
|
69
|
-
backgroundStyle = isPressedOrLoading
|
|
70
|
-
? 'bg-background-pressed'
|
|
71
|
-
: 'bg-transparent';
|
|
72
|
-
borderColorStyle = 'border-primary-inverse';
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
backgroundStyle = isPressedOrLoading
|
|
76
|
-
? 'bg-background-pressed'
|
|
77
|
-
: 'bg-transparent';
|
|
78
|
-
borderColorStyle = 'border-icon-default';
|
|
79
|
-
}
|
|
80
|
-
const borderWidthStyle = 'border-[1.5px]';
|
|
81
|
-
return `${backgroundStyle} ${borderWidthStyle} ${borderColorStyle} ${twClassName}`;
|
|
82
|
-
};
|
|
83
|
-
exports.generateButtonSecondaryContainerClassNames = generateButtonSecondaryContainerClassNames;
|
|
84
|
-
/**
|
|
85
|
-
* Generates Tailwind class names for the text styling of a secondary button based on its state.
|
|
86
|
-
*
|
|
87
|
-
* This function determines the appropriate text color class name for a secondary button
|
|
88
|
-
* by considering its current states (`isPressed`, `isDanger`, `isInverse`, `isLoading`).
|
|
89
|
-
* The returned class name ensures that the text color dynamically adapts to the button's
|
|
90
|
-
* configuration.
|
|
91
|
-
*
|
|
92
|
-
* @param isPressed - Indicates whether the button is currently being pressed.
|
|
93
|
-
* @param isDanger - Indicates whether the button is in a "danger" state.
|
|
94
|
-
* @param isInverse - Indicates whether the button is using an "inverse" theme.
|
|
95
|
-
* @param isLoading - Indicates whether the button is in a loading state.
|
|
96
|
-
* @returns A string representing the Tailwind class name for the button's text color.
|
|
97
|
-
*
|
|
98
|
-
* Example:
|
|
99
|
-
* ```
|
|
100
|
-
* const classNames = generateButtonSecondaryTextClassNames({
|
|
101
|
-
* isPressed: true,
|
|
102
|
-
* isDanger: true,
|
|
103
|
-
* isInverse: true,
|
|
104
|
-
* isLoading: false,
|
|
105
|
-
* });
|
|
106
|
-
*
|
|
107
|
-
* console.log(classNames);
|
|
108
|
-
* // Output: "text-error-defaultPressed"
|
|
109
|
-
*
|
|
110
|
-
* const defaultClassNames = generateButtonSecondaryTextClassNames({});
|
|
111
|
-
*
|
|
112
|
-
* console.log(defaultClassNames);
|
|
113
|
-
* // Output: "text-text-default"
|
|
114
|
-
* ```
|
|
115
|
-
*
|
|
116
|
-
* State Priorities:
|
|
117
|
-
* 1. If `isInverse` and `isDanger` are true, the text color changes dynamically based on `isPressed` or `isLoading`.
|
|
118
|
-
* 2. If only `isDanger` is true, the text uses `text-error-default` or `text-error-defaultPressed` depending on the state.
|
|
119
|
-
* 3. If only `isInverse` is true, the text uses `text-primary-inverse`.
|
|
120
|
-
* 4. If none of the above states are true, the text defaults to `text-text-default`.
|
|
121
|
-
*/
|
|
122
|
-
const generateButtonSecondaryTextClassNames = ({ isPressed = false, isDanger = false, isInverse = false, isLoading = false, }) => {
|
|
123
|
-
let textColor;
|
|
124
|
-
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
125
|
-
const isPressedOrLoading = isPressed || isLoading;
|
|
126
|
-
if (isInverse && isDanger) {
|
|
127
|
-
textColor = isPressedOrLoading
|
|
128
|
-
? 'text-error-defaultPressed'
|
|
129
|
-
: 'text-error-default';
|
|
130
|
-
}
|
|
131
|
-
else if (isDanger) {
|
|
132
|
-
textColor = isPressedOrLoading
|
|
133
|
-
? 'text-error-defaultPressed'
|
|
134
|
-
: 'text-error-default';
|
|
135
|
-
}
|
|
136
|
-
else if (isInverse) {
|
|
137
|
-
textColor = 'text-primary-inverse';
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
textColor = 'text-text-default';
|
|
141
|
-
}
|
|
142
|
-
return `${textColor}`;
|
|
143
|
-
};
|
|
144
|
-
exports.generateButtonSecondaryTextClassNames = generateButtonSecondaryTextClassNames;
|
|
145
|
-
//# sourceMappingURL=ButtonSecondary.utilities.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonSecondary.utilities.js","sourceRoot":"","sources":["../../../../../src/components/Button/variants/ButtonSecondary/ButtonSecondary.utilities.ts"],"names":[],"mappings":";;;AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACI,MAAM,0CAA0C,GAAG,CAAC,EACzD,SAAS,GAAG,KAAK,EACjB,QAAQ,GAAG,KAAK,EAChB,SAAS,GAAG,KAAK,EACjB,SAAS,GAAG,KAAK,EACjB,WAAW,GAAG,EAAE,GAGjB,EAAU,EAAE;IACX,IAAI,eAAe,CAAC;IACpB,IAAI,gBAAgB,CAAC;IAErB,MAAM,kBAAkB,GAAG,SAAS,IAAI,SAAS,CAAC;IAElD,IAAI,SAAS,IAAI,QAAQ,EAAE;QACzB,eAAe,GAAG,kBAAkB;YAClC,CAAC,CAAC,8BAA8B;YAChC,CAAC,CAAC,uBAAuB,CAAC;QAC5B,gBAAgB,GAAG,kBAAkB;YACnC,CAAC,CAAC,kCAAkC;YACpC,CAAC,CAAC,2BAA2B,CAAC;KACjC;SAAM,IAAI,QAAQ,EAAE;QACnB,eAAe,GAAG,kBAAkB;YAClC,CAAC,CAAC,uBAAuB;YACzB,CAAC,CAAC,gBAAgB,CAAC;QACrB,gBAAgB,GAAG,kBAAkB;YACnC,CAAC,CAAC,6BAA6B;YAC/B,CAAC,CAAC,sBAAsB,CAAC;KAC5B;SAAM,IAAI,SAAS,EAAE;QACpB,eAAe,GAAG,kBAAkB;YAClC,CAAC,CAAC,uBAAuB;YACzB,CAAC,CAAC,gBAAgB,CAAC;QACrB,gBAAgB,GAAG,wBAAwB,CAAC;KAC7C;SAAM;QACL,eAAe,GAAG,kBAAkB;YAClC,CAAC,CAAC,uBAAuB;YACzB,CAAC,CAAC,gBAAgB,CAAC;QACrB,gBAAgB,GAAG,qBAAqB,CAAC;KAC1C;IAED,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;IAE1C,OAAO,GAAG,eAAe,IAAI,gBAAgB,IAAI,gBAAgB,IAAI,WAAW,EAAE,CAAC;AACrF,CAAC,CAAC;AA3CW,QAAA,0CAA0C,8CA2CrD;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACI,MAAM,qCAAqC,GAAG,CAAC,EACpD,SAAS,GAAG,KAAK,EACjB,QAAQ,GAAG,KAAK,EAChB,SAAS,GAAG,KAAK,EACjB,SAAS,GAAG,KAAK,GAGlB,EAAU,EAAE;IACX,IAAI,SAAS,CAAC;IACd,wEAAwE;IACxE,MAAM,kBAAkB,GAAG,SAAS,IAAI,SAAS,CAAC;IAClD,IAAI,SAAS,IAAI,QAAQ,EAAE;QACzB,SAAS,GAAG,kBAAkB;YAC5B,CAAC,CAAC,2BAA2B;YAC7B,CAAC,CAAC,oBAAoB,CAAC;KAC1B;SAAM,IAAI,QAAQ,EAAE;QACnB,SAAS,GAAG,kBAAkB;YAC5B,CAAC,CAAC,2BAA2B;YAC7B,CAAC,CAAC,oBAAoB,CAAC;KAC1B;SAAM,IAAI,SAAS,EAAE;QACpB,SAAS,GAAG,sBAAsB,CAAC;KACpC;SAAM;QACL,SAAS,GAAG,mBAAmB,CAAC;KACjC;IAED,OAAO,GAAG,SAAS,EAAE,CAAC;AACxB,CAAC,CAAC;AA1BW,QAAA,qCAAqC,yCA0BhD","sourcesContent":["/* eslint-disable jsdoc/check-param-names */\n/* eslint-disable jsdoc/require-param */\nimport type { ButtonSecondaryProps } from './ButtonSecondary.types';\n\n/**\n * Generates Tailwind class names for the button's container based on its state.\n *\n * This function calculates the appropriate background, border color, and border width\n * class names for a secondary button container. It considers the button's states\n * (`isPressed`, `isDanger`, `isInverse`, `isLoading`) to generate the correct styling,\n * and allows for additional customization through `twClassName`.\n *\n * @param isPressed - Indicates whether the button is currently being pressed.\n * @param isDanger - Indicates whether the button is in a \"danger\" state.\n * @param isInverse - Indicates whether the button is using an \"inverse\" theme.\n * @param isLoading - Indicates whether the button is in a loading state.\n * @param twClassName - Additional Tailwind class names for customization.\n * @returns A string representing the combined Tailwind class names for the container's background, border, and custom styles.\n *\n * Example:\n * ```\n * const classNames = generateButtonSecondaryContainerClassNames({\n * isPressed: true,\n * isDanger: true,\n * isInverse: false,\n * isLoading: false,\n * twClassName: 'rounded-md',\n * });\n *\n * console.log(classNames);\n * // Output: \"bg-error-mutedPressed border-[1.5px] border-error-defaultPressed rounded-md\"\n *\n * const inverseClassNames = generateButtonSecondaryContainerClassNames({\n * isInverse: true,\n * twClassName: 'rounded-lg',\n * });\n *\n * console.log(inverseClassNames);\n * // Output: \"bg-transparent border-[1.5px] border-primary-inverse rounded-lg\"\n * ```\n *\n * State Priorities:\n * 1. If `isInverse` and `isDanger` are true, the background and border styles are derived dynamically based on `isPressed` or `isLoading`.\n * 2. If only `isDanger` is true, the background and border styles use error-specific values.\n * 3. If only `isInverse` is true, the border color uses inverse-specific values while the background remains transparent.\n * 4. If none of the above states are true, default styles are applied for a non-inverse, non-danger secondary button.\n * 5. The border width is always set to `border-[1.5px]`.\n */\nexport const generateButtonSecondaryContainerClassNames = ({\n isPressed = false,\n isDanger = false,\n isInverse = false,\n isLoading = false,\n twClassName = '',\n}: Partial<ButtonSecondaryProps> & {\n isPressed?: boolean;\n}): string => {\n let backgroundStyle;\n let borderColorStyle;\n\n const isPressedOrLoading = isPressed || isLoading;\n\n if (isInverse && isDanger) {\n backgroundStyle = isPressedOrLoading\n ? 'bg-background-defaultPressed'\n : 'bg-background-default';\n borderColorStyle = isPressedOrLoading\n ? 'border-background-defaultPressed'\n : 'border-background-default';\n } else if (isDanger) {\n backgroundStyle = isPressedOrLoading\n ? 'bg-error-mutedPressed'\n : 'bg-transparent';\n borderColorStyle = isPressedOrLoading\n ? 'border-error-defaultPressed'\n : 'border-error-default';\n } else if (isInverse) {\n backgroundStyle = isPressedOrLoading\n ? 'bg-background-pressed'\n : 'bg-transparent';\n borderColorStyle = 'border-primary-inverse';\n } else {\n backgroundStyle = isPressedOrLoading\n ? 'bg-background-pressed'\n : 'bg-transparent';\n borderColorStyle = 'border-icon-default';\n }\n\n const borderWidthStyle = 'border-[1.5px]';\n\n return `${backgroundStyle} ${borderWidthStyle} ${borderColorStyle} ${twClassName}`;\n};\n\n/**\n * Generates Tailwind class names for the text styling of a secondary button based on its state.\n *\n * This function determines the appropriate text color class name for a secondary button\n * by considering its current states (`isPressed`, `isDanger`, `isInverse`, `isLoading`).\n * The returned class name ensures that the text color dynamically adapts to the button's\n * configuration.\n *\n * @param isPressed - Indicates whether the button is currently being pressed.\n * @param isDanger - Indicates whether the button is in a \"danger\" state.\n * @param isInverse - Indicates whether the button is using an \"inverse\" theme.\n * @param isLoading - Indicates whether the button is in a loading state.\n * @returns A string representing the Tailwind class name for the button's text color.\n *\n * Example:\n * ```\n * const classNames = generateButtonSecondaryTextClassNames({\n * isPressed: true,\n * isDanger: true,\n * isInverse: true,\n * isLoading: false,\n * });\n *\n * console.log(classNames);\n * // Output: \"text-error-defaultPressed\"\n *\n * const defaultClassNames = generateButtonSecondaryTextClassNames({});\n *\n * console.log(defaultClassNames);\n * // Output: \"text-text-default\"\n * ```\n *\n * State Priorities:\n * 1. If `isInverse` and `isDanger` are true, the text color changes dynamically based on `isPressed` or `isLoading`.\n * 2. If only `isDanger` is true, the text uses `text-error-default` or `text-error-defaultPressed` depending on the state.\n * 3. If only `isInverse` is true, the text uses `text-primary-inverse`.\n * 4. If none of the above states are true, the text defaults to `text-text-default`.\n */\nexport const generateButtonSecondaryTextClassNames = ({\n isPressed = false,\n isDanger = false,\n isInverse = false,\n isLoading = false,\n}: Partial<ButtonSecondaryProps> & {\n isPressed?: boolean;\n}): string => {\n let textColor;\n // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing\n const isPressedOrLoading = isPressed || isLoading;\n if (isInverse && isDanger) {\n textColor = isPressedOrLoading\n ? 'text-error-defaultPressed'\n : 'text-error-default';\n } else if (isDanger) {\n textColor = isPressedOrLoading\n ? 'text-error-defaultPressed'\n : 'text-error-default';\n } else if (isInverse) {\n textColor = 'text-primary-inverse';\n } else {\n textColor = 'text-text-default';\n }\n\n return `${textColor}`;\n};\n"]}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { ButtonTertiaryProps } from './ButtonTertiary.types';
|
|
2
|
-
export declare const DEFAULT_BUTTONTERTIARY_PROPS: Pick<ButtonTertiaryProps, 'textProps' | 'size' | 'isLoading' | 'spinnerProps' | 'startIconProps' | 'endIconProps' | 'isDisabled' | 'isFullWidth' | 'isDanger' | 'isInverse'>;
|
|
3
|
-
//# sourceMappingURL=ButtonTertiary.constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonTertiary.constants.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAGlE,eAAO,MAAM,4BAA4B,EAAE,IAAI,CAC7C,mBAAmB,EACjB,WAAW,GACX,MAAM,GACN,WAAW,GACX,cAAc,GACd,gBAAgB,GAChB,cAAc,GACd,YAAY,GACZ,aAAa,GACb,UAAU,GACV,WAAW,CAqBd,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DEFAULT_BUTTONTERTIARY_PROPS = void 0;
|
|
4
|
-
const ButtonBase_constants_1 = require("../../../../primitives/ButtonBase/ButtonBase.constants");
|
|
5
|
-
const Icon_1 = require("../../../Icon");
|
|
6
|
-
const Text_1 = require("../../../Text");
|
|
7
|
-
// Defaults
|
|
8
|
-
exports.DEFAULT_BUTTONTERTIARY_PROPS = {
|
|
9
|
-
...ButtonBase_constants_1.DEFAULT_BUTTONBASE_PROPS,
|
|
10
|
-
textProps: {
|
|
11
|
-
...ButtonBase_constants_1.DEFAULT_BUTTONBASE_PROPS.textProps,
|
|
12
|
-
color: Text_1.TextColor.PrimaryInverse,
|
|
13
|
-
},
|
|
14
|
-
spinnerProps: {
|
|
15
|
-
...ButtonBase_constants_1.DEFAULT_BUTTONBASE_PROPS.spinnerProps,
|
|
16
|
-
color: Icon_1.IconColor.PrimaryInverse,
|
|
17
|
-
},
|
|
18
|
-
startIconProps: {
|
|
19
|
-
...ButtonBase_constants_1.DEFAULT_BUTTONBASE_PROPS.startIconProps,
|
|
20
|
-
color: Icon_1.IconColor.PrimaryInverse,
|
|
21
|
-
},
|
|
22
|
-
endIconProps: {
|
|
23
|
-
...ButtonBase_constants_1.DEFAULT_BUTTONBASE_PROPS.endIconProps,
|
|
24
|
-
color: Icon_1.IconColor.PrimaryInverse,
|
|
25
|
-
},
|
|
26
|
-
isDanger: false,
|
|
27
|
-
isInverse: false,
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=ButtonTertiary.constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonTertiary.constants.js","sourceRoot":"","sources":["../../../../../src/components/Button/variants/ButtonTertiary/ButtonTertiary.constants.ts"],"names":[],"mappings":";;;AAAA,iGAAkG;AAClG,wCAA0C;AAC1C,wCAA0C;AAG1C,WAAW;AACE,QAAA,4BAA4B,GAYrC;IACF,GAAG,+CAAwB;IAC3B,SAAS,EAAE;QACT,GAAG,+CAAwB,CAAC,SAAS;QACrC,KAAK,EAAE,gBAAS,CAAC,cAAc;KAChC;IACD,YAAY,EAAE;QACZ,GAAG,+CAAwB,CAAC,YAAY;QACxC,KAAK,EAAE,gBAAS,CAAC,cAAc;KAChC;IACD,cAAc,EAAE;QACd,GAAG,+CAAwB,CAAC,cAAc;QAC1C,KAAK,EAAE,gBAAS,CAAC,cAAc;KAChC;IACD,YAAY,EAAE;QACZ,GAAG,+CAAwB,CAAC,YAAY;QACxC,KAAK,EAAE,gBAAS,CAAC,cAAc;KAChC;IACD,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,KAAK;CACjB,CAAC","sourcesContent":["import { DEFAULT_BUTTONBASE_PROPS } from '../../../../primitives/ButtonBase/ButtonBase.constants';\nimport { IconColor } from '../../../Icon';\nimport { TextColor } from '../../../Text';\nimport type { ButtonTertiaryProps } from './ButtonTertiary.types';\n\n// Defaults\nexport const DEFAULT_BUTTONTERTIARY_PROPS: Pick<\n ButtonTertiaryProps,\n | 'textProps'\n | 'size'\n | 'isLoading'\n | 'spinnerProps'\n | 'startIconProps'\n | 'endIconProps'\n | 'isDisabled'\n | 'isFullWidth'\n | 'isDanger'\n | 'isInverse'\n> = {\n ...DEFAULT_BUTTONBASE_PROPS,\n textProps: {\n ...DEFAULT_BUTTONBASE_PROPS.textProps,\n color: TextColor.PrimaryInverse,\n },\n spinnerProps: {\n ...DEFAULT_BUTTONBASE_PROPS.spinnerProps,\n color: IconColor.PrimaryInverse,\n },\n startIconProps: {\n ...DEFAULT_BUTTONBASE_PROPS.startIconProps,\n color: IconColor.PrimaryInverse,\n },\n endIconProps: {\n ...DEFAULT_BUTTONBASE_PROPS.endIconProps,\n color: IconColor.PrimaryInverse,\n },\n isDanger: false,\n isInverse: false,\n};\n"]}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import type { ButtonTertiaryProps } from './ButtonTertiary.types';
|
|
2
|
-
/**
|
|
3
|
-
* Generates Tailwind class names for a tertiary button's container based on its state.
|
|
4
|
-
*
|
|
5
|
-
* This function calculates the background, border color, and border width styles dynamically
|
|
6
|
-
* depending on the button's state (`isPressed`, `isDanger`, `isInverse`, `isLoading`). It also
|
|
7
|
-
* allows additional Tailwind classes to be appended using the `twClassName` parameter.
|
|
8
|
-
*
|
|
9
|
-
* @param isPressed - Indicates whether the button is currently being pressed.
|
|
10
|
-
* @param isDanger - Indicates whether the button is in a "danger" state.
|
|
11
|
-
* @param isInverse - Indicates whether the button is using an "inverse" theme.
|
|
12
|
-
* @param isLoading - Indicates whether the button is in a loading state.
|
|
13
|
-
* @param twClassName - Additional Tailwind class names for customization.
|
|
14
|
-
* @returns A string containing the combined Tailwind class names for the container's background,
|
|
15
|
-
* border styles, and any additional classes.
|
|
16
|
-
*
|
|
17
|
-
* Example:
|
|
18
|
-
* ```
|
|
19
|
-
* const classNames = generateButtonTertiaryContainerClassNames({
|
|
20
|
-
* isPressed: true,
|
|
21
|
-
* isDanger: true,
|
|
22
|
-
* isInverse: false,
|
|
23
|
-
* isLoading: false,
|
|
24
|
-
* twClassName: 'rounded-full',
|
|
25
|
-
* });
|
|
26
|
-
*
|
|
27
|
-
* console.log(classNames);
|
|
28
|
-
* // Output: "bg-error-mutedPressed border-0 border-error-mutedPressed rounded-full"
|
|
29
|
-
*
|
|
30
|
-
* const inverseClassNames = generateButtonTertiaryContainerClassNames({
|
|
31
|
-
* isInverse: true,
|
|
32
|
-
* twClassName: 'rounded-lg',
|
|
33
|
-
* });
|
|
34
|
-
*
|
|
35
|
-
* console.log(inverseClassNames);
|
|
36
|
-
* // Output: "bg-transparent border-[1.5px] border-primary-inverse rounded-lg"
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* State Priorities:
|
|
40
|
-
* 1. If `isInverse` and `isDanger` are true, styles are dynamically determined based on `isPressed` or `isLoading`.
|
|
41
|
-
* 2. If only `isDanger` is true, the styles reflect error-related colors with no borders.
|
|
42
|
-
* 3. If only `isInverse` is true, a border width is added along with inverse-specific styles.
|
|
43
|
-
* 4. If none of the above states are true, default styles are applied for a non-danger, non-inverse tertiary button.
|
|
44
|
-
*/
|
|
45
|
-
export declare const generateButtonTertiaryContainerClassNames: ({ isPressed, isDanger, isInverse, isLoading, twClassName, }: Partial<ButtonTertiaryProps> & {
|
|
46
|
-
isPressed?: boolean | undefined;
|
|
47
|
-
}) => string;
|
|
48
|
-
/**
|
|
49
|
-
* Generates Tailwind class names for a tertiary button's text styling based on its state.
|
|
50
|
-
*
|
|
51
|
-
* This function determines the appropriate text color class name for a tertiary button
|
|
52
|
-
* by evaluating the current states (`isPressed`, `isDanger`, `isInverse`, `isLoading`).
|
|
53
|
-
* The returned class name dynamically reflects the button's configuration.
|
|
54
|
-
*
|
|
55
|
-
* @param isPressed - Indicates whether the button is currently being pressed.
|
|
56
|
-
* @param isDanger - Indicates whether the button is in a "danger" state.
|
|
57
|
-
* @param isInverse - Indicates whether the button is using an "inverse" theme.
|
|
58
|
-
* @param isLoading - Indicates whether the button is in a loading state.
|
|
59
|
-
* @returns A string containing the Tailwind class name for the button's text color.
|
|
60
|
-
*
|
|
61
|
-
* Example:
|
|
62
|
-
* ```
|
|
63
|
-
* const classNames = generateButtonTertiaryTextClassNames({
|
|
64
|
-
* isPressed: true,
|
|
65
|
-
* isDanger: true,
|
|
66
|
-
* isInverse: false,
|
|
67
|
-
* isLoading: false,
|
|
68
|
-
* });
|
|
69
|
-
*
|
|
70
|
-
* console.log(classNames);
|
|
71
|
-
* // Output: "text-error-defaultPressed"
|
|
72
|
-
*
|
|
73
|
-
* const defaultClassNames = generateButtonTertiaryTextClassNames({});
|
|
74
|
-
*
|
|
75
|
-
* console.log(defaultClassNames);
|
|
76
|
-
* // Output: "text-primary-default"
|
|
77
|
-
* ```
|
|
78
|
-
*
|
|
79
|
-
* State Priorities:
|
|
80
|
-
* 1. If `isInverse` and `isDanger` are true, the text color is determined dynamically based on `isPressed` or `isLoading`.
|
|
81
|
-
* 2. If only `isDanger` is true, the text color defaults to `text-error-default` or `text-error-defaultPressed` depending on the state.
|
|
82
|
-
* 3. If only `isInverse` is true, the text color is `text-primary-inverse`.
|
|
83
|
-
* 4. If none of the above states are true, the text color defaults to `text-primary-default`.
|
|
84
|
-
*/
|
|
85
|
-
export declare const generateButtonTertiaryTextClassNames: ({ isPressed, isDanger, isInverse, isLoading, }: Partial<ButtonTertiaryProps> & {
|
|
86
|
-
isPressed?: boolean | undefined;
|
|
87
|
-
}) => string;
|
|
88
|
-
//# sourceMappingURL=ButtonTertiary.utilities.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonTertiary.utilities.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,eAAO,MAAM,yCAAyC;;MAQlD,MAoCH,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,oCAAoC;;MAO7C,MAqBH,CAAC"}
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generateButtonTertiaryTextClassNames = exports.generateButtonTertiaryContainerClassNames = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Generates Tailwind class names for a tertiary button's container based on its state.
|
|
6
|
-
*
|
|
7
|
-
* This function calculates the background, border color, and border width styles dynamically
|
|
8
|
-
* depending on the button's state (`isPressed`, `isDanger`, `isInverse`, `isLoading`). It also
|
|
9
|
-
* allows additional Tailwind classes to be appended using the `twClassName` parameter.
|
|
10
|
-
*
|
|
11
|
-
* @param isPressed - Indicates whether the button is currently being pressed.
|
|
12
|
-
* @param isDanger - Indicates whether the button is in a "danger" state.
|
|
13
|
-
* @param isInverse - Indicates whether the button is using an "inverse" theme.
|
|
14
|
-
* @param isLoading - Indicates whether the button is in a loading state.
|
|
15
|
-
* @param twClassName - Additional Tailwind class names for customization.
|
|
16
|
-
* @returns A string containing the combined Tailwind class names for the container's background,
|
|
17
|
-
* border styles, and any additional classes.
|
|
18
|
-
*
|
|
19
|
-
* Example:
|
|
20
|
-
* ```
|
|
21
|
-
* const classNames = generateButtonTertiaryContainerClassNames({
|
|
22
|
-
* isPressed: true,
|
|
23
|
-
* isDanger: true,
|
|
24
|
-
* isInverse: false,
|
|
25
|
-
* isLoading: false,
|
|
26
|
-
* twClassName: 'rounded-full',
|
|
27
|
-
* });
|
|
28
|
-
*
|
|
29
|
-
* console.log(classNames);
|
|
30
|
-
* // Output: "bg-error-mutedPressed border-0 border-error-mutedPressed rounded-full"
|
|
31
|
-
*
|
|
32
|
-
* const inverseClassNames = generateButtonTertiaryContainerClassNames({
|
|
33
|
-
* isInverse: true,
|
|
34
|
-
* twClassName: 'rounded-lg',
|
|
35
|
-
* });
|
|
36
|
-
*
|
|
37
|
-
* console.log(inverseClassNames);
|
|
38
|
-
* // Output: "bg-transparent border-[1.5px] border-primary-inverse rounded-lg"
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* State Priorities:
|
|
42
|
-
* 1. If `isInverse` and `isDanger` are true, styles are dynamically determined based on `isPressed` or `isLoading`.
|
|
43
|
-
* 2. If only `isDanger` is true, the styles reflect error-related colors with no borders.
|
|
44
|
-
* 3. If only `isInverse` is true, a border width is added along with inverse-specific styles.
|
|
45
|
-
* 4. If none of the above states are true, default styles are applied for a non-danger, non-inverse tertiary button.
|
|
46
|
-
*/
|
|
47
|
-
const generateButtonTertiaryContainerClassNames = ({ isPressed = false, isDanger = false, isInverse = false, isLoading = false, twClassName = '', }) => {
|
|
48
|
-
let backgroundStyle, borderColorStyle;
|
|
49
|
-
let borderWidthStyle = 'border-0';
|
|
50
|
-
const isPressedOrLoading = isPressed || isLoading;
|
|
51
|
-
if (isInverse && isDanger) {
|
|
52
|
-
backgroundStyle = isPressedOrLoading
|
|
53
|
-
? 'bg-background-defaultPressed'
|
|
54
|
-
: 'bg-background-default';
|
|
55
|
-
borderColorStyle = isPressedOrLoading
|
|
56
|
-
? 'border-background-defaultPressed'
|
|
57
|
-
: 'border-background-default';
|
|
58
|
-
}
|
|
59
|
-
else if (isDanger) {
|
|
60
|
-
backgroundStyle = isPressedOrLoading
|
|
61
|
-
? 'bg-error-mutedPressed'
|
|
62
|
-
: 'bg-transparent';
|
|
63
|
-
borderColorStyle = isPressedOrLoading
|
|
64
|
-
? 'border-error-mutedPressed'
|
|
65
|
-
: 'border-transparent';
|
|
66
|
-
}
|
|
67
|
-
else if (isInverse) {
|
|
68
|
-
backgroundStyle = isPressedOrLoading
|
|
69
|
-
? 'bg-background-pressed'
|
|
70
|
-
: 'bg-transparent';
|
|
71
|
-
borderColorStyle = 'border-primary-inverse';
|
|
72
|
-
borderWidthStyle = 'border-[1.5px]';
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
backgroundStyle = isPressedOrLoading
|
|
76
|
-
? 'bg-background-pressed'
|
|
77
|
-
: 'bg-transparent';
|
|
78
|
-
borderColorStyle = isPressedOrLoading
|
|
79
|
-
? 'border-background-pressed'
|
|
80
|
-
: 'border-transparent';
|
|
81
|
-
}
|
|
82
|
-
return `${backgroundStyle} ${borderWidthStyle} ${borderColorStyle} ${twClassName}`;
|
|
83
|
-
};
|
|
84
|
-
exports.generateButtonTertiaryContainerClassNames = generateButtonTertiaryContainerClassNames;
|
|
85
|
-
/**
|
|
86
|
-
* Generates Tailwind class names for a tertiary button's text styling based on its state.
|
|
87
|
-
*
|
|
88
|
-
* This function determines the appropriate text color class name for a tertiary button
|
|
89
|
-
* by evaluating the current states (`isPressed`, `isDanger`, `isInverse`, `isLoading`).
|
|
90
|
-
* The returned class name dynamically reflects the button's configuration.
|
|
91
|
-
*
|
|
92
|
-
* @param isPressed - Indicates whether the button is currently being pressed.
|
|
93
|
-
* @param isDanger - Indicates whether the button is in a "danger" state.
|
|
94
|
-
* @param isInverse - Indicates whether the button is using an "inverse" theme.
|
|
95
|
-
* @param isLoading - Indicates whether the button is in a loading state.
|
|
96
|
-
* @returns A string containing the Tailwind class name for the button's text color.
|
|
97
|
-
*
|
|
98
|
-
* Example:
|
|
99
|
-
* ```
|
|
100
|
-
* const classNames = generateButtonTertiaryTextClassNames({
|
|
101
|
-
* isPressed: true,
|
|
102
|
-
* isDanger: true,
|
|
103
|
-
* isInverse: false,
|
|
104
|
-
* isLoading: false,
|
|
105
|
-
* });
|
|
106
|
-
*
|
|
107
|
-
* console.log(classNames);
|
|
108
|
-
* // Output: "text-error-defaultPressed"
|
|
109
|
-
*
|
|
110
|
-
* const defaultClassNames = generateButtonTertiaryTextClassNames({});
|
|
111
|
-
*
|
|
112
|
-
* console.log(defaultClassNames);
|
|
113
|
-
* // Output: "text-primary-default"
|
|
114
|
-
* ```
|
|
115
|
-
*
|
|
116
|
-
* State Priorities:
|
|
117
|
-
* 1. If `isInverse` and `isDanger` are true, the text color is determined dynamically based on `isPressed` or `isLoading`.
|
|
118
|
-
* 2. If only `isDanger` is true, the text color defaults to `text-error-default` or `text-error-defaultPressed` depending on the state.
|
|
119
|
-
* 3. If only `isInverse` is true, the text color is `text-primary-inverse`.
|
|
120
|
-
* 4. If none of the above states are true, the text color defaults to `text-primary-default`.
|
|
121
|
-
*/
|
|
122
|
-
const generateButtonTertiaryTextClassNames = ({ isPressed = false, isDanger = false, isInverse = false, isLoading = false, }) => {
|
|
123
|
-
let textColor;
|
|
124
|
-
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
125
|
-
const isPressedOrLoading = isPressed || isLoading;
|
|
126
|
-
if (isInverse && isDanger) {
|
|
127
|
-
textColor = isPressedOrLoading
|
|
128
|
-
? 'text-error-defaultPressed'
|
|
129
|
-
: 'text-error-default';
|
|
130
|
-
}
|
|
131
|
-
else if (isDanger) {
|
|
132
|
-
textColor = isPressedOrLoading
|
|
133
|
-
? 'text-error-defaultPressed'
|
|
134
|
-
: 'text-error-default';
|
|
135
|
-
}
|
|
136
|
-
else if (isInverse) {
|
|
137
|
-
textColor = 'text-primary-inverse';
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
textColor = isPressedOrLoading
|
|
141
|
-
? 'text-primary-defaultPressed'
|
|
142
|
-
: 'text-primary-default';
|
|
143
|
-
}
|
|
144
|
-
return `${textColor}`;
|
|
145
|
-
};
|
|
146
|
-
exports.generateButtonTertiaryTextClassNames = generateButtonTertiaryTextClassNames;
|
|
147
|
-
//# sourceMappingURL=ButtonTertiary.utilities.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonTertiary.utilities.js","sourceRoot":"","sources":["../../../../../src/components/Button/variants/ButtonTertiary/ButtonTertiary.utilities.ts"],"names":[],"mappings":";;;AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACI,MAAM,yCAAyC,GAAG,CAAC,EACxD,SAAS,GAAG,KAAK,EACjB,QAAQ,GAAG,KAAK,EAChB,SAAS,GAAG,KAAK,EACjB,SAAS,GAAG,KAAK,EACjB,WAAW,GAAG,EAAE,GAGjB,EAAU,EAAE;IACX,IAAI,eAAe,EAAE,gBAAgB,CAAC;IACtC,IAAI,gBAAgB,GAAG,UAAU,CAAC;IAElC,MAAM,kBAAkB,GAAG,SAAS,IAAI,SAAS,CAAC;IAElD,IAAI,SAAS,IAAI,QAAQ,EAAE;QACzB,eAAe,GAAG,kBAAkB;YAClC,CAAC,CAAC,8BAA8B;YAChC,CAAC,CAAC,uBAAuB,CAAC;QAC5B,gBAAgB,GAAG,kBAAkB;YACnC,CAAC,CAAC,kCAAkC;YACpC,CAAC,CAAC,2BAA2B,CAAC;KACjC;SAAM,IAAI,QAAQ,EAAE;QACnB,eAAe,GAAG,kBAAkB;YAClC,CAAC,CAAC,uBAAuB;YACzB,CAAC,CAAC,gBAAgB,CAAC;QACrB,gBAAgB,GAAG,kBAAkB;YACnC,CAAC,CAAC,2BAA2B;YAC7B,CAAC,CAAC,oBAAoB,CAAC;KAC1B;SAAM,IAAI,SAAS,EAAE;QACpB,eAAe,GAAG,kBAAkB;YAClC,CAAC,CAAC,uBAAuB;YACzB,CAAC,CAAC,gBAAgB,CAAC;QACrB,gBAAgB,GAAG,wBAAwB,CAAC;QAC5C,gBAAgB,GAAG,gBAAgB,CAAC;KACrC;SAAM;QACL,eAAe,GAAG,kBAAkB;YAClC,CAAC,CAAC,uBAAuB;YACzB,CAAC,CAAC,gBAAgB,CAAC;QACrB,gBAAgB,GAAG,kBAAkB;YACnC,CAAC,CAAC,2BAA2B;YAC7B,CAAC,CAAC,oBAAoB,CAAC;KAC1B;IAED,OAAO,GAAG,eAAe,IAAI,gBAAgB,IAAI,gBAAgB,IAAI,WAAW,EAAE,CAAC;AACrF,CAAC,CAAC;AA5CW,QAAA,yCAAyC,6CA4CpD;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACI,MAAM,oCAAoC,GAAG,CAAC,EACnD,SAAS,GAAG,KAAK,EACjB,QAAQ,GAAG,KAAK,EAChB,SAAS,GAAG,KAAK,EACjB,SAAS,GAAG,KAAK,GAGlB,EAAU,EAAE;IACX,IAAI,SAAS,CAAC;IACd,wEAAwE;IACxE,MAAM,kBAAkB,GAAG,SAAS,IAAI,SAAS,CAAC;IAClD,IAAI,SAAS,IAAI,QAAQ,EAAE;QACzB,SAAS,GAAG,kBAAkB;YAC5B,CAAC,CAAC,2BAA2B;YAC7B,CAAC,CAAC,oBAAoB,CAAC;KAC1B;SAAM,IAAI,QAAQ,EAAE;QACnB,SAAS,GAAG,kBAAkB;YAC5B,CAAC,CAAC,2BAA2B;YAC7B,CAAC,CAAC,oBAAoB,CAAC;KAC1B;SAAM,IAAI,SAAS,EAAE;QACpB,SAAS,GAAG,sBAAsB,CAAC;KACpC;SAAM;QACL,SAAS,GAAG,kBAAkB;YAC5B,CAAC,CAAC,6BAA6B;YAC/B,CAAC,CAAC,sBAAsB,CAAC;KAC5B;IAED,OAAO,GAAG,SAAS,EAAE,CAAC;AACxB,CAAC,CAAC;AA5BW,QAAA,oCAAoC,wCA4B/C","sourcesContent":["/* eslint-disable jsdoc/check-param-names */\n/* eslint-disable jsdoc/require-param */\nimport type { ButtonTertiaryProps } from './ButtonTertiary.types';\n\n/**\n * Generates Tailwind class names for a tertiary button's container based on its state.\n *\n * This function calculates the background, border color, and border width styles dynamically\n * depending on the button's state (`isPressed`, `isDanger`, `isInverse`, `isLoading`). It also\n * allows additional Tailwind classes to be appended using the `twClassName` parameter.\n *\n * @param isPressed - Indicates whether the button is currently being pressed.\n * @param isDanger - Indicates whether the button is in a \"danger\" state.\n * @param isInverse - Indicates whether the button is using an \"inverse\" theme.\n * @param isLoading - Indicates whether the button is in a loading state.\n * @param twClassName - Additional Tailwind class names for customization.\n * @returns A string containing the combined Tailwind class names for the container's background,\n * border styles, and any additional classes.\n *\n * Example:\n * ```\n * const classNames = generateButtonTertiaryContainerClassNames({\n * isPressed: true,\n * isDanger: true,\n * isInverse: false,\n * isLoading: false,\n * twClassName: 'rounded-full',\n * });\n *\n * console.log(classNames);\n * // Output: \"bg-error-mutedPressed border-0 border-error-mutedPressed rounded-full\"\n *\n * const inverseClassNames = generateButtonTertiaryContainerClassNames({\n * isInverse: true,\n * twClassName: 'rounded-lg',\n * });\n *\n * console.log(inverseClassNames);\n * // Output: \"bg-transparent border-[1.5px] border-primary-inverse rounded-lg\"\n * ```\n *\n * State Priorities:\n * 1. If `isInverse` and `isDanger` are true, styles are dynamically determined based on `isPressed` or `isLoading`.\n * 2. If only `isDanger` is true, the styles reflect error-related colors with no borders.\n * 3. If only `isInverse` is true, a border width is added along with inverse-specific styles.\n * 4. If none of the above states are true, default styles are applied for a non-danger, non-inverse tertiary button.\n */\nexport const generateButtonTertiaryContainerClassNames = ({\n isPressed = false,\n isDanger = false,\n isInverse = false,\n isLoading = false,\n twClassName = '',\n}: Partial<ButtonTertiaryProps> & {\n isPressed?: boolean;\n}): string => {\n let backgroundStyle, borderColorStyle;\n let borderWidthStyle = 'border-0';\n\n const isPressedOrLoading = isPressed || isLoading;\n\n if (isInverse && isDanger) {\n backgroundStyle = isPressedOrLoading\n ? 'bg-background-defaultPressed'\n : 'bg-background-default';\n borderColorStyle = isPressedOrLoading\n ? 'border-background-defaultPressed'\n : 'border-background-default';\n } else if (isDanger) {\n backgroundStyle = isPressedOrLoading\n ? 'bg-error-mutedPressed'\n : 'bg-transparent';\n borderColorStyle = isPressedOrLoading\n ? 'border-error-mutedPressed'\n : 'border-transparent';\n } else if (isInverse) {\n backgroundStyle = isPressedOrLoading\n ? 'bg-background-pressed'\n : 'bg-transparent';\n borderColorStyle = 'border-primary-inverse';\n borderWidthStyle = 'border-[1.5px]';\n } else {\n backgroundStyle = isPressedOrLoading\n ? 'bg-background-pressed'\n : 'bg-transparent';\n borderColorStyle = isPressedOrLoading\n ? 'border-background-pressed'\n : 'border-transparent';\n }\n\n return `${backgroundStyle} ${borderWidthStyle} ${borderColorStyle} ${twClassName}`;\n};\n\n/**\n * Generates Tailwind class names for a tertiary button's text styling based on its state.\n *\n * This function determines the appropriate text color class name for a tertiary button\n * by evaluating the current states (`isPressed`, `isDanger`, `isInverse`, `isLoading`).\n * The returned class name dynamically reflects the button's configuration.\n *\n * @param isPressed - Indicates whether the button is currently being pressed.\n * @param isDanger - Indicates whether the button is in a \"danger\" state.\n * @param isInverse - Indicates whether the button is using an \"inverse\" theme.\n * @param isLoading - Indicates whether the button is in a loading state.\n * @returns A string containing the Tailwind class name for the button's text color.\n *\n * Example:\n * ```\n * const classNames = generateButtonTertiaryTextClassNames({\n * isPressed: true,\n * isDanger: true,\n * isInverse: false,\n * isLoading: false,\n * });\n *\n * console.log(classNames);\n * // Output: \"text-error-defaultPressed\"\n *\n * const defaultClassNames = generateButtonTertiaryTextClassNames({});\n *\n * console.log(defaultClassNames);\n * // Output: \"text-primary-default\"\n * ```\n *\n * State Priorities:\n * 1. If `isInverse` and `isDanger` are true, the text color is determined dynamically based on `isPressed` or `isLoading`.\n * 2. If only `isDanger` is true, the text color defaults to `text-error-default` or `text-error-defaultPressed` depending on the state.\n * 3. If only `isInverse` is true, the text color is `text-primary-inverse`.\n * 4. If none of the above states are true, the text color defaults to `text-primary-default`.\n */\nexport const generateButtonTertiaryTextClassNames = ({\n isPressed = false,\n isDanger = false,\n isInverse = false,\n isLoading = false,\n}: Partial<ButtonTertiaryProps> & {\n isPressed?: boolean;\n}): string => {\n let textColor;\n // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing\n const isPressedOrLoading = isPressed || isLoading;\n if (isInverse && isDanger) {\n textColor = isPressedOrLoading\n ? 'text-error-defaultPressed'\n : 'text-error-default';\n } else if (isDanger) {\n textColor = isPressedOrLoading\n ? 'text-error-defaultPressed'\n : 'text-error-default';\n } else if (isInverse) {\n textColor = 'text-primary-inverse';\n } else {\n textColor = isPressedOrLoading\n ? 'text-primary-defaultPressed'\n : 'text-primary-default';\n }\n\n return `${textColor}`;\n};\n"]}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import type { IconColor } from '../Icon';
|
|
2
|
-
import type { ButtonIconProps } from './ButtonIcon.types';
|
|
3
|
-
/**
|
|
4
|
-
* Generates a Tailwind class name string for the icon button container.
|
|
5
|
-
*
|
|
6
|
-
* This function constructs a class name string based on the button icon's `size`,
|
|
7
|
-
* `isDisabled`, `isPressed`, `isFloating`, and optional additional Tailwind class names.
|
|
8
|
-
*
|
|
9
|
-
* @param isDisabled - Determines whether the button is disabled, affecting opacity.
|
|
10
|
-
* @param isPressed - Determines whether the button is pressed, affecting background color.
|
|
11
|
-
* @param isFloating - Determines whether the button should have a floating, rounded appearance.
|
|
12
|
-
* @param size - The size of the button in pixels.
|
|
13
|
-
* @param twClassName - Additional Tailwind class names for customization.
|
|
14
|
-
* @returns A string of Tailwind class names representing the button icon's container styles.
|
|
15
|
-
*
|
|
16
|
-
* Example:
|
|
17
|
-
* ```
|
|
18
|
-
* const classNames = generateButtonIconContainerClassNames({
|
|
19
|
-
* isDisabled: true,
|
|
20
|
-
* isPressed: false,
|
|
21
|
-
* isFloating: true,
|
|
22
|
-
* size: 48,
|
|
23
|
-
* twClassName: 'border border-blue-500',
|
|
24
|
-
* });
|
|
25
|
-
*
|
|
26
|
-
* console.log(classNames);
|
|
27
|
-
* // Output: "items-center justify-center rounded-full h-[48px] w-[48px] bg-icon-default opacity-50 border border-blue-500"
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
export declare const generateButtonIconContainerClassNames: ({ isDisabled, isPressed, isFloating, size, twClassName, }: Partial<ButtonIconProps> & {
|
|
31
|
-
isPressed?: boolean | undefined;
|
|
32
|
-
}) => string;
|
|
33
|
-
/**
|
|
34
|
-
* Generates a Tailwind class name string for the icon color of a button icon.
|
|
35
|
-
*
|
|
36
|
-
* This function determines the appropriate icon color class based on whether
|
|
37
|
-
* the button icon is using an inverse theme or is floating.
|
|
38
|
-
*
|
|
39
|
-
* @param isInverse - Determines if the button icon should use an inverse theme, affecting text color.
|
|
40
|
-
* @param isFloating - Determines if the button icon is floating, affecting text color.
|
|
41
|
-
* @returns A string representing the Tailwind class name for the button icon color.
|
|
42
|
-
*
|
|
43
|
-
* Example:
|
|
44
|
-
* ```
|
|
45
|
-
* const classNames = generateButtonIconIconColorClassNames({
|
|
46
|
-
* isInverse: true,
|
|
47
|
-
* isFloating: false,
|
|
48
|
-
* });
|
|
49
|
-
*
|
|
50
|
-
* console.log(classNames);
|
|
51
|
-
* // Output: "text-primary-inverse"
|
|
52
|
-
* ```
|
|
53
|
-
*/
|
|
54
|
-
export declare const generateButtonIconIconColorClassNames: ({ isInverse, isFloating, }: Partial<ButtonIconProps>) => IconColor;
|
|
55
|
-
//# sourceMappingURL=ButtonIcon.utilities.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonIcon.utilities.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonIcon/ButtonIcon.utilities.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,qCAAqC;;MAQ9C,MAgBH,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,qCAAqC,+BAG/C,QAAQ,eAAe,CAAC,KAAG,SAK7B,CAAC"}
|