@coinbase/cdp-react 0.0.97 → 0.0.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AuthButton/index.d.ts +102 -0
- package/dist/components/CDPReactProvider/index.d.ts +114 -0
- package/dist/components/CopyAddress/index.d.ts +29 -0
- package/dist/components/CopyEvmKeyButton/index.d.ts +77 -0
- package/dist/components/CopySolanaKeyButton/index.d.ts +73 -0
- package/dist/components/EnrollMfa/EnrollMfaDescription.d.ts +21 -0
- package/dist/components/EnrollMfa/EnrollMfaFlow.d.ts +27 -0
- package/dist/components/EnrollMfa/EnrollMfaFlowBackButton.d.ts +19 -0
- package/dist/components/EnrollMfa/EnrollMfaFlowProvider.d.ts +52 -0
- package/dist/components/EnrollMfa/EnrollMfaFooter.d.ts +18 -0
- package/dist/components/EnrollMfa/EnrollMfaImage.d.ts +24 -0
- package/dist/components/EnrollMfa/EnrollMfaItem.d.ts +21 -0
- package/dist/components/EnrollMfa/EnrollMfaItems.d.ts +17 -0
- package/dist/components/EnrollMfa/EnrollMfaProvider.d.ts +35 -0
- package/dist/components/EnrollMfa/EnrollMfaTitle.d.ts +21 -0
- package/dist/components/EnrollMfa/index.d.ts +65 -0
- package/dist/components/EnrollMfa/methods/sms.d.ts +25 -0
- package/dist/components/EnrollMfa/methods/totp.d.ts +25 -0
- package/dist/components/EnrollMfa/types.d.ts +48 -0
- package/dist/components/EnrollMfa/useEnrollMfaReducer.d.ts +6 -0
- package/dist/components/EnrollMfaModal/index.d.ts +111 -0
- package/dist/components/ExportWallet/index.d.ts +163 -0
- package/dist/components/ExportWalletModal/index.d.ts +173 -0
- package/dist/components/Fund/FundForm.d.ts +18 -0
- package/dist/components/Fund/FundProvider.d.ts +17 -0
- package/dist/components/Fund/FundTitle.d.ts +12 -0
- package/dist/components/Fund/components/FundAmountInput.d.ts +13 -0
- package/dist/components/Fund/components/FundErrorScreen.d.ts +7 -0
- package/dist/components/Fund/components/FundPaymentMethods.d.ts +7 -0
- package/dist/components/Fund/components/FundPresetAmountInputs.d.ts +7 -0
- package/dist/components/Fund/components/FundTransactionStatus.d.ts +6 -0
- package/dist/components/Fund/hooks/useBuyUrl.d.ts +23 -0
- package/dist/components/Fund/hooks/useEmitLifecycleStatus.d.ts +12 -0
- package/dist/components/Fund/hooks/useExchangeRate.d.ts +17 -0
- package/dist/components/Fund/hooks/usePaymentMethods.d.ts +16 -0
- package/dist/components/Fund/hooks/usePopupMonitor.d.ts +9 -0
- package/dist/components/Fund/hooks/useSetupOnrampEventListeners.d.ts +6 -0
- package/dist/components/Fund/index.d.ts +87 -0
- package/dist/components/Fund/types.d.ts +137 -0
- package/dist/components/Fund/useFundReducer.d.ts +15 -0
- package/dist/components/Fund/utils/buildPaymentMethods.d.ts +15 -0
- package/dist/components/Fund/utils/setupOnrampEventListeners.d.ts +10 -0
- package/dist/components/Fund/utils/subscribeToWindowMessage.d.ts +27 -0
- package/dist/components/FundModal/index.d.ts +106 -0
- package/dist/components/LinkAuth/LinkAuthFlow.d.ts +25 -0
- package/dist/components/LinkAuth/LinkAuthFlowBackButton.d.ts +19 -0
- package/dist/components/LinkAuth/LinkAuthFlowProvider.d.ts +60 -0
- package/dist/components/LinkAuth/LinkAuthItem.d.ts +23 -0
- package/dist/components/LinkAuth/LinkAuthItems.d.ts +17 -0
- package/dist/components/LinkAuth/LinkAuthProvider.d.ts +31 -0
- package/dist/components/LinkAuth/LinkAuthTitle.d.ts +17 -0
- package/dist/components/LinkAuth/index.d.ts +170 -0
- package/dist/components/LinkAuth/types.d.ts +31 -0
- package/dist/components/LinkAuth/utils.d.ts +12 -0
- package/dist/components/LinkAuthModal/index.d.ts +112 -0
- package/dist/components/OAuthStatusModal/index.d.ts +24 -0
- package/dist/components/SendEvmTransactionButton/index.d.ts +27 -0
- package/dist/components/SendSolanaTransactionButton/index.d.ts +27 -0
- package/dist/components/SignIn/SignInAuthMethodButtons.d.ts +26 -0
- package/dist/components/SignIn/SignInBackButton.d.ts +40 -0
- package/dist/components/SignIn/SignInCredentials.d.ts +13 -0
- package/dist/components/SignIn/SignInDescription.d.ts +35 -0
- package/dist/components/SignIn/SignInFooter.d.ts +27 -0
- package/dist/components/SignIn/SignInForm.d.ts +39 -0
- package/dist/components/SignIn/SignInImage.d.ts +38 -0
- package/dist/components/SignIn/SignInProvider.d.ts +54 -0
- package/dist/components/SignIn/SignInTitle.d.ts +35 -0
- package/dist/components/SignIn/flows/SignInWithEmail.d.ts +26 -0
- package/dist/components/SignIn/flows/SignInWithOAuth.d.ts +19 -0
- package/dist/components/SignIn/flows/SignInWithSms.d.ts +26 -0
- package/dist/components/SignIn/hooks/useEmailForm.d.ts +7 -0
- package/dist/components/SignIn/hooks/useOTPForm.d.ts +8 -0
- package/dist/components/SignIn/hooks/usePhoneNumberForm.d.ts +7 -0
- package/dist/components/SignIn/hooks/useSignInWithOAuth.d.ts +8 -0
- package/dist/components/SignIn/index.d.ts +124 -0
- package/dist/components/SignIn/types.d.ts +37 -0
- package/dist/components/SignIn/useSignInReducer.d.ts +9 -0
- package/dist/components/SignInModal/index.d.ts +123 -0
- package/dist/components/SignOutButton/index.d.ts +39 -0
- package/dist/components/ThemeProvider/index.d.ts +70 -0
- package/dist/components/VerifyMfa/VerifyMfaDescription.d.ts +24 -0
- package/dist/components/VerifyMfa/VerifyMfaFlow.d.ts +30 -0
- package/dist/components/VerifyMfa/VerifyMfaFlowBackButton.d.ts +19 -0
- package/dist/components/VerifyMfa/VerifyMfaFlowProvider.d.ts +51 -0
- package/dist/components/VerifyMfa/VerifyMfaFooter.d.ts +18 -0
- package/dist/components/VerifyMfa/VerifyMfaImage.d.ts +23 -0
- package/dist/components/VerifyMfa/VerifyMfaItem.d.ts +20 -0
- package/dist/components/VerifyMfa/VerifyMfaItems.d.ts +18 -0
- package/dist/components/VerifyMfa/VerifyMfaProvider.d.ts +40 -0
- package/dist/components/VerifyMfa/VerifyMfaTitle.d.ts +24 -0
- package/dist/components/VerifyMfa/index.d.ts +55 -0
- package/dist/components/VerifyMfa/methods/sms.d.ts +29 -0
- package/dist/components/VerifyMfa/methods/totp.d.ts +29 -0
- package/dist/components/VerifyMfa/types.d.ts +33 -0
- package/dist/components/VerifyMfa/useVerifyMfaReducer.d.ts +7 -0
- package/dist/components/VerifyMfaInline/index.d.ts +212 -0
- package/dist/components/VerifyMfaModal/index.d.ts +114 -0
- package/dist/components/forms/AmountInput/index.d.ts +16 -0
- package/dist/components/forms/AmountInput/types.d.ts +9 -0
- package/dist/components/forms/AmountInput/useAmountInput.d.ts +14 -0
- package/dist/components/forms/AmountInput/useInputScale.d.ts +12 -0
- package/dist/components/forms/AmountInput/useNumberParseAndFormat.d.ts +20 -0
- package/dist/components/forms/CountrySelect/index.d.ts +9 -0
- package/dist/components/forms/EmailForm/index.d.ts +17 -0
- package/dist/components/forms/ExchangeAmountInput/index.d.ts +19 -0
- package/dist/components/forms/ExchangeAmountInput/types.d.ts +12 -0
- package/dist/components/forms/ExchangeAmountInput/useExchangeAmountInput.d.ts +17 -0
- package/dist/components/forms/Field/index.d.ts +15 -0
- package/dist/components/forms/Input/index.d.ts +15 -0
- package/dist/components/forms/Label/index.d.ts +8 -0
- package/dist/components/forms/OTP/index.d.ts +6 -0
- package/dist/components/forms/OTPForm/index.d.ts +20 -0
- package/dist/components/forms/PhoneNumberForm/index.d.ts +27 -0
- package/dist/components/forms/PhoneNumberInput/index.d.ts +16 -0
- package/dist/components/forms/PhoneNumberInput/maskOverride.d.ts +6 -0
- package/dist/components/forms/PhoneNumberInput/usePhoneNumberFormatter.d.ts +7 -0
- package/dist/components/forms/Select/index.d.ts +30 -0
- package/dist/components/ui/Badge/index.d.ts +19 -0
- package/dist/components/ui/Banner/index.d.ts +25 -0
- package/dist/components/ui/Button/index.d.ts +50 -0
- package/dist/components/ui/ButtonBase/index.d.ts +20 -0
- package/dist/components/ui/CoinbaseFooter/index.d.ts +16 -0
- package/dist/components/ui/CopyTextField/index.d.ts +35 -0
- package/dist/components/ui/Error/index.d.ts +14 -0
- package/dist/components/ui/IframeButton/index.d.ts +17 -0
- package/dist/components/ui/LoadingSkeleton/index.d.ts +22 -0
- package/dist/components/ui/LoadingSpinner/index.d.ts +11 -0
- package/dist/components/ui/Modal/index.d.ts +82 -0
- package/dist/components/ui/QRCode/QRCodeSvg.d.ts +35 -0
- package/dist/components/ui/QRCode/index.d.ts +7 -0
- package/dist/components/ui/QRCode/useCorners.d.ts +9 -0
- package/dist/components/ui/QRCode/useDotsPath.d.ts +18 -0
- package/dist/components/ui/QRCode/useLogo.d.ts +18 -0
- package/dist/components/ui/QRCode/useMatrix.d.ts +7 -0
- package/dist/components/ui/ServerError/index.d.ts +6 -0
- package/dist/components/ui/SuccessMessage/index.d.ts +14 -0
- package/dist/components/ui/SwitchFadeTransition/index.d.ts +15 -0
- package/dist/components/ui/SwitchSlideTransition/index.d.ts +16 -0
- package/dist/components/ui/SwitchTransition/index.d.ts +42 -0
- package/dist/components/ui/ToggleListItem/index.d.ts +31 -0
- package/dist/components/ui/VisuallyHidden/index.d.ts +18 -0
- package/dist/data/countries.d.ts +15 -0
- package/dist/data/countryNames.d.ts +4 -0
- package/dist/hooks/useKeyExportPostMessage.d.ts +25 -0
- package/dist/hooks/usePhoneNumberState.d.ts +47 -0
- package/dist/hooks/usePhoneNumberValidators.d.ts +8 -0
- package/dist/hooks/useTimeout.d.ts +18 -0
- package/dist/hooks/useTimer.d.ts +6 -0
- package/dist/hooks/useTransitionMap.d.ts +22 -0
- package/dist/hooks/useVerifyMfaModal.d.ts +78 -0
- package/dist/icons/IconAppleLogo.d.ts +22 -0
- package/dist/icons/IconArrowLeft.d.ts +22 -0
- package/dist/icons/IconArrowsUpDown.d.ts +22 -0
- package/dist/icons/IconCheck.d.ts +22 -0
- package/dist/icons/IconCheckCircle.d.ts +21 -0
- package/dist/icons/IconChevronDown.d.ts +22 -0
- package/dist/icons/IconCoinbaseMark.d.ts +22 -0
- package/dist/icons/IconCoinbaseWordmark.d.ts +22 -0
- package/dist/icons/IconCopy.d.ts +22 -0
- package/dist/icons/IconCreditCard.d.ts +22 -0
- package/dist/icons/IconCurrencies.d.ts +22 -0
- package/dist/icons/IconEnvelope.d.ts +22 -0
- package/dist/icons/IconExclamationCircle.d.ts +22 -0
- package/dist/icons/IconExclamationTriangle.d.ts +22 -0
- package/dist/icons/IconGoogleColorLogo.d.ts +22 -0
- package/dist/icons/IconGoogleLogo.d.ts +22 -0
- package/dist/icons/IconLock.d.ts +22 -0
- package/dist/icons/IconMinus.d.ts +21 -0
- package/dist/icons/IconPhone.d.ts +22 -0
- package/dist/icons/IconPinCode.d.ts +22 -0
- package/dist/icons/IconPlus.d.ts +21 -0
- package/dist/icons/IconShield.d.ts +22 -0
- package/dist/icons/IconSmartPhone.d.ts +22 -0
- package/dist/icons/IconTelegramLogo.d.ts +22 -0
- package/dist/icons/IconXLogo.d.ts +22 -0
- package/dist/icons/IconXMark.d.ts +22 -0
- package/dist/icons/SvgIcon.d.ts +6 -0
- package/dist/theme/cssVariables.d.ts +10 -0
- package/dist/theme/theme.d.ts +246 -0
- package/dist/theme/tokens.d.ts +54 -0
- package/dist/theme/utils.d.ts +63 -0
- package/dist/types/secureIframe.d.ts +3 -0
- package/dist/utils/capitalize.d.ts +8 -0
- package/dist/utils/childrenHasComponent.d.ts +10 -0
- package/dist/utils/clamp.d.ts +10 -0
- package/dist/utils/formatFiat.d.ts +11 -0
- package/dist/utils/formatPhoneNumber.d.ts +8 -0
- package/dist/utils/getMessageFromUnknownError.d.ts +9 -0
- package/dist/utils/isApiError.d.ts +21 -0
- package/dist/utils/isEmailInvalid.d.ts +15 -0
- package/dist/utils/openPopup.d.ts +15 -0
- package/dist/utils/parseValuesFromPhoneNumber.d.ts +16 -0
- package/dist/utils/sendIframeMessage.d.ts +8 -0
- package/dist/utils/toOAuthProviderType.d.ts +8 -0
- package/dist/utils/transition.d.ts +41 -0
- package/dist/version.d.ts +5 -1
- package/dist/version.js +1 -1
- package/package.json +5 -5
|
@@ -1,2 +1,24 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Coinbase Wordmark icon component.
|
|
4
|
+
*
|
|
5
|
+
* @param {SVGProps<SVGSVGElement>} props - The props for the icon.
|
|
6
|
+
* @returns {JSX.Element} The Coinbase Wordmark icon.
|
|
7
|
+
*
|
|
8
|
+
* @group Components
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx lines
|
|
12
|
+
* // Icon is correctly from screen readers
|
|
13
|
+
* <p>
|
|
14
|
+
* <IconCoinbaseWordmark />
|
|
15
|
+
* Coinbase
|
|
16
|
+
* </p>
|
|
17
|
+
*
|
|
18
|
+
* // Icon with screen-reader accessible label only
|
|
19
|
+
* <p>
|
|
20
|
+
* <IconCoinbaseWordmark aria-label="Coinbase" />
|
|
21
|
+
* </p>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
2
24
|
export declare const IconCoinbaseWordmark: (props: Omit<SVGProps<SVGSVGElement>, "viewBox">) => import("react/jsx-runtime").JSX.Element;
|
package/dist/icons/IconCopy.d.ts
CHANGED
|
@@ -1,2 +1,24 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Copy icon component.
|
|
4
|
+
*
|
|
5
|
+
* @param {SVGProps<SVGSVGElement>} props - The props for the icon.
|
|
6
|
+
* @returns {JSX.Element} The copy icon.
|
|
7
|
+
*
|
|
8
|
+
* @group Components
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* // Icon is correctly hidden from screen readers
|
|
13
|
+
* <button type="button" onClick={handleClick}>
|
|
14
|
+
* <IconCopy />
|
|
15
|
+
* Copy address
|
|
16
|
+
* </button>
|
|
17
|
+
*
|
|
18
|
+
* // Icon with screen-reader accessible label only
|
|
19
|
+
* <button type="button" onClick={handleClick}>
|
|
20
|
+
* <IconCopy aria-label="Copy address" />
|
|
21
|
+
* </button>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
2
24
|
export declare const IconCopy: (props: Omit<SVGProps<SVGSVGElement>, "viewBox">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,24 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Credit card icon component.
|
|
4
|
+
*
|
|
5
|
+
* @param {SVGProps<SVGSVGElement>} props - The props for the icon.
|
|
6
|
+
* @returns {JSX.Element} The credit card icon.
|
|
7
|
+
*
|
|
8
|
+
* @group Components
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* // Icon is correctly hidden from screen readers
|
|
13
|
+
* <p>
|
|
14
|
+
* <IconCreditCard />
|
|
15
|
+
* Pay with Debit Card
|
|
16
|
+
* </p>
|
|
17
|
+
*
|
|
18
|
+
* // Icon with screen-reader accessible label only
|
|
19
|
+
* <p>
|
|
20
|
+
* <IconCreditCard aria-label="Pay with Debit Card" />
|
|
21
|
+
* </p>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
2
24
|
export declare const IconCreditCard: (props: Omit<SVGProps<SVGSVGElement>, "viewBox">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,24 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Currencies icon component.
|
|
4
|
+
*
|
|
5
|
+
* @param {SVGProps<SVGSVGElement>} props - The props for the icon.
|
|
6
|
+
* @returns {JSX.Element} The currencies icon.
|
|
7
|
+
*
|
|
8
|
+
* @group Components
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* // Icon is correctly hidden from screen readers
|
|
13
|
+
* <p>
|
|
14
|
+
* <IconCurrencies />
|
|
15
|
+
* Waiting for payment
|
|
16
|
+
* </p>
|
|
17
|
+
*
|
|
18
|
+
* // Icon with screen-reader accessible label only
|
|
19
|
+
* <p>
|
|
20
|
+
* <IconCurrencies aria-label="Waiting for payment" />
|
|
21
|
+
* </p>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
2
24
|
export declare const IconCurrencies: (props: Omit<SVGProps<SVGSVGElement>, "viewBox">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,24 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Envelope icon component.
|
|
4
|
+
*
|
|
5
|
+
* @param {SVGProps<SVGSVGElement>} props - The props for the icon.
|
|
6
|
+
* @returns {JSX.Element} The Envelope icon.
|
|
7
|
+
*
|
|
8
|
+
* @group Components
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx lines
|
|
12
|
+
* // Icon is correctly from screen readers
|
|
13
|
+
* <p>
|
|
14
|
+
* <IconEnvelope />
|
|
15
|
+
* Email me a code
|
|
16
|
+
* </p>
|
|
17
|
+
*
|
|
18
|
+
* // Icon with screen-reader accessible label only
|
|
19
|
+
* <p>
|
|
20
|
+
* <IconEnvelope aria-label="Email me a code" />
|
|
21
|
+
* </p>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
2
24
|
export declare const IconEnvelope: (props: Omit<SVGProps<SVGSVGElement>, "viewBox">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,24 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Exclamation Circle icon component.
|
|
4
|
+
*
|
|
5
|
+
* @param {SVGProps<SVGSVGElement>} props - The props for the icon.
|
|
6
|
+
* @returns {JSX.Element} The Exclamation Circle icon.
|
|
7
|
+
*
|
|
8
|
+
* @group Components
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx lines
|
|
12
|
+
* // Icon is correctly from screen readers
|
|
13
|
+
* <p>
|
|
14
|
+
* <IconExclamationCircle />
|
|
15
|
+
* Warning!
|
|
16
|
+
* </p>
|
|
17
|
+
*
|
|
18
|
+
* // Icon with screen-reader accessible label only
|
|
19
|
+
* <p>
|
|
20
|
+
* <IconExclamationCircle aria-label="Warning" />
|
|
21
|
+
* </p>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
2
24
|
export declare const IconExclamationCircle: (props: Omit<SVGProps<SVGSVGElement>, "viewBox">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,24 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Exclamation Triangle icon component.
|
|
4
|
+
*
|
|
5
|
+
* @param {SVGProps<SVGSVGElement>} props - The props for the icon.
|
|
6
|
+
* @returns {JSX.Element} The Exclamation Triangle icon.
|
|
7
|
+
*
|
|
8
|
+
* @group Components
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx lines
|
|
12
|
+
* // Icon is correctly hidden from screen readers
|
|
13
|
+
* <p>
|
|
14
|
+
* <IconExclamationTriangle />
|
|
15
|
+
* Warning!
|
|
16
|
+
* </p>
|
|
17
|
+
*
|
|
18
|
+
* // Icon with screen-reader accessible label only
|
|
19
|
+
* <p>
|
|
20
|
+
* <IconExclamationTriangle aria-label="Warning" />
|
|
21
|
+
* </p>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
2
24
|
export declare const IconExclamationTriangle: (props: Omit<SVGProps<SVGSVGElement>, "viewBox">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,24 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Colored Google logo icon component.
|
|
4
|
+
*
|
|
5
|
+
* @param {SVGProps<SVGSVGElement>} props - The props for the icon.
|
|
6
|
+
* @returns {JSX.Element} The Google logo icon.
|
|
7
|
+
*
|
|
8
|
+
* @group Components
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx lines
|
|
12
|
+
* // Icon is correctly hidden from screen readers
|
|
13
|
+
* <p>
|
|
14
|
+
* <IconGoogleColorLogo />
|
|
15
|
+
* Google
|
|
16
|
+
* </p>
|
|
17
|
+
*
|
|
18
|
+
* // Icon with screen-reader accessible label only
|
|
19
|
+
* <p>
|
|
20
|
+
* <IconGoogleColorLogo aria-label="Google" />
|
|
21
|
+
* </p>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
2
24
|
export declare const IconGoogleColorLogo: (props: Omit<SVGProps<SVGSVGElement>, "viewBox">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,24 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Google logo icon component.
|
|
4
|
+
*
|
|
5
|
+
* @param {SVGProps<SVGSVGElement>} props - The props for the icon.
|
|
6
|
+
* @returns {JSX.Element} The Google logo icon.
|
|
7
|
+
*
|
|
8
|
+
* @group Components
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx lines
|
|
12
|
+
* // Icon is correctly hidden from screen readers
|
|
13
|
+
* <p>
|
|
14
|
+
* <IconGoogleLogo />
|
|
15
|
+
* Google
|
|
16
|
+
* </p>
|
|
17
|
+
*
|
|
18
|
+
* // Icon with screen-reader accessible label only
|
|
19
|
+
* <p>
|
|
20
|
+
* <IconGoogleLogo aria-label="Google" />
|
|
21
|
+
* </p>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
2
24
|
export declare const IconGoogleLogo: (props: Omit<SVGProps<SVGSVGElement>, "viewBox">) => import("react/jsx-runtime").JSX.Element;
|
package/dist/icons/IconLock.d.ts
CHANGED
|
@@ -1,2 +1,24 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Lock icon component.
|
|
4
|
+
*
|
|
5
|
+
* @param {SVGProps<SVGSVGElement>} props - The props for the icon.
|
|
6
|
+
* @returns {JSX.Element} The Lock icon.
|
|
7
|
+
*
|
|
8
|
+
* @group Components
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx lines
|
|
12
|
+
* // Icon is correctly from screen readers
|
|
13
|
+
* <p>
|
|
14
|
+
* <IconLock />
|
|
15
|
+
* Locked
|
|
16
|
+
* </p>
|
|
17
|
+
*
|
|
18
|
+
* // Icon with screen-reader accessible label only
|
|
19
|
+
* <p>
|
|
20
|
+
* <IconLock aria-label="locked" />
|
|
21
|
+
* </p>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
2
24
|
export declare const IconLock: (props: Omit<SVGProps<SVGSVGElement>, "viewBox">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,23 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Minus icon component.
|
|
4
|
+
*
|
|
5
|
+
* @param {SVGProps<SVGSVGElement>} props - The props for the icon.
|
|
6
|
+
* @returns {JSX.Element} The Minus icon.
|
|
7
|
+
*
|
|
8
|
+
* @group Components
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx lines
|
|
12
|
+
* // Icon is correctly from screen readers
|
|
13
|
+
* <p>
|
|
14
|
+
* <IconMinus />
|
|
15
|
+
* </p>
|
|
16
|
+
*
|
|
17
|
+
* // Icon with screen-reader accessible label only
|
|
18
|
+
* <p>
|
|
19
|
+
* <IconMinus aria-label="Minus" />
|
|
20
|
+
* </p>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
2
23
|
export declare const IconMinus: (props: Omit<SVGProps<SVGSVGElement>, "viewBox">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,24 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Phone icon component.
|
|
4
|
+
*
|
|
5
|
+
* @param {SVGProps<SVGSVGElement>} props - The props for the icon.
|
|
6
|
+
* @returns {JSX.Element} The chat bubble icon.
|
|
7
|
+
*
|
|
8
|
+
* @group Components
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx lines
|
|
12
|
+
* // Icon is correctly from screen readers
|
|
13
|
+
* <p>
|
|
14
|
+
* <IconPhone />
|
|
15
|
+
* Text me a code
|
|
16
|
+
* </p>
|
|
17
|
+
*
|
|
18
|
+
* // Icon with screen-reader accessible label only
|
|
19
|
+
* <p>
|
|
20
|
+
* <IconPhone aria-label="Text me a code" />
|
|
21
|
+
* </p>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
2
24
|
export declare const IconPhone: (props: Omit<SVGProps<SVGSVGElement>, "viewBox">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,24 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Pin code icon component.
|
|
4
|
+
*
|
|
5
|
+
* @param {SVGProps<SVGSVGElement>} props - The props for the icon.
|
|
6
|
+
* @returns {JSX.Element} The chat bubble icon.
|
|
7
|
+
*
|
|
8
|
+
* @group Components
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx lines
|
|
12
|
+
* // Icon is correctly from screen readers
|
|
13
|
+
* <p>
|
|
14
|
+
* <IconPinCode />
|
|
15
|
+
* Enter code from your authenticator app
|
|
16
|
+
* </p>
|
|
17
|
+
*
|
|
18
|
+
* // Icon with screen-reader accessible label only
|
|
19
|
+
* <p>
|
|
20
|
+
* <IconPinCode aria-label="Enter code from your authenticator app" />
|
|
21
|
+
* </p>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
2
24
|
export declare const IconPinCode: (props: Omit<SVGProps<SVGSVGElement>, "viewBox">) => import("react/jsx-runtime").JSX.Element;
|
package/dist/icons/IconPlus.d.ts
CHANGED
|
@@ -1,2 +1,23 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Plus icon component.
|
|
4
|
+
*
|
|
5
|
+
* @param {SVGProps<SVGSVGElement>} props - The props for the icon.
|
|
6
|
+
* @returns {JSX.Element} The Plus icon.
|
|
7
|
+
*
|
|
8
|
+
* @group Components
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx lines
|
|
12
|
+
* // Icon is correctly from screen readers
|
|
13
|
+
* <p>
|
|
14
|
+
* <IconPlus />
|
|
15
|
+
* </p>
|
|
16
|
+
*
|
|
17
|
+
* // Icon with screen-reader accessible label only
|
|
18
|
+
* <p>
|
|
19
|
+
* <IconPlus aria-label="Plus" />
|
|
20
|
+
* </p>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
2
23
|
export declare const IconPlus: (props: Omit<SVGProps<SVGSVGElement>, "viewBox">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,24 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Shield icon component.
|
|
4
|
+
*
|
|
5
|
+
* @param {SVGProps<SVGSVGElement>} props - The props for the icon.
|
|
6
|
+
* @returns {JSX.Element} The chat bubble icon.
|
|
7
|
+
*
|
|
8
|
+
* @group Components
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx lines
|
|
12
|
+
* // Icon is correctly from screen readers
|
|
13
|
+
* <p>
|
|
14
|
+
* <IconShield />
|
|
15
|
+
* Secure your account
|
|
16
|
+
* </p>
|
|
17
|
+
*
|
|
18
|
+
* // Icon with screen-reader accessible label only
|
|
19
|
+
* <p>
|
|
20
|
+
* <IconShield aria-label="Secure your account" />
|
|
21
|
+
* </p>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
2
24
|
export declare const IconShield: (props: Omit<SVGProps<SVGSVGElement>, "viewBox">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,24 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Smart phone icon component.
|
|
4
|
+
*
|
|
5
|
+
* @param {SVGProps<SVGSVGElement>} props - The props for the icon.
|
|
6
|
+
* @returns {JSX.Element} The chat bubble icon.
|
|
7
|
+
*
|
|
8
|
+
* @group Components
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx lines
|
|
12
|
+
* // Icon is correctly from screen readers
|
|
13
|
+
* <p>
|
|
14
|
+
* <IconSmartPhone />
|
|
15
|
+
* Enter code from your authenticator app
|
|
16
|
+
* </p>
|
|
17
|
+
*
|
|
18
|
+
* // Icon with screen-reader accessible label only
|
|
19
|
+
* <p>
|
|
20
|
+
* <IconSmartPhone aria-label="Enter code from your authenticator app" />
|
|
21
|
+
* </p>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
2
24
|
export declare const IconSmartPhone: (props: Omit<SVGProps<SVGSVGElement>, "viewBox">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,24 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Telegram logo icon component.
|
|
4
|
+
*
|
|
5
|
+
* @param {SVGProps<SVGSVGElement>} props - The props for the icon.
|
|
6
|
+
* @returns {JSX.Element} The Telegram logo icon.
|
|
7
|
+
*
|
|
8
|
+
* @group Components
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx lines
|
|
12
|
+
* // Icon is correctly hidden from screen readers
|
|
13
|
+
* <p>
|
|
14
|
+
* <IconTelegramLogo />
|
|
15
|
+
* Telegram
|
|
16
|
+
* </p>
|
|
17
|
+
*
|
|
18
|
+
* // Icon with screen-reader accessible label only
|
|
19
|
+
* <p>
|
|
20
|
+
* <IconTelegramLogo aria-label="Telegram" />
|
|
21
|
+
* </p>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
2
24
|
export declare const IconTelegramLogo: (props: Omit<SVGProps<SVGSVGElement>, "viewBox">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,24 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* X logo icon component.
|
|
4
|
+
*
|
|
5
|
+
* @param {SVGProps<SVGSVGElement>} props - The props for the icon.
|
|
6
|
+
* @returns {JSX.Element} The X logo icon.
|
|
7
|
+
*
|
|
8
|
+
* @group Components
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx lines
|
|
12
|
+
* // Icon is correctly hidden from screen readers
|
|
13
|
+
* <p>
|
|
14
|
+
* <IconXLogo />
|
|
15
|
+
* X
|
|
16
|
+
* </p>
|
|
17
|
+
*
|
|
18
|
+
* // Icon with screen-reader accessible label only
|
|
19
|
+
* <p>
|
|
20
|
+
* <IconXLogo aria-label="X" />
|
|
21
|
+
* </p>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
2
24
|
export declare const IconXLogo: (props: Omit<SVGProps<SVGSVGElement>, "viewBox">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,24 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Close icon component.
|
|
4
|
+
*
|
|
5
|
+
* @param {SVGProps<SVGSVGElement>} props - The props for the icon.
|
|
6
|
+
* @returns {JSX.Element} The Close icon.
|
|
7
|
+
*
|
|
8
|
+
* @group Components
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx lines
|
|
12
|
+
* // Icon is correctly from screen readers
|
|
13
|
+
* <p>
|
|
14
|
+
* <IconXMark />
|
|
15
|
+
* Close
|
|
16
|
+
* </p>
|
|
17
|
+
*
|
|
18
|
+
* // Icon with screen-reader accessible label only
|
|
19
|
+
* <p>
|
|
20
|
+
* <IconXMark aria-label="Close" />
|
|
21
|
+
* </p>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
2
24
|
export declare const IconXMark: (props: Omit<SVGProps<SVGSVGElement>, "viewBox">) => import("react/jsx-runtime").JSX.Element;
|
package/dist/icons/SvgIcon.d.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { ReactNode, SVGProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Base SVG icon component.
|
|
4
|
+
*
|
|
5
|
+
* @param {SVGProps<SVGSVGElement>} props - The props for the icon.
|
|
6
|
+
* @returns {JSX.Element} An svg icon component.
|
|
7
|
+
*/
|
|
2
8
|
export declare const SvgIcon: ({ children, ...props }: SVGProps<SVGSVGElement> & {
|
|
3
9
|
children: ReactNode;
|
|
4
10
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The CSS variables for the theme.
|
|
3
|
+
*
|
|
4
|
+
* This is the theme object with a namespace added to the keys (`--cdp-web-`).
|
|
5
|
+
*
|
|
6
|
+
* @see {@link theme} for the theme object
|
|
7
|
+
*/
|
|
1
8
|
export declare const cssVariables: import('./utils').CDPWebCSSVariables;
|
|
9
|
+
/**
|
|
10
|
+
* This is exported for the "stylelint-value-no-unknown-custom-properties" plugin
|
|
11
|
+
*/
|
|
2
12
|
declare const _default: {
|
|
3
13
|
customProperties: import('./utils').CDPWebCSSVariables;
|
|
4
14
|
};
|