@getpara/core-components 2.0.0-fc.2 → 2.0.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/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-f2393be6.js → p-05ec9ce7.js} +2 -2
- package/dist/capsule/{p-f2393be6.js.map → p-05ec9ce7.js.map} +1 -1
- package/dist/capsule/p-1e8a62c5.entry.js +2 -0
- package/dist/capsule/{p-75685be8.entry.js → p-380ece1c.entry.js} +2 -2
- package/dist/capsule/{p-de2a16e4.entry.js → p-77a9fdca.entry.js} +2 -2
- package/dist/capsule/{p-c9e61114.entry.js → p-822cb3ee.entry.js} +2 -2
- package/dist/capsule/{p-d4bdb369.entry.js → p-8da9205d.entry.js} +2 -2
- package/dist/capsule/{p-34a09932.entry.js → p-905a0742.entry.js} +2 -2
- package/dist/capsule/p-d34794ba.entry.js +28 -0
- package/dist/capsule/p-d34794ba.entry.js.map +1 -0
- package/dist/capsule/{p-5cd62456.entry.js → p-e63ae2dd.entry.js} +2 -2
- package/dist/capsule/{p-3719bb1e.entry.js → p-f9274763.entry.js} +2 -2
- package/dist/cjs/capsule.cjs.js +1 -1
- package/dist/cjs/{constants-9b1b01bb.js → constants-1de558ea.js} +3 -3
- package/dist/cjs/{constants-9b1b01bb.js.map → constants-1de558ea.js.map} +1 -1
- package/dist/cjs/cpsl-alert_34.cjs.entry.js +266 -84
- package/dist/cjs/cpsl-alert_34.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-col.cjs.entry.js +1 -1
- package/dist/cjs/cpsl-grid.cjs.entry.js +2 -2
- package/dist/cjs/cpsl-hero.cjs.entry.js +2 -2
- package/dist/cjs/cpsl-identicon.cjs.entry.js +1 -1
- package/dist/cjs/cpsl-info-box.cjs.entry.js +1 -1
- package/dist/cjs/cpsl-modal-v2.cjs.entry.js +1 -1
- package/dist/cjs/cpsl-nav-button.cjs.entry.js +1 -1
- package/dist/cjs/cpsl-row.cjs.entry.js +1 -1
- package/dist/cjs/index.cjs.js +6 -3
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/icons/arrow-circle-down.svg +3 -0
- package/dist/collection/assets/icons/arrow-up-down.svg +4 -0
- package/dist/collection/assets/icons/coins.svg +1 -0
- package/dist/collection/assets/icons/dots-square.svg +13 -0
- package/dist/collection/assets/icons/external-link.svg +3 -0
- package/dist/collection/assets/icons/index.js +20 -0
- package/dist/collection/assets/icons/index.js.map +1 -1
- package/dist/collection/assets/icons/para-arrow.svg +3 -0
- package/dist/collection/assets/icons/phantom.svg +8 -6
- package/dist/collection/assets/icons/shuffle.svg +3 -0
- package/dist/collection/assets/icons/user-01.svg +3 -0
- package/dist/collection/assets/icons/wallet-02.svg +3 -0
- package/dist/collection/assets/icons/zap.svg +3 -0
- package/dist/collection/components/cpsl-alert/cpsl-alert.css +14 -8
- package/dist/collection/components/cpsl-alert/cpsl-alert.js +1 -1
- package/dist/collection/components/cpsl-auth-modal/cpsl-auth-modal.css +4 -4
- package/dist/collection/components/cpsl-button/cpsl-button.js +21 -2
- package/dist/collection/components/cpsl-button/cpsl-button.js.map +1 -1
- package/dist/collection/components/cpsl-button-group/cpsl-button-group.js +1 -1
- package/dist/collection/components/cpsl-card/cpsl-card.js +1 -1
- package/dist/collection/components/cpsl-checkbox/cpsl-checkbox.js +1 -1
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +111 -22
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -1
- package/dist/collection/components/cpsl-col/cpsl-col.js +1 -1
- package/dist/collection/components/cpsl-divider/cpsl-divider.js +1 -1
- package/dist/collection/components/cpsl-drawer/cpsl-drawer.js +2 -2
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +1 -1
- package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js +1 -1
- package/dist/collection/components/cpsl-grid/cpsl-grid.js +2 -2
- package/dist/collection/components/cpsl-hero/cpsl-hero.js +2 -2
- package/dist/collection/components/cpsl-icon/cpsl-icon.css +16 -9
- package/dist/collection/components/cpsl-icon/cpsl-icon.js +75 -2
- package/dist/collection/components/cpsl-icon/cpsl-icon.js.map +1 -1
- package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.js +1 -1
- package/dist/collection/components/cpsl-identicon/cpsl-identicon.js +1 -1
- package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
- package/dist/collection/components/cpsl-input/cpsl-input.js +2 -2
- package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js +1 -1
- package/dist/collection/components/cpsl-nav-button/cpsl-nav-button.js +1 -1
- package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js +1 -1
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.css +1 -1
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +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.js +42 -15
- package/dist/collection/components/cpsl-popover/cpsl-popover.js.map +1 -1
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +2 -2
- 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 +5 -0
- package/dist/collection/components/cpsl-select/cpsl-select.js +23 -4
- package/dist/collection/components/cpsl-select/cpsl-select.js.map +1 -1
- package/dist/collection/components/cpsl-select-item/cpsl-select-item.css +0 -1
- package/dist/collection/components/cpsl-select-item/cpsl-select-item.js +7 -2
- 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-spinner/cpsl-spinner.js +2 -2
- package/dist/collection/components/cpsl-switch/cpsl-switch.js +1 -1
- package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
- package/dist/collection/components/cpsl-table/cpsl-table.js +1 -1
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +1 -1
- package/dist/collection/components/cpsl-text/cpsl-text.css +12 -0
- package/dist/collection/components/cpsl-text/cpsl-text.js +22 -1
- package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.css +10 -0
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +23 -2
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js.map +1 -1
- package/dist/collection/constants.js +2 -2
- package/dist/collection/constants.js.map +1 -1
- package/dist/collection/interface.js.map +1 -1
- package/dist/collection/utils/theme/generatePalette.js +3 -1
- package/dist/collection/utils/theme/generatePalette.js.map +1 -1
- package/dist/collection/utils/theme/generateTheme.js +2 -1
- package/dist/collection/utils/theme/generateTheme.js.map +1 -1
- package/dist/esm/capsule.js +1 -1
- package/dist/esm/{constants-fce138fa.js → constants-fefad927.js} +3 -3
- package/dist/esm/{constants-fce138fa.js.map → constants-fefad927.js.map} +1 -1
- package/dist/esm/cpsl-alert_34.entry.js +266 -84
- package/dist/esm/cpsl-alert_34.entry.js.map +1 -1
- package/dist/esm/cpsl-col.entry.js +1 -1
- package/dist/esm/cpsl-grid.entry.js +2 -2
- package/dist/esm/cpsl-hero.entry.js +2 -2
- package/dist/esm/cpsl-identicon.entry.js +1 -1
- package/dist/esm/cpsl-info-box.entry.js +1 -1
- package/dist/esm/cpsl-modal-v2.entry.js +1 -1
- package/dist/esm/cpsl-nav-button.entry.js +1 -1
- package/dist/esm/cpsl-row.entry.js +1 -1
- package/dist/esm/index.js +6 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/scripts/appendLoaderExports.js +3 -3
- package/dist/scripts/appendLoaderExports.js.map +1 -1
- package/dist/types/assets/icons/index.d.ts +10 -0
- package/dist/types/components/cpsl-button/cpsl-button.d.ts +5 -0
- package/dist/types/components/cpsl-code-input/cpsl-code-input.d.ts +2 -0
- package/dist/types/components/cpsl-icon/cpsl-icon.d.ts +16 -0
- package/dist/types/components/cpsl-popover/cpsl-popover.d.ts +5 -0
- package/dist/types/components/cpsl-select/cpsl-select.d.ts +6 -1
- package/dist/types/components/cpsl-text/cpsl-text.d.ts +6 -0
- package/dist/types/components/cpsl-tile-button/cpsl-tile-button.d.ts +5 -0
- package/dist/types/components.d.ts +74 -2
- package/dist/types/interface.d.ts +1 -0
- package/dist/types/utils/theme/generatePalette.d.ts +1 -1
- package/dist/types/utils/theme/generateTheme.d.ts +1 -1
- package/package.json +2 -2
- package/dist/capsule/p-834c1ee9.entry.js +0 -28
- package/dist/capsule/p-834c1ee9.entry.js.map +0 -1
- package/dist/capsule/p-e424993a.entry.js +0 -2
- /package/dist/capsule/{p-e424993a.entry.js.map → p-1e8a62c5.entry.js.map} +0 -0
- /package/dist/capsule/{p-75685be8.entry.js.map → p-380ece1c.entry.js.map} +0 -0
- /package/dist/capsule/{p-de2a16e4.entry.js.map → p-77a9fdca.entry.js.map} +0 -0
- /package/dist/capsule/{p-c9e61114.entry.js.map → p-822cb3ee.entry.js.map} +0 -0
- /package/dist/capsule/{p-d4bdb369.entry.js.map → p-8da9205d.entry.js.map} +0 -0
- /package/dist/capsule/{p-34a09932.entry.js.map → p-905a0742.entry.js.map} +0 -0
- /package/dist/capsule/{p-5cd62456.entry.js.map → p-e63ae2dd.entry.js.map} +0 -0
- /package/dist/capsule/{p-3719bb1e.entry.js.map → p-f9274763.entry.js.map} +0 -0
- /package/dist/types/Users/{keith/Documents/capsule → norwood/capsule-repos}/web-sdk/packages/core-components/.stencil/scripts/appendLoaderExports.d.ts +0 -0
- /package/dist/types/Users/{keith/Documents/capsule → norwood/capsule-repos}/web-sdk/packages/core-components/.stencil/scripts/buildAssets.d.ts +0 -0
|
@@ -9,7 +9,9 @@ export declare const Icons: {
|
|
|
9
9
|
arbitrumBrand: string;
|
|
10
10
|
arrowCircleBrokenDownLeft: string;
|
|
11
11
|
arrowCircleDownFilled: string;
|
|
12
|
+
arrowCircleDown: string;
|
|
12
13
|
arrowNarrow: string;
|
|
14
|
+
arrowUpDown: string;
|
|
13
15
|
arrow: string;
|
|
14
16
|
asterisk: string;
|
|
15
17
|
backpack: string;
|
|
@@ -33,6 +35,7 @@ export declare const Icons: {
|
|
|
33
35
|
clubhouse: string;
|
|
34
36
|
code: string;
|
|
35
37
|
coinbase: string;
|
|
38
|
+
coins: string;
|
|
36
39
|
copy07: string;
|
|
37
40
|
copy: string;
|
|
38
41
|
cosmosCircle: string;
|
|
@@ -50,6 +53,7 @@ export declare const Icons: {
|
|
|
50
53
|
discordBrand: string;
|
|
51
54
|
discord: string;
|
|
52
55
|
dot: string;
|
|
56
|
+
dotsSquare: string;
|
|
53
57
|
dots: string;
|
|
54
58
|
downloadCloud: string;
|
|
55
59
|
download: string;
|
|
@@ -60,6 +64,7 @@ export declare const Icons: {
|
|
|
60
64
|
emptyCircle: string;
|
|
61
65
|
ethCircle: string;
|
|
62
66
|
ethereum: string;
|
|
67
|
+
externalLink: string;
|
|
63
68
|
eyeOff: string;
|
|
64
69
|
eye: string;
|
|
65
70
|
facebookBrand: string;
|
|
@@ -119,6 +124,7 @@ export declare const Icons: {
|
|
|
119
124
|
nobleBrand: string;
|
|
120
125
|
okx: string;
|
|
121
126
|
optimismBrand: string;
|
|
127
|
+
paraArrow: string;
|
|
122
128
|
paraBlackBg: string;
|
|
123
129
|
paraBrand: string;
|
|
124
130
|
paraIconBrand: string;
|
|
@@ -154,6 +160,7 @@ export declare const Icons: {
|
|
|
154
160
|
settings: string;
|
|
155
161
|
share: string;
|
|
156
162
|
shield: string;
|
|
163
|
+
shuffle: string;
|
|
157
164
|
signalBrand: string;
|
|
158
165
|
signal: string;
|
|
159
166
|
sliders: string;
|
|
@@ -181,15 +188,18 @@ export declare const Icons: {
|
|
|
181
188
|
twitterBrand: string;
|
|
182
189
|
twitter: string;
|
|
183
190
|
usdcBrand: string;
|
|
191
|
+
user01: string;
|
|
184
192
|
userCircle: string;
|
|
185
193
|
userPlus: string;
|
|
186
194
|
user: string;
|
|
187
195
|
valora: string;
|
|
196
|
+
wallet02: string;
|
|
188
197
|
walletConnect: string;
|
|
189
198
|
wallet: string;
|
|
190
199
|
x: string;
|
|
191
200
|
youtubeBrand: string;
|
|
192
201
|
youtube: string;
|
|
202
|
+
zap: string;
|
|
193
203
|
zerion: string;
|
|
194
204
|
AD: string;
|
|
195
205
|
AE: string;
|
|
@@ -10,6 +10,11 @@ export declare class CpslButton {
|
|
|
10
10
|
* Default is: false.
|
|
11
11
|
*/
|
|
12
12
|
disabled?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* If the button is pending.
|
|
15
|
+
* Default is: false.
|
|
16
|
+
*/
|
|
17
|
+
pending?: boolean;
|
|
13
18
|
/**
|
|
14
19
|
* Whether the button takes the full width of it's container.
|
|
15
20
|
* Default is: false.
|
|
@@ -27,7 +27,9 @@ export declare class CpslCodeInput {
|
|
|
27
27
|
* The `cpslInput` event is fired each time the user modifies the input's value.
|
|
28
28
|
*/
|
|
29
29
|
cpslInput: EventEmitter<CodeChangeEventDetail>;
|
|
30
|
+
watchCodeProp(newCode: string): void;
|
|
30
31
|
private handleInput;
|
|
32
|
+
private isArrowNavigation;
|
|
31
33
|
private handleKeyDown;
|
|
32
34
|
private handleFocus;
|
|
33
35
|
private handlePaste;
|
|
@@ -20,5 +20,21 @@ export declare class CpslIcon {
|
|
|
20
20
|
* The name of the icon. If both `icon` and `src` are provided, `icon` will be used.
|
|
21
21
|
*/
|
|
22
22
|
icon?: IconType;
|
|
23
|
+
/**
|
|
24
|
+
* Whether the icon should be rounded.
|
|
25
|
+
*/
|
|
26
|
+
radius?: 'none' | 'theme' | 'full';
|
|
27
|
+
/**
|
|
28
|
+
* The background CSS property of the icon.
|
|
29
|
+
*/
|
|
30
|
+
background?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The color of the icon.
|
|
33
|
+
*/
|
|
34
|
+
color?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The border CSS property of the icon.
|
|
37
|
+
*/
|
|
38
|
+
border?: string;
|
|
23
39
|
render(): any;
|
|
24
40
|
}
|
|
@@ -50,6 +50,11 @@ export declare class CpslPopover {
|
|
|
50
50
|
* Default is: `"bottom"`.
|
|
51
51
|
*/
|
|
52
52
|
transformOriginVertical?: 'top' | 'center' | 'bottom';
|
|
53
|
+
/**
|
|
54
|
+
* If `true`, the popover will be aligned to the center of the trigger element.
|
|
55
|
+
* Default is `false`.
|
|
56
|
+
*/
|
|
57
|
+
alignCenter: boolean;
|
|
53
58
|
/**
|
|
54
59
|
* Which trigger causes the popover to open.
|
|
55
60
|
* Options are: `"click"`, `"hover"`.
|
|
@@ -17,6 +17,11 @@ export declare class CpslSelect {
|
|
|
17
17
|
* Default is `false`
|
|
18
18
|
*/
|
|
19
19
|
autoWidth?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* If `true`, the popover will be aligned to the center of the trigger element.
|
|
22
|
+
* Default is `false`.
|
|
23
|
+
*/
|
|
24
|
+
alignCenter: boolean;
|
|
20
25
|
/**
|
|
21
26
|
* If `true`, the user cannot interact with the input.
|
|
22
27
|
*/
|
|
@@ -45,7 +50,7 @@ export declare class CpslSelect {
|
|
|
45
50
|
* The name of the icon to use for the end icon.
|
|
46
51
|
* Default: `chevronUp`
|
|
47
52
|
*/
|
|
48
|
-
icon?: IconType;
|
|
53
|
+
icon?: IconType | null;
|
|
49
54
|
/**
|
|
50
55
|
* The label for the input.
|
|
51
56
|
*/
|
|
@@ -17,6 +17,12 @@ export declare class CpslText {
|
|
|
17
17
|
* Default is: `"regular"`.
|
|
18
18
|
*/
|
|
19
19
|
weight?: 'regular' | 'medium' | 'semiBold' | 'bold';
|
|
20
|
+
/**
|
|
21
|
+
* The text-align CSS property to apply.
|
|
22
|
+
* Options are: `"left"`, `"center", `"right".
|
|
23
|
+
* Default is: `"left"`.
|
|
24
|
+
*/
|
|
25
|
+
align?: 'left' | 'center' | 'right';
|
|
20
26
|
private getContent;
|
|
21
27
|
render(): any;
|
|
22
28
|
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { IconType } from '../../interface.js';
|
|
2
2
|
export declare class CpslTileButton {
|
|
3
|
+
/**
|
|
4
|
+
* If the button is disabled.
|
|
5
|
+
* Default is: false.
|
|
6
|
+
*/
|
|
7
|
+
disabled?: boolean;
|
|
3
8
|
/**
|
|
4
9
|
* The external source of the icon. If both `icon` and `src` are provided, `icon` will be used.
|
|
5
10
|
*/
|
|
@@ -107,6 +107,10 @@ export namespace Components {
|
|
|
107
107
|
* href to use when using a link.
|
|
108
108
|
*/
|
|
109
109
|
"href"?: string;
|
|
110
|
+
/**
|
|
111
|
+
* If the button is pending. Default is: false.
|
|
112
|
+
*/
|
|
113
|
+
"pending"?: boolean;
|
|
110
114
|
/**
|
|
111
115
|
* The size of the button. Options are: `"small"`, `"medium". Default is: `"medium"`.
|
|
112
116
|
*/
|
|
@@ -388,6 +392,18 @@ export namespace Components {
|
|
|
388
392
|
"withDefaultTheme"?: boolean;
|
|
389
393
|
}
|
|
390
394
|
interface CpslIcon {
|
|
395
|
+
/**
|
|
396
|
+
* The background CSS property of the icon.
|
|
397
|
+
*/
|
|
398
|
+
"background"?: string;
|
|
399
|
+
/**
|
|
400
|
+
* The border CSS property of the icon.
|
|
401
|
+
*/
|
|
402
|
+
"border"?: string;
|
|
403
|
+
/**
|
|
404
|
+
* The color of the icon.
|
|
405
|
+
*/
|
|
406
|
+
"color"?: string;
|
|
391
407
|
/**
|
|
392
408
|
* The name of the icon. If both `icon` and `src` are provided, `icon` will be used.
|
|
393
409
|
*/
|
|
@@ -400,6 +416,10 @@ export namespace Components {
|
|
|
400
416
|
* Whether to invert the icon's colors.
|
|
401
417
|
*/
|
|
402
418
|
"invert"?: boolean;
|
|
419
|
+
/**
|
|
420
|
+
* Whether the icon should be rounded.
|
|
421
|
+
*/
|
|
422
|
+
"radius"?: 'none' | 'theme' | 'full';
|
|
403
423
|
/**
|
|
404
424
|
* The CSS size of the icon.
|
|
405
425
|
*/
|
|
@@ -669,6 +689,10 @@ export namespace Components {
|
|
|
669
689
|
"text": string;
|
|
670
690
|
}
|
|
671
691
|
interface CpslPopover {
|
|
692
|
+
/**
|
|
693
|
+
* If `true`, the popover will be aligned to the center of the trigger element. Default is `false`.
|
|
694
|
+
*/
|
|
695
|
+
"alignCenter": boolean;
|
|
672
696
|
/**
|
|
673
697
|
* ID for the element that the popover anchors to.
|
|
674
698
|
*/
|
|
@@ -759,6 +783,10 @@ export namespace Components {
|
|
|
759
783
|
"justify"?: React.CSSProperties['justifyContent'];
|
|
760
784
|
}
|
|
761
785
|
interface CpslSelect {
|
|
786
|
+
/**
|
|
787
|
+
* If `true`, the popover will be aligned to the center of the trigger element. Default is `false`.
|
|
788
|
+
*/
|
|
789
|
+
"alignCenter": boolean;
|
|
762
790
|
/**
|
|
763
791
|
* ID of element to anchor popover to.
|
|
764
792
|
*/
|
|
@@ -790,7 +818,7 @@ export namespace Components {
|
|
|
790
818
|
/**
|
|
791
819
|
* The name of the icon to use for the end icon. Default: `chevronUp`
|
|
792
820
|
*/
|
|
793
|
-
"icon"?: IconType;
|
|
821
|
+
"icon"?: IconType | null;
|
|
794
822
|
/**
|
|
795
823
|
* ID of the element, must be unique for the popover trigger.
|
|
796
824
|
*/
|
|
@@ -927,6 +955,10 @@ export namespace Components {
|
|
|
927
955
|
"selectedTab"?: string;
|
|
928
956
|
}
|
|
929
957
|
interface CpslText {
|
|
958
|
+
/**
|
|
959
|
+
* The text-align CSS property to apply. Options are: `"left"`, `"center", `"right". Default is: `"left"`.
|
|
960
|
+
*/
|
|
961
|
+
"align"?: 'left' | 'center' | 'right';
|
|
930
962
|
/**
|
|
931
963
|
* The color of text. Options are: `"primary"`, `"secondary", `"tertiary", `"subtle", `"inverted", `"error". Default is: `"primary"`.
|
|
932
964
|
*/
|
|
@@ -941,6 +973,10 @@ export namespace Components {
|
|
|
941
973
|
"weight"?: 'regular' | 'medium' | 'semiBold' | 'bold';
|
|
942
974
|
}
|
|
943
975
|
interface CpslTileButton {
|
|
976
|
+
/**
|
|
977
|
+
* If the button is disabled. Default is: false.
|
|
978
|
+
*/
|
|
979
|
+
"disabled"?: boolean;
|
|
944
980
|
/**
|
|
945
981
|
* The name of the icon. If both `icon` and `src` are provided, `icon` will be used.
|
|
946
982
|
*/
|
|
@@ -1636,6 +1672,10 @@ declare namespace LocalJSX {
|
|
|
1636
1672
|
* href to use when using a link.
|
|
1637
1673
|
*/
|
|
1638
1674
|
"href"?: string;
|
|
1675
|
+
/**
|
|
1676
|
+
* If the button is pending. Default is: false.
|
|
1677
|
+
*/
|
|
1678
|
+
"pending"?: boolean;
|
|
1639
1679
|
/**
|
|
1640
1680
|
* The size of the button. Options are: `"small"`, `"medium". Default is: `"medium"`.
|
|
1641
1681
|
*/
|
|
@@ -1949,6 +1989,18 @@ declare namespace LocalJSX {
|
|
|
1949
1989
|
"withDefaultTheme"?: boolean;
|
|
1950
1990
|
}
|
|
1951
1991
|
interface CpslIcon {
|
|
1992
|
+
/**
|
|
1993
|
+
* The background CSS property of the icon.
|
|
1994
|
+
*/
|
|
1995
|
+
"background"?: string;
|
|
1996
|
+
/**
|
|
1997
|
+
* The border CSS property of the icon.
|
|
1998
|
+
*/
|
|
1999
|
+
"border"?: string;
|
|
2000
|
+
/**
|
|
2001
|
+
* The color of the icon.
|
|
2002
|
+
*/
|
|
2003
|
+
"color"?: string;
|
|
1952
2004
|
/**
|
|
1953
2005
|
* The name of the icon. If both `icon` and `src` are provided, `icon` will be used.
|
|
1954
2006
|
*/
|
|
@@ -1961,6 +2013,10 @@ declare namespace LocalJSX {
|
|
|
1961
2013
|
* Whether to invert the icon's colors.
|
|
1962
2014
|
*/
|
|
1963
2015
|
"invert"?: boolean;
|
|
2016
|
+
/**
|
|
2017
|
+
* Whether the icon should be rounded.
|
|
2018
|
+
*/
|
|
2019
|
+
"radius"?: 'none' | 'theme' | 'full';
|
|
1964
2020
|
/**
|
|
1965
2021
|
* The CSS size of the icon.
|
|
1966
2022
|
*/
|
|
@@ -2278,6 +2334,10 @@ declare namespace LocalJSX {
|
|
|
2278
2334
|
"text"?: string;
|
|
2279
2335
|
}
|
|
2280
2336
|
interface CpslPopover {
|
|
2337
|
+
/**
|
|
2338
|
+
* If `true`, the popover will be aligned to the center of the trigger element. Default is `false`.
|
|
2339
|
+
*/
|
|
2340
|
+
"alignCenter"?: boolean;
|
|
2281
2341
|
/**
|
|
2282
2342
|
* ID for the element that the popover anchors to.
|
|
2283
2343
|
*/
|
|
@@ -2376,6 +2436,10 @@ declare namespace LocalJSX {
|
|
|
2376
2436
|
"justify"?: React.CSSProperties['justifyContent'];
|
|
2377
2437
|
}
|
|
2378
2438
|
interface CpslSelect {
|
|
2439
|
+
/**
|
|
2440
|
+
* If `true`, the popover will be aligned to the center of the trigger element. Default is `false`.
|
|
2441
|
+
*/
|
|
2442
|
+
"alignCenter"?: boolean;
|
|
2379
2443
|
/**
|
|
2380
2444
|
* ID of element to anchor popover to.
|
|
2381
2445
|
*/
|
|
@@ -2407,7 +2471,7 @@ declare namespace LocalJSX {
|
|
|
2407
2471
|
/**
|
|
2408
2472
|
* The name of the icon to use for the end icon. Default: `chevronUp`
|
|
2409
2473
|
*/
|
|
2410
|
-
"icon"?: IconType;
|
|
2474
|
+
"icon"?: IconType | null;
|
|
2411
2475
|
/**
|
|
2412
2476
|
* ID of the element, must be unique for the popover trigger.
|
|
2413
2477
|
*/
|
|
@@ -2572,6 +2636,10 @@ declare namespace LocalJSX {
|
|
|
2572
2636
|
"selectedTab"?: string;
|
|
2573
2637
|
}
|
|
2574
2638
|
interface CpslText {
|
|
2639
|
+
/**
|
|
2640
|
+
* The text-align CSS property to apply. Options are: `"left"`, `"center", `"right". Default is: `"left"`.
|
|
2641
|
+
*/
|
|
2642
|
+
"align"?: 'left' | 'center' | 'right';
|
|
2575
2643
|
/**
|
|
2576
2644
|
* The color of text. Options are: `"primary"`, `"secondary", `"tertiary", `"subtle", `"inverted", `"error". Default is: `"primary"`.
|
|
2577
2645
|
*/
|
|
@@ -2586,6 +2654,10 @@ declare namespace LocalJSX {
|
|
|
2586
2654
|
"weight"?: 'regular' | 'medium' | 'semiBold' | 'bold';
|
|
2587
2655
|
}
|
|
2588
2656
|
interface CpslTileButton {
|
|
2657
|
+
/**
|
|
2658
|
+
* If the button is disabled. Default is: false.
|
|
2659
|
+
*/
|
|
2660
|
+
"disabled"?: boolean;
|
|
2589
2661
|
/**
|
|
2590
2662
|
* The name of the icon. If both `icon` and `src` are provided, `icon` will be used.
|
|
2591
2663
|
*/
|
|
@@ -4,6 +4,6 @@ export type Palette = {
|
|
|
4
4
|
backgroundColors: string[];
|
|
5
5
|
accentColors: string[];
|
|
6
6
|
};
|
|
7
|
-
export declare const generatePalette: ({ foregroundColor, backgroundColor, accentColor, isDarkTheme, customPalette, }: Pick<Theme, 'foregroundColor' | 'backgroundColor' | 'accentColor' | 'customPalette'> & {
|
|
7
|
+
export declare const generatePalette: ({ foregroundColor, backgroundColor, accentColor, isDarkTheme, customPalette, overlayBackground, }: Pick<Theme, 'foregroundColor' | 'backgroundColor' | 'accentColor' | 'customPalette' | 'overlayBackground'> & {
|
|
8
8
|
isDarkTheme: boolean;
|
|
9
9
|
}) => void;
|
|
@@ -3,4 +3,4 @@ import { Theme } from '../../interface.js';
|
|
|
3
3
|
* Generates css theme variables.
|
|
4
4
|
* @returns @boolean Whether background is dark or not.
|
|
5
5
|
*/
|
|
6
|
-
export declare const generateTheme: ({ foregroundColor, backgroundColor, accentColor, darkForegroundColor, darkBackgroundColor, darkAccentColor, mode, font, customPalette, borderRadius, customFontSizes, customBorderRadii, }: Theme) => void;
|
|
6
|
+
export declare const generateTheme: ({ foregroundColor, backgroundColor, accentColor, darkForegroundColor, darkBackgroundColor, darkAccentColor, mode, font, customPalette, borderRadius, customFontSizes, customBorderRadii, overlayBackground, }: Theme) => void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/core-components",
|
|
3
3
|
"description": "Capsule Core Components",
|
|
4
|
-
"version": "2.0.0
|
|
4
|
+
"version": "2.0.0",
|
|
5
5
|
"collection": "dist/collection/collection-manifest.json",
|
|
6
6
|
"collection:main": "dist/collection/index.js",
|
|
7
7
|
"dependencies": {
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
],
|
|
69
69
|
"type": "module",
|
|
70
70
|
"types": "dist/types/index.d.ts",
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "a64b6aa9b3c481a2d955022f621e495fb55e549e"
|
|
72
72
|
}
|