@haiilo/catalyst 0.2.1 → 0.2.2
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/app-globals-f83c9e4a.js +722 -0
- package/dist/{components/cat-alert.js → catalyst/cat-alert.entry.js} +7 -27
- package/dist/{components/cat-badge.js → catalyst/cat-badge.entry.js} +7 -31
- package/dist/{components/cat-button.js → catalyst/cat-button.entry.js} +40 -59
- package/dist/{components/cat-icon-registry.js → catalyst/cat-icon-registry-59da2e37.js} +0 -0
- package/dist/{components/cat-icon2.js → catalyst/cat-icon.entry.js} +8 -27
- package/dist/{components/cat-menu.js → catalyst/cat-menu.entry.js} +636 -29
- package/dist/{components/cat-skeleton.js → catalyst/cat-skeleton.entry.js} +7 -30
- package/dist/{components/cat-spinner2.js → catalyst/cat-spinner.entry.js} +7 -25
- package/dist/catalyst/catalyst.css +1951 -1
- package/dist/catalyst/catalyst.esm.js +130 -1
- package/dist/catalyst/css-shim-e6dd2538.js +4 -0
- package/dist/catalyst/dom-7fc649b0.js +73 -0
- package/dist/catalyst/index-a0f41a84.js +3057 -0
- package/dist/catalyst/index.esm.js +1 -0
- package/dist/catalyst/shadow-css-4d56fa31.js +388 -0
- package/package.json +1 -1
- package/dist/catalyst/p-22fac0fb.js +0 -1
- package/dist/catalyst/p-2dc28db3.entry.js +0 -11
- package/dist/catalyst/p-e08f13c7.js +0 -1
- package/dist/cjs/app-globals-814f34aa.js +0 -135
- package/dist/cjs/cat-alert_7.cjs.entry.js +0 -3115
- package/dist/cjs/cat-icon-registry-909e38e7.js +0 -1385
- package/dist/cjs/catalyst.cjs.js +0 -21
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -23
- package/dist/collection/collection-manifest.json +0 -19
- package/dist/collection/components/cat-alert/cat-alert.css +0 -57
- package/dist/collection/components/cat-alert/cat-alert.js +0 -49
- package/dist/collection/components/cat-badge/cat-badge.css +0 -154
- package/dist/collection/components/cat-badge/cat-badge.js +0 -141
- package/dist/collection/components/cat-button/cat-button.css +0 -319
- package/dist/collection/components/cat-button/cat-button.js +0 -590
- package/dist/collection/components/cat-icon/cat-icon-registry.js +0 -41
- package/dist/collection/components/cat-icon/cat-icon.css +0 -50
- package/dist/collection/components/cat-icon/cat-icon.js +0 -89
- package/dist/collection/components/cat-menu/cat-menu.css +0 -33
- package/dist/collection/components/cat-menu/cat-menu.js +0 -185
- package/dist/collection/components/cat-skeleton/cat-skeleton.css +0 -177
- package/dist/collection/components/cat-skeleton/cat-skeleton.js +0 -130
- package/dist/collection/components/cat-spinner/cat-spinner.css +0 -63
- package/dist/collection/components/cat-spinner/cat-spinner.js +0 -64
- package/dist/collection/index.cdn.js +0 -21
- package/dist/collection/index.js +0 -1
- package/dist/collection/init.js +0 -8
- package/dist/collection/utils/breakpoints.js +0 -11
- package/dist/collection/utils/media-matcher.js +0 -54
- package/dist/collection/utils/platform.js +0 -49
- package/dist/collection/utils/utils.js +0 -3
- package/dist/components/cat-icon.js +0 -6
- package/dist/components/cat-spinner.js +0 -6
- package/dist/components/index.js +0 -134
- package/dist/esm/app-globals-e1679c2d.js +0 -133
- package/dist/esm/cat-alert_7.entry.js +0 -3105
- package/dist/esm/cat-icon-registry-4d02ee6c.js +0 -1357
- package/dist/esm/catalyst.js +0 -19
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -19
- 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
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as registerInstance, h } from './index-a0f41a84.js';
|
|
2
2
|
|
|
3
3
|
const catAlertCss = ":host{display:block;margin-bottom:1rem}:host([hidden]){display:none}.cat-alert{font:inherit;color:rgb(var(--text));background-color:rgba(var(--bg), 0.1);box-shadow:inset 0 0 0 1px rgba(var(--border), 0.2);border-radius:0.25rem;padding:0.75rem 1rem;width:100%}::slotted(:last-child){margin-bottom:0 !important}.cat-alert-primary{--bg:var(--cat-primary-bg, 32, 127, 138);--text:var(--cat-primary-text, 32, 127, 138);--border:var(--cat-primary-text, 32, 127, 138)}.cat-alert-secondary{--bg:105, 118, 135;--text:0, 0, 0;--border:105, 118, 135}.cat-alert-success{--bg:0, 132, 88;--text:0, 132, 88;--border:0, 132, 88}.cat-alert-warning{--bg:255, 206, 128;--text:159, 97, 0;--border:159, 97, 0}.cat-alert-danger{--bg:217, 52, 13;--text:217, 52, 13;--border:217, 52, 13}";
|
|
4
4
|
|
|
5
|
-
const CatAlert
|
|
6
|
-
constructor() {
|
|
7
|
-
|
|
8
|
-
this.__registerHost();
|
|
9
|
-
this.__attachShadow();
|
|
5
|
+
const CatAlert = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
10
8
|
/**
|
|
11
9
|
* The color palette of the alert.
|
|
12
10
|
*/
|
|
@@ -18,25 +16,7 @@ const CatAlert$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
18
16
|
[`cat-alert-${this.color}`]: Boolean(this.color)
|
|
19
17
|
} }, h("slot", null)));
|
|
20
18
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"color": [1]
|
|
24
|
-
}]);
|
|
25
|
-
function defineCustomElement$1() {
|
|
26
|
-
if (typeof customElements === "undefined") {
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
const components = ["cat-alert"];
|
|
30
|
-
components.forEach(tagName => { switch (tagName) {
|
|
31
|
-
case "cat-alert":
|
|
32
|
-
if (!customElements.get(tagName)) {
|
|
33
|
-
customElements.define(tagName, CatAlert$1);
|
|
34
|
-
}
|
|
35
|
-
break;
|
|
36
|
-
} });
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
const CatAlert = CatAlert$1;
|
|
40
|
-
const defineCustomElement = defineCustomElement$1;
|
|
19
|
+
};
|
|
20
|
+
CatAlert.style = catAlertCss;
|
|
41
21
|
|
|
42
|
-
export { CatAlert
|
|
22
|
+
export { CatAlert as cat_alert };
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as registerInstance, h } from './index-a0f41a84.js';
|
|
2
2
|
|
|
3
3
|
const catBadgeCss = ":host{display:inline-flex;max-width:100%;vertical-align:baseline}:host([hidden]){display:none}.cat-badge{font:inherit;flex:1 1 auto;display:inline-flex;align-items:center;justify-content:center;border-radius:0.125rem;text-decoration:none;width:100%;box-sizing:border-box;line-height:1;white-space:nowrap}.cat-badge slot{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.cat-badge-round{border-radius:10rem}.cat-badge-filled{background-color:rgb(var(--bg));color:rgb(var(--fill));font-weight:600;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:greyscale}.cat-badge-outlined{background-color:white;box-shadow:inset 0 0 0 1px rgba(var(--border), 0.2);color:rgb(var(--text))}.cat-badge-primary{--bg:var(--cat-primary-bg, 32, 127, 138);--fill:var(--cat-primary-fill, 255, 255, 255);--text:var(--cat-primary-text, 32, 127, 138);--border:var(--cat-primary-text, 32, 127, 138)}.cat-badge-secondary{--bg:105, 118, 135;--fill:255, 255, 255;--text:0, 0, 0;--border:105, 118, 135}.cat-badge-success{--bg:0, 132, 88;--fill:255, 255, 255;--text:0, 132, 88;--border:0, 132, 88}.cat-badge-warning{--bg:255, 206, 128;--fill:0, 0, 0;--text:159, 97, 0;--border:159, 97, 0}.cat-badge-danger{--bg:217, 52, 13;--fill:255, 255, 255;--text:217, 52, 13;--border:217, 52, 13}.cat-badge-xs{height:0.75rem;min-width:0.75rem;font-size:0.75rem;padding:0 0.1875rem}.cat-badge-s{height:1rem;min-width:1rem;font-size:0.75rem;padding:0 0.25rem}.cat-badge-m{height:1.25rem;min-width:1.25rem;font-size:0.75rem;padding:0 0.3125rem}.cat-badge-l{height:1.5rem;min-width:1.5rem;font-size:0.875rem;padding:0 0.375rem}.cat-badge-xl{height:1.75rem;min-width:1.75rem;font-size:0.9375rem;padding:0 0.4375rem}.cat-badge-pulse.cat-badge-filled{animation:1.5s ease 0s infinite normal none running pulse}.cat-badge-pulse.cat-badge-outlined{animation:1.5s ease 0s infinite normal none running pulse-outlined}@keyframes pulse{0%{box-shadow:0 0 0 0 rgb(var(--bg))}70%{box-shadow:transparent 0px 0px 0px 0.5rem}100%{box-shadow:transparent 0px 0px 0px 0px}}@keyframes pulse-outlined{0%{box-shadow:0 0 0 0 rgb(var(--bg)), inset 0 0 0 1px rgba(var(--border), 0.2)}70%{box-shadow:transparent 0px 0px 0px 0.5rem, inset 0 0 0 1px rgba(var(--border), 0.2)}100%{box-shadow:transparent 0px 0px 0px 0px, inset 0 0 0 1px rgba(var(--border), 0.2)}}";
|
|
4
4
|
|
|
5
|
-
const CatBadge
|
|
6
|
-
constructor() {
|
|
7
|
-
|
|
8
|
-
this.__registerHost();
|
|
9
|
-
this.__attachShadow();
|
|
5
|
+
const CatBadge = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
10
8
|
/**
|
|
11
9
|
* The rendering style of the badge.
|
|
12
10
|
*/
|
|
@@ -38,29 +36,7 @@ const CatBadge$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
38
36
|
[`cat-badge-${this.size}`]: Boolean(this.size)
|
|
39
37
|
} }, h("slot", null)));
|
|
40
38
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"variant": [1],
|
|
44
|
-
"color": [1],
|
|
45
|
-
"size": [1],
|
|
46
|
-
"round": [4],
|
|
47
|
-
"pulse": [4]
|
|
48
|
-
}]);
|
|
49
|
-
function defineCustomElement$1() {
|
|
50
|
-
if (typeof customElements === "undefined") {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
const components = ["cat-badge"];
|
|
54
|
-
components.forEach(tagName => { switch (tagName) {
|
|
55
|
-
case "cat-badge":
|
|
56
|
-
if (!customElements.get(tagName)) {
|
|
57
|
-
customElements.define(tagName, CatBadge$1);
|
|
58
|
-
}
|
|
59
|
-
break;
|
|
60
|
-
} });
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
const CatBadge = CatBadge$1;
|
|
64
|
-
const defineCustomElement = defineCustomElement$1;
|
|
39
|
+
};
|
|
40
|
+
CatBadge.style = catBadgeCss;
|
|
65
41
|
|
|
66
|
-
export { CatBadge
|
|
42
|
+
export { CatBadge as cat_badge };
|
|
@@ -1,19 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as defineCustomElement$3 } from './cat-icon2.js';
|
|
3
|
-
import { d as defineCustomElement$2 } from './cat-spinner2.js';
|
|
1
|
+
import { r as registerInstance, e as createEvent, h } from './index-a0f41a84.js';
|
|
4
2
|
|
|
5
3
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
6
4
|
|
|
5
|
+
function getDefaultExportFromCjs (x) {
|
|
6
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
7
|
+
}
|
|
8
|
+
|
|
7
9
|
function createCommonjsModule(fn, basedir, module) {
|
|
8
10
|
return module = {
|
|
9
11
|
path: basedir,
|
|
10
12
|
exports: {},
|
|
11
13
|
require: function (path, base) {
|
|
12
|
-
return commonjsRequire();
|
|
14
|
+
return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
|
|
13
15
|
}
|
|
14
16
|
}, fn(module, module.exports), module.exports;
|
|
15
17
|
}
|
|
16
18
|
|
|
19
|
+
function getDefaultExportFromNamespaceIfPresent (n) {
|
|
20
|
+
return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function getDefaultExportFromNamespaceIfNotNamed (n) {
|
|
24
|
+
return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function getAugmentedNamespace(n) {
|
|
28
|
+
if (n.__esModule) return n;
|
|
29
|
+
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
30
|
+
Object.keys(n).forEach(function (k) {
|
|
31
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
32
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return n[k];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
return a;
|
|
40
|
+
}
|
|
41
|
+
|
|
17
42
|
function commonjsRequire () {
|
|
18
43
|
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
19
44
|
}
|
|
@@ -26,12 +51,16 @@ var loglevel = createCommonjsModule(function (module) {
|
|
|
26
51
|
* Licensed under the MIT license.
|
|
27
52
|
*/
|
|
28
53
|
(function (root, definition) {
|
|
29
|
-
|
|
54
|
+
"use strict";
|
|
55
|
+
if (typeof undefined === 'function' && undefined.amd) {
|
|
56
|
+
undefined(definition);
|
|
57
|
+
} else if ('object' === 'object' && module.exports) {
|
|
30
58
|
module.exports = definition();
|
|
31
59
|
} else {
|
|
32
60
|
root.log = definition();
|
|
33
61
|
}
|
|
34
62
|
}(commonjsGlobal, function () {
|
|
63
|
+
"use strict";
|
|
35
64
|
|
|
36
65
|
// Slightly dubious tricks to cut down minimized file size
|
|
37
66
|
var noop = function() {};
|
|
@@ -431,11 +460,9 @@ function createEmptyStyleRule(query) {
|
|
|
431
460
|
|
|
432
461
|
const catButtonCss = ":host{display:inline-block;max-width:100%;vertical-align:middle;-webkit-user-select:none;-ms-user-select:none;user-select:none;}:host([hidden]){display:none}.cat-button{font:inherit;display:flex;align-items:center;justify-content:center;border:none;border-radius:0.25rem;text-decoration:none;width:100%;box-sizing:border-box;cursor:pointer;transition:color 0.13s linear, border-color 0.13s linear, background-color 0.13s linear, box-shadow 0.13s linear}.cat-button:focus-visible{outline:2px solid #0071ff;outline-offset:1px}.cat-button-content{flex:1 1 auto;text-align:center}.cat-button-ellipsed .cat-button-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.cat-button-disabled{cursor:not-allowed;opacity:0.65;filter:grayscale(100%)}.cat-button-round{border-radius:10rem}.cat-button-loading{cursor:default}.cat-button-loading cat-spinner{position:absolute}.cat-button-loading>*:not(cat-spinner){visibility:hidden}.cat-button-filled{background-color:rgb(var(--bg));color:rgb(var(--fill));font-weight:600;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:greyscale}.cat-button-outlined{background-color:white;box-shadow:inset 0 0 0 1px rgba(var(--base), 0.2);color:rgb(var(--text))}.cat-button-outlined:hover:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.05)}.cat-button-outlined:active:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.1)}.cat-button-text{background-color:transparent;color:rgb(var(--text));text-decoration:none}.cat-button-text:hover:not(.cat-button-disabled):not(.cat-button-loading){text-decoration:underline}.cat-button-primary{--bg:var(--cat-primary-bg, 32, 127, 138);--fill:var(--cat-primary-fill, 255, 255, 255);--text:var(--cat-primary-text, 32, 127, 138);--base:var(--cat-primary-text, 32, 127, 138)}.cat-button-primary:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-hover, 28, 112, 122);--fill:var(--cat-primary-fill-hover, 255, 255, 255);--text:var(--cat-primary-text-hover, 28, 112, 122)}.cat-button-primary:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-active, 25, 101, 110);--fill:var(--cat-primary-fill-active, 255, 255, 255);--text:var(--cat-primary-text-active, 25, 101, 110)}.cat-button-secondary{--bg:105, 118, 135;--fill:255, 255, 255;--text:0, 0, 0;--base:105, 118, 135}.cat-button-secondary:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:105, 118, 135;--fill:255, 255, 255;--text:0, 0, 0}.cat-button-secondary:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:105, 118, 135;--fill:255, 255, 255;--text:0, 0, 0}.cat-button-success{--bg:0, 132, 88;--fill:255, 255, 255;--text:0, 132, 88;--base:0, 132, 88}.cat-button-success:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:0, 117, 78;--fill:255, 255, 255;--text:0, 117, 78}.cat-button-success:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:0, 105, 70;--fill:255, 255, 255;--text:0, 105, 70}.cat-button-warning{--bg:255, 206, 128;--fill:0, 0, 0;--text:159, 97, 0;--base:159, 97, 0}.cat-button-warning:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:255, 214, 148;--fill:0, 0, 0;--text:159, 97, 0}.cat-button-warning:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:255, 222, 168;--fill:0, 0, 0;--text:159, 97, 0}.cat-button-danger{--bg:217, 52, 13;--fill:255, 255, 255;--text:217, 52, 13;--base:217, 52, 13}.cat-button-danger:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:194, 46, 11;--fill:255, 255, 255;--text:194, 46, 11}.cat-button-danger:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:174, 42, 10;--fill:255, 255, 255;--text:174, 42, 10}.cat-button-xs{min-width:1.5rem;padding:0.25rem 0.25rem;font-size:0.875rem;line-height:1rem}.cat-button-xs .cat-button-prefix{margin-right:0.25rem}.cat-button-xs .cat-button-suffix{margin-left:0.25rem}.cat-button-xs.cat-button-icon{width:1.5rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-xs{padding-left:1rem;padding-right:1rem}.cat-button-s{min-width:2rem;padding:0.375rem 0.5rem;font-size:0.9375rem;line-height:1.25rem}.cat-button-s .cat-button-prefix{margin-right:0.25rem}.cat-button-s .cat-button-suffix{margin-left:0.25rem}.cat-button-s cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-s.cat-button-icon{width:2rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-s{padding-left:1rem;padding-right:1rem}.cat-button-m{min-width:2.5rem;padding:0.625rem 0.75rem;font-size:0.9375rem;line-height:1.25rem}.cat-button-m .cat-button-prefix{margin-right:0.25rem}.cat-button-m .cat-button-suffix{margin-left:0.25rem}.cat-button-m cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-m.cat-button-icon{width:2.5rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-m{padding-left:1rem;padding-right:1rem}.cat-button-l{min-width:3rem;padding:0.875rem 1rem;font-size:0.9375rem;line-height:1.25rem}.cat-button-l .cat-button-prefix{margin-right:0.25rem}.cat-button-l .cat-button-suffix{margin-left:0.25rem}.cat-button-l cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-l.cat-button-icon{width:3rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-l{padding-left:1rem;padding-right:1rem}.cat-button-xl{min-width:3.5rem;padding:1rem 1.25rem;font-size:1.125rem;line-height:1.5rem}.cat-button-xl .cat-button-prefix{margin-right:0.25rem}.cat-button-xl .cat-button-suffix{margin-left:0.25rem}.cat-button-xl.cat-button-icon{width:3.5rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-xl{padding-left:1rem;padding-right:1rem}:host-context(nav){width:100%}:host-context(nav) .cat-button{box-shadow:none;border-radius:0}:host-context(nav) .cat-button:focus-visible{outline-offset:-2px}:host-context(nav) .cat-button-content{text-align:left}";
|
|
433
462
|
|
|
434
|
-
const CatButton
|
|
435
|
-
constructor() {
|
|
436
|
-
|
|
437
|
-
this.__registerHost();
|
|
438
|
-
this.__attachShadow();
|
|
463
|
+
const CatButton = class {
|
|
464
|
+
constructor(hostRef) {
|
|
465
|
+
registerInstance(this, hostRef);
|
|
439
466
|
this.catClick = createEvent(this, "catClick", 7);
|
|
440
467
|
this.catFocus = createEvent(this, "catFocus", 7);
|
|
441
468
|
this.catBlur = createEvent(this, "catBlur", 7);
|
|
@@ -600,53 +627,7 @@ const CatButton$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
600
627
|
static get watchers() { return {
|
|
601
628
|
"iconOnly": ["onIconOnlyChanged"]
|
|
602
629
|
}; }
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
"variant": [1],
|
|
606
|
-
"color": [1],
|
|
607
|
-
"size": [1],
|
|
608
|
-
"name": [1],
|
|
609
|
-
"value": [1],
|
|
610
|
-
"disabled": [4],
|
|
611
|
-
"loading": [4],
|
|
612
|
-
"submit": [4],
|
|
613
|
-
"ellipsed": [4],
|
|
614
|
-
"round": [4],
|
|
615
|
-
"url": [1],
|
|
616
|
-
"urlTarget": [1, "url-target"],
|
|
617
|
-
"icon": [1],
|
|
618
|
-
"iconOnly": [8, "icon-only"],
|
|
619
|
-
"iconSuffix": [4, "icon-suffix"],
|
|
620
|
-
"buttonId": [1, "button-id"],
|
|
621
|
-
"a11yLabel": [1, "a11y-label"],
|
|
622
|
-
"_iconOnly": [32],
|
|
623
|
-
"setFocus": [64]
|
|
624
|
-
}, [[0, "click", "haltDisabledEvents"]]]);
|
|
625
|
-
function defineCustomElement$1() {
|
|
626
|
-
if (typeof customElements === "undefined") {
|
|
627
|
-
return;
|
|
628
|
-
}
|
|
629
|
-
const components = ["cat-button", "cat-icon", "cat-spinner"];
|
|
630
|
-
components.forEach(tagName => { switch (tagName) {
|
|
631
|
-
case "cat-button":
|
|
632
|
-
if (!customElements.get(tagName)) {
|
|
633
|
-
customElements.define(tagName, CatButton$1);
|
|
634
|
-
}
|
|
635
|
-
break;
|
|
636
|
-
case "cat-icon":
|
|
637
|
-
if (!customElements.get(tagName)) {
|
|
638
|
-
defineCustomElement$3();
|
|
639
|
-
}
|
|
640
|
-
break;
|
|
641
|
-
case "cat-spinner":
|
|
642
|
-
if (!customElements.get(tagName)) {
|
|
643
|
-
defineCustomElement$2();
|
|
644
|
-
}
|
|
645
|
-
break;
|
|
646
|
-
} });
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
const CatButton = CatButton$1;
|
|
650
|
-
const defineCustomElement = defineCustomElement$1;
|
|
630
|
+
};
|
|
631
|
+
CatButton.style = catButtonCss;
|
|
651
632
|
|
|
652
|
-
export { CatButton
|
|
633
|
+
export { CatButton as cat_button };
|
|
File without changes
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { C as CatIconRegistry } from './cat-icon-registry.js';
|
|
1
|
+
import { r as registerInstance, h } from './index-a0f41a84.js';
|
|
2
|
+
import { C as CatIconRegistry } from './cat-icon-registry-59da2e37.js';
|
|
3
3
|
|
|
4
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
5
|
|
|
6
|
-
const CatIcon =
|
|
7
|
-
constructor() {
|
|
8
|
-
|
|
9
|
-
this.__registerHost();
|
|
10
|
-
this.__attachShadow();
|
|
6
|
+
const CatIcon = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
11
9
|
this.iconRegistry = CatIconRegistry.getInstance();
|
|
12
10
|
/**
|
|
13
11
|
* The name of the icon.
|
|
@@ -23,24 +21,7 @@ const CatIcon = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
23
21
|
[`cat-icon-${this.size}`]: this.size !== 'inline'
|
|
24
22
|
} }));
|
|
25
23
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"icon": [1],
|
|
29
|
-
"size": [1],
|
|
30
|
-
"a11yLabel": [1, "a11y-label"]
|
|
31
|
-
}]);
|
|
32
|
-
function defineCustomElement() {
|
|
33
|
-
if (typeof customElements === "undefined") {
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
const components = ["cat-icon"];
|
|
37
|
-
components.forEach(tagName => { switch (tagName) {
|
|
38
|
-
case "cat-icon":
|
|
39
|
-
if (!customElements.get(tagName)) {
|
|
40
|
-
customElements.define(tagName, CatIcon);
|
|
41
|
-
}
|
|
42
|
-
break;
|
|
43
|
-
} });
|
|
44
|
-
}
|
|
24
|
+
};
|
|
25
|
+
CatIcon.style = catIconCss;
|
|
45
26
|
|
|
46
|
-
export { CatIcon as
|
|
27
|
+
export { CatIcon as cat_icon };
|