@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,27 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-6672be93.js';
|
|
2
|
+
import { C as CatIconRegistry } from './cat-icon-registry-59da2e37.js';
|
|
3
|
+
|
|
4
|
+
const catIconCss = ":host{display:inline-flex;vertical-align:middle;-webkit-user-select:none;-ms-user-select:none;user-select:none;}:host[hidden]{display:none}span{display:inline-flex}svg{fill:currentColor;stroke:none;transform-origin:center center;width:1em;height:1em}.cat-icon-xs svg{font-size:0.75rem}.cat-icon-s svg{font-size:1rem}.cat-icon-m svg{font-size:1.25rem}.cat-icon-l svg{font-size:1.5rem}.cat-icon-xl svg{font-size:1.75rem}";
|
|
5
|
+
|
|
6
|
+
let CatIcon = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.iconRegistry = CatIconRegistry.getInstance();
|
|
10
|
+
/**
|
|
11
|
+
* The name of the icon.
|
|
12
|
+
*/
|
|
13
|
+
this.icon = '';
|
|
14
|
+
/**
|
|
15
|
+
* The size of the icon.
|
|
16
|
+
*/
|
|
17
|
+
this.size = 'm';
|
|
18
|
+
}
|
|
19
|
+
render() {
|
|
20
|
+
return (h("span", { innerHTML: this.iconRegistry.getIcon(this.icon), "aria-label": this.a11yLabel, "aria-hidden": this.a11yLabel ? null : 'true', part: "icon", class: {
|
|
21
|
+
[`cat-icon-${this.size}`]: this.size !== 'inline'
|
|
22
|
+
} }));
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
CatIcon.style = catIconCss;
|
|
26
|
+
|
|
27
|
+
export { CatIcon as cat_icon };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-6672be93.js';
|
|
2
|
+
|
|
3
|
+
const catSpinnerCss = ":host{display:inline-flex;vertical-align:middle;-webkit-user-select:none;-ms-user-select:none;user-select:none;}:host[hidden]{display:none}span{display:inline-flex}svg{fill:none;stroke:currentColor;stroke-dasharray:135px;stroke-dashoffset:95px;stroke-linecap:round;stroke-width:5px;transform-origin:center center;animation:cat-spinner 0.75s cubic-bezier(0.4, 0.15, 0.6, 0.85) infinite;width:1em;height:1em}.cat-spinner-xs svg{font-size:0.75rem}.cat-spinner-s svg{font-size:1rem}.cat-spinner-m svg{font-size:1.25rem}.cat-spinner-l svg{font-size:1.5rem}.cat-spinner-xl svg{font-size:1.75rem}@keyframes cat-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}";
|
|
4
|
+
|
|
5
|
+
let CatSpinner = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
/**
|
|
9
|
+
* The size of the spinner.
|
|
10
|
+
*/
|
|
11
|
+
this.size = 'm';
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return (h("span", { "aria-label": this.a11yLabel, "aria-hidden": this.a11yLabel ? null : 'true', class: {
|
|
15
|
+
[`cat-spinner-${this.size}`]: this.size !== 'inline'
|
|
16
|
+
} }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 48 48" }, h("circle", { cx: "24", cy: "24", r: "21.5" }))));
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
CatSpinner.style = catSpinnerCss;
|
|
20
|
+
|
|
21
|
+
export { CatSpinner as cat_spinner };
|