@usecapsule/core-components 2.0.5 → 2.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (322) hide show
  1. package/css/capsule-core.css +12 -0
  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-68c73705.entry.js → p-0cab90fa.entry.js} +2 -2
  8. package/dist/capsule/{p-91412151.entry.js → p-193ac141.entry.js} +2 -2
  9. package/dist/capsule/p-7c738dc5.entry.js +29 -0
  10. package/dist/capsule/p-7c738dc5.entry.js.map +1 -0
  11. package/dist/capsule/p-cb8dc0a4.entry.js +2 -0
  12. package/dist/cjs/capsule.cjs.js +1 -1
  13. package/dist/cjs/{cpsl-alert_17.cjs.entry.js → cpsl-alert_18.cjs.entry.js} +4114 -16
  14. package/dist/cjs/cpsl-alert_18.cjs.entry.js.map +1 -0
  15. package/dist/cjs/cpsl-grid.cjs.entry.js +2 -2
  16. package/dist/cjs/cpsl-info-box.cjs.entry.js +1 -1
  17. package/dist/cjs/cpsl-row.cjs.entry.js +1 -1
  18. package/dist/cjs/index-3fccb5b4.js +2 -2
  19. package/dist/cjs/index.cjs.js +28 -8
  20. package/dist/cjs/index.cjs.js.map +1 -1
  21. package/dist/cjs/loader.cjs.js +1 -1
  22. package/dist/collection/assets/icons/AD.svg +15 -0
  23. package/dist/collection/assets/icons/AE.svg +13 -0
  24. package/dist/collection/assets/icons/AF.svg +14 -0
  25. package/dist/collection/assets/icons/AG.svg +15 -0
  26. package/dist/collection/assets/icons/AI.svg +19 -0
  27. package/dist/collection/assets/icons/AL.svg +11 -0
  28. package/dist/collection/assets/icons/AM.svg +12 -0
  29. package/dist/collection/assets/icons/AO.svg +14 -0
  30. package/dist/collection/assets/icons/AR.svg +13 -0
  31. package/dist/collection/assets/icons/AS.svg +15 -0
  32. package/dist/collection/assets/icons/AT.svg +12 -0
  33. package/dist/collection/assets/icons/AU.svg +20 -0
  34. package/dist/collection/assets/icons/AW.svg +15 -0
  35. package/dist/collection/assets/icons/AX.svg +15 -0
  36. package/dist/collection/assets/icons/AZ.svg +14 -0
  37. package/dist/collection/assets/icons/BA.svg +13 -0
  38. package/dist/collection/assets/icons/BB.svg +13 -0
  39. package/dist/collection/assets/icons/BD.svg +11 -0
  40. package/dist/collection/assets/icons/BE.svg +12 -0
  41. package/dist/collection/assets/icons/BF.svg +12 -0
  42. package/dist/collection/assets/icons/BG.svg +12 -0
  43. package/dist/collection/assets/icons/BH.svg +11 -0
  44. package/dist/collection/assets/icons/BI.svg +18 -0
  45. package/dist/collection/assets/icons/BJ.svg +12 -0
  46. package/dist/collection/assets/icons/BL.svg +16 -0
  47. package/dist/collection/assets/icons/BM.svg +20 -0
  48. package/dist/collection/assets/icons/BN.svg +19 -0
  49. package/dist/collection/assets/icons/BO.svg +12 -0
  50. package/dist/collection/assets/icons/BQ.svg +14 -0
  51. package/dist/collection/assets/icons/BQ2.svg +20 -0
  52. package/dist/collection/assets/icons/BQ3.svg +15 -0
  53. package/dist/collection/assets/icons/BR.svg +14 -0
  54. package/dist/collection/assets/icons/BS.svg +13 -0
  55. package/dist/collection/assets/icons/BT.svg +12 -0
  56. package/dist/collection/assets/icons/BW.svg +13 -0
  57. package/dist/collection/assets/icons/BY.svg +18 -0
  58. package/dist/collection/assets/icons/BZ.svg +17 -0
  59. package/dist/collection/assets/icons/CA.svg +13 -0
  60. package/dist/collection/assets/icons/CC.svg +19 -0
  61. package/dist/collection/assets/icons/CD.svg +12 -0
  62. package/dist/collection/assets/icons/CD2.svg +14 -0
  63. package/dist/collection/assets/icons/CF.svg +20 -0
  64. package/dist/collection/assets/icons/CH.svg +11 -0
  65. package/dist/collection/assets/icons/CK.svg +22 -0
  66. package/dist/collection/assets/icons/CL.svg +13 -0
  67. package/dist/collection/assets/icons/CM.svg +13 -0
  68. package/dist/collection/assets/icons/CN.svg +15 -0
  69. package/dist/collection/assets/icons/CO.svg +12 -0
  70. package/dist/collection/assets/icons/CR.svg +13 -0
  71. package/dist/collection/assets/icons/CU.svg +15 -0
  72. package/dist/collection/assets/icons/CW.svg +14 -0
  73. package/dist/collection/assets/icons/CX.svg +19 -0
  74. package/dist/collection/assets/icons/CY.svg +12 -0
  75. package/dist/collection/assets/icons/CZ.svg +12 -0
  76. package/dist/collection/assets/icons/DE.svg +12 -0
  77. package/dist/collection/assets/icons/DJ.svg +13 -0
  78. package/dist/collection/assets/icons/DK.svg +14 -0
  79. package/dist/collection/assets/icons/DM.svg +34 -0
  80. package/dist/collection/assets/icons/DO.svg +17 -0
  81. package/dist/collection/assets/icons/DS.svg +13 -0
  82. package/dist/collection/assets/icons/DZ.svg +13 -0
  83. package/dist/collection/assets/icons/EC.svg +15 -0
  84. package/dist/collection/assets/icons/EE.svg +12 -0
  85. package/dist/collection/assets/icons/EG.svg +13 -0
  86. package/dist/collection/assets/icons/EH.svg +15 -0
  87. package/dist/collection/assets/icons/ER.svg +13 -0
  88. package/dist/collection/assets/icons/ES.svg +12 -0
  89. package/dist/collection/assets/icons/ET.svg +15 -0
  90. package/dist/collection/assets/icons/FI.svg +11 -0
  91. package/dist/collection/assets/icons/FJ.svg +18 -0
  92. package/dist/collection/assets/icons/FK.svg +18 -0
  93. package/dist/collection/assets/icons/FM.svg +14 -0
  94. package/dist/collection/assets/icons/FO.svg +12 -0
  95. package/dist/collection/assets/icons/FR.svg +12 -0
  96. package/dist/collection/assets/icons/GA.svg +12 -0
  97. package/dist/collection/assets/icons/GB-2.svg +11 -0
  98. package/dist/collection/assets/icons/GB.svg +23 -0
  99. package/dist/collection/assets/icons/GD.svg +26 -0
  100. package/dist/collection/assets/icons/GE.svg +15 -0
  101. package/dist/collection/assets/icons/GG.svg +12 -0
  102. package/dist/collection/assets/icons/GH.svg +13 -0
  103. package/dist/collection/assets/icons/GI.svg +13 -0
  104. package/dist/collection/assets/icons/GL.svg +13 -0
  105. package/dist/collection/assets/icons/GM.svg +13 -0
  106. package/dist/collection/assets/icons/GN.svg +12 -0
  107. package/dist/collection/assets/icons/GQ.svg +16 -0
  108. package/dist/collection/assets/icons/GR.svg +15 -0
  109. package/dist/collection/assets/icons/GT.svg +14 -0
  110. package/dist/collection/assets/icons/GU.svg +18 -0
  111. package/dist/collection/assets/icons/GW.svg +14 -0
  112. package/dist/collection/assets/icons/GY.svg +15 -0
  113. package/dist/collection/assets/icons/HK.svg +15 -0
  114. package/dist/collection/assets/icons/HN.svg +17 -0
  115. package/dist/collection/assets/icons/HR.svg +31 -0
  116. package/dist/collection/assets/icons/HT.svg +17 -0
  117. package/dist/collection/assets/icons/HU.svg +12 -0
  118. package/dist/collection/assets/icons/ID.svg +11 -0
  119. package/dist/collection/assets/icons/IE.svg +12 -0
  120. package/dist/collection/assets/icons/IL.svg +13 -0
  121. package/dist/collection/assets/icons/IM.svg +11 -0
  122. package/dist/collection/assets/icons/IN.svg +15 -0
  123. package/dist/collection/assets/icons/IO.svg +29 -0
  124. package/dist/collection/assets/icons/IQ.svg +15 -0
  125. package/dist/collection/assets/icons/IR.svg +13 -0
  126. package/dist/collection/assets/icons/IS.svg +15 -0
  127. package/dist/collection/assets/icons/IT.svg +12 -0
  128. package/dist/collection/assets/icons/JE.svg +13 -0
  129. package/dist/collection/assets/icons/JM.svg +14 -0
  130. package/dist/collection/assets/icons/JO.svg +14 -0
  131. package/dist/collection/assets/icons/JP.svg +11 -0
  132. package/dist/collection/assets/icons/KE.svg +19 -0
  133. package/dist/collection/assets/icons/KG.svg +16 -0
  134. package/dist/collection/assets/icons/KH.svg +13 -0
  135. package/dist/collection/assets/icons/KI.svg +17 -0
  136. package/dist/collection/assets/icons/KM.svg +19 -0
  137. package/dist/collection/assets/icons/KN.svg +15 -0
  138. package/dist/collection/assets/icons/KP.svg +15 -0
  139. package/dist/collection/assets/icons/KR.svg +30 -0
  140. package/dist/collection/assets/icons/KW.svg +13 -0
  141. package/dist/collection/assets/icons/KY.svg +20 -0
  142. package/dist/collection/assets/icons/KZ.svg +13 -0
  143. package/dist/collection/assets/icons/LA.svg +13 -0
  144. package/dist/collection/assets/icons/LB.svg +13 -0
  145. package/dist/collection/assets/icons/LC.svg +13 -0
  146. package/dist/collection/assets/icons/LI.svg +12 -0
  147. package/dist/collection/assets/icons/LK.svg +14 -0
  148. package/dist/collection/assets/icons/LR.svg +23 -0
  149. package/dist/collection/assets/icons/LS.svg +13 -0
  150. package/dist/collection/assets/icons/LT.svg +12 -0
  151. package/dist/collection/assets/icons/LU.svg +12 -0
  152. package/dist/collection/assets/icons/LV.svg +12 -0
  153. package/dist/collection/assets/icons/LY.svg +14 -0
  154. package/dist/collection/assets/icons/MA.svg +11 -0
  155. package/dist/collection/assets/icons/MC.svg +11 -0
  156. package/dist/collection/assets/icons/MD.svg +15 -0
  157. package/dist/collection/assets/icons/ME.svg +15 -0
  158. package/dist/collection/assets/icons/MG.svg +12 -0
  159. package/dist/collection/assets/icons/MH.svg +13 -0
  160. package/dist/collection/assets/icons/MK.svg +20 -0
  161. package/dist/collection/assets/icons/ML.svg +12 -0
  162. package/dist/collection/assets/icons/MM.svg +13 -0
  163. package/dist/collection/assets/icons/MN.svg +19 -0
  164. package/dist/collection/assets/icons/MO.svg +18 -0
  165. package/dist/collection/assets/icons/MP.svg +14 -0
  166. package/dist/collection/assets/icons/MQ.svg +18 -0
  167. package/dist/collection/assets/icons/MR.svg +12 -0
  168. package/dist/collection/assets/icons/MS.svg +17 -0
  169. package/dist/collection/assets/icons/MT.svg +12 -0
  170. package/dist/collection/assets/icons/MU.svg +13 -0
  171. package/dist/collection/assets/icons/MV.svg +12 -0
  172. package/dist/collection/assets/icons/MW.svg +13 -0
  173. package/dist/collection/assets/icons/MX.svg +14 -0
  174. package/dist/collection/assets/icons/MY.svg +17 -0
  175. package/dist/collection/assets/icons/MZ.svg +17 -0
  176. package/dist/collection/assets/icons/NA.svg +14 -0
  177. package/dist/collection/assets/icons/NE.svg +13 -0
  178. package/dist/collection/assets/icons/NF.svg +13 -0
  179. package/dist/collection/assets/icons/NG.svg +12 -0
  180. package/dist/collection/assets/icons/NI.svg +16 -0
  181. package/dist/collection/assets/icons/NL.svg +12 -0
  182. package/dist/collection/assets/icons/NO.svg +15 -0
  183. package/dist/collection/assets/icons/NP.svg +16 -0
  184. package/dist/collection/assets/icons/NR.svg +14 -0
  185. package/dist/collection/assets/icons/NU.svg +20 -0
  186. package/dist/collection/assets/icons/NZ.svg +18 -0
  187. package/dist/collection/assets/icons/OM.svg +15 -0
  188. package/dist/collection/assets/icons/PA.svg +14 -0
  189. package/dist/collection/assets/icons/PE.svg +12 -0
  190. package/dist/collection/assets/icons/PF.svg +17 -0
  191. package/dist/collection/assets/icons/PG.svg +17 -0
  192. package/dist/collection/assets/icons/PH.svg +16 -0
  193. package/dist/collection/assets/icons/PK.svg +14 -0
  194. package/dist/collection/assets/icons/PL.svg +11 -0
  195. package/dist/collection/assets/icons/PN.svg +18 -0
  196. package/dist/collection/assets/icons/PR.svg +15 -0
  197. package/dist/collection/assets/icons/PS.svg +13 -0
  198. package/dist/collection/assets/icons/PT.svg +14 -0
  199. package/dist/collection/assets/icons/PW.svg +11 -0
  200. package/dist/collection/assets/icons/PY.svg +14 -0
  201. package/dist/collection/assets/icons/QA.svg +11 -0
  202. package/dist/collection/assets/icons/RO.svg +12 -0
  203. package/dist/collection/assets/icons/RS.svg +16 -0
  204. package/dist/collection/assets/icons/RU.svg +12 -0
  205. package/dist/collection/assets/icons/RW.svg +13 -0
  206. package/dist/collection/assets/icons/SA.svg +16 -0
  207. package/dist/collection/assets/icons/SB.svg +17 -0
  208. package/dist/collection/assets/icons/SC.svg +14 -0
  209. package/dist/collection/assets/icons/SE.svg +14 -0
  210. package/dist/collection/assets/icons/SG.svg +17 -0
  211. package/dist/collection/assets/icons/SI.svg +13 -0
  212. package/dist/collection/assets/icons/SK.svg +16 -0
  213. package/dist/collection/assets/icons/SL.svg +12 -0
  214. package/dist/collection/assets/icons/SM.svg +16 -0
  215. package/dist/collection/assets/icons/SN.svg +13 -0
  216. package/dist/collection/assets/icons/SO.svg +11 -0
  217. package/dist/collection/assets/icons/SR.svg +14 -0
  218. package/dist/collection/assets/icons/SS.svg +15 -0
  219. package/dist/collection/assets/icons/ST.svg +15 -0
  220. package/dist/collection/assets/icons/SV.svg +15 -0
  221. package/dist/collection/assets/icons/SX.svg +17 -0
  222. package/dist/collection/assets/icons/SY.svg +14 -0
  223. package/dist/collection/assets/icons/SZ.svg +21 -0
  224. package/dist/collection/assets/icons/TC.svg +19 -0
  225. package/dist/collection/assets/icons/TD.svg +12 -0
  226. package/dist/collection/assets/icons/TG.svg +15 -0
  227. package/dist/collection/assets/icons/TH.svg +13 -0
  228. package/dist/collection/assets/icons/TJ.svg +20 -0
  229. package/dist/collection/assets/icons/TK.svg +15 -0
  230. package/dist/collection/assets/icons/TL.svg +13 -0
  231. package/dist/collection/assets/icons/TM.svg +30 -0
  232. package/dist/collection/assets/icons/TN.svg +13 -0
  233. package/dist/collection/assets/icons/TO.svg +12 -0
  234. package/dist/collection/assets/icons/TR.svg +12 -0
  235. package/dist/collection/assets/icons/TT.svg +13 -0
  236. package/dist/collection/assets/icons/TV.svg +25 -0
  237. package/dist/collection/assets/icons/TW.svg +14 -0
  238. package/dist/collection/assets/icons/TZ.svg +13 -0
  239. package/dist/collection/assets/icons/UA.svg +11 -0
  240. package/dist/collection/assets/icons/UG.svg +16 -0
  241. package/dist/collection/assets/icons/US.svg +15 -0
  242. package/dist/collection/assets/icons/UY.svg +16 -0
  243. package/dist/collection/assets/icons/UZ.svg +27 -0
  244. package/dist/collection/assets/icons/VC.svg +15 -0
  245. package/dist/collection/assets/icons/VE.svg +20 -0
  246. package/dist/collection/assets/icons/VG.svg +24 -0
  247. package/dist/collection/assets/icons/VI.svg +18 -0
  248. package/dist/collection/assets/icons/VN.svg +11 -0
  249. package/dist/collection/assets/icons/VU.svg +32 -0
  250. package/dist/collection/assets/icons/WS.svg +16 -0
  251. package/dist/collection/assets/icons/YE.svg +12 -0
  252. package/dist/collection/assets/icons/ZA.svg +15 -0
  253. package/dist/collection/assets/icons/ZM.svg +14 -0
  254. package/dist/collection/assets/icons/ZW.svg +20 -0
  255. package/dist/collection/assets/icons/chevron-up.svg +3 -0
  256. package/dist/collection/assets/icons/earth.svg +11 -0
  257. package/dist/collection/assets/icons/index.js +236 -1
  258. package/dist/collection/assets/icons/index.js.map +1 -1
  259. package/dist/collection/collection-manifest.json +1 -0
  260. package/dist/collection/components/cpsl-alert/cpsl-alert.js +1 -1
  261. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.css +182 -0
  262. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +160 -0
  263. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -0
  264. package/dist/collection/components/cpsl-dropdown/dropdown-interface.js +2 -0
  265. package/dist/collection/components/cpsl-dropdown/dropdown-interface.js.map +1 -0
  266. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js +29 -0
  267. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js.map +1 -0
  268. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js +37 -0
  269. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js.map +1 -0
  270. package/dist/collection/components/cpsl-grid/cpsl-grid.js +2 -2
  271. package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
  272. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
  273. package/dist/collection/components/cpsl-input/cpsl-input.css +3 -3
  274. package/dist/collection/components/cpsl-input/cpsl-input.js +2 -2
  275. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +1 -1
  276. package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
  277. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +1 -1
  278. package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
  279. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +3 -3
  280. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +2 -2
  281. package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
  282. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +1 -1
  283. package/dist/collection/components/cpsl-text/cpsl-text.css +101 -0
  284. package/dist/collection/components/cpsl-text/cpsl-text.js +110 -1
  285. package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
  286. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
  287. package/dist/collection/index.js +1 -1
  288. package/dist/collection/index.js.map +1 -1
  289. package/dist/collection/interface.js.map +1 -1
  290. package/dist/collection/utils/theme/generateFont.js +25 -4
  291. package/dist/collection/utils/theme/generateFont.js.map +1 -1
  292. package/dist/collection/utils/theme/generateTheme.js +2 -3
  293. package/dist/collection/utils/theme/generateTheme.js.map +1 -1
  294. package/dist/esm/capsule.js +1 -1
  295. package/dist/esm/{cpsl-alert_17.entry.js → cpsl-alert_18.entry.js} +4114 -17
  296. package/dist/esm/cpsl-alert_18.entry.js.map +1 -0
  297. package/dist/esm/cpsl-grid.entry.js +2 -2
  298. package/dist/esm/cpsl-info-box.entry.js +1 -1
  299. package/dist/esm/cpsl-row.entry.js +1 -1
  300. package/dist/esm/index-f00e090c.js +2 -2
  301. package/dist/esm/index.js +28 -8
  302. package/dist/esm/index.js.map +1 -1
  303. package/dist/esm/loader.js +1 -1
  304. package/dist/types/assets/icons/index.d.ts +235 -0
  305. package/dist/types/components/cpsl-dropdown/cpsl-dropdown.d.ts +18 -0
  306. package/dist/types/components/cpsl-dropdown/dropdown-interface.d.ts +7 -0
  307. package/dist/types/components/cpsl-text/cpsl-text.d.ts +4 -0
  308. package/dist/types/components.d.ts +74 -0
  309. package/dist/types/index.d.ts +1 -1
  310. package/dist/types/interface.d.ts +15 -0
  311. package/dist/types/utils/theme/generateFont.d.ts +1 -1
  312. package/dist/types/utils/theme/generateTheme.d.ts +1 -2
  313. package/package.json +2 -2
  314. package/dist/capsule/p-cacdef26.entry.js +0 -29
  315. package/dist/capsule/p-cacdef26.entry.js.map +0 -1
  316. package/dist/capsule/p-f604b591.entry.js +0 -2
  317. package/dist/cjs/cpsl-alert_17.cjs.entry.js.map +0 -1
  318. package/dist/esm/cpsl-alert_17.entry.js.map +0 -1
  319. /package/dist/capsule/{p-68c73705.entry.js.map → p-0cab90fa.entry.js.map} +0 -0
  320. /package/dist/capsule/{p-91412151.entry.js.map → p-193ac141.entry.js.map} +0 -0
  321. /package/dist/capsule/{p-f604b591.entry.js.map → p-cb8dc0a4.entry.js.map} +0 -0
  322. /package/dist/types/Users/{taylorbosch → vinay}/Documents/GitHub/Capsule/component-library/core/.stencil/scripts/buildIconLibrary.d.ts +0 -0
