@haiilo/catalyst 0.5.1 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (469) hide show
  1. package/package.json +5 -6
  2. package/dist/catalyst/app-globals-23d8c4a8.js +0 -948
  3. package/dist/catalyst/app-globals-23d8c4a8.js.map +0 -1
  4. package/dist/catalyst/app-globals-3dd6a26b.js +0 -948
  5. package/dist/catalyst/app-globals-3dd6a26b.js.map +0 -1
  6. package/dist/catalyst/app-globals-42ce39cc.js +0 -948
  7. package/dist/catalyst/app-globals-42ce39cc.js.map +0 -1
  8. package/dist/catalyst/app-globals-5cf43b57.js +0 -949
  9. package/dist/catalyst/app-globals-5cf43b57.js.map +0 -1
  10. package/dist/catalyst/app-globals-8598c768.js +0 -948
  11. package/dist/catalyst/app-globals-8598c768.js.map +0 -1
  12. package/dist/catalyst/app-globals-a41af143.js +0 -948
  13. package/dist/catalyst/app-globals-a41af143.js.map +0 -1
  14. package/dist/catalyst/app-globals-c6a8b994.js +0 -949
  15. package/dist/catalyst/app-globals-c6a8b994.js.map +0 -1
  16. package/dist/catalyst/assets/fonts/AzeretMono-Regular.woff2 +0 -0
  17. package/dist/catalyst/assets/fonts/DMSans-Bold.woff2 +0 -0
  18. package/dist/catalyst/assets/fonts/DMSans-BoldItalic.woff2 +0 -0
  19. package/dist/catalyst/assets/fonts/DMSans-Italic.woff2 +0 -0
  20. package/dist/catalyst/assets/fonts/DMSans-Medium.woff2 +0 -0
  21. package/dist/catalyst/assets/fonts/DMSans-MediumItalic.woff2 +0 -0
  22. package/dist/catalyst/assets/fonts/DMSans-Regular.woff2 +0 -0
  23. package/dist/catalyst/assets/fonts/Lato-Black.woff +0 -0
  24. package/dist/catalyst/assets/fonts/Lato-Black.woff2 +0 -0
  25. package/dist/catalyst/assets/fonts/Lato-BlackItalic.woff +0 -0
  26. package/dist/catalyst/assets/fonts/Lato-BlackItalic.woff2 +0 -0
  27. package/dist/catalyst/assets/fonts/Lato-Bold.woff +0 -0
  28. package/dist/catalyst/assets/fonts/Lato-Bold.woff2 +0 -0
  29. package/dist/catalyst/assets/fonts/Lato-BoldItalic.woff +0 -0
  30. package/dist/catalyst/assets/fonts/Lato-BoldItalic.woff2 +0 -0
  31. package/dist/catalyst/assets/fonts/Lato-Hairline.woff +0 -0
  32. package/dist/catalyst/assets/fonts/Lato-Hairline.woff2 +0 -0
  33. package/dist/catalyst/assets/fonts/Lato-HairlineItalic.woff +0 -0
  34. package/dist/catalyst/assets/fonts/Lato-HairlineItalic.woff2 +0 -0
  35. package/dist/catalyst/assets/fonts/Lato-Heavy.woff +0 -0
  36. package/dist/catalyst/assets/fonts/Lato-Heavy.woff2 +0 -0
  37. package/dist/catalyst/assets/fonts/Lato-HeavyItalic.woff +0 -0
  38. package/dist/catalyst/assets/fonts/Lato-HeavyItalic.woff2 +0 -0
  39. package/dist/catalyst/assets/fonts/Lato-Italic.woff +0 -0
  40. package/dist/catalyst/assets/fonts/Lato-Italic.woff2 +0 -0
  41. package/dist/catalyst/assets/fonts/Lato-Light.woff +0 -0
  42. package/dist/catalyst/assets/fonts/Lato-Light.woff2 +0 -0
  43. package/dist/catalyst/assets/fonts/Lato-LightItalic.woff +0 -0
  44. package/dist/catalyst/assets/fonts/Lato-LightItalic.woff2 +0 -0
  45. package/dist/catalyst/assets/fonts/Lato-Medium.woff +0 -0
  46. package/dist/catalyst/assets/fonts/Lato-Medium.woff2 +0 -0
  47. package/dist/catalyst/assets/fonts/Lato-MediumItalic.woff +0 -0
  48. package/dist/catalyst/assets/fonts/Lato-MediumItalic.woff2 +0 -0
  49. package/dist/catalyst/assets/fonts/Lato-Regular.woff +0 -0
  50. package/dist/catalyst/assets/fonts/Lato-Regular.woff2 +0 -0
  51. package/dist/catalyst/assets/fonts/Lato-Semibold.woff +0 -0
  52. package/dist/catalyst/assets/fonts/Lato-Semibold.woff2 +0 -0
  53. package/dist/catalyst/assets/fonts/Lato-SemiboldItalic.woff +0 -0
  54. package/dist/catalyst/assets/fonts/Lato-SemiboldItalic.woff2 +0 -0
  55. package/dist/catalyst/assets/fonts/Lato-Thin.woff +0 -0
  56. package/dist/catalyst/assets/fonts/Lato-Thin.woff2 +0 -0
  57. package/dist/catalyst/assets/fonts/Lato-ThinItalic.woff +0 -0
  58. package/dist/catalyst/assets/fonts/Lato-ThinItalic.woff2 +0 -0
  59. package/dist/catalyst/cat-alert.entry.js +0 -33
  60. package/dist/catalyst/cat-alert.entry.js.map +0 -1
  61. package/dist/catalyst/cat-badge.entry.js +0 -44
  62. package/dist/catalyst/cat-badge.entry.js.map +0 -1
  63. package/dist/catalyst/cat-button.entry.js +0 -298
  64. package/dist/catalyst/cat-button.entry.js.map +0 -1
  65. package/dist/catalyst/cat-card.entry.js +0 -17
  66. package/dist/catalyst/cat-card.entry.js.map +0 -1
  67. package/dist/catalyst/cat-checkbox.entry.js +0 -75
  68. package/dist/catalyst/cat-checkbox.entry.js.map +0 -1
  69. package/dist/catalyst/cat-i18n-registry-2a6187c9.js +0 -75
  70. package/dist/catalyst/cat-i18n-registry-2a6187c9.js.map +0 -1
  71. package/dist/catalyst/cat-i18n-registry-330db605.js +0 -74
  72. package/dist/catalyst/cat-i18n-registry-330db605.js.map +0 -1
  73. package/dist/catalyst/cat-i18n-registry-83d20604.js +0 -74
  74. package/dist/catalyst/cat-i18n-registry-83d20604.js.map +0 -1
  75. package/dist/catalyst/cat-i18n-registry-dd55821d.js +0 -73
  76. package/dist/catalyst/cat-i18n-registry-dd55821d.js.map +0 -1
  77. package/dist/catalyst/cat-i18n-registry-f6560651.js +0 -75
  78. package/dist/catalyst/cat-i18n-registry-f6560651.js.map +0 -1
  79. package/dist/catalyst/cat-icon-registry-2dcfc9fb.js +0 -59
  80. package/dist/catalyst/cat-icon-registry-2dcfc9fb.js.map +0 -1
  81. package/dist/catalyst/cat-icon.entry.js +0 -31
  82. package/dist/catalyst/cat-icon.entry.js.map +0 -1
  83. package/dist/catalyst/cat-input.entry.js +0 -111
  84. package/dist/catalyst/cat-input.entry.js.map +0 -1
  85. package/dist/catalyst/cat-menu.entry.js +0 -850
  86. package/dist/catalyst/cat-menu.entry.js.map +0 -1
  87. package/dist/catalyst/cat-radio.entry.js +0 -66
  88. package/dist/catalyst/cat-radio.entry.js.map +0 -1
  89. package/dist/catalyst/cat-scrollable.entry.js +0 -4522
  90. package/dist/catalyst/cat-scrollable.entry.js.map +0 -1
  91. package/dist/catalyst/cat-skeleton.entry.js +0 -55
  92. package/dist/catalyst/cat-skeleton.entry.js.map +0 -1
  93. package/dist/catalyst/cat-spinner.entry.js +0 -23
  94. package/dist/catalyst/cat-spinner.entry.js.map +0 -1
  95. package/dist/catalyst/cat-textarea.entry.js +0 -87
  96. package/dist/catalyst/cat-textarea.entry.js.map +0 -1
  97. package/dist/catalyst/cat-toggle.entry.js +0 -66
  98. package/dist/catalyst/cat-toggle.entry.js.map +0 -1
  99. package/dist/catalyst/cat-tooltip.entry.js +0 -129
  100. package/dist/catalyst/cat-tooltip.entry.js.map +0 -1
  101. package/dist/catalyst/catalyst.css +0 -2033
  102. package/dist/catalyst/catalyst.esm.js +0 -134
  103. package/dist/catalyst/catalyst.esm.js.map +0 -1
  104. package/dist/catalyst/css-shim-e6dd2538.js +0 -6
  105. package/dist/catalyst/css-shim-e6dd2538.js.map +0 -1
  106. package/dist/catalyst/dom-7fc649b0.js +0 -75
  107. package/dist/catalyst/dom-7fc649b0.js.map +0 -1
  108. package/dist/catalyst/first-tabbable-2d9f9e9a.js +0 -2123
  109. package/dist/catalyst/first-tabbable-2d9f9e9a.js.map +0 -1
  110. package/dist/catalyst/index-471d4e05.js +0 -3059
  111. package/dist/catalyst/index-471d4e05.js.map +0 -1
  112. package/dist/catalyst/index-bbb694f5.js +0 -3059
  113. package/dist/catalyst/index-bbb694f5.js.map +0 -1
  114. package/dist/catalyst/index.cdn.js +0 -21
  115. package/dist/catalyst/index.esm.js +0 -5
  116. package/dist/catalyst/index.esm.js.map +0 -1
  117. package/dist/catalyst/loglevel-7f0f71af.js +0 -346
  118. package/dist/catalyst/loglevel-7f0f71af.js.map +0 -1
  119. package/dist/catalyst/shadow-css-4d56fa31.js +0 -390
  120. package/dist/catalyst/shadow-css-4d56fa31.js.map +0 -1
  121. package/dist/cjs/app-globals-aaefc070.js +0 -950
  122. package/dist/cjs/app-globals-aaefc070.js.map +0 -1
  123. package/dist/cjs/cat-alert.cjs.entry.js +0 -37
  124. package/dist/cjs/cat-alert.cjs.entry.js.map +0 -1
  125. package/dist/cjs/cat-badge.cjs.entry.js +0 -48
  126. package/dist/cjs/cat-badge.cjs.entry.js.map +0 -1
  127. package/dist/cjs/cat-button.cjs.entry.js +0 -302
  128. package/dist/cjs/cat-button.cjs.entry.js.map +0 -1
  129. package/dist/cjs/cat-card.cjs.entry.js +0 -21
  130. package/dist/cjs/cat-card.cjs.entry.js.map +0 -1
  131. package/dist/cjs/cat-checkbox.cjs.entry.js +0 -79
  132. package/dist/cjs/cat-checkbox.cjs.entry.js.map +0 -1
  133. package/dist/cjs/cat-i18n-registry-a1379d1e.js +0 -76
  134. package/dist/cjs/cat-i18n-registry-a1379d1e.js.map +0 -1
  135. package/dist/cjs/cat-icon-registry-74247389.js +0 -61
  136. package/dist/cjs/cat-icon-registry-74247389.js.map +0 -1
  137. package/dist/cjs/cat-icon.cjs.entry.js +0 -35
  138. package/dist/cjs/cat-icon.cjs.entry.js.map +0 -1
  139. package/dist/cjs/cat-input.cjs.entry.js +0 -115
  140. package/dist/cjs/cat-input.cjs.entry.js.map +0 -1
  141. package/dist/cjs/cat-menu.cjs.entry.js +0 -854
  142. package/dist/cjs/cat-menu.cjs.entry.js.map +0 -1
  143. package/dist/cjs/cat-radio.cjs.entry.js +0 -70
  144. package/dist/cjs/cat-radio.cjs.entry.js.map +0 -1
  145. package/dist/cjs/cat-scrollable.cjs.entry.js +0 -4526
  146. package/dist/cjs/cat-scrollable.cjs.entry.js.map +0 -1
  147. package/dist/cjs/cat-skeleton.cjs.entry.js +0 -59
  148. package/dist/cjs/cat-skeleton.cjs.entry.js.map +0 -1
  149. package/dist/cjs/cat-spinner.cjs.entry.js +0 -27
  150. package/dist/cjs/cat-spinner.cjs.entry.js.map +0 -1
  151. package/dist/cjs/cat-textarea.cjs.entry.js +0 -91
  152. package/dist/cjs/cat-textarea.cjs.entry.js.map +0 -1
  153. package/dist/cjs/cat-toggle.cjs.entry.js +0 -70
  154. package/dist/cjs/cat-toggle.cjs.entry.js.map +0 -1
  155. package/dist/cjs/cat-tooltip.cjs.entry.js +0 -133
  156. package/dist/cjs/cat-tooltip.cjs.entry.js.map +0 -1
  157. package/dist/cjs/catalyst.cjs.js +0 -136
  158. package/dist/cjs/catalyst.cjs.js.map +0 -1
  159. package/dist/cjs/css-shim-6ca600c2.js +0 -8
  160. package/dist/cjs/css-shim-6ca600c2.js.map +0 -1
  161. package/dist/cjs/dom-8d415461.js +0 -77
  162. package/dist/cjs/dom-8d415461.js.map +0 -1
  163. package/dist/cjs/first-tabbable-2068dcc6.js +0 -2133
  164. package/dist/cjs/first-tabbable-2068dcc6.js.map +0 -1
  165. package/dist/cjs/index-abcb3941.js +0 -3094
  166. package/dist/cjs/index-abcb3941.js.map +0 -1
  167. package/dist/cjs/index.cjs.js +0 -14
  168. package/dist/cjs/index.cjs.js.map +0 -1
  169. package/dist/cjs/loader.cjs.js +0 -42
  170. package/dist/cjs/loader.cjs.js.map +0 -1
  171. package/dist/cjs/loglevel-24040e9d.js +0 -348
  172. package/dist/cjs/loglevel-24040e9d.js.map +0 -1
  173. package/dist/cjs/shadow-css-78860e39.js +0 -392
  174. package/dist/cjs/shadow-css-78860e39.js.map +0 -1
  175. package/dist/collection/assets/fonts/AzeretMono-Regular.woff2 +0 -0
  176. package/dist/collection/assets/fonts/DMSans-Bold.woff2 +0 -0
  177. package/dist/collection/assets/fonts/DMSans-BoldItalic.woff2 +0 -0
  178. package/dist/collection/assets/fonts/DMSans-Italic.woff2 +0 -0
  179. package/dist/collection/assets/fonts/DMSans-Medium.woff2 +0 -0
  180. package/dist/collection/assets/fonts/DMSans-MediumItalic.woff2 +0 -0
  181. package/dist/collection/assets/fonts/DMSans-Regular.woff2 +0 -0
  182. package/dist/collection/assets/fonts/Lato-Black.woff +0 -0
  183. package/dist/collection/assets/fonts/Lato-Black.woff2 +0 -0
  184. package/dist/collection/assets/fonts/Lato-BlackItalic.woff +0 -0
  185. package/dist/collection/assets/fonts/Lato-BlackItalic.woff2 +0 -0
  186. package/dist/collection/assets/fonts/Lato-Bold.woff +0 -0
  187. package/dist/collection/assets/fonts/Lato-Bold.woff2 +0 -0
  188. package/dist/collection/assets/fonts/Lato-BoldItalic.woff +0 -0
  189. package/dist/collection/assets/fonts/Lato-BoldItalic.woff2 +0 -0
  190. package/dist/collection/assets/fonts/Lato-Hairline.woff +0 -0
  191. package/dist/collection/assets/fonts/Lato-Hairline.woff2 +0 -0
  192. package/dist/collection/assets/fonts/Lato-HairlineItalic.woff +0 -0
  193. package/dist/collection/assets/fonts/Lato-HairlineItalic.woff2 +0 -0
  194. package/dist/collection/assets/fonts/Lato-Heavy.woff +0 -0
  195. package/dist/collection/assets/fonts/Lato-Heavy.woff2 +0 -0
  196. package/dist/collection/assets/fonts/Lato-HeavyItalic.woff +0 -0
  197. package/dist/collection/assets/fonts/Lato-HeavyItalic.woff2 +0 -0
  198. package/dist/collection/assets/fonts/Lato-Italic.woff +0 -0
  199. package/dist/collection/assets/fonts/Lato-Italic.woff2 +0 -0
  200. package/dist/collection/assets/fonts/Lato-Light.woff +0 -0
  201. package/dist/collection/assets/fonts/Lato-Light.woff2 +0 -0
  202. package/dist/collection/assets/fonts/Lato-LightItalic.woff +0 -0
  203. package/dist/collection/assets/fonts/Lato-LightItalic.woff2 +0 -0
  204. package/dist/collection/assets/fonts/Lato-Medium.woff +0 -0
  205. package/dist/collection/assets/fonts/Lato-Medium.woff2 +0 -0
  206. package/dist/collection/assets/fonts/Lato-MediumItalic.woff +0 -0
  207. package/dist/collection/assets/fonts/Lato-MediumItalic.woff2 +0 -0
  208. package/dist/collection/assets/fonts/Lato-Regular.woff +0 -0
  209. package/dist/collection/assets/fonts/Lato-Regular.woff2 +0 -0
  210. package/dist/collection/assets/fonts/Lato-Semibold.woff +0 -0
  211. package/dist/collection/assets/fonts/Lato-Semibold.woff2 +0 -0
  212. package/dist/collection/assets/fonts/Lato-SemiboldItalic.woff +0 -0
  213. package/dist/collection/assets/fonts/Lato-SemiboldItalic.woff2 +0 -0
  214. package/dist/collection/assets/fonts/Lato-Thin.woff +0 -0
  215. package/dist/collection/assets/fonts/Lato-Thin.woff2 +0 -0
  216. package/dist/collection/assets/fonts/Lato-ThinItalic.woff +0 -0
  217. package/dist/collection/assets/fonts/Lato-ThinItalic.woff2 +0 -0
  218. package/dist/collection/collection-manifest.json +0 -27
  219. package/dist/collection/components/cat-alert/cat-alert.css +0 -62
  220. package/dist/collection/components/cat-alert/cat-alert.js +0 -61
  221. package/dist/collection/components/cat-alert/cat-alert.js.map +0 -1
  222. package/dist/collection/components/cat-badge/cat-badge.css +0 -154
  223. package/dist/collection/components/cat-badge/cat-badge.js +0 -143
  224. package/dist/collection/components/cat-badge/cat-badge.js.map +0 -1
  225. package/dist/collection/components/cat-button/cat-button.css +0 -333
  226. package/dist/collection/components/cat-button/cat-button.js +0 -615
  227. package/dist/collection/components/cat-button/cat-button.js.map +0 -1
  228. package/dist/collection/components/cat-card/cat-card.css +0 -25
  229. package/dist/collection/components/cat-card/cat-card.js +0 -20
  230. package/dist/collection/components/cat-card/cat-card.js.map +0 -1
  231. package/dist/collection/components/cat-checkbox/cat-checkbox.css +0 -105
  232. package/dist/collection/components/cat-checkbox/cat-checkbox.js +0 -314
  233. package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +0 -1
  234. package/dist/collection/components/cat-i18n/cat-i18n-registry.js +0 -70
  235. package/dist/collection/components/cat-i18n/cat-i18n-registry.js.map +0 -1
  236. package/dist/collection/components/cat-icon/cat-icon-registry.js +0 -55
  237. package/dist/collection/components/cat-icon/cat-icon-registry.js.map +0 -1
  238. package/dist/collection/components/cat-icon/cat-icon.css +0 -50
  239. package/dist/collection/components/cat-icon/cat-icon.js +0 -91
  240. package/dist/collection/components/cat-icon/cat-icon.js.map +0 -1
  241. package/dist/collection/components/cat-input/cat-input.css +0 -131
  242. package/dist/collection/components/cat-input/cat-input.js +0 -606
  243. package/dist/collection/components/cat-input/cat-input.js.map +0 -1
  244. package/dist/collection/components/cat-menu/cat-menu.css +0 -34
  245. package/dist/collection/components/cat-menu/cat-menu.js +0 -184
  246. package/dist/collection/components/cat-menu/cat-menu.js.map +0 -1
  247. package/dist/collection/components/cat-radio/cat-radio.css +0 -84
  248. package/dist/collection/components/cat-radio/cat-radio.js +0 -283
  249. package/dist/collection/components/cat-radio/cat-radio.js.map +0 -1
  250. package/dist/collection/components/cat-scrollable/cat-scrollable.css +0 -69
  251. package/dist/collection/components/cat-scrollable/cat-scrollable.js +0 -311
  252. package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +0 -1
  253. package/dist/collection/components/cat-skeleton/cat-skeleton.css +0 -177
  254. package/dist/collection/components/cat-skeleton/cat-skeleton.js +0 -131
  255. package/dist/collection/components/cat-skeleton/cat-skeleton.js.map +0 -1
  256. package/dist/collection/components/cat-spinner/cat-spinner.css +0 -63
  257. package/dist/collection/components/cat-spinner/cat-spinner.js +0 -65
  258. package/dist/collection/components/cat-spinner/cat-spinner.js.map +0 -1
  259. package/dist/collection/components/cat-textarea/cat-textarea.css +0 -74
  260. package/dist/collection/components/cat-textarea/cat-textarea.js +0 -393
  261. package/dist/collection/components/cat-textarea/cat-textarea.js.map +0 -1
  262. package/dist/collection/components/cat-toggle/cat-toggle.css +0 -93
  263. package/dist/collection/components/cat-toggle/cat-toggle.js +0 -283
  264. package/dist/collection/components/cat-toggle/cat-toggle.js.map +0 -1
  265. package/dist/collection/components/cat-tooltip/cat-tooltip.css +0 -41
  266. package/dist/collection/components/cat-tooltip/cat-tooltip.js +0 -254
  267. package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +0 -1
  268. package/dist/collection/index.cdn.js +0 -21
  269. package/dist/collection/index.js +0 -3
  270. package/dist/collection/index.js.map +0 -1
  271. package/dist/collection/init.js +0 -17
  272. package/dist/collection/init.js.map +0 -1
  273. package/dist/collection/utils/breakpoints.js +0 -12
  274. package/dist/collection/utils/breakpoints.js.map +0 -1
  275. package/dist/collection/utils/first-tabbable.js +0 -6
  276. package/dist/collection/utils/first-tabbable.js.map +0 -1
  277. package/dist/collection/utils/is-touch-screen.js +0 -3
  278. package/dist/collection/utils/is-touch-screen.js.map +0 -1
  279. package/dist/collection/utils/media-matcher.js +0 -55
  280. package/dist/collection/utils/media-matcher.js.map +0 -1
  281. package/dist/collection/utils/platform.js +0 -50
  282. package/dist/collection/utils/platform.js.map +0 -1
  283. package/dist/components/cat-alert.d.ts +0 -11
  284. package/dist/components/cat-alert.js +0 -53
  285. package/dist/components/cat-alert.js.map +0 -1
  286. package/dist/components/cat-badge.d.ts +0 -11
  287. package/dist/components/cat-badge.js +0 -68
  288. package/dist/components/cat-badge.js.map +0 -1
  289. package/dist/components/cat-button.d.ts +0 -11
  290. package/dist/components/cat-button.js +0 -8
  291. package/dist/components/cat-button.js.map +0 -1
  292. package/dist/components/cat-button2.js +0 -346
  293. package/dist/components/cat-button2.js.map +0 -1
  294. package/dist/components/cat-card.d.ts +0 -11
  295. package/dist/components/cat-card.js +0 -35
  296. package/dist/components/cat-card.js.map +0 -1
  297. package/dist/components/cat-checkbox.d.ts +0 -11
  298. package/dist/components/cat-checkbox.js +0 -103
  299. package/dist/components/cat-checkbox.js.map +0 -1
  300. package/dist/components/cat-i18n-registry.js +0 -74
  301. package/dist/components/cat-i18n-registry.js.map +0 -1
  302. package/dist/components/cat-icon-registry.js +0 -59
  303. package/dist/components/cat-icon-registry.js.map +0 -1
  304. package/dist/components/cat-icon.d.ts +0 -11
  305. package/dist/components/cat-icon.js +0 -8
  306. package/dist/components/cat-icon.js.map +0 -1
  307. package/dist/components/cat-icon2.js +0 -49
  308. package/dist/components/cat-icon2.js.map +0 -1
  309. package/dist/components/cat-input.d.ts +0 -11
  310. package/dist/components/cat-input.js +0 -172
  311. package/dist/components/cat-input.js.map +0 -1
  312. package/dist/components/cat-menu.d.ts +0 -11
  313. package/dist/components/cat-menu.js +0 -870
  314. package/dist/components/cat-menu.js.map +0 -1
  315. package/dist/components/cat-radio.d.ts +0 -11
  316. package/dist/components/cat-radio.js +0 -93
  317. package/dist/components/cat-radio.js.map +0 -1
  318. package/dist/components/cat-scrollable.d.ts +0 -11
  319. package/dist/components/cat-scrollable.js +0 -4548
  320. package/dist/components/cat-scrollable.js.map +0 -1
  321. package/dist/components/cat-skeleton.d.ts +0 -11
  322. package/dist/components/cat-skeleton.js +0 -78
  323. package/dist/components/cat-skeleton.js.map +0 -1
  324. package/dist/components/cat-spinner.d.ts +0 -11
  325. package/dist/components/cat-spinner.js +0 -8
  326. package/dist/components/cat-spinner.js.map +0 -1
  327. package/dist/components/cat-spinner2.js +0 -41
  328. package/dist/components/cat-spinner2.js.map +0 -1
  329. package/dist/components/cat-textarea.d.ts +0 -11
  330. package/dist/components/cat-textarea.js +0 -119
  331. package/dist/components/cat-textarea.js.map +0 -1
  332. package/dist/components/cat-toggle.d.ts +0 -11
  333. package/dist/components/cat-toggle.js +0 -93
  334. package/dist/components/cat-toggle.js.map +0 -1
  335. package/dist/components/cat-tooltip.d.ts +0 -11
  336. package/dist/components/cat-tooltip.js +0 -154
  337. package/dist/components/cat-tooltip.js.map +0 -1
  338. package/dist/components/first-tabbable.js +0 -2123
  339. package/dist/components/first-tabbable.js.map +0 -1
  340. package/dist/components/index.d.ts +0 -26
  341. package/dist/components/index.js +0 -951
  342. package/dist/components/index.js.map +0 -1
  343. package/dist/components/loglevel.js +0 -346
  344. package/dist/components/loglevel.js.map +0 -1
  345. package/dist/esm/app-globals-3dd6a26b.js +0 -948
  346. package/dist/esm/app-globals-3dd6a26b.js.map +0 -1
  347. package/dist/esm/cat-alert.entry.js +0 -33
  348. package/dist/esm/cat-alert.entry.js.map +0 -1
  349. package/dist/esm/cat-badge.entry.js +0 -44
  350. package/dist/esm/cat-badge.entry.js.map +0 -1
  351. package/dist/esm/cat-button.entry.js +0 -298
  352. package/dist/esm/cat-button.entry.js.map +0 -1
  353. package/dist/esm/cat-card.entry.js +0 -17
  354. package/dist/esm/cat-card.entry.js.map +0 -1
  355. package/dist/esm/cat-checkbox.entry.js +0 -75
  356. package/dist/esm/cat-checkbox.entry.js.map +0 -1
  357. package/dist/esm/cat-i18n-registry-83d20604.js +0 -74
  358. package/dist/esm/cat-i18n-registry-83d20604.js.map +0 -1
  359. package/dist/esm/cat-icon-registry-2dcfc9fb.js +0 -59
  360. package/dist/esm/cat-icon-registry-2dcfc9fb.js.map +0 -1
  361. package/dist/esm/cat-icon.entry.js +0 -31
  362. package/dist/esm/cat-icon.entry.js.map +0 -1
  363. package/dist/esm/cat-input.entry.js +0 -111
  364. package/dist/esm/cat-input.entry.js.map +0 -1
  365. package/dist/esm/cat-menu.entry.js +0 -850
  366. package/dist/esm/cat-menu.entry.js.map +0 -1
  367. package/dist/esm/cat-radio.entry.js +0 -66
  368. package/dist/esm/cat-radio.entry.js.map +0 -1
  369. package/dist/esm/cat-scrollable.entry.js +0 -4522
  370. package/dist/esm/cat-scrollable.entry.js.map +0 -1
  371. package/dist/esm/cat-skeleton.entry.js +0 -55
  372. package/dist/esm/cat-skeleton.entry.js.map +0 -1
  373. package/dist/esm/cat-spinner.entry.js +0 -23
  374. package/dist/esm/cat-spinner.entry.js.map +0 -1
  375. package/dist/esm/cat-textarea.entry.js +0 -87
  376. package/dist/esm/cat-textarea.entry.js.map +0 -1
  377. package/dist/esm/cat-toggle.entry.js +0 -66
  378. package/dist/esm/cat-toggle.entry.js.map +0 -1
  379. package/dist/esm/cat-tooltip.entry.js +0 -129
  380. package/dist/esm/cat-tooltip.entry.js.map +0 -1
  381. package/dist/esm/catalyst.js +0 -134
  382. package/dist/esm/catalyst.js.map +0 -1
  383. package/dist/esm/css-shim-e6dd2538.js +0 -6
  384. package/dist/esm/css-shim-e6dd2538.js.map +0 -1
  385. package/dist/esm/dom-7fc649b0.js +0 -75
  386. package/dist/esm/dom-7fc649b0.js.map +0 -1
  387. package/dist/esm/first-tabbable-2d9f9e9a.js +0 -2123
  388. package/dist/esm/first-tabbable-2d9f9e9a.js.map +0 -1
  389. package/dist/esm/index-471d4e05.js +0 -3059
  390. package/dist/esm/index-471d4e05.js.map +0 -1
  391. package/dist/esm/index.js +0 -5
  392. package/dist/esm/index.js.map +0 -1
  393. package/dist/esm/loader.js +0 -38
  394. package/dist/esm/loader.js.map +0 -1
  395. package/dist/esm/loglevel-7f0f71af.js +0 -346
  396. package/dist/esm/loglevel-7f0f71af.js.map +0 -1
  397. package/dist/esm/polyfills/core-js.js +0 -11
  398. package/dist/esm/polyfills/css-shim.js +0 -1
  399. package/dist/esm/polyfills/dom.js +0 -79
  400. package/dist/esm/polyfills/es5-html-element.js +0 -1
  401. package/dist/esm/polyfills/index.js +0 -34
  402. package/dist/esm/polyfills/system.js +0 -6
  403. package/dist/esm/shadow-css-4d56fa31.js +0 -390
  404. package/dist/esm/shadow-css-4d56fa31.js.map +0 -1
  405. package/dist/index.cjs.js +0 -1
  406. package/dist/index.js +0 -1
  407. package/dist/types/components/cat-alert/cat-alert.d.ts +0 -14
  408. package/dist/types/components/cat-alert/cat-alert.e2e.d.ts +0 -1
  409. package/dist/types/components/cat-alert/cat-alert.spec.d.ts +0 -1
  410. package/dist/types/components/cat-badge/cat-badge.d.ts +0 -29
  411. package/dist/types/components/cat-badge/cat-badge.e2e.d.ts +0 -1
  412. package/dist/types/components/cat-badge/cat-badge.spec.d.ts +0 -1
  413. package/dist/types/components/cat-button/cat-button.d.ts +0 -134
  414. package/dist/types/components/cat-button/cat-button.e2e.d.ts +0 -1
  415. package/dist/types/components/cat-button/cat-button.spec.d.ts +0 -1
  416. package/dist/types/components/cat-card/cat-card.d.ts +0 -7
  417. package/dist/types/components/cat-card/cat-card.e2e.d.ts +0 -1
  418. package/dist/types/components/cat-card/cat-card.spec.d.ts +0 -1
  419. package/dist/types/components/cat-checkbox/cat-checkbox.d.ts +0 -69
  420. package/dist/types/components/cat-checkbox/cat-checkbox.e2e.d.ts +0 -1
  421. package/dist/types/components/cat-checkbox/cat-checkbox.spec.d.ts +0 -1
  422. package/dist/types/components/cat-i18n/cat-i18n-registry.d.ts +0 -18
  423. package/dist/types/components/cat-icon/cat-icon-registry.d.ts +0 -15
  424. package/dist/types/components/cat-icon/cat-icon.d.ts +0 -23
  425. package/dist/types/components/cat-icon/cat-icon.e2e.d.ts +0 -1
  426. package/dist/types/components/cat-icon/cat-icon.spec.d.ts +0 -1
  427. package/dist/types/components/cat-input/cat-input.d.ts +0 -130
  428. package/dist/types/components/cat-input/cat-input.e2e.d.ts +0 -1
  429. package/dist/types/components/cat-input/cat-input.spec.d.ts +0 -1
  430. package/dist/types/components/cat-menu/cat-menu.d.ts +0 -31
  431. package/dist/types/components/cat-menu/cat-menu.e2e.d.ts +0 -1
  432. package/dist/types/components/cat-menu/cat-menu.spec.d.ts +0 -1
  433. package/dist/types/components/cat-radio/cat-radio.d.ts +0 -63
  434. package/dist/types/components/cat-radio/cat-radio.e2e.d.ts +0 -1
  435. package/dist/types/components/cat-radio/cat-radio.spec.d.ts +0 -1
  436. package/dist/types/components/cat-scrollable/cat-scrollable.d.ts +0 -52
  437. package/dist/types/components/cat-scrollable/cat-scrollable.e2e.d.ts +0 -1
  438. package/dist/types/components/cat-scrollable/cat-scrollable.spec.d.ts +0 -1
  439. package/dist/types/components/cat-skeleton/cat-skeleton.d.ts +0 -28
  440. package/dist/types/components/cat-skeleton/cat-skeleton.e2e.d.ts +0 -1
  441. package/dist/types/components/cat-skeleton/cat-skeleton.spec.d.ts +0 -1
  442. package/dist/types/components/cat-spinner/cat-spinner.d.ts +0 -15
  443. package/dist/types/components/cat-spinner/cat-spinner.e2e.d.ts +0 -1
  444. package/dist/types/components/cat-spinner/cat-spinner.spec.d.ts +0 -1
  445. package/dist/types/components/cat-textarea/cat-textarea.d.ts +0 -85
  446. package/dist/types/components/cat-textarea/cat-textarea.e2e.d.ts +0 -1
  447. package/dist/types/components/cat-textarea/cat-textarea.spec.d.ts +0 -1
  448. package/dist/types/components/cat-toggle/cat-toggle.d.ts +0 -64
  449. package/dist/types/components/cat-toggle/cat-toggle.e2e.d.ts +0 -1
  450. package/dist/types/components/cat-toggle/cat-toggle.spec.d.ts +0 -1
  451. package/dist/types/components/cat-tooltip/cat-tooltip.d.ts +0 -46
  452. package/dist/types/components/cat-tooltip/cat-tooltip.e2e.d.ts +0 -1
  453. package/dist/types/components/cat-tooltip/cat-tooltip.spec.d.ts +0 -1
  454. package/dist/types/components.d.ts +0 -1167
  455. package/dist/types/index.d.ts +0 -3
  456. package/dist/types/init.d.ts +0 -1
  457. package/dist/types/stencil-public-runtime.d.ts +0 -1565
  458. package/dist/types/utils/breakpoints.d.ts +0 -7
  459. package/dist/types/utils/first-tabbable.d.ts +0 -4
  460. package/dist/types/utils/is-touch-screen.d.ts +0 -2
  461. package/dist/types/utils/media-matcher.d.ts +0 -13
  462. package/dist/types/utils/media-matcher.spec.d.ts +0 -1
  463. package/dist/types/utils/platform.d.ts +0 -18
  464. package/loader/cdn.js +0 -3
  465. package/loader/index.cjs.js +0 -3
  466. package/loader/index.d.ts +0 -12
  467. package/loader/index.es2017.js +0 -3
  468. package/loader/index.js +0 -4
  469. package/loader/package.json +0 -10
