@haiilo/catalyst 0.4.0 → 0.5.3
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/package.json +7 -6
- package/dist/catalyst/assets/fonts/AzeretMono-Regular.woff2 +0 -0
- package/dist/catalyst/assets/fonts/DMSans-Bold.woff2 +0 -0
- package/dist/catalyst/assets/fonts/DMSans-BoldItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/DMSans-Italic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/DMSans-Medium.woff2 +0 -0
- package/dist/catalyst/assets/fonts/DMSans-MediumItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/DMSans-Regular.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Black.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Black.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-BlackItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-BlackItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Bold.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Bold.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-BoldItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-BoldItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Hairline.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Hairline.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-HairlineItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-HairlineItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Heavy.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Heavy.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-HeavyItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-HeavyItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Italic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Italic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Light.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Light.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-LightItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-LightItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Medium.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Medium.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-MediumItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-MediumItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Regular.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Regular.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Semibold.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Semibold.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-SemiboldItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-SemiboldItalic.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-Thin.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-Thin.woff2 +0 -0
- package/dist/catalyst/assets/fonts/Lato-ThinItalic.woff +0 -0
- package/dist/catalyst/assets/fonts/Lato-ThinItalic.woff2 +0 -0
- package/dist/catalyst/catalyst.css +0 -1
- package/dist/catalyst/catalyst.esm.js +0 -2
- package/dist/catalyst/catalyst.esm.js.map +0 -1
- package/dist/catalyst/index.cdn.js +0 -21
- package/dist/catalyst/index.esm.js +0 -2
- package/dist/catalyst/index.esm.js.map +0 -1
- package/dist/catalyst/p-89a97b7b.entry.js +0 -10
- package/dist/catalyst/p-89a97b7b.entry.js.map +0 -1
- package/dist/catalyst/p-ed826597.js +0 -2
- package/dist/catalyst/p-ed826597.js.map +0 -1
- package/dist/catalyst/p-ef0a8ae9.js +0 -2
- package/dist/catalyst/p-ef0a8ae9.js.map +0 -1
- package/dist/catalyst/p-f151cb13.js +0 -2
- package/dist/catalyst/p-f151cb13.js.map +0 -1
- package/dist/cjs/app-globals-7f2b1f8e.js +0 -173
- package/dist/cjs/app-globals-7f2b1f8e.js.map +0 -1
- package/dist/cjs/cat-alert_9.cjs.entry.js +0 -4557
- package/dist/cjs/cat-alert_9.cjs.entry.js.map +0 -1
- package/dist/cjs/cat-icon-registry-850c538c.js +0 -47
- package/dist/cjs/cat-icon-registry-850c538c.js.map +0 -1
- package/dist/cjs/catalyst.cjs.js +0 -24
- package/dist/cjs/catalyst.cjs.js.map +0 -1
- package/dist/cjs/index-c0881ae0.js +0 -1348
- package/dist/cjs/index-c0881ae0.js.map +0 -1
- package/dist/cjs/index.cjs.js +0 -11
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js +0 -26
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/collection/assets/fonts/AzeretMono-Regular.woff2 +0 -0
- package/dist/collection/assets/fonts/DMSans-Bold.woff2 +0 -0
- package/dist/collection/assets/fonts/DMSans-BoldItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/DMSans-Italic.woff2 +0 -0
- package/dist/collection/assets/fonts/DMSans-Medium.woff2 +0 -0
- package/dist/collection/assets/fonts/DMSans-MediumItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/DMSans-Regular.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Black.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Black.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-BlackItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-BlackItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Bold.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Bold.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-BoldItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-BoldItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Hairline.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Hairline.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-HairlineItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-HairlineItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Heavy.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Heavy.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-HeavyItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-HeavyItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Italic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Italic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Light.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Light.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-LightItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-LightItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Medium.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Medium.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-MediumItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-MediumItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Regular.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Regular.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Semibold.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Semibold.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-SemiboldItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-SemiboldItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-Thin.woff +0 -0
- package/dist/collection/assets/fonts/Lato-Thin.woff2 +0 -0
- package/dist/collection/assets/fonts/Lato-ThinItalic.woff +0 -0
- package/dist/collection/assets/fonts/Lato-ThinItalic.woff2 +0 -0
- package/dist/collection/collection-manifest.json +0 -21
- package/dist/collection/components/cat-alert/cat-alert.css +0 -57
- package/dist/collection/components/cat-alert/cat-alert.js +0 -50
- package/dist/collection/components/cat-alert/cat-alert.js.map +0 -1
- package/dist/collection/components/cat-badge/cat-badge.css +0 -154
- package/dist/collection/components/cat-badge/cat-badge.js +0 -142
- package/dist/collection/components/cat-badge/cat-badge.js.map +0 -1
- package/dist/collection/components/cat-button/cat-button.css +0 -323
- package/dist/collection/components/cat-button/cat-button.js +0 -591
- package/dist/collection/components/cat-button/cat-button.js.map +0 -1
- package/dist/collection/components/cat-icon/cat-icon-registry.js +0 -42
- package/dist/collection/components/cat-icon/cat-icon-registry.js.map +0 -1
- package/dist/collection/components/cat-icon/cat-icon.css +0 -50
- package/dist/collection/components/cat-icon/cat-icon.js +0 -90
- package/dist/collection/components/cat-icon/cat-icon.js.map +0 -1
- package/dist/collection/components/cat-menu/cat-menu.css +0 -33
- package/dist/collection/components/cat-menu/cat-menu.js +0 -184
- package/dist/collection/components/cat-menu/cat-menu.js.map +0 -1
- package/dist/collection/components/cat-scrollable/cat-scrollable.css +0 -69
- package/dist/collection/components/cat-scrollable/cat-scrollable.js +0 -309
- package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +0 -1
- package/dist/collection/components/cat-skeleton/cat-skeleton.css +0 -177
- package/dist/collection/components/cat-skeleton/cat-skeleton.js +0 -131
- package/dist/collection/components/cat-skeleton/cat-skeleton.js.map +0 -1
- package/dist/collection/components/cat-spinner/cat-spinner.css +0 -63
- package/dist/collection/components/cat-spinner/cat-spinner.js +0 -65
- package/dist/collection/components/cat-spinner/cat-spinner.js.map +0 -1
- package/dist/collection/components/cat-tooltip/cat-tooltip.css +0 -37
- package/dist/collection/components/cat-tooltip/cat-tooltip.js +0 -254
- package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +0 -1
- package/dist/collection/index.cdn.js +0 -21
- package/dist/collection/index.js +0 -2
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/init.js +0 -9
- package/dist/collection/init.js.map +0 -1
- package/dist/collection/utils/breakpoints.js +0 -12
- package/dist/collection/utils/breakpoints.js.map +0 -1
- package/dist/collection/utils/first-tabbable.js +0 -6
- package/dist/collection/utils/first-tabbable.js.map +0 -1
- package/dist/collection/utils/is-touch-screen.js +0 -3
- package/dist/collection/utils/is-touch-screen.js.map +0 -1
- package/dist/collection/utils/media-matcher.js +0 -55
- package/dist/collection/utils/media-matcher.js.map +0 -1
- package/dist/collection/utils/platform.js +0 -50
- package/dist/collection/utils/platform.js.map +0 -1
- package/dist/collection/utils/utils.js +0 -4
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/components/cat-alert.d.ts +0 -11
- package/dist/components/cat-alert.js +0 -44
- package/dist/components/cat-alert.js.map +0 -1
- package/dist/components/cat-badge.d.ts +0 -11
- package/dist/components/cat-badge.js +0 -68
- package/dist/components/cat-badge.js.map +0 -1
- package/dist/components/cat-button.d.ts +0 -11
- package/dist/components/cat-button.js +0 -654
- package/dist/components/cat-button.js.map +0 -1
- package/dist/components/cat-icon-registry.js +0 -45
- package/dist/components/cat-icon-registry.js.map +0 -1
- package/dist/components/cat-icon.d.ts +0 -11
- package/dist/components/cat-icon.js +0 -8
- package/dist/components/cat-icon.js.map +0 -1
- package/dist/components/cat-icon2.js +0 -48
- package/dist/components/cat-icon2.js.map +0 -1
- package/dist/components/cat-menu.d.ts +0 -11
- package/dist/components/cat-menu.js +0 -870
- package/dist/components/cat-menu.js.map +0 -1
- package/dist/components/cat-scrollable.d.ts +0 -11
- package/dist/components/cat-scrollable.js +0 -1363
- package/dist/components/cat-scrollable.js.map +0 -1
- package/dist/components/cat-skeleton.d.ts +0 -11
- package/dist/components/cat-skeleton.js +0 -78
- package/dist/components/cat-skeleton.js.map +0 -1
- package/dist/components/cat-spinner.d.ts +0 -11
- package/dist/components/cat-spinner.js +0 -8
- package/dist/components/cat-spinner.js.map +0 -1
- package/dist/components/cat-spinner2.js +0 -41
- package/dist/components/cat-spinner2.js.map +0 -1
- package/dist/components/cat-tooltip.d.ts +0 -11
- package/dist/components/cat-tooltip.js +0 -154
- package/dist/components/cat-tooltip.js.map +0 -1
- package/dist/components/first-tabbable.js +0 -1495
- package/dist/components/first-tabbable.js.map +0 -1
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -173
- package/dist/components/index.js.map +0 -1
- package/dist/esm/app-globals-8af9b2cf.js +0 -171
- package/dist/esm/app-globals-8af9b2cf.js.map +0 -1
- package/dist/esm/cat-alert_9.entry.js +0 -4545
- package/dist/esm/cat-alert_9.entry.js.map +0 -1
- package/dist/esm/cat-icon-registry-59da2e37.js +0 -45
- package/dist/esm/cat-icon-registry-59da2e37.js.map +0 -1
- package/dist/esm/catalyst.js +0 -22
- package/dist/esm/catalyst.js.map +0 -1
- package/dist/esm/index-0ff35bca.js +0 -1320
- package/dist/esm/index-0ff35bca.js.map +0 -1
- package/dist/esm/index.js +0 -3
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js +0 -22
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/types/components/cat-alert/cat-alert.d.ts +0 -12
- package/dist/types/components/cat-badge/cat-badge.d.ts +0 -28
- package/dist/types/components/cat-button/cat-button.d.ts +0 -129
- package/dist/types/components/cat-icon/cat-icon-registry.d.ts +0 -15
- package/dist/types/components/cat-icon/cat-icon.d.ts +0 -23
- package/dist/types/components/cat-menu/cat-menu.d.ts +0 -31
- package/dist/types/components/cat-scrollable/cat-scrollable.d.ts +0 -50
- package/dist/types/components/cat-skeleton/cat-skeleton.d.ts +0 -28
- package/dist/types/components/cat-spinner/cat-spinner.d.ts +0 -15
- package/dist/types/components/cat-tooltip/cat-tooltip.d.ts +0 -46
- package/dist/types/components.d.ts +0 -552
- package/dist/types/index.d.ts +0 -2
- package/dist/types/init.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -1565
- package/dist/types/utils/breakpoints.d.ts +0 -7
- package/dist/types/utils/first-tabbable.d.ts +0 -4
- package/dist/types/utils/is-touch-screen.d.ts +0 -2
- package/dist/types/utils/media-matcher.d.ts +0 -13
- package/dist/types/utils/platform.d.ts +0 -18
- package/dist/types/utils/utils.d.ts +0 -1
- package/loader/cdn.js +0 -3
- package/loader/index.cjs.js +0 -3
- package/loader/index.d.ts +0 -12
- package/loader/index.es2017.js +0 -3
- package/loader/index.js +0 -4
- package/loader/package.json +0 -10
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { Breakpoint } from '../../utils/breakpoints';
|
|
3
|
-
/**
|
|
4
|
-
* Buttons are used for interface actions.
|
|
5
|
-
*
|
|
6
|
-
* @part button - The native anchor or button element.
|
|
7
|
-
* @part content - The textual content of the button.
|
|
8
|
-
* @part prefix - The prefix icon.
|
|
9
|
-
* @part suffix - The suffix icon.
|
|
10
|
-
*/
|
|
11
|
-
export declare class CatButton {
|
|
12
|
-
private button;
|
|
13
|
-
private mediaMatcher?;
|
|
14
|
-
private mediaQueryList?;
|
|
15
|
-
private mediaQueryListener?;
|
|
16
|
-
_iconOnly: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* The rendering style of the button.
|
|
19
|
-
*/
|
|
20
|
-
variant: 'filled' | 'outlined' | 'text';
|
|
21
|
-
/**
|
|
22
|
-
* The color palette of the button.
|
|
23
|
-
*/
|
|
24
|
-
color: 'primary' | 'secondary' | 'danger' | 'success' | 'warning';
|
|
25
|
-
/**
|
|
26
|
-
* The size of the button.
|
|
27
|
-
*/
|
|
28
|
-
size: 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
29
|
-
/**
|
|
30
|
-
* The name of the button, which gets paired with the button's value when
|
|
31
|
-
* submitted as part of a form. Corresponds with the native HTML name
|
|
32
|
-
* attribute.
|
|
33
|
-
*/
|
|
34
|
-
name?: string;
|
|
35
|
-
/**
|
|
36
|
-
* The value of the button, which gets paired with the button's name when
|
|
37
|
-
* submitted as part of a form. Corresponds with the native HTML value
|
|
38
|
-
* attribute.
|
|
39
|
-
*/
|
|
40
|
-
value?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Specifies that the button should be disabled. A disabled button is unusable
|
|
43
|
-
* and un-clickable. Corresponds with the native HTML disabled attribute.
|
|
44
|
-
*/
|
|
45
|
-
disabled: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Displays the button in a loading state with a spinner. Just like a disabled
|
|
48
|
-
* button, an inactive button is unusable and un-clickable. However, it
|
|
49
|
-
* retains the current focus state.
|
|
50
|
-
*/
|
|
51
|
-
loading: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Allows the button to submit a form.
|
|
54
|
-
*/
|
|
55
|
-
submit: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Ellipse overflowing button content.
|
|
58
|
-
*/
|
|
59
|
-
ellipsed: boolean;
|
|
60
|
-
/**
|
|
61
|
-
* Use round button edges.
|
|
62
|
-
*/
|
|
63
|
-
round: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* A destination to link to, rendered in the href attribute of a link.
|
|
66
|
-
*/
|
|
67
|
-
url?: string;
|
|
68
|
-
/**
|
|
69
|
-
* Specifies where to open the linked document.
|
|
70
|
-
*/
|
|
71
|
-
urlTarget?: '_blank' | '_self';
|
|
72
|
-
/**
|
|
73
|
-
* The name of an icon to be displayed in the button.
|
|
74
|
-
*/
|
|
75
|
-
icon?: string;
|
|
76
|
-
/**
|
|
77
|
-
* Hide the actual button content and only display the icon.
|
|
78
|
-
*/
|
|
79
|
-
iconOnly: boolean | Breakpoint;
|
|
80
|
-
/**
|
|
81
|
-
* Display the icon as a suffix.
|
|
82
|
-
*/
|
|
83
|
-
iconSuffix: boolean;
|
|
84
|
-
/**
|
|
85
|
-
* Adds a unique identifier for the button. Please note that with this
|
|
86
|
-
* particular component this ID is added inside the web component. If you need
|
|
87
|
-
* an ID on the HTML element, use the regular `id` attribute instead.
|
|
88
|
-
*/
|
|
89
|
-
buttonId?: string;
|
|
90
|
-
/**
|
|
91
|
-
* Adds accessible label for the button that is only shown for screen
|
|
92
|
-
* readers. Typically, this label text replaces the visible text on the
|
|
93
|
-
* button for users who use assistive technology.
|
|
94
|
-
*/
|
|
95
|
-
a11yLabel?: string;
|
|
96
|
-
onIconOnlyChanged(value: boolean | Breakpoint): void;
|
|
97
|
-
/**
|
|
98
|
-
* Emitted when the button is clicked.
|
|
99
|
-
*/
|
|
100
|
-
catClick: EventEmitter<MouseEvent>;
|
|
101
|
-
/**
|
|
102
|
-
* Emitted when the button received focus.
|
|
103
|
-
*/
|
|
104
|
-
catFocus: EventEmitter<FocusEvent>;
|
|
105
|
-
/**
|
|
106
|
-
* Emitted when the button loses focus.
|
|
107
|
-
*/
|
|
108
|
-
catBlur: EventEmitter<FocusEvent>;
|
|
109
|
-
componentWillLoad(): void;
|
|
110
|
-
componentWillRender(): void;
|
|
111
|
-
haltDisabledEvents(event: Event): void;
|
|
112
|
-
/**
|
|
113
|
-
* Sets focus on the button. Use this method instead of `button.focus()`.
|
|
114
|
-
*
|
|
115
|
-
* @param options An optional object providing options to control aspects of
|
|
116
|
-
* the focusing process.
|
|
117
|
-
*/
|
|
118
|
-
setFocus(options?: FocusOptions): Promise<void>;
|
|
119
|
-
render(): any;
|
|
120
|
-
private get iconSize();
|
|
121
|
-
private get spinnerSize();
|
|
122
|
-
private get isIconButton();
|
|
123
|
-
private get hasPrefixIcon();
|
|
124
|
-
private get hasSuffixIcon();
|
|
125
|
-
private get content();
|
|
126
|
-
private onClick;
|
|
127
|
-
private onFocus;
|
|
128
|
-
private onBlur;
|
|
129
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare class CatIconRegistry {
|
|
2
|
-
private static instance;
|
|
3
|
-
private readonly icons;
|
|
4
|
-
private constructor();
|
|
5
|
-
static getInstance(): CatIconRegistry;
|
|
6
|
-
getIcon(name: string, setName?: string): string | undefined;
|
|
7
|
-
addIcon(name: string, data: string, setName?: string): void;
|
|
8
|
-
addIcons(icons: {
|
|
9
|
-
[name: string]: string;
|
|
10
|
-
}, setName?: string): void;
|
|
11
|
-
removeIcon(name: string, setName?: string): void;
|
|
12
|
-
removeIcons(names: string[], setName?: string): void;
|
|
13
|
-
private buildName;
|
|
14
|
-
private buildEvent;
|
|
15
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Icons are used to provide additional meaning or in places where text label
|
|
3
|
-
* doesn't fit.
|
|
4
|
-
*
|
|
5
|
-
* @part icon - The native span element wrapping the SVG icon.
|
|
6
|
-
*/
|
|
7
|
-
export declare class CatIcon {
|
|
8
|
-
private readonly iconRegistry;
|
|
9
|
-
/**
|
|
10
|
-
* The name of the icon.
|
|
11
|
-
*/
|
|
12
|
-
icon: string;
|
|
13
|
-
/**
|
|
14
|
-
* The size of the icon.
|
|
15
|
-
*/
|
|
16
|
-
size: 'xs' | 's' | 'm' | 'l' | 'xl' | 'inline';
|
|
17
|
-
/**
|
|
18
|
-
* Adds accessible label for the icon that is only shown for screen
|
|
19
|
-
* readers. The `aria-hidden` attribute will be set if no label is present.
|
|
20
|
-
*/
|
|
21
|
-
a11yLabel?: string;
|
|
22
|
-
render(): any;
|
|
23
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Placement } from '@floating-ui/dom';
|
|
2
|
-
import { EventEmitter } from '../../stencil-public-runtime';
|
|
3
|
-
export declare class CatMenu {
|
|
4
|
-
private static readonly OFFSET;
|
|
5
|
-
private readonly id;
|
|
6
|
-
private triggerSlot?;
|
|
7
|
-
private trigger?;
|
|
8
|
-
private content?;
|
|
9
|
-
private trap?;
|
|
10
|
-
private keyListener?;
|
|
11
|
-
/**
|
|
12
|
-
* The placement of the menu.
|
|
13
|
-
*/
|
|
14
|
-
placement: Placement;
|
|
15
|
-
/**
|
|
16
|
-
* Emitted when the menu is opened.
|
|
17
|
-
*/
|
|
18
|
-
catOpen: EventEmitter<FocusEvent>;
|
|
19
|
-
/**
|
|
20
|
-
* Emitted when the menu is closed.
|
|
21
|
-
*/
|
|
22
|
-
catClose: EventEmitter<FocusEvent>;
|
|
23
|
-
clickHandler(event: CustomEvent<MouseEvent>): void;
|
|
24
|
-
componentDidLoad(): void;
|
|
25
|
-
disconnectedCallback(): void;
|
|
26
|
-
render(): any;
|
|
27
|
-
private get contentId();
|
|
28
|
-
private show;
|
|
29
|
-
private hide;
|
|
30
|
-
private update;
|
|
31
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
export declare class CatScrollable {
|
|
3
|
-
scrollElement?: HTMLElement;
|
|
4
|
-
scrollWrapperElement?: HTMLElement;
|
|
5
|
-
private readonly init;
|
|
6
|
-
private readonly destroyed;
|
|
7
|
-
private scrolled;
|
|
8
|
-
el: HTMLElement;
|
|
9
|
-
/** Flags to enable/disable scroll shadowX. */
|
|
10
|
-
shadowX: boolean;
|
|
11
|
-
/** Flags to enable/disable scroll shadowY. */
|
|
12
|
-
shadowY: boolean;
|
|
13
|
-
/** Flags to enable/disable overflowX. */
|
|
14
|
-
overflowX: boolean;
|
|
15
|
-
/** Flags to enable/disable overflowY. */
|
|
16
|
-
overflowY: boolean;
|
|
17
|
-
/** Flag to enable/disable overscroll behavior. */
|
|
18
|
-
overscroll: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Flag to fire an initial event after content initialization.
|
|
21
|
-
*/
|
|
22
|
-
scrolledInit: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Buffer to be used to calculate the scroll distance.
|
|
25
|
-
*/
|
|
26
|
-
scrolledBuffer: number;
|
|
27
|
-
/**
|
|
28
|
-
* Emitted when the content is fully scrolled to the top.
|
|
29
|
-
*/
|
|
30
|
-
scrolledTop: EventEmitter<void>;
|
|
31
|
-
/**
|
|
32
|
-
* Emitted when the content is fully scrolled to the left.
|
|
33
|
-
*/
|
|
34
|
-
scrolledLeft: EventEmitter<void>;
|
|
35
|
-
/**
|
|
36
|
-
* Emitted when the content is fully scrolled to the right.
|
|
37
|
-
*/
|
|
38
|
-
scrolledRight: EventEmitter<void>;
|
|
39
|
-
/**
|
|
40
|
-
* Emitted when the content is fully scrolled to the bottom.
|
|
41
|
-
*/
|
|
42
|
-
scrolledBottom: EventEmitter<void>;
|
|
43
|
-
componentDidRender(): void;
|
|
44
|
-
componentDidLoad(): void;
|
|
45
|
-
disconnectedCallback(): void;
|
|
46
|
-
render(): any[];
|
|
47
|
-
private attachEmitter;
|
|
48
|
-
private getScrollOffset;
|
|
49
|
-
private toggleClass;
|
|
50
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Skeletons are used to show where content will eventually be drawn.
|
|
3
|
-
*/
|
|
4
|
-
export declare class CatSkeleton {
|
|
5
|
-
/**
|
|
6
|
-
* The animation style of the skeleton.
|
|
7
|
-
*/
|
|
8
|
-
effect: 'plain' | 'sheen' | 'pulse';
|
|
9
|
-
/**
|
|
10
|
-
* The rendering style of the skeleton.
|
|
11
|
-
*/
|
|
12
|
-
variant: 'rectangle' | 'square' | 'circle' | 'head' | 'body';
|
|
13
|
-
/**
|
|
14
|
-
* The size of the skeleton. If the variant is set to "head", the size values
|
|
15
|
-
* "xs" to "xl" translate to the head levels `h1` to `h5`.
|
|
16
|
-
*/
|
|
17
|
-
size: 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
18
|
-
/**
|
|
19
|
-
* The number of text lines to be rendered for "head" and "body" variants.
|
|
20
|
-
* Defaults to 1 for "head" and 3 for "body". Will be ignored for other
|
|
21
|
-
* variants.
|
|
22
|
-
*/
|
|
23
|
-
lines?: number;
|
|
24
|
-
render(): any;
|
|
25
|
-
private get count();
|
|
26
|
-
private get style();
|
|
27
|
-
private random;
|
|
28
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Spinners are used to indicate users that their action is being processed.
|
|
3
|
-
*/
|
|
4
|
-
export declare class CatSpinner {
|
|
5
|
-
/**
|
|
6
|
-
* The size of the spinner.
|
|
7
|
-
*/
|
|
8
|
-
size: 'xs' | 's' | 'm' | 'l' | 'xl' | 'inline';
|
|
9
|
-
/**
|
|
10
|
-
* Adds accessible label for the spinner that is only shown for screen
|
|
11
|
-
* readers. The `aria-hidden` attribute will be set if no label is present.
|
|
12
|
-
*/
|
|
13
|
-
a11yLabel?: string;
|
|
14
|
-
render(): any;
|
|
15
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Placement } from '@floating-ui/dom';
|
|
2
|
-
export declare class CatTooltip {
|
|
3
|
-
private static readonly OFFSET;
|
|
4
|
-
private readonly id;
|
|
5
|
-
private tooltip?;
|
|
6
|
-
private triggerElement?;
|
|
7
|
-
private trigger?;
|
|
8
|
-
private showTimeout?;
|
|
9
|
-
private hideTimeout?;
|
|
10
|
-
private touchTimeout?;
|
|
11
|
-
/**
|
|
12
|
-
* The content of the tooltip.
|
|
13
|
-
*/
|
|
14
|
-
content: string;
|
|
15
|
-
/**
|
|
16
|
-
* Specifies that the tooltip should be disabled. A disabled tooltip is unusable,
|
|
17
|
-
* and invisible. Corresponds with the native HTML disabled attribute.
|
|
18
|
-
*/
|
|
19
|
-
disabled: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* The placement of the tooltip.
|
|
22
|
-
*/
|
|
23
|
-
placement: Placement;
|
|
24
|
-
/**
|
|
25
|
-
* The delay time for showing tooltip in ms.
|
|
26
|
-
*/
|
|
27
|
-
showDelay: number;
|
|
28
|
-
/**
|
|
29
|
-
* The delay time for hiding tooltip in ms.
|
|
30
|
-
*/
|
|
31
|
-
hideDelay: number;
|
|
32
|
-
/**
|
|
33
|
-
* The duration of tap to show the tooltip.
|
|
34
|
-
*/
|
|
35
|
-
longTouchDuration: number;
|
|
36
|
-
handleKeyDown({ key }: KeyboardEvent): void;
|
|
37
|
-
componentDidLoad(): void;
|
|
38
|
-
disconnectedCallback(): void;
|
|
39
|
-
render(): any;
|
|
40
|
-
private get isTabbable();
|
|
41
|
-
private update;
|
|
42
|
-
private showListener;
|
|
43
|
-
private hideListener;
|
|
44
|
-
private touchStartListener;
|
|
45
|
-
private touchEndListener;
|
|
46
|
-
}
|