@usecapsule/core-components 3.2.0 → 3.3.0-dev.0
Sign up to get free protection for your applications and to get access to all the features.
- package/css/capsule-core.css +25 -10
- package/css/capsule-core.css.map +1 -1
- package/dist/capsule/capsule.esm.js +1 -1
- package/dist/capsule/capsule.esm.js.map +1 -1
- package/dist/capsule/index.esm.js +1 -1
- package/dist/capsule/index.esm.js.map +1 -1
- package/dist/capsule/p-0e558c7f.entry.js +10 -0
- package/dist/capsule/{p-05cb769b.entry.js.map → p-0e558c7f.entry.js.map} +1 -1
- package/dist/capsule/{p-dc4591d5.entry.js → p-1bd11889.entry.js} +2 -2
- package/dist/capsule/p-1bd11889.entry.js.map +1 -0
- package/dist/capsule/p-32cdf894.entry.js +2 -0
- package/dist/capsule/p-32cdf894.entry.js.map +1 -0
- package/dist/capsule/p-3b042fd1.entry.js +2 -0
- package/dist/capsule/p-5965b15e.entry.js +2 -0
- package/dist/capsule/{p-c1aa1ffb.entry.js.map → p-5965b15e.entry.js.map} +1 -1
- package/dist/capsule/{p-742bda0b.entry.js → p-5d62e610.entry.js} +2 -2
- package/dist/capsule/p-60508b1e.entry.js +20 -0
- package/dist/capsule/p-60508b1e.entry.js.map +1 -0
- package/dist/cjs/capsule.cjs.js +1 -1
- package/dist/cjs/{cpsl-alert_33.cjs.entry.js → cpsl-alert_34.cjs.entry.js} +17025 -13458
- package/dist/cjs/cpsl-alert_34.cjs.entry.js.map +1 -0
- package/dist/cjs/cpsl-animation.cjs.entry.js +3 -2
- package/dist/cjs/cpsl-animation.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-hero.cjs.entry.js +9 -6
- package/dist/cjs/cpsl-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-identicon.cjs.entry.js +1 -1
- package/dist/cjs/cpsl-info-box.cjs.entry.js +2 -2
- package/dist/cjs/cpsl-info-box.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-modal-v2.cjs.entry.js +1 -1
- package/dist/cjs/cpsl-modal-v2.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-row.cjs.entry.js +1 -1
- package/dist/cjs/index-65f57499.js +2 -2
- package/dist/cjs/index.cjs.js +40 -17
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/icons/arrow-circle-broken-down-left.svg +3 -0
- package/dist/collection/assets/icons/bank.svg +3 -0
- package/dist/collection/assets/icons/credit-card.svg +3 -0
- package/dist/collection/assets/icons/dot.svg +3 -0
- package/dist/collection/assets/icons/download.svg +3 -0
- package/dist/collection/assets/icons/globe.svg +3 -0
- package/dist/collection/assets/icons/hero-alert-circle.svg +3 -0
- package/dist/collection/assets/icons/hero-checkmark-capsule.svg +11 -0
- package/dist/collection/assets/icons/hero-checkmark.svg +3 -0
- package/dist/collection/assets/icons/hero-external-connection.svg +71 -0
- package/dist/collection/assets/icons/index.js +21 -1
- package/dist/collection/assets/icons/index.js.map +1 -1
- package/dist/collection/assets/icons/link-external.svg +3 -0
- package/dist/collection/assets/icons/log-out.svg +3 -0
- package/dist/collection/assets/icons/moonpay-brand.svg +10 -0
- package/dist/collection/assets/icons/puzzle-piece.svg +3 -0
- package/dist/collection/assets/icons/qr-code-02.svg +3 -0
- package/dist/collection/assets/icons/qr-code.svg +3 -0
- package/dist/collection/assets/icons/refresh.svg +3 -3
- package/dist/collection/assets/icons/search.svg +3 -0
- package/dist/collection/assets/icons/send.svg +3 -0
- package/dist/collection/assets/icons/shield.svg +3 -0
- package/dist/collection/assets/icons/stripe-brand.svg +3 -0
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/cpsl-alert/cpsl-alert.js +3 -3
- package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -1
- package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js +3 -3
- package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js.map +1 -1
- package/dist/collection/components/{cpsl-modal/cpsl-modal.css → cpsl-auth-modal/cpsl-auth-modal.css} +33 -58
- package/dist/collection/components/{cpsl-modal/cpsl-modal.js → cpsl-auth-modal/cpsl-auth-modal.js} +13 -131
- package/dist/collection/components/cpsl-auth-modal/cpsl-auth-modal.js.map +1 -0
- package/dist/collection/components/cpsl-button/cpsl-button.css +89 -2
- package/dist/collection/components/cpsl-button/cpsl-button.js +6 -5
- package/dist/collection/components/cpsl-button/cpsl-button.js.map +1 -1
- package/dist/collection/components/cpsl-button/cpsl-button.stories.js.map +1 -1
- package/dist/collection/components/cpsl-button-group/cpsl-button-group.js +2 -2
- package/dist/collection/components/cpsl-button-group/cpsl-button-group.js.map +1 -1
- package/dist/collection/components/cpsl-card/cpsl-card.css +5 -2
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.css +3 -0
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +11 -7
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -1
- package/dist/collection/components/cpsl-divider/cpsl-divider.css +2 -1
- package/dist/collection/components/cpsl-drawer/cpsl-drawer.js +2 -2
- package/dist/collection/components/cpsl-drawer/cpsl-drawer.js.map +1 -1
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +2 -2
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -1
- package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js +5 -10
- package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js.map +1 -1
- package/dist/collection/components/cpsl-hero/cpsl-hero.css +136 -71
- package/dist/collection/components/cpsl-hero/cpsl-hero.js +63 -9
- package/dist/collection/components/cpsl-hero/cpsl-hero.js.map +1 -1
- package/dist/collection/components/cpsl-icon/cpsl-icon.css +8 -0
- package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
- package/dist/collection/components/cpsl-icon/cpsl-icon.js.map +1 -1
- package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.css +97 -0
- package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.js +121 -0
- package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.js.map +1 -0
- package/dist/collection/components/cpsl-identicon/cpsl-identicon.js +1 -1
- package/dist/collection/components/cpsl-info-box/cpsl-info-box.css +1 -2
- package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
- package/dist/collection/components/cpsl-input/cpsl-input.css +21 -2
- package/dist/collection/components/cpsl-input/cpsl-input.js +100 -28
- package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -1
- package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js +1 -1
- package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js.map +1 -1
- package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js +2 -2
- package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js.map +1 -1
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +1 -1
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.js.map +1 -1
- package/dist/collection/components/cpsl-pagination/cpsl-pagination.js +1 -1
- package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
- package/dist/collection/components/cpsl-popover/cpsl-popover.css +2 -0
- package/dist/collection/components/cpsl-popover/cpsl-popover.js +12 -14
- package/dist/collection/components/cpsl-popover/cpsl-popover.js.map +1 -1
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.css +12 -3
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +28 -23
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js.map +1 -1
- package/dist/collection/components/cpsl-radio/cpsl-radio.js +1 -1
- package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
- package/dist/collection/components/cpsl-select/cpsl-select.css +17 -0
- package/dist/collection/components/cpsl-select/cpsl-select.js +96 -6
- package/dist/collection/components/cpsl-select/cpsl-select.js.map +1 -1
- package/dist/collection/components/cpsl-select-item/cpsl-select-item.js +1 -1
- package/dist/collection/components/cpsl-select-item/cpsl-select-item.js.map +1 -1
- package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +3 -3
- package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js.map +1 -1
- package/dist/collection/components/cpsl-spinner/cpsl-spinner.css +30 -8
- package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +5 -7
- package/dist/collection/components/cpsl-spinner/cpsl-spinner.js.map +1 -1
- package/dist/collection/components/cpsl-switch/cpsl-switch.js +1 -1
- package/dist/collection/components/cpsl-tab/cpsl-tab.css +24 -1
- package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
- package/dist/collection/components/cpsl-tab/cpsl-tab.js.map +1 -1
- package/dist/collection/components/cpsl-table/cpsl-table.js +1 -9
- package/dist/collection/components/cpsl-table/cpsl-table.js.map +1 -1
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.css +1 -4
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +2 -5
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.js.map +1 -1
- package/dist/collection/components/cpsl-text/cpsl-text.css +19 -0
- package/dist/collection/components/cpsl-text/cpsl-text.js +5 -4
- package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.css +3 -1
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
- package/dist/collection/interface.js.map +1 -1
- package/dist/collection/utils/theme/generateBorderRadii.js +5 -4
- package/dist/collection/utils/theme/generateBorderRadii.js.map +1 -1
- package/dist/collection/utils/theme/generateFont.js +1 -1
- package/dist/collection/utils/theme/generateFont.js.map +1 -1
- package/dist/collection/utils/theme/generatePalette.js +25 -9
- package/dist/collection/utils/theme/generatePalette.js.map +1 -1
- package/dist/collection/utils/theme/generateTheme.js +9 -3
- package/dist/collection/utils/theme/generateTheme.js.map +1 -1
- package/dist/collection/utils/theme/utils.js.map +1 -1
- package/dist/esm/capsule.js +1 -1
- package/dist/esm/{cpsl-alert_33.entry.js → cpsl-alert_34.entry.js} +17026 -13460
- package/dist/esm/cpsl-alert_34.entry.js.map +1 -0
- package/dist/esm/cpsl-animation.entry.js +2 -1
- package/dist/esm/cpsl-animation.entry.js.map +1 -1
- package/dist/esm/cpsl-hero.entry.js +10 -7
- package/dist/esm/cpsl-hero.entry.js.map +1 -1
- package/dist/esm/cpsl-identicon.entry.js +1 -1
- package/dist/esm/cpsl-info-box.entry.js +2 -2
- package/dist/esm/cpsl-info-box.entry.js.map +1 -1
- package/dist/esm/cpsl-modal-v2.entry.js +1 -1
- package/dist/esm/cpsl-modal-v2.entry.js.map +1 -1
- package/dist/esm/cpsl-row.entry.js +1 -1
- package/dist/esm/index-91db3414.js +2 -2
- package/dist/esm/index.js +40 -17
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/assets/icons/index.d.ts +20 -0
- package/dist/types/components/{cpsl-modal/cpsl-modal.d.ts → cpsl-auth-modal/cpsl-auth-modal.d.ts} +3 -23
- package/dist/types/components/cpsl-button/cpsl-button.d.ts +2 -2
- package/dist/types/components/cpsl-hero/cpsl-hero.d.ts +18 -3
- package/dist/types/components/cpsl-icon-group/cpsl-icon-group.d.ts +20 -0
- package/dist/types/components/cpsl-input/cpsl-input.d.ts +13 -3
- package/dist/types/components/cpsl-popover/cpsl-popover.d.ts +2 -2
- package/dist/types/components/cpsl-qr-code/cpsl-qr-code.d.ts +1 -0
- package/dist/types/components/cpsl-select/cpsl-select.d.ts +22 -1
- package/dist/types/components/cpsl-text/cpsl-text.d.ts +1 -1
- package/dist/types/components.d.ts +222 -146
- package/dist/types/interface.d.ts +13 -0
- package/dist/types/utils/theme/generateBorderRadii.d.ts +1 -1
- package/dist/types/utils/theme/generatePalette.d.ts +4 -2
- package/dist/types/utils/theme/generateTheme.d.ts +1 -1
- package/package.json +4 -4
- package/dist/capsule/p-0462f723.js +0 -2
- package/dist/capsule/p-0462f723.js.map +0 -1
- package/dist/capsule/p-05cb769b.entry.js +0 -10
- package/dist/capsule/p-0eea90f8.entry.js +0 -2
- package/dist/capsule/p-7233228e.entry.js +0 -29
- package/dist/capsule/p-7233228e.entry.js.map +0 -1
- package/dist/capsule/p-c1aa1ffb.entry.js +0 -2
- package/dist/capsule/p-d351f076.entry.js +0 -2
- package/dist/capsule/p-d351f076.entry.js.map +0 -1
- package/dist/capsule/p-dc4591d5.entry.js.map +0 -1
- package/dist/cjs/_commonjsHelpers-b3309d7b.js +0 -12
- package/dist/cjs/_commonjsHelpers-b3309d7b.js.map +0 -1
- package/dist/cjs/cpsl-alert_33.cjs.entry.js.map +0 -1
- package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +0 -1
- package/dist/esm/_commonjsHelpers-1789f0cf.js +0 -9
- package/dist/esm/_commonjsHelpers-1789f0cf.js.map +0 -1
- package/dist/esm/cpsl-alert_33.entry.js.map +0 -1
- /package/dist/capsule/{p-0eea90f8.entry.js.map → p-3b042fd1.entry.js.map} +0 -0
- /package/dist/capsule/{p-742bda0b.entry.js.map → p-5d62e610.entry.js.map} +0 -0
- /package/dist/types/Users/{taylorbosch/Documents/GitHub/Capsule → norwood/capsule-repos}/web-sdk/packages/core-components/.stencil/scripts/buildAssets.d.ts +0 -0
@@ -4,9 +4,11 @@ export declare const Icons: {
|
|
4
4
|
angelList: string;
|
5
5
|
appleBrand: string;
|
6
6
|
apple: string;
|
7
|
+
arrowCircleBrokenDownLeft: string;
|
7
8
|
arrowNarrow: string;
|
8
9
|
arrow: string;
|
9
10
|
backupKit: string;
|
11
|
+
bank: string;
|
10
12
|
brush: string;
|
11
13
|
capsuleLogo: string;
|
12
14
|
capsuleRingsDark: string;
|
@@ -20,12 +22,15 @@ export declare const Icons: {
|
|
20
22
|
clubhouseBrand: string;
|
21
23
|
clubhouse: string;
|
22
24
|
copy: string;
|
25
|
+
creditCard: string;
|
23
26
|
cube: string;
|
24
27
|
decentBrand: string;
|
25
28
|
decent: string;
|
26
29
|
discordBrand: string;
|
27
30
|
discord: string;
|
31
|
+
dot: string;
|
28
32
|
downloadCloud: string;
|
33
|
+
download: string;
|
29
34
|
dribbbleBrand: string;
|
30
35
|
dribbble: string;
|
31
36
|
earth: string;
|
@@ -40,10 +45,15 @@ export declare const Icons: {
|
|
40
45
|
file: string;
|
41
46
|
githubBrand: string;
|
42
47
|
github: string;
|
48
|
+
globe: string;
|
43
49
|
googleBrand: string;
|
44
50
|
google: string;
|
45
51
|
helpCircle: string;
|
52
|
+
heroAlertCircle: string;
|
53
|
+
heroCheckmarkCapsule: string;
|
54
|
+
heroCheckmark: string;
|
46
55
|
heroEmail: string;
|
56
|
+
heroExternalConnection: string;
|
47
57
|
heroLock: string;
|
48
58
|
heroPasskey: string;
|
49
59
|
heroPhone: string;
|
@@ -56,26 +66,36 @@ export declare const Icons: {
|
|
56
66
|
key: string;
|
57
67
|
lightning01: string;
|
58
68
|
lightning: string;
|
69
|
+
linkExternal: string;
|
59
70
|
linkedinBrand: string;
|
60
71
|
linkedin: string;
|
72
|
+
logOut: string;
|
61
73
|
mail: string;
|
62
74
|
menu: string;
|
75
|
+
moonpayBrand: string;
|
63
76
|
moreLoginOptions: string;
|
64
77
|
phone: string;
|
65
78
|
pintrestBrand: string;
|
66
79
|
pintrest: string;
|
67
80
|
plusCircle: string;
|
81
|
+
puzzlePiece: string;
|
82
|
+
qrCode02: string;
|
83
|
+
qrCode: string;
|
68
84
|
rampNetworkBrand: string;
|
69
85
|
rampNetwork: string;
|
70
86
|
redditBrand: string;
|
71
87
|
reddit: string;
|
72
88
|
refresh: string;
|
89
|
+
search: string;
|
90
|
+
send: string;
|
73
91
|
settings: string;
|
92
|
+
shield: string;
|
74
93
|
signalBrand: string;
|
75
94
|
signal: string;
|
76
95
|
snapchatBrand: string;
|
77
96
|
snapchat: string;
|
78
97
|
stars: string;
|
98
|
+
stripeBrand: string;
|
79
99
|
telegramBrand: string;
|
80
100
|
telegram: string;
|
81
101
|
tikTokBrand: string;
|
package/dist/types/components/{cpsl-modal/cpsl-modal.d.ts → cpsl-auth-modal/cpsl-auth-modal.d.ts}
RENAMED
@@ -1,10 +1,9 @@
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
2
|
-
export declare class
|
3
|
-
private draggable;
|
4
|
-
private expandFooterTl;
|
2
|
+
export declare class CpslAuthModal {
|
5
3
|
private hasAnimatedIn;
|
6
|
-
el:
|
4
|
+
el: HTMLCpslAuthModalElement;
|
7
5
|
hasFooter: boolean;
|
6
|
+
isMobile: boolean;
|
8
7
|
/**
|
9
8
|
* Duration in seconds of the modal entering.
|
10
9
|
* Default is .15.
|
@@ -15,15 +14,6 @@ export declare class CpslModal {
|
|
15
14
|
* Default is .15.
|
16
15
|
*/
|
17
16
|
exitTransitionDuration?: number;
|
18
|
-
/**
|
19
|
-
* Whether or not to show `footerExpandedFooter` and `footerExpandedHeader` slots.
|
20
|
-
*/
|
21
|
-
footerExpanded?: boolean;
|
22
|
-
/**
|
23
|
-
* Duration in seconds of the footer expansion animation.
|
24
|
-
* Default is 0.15.
|
25
|
-
*/
|
26
|
-
footerTransitionDuration?: number;
|
27
17
|
/**
|
28
18
|
* Whether or not to show the overlay. This will always show the modal, regardless of the value of `open`.
|
29
19
|
*/
|
@@ -56,23 +46,13 @@ export declare class CpslModal {
|
|
56
46
|
* Override z-index.
|
57
47
|
*/
|
58
48
|
zIndexOverride?: number;
|
59
|
-
toggleHeight(): void;
|
60
49
|
toggleModal(): void;
|
61
50
|
componentDidLoad(): void;
|
62
51
|
private handleAnimation;
|
63
|
-
private addExpandAnim;
|
64
|
-
private getDraggableHeight;
|
65
|
-
private initDraggable;
|
66
52
|
private get footerEl();
|
67
|
-
private get footerExpandedEl();
|
68
|
-
private get headerExpandedEl();
|
69
|
-
private get innerContainerEl();
|
70
|
-
private get contentEl();
|
71
53
|
private get modalWrapperEl();
|
72
54
|
private get modalContainerEl();
|
73
|
-
private get overlayEl();
|
74
55
|
private get footerSlotEl();
|
75
|
-
private get headerEl();
|
76
56
|
private get Modal();
|
77
57
|
render(): any;
|
78
58
|
}
|
@@ -31,9 +31,9 @@ export declare class CpslButton {
|
|
31
31
|
target?: string;
|
32
32
|
/**
|
33
33
|
* The variant of the button.
|
34
|
-
* Options are: `"primary"`, `"secondary", `"
|
34
|
+
* Options are: `"primary"`, `"secondary", `"tertiary", `"ghost"`, `"destructive"`.
|
35
35
|
* Default is: `"primary"`.
|
36
36
|
*/
|
37
|
-
variant?: 'primary' | 'secondary' | 'ghost' | 'destructive';
|
37
|
+
variant?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'destructive';
|
38
38
|
render(): any;
|
39
39
|
}
|
@@ -1,11 +1,26 @@
|
|
1
1
|
export declare class CpslHero {
|
2
|
+
/**
|
3
|
+
* The height of the container.
|
4
|
+
* Default is: 180.
|
5
|
+
*/
|
6
|
+
height?: number;
|
7
|
+
/**
|
8
|
+
* Hides the fade out components
|
9
|
+
* Default is: `false`.
|
10
|
+
*/
|
11
|
+
hideFadeOut?: boolean;
|
2
12
|
/**
|
3
13
|
* The variant of the button.
|
4
|
-
* Options are: `"
|
5
|
-
* Default is: `"
|
14
|
+
* Options are: `"customContent"`, `"connection"`, `"externalWalletConnection"`, `"pending", `"approved", `"failed".
|
15
|
+
* Default is: `"connection"`.
|
6
16
|
*/
|
7
|
-
variant?: 'connection' | 'pending' | 'approved' | 'failed';
|
17
|
+
variant?: 'customContent' | 'connection' | 'externalWalletConnection' | 'pending' | 'approved' | 'failed';
|
8
18
|
title: string;
|
9
19
|
subtitle?: string;
|
20
|
+
/**
|
21
|
+
* Whether to use the Capsule custom theming or use the provided theme
|
22
|
+
* Default is: `false`.
|
23
|
+
*/
|
24
|
+
withDefaultTheme?: boolean;
|
10
25
|
render(): any;
|
11
26
|
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { IconType } from '../../interface';
|
2
|
+
export declare class CpslIconGroup {
|
3
|
+
el: HTMLCpslIconGroupElement;
|
4
|
+
isHovered: boolean;
|
5
|
+
/**
|
6
|
+
* The direction the icons should expand from
|
7
|
+
*/
|
8
|
+
expandFrom: 'left' | 'right';
|
9
|
+
/**
|
10
|
+
* If `true`, the user cannot interact with the input.
|
11
|
+
*/
|
12
|
+
disabled: boolean;
|
13
|
+
/**
|
14
|
+
* The name of the icons to display.
|
15
|
+
*/
|
16
|
+
icons: (IconType | string)[];
|
17
|
+
componentDidLoad(): void;
|
18
|
+
disconnectedCallback(): void;
|
19
|
+
render(): any;
|
20
|
+
}
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
2
2
|
import { AutocompleteTypes, IconType, TextFieldTypes } from '../../interface';
|
3
3
|
import { InputChangeEventDetail, InputInputEventDetail } from './input-interface';
|
4
|
+
import InputMask from 'imask/esm/controls/input';
|
5
|
+
import 'imask/esm/masked/pattern';
|
4
6
|
export declare class CpslInput {
|
5
7
|
private nativeInput?;
|
6
8
|
el: HTMLCpslInputElement;
|
@@ -10,6 +12,7 @@ export declare class CpslInput {
|
|
10
12
|
*/
|
11
13
|
private focusedValue?;
|
12
14
|
hasFocus: boolean;
|
15
|
+
maskedInput?: InputMask;
|
13
16
|
/**
|
14
17
|
* Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.
|
15
18
|
* Available options: `"off"`, `"none"`, `"on"`, `"sentences"`, `"words"`, `"characters"`.
|
@@ -37,6 +40,10 @@ export declare class CpslInput {
|
|
37
40
|
* If `true`, the user cannot interact with the input.
|
38
41
|
*/
|
39
42
|
disabled: boolean;
|
43
|
+
/**
|
44
|
+
* If `true`, the input primary color will use the contrast value, not the primary text value.
|
45
|
+
*/
|
46
|
+
contrastText: boolean;
|
40
47
|
/**
|
41
48
|
* A hint to the browser for which enter key to display.
|
42
49
|
* Possible values: `"enter"`, `"done"`, `"go"`, `"next"`,
|
@@ -47,6 +54,10 @@ export declare class CpslInput {
|
|
47
54
|
* Error text to show below the input. If this is provided the input will enter an error state.
|
48
55
|
*/
|
49
56
|
errorText?: string;
|
57
|
+
/**
|
58
|
+
* Mask string to apply to the input.
|
59
|
+
*/
|
60
|
+
mask?: string;
|
50
61
|
/**
|
51
62
|
* Helper text to show below the input. If `"errorText"` is provided that will take precedence.
|
52
63
|
*/
|
@@ -167,9 +178,8 @@ export declare class CpslInput {
|
|
167
178
|
*/
|
168
179
|
cpslPaste: EventEmitter<ClipboardEvent>;
|
169
180
|
handleDisable(): void;
|
170
|
-
|
171
|
-
|
172
|
-
*/
|
181
|
+
handleSetupMask(): void;
|
182
|
+
handleValueChange(): void;
|
173
183
|
componentDidLoad(): void;
|
174
184
|
private disableSlots;
|
175
185
|
private enableSlots;
|
@@ -65,11 +65,11 @@ export declare class CpslPopover {
|
|
65
65
|
/**
|
66
66
|
* Emitted when the popover opens.
|
67
67
|
*/
|
68
|
-
cpslOpen: EventEmitter
|
68
|
+
cpslOpen: EventEmitter<void>;
|
69
69
|
/**
|
70
70
|
* Emitted when the popover closes.
|
71
71
|
*/
|
72
|
-
cpslClose: EventEmitter
|
72
|
+
cpslClose: EventEmitter<void>;
|
73
73
|
/**
|
74
74
|
* Call to close the popover manually.
|
75
75
|
*/
|
@@ -3,10 +3,19 @@ export declare class CpslSelect {
|
|
3
3
|
el: HTMLCpslSelectElement;
|
4
4
|
private popoverEl;
|
5
5
|
private inputId;
|
6
|
-
anchorEl:
|
6
|
+
anchorEl: HTMLElement;
|
7
7
|
hasFocus: boolean;
|
8
8
|
popoverOpen: boolean;
|
9
9
|
hasSelectedItem: boolean;
|
10
|
+
/**
|
11
|
+
* ID of element to anchor popover to.
|
12
|
+
*/
|
13
|
+
anchorElId?: string;
|
14
|
+
/**
|
15
|
+
* If `true` the popover container will use the width of the content, else it will be set to the width of the trigger.
|
16
|
+
* Default is `false`
|
17
|
+
*/
|
18
|
+
autoWidth?: boolean;
|
10
19
|
/**
|
11
20
|
* If `true`, the user cannot interact with the input.
|
12
21
|
*/
|
@@ -55,6 +64,14 @@ export declare class CpslSelect {
|
|
55
64
|
* If `true`, the label will display an "optional" tag.
|
56
65
|
*/
|
57
66
|
showOptionalLabel: boolean;
|
67
|
+
/**
|
68
|
+
* If `true`, the dropdown will contain a search field.
|
69
|
+
*/
|
70
|
+
showSearch: boolean;
|
71
|
+
/**
|
72
|
+
* Placeholder for the search field.
|
73
|
+
*/
|
74
|
+
searchPlaceholder?: string;
|
58
75
|
/**
|
59
76
|
* Emitted when the input loses focus.
|
60
77
|
*/
|
@@ -67,6 +84,10 @@ export declare class CpslSelect {
|
|
67
84
|
* Emitted when the value changes.
|
68
85
|
*/
|
69
86
|
cpslSelectValueChange: EventEmitter<string>;
|
87
|
+
/**
|
88
|
+
* Emitted when the search value changes.
|
89
|
+
*/
|
90
|
+
cpslSearchChange: EventEmitter<string>;
|
70
91
|
onValueChange(): void;
|
71
92
|
handleValueChange(): void;
|
72
93
|
selectItemClickHandler(event: CustomEvent<string>): void;
|
@@ -4,7 +4,7 @@ export declare class CpslText {
|
|
4
4
|
* Options are: `"primary"`, `"secondary", `"tertiary", `"subtle", `"inverted", `"error".
|
5
5
|
* Default is: `"primary"`.
|
6
6
|
*/
|
7
|
-
color?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'inverted' | 'error';
|
7
|
+
color?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'inverted' | 'error' | 'contrast';
|
8
8
|
/**
|
9
9
|
* The variant of text.
|
10
10
|
* Options are: `"body2XS"`, `"bodyXS", `"bodyS", `"bodyM", `"bodyL", `"bodyXL", `"headingXS", `"headingS", `"headingM", `"headingL", `"headingXL", `"heading2XL".
|