@usecapsule/core-components 2.0.5 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (339) 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-a95ec4df.entry.js → p-415384b7.entry.js} +2 -2
  8. package/dist/capsule/{p-91412151.entry.js → p-4d957466.entry.js} +2 -2
  9. package/dist/capsule/p-6b02ea8d.entry.js +2 -0
  10. package/dist/capsule/p-b2997f3c.js +3 -0
  11. package/dist/capsule/p-b2997f3c.js.map +1 -0
  12. package/dist/capsule/{p-d7be092d.entry.js → p-b76350fd.entry.js} +2 -2
  13. package/dist/capsule/p-d0b8e7cb.entry.js +29 -0
  14. package/dist/capsule/p-d0b8e7cb.entry.js.map +1 -0
  15. package/dist/capsule/{p-68c73705.entry.js → p-fa4e3c14.entry.js} +2 -2
  16. package/dist/cjs/capsule.cjs.js +2 -2
  17. package/dist/cjs/{cpsl-alert_17.cjs.entry.js → cpsl-alert_18.cjs.entry.js} +4142 -17
  18. package/dist/cjs/cpsl-alert_18.cjs.entry.js.map +1 -0
  19. package/dist/cjs/cpsl-animation.cjs.entry.js +1 -1
  20. package/dist/cjs/cpsl-col.cjs.entry.js +1 -1
  21. package/dist/cjs/cpsl-grid.cjs.entry.js +3 -3
  22. package/dist/cjs/cpsl-info-box.cjs.entry.js +2 -2
  23. package/dist/cjs/cpsl-row.cjs.entry.js +2 -2
  24. package/dist/cjs/{index-3fccb5b4.js → index-87ba56f9.js} +10 -5
  25. package/dist/cjs/index-87ba56f9.js.map +1 -0
  26. package/dist/cjs/index.cjs.js +28 -8
  27. package/dist/cjs/index.cjs.js.map +1 -1
  28. package/dist/cjs/loader.cjs.js +2 -2
  29. package/dist/collection/assets/icons/AD.svg +15 -0
  30. package/dist/collection/assets/icons/AE.svg +13 -0
  31. package/dist/collection/assets/icons/AF.svg +14 -0
  32. package/dist/collection/assets/icons/AG.svg +15 -0
  33. package/dist/collection/assets/icons/AI.svg +19 -0
  34. package/dist/collection/assets/icons/AL.svg +11 -0
  35. package/dist/collection/assets/icons/AM.svg +12 -0
  36. package/dist/collection/assets/icons/AO.svg +14 -0
  37. package/dist/collection/assets/icons/AR.svg +13 -0
  38. package/dist/collection/assets/icons/AS.svg +15 -0
  39. package/dist/collection/assets/icons/AT.svg +12 -0
  40. package/dist/collection/assets/icons/AU.svg +20 -0
  41. package/dist/collection/assets/icons/AW.svg +15 -0
  42. package/dist/collection/assets/icons/AX.svg +15 -0
  43. package/dist/collection/assets/icons/AZ.svg +14 -0
  44. package/dist/collection/assets/icons/BA.svg +13 -0
  45. package/dist/collection/assets/icons/BB.svg +13 -0
  46. package/dist/collection/assets/icons/BD.svg +11 -0
  47. package/dist/collection/assets/icons/BE.svg +12 -0
  48. package/dist/collection/assets/icons/BF.svg +12 -0
  49. package/dist/collection/assets/icons/BG.svg +12 -0
  50. package/dist/collection/assets/icons/BH.svg +11 -0
  51. package/dist/collection/assets/icons/BI.svg +18 -0
  52. package/dist/collection/assets/icons/BJ.svg +12 -0
  53. package/dist/collection/assets/icons/BL.svg +16 -0
  54. package/dist/collection/assets/icons/BM.svg +20 -0
  55. package/dist/collection/assets/icons/BN.svg +19 -0
  56. package/dist/collection/assets/icons/BO.svg +12 -0
  57. package/dist/collection/assets/icons/BQ.svg +14 -0
  58. package/dist/collection/assets/icons/BQ2.svg +20 -0
  59. package/dist/collection/assets/icons/BQ3.svg +15 -0
  60. package/dist/collection/assets/icons/BR.svg +14 -0
  61. package/dist/collection/assets/icons/BS.svg +13 -0
  62. package/dist/collection/assets/icons/BT.svg +12 -0
  63. package/dist/collection/assets/icons/BW.svg +13 -0
  64. package/dist/collection/assets/icons/BY.svg +18 -0
  65. package/dist/collection/assets/icons/BZ.svg +17 -0
  66. package/dist/collection/assets/icons/CA.svg +13 -0
  67. package/dist/collection/assets/icons/CC.svg +19 -0
  68. package/dist/collection/assets/icons/CD.svg +12 -0
  69. package/dist/collection/assets/icons/CD2.svg +14 -0
  70. package/dist/collection/assets/icons/CF.svg +20 -0
  71. package/dist/collection/assets/icons/CH.svg +11 -0
  72. package/dist/collection/assets/icons/CK.svg +22 -0
  73. package/dist/collection/assets/icons/CL.svg +13 -0
  74. package/dist/collection/assets/icons/CM.svg +13 -0
  75. package/dist/collection/assets/icons/CN.svg +15 -0
  76. package/dist/collection/assets/icons/CO.svg +12 -0
  77. package/dist/collection/assets/icons/CR.svg +13 -0
  78. package/dist/collection/assets/icons/CU.svg +15 -0
  79. package/dist/collection/assets/icons/CW.svg +14 -0
  80. package/dist/collection/assets/icons/CX.svg +19 -0
  81. package/dist/collection/assets/icons/CY.svg +12 -0
  82. package/dist/collection/assets/icons/CZ.svg +12 -0
  83. package/dist/collection/assets/icons/DE.svg +12 -0
  84. package/dist/collection/assets/icons/DJ.svg +13 -0
  85. package/dist/collection/assets/icons/DK.svg +14 -0
  86. package/dist/collection/assets/icons/DM.svg +34 -0
  87. package/dist/collection/assets/icons/DO.svg +17 -0
  88. package/dist/collection/assets/icons/DS.svg +13 -0
  89. package/dist/collection/assets/icons/DZ.svg +13 -0
  90. package/dist/collection/assets/icons/EC.svg +15 -0
  91. package/dist/collection/assets/icons/EE.svg +12 -0
  92. package/dist/collection/assets/icons/EG.svg +13 -0
  93. package/dist/collection/assets/icons/EH.svg +15 -0
  94. package/dist/collection/assets/icons/ER.svg +13 -0
  95. package/dist/collection/assets/icons/ES.svg +12 -0
  96. package/dist/collection/assets/icons/ET.svg +15 -0
  97. package/dist/collection/assets/icons/FI.svg +11 -0
  98. package/dist/collection/assets/icons/FJ.svg +18 -0
  99. package/dist/collection/assets/icons/FK.svg +18 -0
  100. package/dist/collection/assets/icons/FM.svg +14 -0
  101. package/dist/collection/assets/icons/FO.svg +12 -0
  102. package/dist/collection/assets/icons/FR.svg +12 -0
  103. package/dist/collection/assets/icons/GA.svg +12 -0
  104. package/dist/collection/assets/icons/GB-2.svg +11 -0
  105. package/dist/collection/assets/icons/GB.svg +23 -0
  106. package/dist/collection/assets/icons/GD.svg +26 -0
  107. package/dist/collection/assets/icons/GE.svg +15 -0
  108. package/dist/collection/assets/icons/GG.svg +12 -0
  109. package/dist/collection/assets/icons/GH.svg +13 -0
  110. package/dist/collection/assets/icons/GI.svg +13 -0
  111. package/dist/collection/assets/icons/GL.svg +13 -0
  112. package/dist/collection/assets/icons/GM.svg +13 -0
  113. package/dist/collection/assets/icons/GN.svg +12 -0
  114. package/dist/collection/assets/icons/GQ.svg +16 -0
  115. package/dist/collection/assets/icons/GR.svg +15 -0
  116. package/dist/collection/assets/icons/GT.svg +14 -0
  117. package/dist/collection/assets/icons/GU.svg +18 -0
  118. package/dist/collection/assets/icons/GW.svg +14 -0
  119. package/dist/collection/assets/icons/GY.svg +15 -0
  120. package/dist/collection/assets/icons/HK.svg +15 -0
  121. package/dist/collection/assets/icons/HN.svg +17 -0
  122. package/dist/collection/assets/icons/HR.svg +31 -0
  123. package/dist/collection/assets/icons/HT.svg +17 -0
  124. package/dist/collection/assets/icons/HU.svg +12 -0
  125. package/dist/collection/assets/icons/ID.svg +11 -0
  126. package/dist/collection/assets/icons/IE.svg +12 -0
  127. package/dist/collection/assets/icons/IL.svg +13 -0
  128. package/dist/collection/assets/icons/IM.svg +11 -0
  129. package/dist/collection/assets/icons/IN.svg +15 -0
  130. package/dist/collection/assets/icons/IO.svg +29 -0
  131. package/dist/collection/assets/icons/IQ.svg +15 -0
  132. package/dist/collection/assets/icons/IR.svg +13 -0
  133. package/dist/collection/assets/icons/IS.svg +15 -0
  134. package/dist/collection/assets/icons/IT.svg +12 -0
  135. package/dist/collection/assets/icons/JE.svg +13 -0
  136. package/dist/collection/assets/icons/JM.svg +14 -0
  137. package/dist/collection/assets/icons/JO.svg +14 -0
  138. package/dist/collection/assets/icons/JP.svg +11 -0
  139. package/dist/collection/assets/icons/KE.svg +19 -0
  140. package/dist/collection/assets/icons/KG.svg +16 -0
  141. package/dist/collection/assets/icons/KH.svg +13 -0
  142. package/dist/collection/assets/icons/KI.svg +17 -0
  143. package/dist/collection/assets/icons/KM.svg +19 -0
  144. package/dist/collection/assets/icons/KN.svg +15 -0
  145. package/dist/collection/assets/icons/KP.svg +15 -0
  146. package/dist/collection/assets/icons/KR.svg +30 -0
  147. package/dist/collection/assets/icons/KW.svg +13 -0
  148. package/dist/collection/assets/icons/KY.svg +20 -0
  149. package/dist/collection/assets/icons/KZ.svg +13 -0
  150. package/dist/collection/assets/icons/LA.svg +13 -0
  151. package/dist/collection/assets/icons/LB.svg +13 -0
  152. package/dist/collection/assets/icons/LC.svg +13 -0
  153. package/dist/collection/assets/icons/LI.svg +12 -0
  154. package/dist/collection/assets/icons/LK.svg +14 -0
  155. package/dist/collection/assets/icons/LR.svg +23 -0
  156. package/dist/collection/assets/icons/LS.svg +13 -0
  157. package/dist/collection/assets/icons/LT.svg +12 -0
  158. package/dist/collection/assets/icons/LU.svg +12 -0
  159. package/dist/collection/assets/icons/LV.svg +12 -0
  160. package/dist/collection/assets/icons/LY.svg +14 -0
  161. package/dist/collection/assets/icons/MA.svg +11 -0
  162. package/dist/collection/assets/icons/MC.svg +11 -0
  163. package/dist/collection/assets/icons/MD.svg +15 -0
  164. package/dist/collection/assets/icons/ME.svg +15 -0
  165. package/dist/collection/assets/icons/MG.svg +12 -0
  166. package/dist/collection/assets/icons/MH.svg +13 -0
  167. package/dist/collection/assets/icons/MK.svg +20 -0
  168. package/dist/collection/assets/icons/ML.svg +12 -0
  169. package/dist/collection/assets/icons/MM.svg +13 -0
  170. package/dist/collection/assets/icons/MN.svg +19 -0
  171. package/dist/collection/assets/icons/MO.svg +18 -0
  172. package/dist/collection/assets/icons/MP.svg +14 -0
  173. package/dist/collection/assets/icons/MQ.svg +18 -0
  174. package/dist/collection/assets/icons/MR.svg +12 -0
  175. package/dist/collection/assets/icons/MS.svg +17 -0
  176. package/dist/collection/assets/icons/MT.svg +12 -0
  177. package/dist/collection/assets/icons/MU.svg +13 -0
  178. package/dist/collection/assets/icons/MV.svg +12 -0
  179. package/dist/collection/assets/icons/MW.svg +13 -0
  180. package/dist/collection/assets/icons/MX.svg +14 -0
  181. package/dist/collection/assets/icons/MY.svg +17 -0
  182. package/dist/collection/assets/icons/MZ.svg +17 -0
  183. package/dist/collection/assets/icons/NA.svg +14 -0
  184. package/dist/collection/assets/icons/NE.svg +13 -0
  185. package/dist/collection/assets/icons/NF.svg +13 -0
  186. package/dist/collection/assets/icons/NG.svg +12 -0
  187. package/dist/collection/assets/icons/NI.svg +16 -0
  188. package/dist/collection/assets/icons/NL.svg +12 -0
  189. package/dist/collection/assets/icons/NO.svg +15 -0
  190. package/dist/collection/assets/icons/NP.svg +16 -0
  191. package/dist/collection/assets/icons/NR.svg +14 -0
  192. package/dist/collection/assets/icons/NU.svg +20 -0
  193. package/dist/collection/assets/icons/NZ.svg +18 -0
  194. package/dist/collection/assets/icons/OM.svg +15 -0
  195. package/dist/collection/assets/icons/PA.svg +14 -0
  196. package/dist/collection/assets/icons/PE.svg +12 -0
  197. package/dist/collection/assets/icons/PF.svg +17 -0
  198. package/dist/collection/assets/icons/PG.svg +17 -0
  199. package/dist/collection/assets/icons/PH.svg +16 -0
  200. package/dist/collection/assets/icons/PK.svg +14 -0
  201. package/dist/collection/assets/icons/PL.svg +11 -0
  202. package/dist/collection/assets/icons/PN.svg +18 -0
  203. package/dist/collection/assets/icons/PR.svg +15 -0
  204. package/dist/collection/assets/icons/PS.svg +13 -0
  205. package/dist/collection/assets/icons/PT.svg +14 -0
  206. package/dist/collection/assets/icons/PW.svg +11 -0
  207. package/dist/collection/assets/icons/PY.svg +14 -0
  208. package/dist/collection/assets/icons/QA.svg +11 -0
  209. package/dist/collection/assets/icons/RO.svg +12 -0
  210. package/dist/collection/assets/icons/RS.svg +16 -0
  211. package/dist/collection/assets/icons/RU.svg +12 -0
  212. package/dist/collection/assets/icons/RW.svg +13 -0
  213. package/dist/collection/assets/icons/SA.svg +16 -0
  214. package/dist/collection/assets/icons/SB.svg +17 -0
  215. package/dist/collection/assets/icons/SC.svg +14 -0
  216. package/dist/collection/assets/icons/SE.svg +14 -0
  217. package/dist/collection/assets/icons/SG.svg +17 -0
  218. package/dist/collection/assets/icons/SI.svg +13 -0
  219. package/dist/collection/assets/icons/SK.svg +16 -0
  220. package/dist/collection/assets/icons/SL.svg +12 -0
  221. package/dist/collection/assets/icons/SM.svg +16 -0
  222. package/dist/collection/assets/icons/SN.svg +13 -0
  223. package/dist/collection/assets/icons/SO.svg +11 -0
  224. package/dist/collection/assets/icons/SR.svg +14 -0
  225. package/dist/collection/assets/icons/SS.svg +15 -0
  226. package/dist/collection/assets/icons/ST.svg +15 -0
  227. package/dist/collection/assets/icons/SV.svg +15 -0
  228. package/dist/collection/assets/icons/SX.svg +17 -0
  229. package/dist/collection/assets/icons/SY.svg +14 -0
  230. package/dist/collection/assets/icons/SZ.svg +21 -0
  231. package/dist/collection/assets/icons/TC.svg +19 -0
  232. package/dist/collection/assets/icons/TD.svg +12 -0
  233. package/dist/collection/assets/icons/TG.svg +15 -0
  234. package/dist/collection/assets/icons/TH.svg +13 -0
  235. package/dist/collection/assets/icons/TJ.svg +20 -0
  236. package/dist/collection/assets/icons/TK.svg +15 -0
  237. package/dist/collection/assets/icons/TL.svg +13 -0
  238. package/dist/collection/assets/icons/TM.svg +30 -0
  239. package/dist/collection/assets/icons/TN.svg +13 -0
  240. package/dist/collection/assets/icons/TO.svg +12 -0
  241. package/dist/collection/assets/icons/TR.svg +12 -0
  242. package/dist/collection/assets/icons/TT.svg +13 -0
  243. package/dist/collection/assets/icons/TV.svg +25 -0
  244. package/dist/collection/assets/icons/TW.svg +14 -0
  245. package/dist/collection/assets/icons/TZ.svg +13 -0
  246. package/dist/collection/assets/icons/UA.svg +11 -0
  247. package/dist/collection/assets/icons/UG.svg +16 -0
  248. package/dist/collection/assets/icons/US.svg +15 -0
  249. package/dist/collection/assets/icons/UY.svg +16 -0
  250. package/dist/collection/assets/icons/UZ.svg +27 -0
  251. package/dist/collection/assets/icons/VC.svg +15 -0
  252. package/dist/collection/assets/icons/VE.svg +20 -0
  253. package/dist/collection/assets/icons/VG.svg +24 -0
  254. package/dist/collection/assets/icons/VI.svg +18 -0
  255. package/dist/collection/assets/icons/VN.svg +11 -0
  256. package/dist/collection/assets/icons/VU.svg +32 -0
  257. package/dist/collection/assets/icons/WS.svg +16 -0
  258. package/dist/collection/assets/icons/YE.svg +12 -0
  259. package/dist/collection/assets/icons/ZA.svg +15 -0
  260. package/dist/collection/assets/icons/ZM.svg +14 -0
  261. package/dist/collection/assets/icons/ZW.svg +20 -0
  262. package/dist/collection/assets/icons/chevron-up.svg +3 -0
  263. package/dist/collection/assets/icons/earth.svg +11 -0
  264. package/dist/collection/assets/icons/index.js +236 -1
  265. package/dist/collection/assets/icons/index.js.map +1 -1
  266. package/dist/collection/collection-manifest.json +1 -0
  267. package/dist/collection/components/cpsl-alert/cpsl-alert.js +1 -1
  268. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.css +213 -0
  269. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +207 -0
  270. package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -0
  271. package/dist/collection/components/cpsl-dropdown/dropdown-interface.js +2 -0
  272. package/dist/collection/components/cpsl-dropdown/dropdown-interface.js.map +1 -0
  273. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js +29 -0
  274. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js.map +1 -0
  275. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js +37 -0
  276. package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js.map +1 -0
  277. package/dist/collection/components/cpsl-grid/cpsl-grid.js +2 -2
  278. package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
  279. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
  280. package/dist/collection/components/cpsl-input/cpsl-input.css +3 -3
  281. package/dist/collection/components/cpsl-input/cpsl-input.js +2 -2
  282. package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -1
  283. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +1 -1
  284. package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
  285. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +1 -1
  286. package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
  287. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +3 -3
  288. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +2 -2
  289. package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
  290. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +1 -1
  291. package/dist/collection/components/cpsl-text/cpsl-text.css +101 -0
  292. package/dist/collection/components/cpsl-text/cpsl-text.js +110 -1
  293. package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
  294. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
  295. package/dist/collection/index.js +1 -1
  296. package/dist/collection/index.js.map +1 -1
  297. package/dist/collection/interface.js.map +1 -1
  298. package/dist/collection/utils/theme/generateFont.js +25 -4
  299. package/dist/collection/utils/theme/generateFont.js.map +1 -1
  300. package/dist/collection/utils/theme/generateTheme.js +2 -3
  301. package/dist/collection/utils/theme/generateTheme.js.map +1 -1
  302. package/dist/esm/capsule.js +3 -3
  303. package/dist/esm/{cpsl-alert_17.entry.js → cpsl-alert_18.entry.js} +4142 -18
  304. package/dist/esm/cpsl-alert_18.entry.js.map +1 -0
  305. package/dist/esm/cpsl-animation.entry.js +1 -1
  306. package/dist/esm/cpsl-col.entry.js +1 -1
  307. package/dist/esm/cpsl-grid.entry.js +3 -3
  308. package/dist/esm/cpsl-info-box.entry.js +2 -2
  309. package/dist/esm/cpsl-row.entry.js +2 -2
  310. package/dist/esm/{index-f00e090c.js → index-fd970ca2.js} +10 -5
  311. package/dist/esm/index-fd970ca2.js.map +1 -0
  312. package/dist/esm/index.js +28 -8
  313. package/dist/esm/index.js.map +1 -1
  314. package/dist/esm/loader.js +3 -3
  315. package/dist/types/assets/icons/index.d.ts +235 -0
  316. package/dist/types/components/cpsl-dropdown/cpsl-dropdown.d.ts +26 -0
  317. package/dist/types/components/cpsl-dropdown/dropdown-interface.d.ts +7 -0
  318. package/dist/types/components/cpsl-text/cpsl-text.d.ts +4 -0
  319. package/dist/types/components.d.ts +82 -0
  320. package/dist/types/index.d.ts +1 -1
  321. package/dist/types/interface.d.ts +15 -0
  322. package/dist/types/utils/theme/generateFont.d.ts +1 -1
  323. package/dist/types/utils/theme/generateTheme.d.ts +1 -2
  324. package/package.json +2 -2
  325. package/dist/capsule/p-6fb7c4d1.js +0 -3
  326. package/dist/capsule/p-6fb7c4d1.js.map +0 -1
  327. package/dist/capsule/p-cacdef26.entry.js +0 -29
  328. package/dist/capsule/p-cacdef26.entry.js.map +0 -1
  329. package/dist/capsule/p-f604b591.entry.js +0 -2
  330. package/dist/cjs/cpsl-alert_17.cjs.entry.js.map +0 -1
  331. package/dist/cjs/index-3fccb5b4.js.map +0 -1
  332. package/dist/esm/cpsl-alert_17.entry.js.map +0 -1
  333. package/dist/esm/index-f00e090c.js.map +0 -1
  334. /package/dist/capsule/{p-a95ec4df.entry.js.map → p-415384b7.entry.js.map} +0 -0
  335. /package/dist/capsule/{p-91412151.entry.js.map → p-4d957466.entry.js.map} +0 -0
  336. /package/dist/capsule/{p-f604b591.entry.js.map → p-6b02ea8d.entry.js.map} +0 -0
  337. /package/dist/capsule/{p-d7be092d.entry.js.map → p-b76350fd.entry.js.map} +0 -0
  338. /package/dist/capsule/{p-68c73705.entry.js.map → p-fa4e3c14.entry.js.map} +0 -0
  339. /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,20 @@ export namespace Components {
168
170
  }