@@ -7,11 +7,13 @@
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { AutocompleteTypes, IconType, TextFieldTypes } from "./interface";
9
9
  import { CodeChangeEventDetail } from "./components/cpsl-code-input/code-change-interface";
10
+ import { DropdownInputEventDetail } from "./components/cpsl-dropdown/dropdown-interface";
10
11
  import { InputChangeEventDetail, InputInputEventDetail } from "./components/cpsl-input/input-interface";
11
12
  import { TabClickEventDetail } from "./components/cpsl-tab/tab-interface";
12
13
  import { TabsChangedEventDetail } from "./components/cpsl-tabs/tabs-interface";
13
14
  export { AutocompleteTypes, IconType, TextFieldTypes } from "./interface";
14
15
  export { CodeChangeEventDetail } from "./components/cpsl-code-input/code-change-interface";
16
+ export { DropdownInputEventDetail } from "./components/cpsl-dropdown/dropdown-interface";
15
17
  export { InputChangeEventDetail, InputInputEventDetail } from "./components/cpsl-input/input-interface";
16
18
  export { TabClickEventDetail } from "./components/cpsl-tab/tab-interface";
17
19
  export { TabsChangedEventDetail } from "./components/cpsl-tabs/tabs-interface";
@@ -168,6 +170,16 @@ export namespace Components {
168
170
  }
