@haiilo/catalyst 6.4.7 → 6.5.1

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 (135) 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/index.esm.js.map +1 -1
  6. package/dist/catalyst/p-19fad7af.js +2 -0
  7. package/dist/catalyst/p-19fad7af.js.map +1 -0
  8. package/dist/catalyst/p-376b504c.js +3 -0
  9. package/dist/catalyst/p-376b504c.js.map +1 -0
  10. package/dist/catalyst/p-877627af.entry.js +10 -0
  11. package/dist/catalyst/p-877627af.entry.js.map +1 -0
  12. package/dist/cjs/cat-alert_26.cjs.entry.js +173 -86
  13. package/dist/cjs/cat-alert_26.cjs.entry.js.map +1 -1
  14. package/dist/cjs/catalyst.cjs.js +3 -3
  15. package/dist/cjs/catalyst.cjs.js.map +1 -1
  16. package/dist/cjs/{index-6ec4ef6d.js → index-329a3380.js} +111 -29
  17. package/dist/cjs/index-329a3380.js.map +1 -0
  18. package/dist/cjs/index.cjs.js +1 -1
  19. package/dist/cjs/index.cjs.js.map +1 -1
  20. package/dist/cjs/loader.cjs.js +2 -2
  21. package/dist/cjs/{of-eda6baf8.js → of-8545b523.js} +2 -2
  22. package/dist/cjs/of-8545b523.js.map +1 -0
  23. package/dist/collection/collection-manifest.json +2 -2
  24. package/dist/collection/components/cat-alert/cat-alert.css +10 -20
  25. package/dist/collection/components/cat-avatar/cat-avatar.css +2 -2
  26. package/dist/collection/components/cat-badge/cat-badge.css +6 -11
  27. package/dist/collection/components/cat-checkbox/cat-checkbox.js +4 -1
  28. package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
  29. package/dist/collection/components/cat-datepicker/cat-datepicker.config.js +1 -0
  30. package/dist/collection/components/cat-datepicker/cat-datepicker.config.js.map +1 -1
  31. package/dist/collection/components/cat-dropdown/cat-dropdown.js +2 -4
  32. package/dist/collection/components/cat-dropdown/cat-dropdown.js.map +1 -1
  33. package/dist/collection/components/cat-form-hint/cat-form-hint.js +1 -1
  34. package/dist/collection/components/cat-form-hint/cat-form-hint.js.map +1 -1
  35. package/dist/collection/components/cat-form-hint/cat-form-hint.spec.js +1 -1
  36. package/dist/collection/components/cat-form-hint/cat-form-hint.spec.js.map +1 -1
  37. package/dist/collection/components/cat-i18n/cat-i18n-registry.js +1 -1
  38. package/dist/collection/components/cat-i18n/cat-i18n-registry.js.map +1 -1
  39. package/dist/collection/components/cat-input/cat-input.js +20 -4
  40. package/dist/collection/components/cat-input/cat-input.js.map +1 -1
  41. package/dist/collection/components/cat-notification/cat-notification.js +1 -2
  42. package/dist/collection/components/cat-notification/cat-notification.js.map +1 -1
  43. package/dist/collection/components/cat-radio/cat-radio.js +4 -1
  44. package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
  45. package/dist/collection/components/cat-radio-group/cat-radio-group.js +19 -11
  46. package/dist/collection/components/cat-radio-group/cat-radio-group.js.map +1 -1
  47. package/dist/collection/components/cat-scrollable/cat-scrollable.js +1 -3
  48. package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +1 -1
  49. package/dist/collection/components/cat-select/cat-select.css +3 -0
  50. package/dist/collection/components/cat-select/cat-select.js +13 -8
  51. package/dist/collection/components/cat-select/cat-select.js.map +1 -1
  52. package/dist/collection/components/cat-tabs/cat-tabs.js +113 -28
  53. package/dist/collection/components/cat-tabs/cat-tabs.js.map +1 -1
  54. package/dist/collection/components/cat-textarea/cat-textarea.js +5 -2
  55. package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
  56. package/dist/collection/components/cat-toggle/cat-toggle.js +4 -1
  57. package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
  58. package/dist/collection/components/cat-tooltip/cat-tooltip.js +2 -4
  59. package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +1 -1
  60. package/dist/components/cat-alert.js +1 -1
  61. package/dist/components/cat-alert.js.map +1 -1
  62. package/dist/components/cat-avatar2.js +3 -1
  63. package/dist/components/cat-avatar2.js.map +1 -1
  64. package/dist/components/cat-badge.js +1 -1
  65. package/dist/components/cat-badge.js.map +1 -1
  66. package/dist/components/cat-button2.js +3 -1
  67. package/dist/components/cat-button2.js.map +1 -1
  68. package/dist/components/cat-checkbox2.js +4 -1
  69. package/dist/components/cat-checkbox2.js.map +1 -1
  70. package/dist/components/cat-datepicker-inline.js +4 -0
  71. package/dist/components/cat-datepicker-inline.js.map +1 -1
  72. package/dist/components/cat-datepicker.js +6 -0
  73. package/dist/components/cat-datepicker.js.map +1 -1
  74. package/dist/components/cat-datepicker.locale.js +1 -0
  75. package/dist/components/cat-datepicker.locale.js.map +1 -1
  76. package/dist/components/cat-dropdown2.js +44 -25
  77. package/dist/components/cat-dropdown2.js.map +1 -1
  78. package/dist/components/cat-form-group.js +3 -0
  79. package/dist/components/cat-form-group.js.map +1 -1
  80. package/dist/components/cat-form-hint.js +1 -1
  81. package/dist/components/cat-form-hint.js.map +1 -1
  82. package/dist/components/cat-i18n-registry.js +1 -1
  83. package/dist/components/cat-i18n-registry.js.map +1 -1
  84. package/dist/components/cat-input2.js +22 -4
  85. package/dist/components/cat-input2.js.map +1 -1
  86. package/dist/components/cat-radio-group.js +25 -12
  87. package/dist/components/cat-radio-group.js.map +1 -1
  88. package/dist/components/cat-radio.js +4 -1
  89. package/dist/components/cat-radio.js.map +1 -1
  90. package/dist/components/cat-select2.js +18 -6
  91. package/dist/components/cat-select2.js.map +1 -1
  92. package/dist/components/cat-tabs.js +43 -27
  93. package/dist/components/cat-tabs.js.map +1 -1
  94. package/dist/components/cat-textarea.js +7 -2
  95. package/dist/components/cat-textarea.js.map +1 -1
  96. package/dist/components/cat-toggle.js +4 -1
  97. package/dist/components/cat-toggle.js.map +1 -1
  98. package/dist/components/floating-ui.dom.esm.js +16 -5
  99. package/dist/components/floating-ui.dom.esm.js.map +1 -1
  100. package/dist/components/index.d.ts +6 -0
  101. package/dist/components/index.js +1 -1
  102. package/dist/components/index.js.map +1 -1
  103. package/dist/esm/cat-alert_26.entry.js +173 -86
  104. package/dist/esm/cat-alert_26.entry.js.map +1 -1
  105. package/dist/esm/catalyst.js +4 -4
  106. package/dist/esm/catalyst.js.map +1 -1
  107. package/dist/esm/{index-b424aa97.js → index-6af09649.js} +111 -29
  108. package/dist/esm/index-6af09649.js.map +1 -0
  109. package/dist/esm/index.js +2 -2
  110. package/dist/esm/index.js.map +1 -1
  111. package/dist/esm/loader.js +3 -3
  112. package/dist/esm/{of-246f9b35.js → of-a965d8fb.js} +2 -2
  113. package/dist/esm/of-a965d8fb.js.map +1 -0
  114. package/dist/types/components/cat-checkbox/cat-checkbox.d.ts +1 -0
  115. package/dist/types/components/cat-i18n/cat-i18n-registry.d.ts +1 -0
  116. package/dist/types/components/cat-input/cat-input.d.ts +2 -0
  117. package/dist/types/components/cat-radio/cat-radio.d.ts +1 -0
  118. package/dist/types/components/cat-radio-group/cat-radio-group.d.ts +3 -0
  119. package/dist/types/components/cat-select/cat-select.d.ts +1 -0
  120. package/dist/types/components/cat-tabs/cat-tabs.d.ts +23 -4
  121. package/dist/types/components/cat-textarea/cat-textarea.d.ts +1 -0
  122. package/dist/types/components/cat-toggle/cat-toggle.d.ts +1 -0
  123. package/dist/types/components.d.ts +18 -0
  124. package/dist/types/stencil-public-runtime.d.ts +5 -3
  125. package/package.json +18 -18
  126. package/dist/catalyst/p-77eee134.entry.js +0 -10
  127. package/dist/catalyst/p-77eee134.entry.js.map +0 -1
  128. package/dist/catalyst/p-8929f28a.js +0 -2
  129. package/dist/catalyst/p-8929f28a.js.map +0 -1
  130. package/dist/catalyst/p-f0bcebed.js +0 -3
  131. package/dist/catalyst/p-f0bcebed.js.map +0 -1
  132. package/dist/cjs/index-6ec4ef6d.js.map +0 -1
  133. package/dist/cjs/of-eda6baf8.js.map +0 -1
  134. package/dist/esm/index-b424aa97.js.map +0 -1
  135. package/dist/esm/of-246f9b35.js.map +0 -1