169
171
  interface CpslDivider {
170
172
  }
173
+ interface CpslDropdown {
174
+ /**
175
+ * Whether or not to include search capability
176
+ */
177
+ "hasCpslSearch": boolean;
178
+ /**
179
+ * Items to be presented in the dropdown
180
+ */
181
+ "items": Array<DropdownInputEventDetail>;
182
+ /**
183
+ * Width of the dropdown
184
+ */
185
+ "width": string;
186
+ }
171
187
  interface CpslGrid {
172
188
  /**
173
189
  * If `true`, the grid will have a fixed width based on the screen size.
@@ -421,6 +437,18 @@ export namespace Components {
421
437
  "selectedTab"?: string;
422
438
  }
423
439
  interface CpslText {
440
+ /**
441
+ * The color of text. Options are: `"primary"`, `"secondary", `"subtle", `"inverted", `"error". Default is: `"primary"`.
442
+ */
443
+ "color"?: 'primary' | 'secondary' | 'subtle' | 'inverted' | 'error';
444
+ /**
445
+ * The variant of text. Options are: `"body2XS"`, `"bodyXS", `"bodyS", `"bodyM", `"bodyL", `"bodyXL", `"headingXS", `"headingS", `"headingM", `"headingL", `"headingXL", `"heading2XL". Default is: `"bodyM"`.
446
+ */
447
+ "variant"?: 'body2XS' | 'bodyXS' | 'bodyS' | 'bodyM' | 'bodyL' | 'bodyXL' | 'headingXS' | 'headingS' | 'headingM' | 'headingL' | 'headingXL' | 'heading2XL';
448
+ /**
449
+ * The weight of text. Options are: `"regular"`, `"medium", `"semiBold", `"bold". Default is: `"regular"`.
450
+ */
451
+ "weight"?: 'regular' | 'medium' | 'semiBold' | 'bold';
424
452
  }
