@usecapsule/core-components 2.0.4-dev.dropdown.1 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (326) hide show
  1. package/css/capsule-core.css +0 -12
  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-0cab90fa.entry.js → p-68c73705.entry.js} +2 -2
  8. package/dist/capsule/{p-193ac141.entry.js → p-91412151.entry.js} +2 -2
  9. package/dist/capsule/p-cacdef26.entry.js +29 -0
  10. package/dist/capsule/p-cacdef26.entry.js.map +1 -0
  11. package/dist/capsule/p-f604b591.entry.js +2 -0
  12. package/dist/cjs/capsule.cjs.js +1 -1
  13. package/dist/cjs/{cpsl-alert_18.cjs.entry.js → cpsl-alert_17.cjs.entry.js} +45 -4106
  14. package/dist/cjs/cpsl-alert_17.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 +8 -28
  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/decent-brand.svg +3 -0
  23. package/dist/collection/assets/icons/decent.svg +3 -0
  24. package/dist/collection/assets/icons/index.js +6 -236
  25. package/dist/collection/assets/icons/index.js.map +1 -1
  26. package/dist/collection/assets/icons/lightning.svg +3 -0
  27. package/dist/collection/assets/icons/ramp-network-brand.svg +3 -0
  28. package/dist/collection/assets/icons/ramp-network.svg +3 -0
  29. package/dist/collection/collection-manifest.json +0 -1
  30. package/dist/collection/components/cpsl-alert/cpsl-alert.js +1 -1
  31. package/dist/collection/components/cpsl-grid/cpsl-grid.js +2 -2
  32. package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
  33. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
  34. package/dist/collection/components/cpsl-input/cpsl-input.css +3 -3
  35. package/dist/collection/components/cpsl-input/cpsl-input.js +2 -2
  36. package/dist/collection/components/cpsl-modal/cpsl-modal.js +4 -2
  37. package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +1 -1
  38. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +1 -1
  39. package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
  40. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +1 -1
  41. package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
  42. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +3 -3
  43. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +2 -2
  44. package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
  45. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +1 -1
  46. package/dist/collection/components/cpsl-text/cpsl-text.css +0 -101
  47. package/dist/collection/components/cpsl-text/cpsl-text.js +1 -110
  48. package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
  49. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
  50. package/dist/collection/index.js +1 -1
  51. package/dist/collection/index.js.map +1 -1
  52. package/dist/collection/interface.js.map +1 -1
  53. package/dist/collection/utils/theme/generateFont.js +4 -25
  54. package/dist/collection/utils/theme/generateFont.js.map +1 -1
  55. package/dist/collection/utils/theme/generateTheme.js +3 -2
  56. package/dist/collection/utils/theme/generateTheme.js.map +1 -1
  57. package/dist/esm/capsule.js +1 -1
  58. package/dist/esm/{cpsl-alert_18.entry.js → cpsl-alert_17.entry.js} +46 -4106
  59. package/dist/esm/cpsl-alert_17.entry.js.map +1 -0
  60. package/dist/esm/cpsl-grid.entry.js +2 -2
  61. package/dist/esm/cpsl-info-box.entry.js +1 -1
  62. package/dist/esm/cpsl-row.entry.js +1 -1
  63. package/dist/esm/index-f00e090c.js +2 -2
  64. package/dist/esm/index.js +8 -28
  65. package/dist/esm/index.js.map +1 -1
  66. package/dist/esm/loader.js +1 -1
  67. package/dist/types/assets/icons/index.d.ts +5 -235
  68. package/dist/types/components/cpsl-text/cpsl-text.d.ts +0 -4
  69. package/dist/types/components.d.ts +0 -53
  70. package/dist/types/index.d.ts +1 -1
  71. package/dist/types/interface.d.ts +0 -15
  72. package/dist/types/utils/theme/generateFont.d.ts +1 -1
  73. package/dist/types/utils/theme/generateTheme.d.ts +2 -1
  74. package/package.json +3 -2
  75. package/dist/capsule/p-0ff96d5e.entry.js +0 -29
  76. package/dist/capsule/p-0ff96d5e.entry.js.map +0 -1
  77. package/dist/capsule/p-cb8dc0a4.entry.js +0 -2
  78. package/dist/cjs/cpsl-alert_18.cjs.entry.js.map +0 -1
  79. package/dist/collection/assets/icons/AD.svg +0 -15
  80. package/dist/collection/assets/icons/AE.svg +0 -13
  81. package/dist/collection/assets/icons/AF.svg +0 -14
  82. package/dist/collection/assets/icons/AG.svg +0 -15
  83. package/dist/collection/assets/icons/AI.svg +0 -19
  84. package/dist/collection/assets/icons/AL.svg +0 -11
  85. package/dist/collection/assets/icons/AM.svg +0 -12
  86. package/dist/collection/assets/icons/AO.svg +0 -14
  87. package/dist/collection/assets/icons/AR.svg +0 -13
  88. package/dist/collection/assets/icons/AS.svg +0 -15
  89. package/dist/collection/assets/icons/AT.svg +0 -12
  90. package/dist/collection/assets/icons/AU.svg +0 -20
  91. package/dist/collection/assets/icons/AW.svg +0 -15
  92. package/dist/collection/assets/icons/AX.svg +0 -15
  93. package/dist/collection/assets/icons/AZ.svg +0 -14
  94. package/dist/collection/assets/icons/BA.svg +0 -13
  95. package/dist/collection/assets/icons/BB.svg +0 -13
  96. package/dist/collection/assets/icons/BD.svg +0 -11
  97. package/dist/collection/assets/icons/BE.svg +0 -12
  98. package/dist/collection/assets/icons/BF.svg +0 -12
  99. package/dist/collection/assets/icons/BG.svg +0 -12
  100. package/dist/collection/assets/icons/BH.svg +0 -11
  101. package/dist/collection/assets/icons/BI.svg +0 -18
  102. package/dist/collection/assets/icons/BJ.svg +0 -12
  103. package/dist/collection/assets/icons/BL.svg +0 -16
  104. package/dist/collection/assets/icons/BM.svg +0 -20
  105. package/dist/collection/assets/icons/BN.svg +0 -19
  106. package/dist/collection/assets/icons/BO.svg +0 -12
  107. package/dist/collection/assets/icons/BQ.svg +0 -14
  108. package/dist/collection/assets/icons/BQ2.svg +0 -20
  109. package/dist/collection/assets/icons/BQ3.svg +0 -15
  110. package/dist/collection/assets/icons/BR.svg +0 -14
  111. package/dist/collection/assets/icons/BS.svg +0 -13
  112. package/dist/collection/assets/icons/BT.svg +0 -12
  113. package/dist/collection/assets/icons/BW.svg +0 -13
  114. package/dist/collection/assets/icons/BY.svg +0 -18
  115. package/dist/collection/assets/icons/BZ.svg +0 -17
  116. package/dist/collection/assets/icons/CA.svg +0 -13
  117. package/dist/collection/assets/icons/CC.svg +0 -19
  118. package/dist/collection/assets/icons/CD.svg +0 -12
  119. package/dist/collection/assets/icons/CD2.svg +0 -14
  120. package/dist/collection/assets/icons/CF.svg +0 -20
  121. package/dist/collection/assets/icons/CH.svg +0 -11
  122. package/dist/collection/assets/icons/CK.svg +0 -22
  123. package/dist/collection/assets/icons/CL.svg +0 -13
  124. package/dist/collection/assets/icons/CM.svg +0 -13
  125. package/dist/collection/assets/icons/CN.svg +0 -15
  126. package/dist/collection/assets/icons/CO.svg +0 -12
  127. package/dist/collection/assets/icons/CR.svg +0 -13
  128. package/dist/collection/assets/icons/CU.svg +0 -15
  129. package/dist/collection/assets/icons/CW.svg +0 -14
  130. package/dist/collection/assets/icons/CX.svg +0 -19
  131. package/dist/collection/assets/icons/CY.svg +0 -12
  132. package/dist/collection/assets/icons/CZ.svg +0 -12
  133. package/dist/collection/assets/icons/DE.svg +0 -12
  134. package/dist/collection/assets/icons/DJ.svg +0 -13
  135. package/dist/collection/assets/icons/DK.svg +0 -14
  136. package/dist/collection/assets/icons/DM.svg +0 -34
  137. package/dist/collection/assets/icons/DO.svg +0 -17
  138. package/dist/collection/assets/icons/DS.svg +0 -13
  139. package/dist/collection/assets/icons/DZ.svg +0 -13
  140. package/dist/collection/assets/icons/EC.svg +0 -15
  141. package/dist/collection/assets/icons/EE.svg +0 -12
  142. package/dist/collection/assets/icons/EG.svg +0 -13
  143. package/dist/collection/assets/icons/EH.svg +0 -15
  144. package/dist/collection/assets/icons/ER.svg +0 -13
  145. package/dist/collection/assets/icons/ES.svg +0 -12
  146. package/dist/collection/assets/icons/ET.svg +0 -15
  147. package/dist/collection/assets/icons/FI.svg +0 -11
  148. package/dist/collection/assets/icons/FJ.svg +0 -18
  149. package/dist/collection/assets/icons/FK.svg +0 -18
  150. package/dist/collection/assets/icons/FM.svg +0 -14
  151. package/dist/collection/assets/icons/FO.svg +0 -12
  152. package/dist/collection/assets/icons/FR.svg +0 -12
  153. package/dist/collection/assets/icons/GA.svg +0 -12
  154. package/dist/collection/assets/icons/GB-2.svg +0 -11
  155. package/dist/collection/assets/icons/GB.svg +0 -23
  156. package/dist/collection/assets/icons/GD.svg +0 -26
  157. package/dist/collection/assets/icons/GE.svg +0 -15
  158. package/dist/collection/assets/icons/GG.svg +0 -12
  159. package/dist/collection/assets/icons/GH.svg +0 -13
  160. package/dist/collection/assets/icons/GI.svg +0 -13
  161. package/dist/collection/assets/icons/GL.svg +0 -13
  162. package/dist/collection/assets/icons/GM.svg +0 -13
  163. package/dist/collection/assets/icons/GN.svg +0 -12
  164. package/dist/collection/assets/icons/GQ.svg +0 -16
  165. package/dist/collection/assets/icons/GR.svg +0 -15
  166. package/dist/collection/assets/icons/GT.svg +0 -14
  167. package/dist/collection/assets/icons/GU.svg +0 -18
  168. package/dist/collection/assets/icons/GW.svg +0 -14
  169. package/dist/collection/assets/icons/GY.svg +0 -15
  170. package/dist/collection/assets/icons/HK.svg +0 -15
  171. package/dist/collection/assets/icons/HN.svg +0 -17
  172. package/dist/collection/assets/icons/HR.svg +0 -31
  173. package/dist/collection/assets/icons/HT.svg +0 -17
  174. package/dist/collection/assets/icons/HU.svg +0 -12
  175. package/dist/collection/assets/icons/ID.svg +0 -11
  176. package/dist/collection/assets/icons/IE.svg +0 -12
  177. package/dist/collection/assets/icons/IL.svg +0 -13
  178. package/dist/collection/assets/icons/IM.svg +0 -11
  179. package/dist/collection/assets/icons/IN.svg +0 -15
  180. package/dist/collection/assets/icons/IO.svg +0 -29
  181. package/dist/collection/assets/icons/IQ.svg +0 -15
  182. package/dist/collection/assets/icons/IR.svg +0 -13
  183. package/dist/collection/assets/icons/IS.svg +0 -15
  184. package/dist/collection/assets/icons/IT.svg +0 -12
  185. package/dist/collection/assets/icons/JE.svg +0 -13
  186. package/dist/collection/assets/icons/JM.svg +0 -14
  187. package/dist/collection/assets/icons/JO.svg +0 -14
  188. package/dist/collection/assets/icons/JP.svg +0 -11
  189. package/dist/collection/assets/icons/KE.svg +0 -19
  190. package/dist/collection/assets/icons/KG.svg +0 -16
  191. package/dist/collection/assets/icons/KH.svg +0 -13
  192. package/dist/collection/assets/icons/KI.svg +0 -17
  193. package/dist/collection/assets/icons/KM.svg +0 -19
  194. package/dist/collection/assets/icons/KN.svg +0 -15
  195. package/dist/collection/assets/icons/KP.svg +0 -15
  196. package/dist/collection/assets/icons/KR.svg +0 -30
  197. package/dist/collection/assets/icons/KW.svg +0 -13
  198. package/dist/collection/assets/icons/KY.svg +0 -20
  199. package/dist/collection/assets/icons/KZ.svg +0 -13
  200. package/dist/collection/assets/icons/LA.svg +0 -13
  201. package/dist/collection/assets/icons/LB.svg +0 -13
  202. package/dist/collection/assets/icons/LC.svg +0 -13
  203. package/dist/collection/assets/icons/LI.svg +0 -12
  204. package/dist/collection/assets/icons/LK.svg +0 -14
  205. package/dist/collection/assets/icons/LR.svg +0 -23
  206. package/dist/collection/assets/icons/LS.svg +0 -13
  207. package/dist/collection/assets/icons/LT.svg +0 -12
  208. package/dist/collection/assets/icons/LU.svg +0 -12
  209. package/dist/collection/assets/icons/LV.svg +0 -12
  210. package/dist/collection/assets/icons/LY.svg +0 -14
  211. package/dist/collection/assets/icons/MA.svg +0 -11
  212. package/dist/collection/assets/icons/MC.svg +0 -11
  213. package/dist/collection/assets/icons/MD.svg +0 -15
  214. package/dist/collection/assets/icons/ME.svg +0 -15
  215. package/dist/collection/assets/icons/MG.svg +0 -12
  216. package/dist/collection/assets/icons/MH.svg +0 -13
  217. package/dist/collection/assets/icons/MK.svg +0 -20
  218. package/dist/collection/assets/icons/ML.svg +0 -12
  219. package/dist/collection/assets/icons/MM.svg +0 -13
  220. package/dist/collection/assets/icons/MN.svg +0 -19
  221. package/dist/collection/assets/icons/MO.svg +0 -18
  222. package/dist/collection/assets/icons/MP.svg +0 -14
  223. package/dist/collection/assets/icons/MQ.svg +0 -18
  224. package/dist/collection/assets/icons/MR.svg +0 -12
  225. package/dist/collection/assets/icons/MS.svg +0 -17
  226. package/dist/collection/assets/icons/MT.svg +0 -12
  227. package/dist/collection/assets/icons/MU.svg +0 -13
  228. package/dist/collection/assets/icons/MV.svg +0 -12
  229. package/dist/collection/assets/icons/MW.svg +0 -13
  230. package/dist/collection/assets/icons/MX.svg +0 -14
  231. package/dist/collection/assets/icons/MY.svg +0 -17
  232. package/dist/collection/assets/icons/MZ.svg +0 -17
  233. package/dist/collection/assets/icons/NA.svg +0 -14
  234. package/dist/collection/assets/icons/NE.svg +0 -13
  235. package/dist/collection/assets/icons/NF.svg +0 -13
  236. package/dist/collection/assets/icons/NG.svg +0 -12
  237. package/dist/collection/assets/icons/NI.svg +0 -16
  238. package/dist/collection/assets/icons/NL.svg +0 -12
  239. package/dist/collection/assets/icons/NO.svg +0 -15
  240. package/dist/collection/assets/icons/NP.svg +0 -16
  241. package/dist/collection/assets/icons/NR.svg +0 -14
  242. package/dist/collection/assets/icons/NU.svg +0 -20
  243. package/dist/collection/assets/icons/NZ.svg +0 -18
  244. package/dist/collection/assets/icons/OM.svg +0 -15
  245. package/dist/collection/assets/icons/PA.svg +0 -14
  246. package/dist/collection/assets/icons/PE.svg +0 -12
  247. package/dist/collection/assets/icons/PF.svg +0 -17
  248. package/dist/collection/assets/icons/PG.svg +0 -17
  249. package/dist/collection/assets/icons/PH.svg +0 -16
  250. package/dist/collection/assets/icons/PK.svg +0 -14
  251. package/dist/collection/assets/icons/PL.svg +0 -11
  252. package/dist/collection/assets/icons/PN.svg +0 -18
  253. package/dist/collection/assets/icons/PR.svg +0 -15
  254. package/dist/collection/assets/icons/PS.svg +0 -13
  255. package/dist/collection/assets/icons/PT.svg +0 -14
  256. package/dist/collection/assets/icons/PW.svg +0 -11
  257. package/dist/collection/assets/icons/PY.svg +0 -14
  258. package/dist/collection/assets/icons/QA.svg +0 -11
  259. package/dist/collection/assets/icons/RO.svg +0 -12
  260. package/dist/collection/assets/icons/RS.svg +0 -16
  261. package/dist/collection/assets/icons/RU.svg +0 -12
  262. package/dist/collection/assets/icons/RW.svg +0 -13
  263. package/dist/collection/assets/icons/SA.svg +0 -16
  264. package/dist/collection/assets/icons/SB.svg +0 -17
  265. package/dist/collection/assets/icons/SC.svg +0 -14
  266. package/dist/collection/assets/icons/SE.svg +0 -14
  267. package/dist/collection/assets/icons/SG.svg +0 -17
  268. package/dist/collection/assets/icons/SI.svg +0 -13
  269. package/dist/collection/assets/icons/SK.svg +0 -16
  270. package/dist/collection/assets/icons/SL.svg +0 -12
  271. package/dist/collection/assets/icons/SM.svg +0 -16
  272. package/dist/collection/assets/icons/SN.svg +0 -13
  273. package/dist/collection/assets/icons/SO.svg +0 -11
  274. package/dist/collection/assets/icons/SR.svg +0 -14
  275. package/dist/collection/assets/icons/SS.svg +0 -15
  276. package/dist/collection/assets/icons/ST.svg +0 -15
  277. package/dist/collection/assets/icons/SV.svg +0 -15
  278. package/dist/collection/assets/icons/SX.svg +0 -17
  279. package/dist/collection/assets/icons/SY.svg +0 -14
  280. package/dist/collection/assets/icons/SZ.svg +0 -21
  281. package/dist/collection/assets/icons/TC.svg +0 -19
  282. package/dist/collection/assets/icons/TD.svg +0 -12
  283. package/dist/collection/assets/icons/TG.svg +0 -15
  284. package/dist/collection/assets/icons/TH.svg +0 -13
  285. package/dist/collection/assets/icons/TJ.svg +0 -20
  286. package/dist/collection/assets/icons/TK.svg +0 -15
  287. package/dist/collection/assets/icons/TL.svg +0 -13
  288. package/dist/collection/assets/icons/TM.svg +0 -30
  289. package/dist/collection/assets/icons/TN.svg +0 -13
  290. package/dist/collection/assets/icons/TO.svg +0 -12
  291. package/dist/collection/assets/icons/TR.svg +0 -12
  292. package/dist/collection/assets/icons/TT.svg +0 -13
  293. package/dist/collection/assets/icons/TV.svg +0 -25
  294. package/dist/collection/assets/icons/TW.svg +0 -14
  295. package/dist/collection/assets/icons/TZ.svg +0 -13
  296. package/dist/collection/assets/icons/UA.svg +0 -11
  297. package/dist/collection/assets/icons/UG.svg +0 -16
  298. package/dist/collection/assets/icons/US.svg +0 -15
  299. package/dist/collection/assets/icons/UY.svg +0 -16
  300. package/dist/collection/assets/icons/UZ.svg +0 -27
  301. package/dist/collection/assets/icons/VC.svg +0 -15
  302. package/dist/collection/assets/icons/VE.svg +0 -20
  303. package/dist/collection/assets/icons/VG.svg +0 -24
  304. package/dist/collection/assets/icons/VI.svg +0 -18
  305. package/dist/collection/assets/icons/VN.svg +0 -11
  306. package/dist/collection/assets/icons/VU.svg +0 -32
  307. package/dist/collection/assets/icons/WS.svg +0 -16
  308. package/dist/collection/assets/icons/YE.svg +0 -12
  309. package/dist/collection/assets/icons/ZA.svg +0 -15
  310. package/dist/collection/assets/icons/ZM.svg +0 -14
  311. package/dist/collection/assets/icons/ZW.svg +0 -20
  312. package/dist/collection/assets/icons/chevron-up.svg +0 -3
  313. package/dist/collection/assets/icons/earth.svg +0 -11
  314. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.css +0 -88
  315. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +0 -118
  316. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +0 -1
  317. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js +0 -29
  318. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js.map +0 -1
  319. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js +0 -37
  320. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js.map +0 -1
  321. package/dist/esm/cpsl-alert_18.entry.js.map +0 -1
  322. package/dist/types/components/cpsl-dropdown/cpsl-dropdown.d.ts +0 -26
  323. /package/dist/capsule/{p-0cab90fa.entry.js.map → p-68c73705.entry.js.map} +0 -0
  324. /package/dist/capsule/{p-193ac141.entry.js.map → p-91412151.entry.js.map} +0 -0
  325. /package/dist/capsule/{p-cb8dc0a4.entry.js.map → p-f604b591.entry.js.map} +0 -0
  326. /package/dist/types/Users/{vinay → taylorbosch}/Documents/GitHub/Capsule/component-library/core/.stencil/scripts/buildIconLibrary.d.ts +0 -0
