@usecapsule/core-components 2.0.9 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (218) hide show
  1. package/css/capsule-core.css +54 -19
  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-415384b7.entry.js → p-0d0a0037.entry.js} +2 -2
  8. package/dist/capsule/p-4d8e4d86.entry.js +29 -0
  9. package/dist/capsule/p-4d8e4d86.entry.js.map +1 -0
  10. package/dist/capsule/p-86e48e61.js +3 -0
  11. package/dist/capsule/p-86e48e61.js.map +1 -0
  12. package/dist/capsule/p-ad14a817.entry.js +2 -0
  13. package/dist/capsule/p-b6b38e73.js +2 -0
  14. package/dist/capsule/p-b6b38e73.js.map +1 -0
  15. package/dist/capsule/p-d28b96ba.entry.js +10 -0
  16. package/dist/capsule/{p-b76350fd.entry.js.map → p-d28b96ba.entry.js.map} +1 -1
  17. package/dist/capsule/{p-4d957466.entry.js → p-fa078837.entry.js} +2 -2
  18. package/dist/capsule/{p-fa4e3c14.entry.js → p-fcead80b.entry.js} +2 -2
  19. package/dist/cjs/capsule.cjs.js +2 -2
  20. package/dist/cjs/constants-0869a780.js +29 -0
  21. package/dist/cjs/constants-0869a780.js.map +1 -0
  22. package/dist/cjs/{cpsl-alert_18.cjs.entry.js → cpsl-alert_29.cjs.entry.js} +598 -185
  23. package/dist/cjs/cpsl-alert_29.cjs.entry.js.map +1 -0
  24. package/dist/cjs/cpsl-animation.cjs.entry.js +2 -2
  25. package/dist/cjs/cpsl-col.cjs.entry.js +2 -2
  26. package/dist/cjs/cpsl-grid.cjs.entry.js +3 -3
  27. package/dist/cjs/cpsl-info-box.cjs.entry.js +2 -2
  28. package/dist/cjs/cpsl-row.cjs.entry.js +2 -2
  29. package/dist/cjs/{index-87ba56f9.js → index-5733071e.js} +6 -3
  30. package/dist/cjs/index-5733071e.js.map +1 -0
  31. package/dist/cjs/index.cjs.js +53 -24
  32. package/dist/cjs/index.cjs.js.map +1 -1
  33. package/dist/cjs/loader.cjs.js +2 -2
  34. package/dist/collection/assets/icons/check-circle.svg +3 -0
  35. package/dist/collection/assets/icons/home.svg +3 -0
  36. package/dist/collection/assets/icons/index.js +4 -1
  37. package/dist/collection/assets/icons/index.js.map +1 -1
  38. package/dist/collection/assets/icons/settings.svg +4 -0
  39. package/dist/collection/collection-manifest.json +11 -0
  40. package/dist/collection/components/cpsl-alert/cpsl-alert.css +21 -11
  41. package/dist/collection/components/cpsl-alert/cpsl-alert.js +34 -26
  42. package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -1
  43. package/dist/collection/components/cpsl-animation/cpsl-animation.js +1 -1
  44. package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.css +67 -0
  45. package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js +69 -0
  46. package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js.map +1 -0
  47. package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.e2e.js +29 -0
  48. package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.e2e.js.map +1 -0
  49. package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.spec.js +37 -0
  50. package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.spec.js.map +1 -0
  51. package/dist/collection/components/cpsl-avatar/cpsl-avatar.css +31 -0
  52. package/dist/collection/components/cpsl-avatar/cpsl-avatar.js +81 -0
  53. package/dist/collection/components/cpsl-avatar/cpsl-avatar.js.map +1 -0
  54. package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.e2e.js +29 -0
  55. package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.e2e.js.map +1 -0
  56. package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.spec.js +37 -0
  57. package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.spec.js.map +1 -0
  58. package/dist/collection/components/cpsl-button/cpsl-button.css +175 -51
  59. package/dist/collection/components/cpsl-button/cpsl-button.js +46 -5
  60. package/dist/collection/components/cpsl-button/cpsl-button.js.map +1 -1
  61. package/dist/collection/components/cpsl-button-group/cpsl-button-group.css +88 -0
  62. package/dist/collection/components/cpsl-button-group/cpsl-button-group.js +78 -0
  63. package/dist/collection/components/cpsl-button-group/cpsl-button-group.js.map +1 -0
  64. package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.e2e.js +29 -0
  65. package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.e2e.js.map +1 -0
  66. package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.spec.js +37 -0
  67. package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.spec.js.map +1 -0
  68. package/dist/collection/components/cpsl-card/cpsl-card.css +81 -0
  69. package/dist/collection/components/cpsl-card/cpsl-card.js +19 -0
  70. package/dist/collection/components/cpsl-card/cpsl-card.js.map +1 -0
  71. package/dist/collection/components/cpsl-card/test/cpsl-card.e2e.js +29 -0
  72. package/dist/collection/components/cpsl-card/test/cpsl-card.e2e.js.map +1 -0
  73. package/dist/collection/components/cpsl-card/test/cpsl-card.spec.js +37 -0
  74. package/dist/collection/components/cpsl-card/test/cpsl-card.spec.js.map +1 -0
  75. package/dist/collection/components/cpsl-checkbox/cpsl-checkbox.css +110 -0
  76. package/dist/collection/components/cpsl-checkbox/cpsl-checkbox.js +64 -0
  77. package/dist/collection/components/cpsl-checkbox/cpsl-checkbox.js.map +1 -0
  78. package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.e2e.js +29 -0
  79. package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.e2e.js.map +1 -0
  80. package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.spec.js +37 -0
  81. package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.spec.js.map +1 -0
  82. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +1 -1
  83. package/dist/collection/components/cpsl-col/cpsl-col.js +1 -1
  84. package/dist/collection/components/cpsl-divider/cpsl-divider.js +1 -1
  85. package/dist/collection/components/cpsl-drawer/cpsl-drawer.css +90 -0
  86. package/dist/collection/components/cpsl-drawer/cpsl-drawer.js +149 -0
  87. package/dist/collection/components/cpsl-drawer/cpsl-drawer.js.map +1 -0
  88. package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.e2e.js +29 -0
  89. package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.e2e.js.map +1 -0
  90. package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.spec.js +37 -0
  91. package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.spec.js.map +1 -0
  92. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +1 -1
  93. package/dist/collection/components/cpsl-grid/cpsl-grid.js +2 -2
  94. package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
  95. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
  96. package/dist/collection/components/cpsl-input/cpsl-input.css +35 -19
  97. package/dist/collection/components/cpsl-input/cpsl-input.js +47 -6
  98. package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -1
  99. package/dist/collection/components/cpsl-modal/cpsl-modal.css +12 -2
  100. package/dist/collection/components/cpsl-modal/cpsl-modal.js +20 -2
  101. package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +1 -1
  102. package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.css +50 -0
  103. package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js +78 -0
  104. package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js.map +1 -0
  105. package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.e2e.js +29 -0
  106. package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.e2e.js.map +1 -0
  107. package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.spec.js +37 -0
  108. package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.spec.js.map +1 -0
  109. package/dist/collection/components/cpsl-overlay/cpsl-overlay.css +61 -3
  110. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +35 -17
  111. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js.map +1 -1
  112. package/dist/collection/components/cpsl-pagination/cpsl-pagination.css +67 -0
  113. package/dist/collection/components/cpsl-pagination/cpsl-pagination.js +174 -0
  114. package/dist/collection/components/cpsl-pagination/cpsl-pagination.js.map +1 -0
  115. package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.e2e.js +29 -0
  116. package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.e2e.js.map +1 -0
  117. package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.spec.js +37 -0
  118. package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.spec.js.map +1 -0
  119. package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
  120. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +1 -1
  121. package/dist/collection/components/cpsl-radio/cpsl-radio.css +97 -0
  122. package/dist/collection/components/cpsl-radio/cpsl-radio.js +66 -0
  123. package/dist/collection/components/cpsl-radio/cpsl-radio.js.map +1 -0
  124. package/dist/collection/components/cpsl-radio/test/cpsl-radio.e2e.js +29 -0
  125. package/dist/collection/components/cpsl-radio/test/cpsl-radio.e2e.js.map +1 -0
  126. package/dist/collection/components/cpsl-radio/test/cpsl-radio.spec.js +37 -0
  127. package/dist/collection/components/cpsl-radio/test/cpsl-radio.spec.js.map +1 -0
  128. package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
  129. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +3 -3
  130. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +2 -2
  131. package/dist/collection/components/cpsl-switch/cpsl-switch.css +115 -0
  132. package/dist/collection/components/cpsl-switch/cpsl-switch.js +64 -0
  133. package/dist/collection/components/cpsl-switch/cpsl-switch.js.map +1 -0
  134. package/dist/collection/components/cpsl-switch/test/cpsl-switch.e2e.js +29 -0
  135. package/dist/collection/components/cpsl-switch/test/cpsl-switch.e2e.js.map +1 -0
  136. package/dist/collection/components/cpsl-switch/test/cpsl-switch.spec.js +37 -0
  137. package/dist/collection/components/cpsl-switch/test/cpsl-switch.spec.js.map +1 -0
  138. package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
  139. package/dist/collection/components/cpsl-table/cpsl-table.css +179 -0
  140. package/dist/collection/components/cpsl-table/cpsl-table.js +88 -0
  141. package/dist/collection/components/cpsl-table/cpsl-table.js.map +1 -0
  142. package/dist/collection/components/cpsl-table/table-interface.js +2 -0
  143. package/dist/collection/components/cpsl-table/table-interface.js.map +1 -0
  144. package/dist/collection/components/cpsl-table/test/cpsl-table.e2e.js +29 -0
  145. package/dist/collection/components/cpsl-table/test/cpsl-table.e2e.js.map +1 -0
  146. package/dist/collection/components/cpsl-table/test/cpsl-table.spec.js +37 -0
  147. package/dist/collection/components/cpsl-table/test/cpsl-table.spec.js.map +1 -0
  148. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +1 -1
  149. package/dist/collection/components/cpsl-text/cpsl-text.js +1 -1
  150. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
  151. package/dist/collection/constants.js +14 -0
  152. package/dist/collection/constants.js.map +1 -1
  153. package/dist/collection/interface.js.map +1 -1
  154. package/dist/collection/utils/theme/generateBorderRadii.js +24 -7
  155. package/dist/collection/utils/theme/generateBorderRadii.js.map +1 -1
  156. package/dist/collection/utils/theme/generatePalette.js +22 -18
  157. package/dist/collection/utils/theme/generatePalette.js.map +1 -1
  158. package/dist/collection/utils/theme/utils.js +8 -0
  159. package/dist/collection/utils/theme/utils.js.map +1 -1
  160. package/dist/esm/capsule.js +3 -3
  161. package/dist/esm/constants-6acf4ea8.js +23 -0
  162. package/dist/esm/constants-6acf4ea8.js.map +1 -0
  163. package/dist/esm/{cpsl-alert_18.entry.js → cpsl-alert_29.entry.js} +588 -186
  164. package/dist/esm/cpsl-alert_29.entry.js.map +1 -0
  165. package/dist/esm/cpsl-animation.entry.js +2 -2
  166. package/dist/esm/cpsl-col.entry.js +2 -2
  167. package/dist/esm/cpsl-grid.entry.js +3 -3
  168. package/dist/esm/cpsl-info-box.entry.js +2 -2
  169. package/dist/esm/cpsl-row.entry.js +2 -2
  170. package/dist/esm/{index-fd970ca2.js → index-8fe9f35e.js} +6 -3
  171. package/dist/esm/index-8fe9f35e.js.map +1 -0
  172. package/dist/esm/index.js +53 -24
  173. package/dist/esm/index.js.map +1 -1
  174. package/dist/esm/loader.js +3 -3
  175. package/dist/types/assets/icons/index.d.ts +3 -0
  176. package/dist/types/components/cpsl-alert/cpsl-alert.d.ts +2 -2
  177. package/dist/types/components/cpsl-app-bar/cpsl-app-bar.d.ts +5 -0
  178. package/dist/types/components/cpsl-avatar/cpsl-avatar.d.ts +6 -0
  179. package/dist/types/components/cpsl-button/cpsl-button.d.ts +2 -0
  180. package/dist/types/components/cpsl-button-group/cpsl-button-group.d.ts +9 -0
  181. package/dist/types/components/cpsl-card/cpsl-card.d.ts +3 -0
  182. package/dist/types/components/cpsl-checkbox/cpsl-checkbox.d.ts +7 -0
  183. package/dist/types/components/cpsl-drawer/cpsl-drawer.d.ts +9 -0
  184. package/dist/types/components/cpsl-input/cpsl-input.d.ts +4 -0
  185. package/dist/types/components/cpsl-modal/cpsl-modal.d.ts +1 -0
  186. package/dist/types/components/cpsl-nav-button-group/cpsl-nav-button-group.d.ts +9 -0
  187. package/dist/types/components/cpsl-overlay/cpsl-overlay.d.ts +2 -1
  188. package/dist/types/components/cpsl-pagination/cpsl-pagination.d.ts +14 -0
  189. package/dist/types/components/cpsl-radio/cpsl-radio.d.ts +7 -0
  190. package/dist/types/components/cpsl-switch/cpsl-switch.d.ts +7 -0
  191. package/dist/types/components/cpsl-table/cpsl-table.d.ts +9 -0
  192. package/dist/types/components/cpsl-table/table-interface.d.ts +19 -0
  193. package/dist/types/components.d.ts +435 -6
  194. package/dist/types/constants.d.ts +14 -0
  195. package/dist/types/interface.d.ts +35 -0
  196. package/dist/types/utils/theme/utils.d.ts +1 -0
  197. package/package.json +3 -2
  198. package/dist/capsule/p-2ce99420.entry.js +0 -29
  199. package/dist/capsule/p-2ce99420.entry.js.map +0 -1
  200. package/dist/capsule/p-6b02ea8d.entry.js +0 -2
  201. package/dist/capsule/p-b2997f3c.js +0 -3
  202. package/dist/capsule/p-b2997f3c.js.map +0 -1
  203. package/dist/capsule/p-b76350fd.entry.js +0 -10
  204. package/dist/capsule/p-c2bf050b.js +0 -2
  205. package/dist/capsule/p-c2bf050b.js.map +0 -1
  206. package/dist/cjs/constants-4bb85cc5.js +0 -12
  207. package/dist/cjs/constants-4bb85cc5.js.map +0 -1
  208. package/dist/cjs/cpsl-alert_18.cjs.entry.js.map +0 -1
  209. package/dist/cjs/index-87ba56f9.js.map +0 -1
  210. package/dist/esm/constants-7b49abd5.js +0 -9
  211. package/dist/esm/constants-7b49abd5.js.map +0 -1
  212. package/dist/esm/cpsl-alert_18.entry.js.map +0 -1
  213. package/dist/esm/index-fd970ca2.js.map +0 -1
  214. /package/dist/capsule/{p-415384b7.entry.js.map → p-0d0a0037.entry.js.map} +0 -0
  215. /package/dist/capsule/{p-6b02ea8d.entry.js.map → p-ad14a817.entry.js.map} +0 -0
  216. /package/dist/capsule/{p-4d957466.entry.js.map → p-fa078837.entry.js.map} +0 -0
  217. /package/dist/capsule/{p-fa4e3c14.entry.js.map → p-fcead80b.entry.js.map} +0 -0
  218. /package/dist/types/Users/{vinay → taylorbosch}/Documents/GitHub/Capsule/component-library/core/.stencil/scripts/buildIconLibrary.d.ts +0 -0
@@ -0,0 +1,19 @@
1
+ type ValueGetterFn = <V, R>(value: V, row: RowDef) => R;
2
+ type RenderCellFn = <V>(value: V, row: RowDef) => HTMLElement;
3
+ export interface ColDef {
4
+ field: string;
5
+ headerName: string;
6
+ width?: number;
7
+ flex?: number;
8
+ minWidth?: number;
9
+ maxWidth?: number;
10
+ align?: 'left' | 'center' | 'right';
11
+ valueGetter?: ValueGetterFn;
12
+ renderCell?: RenderCellFn;
13
+ }
14
+ export interface RowDef {
15
+ id: number;
16
+ height?: number;
17
+ [key: string]: any;
18
+ }
19
+ export {};