@usecapsule/core-components 2.0.0 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (401) hide show
  1. package/dist/capsule/_commonjsHelpers-bc8ff177.js +36 -0
  2. package/dist/capsule/_commonjsHelpers-bc8ff177.js.map +1 -0
  3. package/dist/capsule/capsule.esm.js +52 -1
  4. package/dist/capsule/capsule.esm.js.map +1 -1
  5. package/dist/capsule/cpsl-alert.entry.js +31 -0
  6. package/dist/capsule/cpsl-alert.entry.js.map +1 -0
  7. package/dist/{esm → capsule}/cpsl-animation.entry.js +114 -20
  8. package/dist/capsule/cpsl-animation.entry.js.map +1 -0
  9. package/dist/capsule/cpsl-button.entry.js +24 -0
  10. package/dist/capsule/cpsl-button.entry.js.map +1 -0
  11. package/dist/capsule/cpsl-code-input.entry.js +106 -0
  12. package/dist/capsule/cpsl-code-input.entry.js.map +1 -0
  13. package/dist/{esm → capsule}/cpsl-col.entry.js +3 -4
  14. package/dist/capsule/cpsl-col.entry.js.map +1 -0
  15. package/dist/capsule/cpsl-divider.entry.js +17 -0
  16. package/dist/capsule/cpsl-divider.entry.js.map +1 -0
  17. package/dist/{esm → capsule}/cpsl-grid.entry.js +4 -5
  18. package/dist/capsule/cpsl-grid.entry.js.map +1 -0
  19. package/dist/capsule/cpsl-icon.entry.js +20 -0
  20. package/dist/capsule/cpsl-icon.entry.js.map +1 -0
  21. package/dist/{esm → capsule}/cpsl-info-box.entry.js +3 -4
  22. package/dist/capsule/cpsl-info-box.entry.js.map +1 -0
  23. package/dist/capsule/cpsl-input.entry.js +124 -0
  24. package/dist/capsule/cpsl-input.entry.js.map +1 -0
  25. package/dist/capsule/cpsl-modal.entry.js +3338 -0
  26. package/dist/capsule/cpsl-modal.entry.js.map +1 -0
  27. package/dist/capsule/cpsl-overlay.entry.js +44 -0
  28. package/dist/capsule/cpsl-overlay.entry.js.map +1 -0
  29. package/dist/capsule/cpsl-pill.entry.js +18 -0
  30. package/dist/capsule/cpsl-pill.entry.js.map +1 -0
  31. package/dist/capsule/cpsl-progress-indicator.entry.js +29 -0
  32. package/dist/capsule/cpsl-progress-indicator.entry.js.map +1 -0
  33. package/dist/capsule/cpsl-qr-code.entry.js +56 -0
  34. package/dist/capsule/cpsl-qr-code.entry.js.map +1 -0
  35. package/dist/capsule/cpsl-row.entry.js +17 -0
  36. package/dist/capsule/cpsl-row.entry.js.map +1 -0
  37. package/dist/capsule/cpsl-slide-button.entry.js +130 -0
  38. package/dist/capsule/cpsl-slide-button.entry.js.map +1 -0
  39. package/dist/capsule/cpsl-spinner.entry.js +25 -0
  40. package/dist/capsule/cpsl-spinner.entry.js.map +1 -0
  41. package/dist/capsule/cpsl-tab.entry.js +37 -0
  42. package/dist/capsule/cpsl-tab.entry.js.map +1 -0
  43. package/dist/capsule/cpsl-tabs.entry.js +71 -0
  44. package/dist/capsule/cpsl-tabs.entry.js.map +1 -0
  45. package/dist/capsule/cpsl-text.entry.js +66 -0
  46. package/dist/capsule/cpsl-text.entry.js.map +1 -0
  47. package/dist/capsule/cpsl-tile-button.entry.js +19 -0
  48. package/dist/capsule/cpsl-tile-button.entry.js.map +1 -0
  49. package/dist/capsule/index-3ac1b9e9.js +617 -0
  50. package/dist/capsule/index-3ac1b9e9.js.map +1 -0
  51. package/dist/capsule/index-3ad00c7e.js +6064 -0
  52. package/dist/capsule/index-3ad00c7e.js.map +1 -0
  53. package/dist/capsule/index-f19e63df.js +4148 -0
  54. package/dist/capsule/index-f19e63df.js.map +1 -0
  55. package/dist/capsule/index.esm.js +572 -1
  56. package/dist/capsule/index.esm.js.map +1 -1
  57. package/dist/capsule/shadow-css-bc9e2af8.js +478 -0
  58. package/dist/capsule/shadow-css-bc9e2af8.js.map +1 -0
  59. package/dist/types/components/cpsl-modal/cpsl-modal.d.ts +2 -0
  60. package/dist/types/components/cpsl-text/cpsl-text.d.ts +4 -0
  61. package/dist/types/index.d.ts +1 -1
  62. package/dist/types/interface.d.ts +15 -0
  63. package/dist/types/utils/theme/generateFont.d.ts +1 -1
  64. package/dist/types/utils/theme/generateTheme.d.ts +1 -2
  65. package/package.json +2 -2
  66. package/dist/capsule/p-0462f723.js +0 -2
  67. package/dist/capsule/p-0462f723.js.map +0 -1
  68. package/dist/capsule/p-202a85c9.entry.js +0 -29
  69. package/dist/capsule/p-202a85c9.entry.js.map +0 -1
  70. package/dist/capsule/p-68c73705.entry.js +0 -2
  71. package/dist/capsule/p-68c73705.entry.js.map +0 -1
  72. package/dist/capsule/p-6fb7c4d1.js +0 -3
  73. package/dist/capsule/p-6fb7c4d1.js.map +0 -1
  74. package/dist/capsule/p-91412151.entry.js +0 -2
  75. package/dist/capsule/p-91412151.entry.js.map +0 -1
  76. package/dist/capsule/p-a95ec4df.entry.js +0 -2
  77. package/dist/capsule/p-a95ec4df.entry.js.map +0 -1
  78. package/dist/capsule/p-c2bf050b.js +0 -2
  79. package/dist/capsule/p-c2bf050b.js.map +0 -1
  80. package/dist/capsule/p-d7be092d.entry.js +0 -10
  81. package/dist/capsule/p-d7be092d.entry.js.map +0 -1
  82. package/dist/capsule/p-e1255160.js +0 -2
  83. package/dist/capsule/p-e1255160.js.map +0 -1
  84. package/dist/capsule/p-f604b591.entry.js +0 -2
  85. package/dist/capsule/p-f604b591.entry.js.map +0 -1
  86. package/dist/cjs/_commonjsHelpers-b3309d7b.js +0 -12
  87. package/dist/cjs/_commonjsHelpers-b3309d7b.js.map +0 -1
  88. package/dist/cjs/app-globals-3a1e7e63.js +0 -7
  89. package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
  90. package/dist/cjs/capsule.cjs.js +0 -27
  91. package/dist/cjs/capsule.cjs.js.map +0 -1
  92. package/dist/cjs/constants-4bb85cc5.js +0 -12
  93. package/dist/cjs/constants-4bb85cc5.js.map +0 -1
  94. package/dist/cjs/cpsl-alert_17.cjs.entry.js +0 -10704
  95. package/dist/cjs/cpsl-alert_17.cjs.entry.js.map +0 -1
  96. package/dist/cjs/cpsl-animation.cjs.entry.js +0 -20129
  97. package/dist/cjs/cpsl-animation.cjs.entry.js.map +0 -1
  98. package/dist/cjs/cpsl-col.cjs.entry.js +0 -125
  99. package/dist/cjs/cpsl-col.cjs.entry.js.map +0 -1
  100. package/dist/cjs/cpsl-grid.cjs.entry.js +0 -25
  101. package/dist/cjs/cpsl-grid.cjs.entry.js.map +0 -1
  102. package/dist/cjs/cpsl-info-box.cjs.entry.js +0 -22
  103. package/dist/cjs/cpsl-info-box.cjs.entry.js.map +0 -1
  104. package/dist/cjs/cpsl-row.cjs.entry.js +0 -22
  105. package/dist/cjs/cpsl-row.cjs.entry.js.map +0 -1
  106. package/dist/cjs/index-3fccb5b4.js +0 -2012
  107. package/dist/cjs/index-3fccb5b4.js.map +0 -1
  108. package/dist/cjs/index.cjs.js +0 -342
  109. package/dist/cjs/index.cjs.js.map +0 -1
  110. package/dist/cjs/loader.cjs.js +0 -17
  111. package/dist/cjs/loader.cjs.js.map +0 -1
  112. package/dist/collection/assets/icons/alert-circle.svg +0 -3
  113. package/dist/collection/assets/icons/angel-list-brand.svg +0 -3
  114. package/dist/collection/assets/icons/angel-list.svg +0 -3
  115. package/dist/collection/assets/icons/apple-brand.svg +0 -3
  116. package/dist/collection/assets/icons/apple.svg +0 -3
  117. package/dist/collection/assets/icons/arrow-narrow.svg +0 -3
  118. package/dist/collection/assets/icons/arrow.svg +0 -3
  119. package/dist/collection/assets/icons/backup-kit.svg +0 -4
  120. package/dist/collection/assets/icons/capsule-logo.svg +0 -18
  121. package/dist/collection/assets/icons/capsule-rings-dark.svg +0 -34
  122. package/dist/collection/assets/icons/capsule-rings.svg +0 -34
  123. package/dist/collection/assets/icons/capsule.svg +0 -4
  124. package/dist/collection/assets/icons/check.svg +0 -3
  125. package/dist/collection/assets/icons/clock.svg +0 -3
  126. package/dist/collection/assets/icons/close.svg +0 -4
  127. package/dist/collection/assets/icons/clubhouse-brand.svg +0 -4
  128. package/dist/collection/assets/icons/clubhouse.svg +0 -4
  129. package/dist/collection/assets/icons/copy.svg +0 -3
  130. package/dist/collection/assets/icons/discord-brand.svg +0 -4
  131. package/dist/collection/assets/icons/discord.svg +0 -4
  132. package/dist/collection/assets/icons/download-cloud.svg +0 -3
  133. package/dist/collection/assets/icons/dribbble-brand.svg +0 -4
  134. package/dist/collection/assets/icons/dribbble.svg +0 -3
  135. package/dist/collection/assets/icons/eye-off.svg +0 -3
  136. package/dist/collection/assets/icons/eye.svg +0 -4
  137. package/dist/collection/assets/icons/facebook-brand.svg +0 -11
  138. package/dist/collection/assets/icons/facebook.svg +0 -10
  139. package/dist/collection/assets/icons/figma-brand.svg +0 -14
  140. package/dist/collection/assets/icons/figma.svg +0 -3
  141. package/dist/collection/assets/icons/github-brand.svg +0 -10
  142. package/dist/collection/assets/icons/github.svg +0 -10
  143. package/dist/collection/assets/icons/google-brand.svg +0 -13
  144. package/dist/collection/assets/icons/google.svg +0 -10
  145. package/dist/collection/assets/icons/help-circle.svg +0 -3
  146. package/dist/collection/assets/icons/hero-email.svg +0 -12
  147. package/dist/collection/assets/icons/hero-lock.svg +0 -4
  148. package/dist/collection/assets/icons/hero-passkey.svg +0 -12
  149. package/dist/collection/assets/icons/hero-phone.svg +0 -4
  150. package/dist/collection/assets/icons/hero-wallet.svg +0 -5
  151. package/dist/collection/assets/icons/index.js +0 -70
  152. package/dist/collection/assets/icons/index.js.map +0 -1
  153. package/dist/collection/assets/icons/info-circle.svg +0 -3
  154. package/dist/collection/assets/icons/instagram-brand.svg +0 -12
  155. package/dist/collection/assets/icons/instagram.svg +0 -12
  156. package/dist/collection/assets/icons/key.svg +0 -3
  157. package/dist/collection/assets/icons/linkedin-brand.svg +0 -10
  158. package/dist/collection/assets/icons/linkedin.svg +0 -10
  159. package/dist/collection/assets/icons/mail.svg +0 -3
  160. package/dist/collection/assets/icons/more-login-options.svg +0 -13
  161. package/dist/collection/assets/icons/phone.svg +0 -3
  162. package/dist/collection/assets/icons/pintrest-brand.svg +0 -11
  163. package/dist/collection/assets/icons/pintrest.svg +0 -10
  164. package/dist/collection/assets/icons/plus-circle.svg +0 -5
  165. package/dist/collection/assets/icons/reddit-brand.svg +0 -11
  166. package/dist/collection/assets/icons/reddit.svg +0 -3
  167. package/dist/collection/assets/icons/signal-brand.svg +0 -3
  168. package/dist/collection/assets/icons/signal.svg +0 -3
  169. package/dist/collection/assets/icons/snapchat-brand.svg +0 -4
  170. package/dist/collection/assets/icons/snapchat.svg +0 -3
  171. package/dist/collection/assets/icons/telegram-brand.svg +0 -15
  172. package/dist/collection/assets/icons/telegram.svg +0 -10
  173. package/dist/collection/assets/icons/tik-tok-brand.svg +0 -5
  174. package/dist/collection/assets/icons/tik-tok.svg +0 -3
  175. package/dist/collection/assets/icons/tumblr-brand.svg +0 -10
  176. package/dist/collection/assets/icons/tumblr.svg +0 -10
  177. package/dist/collection/assets/icons/twitter-brand.svg +0 -3
  178. package/dist/collection/assets/icons/twitter.svg +0 -3
  179. package/dist/collection/assets/icons/wallet.svg +0 -5
  180. package/dist/collection/assets/icons/youtube-brand.svg +0 -11
  181. package/dist/collection/assets/icons/youtube.svg +0 -3
  182. package/dist/collection/collection-manifest.json +0 -33
  183. package/dist/collection/components/cpsl-alert/cpsl-alert.css +0 -98
  184. package/dist/collection/components/cpsl-alert/cpsl-alert.js +0 -80
  185. package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +0 -1
  186. package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js +0 -29
  187. package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js.map +0 -1
  188. package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js +0 -37
  189. package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js.map +0 -1
  190. package/dist/collection/components/cpsl-animation/cpsl-animation.css +0 -17
  191. package/dist/collection/components/cpsl-animation/cpsl-animation.js +0 -102
  192. package/dist/collection/components/cpsl-animation/cpsl-animation.js.map +0 -1
  193. package/dist/collection/components/cpsl-animation/test/cpsl-animation.e2e.js +0 -29
  194. package/dist/collection/components/cpsl-animation/test/cpsl-animation.e2e.js.map +0 -1
  195. package/dist/collection/components/cpsl-animation/test/cpsl-animation.spec.js +0 -37
  196. package/dist/collection/components/cpsl-animation/test/cpsl-animation.spec.js.map +0 -1
  197. package/dist/collection/components/cpsl-button/cpsl-button.css +0 -162
  198. package/dist/collection/components/cpsl-button/cpsl-button.js +0 -68
  199. package/dist/collection/components/cpsl-button/cpsl-button.js.map +0 -1
  200. package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js +0 -29
  201. package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js.map +0 -1
  202. package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js +0 -37
  203. package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js.map +0 -1
  204. package/dist/collection/components/cpsl-code-input/code-change-interface.js +0 -2
  205. package/dist/collection/components/cpsl-code-input/code-change-interface.js.map +0 -1
  206. package/dist/collection/components/cpsl-code-input/cpsl-code-input.css +0 -134
  207. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +0 -223
  208. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +0 -1
  209. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js +0 -29
  210. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js.map +0 -1
  211. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js +0 -37
  212. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js.map +0 -1
  213. package/dist/collection/components/cpsl-col/cpsl-col.css +0 -200
  214. package/dist/collection/components/cpsl-col/cpsl-col.js +0 -528
  215. package/dist/collection/components/cpsl-col/cpsl-col.js.map +0 -1
  216. package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js +0 -29
  217. package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js.map +0 -1
  218. package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js +0 -37
  219. package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js.map +0 -1
  220. package/dist/collection/components/cpsl-divider/cpsl-divider.css +0 -73
  221. package/dist/collection/components/cpsl-divider/cpsl-divider.js +0 -19
  222. package/dist/collection/components/cpsl-divider/cpsl-divider.js.map +0 -1
  223. package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js +0 -29
  224. package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js.map +0 -1
  225. package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js +0 -37
  226. package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js.map +0 -1
  227. package/dist/collection/components/cpsl-grid/cpsl-grid.css +0 -235
  228. package/dist/collection/components/cpsl-grid/cpsl-grid.js +0 -46
  229. package/dist/collection/components/cpsl-grid/cpsl-grid.js.map +0 -1
  230. package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js +0 -29
  231. package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js.map +0 -1
  232. package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js +0 -37
  233. package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js.map +0 -1
  234. package/dist/collection/components/cpsl-icon/cpsl-icon.css +0 -95
  235. package/dist/collection/components/cpsl-icon/cpsl-icon.js +0 -68
  236. package/dist/collection/components/cpsl-icon/cpsl-icon.js.map +0 -1
  237. package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js +0 -29
  238. package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js.map +0 -1
  239. package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js +0 -37
  240. package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js.map +0 -1
  241. package/dist/collection/components/cpsl-info-box/cpsl-info-box.css +0 -77
  242. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +0 -19
  243. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js.map +0 -1
  244. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js +0 -29
  245. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js.map +0 -1
  246. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js +0 -37
  247. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js.map +0 -1
  248. package/dist/collection/components/cpsl-input/cpsl-input.css +0 -194
  249. package/dist/collection/components/cpsl-input/cpsl-input.js +0 -708
  250. package/dist/collection/components/cpsl-input/cpsl-input.js.map +0 -1
  251. package/dist/collection/components/cpsl-input/input-interface.js +0 -2
  252. package/dist/collection/components/cpsl-input/input-interface.js.map +0 -1
  253. package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js +0 -29
  254. package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js.map +0 -1
  255. package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js +0 -37
  256. package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js.map +0 -1
  257. package/dist/collection/components/cpsl-modal/cpsl-modal.css +0 -172
  258. package/dist/collection/components/cpsl-modal/cpsl-modal.js +0 -423
  259. package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +0 -1
  260. package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js +0 -29
  261. package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js.map +0 -1
  262. package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js +0 -37
  263. package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js.map +0 -1
  264. package/dist/collection/components/cpsl-overlay/cpsl-overlay.css +0 -11
  265. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +0 -108
  266. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js.map +0 -1
  267. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js +0 -29
  268. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js.map +0 -1
  269. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js +0 -37
  270. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js.map +0 -1
  271. package/dist/collection/components/cpsl-pill/cpsl-pill.css +0 -92
  272. package/dist/collection/components/cpsl-pill/cpsl-pill.js +0 -43
  273. package/dist/collection/components/cpsl-pill/cpsl-pill.js.map +0 -1
  274. package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js +0 -29
  275. package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js.map +0 -1
  276. package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js +0 -37
  277. package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js.map +0 -1
  278. package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.css +0 -82
  279. package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.js +0 -71
  280. package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.js.map +0 -1
  281. package/dist/collection/components/cpsl-progress-indicator/progress-indicator-interface.js +0 -2
  282. package/dist/collection/components/cpsl-progress-indicator/progress-indicator-interface.js.map +0 -1
  283. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js +0 -29
  284. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js.map +0 -1
  285. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js +0 -37
  286. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js.map +0 -1
  287. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.css +0 -81
  288. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +0 -107
  289. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js.map +0 -1
  290. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js +0 -29
  291. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js.map +0 -1
  292. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js +0 -37
  293. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js.map +0 -1
  294. package/dist/collection/components/cpsl-row/cpsl-row.css +0 -136
  295. package/dist/collection/components/cpsl-row/cpsl-row.js +0 -19
  296. package/dist/collection/components/cpsl-row/cpsl-row.js.map +0 -1
  297. package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js +0 -29
  298. package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js.map +0 -1
  299. package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js +0 -37
  300. package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js.map +0 -1
  301. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.css +0 -175
  302. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +0 -252
  303. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js.map +0 -1
  304. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js +0 -29
  305. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js.map +0 -1
  306. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js +0 -37
  307. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js.map +0 -1
  308. package/dist/collection/components/cpsl-spinner/cpsl-spinner.css +0 -68
  309. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +0 -69
  310. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js.map +0 -1
  311. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js +0 -29
  312. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js.map +0 -1
  313. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js +0 -37
  314. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js.map +0 -1
  315. package/dist/collection/components/cpsl-tab/cpsl-tab.css +0 -23
  316. package/dist/collection/components/cpsl-tab/cpsl-tab.js +0 -121
  317. package/dist/collection/components/cpsl-tab/cpsl-tab.js.map +0 -1
  318. package/dist/collection/components/cpsl-tab/tab-interface.js +0 -2
  319. package/dist/collection/components/cpsl-tab/tab-interface.js.map +0 -1
  320. package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js +0 -29
  321. package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js.map +0 -1
  322. package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js +0 -37
  323. package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js.map +0 -1
  324. package/dist/collection/components/cpsl-tabs/cpsl-tabs.css +0 -111
  325. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +0 -170
  326. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js.map +0 -1
  327. package/dist/collection/components/cpsl-tabs/tabs-interface.js +0 -2
  328. package/dist/collection/components/cpsl-tabs/tabs-interface.js.map +0 -1
  329. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js +0 -29
  330. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js.map +0 -1
  331. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js +0 -37
  332. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js.map +0 -1
  333. package/dist/collection/components/cpsl-text/cpsl-text.css +0 -59
  334. package/dist/collection/components/cpsl-text/cpsl-text.js +0 -19
  335. package/dist/collection/components/cpsl-text/cpsl-text.js.map +0 -1
  336. package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js +0 -29
  337. package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js.map +0 -1
  338. package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js +0 -37
  339. package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js.map +0 -1
  340. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.css +0 -97
  341. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +0 -67
  342. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js.map +0 -1
  343. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js +0 -29
  344. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js.map +0 -1
  345. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js +0 -37
  346. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js.map +0 -1
  347. package/dist/collection/constants.js +0 -6
  348. package/dist/collection/constants.js.map +0 -1
  349. package/dist/collection/index.js +0 -3
  350. package/dist/collection/index.js.map +0 -1
  351. package/dist/collection/interface.js +0 -2
  352. package/dist/collection/interface.js.map +0 -1
  353. package/dist/collection/utils/media.js +0 -18
  354. package/dist/collection/utils/media.js.map +0 -1
  355. package/dist/collection/utils/theme/generateBorderRadii.js +0 -56
  356. package/dist/collection/utils/theme/generateBorderRadii.js.map +0 -1
  357. package/dist/collection/utils/theme/generateFont.js +0 -7
  358. package/dist/collection/utils/theme/generateFont.js.map +0 -1
  359. package/dist/collection/utils/theme/generatePalette.js +0 -46
  360. package/dist/collection/utils/theme/generatePalette.js.map +0 -1
  361. package/dist/collection/utils/theme/generateTheme.js +0 -12
  362. package/dist/collection/utils/theme/generateTheme.js.map +0 -1
  363. package/dist/collection/utils/theme/utils.js +0 -21
  364. package/dist/collection/utils/theme/utils.js.map +0 -1
  365. package/dist/esm/_commonjsHelpers-1789f0cf.js +0 -9
  366. package/dist/esm/_commonjsHelpers-1789f0cf.js.map +0 -1
  367. package/dist/esm/capsule.js +0 -22
  368. package/dist/esm/capsule.js.map +0 -1
  369. package/dist/esm/cpsl-alert_17.entry.js +0 -10684
  370. package/dist/esm/cpsl-alert_17.entry.js.map +0 -1
  371. package/dist/esm/cpsl-animation.entry.js.map +0 -1
  372. package/dist/esm/cpsl-col.entry.js.map +0 -1
  373. package/dist/esm/cpsl-grid.entry.js.map +0 -1
  374. package/dist/esm/cpsl-info-box.entry.js.map +0 -1
  375. package/dist/esm/cpsl-row.entry.js +0 -18
  376. package/dist/esm/cpsl-row.entry.js.map +0 -1
  377. package/dist/esm/index-f00e090c.js +0 -1982
  378. package/dist/esm/index-f00e090c.js.map +0 -1
  379. package/dist/esm/index.js +0 -338
  380. package/dist/esm/index.js.map +0 -1
  381. package/dist/esm/loader.js +0 -13
  382. package/dist/esm/loader.js.map +0 -1
  383. package/dist/esm/polyfills/core-js.js +0 -11
  384. package/dist/esm/polyfills/dom.js +0 -79
  385. package/dist/esm/polyfills/es5-html-element.js +0 -1
  386. package/dist/esm/polyfills/index.js +0 -34
  387. package/dist/esm/polyfills/system.js +0 -6
  388. package/dist/index.cjs.js +0 -1
  389. package/dist/index.js +0 -1
  390. package/dist/loader/cdn.js +0 -3
  391. package/dist/loader/index.cjs.js +0 -3
  392. package/dist/loader/index.d.ts +0 -21
  393. package/dist/loader/index.es2017.js +0 -3
  394. package/dist/loader/index.js +0 -4
  395. package/dist/loader/package.json +0 -11
  396. package/dist/scripts/buildIconLibrary.js +0 -33
  397. package/dist/scripts/buildIconLibrary.js.map +0 -1
  398. /package/dist/{esm → capsule}/app-globals-0f993ce5.js +0 -0
  399. /package/dist/{esm → capsule}/app-globals-0f993ce5.js.map +0 -0
  400. /package/dist/{esm → capsule}/constants-7b49abd5.js +0 -0
  401. /package/dist/{esm → capsule}/constants-7b49abd5.js.map +0 -0
