@usecapsule/core-components 2.0.3 → 2.0.4-dev.dropdown.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (319) 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-7a2b95de.entry.js +29 -0
  10. package/dist/capsule/p-7a2b95de.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} +4104 -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 +88 -0
  262. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +118 -0
  263. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -0
  264. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js +29 -0
  265. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js.map +1 -0
  266. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js +37 -0
  267. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js.map +1 -0
  268. package/dist/collection/components/cpsl-grid/cpsl-grid.js +2 -2
  269. package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
  270. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
  271. package/dist/collection/components/cpsl-input/cpsl-input.css +3 -3
  272. package/dist/collection/components/cpsl-input/cpsl-input.js +2 -2
  273. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +1 -1
  274. package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
  275. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +1 -1
  276. package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
  277. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +3 -3
  278. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +2 -2
  279. package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
  280. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +1 -1
  281. package/dist/collection/components/cpsl-text/cpsl-text.css +101 -0
  282. package/dist/collection/components/cpsl-text/cpsl-text.js +110 -1
  283. package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
  284. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
  285. package/dist/collection/index.js +1 -1
  286. package/dist/collection/index.js.map +1 -1
  287. package/dist/collection/interface.js.map +1 -1
  288. package/dist/collection/utils/theme/generateFont.js +25 -4
  289. package/dist/collection/utils/theme/generateFont.js.map +1 -1
  290. package/dist/collection/utils/theme/generateTheme.js +2 -3
  291. package/dist/collection/utils/theme/generateTheme.js.map +1 -1
  292. package/dist/esm/capsule.js +1 -1
  293. package/dist/esm/{cpsl-alert_17.entry.js → cpsl-alert_18.entry.js} +4104 -17
  294. package/dist/esm/cpsl-alert_18.entry.js.map +1 -0
  295. package/dist/esm/cpsl-grid.entry.js +2 -2
  296. package/dist/esm/cpsl-info-box.entry.js +1 -1
  297. package/dist/esm/cpsl-row.entry.js +1 -1
  298. package/dist/esm/index-f00e090c.js +2 -2
  299. package/dist/esm/index.js +28 -8
  300. package/dist/esm/index.js.map +1 -1
  301. package/dist/esm/loader.js +1 -1
  302. package/dist/types/assets/icons/index.d.ts +235 -0
  303. package/dist/types/components/cpsl-dropdown/cpsl-dropdown.d.ts +26 -0
  304. package/dist/types/components/cpsl-text/cpsl-text.d.ts +4 -0
  305. package/dist/types/components.d.ts +53 -0
  306. package/dist/types/index.d.ts +1 -1
  307. package/dist/types/interface.d.ts +15 -0
  308. package/dist/types/utils/theme/generateFont.d.ts +1 -1
  309. package/dist/types/utils/theme/generateTheme.d.ts +1 -2
  310. package/package.json +2 -3
  311. package/dist/capsule/p-81a385a0.entry.js +0 -29
  312. package/dist/capsule/p-81a385a0.entry.js.map +0 -1
  313. package/dist/capsule/p-f604b591.entry.js +0 -2
  314. package/dist/cjs/cpsl-alert_17.cjs.entry.js.map +0 -1
  315. package/dist/esm/cpsl-alert_17.entry.js.map +0 -1
  316. /package/dist/capsule/{p-68c73705.entry.js.map → p-0cab90fa.entry.js.map} +0 -0
  317. /package/dist/capsule/{p-91412151.entry.js.map → p-193ac141.entry.js.map} +0 -0
  318. /package/dist/capsule/{p-f604b591.entry.js.map → p-cb8dc0a4.entry.js.map} +0 -0
  319. /package/dist/types/Users/{taylorbosch → vinay}/Documents/GitHub/Capsule/component-library/core/.stencil/scripts/buildIconLibrary.d.ts +0 -0
@@ -168,6 +168,16 @@ export namespace Components {
168
168
  }
169
169
  interface CpslDivider {
170
170
  }
171
+ interface CpslDropdown {
172
+ /**
173
+ * Items to be presented in the dropdown
174
+ */
175
+ "items": Array<{ icon: IconType, label: string, value: string, selectedLabel?: string }>;
176
+ /**
177
+ * Width of the dropdown
178
+ */
179
+ "width": string;
180
+ }
171
181
  interface CpslGrid {
172
182
  /**
173
183
  * If `true`, the grid will have a fixed width based on the screen size.
@@ -421,6 +431,18 @@ export namespace Components {
421
431
  "selectedTab"?: string;
422
432
  }
423
433
  interface CpslText {
434
+ /**
435
+ * The color of text. Options are: `"primary"`, `"secondary", `"subtle", `"inverted", `"error". Default is: `"primary"`.
436
+ */
437
+ "color"?: 'primary' | 'secondary' | 'subtle' | 'inverted' | 'error';
438
+ /**
439
+ * The variant of text. Options are: `"body2XS"`, `"bodyXS", `"bodyS", `"bodyM", `"bodyL", `"bodyXL", `"headingXS", `"headingS", `"headingM", `"headingL", `"headingXL", `"heading2XL". Default is: `"bodyM"`.
440
+ */
441
+ "variant"?: 'body2XS' | 'bodyXS' | 'bodyS' | 'bodyM' | 'bodyL' | 'bodyXL' | 'headingXS' | 'headingS' | 'headingM' | 'headingL' | 'headingXL' | 'heading2XL';
442
+ /**
443
+ * The weight of text. Options are: `"regular"`, `"medium", `"semiBold", `"bold". Default is: `"regular"`.
444
+ */
445
+ "weight"?: 'regular' | 'medium' | 'semiBold' | 'bold';
424
446
  }
