@usecapsule/core-components 3.0.1 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (234) hide show
  1. package/css/capsule-core.css +93 -24
  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-397edab5.entry.js +2 -0
  8. package/dist/capsule/{p-ad14a817.entry.js.map → p-397edab5.entry.js.map} +1 -1
  9. package/dist/capsule/p-52d6ebee.entry.js +2 -0
  10. package/dist/capsule/{p-fcead80b.entry.js.map → p-52d6ebee.entry.js.map} +1 -1
  11. package/dist/capsule/p-5ed5e96c.entry.js +2 -0
  12. package/dist/capsule/p-5ed5e96c.entry.js.map +1 -0
  13. package/dist/capsule/p-6e71539d.js +3 -0
  14. package/dist/capsule/p-6e71539d.js.map +1 -0
  15. package/dist/capsule/p-6e900654.entry.js +29 -0
  16. package/dist/capsule/p-6e900654.entry.js.map +1 -0
  17. package/dist/capsule/{p-0d0a0037.entry.js → p-70f95c93.entry.js} +2 -2
  18. package/dist/capsule/{p-0d0a0037.entry.js.map → p-70f95c93.entry.js.map} +1 -1
  19. package/dist/capsule/p-86e6cba5.entry.js +10 -0
  20. package/dist/capsule/{p-d28b96ba.entry.js.map → p-86e6cba5.entry.js.map} +1 -1
  21. package/dist/capsule/p-f2393be6.js +2 -0
  22. package/dist/capsule/p-f2393be6.js.map +1 -0
  23. package/dist/capsule/{p-fa078837.entry.js → p-f9351426.entry.js} +2 -2
  24. package/dist/capsule/{p-fa078837.entry.js.map → p-f9351426.entry.js.map} +1 -1
  25. package/dist/cjs/capsule.cjs.js +10 -10
  26. package/dist/cjs/capsule.cjs.js.map +1 -1
  27. package/dist/cjs/{constants-0869a780.js → constants-9b1b01bb.js} +3 -3
  28. package/dist/cjs/{constants-0869a780.js.map → constants-9b1b01bb.js.map} +1 -1
  29. package/dist/cjs/{cpsl-alert_29.cjs.entry.js → cpsl-alert_33.cjs.entry.js} +663 -94
  30. package/dist/cjs/cpsl-alert_33.cjs.entry.js.map +1 -0
  31. package/dist/cjs/cpsl-animation.cjs.entry.js +2 -2
  32. package/dist/cjs/cpsl-col.cjs.entry.js +2 -2
  33. package/dist/cjs/cpsl-grid.cjs.entry.js +3 -3
  34. package/dist/cjs/cpsl-info-box.cjs.entry.js +3 -3
  35. package/dist/cjs/cpsl-info-box.cjs.entry.js.map +1 -1
  36. package/dist/cjs/cpsl-modal-v2.cjs.entry.js +55 -0
  37. package/dist/cjs/cpsl-modal-v2.cjs.entry.js.map +1 -0
  38. package/dist/cjs/cpsl-row.cjs.entry.js +2 -2
  39. package/dist/cjs/index-85125285.js +1414 -0
  40. package/dist/cjs/index-85125285.js.map +1 -0
  41. package/dist/cjs/index.cjs.js +116 -107
  42. package/dist/cjs/index.cjs.js.map +1 -1
  43. package/dist/cjs/loader.cjs.js +2 -2
  44. package/dist/collection/assets/icons/chevron-up.svg +2 -2
  45. package/dist/collection/assets/icons/close.svg +3 -4
  46. package/dist/collection/assets/icons/cube.svg +3 -0
  47. package/dist/collection/assets/icons/farcaster-brand.svg +10 -0
  48. package/dist/collection/assets/icons/farcaster.svg +10 -0
  49. package/dist/collection/assets/icons/image.svg +3 -0
  50. package/dist/collection/assets/icons/index.js +9 -1
  51. package/dist/collection/assets/icons/index.js.map +1 -1
  52. package/dist/collection/assets/icons/menu.svg +3 -0
  53. package/dist/collection/assets/icons/refresh.svg +3 -0
  54. package/dist/collection/assets/icons/stars.svg +4 -0
  55. package/dist/collection/assets/icons/x.svg +3 -0
  56. package/dist/collection/collection-manifest.json +7 -2
  57. package/dist/collection/components/cpsl-alert/cpsl-alert.js +2 -2
  58. package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -1
  59. package/dist/collection/components/cpsl-animation/cpsl-animation.js +1 -1
  60. package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js +20 -4
  61. package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js.map +1 -1
  62. package/dist/collection/components/cpsl-avatar/cpsl-avatar.js +1 -1
  63. package/dist/collection/components/cpsl-button/cpsl-button.css +113 -17
  64. package/dist/collection/components/cpsl-button/cpsl-button.js +63 -7
  65. package/dist/collection/components/cpsl-button/cpsl-button.js.map +1 -1
  66. package/dist/collection/components/cpsl-button-group/cpsl-button-group.css +1 -0
  67. package/dist/collection/components/cpsl-button-group/cpsl-button-group.js +1 -1
  68. package/dist/collection/components/cpsl-card/cpsl-card.css +1 -1
  69. package/dist/collection/components/cpsl-card/cpsl-card.js +1 -1
  70. package/dist/collection/components/cpsl-card/cpsl-card.js.map +1 -1
  71. package/dist/collection/components/cpsl-checkbox/cpsl-checkbox.css +2 -2
  72. package/dist/collection/components/cpsl-checkbox/cpsl-checkbox.js +1 -1
  73. package/dist/collection/components/cpsl-code-input/cpsl-code-input.css +1 -1
  74. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +2 -2
  75. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -1
  76. package/dist/collection/components/cpsl-col/cpsl-col.js +1 -1
  77. package/dist/collection/components/cpsl-divider/cpsl-divider.css +1 -1
  78. package/dist/collection/components/cpsl-divider/cpsl-divider.js +1 -1
  79. package/dist/collection/components/cpsl-drawer/cpsl-drawer.js +84 -11
  80. package/dist/collection/components/cpsl-drawer/cpsl-drawer.js.map +1 -1
  81. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +1 -1
  82. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -1
  83. package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.css +211 -0
  84. package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js +406 -0
  85. package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js.map +1 -0
  86. package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.e2e.js +29 -0
  87. package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.e2e.js.map +1 -0
  88. package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.spec.js +37 -0
  89. package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.spec.js.map +1 -0
  90. package/dist/collection/components/cpsl-grid/cpsl-grid.js +2 -2
  91. package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
  92. package/dist/collection/components/cpsl-info-box/cpsl-info-box.css +1 -1
  93. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
  94. package/dist/collection/components/cpsl-input/cpsl-input.css +7 -6
  95. package/dist/collection/components/cpsl-input/cpsl-input.js +3 -8
  96. package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -1
  97. package/dist/collection/components/cpsl-modal/cpsl-modal.css +4 -4
  98. package/dist/collection/components/cpsl-modal/cpsl-modal.js +1 -0
  99. package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +1 -1
  100. package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.css +91 -0
  101. package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js +224 -0
  102. package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js.map +1 -0
  103. package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.e2e.js +29 -0
  104. package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.e2e.js.map +1 -0
  105. package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.spec.js +37 -0
  106. package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.spec.js.map +1 -0
  107. package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js +1 -1
  108. package/dist/collection/components/cpsl-overlay/cpsl-overlay.css +1 -1
  109. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +1 -1
  110. package/dist/collection/components/cpsl-pagination/cpsl-pagination.css +4 -0
  111. package/dist/collection/components/cpsl-pagination/cpsl-pagination.js +1 -1
  112. package/dist/collection/components/cpsl-pagination/cpsl-pagination.js.map +1 -1
  113. package/dist/collection/components/cpsl-pill/cpsl-pill.css +1 -1
  114. package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
  115. package/dist/collection/components/cpsl-popover/cpsl-popover.css +98 -0
  116. package/dist/collection/components/cpsl-popover/cpsl-popover.js +511 -0
  117. package/dist/collection/components/cpsl-popover/cpsl-popover.js.map +1 -0
  118. package/dist/collection/components/cpsl-popover/test/cpsl-popover.e2e.js +29 -0
  119. package/dist/collection/components/cpsl-popover/test/cpsl-popover.e2e.js.map +1 -0
  120. package/dist/collection/components/cpsl-popover/test/cpsl-popover.spec.js +37 -0
  121. package/dist/collection/components/cpsl-popover/test/cpsl-popover.spec.js.map +1 -0
  122. package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.css +3 -3
  123. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.css +1 -1
  124. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +1 -1
  125. package/dist/collection/components/cpsl-radio/cpsl-radio.css +2 -2
  126. package/dist/collection/components/cpsl-radio/cpsl-radio.js +1 -1
  127. package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
  128. package/dist/collection/components/cpsl-select/cpsl-select.css +229 -0
  129. package/dist/collection/components/cpsl-select/cpsl-select.js +409 -0
  130. package/dist/collection/components/cpsl-select/cpsl-select.js.map +1 -0
  131. package/dist/collection/components/cpsl-select/test/cpsl-select.e2e.js +29 -0
  132. package/dist/collection/components/cpsl-select/test/cpsl-select.e2e.js.map +1 -0
  133. package/dist/collection/components/cpsl-select/test/cpsl-select.spec.js +37 -0
  134. package/dist/collection/components/cpsl-select/test/cpsl-select.spec.js.map +1 -0
  135. package/dist/collection/components/cpsl-select-item/cpsl-select-item.css +114 -0
  136. package/dist/collection/components/cpsl-select-item/cpsl-select-item.js +85 -0
  137. package/dist/collection/components/cpsl-select-item/cpsl-select-item.js.map +1 -0
  138. package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.e2e.js +29 -0
  139. package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.e2e.js.map +1 -0
  140. package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.spec.js +37 -0
  141. package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.spec.js.map +1 -0
  142. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.css +3 -3
  143. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +3 -3
  144. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +2 -2
  145. package/dist/collection/components/cpsl-switch/cpsl-switch.css +4 -4
  146. package/dist/collection/components/cpsl-switch/cpsl-switch.js +1 -1
  147. package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
  148. package/dist/collection/components/cpsl-table/cpsl-table.css +48 -60
  149. package/dist/collection/components/cpsl-table/cpsl-table.js +34 -58
  150. package/dist/collection/components/cpsl-table/cpsl-table.js.map +1 -1
  151. package/dist/collection/components/cpsl-tabs/cpsl-tabs.css +2 -2
  152. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +1 -1
  153. package/dist/collection/components/cpsl-text/cpsl-text.css +4 -0
  154. package/dist/collection/components/cpsl-text/cpsl-text.js +5 -4
  155. package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
  156. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.css +1 -1
  157. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
  158. package/dist/collection/constants.js +2 -2
  159. package/dist/collection/constants.js.map +1 -1
  160. package/dist/collection/interface.js.map +1 -1
  161. package/dist/collection/utils/theme/generateBorderRadii.js +40 -39
  162. package/dist/collection/utils/theme/generateBorderRadii.js.map +1 -1
  163. package/dist/collection/utils/theme/generatePalette.js +11 -3
  164. package/dist/collection/utils/theme/generatePalette.js.map +1 -1
  165. package/dist/collection/utils/theme/generateTheme.js +2 -2
  166. package/dist/collection/utils/theme/generateTheme.js.map +1 -1
  167. package/dist/collection/utils/theme/utils.js +1 -0
  168. package/dist/collection/utils/theme/utils.js.map +1 -1
  169. package/dist/esm/capsule.js +11 -11
  170. package/dist/esm/capsule.js.map +1 -1
  171. package/dist/esm/{constants-6acf4ea8.js → constants-fce138fa.js} +3 -3
  172. package/dist/esm/{constants-6acf4ea8.js.map → constants-fce138fa.js.map} +1 -1
  173. package/dist/esm/{cpsl-alert_29.entry.js → cpsl-alert_33.entry.js} +660 -95
  174. package/dist/esm/cpsl-alert_33.entry.js.map +1 -0
  175. package/dist/esm/cpsl-animation.entry.js +2 -2
  176. package/dist/esm/cpsl-col.entry.js +2 -2
  177. package/dist/esm/cpsl-grid.entry.js +3 -3
  178. package/dist/esm/cpsl-info-box.entry.js +3 -3
  179. package/dist/esm/cpsl-info-box.entry.js.map +1 -1
  180. package/dist/esm/cpsl-modal-v2.entry.js +51 -0
  181. package/dist/esm/cpsl-modal-v2.entry.js.map +1 -0
  182. package/dist/esm/cpsl-row.entry.js +2 -2
  183. package/dist/esm/index-b9a060b3.js +1383 -0
  184. package/dist/esm/index-b9a060b3.js.map +1 -0
  185. package/dist/esm/index.js +116 -107
  186. package/dist/esm/index.js.map +1 -1
  187. package/dist/esm/loader.js +3 -3
  188. package/dist/loader/cdn.js +1 -3
  189. package/dist/loader/index.cjs.js +1 -3
  190. package/dist/loader/index.es2017.js +1 -3
  191. package/dist/loader/index.js +1 -3
  192. package/dist/types/assets/icons/index.d.ts +8 -0
  193. package/dist/types/components/cpsl-app-bar/cpsl-app-bar.d.ts +1 -0
  194. package/dist/types/components/cpsl-button/cpsl-button.d.ts +4 -1
  195. package/dist/types/components/cpsl-drawer/cpsl-drawer.d.ts +10 -1
  196. package/dist/types/components/cpsl-file-upload/cpsl-file-upload.d.ts +34 -0
  197. package/dist/types/components/cpsl-input/cpsl-input.d.ts +1 -1
  198. package/dist/types/components/cpsl-modal-v2/cpsl-modal-v2.d.ts +17 -0
  199. package/dist/types/components/cpsl-popover/cpsl-popover.d.ts +35 -0
  200. package/dist/types/components/cpsl-select/cpsl-select.d.ts +38 -0
  201. package/dist/types/components/cpsl-select-item/cpsl-select-item.d.ts +8 -0
  202. package/dist/types/components/cpsl-table/cpsl-table.d.ts +6 -3
  203. package/dist/types/components/cpsl-text/cpsl-text.d.ts +1 -1
  204. package/dist/types/components.d.ts +596 -28
  205. package/dist/types/constants.d.ts +2 -2
  206. package/dist/types/interface.d.ts +68 -1
  207. package/dist/types/stencil-public-runtime.d.ts +3 -8
  208. package/dist/types/utils/theme/generateBorderRadii.d.ts +1 -1
  209. package/dist/types/utils/theme/generateTheme.d.ts +1 -1
  210. package/dist/types/utils/theme/utils.d.ts +4 -1
  211. package/package.json +2 -2
  212. package/dist/capsule/p-107e1ff5.entry.js +0 -29
  213. package/dist/capsule/p-107e1ff5.entry.js.map +0 -1
  214. package/dist/capsule/p-86e48e61.js +0 -3
  215. package/dist/capsule/p-86e48e61.js.map +0 -1
  216. package/dist/capsule/p-ad14a817.entry.js +0 -2
  217. package/dist/capsule/p-b6b38e73.js +0 -2
  218. package/dist/capsule/p-b6b38e73.js.map +0 -1
  219. package/dist/capsule/p-d28b96ba.entry.js +0 -10
  220. package/dist/capsule/p-fcead80b.entry.js +0 -2
  221. package/dist/cjs/cpsl-alert_29.cjs.entry.js.map +0 -1
  222. package/dist/cjs/index-5733071e.js +0 -2020
  223. package/dist/cjs/index-5733071e.js.map +0 -1
  224. package/dist/collection/components/cpsl-table/table-interface.js +0 -2
  225. package/dist/collection/components/cpsl-table/table-interface.js.map +0 -1
  226. package/dist/esm/cpsl-alert_29.entry.js.map +0 -1
  227. package/dist/esm/index-8fe9f35e.js +0 -1990
  228. package/dist/esm/index-8fe9f35e.js.map +0 -1
  229. package/dist/esm/polyfills/core-js.js +0 -11
  230. package/dist/esm/polyfills/dom.js +0 -79
  231. package/dist/esm/polyfills/es5-html-element.js +0 -1
  232. package/dist/esm/polyfills/index.js +0 -34
  233. package/dist/esm/polyfills/system.js +0 -6
  234. package/dist/types/components/cpsl-table/table-interface.d.ts +0 -19
