@haiilo/catalyst 0.3.1 → 0.5.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 (267) hide show
  1. package/dist/catalyst/assets/fonts/AzeretMono-Regular.woff2 +0 -0
  2. package/dist/catalyst/assets/fonts/DMSans-Bold.woff2 +0 -0
  3. package/dist/catalyst/assets/fonts/DMSans-BoldItalic.woff2 +0 -0
  4. package/dist/catalyst/assets/fonts/DMSans-Italic.woff2 +0 -0
  5. package/dist/catalyst/assets/fonts/DMSans-Medium.woff2 +0 -0
  6. package/dist/catalyst/assets/fonts/DMSans-MediumItalic.woff2 +0 -0
  7. package/dist/catalyst/assets/fonts/DMSans-Regular.woff2 +0 -0
  8. package/dist/catalyst/assets/fonts/Lato-Black.woff +0 -0
  9. package/dist/catalyst/assets/fonts/Lato-Black.woff2 +0 -0
  10. package/dist/catalyst/assets/fonts/Lato-BlackItalic.woff +0 -0
  11. package/dist/catalyst/assets/fonts/Lato-BlackItalic.woff2 +0 -0
  12. package/dist/catalyst/assets/fonts/Lato-Bold.woff +0 -0
  13. package/dist/catalyst/assets/fonts/Lato-Bold.woff2 +0 -0
  14. package/dist/catalyst/assets/fonts/Lato-BoldItalic.woff +0 -0
  15. package/dist/catalyst/assets/fonts/Lato-BoldItalic.woff2 +0 -0
  16. package/dist/catalyst/assets/fonts/Lato-Hairline.woff +0 -0
  17. package/dist/catalyst/assets/fonts/Lato-Hairline.woff2 +0 -0
  18. package/dist/catalyst/assets/fonts/Lato-HairlineItalic.woff +0 -0
  19. package/dist/catalyst/assets/fonts/Lato-HairlineItalic.woff2 +0 -0
  20. package/dist/catalyst/assets/fonts/Lato-Heavy.woff +0 -0
  21. package/dist/catalyst/assets/fonts/Lato-Heavy.woff2 +0 -0
  22. package/dist/catalyst/assets/fonts/Lato-HeavyItalic.woff +0 -0
  23. package/dist/catalyst/assets/fonts/Lato-HeavyItalic.woff2 +0 -0
  24. package/dist/catalyst/assets/fonts/Lato-Italic.woff +0 -0
  25. package/dist/catalyst/assets/fonts/Lato-Italic.woff2 +0 -0
  26. package/dist/catalyst/assets/fonts/Lato-Light.woff +0 -0
  27. package/dist/catalyst/assets/fonts/Lato-Light.woff2 +0 -0
  28. package/dist/catalyst/assets/fonts/Lato-LightItalic.woff +0 -0
  29. package/dist/catalyst/assets/fonts/Lato-LightItalic.woff2 +0 -0
  30. package/dist/catalyst/assets/fonts/Lato-Medium.woff +0 -0
  31. package/dist/catalyst/assets/fonts/Lato-Medium.woff2 +0 -0
  32. package/dist/catalyst/assets/fonts/Lato-MediumItalic.woff +0 -0
  33. package/dist/catalyst/assets/fonts/Lato-MediumItalic.woff2 +0 -0
  34. package/dist/catalyst/assets/fonts/Lato-Regular.woff +0 -0
  35. package/dist/catalyst/assets/fonts/Lato-Regular.woff2 +0 -0
  36. package/dist/catalyst/assets/fonts/Lato-Semibold.woff +0 -0
  37. package/dist/catalyst/assets/fonts/Lato-Semibold.woff2 +0 -0
  38. package/dist/catalyst/assets/fonts/Lato-SemiboldItalic.woff +0 -0
  39. package/dist/catalyst/assets/fonts/Lato-SemiboldItalic.woff2 +0 -0
  40. package/dist/catalyst/assets/fonts/Lato-Thin.woff +0 -0
  41. package/dist/catalyst/assets/fonts/Lato-Thin.woff2 +0 -0
  42. package/dist/catalyst/assets/fonts/Lato-ThinItalic.woff +0 -0
  43. package/dist/catalyst/assets/fonts/Lato-ThinItalic.woff2 +0 -0
  44. package/dist/catalyst/catalyst.css +1 -1
  45. package/dist/catalyst/catalyst.esm.js +1 -1
  46. package/dist/catalyst/catalyst.esm.js.map +1 -1
  47. package/dist/catalyst/index.esm.js +1 -1
  48. package/dist/catalyst/p-23d54bc6.js +2 -0
  49. package/dist/catalyst/p-23d54bc6.js.map +1 -0
  50. package/dist/catalyst/p-84693f87.entry.js +24 -0
  51. package/dist/catalyst/p-84693f87.entry.js.map +1 -0
  52. package/dist/catalyst/p-8f5cfa78.js +2 -0
  53. package/dist/catalyst/p-8f5cfa78.js.map +1 -0
  54. package/dist/catalyst/{p-ed826597.js → p-fa7da4c6.js} +2 -2
  55. package/dist/catalyst/p-fa7da4c6.js.map +1 -0
  56. package/dist/cjs/{app-globals-7f2b1f8e.js → app-globals-50e7504d.js} +9 -2
  57. package/dist/cjs/app-globals-50e7504d.js.map +1 -0
  58. package/dist/cjs/{cat-alert_8.cjs.entry.js → cat-alert_15.cjs.entry.js} +602 -400
  59. package/dist/cjs/cat-alert_15.cjs.entry.js.map +1 -0
  60. package/dist/cjs/cat-icon-registry-6895750f.js +441 -0
  61. package/dist/cjs/cat-icon-registry-6895750f.js.map +1 -0
  62. package/dist/cjs/catalyst.cjs.js +4 -4
  63. package/dist/cjs/{index-c0881ae0.js → index-2db8e23d.js} +1 -2
  64. package/dist/cjs/index-2db8e23d.js.map +1 -0
  65. package/dist/cjs/index.cjs.js +2 -1
  66. package/dist/cjs/index.cjs.js.map +1 -1
  67. package/dist/cjs/loader.cjs.js +4 -4
  68. package/dist/collection/assets/fonts/AzeretMono-Regular.woff2 +0 -0
  69. package/dist/collection/assets/fonts/DMSans-Bold.woff2 +0 -0
  70. package/dist/collection/assets/fonts/DMSans-BoldItalic.woff2 +0 -0
  71. package/dist/collection/assets/fonts/DMSans-Italic.woff2 +0 -0
  72. package/dist/collection/assets/fonts/DMSans-Medium.woff2 +0 -0
  73. package/dist/collection/assets/fonts/DMSans-MediumItalic.woff2 +0 -0
  74. package/dist/collection/assets/fonts/DMSans-Regular.woff2 +0 -0
  75. package/dist/collection/assets/fonts/Lato-Black.woff +0 -0
  76. package/dist/collection/assets/fonts/Lato-Black.woff2 +0 -0
  77. package/dist/collection/assets/fonts/Lato-BlackItalic.woff +0 -0
  78. package/dist/collection/assets/fonts/Lato-BlackItalic.woff2 +0 -0
  79. package/dist/collection/assets/fonts/Lato-Bold.woff +0 -0
  80. package/dist/collection/assets/fonts/Lato-Bold.woff2 +0 -0
  81. package/dist/collection/assets/fonts/Lato-BoldItalic.woff +0 -0
  82. package/dist/collection/assets/fonts/Lato-BoldItalic.woff2 +0 -0
  83. package/dist/collection/assets/fonts/Lato-Hairline.woff +0 -0
  84. package/dist/collection/assets/fonts/Lato-Hairline.woff2 +0 -0
  85. package/dist/collection/assets/fonts/Lato-HairlineItalic.woff +0 -0
  86. package/dist/collection/assets/fonts/Lato-HairlineItalic.woff2 +0 -0
  87. package/dist/collection/assets/fonts/Lato-Heavy.woff +0 -0
  88. package/dist/collection/assets/fonts/Lato-Heavy.woff2 +0 -0
  89. package/dist/collection/assets/fonts/Lato-HeavyItalic.woff +0 -0
  90. package/dist/collection/assets/fonts/Lato-HeavyItalic.woff2 +0 -0
  91. package/dist/collection/assets/fonts/Lato-Italic.woff +0 -0
  92. package/dist/collection/assets/fonts/Lato-Italic.woff2 +0 -0
  93. package/dist/collection/assets/fonts/Lato-Light.woff +0 -0
  94. package/dist/collection/assets/fonts/Lato-Light.woff2 +0 -0
  95. package/dist/collection/assets/fonts/Lato-LightItalic.woff +0 -0
  96. package/dist/collection/assets/fonts/Lato-LightItalic.woff2 +0 -0
  97. package/dist/collection/assets/fonts/Lato-Medium.woff +0 -0
  98. package/dist/collection/assets/fonts/Lato-Medium.woff2 +0 -0
  99. package/dist/collection/assets/fonts/Lato-MediumItalic.woff +0 -0
  100. package/dist/collection/assets/fonts/Lato-MediumItalic.woff2 +0 -0
  101. package/dist/collection/assets/fonts/Lato-Regular.woff +0 -0
  102. package/dist/collection/assets/fonts/Lato-Regular.woff2 +0 -0
  103. package/dist/collection/assets/fonts/Lato-Semibold.woff +0 -0
  104. package/dist/collection/assets/fonts/Lato-Semibold.woff2 +0 -0
  105. package/dist/collection/assets/fonts/Lato-SemiboldItalic.woff +0 -0
  106. package/dist/collection/assets/fonts/Lato-SemiboldItalic.woff2 +0 -0
  107. package/dist/collection/assets/fonts/Lato-Thin.woff +0 -0
  108. package/dist/collection/assets/fonts/Lato-Thin.woff2 +0 -0
  109. package/dist/collection/assets/fonts/Lato-ThinItalic.woff +0 -0
  110. package/dist/collection/assets/fonts/Lato-ThinItalic.woff2 +0 -0
  111. package/dist/collection/collection-manifest.json +8 -1
  112. package/dist/collection/components/cat-alert/cat-alert.css +11 -6
  113. package/dist/collection/components/cat-alert/cat-alert.js +19 -8
  114. package/dist/collection/components/cat-alert/cat-alert.js.map +1 -1
  115. package/dist/collection/components/cat-badge/cat-badge.css +17 -17
  116. package/dist/collection/components/cat-badge/cat-badge.js +9 -8
  117. package/dist/collection/components/cat-badge/cat-badge.js.map +1 -1
  118. package/dist/collection/components/cat-button/cat-button.css +18 -8
  119. package/dist/collection/components/cat-button/cat-button.js +32 -8
  120. package/dist/collection/components/cat-button/cat-button.js.map +1 -1
  121. package/dist/collection/components/cat-card/cat-card.css +25 -0
  122. package/dist/collection/components/cat-card/cat-card.js +20 -0
  123. package/dist/collection/components/cat-card/cat-card.js.map +1 -0
  124. package/dist/collection/components/cat-checkbox/cat-checkbox.css +105 -0
  125. package/dist/collection/components/cat-checkbox/cat-checkbox.js +314 -0
  126. package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -0
  127. package/dist/collection/components/cat-i18n/cat-i18n-registry.js +69 -0
  128. package/dist/collection/components/cat-i18n/cat-i18n-registry.js.map +1 -0
  129. package/dist/collection/components/cat-icon/cat-icon-registry.js +14 -1
  130. package/dist/collection/components/cat-icon/cat-icon-registry.js.map +1 -1
  131. package/dist/collection/components/cat-icon/cat-icon.css +5 -5
  132. package/dist/collection/components/cat-icon/cat-icon.js +3 -2
  133. package/dist/collection/components/cat-icon/cat-icon.js.map +1 -1
  134. package/dist/collection/components/cat-input/cat-input.css +131 -0
  135. package/dist/collection/components/cat-input/cat-input.js +606 -0
  136. package/dist/collection/components/cat-input/cat-input.js.map +1 -0
  137. package/dist/collection/components/cat-menu/cat-menu.css +2 -1
  138. package/dist/collection/components/cat-menu/cat-menu.js +3 -5
  139. package/dist/collection/components/cat-menu/cat-menu.js.map +1 -1
  140. package/dist/collection/components/cat-radio/cat-radio.css +84 -0
  141. package/dist/collection/components/cat-radio/cat-radio.js +283 -0
  142. package/dist/collection/components/cat-radio/cat-radio.js.map +1 -0
  143. package/dist/collection/components/cat-scrollable/cat-scrollable.js +4 -2
  144. package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +1 -1
  145. package/dist/collection/components/cat-skeleton/cat-skeleton.css +30 -30
  146. package/dist/collection/components/cat-skeleton/cat-skeleton.js +4 -4
  147. package/dist/collection/components/cat-skeleton/cat-skeleton.js.map +1 -1
  148. package/dist/collection/components/cat-spinner/cat-spinner.css +7 -7
  149. package/dist/collection/components/cat-spinner/cat-spinner.js +1 -1
  150. package/dist/collection/components/cat-spinner/cat-spinner.js.map +1 -1
  151. package/dist/collection/components/cat-textarea/cat-textarea.css +74 -0
  152. package/dist/collection/components/cat-textarea/cat-textarea.js +393 -0
  153. package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -0
  154. package/dist/collection/components/cat-toggle/cat-toggle.css +93 -0
  155. package/dist/collection/components/cat-toggle/cat-toggle.js +283 -0
  156. package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -0
  157. package/dist/collection/components/cat-tooltip/cat-tooltip.css +41 -0
  158. package/dist/collection/components/cat-tooltip/cat-tooltip.js +254 -0
  159. package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +1 -0
  160. package/dist/collection/index.js +1 -0
  161. package/dist/collection/index.js.map +1 -1
  162. package/dist/collection/init.js +9 -1
  163. package/dist/collection/init.js.map +1 -1
  164. package/dist/collection/utils/first-tabbable.js +6 -0
  165. package/dist/collection/utils/first-tabbable.js.map +1 -0
  166. package/dist/collection/utils/is-touch-screen.js +3 -0
  167. package/dist/collection/utils/is-touch-screen.js.map +1 -0
  168. package/dist/components/cat-alert.js +15 -6
  169. package/dist/components/cat-alert.js.map +1 -1
  170. package/dist/components/cat-badge.js +7 -7
  171. package/dist/components/cat-badge.js.map +1 -1
  172. package/dist/components/cat-button.js +1 -647
  173. package/dist/components/cat-button.js.map +1 -1
  174. package/dist/components/cat-button2.js +346 -0
  175. package/dist/components/cat-button2.js.map +1 -0
  176. package/dist/components/cat-card.d.ts +11 -0
  177. package/dist/components/cat-card.js +35 -0
  178. package/dist/components/cat-card.js.map +1 -0
  179. package/dist/components/cat-checkbox.d.ts +11 -0
  180. package/dist/components/cat-checkbox.js +103 -0
  181. package/dist/components/cat-checkbox.js.map +1 -0
  182. package/dist/components/cat-i18n-registry.js +73 -0
  183. package/dist/components/cat-i18n-registry.js.map +1 -0
  184. package/dist/components/cat-icon-registry.js +15 -1
  185. package/dist/components/cat-icon-registry.js.map +1 -1
  186. package/dist/components/cat-icon2.js +3 -2
  187. package/dist/components/cat-icon2.js.map +1 -1
  188. package/dist/components/cat-input.d.ts +11 -0
  189. package/dist/components/cat-input.js +172 -0
  190. package/dist/components/cat-input.js.map +1 -0
  191. package/dist/components/cat-menu.js +12 -1520
  192. package/dist/components/cat-menu.js.map +1 -1
  193. package/dist/components/cat-radio.d.ts +11 -0
  194. package/dist/components/cat-radio.js +93 -0
  195. package/dist/components/cat-radio.js.map +1 -0
  196. package/dist/components/cat-scrollable.js +1 -2
  197. package/dist/components/cat-scrollable.js.map +1 -1
  198. package/dist/components/cat-skeleton.js +5 -5
  199. package/dist/components/cat-skeleton.js.map +1 -1
  200. package/dist/components/cat-spinner2.js +2 -2
  201. package/dist/components/cat-spinner2.js.map +1 -1
  202. package/dist/components/cat-textarea.d.ts +11 -0
  203. package/dist/components/cat-textarea.js +119 -0
  204. package/dist/components/cat-textarea.js.map +1 -0
  205. package/dist/components/cat-toggle.d.ts +11 -0
  206. package/dist/components/cat-toggle.js +93 -0
  207. package/dist/components/cat-toggle.js.map +1 -0
  208. package/dist/components/cat-tooltip.d.ts +11 -0
  209. package/dist/components/cat-tooltip.js +154 -0
  210. package/dist/components/cat-tooltip.js.map +1 -0
  211. package/dist/components/first-tabbable.js +1496 -0
  212. package/dist/components/first-tabbable.js.map +1 -0
  213. package/dist/components/index.js +9 -0
  214. package/dist/components/index.js.map +1 -1
  215. package/dist/components/loglevel.js +315 -0
  216. package/dist/components/loglevel.js.map +1 -0
  217. package/dist/esm/{app-globals-8af9b2cf.js → app-globals-6906ac5c.js} +9 -2
  218. package/dist/esm/app-globals-6906ac5c.js.map +1 -0
  219. package/dist/esm/{cat-alert_8.entry.js → cat-alert_15.entry.js} +594 -399
  220. package/dist/esm/cat-alert_15.entry.js.map +1 -0
  221. package/dist/esm/cat-icon-registry-77963c26.js +437 -0
  222. package/dist/esm/cat-icon-registry-77963c26.js.map +1 -0
  223. package/dist/esm/catalyst.js +4 -4
  224. package/dist/esm/{index-0ff35bca.js → index-1f3ca03b.js} +2 -2
  225. package/dist/esm/index-1f3ca03b.js.map +1 -0
  226. package/dist/esm/index.js +1 -1
  227. package/dist/esm/loader.js +4 -4
  228. package/dist/types/components/cat-alert/cat-alert.d.ts +4 -2
  229. package/dist/types/components/cat-badge/cat-badge.d.ts +3 -2
  230. package/dist/types/components/cat-button/cat-button.d.ts +8 -3
  231. package/dist/types/components/cat-card/cat-card.d.ts +7 -0
  232. package/dist/types/components/cat-checkbox/cat-checkbox.d.ts +69 -0
  233. package/dist/types/components/cat-i18n/cat-i18n-registry.d.ts +18 -0
  234. package/dist/types/components/cat-icon/cat-icon-registry.d.ts +4 -4
  235. package/dist/types/components/cat-icon/cat-icon.d.ts +1 -1
  236. package/dist/types/components/cat-input/cat-input.d.ts +130 -0
  237. package/dist/types/components/cat-menu/cat-menu.d.ts +0 -1
  238. package/dist/types/components/cat-radio/cat-radio.d.ts +63 -0
  239. package/dist/types/components/cat-scrollable/cat-scrollable.d.ts +3 -1
  240. package/dist/types/components/cat-textarea/cat-textarea.d.ts +85 -0
  241. package/dist/types/components/cat-toggle/cat-toggle.d.ts +64 -0
  242. package/dist/types/components/cat-tooltip/cat-tooltip.d.ts +46 -0
  243. package/dist/types/components.d.ts +680 -4
  244. package/dist/types/index.d.ts +1 -0
  245. package/dist/types/utils/first-tabbable.d.ts +4 -0
  246. package/dist/types/utils/is-touch-screen.d.ts +2 -0
  247. package/package.json +9 -7
  248. package/dist/catalyst/p-31b500c7.entry.js +0 -10
  249. package/dist/catalyst/p-31b500c7.entry.js.map +0 -1
  250. package/dist/catalyst/p-ed826597.js.map +0 -1
  251. package/dist/catalyst/p-ef0a8ae9.js +0 -2
  252. package/dist/catalyst/p-ef0a8ae9.js.map +0 -1
  253. package/dist/catalyst/p-f151cb13.js +0 -2
  254. package/dist/catalyst/p-f151cb13.js.map +0 -1
  255. package/dist/cjs/app-globals-7f2b1f8e.js.map +0 -1
  256. package/dist/cjs/cat-alert_8.cjs.entry.js.map +0 -1
  257. package/dist/cjs/cat-icon-registry-850c538c.js +0 -47
  258. package/dist/cjs/cat-icon-registry-850c538c.js.map +0 -1
  259. package/dist/cjs/index-c0881ae0.js.map +0 -1
  260. package/dist/collection/utils/utils.js +0 -4
  261. package/dist/collection/utils/utils.js.map +0 -1
  262. package/dist/esm/app-globals-8af9b2cf.js.map +0 -1
  263. package/dist/esm/cat-alert_8.entry.js.map +0 -1
  264. package/dist/esm/cat-icon-registry-59da2e37.js +0 -45
  265. package/dist/esm/cat-icon-registry-59da2e37.js.map +0 -1
  266. package/dist/esm/index-0ff35bca.js.map +0 -1
  267. package/dist/types/utils/utils.d.ts +0 -1
