@usecapsule/core-components 3.3.0-dev.0 → 3.3.0-dev.2
Sign up to get free protection for your applications and to get access to all the features.
- package/css/capsule-core.css +10 -25
- 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-0462f723.js +2 -0
- package/dist/capsule/p-0462f723.js.map +1 -0
- package/dist/capsule/p-05cb769b.entry.js +10 -0
- package/dist/capsule/{p-0e558c7f.entry.js.map → p-05cb769b.entry.js.map} +1 -1
- package/dist/capsule/p-0eea90f8.entry.js +2 -0
- package/dist/capsule/p-4203888d.entry.js +29 -0
- package/dist/capsule/p-4203888d.entry.js.map +1 -0
- package/dist/capsule/{p-1bd11889.entry.js → p-69c3c53b.entry.js} +2 -2
- package/dist/capsule/{p-1bd11889.entry.js.map → p-69c3c53b.entry.js.map} +1 -1
- package/dist/capsule/{p-5d62e610.entry.js → p-742bda0b.entry.js} +2 -2
- package/dist/capsule/p-c1aa1ffb.entry.js +2 -0
- package/dist/capsule/{p-5965b15e.entry.js.map → p-c1aa1ffb.entry.js.map} +1 -1
- package/dist/capsule/p-d351f076.entry.js +2 -0
- package/dist/capsule/p-d351f076.entry.js.map +1 -0
- package/dist/cjs/_commonjsHelpers-b3309d7b.js +12 -0
- package/dist/cjs/_commonjsHelpers-b3309d7b.js.map +1 -0
- package/dist/cjs/capsule.cjs.js +1 -1
- package/dist/cjs/{cpsl-alert_34.cjs.entry.js → cpsl-alert_33.cjs.entry.js} +13368 -16935
- package/dist/cjs/cpsl-alert_33.cjs.entry.js.map +1 -0
- package/dist/cjs/cpsl-animation.cjs.entry.js +2 -3
- package/dist/cjs/cpsl-animation.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-hero.cjs.entry.js +6 -9
- 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 +12 -35
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/icons/index.js +1 -21
- package/dist/collection/assets/icons/index.js.map +1 -1
- package/dist/collection/assets/icons/refresh.svg +3 -3
- package/dist/collection/collection-manifest.json +1 -2
- package/dist/collection/components/cpsl-alert/cpsl-alert.js +2 -2
- package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -1
- package/dist/collection/components/cpsl-button/cpsl-button.css +2 -89
- package/dist/collection/components/cpsl-button/cpsl-button.js +5 -6
- 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-card/cpsl-card.css +2 -5
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.css +0 -3
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +7 -11
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -1
- package/dist/collection/components/cpsl-divider/cpsl-divider.css +1 -2
- package/dist/collection/components/cpsl-drawer/cpsl-drawer.js +1 -1
- 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 +6 -1
- package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js.map +1 -1
- package/dist/collection/components/cpsl-hero/cpsl-hero.css +71 -136
- package/dist/collection/components/cpsl-hero/cpsl-hero.js +9 -63
- package/dist/collection/components/cpsl-hero/cpsl-hero.js.map +1 -1
- package/dist/collection/components/cpsl-icon/cpsl-icon.css +0 -8
- package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
- package/dist/collection/components/cpsl-identicon/cpsl-identicon.js +1 -1
- package/dist/collection/components/cpsl-info-box/cpsl-info-box.css +2 -1
- package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
- package/dist/collection/components/cpsl-input/cpsl-input.css +2 -21
- package/dist/collection/components/cpsl-input/cpsl-input.js +28 -100
- package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -1
- package/dist/collection/components/{cpsl-auth-modal/cpsl-auth-modal.css → cpsl-modal/cpsl-modal.css} +58 -33
- package/dist/collection/components/{cpsl-auth-modal/cpsl-auth-modal.js → cpsl-modal/cpsl-modal.js} +129 -11
- package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +1 -0
- 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 +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.css +0 -2
- package/dist/collection/components/cpsl-popover/cpsl-popover.js +11 -9
- package/dist/collection/components/cpsl-popover/cpsl-popover.js.map +1 -1
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.css +3 -12
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +23 -28
- 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 +0 -17
- package/dist/collection/components/cpsl-select/cpsl-select.js +5 -95
- 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 +8 -30
- package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +7 -5
- 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 +1 -24
- 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 +9 -1
- package/dist/collection/components/cpsl-table/cpsl-table.js.map +1 -1
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.css +4 -1
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +4 -1
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.js.map +1 -1
- package/dist/collection/components/cpsl-text/cpsl-text.css +0 -19
- package/dist/collection/components/cpsl-text/cpsl-text.js +4 -5
- package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.css +1 -3
- 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 +3 -4
- package/dist/collection/utils/theme/generateBorderRadii.js.map +1 -1
- package/dist/collection/utils/theme/generatePalette.js +6 -22
- package/dist/collection/utils/theme/generatePalette.js.map +1 -1
- package/dist/collection/utils/theme/generateTheme.js +3 -9
- package/dist/collection/utils/theme/generateTheme.js.map +1 -1
- package/dist/collection/utils/theme/utils.js.map +1 -1
- package/dist/esm/_commonjsHelpers-1789f0cf.js +9 -0
- package/dist/esm/_commonjsHelpers-1789f0cf.js.map +1 -0
- package/dist/esm/capsule.js +1 -1
- package/dist/esm/{cpsl-alert_34.entry.js → cpsl-alert_33.entry.js} +13370 -16936
- package/dist/esm/cpsl-alert_33.entry.js.map +1 -0
- package/dist/esm/cpsl-animation.entry.js +1 -2
- package/dist/esm/cpsl-animation.entry.js.map +1 -1
- package/dist/esm/cpsl-hero.entry.js +7 -10
- 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 +12 -35
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/assets/icons/index.d.ts +0 -20
- package/dist/types/components/cpsl-button/cpsl-button.d.ts +2 -2
- package/dist/types/components/cpsl-hero/cpsl-hero.d.ts +3 -18
- package/dist/types/components/cpsl-input/cpsl-input.d.ts +3 -13
- package/dist/types/components/{cpsl-auth-modal/cpsl-auth-modal.d.ts → cpsl-modal/cpsl-modal.d.ts} +23 -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 +0 -1
- package/dist/types/components/cpsl-select/cpsl-select.d.ts +1 -22
- package/dist/types/components/cpsl-text/cpsl-text.d.ts +1 -1
- package/dist/types/components.d.ts +146 -222
- package/dist/types/interface.d.ts +0 -13
- package/dist/types/utils/theme/generateBorderRadii.d.ts +1 -1
- package/dist/types/utils/theme/generatePalette.d.ts +2 -4
- package/dist/types/utils/theme/generateTheme.d.ts +1 -1
- package/package.json +2 -3
- package/dist/capsule/p-0e558c7f.entry.js +0 -10
- package/dist/capsule/p-32cdf894.entry.js +0 -2
- package/dist/capsule/p-32cdf894.entry.js.map +0 -1
- package/dist/capsule/p-3b042fd1.entry.js +0 -2
- package/dist/capsule/p-5965b15e.entry.js +0 -2
- package/dist/capsule/p-60508b1e.entry.js +0 -20
- package/dist/capsule/p-60508b1e.entry.js.map +0 -1
- package/dist/cjs/cpsl-alert_34.cjs.entry.js.map +0 -1
- package/dist/collection/assets/icons/arrow-circle-broken-down-left.svg +0 -3
- package/dist/collection/assets/icons/bank.svg +0 -3
- package/dist/collection/assets/icons/credit-card.svg +0 -3
- package/dist/collection/assets/icons/dot.svg +0 -3
- package/dist/collection/assets/icons/download.svg +0 -3
- package/dist/collection/assets/icons/globe.svg +0 -3
- package/dist/collection/assets/icons/hero-alert-circle.svg +0 -3
- package/dist/collection/assets/icons/hero-checkmark-capsule.svg +0 -11
- package/dist/collection/assets/icons/hero-checkmark.svg +0 -3
- package/dist/collection/assets/icons/hero-external-connection.svg +0 -71
- package/dist/collection/assets/icons/link-external.svg +0 -3
- package/dist/collection/assets/icons/log-out.svg +0 -3
- package/dist/collection/assets/icons/moonpay-brand.svg +0 -10
- package/dist/collection/assets/icons/puzzle-piece.svg +0 -3
- package/dist/collection/assets/icons/qr-code-02.svg +0 -3
- package/dist/collection/assets/icons/qr-code.svg +0 -3
- package/dist/collection/assets/icons/search.svg +0 -3
- package/dist/collection/assets/icons/send.svg +0 -3
- package/dist/collection/assets/icons/shield.svg +0 -3
- package/dist/collection/assets/icons/stripe-brand.svg +0 -3
- package/dist/collection/components/cpsl-auth-modal/cpsl-auth-modal.js.map +0 -1
- package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.css +0 -97
- package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.js +0 -121
- package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.js.map +0 -1
- package/dist/esm/cpsl-alert_34.entry.js.map +0 -1
- package/dist/types/components/cpsl-icon-group/cpsl-icon-group.d.ts +0 -20
- /package/dist/capsule/{p-3b042fd1.entry.js.map → p-0eea90f8.entry.js.map} +0 -0
- /package/dist/capsule/{p-5d62e610.entry.js.map → p-742bda0b.entry.js.map} +0 -0
@@ -52,28 +52,6 @@ export namespace Components {
|
|
52
52
|
*/
|
53
53
|
"zIndexOverride"?: number;
|
54
54
|
}
|
55
|
-
interface CpslAuthModal {
|
56
|
-
/**
|
57
|
-
* Duration in seconds of the modal entering. Default is .15.
|
58
|
-
*/
|
59
|
-
"enterTransitionDuration"?: number;
|
60
|
-
/**
|
61
|
-
* Duration in seconds of the modal exiting. Default is .15.
|
62
|
-
*/
|
63
|
-
"exitTransitionDuration"?: number;
|
64
|
-
/**
|
65
|
-
* Whether or not to show the overlay. This will always show the modal, regardless of the value of `open`.
|
66
|
-
*/
|
67
|
-
"noOverlay"?: boolean;
|
68
|
-
/**
|
69
|
-
* Whether or not to show the modal.
|
70
|
-
*/
|
71
|
-
"open": boolean;
|
72
|
-
/**
|
73
|
-
* Override z-index.
|
74
|
-
*/
|
75
|
-
"zIndexOverride"?: number;
|
76
|
-
}
|
77
55
|
interface CpslAvatar {
|
78
56
|
/**
|
79
57
|
* The alternate text for the avatar image.
|
@@ -114,9 +92,9 @@ export namespace Components {
|
|
114
92
|
*/
|
115
93
|
"target"?: string;
|
116
94
|
/**
|
117
|
-
* The variant of the button. Options are: `"primary"`, `"secondary", `"
|
95
|
+
* The variant of the button. Options are: `"primary"`, `"secondary", `"icon", `"text"`. Default is: `"primary"`.
|
118
96
|
*/
|
119
|
-
"variant"?: 'primary' | 'secondary' | '
|
97
|
+
"variant"?: 'primary' | 'secondary' | 'ghost' | 'destructive';
|
120
98
|
}
|
121
99
|
interface CpslButtonGroup {
|
122
100
|
/**
|
@@ -355,24 +333,12 @@ export namespace Components {
|
|
355
333
|
"fixed": boolean;
|
356
334
|
}
|
357
335
|
interface CpslHero {
|
358
|
-
/**
|
359
|
-
* The height of the container. Default is: 180.
|
360
|
-
*/
|
361
|
-
"height"?: number;
|
362
|
-
/**
|
363
|
-
* Hides the fade out components Default is: `false`.
|
364
|
-
*/
|
365
|
-
"hideFadeOut"?: boolean;
|
366
336
|
"subtitle"?: string;
|
367
337
|
"title": string;
|
368
338
|
/**
|
369
|
-
* The variant of the button. Options are: `"
|
370
|
-
*/
|
371
|
-
"variant"?: 'customContent' | 'connection' | 'externalWalletConnection' | 'pending' | 'approved' | 'failed';
|
372
|
-
/**
|
373
|
-
* Whether to use the Capsule custom theming or use the provided theme Default is: `false`.
|
339
|
+
* The variant of the button. Options are: `"default"`, `"loading", `"success". Default is: `"default"`.
|
374
340
|
*/
|
375
|
-
"
|
341
|
+
"variant"?: 'connection' | 'pending' | 'approved' | 'failed';
|
376
342
|
}
|
377
343
|
interface CpslIcon {
|
378
344
|
/**
|
@@ -384,20 +350,6 @@ export namespace Components {
|
|
384
350
|
*/
|
385
351
|
"src"?: string;
|
386
352
|
}
|
387
|
-
interface CpslIconGroup {
|
388
|
-
/**
|
389
|
-
* If `true`, the user cannot interact with the input.
|
390
|
-
*/
|
391
|
-
"disabled": boolean;
|
392
|
-
/**
|
393
|
-
* The direction the icons should expand from
|
394
|
-
*/
|
395
|
-
"expandFrom": 'left' | 'right';
|
396
|
-
/**
|
397
|
-
* The name of the icons to display.
|
398
|
-
*/
|
399
|
-
"icons": (IconType | string)[];
|
400
|
-
}
|
401
353
|
interface CpslIdenticon {
|
402
354
|
"hash": string;
|
403
355
|
/**
|
@@ -424,10 +376,6 @@ export namespace Components {
|
|
424
376
|
* Sets the [`autofocus` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus) on the native input element. This may not be sufficient for the element to be focused on page load.
|
425
377
|
*/
|
426
378
|
"autofocus": boolean;
|
427
|
-
/**
|
428
|
-
* If `true`, the input primary color will use the contrast value, not the primary text value.
|
429
|
-
*/
|
430
|
-
"contrastText": boolean;
|
431
379
|
/**
|
432
380
|
* If `true`, the user cannot interact with the input.
|
433
381
|
*/
|
@@ -452,10 +400,6 @@ export namespace Components {
|
|
452
400
|
* The label for the input.
|
453
401
|
*/
|
454
402
|
"label"?: string;
|
455
|
-
/**
|
456
|
-
* Mask string to apply to the input.
|
457
|
-
*/
|
458
|
-
"mask"?: string;
|
459
403
|
/**
|
460
404
|
* The maximum value, which must not be less than its minimum (min attribute) value.
|
461
405
|
*/
|
@@ -529,6 +473,36 @@ export namespace Components {
|
|
529
473
|
*/
|
530
474
|
"value"?: string;
|
531
475
|
}
|
476
|
+
interface CpslModal {
|
477
|
+
/**
|
478
|
+
* Duration in seconds of the modal entering. Default is .15.
|
479
|
+
*/
|
480
|
+
"enterTransitionDuration"?: number;
|
481
|
+
/**
|
482
|
+
* Duration in seconds of the modal exiting. Default is .15.
|
483
|
+
*/
|
484
|
+
"exitTransitionDuration"?: number;
|
485
|
+
/**
|
486
|
+
* Whether or not to show `footerExpandedFooter` and `footerExpandedHeader` slots.
|
487
|
+
*/
|
488
|
+
"footerExpanded"?: boolean;
|
489
|
+
/**
|
490
|
+
* Duration in seconds of the footer expansion animation. Default is 0.15.
|
491
|
+
*/
|
492
|
+
"footerTransitionDuration"?: number;
|
493
|
+
/**
|
494
|
+
* Whether or not to show the overlay. This will always show the modal, regardless of the value of `open`.
|
495
|
+
*/
|
496
|
+
"noOverlay"?: boolean;
|
497
|
+
/**
|
498
|
+
* Whether or not to show the modal.
|
499
|
+
*/
|
500
|
+
"open": boolean;
|
501
|
+
/**
|
502
|
+
* Override z-index.
|
503
|
+
*/
|
504
|
+
"zIndexOverride"?: number;
|
505
|
+
}
|
532
506
|
interface CpslModalV2 {
|
533
507
|
/**
|
534
508
|
* Whether or not to show the modal with a box shadow.
|
@@ -682,14 +656,6 @@ export namespace Components {
|
|
682
656
|
interface CpslRow {
|
683
657
|
}
|
684
658
|
interface CpslSelect {
|
685
|
-
/**
|
686
|
-
* ID of element to anchor popover to.
|
687
|
-
*/
|
688
|
-
"anchorElId"?: string;
|
689
|
-
/**
|
690
|
-
* If `true` the popover container will use the width of the content, else it will be set to the width of the trigger. Default is `false`
|
691
|
-
*/
|
692
|
-
"autoWidth"?: boolean;
|
693
659
|
/**
|
694
660
|
* If `true`, the user cannot interact with the input.
|
695
661
|
*/
|
@@ -726,10 +692,6 @@ export namespace Components {
|
|
726
692
|
* If `true`, the user must fill in a value before submitting a form.
|
727
693
|
*/
|
728
694
|
"required": boolean;
|
729
|
-
/**
|
730
|
-
* Placeholder for the search field.
|
731
|
-
*/
|
732
|
-
"searchPlaceholder"?: string;
|
733
695
|
/**
|
734
696
|
* Value of the selected item.
|
735
697
|
*/
|
@@ -742,10 +704,6 @@ export namespace Components {
|
|
742
704
|
* If `true`, the label will display an "optional" tag.
|
743
705
|
*/
|
744
706
|
"showOptionalLabel": boolean;
|
745
|
-
/**
|
746
|
-
* If `true`, the dropdown will contain a search field.
|
747
|
-
*/
|
748
|
-
"showSearch": boolean;
|
749
707
|
}
|
750
708
|
interface CpslSelectItem {
|
751
709
|
/**
|
@@ -821,11 +779,22 @@ export namespace Components {
|
|
821
779
|
/**
|
822
780
|
* The color of text. Options are: `"primary"`, `"secondary", `"tertiary", `"subtle", `"inverted", `"error". Default is: `"primary"`.
|
823
781
|
*/
|
824
|
-
"color"?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'inverted' | 'error'
|
782
|
+
"color"?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'inverted' | 'error';
|
825
783
|
/**
|
826
784
|
* The variant of text. Options are: `"body2XS"`, `"bodyXS", `"bodyS", `"bodyM", `"bodyL", `"bodyXL", `"headingXS", `"headingS", `"headingM", `"headingL", `"headingXL", `"heading2XL". Default is: `"bodyM"`.
|
827
785
|
*/
|
828
|
-
"variant"?:
|
786
|
+
"variant"?: | 'body2XS'
|
787
|
+
| 'bodyXS'
|
788
|
+
| 'bodyS'
|
789
|
+
| 'bodyM'
|
790
|
+
| 'bodyL'
|
791
|
+
| 'bodyXL'
|
792
|
+
| 'headingXS'
|
793
|
+
| 'headingS'
|
794
|
+
| 'headingM'
|
795
|
+
| 'headingL'
|
796
|
+
| 'headingXL'
|
797
|
+
| 'heading2XL';
|
829
798
|
/**
|
830
799
|
* The weight of text. Options are: `"regular"`, `"medium", `"semiBold", `"bold". Default is: `"regular"`.
|
831
800
|
*/
|
@@ -842,10 +811,6 @@ export namespace Components {
|
|
842
811
|
"src"?: string;
|
843
812
|
}
|
844
813
|
}
|
845
|
-
export interface CpslAuthModalCustomEvent<T> extends CustomEvent<T> {
|
846
|
-
detail: T;
|
847
|
-
target: HTMLCpslAuthModalElement;
|
848
|
-
}
|
849
814
|
export interface CpslCheckboxCustomEvent<T> extends CustomEvent<T> {
|
850
815
|
detail: T;
|
851
816
|
target: HTMLCpslCheckboxElement;
|
@@ -866,6 +831,10 @@ export interface CpslInputCustomEvent<T> extends CustomEvent<T> {
|
|
866
831
|
detail: T;
|
867
832
|
target: HTMLCpslInputElement;
|
868
833
|
}
|
834
|
+
export interface CpslModalCustomEvent<T> extends CustomEvent<T> {
|
835
|
+
detail: T;
|
836
|
+
target: HTMLCpslModalElement;
|
837
|
+
}
|
869
838
|
export interface CpslModalV2CustomEvent<T> extends CustomEvent<T> {
|
870
839
|
detail: T;
|
871
840
|
target: HTMLCpslModalV2Element;
|
@@ -925,27 +894,6 @@ declare global {
|
|
925
894
|
prototype: HTMLCpslAppBarElement;
|
926
895
|
new (): HTMLCpslAppBarElement;
|
927
896
|
};
|
928
|
-
interface HTMLCpslAuthModalElementEventMap {
|
929
|
-
"cpslModalEntering": null;
|
930
|
-
"cpslModalEntered": null;
|
931
|
-
"cpslModalExiting": null;
|
932
|
-
"cpslModalExited": null;
|
933
|
-
"cpslModalRequestClose": null;
|
934
|
-
}
|
935
|
-
interface HTMLCpslAuthModalElement extends Components.CpslAuthModal, HTMLStencilElement {
|
936
|
-
addEventListener<K extends keyof HTMLCpslAuthModalElementEventMap>(type: K, listener: (this: HTMLCpslAuthModalElement, ev: CpslAuthModalCustomEvent<HTMLCpslAuthModalElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
937
|
-
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
938
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
939
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
940
|
-
removeEventListener<K extends keyof HTMLCpslAuthModalElementEventMap>(type: K, listener: (this: HTMLCpslAuthModalElement, ev: CpslAuthModalCustomEvent<HTMLCpslAuthModalElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
941
|
-
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
942
|
-
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
943
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
944
|
-
}
|
945
|
-
var HTMLCpslAuthModalElement: {
|
946
|
-
prototype: HTMLCpslAuthModalElement;
|
947
|
-
new (): HTMLCpslAuthModalElement;
|
948
|
-
};
|
949
897
|
interface HTMLCpslAvatarElement extends Components.CpslAvatar, HTMLStencilElement {
|
950
898
|
}
|
951
899
|
var HTMLCpslAvatarElement: {
|
@@ -1078,12 +1026,6 @@ declare global {
|
|
1078
1026
|
prototype: HTMLCpslIconElement;
|
1079
1027
|
new (): HTMLCpslIconElement;
|
1080
1028
|
};
|
1081
|
-
interface HTMLCpslIconGroupElement extends Components.CpslIconGroup, HTMLStencilElement {
|
1082
|
-
}
|
1083
|
-
var HTMLCpslIconGroupElement: {
|
1084
|
-
prototype: HTMLCpslIconGroupElement;
|
1085
|
-
new (): HTMLCpslIconGroupElement;
|
1086
|
-
};
|
1087
1029
|
interface HTMLCpslIdenticonElement extends Components.CpslIdenticon, HTMLStencilElement {
|
1088
1030
|
}
|
1089
1031
|
var HTMLCpslIdenticonElement: {
|
@@ -1117,6 +1059,27 @@ declare global {
|
|
1117
1059
|
prototype: HTMLCpslInputElement;
|
1118
1060
|
new (): HTMLCpslInputElement;
|
1119
1061
|
};
|
1062
|
+
interface HTMLCpslModalElementEventMap {
|
1063
|
+
"cpslModalEntering": null;
|
1064
|
+
"cpslModalEntered": null;
|
1065
|
+
"cpslModalExiting": null;
|
1066
|
+
"cpslModalExited": null;
|
1067
|
+
"cpslModalRequestClose": null;
|
1068
|
+
}
|
1069
|
+
interface HTMLCpslModalElement extends Components.CpslModal, HTMLStencilElement {
|
1070
|
+
addEventListener<K extends keyof HTMLCpslModalElementEventMap>(type: K, listener: (this: HTMLCpslModalElement, ev: CpslModalCustomEvent<HTMLCpslModalElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
1071
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
1072
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
1073
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
1074
|
+
removeEventListener<K extends keyof HTMLCpslModalElementEventMap>(type: K, listener: (this: HTMLCpslModalElement, ev: CpslModalCustomEvent<HTMLCpslModalElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
1075
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
1076
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
1077
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
1078
|
+
}
|
1079
|
+
var HTMLCpslModalElement: {
|
1080
|
+
prototype: HTMLCpslModalElement;
|
1081
|
+
new (): HTMLCpslModalElement;
|
1082
|
+
};
|
1120
1083
|
interface HTMLCpslModalV2ElementEventMap {
|
1121
1084
|
"cpslModalEntering": null;
|
1122
1085
|
"cpslModalEntered": null;
|
@@ -1173,8 +1136,8 @@ declare global {
|
|
1173
1136
|
new (): HTMLCpslPillElement;
|
1174
1137
|
};
|
1175
1138
|
interface HTMLCpslPopoverElementEventMap {
|
1176
|
-
"cpslOpen":
|
1177
|
-
"cpslClose":
|
1139
|
+
"cpslOpen": any;
|
1140
|
+
"cpslClose": any;
|
1178
1141
|
}
|
1179
1142
|
interface HTMLCpslPopoverElement extends Components.CpslPopover, HTMLStencilElement {
|
1180
1143
|
addEventListener<K extends keyof HTMLCpslPopoverElementEventMap>(type: K, listener: (this: HTMLCpslPopoverElement, ev: CpslPopoverCustomEvent<HTMLCpslPopoverElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
@@ -1229,7 +1192,6 @@ declare global {
|
|
1229
1192
|
"cpslBlur": FocusEvent;
|
1230
1193
|
"cpslFocus": FocusEvent;
|
1231
1194
|
"cpslSelectValueChange": string;
|
1232
|
-
"cpslSearchChange": string;
|
1233
1195
|
}
|
1234
1196
|
interface HTMLCpslSelectElement extends Components.CpslSelect, HTMLStencilElement {
|
1235
1197
|
addEventListener<K extends keyof HTMLCpslSelectElementEventMap>(type: K, listener: (this: HTMLCpslSelectElement, ev: CpslSelectCustomEvent<HTMLCpslSelectElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
@@ -1359,7 +1321,6 @@ declare global {
|
|
1359
1321
|
"cpsl-alert": HTMLCpslAlertElement;
|
1360
1322
|
"cpsl-animation": HTMLCpslAnimationElement;
|
1361
1323
|
"cpsl-app-bar": HTMLCpslAppBarElement;
|
1362
|
-
"cpsl-auth-modal": HTMLCpslAuthModalElement;
|
1363
1324
|
"cpsl-avatar": HTMLCpslAvatarElement;
|
1364
1325
|
"cpsl-button": HTMLCpslButtonElement;
|
1365
1326
|
"cpsl-button-group": HTMLCpslButtonGroupElement;
|
@@ -1374,10 +1335,10 @@ declare global {
|
|
1374
1335
|
"cpsl-grid": HTMLCpslGridElement;
|
1375
1336
|
"cpsl-hero": HTMLCpslHeroElement;
|
1376
1337
|
"cpsl-icon": HTMLCpslIconElement;
|
1377
|
-
"cpsl-icon-group": HTMLCpslIconGroupElement;
|
1378
1338
|
"cpsl-identicon": HTMLCpslIdenticonElement;
|
1379
1339
|
"cpsl-info-box": HTMLCpslInfoBoxElement;
|
1380
1340
|
"cpsl-input": HTMLCpslInputElement;
|
1341
|
+
"cpsl-modal": HTMLCpslModalElement;
|
1381
1342
|
"cpsl-modal-v2": HTMLCpslModalV2Element;
|
1382
1343
|
"cpsl-nav-button-group": HTMLCpslNavButtonGroupElement;
|
1383
1344
|
"cpsl-overlay": HTMLCpslOverlayElement;
|
@@ -1431,48 +1392,6 @@ declare namespace LocalJSX {
|
|
1431
1392
|
*/
|
1432
1393
|
"zIndexOverride"?: number;
|
1433
1394
|
}
|
1434
|
-
interface CpslAuthModal {
|
1435
|
-
/**
|
1436
|
-
* Duration in seconds of the modal entering. Default is .15.
|
1437
|
-
*/
|
1438
|
-
"enterTransitionDuration"?: number;
|
1439
|
-
/**
|
1440
|
-
* Duration in seconds of the modal exiting. Default is .15.
|
1441
|
-
*/
|
1442
|
-
"exitTransitionDuration"?: number;
|
1443
|
-
/**
|
1444
|
-
* Whether or not to show the overlay. This will always show the modal, regardless of the value of `open`.
|
1445
|
-
*/
|
1446
|
-
"noOverlay"?: boolean;
|
1447
|
-
/**
|
1448
|
-
* Emitted when enter animation finishes.
|
1449
|
-
*/
|
1450
|
-
"onCpslModalEntered"?: (event: CpslAuthModalCustomEvent<null>) => void;
|
1451
|
-
/**
|
1452
|
-
* Emitted when enter animation starts.
|
1453
|
-
*/
|
1454
|
-
"onCpslModalEntering"?: (event: CpslAuthModalCustomEvent<null>) => void;
|
1455
|
-
/**
|
1456
|
-
* Emitted when exit animation finishes.
|
1457
|
-
*/
|
1458
|
-
"onCpslModalExited"?: (event: CpslAuthModalCustomEvent<null>) => void;
|
1459
|
-
/**
|
1460
|
-
* Emitted when exit animation starts.
|
1461
|
-
*/
|
1462
|
-
"onCpslModalExiting"?: (event: CpslAuthModalCustomEvent<null>) => void;
|
1463
|
-
/**
|
1464
|
-
* Emitted when exit animation finishes.
|
1465
|
-
*/
|
1466
|
-
"onCpslModalRequestClose"?: (event: CpslAuthModalCustomEvent<null>) => void;
|
1467
|
-
/**
|
1468
|
-
* Whether or not to show the modal.
|
1469
|
-
*/
|
1470
|
-
"open"?: boolean;
|
1471
|
-
/**
|
1472
|
-
* Override z-index.
|
1473
|
-
*/
|
1474
|
-
"zIndexOverride"?: number;
|
1475
|
-
}
|
1476
1395
|
interface CpslAvatar {
|
1477
1396
|
/**
|
1478
1397
|
* The alternate text for the avatar image.
|
@@ -1513,9 +1432,9 @@ declare namespace LocalJSX {
|
|
1513
1432
|
*/
|
1514
1433
|
"target"?: string;
|
1515
1434
|
/**
|
1516
|
-
* The variant of the button. Options are: `"primary"`, `"secondary", `"
|
1435
|
+
* The variant of the button. Options are: `"primary"`, `"secondary", `"icon", `"text"`. Default is: `"primary"`.
|
1517
1436
|
*/
|
1518
|
-
"variant"?: 'primary' | 'secondary' | '
|
1437
|
+
"variant"?: 'primary' | 'secondary' | 'ghost' | 'destructive';
|
1519
1438
|
}
|
1520
1439
|
interface CpslButtonGroup {
|
1521
1440
|
/**
|
@@ -1786,24 +1705,12 @@ declare namespace LocalJSX {
|
|
1786
1705
|
"fixed"?: boolean;
|
1787
1706
|
}
|
1788
1707
|
interface CpslHero {
|
1789
|
-
/**
|
1790
|
-
* The height of the container. Default is: 180.
|
1791
|
-
*/
|
1792
|
-
"height"?: number;
|
1793
|
-
/**
|
1794
|
-
* Hides the fade out components Default is: `false`.
|
1795
|
-
*/
|
1796
|
-
"hideFadeOut"?: boolean;
|
1797
1708
|
"subtitle"?: string;
|
1798
1709
|
"title"?: string;
|
1799
1710
|
/**
|
1800
|
-
* The variant of the button. Options are: `"
|
1801
|
-
*/
|
1802
|
-
"variant"?: 'customContent' | 'connection' | 'externalWalletConnection' | 'pending' | 'approved' | 'failed';
|
1803
|
-
/**
|
1804
|
-
* Whether to use the Capsule custom theming or use the provided theme Default is: `false`.
|
1711
|
+
* The variant of the button. Options are: `"default"`, `"loading", `"success". Default is: `"default"`.
|
1805
1712
|
*/
|
1806
|
-
"
|
1713
|
+
"variant"?: 'connection' | 'pending' | 'approved' | 'failed';
|
1807
1714
|
}
|
1808
1715
|
interface CpslIcon {
|
1809
1716
|
/**
|
@@ -1815,20 +1722,6 @@ declare namespace LocalJSX {
|
|
1815
1722
|
*/
|
1816
1723
|
"src"?: string;
|
1817
1724
|
}
|
1818
|
-
interface CpslIconGroup {
|
1819
|
-
/**
|
1820
|
-
* If `true`, the user cannot interact with the input.
|
1821
|
-
*/
|
1822
|
-
"disabled"?: boolean;
|
1823
|
-
/**
|
1824
|
-
* The direction the icons should expand from
|
1825
|
-
*/
|
1826
|
-
"expandFrom"?: 'left' | 'right';
|
1827
|
-
/**
|
1828
|
-
* The name of the icons to display.
|
1829
|
-
*/
|
1830
|
-
"icons"?: (IconType | string)[];
|
1831
|
-
}
|
1832
1725
|
interface CpslIdenticon {
|
1833
1726
|
"hash"?: string;
|
1834
1727
|
/**
|
@@ -1855,10 +1748,6 @@ declare namespace LocalJSX {
|
|
1855
1748
|
* Sets the [`autofocus` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus) on the native input element. This may not be sufficient for the element to be focused on page load.
|
1856
1749
|
*/
|
1857
1750
|
"autofocus"?: boolean;
|
1858
|
-
/**
|
1859
|
-
* If `true`, the input primary color will use the contrast value, not the primary text value.
|
1860
|
-
*/
|
1861
|
-
"contrastText"?: boolean;
|
1862
1751
|
/**
|
1863
1752
|
* If `true`, the user cannot interact with the input.
|
1864
1753
|
*/
|
@@ -1883,10 +1772,6 @@ declare namespace LocalJSX {
|
|
1883
1772
|
* The label for the input.
|
1884
1773
|
*/
|
1885
1774
|
"label"?: string;
|
1886
|
-
/**
|
1887
|
-
* Mask string to apply to the input.
|
1888
|
-
*/
|
1889
|
-
"mask"?: string;
|
1890
1775
|
/**
|
1891
1776
|
* The maximum value, which must not be less than its minimum (min attribute) value.
|
1892
1777
|
*/
|
@@ -1980,6 +1865,56 @@ declare namespace LocalJSX {
|
|
1980
1865
|
*/
|
1981
1866
|
"value"?: string;
|
1982
1867
|
}
|
1868
|
+
interface CpslModal {
|
1869
|
+
/**
|
1870
|
+
* Duration in seconds of the modal entering. Default is .15.
|
1871
|
+
*/
|
1872
|
+
"enterTransitionDuration"?: number;
|
1873
|
+
/**
|
1874
|
+
* Duration in seconds of the modal exiting. Default is .15.
|
1875
|
+
*/
|
1876
|
+
"exitTransitionDuration"?: number;
|
1877
|
+
/**
|
1878
|
+
* Whether or not to show `footerExpandedFooter` and `footerExpandedHeader` slots.
|
1879
|
+
*/
|
1880
|
+
"footerExpanded"?: boolean;
|
1881
|
+
/**
|
1882
|
+
* Duration in seconds of the footer expansion animation. Default is 0.15.
|
1883
|
+
*/
|
1884
|
+
"footerTransitionDuration"?: number;
|
1885
|
+
/**
|
1886
|
+
* Whether or not to show the overlay. This will always show the modal, regardless of the value of `open`.
|
1887
|
+
*/
|
1888
|
+
"noOverlay"?: boolean;
|
1889
|
+
/**
|
1890
|
+
* Emitted when enter animation finishes.
|
1891
|
+
*/
|
1892
|
+
"onCpslModalEntered"?: (event: CpslModalCustomEvent<null>) => void;
|
1893
|
+
/**
|
1894
|
+
* Emitted when enter animation starts.
|
1895
|
+
*/
|
1896
|
+
"onCpslModalEntering"?: (event: CpslModalCustomEvent<null>) => void;
|
1897
|
+
/**
|
1898
|
+
* Emitted when exit animation finishes.
|
1899
|
+
*/
|
1900
|
+
"onCpslModalExited"?: (event: CpslModalCustomEvent<null>) => void;
|
1901
|
+
/**
|
1902
|
+
* Emitted when exit animation starts.
|
1903
|
+
*/
|
1904
|
+
"onCpslModalExiting"?: (event: CpslModalCustomEvent<null>) => void;
|
1905
|
+
/**
|
1906
|
+
* Emitted when exit animation finishes.
|
1907
|
+
*/
|
1908
|
+
"onCpslModalRequestClose"?: (event: CpslModalCustomEvent<null>) => void;
|
1909
|
+
/**
|
1910
|
+
* Whether or not to show the modal.
|
1911
|
+
*/
|
1912
|
+
"open"?: boolean;
|
1913
|
+
/**
|
1914
|
+
* Override z-index.
|
1915
|
+
*/
|
1916
|
+
"zIndexOverride"?: number;
|
1917
|
+
}
|
1983
1918
|
interface CpslModalV2 {
|
1984
1919
|
/**
|
1985
1920
|
* Whether or not to show the modal with a box shadow.
|
@@ -2094,11 +2029,11 @@ declare namespace LocalJSX {
|
|
2094
2029
|
/**
|
2095
2030
|
* Emitted when the popover closes.
|
2096
2031
|
*/
|
2097
|
-
"onCpslClose"?: (event: CpslPopoverCustomEvent<
|
2032
|
+
"onCpslClose"?: (event: CpslPopoverCustomEvent<any>) => void;
|
2098
2033
|
/**
|
2099
2034
|
* Emitted when the popover opens.
|
2100
2035
|
*/
|
2101
|
-
"onCpslOpen"?: (event: CpslPopoverCustomEvent<
|
2036
|
+
"onCpslOpen"?: (event: CpslPopoverCustomEvent<any>) => void;
|
2102
2037
|
/**
|
2103
2038
|
* Used internally to prevent select from blurring unintentionally.
|
2104
2039
|
*/
|
@@ -2161,14 +2096,6 @@ declare namespace LocalJSX {
|
|
2161
2096
|
interface CpslRow {
|
2162
2097
|
}
|
2163
2098
|
interface CpslSelect {
|
2164
|
-
/**
|
2165
|
-
* ID of element to anchor popover to.
|
2166
|
-
*/
|
2167
|
-
"anchorElId"?: string;
|
2168
|
-
/**
|
2169
|
-
* If `true` the popover container will use the width of the content, else it will be set to the width of the trigger. Default is `false`
|
2170
|
-
*/
|
2171
|
-
"autoWidth"?: boolean;
|
2172
2099
|
/**
|
2173
2100
|
* If `true`, the user cannot interact with the input.
|
2174
2101
|
*/
|
@@ -2205,10 +2132,6 @@ declare namespace LocalJSX {
|
|
2205
2132
|
* Emitted when the input has focus.
|
2206
2133
|
*/
|
2207
2134
|
"onCpslFocus"?: (event: CpslSelectCustomEvent<FocusEvent>) => void;
|
2208
|
-
/**
|
2209
|
-
* Emitted when the search value changes.
|
2210
|
-
*/
|
2211
|
-
"onCpslSearchChange"?: (event: CpslSelectCustomEvent<string>) => void;
|
2212
2135
|
/**
|
2213
2136
|
* Emitted when the value changes.
|
2214
2137
|
*/
|
@@ -2221,10 +2144,6 @@ declare namespace LocalJSX {
|
|
2221
2144
|
* If `true`, the user must fill in a value before submitting a form.
|
2222
2145
|
*/
|
2223
2146
|
"required"?: boolean;
|
2224
|
-
/**
|
2225
|
-
* Placeholder for the search field.
|
2226
|
-
*/
|
2227
|
-
"searchPlaceholder"?: string;
|
2228
2147
|
/**
|
2229
2148
|
* Value of the selected item.
|
2230
2149
|
*/
|
@@ -2237,10 +2156,6 @@ declare namespace LocalJSX {
|
|
2237
2156
|
* If `true`, the label will display an "optional" tag.
|
2238
2157
|
*/
|
2239
2158
|
"showOptionalLabel"?: boolean;
|
2240
|
-
/**
|
2241
|
-
* If `true`, the dropdown will contain a search field.
|
2242
|
-
*/
|
2243
|
-
"showSearch"?: boolean;
|
2244
2159
|
}
|
2245
2160
|
interface CpslSelectItem {
|
2246
2161
|
/**
|
@@ -2328,11 +2243,22 @@ declare namespace LocalJSX {
|
|
2328
2243
|
/**
|
2329
2244
|
* The color of text. Options are: `"primary"`, `"secondary", `"tertiary", `"subtle", `"inverted", `"error". Default is: `"primary"`.
|
2330
2245
|
*/
|
2331
|
-
"color"?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'inverted' | 'error'
|
2246
|
+
"color"?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'inverted' | 'error';
|
2332
2247
|
/**
|
2333
2248
|
* The variant of text. Options are: `"body2XS"`, `"bodyXS", `"bodyS", `"bodyM", `"bodyL", `"bodyXL", `"headingXS", `"headingS", `"headingM", `"headingL", `"headingXL", `"heading2XL". Default is: `"bodyM"`.
|
2334
2249
|
*/
|
2335
|
-
"variant"?:
|
2250
|
+
"variant"?: | 'body2XS'
|
2251
|
+
| 'bodyXS'
|
2252
|
+
| 'bodyS'
|
2253
|
+
| 'bodyM'
|
2254
|
+
| 'bodyL'
|
2255
|
+
| 'bodyXL'
|
2256
|
+
| 'headingXS'
|
2257
|
+
| 'headingS'
|
2258
|
+
| 'headingM'
|
2259
|
+
| 'headingL'
|
2260
|
+
| 'headingXL'
|
2261
|
+
| 'heading2XL';
|
2336
2262
|
/**
|
2337
2263
|
* The weight of text. Options are: `"regular"`, `"medium", `"semiBold", `"bold". Default is: `"regular"`.
|
2338
2264
|
*/
|
@@ -2352,7 +2278,6 @@ declare namespace LocalJSX {
|
|
2352
2278
|
"cpsl-alert": CpslAlert;
|
2353
2279
|
"cpsl-animation": CpslAnimation;
|
2354
2280
|
"cpsl-app-bar": CpslAppBar;
|
2355
|
-
"cpsl-auth-modal": CpslAuthModal;
|
2356
2281
|
"cpsl-avatar": CpslAvatar;
|
2357
2282
|
"cpsl-button": CpslButton;
|
2358
2283
|
"cpsl-button-group": CpslButtonGroup;
|
@@ -2367,10 +2292,10 @@ declare namespace LocalJSX {
|
|
2367
2292
|
"cpsl-grid": CpslGrid;
|
2368
2293
|
"cpsl-hero": CpslHero;
|
2369
2294
|
"cpsl-icon": CpslIcon;
|
2370
|
-
"cpsl-icon-group": CpslIconGroup;
|
2371
2295
|
"cpsl-identicon": CpslIdenticon;
|
2372
2296
|
"cpsl-info-box": CpslInfoBox;
|
2373
2297
|
"cpsl-input": CpslInput;
|
2298
|
+
"cpsl-modal": CpslModal;
|
2374
2299
|
"cpsl-modal-v2": CpslModalV2;
|
2375
2300
|
"cpsl-nav-button-group": CpslNavButtonGroup;
|
2376
2301
|
"cpsl-overlay": CpslOverlay;
|
@@ -2400,7 +2325,6 @@ declare module "@stencil/core" {
|
|
2400
2325
|
"cpsl-alert": LocalJSX.CpslAlert & JSXBase.HTMLAttributes<HTMLCpslAlertElement>;
|
2401
2326
|
"cpsl-animation": LocalJSX.CpslAnimation & JSXBase.HTMLAttributes<HTMLCpslAnimationElement>;
|
2402
2327
|
"cpsl-app-bar": LocalJSX.CpslAppBar & JSXBase.HTMLAttributes<HTMLCpslAppBarElement>;
|
2403
|
-
"cpsl-auth-modal": LocalJSX.CpslAuthModal & JSXBase.HTMLAttributes<HTMLCpslAuthModalElement>;
|
2404
2328
|
"cpsl-avatar": LocalJSX.CpslAvatar & JSXBase.HTMLAttributes<HTMLCpslAvatarElement>;
|
2405
2329
|
"cpsl-button": LocalJSX.CpslButton & JSXBase.HTMLAttributes<HTMLCpslButtonElement>;
|
2406
2330
|
"cpsl-button-group": LocalJSX.CpslButtonGroup & JSXBase.HTMLAttributes<HTMLCpslButtonGroupElement>;
|
@@ -2415,10 +2339,10 @@ declare module "@stencil/core" {
|
|
2415
2339
|
"cpsl-grid": LocalJSX.CpslGrid & JSXBase.HTMLAttributes<HTMLCpslGridElement>;
|
2416
2340
|
"cpsl-hero": LocalJSX.CpslHero & JSXBase.HTMLAttributes<HTMLCpslHeroElement>;
|
2417
2341
|
"cpsl-icon": LocalJSX.CpslIcon & JSXBase.HTMLAttributes<HTMLCpslIconElement>;
|
2418
|
-
"cpsl-icon-group": LocalJSX.CpslIconGroup & JSXBase.HTMLAttributes<HTMLCpslIconGroupElement>;
|
2419
2342
|
"cpsl-identicon": LocalJSX.CpslIdenticon & JSXBase.HTMLAttributes<HTMLCpslIdenticonElement>;
|
2420
2343
|
"cpsl-info-box": LocalJSX.CpslInfoBox & JSXBase.HTMLAttributes<HTMLCpslInfoBoxElement>;
|
2421
2344
|
"cpsl-input": LocalJSX.CpslInput & JSXBase.HTMLAttributes<HTMLCpslInputElement>;
|
2345
|
+
"cpsl-modal": LocalJSX.CpslModal & JSXBase.HTMLAttributes<HTMLCpslModalElement>;
|
2422
2346
|
"cpsl-modal-v2": LocalJSX.CpslModalV2 & JSXBase.HTMLAttributes<HTMLCpslModalV2Element>;
|
2423
2347
|
"cpsl-nav-button-group": LocalJSX.CpslNavButtonGroup & JSXBase.HTMLAttributes<HTMLCpslNavButtonGroupElement>;
|
2424
2348
|
"cpsl-overlay": LocalJSX.CpslOverlay & JSXBase.HTMLAttributes<HTMLCpslOverlayElement>;
|
@@ -13,11 +13,6 @@ export type ImageType = keyof typeof Images;
|
|
13
13
|
export type Theme = {
|
14
14
|
foregroundColor?: string;
|
15
15
|
backgroundColor?: string;
|
16
|
-
accentColor?: string;
|
17
|
-
darkForegroundColor?: string;
|
18
|
-
darkBackgroundColor?: string;
|
19
|
-
darkAccentColor?: string;
|
20
|
-
mode?: 'light' | 'dark';
|
21
16
|
borderRadius?: BorderRadius;
|
22
17
|
font?: string;
|
23
18
|
customPalette?: CustomPalette;
|
@@ -249,14 +244,6 @@ export interface CustomPalette {
|
|
249
244
|
surface?: string;
|
250
245
|
border?: string;
|
251
246
|
};
|
252
|
-
iconGroup?: {
|
253
|
-
surface?: string;
|
254
|
-
border?: string;
|
255
|
-
icon?: {
|
256
|
-
default?: string;
|
257
|
-
disabled?: string;
|
258
|
-
};
|
259
|
-
};
|
260
247
|
}
|
261
248
|
export interface InteractionCallback {
|
262
249
|
eventName: string;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { Theme } from '../../interface';
|
2
|
-
export declare const generateBorderRadii: ({ borderRadius, customBorderRadii }: Pick<Theme, 'borderRadius' | 'customBorderRadii'>) => void;
|
2
|
+
export declare const generateBorderRadii: ({ borderRadius, customBorderRadii, }: Pick<Theme, 'borderRadius' | 'customBorderRadii'>) => void;
|