169
171
  interface CpslDivider {
170
172
  }
173
+ interface CpslDropdown {
174
+ /**
175
+ * Items to be presented in the dropdown
176
+ */
177
+ "items": Array<DropdownInputEventDetail>;
178
+ /**
179
+ * Width of the dropdown
180
+ */
181
+ "width": string;
182
+ }
171
183
  interface CpslGrid {
172
184
  /**
173
185
  * If `true`, the grid will have a fixed width based on the screen size.
@@ -421,6 +433,18 @@ export namespace Components {
421
433
  "selectedTab"?: string;
422
434
  }
423
435
  interface CpslText {
436
+ /**
437
+ * The color of text. Options are: `"primary"`, `"secondary", `"subtle", `"inverted", `"error". Default is: `"primary"`.
438
+ */
439
+ "color"?: 'primary' | 'secondary' | 'subtle' | 'inverted' | 'error';
440
+ /**
441
+ * The variant of text. Options are: `"body2XS"`, `"bodyXS", `"bodyS", `"bodyM", `"bodyL", `"bodyXL", `"headingXS", `"headingS", `"headingM", `"headingL", `"headingXL", `"heading2XL". Default is: `"bodyM"`.
442
+ */
443
+ "variant"?: 'body2XS' | 'bodyXS' | 'bodyS' | 'bodyM' | 'bodyL' | 'bodyXL' | 'headingXS' | 'headingS' | 'headingM' | 'headingL' | 'headingXL' | 'heading2XL';
444
+ /**
445
+ * The weight of text. Options are: `"regular"`, `"medium", `"semiBold", `"bold". Default is: `"regular"`.
446
+ */
447
+ "weight"?: 'regular' | 'medium' | 'semiBold' | 'bold';
424
448
  }
