@haiilo/catalyst 10.22.1 → 10.24.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 (101) hide show
  1. package/dist/catalyst/catalyst.css +5 -0
  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/index.esm.js.map +1 -1
  6. package/dist/catalyst/{p-594e46b4.entry.js → p-33a30da2.entry.js} +4 -4
  7. package/dist/catalyst/p-33a30da2.entry.js.map +1 -0
  8. package/dist/catalyst/scss/core/_notification.scss +5 -0
  9. package/dist/cjs/cat-alert_30.cjs.entry.js +97 -88
  10. package/dist/cjs/cat-alert_30.cjs.entry.js.map +1 -1
  11. package/dist/cjs/catalyst.cjs.js +1 -1
  12. package/dist/cjs/index.cjs.js +17 -4
  13. package/dist/cjs/index.cjs.js.map +1 -1
  14. package/dist/cjs/loader.cjs.js +1 -1
  15. package/dist/collection/components/cat-date/cat-date.js +3 -3
  16. package/dist/collection/components/cat-date/cat-date.js.map +1 -1
  17. package/dist/collection/components/cat-date-inline/cat-date-inline.js +6 -4
  18. package/dist/collection/components/cat-date-inline/cat-date-inline.js.map +1 -1
  19. package/dist/collection/components/cat-datepicker/cat-datepicker.js +4 -4
  20. package/dist/collection/components/cat-datepicker/cat-datepicker.js.map +1 -1
  21. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.js +2 -2
  22. package/dist/collection/components/cat-dropdown/cat-dropdown.js +1 -1
  23. package/dist/collection/components/cat-form-group/cat-form-group.js +1 -1
  24. package/dist/collection/components/cat-form-hint/cat-form-hint.js.map +1 -1
  25. package/dist/collection/components/cat-icon/cat-icon.js +1 -1
  26. package/dist/collection/components/cat-input/cat-input.css +1 -0
  27. package/dist/collection/components/cat-input/cat-input.js +35 -14
  28. package/dist/collection/components/cat-input/cat-input.js.map +1 -1
  29. package/dist/collection/components/cat-notification/cat-notification.js +17 -4
  30. package/dist/collection/components/cat-notification/cat-notification.js.map +1 -1
  31. package/dist/collection/components/cat-pagination/cat-pagination.js +2 -2
  32. package/dist/collection/components/cat-radio/cat-radio.js +2 -2
  33. package/dist/collection/components/cat-radio-group/cat-radio-group.js +1 -1
  34. package/dist/collection/components/cat-scrollable/cat-scrollable.js +3 -3
  35. package/dist/collection/components/cat-select/cat-select.js +16 -14
  36. package/dist/collection/components/cat-select/cat-select.js.map +1 -1
  37. package/dist/collection/components/cat-select-demo/cat-select-demo.js +1 -1
  38. package/dist/collection/components/cat-skeleton/cat-skeleton.js +1 -1
  39. package/dist/collection/components/cat-spinner/cat-spinner.js +2 -2
  40. package/dist/collection/components/cat-tab/cat-tab.js +1 -1
  41. package/dist/collection/components/cat-tabs/cat-tabs.js +1 -1
  42. package/dist/collection/components/cat-tag/cat-tag.js +26 -18
  43. package/dist/collection/components/cat-tag/cat-tag.js.map +1 -1
  44. package/dist/collection/components/cat-textarea/cat-textarea.js +15 -13
  45. package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
  46. package/dist/collection/components/cat-time/cat-time.js +3 -3
  47. package/dist/collection/components/cat-time/cat-time.js.map +1 -1
  48. package/dist/collection/components/cat-toggle/cat-toggle.js +2 -2
  49. package/dist/collection/scss/core/_notification.scss +5 -0
  50. package/dist/components/cat-date-inline2.js +4 -4
  51. package/dist/components/cat-date-inline2.js.map +1 -1
  52. package/dist/components/cat-date.js +2 -2
  53. package/dist/components/cat-date.js.map +1 -1
  54. package/dist/components/cat-datepicker-inline.js +2 -2
  55. package/dist/components/cat-datepicker.js +3 -3
  56. package/dist/components/cat-datepicker.js.map +1 -1
  57. package/dist/components/cat-dropdown2.js +1 -1
  58. package/dist/components/cat-form-group.js +1 -1
  59. package/dist/components/cat-form-hint.js.map +1 -1
  60. package/dist/components/cat-icon2.js +1 -1
  61. package/dist/components/cat-input2.js +18 -14
  62. package/dist/components/cat-input2.js.map +1 -1
  63. package/dist/components/cat-pagination.js +2 -2
  64. package/dist/components/cat-radio-group.js +1 -1
  65. package/dist/components/cat-radio.js +2 -2
  66. package/dist/components/cat-scrollable2.js +3 -3
  67. package/dist/components/cat-select-demo.js +1 -1
  68. package/dist/components/cat-select2.js +15 -13
  69. package/dist/components/cat-select2.js.map +1 -1
  70. package/dist/components/cat-skeleton2.js +1 -1
  71. package/dist/components/cat-spinner2.js +2 -2
  72. package/dist/components/cat-tab.js +1 -1
  73. package/dist/components/cat-tabs.js +1 -1
  74. package/dist/components/cat-tag.js +19 -17
  75. package/dist/components/cat-tag.js.map +1 -1
  76. package/dist/components/cat-textarea.js +14 -12
  77. package/dist/components/cat-textarea.js.map +1 -1
  78. package/dist/components/cat-time.js +2 -2
  79. package/dist/components/cat-time.js.map +1 -1
  80. package/dist/components/cat-toggle.js +2 -2
  81. package/dist/components/index.js +17 -4
  82. package/dist/components/index.js.map +1 -1
  83. package/dist/esm/cat-alert_30.entry.js +97 -88
  84. package/dist/esm/cat-alert_30.entry.js.map +1 -1
  85. package/dist/esm/catalyst.js +1 -1
  86. package/dist/esm/index.js +17 -4
  87. package/dist/esm/index.js.map +1 -1
  88. package/dist/esm/loader.js +1 -1
  89. package/dist/types/components/cat-date/cat-date.d.ts +1 -1
  90. package/dist/types/components/cat-date-inline/cat-date-inline.d.ts +2 -0
  91. package/dist/types/components/cat-datepicker/cat-datepicker.d.ts +1 -1
  92. package/dist/types/components/cat-form-hint/cat-form-hint.d.ts +1 -1
  93. package/dist/types/components/cat-input/cat-input.d.ts +8 -3
  94. package/dist/types/components/cat-notification/cat-notification.d.ts +4 -4
  95. package/dist/types/components/cat-select/cat-select.d.ts +4 -3
  96. package/dist/types/components/cat-tag/cat-tag.d.ts +15 -8
  97. package/dist/types/components/cat-textarea/cat-textarea.d.ts +4 -3
  98. package/dist/types/components/cat-time/cat-time.d.ts +1 -1
  99. package/dist/types/components.d.ts +34 -14
  100. package/package.json +2 -2
  101. package/dist/catalyst/p-594e46b4.entry.js.map +0 -1
