@haiilo/catalyst 11.0.0 → 12.0.0

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 (350) hide show
  1. package/dist/catalyst/catalyst.esm.js +1 -1
  2. package/dist/catalyst/catalyst.esm.js.map +1 -1
  3. package/dist/catalyst/index.esm.js +2 -2
  4. package/dist/catalyst/index.esm.js.map +1 -1
  5. package/dist/catalyst/loader.esm.js.map +1 -0
  6. package/dist/catalyst/p-6a54965a.entry.js +10 -0
  7. package/dist/catalyst/p-6a54965a.entry.js.map +1 -0
  8. package/dist/catalyst/p-B-m4GNf1.js +3 -0
  9. package/dist/catalyst/p-B-m4GNf1.js.map +1 -0
  10. package/dist/catalyst/p-DQuL1Twl.js +2 -0
  11. package/dist/catalyst/p-DQuL1Twl.js.map +1 -0
  12. package/dist/catalyst/p-LJZzaWFR.js +2 -0
  13. package/dist/catalyst/p-LJZzaWFR.js.map +1 -0
  14. package/dist/cjs/app-globals-V2Kpy_OQ.js +8 -0
  15. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -0
  16. package/dist/cjs/cat-alert_30.cjs.entry.js +1467 -1833
  17. package/dist/cjs/cat-alert_30.cjs.entry.js.map +1 -1
  18. package/dist/cjs/catalyst.cjs.js +8 -7
  19. package/dist/cjs/catalyst.cjs.js.map +1 -1
  20. package/dist/cjs/index-DNLT6JC9.js +10178 -0
  21. package/dist/cjs/index-DNLT6JC9.js.map +1 -0
  22. package/dist/cjs/{index-1094f0fc.js → index-jGQAsDy6.js} +528 -358
  23. package/dist/cjs/index-jGQAsDy6.js.map +1 -0
  24. package/dist/cjs/index.cjs.js +461 -453
  25. package/dist/cjs/index.cjs.js.map +1 -1
  26. package/dist/cjs/loader.cjs.js +4 -5
  27. package/dist/cjs/loader.cjs.js.map +1 -1
  28. package/dist/collection/collection-manifest.json +2 -2
  29. package/dist/collection/components/cat-alert/cat-alert.js +15 -4
  30. package/dist/collection/components/cat-alert/cat-alert.js.map +1 -1
  31. package/dist/collection/components/cat-avatar/cat-avatar.js +33 -14
  32. package/dist/collection/components/cat-avatar/cat-avatar.js.map +1 -1
  33. package/dist/collection/components/cat-badge/cat-badge.js +45 -9
  34. package/dist/collection/components/cat-badge/cat-badge.js.map +1 -1
  35. package/dist/collection/components/cat-button/cat-button.css +4 -2
  36. package/dist/collection/components/cat-button/cat-button.js +107 -35
  37. package/dist/collection/components/cat-button/cat-button.js.map +1 -1
  38. package/dist/collection/components/cat-button-group/cat-button-group.js +3 -2
  39. package/dist/collection/components/cat-button-group/cat-button-group.js.map +1 -1
  40. package/dist/collection/components/cat-checkbox/cat-checkbox.js +83 -24
  41. package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
  42. package/dist/collection/components/cat-date/cat-date.js +114 -39
  43. package/dist/collection/components/cat-date/cat-date.js.map +1 -1
  44. package/dist/collection/components/cat-date-inline/cat-date-inline.js +69 -19
  45. package/dist/collection/components/cat-date-inline/cat-date-inline.js.map +1 -1
  46. package/dist/collection/components/cat-datepicker/cat-datepicker.js +130 -42
  47. package/dist/collection/components/cat-datepicker/cat-datepicker.js.map +1 -1
  48. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.js +37 -12
  49. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.js.map +1 -1
  50. package/dist/collection/components/cat-dropdown/cat-dropdown.js +129 -17
  51. package/dist/collection/components/cat-dropdown/cat-dropdown.js.map +1 -1
  52. package/dist/collection/components/cat-form-group/cat-form-group.js +19 -4
  53. package/dist/collection/components/cat-form-group/cat-form-group.js.map +1 -1
  54. package/dist/collection/components/cat-icon/cat-icon.js +15 -7
  55. package/dist/collection/components/cat-icon/cat-icon.js.map +1 -1
  56. package/dist/collection/components/cat-input/cat-input.js +143 -51
  57. package/dist/collection/components/cat-input/cat-input.js.map +1 -1
  58. package/dist/collection/components/cat-pagination/cat-pagination.js +60 -10
  59. package/dist/collection/components/cat-pagination/cat-pagination.js.map +1 -1
  60. package/dist/collection/components/cat-radio/cat-radio.js +65 -18
  61. package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
  62. package/dist/collection/components/cat-radio-group/cat-radio-group.js +21 -8
  63. package/dist/collection/components/cat-radio-group/cat-radio-group.js.map +1 -1
  64. package/dist/collection/components/cat-scrollable/cat-scrollable.js +32 -7
  65. package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +1 -1
  66. package/dist/collection/components/cat-select/cat-select.js +105 -34
  67. package/dist/collection/components/cat-select/cat-select.js.map +1 -1
  68. package/dist/collection/components/cat-skeleton/cat-skeleton.js +22 -5
  69. package/dist/collection/components/cat-skeleton/cat-skeleton.js.map +1 -1
  70. package/dist/collection/components/cat-spinner/cat-spinner.js +15 -4
  71. package/dist/collection/components/cat-spinner/cat-spinner.js.map +1 -1
  72. package/dist/collection/components/cat-tab/cat-tab.js +84 -17
  73. package/dist/collection/components/cat-tab/cat-tab.js.map +1 -1
  74. package/dist/collection/components/cat-tabs/cat-tabs.css +29 -12
  75. package/dist/collection/components/cat-tabs/cat-tabs.js +189 -8
  76. package/dist/collection/components/cat-tabs/cat-tabs.js.map +1 -1
  77. package/dist/collection/components/cat-tag/cat-tag.js +84 -25
  78. package/dist/collection/components/cat-tag/cat-tag.js.map +1 -1
  79. package/dist/collection/components/cat-textarea/cat-textarea.js +90 -32
  80. package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
  81. package/dist/collection/components/cat-time/cat-time.js +120 -39
  82. package/dist/collection/components/cat-time/cat-time.js.map +1 -1
  83. package/dist/collection/components/cat-toggle/cat-toggle.js +71 -22
  84. package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
  85. package/dist/collection/components/cat-tooltip/cat-tooltip.js +49 -8
  86. package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +1 -1
  87. package/dist/components/cat-alert.js +8 -3
  88. package/dist/components/cat-alert.js.map +1 -1
  89. package/dist/components/cat-avatar.js +1 -0
  90. package/dist/components/cat-avatar2.js +11 -8
  91. package/dist/components/cat-avatar2.js.map +1 -1
  92. package/dist/components/cat-badge.js +23 -3
  93. package/dist/components/cat-badge.js.map +1 -1
  94. package/dist/components/cat-button-group.js +2 -3
  95. package/dist/components/cat-button-group.js.map +1 -1
  96. package/dist/components/cat-button.js +1 -0
  97. package/dist/components/cat-button2.js +41 -17
  98. package/dist/components/cat-button2.js.map +1 -1
  99. package/dist/components/cat-card.js +2 -2
  100. package/dist/components/cat-card.js.map +1 -1
  101. package/dist/components/cat-checkbox.js +1 -0
  102. package/dist/components/cat-checkbox2.js +34 -10
  103. package/dist/components/cat-checkbox2.js.map +1 -1
  104. package/dist/components/cat-date-inline.js +1 -0
  105. package/dist/components/cat-date-inline2.js +29 -7
  106. package/dist/components/cat-date-inline2.js.map +1 -1
  107. package/dist/components/cat-date.js +41 -17
  108. package/dist/components/cat-date.js.map +1 -1
  109. package/dist/components/cat-datepicker-inline.js +16 -8
  110. package/dist/components/cat-datepicker-inline.js.map +1 -1
  111. package/dist/components/cat-datepicker.js +50 -20
  112. package/dist/components/cat-datepicker.js.map +1 -1
  113. package/dist/components/cat-datepicker.locale.js +110 -99
  114. package/dist/components/cat-datepicker.locale.js.map +1 -1
  115. package/dist/components/cat-dropdown.js +1 -0
  116. package/dist/components/cat-dropdown2.js +70 -13
  117. package/dist/components/cat-dropdown2.js.map +1 -1
  118. package/dist/components/cat-form-group.js +12 -3
  119. package/dist/components/cat-form-group.js.map +1 -1
  120. package/dist/components/cat-form-hint.js +1 -0
  121. package/dist/components/cat-form-hint.js.map +1 -1
  122. package/dist/components/cat-i18n-registry.js +1 -0
  123. package/dist/components/cat-i18n-registry.js.map +1 -1
  124. package/dist/components/cat-icon-registry.js +22 -21
  125. package/dist/components/cat-icon-registry.js.map +1 -1
  126. package/dist/components/cat-icon.js +1 -0
  127. package/dist/components/cat-icon2.js +5 -5
  128. package/dist/components/cat-icon2.js.map +1 -1
  129. package/dist/components/cat-input.js +1 -0
  130. package/dist/components/cat-input2.js +50 -25
  131. package/dist/components/cat-input2.js.map +1 -1
  132. package/dist/components/cat-pagination.js +32 -2
  133. package/dist/components/cat-pagination.js.map +1 -1
  134. package/dist/components/cat-radio-group.js +8 -5
  135. package/dist/components/cat-radio-group.js.map +1 -1
  136. package/dist/components/cat-radio.js +28 -8
  137. package/dist/components/cat-radio.js.map +1 -1
  138. package/dist/components/cat-scrollable.js +1 -0
  139. package/dist/components/cat-scrollable2.js +322 -542
  140. package/dist/components/cat-scrollable2.js.map +1 -1
  141. package/dist/components/cat-select-demo.js +27 -49
  142. package/dist/components/cat-select-demo.js.map +1 -1
  143. package/dist/components/cat-select.js +1 -0
  144. package/dist/components/cat-select2.js +135 -316
  145. package/dist/components/cat-select2.js.map +1 -1
  146. package/dist/components/cat-skeleton.js +1 -0
  147. package/dist/components/cat-skeleton2.js +12 -3
  148. package/dist/components/cat-skeleton2.js.map +1 -1
  149. package/dist/components/cat-spinner.js +1 -0
  150. package/dist/components/cat-spinner2.js +8 -3
  151. package/dist/components/cat-spinner2.js.map +1 -1
  152. package/dist/components/cat-tab.js +34 -9
  153. package/dist/components/cat-tab.js.map +1 -1
  154. package/dist/components/cat-tabs.js +140 -11
  155. package/dist/components/cat-tabs.js.map +1 -1
  156. package/dist/components/cat-tag.js +35 -13
  157. package/dist/components/cat-tag.js.map +1 -1
  158. package/dist/components/cat-textarea.js +33 -16
  159. package/dist/components/cat-textarea.js.map +1 -1
  160. package/dist/components/cat-time.js +44 -16
  161. package/dist/components/cat-time.js.map +1 -1
  162. package/dist/components/cat-toggle.js +28 -10
  163. package/dist/components/cat-toggle.js.map +1 -1
  164. package/dist/components/cat-tooltip.js +28 -3
  165. package/dist/components/cat-tooltip.js.map +1 -1
  166. package/dist/components/coerce.js +1 -0
  167. package/dist/components/coerce.js.map +1 -1
  168. package/dist/components/first-tabbable.js +1 -0
  169. package/dist/components/first-tabbable.js.map +1 -1
  170. package/dist/components/{floating-ui.dom.esm.js → floating-ui.dom.js} +3 -492
  171. package/dist/components/floating-ui.dom.js.map +1 -0
  172. package/dist/components/index.js +460 -450
  173. package/dist/components/index.js.map +1 -1
  174. package/dist/components/index2.js +9456 -0
  175. package/dist/components/index2.js.map +1 -0
  176. package/dist/components/loglevel.js +368 -356
  177. package/dist/components/loglevel.js.map +1 -1
  178. package/dist/components/media-matcher.js +1 -0
  179. package/dist/components/media-matcher.js.map +1 -1
  180. package/dist/esm/app-globals-DQuL1Twl.js +6 -0
  181. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -0
  182. package/dist/esm/cat-alert_30.entry.js +1428 -1792
  183. package/dist/esm/cat-alert_30.entry.js.map +1 -1
  184. package/dist/esm/catalyst.js +7 -5
  185. package/dist/esm/catalyst.js.map +1 -1
  186. package/dist/esm/{index-e8c0ddf2.js → index-B-m4GNf1.js} +528 -338
  187. package/dist/esm/index-B-m4GNf1.js.map +1 -0
  188. package/dist/esm/index-LJZzaWFR.js +10057 -0
  189. package/dist/esm/index-LJZzaWFR.js.map +1 -0
  190. package/dist/esm/index.js +458 -448
  191. package/dist/esm/index.js.map +1 -1
  192. package/dist/esm/loader.js +5 -4
  193. package/dist/esm/loader.js.map +1 -1
  194. package/dist/types/components/cat-dropdown/cat-dropdown.d.ts +11 -1
  195. package/dist/types/components/cat-tab/cat-tab.d.ts +6 -0
  196. package/dist/types/components/cat-tabs/cat-tabs.d.ts +18 -0
  197. package/dist/types/components.d.ts +46 -0
  198. package/dist/types/stencil-public-runtime.d.ts +28 -2
  199. package/loader/index.d.ts +3 -0
  200. package/package.json +3 -3
  201. package/dist/catalyst/p-59e2ada2.entry.js +0 -10
  202. package/dist/catalyst/p-59e2ada2.entry.js.map +0 -1
  203. package/dist/catalyst/p-7f3bcfb9.js +0 -3
  204. package/dist/catalyst/p-7f3bcfb9.js.map +0 -1
  205. package/dist/catalyst/p-9500d6fb.js +0 -2
  206. package/dist/catalyst/p-9500d6fb.js.map +0 -1
  207. package/dist/catalyst/p-e1255160.js +0 -2
  208. package/dist/catalyst/p-e1255160.js.map +0 -1
  209. package/dist/cjs/app-globals-3a1e7e63.js +0 -7
  210. package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
  211. package/dist/cjs/index-1094f0fc.js.map +0 -1
  212. package/dist/cjs/of-958251e4.js +0 -1549
  213. package/dist/cjs/of-958251e4.js.map +0 -1
  214. package/dist/collection/components/cat-alert/cat-alert.e2e.js +0 -11
  215. package/dist/collection/components/cat-alert/cat-alert.e2e.js.map +0 -1
  216. package/dist/collection/components/cat-alert/cat-alert.spec.js +0 -14
  217. package/dist/collection/components/cat-alert/cat-alert.spec.js.map +0 -1
  218. package/dist/collection/components/cat-avatar/cat-avatar.e2e.js +0 -10
  219. package/dist/collection/components/cat-avatar/cat-avatar.e2e.js.map +0 -1
  220. package/dist/collection/components/cat-avatar/cat-avatar.spec.js +0 -14
  221. package/dist/collection/components/cat-avatar/cat-avatar.spec.js.map +0 -1
  222. package/dist/collection/components/cat-badge/cat-badge.e2e.js +0 -10
  223. package/dist/collection/components/cat-badge/cat-badge.e2e.js.map +0 -1
  224. package/dist/collection/components/cat-badge/cat-badge.spec.js +0 -14
  225. package/dist/collection/components/cat-badge/cat-badge.spec.js.map +0 -1
  226. package/dist/collection/components/cat-button/cat-button.e2e.js +0 -10
  227. package/dist/collection/components/cat-button/cat-button.e2e.js.map +0 -1
  228. package/dist/collection/components/cat-button/cat-button.spec.js +0 -20
  229. package/dist/collection/components/cat-button/cat-button.spec.js.map +0 -1
  230. package/dist/collection/components/cat-button-group/cat-button-group.e2e.js +0 -10
  231. package/dist/collection/components/cat-button-group/cat-button-group.e2e.js.map +0 -1
  232. package/dist/collection/components/cat-button-group/cat-button-group.spec.js +0 -14
  233. package/dist/collection/components/cat-button-group/cat-button-group.spec.js.map +0 -1
  234. package/dist/collection/components/cat-card/cat-card.e2e.js +0 -10
  235. package/dist/collection/components/cat-card/cat-card.e2e.js.map +0 -1
  236. package/dist/collection/components/cat-card/cat-card.spec.js +0 -14
  237. package/dist/collection/components/cat-card/cat-card.spec.js.map +0 -1
  238. package/dist/collection/components/cat-checkbox/cat-checkbox.e2e.js +0 -10
  239. package/dist/collection/components/cat-checkbox/cat-checkbox.e2e.js.map +0 -1
  240. package/dist/collection/components/cat-checkbox/cat-checkbox.spec.js +0 -14
  241. package/dist/collection/components/cat-checkbox/cat-checkbox.spec.js.map +0 -1
  242. package/dist/collection/components/cat-date/cat-date.e2e.js +0 -11
  243. package/dist/collection/components/cat-date/cat-date.e2e.js.map +0 -1
  244. package/dist/collection/components/cat-date/cat-date.spec.js +0 -17
  245. package/dist/collection/components/cat-date/cat-date.spec.js.map +0 -1
  246. package/dist/collection/components/cat-date-inline/cat-date-inline.e2e.js +0 -11
  247. package/dist/collection/components/cat-date-inline/cat-date-inline.e2e.js.map +0 -1
  248. package/dist/collection/components/cat-date-inline/cat-date-inline.spec.js +0 -16
  249. package/dist/collection/components/cat-date-inline/cat-date-inline.spec.js.map +0 -1
  250. package/dist/collection/components/cat-datepicker/cat-datepicker.e2e.js +0 -11
  251. package/dist/collection/components/cat-datepicker/cat-datepicker.e2e.js.map +0 -1
  252. package/dist/collection/components/cat-datepicker/cat-datepicker.spec.js +0 -15
  253. package/dist/collection/components/cat-datepicker/cat-datepicker.spec.js.map +0 -1
  254. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.e2e.js +0 -11
  255. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.e2e.js.map +0 -1
  256. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.spec.js +0 -15
  257. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.spec.js.map +0 -1
  258. package/dist/collection/components/cat-dropdown/cat-dropdown.e2e.js +0 -10
  259. package/dist/collection/components/cat-dropdown/cat-dropdown.e2e.js.map +0 -1
  260. package/dist/collection/components/cat-dropdown/cat-dropdown.spec.js +0 -21
  261. package/dist/collection/components/cat-dropdown/cat-dropdown.spec.js.map +0 -1
  262. package/dist/collection/components/cat-form-group/cat-form-group.e2e.js +0 -10
  263. package/dist/collection/components/cat-form-group/cat-form-group.e2e.js.map +0 -1
  264. package/dist/collection/components/cat-form-group/cat-form-group.spec.js +0 -14
  265. package/dist/collection/components/cat-form-group/cat-form-group.spec.js.map +0 -1
  266. package/dist/collection/components/cat-form-hint/cat-form-hint.spec.js +0 -15
  267. package/dist/collection/components/cat-form-hint/cat-form-hint.spec.js.map +0 -1
  268. package/dist/collection/components/cat-i18n/cat-i18n-registry.spec.js +0 -7
  269. package/dist/collection/components/cat-i18n/cat-i18n-registry.spec.js.map +0 -1
  270. package/dist/collection/components/cat-icon/cat-icon-registry.spec.js +0 -7
  271. package/dist/collection/components/cat-icon/cat-icon-registry.spec.js.map +0 -1
  272. package/dist/collection/components/cat-icon/cat-icon.e2e.js +0 -11
  273. package/dist/collection/components/cat-icon/cat-icon.e2e.js.map +0 -1
  274. package/dist/collection/components/cat-icon/cat-icon.spec.js +0 -15
  275. package/dist/collection/components/cat-icon/cat-icon.spec.js.map +0 -1
  276. package/dist/collection/components/cat-input/cat-input.e2e.js +0 -11
  277. package/dist/collection/components/cat-input/cat-input.e2e.js.map +0 -1
  278. package/dist/collection/components/cat-input/cat-input.spec.js +0 -15
  279. package/dist/collection/components/cat-input/cat-input.spec.js.map +0 -1
  280. package/dist/collection/components/cat-notification/cat-notification.spec.js +0 -7
  281. package/dist/collection/components/cat-notification/cat-notification.spec.js.map +0 -1
  282. package/dist/collection/components/cat-pagination/cat-pagination.e2e.js +0 -14
  283. package/dist/collection/components/cat-pagination/cat-pagination.e2e.js.map +0 -1
  284. package/dist/collection/components/cat-pagination/cat-pagination.spec.js +0 -15
  285. package/dist/collection/components/cat-pagination/cat-pagination.spec.js.map +0 -1
  286. package/dist/collection/components/cat-radio/cat-radio.e2e.js +0 -10
  287. package/dist/collection/components/cat-radio/cat-radio.e2e.js.map +0 -1
  288. package/dist/collection/components/cat-radio/cat-radio.spec.js +0 -14
  289. package/dist/collection/components/cat-radio/cat-radio.spec.js.map +0 -1
  290. package/dist/collection/components/cat-radio-group/cat-radio-group.e2e.js +0 -10
  291. package/dist/collection/components/cat-radio-group/cat-radio-group.e2e.js.map +0 -1
  292. package/dist/collection/components/cat-radio-group/cat-radio-group.spec.js +0 -14
  293. package/dist/collection/components/cat-radio-group/cat-radio-group.spec.js.map +0 -1
  294. package/dist/collection/components/cat-scrollable/cat-scrollable.e2e.js +0 -10
  295. package/dist/collection/components/cat-scrollable/cat-scrollable.e2e.js.map +0 -1
  296. package/dist/collection/components/cat-scrollable/cat-scrollable.spec.js +0 -14
  297. package/dist/collection/components/cat-scrollable/cat-scrollable.spec.js.map +0 -1
  298. package/dist/collection/components/cat-select/cat-select.e2e.js +0 -14
  299. package/dist/collection/components/cat-select/cat-select.e2e.js.map +0 -1
  300. package/dist/collection/components/cat-select/cat-select.spec.js +0 -15
  301. package/dist/collection/components/cat-select/cat-select.spec.js.map +0 -1
  302. package/dist/collection/components/cat-skeleton/cat-skeleton.e2e.js +0 -10
  303. package/dist/collection/components/cat-skeleton/cat-skeleton.e2e.js.map +0 -1
  304. package/dist/collection/components/cat-skeleton/cat-skeleton.spec.js +0 -14
  305. package/dist/collection/components/cat-skeleton/cat-skeleton.spec.js.map +0 -1
  306. package/dist/collection/components/cat-spinner/cat-spinner.e2e.js +0 -10
  307. package/dist/collection/components/cat-spinner/cat-spinner.e2e.js.map +0 -1
  308. package/dist/collection/components/cat-spinner/cat-spinner.spec.js +0 -18
  309. package/dist/collection/components/cat-spinner/cat-spinner.spec.js.map +0 -1
  310. package/dist/collection/components/cat-tab/cat-tab.e2e.js +0 -10
  311. package/dist/collection/components/cat-tab/cat-tab.e2e.js.map +0 -1
  312. package/dist/collection/components/cat-tab/cat-tab.spec.js +0 -14
  313. package/dist/collection/components/cat-tab/cat-tab.spec.js.map +0 -1
  314. package/dist/collection/components/cat-tabs/cat-tabs.e2e.js +0 -10
  315. package/dist/collection/components/cat-tabs/cat-tabs.e2e.js.map +0 -1
  316. package/dist/collection/components/cat-tabs/cat-tabs.spec.js +0 -14
  317. package/dist/collection/components/cat-tabs/cat-tabs.spec.js.map +0 -1
  318. package/dist/collection/components/cat-tag/cat-tag.e2e.js +0 -14
  319. package/dist/collection/components/cat-tag/cat-tag.e2e.js.map +0 -1
  320. package/dist/collection/components/cat-tag/cat-tag.spec.js +0 -23
  321. package/dist/collection/components/cat-tag/cat-tag.spec.js.map +0 -1
  322. package/dist/collection/components/cat-textarea/cat-textarea.e2e.js +0 -11
  323. package/dist/collection/components/cat-textarea/cat-textarea.e2e.js.map +0 -1
  324. package/dist/collection/components/cat-textarea/cat-textarea.spec.js +0 -15
  325. package/dist/collection/components/cat-textarea/cat-textarea.spec.js.map +0 -1
  326. package/dist/collection/components/cat-time/cat-time.e2e.js +0 -11
  327. package/dist/collection/components/cat-time/cat-time.e2e.js.map +0 -1
  328. package/dist/collection/components/cat-time/cat-time.spec.js +0 -16
  329. package/dist/collection/components/cat-time/cat-time.spec.js.map +0 -1
  330. package/dist/collection/components/cat-toggle/cat-toggle.e2e.js +0 -10
  331. package/dist/collection/components/cat-toggle/cat-toggle.e2e.js.map +0 -1
  332. package/dist/collection/components/cat-toggle/cat-toggle.spec.js +0 -14
  333. package/dist/collection/components/cat-toggle/cat-toggle.spec.js.map +0 -1
  334. package/dist/collection/components/cat-tooltip/cat-tooltip.e2e.js +0 -10
  335. package/dist/collection/components/cat-tooltip/cat-tooltip.e2e.js.map +0 -1
  336. package/dist/collection/components/cat-tooltip/cat-tooltip.spec.js +0 -20
  337. package/dist/collection/components/cat-tooltip/cat-tooltip.spec.js.map +0 -1
  338. package/dist/collection/utils/media-matcher.spec.js +0 -39
  339. package/dist/collection/utils/media-matcher.spec.js.map +0 -1
  340. package/dist/components/floating-ui.dom.esm.js.map +0 -1
  341. package/dist/components/from.js +0 -928
  342. package/dist/components/from.js.map +0 -1
  343. package/dist/components/of.js +0 -10
  344. package/dist/components/of.js.map +0 -1
  345. package/dist/esm/app-globals-0f993ce5.js +0 -5
  346. package/dist/esm/app-globals-0f993ce5.js.map +0 -1
  347. package/dist/esm/index-e8c0ddf2.js.map +0 -1
  348. package/dist/esm/of-e4ec2eb4.js +0 -1523
  349. package/dist/esm/of-e4ec2eb4.js.map +0 -1
  350. package/loader/package.json +0 -11
