@haiilo/catalyst 0.4.0 → 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 (248) hide show
  1. package/package.json +7 -6
  2. package/dist/catalyst/assets/fonts/AzeretMono-Regular.woff2 +0 -0
  3. package/dist/catalyst/assets/fonts/DMSans-Bold.woff2 +0 -0
  4. package/dist/catalyst/assets/fonts/DMSans-BoldItalic.woff2 +0 -0
  5. package/dist/catalyst/assets/fonts/DMSans-Italic.woff2 +0 -0
  6. package/dist/catalyst/assets/fonts/DMSans-Medium.woff2 +0 -0
  7. package/dist/catalyst/assets/fonts/DMSans-MediumItalic.woff2 +0 -0
  8. package/dist/catalyst/assets/fonts/DMSans-Regular.woff2 +0 -0
  9. package/dist/catalyst/assets/fonts/Lato-Black.woff +0 -0
  10. package/dist/catalyst/assets/fonts/Lato-Black.woff2 +0 -0
  11. package/dist/catalyst/assets/fonts/Lato-BlackItalic.woff +0 -0
  12. package/dist/catalyst/assets/fonts/Lato-BlackItalic.woff2 +0 -0
  13. package/dist/catalyst/assets/fonts/Lato-Bold.woff +0 -0
  14. package/dist/catalyst/assets/fonts/Lato-Bold.woff2 +0 -0
  15. package/dist/catalyst/assets/fonts/Lato-BoldItalic.woff +0 -0
  16. package/dist/catalyst/assets/fonts/Lato-BoldItalic.woff2 +0 -0
  17. package/dist/catalyst/assets/fonts/Lato-Hairline.woff +0 -0
  18. package/dist/catalyst/assets/fonts/Lato-Hairline.woff2 +0 -0
  19. package/dist/catalyst/assets/fonts/Lato-HairlineItalic.woff +0 -0
  20. package/dist/catalyst/assets/fonts/Lato-HairlineItalic.woff2 +0 -0
  21. package/dist/catalyst/assets/fonts/Lato-Heavy.woff +0 -0
  22. package/dist/catalyst/assets/fonts/Lato-Heavy.woff2 +0 -0
  23. package/dist/catalyst/assets/fonts/Lato-HeavyItalic.woff +0 -0
  24. package/dist/catalyst/assets/fonts/Lato-HeavyItalic.woff2 +0 -0
  25. package/dist/catalyst/assets/fonts/Lato-Italic.woff +0 -0
  26. package/dist/catalyst/assets/fonts/Lato-Italic.woff2 +0 -0
  27. package/dist/catalyst/assets/fonts/Lato-Light.woff +0 -0
  28. package/dist/catalyst/assets/fonts/Lato-Light.woff2 +0 -0
  29. package/dist/catalyst/assets/fonts/Lato-LightItalic.woff +0 -0
  30. package/dist/catalyst/assets/fonts/Lato-LightItalic.woff2 +0 -0
  31. package/dist/catalyst/assets/fonts/Lato-Medium.woff +0 -0
  32. package/dist/catalyst/assets/fonts/Lato-Medium.woff2 +0 -0
  33. package/dist/catalyst/assets/fonts/Lato-MediumItalic.woff +0 -0
  34. package/dist/catalyst/assets/fonts/Lato-MediumItalic.woff2 +0 -0
  35. package/dist/catalyst/assets/fonts/Lato-Regular.woff +0 -0
  36. package/dist/catalyst/assets/fonts/Lato-Regular.woff2 +0 -0
  37. package/dist/catalyst/assets/fonts/Lato-Semibold.woff +0 -0
  38. package/dist/catalyst/assets/fonts/Lato-Semibold.woff2 +0 -0
  39. package/dist/catalyst/assets/fonts/Lato-SemiboldItalic.woff +0 -0
  40. package/dist/catalyst/assets/fonts/Lato-SemiboldItalic.woff2 +0 -0
  41. package/dist/catalyst/assets/fonts/Lato-Thin.woff +0 -0
  42. package/dist/catalyst/assets/fonts/Lato-Thin.woff2 +0 -0
  43. package/dist/catalyst/assets/fonts/Lato-ThinItalic.woff +0 -0
  44. package/dist/catalyst/assets/fonts/Lato-ThinItalic.woff2 +0 -0
  45. package/dist/catalyst/catalyst.css +0 -1
  46. package/dist/catalyst/catalyst.esm.js +0 -2
  47. package/dist/catalyst/catalyst.esm.js.map +0 -1
  48. package/dist/catalyst/index.cdn.js +0 -21
  49. package/dist/catalyst/index.esm.js +0 -2
  50. package/dist/catalyst/index.esm.js.map +0 -1
  51. package/dist/catalyst/p-89a97b7b.entry.js +0 -10
  52. package/dist/catalyst/p-89a97b7b.entry.js.map +0 -1
  53. package/dist/catalyst/p-ed826597.js +0 -2
  54. package/dist/catalyst/p-ed826597.js.map +0 -1
  55. package/dist/catalyst/p-ef0a8ae9.js +0 -2
  56. package/dist/catalyst/p-ef0a8ae9.js.map +0 -1
  57. package/dist/catalyst/p-f151cb13.js +0 -2
  58. package/dist/catalyst/p-f151cb13.js.map +0 -1
  59. package/dist/cjs/app-globals-7f2b1f8e.js +0 -173
  60. package/dist/cjs/app-globals-7f2b1f8e.js.map +0 -1
  61. package/dist/cjs/cat-alert_9.cjs.entry.js +0 -4557
  62. package/dist/cjs/cat-alert_9.cjs.entry.js.map +0 -1
  63. package/dist/cjs/cat-icon-registry-850c538c.js +0 -47
  64. package/dist/cjs/cat-icon-registry-850c538c.js.map +0 -1
  65. package/dist/cjs/catalyst.cjs.js +0 -24
  66. package/dist/cjs/catalyst.cjs.js.map +0 -1
  67. package/dist/cjs/index-c0881ae0.js +0 -1348
  68. package/dist/cjs/index-c0881ae0.js.map +0 -1
  69. package/dist/cjs/index.cjs.js +0 -11
  70. package/dist/cjs/index.cjs.js.map +0 -1
  71. package/dist/cjs/loader.cjs.js +0 -26
  72. package/dist/cjs/loader.cjs.js.map +0 -1
  73. package/dist/collection/assets/fonts/AzeretMono-Regular.woff2 +0 -0
  74. package/dist/collection/assets/fonts/DMSans-Bold.woff2 +0 -0
  75. package/dist/collection/assets/fonts/DMSans-BoldItalic.woff2 +0 -0
  76. package/dist/collection/assets/fonts/DMSans-Italic.woff2 +0 -0
  77. package/dist/collection/assets/fonts/DMSans-Medium.woff2 +0 -0
  78. package/dist/collection/assets/fonts/DMSans-MediumItalic.woff2 +0 -0
  79. package/dist/collection/assets/fonts/DMSans-Regular.woff2 +0 -0
  80. package/dist/collection/assets/fonts/Lato-Black.woff +0 -0
  81. package/dist/collection/assets/fonts/Lato-Black.woff2 +0 -0
  82. package/dist/collection/assets/fonts/Lato-BlackItalic.woff +0 -0
  83. package/dist/collection/assets/fonts/Lato-BlackItalic.woff2 +0 -0
  84. package/dist/collection/assets/fonts/Lato-Bold.woff +0 -0
  85. package/dist/collection/assets/fonts/Lato-Bold.woff2 +0 -0
  86. package/dist/collection/assets/fonts/Lato-BoldItalic.woff +0 -0
  87. package/dist/collection/assets/fonts/Lato-BoldItalic.woff2 +0 -0
  88. package/dist/collection/assets/fonts/Lato-Hairline.woff +0 -0
  89. package/dist/collection/assets/fonts/Lato-Hairline.woff2 +0 -0
  90. package/dist/collection/assets/fonts/Lato-HairlineItalic.woff +0 -0
  91. package/dist/collection/assets/fonts/Lato-HairlineItalic.woff2 +0 -0
  92. package/dist/collection/assets/fonts/Lato-Heavy.woff +0 -0
  93. package/dist/collection/assets/fonts/Lato-Heavy.woff2 +0 -0
  94. package/dist/collection/assets/fonts/Lato-HeavyItalic.woff +0 -0
  95. package/dist/collection/assets/fonts/Lato-HeavyItalic.woff2 +0 -0
  96. package/dist/collection/assets/fonts/Lato-Italic.woff +0 -0
  97. package/dist/collection/assets/fonts/Lato-Italic.woff2 +0 -0
  98. package/dist/collection/assets/fonts/Lato-Light.woff +0 -0
  99. package/dist/collection/assets/fonts/Lato-Light.woff2 +0 -0
  100. package/dist/collection/assets/fonts/Lato-LightItalic.woff +0 -0
  101. package/dist/collection/assets/fonts/Lato-LightItalic.woff2 +0 -0
  102. package/dist/collection/assets/fonts/Lato-Medium.woff +0 -0
  103. package/dist/collection/assets/fonts/Lato-Medium.woff2 +0 -0
  104. package/dist/collection/assets/fonts/Lato-MediumItalic.woff +0 -0
  105. package/dist/collection/assets/fonts/Lato-MediumItalic.woff2 +0 -0
  106. package/dist/collection/assets/fonts/Lato-Regular.woff +0 -0
  107. package/dist/collection/assets/fonts/Lato-Regular.woff2 +0 -0
  108. package/dist/collection/assets/fonts/Lato-Semibold.woff +0 -0
  109. package/dist/collection/assets/fonts/Lato-Semibold.woff2 +0 -0
  110. package/dist/collection/assets/fonts/Lato-SemiboldItalic.woff +0 -0
  111. package/dist/collection/assets/fonts/Lato-SemiboldItalic.woff2 +0 -0
  112. package/dist/collection/assets/fonts/Lato-Thin.woff +0 -0
  113. package/dist/collection/assets/fonts/Lato-Thin.woff2 +0 -0
  114. package/dist/collection/assets/fonts/Lato-ThinItalic.woff +0 -0
  115. package/dist/collection/assets/fonts/Lato-ThinItalic.woff2 +0 -0
  116. package/dist/collection/collection-manifest.json +0 -21
  117. package/dist/collection/components/cat-alert/cat-alert.css +0 -57
  118. package/dist/collection/components/cat-alert/cat-alert.js +0 -50
  119. package/dist/collection/components/cat-alert/cat-alert.js.map +0 -1
  120. package/dist/collection/components/cat-badge/cat-badge.css +0 -154
  121. package/dist/collection/components/cat-badge/cat-badge.js +0 -142
  122. package/dist/collection/components/cat-badge/cat-badge.js.map +0 -1
  123. package/dist/collection/components/cat-button/cat-button.css +0 -323
  124. package/dist/collection/components/cat-button/cat-button.js +0 -591
  125. package/dist/collection/components/cat-button/cat-button.js.map +0 -1
  126. package/dist/collection/components/cat-icon/cat-icon-registry.js +0 -42
  127. package/dist/collection/components/cat-icon/cat-icon-registry.js.map +0 -1
  128. package/dist/collection/components/cat-icon/cat-icon.css +0 -50
  129. package/dist/collection/components/cat-icon/cat-icon.js +0 -90
  130. package/dist/collection/components/cat-icon/cat-icon.js.map +0 -1
  131. package/dist/collection/components/cat-menu/cat-menu.css +0 -33
  132. package/dist/collection/components/cat-menu/cat-menu.js +0 -184
  133. package/dist/collection/components/cat-menu/cat-menu.js.map +0 -1
  134. package/dist/collection/components/cat-scrollable/cat-scrollable.css +0 -69
  135. package/dist/collection/components/cat-scrollable/cat-scrollable.js +0 -309
  136. package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +0 -1
  137. package/dist/collection/components/cat-skeleton/cat-skeleton.css +0 -177
  138. package/dist/collection/components/cat-skeleton/cat-skeleton.js +0 -131
  139. package/dist/collection/components/cat-skeleton/cat-skeleton.js.map +0 -1
  140. package/dist/collection/components/cat-spinner/cat-spinner.css +0 -63
  141. package/dist/collection/components/cat-spinner/cat-spinner.js +0 -65
  142. package/dist/collection/components/cat-spinner/cat-spinner.js.map +0 -1
  143. package/dist/collection/components/cat-tooltip/cat-tooltip.css +0 -37
  144. package/dist/collection/components/cat-tooltip/cat-tooltip.js +0 -254
  145. package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +0 -1
  146. package/dist/collection/index.cdn.js +0 -21
  147. package/dist/collection/index.js +0 -2
  148. package/dist/collection/index.js.map +0 -1
  149. package/dist/collection/init.js +0 -9
  150. package/dist/collection/init.js.map +0 -1
  151. package/dist/collection/utils/breakpoints.js +0 -12
  152. package/dist/collection/utils/breakpoints.js.map +0 -1
  153. package/dist/collection/utils/first-tabbable.js +0 -6
  154. package/dist/collection/utils/first-tabbable.js.map +0 -1
  155. package/dist/collection/utils/is-touch-screen.js +0 -3
  156. package/dist/collection/utils/is-touch-screen.js.map +0 -1
  157. package/dist/collection/utils/media-matcher.js +0 -55
  158. package/dist/collection/utils/media-matcher.js.map +0 -1
  159. package/dist/collection/utils/platform.js +0 -50
  160. package/dist/collection/utils/platform.js.map +0 -1
  161. package/dist/collection/utils/utils.js +0 -4
  162. package/dist/collection/utils/utils.js.map +0 -1
  163. package/dist/components/cat-alert.d.ts +0 -11
  164. package/dist/components/cat-alert.js +0 -44
  165. package/dist/components/cat-alert.js.map +0 -1
  166. package/dist/components/cat-badge.d.ts +0 -11
  167. package/dist/components/cat-badge.js +0 -68
  168. package/dist/components/cat-badge.js.map +0 -1
  169. package/dist/components/cat-button.d.ts +0 -11
  170. package/dist/components/cat-button.js +0 -654
  171. package/dist/components/cat-button.js.map +0 -1
  172. package/dist/components/cat-icon-registry.js +0 -45
  173. package/dist/components/cat-icon-registry.js.map +0 -1
  174. package/dist/components/cat-icon.d.ts +0 -11
  175. package/dist/components/cat-icon.js +0 -8
  176. package/dist/components/cat-icon.js.map +0 -1
  177. package/dist/components/cat-icon2.js +0 -48
  178. package/dist/components/cat-icon2.js.map +0 -1
  179. package/dist/components/cat-menu.d.ts +0 -11
  180. package/dist/components/cat-menu.js +0 -870
  181. package/dist/components/cat-menu.js.map +0 -1
  182. package/dist/components/cat-scrollable.d.ts +0 -11
  183. package/dist/components/cat-scrollable.js +0 -1363
  184. package/dist/components/cat-scrollable.js.map +0 -1
  185. package/dist/components/cat-skeleton.d.ts +0 -11
  186. package/dist/components/cat-skeleton.js +0 -78
  187. package/dist/components/cat-skeleton.js.map +0 -1
  188. package/dist/components/cat-spinner.d.ts +0 -11
  189. package/dist/components/cat-spinner.js +0 -8
  190. package/dist/components/cat-spinner.js.map +0 -1
  191. package/dist/components/cat-spinner2.js +0 -41
  192. package/dist/components/cat-spinner2.js.map +0 -1
  193. package/dist/components/cat-tooltip.d.ts +0 -11
  194. package/dist/components/cat-tooltip.js +0 -154
  195. package/dist/components/cat-tooltip.js.map +0 -1
  196. package/dist/components/first-tabbable.js +0 -1495
  197. package/dist/components/first-tabbable.js.map +0 -1
  198. package/dist/components/index.d.ts +0 -26
  199. package/dist/components/index.js +0 -173
  200. package/dist/components/index.js.map +0 -1
  201. package/dist/esm/app-globals-8af9b2cf.js +0 -171
  202. package/dist/esm/app-globals-8af9b2cf.js.map +0 -1
  203. package/dist/esm/cat-alert_9.entry.js +0 -4545
  204. package/dist/esm/cat-alert_9.entry.js.map +0 -1
  205. package/dist/esm/cat-icon-registry-59da2e37.js +0 -45
  206. package/dist/esm/cat-icon-registry-59da2e37.js.map +0 -1
  207. package/dist/esm/catalyst.js +0 -22
  208. package/dist/esm/catalyst.js.map +0 -1
  209. package/dist/esm/index-0ff35bca.js +0 -1320
  210. package/dist/esm/index-0ff35bca.js.map +0 -1
  211. package/dist/esm/index.js +0 -3
  212. package/dist/esm/index.js.map +0 -1
  213. package/dist/esm/loader.js +0 -22
  214. package/dist/esm/loader.js.map +0 -1
  215. package/dist/esm/polyfills/core-js.js +0 -11
  216. package/dist/esm/polyfills/css-shim.js +0 -1
  217. package/dist/esm/polyfills/dom.js +0 -79
  218. package/dist/esm/polyfills/es5-html-element.js +0 -1
  219. package/dist/esm/polyfills/index.js +0 -34
  220. package/dist/esm/polyfills/system.js +0 -6
  221. package/dist/index.cjs.js +0 -1
  222. package/dist/index.js +0 -1
  223. package/dist/types/components/cat-alert/cat-alert.d.ts +0 -12
  224. package/dist/types/components/cat-badge/cat-badge.d.ts +0 -28
  225. package/dist/types/components/cat-button/cat-button.d.ts +0 -129
  226. package/dist/types/components/cat-icon/cat-icon-registry.d.ts +0 -15
  227. package/dist/types/components/cat-icon/cat-icon.d.ts +0 -23
  228. package/dist/types/components/cat-menu/cat-menu.d.ts +0 -31
  229. package/dist/types/components/cat-scrollable/cat-scrollable.d.ts +0 -50
  230. package/dist/types/components/cat-skeleton/cat-skeleton.d.ts +0 -28
  231. package/dist/types/components/cat-spinner/cat-spinner.d.ts +0 -15
  232. package/dist/types/components/cat-tooltip/cat-tooltip.d.ts +0 -46
  233. package/dist/types/components.d.ts +0 -552
  234. package/dist/types/index.d.ts +0 -2
  235. package/dist/types/init.d.ts +0 -1
  236. package/dist/types/stencil-public-runtime.d.ts +0 -1565
  237. package/dist/types/utils/breakpoints.d.ts +0 -7
  238. package/dist/types/utils/first-tabbable.d.ts +0 -4
  239. package/dist/types/utils/is-touch-screen.d.ts +0 -2
  240. package/dist/types/utils/media-matcher.d.ts +0 -13
  241. package/dist/types/utils/platform.d.ts +0 -18
  242. package/dist/types/utils/utils.d.ts +0 -1
  243. package/loader/cdn.js +0 -3
  244. package/loader/index.cjs.js +0 -3
  245. package/loader/index.d.ts +0 -12
  246. package/loader/index.es2017.js +0 -3
  247. package/loader/index.js +0 -4
  248. package/loader/package.json +0 -10
