@haiilo/catalyst 10.28.2 → 10.30.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 (74) hide show
  1. package/dist/catalyst/catalyst.css +3 -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-41a50f19.entry.js +10 -0
  6. package/dist/catalyst/p-41a50f19.entry.js.map +1 -0
  7. package/dist/catalyst/{p-e5aee21d.js → p-9500d6fb.js} +1 -1
  8. package/dist/catalyst/{p-e5aee21d.js.map → p-9500d6fb.js.map} +1 -1
  9. package/dist/catalyst/scss/core/_notification.scss +4 -1
  10. package/dist/catalyst/scss/utils/_elevation.mixins.scss +8 -2
  11. package/dist/cjs/cat-alert_30.cjs.entry.js +274 -180
  12. package/dist/cjs/cat-alert_30.cjs.entry.js.map +1 -1
  13. package/dist/cjs/catalyst.cjs.js +1 -1
  14. package/dist/cjs/index.cjs.js +1 -1
  15. package/dist/cjs/loader.cjs.js +1 -1
  16. package/dist/cjs/{of-aaee31a6.js → of-958251e4.js} +1 -1
  17. package/dist/cjs/{of-aaee31a6.js.map → of-958251e4.js.map} +1 -1
  18. package/dist/collection/components/cat-button/cat-button.css +1 -1
  19. package/dist/collection/components/cat-date/cat-date.js +8 -7
  20. package/dist/collection/components/cat-date/cat-date.js.map +1 -1
  21. package/dist/collection/components/cat-date-inline/cat-date-inline.js +10 -8
  22. package/dist/collection/components/cat-date-inline/cat-date-inline.js.map +1 -1
  23. package/dist/collection/components/cat-date-inline/cat-date-locale.js +2 -4
  24. package/dist/collection/components/cat-date-inline/cat-date-locale.js.map +1 -1
  25. package/dist/collection/components/cat-datepicker/cat-datepicker.js +9 -8
  26. package/dist/collection/components/cat-datepicker/cat-datepicker.js.map +1 -1
  27. package/dist/collection/components/cat-dropdown/cat-dropdown.js +1 -1
  28. package/dist/collection/components/cat-input/cat-input.js +8 -4
  29. package/dist/collection/components/cat-input/cat-input.js.map +1 -1
  30. package/dist/collection/components/cat-select/cat-select.js +1 -1
  31. package/dist/collection/components/cat-textarea/cat-textarea.js +25 -3
  32. package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
  33. package/dist/collection/components/cat-time/cat-time.js +8 -7
  34. package/dist/collection/components/cat-time/cat-time.js.map +1 -1
  35. package/dist/collection/components/cat-tooltip/cat-tooltip.css +18 -9
  36. package/dist/collection/scss/core/_notification.scss +4 -1
  37. package/dist/collection/scss/utils/_elevation.mixins.scss +8 -2
  38. package/dist/components/cat-button2.js +1 -1
  39. package/dist/components/cat-button2.js.map +1 -1
  40. package/dist/components/cat-date-inline2.js +12 -12
  41. package/dist/components/cat-date-inline2.js.map +1 -1
  42. package/dist/components/cat-date.js +3 -3
  43. package/dist/components/cat-date.js.map +1 -1
  44. package/dist/components/cat-datepicker.js +4 -4
  45. package/dist/components/cat-datepicker.js.map +1 -1
  46. package/dist/components/cat-dropdown2.js +169 -118
  47. package/dist/components/cat-dropdown2.js.map +1 -1
  48. package/dist/components/cat-input2.js +7 -4
  49. package/dist/components/cat-input2.js.map +1 -1
  50. package/dist/components/cat-textarea.js +8 -3
  51. package/dist/components/cat-textarea.js.map +1 -1
  52. package/dist/components/cat-time.js +3 -3
  53. package/dist/components/cat-time.js.map +1 -1
  54. package/dist/components/cat-tooltip.js +1 -1
  55. package/dist/components/cat-tooltip.js.map +1 -1
  56. package/dist/components/floating-ui.dom.esm.js +67 -29
  57. package/dist/components/floating-ui.dom.esm.js.map +1 -1
  58. package/dist/components/loglevel.js.map +1 -1
  59. package/dist/esm/cat-alert_30.entry.js +274 -180
  60. package/dist/esm/cat-alert_30.entry.js.map +1 -1
  61. package/dist/esm/catalyst.js +1 -1
  62. package/dist/esm/index.js +2 -2
  63. package/dist/esm/loader.js +1 -1
  64. package/dist/esm/{of-acb1f3a9.js → of-e4ec2eb4.js} +1 -1
  65. package/dist/esm/{of-acb1f3a9.js.map → of-e4ec2eb4.js.map} +1 -1
  66. package/dist/types/components/cat-date/cat-date.d.ts +1 -1
  67. package/dist/types/components/cat-datepicker/cat-datepicker.d.ts +1 -1
  68. package/dist/types/components/cat-input/cat-input.d.ts +2 -0
  69. package/dist/types/components/cat-textarea/cat-textarea.d.ts +6 -0
  70. package/dist/types/components/cat-time/cat-time.d.ts +1 -1
  71. package/dist/types/components.d.ts +11 -3
  72. package/package.json +8 -8
  73. package/dist/catalyst/p-ee89e395.entry.js +0 -10
  74. package/dist/catalyst/p-ee89e395.entry.js.map +0 -1