@@ -8,13 +8,33 @@ import { MediaMatcher } from "../../utils/media-matcher";
8
8
  export class CatBadge {
9
9
  constructor() {
10
10
  this._iconOnly = true;
11
+ /**
12
+ * The rendering style of the badge.
13
+ */
11
14
  this.variant = 'filled';
15
+ /**
16
+ * The color palette of the badge.
17
+ */
12
18
  this.color = 'primary';
19
+ /**
20
+ * The size of the badge.
21
+ */
13
22
  this.size = 'm';
23
+ /**
24
+ * Use round badge edges.
25
+ */
14
26
  this.round = false;
27
+ /**
28
+ * Draw attention to the badge with a subtle animation.
29
+ */
15
30
  this.pulse = false;
16
- this.icon = undefined;
31
+ /**
32
+ * Hide the actual button content and only display the icon.
33
+ */
17
34
  this.iconOnly = false;
35
+ /**
36
+ * Display the icon on the right.
37
+ */
18
38
  this.iconRight = false;
19
39
  }
20
40
  onIconOnlyChanged(value) {
@@ -78,6 +98,7 @@ export class CatBadge {
78
98
  return {
79
99
  "variant": {
80
100
  "type": "string",
101
+ "attribute": "variant",
81
102
  "mutable": false,
82
103
  "complexType": {
83
104
  "original": "'filled' | 'outlined'",
@@ -90,12 +111,14 @@ export class CatBadge {
90
111
  "tags": [],
91
112
  "text": "The rendering style of the badge."
92
113
  },
93
- "attribute": "variant",
114
+ "getter": false,
115
+ "setter": false,
94
116
  "reflect": true,
95
117
  "defaultValue": "'filled'"
96
118
  },
97
119
  "color": {
98
120
  "type": "string",
121
+ "attribute": "color",
99
122
  "mutable": false,
100
123
  "complexType": {
101
124
  "original": "'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'danger'",
@@ -108,12 +131,14 @@ export class CatBadge {
108
131
  "tags": [],
109
132
  "text": "The color palette of the badge."
110
133
  },
111
- "attribute": "color",
134
+ "getter": false,
135
+ "setter": false,
112
136
  "reflect": true,
113
137
  "defaultValue": "'primary'"
114
138
  },
115
139
  "size": {
116
140
  "type": "string",
141
+ "attribute": "size",
117
142
  "mutable": false,
118
143
  "complexType": {
119
144
  "original": "'xs' | 's' | 'm' | 'l' | 'xl'",
@@ -126,12 +151,14 @@ export class CatBadge {
126
151
  "tags": [],
127
152
  "text": "The size of the badge."
128
153
  },
129
- "attribute": "size",
154
+ "getter": false,
155
+ "setter": false,
130
156
  "reflect": true,
131
157
  "defaultValue": "'m'"
132
158
  },
133
159
  "round": {
134
160
  "type": "boolean",
161
+ "attribute": "round",
135
162
  "mutable": false,
136
163
  "complexType": {
137
164
  "original": "boolean",
@@ -144,12 +171,14 @@ export class CatBadge {
144
171
  "tags": [],
145
172
  "text": "Use round badge edges."
146
173
  },
147
- "attribute": "round",
174
+ "getter": false,
175
+ "setter": false,
148
176
  "reflect": true,
149
177
  "defaultValue": "false"
150
178
  },
151
179
  "pulse": {
152
180
  "type": "boolean",
181
+ "attribute": "pulse",
153
182
  "mutable": false,
154
183
  "complexType": {
155
184
  "original": "boolean",
@@ -162,12 +191,14 @@ export class CatBadge {
162
191
  "tags": [],
163
192
  "text": "Draw attention to the badge with a subtle animation."
164
193
  },
165
- "attribute": "pulse",
194
+ "getter": false,
195
+ "setter": false,
166
196
  "reflect": true,
167
197
  "defaultValue": "false"
168
198
  },
169
199
  "icon": {
170
200
  "type": "string",
201
+ "attribute": "icon",
171
202
  "mutable": false,
172
203
  "complexType": {
173
204
  "original": "string",
@@ -180,11 +211,13 @@ export class CatBadge {
180
211
  "tags": [],
181
212
  "text": "The name of an icon to be displayed in the button."
182
213
  },
183
- "attribute": "icon",
214
+ "getter": false,
215
+ "setter": false,
184
216
  "reflect": false
185
217
  },
186
218
  "iconOnly": {
187
219
  "type": "any",
220
+ "attribute": "icon-only",
188
221
  "mutable": false,
189
222
  "complexType": {
190
223
  "original": "boolean | Breakpoint",
@@ -203,12 +236,14 @@ export class CatBadge {
203
236
  "tags": [],
204
237
  "text": "Hide the actual button content and only display the icon."
205
238
  },
206
- "attribute": "icon-only",
239
+ "getter": false,
240
+ "setter": false,
207
241
  "reflect": false,
208
242
  "defaultValue": "false"
209
243
  },
210
244
  "iconRight": {
211
245
  "type": "boolean",
246
+ "attribute": "icon-right",
212
247
  "mutable": false,
213
248
  "complexType": {
214
249
  "original": "boolean",
@@ -221,7 +256,8 @@ export class CatBadge {
221
256
  "tags": [],
222
257
  "text": "Display the icon on the right."
223
258
  },
224
- "attribute": "icon-right",
259
+ "getter": false,
260
+ "setter": false,
225
261
  "reflect": false,
226
262
  "defaultValue": "false"
227
263
  }
@@ -1 +1 @@
1
- {"version":3,"file":"cat-badge.js","sourceRoot":"","sources":["../../../src/components/cat-badge/cat-badge.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Element, h, Host, Prop, State, Watch } from '@stencil/core';\nimport { Breakpoint, Breakpoints, isBreakpoint } from '../../utils/breakpoints';\nimport { MediaMatcher } from '../../utils/media-matcher';\n\n/**\n * Badges are used to inform users of the status of an object or of an action\n * that’s been taken.\n */\n@Component({\n tag: 'cat-badge',\n styleUrl: 'cat-badge.scss',\n shadow: true\n})\nexport class CatBadge {\n private mediaMatcher?: MediaMatcher;\n private mediaQueryList?: MediaQueryList;\n private mediaQueryListener?: (event: MediaQueryListEvent) => void;\n\n @Element() hostElement!: HTMLElement;\n\n @State() _iconOnly = true;\n\n /**\n * The rendering style of the badge.\n */\n @Prop({ reflect: true }) variant: 'filled' | 'outlined' = 'filled';\n\n /**\n * The color palette of the badge.\n */\n @Prop({ reflect: true }) color: 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'danger' = 'primary';\n\n /**\n * The size of the badge.\n */\n @Prop({ reflect: true }) size: 'xs' | 's' | 'm' | 'l' | 'xl' = 'm';\n\n /**\n * Use round badge edges.\n */\n @Prop({ reflect: true }) round = false;\n\n /**\n * Draw attention to the badge with a subtle animation.\n */\n @Prop({ reflect: true }) pulse = false;\n\n /**\n * The name of an icon to be displayed in the button.\n */\n @Prop() icon?: string;\n\n /**\n * Hide the actual button content and only display the icon.\n */\n @Prop() iconOnly: boolean | Breakpoint = false;\n\n /**\n * Display the icon on the right.\n */\n @Prop() iconRight = false;\n\n @Watch('iconOnly')\n onIconOnlyChanged(value: boolean | Breakpoint): void {\n // teardown\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n this.mediaQueryList?.removeEventListener('change', this.mediaQueryListener!);\n this.mediaQueryList = undefined;\n this.mediaQueryListener = undefined;\n // setup\n if (isBreakpoint(value)) {\n this.mediaMatcher ??= new MediaMatcher();\n this.mediaQueryList = this.mediaMatcher.matchMedia(Breakpoints[value]);\n this.mediaQueryListener = (event: MediaQueryListEvent) => (this._iconOnly = event.matches);\n this.mediaQueryList.addEventListener('change', this.mediaQueryListener);\n this._iconOnly = this.mediaQueryList.matches;\n } else {\n this._iconOnly = value;\n }\n }\n\n componentWillLoad(): void {\n this.onIconOnlyChanged(this.iconOnly);\n }\n\n private get isIconBadge() {\n return Boolean(this.icon) && this._iconOnly;\n }\n\n private get hasPrefixIcon() {\n return Boolean(this.icon) && !this._iconOnly && !this.iconRight;\n }\n\n private get hasSuffixIcon() {\n return Boolean(this.icon) && !this._iconOnly && this.iconRight;\n }\n\n private get iconSize(): 'xs' | 's' | 'm' | 'l' | 'xl' {\n switch (this.size) {\n case 'xs':\n case 's':\n return 'xs';\n case 'l':\n case 'xl':\n return 'l';\n default:\n return 'm';\n }\n }\n\n render() {\n return (\n <Host data-icon-badge={this.isIconBadge ? this.size : null}>\n {this.hasPrefixIcon ? <cat-icon icon={this.icon} size={this.iconSize} part=\"prefix\"></cat-icon> : null}\n {this.isIconBadge ? (\n <cat-icon icon={this.icon} size={this.iconSize} class=\"icon-only\"></cat-icon>\n ) : (\n <slot></slot>\n )}\n {this.hasSuffixIcon ? <cat-icon icon={this.icon} size={this.iconSize} part=\"prefix\"></cat-icon> : null}\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"cat-badge.js","sourceRoot":"","sources":["../../../src/components/cat-badge/cat-badge.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Element, h, Host, Prop, State, Watch } from '@stencil/core';\nimport { Breakpoint, Breakpoints, isBreakpoint } from '../../utils/breakpoints';\nimport { MediaMatcher } from '../../utils/media-matcher';\n\n/**\n * Badges are used to inform users of the status of an object or of an action\n * that’s been taken.\n */\n@Component({\n tag: 'cat-badge',\n styleUrl: 'cat-badge.scss',\n shadow: true\n})\nexport class CatBadge {\n private mediaMatcher?: MediaMatcher;\n private mediaQueryList?: MediaQueryList;\n private mediaQueryListener?: (event: MediaQueryListEvent) => void;\n\n @Element() hostElement!: HTMLElement;\n\n @State() _iconOnly = true;\n\n /**\n * The rendering style of the badge.\n */\n @Prop({ reflect: true }) variant: 'filled' | 'outlined' = 'filled';\n\n /**\n * The color palette of the badge.\n */\n @Prop({ reflect: true }) color: 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'danger' = 'primary';\n\n /**\n * The size of the badge.\n */\n @Prop({ reflect: true }) size: 'xs' | 's' | 'm' | 'l' | 'xl' = 'm';\n\n /**\n * Use round badge edges.\n */\n @Prop({ reflect: true }) round = false;\n\n /**\n * Draw attention to the badge with a subtle animation.\n */\n @Prop({ reflect: true }) pulse = false;\n\n /**\n * The name of an icon to be displayed in the button.\n */\n @Prop() icon?: string;\n\n /**\n * Hide the actual button content and only display the icon.\n */\n @Prop() iconOnly: boolean | Breakpoint = false;\n\n /**\n * Display the icon on the right.\n */\n @Prop() iconRight = false;\n\n @Watch('iconOnly')\n onIconOnlyChanged(value: boolean | Breakpoint): void {\n // teardown\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n this.mediaQueryList?.removeEventListener('change', this.mediaQueryListener!);\n this.mediaQueryList = undefined;\n this.mediaQueryListener = undefined;\n // setup\n if (isBreakpoint(value)) {\n this.mediaMatcher ??= new MediaMatcher();\n this.mediaQueryList = this.mediaMatcher.matchMedia(Breakpoints[value]);\n this.mediaQueryListener = (event: MediaQueryListEvent) => (this._iconOnly = event.matches);\n this.mediaQueryList.addEventListener('change', this.mediaQueryListener);\n this._iconOnly = this.mediaQueryList.matches;\n } else {\n this._iconOnly = value;\n }\n }\n\n componentWillLoad(): void {\n this.onIconOnlyChanged(this.iconOnly);\n }\n\n private get isIconBadge() {\n return Boolean(this.icon) && this._iconOnly;\n }\n\n private get hasPrefixIcon() {\n return Boolean(this.icon) && !this._iconOnly && !this.iconRight;\n }\n\n private get hasSuffixIcon() {\n return Boolean(this.icon) && !this._iconOnly && this.iconRight;\n }\n\n private get iconSize(): 'xs' | 's' | 'm' | 'l' | 'xl' {\n switch (this.size) {\n case 'xs':\n case 's':\n return 'xs';\n case 'l':\n case 'xl':\n return 'l';\n default:\n return 'm';\n }\n }\n\n render() {\n return (\n <Host data-icon-badge={this.isIconBadge ? this.size : null}>\n {this.hasPrefixIcon ? <cat-icon icon={this.icon} size={this.iconSize} part=\"prefix\"></cat-icon> : null}\n {this.isIconBadge ? (\n <cat-icon icon={this.icon} size={this.iconSize} class=\"icon-only\"></cat-icon>\n ) : (\n <slot></slot>\n )}\n {this.hasSuffixIcon ? <cat-icon icon={this.icon} size={this.iconSize} part=\"prefix\"></cat-icon> : null}\n </Host>\n );\n }\n}\n"]}
@@ -518,13 +518,15 @@
518
518
  margin-right: -1.25rem;
519
519
  }
520
520
 
521
- :host(.cat-tab)::part(button) {
521
+ :host(.cat-tab)::part(button),
522
+ :host(.cat-tab-more-button)::part(button) {
522
523
  padding: 1.125rem 0.75rem;
523
524
  --cat-secondary-bg: transparent;
524
525
  --cat-primary-text: transparent;
525
526
  --cat-danger-text: transparent;
526
527
  }
527
- :host(.cat-tab)::part(content)::before {
528
+ :host(.cat-tab)::part(content)::before,
529
+ :host(.cat-tab-more-button)::part(content)::before {
528
530
  content: attr(data-text);
529
531
  content: attr(data-text)/"";
530
532
  height: 0;
@@ -15,29 +15,53 @@ export class CatButton {
15
15
  constructor() {
16
16
  this._iconOnly = true;
17
17
  this.hasSlottedContent = false;
18
+ /**
19
+ * The rendering style of the button.
20
+ */
18
21
  this.variant = 'outlined';
22
+ /**
23
+ * The color palette of the button.
24
+ */
19
25
  this.color = 'secondary';
26
+ /**
27
+ * Set the button into an active state.
28
+ */
20
29
  this.active = false;
30
+ /**
31
+ * The size of the button.
32
+ */
21
33
  this.size = 'm';
22
- this.name = undefined;
23
- this.value = undefined;
34
+ /**
35
+ * Specifies that the button should be disabled. A disabled button is unusable
36
+ * and un-clickable. Corresponds with the native HTML disabled attribute.
37
+ */
24
38
  this.disabled = false;
39
+ /**
40
+ * Displays the button in a loading state with a spinner. Just like a disabled
41
+ * button, an inactive button is unusable and un-clickable. However, it
42
+ * retains the current focus state.
43
+ */
25
44
  this.loading = false;
45
+ /**
46
+ * Allows the button to submit a form.
47
+ */
26
48
  this.submit = false;
49
+ /**
50
+ * Disables ellipse overflowing button content.
51
+ */
27
52
  this.noEllipsis = false;
53
+ /**
54
+ * Use round button edges.
55
+ */
28
56
  this.round = false;
29
- this.url = undefined;
30
- this.urlTarget = undefined;
31
- this.icon = undefined;
57
+ /**
58
+ * Hide the actual button content and only display the icon.
59
+ */
32
60
  this.iconOnly = false;
61
+ /**
62
+ * Display the icon on the right.
63
+ */
33
64
  this.iconRight = false;
34
- this.buttonId = undefined;
35
- this.a11yLabel = undefined;
36
- this.a11yCurrent = undefined;
37
- this.nativeAttributes = undefined;
38
- this.nativeContentAttributes = undefined;
39
- this.testId = undefined;
40
- this.buttonGroupPosition = undefined;
41
65
  }
42
66
  onIconOnlyChanged(value) {
43
67
  // teardown
@@ -193,6 +217,7 @@ export class CatButton {
193
217
  return {
194
218
  "variant": {
195
219
  "type": "string",
220
+ "attribute": "variant",
196
221
  "mutable": false,
197
222
  "complexType": {
198
223
  "original": "'filled' | 'outlined' | 'text' | 'link'",
@@ -205,12 +230,14 @@ export class CatButton {
205
230
  "tags": [],
206
231
  "text": "The rendering style of the button."
207
232
  },
208
- "attribute": "variant",
233
+ "getter": false,
234
+ "setter": false,
209
235
  "reflect": false,
210
236
  "defaultValue": "'outlined'"
211
237
  },
212
238
  "color": {
213
239
  "type": "string",
240
+ "attribute": "color",
214
241
  "mutable": false,
215
242
  "complexType": {
216
243
  "original": "'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'danger'",
@@ -223,12 +250,14 @@ export class CatButton {
223
250
  "tags": [],
224
251
  "text": "The color palette of the button."
225
252
  },
226
- "attribute": "color",
253
+ "getter": false,
254
+ "setter": false,
227
255
  "reflect": false,
228
256
  "defaultValue": "'secondary'"
229
257
  },
230
258
  "active": {
231
259
  "type": "boolean",
260
+ "attribute": "active",
232
261
  "mutable": false,
233
262
  "complexType": {
234
263
  "original": "boolean",
@@ -241,12 +270,14 @@ export class CatButton {
241
270
  "tags": [],
242
271
  "text": "Set the button into an active state."
243
272
  },
244
- "attribute": "active",
273
+ "getter": false,
274
+ "setter": false,
245
275
  "reflect": false,
246
276
  "defaultValue": "false"
247
277
  },
248
278
  "size": {
249
279
  "type": "string",
280
+ "attribute": "size",
250
281
  "mutable": false,
251
282
  "complexType": {
252
283
  "original": "'xs' | 's' | 'm' | 'l' | 'xl'",
@@ -259,12 +290,14 @@ export class CatButton {
259
290
  "tags": [],
260
291
  "text": "The size of the button."
261
292
  },
262
- "attribute": "size",
293
+ "getter": false,
294
+ "setter": false,
263
295
  "reflect": false,
264
296
  "defaultValue": "'m'"
265
297
  },
266
298
  "name": {
267
299
  "type": "string",
300
+ "attribute": "name",
268
301
  "mutable": false,
269
302
  "complexType": {
270
303
  "original": "string",
@@ -277,11 +310,13 @@ export class CatButton {
277
310
  "tags": [],
278
311
  "text": "The name of the button, which gets paired with the button's value when\nsubmitted as part of a form. Corresponds with the native HTML name\nattribute."
279
312
  },
280
- "attribute": "name",
313
+ "getter": false,
314
+ "setter": false,
281
315
  "reflect": false
282
316
  },
283
317
  "value": {
284
318
  "type": "string",
319
+ "attribute": "value",
285
320
  "mutable": false,
286
321
  "complexType": {
287
322
  "original": "string",
@@ -294,11 +329,13 @@ export class CatButton {
294
329
  "tags": [],
295
330
  "text": "The value of the button, which gets paired with the button's name when\nsubmitted as part of a form. Corresponds with the native HTML value\nattribute."
296
331
  },
297
- "attribute": "value",
332
+ "getter": false,
333
+ "setter": false,
298
334
  "reflect": false
299
335
  },
300
336
  "disabled": {
301
337
  "type": "boolean",
338
+ "attribute": "disabled",
302
339
  "mutable": false,
303
340
  "complexType": {
304
341
  "original": "boolean",
@@ -311,12 +348,14 @@ export class CatButton {
311
348
  "tags": [],
312
349
  "text": "Specifies that the button should be disabled. A disabled button is unusable\nand un-clickable. Corresponds with the native HTML disabled attribute."
313
350
  },
314
- "attribute": "disabled",
351
+ "getter": false,
352
+ "setter": false,
315
353
  "reflect": false,
316
354
  "defaultValue": "false"
317
355
  },
318
356
  "loading": {
319
357
  "type": "boolean",
358
+ "attribute": "loading",
320
359
  "mutable": false,
321
360
  "complexType": {
322
361
  "original": "boolean",
@@ -329,12 +368,14 @@ export class CatButton {
329
368
  "tags": [],
330
369
  "text": "Displays the button in a loading state with a spinner. Just like a disabled\nbutton, an inactive button is unusable and un-clickable. However, it\nretains the current focus state."
331
370
  },
332
- "attribute": "loading",
371
+ "getter": false,
372
+ "setter": false,
333
373
  "reflect": false,
334
374
  "defaultValue": "false"
335
375
  },
336
376
  "submit": {
337
377
  "type": "boolean",
378
+ "attribute": "submit",
338
379
  "mutable": false,
339
380
  "complexType": {
340
381
  "original": "boolean",
@@ -347,12 +388,14 @@ export class CatButton {
347
388
  "tags": [],
348
389
  "text": "Allows the button to submit a form."
349
390
  },
350
- "attribute": "submit",
391
+ "getter": false,
392
+ "setter": false,
351
393
  "reflect": false,
352
394
  "defaultValue": "false"
353
395
  },
354
396
  "noEllipsis": {
355
397
  "type": "boolean",
398
+ "attribute": "no-ellipsis",
356
399
  "mutable": false,
357
400
  "complexType": {
358
401
  "original": "boolean",
@@ -365,12 +408,14 @@ export class CatButton {
365
408
  "tags": [],
366
409
  "text": "Disables ellipse overflowing button content."
367
410
  },
368
- "attribute": "no-ellipsis",
411
+ "getter": false,
412
+ "setter": false,
369
413
  "reflect": false,
370
414
  "defaultValue": "false"
371
415
  },
372
416
  "round": {
373
417
  "type": "boolean",
418
+ "attribute": "round",
374
419
  "mutable": false,
375
420
  "complexType": {
376
421
  "original": "boolean",
@@ -383,12 +428,14 @@ export class CatButton {
383
428
  "tags": [],
384
429
  "text": "Use round button edges."
385
430
  },
386
- "attribute": "round",
431
+ "getter": false,
432
+ "setter": false,
387
433
  "reflect": false,
388
434
  "defaultValue": "false"
389
435
  },
390
436
  "url": {
391
437
  "type": "string",
438
+ "attribute": "url",
392
439
  "mutable": false,
393
440
  "complexType": {
394
441
  "original": "string",
@@ -401,11 +448,13 @@ export class CatButton {
401
448
  "tags": [],
402
449
  "text": "A destination to link to, rendered in the href attribute of a link."
403
450
  },
404
- "attribute": "url",
451
+ "getter": false,
452
+ "setter": false,
405
453
  "reflect": false
406
454
  },
407
455
  "urlTarget": {
408
456
  "type": "string",
457
+ "attribute": "url-target",
409
458
  "mutable": false,
410
459
  "complexType": {
411
460
  "original": "'_blank' | '_self'",
@@ -418,11 +467,13 @@ export class CatButton {
418
467
  "tags": [],
419
468
  "text": "Specifies where to open the linked document."
420
469
  },
421
- "attribute": "url-target",
470
+ "getter": false,
471
+ "setter": false,
422
472
  "reflect": false
423
473
  },
424
474
  "icon": {
425
475
  "type": "string",
476
+ "attribute": "icon",
426
477
  "mutable": false,
427
478
  "complexType": {
428
479
  "original": "string",
@@ -435,11 +486,13 @@ export class CatButton {
435
486
  "tags": [],
436
487
  "text": "The name of an icon to be displayed in the button."
437
488
  },
438
- "attribute": "icon",
489
+ "getter": false,
490
+ "setter": false,
439
491
  "reflect": false
440
492
  },
441
493
  "iconOnly": {
442
494
  "type": "any",
495
+ "attribute": "icon-only",
443
496
  "mutable": false,
444
497
  "complexType": {
445
498
  "original": "boolean | Breakpoint",
@@ -458,12 +511,14 @@ export class CatButton {
458
511
  "tags": [],
459
512
  "text": "Hide the actual button content and only display the icon."
460
513
  },
461
- "attribute": "icon-only",
514
+ "getter": false,
515
+ "setter": false,
462
516
  "reflect": false,
463
517
  "defaultValue": "false"
464
518
  },
465
519
  "iconRight": {
466
520
  "type": "boolean",
521
+ "attribute": "icon-right",
467
522
  "mutable": false,
468
523
  "complexType": {
469
524
  "original": "boolean",
@@ -476,12 +531,14 @@ export class CatButton {
476
531
  "tags": [],
477
532
  "text": "Display the icon on the right."
478
533
  },
479
- "attribute": "icon-right",
534
+ "getter": false,
535
+ "setter": false,
480
536
  "reflect": false,
481
537
  "defaultValue": "false"
482
538
  },
483
539
  "buttonId": {
484
540
  "type": "string",
541
+ "attribute": "button-id",
485
542
  "mutable": false,
486
543
  "complexType": {
487
544
  "original": "string",
@@ -494,11 +551,13 @@ export class CatButton {
494
551
  "tags": [],
495
552
  "text": "Adds a unique identifier for the button. Please note that with this\nparticular component this ID is added inside the web component. If you need\nan ID on the HTML element, use the regular `id` attribute instead."
496
553
  },
497
- "attribute": "button-id",
554
+ "getter": false,
555
+ "setter": false,
498
556
  "reflect": false
499
557
  },
500
558
  "a11yLabel": {
501
559
  "type": "string",
560
+ "attribute": "a11y-label",
502
561
  "mutable": false,
503
562
  "complexType": {
504
563
  "original": "string",
@@ -511,11 +570,13 @@ export class CatButton {
511
570
  "tags": [],
512
571
  "text": "Adds accessible label for the button that is only shown for screen\nreaders. Typically, this label text replaces the visible text on the\nbutton for users who use assistive technology."
513
572
  },
514
- "attribute": "a11y-label",
573
+ "getter": false,
574
+ "setter": false,
515
575
  "reflect": false
516
576
  },
517
577
  "a11yCurrent": {
518
578
  "type": "string",
579
+ "attribute": "a11y-current",
519
580
  "mutable": false,
520
581
  "complexType": {
521
582
  "original": "string",
@@ -528,11 +589,13 @@ export class CatButton {
528
589
  "tags": [],
529
590
  "text": "Sets the `aria-current` attribute on the button."
530
591
  },
531
- "attribute": "a11y-current",
592
+ "getter": false,
593
+ "setter": false,
532
594
  "reflect": false
533
595
  },
534
596
  "nativeAttributes": {
535
597
  "type": "unknown",
598
+ "attribute": "native-attributes",
536
599
  "mutable": false,
537
600
  "complexType": {
538
601
  "original": "{ [key: string]: string }",
@@ -544,10 +607,13 @@ export class CatButton {
544
607
  "docs": {
545
608
  "tags": [],
546
609
  "text": "Attributes that will be added to the native HTML button element"
547
- }
610
+ },
611
+ "getter": false,
612
+ "setter": false
548
613
  },
549
614
  "nativeContentAttributes": {
550
615
  "type": "unknown",
616
+ "attribute": "native-content-attributes",
551
617
  "mutable": false,
552
618
  "complexType": {
553
619
  "original": "{ [key: string]: string }",
@@ -559,10 +625,13 @@ export class CatButton {
559
625
  "docs": {
560
626
  "tags": [],
561
627
  "text": "Attributes that will be added to the native HTML button content element"
562
- }
628
+ },
629
+ "getter": false,
630
+ "setter": false
563
631
  },
564
632
  "testId": {
565
633
  "type": "string",
634
+ "attribute": "test-id",
566
635
  "mutable": false,
567
636
  "complexType": {
568
637
  "original": "string",
@@ -575,11 +644,13 @@ export class CatButton {
575
644
  "tags": [],
576
645
  "text": "A unique identifier for the underlying native element that is used for\ntesting purposes. The attribute is added as `data-test` attribute and acts\nas a shorthand for `nativeAttributes={ 'data-test': 'test-Id' }`."
577
646
  },
578
- "attribute": "test-id",
647
+ "getter": false,
648
+ "setter": false,
579
649
  "reflect": false
580
650
  },
581
651
  "buttonGroupPosition": {
582
652
  "type": "string",
653
+ "attribute": "button-group-position",
583
654
  "mutable": false,
584
655
  "complexType": {
585
656
  "original": "'first' | 'last' | 'middle'",
@@ -592,7 +663,8 @@ export class CatButton {
592
663
  "tags": [],
593
664
  "text": "The index of a button that is used inside a cat-button-group component"
594
665
  },
595
- "attribute": "button-group-position",
666
+ "getter": false,
667
+ "setter": false,
596
668
  "reflect": false
597
669
  }
598
670
  };