@haiilo/catalyst 0.4.0 → 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 (170) hide show
  1. package/dist/catalyst/catalyst.css +1 -1
  2. package/dist/catalyst/catalyst.esm.js +1 -1
  3. package/dist/catalyst/catalyst.esm.js.map +1 -1
  4. package/dist/catalyst/index.esm.js +1 -1
  5. package/dist/catalyst/p-23d54bc6.js +2 -0
  6. package/dist/catalyst/p-23d54bc6.js.map +1 -0
  7. package/dist/catalyst/p-84693f87.entry.js +24 -0
  8. package/dist/catalyst/p-84693f87.entry.js.map +1 -0
  9. package/dist/catalyst/p-8f5cfa78.js +2 -0
  10. package/dist/catalyst/p-8f5cfa78.js.map +1 -0
  11. package/dist/catalyst/{p-ed826597.js → p-fa7da4c6.js} +2 -2
  12. package/dist/catalyst/p-fa7da4c6.js.map +1 -0
  13. package/dist/cjs/{app-globals-7f2b1f8e.js → app-globals-50e7504d.js} +9 -2
  14. package/dist/cjs/app-globals-50e7504d.js.map +1 -0
  15. package/dist/cjs/{cat-alert_9.cjs.entry.js → cat-alert_15.cjs.entry.js} +449 -354
  16. package/dist/cjs/cat-alert_15.cjs.entry.js.map +1 -0
  17. package/dist/cjs/cat-icon-registry-6895750f.js +441 -0
  18. package/dist/cjs/cat-icon-registry-6895750f.js.map +1 -0
  19. package/dist/cjs/catalyst.cjs.js +4 -4
  20. package/dist/cjs/{index-c0881ae0.js → index-2db8e23d.js} +1 -2
  21. package/dist/cjs/index-2db8e23d.js.map +1 -0
  22. package/dist/cjs/index.cjs.js +2 -1
  23. package/dist/cjs/index.cjs.js.map +1 -1
  24. package/dist/cjs/loader.cjs.js +4 -4
  25. package/dist/collection/collection-manifest.json +6 -0
  26. package/dist/collection/components/cat-alert/cat-alert.css +11 -6
  27. package/dist/collection/components/cat-alert/cat-alert.js +19 -8
  28. package/dist/collection/components/cat-alert/cat-alert.js.map +1 -1
  29. package/dist/collection/components/cat-badge/cat-badge.css +17 -17
  30. package/dist/collection/components/cat-badge/cat-badge.js +9 -8
  31. package/dist/collection/components/cat-badge/cat-badge.js.map +1 -1
  32. package/dist/collection/components/cat-button/cat-button.css +18 -8
  33. package/dist/collection/components/cat-button/cat-button.js +32 -8
  34. package/dist/collection/components/cat-button/cat-button.js.map +1 -1
  35. package/dist/collection/components/cat-card/cat-card.css +25 -0
  36. package/dist/collection/components/cat-card/cat-card.js +20 -0
  37. package/dist/collection/components/cat-card/cat-card.js.map +1 -0
  38. package/dist/collection/components/cat-checkbox/cat-checkbox.css +105 -0
  39. package/dist/collection/components/cat-checkbox/cat-checkbox.js +314 -0
  40. package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -0
  41. package/dist/collection/components/cat-i18n/cat-i18n-registry.js +69 -0
  42. package/dist/collection/components/cat-i18n/cat-i18n-registry.js.map +1 -0
  43. package/dist/collection/components/cat-icon/cat-icon-registry.js +14 -1
  44. package/dist/collection/components/cat-icon/cat-icon-registry.js.map +1 -1
  45. package/dist/collection/components/cat-icon/cat-icon.css +5 -5
  46. package/dist/collection/components/cat-icon/cat-icon.js +3 -2
  47. package/dist/collection/components/cat-icon/cat-icon.js.map +1 -1
  48. package/dist/collection/components/cat-input/cat-input.css +131 -0
  49. package/dist/collection/components/cat-input/cat-input.js +606 -0
  50. package/dist/collection/components/cat-input/cat-input.js.map +1 -0
  51. package/dist/collection/components/cat-menu/cat-menu.css +2 -1
  52. package/dist/collection/components/cat-radio/cat-radio.css +84 -0
  53. package/dist/collection/components/cat-radio/cat-radio.js +283 -0
  54. package/dist/collection/components/cat-radio/cat-radio.js.map +1 -0
  55. package/dist/collection/components/cat-scrollable/cat-scrollable.js +4 -2
  56. package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +1 -1
  57. package/dist/collection/components/cat-skeleton/cat-skeleton.css +30 -30
  58. package/dist/collection/components/cat-skeleton/cat-skeleton.js +4 -4
  59. package/dist/collection/components/cat-skeleton/cat-skeleton.js.map +1 -1
  60. package/dist/collection/components/cat-spinner/cat-spinner.css +7 -7
  61. package/dist/collection/components/cat-spinner/cat-spinner.js +1 -1
  62. package/dist/collection/components/cat-spinner/cat-spinner.js.map +1 -1
  63. package/dist/collection/components/cat-textarea/cat-textarea.css +74 -0
  64. package/dist/collection/components/cat-textarea/cat-textarea.js +393 -0
  65. package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -0
  66. package/dist/collection/components/cat-toggle/cat-toggle.css +93 -0
  67. package/dist/collection/components/cat-toggle/cat-toggle.js +283 -0
  68. package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -0
  69. package/dist/collection/components/cat-tooltip/cat-tooltip.css +9 -5
  70. package/dist/collection/components/cat-tooltip/cat-tooltip.js +2 -2
  71. package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +1 -1
  72. package/dist/collection/index.js +1 -0
  73. package/dist/collection/index.js.map +1 -1
  74. package/dist/collection/init.js +9 -1
  75. package/dist/collection/init.js.map +1 -1
  76. package/dist/components/cat-alert.js +15 -6
  77. package/dist/components/cat-alert.js.map +1 -1
  78. package/dist/components/cat-badge.js +7 -7
  79. package/dist/components/cat-badge.js.map +1 -1
  80. package/dist/components/cat-button.js +1 -647
  81. package/dist/components/cat-button.js.map +1 -1
  82. package/dist/components/cat-button2.js +346 -0
  83. package/dist/components/cat-button2.js.map +1 -0
  84. package/dist/components/cat-card.d.ts +11 -0
  85. package/dist/components/cat-card.js +35 -0
  86. package/dist/components/cat-card.js.map +1 -0
  87. package/dist/components/cat-checkbox.d.ts +11 -0
  88. package/dist/components/cat-checkbox.js +103 -0
  89. package/dist/components/cat-checkbox.js.map +1 -0
  90. package/dist/components/cat-i18n-registry.js +73 -0
  91. package/dist/components/cat-i18n-registry.js.map +1 -0
  92. package/dist/components/cat-icon-registry.js +15 -1
  93. package/dist/components/cat-icon-registry.js.map +1 -1
  94. package/dist/components/cat-icon2.js +3 -2
  95. package/dist/components/cat-icon2.js.map +1 -1
  96. package/dist/components/cat-input.d.ts +11 -0
  97. package/dist/components/cat-input.js +172 -0
  98. package/dist/components/cat-input.js.map +1 -0
  99. package/dist/components/cat-menu.js +1 -1
  100. package/dist/components/cat-menu.js.map +1 -1
  101. package/dist/components/cat-radio.d.ts +11 -0
  102. package/dist/components/cat-radio.js +93 -0
  103. package/dist/components/cat-radio.js.map +1 -0
  104. package/dist/components/cat-scrollable.js +1 -2
  105. package/dist/components/cat-scrollable.js.map +1 -1
  106. package/dist/components/cat-skeleton.js +5 -5
  107. package/dist/components/cat-skeleton.js.map +1 -1
  108. package/dist/components/cat-spinner2.js +2 -2
  109. package/dist/components/cat-spinner2.js.map +1 -1
  110. package/dist/components/cat-textarea.d.ts +11 -0
  111. package/dist/components/cat-textarea.js +119 -0
  112. package/dist/components/cat-textarea.js.map +1 -0
  113. package/dist/components/cat-toggle.d.ts +11 -0
  114. package/dist/components/cat-toggle.js +93 -0
  115. package/dist/components/cat-toggle.js.map +1 -0
  116. package/dist/components/cat-tooltip.js +2 -2
  117. package/dist/components/cat-tooltip.js.map +1 -1
  118. package/dist/components/first-tabbable.js +5 -4
  119. package/dist/components/first-tabbable.js.map +1 -1
  120. package/dist/components/index.js +9 -0
  121. package/dist/components/index.js.map +1 -1
  122. package/dist/components/loglevel.js +315 -0
  123. package/dist/components/loglevel.js.map +1 -0
  124. package/dist/esm/{app-globals-8af9b2cf.js → app-globals-6906ac5c.js} +9 -2
  125. package/dist/esm/app-globals-6906ac5c.js.map +1 -0
  126. package/dist/esm/{cat-alert_9.entry.js → cat-alert_15.entry.js} +442 -353
  127. package/dist/esm/cat-alert_15.entry.js.map +1 -0
  128. package/dist/esm/cat-icon-registry-77963c26.js +437 -0
  129. package/dist/esm/cat-icon-registry-77963c26.js.map +1 -0
  130. package/dist/esm/catalyst.js +4 -4
  131. package/dist/esm/{index-0ff35bca.js → index-1f3ca03b.js} +2 -2
  132. package/dist/esm/index-1f3ca03b.js.map +1 -0
  133. package/dist/esm/index.js +1 -1
  134. package/dist/esm/loader.js +4 -4
  135. package/dist/types/components/cat-alert/cat-alert.d.ts +4 -2
  136. package/dist/types/components/cat-badge/cat-badge.d.ts +3 -2
  137. package/dist/types/components/cat-button/cat-button.d.ts +8 -3
  138. package/dist/types/components/cat-card/cat-card.d.ts +7 -0
  139. package/dist/types/components/cat-checkbox/cat-checkbox.d.ts +69 -0
  140. package/dist/types/components/cat-i18n/cat-i18n-registry.d.ts +18 -0
  141. package/dist/types/components/cat-icon/cat-icon-registry.d.ts +4 -4
  142. package/dist/types/components/cat-icon/cat-icon.d.ts +1 -1
  143. package/dist/types/components/cat-input/cat-input.d.ts +130 -0
  144. package/dist/types/components/cat-radio/cat-radio.d.ts +63 -0
  145. package/dist/types/components/cat-scrollable/cat-scrollable.d.ts +3 -1
  146. package/dist/types/components/cat-textarea/cat-textarea.d.ts +85 -0
  147. package/dist/types/components/cat-toggle/cat-toggle.d.ts +64 -0
  148. package/dist/types/components.d.ts +619 -4
  149. package/dist/types/index.d.ts +1 -0
  150. package/package.json +5 -3
  151. package/dist/catalyst/p-89a97b7b.entry.js +0 -10
  152. package/dist/catalyst/p-89a97b7b.entry.js.map +0 -1
  153. package/dist/catalyst/p-ed826597.js.map +0 -1
  154. package/dist/catalyst/p-ef0a8ae9.js +0 -2
  155. package/dist/catalyst/p-ef0a8ae9.js.map +0 -1
  156. package/dist/catalyst/p-f151cb13.js +0 -2
  157. package/dist/catalyst/p-f151cb13.js.map +0 -1
  158. package/dist/cjs/app-globals-7f2b1f8e.js.map +0 -1
  159. package/dist/cjs/cat-alert_9.cjs.entry.js.map +0 -1
  160. package/dist/cjs/cat-icon-registry-850c538c.js +0 -47
  161. package/dist/cjs/cat-icon-registry-850c538c.js.map +0 -1
  162. package/dist/cjs/index-c0881ae0.js.map +0 -1
  163. package/dist/collection/utils/utils.js +0 -4
  164. package/dist/collection/utils/utils.js.map +0 -1
  165. package/dist/esm/app-globals-8af9b2cf.js.map +0 -1
  166. package/dist/esm/cat-alert_9.entry.js.map +0 -1
  167. package/dist/esm/cat-icon-registry-59da2e37.js +0 -45
  168. package/dist/esm/cat-icon-registry-59da2e37.js.map +0 -1
  169. package/dist/esm/index-0ff35bca.js.map +0 -1
  170. package/dist/types/utils/utils.d.ts +0 -1