@@ -87,6 +87,7 @@ export declare class CatRadio {
87
87
  */
88
88
  doBlur(): Promise<void>;
89
89
  render(): any;
90
+ private get hasHint();
90
91
  private onInput;
91
92
  private onFocus;
92
93
  private onBlur;
@@ -4,6 +4,7 @@ import { EventEmitter } from '../../stencil-public-runtime';
4
4
  */
5
5
  export declare class CatRadioGroup {
6
6
  private catRadioGroup;
7
+ private mutationObserver?;
7
8
  hostElement: HTMLElement;
8
9
  /**
9
10
  * The name of the radio group component.
@@ -43,10 +44,12 @@ export declare class CatRadioGroup {
43
44
  onDisabledChanged(disabled: boolean): void;
44
45
  onLabelLeftChanged(labelLeft: boolean): void;
45
46
  componentDidLoad(): void;
47
+ disconnectedCallback(): void;
46
48
  onKeydown(event: KeyboardEvent): void;
47
49
  onInput(event: MouseEvent): void;
48
50
  onFocus(event: FocusEvent): void;
49
51
  onBlur(event: FocusEvent): void;
50
52
  render(): any;
53
+ private init;
51
54
  private updateTabIndex;
52
55
  }
@@ -220,6 +220,7 @@ export declare class CatSelect {
220
220
  */
221
221
  connect(connector: CatSelectConnector): Promise<void>;
222
222
  render(): any;
223
+ private get hasHint();
223
224
  private get invalid();
224
225
  private get optionsList();
225
226
  private resolve;
@@ -1,3 +1,4 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
1
2
  /**
2
3
  * Tabs are used to display multiple panels to be contained within a single
3
4
  * window, using tabs as a navigational element.
@@ -5,11 +6,9 @@
5
6
  * @part tab - The header of the tab.
6
7
  */
7
8
  export declare class CatTabs {
8
- private buttons;
9
9
  private mutationObserver?;
10
10
  hostElement: HTMLElement;
11
11
  tabs: HTMLCatTabElement[];
12
- activeTabId?: string;
13
12
  /**
14
13
  * The ID of the active tab.
15
14
  */
@@ -18,12 +17,32 @@ export declare class CatTabs {
18
17
  * The alignment of the tabs.
19
18
  */
20
19
  tabsAlign: 'left' | 'center' | 'right' | 'justify';
21
- onActiveTabIdChanged(newActiveTab: string): void;
22
20
  componentWillLoad(): void;
23
21
  componentDidLoad(): void;
24
22
  disconnectedCallback(): void;
23
+ onActiveTabChange(id: string): void;
25
24
  onKeydown(event: KeyboardEvent): void;
25
+ /**
26
+ * Activates the tab with the given id.
27
+ *
28
+ * @param id The tab id.
29
+ */
30
+ setActive(id: string): Promise<void>;
31
+ /**
32
+ * Activates the tab with the given index.
33
+ *
34
+ * @param index The tab index.
35
+ */
36
+ setActiveIndex(index: number): Promise<void>;
37
+ /**
38
+ * Emitted when active tab is changed.
39
+ */
40
+ catChange: EventEmitter<{
41
+ id: string;
42
+ index: number;
43
+ }>;
26
44
  render(): any;
27
- private updateButtonsRef;
28
45
  private syncTabs;
46
+ private canActivate;
47
+ private activate;
29
48
  }
@@ -132,6 +132,7 @@ export declare class CatTextarea {
132
132
  clear(): Promise<void>;
133
133
  onErrorsChanged(value?: boolean | string[] | ErrorMap): void;
134
134
  render(): any;
135
+ private get hasHint();
135
136
  private get invalid();
136
137
  private onInput;
137
138
  private onFocus;
@@ -93,6 +93,7 @@ export declare class CatToggle {
93
93
  */
94
94
  doBlur(): Promise<void>;
95
95
  render(): any;
96
+ private get hasHint();
96
97
  private onInput;
97
98
  private onFocus;
98
99
  private onBlur;
@@ -966,6 +966,16 @@ export namespace Components {
966
966
  * The ID of the active tab.
967
967
  */
968
968
  "activeTab": string;
969
+ /**
970
+ * Activates the tab with the given id.
971
+ * @param id The tab id.
972
+ */
973
+ "setActive": (id: string) => Promise<void>;
974
+ /**
975
+ * Activates the tab with the given index.
976
+ * @param index The tab index.
977
+ */
978
+ "setActiveIndex": (index: number) => Promise<void>;
969
979
  /**
970
980
  * The alignment of the tabs.
971
981
  */
@@ -1209,6 +1219,10 @@ export interface CatTabCustomEvent<T> extends CustomEvent<T> {
1209
1219
  detail: T;
1210
1220
  target: HTMLCatTabElement;
1211
1221
  }
1222
+ export interface CatTabsCustomEvent<T> extends CustomEvent<T> {
1223
+ detail: T;
1224
+ target: HTMLCatTabsElement;
1225
+ }
1212
1226
  export interface CatTextareaCustomEvent<T> extends CustomEvent<T> {
1213
1227
  detail: T;
1214
1228
  target: HTMLCatTextareaElement;
@@ -2492,6 +2506,10 @@ declare namespace LocalJSX {
2492
2506
  * The ID of the active tab.
2493
2507
  */
2494
2508
  "activeTab"?: string;
2509
+ /**
2510
+ * Emitted when active tab is changed.
2511
+ */
2512
+ "onCatChange"?: (event: CatTabsCustomEvent<{ id: string; index: number }>) => void;
2495
2513
  /**
2496
2514
  * The alignment of the tabs.
2497
2515
  */
@@ -62,7 +62,7 @@ export interface PropOptions {
62
62
  /**
63
63
  * The name of the associated DOM attribute.
64
64
  * Stencil uses different heuristics to determine the default name of the attribute,
65
- * but using this property, you can override the default behaviour.
65
+ * but using this property, you can override the default behavior.
66
66
  */
67
67
  attribute?: string | null;
68
68
  /**
@@ -128,7 +128,7 @@ export interface ListenOptions {
128
128
  * By default, Stencil uses several heuristics to determine if
129
129
  * it must attach a `passive` event listener or not.
130
130
  *
131
- * Using the `passive` option can be used to change the default behaviour.
131
+ * Using the `passive` option can be used to change the default behavior.
132
132
  * Please see https://developers.google.com/web/updates/2016/06/passive-event-listeners for further information.
133
133
  */
134
134
  passive?: boolean;
@@ -471,7 +471,7 @@ export interface FunctionalUtilities {
471
471
  /**
472
472
  * Utility for reading the children of a functional component at runtime.
473
473
  * Since the Stencil runtime uses a different interface for children it is
474
- * not recommendeded to read the children directly, and is preferable to use
474
+ * not recommended to read the children directly, and is preferable to use
475
475
  * this utility to, for instance, perform a side effect for each child.
476
476
  */
477
477
  forEach: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => void) => void;
@@ -872,6 +872,8 @@ export declare namespace JSXBase {
872
872
  }
873
873
  interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
874
874
  alt?: string;
875
+ crossOrigin?: string;
876
+ crossorigin?: string;
875
877
  decoding?: 'async' | 'auto' | 'sync';
876
878
  importance?: 'low' | 'auto' | 'high';
877
879
  height?: number | string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haiilo/catalyst",
3
- "version": "6.4.7",
3
+ "version": "6.5.1",
4
4
  "description": "Catalyst Design System",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -24,49 +24,49 @@
24
24
  "access": "public"
25
25
  },
26
26
  "peerDependencies": {
27
- "@haiilo/catalyst-icons": ">=0.3.10",
27
+ "@haiilo/catalyst-icons": ">=1.0.0",
28
28
  "rxjs": "^7.5.5"
29
29
  },
30
30
  "dependencies": {
31
- "@floating-ui/dom": "1.5.1",
32
- "@stencil/core": "4.0.5",
31
+ "@floating-ui/dom": "1.5.3",
32
+ "@stencil/core": "4.4.1",
33
33
  "autosize": "6.0.1",
34
34
  "autosize-input": "1.0.2",
35
35
  "flatpickr": "4.6.13",
36
- "focus-trap": "7.5.2",
36
+ "focus-trap": "7.5.4",
37
37
  "loglevel": "1.8.1",
38
38
  "sanitize.css": "13.0.0",
39
39
  "tabbable": "6.2.0",
40
40
  "toastify-js": "1.12.0",
41
- "@haiilo/catalyst-tokens": "6.4.7"
41
+ "@haiilo/catalyst-tokens": "6.5.1"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@babel/core": "^7.19.6",
45
45
  "@haiilo/catalyst-icons": "^1.0.7",
46
- "@stencil/angular-output-target": "^0.8.0",
46
+ "@stencil/angular-output-target": "^0.8.2",
47
47
  "@stencil/react-output-target": "^0.5.3",
48
- "@stencil/sass": "^3.0.5",
48
+ "@stencil/sass": "^3.0.6",
49
49
  "@stencil/vue-output-target": "^0.8.6",
50
50
  "@types/autosize": "^4.0.1",
51
- "@types/jest": "^27.5.2",
52
- "@types/node": "^18.16.0",
53
- "@types/toastify-js": "^1.12.0",
54
- "@typescript-eslint/eslint-plugin": "^6.4.0",
55
- "@typescript-eslint/parser": "^6.4.0",
51
+ "@types/jest": "^27.5.1",
52
+ "@types/node": "^18.18.5",
53
+ "@types/toastify-js": "^1.12.1",
54
+ "@typescript-eslint/eslint-plugin": "^6.7.5",
55
+ "@typescript-eslint/parser": "^6.7.5",
56
56
  "babel-loader": "^9.1.3",
57
- "eslint": "^8.47.0",
57
+ "eslint": "^8.51.0",
58
58
  "eslint-config-prettier": "^9.0.0",
59
59
  "jest": "^27.5.1",
60
60
  "jest-cli": "^27.5.1",
61
- "prettier": "^3.0.2",
61
+ "prettier": "^3.0.3",
62
62
  "puppeteer": "^20.7.3",
63
63
  "replace-in-file": "^7.0.1",
64
64
  "rxjs": "^7.5.5",
65
65
  "stencil-inline-svg": "^1.1.0",
66
- "stylelint": "^15.10.2",
66
+ "stylelint": "^15.10.3",
67
67
  "stylelint-config-prettier-scss": "^1.0.0",
68
- "stylelint-config-standard-scss": "^10.0.0",
69
- "typescript": "~4.7.4"
68
+ "stylelint-config-standard-scss": "^11.0.0",
69
+ "typescript": "~5.2.2"
70
70
  },
71
71
  "scripts": {
72
72
  "build": "stencil build --docs",