@@ -10,14 +10,12 @@ import { CodeChangeEventDetail } from "./components/cpsl-code-input/code-change-
10
10
  import { DropdownInputEventDetail } from "./components/cpsl-dropdown/dropdown-interface";
11
11
  import { InputChangeEventDetail, InputInputEventDetail } from "./components/cpsl-input/input-interface";
12
12
  import { TabClickEventDetail } from "./components/cpsl-tab/tab-interface";
13
- import { ColDef, RowDef } from "./components/cpsl-table/table-interface";
14
13
  import { TabsChangedEventDetail } from "./components/cpsl-tabs/tabs-interface";
15
14
  export { AutocompleteTypes, IconType, TextFieldTypes } from "./interface";
16
15
  export { CodeChangeEventDetail } from "./components/cpsl-code-input/code-change-interface";
17
16
  export { DropdownInputEventDetail } from "./components/cpsl-dropdown/dropdown-interface";
18
17
  export { InputChangeEventDetail, InputInputEventDetail } from "./components/cpsl-input/input-interface";
19
18
  export { TabClickEventDetail } from "./components/cpsl-tab/tab-interface";
20
- export { ColDef, RowDef } from "./components/cpsl-table/table-interface";
21
19
  export { TabsChangedEventDetail } from "./components/cpsl-tabs/tabs-interface";