@@ -0,0 +1,69 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ /**
3
+ * Checkboxes are used to let a user choose one or more options from a limited
4
+ * number of options.
5
+ *
6
+ * @part checkbox - The checkbox element.
7
+ * @part label - The label content.
8
+ */
9
+ export declare class CatCheckbox {
10
+ private readonly id;
11
+ private input;
12
+ /**
13
+ * Checked state of the checkbox
14
+ */
15
+ checked: boolean;
16
+ /**
17
+ * Disabled state of the checkbox
18
+ */
19
+ disabled: boolean;
20
+ /**
21
+ * Indeterminate state of the checkbox
22
+ */
23
+ indeterminate: boolean;
24
+ /**
25
+ * Label of the checkbox which is presented in the UI
26
+ */
27
+ label: string;
28
+ /**
29
+ * Visually hide the label, but still show it to assistive technologies like screen readers.
30
+ */
31
+ labelHidden: boolean;
32
+ /**
33
+ * The name of the input
34
+ */
35
+ name?: string;
36
+ /**
37
+ * Required state of the checkbox
38
+ */
39
+ required: boolean;
40
+ /**
41
+ * The value of the checkbox
42
+ */
43
+ value?: string;
44
+ /**
45
+ * Emitted when the checked status of the checkbox is changed.
46
+ */
47
+ catChange: EventEmitter;
48
+ /**
49
+ * Emitted when the checkbox received focus.
50
+ */
51
+ catFocus: EventEmitter<FocusEvent>;
52
+ /**
53
+ * Emitted when the checkbox loses focus.
54
+ */
55
+ catBlur: EventEmitter<FocusEvent>;
56
+ componentDidLoad(): void;
57
+ componentWillRender(): void;
58
+ /**
59
+ * Sets focus on the checkbox. Use this method instead of `checkbox.focus()`.
60
+ *
61
+ * @param options An optional object providing options to control aspects of
62
+ * the focusing process.
63
+ */
64
+ setFocus(options?: FocusOptions): Promise<void>;
65
+ render(): any;
66
+ private onInput;
67
+ private onFocus;
68
+ private onBlur;
69
+ }
@@ -0,0 +1,18 @@
1
+ export declare class CatI18nRegistry {
2
+ private static instance;
3
+ private lang;
4
+ private readonly messages;
5
+ private constructor();
6
+ static getInstance(): CatI18nRegistry;
7
+ getLanguage(): string;
8
+ setLanguage(lang: string): void;
9
+ getMessage(key: string): string | undefined;
10
+ addMessage(lang: string, key: string, message: string): CatI18nRegistry;
11
+ addMessages(lang: string, i18n: {
12
+ [key: string]: string;
13
+ }): CatI18nRegistry;
14
+ removeMessage(lang: string, key: string): CatI18nRegistry;
15
+ removeMessages(lang: string, keys: string[]): CatI18nRegistry;
16
+ private buildEvent;
17
+ private getDict;
18
+ }
@@ -4,12 +4,12 @@ export declare class CatIconRegistry {
4
4
  private constructor();
5
5
  static getInstance(): CatIconRegistry;
6
6
  getIcon(name: string, setName?: string): string | undefined;
7
- addIcon(name: string, data: string, setName?: string): void;
7
+ addIcon(name: string, data: string, setName?: string): CatIconRegistry;
8
8
  addIcons(icons: {
9
9
  [name: string]: string;
10
- }, setName?: string): void;
11
- removeIcon(name: string, setName?: string): void;
12
- removeIcons(names: string[], setName?: string): void;
10
+ }, setName?: string): CatIconRegistry;
11
+ removeIcon(name: string, setName?: string): CatIconRegistry;
12
+ removeIcons(names: string[], setName?: string): CatIconRegistry;
13
13
  private buildName;
