@usecapsule/core-components 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (343) hide show
  1. package/css/capsule-core.css +160 -0
  2. package/css/capsule-core.css.map +1 -0
  3. package/dist/capsule/capsule.esm.js +2 -0
  4. package/dist/capsule/capsule.esm.js.map +1 -0
  5. package/dist/capsule/index.esm.js +2 -0
  6. package/dist/capsule/index.esm.js.map +1 -0
  7. package/dist/capsule/p-11048392.entry.js +2 -0
  8. package/dist/capsule/p-11048392.entry.js.map +1 -0
  9. package/dist/capsule/p-62e7869a.entry.js +2 -0
  10. package/dist/capsule/p-62e7869a.entry.js.map +1 -0
  11. package/dist/capsule/p-888b5108.entry.js +20 -0
  12. package/dist/capsule/p-888b5108.entry.js.map +1 -0
  13. package/dist/capsule/p-9647dd63.js +3 -0
  14. package/dist/capsule/p-9647dd63.js.map +1 -0
  15. package/dist/capsule/p-b7cb3ddd.entry.js +2 -0
  16. package/dist/capsule/p-b7cb3ddd.entry.js.map +1 -0
  17. package/dist/capsule/p-d871d963.entry.js +2 -0
  18. package/dist/capsule/p-d871d963.entry.js.map +1 -0
  19. package/dist/capsule/p-e1255160.js +2 -0
  20. package/dist/capsule/p-e1255160.js.map +1 -0
  21. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  22. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  23. package/dist/cjs/capsule.cjs.js +27 -0
  24. package/dist/cjs/capsule.cjs.js.map +1 -0
  25. package/dist/cjs/cpsl-alert_17.cjs.entry.js +7483 -0
  26. package/dist/cjs/cpsl-alert_17.cjs.entry.js.map +1 -0
  27. package/dist/cjs/cpsl-col.cjs.entry.js +125 -0
  28. package/dist/cjs/cpsl-col.cjs.entry.js.map +1 -0
  29. package/dist/cjs/cpsl-grid.cjs.entry.js +25 -0
  30. package/dist/cjs/cpsl-grid.cjs.entry.js.map +1 -0
  31. package/dist/cjs/cpsl-info-box.cjs.entry.js +22 -0
  32. package/dist/cjs/cpsl-info-box.cjs.entry.js.map +1 -0
  33. package/dist/cjs/cpsl-row.cjs.entry.js +22 -0
  34. package/dist/cjs/cpsl-row.cjs.entry.js.map +1 -0
  35. package/dist/cjs/index-2a026742.js +1962 -0
  36. package/dist/cjs/index-2a026742.js.map +1 -0
  37. package/dist/cjs/index.cjs.js +4 -0
  38. package/dist/cjs/index.cjs.js.map +1 -0
  39. package/dist/cjs/loader.cjs.js +17 -0
  40. package/dist/cjs/loader.cjs.js.map +1 -0
  41. package/dist/collection/assets/icons/alert-circle.svg +3 -0
  42. package/dist/collection/assets/icons/angel-list-brand.svg +3 -0
  43. package/dist/collection/assets/icons/angel-list.svg +3 -0
  44. package/dist/collection/assets/icons/apple-brand.svg +3 -0
  45. package/dist/collection/assets/icons/apple.svg +3 -0
  46. package/dist/collection/assets/icons/arrow-narrow.svg +3 -0
  47. package/dist/collection/assets/icons/arrow.svg +3 -0
  48. package/dist/collection/assets/icons/backup-kit.svg +4 -0
  49. package/dist/collection/assets/icons/capsule-logo.svg +18 -0
  50. package/dist/collection/assets/icons/capsule-rings.svg +34 -0
  51. package/dist/collection/assets/icons/capsule.svg +4 -0
  52. package/dist/collection/assets/icons/check.svg +3 -0
  53. package/dist/collection/assets/icons/clock.svg +3 -0
  54. package/dist/collection/assets/icons/close.svg +4 -0
  55. package/dist/collection/assets/icons/clubhouse-brand.svg +4 -0
  56. package/dist/collection/assets/icons/clubhouse.svg +4 -0
  57. package/dist/collection/assets/icons/copy.svg +3 -0
  58. package/dist/collection/assets/icons/discord-brand.svg +4 -0
  59. package/dist/collection/assets/icons/discord.svg +4 -0
  60. package/dist/collection/assets/icons/download-cloud.svg +3 -0
  61. package/dist/collection/assets/icons/dribbble-brand.svg +4 -0
  62. package/dist/collection/assets/icons/dribbble.svg +3 -0
  63. package/dist/collection/assets/icons/eye-off.svg +3 -0
  64. package/dist/collection/assets/icons/eye.svg +4 -0
  65. package/dist/collection/assets/icons/facebook-brand.svg +11 -0
  66. package/dist/collection/assets/icons/facebook.svg +10 -0
  67. package/dist/collection/assets/icons/figma-brand.svg +14 -0
  68. package/dist/collection/assets/icons/figma.svg +3 -0
  69. package/dist/collection/assets/icons/github-brand.svg +10 -0
  70. package/dist/collection/assets/icons/github.svg +10 -0
  71. package/dist/collection/assets/icons/google-brand.svg +13 -0
  72. package/dist/collection/assets/icons/google.svg +10 -0
  73. package/dist/collection/assets/icons/help-circle.svg +3 -0
  74. package/dist/collection/assets/icons/hero-email.svg +34 -0
  75. package/dist/collection/assets/icons/hero-lock.svg +34 -0
  76. package/dist/collection/assets/icons/hero-passkey.svg +33 -0
  77. package/dist/collection/assets/icons/hero-phone.svg +15 -0
  78. package/dist/collection/assets/icons/hero-wallet.svg +44 -0
  79. package/dist/collection/assets/icons/index.js +69 -0
  80. package/dist/collection/assets/icons/index.js.map +1 -0
  81. package/dist/collection/assets/icons/info-circle.svg +3 -0
  82. package/dist/collection/assets/icons/instagram-brand.svg +12 -0
  83. package/dist/collection/assets/icons/instagram.svg +12 -0
  84. package/dist/collection/assets/icons/key.svg +3 -0
  85. package/dist/collection/assets/icons/linkedin-brand.svg +10 -0
  86. package/dist/collection/assets/icons/linkedin.svg +10 -0
  87. package/dist/collection/assets/icons/mail.svg +3 -0
  88. package/dist/collection/assets/icons/more-login-options.svg +12 -0
  89. package/dist/collection/assets/icons/phone.svg +3 -0
  90. package/dist/collection/assets/icons/pintrest-brand.svg +11 -0
  91. package/dist/collection/assets/icons/pintrest.svg +10 -0
  92. package/dist/collection/assets/icons/reddit-brand.svg +11 -0
  93. package/dist/collection/assets/icons/reddit.svg +3 -0
  94. package/dist/collection/assets/icons/signal-brand.svg +3 -0
  95. package/dist/collection/assets/icons/signal.svg +3 -0
  96. package/dist/collection/assets/icons/snapchat-brand.svg +4 -0
  97. package/dist/collection/assets/icons/snapchat.svg +3 -0
  98. package/dist/collection/assets/icons/telegram-brand.svg +15 -0
  99. package/dist/collection/assets/icons/telegram.svg +10 -0
  100. package/dist/collection/assets/icons/tik-tok-brand.svg +5 -0
  101. package/dist/collection/assets/icons/tik-tok.svg +3 -0
  102. package/dist/collection/assets/icons/tumblr-brand.svg +10 -0
  103. package/dist/collection/assets/icons/tumblr.svg +10 -0
  104. package/dist/collection/assets/icons/twitter-brand.svg +3 -0
  105. package/dist/collection/assets/icons/twitter.svg +3 -0
  106. package/dist/collection/assets/icons/x-brand.svg +3 -0
  107. package/dist/collection/assets/icons/x.svg +3 -0
  108. package/dist/collection/assets/icons/youtube-brand.svg +11 -0
  109. package/dist/collection/assets/icons/youtube.svg +3 -0
  110. package/dist/collection/collection-manifest.json +32 -0
  111. package/dist/collection/components/cpsl-alert/cpsl-alert.css +97 -0
  112. package/dist/collection/components/cpsl-alert/cpsl-alert.js +80 -0
  113. package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -0
  114. package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js +29 -0
  115. package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js.map +1 -0
  116. package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js +37 -0
  117. package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js.map +1 -0
  118. package/dist/collection/components/cpsl-button/cpsl-button.css +158 -0
  119. package/dist/collection/components/cpsl-button/cpsl-button.js +68 -0
  120. package/dist/collection/components/cpsl-button/cpsl-button.js.map +1 -0
  121. package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js +29 -0
  122. package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js.map +1 -0
  123. package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js +37 -0
  124. package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js.map +1 -0
  125. package/dist/collection/components/cpsl-code-input/code-change-interface.js +2 -0
  126. package/dist/collection/components/cpsl-code-input/code-change-interface.js.map +1 -0
  127. package/dist/collection/components/cpsl-code-input/cpsl-code-input.css +134 -0
  128. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +223 -0
  129. package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -0
  130. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js +29 -0
  131. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js.map +1 -0
  132. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js +37 -0
  133. package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js.map +1 -0
  134. package/dist/collection/components/cpsl-col/cpsl-col.css +200 -0
  135. package/dist/collection/components/cpsl-col/cpsl-col.js +528 -0
  136. package/dist/collection/components/cpsl-col/cpsl-col.js.map +1 -0
  137. package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js +29 -0
  138. package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js.map +1 -0
  139. package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js +37 -0
  140. package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js.map +1 -0
  141. package/dist/collection/components/cpsl-divider/cpsl-divider.css +72 -0
  142. package/dist/collection/components/cpsl-divider/cpsl-divider.js +19 -0
  143. package/dist/collection/components/cpsl-divider/cpsl-divider.js.map +1 -0
  144. package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js +29 -0
  145. package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js.map +1 -0
  146. package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js +37 -0
  147. package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js.map +1 -0
  148. package/dist/collection/components/cpsl-grid/cpsl-grid.css +235 -0
  149. package/dist/collection/components/cpsl-grid/cpsl-grid.js +46 -0
  150. package/dist/collection/components/cpsl-grid/cpsl-grid.js.map +1 -0
  151. package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js +29 -0
  152. package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js.map +1 -0
  153. package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js +37 -0
  154. package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js.map +1 -0
  155. package/dist/collection/components/cpsl-icon/cpsl-icon.css +81 -0
  156. package/dist/collection/components/cpsl-icon/cpsl-icon.js +69 -0
  157. package/dist/collection/components/cpsl-icon/cpsl-icon.js.map +1 -0
  158. package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js +29 -0
  159. package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js.map +1 -0
  160. package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js +37 -0
  161. package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js.map +1 -0
  162. package/dist/collection/components/cpsl-info-box/cpsl-info-box.css +74 -0
  163. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +19 -0
  164. package/dist/collection/components/cpsl-info-box/cpsl-info-box.js.map +1 -0
  165. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js +29 -0
  166. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js.map +1 -0
  167. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js +37 -0
  168. package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js.map +1 -0
  169. package/dist/collection/components/cpsl-input/cpsl-input.css +187 -0
  170. package/dist/collection/components/cpsl-input/cpsl-input.js +706 -0
  171. package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -0
  172. package/dist/collection/components/cpsl-input/input-interface.js +2 -0
  173. package/dist/collection/components/cpsl-input/input-interface.js.map +1 -0
  174. package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js +29 -0
  175. package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js.map +1 -0
  176. package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js +37 -0
  177. package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js.map +1 -0
  178. package/dist/collection/components/cpsl-modal/cpsl-modal.css +120 -0
  179. package/dist/collection/components/cpsl-modal/cpsl-modal.js +106 -0
  180. package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +1 -0
  181. package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js +29 -0
  182. package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js.map +1 -0
  183. package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js +37 -0
  184. package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js.map +1 -0
  185. package/dist/collection/components/cpsl-overlay/cpsl-overlay.css +11 -0
  186. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +91 -0
  187. package/dist/collection/components/cpsl-overlay/cpsl-overlay.js.map +1 -0
  188. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js +29 -0
  189. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js.map +1 -0
  190. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js +37 -0
  191. package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js.map +1 -0
  192. package/dist/collection/components/cpsl-pill/cpsl-pill.css +92 -0
  193. package/dist/collection/components/cpsl-pill/cpsl-pill.js +43 -0
  194. package/dist/collection/components/cpsl-pill/cpsl-pill.js.map +1 -0
  195. package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js +29 -0
  196. package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js.map +1 -0
  197. package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js +37 -0
  198. package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js.map +1 -0
  199. package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.css +82 -0
  200. package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.js +71 -0
  201. package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.js.map +1 -0
  202. package/dist/collection/components/cpsl-progress-indicator/progress-indicator-interface.js +2 -0
  203. package/dist/collection/components/cpsl-progress-indicator/progress-indicator-interface.js.map +1 -0
  204. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js +29 -0
  205. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js.map +1 -0
  206. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js +37 -0
  207. package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js.map +1 -0
  208. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.css +79 -0
  209. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +107 -0
  210. package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js.map +1 -0
  211. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js +29 -0
  212. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js.map +1 -0
  213. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js +37 -0
  214. package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js.map +1 -0
  215. package/dist/collection/components/cpsl-row/cpsl-row.css +136 -0
  216. package/dist/collection/components/cpsl-row/cpsl-row.js +19 -0
  217. package/dist/collection/components/cpsl-row/cpsl-row.js.map +1 -0
  218. package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js +29 -0
  219. package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js.map +1 -0
  220. package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js +37 -0
  221. package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js.map +1 -0
  222. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.css +165 -0
  223. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +205 -0
  224. package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js.map +1 -0
  225. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js +29 -0
  226. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js.map +1 -0
  227. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js +37 -0
  228. package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js.map +1 -0
  229. package/dist/collection/components/cpsl-spinner/cpsl-spinner.css +68 -0
  230. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +69 -0
  231. package/dist/collection/components/cpsl-spinner/cpsl-spinner.js.map +1 -0
  232. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js +29 -0
  233. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js.map +1 -0
  234. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js +37 -0
  235. package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js.map +1 -0
  236. package/dist/collection/components/cpsl-tab/cpsl-tab.css +20 -0
  237. package/dist/collection/components/cpsl-tab/cpsl-tab.js +121 -0
  238. package/dist/collection/components/cpsl-tab/cpsl-tab.js.map +1 -0
  239. package/dist/collection/components/cpsl-tab/tab-interface.js +2 -0
  240. package/dist/collection/components/cpsl-tab/tab-interface.js.map +1 -0
  241. package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js +29 -0
  242. package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js.map +1 -0
  243. package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js +37 -0
  244. package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js.map +1 -0
  245. package/dist/collection/components/cpsl-tabs/cpsl-tabs.css +110 -0
  246. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +163 -0
  247. package/dist/collection/components/cpsl-tabs/cpsl-tabs.js.map +1 -0
  248. package/dist/collection/components/cpsl-tabs/tabs-interface.js +2 -0
  249. package/dist/collection/components/cpsl-tabs/tabs-interface.js.map +1 -0
  250. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js +29 -0
  251. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js.map +1 -0
  252. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js +37 -0
  253. package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js.map +1 -0
  254. package/dist/collection/components/cpsl-text/cpsl-text.css +59 -0
  255. package/dist/collection/components/cpsl-text/cpsl-text.js +19 -0
  256. package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -0
  257. package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js +29 -0
  258. package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js.map +1 -0
  259. package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js +37 -0
  260. package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js.map +1 -0
  261. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.css +94 -0
  262. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +67 -0
  263. package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js.map +1 -0
  264. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js +29 -0
  265. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js.map +1 -0
  266. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js +37 -0
  267. package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js.map +1 -0
  268. package/dist/collection/index.js +2 -0
  269. package/dist/collection/index.js.map +1 -0
  270. package/dist/collection/interface.js +2 -0
  271. package/dist/collection/interface.js.map +1 -0
  272. package/dist/collection/utils/media.js +18 -0
  273. package/dist/collection/utils/media.js.map +1 -0
  274. package/dist/esm/app-globals-0f993ce5.js +5 -0
  275. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  276. package/dist/esm/capsule.js +22 -0
  277. package/dist/esm/capsule.js.map +1 -0
  278. package/dist/esm/cpsl-alert_17.entry.js +7463 -0
  279. package/dist/esm/cpsl-alert_17.entry.js.map +1 -0
  280. package/dist/esm/cpsl-col.entry.js +121 -0
  281. package/dist/esm/cpsl-col.entry.js.map +1 -0
  282. package/dist/esm/cpsl-grid.entry.js +21 -0
  283. package/dist/esm/cpsl-grid.entry.js.map +1 -0
  284. package/dist/esm/cpsl-info-box.entry.js +18 -0
  285. package/dist/esm/cpsl-info-box.entry.js.map +1 -0
  286. package/dist/esm/cpsl-row.entry.js +18 -0
  287. package/dist/esm/cpsl-row.entry.js.map +1 -0
  288. package/dist/esm/index-7c2f5cb9.js +1932 -0
  289. package/dist/esm/index-7c2f5cb9.js.map +1 -0
  290. package/dist/esm/index.js +3 -0
  291. package/dist/esm/index.js.map +1 -0
  292. package/dist/esm/loader.js +13 -0
  293. package/dist/esm/loader.js.map +1 -0
  294. package/dist/esm/polyfills/core-js.js +11 -0
  295. package/dist/esm/polyfills/dom.js +79 -0
  296. package/dist/esm/polyfills/es5-html-element.js +1 -0
  297. package/dist/esm/polyfills/index.js +34 -0
  298. package/dist/esm/polyfills/system.js +6 -0
  299. package/dist/index.cjs.js +1 -0
  300. package/dist/index.js +1 -0
  301. package/dist/loader/cdn.js +3 -0
  302. package/dist/loader/index.cjs.js +3 -0
  303. package/dist/loader/index.d.ts +21 -0
  304. package/dist/loader/index.es2017.js +3 -0
  305. package/dist/loader/index.js +4 -0
  306. package/dist/loader/package.json +11 -0
  307. package/dist/scripts/buildIconLibrary.js +33 -0
  308. package/dist/scripts/buildIconLibrary.js.map +1 -0
  309. package/dist/types/Users/taylorbosch/Documents/GitHub/Capsule/component-library/core/.stencil/scripts/buildIconLibrary.d.ts +5 -0
  310. package/dist/types/assets/icons/index.d.ts +69 -0
  311. package/dist/types/components/cpsl-alert/cpsl-alert.d.ts +7 -0
  312. package/dist/types/components/cpsl-button/cpsl-button.d.ts +5 -0
  313. package/dist/types/components/cpsl-code-input/code-change-interface.d.ts +3 -0
  314. package/dist/types/components/cpsl-code-input/cpsl-code-input.d.ts +17 -0
  315. package/dist/types/components/cpsl-col/cpsl-col.d.ts +34 -0
  316. package/dist/types/components/cpsl-divider/cpsl-divider.d.ts +3 -0
  317. package/dist/types/components/cpsl-grid/cpsl-grid.d.ts +4 -0
  318. package/dist/types/components/cpsl-icon/cpsl-icon.d.ts +6 -0
  319. package/dist/types/components/cpsl-info-box/cpsl-info-box.d.ts +3 -0
  320. package/dist/types/components/cpsl-input/cpsl-input.d.ts +53 -0
  321. package/dist/types/components/cpsl-input/input-interface.d.ts +8 -0
  322. package/dist/types/components/cpsl-modal/cpsl-modal.d.ts +15 -0
  323. package/dist/types/components/cpsl-overlay/cpsl-overlay.d.ts +9 -0
  324. package/dist/types/components/cpsl-pill/cpsl-pill.d.ts +4 -0
  325. package/dist/types/components/cpsl-progress-indicator/cpsl-progress-indicator.d.ts +5 -0
  326. package/dist/types/components/cpsl-progress-indicator/progress-indicator-interface.d.ts +4 -0
  327. package/dist/types/components/cpsl-qr-code/cpsl-qr-code.d.ts +8 -0
  328. package/dist/types/components/cpsl-row/cpsl-row.d.ts +3 -0
  329. package/dist/types/components/cpsl-slide-button/cpsl-slide-button.d.ts +19 -0
  330. package/dist/types/components/cpsl-spinner/cpsl-spinner.d.ts +5 -0
  331. package/dist/types/components/cpsl-tab/cpsl-tab.d.ts +14 -0
  332. package/dist/types/components/cpsl-tab/tab-interface.d.ts +4 -0
  333. package/dist/types/components/cpsl-tabs/cpsl-tabs.d.ts +17 -0
  334. package/dist/types/components/cpsl-tabs/tabs-interface.d.ts +9 -0
  335. package/dist/types/components/cpsl-text/cpsl-text.d.ts +3 -0
  336. package/dist/types/components/cpsl-tile-button/cpsl-tile-button.d.ts +6 -0
  337. package/dist/types/components.d.ts +1094 -0
  338. package/dist/types/index.d.ts +1 -0
  339. package/dist/types/interface.d.ts +10 -0
  340. package/dist/types/stencil-public-runtime.d.ts +1681 -0
  341. package/dist/types/utils/media.d.ts +2 -0
  342. package/package.json +51 -0
  343. package/readme.md +3 -0
