@haiilo/catalyst 0.6.0 → 0.7.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.
- package/dist/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/catalyst.esm.js.map +1 -1
- package/dist/catalyst/p-12486027.js.map +1 -1
- package/dist/catalyst/p-12b96af6.js +2 -0
- package/dist/catalyst/p-12b96af6.js.map +1 -0
- package/dist/catalyst/p-4c9cd203.entry.js +2 -0
- package/dist/catalyst/p-4c9cd203.entry.js.map +1 -0
- package/dist/catalyst/p-5616e2cd.js +2 -0
- package/dist/catalyst/p-5616e2cd.js.map +1 -0
- package/dist/catalyst/p-9d2eab4f.entry.js +10 -0
- package/dist/catalyst/p-9d2eab4f.entry.js.map +1 -0
- package/dist/cjs/app-globals-aa29ad72.js.map +1 -1
- package/dist/cjs/{cat-alert_16.cjs.entry.js → cat-alert_18.cjs.entry.js} +169 -43
- package/dist/cjs/cat-alert_18.cjs.entry.js.map +1 -0
- package/dist/cjs/cat-form-hint-93a6936b.js +22 -0
- package/dist/cjs/cat-form-hint-93a6936b.js.map +1 -0
- package/dist/cjs/cat-textarea.cjs.entry.js +12 -12
- package/dist/cjs/cat-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/catalyst.cjs.js +2 -2
- package/dist/cjs/{index-5d72f0e4.js → index-499bad41.js} +44 -1
- package/dist/cjs/index-499bad41.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/cat-checkbox/cat-checkbox.css +14 -0
- package/dist/collection/components/cat-checkbox/cat-checkbox.js +43 -11
- package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
- package/dist/collection/components/cat-form-hint/cat-form-hint.js +16 -0
- package/dist/collection/components/cat-form-hint/cat-form-hint.js.map +1 -0
- package/dist/collection/components/cat-input/cat-input.css +12 -6
- package/dist/collection/components/cat-input/cat-input.js +23 -25
- package/dist/collection/components/cat-input/cat-input.js.map +1 -1
- package/dist/collection/components/cat-radio/cat-radio.css +14 -0
- package/dist/collection/components/cat-radio/cat-radio.js +40 -8
- package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
- package/dist/collection/components/cat-tab/cat-tab.css +12 -0
- package/dist/collection/components/cat-tab/cat-tab.js +203 -0
- package/dist/collection/components/cat-tab/cat-tab.js.map +1 -0
- package/dist/collection/components/cat-tabs/cat-tabs.css +33 -0
- package/dist/collection/components/cat-tabs/cat-tabs.js +122 -0
- package/dist/collection/components/cat-tabs/cat-tabs.js.map +1 -0
- package/dist/collection/components/cat-textarea/cat-textarea.css +12 -6
- package/dist/collection/components/cat-textarea/cat-textarea.js +23 -18
- package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
- package/dist/collection/components/cat-toggle/cat-toggle.css +14 -0
- package/dist/collection/components/cat-toggle/cat-toggle.js +39 -7
- package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
- package/dist/collection/components/cat-tooltip/cat-tooltip.js +13 -8
- package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +1 -1
- package/dist/components/cat-checkbox.js +15 -5
- package/dist/components/cat-checkbox.js.map +1 -1
- package/dist/components/cat-form-hint.js +20 -0
- package/dist/components/cat-form-hint.js.map +1 -0
- package/dist/components/cat-input.js +15 -18
- package/dist/components/cat-input.js.map +1 -1
- package/dist/components/cat-radio.js +15 -5
- package/dist/components/cat-radio.js.map +1 -1
- package/dist/components/cat-tab.d.ts +11 -0
- package/dist/components/cat-tab.js +70 -0
- package/dist/components/cat-tab.js.map +1 -0
- package/dist/components/cat-tabs.d.ts +11 -0
- package/dist/components/cat-tabs.js +107 -0
- package/dist/components/cat-tabs.js.map +1 -0
- package/dist/components/cat-textarea.js +13 -12
- package/dist/components/cat-textarea.js.map +1 -1
- package/dist/components/cat-toggle.js +15 -5
- package/dist/components/cat-toggle.js.map +1 -1
- package/dist/components/cat-tooltip.js +13 -8
- package/dist/components/cat-tooltip.js.map +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/esm/app-globals-cf55f7f5.js.map +1 -1
- package/dist/esm/{cat-alert_16.entry.js → cat-alert_18.entry.js} +168 -44
- package/dist/esm/cat-alert_18.entry.js.map +1 -0
- package/dist/esm/cat-form-hint-dc443c7c.js +20 -0
- package/dist/esm/cat-form-hint-dc443c7c.js.map +1 -0
- package/dist/esm/cat-textarea.entry.js +12 -12
- package/dist/esm/cat-textarea.entry.js.map +1 -1
- package/dist/esm/catalyst.js +2 -2
- package/dist/esm/{index-fd12be19.js → index-039e6f5f.js} +44 -2
- package/dist/esm/index-039e6f5f.js.map +1 -0
- package/dist/esm/loader.js +2 -2
- package/dist/types/components/cat-checkbox/cat-checkbox.d.ts +9 -0
- package/dist/types/components/cat-form-hint/cat-form-hint.d.ts +19 -0
- package/dist/types/components/cat-input/cat-input.d.ts +7 -5
- package/dist/types/components/cat-radio/cat-radio.d.ts +9 -0
- package/dist/types/components/cat-tab/cat-tab.d.ts +43 -0
- package/dist/types/components/cat-tabs/cat-tabs.d.ts +25 -0
- package/dist/types/components/cat-textarea/cat-textarea.d.ts +7 -2
- package/dist/types/components/cat-toggle/cat-toggle.d.ts +9 -0
- package/dist/types/components/cat-tooltip/cat-tooltip.d.ts +1 -0
- package/dist/types/components.d.ts +134 -8
- package/package.json +2 -2
- package/dist/catalyst/p-6a5f0d4a.entry.js +0 -10
- package/dist/catalyst/p-6a5f0d4a.entry.js.map +0 -1
- package/dist/catalyst/p-a8629c54.entry.js +0 -2
- package/dist/catalyst/p-a8629c54.entry.js.map +0 -1
- package/dist/catalyst/p-bfc656ca.js +0 -2
- package/dist/catalyst/p-bfc656ca.js.map +0 -1
- package/dist/cjs/cat-alert_16.cjs.entry.js.map +0 -1
- package/dist/cjs/index-5d72f0e4.js.map +0 -1
- package/dist/esm/cat-alert_16.entry.js.map +0 -1
- package/dist/esm/index-fd12be19.js.map +0 -1
|
@@ -3,11 +3,15 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
3
3
|
* Radio Buttons are graphical interface elements that allow user to choose
|
|
4
4
|
* only one of a predefined set of mutually exclusive options.
|
|
5
5
|
*
|
|
6
|
+
* @slot hint - Optional hint element to be displayed with the radio.
|
|
7
|
+
* @slot label - The slotted label. If both the label property and the label slot are present, only the label slot will be displayed.
|
|
6
8
|
* @part label - The label content.
|
|
7
9
|
*/
|
|
8
10
|
export declare class CatRadio {
|
|
9
11
|
private readonly id;
|
|
10
12
|
private input;
|
|
13
|
+
hostElement: HTMLElement;
|
|
14
|
+
hasSlottedLabel: boolean;
|
|
11
15
|
/**
|
|
12
16
|
* Whether this radio is checked.
|
|
13
17
|
*/
|
|
@@ -36,6 +40,10 @@ export declare class CatRadio {
|
|
|
36
40
|
* The value of the radio component.
|
|
37
41
|
*/
|
|
38
42
|
value?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Optional hint text(s) to be displayed with the radio.
|
|
45
|
+
*/
|
|
46
|
+
hint?: string | string[];
|
|
39
47
|
/**
|
|
40
48
|
* Emitted when the radio is changed.
|
|
41
49
|
*/
|
|
@@ -57,6 +65,7 @@ export declare class CatRadio {
|
|
|
57
65
|
*/
|
|
58
66
|
setFocus(options?: FocusOptions): Promise<void>;
|
|
59
67
|
render(): any;
|
|
68
|
+
private get hintSection();
|
|
60
69
|
private onChange;
|
|
61
70
|
private onFocus;
|
|
62
71
|
private onBlur;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { Breakpoint } from '../../utils/breakpoints';
|
|
3
|
+
/**
|
|
4
|
+
* A single tab inside a tabs component.
|
|
5
|
+
*/
|
|
6
|
+
export declare class CatTab {
|
|
7
|
+
hostElement: HTMLElement;
|
|
8
|
+
/**
|
|
9
|
+
* The label of the tab.
|
|
10
|
+
*/
|
|
11
|
+
label: string;
|
|
12
|
+
/**
|
|
13
|
+
* The name of an icon to be displayed in the tab.
|
|
14
|
+
*/
|
|
15
|
+
icon?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Hide the actual button content and only display the tab.
|
|
18
|
+
*/
|
|
19
|
+
iconOnly: boolean | Breakpoint;
|
|
20
|
+
/**
|
|
21
|
+
* Display the icon on the right.
|
|
22
|
+
*/
|
|
23
|
+
iconRight: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* A destination to link to, rendered in the href attribute of a link.
|
|
26
|
+
*/
|
|
27
|
+
url?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Specifies where to open the linked document.
|
|
30
|
+
*/
|
|
31
|
+
urlTarget?: '_blank' | '_self';
|
|
32
|
+
/**
|
|
33
|
+
* Specifies that the tab should be deactivated.
|
|
34
|
+
*/
|
|
35
|
+
deactivated: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Emitted when tab is clicked.
|
|
38
|
+
*/
|
|
39
|
+
tabClick: EventEmitter<MouseEvent>;
|
|
40
|
+
connectedCallback(): void;
|
|
41
|
+
onClick(event: MouseEvent): void;
|
|
42
|
+
render(): any;
|
|
43
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tabs are used to display multiple panels to be contained within a single
|
|
3
|
+
* window, using tabs as a navigational element.
|
|
4
|
+
*
|
|
5
|
+
* @part tab - The header of the tab.
|
|
6
|
+
*/
|
|
7
|
+
export declare class CatTabs {
|
|
8
|
+
private tabs;
|
|
9
|
+
private buttons;
|
|
10
|
+
hostElement: HTMLElement;
|
|
11
|
+
activeTabId?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The ID of the active tab.
|
|
14
|
+
*/
|
|
15
|
+
activeTab: string;
|
|
16
|
+
/**
|
|
17
|
+
* The alignment of the tabs.
|
|
18
|
+
*/
|
|
19
|
+
tabsAlign: 'left' | 'center' | 'right' | 'justify';
|
|
20
|
+
onActiveTabChanged(newActiveTab: string): void;
|
|
21
|
+
componentWillLoad(): void;
|
|
22
|
+
onKeydown(event: KeyboardEvent): void;
|
|
23
|
+
render(): any;
|
|
24
|
+
private updateButtonsRef;
|
|
25
|
+
}
|
|
@@ -4,19 +4,23 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
4
4
|
* rows. Used when the expected user input is long. For shorter input, use the
|
|
5
5
|
* input component.
|
|
6
6
|
*
|
|
7
|
+
* @slot hint - Optional hint element to be displayed with the textarea.
|
|
8
|
+
* @slot label - The slotted label. If both the label property and the label slot are present, only the label slot will be displayed.
|
|
7
9
|
* @part label - The label content.
|
|
8
10
|
*/
|
|
9
11
|
export declare class CatTextarea {
|
|
10
12
|
private readonly id;
|
|
11
13
|
private textarea;
|
|
14
|
+
hostElement: HTMLElement;
|
|
15
|
+
hasSlottedLabel: boolean;
|
|
12
16
|
/**
|
|
13
17
|
* Whether the textarea is disabled.
|
|
14
18
|
*/
|
|
15
19
|
disabled: boolean;
|
|
16
20
|
/**
|
|
17
|
-
* Optional hint text to be displayed with the textarea.
|
|
21
|
+
* Optional hint text(s) to be displayed with the textarea.
|
|
18
22
|
*/
|
|
19
|
-
hint?: string;
|
|
23
|
+
hint?: string | string[];
|
|
20
24
|
/**
|
|
21
25
|
* The label for the textarea.
|
|
22
26
|
*/
|
|
@@ -79,6 +83,7 @@ export declare class CatTextarea {
|
|
|
79
83
|
*/
|
|
80
84
|
setFocus(options?: FocusOptions): Promise<void>;
|
|
81
85
|
render(): any;
|
|
86
|
+
private get hintSection();
|
|
82
87
|
private onInput;
|
|
83
88
|
private onFocus;
|
|
84
89
|
private onBlur;
|
|
@@ -3,12 +3,16 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
3
3
|
* Toggles are graphical interface switches that give user control over a
|
|
4
4
|
* feature or option that can be turned on or off.
|
|
5
5
|
*
|
|
6
|
+
* @slot hint - Optional hint element to be displayed with the toggle.
|
|
7
|
+
* @slot label - The slotted label. If both the label property and the label slot are present, only the label slot will be displayed.
|
|
6
8
|
* @part toggle - The toggle element.
|
|
7
9
|
* @part label - The label content.
|
|
8
10
|
*/
|
|
9
11
|
export declare class CatToggle {
|
|
10
12
|
private readonly id;
|
|
11
13
|
private input;
|
|
14
|
+
hostElement: HTMLElement;
|
|
15
|
+
hasSlottedLabel: boolean;
|
|
12
16
|
/**
|
|
13
17
|
* Checked state of the toggle.
|
|
14
18
|
*/
|
|
@@ -37,6 +41,10 @@ export declare class CatToggle {
|
|
|
37
41
|
* The value of the toggle
|
|
38
42
|
*/
|
|
39
43
|
value?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Optional hint text(s) to be displayed with the toggle.
|
|
46
|
+
*/
|
|
47
|
+
hint?: string | string[];
|
|
40
48
|
/**
|
|
41
49
|
* Emitted when the checked status of the toggle is changed.
|
|
42
50
|
*/
|
|
@@ -58,6 +66,7 @@ export declare class CatToggle {
|
|
|
58
66
|
*/
|
|
59
67
|
setFocus(options?: FocusOptions): Promise<void>;
|
|
60
68
|
render(): any;
|
|
69
|
+
private get hintSection();
|
|
61
70
|
private onInput;
|
|
62
71
|
private onFocus;
|
|
63
72
|
private onBlur;
|
|
@@ -160,6 +160,10 @@ export namespace Components {
|
|
|
160
160
|
* Disabled state of the checkbox
|
|
161
161
|
*/
|
|
162
162
|
"disabled": boolean;
|
|
163
|
+
/**
|
|
164
|
+
* Optional hint text(s) to be displayed with the checkbox.
|
|
165
|
+
*/
|
|
166
|
+
"hint"?: string | string[];
|
|
163
167
|
/**
|
|
164
168
|
* Indeterminate state of the checkbox
|
|
165
169
|
*/
|
|
@@ -222,9 +226,9 @@ export namespace Components {
|
|
|
222
226
|
*/
|
|
223
227
|
"disabled": boolean;
|
|
224
228
|
/**
|
|
225
|
-
* Optional hint text to be displayed with the input.
|
|
229
|
+
* Optional hint text(s) to be displayed with the input.
|
|
226
230
|
*/
|
|
227
|
-
"hint"?: string;
|
|
231
|
+
"hint"?: string | string[];
|
|
228
232
|
/**
|
|
229
233
|
* The name of an icon to be displayed in the input.
|
|
230
234
|
*/
|
|
@@ -314,6 +318,10 @@ export namespace Components {
|
|
|
314
318
|
* Whether this radio is disabled.
|
|
315
319
|
*/
|
|
316
320
|
"disabled": boolean;
|
|
321
|
+
/**
|
|
322
|
+
* Optional hint text(s) to be displayed with the radio.
|
|
323
|
+
*/
|
|
324
|
+
"hint"?: string | string[];
|
|
317
325
|
/**
|
|
318
326
|
* The label of the radio that is visible.
|
|
319
327
|
*/
|
|
@@ -398,15 +406,55 @@ export namespace Components {
|
|
|
398
406
|
*/
|
|
399
407
|
"size": 'xs' | 's' | 'm' | 'l' | 'xl' | 'inline';
|
|
400
408
|
}
|
|
409
|
+
interface CatTab {
|
|
410
|
+
/**
|
|
411
|
+
* Specifies that the tab should be deactivated.
|
|
412
|
+
*/
|
|
413
|
+
"deactivated": boolean;
|
|
414
|
+
/**
|
|
415
|
+
* The name of an icon to be displayed in the tab.
|
|
416
|
+
*/
|
|
417
|
+
"icon"?: string;
|
|
418
|
+
/**
|
|
419
|
+
* Hide the actual button content and only display the tab.
|
|
420
|
+
*/
|
|
421
|
+
"iconOnly": boolean | Breakpoint;
|
|
422
|
+
/**
|
|
423
|
+
* Display the icon on the right.
|
|
424
|
+
*/
|
|
425
|
+
"iconRight": boolean;
|
|
426
|
+
/**
|
|
427
|
+
* The label of the tab.
|
|
428
|
+
*/
|
|
429
|
+
"label": string;
|
|
430
|
+
/**
|
|
431
|
+
* A destination to link to, rendered in the href attribute of a link.
|
|
432
|
+
*/
|
|
433
|
+
"url"?: string;
|
|
434
|
+
/**
|
|
435
|
+
* Specifies where to open the linked document.
|
|
436
|
+
*/
|
|
437
|
+
"urlTarget"?: '_blank' | '_self';
|
|
438
|
+
}
|
|
439
|
+
interface CatTabs {
|
|
440
|
+
/**
|
|
441
|
+
* The ID of the active tab.
|
|
442
|
+
*/
|
|
443
|
+
"activeTab": string;
|
|
444
|
+
/**
|
|
445
|
+
* The alignment of the tabs.
|
|
446
|
+
*/
|
|
447
|
+
"tabsAlign": 'left' | 'center' | 'right' | 'justify';
|
|
448
|
+
}
|
|
401
449
|
interface CatTextarea {
|
|
402
450
|
/**
|
|
403
451
|
* Whether the textarea is disabled.
|
|
404
452
|
*/
|
|
405
453
|
"disabled": boolean;
|
|
406
454
|
/**
|
|
407
|
-
* Optional hint text to be displayed with the textarea.
|
|
455
|
+
* Optional hint text(s) to be displayed with the textarea.
|
|
408
456
|
*/
|
|
409
|
-
"hint"?: string;
|
|
457
|
+
"hint"?: string | string[];
|
|
410
458
|
/**
|
|
411
459
|
* The label for the textarea.
|
|
412
460
|
*/
|
|
@@ -464,6 +512,10 @@ export namespace Components {
|
|
|
464
512
|
* Disabled state of the toggle.
|
|
465
513
|
*/
|
|
466
514
|
"disabled": boolean;
|
|
515
|
+
/**
|
|
516
|
+
* Optional hint text(s) to be displayed with the toggle.
|
|
517
|
+
*/
|
|
518
|
+
"hint"?: string | string[];
|
|
467
519
|
/**
|
|
468
520
|
* The label of the toggle that is visible.
|
|
469
521
|
*/
|
|
@@ -596,6 +648,18 @@ declare global {
|
|
|
596
648
|
prototype: HTMLCatSpinnerElement;
|
|
597
649
|
new (): HTMLCatSpinnerElement;
|
|
598
650
|
};
|
|
651
|
+
interface HTMLCatTabElement extends Components.CatTab, HTMLStencilElement {
|
|
652
|
+
}
|
|
653
|
+
var HTMLCatTabElement: {
|
|
654
|
+
prototype: HTMLCatTabElement;
|
|
655
|
+
new (): HTMLCatTabElement;
|
|
656
|
+
};
|
|
657
|
+
interface HTMLCatTabsElement extends Components.CatTabs, HTMLStencilElement {
|
|
658
|
+
}
|
|
659
|
+
var HTMLCatTabsElement: {
|
|
660
|
+
prototype: HTMLCatTabsElement;
|
|
661
|
+
new (): HTMLCatTabsElement;
|
|
662
|
+
};
|
|
599
663
|
interface HTMLCatTextareaElement extends Components.CatTextarea, HTMLStencilElement {
|
|
600
664
|
}
|
|
601
665
|
var HTMLCatTextareaElement: {
|
|
@@ -634,6 +698,8 @@ declare global {
|
|
|
634
698
|
"cat-scrollable": HTMLCatScrollableElement;
|
|
635
699
|
"cat-skeleton": HTMLCatSkeletonElement;
|
|
636
700
|
"cat-spinner": HTMLCatSpinnerElement;
|
|
701
|
+
"cat-tab": HTMLCatTabElement;
|
|
702
|
+
"cat-tabs": HTMLCatTabsElement;
|
|
637
703
|
"cat-textarea": HTMLCatTextareaElement;
|
|
638
704
|
"cat-toast-demo": HTMLCatToastDemoElement;
|
|
639
705
|
"cat-toggle": HTMLCatToggleElement;
|
|
@@ -800,6 +866,10 @@ declare namespace LocalJSX {
|
|
|
800
866
|
* Disabled state of the checkbox
|
|
801
867
|
*/
|
|
802
868
|
"disabled"?: boolean;
|
|
869
|
+
/**
|
|
870
|
+
* Optional hint text(s) to be displayed with the checkbox.
|
|
871
|
+
*/
|
|
872
|
+
"hint"?: string | string[];
|
|
803
873
|
/**
|
|
804
874
|
* Indeterminate state of the checkbox
|
|
805
875
|
*/
|
|
@@ -865,9 +935,9 @@ declare namespace LocalJSX {
|
|
|
865
935
|
*/
|
|
866
936
|
"disabled"?: boolean;
|
|
867
937
|
/**
|
|
868
|
-
* Optional hint text to be displayed with the input.
|
|
938
|
+
* Optional hint text(s) to be displayed with the input.
|
|
869
939
|
*/
|
|
870
|
-
"hint"?: string;
|
|
940
|
+
"hint"?: string | string[];
|
|
871
941
|
/**
|
|
872
942
|
* The name of an icon to be displayed in the input.
|
|
873
943
|
*/
|
|
@@ -972,6 +1042,10 @@ declare namespace LocalJSX {
|
|
|
972
1042
|
* Whether this radio is disabled.
|
|
973
1043
|
*/
|
|
974
1044
|
"disabled"?: boolean;
|
|
1045
|
+
/**
|
|
1046
|
+
* Optional hint text(s) to be displayed with the radio.
|
|
1047
|
+
*/
|
|
1048
|
+
"hint"?: string | string[];
|
|
975
1049
|
/**
|
|
976
1050
|
* The label of the radio that is visible.
|
|
977
1051
|
*/
|
|
@@ -1079,15 +1153,59 @@ declare namespace LocalJSX {
|
|
|
1079
1153
|
*/
|
|
1080
1154
|
"size"?: 'xs' | 's' | 'm' | 'l' | 'xl' | 'inline';
|
|
1081
1155
|
}
|
|
1156
|
+
interface CatTab {
|
|
1157
|
+
/**
|
|
1158
|
+
* Specifies that the tab should be deactivated.
|
|
1159
|
+
*/
|
|
1160
|
+
"deactivated"?: boolean;
|
|
1161
|
+
/**
|
|
1162
|
+
* The name of an icon to be displayed in the tab.
|
|
1163
|
+
*/
|
|
1164
|
+
"icon"?: string;
|
|
1165
|
+
/**
|
|
1166
|
+
* Hide the actual button content and only display the tab.
|
|
1167
|
+
*/
|
|
1168
|
+
"iconOnly"?: boolean | Breakpoint;
|
|
1169
|
+
/**
|
|
1170
|
+
* Display the icon on the right.
|
|
1171
|
+
*/
|
|
1172
|
+
"iconRight"?: boolean;
|
|
1173
|
+
/**
|
|
1174
|
+
* The label of the tab.
|
|
1175
|
+
*/
|
|
1176
|
+
"label"?: string;
|
|
1177
|
+
/**
|
|
1178
|
+
* Emitted when tab is clicked.
|
|
1179
|
+
*/
|
|
1180
|
+
"onTabClick"?: (event: CustomEvent<MouseEvent>) => void;
|
|
1181
|
+
/**
|
|
1182
|
+
* A destination to link to, rendered in the href attribute of a link.
|
|
1183
|
+
*/
|
|
1184
|
+
"url"?: string;
|
|
1185
|
+
/**
|
|
1186
|
+
* Specifies where to open the linked document.
|
|
1187
|
+
*/
|
|
1188
|
+
"urlTarget"?: '_blank' | '_self';
|
|
1189
|
+
}
|
|
1190
|
+
interface CatTabs {
|
|
1191
|
+
/**
|
|
1192
|
+
* The ID of the active tab.
|
|
1193
|
+
*/
|
|
1194
|
+
"activeTab"?: string;
|
|
1195
|
+
/**
|
|
1196
|
+
* The alignment of the tabs.
|
|
1197
|
+
*/
|
|
1198
|
+
"tabsAlign"?: 'left' | 'center' | 'right' | 'justify';
|
|
1199
|
+
}
|
|
1082
1200
|
interface CatTextarea {
|
|
1083
1201
|
/**
|
|
1084
1202
|
* Whether the textarea is disabled.
|
|
1085
1203
|
*/
|
|
1086
1204
|
"disabled"?: boolean;
|
|
1087
1205
|
/**
|
|
1088
|
-
* Optional hint text to be displayed with the textarea.
|
|
1206
|
+
* Optional hint text(s) to be displayed with the textarea.
|
|
1089
1207
|
*/
|
|
1090
|
-
"hint"?: string;
|
|
1208
|
+
"hint"?: string | string[];
|
|
1091
1209
|
/**
|
|
1092
1210
|
* The label for the textarea.
|
|
1093
1211
|
*/
|
|
@@ -1152,6 +1270,10 @@ declare namespace LocalJSX {
|
|
|
1152
1270
|
* Disabled state of the toggle.
|
|
1153
1271
|
*/
|
|
1154
1272
|
"disabled"?: boolean;
|
|
1273
|
+
/**
|
|
1274
|
+
* Optional hint text(s) to be displayed with the toggle.
|
|
1275
|
+
*/
|
|
1276
|
+
"hint"?: string | string[];
|
|
1155
1277
|
/**
|
|
1156
1278
|
* The label of the toggle that is visible.
|
|
1157
1279
|
*/
|
|
@@ -1225,6 +1347,8 @@ declare namespace LocalJSX {
|
|
|
1225
1347
|
"cat-scrollable": CatScrollable;
|
|
1226
1348
|
"cat-skeleton": CatSkeleton;
|
|
1227
1349
|
"cat-spinner": CatSpinner;
|
|
1350
|
+
"cat-tab": CatTab;
|
|
1351
|
+
"cat-tabs": CatTabs;
|
|
1228
1352
|
"cat-textarea": CatTextarea;
|
|
1229
1353
|
"cat-toast-demo": CatToastDemo;
|
|
1230
1354
|
"cat-toggle": CatToggle;
|
|
@@ -1248,6 +1372,8 @@ declare module "@stencil/core" {
|
|
|
1248
1372
|
"cat-scrollable": LocalJSX.CatScrollable & JSXBase.HTMLAttributes<HTMLCatScrollableElement>;
|
|
1249
1373
|
"cat-skeleton": LocalJSX.CatSkeleton & JSXBase.HTMLAttributes<HTMLCatSkeletonElement>;
|
|
1250
1374
|
"cat-spinner": LocalJSX.CatSpinner & JSXBase.HTMLAttributes<HTMLCatSpinnerElement>;
|
|
1375
|
+
"cat-tab": LocalJSX.CatTab & JSXBase.HTMLAttributes<HTMLCatTabElement>;
|
|
1376
|
+
"cat-tabs": LocalJSX.CatTabs & JSXBase.HTMLAttributes<HTMLCatTabsElement>;
|
|
1251
1377
|
"cat-textarea": LocalJSX.CatTextarea & JSXBase.HTMLAttributes<HTMLCatTextareaElement>;
|
|
1252
1378
|
"cat-toast-demo": LocalJSX.CatToastDemo & JSXBase.HTMLAttributes<HTMLCatToastDemoElement>;
|
|
1253
1379
|
"cat-toggle": LocalJSX.CatToggle & JSXBase.HTMLAttributes<HTMLCatToggleElement>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haiilo/catalyst",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Catalyst Design System",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@floating-ui/dom": "0.4.1",
|
|
46
|
-
"@haiilo/catalyst-tokens": "
|
|
46
|
+
"@haiilo/catalyst-tokens": "0.7.0",
|
|
47
47
|
"@stencil/core": "2.15.0",
|
|
48
48
|
"autosize": "^5.0.1",
|
|
49
49
|
"focus-trap": "6.8.1",
|