@ton/appkit-react 0.0.1-alpha.2 → 0.0.1
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 +211 -1
- package/dist/components/block/block.d.ts +13 -0
- package/dist/components/block/block.d.ts.map +1 -0
- package/dist/components/block/block.js +18 -0
- package/dist/components/block/block.js.map +1 -0
- package/dist/components/block/block.mjs +11 -0
- package/dist/components/block/block.mjs.map +1 -0
- package/dist/components/block/block.module.css +13 -0
- package/dist/components/block/block.module.css.map +1 -0
- package/dist/components/block/block.stories.d.ts +15 -0
- package/dist/components/block/block.stories.d.ts.map +1 -0
- package/dist/components/block/block.stories.js +45 -0
- package/dist/components/block/block.stories.js.map +1 -0
- package/dist/components/block/block.stories.mjs +39 -0
- package/dist/components/block/block.stories.mjs.map +1 -0
- package/dist/components/block/index.d.ts +9 -0
- package/dist/components/block/index.d.ts.map +1 -0
- package/dist/components/block/index.js +14 -0
- package/dist/components/block/index.js.map +1 -0
- package/dist/components/block/index.mjs +3 -0
- package/dist/components/block/index.mjs.map +1 -0
- package/dist/components/button/button.d.ts +10 -0
- package/dist/components/button/button.d.ts.map +1 -0
- package/dist/components/button/button.js +18 -0
- package/dist/components/button/button.js.map +1 -0
- package/dist/components/button/button.mjs +11 -0
- package/dist/components/button/button.mjs.map +1 -0
- package/dist/components/button/button.module.css +33 -0
- package/dist/components/button/button.module.css.map +1 -0
- package/dist/components/button/button.stories.d.ts +16 -0
- package/dist/components/button/button.stories.d.ts.map +1 -0
- package/dist/components/button/button.stories.js +53 -0
- package/dist/components/button/button.stories.js.map +1 -0
- package/dist/components/button/button.stories.mjs +46 -0
- package/dist/components/button/button.stories.mjs.map +1 -0
- package/dist/components/button/index.d.ts +9 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/index.js +12 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/button/index.mjs +3 -0
- package/dist/components/button/index.mjs.map +1 -0
- package/dist/components/circle-icon/circle-icon.d.ts +16 -0
- package/dist/components/circle-icon/circle-icon.d.ts.map +1 -0
- package/dist/components/circle-icon/circle-icon.js +22 -0
- package/dist/components/circle-icon/circle-icon.js.map +1 -0
- package/dist/components/circle-icon/circle-icon.mjs +15 -0
- package/dist/components/circle-icon/circle-icon.mjs.map +1 -0
- package/dist/components/circle-icon/circle-icon.module.css +31 -0
- package/dist/components/circle-icon/circle-icon.module.css.map +1 -0
- package/dist/components/circle-icon/circle-icon.stories.d.ts +18 -0
- package/dist/components/circle-icon/circle-icon.stories.d.ts.map +1 -0
- package/dist/components/circle-icon/circle-icon.stories.js +62 -0
- package/dist/components/circle-icon/circle-icon.stories.js.map +1 -0
- package/dist/components/circle-icon/circle-icon.stories.mjs +53 -0
- package/dist/components/circle-icon/circle-icon.stories.mjs.map +1 -0
- package/dist/components/circle-icon/index.d.ts +9 -0
- package/dist/components/circle-icon/index.d.ts.map +1 -0
- package/dist/components/circle-icon/index.js +14 -0
- package/dist/components/circle-icon/index.js.map +1 -0
- package/dist/components/circle-icon/index.mjs +3 -0
- package/dist/components/circle-icon/index.mjs.map +1 -0
- package/dist/components/ton-icon/index.d.ts +9 -0
- package/dist/components/ton-icon/index.d.ts.map +1 -0
- package/dist/components/ton-icon/index.js +16 -0
- package/dist/components/ton-icon/index.js.map +1 -0
- package/dist/components/ton-icon/index.mjs +3 -0
- package/dist/components/ton-icon/index.mjs.map +1 -0
- package/dist/components/ton-icon/ton-icon.d.ts +14 -0
- package/dist/components/ton-icon/ton-icon.d.ts.map +1 -0
- package/dist/components/ton-icon/ton-icon.js +39 -0
- package/dist/components/ton-icon/ton-icon.js.map +1 -0
- package/dist/components/ton-icon/ton-icon.mjs +36 -0
- package/dist/components/ton-icon/ton-icon.mjs.map +1 -0
- package/dist/components/ton-icon/ton-icon.stories.d.ts +20 -0
- package/dist/components/ton-icon/ton-icon.stories.d.ts.map +1 -0
- package/dist/components/ton-icon/ton-icon.stories.js +71 -0
- package/dist/components/ton-icon/ton-icon.stories.js.map +1 -0
- package/dist/components/ton-icon/ton-icon.stories.mjs +60 -0
- package/dist/components/ton-icon/ton-icon.stories.mjs.map +1 -0
- package/dist/features/balances/components/balance-badge/balance-badge.d.ts +21 -0
- package/dist/features/balances/components/balance-badge/balance-badge.d.ts.map +1 -0
- package/dist/features/balances/components/balance-badge/balance-badge.js +41 -0
- package/dist/features/balances/components/balance-badge/balance-badge.js.map +1 -0
- package/dist/features/balances/components/balance-badge/balance-badge.mjs +34 -0
- package/dist/features/balances/components/balance-badge/balance-badge.mjs.map +1 -0
- package/dist/features/balances/components/balance-badge/balance-badge.module.css +19 -0
- package/dist/features/balances/components/balance-badge/balance-badge.module.css.map +1 -0
- package/dist/features/balances/components/balance-badge/balance-badge.stories.d.ts +16 -0
- package/dist/features/balances/components/balance-badge/balance-badge.stories.d.ts.map +1 -0
- package/dist/features/balances/components/balance-badge/balance-badge.stories.js +59 -0
- package/dist/features/balances/components/balance-badge/balance-badge.stories.js.map +1 -0
- package/dist/features/balances/components/balance-badge/balance-badge.stories.mjs +51 -0
- package/dist/features/balances/components/balance-badge/balance-badge.stories.mjs.map +1 -0
- package/dist/features/balances/components/balance-badge/index.d.ts +9 -0
- package/dist/features/balances/components/balance-badge/index.d.ts.map +1 -0
- package/dist/features/balances/components/balance-badge/index.js +12 -0
- package/dist/features/balances/components/balance-badge/index.js.map +1 -0
- package/dist/features/balances/components/balance-badge/index.mjs +3 -0
- package/dist/features/balances/components/balance-badge/index.mjs.map +1 -0
- package/dist/features/balances/components/currency-item/currency-item.d.ts +17 -0
- package/dist/features/balances/components/currency-item/currency-item.d.ts.map +1 -0
- package/dist/features/balances/components/currency-item/currency-item.js +44 -0
- package/dist/features/balances/components/currency-item/currency-item.js.map +1 -0
- package/dist/features/balances/components/currency-item/currency-item.mjs +37 -0
- package/dist/features/balances/components/currency-item/currency-item.mjs.map +1 -0
- package/dist/features/balances/components/currency-item/currency-item.module.css +69 -0
- package/dist/features/balances/components/currency-item/currency-item.module.css.map +1 -0
- package/dist/features/balances/components/currency-item/currency-item.stories.d.ts +19 -0
- package/dist/features/balances/components/currency-item/currency-item.stories.d.ts.map +1 -0
- package/dist/features/balances/components/currency-item/currency-item.stories.js +89 -0
- package/dist/features/balances/components/currency-item/currency-item.stories.js.map +1 -0
- package/dist/features/balances/components/currency-item/currency-item.stories.mjs +79 -0
- package/dist/features/balances/components/currency-item/currency-item.stories.mjs.map +1 -0
- package/dist/features/balances/components/currency-item/index.d.ts +9 -0
- package/dist/features/balances/components/currency-item/index.d.ts.map +1 -0
- package/dist/features/balances/components/currency-item/index.js +14 -0
- package/dist/features/balances/components/currency-item/index.js.map +1 -0
- package/dist/features/balances/components/currency-item/index.mjs +3 -0
- package/dist/features/balances/components/currency-item/index.mjs.map +1 -0
- package/dist/features/balances/components/send-jetton-button/index.d.ts +9 -0
- package/dist/features/balances/components/send-jetton-button/index.d.ts.map +1 -0
- package/dist/features/balances/components/send-jetton-button/index.js +14 -0
- package/dist/features/balances/components/send-jetton-button/index.js.map +1 -0
- package/dist/features/balances/components/send-jetton-button/index.mjs +3 -0
- package/dist/features/balances/components/send-jetton-button/index.mjs.map +1 -0
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.d.ts +21 -0
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.d.ts.map +1 -0
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.js +56 -0
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.js.map +1 -0
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.mjs +54 -0
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.mjs.map +1 -0
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.d.ts +22 -0
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.d.ts.map +1 -0
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.js +58 -0
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.js.map +1 -0
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.mjs +49 -0
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.mjs.map +1 -0
- package/dist/features/balances/components/send-ton-button/index.d.ts +9 -0
- package/dist/features/balances/components/send-ton-button/index.d.ts.map +1 -0
- package/dist/features/balances/components/send-ton-button/index.js +14 -0
- package/dist/features/balances/components/send-ton-button/index.js.map +1 -0
- package/dist/features/balances/components/send-ton-button/index.mjs +3 -0
- package/dist/features/balances/components/send-ton-button/index.mjs.map +1 -0
- package/dist/features/balances/components/send-ton-button/send-ton-button.d.ts +16 -0
- package/dist/features/balances/components/send-ton-button/send-ton-button.d.ts.map +1 -0
- package/dist/features/balances/components/send-ton-button/send-ton-button.js +33 -0
- package/dist/features/balances/components/send-ton-button/send-ton-button.js.map +1 -0
- package/dist/features/balances/components/send-ton-button/send-ton-button.mjs +31 -0
- package/dist/features/balances/components/send-ton-button/send-ton-button.mjs.map +1 -0
- package/dist/features/balances/components/send-ton-button/send-ton-button.stories.d.ts +21 -0
- package/dist/features/balances/components/send-ton-button/send-ton-button.stories.d.ts.map +1 -0
- package/dist/features/balances/components/send-ton-button/send-ton-button.stories.js +52 -0
- package/dist/features/balances/components/send-ton-button/send-ton-button.stories.js.map +1 -0
- package/dist/features/balances/components/send-ton-button/send-ton-button.stories.mjs +44 -0
- package/dist/features/balances/components/send-ton-button/send-ton-button.stories.mjs.map +1 -0
- package/dist/features/balances/hooks/use-balance-by-address.d.ts +16 -0
- package/dist/features/balances/hooks/use-balance-by-address.d.ts.map +1 -0
- package/dist/features/balances/hooks/use-balance-by-address.js +14 -0
- package/dist/features/balances/hooks/use-balance-by-address.js.map +1 -0
- package/dist/features/balances/hooks/use-balance-by-address.mjs +12 -0
- package/dist/features/balances/hooks/use-balance-by-address.mjs.map +1 -0
- package/dist/features/balances/hooks/use-balance.d.ts +16 -0
- package/dist/features/balances/hooks/use-balance.d.ts.map +1 -0
- package/dist/features/balances/hooks/use-balance.js +13 -0
- package/dist/features/balances/hooks/use-balance.js.map +1 -0
- package/dist/features/balances/hooks/use-balance.mjs +11 -0
- package/dist/features/balances/hooks/use-balance.mjs.map +1 -0
- package/dist/features/balances/index.d.ts +14 -0
- package/dist/features/balances/index.d.ts.map +1 -0
- package/dist/features/balances/index.js +49 -0
- package/dist/features/balances/index.js.map +1 -0
- package/dist/features/balances/index.mjs +8 -0
- package/dist/features/balances/index.mjs.map +1 -0
- package/dist/features/jettons/hooks/use-jetton-balance-by-address.d.ts +16 -0
- package/dist/features/jettons/hooks/use-jetton-balance-by-address.d.ts.map +1 -0
- package/dist/features/jettons/hooks/use-jetton-balance-by-address.js +14 -0
- package/dist/features/jettons/hooks/use-jetton-balance-by-address.js.map +1 -0
- package/dist/features/jettons/hooks/use-jetton-balance-by-address.mjs +12 -0
- package/dist/features/jettons/hooks/use-jetton-balance-by-address.mjs.map +1 -0
- package/dist/features/jettons/hooks/use-jetton-info.d.ts +16 -0
- package/dist/features/jettons/hooks/use-jetton-info.d.ts.map +1 -0
- package/dist/features/jettons/hooks/use-jetton-info.js +14 -0
- package/dist/features/jettons/hooks/use-jetton-info.js.map +1 -0
- package/dist/features/jettons/hooks/use-jetton-info.mjs +12 -0
- package/dist/features/jettons/hooks/use-jetton-info.mjs.map +1 -0
- package/dist/features/jettons/hooks/use-jetton-wallet-address.d.ts +16 -0
- package/dist/features/jettons/hooks/use-jetton-wallet-address.d.ts.map +1 -0
- package/dist/features/jettons/hooks/use-jetton-wallet-address.js +14 -0
- package/dist/features/jettons/hooks/use-jetton-wallet-address.js.map +1 -0
- package/dist/features/jettons/hooks/use-jetton-wallet-address.mjs +12 -0
- package/dist/features/jettons/hooks/use-jetton-wallet-address.mjs.map +1 -0
- package/dist/features/jettons/hooks/use-jettons-by-address.d.ts +16 -0
- package/dist/features/jettons/hooks/use-jettons-by-address.d.ts.map +1 -0
- package/dist/features/jettons/hooks/use-jettons-by-address.js +14 -0
- package/dist/features/jettons/hooks/use-jettons-by-address.js.map +1 -0
- package/dist/features/jettons/hooks/use-jettons-by-address.mjs +12 -0
- package/dist/features/jettons/hooks/use-jettons-by-address.mjs.map +1 -0
- package/dist/features/jettons/hooks/use-jettons.d.ts +16 -0
- package/dist/features/jettons/hooks/use-jettons.d.ts.map +1 -0
- package/dist/features/jettons/hooks/use-jettons.js +13 -0
- package/dist/features/jettons/hooks/use-jettons.js.map +1 -0
- package/dist/features/jettons/hooks/use-jettons.mjs +11 -0
- package/dist/features/jettons/hooks/use-jettons.mjs.map +1 -0
- package/dist/features/jettons/hooks/use-transfer-jetton.d.ts +14 -0
- package/dist/features/jettons/hooks/use-transfer-jetton.d.ts.map +1 -0
- package/dist/features/jettons/hooks/use-transfer-jetton.js +14 -0
- package/dist/features/jettons/hooks/use-transfer-jetton.js.map +1 -0
- package/dist/features/jettons/hooks/use-transfer-jetton.mjs +12 -0
- package/dist/features/jettons/hooks/use-transfer-jetton.mjs.map +1 -0
- package/dist/features/jettons/index.d.ts +14 -0
- package/dist/features/jettons/index.d.ts.map +1 -0
- package/dist/features/jettons/index.js +49 -0
- package/dist/features/jettons/index.js.map +1 -0
- package/dist/features/jettons/index.mjs +8 -0
- package/dist/features/jettons/index.mjs.map +1 -0
- package/dist/features/network/hooks/use-network.d.ts +14 -0
- package/dist/features/network/hooks/use-network.d.ts.map +1 -0
- package/dist/features/network/hooks/use-network.js +13 -0
- package/dist/features/network/hooks/use-network.js.map +1 -0
- package/dist/features/network/hooks/use-network.mjs +11 -0
- package/dist/features/network/hooks/use-network.mjs.map +1 -0
- package/dist/features/network/hooks/use-networks.d.ts +14 -0
- package/dist/features/network/hooks/use-networks.d.ts.map +1 -0
- package/dist/features/network/hooks/use-networks.js +23 -0
- package/dist/features/network/hooks/use-networks.js.map +1 -0
- package/dist/features/network/hooks/use-networks.mjs +21 -0
- package/dist/features/network/hooks/use-networks.mjs.map +1 -0
- package/dist/features/network/index.d.ts +10 -0
- package/dist/features/network/index.d.ts.map +1 -0
- package/dist/features/network/index.js +17 -0
- package/dist/features/network/index.js.map +1 -0
- package/dist/features/network/index.mjs +4 -0
- package/dist/features/network/index.mjs.map +1 -0
- package/dist/features/nft/components/nft-item/index.d.ts +9 -0
- package/dist/features/nft/components/nft-item/index.d.ts.map +1 -0
- package/dist/features/nft/components/nft-item/index.js +14 -0
- package/dist/features/nft/components/nft-item/index.js.map +1 -0
- package/dist/features/nft/components/nft-item/index.mjs +3 -0
- package/dist/features/nft/components/nft-item/index.mjs.map +1 -0
- package/dist/features/nft/components/nft-item/nft-item.d.ts +14 -0
- package/dist/features/nft/components/nft-item/nft-item.d.ts.map +1 -0
- package/dist/features/nft/components/nft-item/nft-item.js +43 -0
- package/dist/features/nft/components/nft-item/nft-item.js.map +1 -0
- package/dist/features/nft/components/nft-item/nft-item.mjs +36 -0
- package/dist/features/nft/components/nft-item/nft-item.mjs.map +1 -0
- package/dist/features/nft/components/nft-item/nft-item.module.css +65 -0
- package/dist/features/nft/components/nft-item/nft-item.module.css.map +1 -0
- package/dist/features/nft/components/nft-item/nft-item.stories.d.ts +25 -0
- package/dist/features/nft/components/nft-item/nft-item.stories.d.ts.map +1 -0
- package/dist/features/nft/components/nft-item/nft-item.stories.js +124 -0
- package/dist/features/nft/components/nft-item/nft-item.stories.js.map +1 -0
- package/dist/features/nft/components/nft-item/nft-item.stories.mjs +110 -0
- package/dist/features/nft/components/nft-item/nft-item.stories.mjs.map +1 -0
- package/dist/features/nft/hooks/use-nft.d.ts +16 -0
- package/dist/features/nft/hooks/use-nft.d.ts.map +1 -0
- package/dist/features/nft/hooks/use-nft.js +14 -0
- package/dist/features/nft/hooks/use-nft.js.map +1 -0
- package/dist/features/nft/hooks/use-nft.mjs +12 -0
- package/dist/features/nft/hooks/use-nft.mjs.map +1 -0
- package/dist/features/nft/hooks/use-nfts-by-address.d.ts +16 -0
- package/dist/features/nft/hooks/use-nfts-by-address.d.ts.map +1 -0
- package/dist/features/nft/hooks/use-nfts-by-address.js +14 -0
- package/dist/features/nft/hooks/use-nfts-by-address.js.map +1 -0
- package/dist/features/nft/hooks/use-nfts-by-address.mjs +12 -0
- package/dist/features/nft/hooks/use-nfts-by-address.mjs.map +1 -0
- package/dist/features/nft/hooks/use-nfts.d.ts +16 -0
- package/dist/features/nft/hooks/use-nfts.d.ts.map +1 -0
- package/dist/features/nft/hooks/use-nfts.js +13 -0
- package/dist/features/nft/hooks/use-nfts.js.map +1 -0
- package/dist/features/nft/hooks/use-nfts.mjs +11 -0
- package/dist/features/nft/hooks/use-nfts.mjs.map +1 -0
- package/dist/features/nft/hooks/use-transfer-nft.d.ts +14 -0
- package/dist/features/nft/hooks/use-transfer-nft.d.ts.map +1 -0
- package/dist/features/nft/hooks/use-transfer-nft.js +14 -0
- package/dist/features/nft/hooks/use-transfer-nft.js.map +1 -0
- package/dist/features/nft/hooks/use-transfer-nft.mjs +12 -0
- package/dist/features/nft/hooks/use-transfer-nft.mjs.map +1 -0
- package/dist/features/nft/index.d.ts +13 -0
- package/dist/features/nft/index.d.ts.map +1 -0
- package/dist/features/nft/index.js +42 -0
- package/dist/features/nft/index.js.map +1 -0
- package/dist/features/nft/index.mjs +7 -0
- package/dist/features/nft/index.mjs.map +1 -0
- package/dist/features/signing/hooks/use-sign-binary.d.ts +25 -0
- package/dist/features/signing/hooks/use-sign-binary.d.ts.map +1 -0
- package/dist/features/signing/hooks/use-sign-binary.js +14 -0
- package/dist/features/signing/hooks/use-sign-binary.js.map +1 -0
- package/dist/features/signing/hooks/use-sign-binary.mjs +12 -0
- package/dist/features/signing/hooks/use-sign-binary.mjs.map +1 -0
- package/dist/features/signing/hooks/use-sign-cell.d.ts +26 -0
- package/dist/features/signing/hooks/use-sign-cell.d.ts.map +1 -0
- package/dist/features/signing/hooks/use-sign-cell.js +14 -0
- package/dist/features/signing/hooks/use-sign-cell.js.map +1 -0
- package/dist/features/signing/hooks/use-sign-cell.mjs +12 -0
- package/dist/features/signing/hooks/use-sign-cell.mjs.map +1 -0
- package/dist/features/signing/hooks/use-sign-text.d.ts +25 -0
- package/dist/features/signing/hooks/use-sign-text.d.ts.map +1 -0
- package/dist/features/signing/hooks/use-sign-text.js +14 -0
- package/dist/features/signing/hooks/use-sign-text.js.map +1 -0
- package/dist/features/signing/hooks/use-sign-text.mjs +12 -0
- package/dist/features/signing/hooks/use-sign-text.mjs.map +1 -0
- package/dist/features/signing/index.d.ts +11 -0
- package/dist/features/signing/index.d.ts.map +1 -0
- package/dist/features/signing/index.js +28 -0
- package/dist/features/signing/index.js.map +1 -0
- package/dist/features/signing/index.mjs +5 -0
- package/dist/features/signing/index.mjs.map +1 -0
- package/dist/features/swap/hooks/use-build-swap-transaction.d.ts +13 -0
- package/dist/features/swap/hooks/use-build-swap-transaction.d.ts.map +1 -0
- package/dist/features/swap/hooks/use-build-swap-transaction.js +14 -0
- package/dist/features/swap/hooks/use-build-swap-transaction.js.map +1 -0
- package/dist/features/swap/hooks/use-build-swap-transaction.mjs +12 -0
- package/dist/features/swap/hooks/use-build-swap-transaction.mjs.map +1 -0
- package/dist/features/swap/hooks/use-swap-quote.d.ts +13 -0
- package/dist/features/swap/hooks/use-swap-quote.d.ts.map +1 -0
- package/dist/features/swap/hooks/use-swap-quote.js +14 -0
- package/dist/features/swap/hooks/use-swap-quote.js.map +1 -0
- package/dist/features/swap/hooks/use-swap-quote.mjs +12 -0
- package/dist/features/swap/hooks/use-swap-quote.mjs.map +1 -0
- package/dist/features/swap/index.d.ts +10 -0
- package/dist/features/swap/index.d.ts.map +1 -0
- package/dist/features/swap/index.js +21 -0
- package/dist/features/swap/index.js.map +1 -0
- package/dist/features/swap/index.mjs +4 -0
- package/dist/features/swap/index.mjs.map +1 -0
- package/dist/features/transaction/components/transaction/index.d.ts +10 -0
- package/dist/features/transaction/components/transaction/index.d.ts.map +1 -0
- package/dist/features/transaction/components/transaction/index.js +12 -0
- package/dist/features/transaction/components/transaction/index.js.map +1 -0
- package/dist/features/transaction/components/transaction/index.mjs +3 -0
- package/dist/features/transaction/components/transaction/index.mjs.map +1 -0
- package/dist/features/transaction/components/transaction/transaction.d.ts +30 -0
- package/dist/features/transaction/components/transaction/transaction.d.ts.map +1 -0
- package/dist/features/transaction/components/transaction/transaction.js +49 -0
- package/dist/features/transaction/components/transaction/transaction.js.map +1 -0
- package/dist/features/transaction/components/transaction/transaction.mjs +47 -0
- package/dist/features/transaction/components/transaction/transaction.mjs.map +1 -0
- package/dist/features/transaction/components/transaction/transaction.stories.d.ts +23 -0
- package/dist/features/transaction/components/transaction/transaction.stories.d.ts.map +1 -0
- package/dist/features/transaction/components/transaction/transaction.stories.js +64 -0
- package/dist/features/transaction/components/transaction/transaction.stories.js.map +1 -0
- package/dist/features/transaction/components/transaction/transaction.stories.mjs +54 -0
- package/dist/features/transaction/components/transaction/transaction.stories.mjs.map +1 -0
- package/dist/features/transaction/components/transaction-provider/index.d.ts +10 -0
- package/dist/features/transaction/components/transaction-provider/index.d.ts.map +1 -0
- package/dist/features/transaction/components/transaction-provider/index.js +20 -0
- package/dist/features/transaction/components/transaction-provider/index.js.map +1 -0
- package/dist/features/transaction/components/transaction-provider/index.mjs +3 -0
- package/dist/features/transaction/components/transaction-provider/index.mjs.map +1 -0
- package/dist/features/transaction/components/transaction-provider/transaction-provider.d.ts +36 -0
- package/dist/features/transaction/components/transaction-provider/transaction-provider.d.ts.map +1 -0
- package/dist/features/transaction/components/transaction-provider/transaction-provider.js +76 -0
- package/dist/features/transaction/components/transaction-provider/transaction-provider.js.map +1 -0
- package/dist/features/transaction/components/transaction-provider/transaction-provider.mjs +72 -0
- package/dist/features/transaction/components/transaction-provider/transaction-provider.mjs.map +1 -0
- package/dist/features/transaction/hooks/use-send-transaction.d.ts +14 -0
- package/dist/features/transaction/hooks/use-send-transaction.d.ts.map +1 -0
- package/dist/features/transaction/hooks/use-send-transaction.js +14 -0
- package/dist/features/transaction/hooks/use-send-transaction.js.map +1 -0
- package/dist/features/transaction/hooks/use-send-transaction.mjs +12 -0
- package/dist/features/transaction/hooks/use-send-transaction.mjs.map +1 -0
- package/dist/features/transaction/hooks/use-transfer-ton.d.ts +14 -0
- package/dist/features/transaction/hooks/use-transfer-ton.d.ts.map +1 -0
- package/dist/features/transaction/hooks/use-transfer-ton.js +14 -0
- package/dist/features/transaction/hooks/use-transfer-ton.js.map +1 -0
- package/dist/features/transaction/hooks/use-transfer-ton.mjs +12 -0
- package/dist/features/transaction/hooks/use-transfer-ton.mjs.map +1 -0
- package/dist/features/transaction/index.d.ts +11 -0
- package/dist/features/transaction/index.d.ts.map +1 -0
- package/dist/features/transaction/index.js +28 -0
- package/dist/features/transaction/index.js.map +1 -0
- package/dist/features/transaction/index.mjs +5 -0
- package/dist/features/transaction/index.mjs.map +1 -0
- package/dist/features/wallets/components/connect-button/index.d.ts +9 -0
- package/dist/features/wallets/components/connect-button/index.d.ts.map +1 -0
- package/dist/features/wallets/components/connect-button/index.js +12 -0
- package/dist/features/wallets/components/connect-button/index.js.map +1 -0
- package/dist/features/wallets/components/connect-button/index.mjs +3 -0
- package/dist/features/wallets/components/connect-button/index.mjs.map +1 -0
- package/dist/features/wallets/hooks/use-address.d.ts +13 -0
- package/dist/features/wallets/hooks/use-address.d.ts.map +1 -0
- package/dist/features/wallets/hooks/use-address.js +13 -0
- package/dist/features/wallets/hooks/use-address.js.map +1 -0
- package/dist/features/wallets/hooks/use-address.mjs +11 -0
- package/dist/features/wallets/hooks/use-address.mjs.map +1 -0
- package/dist/features/wallets/hooks/use-connect.d.ts +14 -0
- package/dist/features/wallets/hooks/use-connect.d.ts.map +1 -0
- package/dist/features/wallets/hooks/use-connect.js +14 -0
- package/dist/features/wallets/hooks/use-connect.js.map +1 -0
- package/dist/features/wallets/hooks/use-connect.mjs +12 -0
- package/dist/features/wallets/hooks/use-connect.mjs.map +1 -0
- package/dist/features/wallets/hooks/use-connected-wallets.d.ts +11 -0
- package/dist/features/wallets/hooks/use-connected-wallets.d.ts.map +1 -0
- package/dist/features/wallets/hooks/use-connected-wallets.js +23 -0
- package/dist/features/wallets/hooks/use-connected-wallets.js.map +1 -0
- package/dist/features/wallets/hooks/use-connected-wallets.mjs +21 -0
- package/dist/features/wallets/hooks/use-connected-wallets.mjs.map +1 -0
- package/dist/features/wallets/hooks/use-connector-by-id.d.ts +10 -0
- package/dist/features/wallets/hooks/use-connector-by-id.d.ts.map +1 -0
- package/dist/features/wallets/hooks/use-connector-by-id.js +23 -0
- package/dist/features/wallets/hooks/use-connector-by-id.js.map +1 -0
- package/dist/features/wallets/hooks/use-connector-by-id.mjs +21 -0
- package/dist/features/wallets/hooks/use-connector-by-id.mjs.map +1 -0
- package/dist/features/wallets/hooks/use-connectors.d.ts +11 -0
- package/dist/features/wallets/hooks/use-connectors.d.ts.map +1 -0
- package/dist/features/wallets/hooks/use-connectors.js +23 -0
- package/dist/features/wallets/hooks/use-connectors.js.map +1 -0
- package/dist/features/wallets/hooks/use-connectors.mjs +21 -0
- package/dist/features/wallets/hooks/use-connectors.mjs.map +1 -0
- package/dist/features/wallets/hooks/use-disconnect.d.ts +14 -0
- package/dist/features/wallets/hooks/use-disconnect.d.ts.map +1 -0
- package/dist/features/wallets/hooks/use-disconnect.js +14 -0
- package/dist/features/wallets/hooks/use-disconnect.js.map +1 -0
- package/dist/features/wallets/hooks/use-disconnect.mjs +12 -0
- package/dist/features/wallets/hooks/use-disconnect.mjs.map +1 -0
- package/dist/features/wallets/hooks/use-selected-wallet.d.ts +14 -0
- package/dist/features/wallets/hooks/use-selected-wallet.d.ts.map +1 -0
- package/dist/features/wallets/hooks/use-selected-wallet.js +30 -0
- package/dist/features/wallets/hooks/use-selected-wallet.js.map +1 -0
- package/dist/features/wallets/hooks/use-selected-wallet.mjs +28 -0
- package/dist/features/wallets/hooks/use-selected-wallet.mjs.map +1 -0
- package/dist/features/wallets/index.d.ts +16 -0
- package/dist/features/wallets/index.d.ts.map +1 -0
- package/dist/features/wallets/index.js +63 -0
- package/dist/features/wallets/index.js.map +1 -0
- package/dist/features/wallets/index.mjs +10 -0
- package/dist/features/wallets/index.mjs.map +1 -0
- package/dist/global.d.js +4 -0
- package/dist/global.d.js.map +1 -0
- package/dist/global.d.mjs +3 -0
- package/dist/global.d.mjs.map +1 -0
- package/dist/hooks/use-app-kit-theme.d.ts +10 -0
- package/dist/hooks/use-app-kit-theme.d.ts.map +1 -0
- package/dist/hooks/use-app-kit-theme.js +16 -0
- package/dist/hooks/use-app-kit-theme.js.map +1 -0
- package/dist/hooks/use-app-kit-theme.mjs +14 -0
- package/dist/hooks/use-app-kit-theme.mjs.map +1 -0
- package/dist/hooks/use-app-kit.d.ts +9 -0
- package/dist/hooks/use-app-kit.d.ts.map +1 -0
- package/dist/hooks/use-app-kit.js +16 -0
- package/dist/hooks/use-app-kit.js.map +1 -0
- package/dist/hooks/use-app-kit.mjs +14 -0
- package/dist/hooks/use-app-kit.mjs.map +1 -0
- package/dist/hooks/use-i18n.d.ts +9 -0
- package/dist/hooks/use-i18n.d.ts.map +1 -0
- package/dist/hooks/use-i18n.js +16 -0
- package/dist/hooks/use-i18n.js.map +1 -0
- package/dist/hooks/use-i18n.mjs +14 -0
- package/dist/hooks/use-i18n.mjs.map +1 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +123 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +20 -0
- package/dist/index.mjs.map +1 -0
- package/dist/libs/i18n.d.ts +34 -0
- package/dist/libs/i18n.d.ts.map +1 -0
- package/dist/libs/i18n.js +22 -0
- package/dist/libs/i18n.js.map +1 -0
- package/dist/libs/i18n.mjs +11 -0
- package/dist/libs/i18n.mjs.map +1 -0
- package/dist/libs/query.d.ts +26 -0
- package/dist/libs/query.d.ts.map +1 -0
- package/dist/libs/query.js +20 -0
- package/dist/libs/query.js.map +1 -0
- package/dist/libs/query.mjs +15 -0
- package/dist/libs/query.mjs.map +1 -0
- package/dist/locales/en.d.ts +29 -0
- package/dist/locales/en.d.ts.map +1 -0
- package/dist/locales/en.js +30 -0
- package/dist/locales/en.js.map +1 -0
- package/dist/locales/en.mjs +28 -0
- package/dist/locales/en.mjs.map +1 -0
- package/dist/providers/app-kit-provider.d.ts +15 -0
- package/dist/providers/app-kit-provider.d.ts.map +1 -0
- package/dist/providers/app-kit-provider.js +16 -0
- package/dist/providers/app-kit-provider.js.map +1 -0
- package/dist/providers/app-kit-provider.mjs +13 -0
- package/dist/providers/app-kit-provider.mjs.map +1 -0
- package/dist/providers/i18n-provider.d.ts +22 -0
- package/dist/providers/i18n-provider.d.ts.map +1 -0
- package/dist/providers/i18n-provider.js +55 -0
- package/dist/providers/i18n-provider.js.map +1 -0
- package/dist/providers/i18n-provider.mjs +52 -0
- package/dist/providers/i18n-provider.mjs.map +1 -0
- package/dist/styles/index.css +73 -0
- package/dist/styles/index.css.map +1 -0
- package/dist/styles/typography.module.css +79 -0
- package/dist/styles/typography.module.css.map +1 -0
- package/dist/tonconnect/tonconnect-bridge.d.ts +19 -0
- package/dist/tonconnect/tonconnect-bridge.d.ts.map +1 -0
- package/dist/tonconnect/tonconnect-bridge.js +23 -0
- package/dist/tonconnect/tonconnect-bridge.js.map +1 -0
- package/dist/tonconnect/tonconnect-bridge.mjs +21 -0
- package/dist/tonconnect/tonconnect-bridge.mjs.map +1 -0
- package/package.json +63 -7
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Button } from './button';
|
|
3
|
+
|
|
4
|
+
const meta = {
|
|
5
|
+
title: "Public/Components/Button",
|
|
6
|
+
component: Button,
|
|
7
|
+
tags: ["autodocs"],
|
|
8
|
+
argTypes: {
|
|
9
|
+
disabled: {
|
|
10
|
+
control: "boolean"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
var button_stories_default = meta;
|
|
15
|
+
const Default = {
|
|
16
|
+
args: {
|
|
17
|
+
children: "Click me"
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
const Disabled = {
|
|
21
|
+
args: {
|
|
22
|
+
children: "Disabled Button",
|
|
23
|
+
disabled: true
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
const WithIcon = {
|
|
27
|
+
args: {
|
|
28
|
+
children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
29
|
+
/* @__PURE__ */ jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx(
|
|
30
|
+
"path",
|
|
31
|
+
{
|
|
32
|
+
d: "M12 5V19M5 12H19",
|
|
33
|
+
stroke: "currentColor",
|
|
34
|
+
strokeWidth: "2",
|
|
35
|
+
strokeLinecap: "round",
|
|
36
|
+
strokeLinejoin: "round"
|
|
37
|
+
}
|
|
38
|
+
) }),
|
|
39
|
+
"Add Item"
|
|
40
|
+
] })
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export { Default, Disabled, WithIcon, button_stories_default as default };
|
|
45
|
+
//# sourceMappingURL=button.stories.mjs.map
|
|
46
|
+
//# sourceMappingURL=button.stories.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/button/button.stories.tsx"],"names":[],"mappings":";;;AAYA,MAAM,IAAA,GAA4B;AAAA,EAC9B,KAAA,EAAO,0BAAA;AAAA,EACP,SAAA,EAAW,MAAA;AAAA,EACX,IAAA,EAAM,CAAC,UAAU,CAAA;AAAA,EACjB,QAAA,EAAU;AAAA,IACN,QAAA,EAAU;AAAA,MACN,OAAA,EAAS;AAAA;AACb;AAER,CAAA;AAEA,IAAO,sBAAA,GAAQ;AAIR,MAAM,OAAA,GAAiB;AAAA,EAC1B,IAAA,EAAM;AAAA,IACF,QAAA,EAAU;AAAA;AAElB;AAEO,MAAM,QAAA,GAAkB;AAAA,EAC3B,IAAA,EAAM;AAAA,IACF,QAAA,EAAU,iBAAA;AAAA,IACV,QAAA,EAAU;AAAA;AAElB;AAEO,MAAM,QAAA,GAAkB;AAAA,EAC3B,IAAA,EAAM;AAAA,IACF,0BACI,IAAA,CAAA,QAAA,EAAA,EACI,QAAA,EAAA;AAAA,sBAAA,GAAA,CAAC,KAAA,EAAA,EAAI,KAAA,EAAM,IAAA,EAAK,MAAA,EAAO,IAAA,EAAK,SAAQ,WAAA,EAAY,IAAA,EAAK,MAAA,EAAO,KAAA,EAAM,4BAAA,EAC9D,QAAA,kBAAA,GAAA;AAAA,QAAC,MAAA;AAAA,QAAA;AAAA,UACG,CAAA,EAAE,kBAAA;AAAA,UACF,MAAA,EAAO,cAAA;AAAA,UACP,WAAA,EAAY,GAAA;AAAA,UACZ,aAAA,EAAc,OAAA;AAAA,UACd,cAAA,EAAe;AAAA;AAAA,OACnB,EACJ,CAAA;AAAA,MAAM;AAAA,KAAA,EAEV;AAAA;AAGZ","file":"button.stories.mjs","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { Meta, StoryObj } from '@storybook/react';\n\nimport { Button } from './button';\n\nconst meta: Meta<typeof Button> = {\n title: 'Public/Components/Button',\n component: Button,\n tags: ['autodocs'],\n argTypes: {\n disabled: {\n control: 'boolean',\n },\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof Button>;\n\nexport const Default: Story = {\n args: {\n children: 'Click me',\n },\n};\n\nexport const Disabled: Story = {\n args: {\n children: 'Disabled Button',\n disabled: true,\n },\n};\n\nexport const WithIcon: Story = {\n args: {\n children: (\n <>\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M12 5V19M5 12H19\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n Add Item\n </>\n ),\n },\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js","sourcesContent":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs","sourcesContent":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) TonTech.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import type { FC, ComponentProps } from 'react';
|
|
9
|
+
export interface CircleIconProps extends ComponentProps<'div'> {
|
|
10
|
+
size?: number;
|
|
11
|
+
src?: string;
|
|
12
|
+
alt?: string;
|
|
13
|
+
fallback?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const CircleIcon: FC<CircleIconProps>;
|
|
16
|
+
//# sourceMappingURL=circle-icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"circle-icon.d.ts","sourceRoot":"","sources":["../../../src/components/circle-icon/circle-icon.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAMhD,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC1D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAY1C,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var clsx = require('clsx');
|
|
5
|
+
var radixUi = require('radix-ui');
|
|
6
|
+
var styles = require('./circle-icon.module.css');
|
|
7
|
+
|
|
8
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
|
|
10
|
+
var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
11
|
+
var styles__default = /*#__PURE__*/_interopDefault(styles);
|
|
12
|
+
|
|
13
|
+
const CircleIcon = ({ className, size = 30, src, alt, fallback, ...props }) => {
|
|
14
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(radixUi.Avatar.Root, { className: clsx__default.default(styles__default.default.avatarRoot, className), style: { width: size, height: size }, ...props, children: [
|
|
15
|
+
/* @__PURE__ */ jsxRuntime.jsx(radixUi.Avatar.Image, { className: styles__default.default.avatarImage, src, alt }),
|
|
16
|
+
(fallback || alt) && /* @__PURE__ */ jsxRuntime.jsx(radixUi.Avatar.Fallback, { className: styles__default.default.avatarFallback, delayMs: 600, children: fallback ? fallback : alt?.[0] })
|
|
17
|
+
] });
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
exports.CircleIcon = CircleIcon;
|
|
21
|
+
//# sourceMappingURL=circle-icon.js.map
|
|
22
|
+
//# sourceMappingURL=circle-icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/circle-icon/circle-icon.tsx"],"names":["Avatar","clsx","styles","jsx"],"mappings":";;;;;;;;;;;;AAqBO,MAAM,UAAA,GAAkC,CAAC,EAAE,SAAA,EAAW,IAAA,GAAO,EAAA,EAAI,GAAA,EAAK,GAAA,EAAK,QAAA,EAAU,GAAG,KAAA,EAAM,KAAM;AACvG,EAAA,uCACKA,cAAA,CAAO,IAAA,EAAP,EAAY,SAAA,EAAWC,qBAAA,CAAKC,wBAAO,UAAA,EAAY,SAAS,CAAA,EAAG,KAAA,EAAO,EAAE,KAAA,EAAO,IAAA,EAAM,QAAQ,IAAA,EAAK,EAAI,GAAG,KAAA,EAClG,QAAA,EAAA;AAAA,oBAAAC,cAAA,CAACH,eAAO,KAAA,EAAP,EAAa,WAAWE,uBAAA,CAAO,WAAA,EAAa,KAAU,GAAA,EAAU,CAAA;AAAA,IAAA,CAE/D,QAAA,IAAY,GAAA,qBACVC,cAAA,CAACH,cAAA,CAAO,UAAP,EAAgB,SAAA,EAAWE,uBAAA,CAAO,cAAA,EAAgB,SAAS,GAAA,EACvD,QAAA,EAAA,QAAA,GAAW,QAAA,GAAW,GAAA,GAAM,CAAC,CAAA,EAClC;AAAA,GAAA,EAER,CAAA;AAER","file":"circle-icon.js","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { FC, ComponentProps } from 'react';\nimport clsx from 'clsx';\nimport { Avatar } from 'radix-ui';\n\nimport styles from './circle-icon.module.css';\n\nexport interface CircleIconProps extends ComponentProps<'div'> {\n size?: number;\n src?: string;\n alt?: string;\n fallback?: string;\n}\n\nexport const CircleIcon: FC<CircleIconProps> = ({ className, size = 30, src, alt, fallback, ...props }) => {\n return (\n <Avatar.Root className={clsx(styles.avatarRoot, className)} style={{ width: size, height: size }} {...props}>\n <Avatar.Image className={styles.avatarImage} src={src} alt={alt} />\n\n {(fallback || alt) && (\n <Avatar.Fallback className={styles.avatarFallback} delayMs={600}>\n {fallback ? fallback : alt?.[0]}\n </Avatar.Fallback>\n )}\n </Avatar.Root>\n );\n};\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import { Avatar } from 'radix-ui';
|
|
4
|
+
import styles from './circle-icon.module.css';
|
|
5
|
+
|
|
6
|
+
const CircleIcon = ({ className, size = 30, src, alt, fallback, ...props }) => {
|
|
7
|
+
return /* @__PURE__ */ jsxs(Avatar.Root, { className: clsx(styles.avatarRoot, className), style: { width: size, height: size }, ...props, children: [
|
|
8
|
+
/* @__PURE__ */ jsx(Avatar.Image, { className: styles.avatarImage, src, alt }),
|
|
9
|
+
(fallback || alt) && /* @__PURE__ */ jsx(Avatar.Fallback, { className: styles.avatarFallback, delayMs: 600, children: fallback ? fallback : alt?.[0] })
|
|
10
|
+
] });
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { CircleIcon };
|
|
14
|
+
//# sourceMappingURL=circle-icon.mjs.map
|
|
15
|
+
//# sourceMappingURL=circle-icon.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/circle-icon/circle-icon.tsx"],"names":[],"mappings":";;;;;AAqBO,MAAM,UAAA,GAAkC,CAAC,EAAE,SAAA,EAAW,IAAA,GAAO,EAAA,EAAI,GAAA,EAAK,GAAA,EAAK,QAAA,EAAU,GAAG,KAAA,EAAM,KAAM;AACvG,EAAA,4BACK,MAAA,CAAO,IAAA,EAAP,EAAY,SAAA,EAAW,IAAA,CAAK,OAAO,UAAA,EAAY,SAAS,CAAA,EAAG,KAAA,EAAO,EAAE,KAAA,EAAO,IAAA,EAAM,QAAQ,IAAA,EAAK,EAAI,GAAG,KAAA,EAClG,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,OAAO,KAAA,EAAP,EAAa,WAAW,MAAA,CAAO,WAAA,EAAa,KAAU,GAAA,EAAU,CAAA;AAAA,IAAA,CAE/D,QAAA,IAAY,GAAA,qBACV,GAAA,CAAC,MAAA,CAAO,UAAP,EAAgB,SAAA,EAAW,MAAA,CAAO,cAAA,EAAgB,SAAS,GAAA,EACvD,QAAA,EAAA,QAAA,GAAW,QAAA,GAAW,GAAA,GAAM,CAAC,CAAA,EAClC;AAAA,GAAA,EAER,CAAA;AAER","file":"circle-icon.mjs","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { FC, ComponentProps } from 'react';\nimport clsx from 'clsx';\nimport { Avatar } from 'radix-ui';\n\nimport styles from './circle-icon.module.css';\n\nexport interface CircleIconProps extends ComponentProps<'div'> {\n size?: number;\n src?: string;\n alt?: string;\n fallback?: string;\n}\n\nexport const CircleIcon: FC<CircleIconProps> = ({ className, size = 30, src, alt, fallback, ...props }) => {\n return (\n <Avatar.Root className={clsx(styles.avatarRoot, className)} style={{ width: size, height: size }} {...props}>\n <Avatar.Image className={styles.avatarImage} src={src} alt={alt} />\n\n {(fallback || alt) && (\n <Avatar.Fallback className={styles.avatarFallback} delayMs={600}>\n {fallback ? fallback : alt?.[0]}\n </Avatar.Fallback>\n )}\n </Avatar.Root>\n );\n};\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
.avatarRoot {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
vertical-align: middle;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
user-select: none;
|
|
8
|
+
width: 45px;
|
|
9
|
+
height: 45px;
|
|
10
|
+
border-radius: 100%;
|
|
11
|
+
background-color: var(--ta-color-block);
|
|
12
|
+
}
|
|
13
|
+
.avatarImage {
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 100%;
|
|
16
|
+
object-fit: cover;
|
|
17
|
+
border-radius: inherit;
|
|
18
|
+
}
|
|
19
|
+
.avatarFallback {
|
|
20
|
+
width: 100%;
|
|
21
|
+
height: 100%;
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
background-color: white;
|
|
26
|
+
color: var(--ta-color-block-foreground);
|
|
27
|
+
font-size: 15px;
|
|
28
|
+
line-height: 1;
|
|
29
|
+
font-weight: 500;
|
|
30
|
+
}
|
|
31
|
+
/*# sourceMappingURL=circle-icon.module.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/circle-icon/circle-icon.module.css"],"sourcesContent":[".avatarRoot {\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: center;\n\tvertical-align: middle;\n\toverflow: hidden;\n\tuser-select: none;\n\twidth: 45px;\n\theight: 45px;\n\tborder-radius: 100%;\n\tbackground-color: var(--ta-color-block);\n}\n\n.avatarImage {\n\twidth: 100%;\n\theight: 100%;\n\tobject-fit: cover;\n\tborder-radius: inherit;\n}\n\n.avatarFallback {\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tbackground-color: white;\n\tcolor: var(--ta-color-block-foreground);\n\tfont-size: 15px;\n\tline-height: 1;\n\tfont-weight: 500;\n}\n"],"mappings":"AAAA,CAAC;AACA,WAAS;AACT,eAAa;AACb,mBAAiB;AACjB,kBAAgB;AAChB,YAAU;AACV,eAAa;AACb,SAAO;AACP,UAAQ;AACR,iBAAe;AACf,oBAAkB,IAAI;AACvB;AAEA,CAAC;AACA,SAAO;AACP,UAAQ;AACR,cAAY;AACZ,iBAAe;AAChB;AAEA,CAAC;AACA,SAAO;AACP,UAAQ;AACR,WAAS;AACT,eAAa;AACb,mBAAiB;AACjB,oBAAkB;AAClB,SAAO,IAAI;AACX,aAAW;AACX,eAAa;AACb,eAAa;AACd;","names":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) TonTech.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
9
|
+
import { CircleIcon } from './circle-icon';
|
|
10
|
+
declare const meta: Meta<typeof CircleIcon>;
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof CircleIcon>;
|
|
13
|
+
export declare const WithImage: Story;
|
|
14
|
+
export declare const WithFallback: Story;
|
|
15
|
+
export declare const WithInvalidImage: Story;
|
|
16
|
+
export declare const SmallSize: Story;
|
|
17
|
+
export declare const LargeSize: Story;
|
|
18
|
+
//# sourceMappingURL=circle-icon.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"circle-icon.stories.d.ts","sourceRoot":"","sources":["../../../src/components/circle-icon/circle-icon.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CASjC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAEzC,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAM1B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAO9B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var circleIcon = require('./circle-icon');
|
|
6
|
+
|
|
7
|
+
const meta = {
|
|
8
|
+
title: "Private/Components/CircleIcon",
|
|
9
|
+
component: circleIcon.CircleIcon,
|
|
10
|
+
tags: ["autodocs"],
|
|
11
|
+
argTypes: {
|
|
12
|
+
size: {
|
|
13
|
+
control: { type: "range", min: 20, max: 100, step: 5 }
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
var circle_icon_stories_default = meta;
|
|
18
|
+
const WithImage = {
|
|
19
|
+
args: {
|
|
20
|
+
size: 48,
|
|
21
|
+
src: "https://ton.org/download/ton_symbol.png",
|
|
22
|
+
alt: "TON"
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const WithFallback = {
|
|
26
|
+
args: {
|
|
27
|
+
size: 48,
|
|
28
|
+
fallback: "T",
|
|
29
|
+
alt: "TON"
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
const WithInvalidImage = {
|
|
33
|
+
args: {
|
|
34
|
+
size: 48,
|
|
35
|
+
src: "https://invalid-url.com/image.png",
|
|
36
|
+
alt: "Fallback",
|
|
37
|
+
fallback: "F"
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
const SmallSize = {
|
|
41
|
+
args: {
|
|
42
|
+
size: 24,
|
|
43
|
+
src: "https://ton.org/download/ton_symbol.png",
|
|
44
|
+
alt: "TON"
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
const LargeSize = {
|
|
48
|
+
args: {
|
|
49
|
+
size: 80,
|
|
50
|
+
src: "https://ton.org/download/ton_symbol.png",
|
|
51
|
+
alt: "TON"
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
exports.LargeSize = LargeSize;
|
|
56
|
+
exports.SmallSize = SmallSize;
|
|
57
|
+
exports.WithFallback = WithFallback;
|
|
58
|
+
exports.WithImage = WithImage;
|
|
59
|
+
exports.WithInvalidImage = WithInvalidImage;
|
|
60
|
+
exports.default = circle_icon_stories_default;
|
|
61
|
+
//# sourceMappingURL=circle-icon.stories.js.map
|
|
62
|
+
//# sourceMappingURL=circle-icon.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/circle-icon/circle-icon.stories.tsx"],"names":["CircleIcon"],"mappings":";;;;;;AAYA,MAAM,IAAA,GAAgC;AAAA,EAClC,KAAA,EAAO,+BAAA;AAAA,EACP,SAAA,EAAWA,qBAAA;AAAA,EACX,IAAA,EAAM,CAAC,UAAU,CAAA;AAAA,EACjB,QAAA,EAAU;AAAA,IACN,IAAA,EAAM;AAAA,MACF,OAAA,EAAS,EAAE,IAAA,EAAM,OAAA,EAAS,KAAK,EAAA,EAAI,GAAA,EAAK,GAAA,EAAK,IAAA,EAAM,CAAA;AAAE;AACzD;AAER,CAAA;AAEA,IAAO,2BAAA,GAAQ;AAIR,MAAM,SAAA,GAAmB;AAAA,EAC5B,IAAA,EAAM;AAAA,IACF,IAAA,EAAM,EAAA;AAAA,IACN,GAAA,EAAK,yCAAA;AAAA,IACL,GAAA,EAAK;AAAA;AAEb;AAEO,MAAM,YAAA,GAAsB;AAAA,EAC/B,IAAA,EAAM;AAAA,IACF,IAAA,EAAM,EAAA;AAAA,IACN,QAAA,EAAU,GAAA;AAAA,IACV,GAAA,EAAK;AAAA;AAEb;AAEO,MAAM,gBAAA,GAA0B;AAAA,EACnC,IAAA,EAAM;AAAA,IACF,IAAA,EAAM,EAAA;AAAA,IACN,GAAA,EAAK,mCAAA;AAAA,IACL,GAAA,EAAK,UAAA;AAAA,IACL,QAAA,EAAU;AAAA;AAElB;AAEO,MAAM,SAAA,GAAmB;AAAA,EAC5B,IAAA,EAAM;AAAA,IACF,IAAA,EAAM,EAAA;AAAA,IACN,GAAA,EAAK,yCAAA;AAAA,IACL,GAAA,EAAK;AAAA;AAEb;AAEO,MAAM,SAAA,GAAmB;AAAA,EAC5B,IAAA,EAAM;AAAA,IACF,IAAA,EAAM,EAAA;AAAA,IACN,GAAA,EAAK,yCAAA;AAAA,IACL,GAAA,EAAK;AAAA;AAEb","file":"circle-icon.stories.js","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { Meta, StoryObj } from '@storybook/react';\n\nimport { CircleIcon } from './circle-icon';\n\nconst meta: Meta<typeof CircleIcon> = {\n title: 'Private/Components/CircleIcon',\n component: CircleIcon,\n tags: ['autodocs'],\n argTypes: {\n size: {\n control: { type: 'range', min: 20, max: 100, step: 5 },\n },\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof CircleIcon>;\n\nexport const WithImage: Story = {\n args: {\n size: 48,\n src: 'https://ton.org/download/ton_symbol.png',\n alt: 'TON',\n },\n};\n\nexport const WithFallback: Story = {\n args: {\n size: 48,\n fallback: 'T',\n alt: 'TON',\n },\n};\n\nexport const WithInvalidImage: Story = {\n args: {\n size: 48,\n src: 'https://invalid-url.com/image.png',\n alt: 'Fallback',\n fallback: 'F',\n },\n};\n\nexport const SmallSize: Story = {\n args: {\n size: 24,\n src: 'https://ton.org/download/ton_symbol.png',\n alt: 'TON',\n },\n};\n\nexport const LargeSize: Story = {\n args: {\n size: 80,\n src: 'https://ton.org/download/ton_symbol.png',\n alt: 'TON',\n },\n};\n"]}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { CircleIcon } from './circle-icon';
|
|
2
|
+
|
|
3
|
+
const meta = {
|
|
4
|
+
title: "Private/Components/CircleIcon",
|
|
5
|
+
component: CircleIcon,
|
|
6
|
+
tags: ["autodocs"],
|
|
7
|
+
argTypes: {
|
|
8
|
+
size: {
|
|
9
|
+
control: { type: "range", min: 20, max: 100, step: 5 }
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
var circle_icon_stories_default = meta;
|
|
14
|
+
const WithImage = {
|
|
15
|
+
args: {
|
|
16
|
+
size: 48,
|
|
17
|
+
src: "https://ton.org/download/ton_symbol.png",
|
|
18
|
+
alt: "TON"
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
const WithFallback = {
|
|
22
|
+
args: {
|
|
23
|
+
size: 48,
|
|
24
|
+
fallback: "T",
|
|
25
|
+
alt: "TON"
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const WithInvalidImage = {
|
|
29
|
+
args: {
|
|
30
|
+
size: 48,
|
|
31
|
+
src: "https://invalid-url.com/image.png",
|
|
32
|
+
alt: "Fallback",
|
|
33
|
+
fallback: "F"
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
const SmallSize = {
|
|
37
|
+
args: {
|
|
38
|
+
size: 24,
|
|
39
|
+
src: "https://ton.org/download/ton_symbol.png",
|
|
40
|
+
alt: "TON"
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const LargeSize = {
|
|
44
|
+
args: {
|
|
45
|
+
size: 80,
|
|
46
|
+
src: "https://ton.org/download/ton_symbol.png",
|
|
47
|
+
alt: "TON"
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export { LargeSize, SmallSize, WithFallback, WithImage, WithInvalidImage, circle_icon_stories_default as default };
|
|
52
|
+
//# sourceMappingURL=circle-icon.stories.mjs.map
|
|
53
|
+
//# sourceMappingURL=circle-icon.stories.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/circle-icon/circle-icon.stories.tsx"],"names":[],"mappings":";;AAYA,MAAM,IAAA,GAAgC;AAAA,EAClC,KAAA,EAAO,+BAAA;AAAA,EACP,SAAA,EAAW,UAAA;AAAA,EACX,IAAA,EAAM,CAAC,UAAU,CAAA;AAAA,EACjB,QAAA,EAAU;AAAA,IACN,IAAA,EAAM;AAAA,MACF,OAAA,EAAS,EAAE,IAAA,EAAM,OAAA,EAAS,KAAK,EAAA,EAAI,GAAA,EAAK,GAAA,EAAK,IAAA,EAAM,CAAA;AAAE;AACzD;AAER,CAAA;AAEA,IAAO,2BAAA,GAAQ;AAIR,MAAM,SAAA,GAAmB;AAAA,EAC5B,IAAA,EAAM;AAAA,IACF,IAAA,EAAM,EAAA;AAAA,IACN,GAAA,EAAK,yCAAA;AAAA,IACL,GAAA,EAAK;AAAA;AAEb;AAEO,MAAM,YAAA,GAAsB;AAAA,EAC/B,IAAA,EAAM;AAAA,IACF,IAAA,EAAM,EAAA;AAAA,IACN,QAAA,EAAU,GAAA;AAAA,IACV,GAAA,EAAK;AAAA;AAEb;AAEO,MAAM,gBAAA,GAA0B;AAAA,EACnC,IAAA,EAAM;AAAA,IACF,IAAA,EAAM,EAAA;AAAA,IACN,GAAA,EAAK,mCAAA;AAAA,IACL,GAAA,EAAK,UAAA;AAAA,IACL,QAAA,EAAU;AAAA;AAElB;AAEO,MAAM,SAAA,GAAmB;AAAA,EAC5B,IAAA,EAAM;AAAA,IACF,IAAA,EAAM,EAAA;AAAA,IACN,GAAA,EAAK,yCAAA;AAAA,IACL,GAAA,EAAK;AAAA;AAEb;AAEO,MAAM,SAAA,GAAmB;AAAA,EAC5B,IAAA,EAAM;AAAA,IACF,IAAA,EAAM,EAAA;AAAA,IACN,GAAA,EAAK,yCAAA;AAAA,IACL,GAAA,EAAK;AAAA;AAEb","file":"circle-icon.stories.mjs","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { Meta, StoryObj } from '@storybook/react';\n\nimport { CircleIcon } from './circle-icon';\n\nconst meta: Meta<typeof CircleIcon> = {\n title: 'Private/Components/CircleIcon',\n component: CircleIcon,\n tags: ['autodocs'],\n argTypes: {\n size: {\n control: { type: 'range', min: 20, max: 100, step: 5 },\n },\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof CircleIcon>;\n\nexport const WithImage: Story = {\n args: {\n size: 48,\n src: 'https://ton.org/download/ton_symbol.png',\n alt: 'TON',\n },\n};\n\nexport const WithFallback: Story = {\n args: {\n size: 48,\n fallback: 'T',\n alt: 'TON',\n },\n};\n\nexport const WithInvalidImage: Story = {\n args: {\n size: 48,\n src: 'https://invalid-url.com/image.png',\n alt: 'Fallback',\n fallback: 'F',\n },\n};\n\nexport const SmallSize: Story = {\n args: {\n size: 24,\n src: 'https://ton.org/download/ton_symbol.png',\n alt: 'TON',\n },\n};\n\nexport const LargeSize: Story = {\n args: {\n size: 80,\n src: 'https://ton.org/download/ton_symbol.png',\n alt: 'TON',\n },\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/circle-icon/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var circleIcon = require('./circle-icon');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(circleIcon).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return circleIcon[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js","sourcesContent":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs","sourcesContent":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) TonTech.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export { TonIcon, TonIconCircle } from './ton-icon';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ton-icon/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tonIcon = require('./ton-icon');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "TonIcon", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return tonIcon.TonIcon; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "TonIconCircle", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return tonIcon.TonIconCircle; }
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js","sourcesContent":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs","sourcesContent":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) TonTech.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import type { FC, ComponentProps } from 'react';
|
|
9
|
+
export interface TonIconProps extends Omit<ComponentProps<'svg'>, 'width' | 'height'> {
|
|
10
|
+
size?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare const TonIcon: FC<TonIconProps>;
|
|
13
|
+
export declare const TonIconCircle: FC<TonIconProps>;
|
|
14
|
+
//# sourceMappingURL=ton-icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ton-icon.d.ts","sourceRoot":"","sources":["../../../src/components/ton-icon/ton-icon.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEhD,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IACjF,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CASpC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,YAAY,CAoB1C,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
|
|
5
|
+
const TonIcon = ({ size = 16, ...props }) => {
|
|
6
|
+
return /* @__PURE__ */ jsxRuntime.jsx("svg", { width: size, height: size, viewBox: "0 0 29 29", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7
|
+
"path",
|
|
8
|
+
{
|
|
9
|
+
d: "M23.7861 0H4.58614C1.08614 0 -1.11386 3.8 0.586136 6.9L12.3861 27.4C13.1861 28.7 15.0861 28.7 15.8861 27.4L27.6861 6.9C29.4861 3.8 27.2861 0 23.7861 0ZM12.4861 21.2L9.88614 16.2L3.68614 5.1C3.28614 4.4 3.78614 3.5 4.68614 3.5H12.4861V21.2ZM24.6861 5.1L18.4861 16.2L15.8861 21.2V3.5H23.6861C24.5861 3.5 25.0861 4.4 24.6861 5.1Z",
|
|
10
|
+
fill: "currentColor"
|
|
11
|
+
}
|
|
12
|
+
) });
|
|
13
|
+
};
|
|
14
|
+
const TonIconCircle = ({ size = 16, ...props }) => {
|
|
15
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: size, height: size, viewBox: "0 0 56 56", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
16
|
+
/* @__PURE__ */ jsxRuntime.jsxs("g", { clipPath: "url(#clip0_2906_144)", children: [
|
|
17
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18
|
+
"path",
|
|
19
|
+
{
|
|
20
|
+
d: "M28 56C43.5 56 56 43.5 56 28C56 12.5 43.5 0 28 0C12.5 0 0 12.5 0 28C0 43.5 12.5 56 28 56Z",
|
|
21
|
+
fill: "#0098EA"
|
|
22
|
+
}
|
|
23
|
+
),
|
|
24
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
25
|
+
"path",
|
|
26
|
+
{
|
|
27
|
+
d: "M37.5996 15.6H18.3996C14.8996 15.6 12.6996 19.4 14.3996 22.5L26.1996 43C26.9996 44.3 28.8996 44.3 29.6996 43L41.4996 22.5C43.2996 19.4 41.0996 15.6 37.5996 15.6ZM26.2996 36.8L23.6996 31.8L17.4996 20.7C17.0996 20 17.5996 19.1 18.4996 19.1H26.2996V36.8ZM38.4996 20.7L32.2996 31.8L29.6996 36.8V19.1H37.4996C38.3996 19.1 38.8996 20 38.4996 20.7Z",
|
|
28
|
+
fill: "white"
|
|
29
|
+
}
|
|
30
|
+
)
|
|
31
|
+
] }),
|
|
32
|
+
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "clip0_2906_144", children: /* @__PURE__ */ jsxRuntime.jsx("rect", { width: "56", height: "56", fill: "white" }) }) })
|
|
33
|
+
] });
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
exports.TonIcon = TonIcon;
|
|
37
|
+
exports.TonIconCircle = TonIconCircle;
|
|
38
|
+
//# sourceMappingURL=ton-icon.js.map
|
|
39
|
+
//# sourceMappingURL=ton-icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/ton-icon/ton-icon.tsx"],"names":["jsx","jsxs"],"mappings":";;;;AAcO,MAAM,UAA4B,CAAC,EAAE,OAAO,EAAA,EAAI,GAAG,OAAM,KAAM;AAClE,EAAA,uBACIA,cAAA,CAAC,KAAA,EAAA,EAAI,KAAA,EAAO,IAAA,EAAM,MAAA,EAAQ,IAAA,EAAM,OAAA,EAAQ,WAAA,EAAY,IAAA,EAAK,MAAA,EAAO,KAAA,EAAM,4BAAA,EAA8B,GAAG,KAAA,EACnG,QAAA,kBAAAA,cAAA;AAAA,IAAC,MAAA;AAAA,IAAA;AAAA,MACG,CAAA,EAAE,wUAAA;AAAA,MACF,IAAA,EAAK;AAAA;AAAA,GACT,EACJ,CAAA;AAER;AAEO,MAAM,gBAAkC,CAAC,EAAE,OAAO,EAAA,EAAI,GAAG,OAAM,KAAM;AACxE,EAAA,uBACIC,eAAA,CAAC,KAAA,EAAA,EAAI,KAAA,EAAO,IAAA,EAAM,MAAA,EAAQ,IAAA,EAAM,OAAA,EAAQ,WAAA,EAAY,IAAA,EAAK,MAAA,EAAO,KAAA,EAAM,4BAAA,EAA8B,GAAG,KAAA,EACnG,QAAA,EAAA;AAAA,oBAAAA,eAAA,CAAC,GAAA,EAAA,EAAE,UAAS,sBAAA,EACR,QAAA,EAAA;AAAA,sBAAAD,cAAA;AAAA,QAAC,MAAA;AAAA,QAAA;AAAA,UACG,CAAA,EAAE,2FAAA;AAAA,UACF,IAAA,EAAK;AAAA;AAAA,OACT;AAAA,sBACAA,cAAA;AAAA,QAAC,MAAA;AAAA,QAAA;AAAA,UACG,CAAA,EAAE,uVAAA;AAAA,UACF,IAAA,EAAK;AAAA;AAAA;AACT,KAAA,EACJ,CAAA;AAAA,oBACAA,cAAA,CAAC,MAAA,EAAA,EACG,QAAA,kBAAAA,cAAA,CAAC,UAAA,EAAA,EAAS,IAAG,gBAAA,EACT,QAAA,kBAAAA,cAAA,CAAC,MAAA,EAAA,EAAK,KAAA,EAAM,MAAK,MAAA,EAAO,IAAA,EAAK,IAAA,EAAK,OAAA,EAAQ,GAC9C,CAAA,EACJ;AAAA,GAAA,EACJ,CAAA;AAER","file":"ton-icon.js","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { FC, ComponentProps } from 'react';\n\nexport interface TonIconProps extends Omit<ComponentProps<'svg'>, 'width' | 'height'> {\n size?: number;\n}\n\nexport const TonIcon: FC<TonIconProps> = ({ size = 16, ...props }) => {\n return (\n <svg width={size} height={size} viewBox=\"0 0 29 29\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path\n d=\"M23.7861 0H4.58614C1.08614 0 -1.11386 3.8 0.586136 6.9L12.3861 27.4C13.1861 28.7 15.0861 28.7 15.8861 27.4L27.6861 6.9C29.4861 3.8 27.2861 0 23.7861 0ZM12.4861 21.2L9.88614 16.2L3.68614 5.1C3.28614 4.4 3.78614 3.5 4.68614 3.5H12.4861V21.2ZM24.6861 5.1L18.4861 16.2L15.8861 21.2V3.5H23.6861C24.5861 3.5 25.0861 4.4 24.6861 5.1Z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n};\n\nexport const TonIconCircle: FC<TonIconProps> = ({ size = 16, ...props }) => {\n return (\n <svg width={size} height={size} viewBox=\"0 0 56 56\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <g clipPath=\"url(#clip0_2906_144)\">\n <path\n d=\"M28 56C43.5 56 56 43.5 56 28C56 12.5 43.5 0 28 0C12.5 0 0 12.5 0 28C0 43.5 12.5 56 28 56Z\"\n fill=\"#0098EA\"\n />\n <path\n d=\"M37.5996 15.6H18.3996C14.8996 15.6 12.6996 19.4 14.3996 22.5L26.1996 43C26.9996 44.3 28.8996 44.3 29.6996 43L41.4996 22.5C43.2996 19.4 41.0996 15.6 37.5996 15.6ZM26.2996 36.8L23.6996 31.8L17.4996 20.7C17.0996 20 17.5996 19.1 18.4996 19.1H26.2996V36.8ZM38.4996 20.7L32.2996 31.8L29.6996 36.8V19.1H37.4996C38.3996 19.1 38.8996 20 38.4996 20.7Z\"\n fill=\"white\"\n />\n </g>\n <defs>\n <clipPath id=\"clip0_2906_144\">\n <rect width=\"56\" height=\"56\" fill=\"white\" />\n </clipPath>\n </defs>\n </svg>\n );\n};\n"]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
const TonIcon = ({ size = 16, ...props }) => {
|
|
4
|
+
return /* @__PURE__ */ jsx("svg", { width: size, height: size, viewBox: "0 0 29 29", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx(
|
|
5
|
+
"path",
|
|
6
|
+
{
|
|
7
|
+
d: "M23.7861 0H4.58614C1.08614 0 -1.11386 3.8 0.586136 6.9L12.3861 27.4C13.1861 28.7 15.0861 28.7 15.8861 27.4L27.6861 6.9C29.4861 3.8 27.2861 0 23.7861 0ZM12.4861 21.2L9.88614 16.2L3.68614 5.1C3.28614 4.4 3.78614 3.5 4.68614 3.5H12.4861V21.2ZM24.6861 5.1L18.4861 16.2L15.8861 21.2V3.5H23.6861C24.5861 3.5 25.0861 4.4 24.6861 5.1Z",
|
|
8
|
+
fill: "currentColor"
|
|
9
|
+
}
|
|
10
|
+
) });
|
|
11
|
+
};
|
|
12
|
+
const TonIconCircle = ({ size = 16, ...props }) => {
|
|
13
|
+
return /* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: "0 0 56 56", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
14
|
+
/* @__PURE__ */ jsxs("g", { clipPath: "url(#clip0_2906_144)", children: [
|
|
15
|
+
/* @__PURE__ */ jsx(
|
|
16
|
+
"path",
|
|
17
|
+
{
|
|
18
|
+
d: "M28 56C43.5 56 56 43.5 56 28C56 12.5 43.5 0 28 0C12.5 0 0 12.5 0 28C0 43.5 12.5 56 28 56Z",
|
|
19
|
+
fill: "#0098EA"
|
|
20
|
+
}
|
|
21
|
+
),
|
|
22
|
+
/* @__PURE__ */ jsx(
|
|
23
|
+
"path",
|
|
24
|
+
{
|
|
25
|
+
d: "M37.5996 15.6H18.3996C14.8996 15.6 12.6996 19.4 14.3996 22.5L26.1996 43C26.9996 44.3 28.8996 44.3 29.6996 43L41.4996 22.5C43.2996 19.4 41.0996 15.6 37.5996 15.6ZM26.2996 36.8L23.6996 31.8L17.4996 20.7C17.0996 20 17.5996 19.1 18.4996 19.1H26.2996V36.8ZM38.4996 20.7L32.2996 31.8L29.6996 36.8V19.1H37.4996C38.3996 19.1 38.8996 20 38.4996 20.7Z",
|
|
26
|
+
fill: "white"
|
|
27
|
+
}
|
|
28
|
+
)
|
|
29
|
+
] }),
|
|
30
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_2906_144", children: /* @__PURE__ */ jsx("rect", { width: "56", height: "56", fill: "white" }) }) })
|
|
31
|
+
] });
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export { TonIcon, TonIconCircle };
|
|
35
|
+
//# sourceMappingURL=ton-icon.mjs.map
|
|
36
|
+
//# sourceMappingURL=ton-icon.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/ton-icon/ton-icon.tsx"],"names":[],"mappings":";;AAcO,MAAM,UAA4B,CAAC,EAAE,OAAO,EAAA,EAAI,GAAG,OAAM,KAAM;AAClE,EAAA,uBACI,GAAA,CAAC,KAAA,EAAA,EAAI,KAAA,EAAO,IAAA,EAAM,MAAA,EAAQ,IAAA,EAAM,OAAA,EAAQ,WAAA,EAAY,IAAA,EAAK,MAAA,EAAO,KAAA,EAAM,4BAAA,EAA8B,GAAG,KAAA,EACnG,QAAA,kBAAA,GAAA;AAAA,IAAC,MAAA;AAAA,IAAA;AAAA,MACG,CAAA,EAAE,wUAAA;AAAA,MACF,IAAA,EAAK;AAAA;AAAA,GACT,EACJ,CAAA;AAER;AAEO,MAAM,gBAAkC,CAAC,EAAE,OAAO,EAAA,EAAI,GAAG,OAAM,KAAM;AACxE,EAAA,uBACI,IAAA,CAAC,KAAA,EAAA,EAAI,KAAA,EAAO,IAAA,EAAM,MAAA,EAAQ,IAAA,EAAM,OAAA,EAAQ,WAAA,EAAY,IAAA,EAAK,MAAA,EAAO,KAAA,EAAM,4BAAA,EAA8B,GAAG,KAAA,EACnG,QAAA,EAAA;AAAA,oBAAA,IAAA,CAAC,GAAA,EAAA,EAAE,UAAS,sBAAA,EACR,QAAA,EAAA;AAAA,sBAAA,GAAA;AAAA,QAAC,MAAA;AAAA,QAAA;AAAA,UACG,CAAA,EAAE,2FAAA;AAAA,UACF,IAAA,EAAK;AAAA;AAAA,OACT;AAAA,sBACA,GAAA;AAAA,QAAC,MAAA;AAAA,QAAA;AAAA,UACG,CAAA,EAAE,uVAAA;AAAA,UACF,IAAA,EAAK;AAAA;AAAA;AACT,KAAA,EACJ,CAAA;AAAA,oBACA,GAAA,CAAC,MAAA,EAAA,EACG,QAAA,kBAAA,GAAA,CAAC,UAAA,EAAA,EAAS,IAAG,gBAAA,EACT,QAAA,kBAAA,GAAA,CAAC,MAAA,EAAA,EAAK,KAAA,EAAM,MAAK,MAAA,EAAO,IAAA,EAAK,IAAA,EAAK,OAAA,EAAQ,GAC9C,CAAA,EACJ;AAAA,GAAA,EACJ,CAAA;AAER","file":"ton-icon.mjs","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { FC, ComponentProps } from 'react';\n\nexport interface TonIconProps extends Omit<ComponentProps<'svg'>, 'width' | 'height'> {\n size?: number;\n}\n\nexport const TonIcon: FC<TonIconProps> = ({ size = 16, ...props }) => {\n return (\n <svg width={size} height={size} viewBox=\"0 0 29 29\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path\n d=\"M23.7861 0H4.58614C1.08614 0 -1.11386 3.8 0.586136 6.9L12.3861 27.4C13.1861 28.7 15.0861 28.7 15.8861 27.4L27.6861 6.9C29.4861 3.8 27.2861 0 23.7861 0ZM12.4861 21.2L9.88614 16.2L3.68614 5.1C3.28614 4.4 3.78614 3.5 4.68614 3.5H12.4861V21.2ZM24.6861 5.1L18.4861 16.2L15.8861 21.2V3.5H23.6861C24.5861 3.5 25.0861 4.4 24.6861 5.1Z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n};\n\nexport const TonIconCircle: FC<TonIconProps> = ({ size = 16, ...props }) => {\n return (\n <svg width={size} height={size} viewBox=\"0 0 56 56\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <g clipPath=\"url(#clip0_2906_144)\">\n <path\n d=\"M28 56C43.5 56 56 43.5 56 28C56 12.5 43.5 0 28 0C12.5 0 0 12.5 0 28C0 43.5 12.5 56 28 56Z\"\n fill=\"#0098EA\"\n />\n <path\n d=\"M37.5996 15.6H18.3996C14.8996 15.6 12.6996 19.4 14.3996 22.5L26.1996 43C26.9996 44.3 28.8996 44.3 29.6996 43L41.4996 22.5C43.2996 19.4 41.0996 15.6 37.5996 15.6ZM26.2996 36.8L23.6996 31.8L17.4996 20.7C17.0996 20 17.5996 19.1 18.4996 19.1H26.2996V36.8ZM38.4996 20.7L32.2996 31.8L29.6996 36.8V19.1H37.4996C38.3996 19.1 38.8996 20 38.4996 20.7Z\"\n fill=\"white\"\n />\n </g>\n <defs>\n <clipPath id=\"clip0_2906_144\">\n <rect width=\"56\" height=\"56\" fill=\"white\" />\n </clipPath>\n </defs>\n </svg>\n );\n};\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) TonTech.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
9
|
+
import { TonIcon, TonIconCircle } from './ton-icon';
|
|
10
|
+
declare const meta: Meta<typeof TonIcon>;
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof TonIcon>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
export declare const Small: Story;
|
|
15
|
+
export declare const Large: Story;
|
|
16
|
+
export declare const CustomColor: Story;
|
|
17
|
+
export declare const Circle: StoryObj<typeof TonIconCircle>;
|
|
18
|
+
export declare const CircleSmall: StoryObj<typeof TonIconCircle>;
|
|
19
|
+
export declare const CircleLarge: StoryObj<typeof TonIconCircle>;
|
|
20
|
+
//# sourceMappingURL=ton-icon.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ton-icon.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ton-icon/ton-icon.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEpD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,OAAO,CAgB9B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,OAAO,CAAC,CAAC;AAEtC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAInB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAInB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAKzB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,QAAQ,CAAC,OAAO,aAAa,CAKjD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,OAAO,aAAa,CAKtD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,QAAQ,CAAC,OAAO,aAAa,CAKtD,CAAC"}
|