@swisspost/design-system-components 1.0.0-alpha.0
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 +203 -0
- package/README.md +40 -0
- package/dist/cjs/index-5c30acf6.js +1140 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/cjs/my-component.cjs.entry.js +35 -0
- package/dist/cjs/post-components.cjs.js +19 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/my-component/my-component.css +3 -0
- package/dist/collection/components/my-component/my-component.js +129 -0
- package/dist/collection/components/my-component/my-component.stories.js +19 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/stories/Button.js +21 -0
- package/dist/collection/stories/Button.stories.js +48 -0
- package/dist/collection/stories/Header.js +45 -0
- package/dist/collection/stories/Header.stories.js +20 -0
- package/dist/collection/stories/Page.js +67 -0
- package/dist/collection/stories/Page.stories.js +24 -0
- package/dist/collection/stories/assets/code-brackets.svg +1 -0
- package/dist/collection/stories/assets/colors.svg +1 -0
- package/dist/collection/stories/assets/comments.svg +1 -0
- package/dist/collection/stories/assets/direction.svg +1 -0
- package/dist/collection/stories/assets/flow.svg +1 -0
- package/dist/collection/stories/assets/plugin.svg +1 -0
- package/dist/collection/stories/assets/repo.svg +1 -0
- package/dist/collection/stories/assets/stackalt.svg +1 -0
- package/dist/collection/utils/utils.js +3 -0
- package/dist/components/index.d.ts +22 -0
- package/dist/components/index.js +2 -0
- package/dist/components/my-component.d.ts +11 -0
- package/dist/components/my-component.js +54 -0
- package/dist/docs.d.ts +124 -0
- package/dist/docs.json +101 -0
- package/dist/esm/index-865c32d6.js +1114 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/my-component.entry.js +31 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/post-components.js +17 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/post-components/index.esm.js +0 -0
- package/dist/post-components/p-89fc10d3.js +2 -0
- package/dist/post-components/p-e4e802f7.entry.js +1 -0
- package/dist/post-components/post-components.esm.js +1 -0
- package/dist/types/components/my-component/my-component.d.ts +22 -0
- package/dist/types/components/my-component/my-component.stories.d.ts +12 -0
- package/dist/types/components.d.ts +70 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1565 -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 +11 -0
- package/package.json +69 -0
|
@@ -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';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "post-components-loader",
|
|
3
|
+
"private": true,
|
|
4
|
+
"typings": "./index.d.ts",
|
|
5
|
+
"module": "./index.js",
|
|
6
|
+
"main": "./index.cjs.js",
|
|
7
|
+
"jsnext:main": "./index.es2017.js",
|
|
8
|
+
"es2015": "./index.es2017.js",
|
|
9
|
+
"es2017": "./index.es2017.js",
|
|
10
|
+
"unpkg": "./cdn.js"
|
|
11
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@swisspost/design-system-components",
|
|
3
|
+
"version": "1.0.0-alpha.0",
|
|
4
|
+
"description": "A collection of web components built with Stencil JS for the Swiss Post Design System.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"main": "dist/index.cjs.js",
|
|
7
|
+
"module": "dist/index.js",
|
|
8
|
+
"es2015": "dist/esm/index.mjs",
|
|
9
|
+
"es2017": "dist/esm/index.mjs",
|
|
10
|
+
"types": "dist/types/components.d.ts",
|
|
11
|
+
"collection": "dist/collection/collection-manifest.json",
|
|
12
|
+
"collection:main": "dist/collection/index.js",
|
|
13
|
+
"unpkg": "dist/post-components/post-components.esm.js",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/swisspost/design-system"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist/",
|
|
20
|
+
"loader/"
|
|
21
|
+
],
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"access": "public"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@stencil/core": "^2.13.0",
|
|
27
|
+
"@stencil/sass": "^1.5.2",
|
|
28
|
+
"@swisspost/design-system-styles": "5.0.0-beta.1",
|
|
29
|
+
"sass": "^1.49.7"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@babel/core": "^7.17.0",
|
|
33
|
+
"@percy/cli": "^1.6.0",
|
|
34
|
+
"@percy/storybook": "^4.3.0",
|
|
35
|
+
"@pxtrn/storybook-addon-docs-stencil": "^6.4.1",
|
|
36
|
+
"@storybook/addon-actions": "^6.4.18",
|
|
37
|
+
"@storybook/addon-essentials": "^6.4.18",
|
|
38
|
+
"@storybook/addon-links": "^6.4.18",
|
|
39
|
+
"@storybook/html": "^6.4.18",
|
|
40
|
+
"@types/jest": "27.0.3",
|
|
41
|
+
"babel-loader": "^8.2.3",
|
|
42
|
+
"cypress": "10.0.3",
|
|
43
|
+
"cypress-storybook": "^0.5.1",
|
|
44
|
+
"jest": "^27.4.5",
|
|
45
|
+
"jest-cli": "^27.4.5",
|
|
46
|
+
"npm-run-all": "^4.1.5",
|
|
47
|
+
"react": "16",
|
|
48
|
+
"react-dom": "16.14.0",
|
|
49
|
+
"start-server-and-test": "^1.14.0",
|
|
50
|
+
"typescript": "^4.7.4",
|
|
51
|
+
"webpack": "4"
|
|
52
|
+
},
|
|
53
|
+
"scripts": {
|
|
54
|
+
"start": "npm-run-all --parallel stencil:start storybook:start",
|
|
55
|
+
"build": "npm-run-all stencil:build storybook:build",
|
|
56
|
+
"test": "npm-run-all --parallel stencil:test cypress:test",
|
|
57
|
+
"stencil:start": "stencil build --watch --docs",
|
|
58
|
+
"stencil:serve": "stencil build --watch --serve --docs",
|
|
59
|
+
"stencil:build": "stencil build --docs",
|
|
60
|
+
"stencil:test": "stencil test --spec",
|
|
61
|
+
"stencil:test:watch": "stencil test --spec --watchAll",
|
|
62
|
+
"stencil:generate": "stencil generate",
|
|
63
|
+
"storybook:start": "start-storybook -p 6006",
|
|
64
|
+
"storybook:build": "build-storybook",
|
|
65
|
+
"storybook:ci": "start-storybook -p 6060 -s www --no-open --quiet",
|
|
66
|
+
"cypress:test": "cypress run --config video=false",
|
|
67
|
+
"cypress:open": "cypress open"
|
|
68
|
+
}
|
|
69
|
+
}
|