@@ -0,0 +1,706 @@
1
+ import { Host, h } from "@stencil/core";
2
+ export class CpslInput {
3
+ constructor() {
4
+ this.inputId = `cpsl-input-${inputIds++}`;
5
+ this.onInput = (ev) => {
6
+ const input = ev.target;
7
+ if (Boolean(input)) {
8
+ this.value = input.value || '';
9
+ input.value === '' ? this.disableSlots() : this.enableSlots();
10
+ }
11
+ this.emitInputChange(ev);
12
+ };
13
+ this.onChange = (ev) => {
14
+ this.emitValueChange(ev);
15
+ };
16
+ this.onBlur = (ev) => {
17
+ this.hasFocus = false;
18
+ if (this.focusedValue !== this.value) {
19
+ this.emitValueChange(ev);
20
+ }
21
+ this.cpslBlur.emit(ev);
22
+ };
23
+ this.onFocus = (ev) => {
24
+ this.hasFocus = true;
25
+ this.focusedValue = this.value;
26
+ this.cpslFocus.emit(ev);
27
+ };
28
+ this.focusInput = () => {
29
+ this.nativeInput.focus();
30
+ };
31
+ this.hasFocus = false;
32
+ this.autocapitalize = 'off';
33
+ this.autocomplete = 'off';
34
+ this.autocorrect = 'off';
35
+ this.noAutoDisable = undefined;
36
+ this.autofocus = false;
37
+ this.disabled = false;
38
+ this.enterkeyhint = undefined;
39
+ this.errorText = undefined;
40
+ this.helperText = undefined;
41
+ this.inputmode = undefined;
42
+ this.label = undefined;
43
+ this.max = undefined;
44
+ this.maxlength = undefined;
45
+ this.min = undefined;
46
+ this.minlength = undefined;
47
+ this.multiple = undefined;
48
+ this.name = this.inputId;
49
+ this.pattern = undefined;
50
+ this.placeholder = undefined;
51
+ this.readonly = false;
52
+ this.required = false;
53
+ this.spellcheck = false;
54
+ this.startIconSrc = undefined;
55
+ this.startIcon = undefined;
56
+ this.step = undefined;
57
+ this.type = 'text';
58
+ this.value = undefined;
59
+ }
60
+ handleDisable() {
61
+ if (this.disabled) {
62
+ this.disableSlots();
63
+ }
64
+ else {
65
+ this.enableSlots();
66
+ }
67
+ }
68
+ componentDidLoad() {
69
+ if (Boolean(this.value)) {
70
+ this.enableSlots();
71
+ }
72
+ else {
73
+ this.disableSlots();
74
+ }
75
+ }
76
+ disableSlots() {
77
+ if (!this.noAutoDisable) {
78
+ this.el.querySelector('[slot="end"]').setAttribute('disabled', 'true');
79
+ this.el.querySelector('[slot="start"]').setAttribute('disabled', 'true');
80
+ }
81
+ }
82
+ enableSlots() {
83
+ this.el.querySelector('[slot="end"]').setAttribute('disabled', 'false');
84
+ this.el.querySelector('[slot="start"]').setAttribute('disabled', 'false');
85
+ }
86
+ emitInputChange(event) {
87
+ const { value } = this;
88
+ const newValue = value == null ? value : value.toString();
89
+ this.cpslInput.emit({ value: newValue, event });
90
+ }
91
+ emitValueChange(event) {
92
+ const { value } = this;
93
+ const newValue = value == null ? value : value.toString();
94
+ this.focusedValue = newValue;
95
+ this.cpslChange.emit({ value: newValue, event });
96
+ }
97
+ get nativeInput() {
98
+ return this.el.shadowRoot.getElementById(this.inputId);
99
+ }
100
+ render() {
101
+ var _a;
102
+ return (h(Host, { key: 'b2d979b7438012d02ddc6ad8b8f33926cd3ee511', class: { 'disabled': this.disabled, 'focused': this.hasFocus, 'has-value': Boolean(this.focusedValue) || Boolean(this.value) } }, this.label && (h("label", { class: "label", htmlFor: this.inputId }, this.label)), h("div", { key: 'eb3323d11a5d7a4bc0d87f9f6cdf4b9c547253f0', onClick: this.focusInput, class: { 'input-container': true, 'error-container': Boolean(this.errorText) } }, h("slot", { key: '2887bf00bd7966a8df9f53746565cdde3100b00f', name: "start" }), h("input", { key: 'b247bd3483207989e6b36bf757dbaa74cf2e12e1', class: "native-input", id: this.inputId, disabled: this.disabled, autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, min: this.min, max: this.max, minLength: this.minlength, maxLength: this.maxlength, multiple: this.multiple, name: this.name, pattern: this.pattern, placeholder: this.placeholder || '', readOnly: this.readonly, required: this.required, spellcheck: this.spellcheck, type: this.type, value: this.value, onInput: this.onInput, onChange: this.onChange, onFocus: this.onFocus, onBlur: this.onBlur }), h("slot", { key: '361b335057848b2513cc62da952ed34309a35044', name: "end" })), (this.errorText || this.helperText) && (h("div", { class: { 'helper-text-container': true, 'error-text': Boolean(this.errorText) } }, h("cpsl-icon", { icon: Boolean(this.errorText) ? 'alertCircle' : 'infoCircle' }), h("span", null, (_a = this.errorText) !== null && _a !== void 0 ? _a : this.helperText)))));
103
+ }
104
+ static get is() { return "cpsl-input"; }
105
+ static get encapsulation() { return "shadow"; }
106
+ static get originalStyleUrls() {
107
+ return {
108
+ "$": ["cpsl-input.scss"]
109
+ };
110
+ }
111
+ static get styleUrls() {
112
+ return {
113
+ "$": ["cpsl-input.css"]
114
+ };
115
+ }
116
+ static get properties() {
117
+ return {
118
+ "autocapitalize": {
119
+ "type": "string",
120
+ "mutable": false,
121
+ "complexType": {
122
+ "original": "string",
123
+ "resolved": "string",
124
+ "references": {}
125
+ },
126
+ "required": false,
127
+ "optional": false,
128
+ "docs": {
129
+ "tags": [],
130
+ "text": "Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.\nAvailable options: `\"off\"`, `\"none\"`, `\"on\"`, `\"sentences\"`, `\"words\"`, `\"characters\"`."
131
+ },
132
+ "attribute": "autocapitalize",
133
+ "reflect": false,
134
+ "defaultValue": "'off'"
135
+ },
136
+ "autocomplete": {
137
+ "type": "string",
138
+ "mutable": false,
139
+ "complexType": {
140
+ "original": "AutocompleteTypes",
141
+ "resolved": "\"on\" | \"off\" | \"name\" | \"honorific-prefix\" | \"given-name\" | \"additional-name\" | \"family-name\" | \"honorific-suffix\" | \"nickname\" | \"email\" | \"username\" | \"new-password\" | \"current-password\" | \"one-time-code\" | \"organization-title\" | \"organization\" | \"street-address\" | \"address-line1\" | \"address-line2\" | \"address-line3\" | \"address-level4\" | \"address-level3\" | \"address-level2\" | \"address-level1\" | \"country\" | \"country-name\" | \"postal-code\" | \"cc-name\" | \"cc-given-name\" | \"cc-additional-name\" | \"cc-family-name\" | \"cc-number\" | \"cc-exp\" | \"cc-exp-month\" | \"cc-exp-year\" | \"cc-csc\" | \"cc-type\" | \"transaction-currency\" | \"transaction-amount\" | \"language\" | \"bday\" | \"bday-day\" | \"bday-month\" | \"bday-year\" | \"sex\" | \"tel\" | \"tel-country-code\" | \"tel-national\" | \"tel-area-code\" | \"tel-local\" | \"tel-extension\" | \"impp\" | \"url\" | \"photo\"",
142
+ "references": {
143
+ "AutocompleteTypes": {
144
+ "location": "import",
145
+ "path": "../../interface",
146
+ "id": "src/interface.ts::AutocompleteTypes"
147
+ }
148
+ }
149
+ },
150
+ "required": false,
151
+ "optional": false,
152
+ "docs": {
153
+ "tags": [],
154
+ "text": "Indicates whether the value of the control can be automatically completed by the browser."
155
+ },
156
+ "attribute": "autocomplete",
157
+ "reflect": false,
158
+ "defaultValue": "'off'"
159
+ },
160
+ "autocorrect": {
161
+ "type": "string",
162
+ "mutable": false,
163
+ "complexType": {
164
+ "original": "'on' | 'off'",
165
+ "resolved": "\"off\" | \"on\"",
166
+ "references": {}
167
+ },
168
+ "required": false,
169
+ "optional": false,
170
+ "docs": {
171
+ "tags": [],
172
+ "text": "Whether auto correction should be enabled when the user is entering/editing the text value."
173
+ },
174
+ "attribute": "autocorrect",
175
+ "reflect": false,
176
+ "defaultValue": "'off'"
177
+ },
178
+ "noAutoDisable": {
179
+ "type": "boolean",
180
+ "mutable": false,
181
+ "complexType": {
182
+ "original": "boolean",
183
+ "resolved": "boolean",
184
+ "references": {}
185
+ },
186
+ "required": false,
187
+ "optional": false,
188
+ "docs": {
189
+ "tags": [],
190
+ "text": "Whether to disable auto disabling of the slotted components."
191
+ },
192
+ "attribute": "no-auto-disable",
193
+ "reflect": false
194
+ },
195
+ "autofocus": {
196
+ "type": "boolean",
197
+ "mutable": false,
198
+ "complexType": {
199
+ "original": "boolean",
200
+ "resolved": "boolean",
201
+ "references": {}
202
+ },
203
+ "required": false,
204
+ "optional": false,
205
+ "docs": {
206
+ "tags": [],
207
+ "text": "Sets the [`autofocus` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus) on the native input element.\n\nThis may not be sufficient for the element to be focused on page load."
208
+ },
209
+ "attribute": "autofocus",
210
+ "reflect": false,
211
+ "defaultValue": "false"
212
+ },
213
+ "disabled": {
214
+ "type": "boolean",
215
+ "mutable": false,
216
+ "complexType": {
217
+ "original": "boolean",
218
+ "resolved": "boolean",
219
+ "references": {}
220
+ },
221
+ "required": false,
222
+ "optional": false,
223
+ "docs": {
224
+ "tags": [],
225
+ "text": "If `true`, the user cannot interact with the input."
226
+ },
227
+ "attribute": "disabled",
228
+ "reflect": false,
229
+ "defaultValue": "false"
230
+ },
231
+ "enterkeyhint": {
232
+ "type": "string",
233
+ "mutable": false,
234
+ "complexType": {
235
+ "original": "'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'",
236
+ "resolved": "\"done\" | \"enter\" | \"go\" | \"next\" | \"previous\" | \"search\" | \"send\"",
237
+ "references": {}
238
+ },
239
+ "required": false,
240
+ "optional": true,
241
+ "docs": {
242
+ "tags": [],
243
+ "text": "A hint to the browser for which enter key to display.\nPossible values: `\"enter\"`, `\"done\"`, `\"go\"`, `\"next\"`,\n`\"previous\"`, `\"search\"`, and `\"send\"`."
244
+ },
245
+ "attribute": "enterkeyhint",
246
+ "reflect": false
247
+ },
248
+ "errorText": {
249
+ "type": "string",
250
+ "mutable": false,
251
+ "complexType": {
252
+ "original": "string",
253
+ "resolved": "string",
254
+ "references": {}
255
+ },
256
+ "required": false,
257
+ "optional": true,
258
+ "docs": {
259
+ "tags": [],
260
+ "text": "Error text to show below the input. If this is provided the input will enter an error state."
261
+ },
262
+ "attribute": "error-text",
263
+ "reflect": false
264
+ },
265
+ "helperText": {
266
+ "type": "string",
267
+ "mutable": false,
268
+ "complexType": {
269
+ "original": "string",
270
+ "resolved": "string",
271
+ "references": {}
272
+ },
273
+ "required": false,
274
+ "optional": true,
275
+ "docs": {
276
+ "tags": [],
277
+ "text": "Helper text to show below the input. If `\"errorText\"` is provided that will take precedence."
278
+ },
279
+ "attribute": "helper-text",
280
+ "reflect": false
281
+ },
282
+ "inputmode": {
283
+ "type": "string",
284
+ "mutable": false,
285
+ "complexType": {
286
+ "original": "'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search'",
287
+ "resolved": "\"decimal\" | \"email\" | \"none\" | \"numeric\" | \"search\" | \"tel\" | \"text\" | \"url\"",
288
+ "references": {}
289
+ },
290
+ "required": false,
291
+ "optional": true,
292
+ "docs": {
293
+ "tags": [],
294
+ "text": "A hint to the browser for which keyboard to display.\nPossible values: `\"none\"`, `\"text\"`, `\"tel\"`, `\"url\"`,\n`\"email\"`, `\"numeric\"`, `\"decimal\"`, and `\"search\"`."
295
+ },
296
+ "attribute": "inputmode",
297
+ "reflect": false
298
+ },
299
+ "label": {
300
+ "type": "string",
301
+ "mutable": false,
302
+ "complexType": {
303
+ "original": "string",
304
+ "resolved": "string",
305
+ "references": {}
306
+ },
307
+ "required": false,
308
+ "optional": true,
309
+ "docs": {
310
+ "tags": [],
311
+ "text": "The label for the input."
312
+ },
313
+ "attribute": "label",
314
+ "reflect": false
315
+ },
316
+ "max": {
317
+ "type": "any",
318
+ "mutable": false,
319
+ "complexType": {
320
+ "original": "string | number",
321
+ "resolved": "number | string",
322
+ "references": {}
323
+ },
324
+ "required": false,
325
+ "optional": true,
326
+ "docs": {
327
+ "tags": [],
328
+ "text": "The maximum value, which must not be less than its minimum (min attribute) value."
329
+ },
330
+ "attribute": "max",
331
+ "reflect": false
332
+ },
333
+ "maxlength": {
334
+ "type": "number",
335
+ "mutable": false,
336
+ "complexType": {
337
+ "original": "number",
338
+ "resolved": "number",
339
+ "references": {}
340
+ },
341
+ "required": false,
342
+ "optional": true,
343
+ "docs": {
344
+ "tags": [],
345
+ "text": "If the value of the type attribute is `text`, `email`, `search`, `password`, `tel`, or `url`, this attribute specifies the maximum number of characters that the user can enter."
346
+ },
347
+ "attribute": "maxlength",
348
+ "reflect": false
349
+ },
350
+ "min": {
351
+ "type": "any",
352
+ "mutable": false,
353
+ "complexType": {
354
+ "original": "string | number",
355
+ "resolved": "number | string",
356
+ "references": {}
357
+ },
358
+ "required": false,
359
+ "optional": true,
360
+ "docs": {
361
+ "tags": [],
362
+ "text": "The minimum value, which must not be greater than its maximum (max attribute) value."
363
+ },
364
+ "attribute": "min",
365
+ "reflect": false
366
+ },
367
+ "minlength": {
368
+ "type": "number",
369
+ "mutable": false,
370
+ "complexType": {
371
+ "original": "number",
372
+ "resolved": "number",
373
+ "references": {}
374
+ },
375
+ "required": false,
376
+ "optional": true,
377
+ "docs": {
378
+ "tags": [],
379
+ "text": "If the value of the type attribute is `text`, `email`, `search`, `password`, `tel`, or `url`, this attribute specifies the minimum number of characters that the user can enter."
380
+ },
381
+ "attribute": "minlength",
382
+ "reflect": false
383
+ },
384
+ "multiple": {
385
+ "type": "boolean",
386
+ "mutable": false,
387
+ "complexType": {
388
+ "original": "boolean",
389
+ "resolved": "boolean",
390
+ "references": {}
391
+ },
392
+ "required": false,
393
+ "optional": true,
394
+ "docs": {
395
+ "tags": [],
396
+ "text": "If `true`, the user can enter more than one value. This attribute applies when the type attribute is set to `\"email\"`, otherwise it is ignored."
397
+ },
398
+ "attribute": "multiple",
399
+ "reflect": false
400
+ },
401
+ "name": {
402
+ "type": "string",
403
+ "mutable": false,
404
+ "complexType": {
405
+ "original": "string",
406
+ "resolved": "string",
407
+ "references": {}
408
+ },
409
+ "required": false,
410
+ "optional": false,
411
+ "docs": {
412
+ "tags": [],
413
+ "text": "The name of the control, which is submitted with the form data."
414
+ },
415
+ "attribute": "name",
416
+ "reflect": false,
417
+ "defaultValue": "this.inputId"
418
+ },
419
+ "pattern": {
420
+ "type": "string",
421
+ "mutable": false,
422
+ "complexType": {
423
+ "original": "string",
424
+ "resolved": "string",
425
+ "references": {}
426
+ },
427
+ "required": false,
428
+ "optional": true,
429
+ "docs": {
430
+ "tags": [],
431
+ "text": "A regular expression that the value is checked against. The pattern must match the entire value, not just some subset. Use the title attribute to describe the pattern to help the user. This attribute applies when the value of the type attribute is `\"text\"`, `\"search\"`, `\"tel\"`, `\"url\"`, `\"email\"`, `\"date\"`, or `\"password\"`, otherwise it is ignored. When the type attribute is `\"date\"`, `pattern` will only be used in browsers that do not support the `\"date\"` input type natively. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date for more information."
432
+ },
433
+ "attribute": "pattern",
434
+ "reflect": false
435
+ },
436
+ "placeholder": {
437
+ "type": "string",
438
+ "mutable": false,
439
+ "complexType": {
440
+ "original": "string",
441
+ "resolved": "string",
442
+ "references": {}
443
+ },
444
+ "required": false,
445
+ "optional": true,
446
+ "docs": {
447
+ "tags": [],
448
+ "text": "Instructional text that shows before the input has a value.\nThis property applies only when the `type` property is set to `\"email\"`,\n`\"number\"`, `\"password\"`, `\"search\"`, `\"tel\"`, `\"text\"`, or `\"url\"`, otherwise it is ignored."
449
+ },
450
+ "attribute": "placeholder",
451
+ "reflect": false
452
+ },
453
+ "readonly": {
454
+ "type": "boolean",
455
+ "mutable": false,
456
+ "complexType": {
457
+ "original": "boolean",
458
+ "resolved": "boolean",
459
+ "references": {}
460
+ },
461
+ "required": false,
462
+ "optional": false,
463
+ "docs": {
464
+ "tags": [],
465
+ "text": "If `true`, the user cannot modify the value."
466
+ },
467
+ "attribute": "readonly",
468
+ "reflect": false,
469
+ "defaultValue": "false"
470
+ },
471
+ "required": {
472
+ "type": "boolean",
473
+ "mutable": false,
474
+ "complexType": {
475
+ "original": "boolean",
476
+ "resolved": "boolean",
477
+ "references": {}
478
+ },
479
+ "required": false,
480
+ "optional": false,
481
+ "docs": {
482
+ "tags": [],
483
+ "text": "If `true`, the user must fill in a value before submitting a form."
484
+ },
485
+ "attribute": "required",
486
+ "reflect": false,
487
+ "defaultValue": "false"
488
+ },
489
+ "spellcheck": {
490
+ "type": "boolean",
491
+ "mutable": false,
492
+ "complexType": {
493
+ "original": "boolean",
494
+ "resolved": "boolean",
495
+ "references": {}
496
+ },
497
+ "required": false,
498
+ "optional": false,
499
+ "docs": {
500
+ "tags": [],
501
+ "text": "If `true`, the element will have its spelling and grammar checked."
502
+ },
503
+ "attribute": "spellcheck",
504
+ "reflect": false,
505
+ "defaultValue": "false"
506
+ },
507
+ "startIconSrc": {
508
+ "type": "string",
509
+ "mutable": false,
510
+ "complexType": {
511
+ "original": "string",
512
+ "resolved": "string",
513
+ "references": {}
514
+ },
515
+ "required": false,
516
+ "optional": true,
517
+ "docs": {
518
+ "tags": [],
519
+ "text": "The external source of the icon at the start of the input. If both `startIcon` and `startIconSrc` are provided, `startIcon` will be used."
520
+ },
521
+ "attribute": "start-icon-src",
522
+ "reflect": false
523
+ },
524
+ "startIcon": {
525
+ "type": "string",
526
+ "mutable": false,
527
+ "complexType": {
528
+ "original": "IconType",
529
+ "resolved": "\"alertCircle\" | \"angelListBrand\" | \"angelList\" | \"appleBrand\" | \"apple\" | \"arrowNarrow\" | \"arrow\" | \"backupKit\" | \"capsuleLogo\" | \"capsuleRings\" | \"capsule\" | \"check\" | \"clock\" | \"close\" | \"clubhouseBrand\" | \"clubhouse\" | \"copy\" | \"discordBrand\" | \"discord\" | \"downloadCloud\" | \"dribbbleBrand\" | \"dribbble\" | \"eyeOff\" | \"eye\" | \"facebookBrand\" | \"facebook\" | \"figmaBrand\" | \"figma\" | \"githubBrand\" | \"github\" | \"googleBrand\" | \"google\" | \"helpCircle\" | \"heroEmail\" | \"heroLock\" | \"heroPasskey\" | \"heroPhone\" | \"heroWallet\" | \"infoCircle\" | \"instagramBrand\" | \"instagram\" | \"key\" | \"linkedinBrand\" | \"linkedin\" | \"mail\" | \"moreLoginOptions\" | \"phone\" | \"pintrestBrand\" | \"pintrest\" | \"redditBrand\" | \"reddit\" | \"signalBrand\" | \"signal\" | \"snapchatBrand\" | \"snapchat\" | \"telegramBrand\" | \"telegram\" | \"tikTokBrand\" | \"tikTok\" | \"tumblrBrand\" | \"tumblr\" | \"twitterBrand\" | \"twitter\" | \"xBrand\" | \"x\" | \"youtubeBrand\" | \"youtube\"",
530
+ "references": {
531
+ "IconType": {
532
+ "location": "import",
533
+ "path": "../../interface",
534
+ "id": "src/interface.ts::IconType"
535
+ }
536
+ }
537
+ },
538
+ "required": false,
539
+ "optional": true,
540
+ "docs": {
541
+ "tags": [],
542
+ "text": "The name of the icon at the start of the input. If both `startIcon` and `startIconSrc` are provided, `startIcon` will be used."
543
+ },
544
+ "attribute": "start-icon",
545
+ "reflect": false
546
+ },
547
+ "step": {
548
+ "type": "string",
549
+ "mutable": false,
550
+ "complexType": {
551
+ "original": "string",
552
+ "resolved": "string",
553
+ "references": {}
554
+ },
555
+ "required": false,
556
+ "optional": true,
557
+ "docs": {
558
+ "tags": [],
559
+ "text": "Works with the min and max attributes to limit the increments at which a value can be set.\nPossible values are: `\"any\"` or a positive floating point number."
560
+ },
561
+ "attribute": "step",
562
+ "reflect": false
563
+ },
564
+ "type": {
565
+ "type": "string",
566
+ "mutable": false,
567
+ "complexType": {
568
+ "original": "TextFieldTypes",
569
+ "resolved": "\"date\" | \"datetime-local\" | \"email\" | \"month\" | \"number\" | \"password\" | \"search\" | \"tel\" | \"text\" | \"time\" | \"url\" | \"week\"",
570
+ "references": {
571
+ "TextFieldTypes": {
572
+ "location": "import",
573
+ "path": "../../interface",
574
+ "id": "src/interface.ts::TextFieldTypes"
575
+ }
576
+ }
577
+ },
578
+ "required": false,
579
+ "optional": false,
580
+ "docs": {
581
+ "tags": [],
582
+ "text": "The type of control to display. The default type is `text`."
583
+ },
584
+ "attribute": "type",
585
+ "reflect": false,
586
+ "defaultValue": "'text'"
587
+ },
588
+ "value": {
589
+ "type": "string",
590
+ "mutable": true,
591
+ "complexType": {
592
+ "original": "string",
593
+ "resolved": "string",
594
+ "references": {}
595
+ },
596
+ "required": false,
597
+ "optional": true,
598
+ "docs": {
599
+ "tags": [],
600
+ "text": "The value of the controlled input."
601
+ },
602
+ "attribute": "value",
603
+ "reflect": false
604
+ }
605
+ };
606
+ }
607
+ static get states() {
608
+ return {
609
+ "hasFocus": {}
610
+ };
611
+ }
612
+ static get events() {
613
+ return [{
614
+ "method": "cpslInput",
615
+ "name": "cpslInput",
616
+ "bubbles": true,
617
+ "cancelable": true,
618
+ "composed": true,
619
+ "docs": {
620
+ "tags": [],
621
+ "text": "The `cpslInput` event is fired each time the user modifies the input's value.\nUnlike the `cpslChange` event, the `cpslInput` event is fired for each alteration\nto the input's value. This typically happens for each keystroke as the user types.\n\nFor elements that accept text input (`type=text`, `type=tel`, etc.), the interface\nis [`InputEvent`](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent); for others,\nthe interface is [`Event`](https://developer.mozilla.org/en-US/docs/Web/API/Event). If\nthe input is cleared on edit, the type is `null`."
622
+ },
623
+ "complexType": {
624
+ "original": "InputInputEventDetail",
625
+ "resolved": "InputInputEventDetail",
626
+ "references": {
627
+ "InputInputEventDetail": {
628
+ "location": "import",
629
+ "path": "./input-interface",
630
+ "id": "src/components/cpsl-input/input-interface.ts::InputInputEventDetail"
631
+ }
632
+ }
633
+ }
634
+ }, {
635
+ "method": "cpslChange",
636
+ "name": "cpslChange",
637
+ "bubbles": true,
638
+ "cancelable": true,
639
+ "composed": true,
640
+ "docs": {
641
+ "tags": [],
642
+ "text": "The `cpslChange` event is fired when the user modifies the input's value.\nUnlike the `cpslInput` event, the `cpslChange` event is only fired when changes\nare committed, not as the user types.\n\nDepending on the way the users interacts with the element, the `cpslChange`\nevent fires at a different moment:\n- When the element loses focus after its value has changed: for elements\nwhere the user's interaction is typing."
643
+ },
644
+ "complexType": {
645
+ "original": "InputChangeEventDetail",
646
+ "resolved": "InputChangeEventDetail",
647
+ "references": {
648
+ "InputChangeEventDetail": {
649
+ "location": "import",
650
+ "path": "./input-interface",
651
+ "id": "src/components/cpsl-input/input-interface.ts::InputChangeEventDetail"
652
+ }
653
+ }
654
+ }
655
+ }, {
656
+ "method": "cpslBlur",
657
+ "name": "cpslBlur",
658
+ "bubbles": true,
659
+ "cancelable": true,
660
+ "composed": true,
661
+ "docs": {
662
+ "tags": [],
663
+ "text": "Emitted when the input loses focus."
664
+ },
665
+ "complexType": {
666
+ "original": "FocusEvent",
667
+ "resolved": "FocusEvent",
668
+ "references": {
669
+ "FocusEvent": {
670
+ "location": "global",
671
+ "id": "global::FocusEvent"
672
+ }
673
+ }
674
+ }
675
+ }, {
676
+ "method": "cpslFocus",
677
+ "name": "cpslFocus",
678
+ "bubbles": true,
679
+ "cancelable": true,
680
+ "composed": true,
681
+ "docs": {
682
+ "tags": [],
683
+ "text": "Emitted when the input has focus."
684
+ },
685
+ "complexType": {
686
+ "original": "FocusEvent",
687
+ "resolved": "FocusEvent",
688
+ "references": {
689
+ "FocusEvent": {
690
+ "location": "global",
691
+ "id": "global::FocusEvent"
692
+ }
693
+ }
694
+ }
695
+ }];
696
+ }
697
+ static get elementRef() { return "el"; }
698
+ static get watchers() {
699
+ return [{
700
+ "propName": "disabled",
701
+ "methodName": "handleDisable"
702
+ }];
703
+ }
704
+ }
705
+ let inputIds = 0;
706
+ //# sourceMappingURL=cpsl-input.js.map