@@ -22,7 +22,7 @@ export declare class CatDate {
22
22
  /**
23
23
  * Hint for form autofill feature.
24
24
  */
25
- autoComplete?: string;
25
+ autoComplete: string;
26
26
  /**
27
27
  * Whether the input should show a clear button.
28
28
  */
@@ -22,7 +22,7 @@ export declare class CatDatepickerFlat {
22
22
  /**
23
23
  * Hint for form autofill feature.
24
24
  */
25
- autoComplete?: string;
25
+ autoComplete: string;
26
26
  /**
27
27
  * Whether the input should show a clear button.
28
28
  */
@@ -9,6 +9,7 @@ import { InputType } from './input-type';
9
9
  *
10
10
  * @slot hint - Optional hint element to be displayed with the input.
11
11
  * @slot label - The slotted label. If both the label property and the label slot are present, only the label slot will be displayed.
12
+ * @slot counter - Custom counter element to be displayed in the top right corner of the label.
12
13
  * @part label - The native label element.
13
14
  * @part input - The native input element.
14
15
  * @part prefix - The text prefix.
@@ -22,6 +23,7 @@ export declare class CatInput {
22
23
  hostElement: HTMLElement;
23
24
  hasSlottedLabel: boolean;
24
25
  hasSlottedHint: boolean;
26
+ hasSlottedCounter: boolean;
25
27
  isPasswordShown: boolean;
26
28
  errorMap?: ErrorMap | true;
27
29
  /**
@@ -7,6 +7,7 @@ import { ErrorMap } from '../cat-form-hint/cat-form-hint';
7
7
  *
8
8
  * @slot hint - Optional hint element to be displayed with the textarea.
9
9
  * @slot label - The slotted label. If both the label property and the label slot are present, only the label slot will be displayed.
10
+ * @slot counter - Custom counter element to be displayed in the top right corner of the label.
10
11
  * @part label - The native label element.
11
12
  * @part textarea - The native textarea element.
12
13
  */
@@ -18,6 +19,7 @@ export declare class CatTextarea {
18
19
  hostElement: HTMLElement;
19
20
  hasSlottedLabel: boolean;
20
21
  hasSlottedHint: boolean;
22
+ hasSlottedCounter: boolean;
21
23
  errorMap?: ErrorMap | true;
22
24
  /**
23
25
  * Whether the label need a marker to shown if the textarea is required or optional.
@@ -27,6 +29,10 @@ export declare class CatTextarea {
27
29
  * Whether the label is on top or left.
28
30
  */
29
31
  horizontal: boolean;
32
+ /**
33
+ * Hint for form autofill feature.
34
+ */
35
+ autoComplete?: string;
30
36
  /**
31
37
  * Whether the textarea is disabled.
32
38
  */
@@ -25,7 +25,7 @@ export declare class CatTime {
25
25
  /**
26
26
  * Hint for form autofill feature.
27
27
  */
28
- autoComplete?: string;
28
+ autoComplete: string;
29
29
  /**
30
30
  * Whether the input should show a clear button.
31
31
  */
@@ -328,7 +328,7 @@ export namespace Components {
328
328
  /**
329
329
  * Hint for form autofill feature.
330
330
  */
331
- "autoComplete"?: string;
331
+ "autoComplete": string;
332
332
  /**
333
333
  * Clear the input.
334
334
  */
@@ -522,7 +522,7 @@ export namespace Components {
522
522
  /**
523
523
  * Hint for form autofill feature.
524
524
  */
525
- "autoComplete"?: string;
525
+ "autoComplete": string;
526
526
  /**
527
527
  * Whether the input should show a clear button.
528
528
  */
@@ -1361,6 +1361,10 @@ export namespace Components {
1361
1361
  * input component.
1362
1362
  */
1363
1363
  interface CatTextarea {
1364
+ /**
1365
+ * Hint for form autofill feature.
1366
+ */
1367
+ "autoComplete"?: string;
1364
1368
  /**
1365
1369
  * Clear the textarea.
1366
1370
  */
@@ -1454,7 +1458,7 @@ export namespace Components {
1454
1458
  /**
1455
1459
  * Hint for form autofill feature.
1456
1460
  */
1457
- "autoComplete"?: string;
1461
+ "autoComplete": string;
1458
1462
  /**
1459
1463
  * Clear the input.
1460
1464
  */
@@ -3695,6 +3699,10 @@ declare namespace LocalJSX {
3695
3699
  * input component.
3696
3700
  */
3697
3701
  interface CatTextarea {
3702
+ /**
3703
+ * Hint for form autofill feature.
3704
+ */
3705
+ "autoComplete"?: string;
3698
3706
  /**
3699
3707
  * Whether the textarea is disabled.
3700
3708
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haiilo/catalyst",
3
- "version": "10.28.2",
3
+ "version": "10.30.0",
4
4
  "description": "Catalyst Design System",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -28,19 +28,18 @@
28
28
  "rxjs": "^7.5.5"
29
29
  },
30
30
  "dependencies": {
31
- "@floating-ui/dom": "1.6.5",
31
+ "@floating-ui/dom": "1.6.13",
32
32
  "@stencil/core": "4.18.3",
33
- "@types/cleave.js": "^1.4.12",
34
33
  "autosize": "6.0.1",
35
34
  "autosize-input": "1.0.2",
36
35
  "cleave.js": "^1.6.0",
37
36
  "flatpickr": "4.6.13",
38
- "focus-trap": "7.5.4",
39
- "loglevel": "1.9.1",
37
+ "focus-trap": "7.6.4",
38
+ "loglevel": "1.9.2",
40
39
  "sanitize.css": "13.0.0",
41
40
  "tabbable": "6.2.0",
42
41
  "toastify-js": "1.12.0",
43
- "@haiilo/catalyst-tokens": "10.28.2"
42
+ "@haiilo/catalyst-tokens": "10.30.0"
44
43
  },
45
44
  "devDependencies": {
46
45
  "@babel/core": "^7.24.7",
@@ -50,6 +49,7 @@
50
49
  "@stencil/sass": "^3.0.12",
51
50
  "@stencil/vue-output-target": "^0.8.7",
52
51
  "@types/autosize": "^4.0.3",
52
+ "@types/cleave.js": "^1.4.12",
53
53
  "@types/jest": "^29.5.10",
54
54
  "@types/node": "^20.14.2",
55
55
  "@types/toastify-js": "^1.12.3",
@@ -65,9 +65,9 @@
65
65
  "replace-in-file": "^7.2.0",
66
66
  "rxjs": "^7.5.5",
67
67
  "stencil-inline-svg": "^1.1.0",
68
- "stylelint": "^16.6.1",
68
+ "stylelint": "^16.14.1",
69
69
  "stylelint-config-prettier-scss": "^1.0.0",
70
- "stylelint-config-standard-scss": "^13.0.0",
70
+ "stylelint-config-standard-scss": "^14.0.0",
71
71
  "typescript": "~5.4.5"
72
72
  },
73
73
  "scripts": {