@@ -1,552 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- /**
4
- * This is an autogenerated file created by the Stencil compiler.
5
- * It contains typing information for all components that exist in this project.
6
- */
7
- import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
- import { Breakpoint } from "./utils/breakpoints";
9
- import { Placement } from "@floating-ui/dom";
10
- export namespace Components {
11
- interface CatAlert {
12
- /**
13
- * The color palette of the alert.
14
- */
15
- "color": 'primary' | 'secondary' | 'danger' | 'success' | 'warning';
16
- }
17
- interface CatBadge {
18
- /**
19
- * The color palette of the badge.
20
- */
21
- "color": 'primary' | 'secondary' | 'danger' | 'success' | 'warning';
22
- /**
23
- * Draw attention to the badge with a subtle animation.
24
- */
25
- "pulse": boolean;
26
- /**
27
- * Use round badge edges.
28
- */
29
- "round": boolean;
30
- /**
31
- * The size of the badge.
32
- */
33
- "size": 'xs' | 's' | 'm' | 'l' | 'xl';
34
- /**
35
- * The rendering style of the badge.
36
- */
37
- "variant": 'filled' | 'outlined';
38
- }
39
- interface CatButton {
40
- /**
41
- * Adds accessible label for the button that is only shown for screen readers. Typically, this label text replaces the visible text on the button for users who use assistive technology.
42
- */
43
- "a11yLabel"?: string;
44
- /**
45
- * Adds a unique identifier for the button. Please note that with this particular component this ID is added inside the web component. If you need an ID on the HTML element, use the regular `id` attribute instead.
46
- */
47
- "buttonId"?: string;
48
- /**
49
- * The color palette of the button.
50
- */
51
- "color": 'primary' | 'secondary' | 'danger' | 'success' | 'warning';
52
- /**
53
- * Specifies that the button should be disabled. A disabled button is unusable and un-clickable. Corresponds with the native HTML disabled attribute.
54
- */
55
- "disabled": boolean;
56
- /**
57
- * Ellipse overflowing button content.
58
- */
59
- "ellipsed": boolean;
60
- /**
61
- * The name of an icon to be displayed in the button.
62
- */
63
- "icon"?: string;
64
- /**
65
- * Hide the actual button content and only display the icon.
66
- */
67
- "iconOnly": boolean | Breakpoint;
68
- /**
69
- * Display the icon as a suffix.
70
- */
71
- "iconSuffix": boolean;
72
- /**
73
- * Displays the button in a loading state with a spinner. Just like a disabled button, an inactive button is unusable and un-clickable. However, it retains the current focus state.
74
- */
75
- "loading": boolean;
76
- /**
77
- * The name of the button, which gets paired with the button's value when submitted as part of a form. Corresponds with the native HTML name attribute.
78
- */
79
- "name"?: string;
80
- /**
81
- * Use round button edges.
82
- */
83
- "round": boolean;
84
- /**
85
- * Sets focus on the button. Use this method instead of `button.focus()`.
86
- * @param options An optional object providing options to control aspects of the focusing process.
87
- */
88
- "setFocus": (options?: FocusOptions | undefined) => Promise<void>;
89
- /**
90
- * The size of the button.
91
- */
92
- "size": 'xs' | 's' | 'm' | 'l' | 'xl';
93
- /**
94
- * Allows the button to submit a form.
95
- */
96
- "submit": boolean;
97
- /**
98
- * A destination to link to, rendered in the href attribute of a link.
99
- */
100
- "url"?: string;
101
- /**
102
- * Specifies where to open the linked document.
103
- */
104
- "urlTarget"?: '_blank' | '_self';
105
- /**
106
- * The value of the button, which gets paired with the button's name when submitted as part of a form. Corresponds with the native HTML value attribute.
107
- */
108
- "value"?: string;
109
- /**
110
- * The rendering style of the button.
111
- */
112
- "variant": 'filled' | 'outlined' | 'text';
113
- }
114
- interface CatIcon {
115
- /**
116
- * Adds accessible label for the icon that is only shown for screen readers. The `aria-hidden` attribute will be set if no label is present.
117
- */
118
- "a11yLabel"?: string;
119
- /**
120
- * The name of the icon.
121
- */
122
- "icon": string;
123
- /**
124
- * The size of the icon.
125
- */
126
- "size": 'xs' | 's' | 'm' | 'l' | 'xl' | 'inline';
127
- }
128
- interface CatMenu {
129
- /**
130
- * The placement of the menu.
131
- */
132
- "placement": Placement;
133
- }
134
- interface CatScrollable {
135
- /**
136
- * Flags to enable/disable overflowX.
137
- */
138
- "overflowX": boolean;
139
- /**
140
- * Flags to enable/disable overflowY.
141
- */
142
- "overflowY": boolean;
143
- /**
144
- * Flag to enable/disable overscroll behavior.
145
- */
146
- "overscroll": boolean;
147
- /**
148
- * Buffer to be used to calculate the scroll distance.
149
- */
150
- "scrolledBuffer": number;
151
- /**
152
- * Flag to fire an initial event after content initialization.
153
- */
154
- "scrolledInit": boolean;
155
- /**
156
- * Flags to enable/disable scroll shadowX.
157
- */
158
- "shadowX": boolean;
159
- /**
160
- * Flags to enable/disable scroll shadowY.
161
- */
162
- "shadowY": boolean;
163
- }
164
- interface CatSkeleton {
165
- /**
166
- * The animation style of the skeleton.
167
- */
168
- "effect": 'plain' | 'sheen' | 'pulse';
169
- /**
170
- * The number of text lines to be rendered for "head" and "body" variants. Defaults to 1 for "head" and 3 for "body". Will be ignored for other variants.
171
- */
172
- "lines"?: number;
173
- /**
174
- * The size of the skeleton. If the variant is set to "head", the size values "xs" to "xl" translate to the head levels `h1` to `h5`.
175
- */
176
- "size": 'xs' | 's' | 'm' | 'l' | 'xl';
177
- /**
178
- * The rendering style of the skeleton.
179
- */
180
- "variant": 'rectangle' | 'square' | 'circle' | 'head' | 'body';
181
- }
182
- interface CatSpinner {
183
- /**
184
- * Adds accessible label for the spinner that is only shown for screen readers. The `aria-hidden` attribute will be set if no label is present.
185
- */
186
- "a11yLabel"?: string;
187
- /**
188
- * The size of the spinner.
189
- */
190
- "size": 'xs' | 's' | 'm' | 'l' | 'xl' | 'inline';
191
- }
192
- interface CatTooltip {
193
- /**
194
- * The content of the tooltip.
195
- */
196
- "content": string;
197
- /**
198
- * Specifies that the tooltip should be disabled. A disabled tooltip is unusable, and invisible. Corresponds with the native HTML disabled attribute.
199
- */
200
- "disabled": boolean;
201
- /**
202
- * The delay time for hiding tooltip in ms.
203
- */
204
- "hideDelay": number;
205
- /**
206
- * The duration of tap to show the tooltip.
207
- */
208
- "longTouchDuration": number;
209
- /**
210
- * The placement of the tooltip.
211
- */
212
- "placement": Placement;
213
- /**
214
- * The delay time for showing tooltip in ms.
215
- */
216
- "showDelay": number;
217
- }
218
- }
219
- declare global {
220
- interface HTMLCatAlertElement extends Components.CatAlert, HTMLStencilElement {
221
- }
222
- var HTMLCatAlertElement: {
223
- prototype: HTMLCatAlertElement;
224
- new (): HTMLCatAlertElement;
225
- };
226
- interface HTMLCatBadgeElement extends Components.CatBadge, HTMLStencilElement {
227
- }
228
- var HTMLCatBadgeElement: {
229
- prototype: HTMLCatBadgeElement;
230
- new (): HTMLCatBadgeElement;
231
- };
232
- interface HTMLCatButtonElement extends Components.CatButton, HTMLStencilElement {
233
- }
234
- var HTMLCatButtonElement: {
235
- prototype: HTMLCatButtonElement;
236
- new (): HTMLCatButtonElement;
237
- };
238
- interface HTMLCatIconElement extends Components.CatIcon, HTMLStencilElement {
239
- }
240
- var HTMLCatIconElement: {
241
- prototype: HTMLCatIconElement;
242
- new (): HTMLCatIconElement;
243
- };
244
- interface HTMLCatMenuElement extends Components.CatMenu, HTMLStencilElement {
245
- }
246
- var HTMLCatMenuElement: {
247
- prototype: HTMLCatMenuElement;
248
- new (): HTMLCatMenuElement;
249
- };
250
- interface HTMLCatScrollableElement extends Components.CatScrollable, HTMLStencilElement {
251
- }
252
- var HTMLCatScrollableElement: {
253
- prototype: HTMLCatScrollableElement;
254
- new (): HTMLCatScrollableElement;
255
- };
256
- interface HTMLCatSkeletonElement extends Components.CatSkeleton, HTMLStencilElement {
257
- }
258
- var HTMLCatSkeletonElement: {
259
- prototype: HTMLCatSkeletonElement;
260
- new (): HTMLCatSkeletonElement;
261
- };
262
- interface HTMLCatSpinnerElement extends Components.CatSpinner, HTMLStencilElement {
263
- }
264
- var HTMLCatSpinnerElement: {
265
- prototype: HTMLCatSpinnerElement;
266
- new (): HTMLCatSpinnerElement;
267
- };
268
- interface HTMLCatTooltipElement extends Components.CatTooltip, HTMLStencilElement {
269
- }
270
- var HTMLCatTooltipElement: {
271
- prototype: HTMLCatTooltipElement;
272
- new (): HTMLCatTooltipElement;
273
- };
274
- interface HTMLElementTagNameMap {
275
- "cat-alert": HTMLCatAlertElement;
276
- "cat-badge": HTMLCatBadgeElement;
277
- "cat-button": HTMLCatButtonElement;
278
- "cat-icon": HTMLCatIconElement;
279
- "cat-menu": HTMLCatMenuElement;
280
- "cat-scrollable": HTMLCatScrollableElement;
281
- "cat-skeleton": HTMLCatSkeletonElement;
282
- "cat-spinner": HTMLCatSpinnerElement;
283
- "cat-tooltip": HTMLCatTooltipElement;
284
- }
285
- }
286
- declare namespace LocalJSX {
287
- interface CatAlert {
288
- /**
289
- * The color palette of the alert.
290
- */
291
- "color"?: 'primary' | 'secondary' | 'danger' | 'success' | 'warning';
292
- }
293
- interface CatBadge {
294
- /**
295
- * The color palette of the badge.
296
- */
297
- "color"?: 'primary' | 'secondary' | 'danger' | 'success' | 'warning';
298
- /**
299
- * Draw attention to the badge with a subtle animation.
300
- */
301
- "pulse"?: boolean;
302
- /**
303
- * Use round badge edges.
304
- */
305
- "round"?: boolean;
306
- /**
307
- * The size of the badge.
308
- */
309
- "size"?: 'xs' | 's' | 'm' | 'l' | 'xl';
310
- /**
311
- * The rendering style of the badge.
312
- */
313
- "variant"?: 'filled' | 'outlined';
314
- }
315
- interface CatButton {
316
- /**
317
- * Adds accessible label for the button that is only shown for screen readers. Typically, this label text replaces the visible text on the button for users who use assistive technology.
318
- */
319
- "a11yLabel"?: string;
320
- /**
321
- * Adds a unique identifier for the button. Please note that with this particular component this ID is added inside the web component. If you need an ID on the HTML element, use the regular `id` attribute instead.
322
- */
323
- "buttonId"?: string;
324
- /**
325
- * The color palette of the button.
326
- */
327
- "color"?: 'primary' | 'secondary' | 'danger' | 'success' | 'warning';
328
- /**
329
- * Specifies that the button should be disabled. A disabled button is unusable and un-clickable. Corresponds with the native HTML disabled attribute.
330
- */
331
- "disabled"?: boolean;
332
- /**
333
- * Ellipse overflowing button content.
334
- */
335
- "ellipsed"?: boolean;
336
- /**
337
- * The name of an icon to be displayed in the button.
338
- */
339
- "icon"?: string;
340
- /**
341
- * Hide the actual button content and only display the icon.
342
- */
343
- "iconOnly"?: boolean | Breakpoint;
344
- /**
345
- * Display the icon as a suffix.
346
- */
347
- "iconSuffix"?: boolean;
348
- /**
349
- * Displays the button in a loading state with a spinner. Just like a disabled button, an inactive button is unusable and un-clickable. However, it retains the current focus state.
350
- */
351
- "loading"?: boolean;
352
- /**
353
- * The name of the button, which gets paired with the button's value when submitted as part of a form. Corresponds with the native HTML name attribute.
354
- */
355
- "name"?: string;
356
- /**
357
- * Emitted when the button loses focus.
358
- */
359
- "onCatBlur"?: (event: CustomEvent<FocusEvent>) => void;
360
- /**
361
- * Emitted when the button is clicked.
362
- */
363
- "onCatClick"?: (event: CustomEvent<MouseEvent>) => void;
364
- /**
365
- * Emitted when the button received focus.
366
- */
367
- "onCatFocus"?: (event: CustomEvent<FocusEvent>) => void;
368
- /**
369
- * Use round button edges.
370
- */
371
- "round"?: boolean;
372
- /**
373
- * The size of the button.
374
- */
375
- "size"?: 'xs' | 's' | 'm' | 'l' | 'xl';
376
- /**
377
- * Allows the button to submit a form.
378
- */
379
- "submit"?: boolean;
380
- /**
381
- * A destination to link to, rendered in the href attribute of a link.
382
- */
383
- "url"?: string;
384
- /**
385
- * Specifies where to open the linked document.
386
- */
387
- "urlTarget"?: '_blank' | '_self';
388
- /**
389
- * The value of the button, which gets paired with the button's name when submitted as part of a form. Corresponds with the native HTML value attribute.
390
- */
391
- "value"?: string;
392
- /**
393
- * The rendering style of the button.
394
- */
395
- "variant"?: 'filled' | 'outlined' | 'text';
396
- }
397
- interface CatIcon {
398
- /**
399
- * Adds accessible label for the icon that is only shown for screen readers. The `aria-hidden` attribute will be set if no label is present.
400
- */
401
- "a11yLabel"?: string;
402
- /**
403
- * The name of the icon.
404
- */
405
- "icon"?: string;
406
- /**
407
- * The size of the icon.
408
- */
409
- "size"?: 'xs' | 's' | 'm' | 'l' | 'xl' | 'inline';
410
- }
411
- interface CatMenu {
412
- /**
413
- * Emitted when the menu is closed.
414
- */
415
- "onCatClose"?: (event: CustomEvent<FocusEvent>) => void;
416
- /**
417
- * Emitted when the menu is opened.
418
- */
419
- "onCatOpen"?: (event: CustomEvent<FocusEvent>) => void;
420
- /**
421
- * The placement of the menu.
422
- */
423
- "placement"?: Placement;
424
- }
425
- interface CatScrollable {
426
- /**
427
- * Emitted when the content is fully scrolled to the bottom.
428
- */
429
- "onScrolledBottom"?: (event: CustomEvent<void>) => void;
430
- /**
431
- * Emitted when the content is fully scrolled to the left.
432
- */
433
- "onScrolledLeft"?: (event: CustomEvent<void>) => void;
434
- /**
435
- * Emitted when the content is fully scrolled to the right.
436
- */
437
- "onScrolledRight"?: (event: CustomEvent<void>) => void;
438
- /**
439
- * Emitted when the content is fully scrolled to the top.
440
- */
441
- "onScrolledTop"?: (event: CustomEvent<void>) => void;
442
- /**
443
- * Flags to enable/disable overflowX.
444
- */
445
- "overflowX"?: boolean;
446
- /**
447
- * Flags to enable/disable overflowY.
448
- */
449
- "overflowY"?: boolean;
450
- /**
451
- * Flag to enable/disable overscroll behavior.
452
- */
453
- "overscroll"?: boolean;
454
- /**
455
- * Buffer to be used to calculate the scroll distance.
456
- */
457
- "scrolledBuffer"?: number;
458
- /**
459
- * Flag to fire an initial event after content initialization.
460
- */
461
- "scrolledInit"?: boolean;
462
- /**
463
- * Flags to enable/disable scroll shadowX.
464
- */
465
- "shadowX"?: boolean;
466
- /**
467
- * Flags to enable/disable scroll shadowY.
468
- */
469
- "shadowY"?: boolean;
470
- }
471
- interface CatSkeleton {
472
- /**
473
- * The animation style of the skeleton.
474
- */
475
- "effect"?: 'plain' | 'sheen' | 'pulse';
476
- /**
477
- * The number of text lines to be rendered for "head" and "body" variants. Defaults to 1 for "head" and 3 for "body". Will be ignored for other variants.
478
- */
479
- "lines"?: number;
480
- /**
481
- * The size of the skeleton. If the variant is set to "head", the size values "xs" to "xl" translate to the head levels `h1` to `h5`.
482
- */
483
- "size"?: 'xs' | 's' | 'm' | 'l' | 'xl';
484
- /**
485
- * The rendering style of the skeleton.
486
- */
487
- "variant"?: 'rectangle' | 'square' | 'circle' | 'head' | 'body';
488
- }
489
- interface CatSpinner {
490
- /**
491
- * Adds accessible label for the spinner that is only shown for screen readers. The `aria-hidden` attribute will be set if no label is present.
492
- */
493
- "a11yLabel"?: string;
494
- /**
495
- * The size of the spinner.
496
- */
497
- "size"?: 'xs' | 's' | 'm' | 'l' | 'xl' | 'inline';
498
- }
499
- interface CatTooltip {
500
- /**
501
- * The content of the tooltip.
502
- */
503
- "content"?: string;
504
- /**
505
- * Specifies that the tooltip should be disabled. A disabled tooltip is unusable, and invisible. Corresponds with the native HTML disabled attribute.
506
- */
507
- "disabled"?: boolean;
508
- /**
509
- * The delay time for hiding tooltip in ms.
510
- */
511
- "hideDelay"?: number;
512
- /**
513
- * The duration of tap to show the tooltip.
514
- */
515
- "longTouchDuration"?: number;
516
- /**
517
- * The placement of the tooltip.
518
- */
519
- "placement"?: Placement;
520
- /**
521
- * The delay time for showing tooltip in ms.
522
- */
523
- "showDelay"?: number;
524
- }
525
- interface IntrinsicElements {
526
- "cat-alert": CatAlert;
527
- "cat-badge": CatBadge;
528
- "cat-button": CatButton;
529
- "cat-icon": CatIcon;
530
- "cat-menu": CatMenu;
531
- "cat-scrollable": CatScrollable;
532
- "cat-skeleton": CatSkeleton;
533
- "cat-spinner": CatSpinner;
534
- "cat-tooltip": CatTooltip;
535
- }
536
- }
537
- export { LocalJSX as JSX };
538
- declare module "@stencil/core" {
539
- export namespace JSX {
540
- interface IntrinsicElements {
541
- "cat-alert": LocalJSX.CatAlert & JSXBase.HTMLAttributes<HTMLCatAlertElement>;
542
- "cat-badge": LocalJSX.CatBadge & JSXBase.HTMLAttributes<HTMLCatBadgeElement>;
543
- "cat-button": LocalJSX.CatButton & JSXBase.HTMLAttributes<HTMLCatButtonElement>;
544
- "cat-icon": LocalJSX.CatIcon & JSXBase.HTMLAttributes<HTMLCatIconElement>;
545
- "cat-menu": LocalJSX.CatMenu & JSXBase.HTMLAttributes<HTMLCatMenuElement>;
546
- "cat-scrollable": LocalJSX.CatScrollable & JSXBase.HTMLAttributes<HTMLCatScrollableElement>;
547
- "cat-skeleton": LocalJSX.CatSkeleton & JSXBase.HTMLAttributes<HTMLCatSkeletonElement>;
548
- "cat-spinner": LocalJSX.CatSpinner & JSXBase.HTMLAttributes<HTMLCatSpinnerElement>;
549
- "cat-tooltip": LocalJSX.CatTooltip & JSXBase.HTMLAttributes<HTMLCatTooltipElement>;
550
- }
551
- }
552
- }
@@ -1,2 +0,0 @@
1
- export { Components, JSX } from './components';
2
- export { CatIconRegistry } from './components/cat-icon/cat-icon-registry';
@@ -1 +0,0 @@
1
- export default function (): void;