@haiilo/catalyst 0.1.0 → 0.1.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/{app-globals-622e4f87.js → app-globals-f83c9e4a.js} +24 -6
- package/dist/catalyst/cat-button.entry.js +2 -2
- package/dist/catalyst/cat-icon.entry.js +1 -1
- package/dist/catalyst/cat-menu.entry.js +2957 -0
- package/dist/catalyst/cat-spinner.entry.js +1 -1
- package/dist/catalyst/catalyst.css +7 -0
- package/dist/catalyst/catalyst.esm.js +3 -3
- package/dist/{esm/index-72a1bbba.js → catalyst/index-45406d3b.js} +2 -2
- package/dist/components/cat-menu.d.ts +11 -0
- package/dist/types/components/cat-menu/cat-menu.d.ts +23 -0
- package/dist/types/components.d.ts +24 -0
- package/package.json +9 -6
- 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/p-f3fad7a0.js +0 -1
- package/dist/cjs/app-globals-8908fe44.js +0 -132
- 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-registry-da00f7d6.js +0 -1321
- package/dist/cjs/cat-icon.cjs.entry.js +0 -31
- package/dist/cjs/cat-spinner.cjs.entry.js +0 -25
- package/dist/cjs/catalyst.cjs.js +0 -128
- 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/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -38
- package/dist/cjs/shadow-css-41d9783d.js +0 -390
- package/dist/collection/collection-manifest.json +0 -15
- package/dist/collection/components/cat-button/cat-button.css +0 -284
- package/dist/collection/components/cat-button/cat-button.js +0 -568
- package/dist/collection/components/cat-icon/cat-icon-registry.js +0 -41
- package/dist/collection/components/cat-icon/cat-icon.css +0 -49
- package/dist/collection/components/cat-icon/cat-icon.js +0 -89
- 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-button.js +0 -680
- package/dist/components/cat-icon-registry.js +0 -43
- package/dist/components/cat-icon.js +0 -6
- package/dist/components/cat-icon2.js +0 -47
- package/dist/components/cat-spinner.js +0 -6
- package/dist/components/cat-spinner2.js +0 -40
- package/dist/components/index.js +0 -705
- package/dist/esm/app-globals-000601ea.js +0 -130
- 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-registry-b66e3f57.js +0 -1294
- package/dist/esm/cat-icon.entry.js +0 -27
- package/dist/esm/cat-spinner.entry.js +0 -21
- package/dist/esm/catalyst.js +0 -126
- package/dist/esm/css-shim-20dbffa5.js +0 -4
- package/dist/esm/dom-c5ed0ba5.js +0 -73
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -34
- 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/esm/shadow-css-8c625855.js +0 -388
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-45406d3b.js';
|
|
2
2
|
|
|
3
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
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BUILD, c as consoleDevInfo, p as plt, w as win, H, d as doc, N as NAMESPACE, a as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
import { g as globalScripts } from './app-globals-
|
|
1
|
+
import { B as BUILD, c as consoleDevInfo, p as plt, w as win, H, d as doc, N as NAMESPACE, a as promiseResolve, b as bootstrapLazy } from './index-45406d3b.js';
|
|
2
|
+
import { g as globalScripts } from './app-globals-f83c9e4a.js';
|
|
3
3
|
import './cat-icon-registry-59da2e37.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
@@ -122,5 +122,5 @@ const patchCloneNodeFix = (HTMLElementPrototype) => {
|
|
|
122
122
|
|
|
123
123
|
patchBrowser().then(options => {
|
|
124
124
|
globalScripts();
|
|
125
|
-
return bootstrapLazy([["cat-
|
|
125
|
+
return bootstrapLazy([["cat-button",[[1,"cat-button",{"variant":[1],"color":[1],"size":[1],"name":[1],"value":[1],"disabled":[4],"loading":[4],"submit":[4],"ellipsed":[4],"round":[4],"url":[1],"urlTarget":[1,"url-target"],"icon":[1],"iconOnly":[8,"icon-only"],"iconSuffix":[4,"icon-suffix"],"buttonId":[1,"button-id"],"a11yLabel":[1,"a11y-label"],"_iconOnly":[32],"setFocus":[64]},[[0,"click","haltDisabledEvents"]]]]],["cat-menu",[[4,"cat-menu",{"placement":[1]}]]],["cat-icon",[[1,"cat-icon",{"icon":[1],"size":[1],"a11yLabel":[1,"a11y-label"]}]]],["cat-spinner",[[1,"cat-spinner",{"size":[1],"a11yLabel":[1,"a11y-label"]}]]]], options);
|
|
126
126
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const NAMESPACE = 'catalyst';
|
|
2
|
-
const BUILD = /* catalyst */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad:
|
|
2
|
+
const BUILD = /* catalyst */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: false, constructableCSS: false, cssAnnotations: true, cssVarShim: false, devTools: true, disconnectedCallback: false, dynamicImportShim: false, element: false, event: true, hasRenderFn: true, hostListener: true, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: true, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: true, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: true, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: false, safari10: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, shadowDomShim: false, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: false, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
3
3
|
const Env = /* catalyst */ {};
|
|
4
4
|
|
|
5
5
|
let scopeId;
|
|
@@ -3028,4 +3028,4 @@ const Build = {
|
|
|
3028
3028
|
isTesting: BUILD.isTesting ? true : false,
|
|
3029
3029
|
};
|
|
3030
3030
|
|
|
3031
|
-
export { BUILD as B, CSS as C, H, NAMESPACE as N, promiseResolve as a, bootstrapLazy as b, consoleDevInfo as c, doc as d, createEvent as e, h, plt as p, registerInstance as r, win as w };
|
|
3031
|
+
export { BUILD as B, CSS as C, H, NAMESPACE as N, promiseResolve as a, bootstrapLazy as b, consoleDevInfo as c, doc as d, createEvent as e, Host as f, getElement as g, h, plt as p, registerInstance as r, win as w };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface CatMenu extends Components.CatMenu, HTMLElement {}
|
|
4
|
+
export const CatMenu: {
|
|
5
|
+
prototype: CatMenu;
|
|
6
|
+
new (): CatMenu;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Placement } from '@floating-ui/dom';
|
|
2
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
3
|
+
export declare class CatMenu {
|
|
4
|
+
private static OFFSET;
|
|
5
|
+
private trigger;
|
|
6
|
+
private content;
|
|
7
|
+
private trap?;
|
|
8
|
+
host: HTMLElement;
|
|
9
|
+
placement: Placement;
|
|
10
|
+
/**
|
|
11
|
+
* Emitted when the menu is opened.
|
|
12
|
+
*/
|
|
13
|
+
catOpen: EventEmitter<FocusEvent>;
|
|
14
|
+
/**
|
|
15
|
+
* Emitted when the menu is closed.
|
|
16
|
+
*/
|
|
17
|
+
catClose: EventEmitter<FocusEvent>;
|
|
18
|
+
componentDidLoad(): void;
|
|
19
|
+
render(): any;
|
|
20
|
+
private show;
|
|
21
|
+
private hide;
|
|
22
|
+
private update;
|
|
23
|
+
}
|
|
@@ -6,6 +6,7 @@
|
|
|
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 {
|
|
10
11
|
interface CatButton {
|
|
11
12
|
/**
|
|
@@ -96,6 +97,9 @@ export namespace Components {
|
|
|
96
97
|
*/
|
|
97
98
|
"size": 'xs' | 's' | 'm' | 'l' | 'xl' | 'inline';
|
|
98
99
|
}
|
|
100
|
+
interface CatMenu {
|
|
101
|
+
"placement": Placement;
|
|
102
|
+
}
|
|
99
103
|
interface CatSpinner {
|
|
100
104
|
/**
|
|
101
105
|
* 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.
|
|
@@ -120,6 +124,12 @@ declare global {
|
|
|
120
124
|
prototype: HTMLCatIconElement;
|
|
121
125
|
new (): HTMLCatIconElement;
|
|
122
126
|
};
|
|
127
|
+
interface HTMLCatMenuElement extends Components.CatMenu, HTMLStencilElement {
|
|
128
|
+
}
|
|
129
|
+
var HTMLCatMenuElement: {
|
|
130
|
+
prototype: HTMLCatMenuElement;
|
|
131
|
+
new (): HTMLCatMenuElement;
|
|
132
|
+
};
|
|
123
133
|
interface HTMLCatSpinnerElement extends Components.CatSpinner, HTMLStencilElement {
|
|
124
134
|
}
|
|
125
135
|
var HTMLCatSpinnerElement: {
|
|
@@ -129,6 +139,7 @@ declare global {
|
|
|
129
139
|
interface HTMLElementTagNameMap {
|
|
130
140
|
"cat-button": HTMLCatButtonElement;
|
|
131
141
|
"cat-icon": HTMLCatIconElement;
|
|
142
|
+
"cat-menu": HTMLCatMenuElement;
|
|
132
143
|
"cat-spinner": HTMLCatSpinnerElement;
|
|
133
144
|
}
|
|
134
145
|
}
|
|
@@ -225,6 +236,17 @@ declare namespace LocalJSX {
|
|
|
225
236
|
*/
|
|
226
237
|
"size"?: 'xs' | 's' | 'm' | 'l' | 'xl' | 'inline';
|
|
227
238
|
}
|
|
239
|
+
interface CatMenu {
|
|
240
|
+
/**
|
|
241
|
+
* Emitted when the menu is closed.
|
|
242
|
+
*/
|
|
243
|
+
"onCatClose"?: (event: CustomEvent<FocusEvent>) => void;
|
|
244
|
+
/**
|
|
245
|
+
* Emitted when the menu is opened.
|
|
246
|
+
*/
|
|
247
|
+
"onCatOpen"?: (event: CustomEvent<FocusEvent>) => void;
|
|
248
|
+
"placement"?: Placement;
|
|
249
|
+
}
|
|
228
250
|
interface CatSpinner {
|
|
229
251
|
/**
|
|
230
252
|
* 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.
|
|
@@ -238,6 +260,7 @@ declare namespace LocalJSX {
|
|
|
238
260
|
interface IntrinsicElements {
|
|
239
261
|
"cat-button": CatButton;
|
|
240
262
|
"cat-icon": CatIcon;
|
|
263
|
+
"cat-menu": CatMenu;
|
|
241
264
|
"cat-spinner": CatSpinner;
|
|
242
265
|
}
|
|
243
266
|
}
|
|
@@ -247,6 +270,7 @@ declare module "@stencil/core" {
|
|
|
247
270
|
interface IntrinsicElements {
|
|
248
271
|
"cat-button": LocalJSX.CatButton & JSXBase.HTMLAttributes<HTMLCatButtonElement>;
|
|
249
272
|
"cat-icon": LocalJSX.CatIcon & JSXBase.HTMLAttributes<HTMLCatIconElement>;
|
|
273
|
+
"cat-menu": LocalJSX.CatMenu & JSXBase.HTMLAttributes<HTMLCatMenuElement>;
|
|
250
274
|
"cat-spinner": LocalJSX.CatSpinner & JSXBase.HTMLAttributes<HTMLCatSpinnerElement>;
|
|
251
275
|
}
|
|
252
276
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haiilo/catalyst",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Catalyst Design System",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -43,18 +43,21 @@
|
|
|
43
43
|
"reset": "rm -rf ./dist ./loader ./node_modules ./www"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
+
"@floating-ui/dom": "^0.4.1",
|
|
46
47
|
"@stencil/core": "2.13.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.3"
|
|
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.3",
|
|
58
61
|
"@stencil/angular-output-target": "^0.4.0",
|
|
59
62
|
"@stencil/react-output-target": "^0.2.1",
|
|
60
63
|
"@stencil/sass": "^1.5.2",
|