@haiilo/catalyst 4.0.0 → 4.1.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.
- package/dist/catalyst/catalyst.css +1 -0
- package/dist/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/catalyst.esm.js.map +1 -1
- package/dist/catalyst/p-ccfebe33.js.map +1 -1
- package/dist/catalyst/p-e92ee75d.entry.js +10 -0
- package/dist/catalyst/p-e92ee75d.entry.js.map +1 -0
- package/dist/catalyst/scss/core/_typography.scss +1 -0
- package/dist/cjs/cat-alert_24.cjs.entry.js +173 -40
- package/dist/cjs/cat-alert_24.cjs.entry.js.map +1 -1
- package/dist/cjs/cat-icon-registry-671af264.js.map +1 -1
- package/dist/cjs/catalyst.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/cat-avatar/cat-avatar.css +1 -0
- package/dist/collection/components/cat-checkbox/cat-checkbox.js +16 -1
- package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
- package/dist/collection/components/cat-form-hint/cat-form-hint-utils.js +13 -0
- package/dist/collection/components/cat-form-hint/cat-form-hint-utils.js.map +1 -0
- package/dist/collection/components/cat-i18n/cat-i18n-registry.js.map +1 -1
- package/dist/collection/components/cat-input/cat-input.css +1 -1
- package/dist/collection/components/cat-input/cat-input.js +64 -57
- package/dist/collection/components/cat-input/cat-input.js.map +1 -1
- package/dist/collection/components/cat-radio/cat-radio.js +16 -1
- package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
- package/dist/collection/components/cat-select/cat-select.css +256 -0
- package/dist/collection/components/cat-select/cat-select.js +96 -10
- package/dist/collection/components/cat-select/cat-select.js.map +1 -1
- package/dist/collection/components/cat-select-demo/cat-select-demo.js +52 -5
- package/dist/collection/components/cat-select-demo/cat-select-demo.js.map +1 -1
- package/dist/collection/components/cat-textarea/cat-textarea.css +261 -1
- package/dist/collection/components/cat-textarea/cat-textarea.js +102 -10
- package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
- package/dist/collection/components/cat-toggle/cat-toggle.js +16 -1
- package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
- package/dist/collection/scss/core/_typography.scss +1 -0
- package/dist/components/cat-avatar2.js +1 -1
- package/dist/components/cat-avatar2.js.map +1 -1
- package/dist/components/cat-checkbox2.js +2 -1
- package/dist/components/cat-checkbox2.js.map +1 -1
- package/dist/components/cat-form-hint-utils.js +17 -0
- package/dist/components/cat-form-hint-utils.js.map +1 -0
- package/dist/components/cat-i18n-registry.js.map +1 -1
- package/dist/components/cat-input.js +39 -21
- package/dist/components/cat-input.js.map +1 -1
- package/dist/components/cat-radio.js +2 -1
- package/dist/components/cat-radio.js.map +1 -1
- package/dist/components/cat-select-demo.js +51 -6
- package/dist/components/cat-select-demo.js.map +1 -1
- package/dist/components/cat-select2.js +40 -9
- package/dist/components/cat-select2.js.map +1 -1
- package/dist/components/cat-textarea.js +50 -7
- package/dist/components/cat-textarea.js.map +1 -1
- package/dist/components/cat-toggle.js +2 -1
- package/dist/components/cat-toggle.js.map +1 -1
- package/dist/esm/cat-alert_24.entry.js +173 -40
- package/dist/esm/cat-alert_24.entry.js.map +1 -1
- package/dist/esm/cat-icon-registry-d6b80490.js.map +1 -1
- package/dist/esm/catalyst.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/cat-checkbox/cat-checkbox.d.ts +6 -0
- package/dist/types/components/cat-form-hint/cat-form-hint-utils.d.ts +4 -0
- package/dist/types/components/cat-i18n/cat-i18n-registry.d.ts +1 -1
- package/dist/types/components/cat-input/cat-input.d.ts +17 -11
- package/dist/types/components/cat-radio/cat-radio.d.ts +6 -0
- package/dist/types/components/cat-select/cat-select.d.ts +28 -2
- package/dist/types/components/cat-select-demo/cat-select-demo.d.ts +2 -0
- package/dist/types/components/cat-textarea/cat-textarea.d.ts +27 -1
- package/dist/types/components/cat-toggle/cat-toggle.d.ts +6 -0
- package/dist/types/components.d.ts +85 -20
- package/package.json +2 -2
- package/dist/catalyst/p-0a46696e.entry.js +0 -10
- package/dist/catalyst/p-0a46696e.entry.js.map +0 -1
|
@@ -8,6 +8,7 @@ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
|
8
8
|
import { Breakpoint } from "./utils/breakpoints";
|
|
9
9
|
import { Placement } from "@floating-ui/dom";
|
|
10
10
|
import { InputType } from "./components/cat-input/input-type";
|
|
11
|
+
import { ErrorMap } from "./components/cat-form-hint/cat-form-hint-utils";
|
|
11
12
|
import { CatSelectConnector, CatSelectMultipleTaggingValue, CatSelectTaggingValue, Item } from "./components/cat-select/cat-select";
|
|
12
13
|
import { Observable } from "rxjs";
|
|
13
14
|
export namespace Components {
|
|
@@ -232,6 +233,10 @@ export namespace Components {
|
|
|
232
233
|
* The name of the input
|
|
233
234
|
*/
|
|
234
235
|
"name"?: string;
|
|
236
|
+
/**
|
|
237
|
+
* Attributes that will be added to the native HTML input element.
|
|
238
|
+
*/
|
|
239
|
+
"nativeAttributes"?: { [key: string]: string };
|
|
235
240
|
/**
|
|
236
241
|
* Required state of the checkbox
|
|
237
242
|
*/
|
|
@@ -296,10 +301,6 @@ export namespace Components {
|
|
|
296
301
|
* Whether the input should show a clear button.
|
|
297
302
|
*/
|
|
298
303
|
"clearable": boolean;
|
|
299
|
-
/**
|
|
300
|
-
* Disable validation for the input. No error messages or error colors will be shown.
|
|
301
|
-
*/
|
|
302
|
-
"disableValidation": boolean;
|
|
303
304
|
/**
|
|
304
305
|
* Whether the input is disabled.
|
|
305
306
|
*/
|
|
@@ -318,9 +319,13 @@ export namespace Components {
|
|
|
318
319
|
*/
|
|
319
320
|
"doFocus": (options?: FocusOptions | undefined) => Promise<void>;
|
|
320
321
|
/**
|
|
321
|
-
*
|
|
322
|
+
* 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.
|
|
323
|
+
*/
|
|
324
|
+
"errorUpdate": boolean | number;
|
|
325
|
+
/**
|
|
326
|
+
* The validation errors for this input. Will render a hint under the input with the translated error message(s) `error.${key}`. If an object is passed, the keys will be used as error keys and the values translation parameters. If the value is `true`, the input will be marked as invalid without any hints under the input.
|
|
322
327
|
*/
|
|
323
|
-
"errors"?:
|
|
328
|
+
"errors"?: boolean | string[] | ErrorMap;
|
|
324
329
|
/**
|
|
325
330
|
* Optional hint text(s) to be displayed with the input.
|
|
326
331
|
*/
|
|
@@ -337,10 +342,6 @@ export namespace Components {
|
|
|
337
342
|
* A unique identifier for the input.
|
|
338
343
|
*/
|
|
339
344
|
"identifier"?: string;
|
|
340
|
-
/**
|
|
341
|
-
* Flag that indicates if the input is invalid.
|
|
342
|
-
*/
|
|
343
|
-
"invalid": boolean;
|
|
344
345
|
/**
|
|
345
346
|
* The label for the input.
|
|
346
347
|
*/
|
|
@@ -512,6 +513,10 @@ export namespace Components {
|
|
|
512
513
|
* The name of the radio component.
|
|
513
514
|
*/
|
|
514
515
|
"name"?: string;
|
|
516
|
+
/**
|
|
517
|
+
* Attributes that will be added to the native HTML input element.
|
|
518
|
+
*/
|
|
519
|
+
"nativeAttributes"?: { [key: string]: string };
|
|
515
520
|
/**
|
|
516
521
|
* Whether the radio is required.
|
|
517
522
|
*/
|
|
@@ -591,6 +596,14 @@ export namespace Components {
|
|
|
591
596
|
* Whether the select is disabled.
|
|
592
597
|
*/
|
|
593
598
|
"disabled": boolean;
|
|
599
|
+
/**
|
|
600
|
+
* 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.
|
|
601
|
+
*/
|
|
602
|
+
"errorUpdate": boolean | number;
|
|
603
|
+
/**
|
|
604
|
+
* The validation errors for this input. Will render a hint under the input with the translated error message(s) `error.${key}`. If an object is passed, the keys will be used as error keys and the values translation parameters. If the value is `true`, the input will be marked as invalid without any hints under the input.
|
|
605
|
+
*/
|
|
606
|
+
"errors"?: boolean | string[] | ErrorMap;
|
|
594
607
|
/**
|
|
595
608
|
* Optional hint text(s) to be displayed with the select.
|
|
596
609
|
*/
|
|
@@ -615,6 +628,10 @@ export namespace Components {
|
|
|
615
628
|
* The name of the form control. Submitted with the form as part of a name/value pair.
|
|
616
629
|
*/
|
|
617
630
|
"name"?: string;
|
|
631
|
+
/**
|
|
632
|
+
* Attributes that will be added to the native HTML input element.
|
|
633
|
+
*/
|
|
634
|
+
"nativeAttributes"?: { [key: string]: string };
|
|
618
635
|
/**
|
|
619
636
|
* The text to display in the dropdown if no results are found.
|
|
620
637
|
*/
|
|
@@ -736,6 +753,14 @@ export namespace Components {
|
|
|
736
753
|
* @param options An optional object providing options to control aspects of the focusing process.
|
|
737
754
|
*/
|
|
738
755
|
"doFocus": (options?: FocusOptions | undefined) => Promise<void>;
|
|
756
|
+
/**
|
|
757
|
+
* 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.
|
|
758
|
+
*/
|
|
759
|
+
"errorUpdate": boolean | number;
|
|
760
|
+
/**
|
|
761
|
+
* The validation errors for this input. Will render a hint under the input with the translated error message(s) `error.${key}`. If an object is passed, the keys will be used as error keys and the values translation parameters. If the value is `true`, the input will be marked as invalid without any hints under the input.
|
|
762
|
+
*/
|
|
763
|
+
"errors"?: boolean | string[] | ErrorMap;
|
|
739
764
|
/**
|
|
740
765
|
* Optional hint text(s) to be displayed with the textarea.
|
|
741
766
|
*/
|
|
@@ -764,6 +789,10 @@ export namespace Components {
|
|
|
764
789
|
* The name of the form control. Submitted with the form as part of a name/value pair.
|
|
765
790
|
*/
|
|
766
791
|
"name"?: string;
|
|
792
|
+
/**
|
|
793
|
+
* Attributes that will be added to the native HTML textarea element.
|
|
794
|
+
*/
|
|
795
|
+
"nativeAttributes"?: { [key: string]: string };
|
|
767
796
|
/**
|
|
768
797
|
* The placeholder text to display within the input.
|
|
769
798
|
*/
|
|
@@ -835,6 +864,10 @@ export namespace Components {
|
|
|
835
864
|
* The name of the input
|
|
836
865
|
*/
|
|
837
866
|
"name"?: string;
|
|
867
|
+
/**
|
|
868
|
+
* Attributes that will be added to the native HTML input element.
|
|
869
|
+
*/
|
|
870
|
+
"nativeAttributes"?: { [key: string]: string };
|
|
838
871
|
/**
|
|
839
872
|
* Required state of the toggle.
|
|
840
873
|
*/
|
|
@@ -1303,6 +1336,10 @@ declare namespace LocalJSX {
|
|
|
1303
1336
|
* The name of the input
|
|
1304
1337
|
*/
|
|
1305
1338
|
"name"?: string;
|
|
1339
|
+
/**
|
|
1340
|
+
* Attributes that will be added to the native HTML input element.
|
|
1341
|
+
*/
|
|
1342
|
+
"nativeAttributes"?: { [key: string]: string };
|
|
1306
1343
|
/**
|
|
1307
1344
|
* Emitted when the checkbox loses focus.
|
|
1308
1345
|
*/
|
|
@@ -1379,18 +1416,18 @@ declare namespace LocalJSX {
|
|
|
1379
1416
|
* Whether the input should show a clear button.
|
|
1380
1417
|
*/
|
|
1381
1418
|
"clearable"?: boolean;
|
|
1382
|
-
/**
|
|
1383
|
-
* Disable validation for the input. No error messages or error colors will be shown.
|
|
1384
|
-
*/
|
|
1385
|
-
"disableValidation"?: boolean;
|
|
1386
1419
|
/**
|
|
1387
1420
|
* Whether the input is disabled.
|
|
1388
1421
|
*/
|
|
1389
1422
|
"disabled"?: boolean;
|
|
1390
1423
|
/**
|
|
1391
|
-
*
|
|
1424
|
+
* 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.
|
|
1425
|
+
*/
|
|
1426
|
+
"errorUpdate"?: boolean | number;
|
|
1427
|
+
/**
|
|
1428
|
+
* The validation errors for this input. Will render a hint under the input with the translated error message(s) `error.${key}`. If an object is passed, the keys will be used as error keys and the values translation parameters. If the value is `true`, the input will be marked as invalid without any hints under the input.
|
|
1392
1429
|
*/
|
|
1393
|
-
"errors"?:
|
|
1430
|
+
"errors"?: boolean | string[] | ErrorMap;
|
|
1394
1431
|
/**
|
|
1395
1432
|
* Optional hint text(s) to be displayed with the input.
|
|
1396
1433
|
*/
|
|
@@ -1407,10 +1444,6 @@ declare namespace LocalJSX {
|
|
|
1407
1444
|
* A unique identifier for the input.
|
|
1408
1445
|
*/
|
|
1409
1446
|
"identifier"?: string;
|
|
1410
|
-
/**
|
|
1411
|
-
* Flag that indicates if the input is invalid.
|
|
1412
|
-
*/
|
|
1413
|
-
"invalid"?: boolean;
|
|
1414
1447
|
/**
|
|
1415
1448
|
* The label for the input.
|
|
1416
1449
|
*/
|
|
@@ -1581,6 +1614,10 @@ declare namespace LocalJSX {
|
|
|
1581
1614
|
* The name of the radio component.
|
|
1582
1615
|
*/
|
|
1583
1616
|
"name"?: string;
|
|
1617
|
+
/**
|
|
1618
|
+
* Attributes that will be added to the native HTML input element.
|
|
1619
|
+
*/
|
|
1620
|
+
"nativeAttributes"?: { [key: string]: string };
|
|
1584
1621
|
/**
|
|
1585
1622
|
* Emitted when the radio loses focus.
|
|
1586
1623
|
*/
|
|
@@ -1691,6 +1728,14 @@ declare namespace LocalJSX {
|
|
|
1691
1728
|
* Whether the select is disabled.
|
|
1692
1729
|
*/
|
|
1693
1730
|
"disabled"?: boolean;
|
|
1731
|
+
/**
|
|
1732
|
+
* 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.
|
|
1733
|
+
*/
|
|
1734
|
+
"errorUpdate"?: boolean | number;
|
|
1735
|
+
/**
|
|
1736
|
+
* The validation errors for this input. Will render a hint under the input with the translated error message(s) `error.${key}`. If an object is passed, the keys will be used as error keys and the values translation parameters. If the value is `true`, the input will be marked as invalid without any hints under the input.
|
|
1737
|
+
*/
|
|
1738
|
+
"errors"?: boolean | string[] | ErrorMap;
|
|
1694
1739
|
/**
|
|
1695
1740
|
* Optional hint text(s) to be displayed with the select.
|
|
1696
1741
|
*/
|
|
@@ -1715,6 +1760,10 @@ declare namespace LocalJSX {
|
|
|
1715
1760
|
* The name of the form control. Submitted with the form as part of a name/value pair.
|
|
1716
1761
|
*/
|
|
1717
1762
|
"name"?: string;
|
|
1763
|
+
/**
|
|
1764
|
+
* Attributes that will be added to the native HTML input element.
|
|
1765
|
+
*/
|
|
1766
|
+
"nativeAttributes"?: { [key: string]: string };
|
|
1718
1767
|
/**
|
|
1719
1768
|
* The text to display in the dropdown if no results are found.
|
|
1720
1769
|
*/
|
|
@@ -1843,6 +1892,14 @@ declare namespace LocalJSX {
|
|
|
1843
1892
|
* Whether the textarea is disabled.
|
|
1844
1893
|
*/
|
|
1845
1894
|
"disabled"?: boolean;
|
|
1895
|
+
/**
|
|
1896
|
+
* 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.
|
|
1897
|
+
*/
|
|
1898
|
+
"errorUpdate"?: boolean | number;
|
|
1899
|
+
/**
|
|
1900
|
+
* The validation errors for this input. Will render a hint under the input with the translated error message(s) `error.${key}`. If an object is passed, the keys will be used as error keys and the values translation parameters. If the value is `true`, the input will be marked as invalid without any hints under the input.
|
|
1901
|
+
*/
|
|
1902
|
+
"errors"?: boolean | string[] | ErrorMap;
|
|
1846
1903
|
/**
|
|
1847
1904
|
* Optional hint text(s) to be displayed with the textarea.
|
|
1848
1905
|
*/
|
|
@@ -1871,6 +1928,10 @@ declare namespace LocalJSX {
|
|
|
1871
1928
|
* The name of the form control. Submitted with the form as part of a name/value pair.
|
|
1872
1929
|
*/
|
|
1873
1930
|
"name"?: string;
|
|
1931
|
+
/**
|
|
1932
|
+
* Attributes that will be added to the native HTML textarea element.
|
|
1933
|
+
*/
|
|
1934
|
+
"nativeAttributes"?: { [key: string]: string };
|
|
1874
1935
|
/**
|
|
1875
1936
|
* Emitted when the textarea loses focus.
|
|
1876
1937
|
*/
|
|
@@ -1941,6 +2002,10 @@ declare namespace LocalJSX {
|
|
|
1941
2002
|
* The name of the input
|
|
1942
2003
|
*/
|
|
1943
2004
|
"name"?: string;
|
|
2005
|
+
/**
|
|
2006
|
+
* Attributes that will be added to the native HTML input element.
|
|
2007
|
+
*/
|
|
2008
|
+
"nativeAttributes"?: { [key: string]: string };
|
|
1944
2009
|
/**
|
|
1945
2010
|
* Emitted when the toggle loses focus.
|
|
1946
2011
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haiilo/catalyst",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Catalyst Design System",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@floating-ui/dom": "1.0.3",
|
|
49
|
-
"@haiilo/catalyst-tokens": "4.
|
|
49
|
+
"@haiilo/catalyst-tokens": "4.1.1",
|
|
50
50
|
"@stencil/core": "2.17.4",
|
|
51
51
|
"autosize": "5.0.1",
|
|
52
52
|
"autosize-input": "1.0.2",
|