@haiilo/catalyst 0.1.1 → 0.2.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 -1410
- package/dist/catalyst/catalyst.esm.js +1 -126
- package/dist/catalyst/index.esm.js +0 -1
- package/dist/catalyst/p-4c438c2d.entry.js +11 -0
- package/dist/catalyst/p-73ee291d.js +1 -0
- package/dist/catalyst/p-94273abf.js +1 -0
- package/dist/cjs/app-globals-a3b3cf88.js +135 -0
- package/dist/cjs/cat-alert_7.cjs.entry.js +3115 -0
- package/dist/cjs/cat-icon-registry-eeff9b7d.js +1359 -0
- package/dist/cjs/catalyst.cjs.js +21 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +23 -0
- package/dist/collection/collection-manifest.json +19 -0
- package/dist/collection/components/cat-alert/cat-alert.css +57 -0
- package/dist/collection/components/cat-alert/cat-alert.js +49 -0
- package/dist/collection/components/cat-badge/cat-badge.css +154 -0
- package/dist/collection/components/cat-badge/cat-badge.js +141 -0
- package/dist/collection/components/cat-button/cat-button.css +319 -0
- package/dist/collection/components/cat-button/cat-button.js +590 -0
- package/dist/collection/components/cat-icon/cat-icon-registry.js +41 -0
- package/dist/collection/components/cat-icon/cat-icon.css +50 -0
- package/dist/collection/components/cat-icon/cat-icon.js +89 -0
- package/dist/collection/components/cat-menu/cat-menu.css +33 -0
- package/dist/collection/components/cat-menu/cat-menu.js +185 -0
- package/dist/collection/components/cat-skeleton/cat-skeleton.css +177 -0
- package/dist/collection/components/cat-skeleton/cat-skeleton.js +130 -0
- package/dist/collection/components/cat-spinner/cat-spinner.css +63 -0
- package/dist/collection/components/cat-spinner/cat-spinner.js +64 -0
- package/dist/collection/index.cdn.js +21 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/init.js +8 -0
- package/dist/collection/utils/breakpoints.js +11 -0
- package/dist/collection/utils/media-matcher.js +54 -0
- package/dist/collection/utils/platform.js +49 -0
- package/dist/collection/utils/utils.js +3 -0
- package/dist/components/cat-alert.d.ts +11 -0
- package/dist/components/cat-alert.js +43 -0
- package/dist/components/cat-badge.d.ts +11 -0
- package/dist/components/cat-badge.js +67 -0
- package/dist/{catalyst/cat-button.entry.js → components/cat-button.js} +68 -44
- package/dist/{catalyst/cat-icon-registry-59da2e37.js → components/cat-icon-registry.js} +0 -0
- package/dist/components/cat-icon.js +6 -0
- package/dist/components/cat-icon2.js +47 -0
- package/dist/{catalyst/cat-menu.entry.js → components/cat-menu.js} +71 -650
- package/dist/components/cat-skeleton.d.ts +11 -0
- package/dist/components/cat-skeleton.js +77 -0
- package/dist/components/cat-spinner.js +6 -0
- package/dist/{catalyst/cat-spinner.entry.js → components/cat-spinner2.js} +25 -6
- package/dist/components/index.js +134 -0
- package/dist/esm/app-globals-fc0806a7.js +133 -0
- package/dist/esm/cat-alert_7.entry.js +3105 -0
- package/dist/esm/cat-icon-registry-d877de13.js +1331 -0
- package/dist/esm/catalyst.js +19 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +19 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/cat-alert/cat-alert.d.ts +12 -0
- package/dist/types/components/cat-badge/cat-badge.d.ts +28 -0
- package/dist/types/components/cat-button/cat-button.d.ts +5 -0
- package/dist/types/components/cat-menu/cat-menu.d.ts +13 -4
- package/dist/types/components/cat-skeleton/cat-skeleton.d.ts +28 -0
- package/dist/types/components.d.ts +129 -0
- package/package.json +1 -1
- package/dist/catalyst/app-globals-f83c9e4a.js +0 -722
- package/dist/catalyst/cat-icon.entry.js +0 -27
- package/dist/catalyst/css-shim-20dbffa5.js +0 -4
- package/dist/catalyst/dom-c5ed0ba5.js +0 -73
- package/dist/catalyst/index-45406d3b.js +0 -3031
- package/dist/catalyst/shadow-css-8c625855.js +0 -388
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
}
|
|
@@ -8,6 +8,34 @@ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
|
8
8
|
import { Breakpoint } from "./utils/breakpoints";
|
|
9
9
|
import { Placement } from "@floating-ui/dom";
|
|
10
10
|
export namespace Components {
|
|
11
|
+
interface CatAlert {
|
|
12
|
+
/**
|
|
13
|
+
* The color palette of the alert.
|
|
14
|
+
*/
|
|
15
|
+
"color": 'primary' | 'secondary' | 'danger' | 'success' | 'warning';
|
|
16
|
+
}
|
|
17
|
+
interface CatBadge {
|
|
18
|
+
/**
|
|
19
|
+
* The color palette of the badge.
|
|
20
|
+
*/
|
|
21
|
+
"color": 'primary' | 'secondary' | 'danger' | 'success' | 'warning';
|
|
22
|
+
/**
|
|
23
|
+
* Draw attention to the badge with a subtle animation.
|
|
24
|
+
*/
|
|
25
|
+
"pulse": boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Use round badge edges.
|
|
28
|
+
*/
|
|
29
|
+
"round": boolean;
|
|
30
|
+
/**
|
|
31
|
+
* The size of the badge.
|
|
32
|
+
*/
|
|
33
|
+
"size": 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
34
|
+
/**
|
|
35
|
+
* The rendering style of the badge.
|
|
36
|
+
*/
|
|
37
|
+
"variant": 'filled' | 'outlined';
|
|
38
|
+
}
|
|
11
39
|
interface CatButton {
|
|
12
40
|
/**
|
|
13
41
|
* 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.
|
|
@@ -98,8 +126,29 @@ export namespace Components {
|
|
|
98
126
|
"size": 'xs' | 's' | 'm' | 'l' | 'xl' | 'inline';
|
|
99
127
|
}
|
|
100
128
|
interface CatMenu {
|
|
129
|
+
/**
|
|
130
|
+
* The placement of the menu.
|
|
131
|
+
*/
|
|
101
132
|
"placement": Placement;
|
|
102
133
|
}
|
|
134
|
+
interface CatSkeleton {
|
|
135
|
+
/**
|
|
136
|
+
* The animation style of the skeleton.
|
|
137
|
+
*/
|
|
138
|
+
"effect": 'plain' | 'sheen' | 'pulse';
|
|
139
|
+
/**
|
|
140
|
+
* The number of text lines to be rendered for "head" and "body" variants. Defaults to 1 for "head" and 3 for "body". Will be ignored for other variants.
|
|
141
|
+
*/
|
|
142
|
+
"lines"?: number;
|
|
143
|
+
/**
|
|
144
|
+
* The size of the skeleton. If the variant is set to "head", the size values "xs" to "xl" translate to the head levels `h1` to `h5`.
|
|
145
|
+
*/
|
|
146
|
+
"size": 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
147
|
+
/**
|
|
148
|
+
* The rendering style of the skeleton.
|
|
149
|
+
*/
|
|
150
|
+
"variant": 'rectangle' | 'square' | 'circle' | 'head' | 'body';
|
|
151
|
+
}
|
|
103
152
|
interface CatSpinner {
|
|
104
153
|
/**
|
|
105
154
|
* 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.
|
|
@@ -112,6 +161,18 @@ export namespace Components {
|
|
|
112
161
|
}
|
|
113
162
|
}
|
|
114
163
|
declare global {
|
|
164
|
+
interface HTMLCatAlertElement extends Components.CatAlert, HTMLStencilElement {
|
|
165
|
+
}
|
|
166
|
+
var HTMLCatAlertElement: {
|
|
167
|
+
prototype: HTMLCatAlertElement;
|
|
168
|
+
new (): HTMLCatAlertElement;
|
|
169
|
+
};
|
|
170
|
+
interface HTMLCatBadgeElement extends Components.CatBadge, HTMLStencilElement {
|
|
171
|
+
}
|
|
172
|
+
var HTMLCatBadgeElement: {
|
|
173
|
+
prototype: HTMLCatBadgeElement;
|
|
174
|
+
new (): HTMLCatBadgeElement;
|
|
175
|
+
};
|
|
115
176
|
interface HTMLCatButtonElement extends Components.CatButton, HTMLStencilElement {
|
|
116
177
|
}
|
|
117
178
|
var HTMLCatButtonElement: {
|
|
@@ -130,6 +191,12 @@ declare global {
|
|
|
130
191
|
prototype: HTMLCatMenuElement;
|
|
131
192
|
new (): HTMLCatMenuElement;
|
|
132
193
|
};
|
|
194
|
+
interface HTMLCatSkeletonElement extends Components.CatSkeleton, HTMLStencilElement {
|
|
195
|
+
}
|
|
196
|
+
var HTMLCatSkeletonElement: {
|
|
197
|
+
prototype: HTMLCatSkeletonElement;
|
|
198
|
+
new (): HTMLCatSkeletonElement;
|
|
199
|
+
};
|
|
133
200
|
interface HTMLCatSpinnerElement extends Components.CatSpinner, HTMLStencilElement {
|
|
134
201
|
}
|
|
135
202
|
var HTMLCatSpinnerElement: {
|
|
@@ -137,13 +204,44 @@ declare global {
|
|
|
137
204
|
new (): HTMLCatSpinnerElement;
|
|
138
205
|
};
|
|
139
206
|
interface HTMLElementTagNameMap {
|
|
207
|
+
"cat-alert": HTMLCatAlertElement;
|
|
208
|
+
"cat-badge": HTMLCatBadgeElement;
|
|
140
209
|
"cat-button": HTMLCatButtonElement;
|
|
141
210
|
"cat-icon": HTMLCatIconElement;
|
|
142
211
|
"cat-menu": HTMLCatMenuElement;
|
|
212
|
+
"cat-skeleton": HTMLCatSkeletonElement;
|
|
143
213
|
"cat-spinner": HTMLCatSpinnerElement;
|
|
144
214
|
}
|
|
145
215
|
}
|
|
146
216
|
declare namespace LocalJSX {
|
|
217
|
+
interface CatAlert {
|
|
218
|
+
/**
|
|
219
|
+
* The color palette of the alert.
|
|
220
|
+
*/
|
|
221
|
+
"color"?: 'primary' | 'secondary' | 'danger' | 'success' | 'warning';
|
|
222
|
+
}
|
|
223
|
+
interface CatBadge {
|
|
224
|
+
/**
|
|
225
|
+
* The color palette of the badge.
|
|
226
|
+
*/
|
|
227
|
+
"color"?: 'primary' | 'secondary' | 'danger' | 'success' | 'warning';
|
|
228
|
+
/**
|
|
229
|
+
* Draw attention to the badge with a subtle animation.
|
|
230
|
+
*/
|
|
231
|
+
"pulse"?: boolean;
|
|
232
|
+
/**
|
|
233
|
+
* Use round badge edges.
|
|
234
|
+
*/
|
|
235
|
+
"round"?: boolean;
|
|
236
|
+
/**
|
|
237
|
+
* The size of the badge.
|
|
238
|
+
*/
|
|
239
|
+
"size"?: 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
240
|
+
/**
|
|
241
|
+
* The rendering style of the badge.
|
|
242
|
+
*/
|
|
243
|
+
"variant"?: 'filled' | 'outlined';
|
|
244
|
+
}
|
|
147
245
|
interface CatButton {
|
|
148
246
|
/**
|
|
149
247
|
* 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.
|
|
@@ -189,6 +287,10 @@ declare namespace LocalJSX {
|
|
|
189
287
|
* Emitted when the button loses focus.
|
|
190
288
|
*/
|
|
191
289
|
"onCatBlur"?: (event: CustomEvent<FocusEvent>) => void;
|
|
290
|
+
/**
|
|
291
|
+
* Emitted when the button is clicked.
|
|
292
|
+
*/
|
|
293
|
+
"onCatClick"?: (event: CustomEvent<MouseEvent>) => void;
|
|
192
294
|
/**
|
|
193
295
|
* Emitted when the button received focus.
|
|
194
296
|
*/
|
|
@@ -245,8 +347,29 @@ declare namespace LocalJSX {
|
|
|
245
347
|
* Emitted when the menu is opened.
|
|
246
348
|
*/
|
|
247
349
|
"onCatOpen"?: (event: CustomEvent<FocusEvent>) => void;
|
|
350
|
+
/**
|
|
351
|
+
* The placement of the menu.
|
|
352
|
+
*/
|
|
248
353
|
"placement"?: Placement;
|
|
249
354
|
}
|
|
355
|
+
interface CatSkeleton {
|
|
356
|
+
/**
|
|
357
|
+
* The animation style of the skeleton.
|
|
358
|
+
*/
|
|
359
|
+
"effect"?: 'plain' | 'sheen' | 'pulse';
|
|
360
|
+
/**
|
|
361
|
+
* The number of text lines to be rendered for "head" and "body" variants. Defaults to 1 for "head" and 3 for "body". Will be ignored for other variants.
|
|
362
|
+
*/
|
|
363
|
+
"lines"?: number;
|
|
364
|
+
/**
|
|
365
|
+
* The size of the skeleton. If the variant is set to "head", the size values "xs" to "xl" translate to the head levels `h1` to `h5`.
|
|
366
|
+
*/
|
|
367
|
+
"size"?: 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
368
|
+
/**
|
|
369
|
+
* The rendering style of the skeleton.
|
|
370
|
+
*/
|
|
371
|
+
"variant"?: 'rectangle' | 'square' | 'circle' | 'head' | 'body';
|
|
372
|
+
}
|
|
250
373
|
interface CatSpinner {
|
|
251
374
|
/**
|
|
252
375
|
* 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.
|
|
@@ -258,9 +381,12 @@ declare namespace LocalJSX {
|
|
|
258
381
|
"size"?: 'xs' | 's' | 'm' | 'l' | 'xl' | 'inline';
|
|
259
382
|
}
|
|
260
383
|
interface IntrinsicElements {
|
|
384
|
+
"cat-alert": CatAlert;
|
|
385
|
+
"cat-badge": CatBadge;
|
|
261
386
|
"cat-button": CatButton;
|
|
262
387
|
"cat-icon": CatIcon;
|
|
263
388
|
"cat-menu": CatMenu;
|
|
389
|
+
"cat-skeleton": CatSkeleton;
|
|
264
390
|
"cat-spinner": CatSpinner;
|
|
265
391
|
}
|
|
266
392
|
}
|
|
@@ -268,9 +394,12 @@ export { LocalJSX as JSX };
|
|
|
268
394
|
declare module "@stencil/core" {
|
|
269
395
|
export namespace JSX {
|
|
270
396
|
interface IntrinsicElements {
|
|
397
|
+
"cat-alert": LocalJSX.CatAlert & JSXBase.HTMLAttributes<HTMLCatAlertElement>;
|
|
398
|
+
"cat-badge": LocalJSX.CatBadge & JSXBase.HTMLAttributes<HTMLCatBadgeElement>;
|
|
271
399
|
"cat-button": LocalJSX.CatButton & JSXBase.HTMLAttributes<HTMLCatButtonElement>;
|
|
272
400
|
"cat-icon": LocalJSX.CatIcon & JSXBase.HTMLAttributes<HTMLCatIconElement>;
|
|
273
401
|
"cat-menu": LocalJSX.CatMenu & JSXBase.HTMLAttributes<HTMLCatMenuElement>;
|
|
402
|
+
"cat-skeleton": LocalJSX.CatSkeleton & JSXBase.HTMLAttributes<HTMLCatSkeletonElement>;
|
|
274
403
|
"cat-spinner": LocalJSX.CatSpinner & JSXBase.HTMLAttributes<HTMLCatSpinnerElement>;
|
|
275
404
|
}
|
|
276
405
|
}
|