22
20
  export namespace Components {
23
21
  interface CpslAlert {
@@ -49,6 +47,10 @@ export namespace Components {
49
47
  * The position of the drawer. Default is `fixed`.
50
48
  */
51
49
  "position"?: 'fixed' | 'static';
50
+ /**
51
+ * Override z-index.
52
+ */
53
+ "zIndexOverride"?: number;
52
54
  }
53
55
  interface CpslAvatar {
54
56
  /**
@@ -65,6 +67,10 @@ export namespace Components {
65
67
  "variant"?: 'round' | 'square';
66
68
  }
67
69
  interface CpslButton {
70
+ /**
71
+ * The tag for the button. Options are: `"button"`, `"a". Default is: `"button"`.
72
+ */
73
+ "as"?: 'button' | 'a';
68
74
  /**
69
75
  * If the button is disabled. Default is: false.
70
76
  */
@@ -73,14 +79,22 @@ export namespace Components {
73
79
  * Whether the button takes the full width of it's container. Default is: false.
74
80
  */
75
81
  "fullWidth"?: boolean;
82
+ /**
83
+ * href to use when using a link.
84
+ */
85
+ "href"?: string;
76
86
  /**
77
87
  * The size of the button. Options are: `"small"`, `"medium". Default is: `"medium"`.
78
88
  */
79
89
  "size"?: 'small' | 'medium';
80
90
  /**
81
- * The variant of the button. Options are: `"primary"`, `"secondary", `"icon". Default is: `"primary"`.
91
+ * target to use when using a link.
92
+ */
93
+ "target"?: string;
94
+ /**
95
+ * The variant of the button. Options are: `"primary"`, `"secondary", `"icon", `"text"`. Default is: `"primary"`.
82
96
  */
83
- "variant"?: 'primary' | 'secondary' | 'icon';
97
+ "variant"?: 'primary' | 'secondary' | 'ghost' | 'destructive';
84
98
  }
85
99
  interface CpslButtonGroup {
86
100
  /**
@@ -223,6 +237,14 @@ export namespace Components {
223
237
  * Side from which the drawer will enter from.
224
238
  */
225
239
  "anchor": 'top' | 'bottom' | 'left' | 'right';
240
+ /**
241
+ * Starting anchor position.
242
+ */
243
+ "anchorPosition"?: number;
244
+ /**
245
+ * Hides the overlay for temporary drawers.
246
+ */
247
+ "noOverlay"?: boolean;
226
248
  /**
227
249
  * Whether the drawer is open or not.
228
250
  */
@@ -230,7 +252,7 @@ export namespace Components {
230
252
  /**
231
253
  * Size (height or width) of the drawer.
232
254
  */
233
- "size": number;
255
+ "size": number | 'auto';
234
256
  /**
235
257
  * Duration in seconds of the open/close animation. Default is 0.15.
236
258
  */
@@ -243,6 +265,10 @@ export namespace Components {
243
265
  * The variant of the drawer. `temporary` drawers will cover content and contain a backdrop. `permanent` drawers will sit beside content, i.e. desktop navigation. Default is `temporary`.
244
266
  */
245
267
  "variant"?: 'temporary' | 'permanent';
268
+ /**
269
+ * Override z-index.
270
+ */
271
+ "zIndexOverride"?: number;
246
272
  }
247
273
  interface CpslDropdown {
248
274
  /**
@@ -262,6 +288,44 @@ export namespace Components {
262
288
  */
263
289
  "width": string;
264
290
  }
291
+ interface CpslFileUpload {
292
+ /**
293
+ * Error text to show below the input. If this is provided the input will enter an error state.
294
+ */
295
+ "errorText"?: string;
296
+ /**
297
+ * Filename for the external source of the selected file.
298
+ */
299
+ "externalFilename"?: string;
300
+ /**
301
+ * External source for the selected file.
302
+ */
303
+ "externalSrc"?: string;
304
+ /**
305
+ * Valid file types.
306
+ */
307
+ "fileTypes"?: string[];
308
+ /**
309
+ * Helper text to show below the input. If `"errorText"` is provided that will take precedence.
310
+ */
311
+ "helperText"?: string;
312
+ /**
313
+ * The label for the input.
314
+ */
315
+ "label"?: string;
316
+ /**
317
+ * If `true`, the user must fill in a value before submitting a form.
318
+ */
319
+ "required": boolean;
320
+ /**
321
+ * If `true`, the label will display an "optional" tag.
322
+ */
323
+ "showOptionalLabel": boolean;
324
+ /**
325
+ * Function to trigger file upload to server. Returns: boolean indicating success or failure.
326
+ */
327
+ "uploadFile"?: (file: File) => Promise<boolean>;
328
+ }
265
329
  interface CpslGrid {
266
330
  /**
267
331
  * If `true`, the grid will have a fixed width based on the screen size.
@@ -424,6 +488,32 @@ export namespace Components {
424
488
  */
425
489
  "zIndexOverride"?: number;
426
490
  }
491
+ interface CpslModalV2 {
492
+ /**
493
+ * Whether or not to show the modal with a box shadow.
494
+ */
495
+ "elevated": boolean;
496
+ /**
497
+ * Duration in seconds of the modal entering. Default is .15.
498
+ */
499
+ "enterTransitionDuration"?: number;
500
+ /**
501
+ * Duration in seconds of the modal exiting. Default is .15.
502
+ */
503
+ "exitTransitionDuration"?: number;
504
+ /**
505
+ * Whether or not to show the overlay.
506
+ */
507
+ "noOverlay": boolean;
508
+ /**
509
+ * Whether or not to show the modal.
510
+ */
511
+ "open": boolean;
512
+ /**
513
+ * Override z-index.
514
+ */
515
+ "zIndexOverride"?: number;
516
+ }
427
517
  interface CpslNavButtonGroup {
428
518
  /**
429
519
  * The id of the selected button.
@@ -468,6 +558,56 @@ export namespace Components {
468
558
  */
469
559
  "text": string;
470
560
  }
561
+ interface CpslPopover {
562
+ /**
563
+ * ID for the element that the popover anchors to.
564
+ */
565
+ "anchorEl"?: HTMLElement;
566
+ /**
567
+ * Vertical anchor origin. Options are: `"left"`, `"center"`, `"right"`. Default is: `"left"`.
568
+ */
569
+ "anchorOriginHorizontal"?: 'left' | 'center' | 'right';
570
+ /**
571
+ * Vertical anchor origin. Options are: `"top"`, `"center"`, `"bottom"`. Default is: `"bottom"`.
572
+ */
573
+ "anchorOriginVertical"?: 'top' | 'center' | 'bottom';
574
+ /**
575
+ * If `true` the container will use the width of the content, else it will be set to the width of the trigger. Default is `true`
576
+ */
577
+ "autoWidth"?: boolean;
578
+ /**
579
+ * Call to close the popover manually.
580
+ */
581
+ "closePopover": () => Promise<void>;
582
+ /**
583
+ * Whether or not to disable to popover.
584
+ */
585
+ "disabled": boolean;
586
+ /**
587
+ * Used internally to prevent select from blurring unintentionally.
588
+ */
589
+ "preventBlur": boolean;
590
+ /**
591
+ * Vertical transformation origin. Options are: `"left"`, `"center"`, `"right"`. Default is: `"left"`.
592
+ */
593
+ "transformOriginHorizontal"?: 'left' | 'center' | 'right';
594
+ /**
595
+ * Vertical transformation origin. Options are: `"top"`, `"center"`, `"bottom"`. Default is: `"bottom"`.
596
+ */
597
+ "transformOriginVertical"?: 'top' | 'center' | 'bottom';
598
+ /**
599
+ * ID for the element that triggers the popover to open.
600
+ */
601
+ "trigger": string;
602
+ /**
603
+ * Which trigger causes the popover to open. Options are: `"click"`, `"hover"`. Default is: `"click"`.
604
+ */
605
+ "triggerAction": 'click' | 'hover';
606
+ /**
607
+ * Padding from edge of window for the popover container.
608
+ */
609
+ "windowPadding"?: number;
610
+ }
471
611
  interface CpslProgressIndicator {
472
612
  /**
473
613
  * Current zero based step.
@@ -500,6 +640,66 @@ export namespace Components {
500
640
  }
501
641
  interface CpslRow {
502
642
  }
643
+ interface CpslSelect {
644
+ /**
645
+ * If `true`, the user cannot interact with the input.
646
+ */
647
+ "disabled": boolean;
648
+ /**
649
+ * Set the max height of the dropdown.
650
+ */
651
+ "dropdownMaxHeight"?: number;
652
+ /**
653
+ * Error text to show below the input. If this is provided the input will enter an error state.
654
+ */
655
+ "errorText"?: string;
656
+ /**
657
+ * Format value for display when selected.
658
+ */
659
+ "formatValue"?: (value: string) => string;
660
+ /**
661
+ * Helper text to show below the input. If `"errorText"` is provided that will take precedence.
662
+ */
663
+ "helperText"?: string;
664
+ /**
665
+ * ID of the element, must be unique for the popover trigger.
666
+ */
667
+ "id": string;
668
+ /**
669
+ * The label for the input.
670
+ */
671
+ "label"?: string;
672
+ /**
673
+ * Placeholder to display if `selectedValue` is empty.
674
+ */
675
+ "placeholder"?: string;
676
+ /**
677
+ * If `true`, the user must fill in a value before submitting a form.
678
+ */
679
+ "required": boolean;
680
+ /**
681
+ * Value of the selected item.
682
+ */
683
+ "selectedValue"?: string;
684
+ /**
685
+ * Will show the formatted selected item (passed in the `selected-item` slot) in the select rather than the item value.
686
+ */
687
+ "showFormattedSelectedItem"?: boolean;
688
+ /**
689
+ * If `true`, the label will display an "optional" tag.
690
+ */
691
+ "showOptionalLabel": boolean;
692
+ }
693
+ interface CpslSelectItem {
694
+ /**
695
+ * Whether the item is selected or not.
696
+ */
697
+ "selected"?: boolean;
698
+ /**
699
+ * Value of the item.
700
+ */
701
+ "value": string;
702
+ }
503
703
  interface CpslSlideButton {
504
704
  /**
505
705
  * Whether or not the component is disabled. If true, the component will display the `startText`.
@@ -549,14 +749,6 @@ export namespace Components {
549
749
  "tab": string;
550
750
  }
551
751
  interface CpslTable {
552
- /**
553
- * Columns for the table.
554
- */
555
- "columns": ColDef[];
556
- /**
557
- * Data rows for the table.
558
- */
559
- "rows": RowDef[];
560
752
  }
561
753
  interface CpslTabs {
562
754
  /**
@@ -570,9 +762,9 @@ export namespace Components {
570
762
  }
571
763
  interface CpslText {
572
764
  /**
573
- * The color of text. Options are: `"primary"`, `"secondary", `"subtle", `"inverted", `"error". Default is: `"primary"`.
765
+ * The color of text. Options are: `"primary"`, `"secondary", `"tertiary", `"subtle", `"inverted", `"error". Default is: `"primary"`.
574
766
  */
575
- "color"?: 'primary' | 'secondary' | 'subtle' | 'inverted' | 'error';
767
+ "color"?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'inverted' | 'error';
576
768
  /**
577
769
  * The variant of text. Options are: `"body2XS"`, `"bodyXS", `"bodyS", `"bodyM", `"bodyL", `"bodyXL", `"headingXS", `"headingS", `"headingM", `"headingL", `"headingXL", `"heading2XL". Default is: `"bodyM"`.
578
770
  */
@@ -605,6 +797,10 @@ export interface CpslDropdownCustomEvent<T> extends CustomEvent<T> {
605
797
  detail: T;
606
798
  target: HTMLCpslDropdownElement;
607
799
  }
800
+ export interface CpslFileUploadCustomEvent<T> extends CustomEvent<T> {
801
+ detail: T;
802
+ target: HTMLCpslFileUploadElement;
803
+ }
608
804
  export interface CpslInputCustomEvent<T> extends CustomEvent<T> {
609
805
  detail: T;
610
806
  target: HTMLCpslInputElement;
@@ -613,14 +809,30 @@ export interface CpslModalCustomEvent<T> extends CustomEvent<T> {
613
809
  detail: T;
614
810
  target: HTMLCpslModalElement;
615
811
  }
812
+ export interface CpslModalV2CustomEvent<T> extends CustomEvent<T> {
813
+ detail: T;
814
+ target: HTMLCpslModalV2Element;
815
+ }
616
816
  export interface CpslPaginationCustomEvent<T> extends CustomEvent<T> {
617
817
  detail: T;
618
818
  target: HTMLCpslPaginationElement;
619
819
  }
820
+ export interface CpslPopoverCustomEvent<T> extends CustomEvent<T> {
821
+ detail: T;
822
+ target: HTMLCpslPopoverElement;
823
+ }
620
824
  export interface CpslRadioCustomEvent<T> extends CustomEvent<T> {
621
825
  detail: T;
622
826
  target: HTMLCpslRadioElement;
623
827
  }
828
+ export interface CpslSelectCustomEvent<T> extends CustomEvent<T> {
829
+ detail: T;
830
+ target: HTMLCpslSelectElement;
831
+ }
832
+ export interface CpslSelectItemCustomEvent<T> extends CustomEvent<T> {
833
+ detail: T;
834
+ target: HTMLCpslSelectItemElement;
835
+ }
624
836
  export interface CpslSlideButtonCustomEvent<T> extends CustomEvent<T> {
625
837
  detail: T;
626
838
  target: HTMLCpslSlideButtonElement;
@@ -749,6 +961,27 @@ declare global {
749
961
  prototype: HTMLCpslDropdownElement;
750
962
  new (): HTMLCpslDropdownElement;
751
963
  };
964
+ interface HTMLCpslFileUploadElementEventMap {
965
+ "cpslOnDrop": DragEvent;
966
+ "cpslOnDragEnter": DragEvent;
967
+ "cpslOnDragLeave": DragEvent;
968
+ "cpslFileChange": File;
969
+ "cpslFileRemoved": void;
970
+ }
971
+ interface HTMLCpslFileUploadElement extends Components.CpslFileUpload, HTMLStencilElement {
972
+ addEventListener<K extends keyof HTMLCpslFileUploadElementEventMap>(type: K, listener: (this: HTMLCpslFileUploadElement, ev: CpslFileUploadCustomEvent<HTMLCpslFileUploadElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
973
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
974
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
975
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
976
+ removeEventListener<K extends keyof HTMLCpslFileUploadElementEventMap>(type: K, listener: (this: HTMLCpslFileUploadElement, ev: CpslFileUploadCustomEvent<HTMLCpslFileUploadElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
977
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
978
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
979
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
980
+ }
981
+ var HTMLCpslFileUploadElement: {
982
+ prototype: HTMLCpslFileUploadElement;
983
+ new (): HTMLCpslFileUploadElement;
984
+ };
752
985
  interface HTMLCpslGridElement extends Components.CpslGrid, HTMLStencilElement {
753
986
  }
754
987
  var HTMLCpslGridElement: {
@@ -809,6 +1042,26 @@ declare global {
809
1042
  prototype: HTMLCpslModalElement;
810
1043
  new (): HTMLCpslModalElement;
811
1044
  };
1045
+ interface HTMLCpslModalV2ElementEventMap {
1046
+ "cpslModalEntering": null;
1047
+ "cpslModalEntered": null;
1048
+ "cpslModalExiting": null;
1049
+ "cpslModalExited": null;
1050
+ }
1051
+ interface HTMLCpslModalV2Element extends Components.CpslModalV2, HTMLStencilElement {
1052
+ addEventListener<K extends keyof HTMLCpslModalV2ElementEventMap>(type: K, listener: (this: HTMLCpslModalV2Element, ev: CpslModalV2CustomEvent<HTMLCpslModalV2ElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
1053
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1054
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1055
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1056
+ removeEventListener<K extends keyof HTMLCpslModalV2ElementEventMap>(type: K, listener: (this: HTMLCpslModalV2Element, ev: CpslModalV2CustomEvent<HTMLCpslModalV2ElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
1057
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1058
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1059
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1060
+ }
1061
+ var HTMLCpslModalV2Element: {
1062
+ prototype: HTMLCpslModalV2Element;
1063
+ new (): HTMLCpslModalV2Element;
1064
+ };
812
1065
  interface HTMLCpslNavButtonGroupElement extends Components.CpslNavButtonGroup, HTMLStencilElement {
813
1066
  }
814
1067
  var HTMLCpslNavButtonGroupElement: {
@@ -844,6 +1097,24 @@ declare global {
844
1097
  prototype: HTMLCpslPillElement;
845
1098
  new (): HTMLCpslPillElement;
846
1099
  };
1100
+ interface HTMLCpslPopoverElementEventMap {
1101
+ "cpslOpen": void;
1102
+ "cpslClose": void;
1103
+ }
1104
+ interface HTMLCpslPopoverElement extends Components.CpslPopover, HTMLStencilElement {
1105
+ addEventListener<K extends keyof HTMLCpslPopoverElementEventMap>(type: K, listener: (this: HTMLCpslPopoverElement, ev: CpslPopoverCustomEvent<HTMLCpslPopoverElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
1106
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1107
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1108
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1109
+ removeEventListener<K extends keyof HTMLCpslPopoverElementEventMap>(type: K, listener: (this: HTMLCpslPopoverElement, ev: CpslPopoverCustomEvent<HTMLCpslPopoverElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
1110
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1111
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1112
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1113
+ }
1114
+ var HTMLCpslPopoverElement: {
1115
+ prototype: HTMLCpslPopoverElement;
1116
+ new (): HTMLCpslPopoverElement;
1117
+ };
847
1118
  interface HTMLCpslProgressIndicatorElement extends Components.CpslProgressIndicator, HTMLStencilElement {
848
1119
  }
849
1120
  var HTMLCpslProgressIndicatorElement: {
@@ -879,6 +1150,42 @@ declare global {
879
1150
  prototype: HTMLCpslRowElement;
880
1151
  new (): HTMLCpslRowElement;
881
1152
  };
1153
+ interface HTMLCpslSelectElementEventMap {
1154
+ "cpslBlur": FocusEvent;
1155
+ "cpslFocus": FocusEvent;
1156
+ "cpslSelectValueChange": string;
1157
+ }
1158
+ interface HTMLCpslSelectElement extends Components.CpslSelect, HTMLStencilElement {
1159
+ addEventListener<K extends keyof HTMLCpslSelectElementEventMap>(type: K, listener: (this: HTMLCpslSelectElement, ev: CpslSelectCustomEvent<HTMLCpslSelectElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
1160
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1161
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1162
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1163
+ removeEventListener<K extends keyof HTMLCpslSelectElementEventMap>(type: K, listener: (this: HTMLCpslSelectElement, ev: CpslSelectCustomEvent<HTMLCpslSelectElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
1164
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1165
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1166
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1167
+ }
1168
+ var HTMLCpslSelectElement: {
1169
+ prototype: HTMLCpslSelectElement;
1170
+ new (): HTMLCpslSelectElement;
1171
+ };
1172
+ interface HTMLCpslSelectItemElementEventMap {
1173
+ "cpslSelectItemClick": string;
1174
+ }
1175
+ interface HTMLCpslSelectItemElement extends Components.CpslSelectItem, HTMLStencilElement {
1176
+ addEventListener<K extends keyof HTMLCpslSelectItemElementEventMap>(type: K, listener: (this: HTMLCpslSelectItemElement, ev: CpslSelectItemCustomEvent<HTMLCpslSelectItemElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
1177
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1178
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1179
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1180
+ removeEventListener<K extends keyof HTMLCpslSelectItemElementEventMap>(type: K, listener: (this: HTMLCpslSelectItemElement, ev: CpslSelectItemCustomEvent<HTMLCpslSelectItemElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
1181
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1182
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1183
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1184
+ }
1185
+ var HTMLCpslSelectItemElement: {
1186
+ prototype: HTMLCpslSelectItemElement;
1187
+ new (): HTMLCpslSelectItemElement;
1188
+ };
882
1189
  interface HTMLCpslSlideButtonElementEventMap {
883
1190
  "cpslComplete": boolean;
884
1191
  }
@@ -986,19 +1293,24 @@ declare global {
986
1293
  "cpsl-divider": HTMLCpslDividerElement;
987
1294
  "cpsl-drawer": HTMLCpslDrawerElement;
988
1295
  "cpsl-dropdown": HTMLCpslDropdownElement;
1296
+ "cpsl-file-upload": HTMLCpslFileUploadElement;
989
1297
  "cpsl-grid": HTMLCpslGridElement;
990
1298
  "cpsl-icon": HTMLCpslIconElement;
991
1299
  "cpsl-info-box": HTMLCpslInfoBoxElement;
992
1300
  "cpsl-input": HTMLCpslInputElement;
993
1301
  "cpsl-modal": HTMLCpslModalElement;
1302
+ "cpsl-modal-v2": HTMLCpslModalV2Element;
994
1303
  "cpsl-nav-button-group": HTMLCpslNavButtonGroupElement;
995
1304
  "cpsl-overlay": HTMLCpslOverlayElement;
996
1305
  "cpsl-pagination": HTMLCpslPaginationElement;
997
1306
  "cpsl-pill": HTMLCpslPillElement;
1307
+ "cpsl-popover": HTMLCpslPopoverElement;
998
1308
  "cpsl-progress-indicator": HTMLCpslProgressIndicatorElement;
999
1309
  "cpsl-qr-code": HTMLCpslQrCodeElement;
1000
1310
  "cpsl-radio": HTMLCpslRadioElement;
1001
1311
  "cpsl-row": HTMLCpslRowElement;
1312
+ "cpsl-select": HTMLCpslSelectElement;
1313
+ "cpsl-select-item": HTMLCpslSelectItemElement;
1002
1314
  "cpsl-slide-button": HTMLCpslSlideButtonElement;
1003
1315
  "cpsl-spinner": HTMLCpslSpinnerElement;
1004
1316
  "cpsl-switch": HTMLCpslSwitchElement;
@@ -1035,6 +1347,10 @@ declare namespace LocalJSX {
1035
1347
  * The position of the drawer. Default is `fixed`.
1036
1348
  */
1037
1349
  "position"?: 'fixed' | 'static';
1350
+ /**
1351
+ * Override z-index.
1352
+ */
1353
+ "zIndexOverride"?: number;
1038
1354
  }
1039
1355
  interface CpslAvatar {
1040
1356
  /**
@@ -1051,6 +1367,10 @@ declare namespace LocalJSX {
1051
1367
  "variant"?: 'round' | 'square';
1052
1368
  }
1053
1369
  interface CpslButton {
1370
+ /**
1371
+ * The tag for the button. Options are: `"button"`, `"a". Default is: `"button"`.
1372
+ */
1373
+ "as"?: 'button' | 'a';
1054
1374
  /**
1055
1375
  * If the button is disabled. Default is: false.
1056
1376
  */
@@ -1059,14 +1379,22 @@ declare namespace LocalJSX {
1059
1379
  * Whether the button takes the full width of it's container. Default is: false.
1060
1380
  */
1061
1381
  "fullWidth"?: boolean;
1382
+ /**
1383
+ * href to use when using a link.
1384
+ */
1385
+ "href"?: string;
1062
1386
  /**
1063
1387
  * The size of the button. Options are: `"small"`, `"medium". Default is: `"medium"`.
1064
1388
  */
1065
1389
  "size"?: 'small' | 'medium';
1066
1390
  /**
1067
- * The variant of the button. Options are: `"primary"`, `"secondary", `"icon". Default is: `"primary"`.
1391
+ * target to use when using a link.
1392
+ */
1393
+ "target"?: string;
1394
+ /**
1395
+ * The variant of the button. Options are: `"primary"`, `"secondary", `"icon", `"text"`. Default is: `"primary"`.
1068
1396
  */
1069
- "variant"?: 'primary' | 'secondary' | 'icon';
1397
+ "variant"?: 'primary' | 'secondary' | 'ghost' | 'destructive';
1070
1398
  }
1071
1399
  interface CpslButtonGroup {
1072
1400
  /**
@@ -1217,6 +1545,14 @@ declare namespace LocalJSX {
1217
1545
  * Side from which the drawer will enter from.
1218
1546
  */
1219
1547
  "anchor"?: 'top' | 'bottom' | 'left' | 'right';
1548
+ /**
1549
+ * Starting anchor position.
1550
+ */
1551
+ "anchorPosition"?: number;
1552
+ /**
1553
+ * Hides the overlay for temporary drawers.
1554
+ */
1555
+ "noOverlay"?: boolean;
1220
1556
  /**
1221
1557
  * Whether the drawer is open or not.
1222
1558
  */
@@ -1224,7 +1560,7 @@ declare namespace LocalJSX {
1224
1560
  /**
1225
1561
  * Size (height or width) of the drawer.
1226
1562
  */
1227
- "size"?: number;
1563
+ "size"?: number | 'auto';
1228
1564
  /**
1229
1565
  * Duration in seconds of the open/close animation. Default is 0.15.
1230
1566
  */
@@ -1237,6 +1573,10 @@ declare namespace LocalJSX {
1237
1573
  * The variant of the drawer. `temporary` drawers will cover content and contain a backdrop. `permanent` drawers will sit beside content, i.e. desktop navigation. Default is `temporary`.
1238
1574
  */
1239
1575
  "variant"?: 'temporary' | 'permanent';
1576
+ /**
1577
+ * Override z-index.
1578
+ */
1579
+ "zIndexOverride"?: number;
1240
1580
  }
1241
1581
  interface CpslDropdown {
1242
1582
  /**
@@ -1260,6 +1600,64 @@ declare namespace LocalJSX {
1260
1600
  */
1261
1601
  "width"?: string;
1262
1602
  }
1603
+ interface CpslFileUpload {
1604
+ /**
1605
+ * Error text to show below the input. If this is provided the input will enter an error state.
1606
+ */
1607
+ "errorText"?: string;
1608
+ /**
1609
+ * Filename for the external source of the selected file.
1610
+ */
1611
+ "externalFilename"?: string;
1612
+ /**
1613
+ * External source for the selected file.
1614
+ */
1615
+ "externalSrc"?: string;
1616
+ /**
1617
+ * Valid file types.
1618
+ */
1619
+ "fileTypes"?: string[];
1620
+ /**
1621
+ * Helper text to show below the input. If `"errorText"` is provided that will take precedence.
1622
+ */
1623
+ "helperText"?: string;
1624
+ /**
1625
+ * The label for the input.
1626
+ */
1627
+ "label"?: string;
1628
+ /**
1629
+ * Emitted when the file changes.
1630
+ */
1631
+ "onCpslFileChange"?: (event: CpslFileUploadCustomEvent<File>) => void;
1632
+ /**
1633
+ * Emitted when the file is removed.
1634
+ */
1635
+ "onCpslFileRemoved"?: (event: CpslFileUploadCustomEvent<void>) => void;
1636
+ /**
1637
+ * Emitted when the file drag enters the input.
1638
+ */
1639
+ "onCpslOnDragEnter"?: (event: CpslFileUploadCustomEvent<DragEvent>) => void;
1640
+ /**
1641
+ * Emitted when the file drag leaves the input.
1642
+ */
1643
+ "onCpslOnDragLeave"?: (event: CpslFileUploadCustomEvent<DragEvent>) => void;
1644
+ /**
1645
+ * Emitted when the file is dropped in the input.
1646
+ */
1647
+ "onCpslOnDrop"?: (event: CpslFileUploadCustomEvent<DragEvent>) => void;
1648
+ /**
1649
+ * If `true`, the user must fill in a value before submitting a form.
1650
+ */
1651
+ "required"?: boolean;
1652
+ /**
1653
+ * If `true`, the label will display an "optional" tag.
1654
+ */
1655
+ "showOptionalLabel"?: boolean;
1656
+ /**
1657
+ * Function to trigger file upload to server. Returns: boolean indicating success or failure.
1658
+ */
1659
+ "uploadFile"?: (file: File) => Promise<boolean>;
1660
+ }
1263
1661
  interface CpslGrid {
1264
1662
  /**
1265
1663
  * If `true`, the grid will have a fixed width based on the screen size.
@@ -1462,6 +1860,48 @@ declare namespace LocalJSX {
1462
1860
  */
1463
1861
  "zIndexOverride"?: number;
1464
1862
  }
1863
+ interface CpslModalV2 {
1864
+ /**
1865
+ * Whether or not to show the modal with a box shadow.
1866
+ */
1867
+ "elevated"?: boolean;
1868
+ /**
1869
+ * Duration in seconds of the modal entering. Default is .15.
1870
+ */
1871
+ "enterTransitionDuration"?: number;
1872
+ /**
1873
+ * Duration in seconds of the modal exiting. Default is .15.
1874
+ */
1875
+ "exitTransitionDuration"?: number;
1876
+ /**
1877
+ * Whether or not to show the overlay.
1878
+ */
1879
+ "noOverlay"?: boolean;
1880
+ /**
1881
+ * Emitted when enter animation finishes.
1882
+ */
1883
+ "onCpslModalEntered"?: (event: CpslModalV2CustomEvent<null>) => void;
1884
+ /**
1885
+ * Emitted when enter animation starts.
1886
+ */
1887
+ "onCpslModalEntering"?: (event: CpslModalV2CustomEvent<null>) => void;
1888
+ /**
1889
+ * Emitted when exit animation finishes.
1890
+ */
1891
+ "onCpslModalExited"?: (event: CpslModalV2CustomEvent<null>) => void;
1892
+ /**
1893
+ * Emitted when exit animation starts.
1894
+ */
1895
+ "onCpslModalExiting"?: (event: CpslModalV2CustomEvent<null>) => void;
1896
+ /**
1897
+ * Whether or not to show the modal.
1898
+ */
1899
+ "open"?: boolean;
1900
+ /**
1901
+ * Override z-index.
1902
+ */
1903
+ "zIndexOverride"?: number;
1904
+ }
1465
1905
  interface CpslNavButtonGroup {
1466
1906
  /**
1467
1907
  * The id of the selected button.
@@ -1510,6 +1950,60 @@ declare namespace LocalJSX {
1510
1950
  */
1511
1951
  "text"?: string;
1512
1952
  }
1953
+ interface CpslPopover {
1954
+ /**
1955
+ * ID for the element that the popover anchors to.
1956
+ */
1957
+ "anchorEl"?: HTMLElement;
1958
+ /**
1959
+ * Vertical anchor origin. Options are: `"left"`, `"center"`, `"right"`. Default is: `"left"`.
1960
+ */
1961
+ "anchorOriginHorizontal"?: 'left' | 'center' | 'right';
1962
+ /**
1963
+ * Vertical anchor origin. Options are: `"top"`, `"center"`, `"bottom"`. Default is: `"bottom"`.
1964
+ */
1965
+ "anchorOriginVertical"?: 'top' | 'center' | 'bottom';
1966
+ /**
1967
+ * If `true` the container will use the width of the content, else it will be set to the width of the trigger. Default is `true`
1968
+ */
1969
+ "autoWidth"?: boolean;
1970
+ /**
1971
+ * Whether or not to disable to popover.
1972
+ */
1973
+ "disabled"?: boolean;
1974
+ /**
1975
+ * Emitted when the popover closes.
1976
+ */
1977
+ "onCpslClose"?: (event: CpslPopoverCustomEvent<void>) => void;
1978
+ /**
1979
+ * Emitted when the popover opens.
1980
+ */
1981
+ "onCpslOpen"?: (event: CpslPopoverCustomEvent<void>) => void;
1982
+ /**
1983
+ * Used internally to prevent select from blurring unintentionally.
1984
+ */
1985
+ "preventBlur"?: boolean;
1986
+ /**
1987
+ * Vertical transformation origin. Options are: `"left"`, `"center"`, `"right"`. Default is: `"left"`.
1988
+ */
1989
+ "transformOriginHorizontal"?: 'left' | 'center' | 'right';
1990
+ /**
1991
+ * Vertical transformation origin. Options are: `"top"`, `"center"`, `"bottom"`. Default is: `"bottom"`.
1992
+ */
1993
+ "transformOriginVertical"?: 'top' | 'center' | 'bottom';
1994
+ /**
1995
+ * ID for the element that triggers the popover to open.
1996
+ */
1997
+ "trigger"?: string;
1998
+ /**
1999
+ * Which trigger causes the popover to open. Options are: `"click"`, `"hover"`. Default is: `"click"`.
2000
+ */
2001
+ "triggerAction"?: 'click' | 'hover';
2002
+ /**
2003
+ * Padding from edge of window for the popover container.
2004
+ */
2005
+ "windowPadding"?: number;
2006
+ }
1513
2007
  interface CpslProgressIndicator {
1514
2008
  /**
1515
2009
  * Current zero based step.
@@ -1546,6 +2040,78 @@ declare namespace LocalJSX {
1546
2040
  }
1547
2041
  interface CpslRow {
1548
2042
  }
2043
+ interface CpslSelect {
2044
+ /**
2045
+ * If `true`, the user cannot interact with the input.
2046
+ */
2047
+ "disabled"?: boolean;
2048
+ /**
2049
+ * Set the max height of the dropdown.
2050
+ */
2051
+ "dropdownMaxHeight"?: number;
2052
+ /**
2053
+ * Error text to show below the input. If this is provided the input will enter an error state.
2054
+ */
2055
+ "errorText"?: string;
2056
+ /**
2057
+ * Format value for display when selected.
2058
+ */
2059
+ "formatValue"?: (value: string) => string;
2060
+ /**
2061
+ * Helper text to show below the input. If `"errorText"` is provided that will take precedence.
2062
+ */
2063
+ "helperText"?: string;
2064
+ /**
2065
+ * ID of the element, must be unique for the popover trigger.
2066
+ */
2067
+ "id"?: string;
2068
+ /**
2069
+ * The label for the input.
2070
+ */
2071
+ "label"?: string;
2072
+ /**
2073
+ * Emitted when the input loses focus.
2074
+ */
2075
+ "onCpslBlur"?: (event: CpslSelectCustomEvent<FocusEvent>) => void;
2076
+ /**
2077
+ * Emitted when the input has focus.
2078
+ */
2079
+ "onCpslFocus"?: (event: CpslSelectCustomEvent<FocusEvent>) => void;
2080
+ /**
2081
+ * Emitted when the value changes.
2082
+ */
2083
+ "onCpslSelectValueChange"?: (event: CpslSelectCustomEvent<string>) => void;
2084
+ /**
2085
+ * Placeholder to display if `selectedValue` is empty.
2086
+ */
2087
+ "placeholder"?: string;
2088
+ /**
2089
+ * If `true`, the user must fill in a value before submitting a form.
2090
+ */
2091
+ "required"?: boolean;
2092
+ /**
2093
+ * Value of the selected item.
2094
+ */
2095
+ "selectedValue"?: string;
2096
+ /**
2097
+ * Will show the formatted selected item (passed in the `selected-item` slot) in the select rather than the item value.
2098
+ */
2099
+ "showFormattedSelectedItem"?: boolean;
2100
+ /**
2101
+ * If `true`, the label will display an "optional" tag.
2102
+ */
2103
+ "showOptionalLabel"?: boolean;
2104
+ }
2105
+ interface CpslSelectItem {
2106
+ /**
2107
+ * Whether the item is selected or not.
2108
+ */
2109
+ "selected"?: boolean;
2110
+ /**
2111
+ * Value of the item.
2112
+ */
2113
+ "value"?: string;
2114
+ }
1549
2115
  interface CpslSlideButton {
1550
2116
  /**
1551
2117
  * Whether or not the component is disabled. If true, the component will display the `startText`.
@@ -1603,14 +2169,6 @@ declare namespace LocalJSX {
1603
2169
  "tab"?: string;
1604
2170
  }
1605
2171
  interface CpslTable {
1606
- /**
1607
- * Columns for the table.
1608
- */
1609
- "columns"?: ColDef[];
1610
- /**
1611
- * Data rows for the table.
1612
- */
1613
- "rows"?: RowDef[];
1614
2172
  }
1615
2173
  interface CpslTabs {
1616
2174
  /**
@@ -1628,9 +2186,9 @@ declare namespace LocalJSX {
1628
2186
  }
1629
2187
  interface CpslText {
1630
2188
  /**
1631
- * The color of text. Options are: `"primary"`, `"secondary", `"subtle", `"inverted", `"error". Default is: `"primary"`.
2189
+ * The color of text. Options are: `"primary"`, `"secondary", `"tertiary", `"subtle", `"inverted", `"error". Default is: `"primary"`.
1632
2190
  */
1633
- "color"?: 'primary' | 'secondary' | 'subtle' | 'inverted' | 'error';
2191
+ "color"?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'inverted' | 'error';
1634
2192
  /**
1635
2193
  * The variant of text. Options are: `"body2XS"`, `"bodyXS", `"bodyS", `"bodyM", `"bodyL", `"bodyXL", `"headingXS", `"headingS", `"headingM", `"headingL", `"headingXL", `"heading2XL". Default is: `"bodyM"`.
1636
2194
  */
@@ -1664,19 +2222,24 @@ declare namespace LocalJSX {
1664
2222
  "cpsl-divider": CpslDivider;
1665
2223
  "cpsl-drawer": CpslDrawer;
1666
2224
  "cpsl-dropdown": CpslDropdown;
2225
+ "cpsl-file-upload": CpslFileUpload;
1667
2226
  "cpsl-grid": CpslGrid;
1668
2227
  "cpsl-icon": CpslIcon;
1669
2228
  "cpsl-info-box": CpslInfoBox;
1670
2229
  "cpsl-input": CpslInput;
1671
2230
  "cpsl-modal": CpslModal;
2231
+ "cpsl-modal-v2": CpslModalV2;
1672
2232
  "cpsl-nav-button-group": CpslNavButtonGroup;
1673
2233
  "cpsl-overlay": CpslOverlay;
1674
2234
  "cpsl-pagination": CpslPagination;
1675
2235
  "cpsl-pill": CpslPill;
2236
+ "cpsl-popover": CpslPopover;
1676
2237
  "cpsl-progress-indicator": CpslProgressIndicator;
1677
2238
  "cpsl-qr-code": CpslQrCode;
1678
2239
  "cpsl-radio": CpslRadio;
1679
2240
  "cpsl-row": CpslRow;
2241
+ "cpsl-select": CpslSelect;
2242
+ "cpsl-select-item": CpslSelectItem;
1680
2243
  "cpsl-slide-button": CpslSlideButton;
1681
2244
  "cpsl-spinner": CpslSpinner;
1682
2245
  "cpsl-switch": CpslSwitch;
@@ -1704,19 +2267,24 @@ declare module "@stencil/core" {
1704
2267
  "cpsl-divider": LocalJSX.CpslDivider & JSXBase.HTMLAttributes<HTMLCpslDividerElement>;
1705
2268
  "cpsl-drawer": LocalJSX.CpslDrawer & JSXBase.HTMLAttributes<HTMLCpslDrawerElement>;
1706
2269
  "cpsl-dropdown": LocalJSX.CpslDropdown & JSXBase.HTMLAttributes<HTMLCpslDropdownElement>;
2270
+ "cpsl-file-upload": LocalJSX.CpslFileUpload & JSXBase.HTMLAttributes<HTMLCpslFileUploadElement>;
1707
2271
  "cpsl-grid": LocalJSX.CpslGrid & JSXBase.HTMLAttributes<HTMLCpslGridElement>;
1708
2272
  "cpsl-icon": LocalJSX.CpslIcon & JSXBase.HTMLAttributes<HTMLCpslIconElement>;
1709
2273
  "cpsl-info-box": LocalJSX.CpslInfoBox & JSXBase.HTMLAttributes<HTMLCpslInfoBoxElement>;
1710
2274
  "cpsl-input": LocalJSX.CpslInput & JSXBase.HTMLAttributes<HTMLCpslInputElement>;
1711
2275
  "cpsl-modal": LocalJSX.CpslModal & JSXBase.HTMLAttributes<HTMLCpslModalElement>;
2276
+ "cpsl-modal-v2": LocalJSX.CpslModalV2 & JSXBase.HTMLAttributes<HTMLCpslModalV2Element>;
1712
2277
  "cpsl-nav-button-group": LocalJSX.CpslNavButtonGroup & JSXBase.HTMLAttributes<HTMLCpslNavButtonGroupElement>;
1713
2278
  "cpsl-overlay": LocalJSX.CpslOverlay & JSXBase.HTMLAttributes<HTMLCpslOverlayElement>;
1714
2279
  "cpsl-pagination": LocalJSX.CpslPagination & JSXBase.HTMLAttributes<HTMLCpslPaginationElement>;
1715
2280
  "cpsl-pill": LocalJSX.CpslPill & JSXBase.HTMLAttributes<HTMLCpslPillElement>;
2281
+ "cpsl-popover": LocalJSX.CpslPopover & JSXBase.HTMLAttributes<HTMLCpslPopoverElement>;
1716
2282
  "cpsl-progress-indicator": LocalJSX.CpslProgressIndicator & JSXBase.HTMLAttributes<HTMLCpslProgressIndicatorElement>;
1717
2283
  "cpsl-qr-code": LocalJSX.CpslQrCode & JSXBase.HTMLAttributes<HTMLCpslQrCodeElement>;
1718
2284
  "cpsl-radio": LocalJSX.CpslRadio & JSXBase.HTMLAttributes<HTMLCpslRadioElement>;
1719
2285
  "cpsl-row": LocalJSX.CpslRow & JSXBase.HTMLAttributes<HTMLCpslRowElement>;
2286
+ "cpsl-select": LocalJSX.CpslSelect & JSXBase.HTMLAttributes<HTMLCpslSelectElement>;
2287
+ "cpsl-select-item": LocalJSX.CpslSelectItem & JSXBase.HTMLAttributes<HTMLCpslSelectItemElement>;
1720
2288
  "cpsl-slide-button": LocalJSX.CpslSlideButton & JSXBase.HTMLAttributes<HTMLCpslSlideButtonElement>;
1721
2289
  "cpsl-spinner": LocalJSX.CpslSpinner & JSXBase.HTMLAttributes<HTMLCpslSpinnerElement>;
1722
2290
  "cpsl-switch": LocalJSX.CpslSwitch & JSXBase.HTMLAttributes<HTMLCpslSwitchElement>;