@@ -0,0 +1,478 @@
1
+ /*
2
+ Stencil Client Platform v4.12.5 | MIT Licensed | https://stenciljs.com
3
+ */
4
+ /**
5
+ * Utility function that will escape all regular expression special characters in a string.
6
+ *
7
+ * @param text The string potentially containing special characters.
8
+ * @returns The string with all special characters escaped.
9
+ */
10
+ const escapeRegExpSpecialCharacters = (text) => {
11
+ return text.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
12
+ };
13
+
14
+ /**
15
+ * @license
16
+ * Copyright Google Inc. All Rights Reserved.
17
+ *
18
+ * Use of this source code is governed by an MIT-style license that can be
19
+ * found in the LICENSE file at https://angular.io/license
20
+ *
21
+ * This file is a port of shadowCSS from `webcomponents.js` to TypeScript.
22
+ * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
23
+ * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
24
+ */
25
+ const safeSelector = (selector) => {
26
+ const placeholders = [];
27
+ let index = 0;
28
+ // Replaces attribute selectors with placeholders.
29
+ // The WS in [attr="va lue"] would otherwise be interpreted as a selector separator.
30
+ selector = selector.replace(/(\[[^\]]*\])/g, (_, keep) => {
31
+ const replaceBy = `__ph-${index}__`;
32
+ placeholders.push(keep);
33
+ index++;
34
+ return replaceBy;
35
+ });
36
+ // Replaces the expression in `:nth-child(2n + 1)` with a placeholder.
37
+ // WS and "+" would otherwise be interpreted as selector separators.
38
+ const content = selector.replace(/(:nth-[-\w]+)(\([^)]+\))/g, (_, pseudo, exp) => {
39
+ const replaceBy = `__ph-${index}__`;
40
+ placeholders.push(exp);
41
+ index++;
42
+ return pseudo + replaceBy;
43
+ });
44
+ const ss = {
45
+ content,
46
+ placeholders,
47
+ };
48
+ return ss;
49
+ };
50
+ const restoreSafeSelector = (placeholders, content) => {
51
+ return content.replace(/__ph-(\d+)__/g, (_, index) => placeholders[+index]);
52
+ };
53
+ const _polyfillHost = '-shadowcsshost';
54
+ const _polyfillSlotted = '-shadowcssslotted';
55
+ // note: :host-context pre-processed to -shadowcsshostcontext.
56
+ const _polyfillHostContext = '-shadowcsscontext';
57
+ const _parenSuffix = ')(?:\\((' + '(?:\\([^)(]*\\)|[^)(]*)+?' + ')\\))?([^,{]*)';
58
+ const _cssColonHostRe = new RegExp('(' + _polyfillHost + _parenSuffix, 'gim');
59
+ const _cssColonHostContextRe = new RegExp('(' + _polyfillHostContext + _parenSuffix, 'gim');
60
+ const _cssColonSlottedRe = new RegExp('(' + _polyfillSlotted + _parenSuffix, 'gim');
61
+ const _polyfillHostNoCombinator = _polyfillHost + '-no-combinator';
62
+ const _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
63
+ const _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
64
+ const _selectorReSuffix = '([>\\s~+[.,{:][\\s\\S]*)?$';
65
+ const _polyfillHostRe = /-shadowcsshost/gim;
66
+ /**
67
+ * Little helper for generating a regex that will match a specified
68
+ * CSS selector when that selector is _not_ a part of a `@supports` rule.
69
+ *
70
+ * The pattern will match the provided `selector` (i.e. ':host', ':host-context', etc.)
71
+ * when that selector is not a part of a `@supports` selector rule _or_ if the selector
72
+ * is a part of the rule's declaration.
73
+ *
74
+ * For instance, if we create the regex with the selector ':host-context':
75
+ * - '@supports selector(:host-context())' will return no matches (starts with '@supports')
76
+ * - '@supports selector(:host-context()) { :host-context() { ... }}' will match the second ':host-context' (part of declaration)
77
+ * - ':host-context() { ... }' will match ':host-context' (selector is not a '@supports' rule)
78
+ * - ':host() { ... }' will return no matches (selector doesn't match selector used to create regex)
79
+ *
80
+ * @param selector The CSS selector we want to match for replacement
81
+ * @returns A look-behind regex containing the selector
82
+ */
83
+ const createSupportsRuleRe = (selector) => new RegExp(`((?<!(^@supports(.*)))|(?<=\{.*))(${selector}\\b)`, 'gim');
84
+ const _colonSlottedRe = createSupportsRuleRe('::slotted');
85
+ const _colonHostRe = createSupportsRuleRe(':host');
86
+ const _colonHostContextRe = createSupportsRuleRe(':host-context');
87
+ const _commentRe = /\/\*\s*[\s\S]*?\*\//g;
88
+ const stripComments = (input) => {
89
+ return input.replace(_commentRe, '');
90
+ };
91
+ const _commentWithHashRe = /\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;
92
+ const extractCommentsWithHash = (input) => {
93
+ return input.match(_commentWithHashRe) || [];
94
+ };
95
+ const _ruleRe = /(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;
96
+ const _curlyRe = /([{}])/g;
97
+ const _selectorPartsRe = /(^.*?[^\\])??((:+)(.*)|$)/;
98
+ const OPEN_CURLY = '{';
99
+ const CLOSE_CURLY = '}';
100
+ const BLOCK_PLACEHOLDER = '%BLOCK%';
101
+ const processRules = (input, ruleCallback) => {
102
+ const inputWithEscapedBlocks = escapeBlocks(input);
103
+ let nextBlockIndex = 0;
104
+ return inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {
105
+ const selector = m[2];
106
+ let content = '';
107
+ let suffix = m[4];
108
+ let contentPrefix = '';
109
+ if (suffix && suffix.startsWith('{' + BLOCK_PLACEHOLDER)) {
110
+ content = inputWithEscapedBlocks.blocks[nextBlockIndex++];
111
+ suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);
112
+ contentPrefix = '{';
113
+ }
114
+ const cssRule = {
115
+ selector,
116
+ content,
117
+ };
118
+ const rule = ruleCallback(cssRule);
119
+ return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;
120
+ });
121
+ };
122
+ const escapeBlocks = (input) => {
123
+ const inputParts = input.split(_curlyRe);
124
+ const resultParts = [];
125
+ const escapedBlocks = [];
126
+ let bracketCount = 0;
127
+ let currentBlockParts = [];
128
+ for (let partIndex = 0; partIndex < inputParts.length; partIndex++) {
129
+ const part = inputParts[partIndex];
130
+ if (part === CLOSE_CURLY) {
131
+ bracketCount--;
132
+ }
133
+ if (bracketCount > 0) {
134
+ currentBlockParts.push(part);
135
+ }
136
+ else {
137
+ if (currentBlockParts.length > 0) {
138
+ escapedBlocks.push(currentBlockParts.join(''));
139
+ resultParts.push(BLOCK_PLACEHOLDER);
140
+ currentBlockParts = [];
141
+ }
142
+ resultParts.push(part);
143
+ }
144
+ if (part === OPEN_CURLY) {
145
+ bracketCount++;
146
+ }
147
+ }
148
+ if (currentBlockParts.length > 0) {
149
+ escapedBlocks.push(currentBlockParts.join(''));
150
+ resultParts.push(BLOCK_PLACEHOLDER);
151
+ }
152
+ const strEscapedBlocks = {
153
+ escapedString: resultParts.join(''),
154
+ blocks: escapedBlocks,
155
+ };
156
+ return strEscapedBlocks;
157
+ };
158
+ /**
159
+ * Replaces certain strings within the CSS with placeholders
160
+ * that will later be replaced with class selectors appropriate
161
+ * for the level of encapsulation (shadow or scoped).
162
+ *
163
+ * When performing these replacements, we want to ignore selectors that are a
164
+ * part of an `@supports` rule. Replacing these selectors will result in invalid
165
+ * CSS that gets passed to autoprefixer/postcss once the placeholders are replaced.
166
+ * For example, a rule like:
167
+ *
168
+ * ```css
169
+ * @supports selector(:host()) {
170
+ * :host {
171
+ * color: red;
172
+ * }
173
+ * }
174
+ * ```
175
+ *
176
+ * Should be converted to:
177
+ *
178
+ * ```css
179
+ * @supports selector(:host()) {
180
+ * -shadowcsshost {
181
+ * color: red;
182
+ * }
183
+ * }
184
+ * ```
185
+ *
186
+ * The order the regex replacements happen in matters since we match
187
+ * against a whole selector word so we need to match all of `:host-context`
188
+ * before we try to replace `:host`. Otherwise the pattern for `:host` would match
189
+ * `:host-context` resulting in something like `:-shadowcsshost-context`.
190
+ *
191
+ * @param cssText A CSS string for a component
192
+ * @returns The modified CSS string
193
+ */
194
+ const insertPolyfillHostInCssText = (cssText) => {
195
+ // These replacements use a special syntax with the `$1`. When the replacement
196
+ // occurs, `$1` maps to the content of the string leading up to the selector
197
+ // to be replaced.
198
+ //
199
+ // Otherwise, we will replace all the preceding content in addition to the
200
+ // selector because of the lookbehind in the regex.
201
+ //
202
+ // e.g. `/*!@___0___*/:host {}` => `/*!@___0___*/--shadowcsshost {}`
203
+ cssText = cssText
204
+ .replace(_colonHostContextRe, `$1${_polyfillHostContext}`)
205
+ .replace(_colonHostRe, `$1${_polyfillHost}`)
206
+ .replace(_colonSlottedRe, `$1${_polyfillSlotted}`);
207
+ return cssText;
208
+ };
209
+ const convertColonRule = (cssText, regExp, partReplacer) => {
210
+ // m[1] = :host(-context), m[2] = contents of (), m[3] rest of rule
211
+ return cssText.replace(regExp, (...m) => {
212
+ if (m[2]) {
213
+ const parts = m[2].split(',');
214
+ const r = [];
215
+ for (let i = 0; i < parts.length; i++) {
216
+ const p = parts[i].trim();
217
+ if (!p)
218
+ break;
219
+ r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));
220
+ }
221
+ return r.join(',');
222
+ }
223
+ else {
224
+ return _polyfillHostNoCombinator + m[3];
225
+ }
226
+ });
227
+ };
228
+ const colonHostPartReplacer = (host, part, suffix) => {
229
+ return host + part.replace(_polyfillHost, '') + suffix;
230
+ };
231
+ const convertColonHost = (cssText) => {
232
+ return convertColonRule(cssText, _cssColonHostRe, colonHostPartReplacer);
233
+ };
234
+ const colonHostContextPartReplacer = (host, part, suffix) => {
235
+ if (part.indexOf(_polyfillHost) > -1) {
236
+ return colonHostPartReplacer(host, part, suffix);
237
+ }
238
+ else {
239
+ return host + part + suffix + ', ' + part + ' ' + host + suffix;
240
+ }
241
+ };
242
+ const convertColonSlotted = (cssText, slotScopeId) => {
243
+ const slotClass = '.' + slotScopeId + ' > ';
244
+ const selectors = [];
245
+ cssText = cssText.replace(_cssColonSlottedRe, (...m) => {
246
+ if (m[2]) {
247
+ const compound = m[2].trim();
248
+ const suffix = m[3];
249
+ const slottedSelector = slotClass + compound + suffix;
250
+ let prefixSelector = '';
251
+ for (let i = m[4] - 1; i >= 0; i--) {
252
+ const char = m[5][i];
253
+ if (char === '}' || char === ',') {
254
+ break;
255
+ }
256
+ prefixSelector = char + prefixSelector;
257
+ }
258
+ const orgSelector = (prefixSelector + slottedSelector).trim();
259
+ const addedSelector = `${prefixSelector.trimEnd()}${slottedSelector.trim()}`.trim();
260
+ if (orgSelector !== addedSelector) {
261
+ const updatedSelector = `${addedSelector}, ${orgSelector}`;
262
+ selectors.push({
263
+ orgSelector,
264
+ updatedSelector,
265
+ });
266
+ }
267
+ return slottedSelector;
268
+ }
269
+ else {
270
+ return _polyfillHostNoCombinator + m[3];
271
+ }
272
+ });
273
+ return {
274
+ selectors,
275
+ cssText,
276
+ };
277
+ };
278
+ const convertColonHostContext = (cssText) => {
279
+ return convertColonRule(cssText, _cssColonHostContextRe, colonHostContextPartReplacer);
280
+ };
281
+ const convertShadowDOMSelectors = (cssText) => {
282
+ return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, ' '), cssText);
283
+ };
284
+ const makeScopeMatcher = (scopeSelector) => {
285
+ const lre = /\[/g;
286
+ const rre = /\]/g;
287
+ scopeSelector = scopeSelector.replace(lre, '\\[').replace(rre, '\\]');
288
+ return new RegExp('^(' + scopeSelector + ')' + _selectorReSuffix, 'm');
289
+ };
290
+ const selectorNeedsScoping = (selector, scopeSelector) => {
291
+ const re = makeScopeMatcher(scopeSelector);
292
+ return !re.test(selector);
293
+ };
294
+ const injectScopingSelector = (selector, scopingSelector) => {
295
+ return selector.replace(_selectorPartsRe, (_, before = '', _colonGroup, colon = '', after = '') => {
296
+ return before + scopingSelector + colon + after;
297
+ });
298
+ };
299
+ const applySimpleSelectorScope = (selector, scopeSelector, hostSelector) => {
300
+ // In Android browser, the lastIndex is not reset when the regex is used in String.replace()
301
+ _polyfillHostRe.lastIndex = 0;
302
+ if (_polyfillHostRe.test(selector)) {
303
+ const replaceBy = `.${hostSelector}`;
304
+ return selector
305
+ .replace(_polyfillHostNoCombinatorRe, (_, selector) => injectScopingSelector(selector, replaceBy))
306
+ .replace(_polyfillHostRe, replaceBy + ' ');
307
+ }
308
+ return scopeSelector + ' ' + selector;
309
+ };
310
+ const applyStrictSelectorScope = (selector, scopeSelector, hostSelector) => {
311
+ const isRe = /\[is=([^\]]*)\]/g;
312
+ scopeSelector = scopeSelector.replace(isRe, (_, ...parts) => parts[0]);
313
+ const className = '.' + scopeSelector;
314
+ const _scopeSelectorPart = (p) => {
315
+ let scopedP = p.trim();
316
+ if (!scopedP) {
317
+ return '';
318
+ }
319
+ if (p.indexOf(_polyfillHostNoCombinator) > -1) {
320
+ scopedP = applySimpleSelectorScope(p, scopeSelector, hostSelector);
321
+ }
322
+ else {
323
+ // remove :host since it should be unnecessary
324
+ const t = p.replace(_polyfillHostRe, '');
325
+ if (t.length > 0) {
326
+ scopedP = injectScopingSelector(t, className);
327
+ }
328
+ }
329
+ return scopedP;
330
+ };
331
+ const safeContent = safeSelector(selector);
332
+ selector = safeContent.content;
333
+ let scopedSelector = '';
334
+ let startIndex = 0;
335
+ let res;
336
+ const sep = /( |>|\+|~(?!=))\s*/g;
337
+ // If a selector appears before :host it should not be shimmed as it
338
+ // matches on ancestor elements and not on elements in the host's shadow
339
+ // `:host-context(div)` is transformed to
340
+ // `-shadowcsshost-no-combinatordiv, div -shadowcsshost-no-combinator`
341
+ // the `div` is not part of the component in the 2nd selectors and should not be scoped.
342
+ // Historically `component-tag:host` was matching the component so we also want to preserve
343
+ // this behavior to avoid breaking legacy apps (it should not match).
344
+ // The behavior should be:
345
+ // - `tag:host` -> `tag[h]` (this is to avoid breaking legacy apps, should not match anything)
346
+ // - `tag :host` -> `tag [h]` (`tag` is not scoped because it's considered part of a
347
+ // `:host-context(tag)`)
348
+ const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
349
+ // Only scope parts after the first `-shadowcsshost-no-combinator` when it is present
350
+ let shouldScope = !hasHost;
351
+ while ((res = sep.exec(selector)) !== null) {
352
+ const separator = res[1];
353
+ const part = selector.slice(startIndex, res.index).trim();
354
+ shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
355
+ const scopedPart = shouldScope ? _scopeSelectorPart(part) : part;
356
+ scopedSelector += `${scopedPart} ${separator} `;
357
+ startIndex = sep.lastIndex;
358
+ }
359
+ const part = selector.substring(startIndex);
360
+ shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
361
+ scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
362
+ // replace the placeholders with their original values
363
+ return restoreSafeSelector(safeContent.placeholders, scopedSelector);
364
+ };
365
+ const scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {
366
+ return selector
367
+ .split(',')
368
+ .map((shallowPart) => {
369
+ if (slotSelector && shallowPart.indexOf('.' + slotSelector) > -1) {
370
+ return shallowPart.trim();
371
+ }
372
+ if (selectorNeedsScoping(shallowPart, scopeSelectorText)) {
373
+ return applyStrictSelectorScope(shallowPart, scopeSelectorText, hostSelector).trim();
374
+ }
375
+ else {
376
+ return shallowPart.trim();
377
+ }
378
+ })
379
+ .join(', ');
380
+ };
381
+ const scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
382
+ return processRules(cssText, (rule) => {
383
+ let selector = rule.selector;
384
+ let content = rule.content;
385
+ if (rule.selector[0] !== '@') {
386
+ selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);
387
+ }
388
+ else if (rule.selector.startsWith('@media') ||
389
+ rule.selector.startsWith('@supports') ||
390
+ rule.selector.startsWith('@page') ||
391
+ rule.selector.startsWith('@document')) {
392
+ content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector);
393
+ }
394
+ const cssRule = {
395
+ selector: selector.replace(/\s{2,}/g, ' ').trim(),
396
+ content,
397
+ };
398
+ return cssRule;
399
+ });
400
+ };
401
+ const scopeCssText = (cssText, scopeId, hostScopeId, slotScopeId, commentOriginalSelector) => {
402
+ cssText = insertPolyfillHostInCssText(cssText);
403
+ cssText = convertColonHost(cssText);
404
+ cssText = convertColonHostContext(cssText);
405
+ const slotted = convertColonSlotted(cssText, slotScopeId);
406
+ cssText = slotted.cssText;
407
+ cssText = convertShadowDOMSelectors(cssText);
408
+ if (scopeId) {
409
+ cssText = scopeSelectors(cssText, scopeId, hostScopeId, slotScopeId);
410
+ }
411
+ cssText = replaceShadowCssHost(cssText, hostScopeId);
412
+ cssText = cssText.replace(/>\s*\*\s+([^{, ]+)/gm, ' $1 ');
413
+ return {
414
+ cssText: cssText.trim(),
415
+ // We need to replace the shadow CSS host string in each of these selectors since we created
416
+ // them prior to the replacement happening in the components CSS text.
417
+ slottedSelectors: slotted.selectors.map((ref) => ({
418
+ orgSelector: replaceShadowCssHost(ref.orgSelector, hostScopeId),
419
+ updatedSelector: replaceShadowCssHost(ref.updatedSelector, hostScopeId),
420
+ })),
421
+ };
422
+ };
423
+ /**
424
+ * Helper function that replaces the interim string representing a `:host` selector with
425
+ * the host scope selector class for the element.
426
+ *
427
+ * @param cssText The CSS string to make the replacement in
428
+ * @param hostScopeId The scope ID that will be used as the class representing the host element
429
+ * @returns CSS with the selector replaced
430
+ */
431
+ const replaceShadowCssHost = (cssText, hostScopeId) => {
432
+ return cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);
433
+ };
434
+ const scopeCss = (cssText, scopeId, commentOriginalSelector) => {
435
+ const hostScopeId = scopeId + '-h';
436
+ const slotScopeId = scopeId + '-s';
437
+ const commentsWithHash = extractCommentsWithHash(cssText);
438
+ cssText = stripComments(cssText);
439
+ const orgSelectors = [];
440
+ if (commentOriginalSelector) {
441
+ const processCommentedSelector = (rule) => {
442
+ const placeholder = `/*!@___${orgSelectors.length}___*/`;
443
+ const comment = `/*!@${rule.selector}*/`;
444
+ orgSelectors.push({ placeholder, comment });
445
+ rule.selector = placeholder + rule.selector;
446
+ return rule;
447
+ };
448
+ cssText = processRules(cssText, (rule) => {
449
+ if (rule.selector[0] !== '@') {
450
+ return processCommentedSelector(rule);
451
+ }
452
+ else if (rule.selector.startsWith('@media') ||
453
+ rule.selector.startsWith('@supports') ||
454
+ rule.selector.startsWith('@page') ||
455
+ rule.selector.startsWith('@document')) {
456
+ rule.content = processRules(rule.content, processCommentedSelector);
457
+ return rule;
458
+ }
459
+ return rule;
460
+ });
461
+ }
462
+ const scoped = scopeCssText(cssText, scopeId, hostScopeId, slotScopeId);
463
+ cssText = [scoped.cssText, ...commentsWithHash].join('\n');
464
+ if (commentOriginalSelector) {
465
+ orgSelectors.forEach(({ placeholder, comment }) => {
466
+ cssText = cssText.replace(placeholder, comment);
467
+ });
468
+ }
469
+ scoped.slottedSelectors.forEach((slottedSelector) => {
470
+ const regex = new RegExp(escapeRegExpSpecialCharacters(slottedSelector.orgSelector), 'g');
471
+ cssText = cssText.replace(regex, slottedSelector.updatedSelector);
472
+ });
473
+ return cssText;
474
+ };
475
+
476
+ export { scopeCss };
477
+
478
+ //# sourceMappingURL=shadow-css-bc9e2af8.js.map
@@ -0,0 +1 @@
1
+ {"file":"shadow-css-bc9e2af8.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,6BAA6B,G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AAE;AACjC,QAAQ,YAAY,CAAC,OAAO,CAAC,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE,KAAK;AAC3D,YAAY,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AAC5D,SAAS,CAAC,CAAC;AACX,KAAK;AACL,IAAI,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,eAAe,KAAK;AACzD,QAAQ,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,6BAA6B,CAAC,eAAe,CAAC,WAAW,CAAC,EAAE,GAAG,CAAC,CAAC;AAClG,QAAQ,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,eAAe,CAAC,eAAe,CAAC,CAAC;AAC1E,KAAK,CAAC,CAAC;AACP,IAAI,OAAO,OAAO,CAAC;AACnB;;;;","names":[],"sources":["../node_modules/@stencil/core/internal/client/shadow-css.js"],"sourcesContent":["/*\n Stencil Client Platform v4.12.5 | MIT Licensed | https://stenciljs.com\n */\n/**\n * Utility function that will escape all regular expression special characters in a string.\n *\n * @param text The string potentially containing special characters.\n * @returns The string with all special characters escaped.\n */\nconst escapeRegExpSpecialCharacters = (text) => {\n return text.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&');\n};\n\n/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n *\n * This file is a port of shadowCSS from `webcomponents.js` to TypeScript.\n * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js\n * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts\n */\nconst safeSelector = (selector) => {\n const placeholders = [];\n let index = 0;\n // Replaces attribute selectors with placeholders.\n // The WS in [attr=\"va lue\"] would otherwise be interpreted as a selector separator.\n selector = selector.replace(/(\\[[^\\]]*\\])/g, (_, keep) => {\n const replaceBy = `__ph-${index}__`;\n placeholders.push(keep);\n index++;\n return replaceBy;\n });\n // Replaces the expression in `:nth-child(2n + 1)` with a placeholder.\n // WS and \"+\" would otherwise be interpreted as selector separators.\n const content = selector.replace(/(:nth-[-\\w]+)(\\([^)]+\\))/g, (_, pseudo, exp) => {\n const replaceBy = `__ph-${index}__`;\n placeholders.push(exp);\n index++;\n return pseudo + replaceBy;\n });\n const ss = {\n content,\n placeholders,\n };\n return ss;\n};\nconst restoreSafeSelector = (placeholders, content) => {\n return content.replace(/__ph-(\\d+)__/g, (_, index) => placeholders[+index]);\n};\nconst _polyfillHost = '-shadowcsshost';\nconst _polyfillSlotted = '-shadowcssslotted';\n// note: :host-context pre-processed to -shadowcsshostcontext.\nconst _polyfillHostContext = '-shadowcsscontext';\nconst _parenSuffix = ')(?:\\\\((' + '(?:\\\\([^)(]*\\\\)|[^)(]*)+?' + ')\\\\))?([^,{]*)';\nconst _cssColonHostRe = new RegExp('(' + _polyfillHost + _parenSuffix, 'gim');\nconst _cssColonHostContextRe = new RegExp('(' + _polyfillHostContext + _parenSuffix, 'gim');\nconst _cssColonSlottedRe = new RegExp('(' + _polyfillSlotted + _parenSuffix, 'gim');\nconst _polyfillHostNoCombinator = _polyfillHost + '-no-combinator';\nconst _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\\s]*)/;\nconst _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];\nconst _selectorReSuffix = '([>\\\\s~+[.,{:][\\\\s\\\\S]*)?$';\nconst _polyfillHostRe = /-shadowcsshost/gim;\n/**\n * Little helper for generating a regex that will match a specified\n * CSS selector when that selector is _not_ a part of a `@supports` rule.\n *\n * The pattern will match the provided `selector` (i.e. ':host', ':host-context', etc.)\n * when that selector is not a part of a `@supports` selector rule _or_ if the selector\n * is a part of the rule's declaration.\n *\n * For instance, if we create the regex with the selector ':host-context':\n * - '@supports selector(:host-context())' will return no matches (starts with '@supports')\n * - '@supports selector(:host-context()) { :host-context() { ... }}' will match the second ':host-context' (part of declaration)\n * - ':host-context() { ... }' will match ':host-context' (selector is not a '@supports' rule)\n * - ':host() { ... }' will return no matches (selector doesn't match selector used to create regex)\n *\n * @param selector The CSS selector we want to match for replacement\n * @returns A look-behind regex containing the selector\n */\nconst createSupportsRuleRe = (selector) => new RegExp(`((?<!(^@supports(.*)))|(?<=\\{.*))(${selector}\\\\b)`, 'gim');\nconst _colonSlottedRe = createSupportsRuleRe('::slotted');\nconst _colonHostRe = createSupportsRuleRe(':host');\nconst _colonHostContextRe = createSupportsRuleRe(':host-context');\nconst _commentRe = /\\/\\*\\s*[\\s\\S]*?\\*\\//g;\nconst stripComments = (input) => {\n return input.replace(_commentRe, '');\n};\nconst _commentWithHashRe = /\\/\\*\\s*#\\s*source(Mapping)?URL=[\\s\\S]+?\\*\\//g;\nconst extractCommentsWithHash = (input) => {\n return input.match(_commentWithHashRe) || [];\n};\nconst _ruleRe = /(\\s*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))/g;\nconst _curlyRe = /([{}])/g;\nconst _selectorPartsRe = /(^.*?[^\\\\])??((:+)(.*)|$)/;\nconst OPEN_CURLY = '{';\nconst CLOSE_CURLY = '}';\nconst BLOCK_PLACEHOLDER = '%BLOCK%';\nconst processRules = (input, ruleCallback) => {\n const inputWithEscapedBlocks = escapeBlocks(input);\n let nextBlockIndex = 0;\n return inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {\n const selector = m[2];\n let content = '';\n let suffix = m[4];\n let contentPrefix = '';\n if (suffix && suffix.startsWith('{' + BLOCK_PLACEHOLDER)) {\n content = inputWithEscapedBlocks.blocks[nextBlockIndex++];\n suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);\n contentPrefix = '{';\n }\n const cssRule = {\n selector,\n content,\n };\n const rule = ruleCallback(cssRule);\n return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;\n });\n};\nconst escapeBlocks = (input) => {\n const inputParts = input.split(_curlyRe);\n const resultParts = [];\n const escapedBlocks = [];\n let bracketCount = 0;\n let currentBlockParts = [];\n for (let partIndex = 0; partIndex < inputParts.length; partIndex++) {\n const part = inputParts[partIndex];\n if (part === CLOSE_CURLY) {\n bracketCount--;\n }\n if (bracketCount > 0) {\n currentBlockParts.push(part);\n }\n else {\n if (currentBlockParts.length > 0) {\n escapedBlocks.push(currentBlockParts.join(''));\n resultParts.push(BLOCK_PLACEHOLDER);\n currentBlockParts = [];\n }\n resultParts.push(part);\n }\n if (part === OPEN_CURLY) {\n bracketCount++;\n }\n }\n if (currentBlockParts.length > 0) {\n escapedBlocks.push(currentBlockParts.join(''));\n resultParts.push(BLOCK_PLACEHOLDER);\n }\n const strEscapedBlocks = {\n escapedString: resultParts.join(''),\n blocks: escapedBlocks,\n };\n return strEscapedBlocks;\n};\n/**\n * Replaces certain strings within the CSS with placeholders\n * that will later be replaced with class selectors appropriate\n * for the level of encapsulation (shadow or scoped).\n *\n * When performing these replacements, we want to ignore selectors that are a\n * part of an `@supports` rule. Replacing these selectors will result in invalid\n * CSS that gets passed to autoprefixer/postcss once the placeholders are replaced.\n * For example, a rule like:\n *\n * ```css\n * @supports selector(:host()) {\n * :host {\n * color: red;\n * }\n * }\n * ```\n *\n * Should be converted to:\n *\n * ```css\n * @supports selector(:host()) {\n * -shadowcsshost {\n * color: red;\n * }\n * }\n * ```\n *\n * The order the regex replacements happen in matters since we match\n * against a whole selector word so we need to match all of `:host-context`\n * before we try to replace `:host`. Otherwise the pattern for `:host` would match\n * `:host-context` resulting in something like `:-shadowcsshost-context`.\n *\n * @param cssText A CSS string for a component\n * @returns The modified CSS string\n */\nconst insertPolyfillHostInCssText = (cssText) => {\n // These replacements use a special syntax with the `$1`. When the replacement\n // occurs, `$1` maps to the content of the string leading up to the selector\n // to be replaced.\n //\n // Otherwise, we will replace all the preceding content in addition to the\n // selector because of the lookbehind in the regex.\n //\n // e.g. `/*!@___0___*/:host {}` => `/*!@___0___*/--shadowcsshost {}`\n cssText = cssText\n .replace(_colonHostContextRe, `$1${_polyfillHostContext}`)\n .replace(_colonHostRe, `$1${_polyfillHost}`)\n .replace(_colonSlottedRe, `$1${_polyfillSlotted}`);\n return cssText;\n};\nconst convertColonRule = (cssText, regExp, partReplacer) => {\n // m[1] = :host(-context), m[2] = contents of (), m[3] rest of rule\n return cssText.replace(regExp, (...m) => {\n if (m[2]) {\n const parts = m[2].split(',');\n const r = [];\n for (let i = 0; i < parts.length; i++) {\n const p = parts[i].trim();\n if (!p)\n break;\n r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));\n }\n return r.join(',');\n }\n else {\n return _polyfillHostNoCombinator + m[3];\n }\n });\n};\nconst colonHostPartReplacer = (host, part, suffix) => {\n return host + part.replace(_polyfillHost, '') + suffix;\n};\nconst convertColonHost = (cssText) => {\n return convertColonRule(cssText, _cssColonHostRe, colonHostPartReplacer);\n};\nconst colonHostContextPartReplacer = (host, part, suffix) => {\n if (part.indexOf(_polyfillHost) > -1) {\n return colonHostPartReplacer(host, part, suffix);\n }\n else {\n return host + part + suffix + ', ' + part + ' ' + host + suffix;\n }\n};\nconst convertColonSlotted = (cssText, slotScopeId) => {\n const slotClass = '.' + slotScopeId + ' > ';\n const selectors = [];\n cssText = cssText.replace(_cssColonSlottedRe, (...m) => {\n if (m[2]) {\n const compound = m[2].trim();\n const suffix = m[3];\n const slottedSelector = slotClass + compound + suffix;\n let prefixSelector = '';\n for (let i = m[4] - 1; i >= 0; i--) {\n const char = m[5][i];\n if (char === '}' || char === ',') {\n break;\n }\n prefixSelector = char + prefixSelector;\n }\n const orgSelector = (prefixSelector + slottedSelector).trim();\n const addedSelector = `${prefixSelector.trimEnd()}${slottedSelector.trim()}`.trim();\n if (orgSelector !== addedSelector) {\n const updatedSelector = `${addedSelector}, ${orgSelector}`;\n selectors.push({\n orgSelector,\n updatedSelector,\n });\n }\n return slottedSelector;\n }\n else {\n return _polyfillHostNoCombinator + m[3];\n }\n });\n return {\n selectors,\n cssText,\n };\n};\nconst convertColonHostContext = (cssText) => {\n return convertColonRule(cssText, _cssColonHostContextRe, colonHostContextPartReplacer);\n};\nconst convertShadowDOMSelectors = (cssText) => {\n return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, ' '), cssText);\n};\nconst makeScopeMatcher = (scopeSelector) => {\n const lre = /\\[/g;\n const rre = /\\]/g;\n scopeSelector = scopeSelector.replace(lre, '\\\\[').replace(rre, '\\\\]');\n return new RegExp('^(' + scopeSelector + ')' + _selectorReSuffix, 'm');\n};\nconst selectorNeedsScoping = (selector, scopeSelector) => {\n const re = makeScopeMatcher(scopeSelector);\n return !re.test(selector);\n};\nconst injectScopingSelector = (selector, scopingSelector) => {\n return selector.replace(_selectorPartsRe, (_, before = '', _colonGroup, colon = '', after = '') => {\n return before + scopingSelector + colon + after;\n });\n};\nconst applySimpleSelectorScope = (selector, scopeSelector, hostSelector) => {\n // In Android browser, the lastIndex is not reset when the regex is used in String.replace()\n _polyfillHostRe.lastIndex = 0;\n if (_polyfillHostRe.test(selector)) {\n const replaceBy = `.${hostSelector}`;\n return selector\n .replace(_polyfillHostNoCombinatorRe, (_, selector) => injectScopingSelector(selector, replaceBy))\n .replace(_polyfillHostRe, replaceBy + ' ');\n }\n return scopeSelector + ' ' + selector;\n};\nconst applyStrictSelectorScope = (selector, scopeSelector, hostSelector) => {\n const isRe = /\\[is=([^\\]]*)\\]/g;\n scopeSelector = scopeSelector.replace(isRe, (_, ...parts) => parts[0]);\n const className = '.' + scopeSelector;\n const _scopeSelectorPart = (p) => {\n let scopedP = p.trim();\n if (!scopedP) {\n return '';\n }\n if (p.indexOf(_polyfillHostNoCombinator) > -1) {\n scopedP = applySimpleSelectorScope(p, scopeSelector, hostSelector);\n }\n else {\n // remove :host since it should be unnecessary\n const t = p.replace(_polyfillHostRe, '');\n if (t.length > 0) {\n scopedP = injectScopingSelector(t, className);\n }\n }\n return scopedP;\n };\n const safeContent = safeSelector(selector);\n selector = safeContent.content;\n let scopedSelector = '';\n let startIndex = 0;\n let res;\n const sep = /( |>|\\+|~(?!=))\\s*/g;\n // If a selector appears before :host it should not be shimmed as it\n // matches on ancestor elements and not on elements in the host's shadow\n // `:host-context(div)` is transformed to\n // `-shadowcsshost-no-combinatordiv, div -shadowcsshost-no-combinator`\n // the `div` is not part of the component in the 2nd selectors and should not be scoped.\n // Historically `component-tag:host` was matching the component so we also want to preserve\n // this behavior to avoid breaking legacy apps (it should not match).\n // The behavior should be:\n // - `tag:host` -> `tag[h]` (this is to avoid breaking legacy apps, should not match anything)\n // - `tag :host` -> `tag [h]` (`tag` is not scoped because it's considered part of a\n // `:host-context(tag)`)\n const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;\n // Only scope parts after the first `-shadowcsshost-no-combinator` when it is present\n let shouldScope = !hasHost;\n while ((res = sep.exec(selector)) !== null) {\n const separator = res[1];\n const part = selector.slice(startIndex, res.index).trim();\n shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;\n const scopedPart = shouldScope ? _scopeSelectorPart(part) : part;\n scopedSelector += `${scopedPart} ${separator} `;\n startIndex = sep.lastIndex;\n }\n const part = selector.substring(startIndex);\n shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;\n scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;\n // replace the placeholders with their original values\n return restoreSafeSelector(safeContent.placeholders, scopedSelector);\n};\nconst scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {\n return selector\n .split(',')\n .map((shallowPart) => {\n if (slotSelector && shallowPart.indexOf('.' + slotSelector) > -1) {\n return shallowPart.trim();\n }\n if (selectorNeedsScoping(shallowPart, scopeSelectorText)) {\n return applyStrictSelectorScope(shallowPart, scopeSelectorText, hostSelector).trim();\n }\n else {\n return shallowPart.trim();\n }\n })\n .join(', ');\n};\nconst scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {\n return processRules(cssText, (rule) => {\n let selector = rule.selector;\n let content = rule.content;\n if (rule.selector[0] !== '@') {\n selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);\n }\n else if (rule.selector.startsWith('@media') ||\n rule.selector.startsWith('@supports') ||\n rule.selector.startsWith('@page') ||\n rule.selector.startsWith('@document')) {\n content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector);\n }\n const cssRule = {\n selector: selector.replace(/\\s{2,}/g, ' ').trim(),\n content,\n };\n return cssRule;\n });\n};\nconst scopeCssText = (cssText, scopeId, hostScopeId, slotScopeId, commentOriginalSelector) => {\n cssText = insertPolyfillHostInCssText(cssText);\n cssText = convertColonHost(cssText);\n cssText = convertColonHostContext(cssText);\n const slotted = convertColonSlotted(cssText, slotScopeId);\n cssText = slotted.cssText;\n cssText = convertShadowDOMSelectors(cssText);\n if (scopeId) {\n cssText = scopeSelectors(cssText, scopeId, hostScopeId, slotScopeId);\n }\n cssText = replaceShadowCssHost(cssText, hostScopeId);\n cssText = cssText.replace(/>\\s*\\*\\s+([^{, ]+)/gm, ' $1 ');\n return {\n cssText: cssText.trim(),\n // We need to replace the shadow CSS host string in each of these selectors since we created\n // them prior to the replacement happening in the components CSS text.\n slottedSelectors: slotted.selectors.map((ref) => ({\n orgSelector: replaceShadowCssHost(ref.orgSelector, hostScopeId),\n updatedSelector: replaceShadowCssHost(ref.updatedSelector, hostScopeId),\n })),\n };\n};\n/**\n * Helper function that replaces the interim string representing a `:host` selector with\n * the host scope selector class for the element.\n *\n * @param cssText The CSS string to make the replacement in\n * @param hostScopeId The scope ID that will be used as the class representing the host element\n * @returns CSS with the selector replaced\n */\nconst replaceShadowCssHost = (cssText, hostScopeId) => {\n return cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);\n};\nconst scopeCss = (cssText, scopeId, commentOriginalSelector) => {\n const hostScopeId = scopeId + '-h';\n const slotScopeId = scopeId + '-s';\n const commentsWithHash = extractCommentsWithHash(cssText);\n cssText = stripComments(cssText);\n const orgSelectors = [];\n if (commentOriginalSelector) {\n const processCommentedSelector = (rule) => {\n const placeholder = `/*!@___${orgSelectors.length}___*/`;\n const comment = `/*!@${rule.selector}*/`;\n orgSelectors.push({ placeholder, comment });\n rule.selector = placeholder + rule.selector;\n return rule;\n };\n cssText = processRules(cssText, (rule) => {\n if (rule.selector[0] !== '@') {\n return processCommentedSelector(rule);\n }\n else if (rule.selector.startsWith('@media') ||\n rule.selector.startsWith('@supports') ||\n rule.selector.startsWith('@page') ||\n rule.selector.startsWith('@document')) {\n rule.content = processRules(rule.content, processCommentedSelector);\n return rule;\n }\n return rule;\n });\n }\n const scoped = scopeCssText(cssText, scopeId, hostScopeId, slotScopeId);\n cssText = [scoped.cssText, ...commentsWithHash].join('\\n');\n if (commentOriginalSelector) {\n orgSelectors.forEach(({ placeholder, comment }) => {\n cssText = cssText.replace(placeholder, comment);\n });\n }\n scoped.slottedSelectors.forEach((slottedSelector) => {\n const regex = new RegExp(escapeRegExpSpecialCharacters(slottedSelector.orgSelector), 'g');\n cssText = cssText.replace(regex, slottedSelector.updatedSelector);\n });\n return cssText;\n};\n\nexport { scopeCss };\n"],"version":3}
@@ -2,6 +2,7 @@ import { EventEmitter } from '../../stencil-public-runtime';
2
2
  export declare class CpslModal {
3
3
  private draggable;
4
4
  private expandFooterTl;
5
+ private hasAnimatedIn;
5
6
  el: HTMLCpslModalElement;
6
7
  hasFooter: boolean;
7
8
  enterTransitionDuration?: number;
@@ -18,6 +19,7 @@ export declare class CpslModal {
18
19
  toggleHeight(): void;
19
20
  toggleModal(): void;
20
21
  componentDidLoad(): void;
22
+ private handleAnimation;
21
23
  private addExpandAnim;
22
24
  private getDraggableHeight;
23
25
  private initDraggable;
@@ -1,3 +1,7 @@
1
1
  export declare class CpslText {
2
+ color?: 'primary' | 'secondary' | 'subtle' | 'inverted' | 'error';
3
+ variant?: 'body2XS' | 'bodyXS' | 'bodyS' | 'bodyM' | 'bodyL' | 'bodyXL' | 'headingXS' | 'headingS' | 'headingM' | 'headingL' | 'headingXL' | 'heading2XL';
4
+ weight?: 'regular' | 'medium' | 'semiBold' | 'bold';
5
+ private get Content();
2
6
  render(): any;
3
7
  }
@@ -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.0",
3
+ "version": "2.0.2",
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": "6f8da650d7b2accceefd852d606cc0edb18b6ffa"
53
+ "gitHead": "a280965b7a4a72105912da9acc705710bb719674"
54
54
  }
@@ -1,2 +0,0 @@
1
- var e=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}export{e as c,n as g};
2
- //# sourceMappingURL=p-0462f723.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":[],"mappings":""}