425
447
  interface CpslTileButton {
426
448
  /**
@@ -505,6 +527,12 @@ declare global {
505
527
  prototype: HTMLCpslDividerElement;
506
528
  new (): HTMLCpslDividerElement;
507
529
  };
530
+ interface HTMLCpslDropdownElement extends Components.CpslDropdown, HTMLStencilElement {
531
+ }
532
+ var HTMLCpslDropdownElement: {
533
+ prototype: HTMLCpslDropdownElement;
534
+ new (): HTMLCpslDropdownElement;
535
+ };
508
536
  interface HTMLCpslGridElement extends Components.CpslGrid, HTMLStencilElement {
509
537
  }
510
538
  var HTMLCpslGridElement: {
@@ -671,6 +699,7 @@ declare global {
671
699
  "cpsl-code-input": HTMLCpslCodeInputElement;
672
700
  "cpsl-col": HTMLCpslColElement;
673
701
  "cpsl-divider": HTMLCpslDividerElement;
702
+ "cpsl-dropdown": HTMLCpslDropdownElement;
674
703
  "cpsl-grid": HTMLCpslGridElement;
675
704
  "cpsl-icon": HTMLCpslIconElement;
676
705
  "cpsl-info-box": HTMLCpslInfoBoxElement;
@@ -842,6 +871,16 @@ declare namespace LocalJSX {
842
871
  }
843
872
  interface CpslDivider {
844
873
  }
874
+ interface CpslDropdown {
875
+ /**
876
+ * Items to be presented in the dropdown
877
+ */
878
+ "items"?: Array<{ icon: IconType, label: string, value: string, selectedLabel?: string }>;
879
+ /**
880
+ * Width of the dropdown
881
+ */
882
+ "width"?: string;
883
+ }
845
884
  interface CpslGrid {
846
885
  /**
847
886
  * If `true`, the grid will have a fixed width based on the screen size.
@@ -1139,6 +1178,18 @@ declare namespace LocalJSX {
1139
1178
  "selectedTab"?: string;
1140
1179
  }
1141
1180
  interface CpslText {
1181
+ /**
1182
+ * The color of text. Options are: `"primary"`, `"secondary", `"subtle", `"inverted", `"error". Default is: `"primary"`.
1183
+ */
1184
+ "color"?: 'primary' | 'secondary' | 'subtle' | 'inverted' | 'error';
1185
+ /**
1186
+ * The variant of text. Options are: `"body2XS"`, `"bodyXS", `"bodyS", `"bodyM", `"bodyL", `"bodyXL", `"headingXS", `"headingS", `"headingM", `"headingL", `"headingXL", `"heading2XL". Default is: `"bodyM"`.
1187
+ */
1188
+ "variant"?: 'body2XS' | 'bodyXS' | 'bodyS' | 'bodyM' | 'bodyL' | 'bodyXL' | 'headingXS' | 'headingS' | 'headingM' | 'headingL' | 'headingXL' | 'heading2XL';
1189
+ /**
1190
+ * The weight of text. Options are: `"regular"`, `"medium", `"semiBold", `"bold". Default is: `"regular"`.
1191
+ */
1192
+ "weight"?: 'regular' | 'medium' | 'semiBold' | 'bold';
1142
1193
  }
1143
1194
  interface CpslTileButton {
1144
1195
  /**
@@ -1157,6 +1208,7 @@ declare namespace LocalJSX {
1157
1208
  "cpsl-code-input": CpslCodeInput;
1158
1209
  "cpsl-col": CpslCol;
1159
1210
  "cpsl-divider": CpslDivider;
1211
+ "cpsl-dropdown": CpslDropdown;
1160
1212
  "cpsl-grid": CpslGrid;
1161
1213
  "cpsl-icon": CpslIcon;
1162
1214
  "cpsl-info-box": CpslInfoBox;
@@ -1185,6 +1237,7 @@ declare module "@stencil/core" {
1185
1237
  "cpsl-code-input": LocalJSX.CpslCodeInput & JSXBase.HTMLAttributes<HTMLCpslCodeInputElement>;
1186
1238
  "cpsl-col": LocalJSX.CpslCol & JSXBase.HTMLAttributes<HTMLCpslColElement>;
1187
1239
  "cpsl-divider": LocalJSX.CpslDivider & JSXBase.HTMLAttributes<HTMLCpslDividerElement>;
1240
+ "cpsl-dropdown": LocalJSX.CpslDropdown & JSXBase.HTMLAttributes<HTMLCpslDropdownElement>;
1188
1241
  "cpsl-grid": LocalJSX.CpslGrid & JSXBase.HTMLAttributes<HTMLCpslGridElement>;
1189
1242
  "cpsl-icon": LocalJSX.CpslIcon & JSXBase.HTMLAttributes<HTMLCpslIconElement>;
1190
1243
  "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.3",
3
+ "version": "2.0.4-dev.dropdown.0",
4
4
  "description": "Capsule Core Components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -49,6 +49,5 @@
49
49
  "sass": "^1.71.1",
50
50
  "stencil-inline-svg": "^1.1.0",
51
51
  "ts-node": "^10.9.2"
52
- },
53
- "gitHead": "a3491397ca74229897e10b5140cc417af3eaed14"
52
+ }
54
53
  }