@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
package/dist/docs.d.ts
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* This is an autogenerated file created by the Stencil compiler.
|
|
4
|
+
* DO NOT MODIFY IT MANUALLY
|
|
5
|
+
*/
|
|
6
|
+
export interface JsonDocs {
|
|
7
|
+
components: JsonDocsComponent[];
|
|
8
|
+
timestamp: string;
|
|
9
|
+
compiler: {
|
|
10
|
+
name: string;
|
|
11
|
+
version: string;
|
|
12
|
+
typescriptVersion: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export interface JsonDocsComponent {
|
|
16
|
+
dirPath?: string;
|
|
17
|
+
fileName?: string;
|
|
18
|
+
filePath?: string;
|
|
19
|
+
readmePath?: string;
|
|
20
|
+
usagesDir?: string;
|
|
21
|
+
encapsulation: 'shadow' | 'scoped' | 'none';
|
|
22
|
+
tag: string;
|
|
23
|
+
readme: string;
|
|
24
|
+
docs: string;
|
|
25
|
+
docsTags: JsonDocsTag[];
|
|
26
|
+
usage: JsonDocsUsage;
|
|
27
|
+
props: JsonDocsProp[];
|
|
28
|
+
methods: JsonDocsMethod[];
|
|
29
|
+
events: JsonDocsEvent[];
|
|
30
|
+
listeners: JsonDocsListener[];
|
|
31
|
+
styles: JsonDocsStyle[];
|
|
32
|
+
slots: JsonDocsSlot[];
|
|
33
|
+
parts: JsonDocsPart[];
|
|
34
|
+
dependents: string[];
|
|
35
|
+
dependencies: string[];
|
|
36
|
+
dependencyGraph: JsonDocsDependencyGraph;
|
|
37
|
+
deprecation?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface JsonDocsDependencyGraph {
|
|
40
|
+
[tagName: string]: string[];
|
|
41
|
+
}
|
|
42
|
+
export interface JsonDocsTag {
|
|
43
|
+
name: string;
|
|
44
|
+
text?: string;
|
|
45
|
+
}
|
|
46
|
+
export interface JsonDocsValue {
|
|
47
|
+
value?: string;
|
|
48
|
+
type: string;
|
|
49
|
+
}
|
|
50
|
+
export interface JsonDocsUsage {
|
|
51
|
+
[key: string]: string;
|
|
52
|
+
}
|
|
53
|
+
export interface JsonDocsProp {
|
|
54
|
+
name: string;
|
|
55
|
+
type: string;
|
|
56
|
+
mutable: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* The name of the attribute that is exposed to configure a compiled web component
|
|
59
|
+
*/
|
|
60
|
+
attr?: string;
|
|
61
|
+
reflectToAttr: boolean;
|
|
62
|
+
docs: string;
|
|
63
|
+
docsTags: JsonDocsTag[];
|
|
64
|
+
default: string;
|
|
65
|
+
deprecation?: string;
|
|
66
|
+
values: JsonDocsValue[];
|
|
67
|
+
optional: boolean;
|
|
68
|
+
required: boolean;
|
|
69
|
+
}
|
|
70
|
+
export interface JsonDocsMethod {
|
|
71
|
+
name: string;
|
|
72
|
+
docs: string;
|
|
73
|
+
docsTags: JsonDocsTag[];
|
|
74
|
+
deprecation?: string;
|
|
75
|
+
signature: string;
|
|
76
|
+
returns: JsonDocsMethodReturn;
|
|
77
|
+
parameters: JsonDocMethodParameter[];
|
|
78
|
+
}
|
|
79
|
+
export interface JsonDocsMethodReturn {
|
|
80
|
+
type: string;
|
|
81
|
+
docs: string;
|
|
82
|
+
}
|
|
83
|
+
export interface JsonDocMethodParameter {
|
|
84
|
+
name: string;
|
|
85
|
+
type: string;
|
|
86
|
+
docs: string;
|
|
87
|
+
}
|
|
88
|
+
export interface JsonDocsEvent {
|
|
89
|
+
event: string;
|
|
90
|
+
bubbles: boolean;
|
|
91
|
+
cancelable: boolean;
|
|
92
|
+
composed: boolean;
|
|
93
|
+
docs: string;
|
|
94
|
+
docsTags: JsonDocsTag[];
|
|
95
|
+
deprecation?: string;
|
|
96
|
+
detail: string;
|
|
97
|
+
}
|
|
98
|
+
export interface JsonDocsStyle {
|
|
99
|
+
name: string;
|
|
100
|
+
docs: string;
|
|
101
|
+
annotation: string;
|
|
102
|
+
}
|
|
103
|
+
export interface JsonDocsListener {
|
|
104
|
+
event: string;
|
|
105
|
+
target?: string;
|
|
106
|
+
capture: boolean;
|
|
107
|
+
passive: boolean;
|
|
108
|
+
}
|
|
109
|
+
export interface JsonDocsSlot {
|
|
110
|
+
name: string;
|
|
111
|
+
docs: string;
|
|
112
|
+
}
|
|
113
|
+
export interface JsonDocsPart {
|
|
114
|
+
name: string;
|
|
115
|
+
docs: string;
|
|
116
|
+
}
|
|
117
|
+
export interface StyleDoc {
|
|
118
|
+
name: string;
|
|
119
|
+
docs: string;
|
|
120
|
+
annotation: 'prop';
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
declare const _default: JsonDocs;
|
|
124
|
+
export default _default;
|
package/dist/docs.json
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
{
|
|
2
|
+
"timestamp": "2022-10-03T15:44:17",
|
|
3
|
+
"compiler": {
|
|
4
|
+
"name": "@stencil/core",
|
|
5
|
+
"version": "2.18.0",
|
|
6
|
+
"typescriptVersion": "4.7.4"
|
|
7
|
+
},
|
|
8
|
+
"components": [
|
|
9
|
+
{
|
|
10
|
+
"filePath": "./src/components/my-component/my-component.tsx",
|
|
11
|
+
"encapsulation": "shadow",
|
|
12
|
+
"tag": "my-component",
|
|
13
|
+
"readme": "# my-component\nBla\n\n",
|
|
14
|
+
"docs": "Bla",
|
|
15
|
+
"docsTags": [],
|
|
16
|
+
"usage": {},
|
|
17
|
+
"props": [
|
|
18
|
+
{
|
|
19
|
+
"name": "first",
|
|
20
|
+
"type": "string",
|
|
21
|
+
"mutable": false,
|
|
22
|
+
"attr": "first",
|
|
23
|
+
"reflectToAttr": false,
|
|
24
|
+
"docs": "The first name",
|
|
25
|
+
"docsTags": [],
|
|
26
|
+
"values": [
|
|
27
|
+
{
|
|
28
|
+
"type": "string"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"optional": false,
|
|
32
|
+
"required": false
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "last",
|
|
36
|
+
"type": "string",
|
|
37
|
+
"mutable": false,
|
|
38
|
+
"attr": "last",
|
|
39
|
+
"reflectToAttr": false,
|
|
40
|
+
"docs": "The last name",
|
|
41
|
+
"docsTags": [],
|
|
42
|
+
"values": [
|
|
43
|
+
{
|
|
44
|
+
"type": "string"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"optional": false,
|
|
48
|
+
"required": false
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "middle",
|
|
52
|
+
"type": "string",
|
|
53
|
+
"mutable": false,
|
|
54
|
+
"attr": "middle",
|
|
55
|
+
"reflectToAttr": false,
|
|
56
|
+
"docs": "The middle name",
|
|
57
|
+
"docsTags": [],
|
|
58
|
+
"default": "''",
|
|
59
|
+
"values": [
|
|
60
|
+
{
|
|
61
|
+
"type": "string"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"optional": false,
|
|
65
|
+
"required": false
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"methods": [
|
|
69
|
+
{
|
|
70
|
+
"name": "write",
|
|
71
|
+
"returns": {
|
|
72
|
+
"type": "Promise<void>",
|
|
73
|
+
"docs": ""
|
|
74
|
+
},
|
|
75
|
+
"signature": "write(text: string) => Promise<void>",
|
|
76
|
+
"parameters": [],
|
|
77
|
+
"docs": "",
|
|
78
|
+
"docsTags": []
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"events": [
|
|
82
|
+
{
|
|
83
|
+
"event": "someevent",
|
|
84
|
+
"detail": "string",
|
|
85
|
+
"bubbles": true,
|
|
86
|
+
"cancelable": true,
|
|
87
|
+
"composed": true,
|
|
88
|
+
"docs": "This event is fired randomly",
|
|
89
|
+
"docsTags": []
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"listeners": [],
|
|
93
|
+
"styles": [],
|
|
94
|
+
"slots": [],
|
|
95
|
+
"parts": [],
|
|
96
|
+
"dependents": [],
|
|
97
|
+
"dependencies": [],
|
|
98
|
+
"dependencyGraph": {}
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
}
|