@@ -1,606 +0,0 @@
1
- import { Component, Event, h, Host, Method, Prop, State, Watch } from '@stencil/core';
2
- import log from 'loglevel';
3
- import { CatI18nRegistry } from '../cat-i18n/cat-i18n-registry';
4
- let nextUniqueId = 0;
5
- /**
6
- * Inputs are used to allow users to provide text input when the expected input
7
- * is short. As well as plain text, Input supports various types of text,
8
- * including passwords and numbers.
9
- *
10
- * @part label - The label content.
11
- * @part prefix - The text prefix.
12
- * @part suffix - The text suffix.
13
- */
14
- export class CatInput {
15
- constructor() {
16
- this.i18n = CatI18nRegistry.getInstance();
17
- this.id = `cat-input-${nextUniqueId++}`;
18
- this.inputValue = '';
19
- /**
20
- * Whether the input should show a clear button.
21
- */
22
- this.clearable = false;
23
- /**
24
- * Whether the input is disabled.
25
- */
26
- this.disabled = false;
27
- /**
28
- * Display the icon on the right.
29
- */
30
- this.iconRight = false;
31
- /**
32
- * The label for the input.
33
- */
34
- this.label = '';
35
- /**
36
- * Visually hide the label, but still show it to assistive technologies like screen readers.
37
- */
38
- this.labelHidden = false;
39
- /**
40
- * The name of the form control. Submitted with the form as part of a name/value pair.
41
- */
42
- this.name = '';
43
- /**
44
- * The value is not editable.
45
- */
46
- this.readonly = false;
47
- /**
48
- * A value is required or must be check for the form to be submittable.
49
- */
50
- this.required = false;
51
- /**
52
- * Use round input edges.
53
- */
54
- this.round = false;
55
- /**
56
- * Type of form control.
57
- */
58
- this.type = 'text';
59
- }
60
- onValueChange(value) {
61
- this.inputValue = '' + (value !== null && value !== void 0 ? value : '');
62
- }
63
- componentWillLoad() {
64
- this.onValueChange(this.value);
65
- }
66
- componentWillRender() {
67
- if (!this.label) {
68
- log.error('[A11y] Missing ARIA label on input', this);
69
- }
70
- }
71
- /**
72
- * Sets focus on the input. Use this method instead of `input.focus()`.
73
- *
74
- * @param options An optional object providing options to control aspects of
75
- * the focusing process.
76
- */
77
- async setFocus(options) {
78
- this.input.focus(options);
79
- }
80
- /**
81
- * Clear the input.
82
- */
83
- async clear() {
84
- this.inputValue = '';
85
- }
86
- render() {
87
- return (h(Host, null,
88
- this.label && (h("label", { htmlFor: this.id, class: { hidden: this.labelHidden } },
89
- h("span", { part: "label" },
90
- this.label,
91
- !this.required && (h("span", { class: "input-optional", "aria-hidden": "true" },
92
- "(",
93
- this.i18n.getMessage('input.optional'),
94
- ")"))))),
95
- h("div", { class: {
96
- 'input-wrapper': true,
97
- 'input-round': this.round,
98
- 'input-disabled': this.disabled
99
- }, onClick: () => this.input.focus() },
100
- this.textPrefix && (h("span", { class: "text-prefix", part: "prefix" }, this.textPrefix)),
101
- this.icon && !this.iconRight && h("cat-icon", { icon: this.icon, class: "icon-prefix" }),
102
- h("div", { class: "input-inner-wrapper" },
103
- h("input", { ref: el => (this.input = el), id: this.id, class: {
104
- 'has-clearable': this.clearable && !this.disabled
105
- }, autocomplete: this.autoComplete, disabled: this.disabled, max: this.max, maxlength: this.maxLength, min: this.max, minlength: this.minLength, name: this.name, placeholder: this.placeholder, readonly: this.readonly, required: this.required, type: this.type, value: this.inputValue, onInput: this.onInput.bind(this), onFocus: this.onFocus.bind(this), onBlur: this.onBlur.bind(this) }),
106
- this.clearable && !this.disabled && this.inputValue && (h("cat-button", { class: "clearable", icon: "cross-circle-outlined", "icon-only": "true", size: "s", variant: "text", round: true, "a11y-label": "sdf", onClick: this.clear.bind(this) }, this.i18n.getMessage('input.clear')))),
107
- this.icon && this.iconRight && h("cat-icon", { icon: this.icon, class: "icon-suffix" }),
108
- this.textSuffix && (h("span", { class: "text-suffix", part: "suffix" }, this.textSuffix))),
109
- this.hint && h("p", { class: "input-hint" }, this.hint)));
110
- }
111
- onInput(event) {
112
- this.inputValue = this.input.value;
113
- this.catChange.emit(event);
114
- }
115
- onFocus(event) {
116
- this.catFocus.emit(event);
117
- }
118
- onBlur(event) {
119
- this.catBlur.emit(event);
120
- }
121
- static get is() { return "cat-input"; }
122
- static get encapsulation() { return "shadow"; }
123
- static get originalStyleUrls() { return {
124
- "$": ["cat-input.scss"]
125
- }; }
126
- static get styleUrls() { return {
127
- "$": ["cat-input.css"]
128
- }; }
129
- static get properties() { return {
130
- "autoComplete": {
131
- "type": "string",
132
- "mutable": false,
133
- "complexType": {
134
- "original": "string",
135
- "resolved": "string | undefined",
136
- "references": {}
137
- },
138
- "required": false,
139
- "optional": true,
140
- "docs": {
141
- "tags": [],
142
- "text": "Hint for form autofill feature."
143
- },
144
- "attribute": "auto-complete",
145
- "reflect": false
146
- },
147
- "clearable": {
148
- "type": "boolean",
149
- "mutable": false,
150
- "complexType": {
151
- "original": "boolean",
152
- "resolved": "boolean",
153
- "references": {}
154
- },
155
- "required": false,
156
- "optional": false,
157
- "docs": {
158
- "tags": [],
159
- "text": "Whether the input should show a clear button."
160
- },
161
- "attribute": "clearable",
162
- "reflect": false,
163
- "defaultValue": "false"
164
- },
165
- "disabled": {
166
- "type": "boolean",
167
- "mutable": false,
168
- "complexType": {
169
- "original": "boolean",
170
- "resolved": "boolean",
171
- "references": {}
172
- },
173
- "required": false,
174
- "optional": false,
175
- "docs": {
176
- "tags": [],
177
- "text": "Whether the input is disabled."
178
- },
179
- "attribute": "disabled",
180
- "reflect": false,
181
- "defaultValue": "false"
182
- },
183
- "hint": {
184
- "type": "string",
185
- "mutable": false,
186
- "complexType": {
187
- "original": "string",
188
- "resolved": "string | undefined",
189
- "references": {}
190
- },
191
- "required": false,
192
- "optional": true,
193
- "docs": {
194
- "tags": [],
195
- "text": "Optional hint text to be displayed with the input."
196
- },
197
- "attribute": "hint",
198
- "reflect": false
199
- },
200
- "icon": {
201
- "type": "string",
202
- "mutable": false,
203
- "complexType": {
204
- "original": "string",
205
- "resolved": "string | undefined",
206
- "references": {}
207
- },
208
- "required": false,
209
- "optional": true,
210
- "docs": {
211
- "tags": [],
212
- "text": "The name of an icon to be displayed in the input."
213
- },
214
- "attribute": "icon",
215
- "reflect": false
216
- },
217
- "iconRight": {
218
- "type": "boolean",
219
- "mutable": false,
220
- "complexType": {
221
- "original": "boolean",
222
- "resolved": "boolean",
223
- "references": {}
224
- },
225
- "required": false,
226
- "optional": false,
227
- "docs": {
228
- "tags": [],
229
- "text": "Display the icon on the right."
230
- },
231
- "attribute": "icon-right",
232
- "reflect": false,
233
- "defaultValue": "false"
234
- },
235
- "label": {
236
- "type": "string",
237
- "mutable": false,
238
- "complexType": {
239
- "original": "string",
240
- "resolved": "string",
241
- "references": {}
242
- },
243
- "required": false,
244
- "optional": false,
245
- "docs": {
246
- "tags": [],
247
- "text": "The label for the input."
248
- },
249
- "attribute": "label",
250
- "reflect": false,
251
- "defaultValue": "''"
252
- },
253
- "labelHidden": {
254
- "type": "boolean",
255
- "mutable": false,
256
- "complexType": {
257
- "original": "boolean",
258
- "resolved": "boolean",
259
- "references": {}
260
- },
261
- "required": false,
262
- "optional": false,
263
- "docs": {
264
- "tags": [],
265
- "text": "Visually hide the label, but still show it to assistive technologies like screen readers."
266
- },
267
- "attribute": "label-hidden",
268
- "reflect": false,
269
- "defaultValue": "false"
270
- },
271
- "max": {
272
- "type": "number",
273
- "mutable": false,
274
- "complexType": {
275
- "original": "number",
276
- "resolved": "number | undefined",
277
- "references": {}
278
- },
279
- "required": false,
280
- "optional": true,
281
- "docs": {
282
- "tags": [],
283
- "text": "A maximum value for numeric values."
284
- },
285
- "attribute": "max",
286
- "reflect": false
287
- },
288
- "maxLength": {
289
- "type": "number",
290
- "mutable": false,
291
- "complexType": {
292
- "original": "number",
293
- "resolved": "number | undefined",
294
- "references": {}
295
- },
296
- "required": false,
297
- "optional": true,
298
- "docs": {
299
- "tags": [],
300
- "text": "A maximum length (number of characters) for textual values."
301
- },
302
- "attribute": "max-length",
303
- "reflect": false
304
- },
305
- "min": {
306
- "type": "number",
307
- "mutable": false,
308
- "complexType": {
309
- "original": "number",
310
- "resolved": "number | undefined",
311
- "references": {}
312
- },
313
- "required": false,
314
- "optional": true,
315
- "docs": {
316
- "tags": [],
317
- "text": "A minimum value for numeric values."
318
- },
319
- "attribute": "min",
320
- "reflect": false
321
- },
322
- "minLength": {
323
- "type": "number",
324
- "mutable": false,
325
- "complexType": {
326
- "original": "number",
327
- "resolved": "number | undefined",
328
- "references": {}
329
- },
330
- "required": false,
331
- "optional": true,
332
- "docs": {
333
- "tags": [],
334
- "text": "A minimum length (number of characters) for textual values."
335
- },
336
- "attribute": "min-length",
337
- "reflect": false
338
- },
339
- "name": {
340
- "type": "string",
341
- "mutable": false,
342
- "complexType": {
343
- "original": "string",
344
- "resolved": "string",
345
- "references": {}
346
- },
347
- "required": false,
348
- "optional": false,
349
- "docs": {
350
- "tags": [],
351
- "text": "The name of the form control. Submitted with the form as part of a name/value pair."
352
- },
353
- "attribute": "name",
354
- "reflect": false,
355
- "defaultValue": "''"
356
- },
357
- "placeholder": {
358
- "type": "string",
359
- "mutable": false,
360
- "complexType": {
361
- "original": "string",
362
- "resolved": "string | undefined",
363
- "references": {}
364
- },
365
- "required": false,
366
- "optional": true,
367
- "docs": {
368
- "tags": [],
369
- "text": "The placeholder text to display within the input."
370
- },
371
- "attribute": "placeholder",
372
- "reflect": false
373
- },
374
- "textPrefix": {
375
- "type": "string",
376
- "mutable": false,
377
- "complexType": {
378
- "original": "string",
379
- "resolved": "string | undefined",
380
- "references": {}
381
- },
382
- "required": false,
383
- "optional": true,
384
- "docs": {
385
- "tags": [],
386
- "text": "A textual prefix to be displayed in the input."
387
- },
388
- "attribute": "text-prefix",
389
- "reflect": false
390
- },
391
- "textSuffix": {
392
- "type": "string",
393
- "mutable": false,
394
- "complexType": {
395
- "original": "string",
396
- "resolved": "string | undefined",
397
- "references": {}
398
- },
399
- "required": false,
400
- "optional": true,
401
- "docs": {
402
- "tags": [],
403
- "text": "A textual suffix to be displayed in the input."
404
- },
405
- "attribute": "text-suffix",
406
- "reflect": false
407
- },
408
- "readonly": {
409
- "type": "boolean",
410
- "mutable": false,
411
- "complexType": {
412
- "original": "boolean",
413
- "resolved": "boolean",
414
- "references": {}
415
- },
416
- "required": false,
417
- "optional": false,
418
- "docs": {
419
- "tags": [],
420
- "text": "The value is not editable."
421
- },
422
- "attribute": "readonly",
423
- "reflect": false,
424
- "defaultValue": "false"
425
- },
426
- "required": {
427
- "type": "boolean",
428
- "mutable": false,
429
- "complexType": {
430
- "original": "boolean",
431
- "resolved": "boolean",
432
- "references": {}
433
- },
434
- "required": false,
435
- "optional": false,
436
- "docs": {
437
- "tags": [],
438
- "text": "A value is required or must be check for the form to be submittable."
439
- },
440
- "attribute": "required",
441
- "reflect": false,
442
- "defaultValue": "false"
443
- },
444
- "round": {
445
- "type": "boolean",
446
- "mutable": false,
447
- "complexType": {
448
- "original": "boolean",
449
- "resolved": "boolean",
450
- "references": {}
451
- },
452
- "required": false,
453
- "optional": false,
454
- "docs": {
455
- "tags": [],
456
- "text": "Use round input edges."
457
- },
458
- "attribute": "round",
459
- "reflect": false,
460
- "defaultValue": "false"
461
- },
462
- "type": {
463
- "type": "string",
464
- "mutable": false,
465
- "complexType": {
466
- "original": "'text' | 'email' | 'password' | 'tel' | 'url' | 'search' | 'number'",
467
- "resolved": "\"email\" | \"number\" | \"password\" | \"search\" | \"tel\" | \"text\" | \"url\"",
468
- "references": {}
469
- },
470
- "required": false,
471
- "optional": false,
472
- "docs": {
473
- "tags": [],
474
- "text": "Type of form control."
475
- },
476
- "attribute": "type",
477
- "reflect": false,
478
- "defaultValue": "'text'"
479
- },
480
- "value": {
481
- "type": "any",
482
- "mutable": false,
483
- "complexType": {
484
- "original": "string | number",
485
- "resolved": "number | string | undefined",
486
- "references": {}
487
- },
488
- "required": false,
489
- "optional": true,
490
- "docs": {
491
- "tags": [],
492
- "text": "The initial value of the control."
493
- },
494
- "attribute": "value",
495
- "reflect": false
496
- }
497
- }; }
498
- static get states() { return {
499
- "inputValue": {}
500
- }; }
501
- static get events() { return [{
502
- "method": "catChange",
503
- "name": "catChange",
504
- "bubbles": true,
505
- "cancelable": true,
506
- "composed": true,
507
- "docs": {
508
- "tags": [],
509
- "text": "Emitted when the value is changed."
510
- },
511
- "complexType": {
512
- "original": "any",
513
- "resolved": "any",
514
- "references": {}
515
- }
516
- }, {
517
- "method": "catFocus",
518
- "name": "catFocus",
519
- "bubbles": true,
520
- "cancelable": true,
521
- "composed": true,
522
- "docs": {
523
- "tags": [],
524
- "text": "Emitted when the input received focus."
525
- },
526
- "complexType": {
527
- "original": "FocusEvent",
528
- "resolved": "FocusEvent",
529
- "references": {
530
- "FocusEvent": {
531
- "location": "global"
532
- }
533
- }
534
- }
535
- }, {
536
- "method": "catBlur",
537
- "name": "catBlur",
538
- "bubbles": true,
539
- "cancelable": true,
540
- "composed": true,
541
- "docs": {
542
- "tags": [],
543
- "text": "Emitted when the input loses focus."
544
- },
545
- "complexType": {
546
- "original": "FocusEvent",
547
- "resolved": "FocusEvent",
548
- "references": {
549
- "FocusEvent": {
550
- "location": "global"
551
- }
552
- }
553
- }
554
- }]; }
555
- static get methods() { return {
556
- "setFocus": {
557
- "complexType": {
558
- "signature": "(options?: FocusOptions | undefined) => Promise<void>",
559
- "parameters": [{
560
- "tags": [{
561
- "name": "param",
562
- "text": "options An optional object providing options to control aspects of\nthe focusing process."
563
- }],
564
- "text": "An optional object providing options to control aspects of\nthe focusing process."
565
- }],
566
- "references": {
567
- "Promise": {
568
- "location": "global"
569
- },
570
- "FocusOptions": {
571
- "location": "global"
572
- }
573
- },
574
- "return": "Promise<void>"
575
- },
576
- "docs": {
577
- "text": "Sets focus on the input. Use this method instead of `input.focus()`.",
578
- "tags": [{
579
- "name": "param",
580
- "text": "options An optional object providing options to control aspects of\nthe focusing process."
581
- }]
582
- }
583
- },
584
- "clear": {
585
- "complexType": {
586
- "signature": "() => Promise<void>",
587
- "parameters": [],
588
- "references": {
589
- "Promise": {
590
- "location": "global"
591
- }
592
- },
593
- "return": "Promise<void>"
594
- },
595
- "docs": {
596
- "text": "Clear the input.",
597
- "tags": []
598
- }
599
- }
600
- }; }
601
- static get watchers() { return [{
602
- "propName": "value",
603
- "methodName": "onValueChange"
604
- }]; }
605
- }
606
- //# sourceMappingURL=cat-input.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cat-input.js","sourceRoot":"","sources":["../../../src/components/cat-input/cat-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACpG,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AA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,CAAC,KAAY;IAC1B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;IACnC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;EAC7B,CAAC;EAEO,OAAO,CAAC,KAAiB;IAC/B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;EAC5B,CAAC;EAEO,MAAM,CAAC,KAAiB;IAC9B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;EAC3B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from '@stencil/core';\nimport log from 'loglevel';\nimport { CatI18nRegistry } from '../cat-i18n/cat-i18n-registry';\n\nlet nextUniqueId = 0;\n\n/**\n * Inputs are used to allow users to provide text input when the expected input\n * is short. As well as plain text, Input supports various types of text,\n * including passwords and numbers.\n *\n * @part label - The label content.\n * @part prefix - The text prefix.\n * @part suffix - The text suffix.\n */\n@Component({\n tag: 'cat-input',\n styleUrl: 'cat-input.scss',\n shadow: true\n})\nexport class CatInput {\n private readonly i18n = CatI18nRegistry.getInstance();\n private readonly id = `cat-input-${nextUniqueId++}`;\n private input!: HTMLInputElement;\n\n @State() private inputValue = '';\n\n /**\n * Hint for form autofill feature.\n */\n @Prop() autoComplete?: string;\n\n /**\n * Whether the input should show a clear button.\n */\n @Prop() clearable = false;\n\n /**\n * Whether the input is disabled.\n */\n @Prop() disabled = false;\n\n /**\n * Optional hint text to be displayed with the input.\n */\n @Prop() hint?: string;\n\n /**\n * The name of an icon to be displayed in the input.\n */\n @Prop() icon?: string;\n\n /**\n * Display the icon on the right.\n */\n @Prop() iconRight = false;\n\n /**\n * The label for the input.\n */\n @Prop() label = '';\n\n /**\n * Visually hide the label, but still show it to assistive technologies like screen readers.\n */\n @Prop() labelHidden = false;\n\n /**\n * A maximum value for numeric values.\n */\n @Prop() max?: number;\n\n /**\n * A maximum length (number of characters) for textual values.\n */\n @Prop() maxLength?: number;\n\n /**\n * A minimum value for numeric values.\n */\n @Prop() min?: number;\n\n /**\n * A minimum length (number of characters) for textual values.\n */\n @Prop() minLength?: number;\n\n /**\n * The name of the form control. Submitted with the form as part of a name/value pair.\n */\n @Prop() name = '';\n\n /**\n * The placeholder text to display within the input.\n */\n @Prop() placeholder?: string;\n\n /**\n * A textual prefix to be displayed in the input.\n */\n @Prop() textPrefix?: string;\n\n /**\n * A textual suffix to be displayed in the input.\n */\n @Prop() textSuffix?: string;\n\n /**\n * The value is not editable.\n */\n @Prop() readonly = false;\n\n /**\n * A value is required or must be check for the form to be submittable.\n */\n @Prop() required = false;\n\n /**\n * Use round input edges.\n */\n @Prop() round = false;\n\n /**\n * Type of form control.\n */\n @Prop() type: 'text' | 'email' | 'password' | 'tel' | 'url' | 'search' | 'number' = 'text';\n\n /**\n * The initial value of the control.\n */\n @Prop() value?: string | number;\n\n /**\n * Emitted when the value is changed.\n */\n @Event() catChange!: EventEmitter;\n\n /**\n * Emitted when the input received focus.\n */\n @Event() catFocus!: EventEmitter<FocusEvent>;\n\n /**\n * Emitted when the input loses focus.\n */\n @Event() catBlur!: EventEmitter<FocusEvent>;\n\n @Watch('value')\n onValueChange(value?: string | number) {\n this.inputValue = '' + (value ?? '');\n }\n\n componentWillLoad() {\n this.onValueChange(this.value);\n }\n\n componentWillRender(): void {\n if (!this.label) {\n log.error('[A11y] Missing ARIA label on input', this);\n }\n }\n\n /**\n * Sets focus on the input. Use this method instead of `input.focus()`.\n *\n * @param options An optional object providing options to control aspects of\n * the focusing process.\n */\n @Method()\n async setFocus(options?: FocusOptions): Promise<void> {\n this.input.focus(options);\n }\n\n /**\n * Clear the input.\n */\n @Method()\n async clear(): Promise<void> {\n this.inputValue = '';\n }\n\n render() {\n return (\n <Host>\n {this.label && (\n <label htmlFor={this.id} class={{ hidden: this.labelHidden }}>\n <span part=\"label\">\n {this.label}\n {!this.required && (\n <span class=\"input-optional\" aria-hidden=\"true\">\n ({this.i18n.getMessage('input.optional')})\n </span>\n )}\n </span>\n </label>\n )}\n <div\n class={{\n 'input-wrapper': true,\n 'input-round': this.round,\n 'input-disabled': this.disabled\n }}\n onClick={() => this.input.focus()}\n >\n {this.textPrefix && (\n <span class=\"text-prefix\" part=\"prefix\">\n {this.textPrefix}\n </span>\n )}\n {this.icon && !this.iconRight && <cat-icon icon={this.icon} class=\"icon-prefix\"></cat-icon>}\n <div class=\"input-inner-wrapper\">\n <input\n ref={el => (this.input = el as HTMLInputElement)}\n id={this.id}\n class={{\n 'has-clearable': this.clearable && !this.disabled\n }}\n autocomplete={this.autoComplete}\n disabled={this.disabled}\n max={this.max}\n maxlength={this.maxLength}\n min={this.max}\n minlength={this.minLength}\n name={this.name}\n placeholder={this.placeholder}\n readonly={this.readonly}\n required={this.required}\n type={this.type}\n value={this.inputValue}\n onInput={this.onInput.bind(this)}\n onFocus={this.onFocus.bind(this)}\n onBlur={this.onBlur.bind(this)}\n ></input>\n {this.clearable && !this.disabled && this.inputValue && (\n <cat-button\n class=\"clearable\"\n icon=\"cross-circle-outlined\"\n icon-only=\"true\"\n size=\"s\"\n variant=\"text\"\n round\n a11y-label=\"sdf\"\n onClick={this.clear.bind(this)}\n >\n {this.i18n.getMessage('input.clear')}\n </cat-button>\n )}\n </div>\n {this.icon && this.iconRight && <cat-icon icon={this.icon} class=\"icon-suffix\"></cat-icon>}\n {this.textSuffix && (\n <span class=\"text-suffix\" part=\"suffix\">\n {this.textSuffix}\n </span>\n )}\n </div>\n {this.hint && <p class=\"input-hint\">{this.hint}</p>}\n </Host>\n );\n }\n\n private onInput(event: Event) {\n this.inputValue = this.input.value;\n this.catChange.emit(event);\n }\n\n private onFocus(event: FocusEvent) {\n this.catFocus.emit(event);\n }\n\n private onBlur(event: FocusEvent) {\n this.catBlur.emit(event);\n }\n}\n"]}
@@ -1,34 +0,0 @@
1
- /**
2
- * Auto-generated file. Do not edit directly.
3
- */
4
- /* stylelint-disable value-keyword-case */
5
- /* stylelint-enable value-keyword-case */
6
- /**
7
- * Auto-generated file. Do not edit directly.
8
- */
9
- /* stylelint-disable value-keyword-case */
10
- /* stylelint-enable value-keyword-case */
11
- :host {
12
- display: contents;
13
- }
14
-
15
- :host([hidden]) {
16
- display: none;
17
- }
18
-
19
- .content {
20
- padding-top: 0.5rem;
21
- padding-bottom: 0.5rem;
22
- position: absolute;
23
- background: white;
24
- display: none;
25
- overflow: auto;
26
- -webkit-overflow-scrolling: touch;
27
- min-width: 8rem;
28
- max-width: 16rem;
29
- min-height: 2rem;
30
- max-height: calc(100vh - 48px);
31
- box-shadow: 0 1px 4px 0 rgba(16, 29, 48, 0.2);
32
- border-radius: 0.25rem;
33
- z-index: 100;
34
- }