@usecapsule/core-components 3.3.0-dev.2 → 3.3.0-dev.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. package/css/capsule-core.css +25 -10
  2. package/css/capsule-core.css.map +1 -1
  3. package/dist/capsule/capsule.esm.js +1 -1
  4. package/dist/capsule/capsule.esm.js.map +1 -1
  5. package/dist/capsule/index.esm.js +1 -1
  6. package/dist/capsule/index.esm.js.map +1 -1
  7. package/dist/capsule/p-0e558c7f.entry.js +10 -0
  8. package/dist/capsule/{p-05cb769b.entry.js.map → p-0e558c7f.entry.js.map} +1 -1
  9. package/dist/capsule/{p-69c3c53b.entry.js → p-1bd11889.entry.js} +2 -2
  10. package/dist/capsule/{p-69c3c53b.entry.js.map → p-1bd11889.entry.js.map} +1 -1
  11. package/dist/capsule/p-32cdf894.entry.js +2 -0
  12. package/dist/capsule/p-32cdf894.entry.js.map +1 -0
  13. package/dist/capsule/p-3b042fd1.entry.js +2 -0
  14. package/dist/capsule/p-5965b15e.entry.js +2 -0
  15. package/dist/capsule/{p-c1aa1ffb.entry.js.map → p-5965b15e.entry.js.map} +1 -1
  16. package/dist/capsule/{p-742bda0b.entry.js → p-5d62e610.entry.js} +2 -2
  17. package/dist/capsule/p-60508b1e.entry.js +20 -0
  18. package/dist/capsule/p-60508b1e.entry.js.map +1 -0
  19. package/dist/cjs/capsule.cjs.js +1 -1
  20. package/dist/cjs/{cpsl-alert_33.cjs.entry.js → cpsl-alert_34.cjs.entry.js} +17028 -13461
  21. package/dist/cjs/cpsl-alert_34.cjs.entry.js.map +1 -0
  22. package/dist/cjs/cpsl-animation.cjs.entry.js +3 -2
  23. package/dist/cjs/cpsl-animation.cjs.entry.js.map +1 -1
  24. package/dist/cjs/cpsl-hero.cjs.entry.js +9 -6
  25. package/dist/cjs/cpsl-hero.cjs.entry.js.map +1 -1
  26. package/dist/cjs/cpsl-identicon.cjs.entry.js +1 -1
  27. package/dist/cjs/cpsl-info-box.cjs.entry.js +2 -2
  28. package/dist/cjs/cpsl-info-box.cjs.entry.js.map +1 -1
  29. package/dist/cjs/cpsl-modal-v2.cjs.entry.js +1 -1
  30. package/dist/cjs/cpsl-modal-v2.cjs.entry.js.map +1 -1
  31. package/dist/cjs/cpsl-row.cjs.entry.js +1 -1
  32. package/dist/cjs/index-65f57499.js +2 -2
  33. package/dist/cjs/index.cjs.js +35 -12
  34. package/dist/cjs/index.cjs.js.map +1 -1
  35. package/dist/cjs/loader.cjs.js +1 -1
  36. package/dist/collection/assets/icons/arrow-circle-broken-down-left.svg +3 -0
  37. package/dist/collection/assets/icons/bank.svg +3 -0
  38. package/dist/collection/assets/icons/credit-card.svg +3 -0
  39. package/dist/collection/assets/icons/dot.svg +3 -0
  40. package/dist/collection/assets/icons/download.svg +3 -0
  41. package/dist/collection/assets/icons/globe.svg +3 -0
  42. package/dist/collection/assets/icons/hero-alert-circle.svg +3 -0
  43. package/dist/collection/assets/icons/hero-checkmark-capsule.svg +11 -0
  44. package/dist/collection/assets/icons/hero-checkmark.svg +3 -0
  45. package/dist/collection/assets/icons/hero-external-connection.svg +71 -0
  46. package/dist/collection/assets/icons/index.js +21 -1
  47. package/dist/collection/assets/icons/index.js.map +1 -1
  48. package/dist/collection/assets/icons/link-external.svg +3 -0
  49. package/dist/collection/assets/icons/log-out.svg +3 -0
  50. package/dist/collection/assets/icons/moonpay-brand.svg +10 -0
  51. package/dist/collection/assets/icons/puzzle-piece.svg +3 -0
  52. package/dist/collection/assets/icons/qr-code-02.svg +3 -0
  53. package/dist/collection/assets/icons/qr-code.svg +3 -0
  54. package/dist/collection/assets/icons/refresh.svg +3 -3
  55. package/dist/collection/assets/icons/search.svg +3 -0
  56. package/dist/collection/assets/icons/send.svg +3 -0
  57. package/dist/collection/assets/icons/shield.svg +3 -0
  58. package/dist/collection/assets/icons/stripe-brand.svg +3 -0
  59. package/dist/collection/collection-manifest.json +2 -1
  60. package/dist/collection/components/cpsl-alert/cpsl-alert.js +2 -2
  61. package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -1
  62. package/dist/collection/components/{cpsl-modal/cpsl-modal.css → cpsl-auth-modal/cpsl-auth-modal.css} +33 -58
  63. package/dist/collection/components/{cpsl-modal/cpsl-modal.js → cpsl-auth-modal/cpsl-auth-modal.js} +11 -129
  64. package/dist/collection/components/cpsl-auth-modal/cpsl-auth-modal.js.map +1 -0
  65. package/dist/collection/components/cpsl-button/cpsl-button.css +89 -2
  66. package/dist/collection/components/cpsl-button/cpsl-button.js +6 -5
  67. package/dist/collection/components/cpsl-button/cpsl-button.js.map +1 -1
  68. package/dist/collection/components/cpsl-button/cpsl-button.stories.js.map +1 -1
  69. package/dist/collection/components/cpsl-card/cpsl-card.css +5 -2
  70. package/dist/collection/components/cpsl-code-input/cpsl-code-input.css +3 -0
  71. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +11 -7
  72. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -1
  73. package/dist/collection/components/cpsl-divider/cpsl-divider.css +2 -1
  74. package/dist/collection/components/cpsl-drawer/cpsl-drawer.js +1 -1
  75. package/dist/collection/components/cpsl-drawer/cpsl-drawer.js.map +1 -1
  76. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +2 -2
  77. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -1
  78. package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js +1 -6
  79. package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js.map +1 -1
  80. package/dist/collection/components/cpsl-hero/cpsl-hero.css +136 -71
  81. package/dist/collection/components/cpsl-hero/cpsl-hero.js +63 -9
  82. package/dist/collection/components/cpsl-hero/cpsl-hero.js.map +1 -1
  83. package/dist/collection/components/cpsl-icon/cpsl-icon.css +8 -0
  84. package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
  85. package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.css +97 -0
  86. package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.js +121 -0
  87. package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.js.map +1 -0
  88. package/dist/collection/components/cpsl-identicon/cpsl-identicon.js +1 -1
  89. package/dist/collection/components/cpsl-info-box/cpsl-info-box.css +1 -2
  90. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
  91. package/dist/collection/components/cpsl-input/cpsl-input.css +21 -2
  92. package/dist/collection/components/cpsl-input/cpsl-input.js +100 -28
  93. package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -1
  94. package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js +1 -1
  95. package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js.map +1 -1
  96. package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js +1 -1
  97. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +1 -1
  98. package/dist/collection/components/cpsl-pagination/cpsl-pagination.js +1 -1
  99. package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
  100. package/dist/collection/components/cpsl-popover/cpsl-popover.css +2 -0
  101. package/dist/collection/components/cpsl-popover/cpsl-popover.js +9 -11
  102. package/dist/collection/components/cpsl-popover/cpsl-popover.js.map +1 -1
  103. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.css +12 -3
  104. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +28 -23
  105. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js.map +1 -1
  106. package/dist/collection/components/cpsl-radio/cpsl-radio.js +1 -1
  107. package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
  108. package/dist/collection/components/cpsl-select/cpsl-select.css +17 -0
  109. package/dist/collection/components/cpsl-select/cpsl-select.js +95 -5
  110. package/dist/collection/components/cpsl-select/cpsl-select.js.map +1 -1
  111. package/dist/collection/components/cpsl-select-item/cpsl-select-item.js +1 -1
  112. package/dist/collection/components/cpsl-select-item/cpsl-select-item.js.map +1 -1
  113. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +3 -3
  114. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js.map +1 -1
  115. package/dist/collection/components/cpsl-spinner/cpsl-spinner.css +30 -8
  116. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +5 -7
  117. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js.map +1 -1
  118. package/dist/collection/components/cpsl-switch/cpsl-switch.js +1 -1
  119. package/dist/collection/components/cpsl-tab/cpsl-tab.css +24 -1
  120. package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
  121. package/dist/collection/components/cpsl-tab/cpsl-tab.js.map +1 -1
  122. package/dist/collection/components/cpsl-table/cpsl-table.js +1 -9
  123. package/dist/collection/components/cpsl-table/cpsl-table.js.map +1 -1
  124. package/dist/collection/components/cpsl-tabs/cpsl-tabs.css +1 -4
  125. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +1 -4
  126. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js.map +1 -1
  127. package/dist/collection/components/cpsl-text/cpsl-text.css +19 -0
  128. package/dist/collection/components/cpsl-text/cpsl-text.js +5 -4
  129. package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
  130. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.css +3 -1
  131. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
  132. package/dist/collection/interface.js.map +1 -1
  133. package/dist/collection/utils/theme/generateBorderRadii.js +4 -3
  134. package/dist/collection/utils/theme/generateBorderRadii.js.map +1 -1
  135. package/dist/collection/utils/theme/generatePalette.js +22 -6
  136. package/dist/collection/utils/theme/generatePalette.js.map +1 -1
  137. package/dist/collection/utils/theme/generateTheme.js +9 -3
  138. package/dist/collection/utils/theme/generateTheme.js.map +1 -1
  139. package/dist/collection/utils/theme/utils.js.map +1 -1
  140. package/dist/esm/capsule.js +1 -1
  141. package/dist/esm/{cpsl-alert_33.entry.js → cpsl-alert_34.entry.js} +17029 -13463
  142. package/dist/esm/cpsl-alert_34.entry.js.map +1 -0
  143. package/dist/esm/cpsl-animation.entry.js +2 -1
  144. package/dist/esm/cpsl-animation.entry.js.map +1 -1
  145. package/dist/esm/cpsl-hero.entry.js +10 -7
  146. package/dist/esm/cpsl-hero.entry.js.map +1 -1
  147. package/dist/esm/cpsl-identicon.entry.js +1 -1
  148. package/dist/esm/cpsl-info-box.entry.js +2 -2
  149. package/dist/esm/cpsl-info-box.entry.js.map +1 -1
  150. package/dist/esm/cpsl-modal-v2.entry.js +1 -1
  151. package/dist/esm/cpsl-modal-v2.entry.js.map +1 -1
  152. package/dist/esm/cpsl-row.entry.js +1 -1
  153. package/dist/esm/index-91db3414.js +2 -2
  154. package/dist/esm/index.js +35 -12
  155. package/dist/esm/index.js.map +1 -1
  156. package/dist/esm/loader.js +1 -1
  157. package/dist/types/assets/icons/index.d.ts +20 -0
  158. package/dist/types/components/{cpsl-modal/cpsl-modal.d.ts → cpsl-auth-modal/cpsl-auth-modal.d.ts} +3 -23
  159. package/dist/types/components/cpsl-button/cpsl-button.d.ts +2 -2
  160. package/dist/types/components/cpsl-hero/cpsl-hero.d.ts +18 -3
  161. package/dist/types/components/cpsl-icon-group/cpsl-icon-group.d.ts +20 -0
  162. package/dist/types/components/cpsl-input/cpsl-input.d.ts +13 -3
  163. package/dist/types/components/cpsl-popover/cpsl-popover.d.ts +2 -2
  164. package/dist/types/components/cpsl-qr-code/cpsl-qr-code.d.ts +1 -0
  165. package/dist/types/components/cpsl-select/cpsl-select.d.ts +22 -1
  166. package/dist/types/components/cpsl-text/cpsl-text.d.ts +1 -1
  167. package/dist/types/components.d.ts +222 -146
  168. package/dist/types/interface.d.ts +13 -0
  169. package/dist/types/utils/theme/generateBorderRadii.d.ts +1 -1
  170. package/dist/types/utils/theme/generatePalette.d.ts +4 -2
  171. package/dist/types/utils/theme/generateTheme.d.ts +1 -1
  172. package/package.json +3 -2
  173. package/dist/capsule/p-0462f723.js +0 -2
  174. package/dist/capsule/p-0462f723.js.map +0 -1
  175. package/dist/capsule/p-05cb769b.entry.js +0 -10
  176. package/dist/capsule/p-0eea90f8.entry.js +0 -2
  177. package/dist/capsule/p-4203888d.entry.js +0 -29
  178. package/dist/capsule/p-4203888d.entry.js.map +0 -1
  179. package/dist/capsule/p-c1aa1ffb.entry.js +0 -2
  180. package/dist/capsule/p-d351f076.entry.js +0 -2
  181. package/dist/capsule/p-d351f076.entry.js.map +0 -1
  182. package/dist/cjs/_commonjsHelpers-b3309d7b.js +0 -12
  183. package/dist/cjs/_commonjsHelpers-b3309d7b.js.map +0 -1
  184. package/dist/cjs/cpsl-alert_33.cjs.entry.js.map +0 -1
  185. package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +0 -1
  186. package/dist/esm/_commonjsHelpers-1789f0cf.js +0 -9
  187. package/dist/esm/_commonjsHelpers-1789f0cf.js.map +0 -1
  188. package/dist/esm/cpsl-alert_33.entry.js.map +0 -1
  189. /package/dist/capsule/{p-0eea90f8.entry.js.map → p-3b042fd1.entry.js.map} +0 -0
  190. /package/dist/capsule/{p-742bda0b.entry.js.map → p-5d62e610.entry.js.map} +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;
@@ -1,10 +1,9 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
- export declare class CpslModal {
3
- private draggable;
4
- private expandFooterTl;
2
+ export declare class CpslAuthModal {
5
3
  private hasAnimatedIn;
6
- el: HTMLCpslModalElement;
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", `"icon", `"text"`.
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: `"default"`, `"loading", `"success".
5
- * Default is: `"default"`.
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
- * Update the native input element when the value changes
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
  */
@@ -14,5 +14,6 @@ export declare class CpslQrCode {
14
14
  */
15
15
  size?: number;
16
16
  componentDidLoad(): void;
17
+ private get imgEl();
17
18
  render(): any;
18
19
  }
@@ -3,10 +3,19 @@ export declare class CpslSelect {
3
3
  el: HTMLCpslSelectElement;
4
4
  private popoverEl;
5
5
  private inputId;
6
- anchorEl: HTMLDivElement;
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".