@@ -18,7 +18,7 @@ export declare class CatTextarea {
18
18
  hostElement: HTMLElement;
19
19
  hasSlottedLabel: boolean;
20
20
  hasSlottedHint: boolean;
21
- errorMap?: ErrorMap;
21
+ errorMap?: ErrorMap | true;
22
22
  /**
23
23
  * Whether the label need a marker to shown if the textarea is required or optional.
24
24
  */
@@ -91,7 +91,7 @@ export declare class CatTextarea {
91
91
  /**
92
92
  * Fine-grained control over when the errors are shown. Can be `false` to
93
93
  * never show errors, `true` to show errors on blur, or a number to show
94
- * errors on change with the given delay in milliseconds.
94
+ * errors change with the given delay in milliseconds or immediately on blur.
95
95
  */
96
96
  errorUpdate: boolean | number;
97
97
  /**
@@ -112,6 +112,7 @@ export declare class CatTextarea {
112
112
  * Emitted when the textarea loses focus.
113
113
  */
114
114
  catBlur: EventEmitter<FocusEvent>;
115
+ componentWillLoad(): void;
115
116
  componentWillRender(): void;
116
117
  componentDidLoad(): void;
117
118
  /**
@@ -131,7 +132,7 @@ export declare class CatTextarea {
131
132
  * Clear the textarea.
132
133
  */
133
134
  clear(): Promise<void>;
134
- onErrorsChanged(value?: boolean | string[] | ErrorMap): void;
135
+ onErrorsChanged(newValue?: boolean | string[] | ErrorMap, _oldValue?: unknown, update?: boolean): void;
135
136
  render(): any;
136
137
  private get hasHint();
137
138
  private get invalid();
@@ -106,7 +106,7 @@ export declare class CatTime {
106
106
  /**
107
107
  * Fine-grained control over when the errors are shown. Can be `false` to
108
108
  * never show errors, `true` to show errors on blur, or a number to show
109
- * errors on change with the given delay in milliseconds.
109
+ * errors change with the given delay in milliseconds or immediately on blur.
110
110
  */
111
111
  errorUpdate: boolean | number;
112
112
  /**
@@ -339,7 +339,7 @@ export namespace Components {
339
339
  */
340
340
  "doFocus": (options?: FocusOptions) => Promise<void>;
341
341
  /**
342
- * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors on change with the given delay in milliseconds.
342
+ * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors change with the given delay in milliseconds or immediately on blur.
343
343
  */
344
344
  "errorUpdate": boolean | number;
345
345
  /**
@@ -529,7 +529,7 @@ export namespace Components {
529
529
  */
530
530
  "doFocus": (options?: FocusOptions) => Promise<void>;
531
531
  /**
532
- * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors on change with the given delay in milliseconds.
532
+ * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors change with the given delay in milliseconds or immediately on blur.
533
533
  */
534
534
  "errorUpdate": boolean | number;
535
535
  /**
@@ -777,7 +777,7 @@ export namespace Components {
777
777
  */
778
778
  "doFocus": (options?: FocusOptions) => Promise<void>;
779
779
  /**
780
- * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors on change with the given delay in milliseconds.
780
+ * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors change with the given delay in milliseconds or immediately on blur.
781
781
  */
782
782
  "errorUpdate": boolean | number;
783
783
  /**
@@ -812,6 +812,10 @@ export namespace Components {
812
812
  * Visually hide the label, but still show it to assistive technologies like screen readers.
813
813
  */
814
814
  "labelHidden": boolean;
815
+ /**
816
+ * Displays the input in a loading state with a spinner.
817
+ */
818
+ "loading": boolean;
815
819
  /**
816
820
  * Adds a Cleave.js mask to the input.
817
821
  * @param options The Cleave.js options.
@@ -1089,7 +1093,7 @@ export namespace Components {
1089
1093
  */
1090
1094
  "doFocus": (options?: FocusOptions) => Promise<void>;
1091
1095
  /**
1092
- * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors on change with the given delay in milliseconds.
1096
+ * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors change with the given delay in milliseconds or immediately on blur.
1093
1097
  */
1094
1098
  "errorUpdate": boolean | number;
1095
1099
  /**
@@ -1262,6 +1266,9 @@ export namespace Components {
1262
1266
  */
1263
1267
  "tabsAlign": 'left' | 'center' | 'right' | 'justify';
1264
1268
  }
1269
+ /**
1270
+ * An input that allows multiple values to be entered as tags.
1271
+ */
1265
1272
  interface CatTag {
1266
1273
  /**
1267
1274
  * Whether the input should show a clear button.
@@ -1272,7 +1279,7 @@ export namespace Components {
1272
1279
  */
1273
1280
  "disabled": boolean;
1274
1281
  /**
1275
- * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors on change with the given delay in milliseconds.
1282
+ * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors change with the given delay in milliseconds or immediately on blur.
1276
1283
  */
1277
1284
  "errorUpdate": boolean | number;
1278
1285
  /**
@@ -1348,7 +1355,7 @@ export namespace Components {
1348
1355
  */
1349
1356
  "doFocus": (options?: FocusOptions) => Promise<void>;
1350
1357
  /**
1351
- * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors on change with the given delay in milliseconds.
1358
+ * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors change with the given delay in milliseconds or immediately on blur.
1352
1359
  */
1353
1360
  "errorUpdate": boolean | number;
1354
1361
  /**
@@ -1446,7 +1453,7 @@ export namespace Components {
1446
1453
  */
1447
1454
  "doFocus": (options?: FocusOptions) => Promise<void>;
1448
1455
  /**
1449
- * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors on change with the given delay in milliseconds.
1456
+ * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors change with the given delay in milliseconds or immediately on blur.
1450
1457
  */
1451
1458
  "errorUpdate": boolean | number;
1452
1459
  /**
@@ -2167,6 +2174,9 @@ declare global {
2167
2174
  "catFocus": FocusEvent;
2168
2175
  "catBlur": FocusEvent;
2169
2176
  }
2177
+ /**
2178
+ * An input that allows multiple values to be entered as tags.
2179
+ */
2170
2180
  interface HTMLCatTagElement extends Components.CatTag, HTMLStencilElement {
2171
2181
  addEventListener<K extends keyof HTMLCatTagElementEventMap>(type: K, listener: (this: HTMLCatTagElement, ev: CatTagCustomEvent<HTMLCatTagElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
2172
2182
  addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -2601,7 +2611,7 @@ declare namespace LocalJSX {
2601
2611
  */
2602
2612
  "disabled"?: boolean;
2603
2613
  /**
2604
- * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors on change with the given delay in milliseconds.
2614
+ * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors change with the given delay in milliseconds or immediately on blur.
2605
2615
  */
2606
2616
  "errorUpdate"?: boolean | number;
2607
2617
  /**
@@ -2780,7 +2790,7 @@ declare namespace LocalJSX {
2780
2790
  */
2781
2791
  "disabled"?: boolean;
2782
2792
  /**
2783
- * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors on change with the given delay in milliseconds.
2793
+ * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors change with the given delay in milliseconds or immediately on blur.
2784
2794
  */
2785
2795
  "errorUpdate"?: boolean | number;
2786
2796
  /**
@@ -3027,7 +3037,7 @@ declare namespace LocalJSX {
3027
3037
  */
3028
3038
  "disabled"?: boolean;
3029
3039
  /**
3030
- * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors on change with the given delay in milliseconds.
3040
+ * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors change with the given delay in milliseconds or immediately on blur.
3031
3041
  */
3032
3042
  "errorUpdate"?: boolean | number;
3033
3043
  /**
@@ -3062,6 +3072,10 @@ declare namespace LocalJSX {
3062
3072
  * Visually hide the label, but still show it to assistive technologies like screen readers.
3063
3073
  */
3064
3074
  "labelHidden"?: boolean;
3075
+ /**
3076
+ * Displays the input in a loading state with a spinner.
3077
+ */
3078
+ "loading"?: boolean;
3065
3079
  /**
3066
3080
  * A maximum value for numeric values.
3067
3081
  */
@@ -3363,7 +3377,7 @@ declare namespace LocalJSX {
3363
3377
  */
3364
3378
  "disabled"?: boolean;
3365
3379
  /**
3366
- * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors on change with the given delay in milliseconds.
3380
+ * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors change with the given delay in milliseconds or immediately on blur.
3367
3381
  */
3368
3382
  "errorUpdate"?: boolean | number;
3369
3383
  /**
@@ -3550,6 +3564,9 @@ declare namespace LocalJSX {
3550
3564
  */
3551
3565
  "tabsAlign"?: 'left' | 'center' | 'right' | 'justify';
3552
3566
  }
3567
+ /**
3568
+ * An input that allows multiple values to be entered as tags.
3569
+ */
3553
3570
  interface CatTag {
3554
3571
  /**
3555
3572
  * Whether the input should show a clear button.
@@ -3560,7 +3577,7 @@ declare namespace LocalJSX {
3560
3577
  */
3561
3578
  "disabled"?: boolean;
3562
3579
  /**
3563
- * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors on change with the given delay in milliseconds.
3580
+ * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors change with the given delay in milliseconds or immediately on blur.
3564
3581
  */
3565
3582
  "errorUpdate"?: boolean | number;
3566
3583
  /**
@@ -3635,7 +3652,7 @@ declare namespace LocalJSX {
3635
3652
  */
3636
3653
  "disabled"?: boolean;
3637
3654
  /**
3638
- * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors on change with the given delay in milliseconds.
3655
+ * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors change with the given delay in milliseconds or immediately on blur.
3639
3656
  */
3640
3657
  "errorUpdate"?: boolean | number;
3641
3658
  /**
@@ -3732,7 +3749,7 @@ declare namespace LocalJSX {
3732
3749
  */
3733
3750
  "disabled"?: boolean;
3734
3751
  /**
3735
- * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors on change with the given delay in milliseconds.
3752
+ * Fine-grained control over when the errors are shown. Can be `false` to never show errors, `true` to show errors on blur, or a number to show errors change with the given delay in milliseconds or immediately on blur.
3736
3753
  */
3737
3754
  "errorUpdate"?: boolean | number;
3738
3755
  /**
@@ -4091,6 +4108,9 @@ declare module "@stencil/core" {
4091
4108
  * window, using tabs as a navigational element.
4092
4109
  */
4093
4110
  "cat-tabs": LocalJSX.CatTabs & JSXBase.HTMLAttributes<HTMLCatTabsElement>;
4111
+ /**
4112
+ * An input that allows multiple values to be entered as tags.
4113
+ */
4094
4114
  "cat-tag": LocalJSX.CatTag & JSXBase.HTMLAttributes<HTMLCatTagElement>;
4095
4115
  /**
4096
4116
  * Textarea specifies a control that allows user to write text over multiple
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haiilo/catalyst",
3
- "version": "10.22.1",
3
+ "version": "10.24.0",
4
4
  "description": "Catalyst Design System",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -40,7 +40,7 @@
40
40
  "sanitize.css": "13.0.0",
41
41
  "tabbable": "6.2.0",
42
42
  "toastify-js": "1.12.0",
43
- "@haiilo/catalyst-tokens": "10.22.1"
43
+ "@haiilo/catalyst-tokens": "10.24.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@babel/core": "^7.24.7",