@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,7 @@
|
|
|
1
|
+
declare const _breakpoints: readonly ["xs", "s", "m", "l", "xl"];
|
|
2
|
+
export declare type Breakpoint = typeof _breakpoints[number];
|
|
3
|
+
export declare const Breakpoints: {
|
|
4
|
+
[breakpoint in Breakpoint]: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function isBreakpoint(value: unknown): value is Breakpoint;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** A utility for calling matchMedia queries. */
|
|
2
|
+
export declare class MediaMatcher {
|
|
3
|
+
private _platform;
|
|
4
|
+
private _matchMedia;
|
|
5
|
+
constructor();
|
|
6
|
+
/**
|
|
7
|
+
* Evaluates the given media query and returns the native MediaQueryList from which results
|
|
8
|
+
* can be retrieved.
|
|
9
|
+
* Confirms the layout engine will trigger for the selector query provided and returns the
|
|
10
|
+
* MediaQueryList for the query provided.
|
|
11
|
+
*/
|
|
12
|
+
matchMedia(query: string): MediaQueryList;
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare class Platform {
|
|
2
|
+
/** Whether the current browser is Microsoft Edge. */
|
|
3
|
+
EDGE: boolean;
|
|
4
|
+
/** Whether the current rendering engine is Microsoft Trident. */
|
|
5
|
+
TRIDENT: boolean;
|
|
6
|
+
/** Whether the current rendering engine is Blink. */
|
|
7
|
+
BLINK: boolean;
|
|
8
|
+
/** Whether the current rendering engine is WebKit. */
|
|
9
|
+
WEBKIT: boolean;
|
|
10
|
+
/** Whether the current platform is Apple iOS. */
|
|
11
|
+
IOS: boolean;
|
|
12
|
+
/** Whether the current browser is Firefox. */
|
|
13
|
+
FIREFOX: boolean;
|
|
14
|
+
/** Whether the current platform is Android. */
|
|
15
|
+
ANDROID: boolean;
|
|
16
|
+
/** Whether the current browser is Safari. */
|
|
17
|
+
SAFARI: boolean;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function format(first: string, middle: string, last: string): string;
|
package/loader/cdn.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from '../dist/types/components';
|
|
2
|
+
export interface CustomElementsDefineOptions {
|
|
3
|
+
exclude?: string[];
|
|
4
|
+
resourcesUrl?: string;
|
|
5
|
+
syncQueue?: boolean;
|
|
6
|
+
jmp?: (c: Function) => any;
|
|
7
|
+
raf?: (c: FrameRequestCallback) => number;
|
|
8
|
+
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
9
|
+
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
|
|
12
|
+
export declare function applyPolyfills(): Promise<void>;
|
package/loader/index.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
|
|
2
|
+
(function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
|
|
3
|
+
export * from '../dist/esm/polyfills/index.js';
|
|
4
|
+
export * from '../dist/esm/loader.js';
|
package/package.json
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@haiilo/catalyst",
|
|
3
|
+
"version": "0.0.11",
|
|
4
|
+
"description": "Catalyst Design System",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/haiilo/catalyst.git"
|
|
9
|
+
},
|
|
10
|
+
"main": "dist/index.cjs.js",
|
|
11
|
+
"module": "dist/index.js",
|
|
12
|
+
"es2015": "dist/esm/index.js",
|
|
13
|
+
"es2017": "dist/esm/index.js",
|
|
14
|
+
"types": "dist/types/components.d.ts",
|
|
15
|
+
"collection": "dist/collection/collection-manifest.json",
|
|
16
|
+
"collection:main": "dist/collection/index.js",
|
|
17
|
+
"unpkg": "dist/catalyst/catalyst.esm.js",
|
|
18
|
+
"customElements": "dist/custom-elements/custom-elements.json",
|
|
19
|
+
"files": [
|
|
20
|
+
"dist/",
|
|
21
|
+
"loader/"
|
|
22
|
+
],
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "stencil build --docs",
|
|
28
|
+
"build:ci": "stencil build --ci",
|
|
29
|
+
"start": "stencil build --dev --watch --serve",
|
|
30
|
+
"test": "stencil test --spec --e2e",
|
|
31
|
+
"test:watch": "stencil test --spec --e2e --watchAll",
|
|
32
|
+
"generate": "stencil generate",
|
|
33
|
+
"prettier": "prettier --write .",
|
|
34
|
+
"prettier:check": "prettier --check .",
|
|
35
|
+
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
|
|
36
|
+
"lint:style": "stylelint **/*.scss",
|
|
37
|
+
"link:icons": "cd ../icons && npm link && cd ../core && npm link @haiilo/catalyst-icons",
|
|
38
|
+
"link:tokens": "cd ../tokens && npm link && cd ../core && npm link @haiilo/catalyst-tokens",
|
|
39
|
+
"release": "standard-version",
|
|
40
|
+
"release:patch": "standard-version -t @haiilo/catalyst/v --release-as patch",
|
|
41
|
+
"release:minor": "standard-version -t @haiilo/catalyst/v --release-as minor",
|
|
42
|
+
"release:major": "standard-version -t @haiilo/catalyst/v --release-as major",
|
|
43
|
+
"reset": "rm -rf ./dist ./loader ./node_modules ./www"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@stencil/core": "2.13.0",
|
|
47
|
+
"loglevel": "1.8.0",
|
|
48
|
+
"sanitize.css": "13.0.0"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"@haiilo/catalyst-icons": ">=0.1.0",
|
|
52
|
+
"@haiilo/catalyst-tokens": ">=0.1.2"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@babel/core": "^7.16.5",
|
|
56
|
+
"@haiilo/catalyst-icons": "^0.1.0",
|
|
57
|
+
"@haiilo/catalyst-tokens": "^0.1.2",
|
|
58
|
+
"@stencil/angular-output-target": "^0.4.0",
|
|
59
|
+
"@stencil/react-output-target": "^0.2.1",
|
|
60
|
+
"@stencil/sass": "^1.5.2",
|
|
61
|
+
"@stencil/vue-output-target": "^0.6.0",
|
|
62
|
+
"@types/jest": "^27.4.0",
|
|
63
|
+
"@typescript-eslint/eslint-plugin": "^5.11.0",
|
|
64
|
+
"@typescript-eslint/parser": "^5.11.0",
|
|
65
|
+
"babel-loader": "^8.2.3",
|
|
66
|
+
"eslint": "^8.8.0",
|
|
67
|
+
"eslint-config-prettier": "^8.3.0",
|
|
68
|
+
"jest": "^27.5.1",
|
|
69
|
+
"jest-cli": "^27.5.1",
|
|
70
|
+
"prettier": "^2.5.1",
|
|
71
|
+
"puppeteer": "^10.0.0",
|
|
72
|
+
"standard-version": "^9.3.2",
|
|
73
|
+
"stylelint": "^14.4.0",
|
|
74
|
+
"stylelint-config-prettier-scss": "^0.0.1",
|
|
75
|
+
"stylelint-config-standard-scss": "^3.0.0",
|
|
76
|
+
"typescript": "^4.5.5"
|
|
77
|
+
}
|
|
78
|
+
}
|