@haiilo/catalyst 0.1.0 → 0.2.1
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 -1403
- package/dist/catalyst/catalyst.esm.js +1 -126
- package/dist/catalyst/index.esm.js +0 -1
- package/dist/catalyst/p-22fac0fb.js +1 -0
- package/dist/catalyst/p-2dc28db3.entry.js +11 -0
- package/dist/catalyst/{p-f3fad7a0.js → p-e08f13c7.js} +1 -1
- package/dist/cjs/{app-globals-8908fe44.js → app-globals-814f34aa.js} +5 -2
- package/dist/cjs/cat-alert_7.cjs.entry.js +3115 -0
- package/dist/cjs/{cat-icon-registry-da00f7d6.js → cat-icon-registry-909e38e7.js} +65 -1
- package/dist/cjs/catalyst.cjs.js +7 -114
- package/dist/cjs/loader.cjs.js +5 -20
- package/dist/collection/collection-manifest.json +6 -2
- 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 +43 -8
- package/dist/collection/components/cat-button/cat-button.js +28 -6
- package/dist/collection/components/cat-icon/cat-icon.css +2 -1
- 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/components/cat-alert.d.ts +11 -0
- package/dist/components/cat-alert.js +42 -0
- package/dist/components/cat-badge.d.ts +11 -0
- package/dist/components/cat-badge.js +66 -0
- package/dist/components/cat-button.js +14 -42
- package/dist/components/cat-icon2.js +4 -5
- package/dist/components/cat-menu.d.ts +11 -0
- package/dist/components/cat-menu.js +2377 -0
- package/dist/components/cat-skeleton.d.ts +11 -0
- package/dist/components/cat-skeleton.js +76 -0
- package/dist/components/cat-spinner2.js +3 -4
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +4 -575
- package/dist/esm/{app-globals-000601ea.js → app-globals-e1679c2d.js} +5 -2
- package/dist/esm/cat-alert_7.entry.js +3105 -0
- package/dist/esm/{cat-icon-registry-b66e3f57.js → cat-icon-registry-4d02ee6c.js} +65 -2
- package/dist/esm/catalyst.js +6 -113
- package/dist/esm/loader.js +4 -19
- package/dist/esm/polyfills/css-shim.js +1 -1
- 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 +32 -0
- package/dist/types/components/cat-skeleton/cat-skeleton.d.ts +28 -0
- package/dist/types/components.d.ts +153 -0
- package/package.json +12 -9
- package/dist/catalyst/app-globals-622e4f87.js +0 -704
- package/dist/catalyst/cat-button.entry.js +0 -629
- package/dist/catalyst/cat-icon-registry-59da2e37.js +0 -43
- package/dist/catalyst/cat-icon.entry.js +0 -27
- package/dist/catalyst/cat-spinner.entry.js +0 -21
- package/dist/catalyst/css-shim-20dbffa5.js +0 -4
- package/dist/catalyst/dom-c5ed0ba5.js +0 -73
- package/dist/catalyst/index-72a1bbba.js +0 -3031
- package/dist/catalyst/p-17a20657.js +0 -1
- package/dist/catalyst/p-582935bb.entry.js +0 -1
- package/dist/catalyst/shadow-css-8c625855.js +0 -388
- package/dist/cjs/app-globals-fe9ff8ba.js +0 -706
- package/dist/cjs/cat-button.cjs.entry.js +0 -633
- package/dist/cjs/cat-button_3.cjs.entry.js +0 -645
- package/dist/cjs/cat-icon-registry-850c538c.js +0 -45
- package/dist/cjs/cat-icon.cjs.entry.js +0 -31
- package/dist/cjs/cat-spinner.cjs.entry.js +0 -25
- package/dist/cjs/css-shim-3bfdba4f.js +0 -6
- package/dist/cjs/dom-8ac1ad03.js +0 -75
- package/dist/cjs/index-083488c8.js +0 -3065
- package/dist/cjs/shadow-css-41d9783d.js +0 -390
- package/dist/esm/app-globals-622e4f87.js +0 -704
- package/dist/esm/cat-button.entry.js +0 -629
- package/dist/esm/cat-button_3.entry.js +0 -639
- package/dist/esm/cat-icon-registry-59da2e37.js +0 -43
- package/dist/esm/cat-icon.entry.js +0 -27
- package/dist/esm/cat-spinner.entry.js +0 -21
- package/dist/esm/css-shim-20dbffa5.js +0 -4
- package/dist/esm/dom-c5ed0ba5.js +0 -73
- package/dist/esm/index-72a1bbba.js +0 -3031
- package/dist/esm/shadow-css-8c625855.js +0 -388
|
@@ -6,7 +6,36 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { Breakpoint } from "./utils/breakpoints";
|
|
9
|
+
import { Placement } from "@floating-ui/dom";
|
|
9
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
|
+
}
|
|
10
39
|
interface CatButton {
|
|
11
40
|
/**
|
|
12
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.
|
|
@@ -96,6 +125,30 @@ export namespace Components {
|
|
|
96
125
|
*/
|
|
97
126
|
"size": 'xs' | 's' | 'm' | 'l' | 'xl' | 'inline';
|
|
98
127
|
}
|
|
128
|
+
interface CatMenu {
|
|
129
|
+
/**
|
|
130
|
+
* The placement of the menu.
|
|
131
|
+
*/
|
|
132
|
+
"placement": Placement;
|
|
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
|
+
}
|
|
99
152
|
interface CatSpinner {
|
|
100
153
|
/**
|
|
101
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.
|
|
@@ -108,6 +161,18 @@ export namespace Components {
|
|
|
108
161
|
}
|
|
109
162
|
}
|
|
110
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
|
+
};
|
|
111
176
|
interface HTMLCatButtonElement extends Components.CatButton, HTMLStencilElement {
|
|
112
177
|
}
|
|
113
178
|
var HTMLCatButtonElement: {
|
|
@@ -120,6 +185,18 @@ declare global {
|
|
|
120
185
|
prototype: HTMLCatIconElement;
|
|
121
186
|
new (): HTMLCatIconElement;
|
|
122
187
|
};
|
|
188
|
+
interface HTMLCatMenuElement extends Components.CatMenu, HTMLStencilElement {
|
|
189
|
+
}
|
|
190
|
+
var HTMLCatMenuElement: {
|
|
191
|
+
prototype: HTMLCatMenuElement;
|
|
192
|
+
new (): HTMLCatMenuElement;
|
|
193
|
+
};
|
|
194
|
+
interface HTMLCatSkeletonElement extends Components.CatSkeleton, HTMLStencilElement {
|
|
195
|
+
}
|
|
196
|
+
var HTMLCatSkeletonElement: {
|
|
197
|
+
prototype: HTMLCatSkeletonElement;
|
|
198
|
+
new (): HTMLCatSkeletonElement;
|
|
199
|
+
};
|
|
123
200
|
interface HTMLCatSpinnerElement extends Components.CatSpinner, HTMLStencilElement {
|
|
124
201
|
}
|
|
125
202
|
var HTMLCatSpinnerElement: {
|
|
@@ -127,12 +204,44 @@ declare global {
|
|
|
127
204
|
new (): HTMLCatSpinnerElement;
|
|
128
205
|
};
|
|
129
206
|
interface HTMLElementTagNameMap {
|
|
207
|
+
"cat-alert": HTMLCatAlertElement;
|
|
208
|
+
"cat-badge": HTMLCatBadgeElement;
|
|
130
209
|
"cat-button": HTMLCatButtonElement;
|
|
131
210
|
"cat-icon": HTMLCatIconElement;
|
|
211
|
+
"cat-menu": HTMLCatMenuElement;
|
|
212
|
+
"cat-skeleton": HTMLCatSkeletonElement;
|
|
132
213
|
"cat-spinner": HTMLCatSpinnerElement;
|
|
133
214
|
}
|
|
134
215
|
}
|
|
135
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
|
+
}
|
|
136
245
|
interface CatButton {
|
|
137
246
|
/**
|
|
138
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.
|
|
@@ -178,6 +287,10 @@ declare namespace LocalJSX {
|
|
|
178
287
|
* Emitted when the button loses focus.
|
|
179
288
|
*/
|
|
180
289
|
"onCatBlur"?: (event: CustomEvent<FocusEvent>) => void;
|
|
290
|
+
/**
|
|
291
|
+
* Emitted when the button is clicked.
|
|
292
|
+
*/
|
|
293
|
+
"onCatClick"?: (event: CustomEvent<MouseEvent>) => void;
|
|
181
294
|
/**
|
|
182
295
|
* Emitted when the button received focus.
|
|
183
296
|
*/
|
|
@@ -225,6 +338,38 @@ declare namespace LocalJSX {
|
|
|
225
338
|
*/
|
|
226
339
|
"size"?: 'xs' | 's' | 'm' | 'l' | 'xl' | 'inline';
|
|
227
340
|
}
|
|
341
|
+
interface CatMenu {
|
|
342
|
+
/**
|
|
343
|
+
* Emitted when the menu is closed.
|
|
344
|
+
*/
|
|
345
|
+
"onCatClose"?: (event: CustomEvent<FocusEvent>) => void;
|
|
346
|
+
/**
|
|
347
|
+
* Emitted when the menu is opened.
|
|
348
|
+
*/
|
|
349
|
+
"onCatOpen"?: (event: CustomEvent<FocusEvent>) => void;
|
|
350
|
+
/**
|
|
351
|
+
* The placement of the menu.
|
|
352
|
+
*/
|
|
353
|
+
"placement"?: Placement;
|
|
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
|
+
}
|
|
228
373
|
interface CatSpinner {
|
|
229
374
|
/**
|
|
230
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.
|
|
@@ -236,8 +381,12 @@ declare namespace LocalJSX {
|
|
|
236
381
|
"size"?: 'xs' | 's' | 'm' | 'l' | 'xl' | 'inline';
|
|
237
382
|
}
|
|
238
383
|
interface IntrinsicElements {
|
|
384
|
+
"cat-alert": CatAlert;
|
|
385
|
+
"cat-badge": CatBadge;
|
|
239
386
|
"cat-button": CatButton;
|
|
240
387
|
"cat-icon": CatIcon;
|
|
388
|
+
"cat-menu": CatMenu;
|
|
389
|
+
"cat-skeleton": CatSkeleton;
|
|
241
390
|
"cat-spinner": CatSpinner;
|
|
242
391
|
}
|
|
243
392
|
}
|
|
@@ -245,8 +394,12 @@ export { LocalJSX as JSX };
|
|
|
245
394
|
declare module "@stencil/core" {
|
|
246
395
|
export namespace JSX {
|
|
247
396
|
interface IntrinsicElements {
|
|
397
|
+
"cat-alert": LocalJSX.CatAlert & JSXBase.HTMLAttributes<HTMLCatAlertElement>;
|
|
398
|
+
"cat-badge": LocalJSX.CatBadge & JSXBase.HTMLAttributes<HTMLCatBadgeElement>;
|
|
248
399
|
"cat-button": LocalJSX.CatButton & JSXBase.HTMLAttributes<HTMLCatButtonElement>;
|
|
249
400
|
"cat-icon": LocalJSX.CatIcon & JSXBase.HTMLAttributes<HTMLCatIconElement>;
|
|
401
|
+
"cat-menu": LocalJSX.CatMenu & JSXBase.HTMLAttributes<HTMLCatMenuElement>;
|
|
402
|
+
"cat-skeleton": LocalJSX.CatSkeleton & JSXBase.HTMLAttributes<HTMLCatSkeletonElement>;
|
|
250
403
|
"cat-spinner": LocalJSX.CatSpinner & JSXBase.HTMLAttributes<HTMLCatSpinnerElement>;
|
|
251
404
|
}
|
|
252
405
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haiilo/catalyst",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Catalyst Design System",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -43,20 +43,23 @@
|
|
|
43
43
|
"reset": "rm -rf ./dist ./loader ./node_modules ./www"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@
|
|
46
|
+
"@floating-ui/dom": "0.4.1",
|
|
47
|
+
"@stencil/core": "2.15.0",
|
|
48
|
+
"focus-trap": "6.8.0-beta.2",
|
|
47
49
|
"loglevel": "1.8.0",
|
|
48
|
-
"sanitize.css": "13.0.0"
|
|
50
|
+
"sanitize.css": "13.0.0",
|
|
51
|
+
"tabbable": "5.3.0-beta.1"
|
|
49
52
|
},
|
|
50
53
|
"peerDependencies": {
|
|
51
|
-
"@haiilo/catalyst-icons": ">=0.1.
|
|
52
|
-
"@haiilo/catalyst-tokens": ">=0.1.
|
|
54
|
+
"@haiilo/catalyst-icons": ">=0.1.2",
|
|
55
|
+
"@haiilo/catalyst-tokens": ">=0.1.4"
|
|
53
56
|
},
|
|
54
57
|
"devDependencies": {
|
|
55
58
|
"@babel/core": "^7.16.5",
|
|
56
|
-
"@haiilo/catalyst-icons": "^0.1.
|
|
57
|
-
"@haiilo/catalyst-tokens": "^0.1.
|
|
59
|
+
"@haiilo/catalyst-icons": "^0.1.2",
|
|
60
|
+
"@haiilo/catalyst-tokens": "^0.1.4",
|
|
58
61
|
"@stencil/angular-output-target": "^0.4.0",
|
|
59
|
-
"@stencil/react-output-target": "^0.
|
|
62
|
+
"@stencil/react-output-target": "^0.3.1",
|
|
60
63
|
"@stencil/sass": "^1.5.2",
|
|
61
64
|
"@stencil/vue-output-target": "^0.6.0",
|
|
62
65
|
"@types/jest": "^27.4.0",
|
|
@@ -68,7 +71,7 @@
|
|
|
68
71
|
"jest": "^27.5.1",
|
|
69
72
|
"jest-cli": "^27.5.1",
|
|
70
73
|
"prettier": "^2.5.1",
|
|
71
|
-
"puppeteer": "^
|
|
74
|
+
"puppeteer": "^13.5.2",
|
|
72
75
|
"standard-version": "^9.3.2",
|
|
73
76
|
"stylelint": "^14.4.0",
|
|
74
77
|
"stylelint-config-prettier-scss": "^0.0.1",
|