@reown/appkit-ui 1.3.1 → 1.4.0
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/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/assets/svg/walletconnect.js +8 -0
- package/dist/esm/src/assets/svg/walletconnect.js.map +1 -1
- package/dist/esm/src/components/wui-icon/index.js +2 -1
- package/dist/esm/src/components/wui-icon/index.js.map +1 -1
- package/dist/esm/src/composites/wui-card-select-loader/styles.js +7 -1
- package/dist/esm/src/composites/wui-card-select-loader/styles.js.map +1 -1
- package/dist/esm/src/composites/wui-certified-switch/index.js +35 -0
- package/dist/esm/src/composites/wui-certified-switch/index.js.map +1 -0
- package/dist/esm/src/composites/wui-certified-switch/styles.js +25 -0
- package/dist/esm/src/composites/wui-certified-switch/styles.js.map +1 -0
- package/dist/esm/src/composites/wui-list-account/index.js +2 -2
- package/dist/esm/src/composites/wui-list-account/index.js.map +1 -1
- package/dist/esm/src/composites/wui-snackbar/index.js +21 -10
- package/dist/esm/src/composites/wui-snackbar/index.js.map +1 -1
- package/dist/esm/src/composites/wui-switch/index.js +49 -0
- package/dist/esm/src/composites/wui-switch/index.js.map +1 -0
- package/dist/esm/src/composites/wui-switch/styles.js +66 -0
- package/dist/esm/src/composites/wui-switch/styles.js.map +1 -0
- package/dist/esm/src/utils/TypeUtil.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/src/assets/svg/walletconnect.d.ts +1 -0
- package/dist/types/src/composites/wui-certified-switch/index.d.ts +11 -0
- package/dist/types/src/composites/wui-certified-switch/styles.d.ts +2 -0
- package/dist/types/src/composites/wui-snackbar/index.d.ts +2 -0
- package/dist/types/src/composites/wui-switch/index.d.ts +14 -0
- package/dist/types/src/composites/wui-switch/styles.d.ts +2 -0
- package/dist/types/src/utils/JSXTypeUtil.d.ts +5 -1
- package/dist/types/src/utils/TypeUtil.d.ts +1 -1
- package/package.json +4 -4
package/dist/types/index.d.ts
CHANGED
|
@@ -75,6 +75,8 @@ export * from './src/composites/wui-list-button/index.js';
|
|
|
75
75
|
export * from './src/composites/wui-list-social/index.js';
|
|
76
76
|
export * from './src/composites/wui-select/index.js';
|
|
77
77
|
export * from './src/composites/wui-checkbox/index.js';
|
|
78
|
+
export * from './src/composites/wui-switch/index.js';
|
|
79
|
+
export * from './src/composites/wui-certified-switch/index.js';
|
|
78
80
|
export * from './src/layout/wui-flex/index.js';
|
|
79
81
|
export * from './src/layout/wui-grid/index.js';
|
|
80
82
|
export * from './src/layout/wui-separator/index.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare class WuiCertifiedSwitch extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult[];
|
|
4
|
+
checked?: boolean;
|
|
5
|
+
render(): import("lit").TemplateResult<1>;
|
|
6
|
+
}
|
|
7
|
+
declare global {
|
|
8
|
+
interface HTMLElementTagNameMap {
|
|
9
|
+
'wui-certified-switch': WuiCertifiedSwitch;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -10,7 +10,9 @@ export declare class WuiSnackbar extends LitElement {
|
|
|
10
10
|
icon: IconType;
|
|
11
11
|
message: string;
|
|
12
12
|
loading: boolean;
|
|
13
|
+
iconType: 'default' | 'box';
|
|
13
14
|
render(): import("lit").TemplateResult<1>;
|
|
15
|
+
private templateIcon;
|
|
14
16
|
}
|
|
15
17
|
declare global {
|
|
16
18
|
interface HTMLElementTagNameMap {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { type Ref } from 'lit/directives/ref.js';
|
|
3
|
+
export declare class WuiSwitch extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult[];
|
|
5
|
+
inputElementRef: Ref<HTMLInputElement>;
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
render(): import("lit").TemplateResult<1>;
|
|
8
|
+
private dispatchChangeEvent;
|
|
9
|
+
}
|
|
10
|
+
declare global {
|
|
11
|
+
interface HTMLElementTagNameMap {
|
|
12
|
+
'wui-switch': WuiSwitch;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -68,10 +68,12 @@ import type { WuiProfileButtonV2 } from '../composites/wui-profile-button-v2/ind
|
|
|
68
68
|
import type { WuiListAccount } from '../composites/wui-list-account/index.js';
|
|
69
69
|
import type { WuiPreviewItem } from '../composites/wui-preview-item/index.js';
|
|
70
70
|
import type { WuiAlertBar } from '../composites/wui-alertbar/index.js';
|
|
71
|
-
import type { WuiCheckBox } from '../composites/wui-checkbox/index.js';
|
|
72
71
|
import type { WuiFlex } from '../layout/wui-flex/index.js';
|
|
73
72
|
import type { WuiGrid } from '../layout/wui-grid/index.js';
|
|
74
73
|
import type { WuiSeparator } from '../layout/wui-separator/index.js';
|
|
74
|
+
import type { WuiCheckBox } from '../composites/wui-checkbox/index.js';
|
|
75
|
+
import type { WuiSwitch } from '../composites/wui-switch/index.js';
|
|
76
|
+
import type { WuiCertifiedSwitch } from '../composites/wui-certified-switch/index.js';
|
|
75
77
|
type CustomElement<E> = Partial<E & {
|
|
76
78
|
children?: any;
|
|
77
79
|
onClick: any;
|
|
@@ -150,6 +152,8 @@ declare global {
|
|
|
150
152
|
'wui-banner': CustomElement<WuiBanner>;
|
|
151
153
|
'wui-list-account': CustomElement<WuiListAccount>;
|
|
152
154
|
'wui-checkbox': CustomElement<WuiCheckBox>;
|
|
155
|
+
'wui-switch': CustomElement<WuiSwitch>;
|
|
156
|
+
'wui-certified-switch': CustomElement<WuiCertifiedSwitch>;
|
|
153
157
|
'wui-flex': CustomElement<WuiFlex>;
|
|
154
158
|
'wui-grid': CustomElement<WuiGrid>;
|
|
155
159
|
'wui-separator': CustomElement<WuiSeparator>;
|
|
@@ -18,7 +18,7 @@ export interface IWalletImage {
|
|
|
18
18
|
}
|
|
19
19
|
export type GridContentType = 'center' | 'end' | 'space-around' | 'space-between' | 'space-evenly' | 'start' | 'stretch';
|
|
20
20
|
export type GridItemsType = 'center' | 'end' | 'start' | 'stretch';
|
|
21
|
-
export type IconType = 'add' | 'allWallets' | 'arrowBottomCircle' | 'appStore' | 'chromeStore' | 'apple' | 'arrowBottom' | 'arrowLeft' | 'arrowRight' | 'arrowTop' | 'bank' | 'browser' | 'card' | 'checkmark' | 'checkmarkBold' | 'chevronBottom' | 'chevronLeft' | 'chevronRight' | 'chevronTop' | 'clock' | 'close' | 'coinPlaceholder' | 'compass' | 'copy' | 'cursor' | 'cursorTransparent' | 'desktop' | 'disconnect' | 'discord' | 'etherscan' | 'extension' | 'externalLink' | 'facebook' | 'farcaster' | 'filters' | 'github' | 'google' | 'helpCircle' | 'image' | 'id' | 'infoCircle' | 'lightbulb' | 'mail' | 'mobile' | 'more' | 'networkPlaceholder' | 'nftPlaceholder' | 'off' | 'playStore' | 'plus' | 'qrCode' | 'recycleHorizontal' | 'refresh' | 'search' | 'send' | 'swapHorizontal' | 'swapHorizontalBold' | 'swapHorizontalMedium' | 'swapHorizontalRoundedBold' | 'swapVertical' | 'telegram' | 'threeDots' | 'twitch' | 'twitter' | 'twitterIcon' | 'verify' | 'verifyFilled' | 'wallet' | 'walletConnect' | 'walletConnectLightBrown' | 'walletPlaceholder' | 'warningCircle' | 'x' | 'info' | 'exclamationTriangle';
|
|
21
|
+
export type IconType = 'add' | 'allWallets' | 'arrowBottomCircle' | 'appStore' | 'chromeStore' | 'apple' | 'arrowBottom' | 'arrowLeft' | 'arrowRight' | 'arrowTop' | 'bank' | 'browser' | 'card' | 'checkmark' | 'checkmarkBold' | 'chevronBottom' | 'chevronLeft' | 'chevronRight' | 'chevronTop' | 'clock' | 'close' | 'coinPlaceholder' | 'compass' | 'copy' | 'cursor' | 'cursorTransparent' | 'desktop' | 'disconnect' | 'discord' | 'etherscan' | 'extension' | 'externalLink' | 'facebook' | 'farcaster' | 'filters' | 'github' | 'google' | 'helpCircle' | 'image' | 'id' | 'infoCircle' | 'lightbulb' | 'mail' | 'mobile' | 'more' | 'networkPlaceholder' | 'nftPlaceholder' | 'off' | 'playStore' | 'plus' | 'qrCode' | 'recycleHorizontal' | 'refresh' | 'search' | 'send' | 'swapHorizontal' | 'swapHorizontalBold' | 'swapHorizontalMedium' | 'swapHorizontalRoundedBold' | 'swapVertical' | 'telegram' | 'threeDots' | 'twitch' | 'twitter' | 'twitterIcon' | 'verify' | 'verifyFilled' | 'wallet' | 'walletConnect' | 'walletConnectLightBrown' | 'walletConnectBrown' | 'walletPlaceholder' | 'warningCircle' | 'x' | 'info' | 'exclamationTriangle';
|
|
22
22
|
export type VisualType = 'browser' | 'meld' | 'coinbase' | 'dao' | 'defi' | 'defiAlt' | 'eth' | 'google' | 'layers' | 'lightbulb' | 'lock' | 'login' | 'network' | 'nft' | 'noun' | 'onrampCard' | 'profile' | 'system' | 'moonpay' | 'stripe' | 'paypal' | 'pencil' | 'solana';
|
|
23
23
|
export type VisualSize = 'sm' | 'md' | 'lg';
|
|
24
24
|
export type LogoType = 'apple' | 'discord' | 'facebook' | 'github' | 'google' | 'more' | 'telegram' | 'twitch' | 'x' | 'farcaster';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reown/appkit-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/esm/index.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"eslint-plugin-wc": "2.0.4",
|
|
19
19
|
"vitest": "2.1.3",
|
|
20
20
|
"@vitest/coverage-v8": "2.1.3",
|
|
21
|
-
"@reown/appkit-common": "1.
|
|
22
|
-
"@reown/appkit-wallet": "1.
|
|
23
|
-
"@reown/appkit-core": "1.
|
|
21
|
+
"@reown/appkit-common": "1.4.0",
|
|
22
|
+
"@reown/appkit-wallet": "1.4.0",
|
|
23
|
+
"@reown/appkit-core": "1.4.0"
|
|
24
24
|
},
|
|
25
25
|
"author": "Reown <support@reown.com> (https://reown.com)",
|
|
26
26
|
"license": "Apache-2.0",
|