@@ -41,6 +41,10 @@ export namespace Components {
41
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
42
  */
43
43
  "a11yLabel"?: string;
44
+ /**
45
+ * Show an active status indicator on the left side of the button.
46
+ */
47
+ "active": boolean;
44
48
  /**
45
49
  * 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
50
  */
@@ -66,9 +70,9 @@ export namespace Components {
66
70
  */
67
71
  "iconOnly": boolean | Breakpoint;
68
72
  /**
69
- * Display the icon as a suffix.
73
+ * Display the icon on the right.
70
74
  */
71
- "iconSuffix": boolean;
75
+ "iconRight": boolean;
72
76
  /**
73
77
  * 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
78
  */
@@ -111,6 +115,47 @@ export namespace Components {
111
115
  */
112
116
  "variant": 'filled' | 'outlined' | 'text';
113
117
  }
118
+ interface CatCard {
119
+ }
120
+ interface CatCheckbox {
121
+ /**
122
+ * Checked state of the checkbox
123
+ */
124
+ "checked": boolean;
125
+ /**
126
+ * Disabled state of the checkbox
127
+ */
128
+ "disabled": boolean;
129
+ /**
130
+ * Indeterminate state of the checkbox
131
+ */
132
+ "indeterminate": boolean;
133
+ /**
134
+ * Label of the checkbox which is presented in the UI
135
+ */
136
+ "label": string;
137
+ /**
138
+ * Visually hide the label, but still show it to assistive technologies like screen readers.
139
+ */
140
+ "labelHidden": boolean;
141
+ /**
142
+ * The name of the input
143
+ */
144
+ "name"?: string;
145
+ /**
146
+ * Required state of the checkbox
147
+ */
148
+ "required": boolean;
149
+ /**
150
+ * Sets focus on the checkbox. Use this method instead of `checkbox.focus()`.
151
+ * @param options An optional object providing options to control aspects of the focusing process.
152
+ */
153
+ "setFocus": (options?: FocusOptions | undefined) => Promise<void>;
154
+ /**
155
+ * The value of the checkbox
156
+ */
157
+ "value"?: string;
158
+ }
114
159
  interface CatIcon {
115
160
  /**
116
161
  * 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.
@@ -125,12 +170,142 @@ export namespace Components {
125
170
  */
126
171
  "size": 'xs' | 's' | 'm' | 'l' | 'xl' | 'inline';
127
172
  }
173
+ interface CatInput {
174
+ /**
175
+ * Hint for form autofill feature.
176
+ */
177
+ "autoComplete"?: string;
178
+ /**
179
+ * Clear the input.
180
+ */
181
+ "clear": () => Promise<void>;
182
+ /**
183
+ * Whether the input should show a clear button.
184
+ */
185
+ "clearable": boolean;
186
+ /**
187
+ * Whether the input is disabled.
188
+ */
189
+ "disabled": boolean;
190
+ /**
191
+ * Optional hint text to be displayed with the input.
192
+ */
193
+ "hint"?: string;
194
+ /**
195
+ * The name of an icon to be displayed in the input.
196
+ */
197
+ "icon"?: string;
198
+ /**
199
+ * Display the icon on the right.
200
+ */
201
+ "iconRight": boolean;
202
+ /**
203
+ * The label for the input.
204
+ */
205
+ "label": string;
206
+ /**
207
+ * Visually hide the label, but still show it to assistive technologies like screen readers.
208
+ */
209
+ "labelHidden": boolean;
210
+ /**
211
+ * A maximum value for numeric values.
212
+ */
213
+ "max"?: number;
214
+ /**
215
+ * A maximum length (number of characters) for textual values.
216
+ */
217
+ "maxLength"?: number;
218
+ /**
219
+ * A minimum value for numeric values.
220
+ */
221
+ "min"?: number;
222
+ /**
223
+ * A minimum length (number of characters) for textual values.
224
+ */
225
+ "minLength"?: number;
226
+ /**
227
+ * The name of the form control. Submitted with the form as part of a name/value pair.
228
+ */
229
+ "name": string;
230
+ /**
231
+ * The placeholder text to display within the input.
232
+ */
233
+ "placeholder"?: string;
234
+ /**
235
+ * The value is not editable.
236
+ */
237
+ "readonly": boolean;
238
+ /**
239
+ * A value is required or must be check for the form to be submittable.
240
+ */
241
+ "required": boolean;
242
+ /**
243
+ * Use round input edges.
244
+ */
245
+ "round": boolean;
246
+ /**
247
+ * Sets focus on the input. Use this method instead of `input.focus()`.
248
+ * @param options An optional object providing options to control aspects of the focusing process.
249
+ */
250
+ "setFocus": (options?: FocusOptions | undefined) => Promise<void>;
251
+ /**
252
+ * A textual prefix to be displayed in the input.
253
+ */
254
+ "textPrefix"?: string;
255
+ /**
256
+ * A textual suffix to be displayed in the input.
257
+ */
258
+ "textSuffix"?: string;
259
+ /**
260
+ * Type of form control.
261
+ */
262
+ "type": 'text' | 'email' | 'password' | 'tel' | 'url' | 'search' | 'number';
263
+ /**
264
+ * The initial value of the control.
265
+ */
266
+ "value"?: string | number;
267
+ }
128
268
  interface CatMenu {
129
269
  /**
130
270
  * The placement of the menu.
131
271
  */
132
272
  "placement": Placement;
133
273
  }
274
+ interface CatRadio {
275
+ /**
276
+ * Whether this radio is checked.
277
+ */
278
+ "checked": boolean;
279
+ /**
280
+ * Whether this radio is disabled.
281
+ */
282
+ "disabled": boolean;
283
+ /**
284
+ * The label of the radio that is visible.
285
+ */
286
+ "label": string;
287
+ /**
288
+ * Visually hide the label, but still show it to assistive technologies like screen readers.
289
+ */
290
+ "labelHidden": boolean;
291
+ /**
292
+ * The name of the radio component.
293
+ */
294
+ "name"?: string;
295
+ /**
296
+ * Whether the radio is required.
297
+ */
298
+ "required": boolean;
299
+ /**
300
+ * Sets focus on the radio. Use this method instead of `radio.focus()`.
301
+ * @param options An optional object providing options to control aspects of the focusing process.
302
+ */
303
+ "setFocus": (options?: FocusOptions | undefined) => Promise<void>;
304
+ /**
305
+ * The value of the radio component.
306
+ */
307
+ "value"?: string;
308
+ }
134
309
  interface CatScrollable {
135
310
  /**
136
311
  * Flags to enable/disable overflowX.
@@ -189,6 +364,96 @@ export namespace Components {
189
364
  */
190
365
  "size": 'xs' | 's' | 'm' | 'l' | 'xl' | 'inline';
191
366
  }
367
+ interface CatTextarea {
368
+ /**
369
+ * Whether the textarea is disabled.
370
+ */
371
+ "disabled": boolean;
372
+ /**
373
+ * Optional hint text to be displayed with the textarea.
374
+ */
375
+ "hint"?: string;
376
+ /**
377
+ * The label for the textarea.
378
+ */
379
+ "label": string;
380
+ /**
381
+ * Visually hide the label, but still show it to assistive technologies like screen readers.
382
+ */
383
+ "labelHidden": boolean;
384
+ /**
385
+ * A maximum length (number of characters) for textual values.
386
+ */
387
+ "maxLength"?: number;
388
+ /**
389
+ * A minimum length (number of characters) for textual values.
390
+ */
391
+ "minLength"?: number;
392
+ /**
393
+ * The name of the form control. Submitted with the form as part of a name/value pair.
394
+ */
395
+ "name": string;
396
+ /**
397
+ * The placeholder text to display within the input.
398
+ */
399
+ "placeholder"?: string;
400
+ /**
401
+ * The value is not editable.
402
+ */
403
+ "readonly": boolean;
404
+ /**
405
+ * A value is required or must be check for the form to be submittable.
406
+ */
407
+ "required": boolean;
408
+ /**
409
+ * Specifies the initial number of lines in the textarea.
410
+ */
411
+ "rows": number;
412
+ /**
413
+ * Sets focus on the textarea. Use this method instead of `textarea.focus()`.
414
+ * @param options An optional object providing options to control aspects of the focusing process.
415
+ */
416
+ "setFocus": (options?: FocusOptions | undefined) => Promise<void>;
417
+ /**
418
+ * The initial value of the control.
419
+ */
420
+ "value"?: string | number;
421
+ }
422
+ interface CatToggle {
423
+ /**
424
+ * Checked state of the toggle.
425
+ */
426
+ "checked": boolean;
427
+ /**
428
+ * Disabled state of the toggle.
429
+ */
430
+ "disabled": boolean;
431
+ /**
432
+ * The label of the toggle that is visible.
433
+ */
434
+ "label": string;
435
+ /**
436
+ * Visually hide the label, but still show it to assistive technologies like screen readers.
437
+ */
438
+ "labelHidden": boolean;
439
+ /**
440
+ * The name of the input
441
+ */
442
+ "name"?: string;
443
+ /**
444
+ * Required state of the toggle
445
+ */
446
+ "required": boolean;
447
+ /**
448
+ * Sets focus on the toggle. Use this method instead of `toggle.focus()`.
449
+ * @param options An optional object providing options to control aspects of the focusing process.
450
+ */
451
+ "setFocus": (options?: FocusOptions | undefined) => Promise<void>;
452
+ /**
453
+ * The value of the toggle
454
+ */
455
+ "value"?: string;
456
+ }
192
457
  interface CatTooltip {
193
458
  /**
194
459
  * The content of the tooltip.
@@ -235,18 +500,42 @@ declare global {
235
500
  prototype: HTMLCatButtonElement;
236
501
  new (): HTMLCatButtonElement;
237
502
  };
503
+ interface HTMLCatCardElement extends Components.CatCard, HTMLStencilElement {
504
+ }
505
+ var HTMLCatCardElement: {
506
+ prototype: HTMLCatCardElement;
507
+ new (): HTMLCatCardElement;
508
+ };
509
+ interface HTMLCatCheckboxElement extends Components.CatCheckbox, HTMLStencilElement {
510
+ }
511
+ var HTMLCatCheckboxElement: {
512
+ prototype: HTMLCatCheckboxElement;
513
+ new (): HTMLCatCheckboxElement;
514
+ };
238
515
  interface HTMLCatIconElement extends Components.CatIcon, HTMLStencilElement {
239
516
  }
240
517
  var HTMLCatIconElement: {
241
518
  prototype: HTMLCatIconElement;
242
519
  new (): HTMLCatIconElement;
243
520
  };
521
+ interface HTMLCatInputElement extends Components.CatInput, HTMLStencilElement {
522
+ }
523
+ var HTMLCatInputElement: {
524
+ prototype: HTMLCatInputElement;
525
+ new (): HTMLCatInputElement;
526
+ };
244
527
  interface HTMLCatMenuElement extends Components.CatMenu, HTMLStencilElement {
245
528
  }
246
529
  var HTMLCatMenuElement: {
247
530
  prototype: HTMLCatMenuElement;
248
531
  new (): HTMLCatMenuElement;
249
532
  };
533
+ interface HTMLCatRadioElement extends Components.CatRadio, HTMLStencilElement {
534
+ }
535
+ var HTMLCatRadioElement: {
536
+ prototype: HTMLCatRadioElement;
537
+ new (): HTMLCatRadioElement;
538
+ };
250
539
  interface HTMLCatScrollableElement extends Components.CatScrollable, HTMLStencilElement {
251
540
  }
252
541
  var HTMLCatScrollableElement: {
@@ -265,6 +554,18 @@ declare global {
265
554
  prototype: HTMLCatSpinnerElement;
266
555
  new (): HTMLCatSpinnerElement;
267
556
  };
557
+ interface HTMLCatTextareaElement extends Components.CatTextarea, HTMLStencilElement {
558
+ }
559
+ var HTMLCatTextareaElement: {
560
+ prototype: HTMLCatTextareaElement;
561
+ new (): HTMLCatTextareaElement;
562
+ };
563
+ interface HTMLCatToggleElement extends Components.CatToggle, HTMLStencilElement {
564
+ }
565
+ var HTMLCatToggleElement: {
566
+ prototype: HTMLCatToggleElement;
567
+ new (): HTMLCatToggleElement;
568
+ };
268
569
  interface HTMLCatTooltipElement extends Components.CatTooltip, HTMLStencilElement {
269
570
  }
270
571
  var HTMLCatTooltipElement: {
@@ -275,11 +576,17 @@ declare global {
275
576
  "cat-alert": HTMLCatAlertElement;
276
577
  "cat-badge": HTMLCatBadgeElement;
277
578
  "cat-button": HTMLCatButtonElement;
579
+ "cat-card": HTMLCatCardElement;
580
+ "cat-checkbox": HTMLCatCheckboxElement;
278
581
  "cat-icon": HTMLCatIconElement;
582
+ "cat-input": HTMLCatInputElement;
279
583
  "cat-menu": HTMLCatMenuElement;
584
+ "cat-radio": HTMLCatRadioElement;
280
585
  "cat-scrollable": HTMLCatScrollableElement;
281
586
  "cat-skeleton": HTMLCatSkeletonElement;
282
587
  "cat-spinner": HTMLCatSpinnerElement;
588
+ "cat-textarea": HTMLCatTextareaElement;
589
+ "cat-toggle": HTMLCatToggleElement;
283
590
  "cat-tooltip": HTMLCatTooltipElement;
284
591
  }
285
592
  }
@@ -317,6 +624,10 @@ declare namespace LocalJSX {
317
624
  * 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
625
  */
319
626
  "a11yLabel"?: string;
627
+ /**
628
+ * Show an active status indicator on the left side of the button.
629
+ */
630
+ "active"?: boolean;
320
631
  /**
321
632
  * 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
633
  */
@@ -342,9 +653,9 @@ declare namespace LocalJSX {
342
653
  */
343
654
  "iconOnly"?: boolean | Breakpoint;
344
655
  /**
345
- * Display the icon as a suffix.
656
+ * Display the icon on the right.
346
657
  */
347
- "iconSuffix"?: boolean;
658
+ "iconRight"?: boolean;
348
659
  /**
349
660
  * 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
661
  */
@@ -394,6 +705,54 @@ declare namespace LocalJSX {
394
705
  */
395
706
  "variant"?: 'filled' | 'outlined' | 'text';
396
707
  }
708
+ interface CatCard {
709
+ }
710
+ interface CatCheckbox {
711
+ /**
712
+ * Checked state of the checkbox
713
+ */
714
+ "checked"?: boolean;
715
+ /**
716
+ * Disabled state of the checkbox
717
+ */
718
+ "disabled"?: boolean;
719
+ /**
720
+ * Indeterminate state of the checkbox
721
+ */
722
+ "indeterminate"?: boolean;
723
+ /**
724
+ * Label of the checkbox which is presented in the UI
725
+ */
726
+ "label"?: string;
727
+ /**
728
+ * Visually hide the label, but still show it to assistive technologies like screen readers.
729
+ */
730
+ "labelHidden"?: boolean;
731
+ /**
732
+ * The name of the input
733
+ */
734
+ "name"?: string;
735
+ /**
736
+ * Emitted when the checkbox loses focus.
737
+ */
738
+ "onCatBlur"?: (event: CustomEvent<FocusEvent>) => void;
739
+ /**
740
+ * Emitted when the checked status of the checkbox is changed.
741
+ */
742
+ "onCatChange"?: (event: CustomEvent<any>) => void;
743
+ /**
744
+ * Emitted when the checkbox received focus.
745
+ */
746
+ "onCatFocus"?: (event: CustomEvent<FocusEvent>) => void;
747
+ /**
748
+ * Required state of the checkbox
749
+ */
750
+ "required"?: boolean;
751
+ /**
752
+ * The value of the checkbox
753
+ */
754
+ "value"?: string;
755
+ }
397
756
  interface CatIcon {
398
757
  /**
399
758
  * 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.
@@ -408,6 +767,104 @@ declare namespace LocalJSX {
408
767
  */
409
768
  "size"?: 'xs' | 's' | 'm' | 'l' | 'xl' | 'inline';
410
769
  }
770
+ interface CatInput {
771
+ /**
772
+ * Hint for form autofill feature.
773
+ */
774
+ "autoComplete"?: string;
775
+ /**
776
+ * Whether the input should show a clear button.
777
+ */
778
+ "clearable"?: boolean;
779
+ /**
780
+ * Whether the input is disabled.
781
+ */
782
+ "disabled"?: boolean;
783
+ /**
784
+ * Optional hint text to be displayed with the input.
785
+ */
786
+ "hint"?: string;
787
+ /**
788
+ * The name of an icon to be displayed in the input.
789
+ */
790
+ "icon"?: string;
791
+ /**
792
+ * Display the icon on the right.
793
+ */
794
+ "iconRight"?: boolean;
795
+ /**
796
+ * The label for the input.
797
+ */
798
+ "label"?: string;
799
+ /**
800
+ * Visually hide the label, but still show it to assistive technologies like screen readers.
801
+ */
802
+ "labelHidden"?: boolean;
803
+ /**
804
+ * A maximum value for numeric values.
805
+ */
806
+ "max"?: number;
807
+ /**
808
+ * A maximum length (number of characters) for textual values.
809
+ */
810
+ "maxLength"?: number;
811
+ /**
812
+ * A minimum value for numeric values.
813
+ */
814
+ "min"?: number;
815
+ /**
816
+ * A minimum length (number of characters) for textual values.
817
+ */
818
+ "minLength"?: number;
819
+ /**
820
+ * The name of the form control. Submitted with the form as part of a name/value pair.
821
+ */
822
+ "name"?: string;
823
+ /**
824
+ * Emitted when the input loses focus.
825
+ */
826
+ "onCatBlur"?: (event: CustomEvent<FocusEvent>) => void;
827
+ /**
828
+ * Emitted when the value is changed.
829
+ */
830
+ "onCatChange"?: (event: CustomEvent<any>) => void;
831
+ /**
832
+ * Emitted when the input received focus.
833
+ */
834
+ "onCatFocus"?: (event: CustomEvent<FocusEvent>) => void;
835
+ /**
836
+ * The placeholder text to display within the input.
837
+ */
838
+ "placeholder"?: string;
839
+ /**
840
+ * The value is not editable.
841
+ */
842
+ "readonly"?: boolean;
843
+ /**
844
+ * A value is required or must be check for the form to be submittable.
845
+ */
846
+ "required"?: boolean;
847
+ /**
848
+ * Use round input edges.
849
+ */
850
+ "round"?: boolean;
851
+ /**
852
+ * A textual prefix to be displayed in the input.
853
+ */
854
+ "textPrefix"?: string;
855
+ /**
856
+ * A textual suffix to be displayed in the input.
857
+ */
858
+ "textSuffix"?: string;
859
+ /**
860
+ * Type of form control.
861
+ */
862
+ "type"?: 'text' | 'email' | 'password' | 'tel' | 'url' | 'search' | 'number';
863
+ /**
864
+ * The initial value of the control.
865
+ */
866
+ "value"?: string | number;
867
+ }
411
868
  interface CatMenu {
412
869
  /**
413
870
  * Emitted when the menu is closed.
@@ -422,6 +879,48 @@ declare namespace LocalJSX {
422
879
  */
423
880
  "placement"?: Placement;
424
881
  }
882
+ interface CatRadio {
883
+ /**
884
+ * Whether this radio is checked.
885
+ */
886
+ "checked"?: boolean;
887
+ /**
888
+ * Whether this radio is disabled.
889
+ */
890
+ "disabled"?: boolean;
891
+ /**
892
+ * The label of the radio that is visible.
893
+ */
894
+ "label"?: string;
895
+ /**
896
+ * Visually hide the label, but still show it to assistive technologies like screen readers.
897
+ */
898
+ "labelHidden"?: boolean;
899
+ /**
900
+ * The name of the radio component.
901
+ */
902
+ "name"?: string;
903
+ /**
904
+ * Emitted when the radio loses focus.
905
+ */
906
+ "onCatBlur"?: (event: CustomEvent<FocusEvent>) => void;
907
+ /**
908
+ * Emitted when the radio is changed.
909
+ */
910
+ "onCatChange"?: (event: CustomEvent<any>) => void;
911
+ /**
912
+ * Emitted when the radio received focus.
913
+ */
914
+ "onCatFocus"?: (event: CustomEvent<FocusEvent>) => void;
915
+ /**
916
+ * Whether the radio is required.
917
+ */
918
+ "required"?: boolean;
919
+ /**
920
+ * The value of the radio component.
921
+ */
922
+ "value"?: string;
923
+ }
425
924
  interface CatScrollable {
426
925
  /**
427
926
  * Emitted when the content is fully scrolled to the bottom.
@@ -496,6 +995,110 @@ declare namespace LocalJSX {
496
995
  */
497
996
  "size"?: 'xs' | 's' | 'm' | 'l' | 'xl' | 'inline';
498
997
  }
998
+ interface CatTextarea {
999
+ /**
1000
+ * Whether the textarea is disabled.
1001
+ */
1002
+ "disabled"?: boolean;
1003
+ /**
1004
+ * Optional hint text to be displayed with the textarea.
1005
+ */
1006
+ "hint"?: string;
1007
+ /**
1008
+ * The label for the textarea.
1009
+ */
1010
+ "label"?: string;
1011
+ /**
1012
+ * Visually hide the label, but still show it to assistive technologies like screen readers.
1013
+ */
1014
+ "labelHidden"?: boolean;
1015
+ /**
1016
+ * A maximum length (number of characters) for textual values.
1017
+ */
1018
+ "maxLength"?: number;
1019
+ /**
1020
+ * A minimum length (number of characters) for textual values.
1021
+ */
1022
+ "minLength"?: number;
1023
+ /**
1024
+ * The name of the form control. Submitted with the form as part of a name/value pair.
1025
+ */
1026
+ "name"?: string;
1027
+ /**
1028
+ * Emitted when the textarea loses focus.
1029
+ */
1030
+ "onCatBlur"?: (event: CustomEvent<FocusEvent>) => void;
1031
+ /**
1032
+ * Emitted when the value is changed.
1033
+ */
1034
+ "onCatChange"?: (event: CustomEvent<any>) => void;
1035
+ /**
1036
+ * Emitted when the textarea received focus.
1037
+ */
1038
+ "onCatFocus"?: (event: CustomEvent<FocusEvent>) => void;
1039
+ /**
1040
+ * The placeholder text to display within the input.
1041
+ */
1042
+ "placeholder"?: string;
1043
+ /**
1044
+ * The value is not editable.
1045
+ */
1046
+ "readonly"?: boolean;
1047
+ /**
1048
+ * A value is required or must be check for the form to be submittable.
1049
+ */
1050
+ "required"?: boolean;
1051
+ /**
1052
+ * Specifies the initial number of lines in the textarea.
1053
+ */
1054
+ "rows"?: number;
1055
+ /**
1056
+ * The initial value of the control.
1057
+ */
1058
+ "value"?: string | number;
1059
+ }
1060
+ interface CatToggle {
1061
+ /**
1062
+ * Checked state of the toggle.
1063
+ */
1064
+ "checked"?: boolean;
1065
+ /**
1066
+ * Disabled state of the toggle.
1067
+ */
1068
+ "disabled"?: boolean;
1069
+ /**
1070
+ * The label of the toggle that is visible.
1071
+ */
1072
+ "label"?: string;
1073
+ /**
1074
+ * Visually hide the label, but still show it to assistive technologies like screen readers.
1075
+ */
1076
+ "labelHidden"?: boolean;
1077
+ /**
1078
+ * The name of the input
1079
+ */
1080
+ "name"?: string;
1081
+ /**
1082
+ * Emitted when the toggle loses focus.
1083
+ */
1084
+ "onCatBlur"?: (event: CustomEvent<FocusEvent>) => void;
1085
+ /**
1086
+ * Emitted when the checked status of the toggle is changed.
1087
+ */
1088
+ "onCatChange"?: (event: CustomEvent<any>) => void;
1089
+ /**
1090
+ * Emitted when the toggle received focus.
1091
+ */
1092
+ "onCatFocus"?: (event: CustomEvent<FocusEvent>) => void;
1093
+ /**
1094
+ * Required state of the toggle
1095
+ */
1096
+ "required"?: boolean;
1097
+ /**
1098
+ * The value of the toggle
1099
+ */
1100
+ "value"?: string;
1101
+ }
499
1102
  interface CatTooltip {
500
1103
  /**
501
1104
  * The content of the tooltip.
@@ -526,11 +1129,17 @@ declare namespace LocalJSX {
526
1129
  "cat-alert": CatAlert;
527
1130
  "cat-badge": CatBadge;
528
1131
  "cat-button": CatButton;
1132
+ "cat-card": CatCard;
1133
+ "cat-checkbox": CatCheckbox;
529
1134
  "cat-icon": CatIcon;
1135
+ "cat-input": CatInput;
530
1136
  "cat-menu": CatMenu;
1137
+ "cat-radio": CatRadio;
531
1138
  "cat-scrollable": CatScrollable;
532
1139
  "cat-skeleton": CatSkeleton;
533
1140
  "cat-spinner": CatSpinner;
1141
+ "cat-textarea": CatTextarea;
1142
+ "cat-toggle": CatToggle;
534
1143
  "cat-tooltip": CatTooltip;
535
1144
  }
536
1145
  }
@@ -541,11 +1150,17 @@ declare module "@stencil/core" {
541
1150
  "cat-alert": LocalJSX.CatAlert & JSXBase.HTMLAttributes<HTMLCatAlertElement>;
542
1151
  "cat-badge": LocalJSX.CatBadge & JSXBase.HTMLAttributes<HTMLCatBadgeElement>;
543
1152
  "cat-button": LocalJSX.CatButton & JSXBase.HTMLAttributes<HTMLCatButtonElement>;
1153
+ "cat-card": LocalJSX.CatCard & JSXBase.HTMLAttributes<HTMLCatCardElement>;
1154
+ "cat-checkbox": LocalJSX.CatCheckbox & JSXBase.HTMLAttributes<HTMLCatCheckboxElement>;
544
1155
  "cat-icon": LocalJSX.CatIcon & JSXBase.HTMLAttributes<HTMLCatIconElement>;
1156
+ "cat-input": LocalJSX.CatInput & JSXBase.HTMLAttributes<HTMLCatInputElement>;
545
1157
  "cat-menu": LocalJSX.CatMenu & JSXBase.HTMLAttributes<HTMLCatMenuElement>;
1158
+ "cat-radio": LocalJSX.CatRadio & JSXBase.HTMLAttributes<HTMLCatRadioElement>;
546
1159
  "cat-scrollable": LocalJSX.CatScrollable & JSXBase.HTMLAttributes<HTMLCatScrollableElement>;
547
1160
  "cat-skeleton": LocalJSX.CatSkeleton & JSXBase.HTMLAttributes<HTMLCatSkeletonElement>;
548
1161
  "cat-spinner": LocalJSX.CatSpinner & JSXBase.HTMLAttributes<HTMLCatSpinnerElement>;
1162
+ "cat-textarea": LocalJSX.CatTextarea & JSXBase.HTMLAttributes<HTMLCatTextareaElement>;
1163
+ "cat-toggle": LocalJSX.CatToggle & JSXBase.HTMLAttributes<HTMLCatToggleElement>;
549
1164
  "cat-tooltip": LocalJSX.CatTooltip & JSXBase.HTMLAttributes<HTMLCatTooltipElement>;
550
1165
  }
551
1166
  }