425
453
  interface CpslTileButton {
426
454
  /**
@@ -437,6 +465,10 @@ export interface CpslCodeInputCustomEvent<T> extends CustomEvent<T> {
437
465
  detail: T;
438
466
  target: HTMLCpslCodeInputElement;
439
467
  }
468
+ export interface CpslDropdownCustomEvent<T> extends CustomEvent<T> {
469
+ detail: T;
470
+ target: HTMLCpslDropdownElement;
471
+ }
440
472
  export interface CpslInputCustomEvent<T> extends CustomEvent<T> {
441
473
  detail: T;
442
474
  target: HTMLCpslInputElement;
@@ -505,6 +537,23 @@ declare global {
505
537
  prototype: HTMLCpslDividerElement;
506
538
  new (): HTMLCpslDividerElement;
507
539
  };
540
+ interface HTMLCpslDropdownElementEventMap {
541
+ "selectedItemChange": DropdownInputEventDetail;
542
+ }
543
+ interface HTMLCpslDropdownElement extends Components.CpslDropdown, HTMLStencilElement {
544
+ addEventListener<K extends keyof HTMLCpslDropdownElementEventMap>(type: K, listener: (this: HTMLCpslDropdownElement, ev: CpslDropdownCustomEvent<HTMLCpslDropdownElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
545
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
546
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
547
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
548
+ removeEventListener<K extends keyof HTMLCpslDropdownElementEventMap>(type: K, listener: (this: HTMLCpslDropdownElement, ev: CpslDropdownCustomEvent<HTMLCpslDropdownElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
549
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
550
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
551
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
552
+ }
553
+ var HTMLCpslDropdownElement: {
554
+ prototype: HTMLCpslDropdownElement;
555
+ new (): HTMLCpslDropdownElement;
556
+ };
508
557
  interface HTMLCpslGridElement extends Components.CpslGrid, HTMLStencilElement {
509
558
  }
510
559
  var HTMLCpslGridElement: {
@@ -671,6 +720,7 @@ declare global {
671
720
  "cpsl-code-input": HTMLCpslCodeInputElement;
672
721
  "cpsl-col": HTMLCpslColElement;
673
722
  "cpsl-divider": HTMLCpslDividerElement;
723
+ "cpsl-dropdown": HTMLCpslDropdownElement;
674
724
  "cpsl-grid": HTMLCpslGridElement;
675
725
  "cpsl-icon": HTMLCpslIconElement;
676
726
  "cpsl-info-box": HTMLCpslInfoBoxElement;
@@ -842,6 +892,24 @@ declare namespace LocalJSX {
842
892
  }
843
893
  interface CpslDivider {
844
894
  }
895
+ interface CpslDropdown {
896
+ /**
897
+ * Whether or not to include search capability
898
+ */
899
+ "hasCpslSearch"?: boolean;
900
+ /**
901
+ * Items to be presented in the dropdown
902
+ */
903
+ "items"?: Array<DropdownInputEventDetail>;
904
+ /**
905
+ * On eve
906
+ */
907
+ "onSelectedItemChange"?: (event: CpslDropdownCustomEvent<DropdownInputEventDetail>) => void;
908
+ /**
909
+ * Width of the dropdown
910
+ */
911
+ "width"?: string;
912
+ }
845
913
  interface CpslGrid {
846
914
  /**
847
915
  * If `true`, the grid will have a fixed width based on the screen size.
@@ -1139,6 +1207,18 @@ declare namespace LocalJSX {
1139
1207
  "selectedTab"?: string;
1140
1208
  }
1141
1209
  interface CpslText {
1210
+ /**
1211
+ * The color of text. Options are: `"primary"`, `"secondary", `"subtle", `"inverted", `"error". Default is: `"primary"`.
1212
+ */
1213
+ "color"?: 'primary' | 'secondary' | 'subtle' | 'inverted' | 'error';
1214
+ /**
1215
+ * The variant of text. Options are: `"body2XS"`, `"bodyXS", `"bodyS", `"bodyM", `"bodyL", `"bodyXL", `"headingXS", `"headingS", `"headingM", `"headingL", `"headingXL", `"heading2XL". Default is: `"bodyM"`.
1216
+ */
1217
+ "variant"?: 'body2XS' | 'bodyXS' | 'bodyS' | 'bodyM' | 'bodyL' | 'bodyXL' | 'headingXS' | 'headingS' | 'headingM' | 'headingL' | 'headingXL' | 'heading2XL';
1218
+ /**
1219
+ * The weight of text. Options are: `"regular"`, `"medium", `"semiBold", `"bold". Default is: `"regular"`.
1220
+ */
1221
+ "weight"?: 'regular' | 'medium' | 'semiBold' | 'bold';
1142
1222
  }