425
449
  interface CpslTileButton {
426
450
  /**
@@ -437,6 +461,10 @@ export interface CpslCodeInputCustomEvent<T> extends CustomEvent<T> {
437
461
  detail: T;
438
462
  target: HTMLCpslCodeInputElement;
439
463
  }
464
+ export interface CpslDropdownCustomEvent<T> extends CustomEvent<T> {
465
+ detail: T;
466
+ target: HTMLCpslDropdownElement;
467
+ }
440
468
  export interface CpslInputCustomEvent<T> extends CustomEvent<T> {
441
469
  detail: T;
442
470
  target: HTMLCpslInputElement;
@@ -505,6 +533,23 @@ declare global {
505
533
  prototype: HTMLCpslDividerElement;
506
534
  new (): HTMLCpslDividerElement;
507
535
  };
536
+ interface HTMLCpslDropdownElementEventMap {
537
+ "selectedItemChange": DropdownInputEventDetail;
538
+ }
539
+ interface HTMLCpslDropdownElement extends Components.CpslDropdown, HTMLStencilElement {
540
+ addEventListener<K extends keyof HTMLCpslDropdownElementEventMap>(type: K, listener: (this: HTMLCpslDropdownElement, ev: CpslDropdownCustomEvent<HTMLCpslDropdownElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
541
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
542
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
543
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
544
+ removeEventListener<K extends keyof HTMLCpslDropdownElementEventMap>(type: K, listener: (this: HTMLCpslDropdownElement, ev: CpslDropdownCustomEvent<HTMLCpslDropdownElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
545
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
546
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
547
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
548
+ }
549
+ var HTMLCpslDropdownElement: {
550
+ prototype: HTMLCpslDropdownElement;
551
+ new (): HTMLCpslDropdownElement;
552
+ };
508
553
  interface HTMLCpslGridElement extends Components.CpslGrid, HTMLStencilElement {
509
554
  }
510
555
  var HTMLCpslGridElement: {
@@ -671,6 +716,7 @@ declare global {
671
716
  "cpsl-code-input": HTMLCpslCodeInputElement;
672
717
  "cpsl-col": HTMLCpslColElement;
673
718
  "cpsl-divider": HTMLCpslDividerElement;
719
+ "cpsl-dropdown": HTMLCpslDropdownElement;
674
720
  "cpsl-grid": HTMLCpslGridElement;
675
721
  "cpsl-icon": HTMLCpslIconElement;
676
722
  "cpsl-info-box": HTMLCpslInfoBoxElement;
@@ -842,6 +888,20 @@ declare namespace LocalJSX {
842
888
  }
843
889
  interface CpslDivider {
844
890
  }
891
+ interface CpslDropdown {
892
+ /**
893
+ * Items to be presented in the dropdown
894
+ */
895
+ "items"?: Array<DropdownInputEventDetail>;
896
+ /**
897
+ * On eve
898
+ */
899
+ "onSelectedItemChange"?: (event: CpslDropdownCustomEvent<DropdownInputEventDetail>) => void;
900
+ /**
901
+ * Width of the dropdown
902
+ */
903
+ "width"?: string;
904
+ }
845
905
  interface CpslGrid {
846
906
  /**
847
907
  * If `true`, the grid will have a fixed width based on the screen size.
@@ -1139,6 +1199,18 @@ declare namespace LocalJSX {
1139
1199
  "selectedTab"?: string;
1140
1200
  }
1141
1201
  interface CpslText {
1202
+ /**
1203
+ * The color of text. Options are: `"primary"`, `"secondary", `"subtle", `"inverted", `"error". Default is: `"primary"`.
1204
+ */
1205
+ "color"?: 'primary' | 'secondary' | 'subtle' | 'inverted' | 'error';
1206
+ /**
1207
+ * The variant of text. Options are: `"body2XS"`, `"bodyXS", `"bodyS", `"bodyM", `"bodyL", `"bodyXL", `"headingXS", `"headingS", `"headingM", `"headingL", `"headingXL", `"heading2XL". Default is: `"bodyM"`.
1208
+ */
1209
+ "variant"?: 'body2XS' | 'bodyXS' | 'bodyS' | 'bodyM' | 'bodyL' | 'bodyXL' | 'headingXS' | 'headingS' | 'headingM' | 'headingL' | 'headingXL' | 'heading2XL';
1210
+ /**
1211
+ * The weight of text. Options are: `"regular"`, `"medium", `"semiBold", `"bold". Default is: `"regular"`.
1212
+ */
1213
+ "weight"?: 'regular' | 'medium' | 'semiBold' | 'bold';
1142
1214
  }
