@haiilo/catalyst 0.0.11
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/LICENSE +21 -0
- package/README.md +76 -0
- package/dist/catalyst/app-globals-54573336.js +716 -0
- package/dist/catalyst/cat-button.entry.js +621 -0
- package/dist/catalyst/cat-icon-registry-59da2e37.js +43 -0
- package/dist/catalyst/cat-icon.entry.js +27 -0
- package/dist/catalyst/cat-spinner.entry.js +21 -0
- package/dist/catalyst/catalyst.css +1403 -0
- package/dist/catalyst/catalyst.esm.js +126 -0
- package/dist/catalyst/css-shim-20dbffa5.js +4 -0
- package/dist/catalyst/dom-c5ed0ba5.js +73 -0
- package/dist/catalyst/index-6672be93.js +3031 -0
- package/dist/catalyst/index.cdn.js +21 -0
- package/dist/catalyst/index.esm.js +1 -0
- package/dist/catalyst/shadow-css-8c625855.js +388 -0
- package/dist/components/cat-button.d.ts +11 -0
- package/dist/components/cat-icon.d.ts +11 -0
- package/dist/components/cat-spinner.d.ts +11 -0
- package/dist/components/index.d.ts +26 -0
- package/dist/types/components/cat-button/cat-button.d.ts +123 -0
- package/dist/types/components/cat-icon/cat-icon-registry.d.ts +15 -0
- package/dist/types/components/cat-icon/cat-icon.d.ts +23 -0
- package/dist/types/components/cat-spinner/cat-spinner.d.ts +15 -0
- package/dist/types/components.d.ts +253 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/init.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1565 -0
- package/dist/types/utils/breakpoints.d.ts +7 -0
- package/dist/types/utils/media-matcher.d.ts +13 -0
- package/dist/types/utils/platform.d.ts +18 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +78 -0
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/**
|
|
4
|
+
* This is an autogenerated file created by the Stencil compiler.
|
|
5
|
+
* It contains typing information for all components that exist in this project.
|
|
6
|
+
*/
|
|
7
|
+
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { Breakpoint } from "./utils/breakpoints";
|
|
9
|
+
export namespace Components {
|
|
10
|
+
interface CatButton {
|
|
11
|
+
/**
|
|
12
|
+
* Adds accessible label for the button that is only shown for screen readers. Typically, this label text replaces the visible text on the button for users who use assistive technology.
|
|
13
|
+
*/
|
|
14
|
+
"a11yLabel"?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Adds a unique identifier for the button. Please note that with this particular component this ID is added inside the web component. If you need an ID on the HTML element, use the regular `id` attribute instead.
|
|
17
|
+
*/
|
|
18
|
+
"buttonId"?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The color palette of the button.
|
|
21
|
+
*/
|
|
22
|
+
"color": 'primary' | 'secondary' | 'danger' | 'success' | 'warning';
|
|
23
|
+
/**
|
|
24
|
+
* Specifies that the button should be disabled. A disabled button is unusable and un-clickable. Corresponds with the native HTML disabled attribute.
|
|
25
|
+
*/
|
|
26
|
+
"disabled": boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Ellipse overflowing button content.
|
|
29
|
+
*/
|
|
30
|
+
"ellipsed": boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The name of an icon to be displayed in the button.
|
|
33
|
+
*/
|
|
34
|
+
"icon"?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Hide the actual button content and only display the icon.
|
|
37
|
+
*/
|
|
38
|
+
"iconOnly": boolean | Breakpoint;
|
|
39
|
+
/**
|
|
40
|
+
* Display the icon as a suffix.
|
|
41
|
+
*/
|
|
42
|
+
"iconSuffix": boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Displays the button in a loading state with a spinner. Just like a disabled button, an inactive button is unusable and un-clickable. However, it retains the current focus state.
|
|
45
|
+
*/
|
|
46
|
+
"loading": boolean;
|
|
47
|
+
/**
|
|
48
|
+
* 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.
|
|
49
|
+
*/
|
|
50
|
+
"name"?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Use round button edges.
|
|
53
|
+
*/
|
|
54
|
+
"round": boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Sets focus on the button. Use this method instead of `button.focus()`.
|
|
57
|
+
* @param options An optional object providing options to control aspects of the focusing process.
|
|
58
|
+
*/
|
|
59
|
+
"setFocus": (options?: FocusOptions | undefined) => Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* The size of the button.
|
|
62
|
+
*/
|
|
63
|
+
"size": 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
64
|
+
/**
|
|
65
|
+
* Allows the button to submit a form.
|
|
66
|
+
*/
|
|
67
|
+
"submit": boolean;
|
|
68
|
+
/**
|
|
69
|
+
* A destination to link to, rendered in the href attribute of a link.
|
|
70
|
+
*/
|
|
71
|
+
"url"?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Specifies where to open the linked document.
|
|
74
|
+
*/
|
|
75
|
+
"urlTarget"?: '_blank' | '_self';
|
|
76
|
+
/**
|
|
77
|
+
* The value of the button, which gets paired with the button's name when submitted as part of a form. Corresponds with the native HTML value attribute.
|
|
78
|
+
*/
|
|
79
|
+
"value"?: string;
|
|
80
|
+
/**
|
|
81
|
+
* The rendering style of the button.
|
|
82
|
+
*/
|
|
83
|
+
"variant": 'filled' | 'outlined' | 'text';
|
|
84
|
+
}
|
|
85
|
+
interface CatIcon {
|
|
86
|
+
/**
|
|
87
|
+
* Adds accessible label for the icon that is only shown for screen readers. The `aria-hidden` attribute will be set if no label is present.
|
|
88
|
+
*/
|
|
89
|
+
"a11yLabel"?: string;
|
|
90
|
+
/**
|
|
91
|
+
* The name of the icon.
|
|
92
|
+
*/
|
|
93
|
+
"icon": string;
|
|
94
|
+
/**
|
|
95
|
+
* The size of the icon.
|
|
96
|
+
*/
|
|
97
|
+
"size": 'xs' | 's' | 'm' | 'l' | 'xl' | 'inline';
|
|
98
|
+
}
|
|
99
|
+
interface CatSpinner {
|
|
100
|
+
/**
|
|
101
|
+
* Adds accessible label for the spinner that is only shown for screen readers. The `aria-hidden` attribute will be set if no label is present.
|
|
102
|
+
*/
|
|
103
|
+
"a11yLabel"?: string;
|
|
104
|
+
/**
|
|
105
|
+
* The size of the spinner.
|
|
106
|
+
*/
|
|
107
|
+
"size": 'xs' | 's' | 'm' | 'l' | 'xl' | 'inline';
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
declare global {
|
|
111
|
+
interface HTMLCatButtonElement extends Components.CatButton, HTMLStencilElement {
|
|
112
|
+
}
|
|
113
|
+
var HTMLCatButtonElement: {
|
|
114
|
+
prototype: HTMLCatButtonElement;
|
|
115
|
+
new (): HTMLCatButtonElement;
|
|
116
|
+
};
|
|
117
|
+
interface HTMLCatIconElement extends Components.CatIcon, HTMLStencilElement {
|
|
118
|
+
}
|
|
119
|
+
var HTMLCatIconElement: {
|
|
120
|
+
prototype: HTMLCatIconElement;
|
|
121
|
+
new (): HTMLCatIconElement;
|
|
122
|
+
};
|
|
123
|
+
interface HTMLCatSpinnerElement extends Components.CatSpinner, HTMLStencilElement {
|
|
124
|
+
}
|
|
125
|
+
var HTMLCatSpinnerElement: {
|
|
126
|
+
prototype: HTMLCatSpinnerElement;
|
|
127
|
+
new (): HTMLCatSpinnerElement;
|
|
128
|
+
};
|
|
129
|
+
interface HTMLElementTagNameMap {
|
|
130
|
+
"cat-button": HTMLCatButtonElement;
|
|
131
|
+
"cat-icon": HTMLCatIconElement;
|
|
132
|
+
"cat-spinner": HTMLCatSpinnerElement;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
declare namespace LocalJSX {
|
|
136
|
+
interface CatButton {
|
|
137
|
+
/**
|
|
138
|
+
* Adds accessible label for the button that is only shown for screen readers. Typically, this label text replaces the visible text on the button for users who use assistive technology.
|
|
139
|
+
*/
|
|
140
|
+
"a11yLabel"?: string;
|
|
141
|
+
/**
|
|
142
|
+
* Adds a unique identifier for the button. Please note that with this particular component this ID is added inside the web component. If you need an ID on the HTML element, use the regular `id` attribute instead.
|
|
143
|
+
*/
|
|
144
|
+
"buttonId"?: string;
|
|
145
|
+
/**
|
|
146
|
+
* The color palette of the button.
|
|
147
|
+
*/
|
|
148
|
+
"color"?: 'primary' | 'secondary' | 'danger' | 'success' | 'warning';
|
|
149
|
+
/**
|
|
150
|
+
* Specifies that the button should be disabled. A disabled button is unusable and un-clickable. Corresponds with the native HTML disabled attribute.
|
|
151
|
+
*/
|
|
152
|
+
"disabled"?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Ellipse overflowing button content.
|
|
155
|
+
*/
|
|
156
|
+
"ellipsed"?: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* The name of an icon to be displayed in the button.
|
|
159
|
+
*/
|
|
160
|
+
"icon"?: string;
|
|
161
|
+
/**
|
|
162
|
+
* Hide the actual button content and only display the icon.
|
|
163
|
+
*/
|
|
164
|
+
"iconOnly"?: boolean | Breakpoint;
|
|
165
|
+
/**
|
|
166
|
+
* Display the icon as a suffix.
|
|
167
|
+
*/
|
|
168
|
+
"iconSuffix"?: boolean;
|
|
169
|
+
/**
|
|
170
|
+
* Displays the button in a loading state with a spinner. Just like a disabled button, an inactive button is unusable and un-clickable. However, it retains the current focus state.
|
|
171
|
+
*/
|
|
172
|
+
"loading"?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* 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.
|
|
175
|
+
*/
|
|
176
|
+
"name"?: string;
|
|
177
|
+
/**
|
|
178
|
+
* Emitted when the button loses focus.
|
|
179
|
+
*/
|
|
180
|
+
"onCatBlur"?: (event: CustomEvent<FocusEvent>) => void;
|
|
181
|
+
/**
|
|
182
|
+
* Emitted when the button received focus.
|
|
183
|
+
*/
|
|
184
|
+
"onCatFocus"?: (event: CustomEvent<FocusEvent>) => void;
|
|
185
|
+
/**
|
|
186
|
+
* Use round button edges.
|
|
187
|
+
*/
|
|
188
|
+
"round"?: boolean;
|
|
189
|
+
/**
|
|
190
|
+
* The size of the button.
|
|
191
|
+
*/
|
|
192
|
+
"size"?: 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
193
|
+
/**
|
|
194
|
+
* Allows the button to submit a form.
|
|
195
|
+
*/
|
|
196
|
+
"submit"?: boolean;
|
|
197
|
+
/**
|
|
198
|
+
* A destination to link to, rendered in the href attribute of a link.
|
|
199
|
+
*/
|
|
200
|
+
"url"?: string;
|
|
201
|
+
/**
|
|
202
|
+
* Specifies where to open the linked document.
|
|
203
|
+
*/
|
|
204
|
+
"urlTarget"?: '_blank' | '_self';
|
|
205
|
+
/**
|
|
206
|
+
* The value of the button, which gets paired with the button's name when submitted as part of a form. Corresponds with the native HTML value attribute.
|
|
207
|
+
*/
|
|
208
|
+
"value"?: string;
|
|
209
|
+
/**
|
|
210
|
+
* The rendering style of the button.
|
|
211
|
+
*/
|
|
212
|
+
"variant"?: 'filled' | 'outlined' | 'text';
|
|
213
|
+
}
|
|
214
|
+
interface CatIcon {
|
|
215
|
+
/**
|
|
216
|
+
* Adds accessible label for the icon that is only shown for screen readers. The `aria-hidden` attribute will be set if no label is present.
|
|
217
|
+
*/
|
|
218
|
+
"a11yLabel"?: string;
|
|
219
|
+
/**
|
|
220
|
+
* The name of the icon.
|
|
221
|
+
*/
|
|
222
|
+
"icon"?: string;
|
|
223
|
+
/**
|
|
224
|
+
* The size of the icon.
|
|
225
|
+
*/
|
|
226
|
+
"size"?: 'xs' | 's' | 'm' | 'l' | 'xl' | 'inline';
|
|
227
|
+
}
|
|
228
|
+
interface CatSpinner {
|
|
229
|
+
/**
|
|
230
|
+
* Adds accessible label for the spinner that is only shown for screen readers. The `aria-hidden` attribute will be set if no label is present.
|
|
231
|
+
*/
|
|
232
|
+
"a11yLabel"?: string;
|
|
233
|
+
/**
|
|
234
|
+
* The size of the spinner.
|
|
235
|
+
*/
|
|
236
|
+
"size"?: 'xs' | 's' | 'm' | 'l' | 'xl' | 'inline';
|
|
237
|
+
}
|
|
238
|
+
interface IntrinsicElements {
|
|
239
|
+
"cat-button": CatButton;
|
|
240
|
+
"cat-icon": CatIcon;
|
|
241
|
+
"cat-spinner": CatSpinner;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
export { LocalJSX as JSX };
|
|
245
|
+
declare module "@stencil/core" {
|
|
246
|
+
export namespace JSX {
|
|
247
|
+
interface IntrinsicElements {
|
|
248
|
+
"cat-button": LocalJSX.CatButton & JSXBase.HTMLAttributes<HTMLCatButtonElement>;
|
|
249
|
+
"cat-icon": LocalJSX.CatIcon & JSXBase.HTMLAttributes<HTMLCatIconElement>;
|
|
250
|
+
"cat-spinner": LocalJSX.CatSpinner & JSXBase.HTMLAttributes<HTMLCatSpinnerElement>;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Components, JSX } from './components';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (): void;
|