1143
1223
  interface CpslTileButton {
1144
1224
  /**
@@ -1157,6 +1237,7 @@ declare namespace LocalJSX {
1157
1237
  "cpsl-code-input": CpslCodeInput;
1158
1238
  "cpsl-col": CpslCol;
1159
1239
  "cpsl-divider": CpslDivider;
1240
+ "cpsl-dropdown": CpslDropdown;
1160
1241
  "cpsl-grid": CpslGrid;
1161
1242
  "cpsl-icon": CpslIcon;
1162
1243
  "cpsl-info-box": CpslInfoBox;
@@ -1185,6 +1266,7 @@ declare module "@stencil/core" {
1185
1266
  "cpsl-code-input": LocalJSX.CpslCodeInput & JSXBase.HTMLAttributes<HTMLCpslCodeInputElement>;
1186
1267
  "cpsl-col": LocalJSX.CpslCol & JSXBase.HTMLAttributes<HTMLCpslColElement>;
1187
1268
  "cpsl-divider": LocalJSX.CpslDivider & JSXBase.HTMLAttributes<HTMLCpslDividerElement>;
1269
+ "cpsl-dropdown": LocalJSX.CpslDropdown & JSXBase.HTMLAttributes<HTMLCpslDropdownElement>;
1188
1270
  "cpsl-grid": LocalJSX.CpslGrid & JSXBase.HTMLAttributes<HTMLCpslGridElement>;
1189
1271
  "cpsl-icon": LocalJSX.CpslIcon & JSXBase.HTMLAttributes<HTMLCpslIconElement>;
1190
1272
  "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.7",
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": "10c679e1a1396ae80c3092b060812e6a9f797410"
54
54
  }
@@ -1,3 +0,0 @@
1
- const t="capsule";let e;let n;let s=false;let o=false;let l=false;const c=(t,e="")=>{{return()=>{}}};const i=(t,e)=>{{return()=>{}}};const f="{visibility:hidden}.hydrated{visibility:inherit}";const r="slot-fb{display:contents}slot-fb[hidden]{display:none}";const u={};const a="http://www.w3.org/2000/svg";const d="http://www.w3.org/1999/xhtml";const v=t=>t!=null;const p=t=>{t=typeof t;return t==="object"||t==="function"};function h(t){var e,n,s;return(s=(n=(e=t.head)===null||e===void 0?void 0:e.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&s!==void 0?s:undefined}const y=(t,e,...n)=>{let s=null;let o=null;let l=false;let c=false;const i=[];const f=e=>{for(let n=0;n<e.length;n++){s=e[n];if(Array.isArray(s)){f(s)}else if(s!=null&&typeof s!=="boolean"){if(l=typeof t!=="function"&&!p(s)){s=String(s)}if(l&&c){i[i.length-1].t+=s}else{i.push(l?m(null,s):s)}c=l}}};f(n);if(e){if(e.key){o=e.key}{const t=e.className||e.class;if(t){e.class=typeof t!=="object"?t:Object.keys(t).filter((e=>t[e])).join(" ")}}}const r=m(t,null);r.o=e;if(i.length>0){r.l=i}{r.i=o}return r};const m=(t,e)=>{const n={u:0,v:t,t:e,p:null,l:null};{n.o=null}{n.i=null}return n};const b={};const w=t=>t&&t.v===b;const $=(t,e)=>{if(t!=null&&!p(t)){if(e&4){return t==="false"?false:t===""||!!t}if(e&2){return parseFloat(t)}if(e&1){return String(t)}return t}return t};const g=t=>ht(t).$hostElement$;const S=(t,e,n)=>{const s=g(t);return{emit:t=>j(s,e,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:t})}};const j=(t,e,n)=>{const s=kt.ce(e,n);t.dispatchEvent(s);return s};const O=new WeakMap;const k=(t,e,n)=>{let s=St.get(t);if(Pt&&n){s=s||new CSSStyleSheet;if(typeof s==="string"){s=e}else{s.replaceSync(e)}}else{s=e}St.set(t,s)};const C=(t,e,n)=>{var s;const o=P(e);const l=St.get(o);t=t.nodeType===11?t:Ot;if(l){if(typeof l==="string"){t=t.head||t;let n=O.get(t);let c;if(!n){O.set(t,n=new Set)}if(!n.has(o)){{c=Ot.createElement("style");c.innerHTML=l;const e=(s=kt.h)!==null&&s!==void 0?s:h(Ot);if(e!=null){c.setAttribute("nonce",e)}t.insertBefore(c,t.querySelector("link"))}if(e.u&4){c.innerHTML+=r}if(n){n.add(o)}}}else if(!t.adoptedStyleSheets.includes(l)){t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]}}return o};const M=t=>{const e=t.m;const n=t.$hostElement$;const s=e.u;const o=c("attachStyles",e.$);const l=C(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);if(s&10){n["s-sc"]=l;n.classList.add(l+"-h")}o()};const P=(t,e)=>"sc-"+t.$;const x=(t,e,n,s,o,l)=>{if(n!==s){let c=bt(t,e);let i=e.toLowerCase();if(e==="class"){const e=t.classList;const o=L(n);const l=L(s);e.remove(...o.filter((t=>t&&!l.includes(t))));e.add(...l.filter((t=>t&&!o.includes(t))))}else if(e==="style"){{for(const e in n){if(!s||s[e]==null){if(e.includes("-")){t.style.removeProperty(e)}else{t.style[e]=""}}}}for(const e in s){if(!n||s[e]!==n[e]){if(e.includes("-")){t.style.setProperty(e,s[e])}else{t.style[e]=s[e]}}}}else if(e==="key");else if(!c&&e[0]==="o"&&e[1]==="n"){if(e[2]==="-"){e=e.slice(3)}else if(bt(jt,i)){e=i.slice(2)}else{e=i[2]+e.slice(3)}if(n||s){const o=e.endsWith(U);e=e.replace(A,"");if(n){kt.rel(t,e,n,o)}if(s){kt.ael(t,e,s,o)}}}else{const i=p(s);if((c||i&&s!==null)&&!o){try{if(!t.tagName.includes("-")){const o=s==null?"":s;if(e==="list"){c=false}else if(n==null||t[e]!=o){t[e]=o}}else{t[e]=s}}catch(t){}}if(s==null||s===false){if(s!==false||t.getAttribute(e)===""){{t.removeAttribute(e)}}}else if((!c||l&4||o)&&!i){s=s===true?"":s;{t.setAttribute(e,s)}}}}};const E=/\s/;const L=t=>!t?[]:t.split(E);const U="Capture";const A=new RegExp(U+"$");const N=(t,e,n,s)=>{const o=e.p.nodeType===11&&e.p.host?e.p.host:e.p;const l=t&&t.o||u;const c=e.o||u;{for(s in l){if(!(s in c)){x(o,s,l[s],undefined,n,e.u)}}}for(s in c){x(o,s,l[s],c[s],n,e.u)}};const R=(t,s,l,c)=>{const i=s.l[l];let f=0;let r;let u;if(i.t!==null){r=i.p=Ot.createTextNode(i.t)}else{if(!o){o=i.v==="svg"}r=i.p=Ot.createElementNS(o?a:d,i.v);if(o&&i.v==="foreignObject"){o=false}{N(null,i,o)}if(v(e)&&r["s-si"]!==e){r.classList.add(r["s-si"]=e)}if(i.l){for(f=0;f<i.l.length;++f){u=R(t,i,f);if(u){r.appendChild(u)}}}{if(i.v==="svg"){o=false}else if(r.tagName==="foreignObject"){o=true}}}r["s-hn"]=n;return r};const T=(t,e,s,o,l,c)=>{let i=t;let f;if(i.shadowRoot&&i.tagName===n){i=i.shadowRoot}for(;l<=c;++l){if(o[l]){f=R(null,s,l);if(f){o[l].p=f;i.insertBefore(f,e)}}}};const W=(t,e,n)=>{for(let s=e;s<=n;++s){const e=t[s];if(e){const t=e.p;if(t){t.remove()}}}};const F=(t,e,n,s,o=false)=>{let l=0;let c=0;let i=0;let f=0;let r=e.length-1;let u=e[0];let a=e[r];let d=s.length-1;let v=s[0];let p=s[d];let h;let y;while(l<=r&&c<=d){if(u==null){u=e[++l]}else if(a==null){a=e[--r]}else if(v==null){v=s[++c]}else if(p==null){p=s[--d]}else if(H(u,v,o)){q(u,v,o);u=e[++l];v=s[++c]}else if(H(a,p,o)){q(a,p,o);a=e[--r];p=s[--d]}else if(H(u,p,o)){q(u,p,o);t.insertBefore(u.p,a.p.nextSibling);u=e[++l];p=s[--d]}else if(H(a,v,o)){q(a,v,o);t.insertBefore(a.p,u.p);a=e[--r];v=s[++c]}else{i=-1;{for(f=l;f<=r;++f){if(e[f]&&e[f].i!==null&&e[f].i===v.i){i=f;break}}}if(i>=0){y=e[i];if(y.v!==v.v){h=R(e&&e[c],n,i)}else{q(y,v,o);e[i]=undefined;h=y.p}v=s[++c]}else{h=R(e&&e[c],n,c);v=s[++c]}if(h){{u.p.parentNode.insertBefore(h,u.p)}}}}if(l>r){T(t,s[d+1]==null?null:s[d+1].p,n,s,c,d)}else if(c>d){W(e,l,r)}};const H=(t,e,n=false)=>{if(t.v===e.v){if(!n){return t.i===e.i}return true}return false};const q=(t,e,n=false)=>{const l=e.p=t.p;const c=t.l;const i=e.l;const f=e.v;const r=e.t;if(r===null){{o=f==="svg"?true:f==="foreignObject"?false:o}{if(f==="slot"&&!s);else{N(t,e,o)}}if(c!==null&&i!==null){F(l,c,e,i,n)}else if(i!==null){if(t.t!==null){l.textContent=""}T(l,null,e,i,0,i.length-1)}else if(c!==null){W(c,0,c.length-1)}if(o&&f==="svg"){o=false}}else if(t.t!==r){l.data=r}};const D=(t,o,l=false)=>{const c=t.$hostElement$;const i=t.m;const f=t.S||m(null,null);const r=w(o)?o:y(null,null,o);n=c.tagName;if(i.j){r.o=r.o||{};i.j.map((([t,e])=>r.o[e]=c[t]))}if(l&&r.o){for(const t of Object.keys(r.o)){if(c.hasAttribute(t)&&!["key","ref","style","class"].includes(t)){r.o[t]=c[t]}}}r.v=null;r.u|=4;t.S=r;r.p=f.p=c.shadowRoot||c;{e=c["s-sc"]}s=(i.u&1)!==0;q(f,r,l)};const I=(t,e)=>{if(e&&!t.O&&e["s-p"]){e["s-p"].push(new Promise((e=>t.O=e)))}};const V=(t,e)=>{{t.u|=16}if(t.u&4){t.u|=512;return}I(t,t.k);const n=()=>_(t,e);return Rt(n)};const _=(t,e)=>{const n=c("scheduleUpdate",t.m.$);const s=t.C;let o;if(e){{t.u|=256;if(t.M){t.M.map((([t,e])=>Y(s,t,e)));t.M=undefined}}{o=Y(s,"componentWillLoad")}}n();return z(o,(()=>G(t,s,e)))};const z=(t,e)=>B(t)?t.then(e):e();const B=t=>t instanceof Promise||t&&t.then&&typeof t.then==="function";const G=async(t,e,n)=>{var s;const o=t.$hostElement$;const l=c("update",t.m.$);const i=o["s-rc"];if(n){M(t)}const f=c("render",t.m.$);{J(t,e,o,n)}if(i){i.map((t=>t()));o["s-rc"]=undefined}f();l();{const e=(s=o["s-p"])!==null&&s!==void 0?s:[];const n=()=>K(t);if(e.length===0){n()}else{Promise.all(e).then(n);t.u|=4;e.length=0}}};const J=(t,e,n,s)=>{try{e=e.render();{t.u&=~16}{t.u|=2}{{{D(t,e,s)}}}}catch(e){wt(e,t.$hostElement$)}return null};const K=t=>{const e=t.m.$;const n=t.$hostElement$;const s=c("postUpdate",e);const o=t.C;const l=t.k;if(!(t.u&64)){t.u|=64;{Z(n)}{Y(o,"componentDidLoad")}s();{t.P(n);if(!l){X()}}}else{s()}{t.L(n)}{if(t.O){t.O();t.O=undefined}if(t.u&512){Nt((()=>V(t,false)))}t.u&=~(4|512)}};const Q=t=>{{const e=ht(t);const n=e.$hostElement$.isConnected;if(n&&(e.u&(2|16))===2){V(e,false)}return n}};const X=e=>{{Z(Ot.documentElement)}Nt((()=>j(jt,"appload",{detail:{namespace:t}})))};const Y=(t,e,n)=>{if(t&&t[e]){try{return t[e](n)}catch(t){wt(t)}}return undefined};const Z=t=>t.classList.add("hydrated");const tt=(t,e)=>ht(t).U.get(e);const et=(t,e,n,s)=>{const o=ht(t);const l=o.$hostElement$;const c=o.U.get(e);const i=o.u;const f=o.C;n=$(n,s.A[e][0]);const r=Number.isNaN(c)&&Number.isNaN(n);const u=n!==c&&!r;if((!(i&8)||c===undefined)&&u){o.U.set(e,n);if(f){if(s.N&&i&128){const t=s.N[e];if(t){t.map((t=>{try{f[t](n,c,e)}catch(t){wt(t,l)}}))}}if((i&(2|16))===2){V(o,false)}}}};const nt=(t,e,n)=>{var s;const o=t.prototype;if(e.A){if(t.watchers){e.N=t.watchers}const l=Object.entries(e.A);l.map((([t,[s]])=>{if(s&31||n&2&&s&32){Object.defineProperty(o,t,{get(){return tt(this,t)},set(n){et(this,t,n,e)},configurable:true,enumerable:true})}else if(n&1&&s&64){Object.defineProperty(o,t,{value(...e){var n;const s=ht(this);return(n=s===null||s===void 0?void 0:s.R)===null||n===void 0?void 0:n.then((()=>{var n;return(n=s.C)===null||n===void 0?void 0:n[t](...e)}))}})}}));if(n&1){const n=new Map;o.attributeChangedCallback=function(t,s,l){kt.jmp((()=>{var c;const i=n.get(t);if(this.hasOwnProperty(i)){l=this[i];delete this[i]}else if(o.hasOwnProperty(i)&&typeof this[i]==="number"&&this[i]==l){return}else if(i==null){const n=ht(this);const o=n===null||n===void 0?void 0:n.u;if(o&&!(o&8)&&o&128&&l!==s){const o=n.C;const i=(c=e.N)===null||c===void 0?void 0:c[t];i===null||i===void 0?void 0:i.forEach((e=>{if(o[e]!=null){o[e].call(o,l,s,t)}}))}return}this[i]=l===null&&typeof this[i]==="boolean"?false:l}))};t.observedAttributes=Array.from(new Set([...Object.keys((s=e.N)!==null&&s!==void 0?s:{}),...l.filter((([t,e])=>e[0]&15)).map((([t,s])=>{var o;const l=s[1]||t;n.set(l,t);if(s[0]&512){(o=e.j)===null||o===void 0?void 0:o.push([t,l])}return l}))]))}}return t};const st=async(t,e,n,s)=>{let o;if((e.u&32)===0){e.u|=32;const s=n.T;if(s){o=gt(n);if(o.then){const t=i();o=await o;t()}if(!o.isProxied){{n.N=o.watchers}nt(o,n,2);o.isProxied=true}const t=c("createInstance",n.$);{e.u|=8}try{new o(e)}catch(t){wt(t)}{e.u&=~8}{e.u|=128}t()}else{o=t.constructor;customElements.whenDefined(n.$).then((()=>e.u|=128))}if(o.style){let t=o.style;const e=P(n);if(!St.has(e)){const s=c("registerStyles",n.$);k(e,t,!!(n.u&1));s()}}}const l=e.k;const f=()=>V(e,true);if(l&&l["s-rc"]){l["s-rc"].push(f)}else{f()}};const ot=t=>{};const lt=t=>{if((kt.u&1)===0){const e=ht(t);const n=e.m;const s=c("connectedCallback",n.$);if(!(e.u&1)){e.u|=1;{let n=t;while(n=n.parentNode||n.host){if(n["s-p"]){I(e,e.k=n);break}}}if(n.A){Object.entries(n.A).map((([e,[n]])=>{if(n&31&&t.hasOwnProperty(e)){const n=t[e];delete t[e];t[e]=n}}))}{st(t,e,n)}}else{rt(t,e,n.W);if(e===null||e===void 0?void 0:e.C);else if(e===null||e===void 0?void 0:e.F){e.F.then((()=>ot()))}}s()}};const ct=t=>{};const it=async t=>{if((kt.u&1)===0){const e=ht(t);{if(e.H){e.H.map((t=>t()));e.H=undefined}}if(e===null||e===void 0?void 0:e.C);else if(e===null||e===void 0?void 0:e.F){e.F.then((()=>ct()))}}};const ft=(t,e={})=>{var n;const s=c();const o=[];const l=e.exclude||[];const i=jt.customElements;const u=Ot.head;const a=u.querySelector("meta[charset]");const d=Ot.createElement("style");const v=[];let p;let y=true;Object.assign(kt,e);kt.q=new URL(e.resourcesUrl||"./",Ot.baseURI).href;let m=false;t.map((t=>{t[1].map((e=>{var n;const s={u:e[0],$:e[1],A:e[2],W:e[3]};if(s.u&4){m=true}{s.A=e[2]}{s.W=e[3]}{s.j=[]}{s.N=(n=e[4])!==null&&n!==void 0?n:{}}const c=s.$;const f=class extends HTMLElement{constructor(t){super(t);t=this;mt(t,s);if(s.u&1){{{t.attachShadow({mode:"open"})}}}}connectedCallback(){if(p){clearTimeout(p);p=null}if(y){v.push(this)}else{kt.jmp((()=>lt(this)))}}disconnectedCallback(){kt.jmp((()=>it(this)))}componentOnReady(){return ht(this).F}};s.T=t[0];if(!l.includes(c)&&!i.get(c)){o.push(c);i.define(c,nt(f,s,1))}}))}));if(o.length>0){if(m){d.textContent+=r}{d.textContent+=o+f}if(d.innerHTML.length){d.setAttribute("data-styles","");const t=(n=kt.h)!==null&&n!==void 0?n:h(Ot);if(t!=null){d.setAttribute("nonce",t)}u.insertBefore(d,a?a.nextSibling:u.firstChild)}}y=false;if(v.length){v.map((t=>t.connectedCallback()))}else{{kt.jmp((()=>p=setTimeout(X,30)))}}s()};const rt=(t,e,n,s)=>{if(n){n.map((([n,s,o])=>{const l=at(t,n);const c=ut(e,o);const i=dt(n);kt.ael(l,s,c,i);(e.H=e.H||[]).push((()=>kt.rel(l,s,c,i)))}))}};const ut=(t,e)=>n=>{try{{if(t.u&256){t.C[e](n)}else{(t.M=t.M||[]).push([e,n])}}}catch(t){wt(t)}};const at=(t,e)=>{if(e&8)return jt;return t};const dt=t=>Ct?{passive:(t&1)!==0,capture:(t&2)!==0}:(t&2)!==0;const vt=t=>kt.h=t;const pt=new WeakMap;const ht=t=>pt.get(t);const yt=(t,e)=>pt.set(e.C=t,e);const mt=(t,e)=>{const n={u:0,$hostElement$:t,m:e,U:new Map};{n.R=new Promise((t=>n.L=t))}{n.F=new Promise((t=>n.P=t));t["s-p"]=[];t["s-rc"]=[]}rt(t,n,e.W);return pt.set(t,n)};const bt=(t,e)=>e in t;const wt=(t,e)=>(0,console.error)(t,e);const $t=new Map;const gt=(t,e,n)=>{const s=t.$.replace(/-/g,"_");const o=t.T;const l=$t.get(o);if(l){return l[s]}
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${o}.entry.js${""}`).then((t=>{{$t.set(o,t)}return t[s]}),wt)};const St=new Map;const jt=typeof window!=="undefined"?window:{};const Ot=jt.document||{head:{}};const kt={u:0,q:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,s)=>t.addEventListener(e,n,s),rel:(t,e,n,s)=>t.removeEventListener(e,n,s),ce:(t,e)=>new CustomEvent(t,e)};const Ct=(()=>{let t=false;try{Ot.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=true}}))}catch(t){}return t})();const Mt=t=>Promise.resolve(t);const Pt=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(t){}return false})();const xt=[];const Et=[];const Lt=(t,e)=>n=>{t.push(n);if(!l){l=true;if(e&&kt.u&4){Nt(At)}else{kt.raf(At)}}};const Ut=t=>{for(let e=0;e<t.length;e++){try{t[e](performance.now())}catch(t){wt(t)}}t.length=0};const At=()=>{Ut(xt);{Ut(Et);if(l=xt.length>0){kt.raf(At)}}};const Nt=t=>Mt().then(t);const Rt=Lt(Et,true);export{b as H,ft as b,S as c,Q as f,g,y as h,Mt as p,yt as r,vt as s};
3
- //# sourceMappingURL=p-6fb7c4d1.js.map