@haiilo/catalyst 0.5.14 → 0.6.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.css +1 -1
- 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-6a5f0d4a.entry.js +10 -0
- package/dist/catalyst/{p-e6491f33.entry.js.map → p-6a5f0d4a.entry.js.map} +1 -1
- package/dist/cjs/app-globals-aa29ad72.js.map +1 -1
- package/dist/cjs/{cat-alert_15.cjs.entry.js → cat-alert_16.cjs.entry.js} +109 -23
- package/dist/cjs/cat-alert_16.cjs.entry.js.map +1 -0
- package/dist/cjs/catalyst.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/cat-avatar/cat-avatar.css +81 -0
- package/dist/collection/components/cat-avatar/cat-avatar.js +225 -0
- package/dist/collection/components/cat-avatar/cat-avatar.js.map +1 -0
- package/dist/collection/components/cat-badge/cat-badge.css +5 -5
- package/dist/collection/components/cat-button/cat-button.js +8 -8
- package/dist/collection/components/cat-button/cat-button.js.map +1 -1
- package/dist/collection/components/cat-scrollable/cat-scrollable.js +44 -44
- package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +1 -1
- package/dist/collection/utils/load-img.js +16 -0
- package/dist/collection/utils/load-img.js.map +1 -0
- package/dist/components/cat-avatar.d.ts +11 -0
- package/dist/components/cat-avatar.js +125 -0
- package/dist/components/cat-avatar.js.map +1 -0
- package/dist/components/cat-badge.js +1 -1
- package/dist/components/cat-badge.js.map +1 -1
- package/dist/components/cat-button2.js +5 -5
- package/dist/components/cat-button2.js.map +1 -1
- package/dist/components/cat-scrollable.js +23 -23
- package/dist/components/cat-scrollable.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_15.entry.js → cat-alert_16.entry.js} +109 -24
- package/dist/esm/cat-alert_16.entry.js.map +1 -0
- package/dist/esm/catalyst.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/cat-avatar/cat-avatar.d.ts +46 -0
- package/dist/types/components/cat-button/cat-button.d.ts +2 -2
- package/dist/types/components/cat-scrollable/cat-scrollable.d.ts +12 -12
- package/dist/types/components.d.ts +121 -44
- package/dist/types/utils/load-img.d.ts +8 -0
- package/package.json +2 -2
- package/dist/catalyst/p-e6491f33.entry.js +0 -10
- package/dist/cjs/cat-alert_15.cjs.entry.js.map +0 -1
- package/dist/esm/cat-alert_15.entry.js.map +0 -1
package/dist/esm/catalyst.js
CHANGED
|
@@ -17,7 +17,7 @@ const patchBrowser = () => {
|
|
|
17
17
|
|
|
18
18
|
patchBrowser().then(options => {
|
|
19
19
|
globalScripts();
|
|
20
|
-
return bootstrapLazy([["cat-textarea",[[1,"cat-textarea",{"disabled":[4],"hint":[1],"label":[1],"labelHidden":[4,"label-hidden"],"maxLength":[2,"max-length"],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"value":[8],"setFocus":[64]}]]],["cat-
|
|
20
|
+
return bootstrapLazy([["cat-textarea",[[1,"cat-textarea",{"disabled":[4],"hint":[1],"label":[1],"labelHidden":[4,"label-hidden"],"maxLength":[2,"max-length"],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"value":[8],"setFocus":[64]}]]],["cat-alert_16",[[1,"cat-input",{"autoComplete":[1,"auto-complete"],"clearable":[4],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"label":[1],"labelHidden":[4,"label-hidden"],"max":[2],"maxLength":[2,"max-length"],"min":[2],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"round":[4],"type":[1],"value":[8],"inputValue":[32],"setFocus":[64],"clear":[64]}],[0,"cat-toast-demo"],[1,"cat-avatar",{"size":[1],"round":[4],"label":[1],"initials":[1],"src":[1],"icon":[1],"url":[1],"urlTarget":[1,"url-target"],"backgroundImage":[32]}],[1,"cat-alert",{"color":[1]}],[1,"cat-badge",{"variant":[1],"color":[1],"size":[1],"round":[4],"pulse":[4]}],[1,"cat-card"],[1,"cat-checkbox",{"checked":[4],"disabled":[4],"indeterminate":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1],"setFocus":[64]}],[1,"cat-menu",{"placement":[1]},[[0,"catClick","clickHandler"]]],[1,"cat-radio",{"checked":[4],"disabled":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1],"setFocus":[64]}],[1,"cat-scrollable",{"noShadowX":[4,"no-shadow-x"],"noShadowY":[4,"no-shadow-y"],"noOverflowX":[4,"no-overflow-x"],"noOverflowY":[4,"no-overflow-y"],"noOverscroll":[4,"no-overscroll"],"noScrolledInit":[4,"no-scrolled-init"],"scrolledBuffer":[2,"scrolled-buffer"]}],[1,"cat-skeleton",{"effect":[1],"variant":[1],"size":[1],"lines":[2]}],[1,"cat-toggle",{"checked":[4],"disabled":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1],"setFocus":[64]}],[1,"cat-tooltip",{"content":[1],"disabled":[4],"placement":[1],"showDelay":[2,"show-delay"],"hideDelay":[2,"hide-delay"],"longTouchDuration":[2,"long-touch-duration"]},[[0,"keydown","handleKeyDown"]]],[1,"cat-button",{"variant":[1],"color":[1],"active":[4],"size":[1],"name":[1],"value":[1],"disabled":[4],"loading":[4],"submit":[4],"noEllipsis":[4,"no-ellipsis"],"round":[4],"url":[1],"urlTarget":[1,"url-target"],"icon":[1],"iconOnly":[8,"icon-only"],"iconRight":[4,"icon-right"],"buttonId":[1,"button-id"],"a11yLabel":[1,"a11y-label"],"_iconOnly":[32],"setFocus":[64]},[[0,"click","haltDisabledEvents"]]],[1,"cat-spinner",{"size":[1],"a11yLabel":[1,"a11y-label"]}],[1,"cat-icon",{"icon":[1],"size":[1],"a11yLabel":[1,"a11y-label"]}]]]], options);
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
//# sourceMappingURL=catalyst.js.map
|
package/dist/esm/loader.js
CHANGED
|
@@ -14,7 +14,7 @@ const defineCustomElements = (win, options) => {
|
|
|
14
14
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
15
15
|
return patchEsm().then(() => {
|
|
16
16
|
globalScripts();
|
|
17
|
-
return bootstrapLazy([["cat-textarea",[[1,"cat-textarea",{"disabled":[4],"hint":[1],"label":[1],"labelHidden":[4,"label-hidden"],"maxLength":[2,"max-length"],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"value":[8],"setFocus":[64]}]]],["cat-
|
|
17
|
+
return bootstrapLazy([["cat-textarea",[[1,"cat-textarea",{"disabled":[4],"hint":[1],"label":[1],"labelHidden":[4,"label-hidden"],"maxLength":[2,"max-length"],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"value":[8],"setFocus":[64]}]]],["cat-alert_16",[[1,"cat-input",{"autoComplete":[1,"auto-complete"],"clearable":[4],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"label":[1],"labelHidden":[4,"label-hidden"],"max":[2],"maxLength":[2,"max-length"],"min":[2],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"round":[4],"type":[1],"value":[8],"inputValue":[32],"setFocus":[64],"clear":[64]}],[0,"cat-toast-demo"],[1,"cat-avatar",{"size":[1],"round":[4],"label":[1],"initials":[1],"src":[1],"icon":[1],"url":[1],"urlTarget":[1,"url-target"],"backgroundImage":[32]}],[1,"cat-alert",{"color":[1]}],[1,"cat-badge",{"variant":[1],"color":[1],"size":[1],"round":[4],"pulse":[4]}],[1,"cat-card"],[1,"cat-checkbox",{"checked":[4],"disabled":[4],"indeterminate":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1],"setFocus":[64]}],[1,"cat-menu",{"placement":[1]},[[0,"catClick","clickHandler"]]],[1,"cat-radio",{"checked":[4],"disabled":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1],"setFocus":[64]}],[1,"cat-scrollable",{"noShadowX":[4,"no-shadow-x"],"noShadowY":[4,"no-shadow-y"],"noOverflowX":[4,"no-overflow-x"],"noOverflowY":[4,"no-overflow-y"],"noOverscroll":[4,"no-overscroll"],"noScrolledInit":[4,"no-scrolled-init"],"scrolledBuffer":[2,"scrolled-buffer"]}],[1,"cat-skeleton",{"effect":[1],"variant":[1],"size":[1],"lines":[2]}],[1,"cat-toggle",{"checked":[4],"disabled":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1],"setFocus":[64]}],[1,"cat-tooltip",{"content":[1],"disabled":[4],"placement":[1],"showDelay":[2,"show-delay"],"hideDelay":[2,"hide-delay"],"longTouchDuration":[2,"long-touch-duration"]},[[0,"keydown","handleKeyDown"]]],[1,"cat-button",{"variant":[1],"color":[1],"active":[4],"size":[1],"name":[1],"value":[1],"disabled":[4],"loading":[4],"submit":[4],"noEllipsis":[4,"no-ellipsis"],"round":[4],"url":[1],"urlTarget":[1,"url-target"],"icon":[1],"iconOnly":[8,"icon-only"],"iconRight":[4,"icon-right"],"buttonId":[1,"button-id"],"a11yLabel":[1,"a11y-label"],"_iconOnly":[32],"setFocus":[64]},[[0,"click","haltDisabledEvents"]]],[1,"cat-spinner",{"size":[1],"a11yLabel":[1,"a11y-label"]}],[1,"cat-icon",{"icon":[1],"size":[1],"a11yLabel":[1,"a11y-label"]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Avatars are used to represent a person or object.
|
|
3
|
+
*/
|
|
4
|
+
export declare class CatAvatar {
|
|
5
|
+
backgroundImage?: string;
|
|
6
|
+
/**
|
|
7
|
+
* The size of the avatar.
|
|
8
|
+
*/
|
|
9
|
+
size: 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
10
|
+
/**
|
|
11
|
+
* Use round avatar edges.
|
|
12
|
+
*/
|
|
13
|
+
round: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* The label of the avatar.
|
|
16
|
+
*/
|
|
17
|
+
label: string;
|
|
18
|
+
/**
|
|
19
|
+
* Custom initials for the avatar.
|
|
20
|
+
*/
|
|
21
|
+
initials?: string;
|
|
22
|
+
/**
|
|
23
|
+
* An optional avatar image.
|
|
24
|
+
*/
|
|
25
|
+
src?: string;
|
|
26
|
+
/**
|
|
27
|
+
* An icon to be used instead of the initials.
|
|
28
|
+
*/
|
|
29
|
+
icon?: string;
|
|
30
|
+
/**
|
|
31
|
+
* A destination to link to, rendered in the href attribute of a link.
|
|
32
|
+
*/
|
|
33
|
+
url?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Specifies where to open the linked document.
|
|
36
|
+
*/
|
|
37
|
+
urlTarget?: '_blank' | '_self';
|
|
38
|
+
onSrcChanged(value?: string): void;
|
|
39
|
+
componentWillLoad(): void;
|
|
40
|
+
componentWillRender(): void;
|
|
41
|
+
render(): any;
|
|
42
|
+
private get content();
|
|
43
|
+
private get cssStyle();
|
|
44
|
+
private get cssClass();
|
|
45
|
+
private getInitials;
|
|
46
|
+
}
|
|
@@ -8,20 +8,20 @@ export declare class CatScrollable {
|
|
|
8
8
|
private readonly init;
|
|
9
9
|
private readonly destroyed;
|
|
10
10
|
private scrolled;
|
|
11
|
-
/** Flags to enable
|
|
12
|
-
|
|
13
|
-
/** Flags to enable
|
|
14
|
-
|
|
15
|
-
/** Flags to enable
|
|
16
|
-
|
|
17
|
-
/** Flags to enable
|
|
18
|
-
|
|
19
|
-
/** Flag to enable
|
|
20
|
-
|
|
11
|
+
/** Flags to disable/enable scroll shadowX. */
|
|
12
|
+
noShadowX: boolean;
|
|
13
|
+
/** Flags to disable/enable scroll shadowY. */
|
|
14
|
+
noShadowY: boolean;
|
|
15
|
+
/** Flags to disable/enable overflowX. */
|
|
16
|
+
noOverflowX: boolean;
|
|
17
|
+
/** Flags to disable/enable overflowY. */
|
|
18
|
+
noOverflowY: boolean;
|
|
19
|
+
/** Flag to disable/enable overscroll behavior. */
|
|
20
|
+
noOverscroll: boolean;
|
|
21
21
|
/**
|
|
22
|
-
* Flag to fire an initial event after content initialization.
|
|
22
|
+
* Flag to not fire an initial event after content initialization.
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
noScrolledInit: boolean;
|
|
25
25
|
/**
|
|
26
26
|
* Buffer to be used to calculate the scroll distance.
|
|
27
27
|
*/
|
|
@@ -14,6 +14,40 @@ export namespace Components {
|
|
|
14
14
|
*/
|
|
15
15
|
"color": 'primary' | 'secondary' | 'danger' | 'success' | 'warning';
|
|
16
16
|
}
|
|
17
|
+
interface CatAvatar {
|
|
18
|
+
/**
|
|
19
|
+
* An icon to be used instead of the initials.
|
|
20
|
+
*/
|
|
21
|
+
"icon"?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Custom initials for the avatar.
|
|
24
|
+
*/
|
|
25
|
+
"initials"?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The label of the avatar.
|
|
28
|
+
*/
|
|
29
|
+
"label": string;
|
|
30
|
+
/**
|
|
31
|
+
* Use round avatar edges.
|
|
32
|
+
*/
|
|
33
|
+
"round": boolean;
|
|
34
|
+
/**
|
|
35
|
+
* The size of the avatar.
|
|
36
|
+
*/
|
|
37
|
+
"size": 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
38
|
+
/**
|
|
39
|
+
* An optional avatar image.
|
|
40
|
+
*/
|
|
41
|
+
"src"?: string;
|
|
42
|
+
/**
|
|
43
|
+
* A destination to link to, rendered in the href attribute of a link.
|
|
44
|
+
*/
|
|
45
|
+
"url"?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Specifies where to open the linked document.
|
|
48
|
+
*/
|
|
49
|
+
"urlTarget"?: '_blank' | '_self';
|
|
50
|
+
}
|
|
17
51
|
interface CatBadge {
|
|
18
52
|
/**
|
|
19
53
|
* The color palette of the badge.
|
|
@@ -57,10 +91,6 @@ export namespace Components {
|
|
|
57
91
|
* Specifies that the button should be disabled. A disabled button is unusable and un-clickable. Corresponds with the native HTML disabled attribute.
|
|
58
92
|
*/
|
|
59
93
|
"disabled": boolean;
|
|
60
|
-
/**
|
|
61
|
-
* Ellipse overflowing button content.
|
|
62
|
-
*/
|
|
63
|
-
"ellipsed": boolean;
|
|
64
94
|
/**
|
|
65
95
|
* The name of an icon to be displayed in the button.
|
|
66
96
|
*/
|
|
@@ -81,6 +111,10 @@ export namespace Components {
|
|
|
81
111
|
* The name of the button, which gets paired with the button's value when submitted as part of a form. Corresponds with the native HTML name attribute.
|
|
82
112
|
*/
|
|
83
113
|
"name"?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Disables ellipse overflowing button content.
|
|
116
|
+
*/
|
|
117
|
+
"noEllipsis": boolean;
|
|
84
118
|
/**
|
|
85
119
|
* Use round button edges.
|
|
86
120
|
*/
|
|
@@ -308,33 +342,33 @@ export namespace Components {
|
|
|
308
342
|
}
|
|
309
343
|
interface CatScrollable {
|
|
310
344
|
/**
|
|
311
|
-
* Flags to enable
|
|
345
|
+
* Flags to disable/enable overflowX.
|
|
312
346
|
*/
|
|
313
|
-
"
|
|
347
|
+
"noOverflowX": boolean;
|
|
314
348
|
/**
|
|
315
|
-
* Flags to enable
|
|
349
|
+
* Flags to disable/enable overflowY.
|
|
316
350
|
*/
|
|
317
|
-
"
|
|
351
|
+
"noOverflowY": boolean;
|
|
318
352
|
/**
|
|
319
|
-
* Flag to enable
|
|
353
|
+
* Flag to disable/enable overscroll behavior.
|
|
320
354
|
*/
|
|
321
|
-
"
|
|
355
|
+
"noOverscroll": boolean;
|
|
322
356
|
/**
|
|
323
|
-
*
|
|
357
|
+
* Flag to not fire an initial event after content initialization.
|
|
324
358
|
*/
|
|
325
|
-
"
|
|
359
|
+
"noScrolledInit": boolean;
|
|
326
360
|
/**
|
|
327
|
-
*
|
|
361
|
+
* Flags to disable/enable scroll shadowX.
|
|
328
362
|
*/
|
|
329
|
-
"
|
|
363
|
+
"noShadowX": boolean;
|
|
330
364
|
/**
|
|
331
|
-
* Flags to enable
|
|
365
|
+
* Flags to disable/enable scroll shadowY.
|
|
332
366
|
*/
|
|
333
|
-
"
|
|
367
|
+
"noShadowY": boolean;
|
|
334
368
|
/**
|
|
335
|
-
*
|
|
369
|
+
* Buffer to be used to calculate the scroll distance.
|
|
336
370
|
*/
|
|
337
|
-
"
|
|
371
|
+
"scrolledBuffer": number;
|
|
338
372
|
}
|
|
339
373
|
interface CatSkeleton {
|
|
340
374
|
/**
|
|
@@ -490,6 +524,12 @@ declare global {
|
|
|
490
524
|
prototype: HTMLCatAlertElement;
|
|
491
525
|
new (): HTMLCatAlertElement;
|
|
492
526
|
};
|
|
527
|
+
interface HTMLCatAvatarElement extends Components.CatAvatar, HTMLStencilElement {
|
|
528
|
+
}
|
|
529
|
+
var HTMLCatAvatarElement: {
|
|
530
|
+
prototype: HTMLCatAvatarElement;
|
|
531
|
+
new (): HTMLCatAvatarElement;
|
|
532
|
+
};
|
|
493
533
|
interface HTMLCatBadgeElement extends Components.CatBadge, HTMLStencilElement {
|
|
494
534
|
}
|
|
495
535
|
var HTMLCatBadgeElement: {
|
|
@@ -582,6 +622,7 @@ declare global {
|
|
|
582
622
|
};
|
|
583
623
|
interface HTMLElementTagNameMap {
|
|
584
624
|
"cat-alert": HTMLCatAlertElement;
|
|
625
|
+
"cat-avatar": HTMLCatAvatarElement;
|
|
585
626
|
"cat-badge": HTMLCatBadgeElement;
|
|
586
627
|
"cat-button": HTMLCatButtonElement;
|
|
587
628
|
"cat-card": HTMLCatCardElement;
|
|
@@ -606,6 +647,40 @@ declare namespace LocalJSX {
|
|
|
606
647
|
*/
|
|
607
648
|
"color"?: 'primary' | 'secondary' | 'danger' | 'success' | 'warning';
|
|
608
649
|
}
|
|
650
|
+
interface CatAvatar {
|
|
651
|
+
/**
|
|
652
|
+
* An icon to be used instead of the initials.
|
|
653
|
+
*/
|
|
654
|
+
"icon"?: string;
|
|
655
|
+
/**
|
|
656
|
+
* Custom initials for the avatar.
|
|
657
|
+
*/
|
|
658
|
+
"initials"?: string;
|
|
659
|
+
/**
|
|
660
|
+
* The label of the avatar.
|
|
661
|
+
*/
|
|
662
|
+
"label"?: string;
|
|
663
|
+
/**
|
|
664
|
+
* Use round avatar edges.
|
|
665
|
+
*/
|
|
666
|
+
"round"?: boolean;
|
|
667
|
+
/**
|
|
668
|
+
* The size of the avatar.
|
|
669
|
+
*/
|
|
670
|
+
"size"?: 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
671
|
+
/**
|
|
672
|
+
* An optional avatar image.
|
|
673
|
+
*/
|
|
674
|
+
"src"?: string;
|
|
675
|
+
/**
|
|
676
|
+
* A destination to link to, rendered in the href attribute of a link.
|
|
677
|
+
*/
|
|
678
|
+
"url"?: string;
|
|
679
|
+
/**
|
|
680
|
+
* Specifies where to open the linked document.
|
|
681
|
+
*/
|
|
682
|
+
"urlTarget"?: '_blank' | '_self';
|
|
683
|
+
}
|
|
609
684
|
interface CatBadge {
|
|
610
685
|
/**
|
|
611
686
|
* The color palette of the badge.
|
|
@@ -649,10 +724,6 @@ declare namespace LocalJSX {
|
|
|
649
724
|
* Specifies that the button should be disabled. A disabled button is unusable and un-clickable. Corresponds with the native HTML disabled attribute.
|
|
650
725
|
*/
|
|
651
726
|
"disabled"?: boolean;
|
|
652
|
-
/**
|
|
653
|
-
* Ellipse overflowing button content.
|
|
654
|
-
*/
|
|
655
|
-
"ellipsed"?: boolean;
|
|
656
727
|
/**
|
|
657
728
|
* The name of an icon to be displayed in the button.
|
|
658
729
|
*/
|
|
@@ -673,6 +744,10 @@ declare namespace LocalJSX {
|
|
|
673
744
|
* The name of the button, which gets paired with the button's value when submitted as part of a form. Corresponds with the native HTML name attribute.
|
|
674
745
|
*/
|
|
675
746
|
"name"?: string;
|
|
747
|
+
/**
|
|
748
|
+
* Disables ellipse overflowing button content.
|
|
749
|
+
*/
|
|
750
|
+
"noEllipsis"?: boolean;
|
|
676
751
|
/**
|
|
677
752
|
* Emitted when the button loses focus.
|
|
678
753
|
*/
|
|
@@ -932,49 +1007,49 @@ declare namespace LocalJSX {
|
|
|
932
1007
|
}
|
|
933
1008
|
interface CatScrollable {
|
|
934
1009
|
/**
|
|
935
|
-
*
|
|
1010
|
+
* Flags to disable/enable overflowX.
|
|
936
1011
|
*/
|
|
937
|
-
"
|
|
1012
|
+
"noOverflowX"?: boolean;
|
|
938
1013
|
/**
|
|
939
|
-
*
|
|
1014
|
+
* Flags to disable/enable overflowY.
|
|
940
1015
|
*/
|
|
941
|
-
"
|
|
1016
|
+
"noOverflowY"?: boolean;
|
|
942
1017
|
/**
|
|
943
|
-
*
|
|
1018
|
+
* Flag to disable/enable overscroll behavior.
|
|
944
1019
|
*/
|
|
945
|
-
"
|
|
1020
|
+
"noOverscroll"?: boolean;
|
|
946
1021
|
/**
|
|
947
|
-
*
|
|
1022
|
+
* Flag to not fire an initial event after content initialization.
|
|
948
1023
|
*/
|
|
949
|
-
"
|
|
1024
|
+
"noScrolledInit"?: boolean;
|
|
950
1025
|
/**
|
|
951
|
-
* Flags to enable
|
|
1026
|
+
* Flags to disable/enable scroll shadowX.
|
|
952
1027
|
*/
|
|
953
|
-
"
|
|
1028
|
+
"noShadowX"?: boolean;
|
|
954
1029
|
/**
|
|
955
|
-
* Flags to enable
|
|
1030
|
+
* Flags to disable/enable scroll shadowY.
|
|
956
1031
|
*/
|
|
957
|
-
"
|
|
1032
|
+
"noShadowY"?: boolean;
|
|
958
1033
|
/**
|
|
959
|
-
*
|
|
1034
|
+
* Emitted when the content is fully scrolled to the bottom.
|
|
960
1035
|
*/
|
|
961
|
-
"
|
|
1036
|
+
"onScrolledBottom"?: (event: CustomEvent<void>) => void;
|
|
962
1037
|
/**
|
|
963
|
-
*
|
|
1038
|
+
* Emitted when the content is fully scrolled to the left.
|
|
964
1039
|
*/
|
|
965
|
-
"
|
|
1040
|
+
"onScrolledLeft"?: (event: CustomEvent<void>) => void;
|
|
966
1041
|
/**
|
|
967
|
-
*
|
|
1042
|
+
* Emitted when the content is fully scrolled to the right.
|
|
968
1043
|
*/
|
|
969
|
-
"
|
|
1044
|
+
"onScrolledRight"?: (event: CustomEvent<void>) => void;
|
|
970
1045
|
/**
|
|
971
|
-
*
|
|
1046
|
+
* Emitted when the content is fully scrolled to the top.
|
|
972
1047
|
*/
|
|
973
|
-
"
|
|
1048
|
+
"onScrolledTop"?: (event: CustomEvent<void>) => void;
|
|
974
1049
|
/**
|
|
975
|
-
*
|
|
1050
|
+
* Buffer to be used to calculate the scroll distance.
|
|
976
1051
|
*/
|
|
977
|
-
"
|
|
1052
|
+
"scrolledBuffer"?: number;
|
|
978
1053
|
}
|
|
979
1054
|
interface CatSkeleton {
|
|
980
1055
|
/**
|
|
@@ -1138,6 +1213,7 @@ declare namespace LocalJSX {
|
|
|
1138
1213
|
}
|
|
1139
1214
|
interface IntrinsicElements {
|
|
1140
1215
|
"cat-alert": CatAlert;
|
|
1216
|
+
"cat-avatar": CatAvatar;
|
|
1141
1217
|
"cat-badge": CatBadge;
|
|
1142
1218
|
"cat-button": CatButton;
|
|
1143
1219
|
"cat-card": CatCard;
|
|
@@ -1160,6 +1236,7 @@ declare module "@stencil/core" {
|
|
|
1160
1236
|
export namespace JSX {
|
|
1161
1237
|
interface IntrinsicElements {
|
|
1162
1238
|
"cat-alert": LocalJSX.CatAlert & JSXBase.HTMLAttributes<HTMLCatAlertElement>;
|
|
1239
|
+
"cat-avatar": LocalJSX.CatAvatar & JSXBase.HTMLAttributes<HTMLCatAvatarElement>;
|
|
1163
1240
|
"cat-badge": LocalJSX.CatBadge & JSXBase.HTMLAttributes<HTMLCatBadgeElement>;
|
|
1164
1241
|
"cat-button": LocalJSX.CatButton & JSXBase.HTMLAttributes<HTMLCatButtonElement>;
|
|
1165
1242
|
"cat-card": LocalJSX.CatCard & JSXBase.HTMLAttributes<HTMLCatCardElement>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haiilo/catalyst",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.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": "^0.
|
|
46
|
+
"@haiilo/catalyst-tokens": "^0.6.0",
|
|
47
47
|
"@stencil/core": "2.15.0",
|
|
48
48
|
"autosize": "^5.0.1",
|
|
49
49
|
"focus-trap": "6.8.1",
|