@@ -168,16 +168,6 @@ 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
- }
181
171
  interface CpslGrid {
182
172
  /**
183
173
  * If `true`, the grid will have a fixed width based on the screen size.
@@ -431,18 +421,6 @@ export namespace Components {
431
421
  "selectedTab"?: string;
432
422
  }
433
423
  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';
446
424
  }
447
425
  interface CpslTileButton {
448
426
  /**
@@ -527,12 +505,6 @@ declare global {
527
505
  prototype: HTMLCpslDividerElement;
528
506
  new (): HTMLCpslDividerElement;
529
507
  };
530
- interface HTMLCpslDropdownElement extends Components.CpslDropdown, HTMLStencilElement {
531
- }
532
- var HTMLCpslDropdownElement: {
533
- prototype: HTMLCpslDropdownElement;
534
- new (): HTMLCpslDropdownElement;
535
- };
536
508
  interface HTMLCpslGridElement extends Components.CpslGrid, HTMLStencilElement {
537
509
  }
538
510
  var HTMLCpslGridElement: {
@@ -699,7 +671,6 @@ declare global {
699
671
  "cpsl-code-input": HTMLCpslCodeInputElement;
700
672
  "cpsl-col": HTMLCpslColElement;
701
673
  "cpsl-divider": HTMLCpslDividerElement;
702
- "cpsl-dropdown": HTMLCpslDropdownElement;
703
674
  "cpsl-grid": HTMLCpslGridElement;
704
675
  "cpsl-icon": HTMLCpslIconElement;
705
676
  "cpsl-info-box": HTMLCpslInfoBoxElement;
@@ -871,16 +842,6 @@ declare namespace LocalJSX {
871
842
  }
872
843
  interface CpslDivider {
873
844
  }
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
- }
884
845
  interface CpslGrid {
885
846
  /**
886
847
  * If `true`, the grid will have a fixed width based on the screen size.
@@ -1178,18 +1139,6 @@ declare namespace LocalJSX {
1178
1139
  "selectedTab"?: string;
1179
1140
  }
1180
1141
  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';
1193
1142
  }
1194
1143
  interface CpslTileButton {
1195
1144
  /**
@@ -1208,7 +1157,6 @@ declare namespace LocalJSX {
1208
1157
  "cpsl-code-input": CpslCodeInput;
1209
1158
  "cpsl-col": CpslCol;
1210
1159
  "cpsl-divider": CpslDivider;
1211
- "cpsl-dropdown": CpslDropdown;
1212
1160
  "cpsl-grid": CpslGrid;
1213
1161
  "cpsl-icon": CpslIcon;
1214
1162
  "cpsl-info-box": CpslInfoBox;
@@ -1237,7 +1185,6 @@ declare module "@stencil/core" {
1237
1185
  "cpsl-code-input": LocalJSX.CpslCodeInput & JSXBase.HTMLAttributes<HTMLCpslCodeInputElement>;
1238
1186
  "cpsl-col": LocalJSX.CpslCol & JSXBase.HTMLAttributes<HTMLCpslColElement>;
1239
1187
  "cpsl-divider": LocalJSX.CpslDivider & JSXBase.HTMLAttributes<HTMLCpslDividerElement>;
1240
- "cpsl-dropdown": LocalJSX.CpslDropdown & JSXBase.HTMLAttributes<HTMLCpslDropdownElement>;
1241
1188
  "cpsl-grid": LocalJSX.CpslGrid & JSXBase.HTMLAttributes<HTMLCpslGridElement>;
1242
1189
  "cpsl-icon": LocalJSX.CpslIcon & JSXBase.HTMLAttributes<HTMLCpslIconElement>;
1243
1190
  "cpsl-info-box": LocalJSX.CpslInfoBox & JSXBase.HTMLAttributes<HTMLCpslInfoBoxElement>;
@@ -1,3 +1,3 @@
1
1
  export * from './components';
2
- export { generateTheme } from './utils/theme/generateTheme';
2
+ export { default as generateTheme } from './utils/theme/generateTheme';
3
3
  export type { Theme, BorderRadius } from './interface';
@@ -14,23 +14,8 @@ export type Theme = {
14
14
  borderRadius?: BorderRadius;
15
15
  font?: string;
16
16
  customPalette?: CustomPalette;
17
- customFontSizes?: CustomFontSizes;
18
17
  };
19
18
  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
- }
34
19
  export interface CustomPalette {
35
20
  text?: {
36
21
  primary?: string;
@@ -1,2 +1,2 @@
1
1
  import { Theme } from '../../interface';
2
- export declare const generateFont: ({ font, customFontSizes }: Pick<Theme, 'font' | 'customFontSizes'>) => void;
2
+ export declare const generateFont: ({ font }: Pick<Theme, 'font'>) => void;
@@ -1,2 +1,3 @@
1
1
  import { Theme } from '../../interface';
2
- export declare const generateTheme: ({ foregroundColor, backgroundColor, font, customPalette, borderRadius, customFontSizes, }: Theme) => boolean;
2
+ declare const generateTheme: ({ foregroundColor, backgroundColor, font, customPalette, borderRadius }: Theme) => boolean;
3
+ export default generateTheme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usecapsule/core-components",
3
- "version": "2.0.4-dev.dropdown.1",
3
+ "version": "2.0.5",
4
4
  "description": "Capsule Core Components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -49,5 +49,6 @@
49
49
  "sass": "^1.71.1",
50
50
  "stencil-inline-svg": "^1.1.0",
51
51
  "ts-node": "^10.9.2"
52
- }
52
+ },
53
+ "gitHead": "86381310f25b99ed54a91da194b0c9ab2a90b506"
53
54
  }