1143
1215
  interface CpslTileButton {
1144
1216
  /**
@@ -1157,6 +1229,7 @@ declare namespace LocalJSX {
1157
1229
  "cpsl-code-input": CpslCodeInput;
1158
1230
  "cpsl-col": CpslCol;
1159
1231
  "cpsl-divider": CpslDivider;
1232
+ "cpsl-dropdown": CpslDropdown;
1160
1233
  "cpsl-grid": CpslGrid;
1161
1234
  "cpsl-icon": CpslIcon;
1162
1235
  "cpsl-info-box": CpslInfoBox;
@@ -1185,6 +1258,7 @@ declare module "@stencil/core" {
1185
1258
  "cpsl-code-input": LocalJSX.CpslCodeInput & JSXBase.HTMLAttributes<HTMLCpslCodeInputElement>;
1186
1259
  "cpsl-col": LocalJSX.CpslCol & JSXBase.HTMLAttributes<HTMLCpslColElement>;
1187
1260
  "cpsl-divider": LocalJSX.CpslDivider & JSXBase.HTMLAttributes<HTMLCpslDividerElement>;
1261
+ "cpsl-dropdown": LocalJSX.CpslDropdown & JSXBase.HTMLAttributes<HTMLCpslDropdownElement>;
1188
1262
  "cpsl-grid": LocalJSX.CpslGrid & JSXBase.HTMLAttributes<HTMLCpslGridElement>;
1189
1263
  "cpsl-icon": LocalJSX.CpslIcon & JSXBase.HTMLAttributes<HTMLCpslIconElement>;
1190
1264
  "cpsl-info-box": LocalJSX.CpslInfoBox & JSXBase.HTMLAttributes<HTMLCpslInfoBoxElement>;
@@ -1,3 +1,3 @@
1
1
  export * from './components';
2
- export { default as generateTheme } from './utils/theme/generateTheme';
2
+ export { generateTheme } from './utils/theme/generateTheme';
3
3
  export type { Theme, BorderRadius } from './interface';
@@ -14,8 +14,23 @@ export type Theme = {
14
14
  borderRadius?: BorderRadius;
15
15
  font?: string;
16
16
  customPalette?: CustomPalette;
17
+ customFontSizes?: CustomFontSizes;
17
18
  };
18
19
  export type BorderRadius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'full';
20
+ export interface CustomFontSizes {
21
+ body2XS?: string;
22
+ bodyXS?: string;
23
+ bodyS?: string;
24
+ bodyM?: string;
25
+ bodyL?: string;
26
+ bodyXL?: string;
27
+ headingXS?: string;
28
+ headingS?: string;
29
+ headingM?: string;
30
+ headingL?: string;
31
+ headingXL?: string;
32
+ heading2XL?: string;
33
+ }
19
34
  export interface CustomPalette {
20
35
  text?: {
21
36
  primary?: string;
@@ -1,2 +1,2 @@
1
1
  import { Theme } from '../../interface';
2
- export declare const generateFont: ({ font }: Pick<Theme, 'font'>) => void;
2
+ export declare const generateFont: ({ font, customFontSizes }: Pick<Theme, 'font' | 'customFontSizes'>) => void;
@@ -1,3 +1,2 @@
1
1
  import { Theme } from '../../interface';
2
- declare const generateTheme: ({ foregroundColor, backgroundColor, font, customPalette, borderRadius }: Theme) => boolean;
3
- export default generateTheme;
2
+ export declare const generateTheme: ({ foregroundColor, backgroundColor, font, customPalette, borderRadius, customFontSizes, }: Theme) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usecapsule/core-components",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "Capsule Core Components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -50,5 +50,5 @@
50
50
  "stencil-inline-svg": "^1.1.0",
51
51
  "ts-node": "^10.9.2"
52
52
  },
53
- "gitHead": "86381310f25b99ed54a91da194b0c9ab2a90b506"
53
+ "gitHead": "bcd461d02f26fd4fb596ec2e883aa991e35a0062"
54
54
  }