14
14
  private buildEvent;
15
15
  }
@@ -2,7 +2,7 @@
2
2
  * Icons are used to provide additional meaning or in places where text label
3
3
  * doesn't fit.
4
4
  *
5
- * @part icon - The native span element wrapping the SVG icon.
5
+ * @part icon - The span element wrapping the SVG icon.
6
6
  */
7
7
  export declare class CatIcon {
8
8
  private readonly iconRegistry;
@@ -0,0 +1,130 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ /**
3
+ * Inputs are used to allow users to provide text input when the expected input
4
+ * is short. As well as plain text, Input supports various types of text,
5
+ * including passwords and numbers.
6
+ *
7
+ * @part label - The label content.
8
+ * @part prefix - The text prefix.
9
+ * @part suffix - The text suffix.
10
+ */
11
+ export declare class CatInput {
12
+ private readonly i18n;
13
+ private readonly id;
14
+ private input;
15
+ private inputValue;
16
+ /**
17
+ * Hint for form autofill feature.
18
+ */
19
+ autoComplete?: string;
20
+ /**
21
+ * Whether the input should show a clear button.
22
+ */
23
+ clearable: boolean;
24
+ /**
25
+ * Whether the input is disabled.
26
+ */
27
+ disabled: boolean;
28
+ /**
29
+ * Optional hint text to be displayed with the input.
30
+ */
31
+ hint?: string;
32
+ /**
33
+ * The name of an icon to be displayed in the input.
34
+ */
35
+ icon?: string;
36
+ /**
37
+ * Display the icon on the right.
38
+ */
39
+ iconRight: boolean;
40
+ /**
41
+ * The label for the input.
42
+ */
43
+ label: string;
44
+ /**
45
+ * Visually hide the label, but still show it to assistive technologies like screen readers.
46
+ */
47
+ labelHidden: boolean;
48
+ /**
49
+ * A maximum value for numeric values.
50
+ */
51
+ max?: number;
52
+ /**
53
+ * A maximum length (number of characters) for textual values.
54
+ */
55
+ maxLength?: number;
56
+ /**
57
+ * A minimum value for numeric values.
58
+ */
59
+ min?: number;
60
+ /**
61
+ * A minimum length (number of characters) for textual values.
62
+ */
63
+ minLength?: number;
64
+ /**
65
+ * The name of the form control. Submitted with the form as part of a name/value pair.
66
+ */
67
+ name: string;
68
+ /**
69
+ * The placeholder text to display within the input.
70
+ */
71
+ placeholder?: string;
72
+ /**
73
+ * A textual prefix to be displayed in the input.
74
+ */
75
+ textPrefix?: string;
76
+ /**
77
+ * A textual suffix to be displayed in the input.
78
+ */
79
+ textSuffix?: string;
80
+ /**
81
+ * The value is not editable.
82
+ */
83
+ readonly: boolean;
84
+ /**
85
+ * A value is required or must be check for the form to be submittable.
86
+ */
87
+ required: boolean;
88
+ /**
89
+ * Use round input edges.
90
+ */
91
+ round: boolean;
92
+ /**
93
+ * Type of form control.
94
+ */
95
+ type: 'text' | 'email' | 'password' | 'tel' | 'url' | 'search' | 'number';
96
+ /**
97
+ * The initial value of the control.
98
+ */
99
+ value?: string | number;
100
+ /**
101
+ * Emitted when the value is changed.
102
+ */
103
+ catChange: EventEmitter;
104
+ /**
105
+ * Emitted when the input received focus.
106
+ */
107
+ catFocus: EventEmitter<FocusEvent>;
108
+ /**
109
+ * Emitted when the input loses focus.
110
+ */
111
+ catBlur: EventEmitter<FocusEvent>;
112
+ onValueChange(value?: string | number): void;
113
+ componentWillLoad(): void;
114
+ componentWillRender(): void;
115
+ /**
116
+ * Sets focus on the input. Use this method instead of `input.focus()`.
117
+ *
118
+ * @param options An optional object providing options to control aspects of
119
+ * the focusing process.
120
+ */
121
+ setFocus(options?: FocusOptions): Promise<void>;
122
+ /**
123
+ * Clear the input.
124
+ */
125
+ clear(): Promise<void>;
126
+ render(): any;
127
+ private onInput;
128
+ private onFocus;
129
+ private onBlur;
130
+ }
@@ -28,5 +28,4 @@ export declare class CatMenu {
28
28
  private show;
29
29
  private hide;
30
30
  private update;
31
- private firstTabbable;
32
31
  }
@@ -0,0 +1,63 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ /**
3
+ * Radio Buttons are graphical interface elements that allow user to choose
4
+ * only one of a predefined set of mutually exclusive options.
5
+ *
6
+ * @part label - The label content.
7
+ */
8
+ export declare class CatRadio {
9
+ private readonly id;
10
+ private input;
11
+ /**
12
+ * Whether this radio is checked.
13
+ */
14
+ checked: boolean;
15
+ /**
16
+ * Whether this radio is disabled.
17
+ */
18
+ disabled: boolean;
19
+ /**
20
+ * The label of the radio that is visible.
21
+ */
22
+ label: string;
23
+ /**
24
+ * Visually hide the label, but still show it to assistive technologies like screen readers.
25
+ */
26
+ labelHidden: boolean;
27
+ /**
28
+ * The name of the radio component.
29
+ */
30
+ name?: string;
31
+ /**
32
+ * Whether the radio is required.
33
+ */
34
+ required: boolean;
35
+ /**
36
+ * The value of the radio component.
37
+ */
38
+ value?: string;
39
+ /**
40
+ * Emitted when the radio is changed.
41
+ */
42
+ catChange: EventEmitter;
43
+ /**
44
+ * Emitted when the radio received focus.
45
+ */
46
+ catFocus: EventEmitter<FocusEvent>;
47
+ /**
48
+ * Emitted when the radio loses focus.
49
+ */
50
+ catBlur: EventEmitter<FocusEvent>;
51
+ componentWillRender(): void;
52
+ /**
53
+ * Sets focus on the radio. Use this method instead of `radio.focus()`.
54
+ *
55
+ * @param options An optional object providing options to control aspects of
56
+ * the focusing process.
57
+ */
58
+ setFocus(options?: FocusOptions): Promise<void>;
59
+ render(): any;
60
+ private onChange;
61
+ private onFocus;
62
+ private onBlur;
63
+ }
@@ -1,11 +1,13 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
+ /**
3
+ * An element to display scrollable content.
4
+ */
2
5
  export declare class CatScrollable {
3
6
  scrollElement?: HTMLElement;
4
7
  scrollWrapperElement?: HTMLElement;
5
8
  private readonly init;
6
9
  private readonly destroyed;
7
10
  private scrolled;
8
- el: HTMLElement;
9
11
  /** Flags to enable/disable scroll shadowX. */
10
12
  shadowX: boolean;
11
13
  /** Flags to enable/disable scroll shadowY. */
@@ -0,0 +1,85 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ /**
3
+ * Textarea specifies a control that allows user to write text over multiple
4
+ * rows. Used when the expected user input is long. For shorter input, use the
5
+ * input component.
6
+ *
7
+ * @part label - The label content.
8
+ */
9
+ export declare class CatTextarea {
10
+ private readonly id;
11
+ private textarea;
12
+ /**
13
+ * Whether the textarea is disabled.
14
+ */
15
+ disabled: boolean;
16
+ /**
17
+ * Optional hint text to be displayed with the textarea.
18
+ */
19
+ hint?: string;
20
+ /**
21
+ * The label for the textarea.
22
+ */
23
+ label: string;
24
+ /**
25
+ * Visually hide the label, but still show it to assistive technologies like screen readers.
26
+ */
27
+ labelHidden: boolean;
28
+ /**
29
+ * A maximum length (number of characters) for textual values.
30
+ */
31
+ maxLength?: number;
32
+ /**
33
+ * A minimum length (number of characters) for textual values.
34
+ */
35
+ minLength?: number;
36
+ /**
37
+ * The name of the form control. Submitted with the form as part of a name/value pair.
38
+ */
39
+ name: string;
40
+ /**
41
+ * The placeholder text to display within the input.
42
+ */
43
+ placeholder?: string;
44
+ /**
45
+ * The value is not editable.
46
+ */
47
+ readonly: boolean;
48
+ /**
49
+ * A value is required or must be check for the form to be submittable.
50
+ */
51
+ required: boolean;
52
+ /**
53
+ * Specifies the initial number of lines in the textarea.
54
+ */
55
+ rows: number;
56
+ /**
57
+ * The initial value of the control.
58
+ */
59
+ value?: string | number;
60
+ /**
61
+ * Emitted when the value is changed.
62
+ */
63
+ catChange: EventEmitter;
64
+ /**
65
+ * Emitted when the textarea received focus.
66
+ */
67
+ catFocus: EventEmitter<FocusEvent>;
68
+ /**
69
+ * Emitted when the textarea loses focus.
70
+ */
71
+ catBlur: EventEmitter<FocusEvent>;
72
+ componentWillRender(): void;
73
+ componentDidLoad(): void;
74
+ /**
75
+ * Sets focus on the textarea. Use this method instead of `textarea.focus()`.
76
+ *
77
+ * @param options An optional object providing options to control aspects of
78
+ * the focusing process.
79
+ */
80
+ setFocus(options?: FocusOptions): Promise<void>;
81
+ render(): any;
82
+ private onInput;
83
+ private onFocus;
84
+ private onBlur;
85
+ }
@@ -0,0 +1,64 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ /**
3
+ * Toggles are graphical interface switches that give user control over a
4
+ * feature or option that can be turned on or off.
5
+ *
6
+ * @part toggle - The toggle element.
7
+ * @part label - The label content.
8
+ */
9
+ export declare class CatToggle {
10
+ private readonly id;
11
+ private input;
12
+ /**
13
+ * Checked state of the toggle.
14
+ */
15
+ checked: boolean;
16
+ /**
17
+ * Disabled state of the toggle.
18
+ */
19
+ disabled: boolean;
20
+ /**
21
+ * The label of the toggle that is visible.
22
+ */
23
+ label: string;
24
+ /**
25
+ * Visually hide the label, but still show it to assistive technologies like screen readers.
26
+ */
27
+ labelHidden: boolean;
28
+ /**
29
+ * The name of the input
30
+ */
31
+ name?: string;
32
+ /**
33
+ * Required state of the toggle
34
+ */
35
+ required: boolean;
36
+ /**
37
+ * The value of the toggle
38
+ */
39
+ value?: string;
40
+ /**
41
+ * Emitted when the checked status of the toggle is changed.
42
+ */
43
+ catChange: EventEmitter;
44
+ /**
45
+ * Emitted when the toggle received focus.
46
+ */
47
+ catFocus: EventEmitter<FocusEvent>;
48
+ /**
49
+ * Emitted when the toggle loses focus.
50
+ */
51
+ catBlur: EventEmitter<FocusEvent>;
52
+ componentWillRender(): void;
53
+ /**
54
+ * Sets focus on the toggle. Use this method instead of `toggle.focus()`.
55
+ *
56
+ * @param options An optional object providing options to control aspects of
57
+ * the focusing process.
58
+ */
59
+ setFocus(options?: FocusOptions): Promise<void>;
60
+ render(): any;
61
+ private onInput;
62
+ private onFocus;
63
+ private onBlur;
64
+ }
@@ -0,0 +1,46 @@
1
+ import { Placement } from '@floating-ui/dom';
2
+ export declare class CatTooltip {
3
+ private static readonly OFFSET;
4
+ private readonly id;
5
+ private tooltip?;
6
+ private triggerElement?;
7
+ private trigger?;
8
+ private showTimeout?;
9
+ private hideTimeout?;
10
+ private touchTimeout?;
11
+ /**
12
+ * The content of the tooltip.
13
+ */
14
+ content: string;
15
+ /**
16
+ * Specifies that the tooltip should be disabled. A disabled tooltip is unusable,
17
+ * and invisible. Corresponds with the native HTML disabled attribute.
18
+ */
19
+ disabled: boolean;
20
+ /**
21
+ * The placement of the tooltip.
22
+ */
23
+ placement: Placement;
24
+ /**
25
+ * The delay time for showing tooltip in ms.
26
+ */
27
+ showDelay: number;
28
+ /**
29
+ * The delay time for hiding tooltip in ms.
30
+ */
31
+ hideDelay: number;
32
+ /**
33
+ * The duration of tap to show the tooltip.
34
+ */
35
+ longTouchDuration: number;
36
+ handleKeyDown({ key }: KeyboardEvent): void;
37
+ componentDidLoad(): void;
38
+ disconnectedCallback(): void;
39
+ render(): any;
40
+ private get isTabbable();
41
+ private update;
42
+ private showListener;
43
+ private hideListener;
44
+ private touchStartListener;
45
+ private touchEndListener;
46
+ }