@gov-design-system-ce/fonts 0.0.1 → 4.6.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/lib/_roboto.less +197 -197
- package/lib/_roboto.scss +258 -257
- package/lib/roboto.css +235 -195
- package/package.json +24 -24
- package/readme.md +6 -84
package/lib/roboto.css
CHANGED
|
@@ -1,195 +1,235 @@
|
|
|
1
|
-
/* latin-ext */
|
|
2
|
-
@font-face {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
/* latin
|
|
59
|
-
@font-face {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
}
|
|
162
|
-
/* latin */
|
|
163
|
-
@font-face {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
}
|
|
1
|
+
/* latin-ext */
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: Roboto;
|
|
4
|
+
font-weight: 100;
|
|
5
|
+
font-style: italic;
|
|
6
|
+
font-display: auto;
|
|
7
|
+
src: local('Roboto Thin Italic'), local('Roboto-ThinItalic'),
|
|
8
|
+
url('roboto-thin-italic-ext.woff2') format('woff2');
|
|
9
|
+
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
|
|
10
|
+
U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
11
|
+
}
|
|
12
|
+
/* latin */
|
|
13
|
+
@font-face {
|
|
14
|
+
font-family: Roboto;
|
|
15
|
+
font-weight: 100;
|
|
16
|
+
font-style: italic;
|
|
17
|
+
font-display: auto;
|
|
18
|
+
src: local('Roboto Thin Italic'), local('Roboto-ThinItalic'),
|
|
19
|
+
url('roboto-thin-italic.woff2') format('woff2');
|
|
20
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
|
|
21
|
+
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
|
|
22
|
+
U+FEFF, U+FFFD;
|
|
23
|
+
}
|
|
24
|
+
/* latin-ext */
|
|
25
|
+
@font-face {
|
|
26
|
+
font-family: Roboto;
|
|
27
|
+
font-weight: 300;
|
|
28
|
+
font-style: italic;
|
|
29
|
+
font-display: auto;
|
|
30
|
+
src: local('Roboto Light Italic'), local('Roboto-LightItalic'),
|
|
31
|
+
url('roboto-light-italic-ext.woff2') format('woff2');
|
|
32
|
+
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
|
|
33
|
+
U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
34
|
+
}
|
|
35
|
+
/* latin */
|
|
36
|
+
@font-face {
|
|
37
|
+
font-family: Roboto;
|
|
38
|
+
font-weight: 300;
|
|
39
|
+
font-style: italic;
|
|
40
|
+
font-display: auto;
|
|
41
|
+
src: local('Roboto Light Italic'), local('Roboto-LightItalic'),
|
|
42
|
+
url('roboto-light-italic.woff2') format('woff2');
|
|
43
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
|
|
44
|
+
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
|
|
45
|
+
U+FEFF, U+FFFD;
|
|
46
|
+
}
|
|
47
|
+
/* latin-ext */
|
|
48
|
+
@font-face {
|
|
49
|
+
font-family: Roboto;
|
|
50
|
+
font-weight: 400;
|
|
51
|
+
font-style: italic;
|
|
52
|
+
font-display: auto;
|
|
53
|
+
src: local('Roboto Italic'), local('Roboto-Italic'),
|
|
54
|
+
url('roboto-italic-ext.woff2') format('woff2');
|
|
55
|
+
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
|
|
56
|
+
U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
57
|
+
}
|
|
58
|
+
/* latin */
|
|
59
|
+
@font-face {
|
|
60
|
+
font-family: Roboto;
|
|
61
|
+
font-weight: 400;
|
|
62
|
+
font-style: italic;
|
|
63
|
+
font-display: auto;
|
|
64
|
+
src: local('Roboto Italic'), local('Roboto-Italic'),
|
|
65
|
+
url('roboto-italic.woff2') format('woff2');
|
|
66
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
|
|
67
|
+
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
|
|
68
|
+
U+FEFF, U+FFFD;
|
|
69
|
+
}
|
|
70
|
+
/* latin-ext */
|
|
71
|
+
@font-face {
|
|
72
|
+
font-family: Roboto;
|
|
73
|
+
font-weight: 500;
|
|
74
|
+
font-style: italic;
|
|
75
|
+
font-display: auto;
|
|
76
|
+
src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'),
|
|
77
|
+
url('roboto-medium-italic-ext.woff2') format('woff2');
|
|
78
|
+
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
|
|
79
|
+
U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
80
|
+
}
|
|
81
|
+
/* latin */
|
|
82
|
+
@font-face {
|
|
83
|
+
font-family: Roboto;
|
|
84
|
+
font-weight: 500;
|
|
85
|
+
font-style: italic;
|
|
86
|
+
font-display: auto;
|
|
87
|
+
src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'),
|
|
88
|
+
url('roboto-medium-italic.woff2') format('woff2');
|
|
89
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
|
|
90
|
+
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
|
|
91
|
+
U+FEFF, U+FFFD;
|
|
92
|
+
}
|
|
93
|
+
/* latin-ext */
|
|
94
|
+
@font-face {
|
|
95
|
+
font-family: Roboto;
|
|
96
|
+
font-weight: 700;
|
|
97
|
+
font-style: italic;
|
|
98
|
+
font-display: auto;
|
|
99
|
+
src: local('Roboto Bold Italic'), local('Roboto-BoldItalic'),
|
|
100
|
+
url('roboto-bold-italic-ext.woff2') format('woff2');
|
|
101
|
+
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
|
|
102
|
+
U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
103
|
+
}
|
|
104
|
+
/* latin */
|
|
105
|
+
@font-face {
|
|
106
|
+
font-family: Roboto;
|
|
107
|
+
font-weight: 700;
|
|
108
|
+
font-style: italic;
|
|
109
|
+
font-display: auto;
|
|
110
|
+
src: local('Roboto Bold Italic'), local('Roboto-BoldItalic'),
|
|
111
|
+
url('roboto-bold-italic.woff2') format('woff2');
|
|
112
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
|
|
113
|
+
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
|
|
114
|
+
U+FEFF, U+FFFD;
|
|
115
|
+
}
|
|
116
|
+
/* latin-ext */
|
|
117
|
+
@font-face {
|
|
118
|
+
font-family: Roboto;
|
|
119
|
+
font-weight: 100;
|
|
120
|
+
font-style: normal;
|
|
121
|
+
font-display: auto;
|
|
122
|
+
src: local('Roboto Thin'), local('Roboto-Thin'),
|
|
123
|
+
url('roboto-thin-ext.woff2') format('woff2');
|
|
124
|
+
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
|
|
125
|
+
U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
126
|
+
}
|
|
127
|
+
/* latin */
|
|
128
|
+
@font-face {
|
|
129
|
+
font-family: Roboto;
|
|
130
|
+
font-weight: 100;
|
|
131
|
+
font-style: normal;
|
|
132
|
+
font-display: auto;
|
|
133
|
+
src: local('Roboto Thin'), local('Roboto-Thin'),
|
|
134
|
+
url('roboto-thin.woff2') format('woff2');
|
|
135
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
|
|
136
|
+
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
|
|
137
|
+
U+FEFF, U+FFFD;
|
|
138
|
+
}
|
|
139
|
+
/* latin-ext */
|
|
140
|
+
@font-face {
|
|
141
|
+
font-family: Roboto;
|
|
142
|
+
font-weight: 300;
|
|
143
|
+
font-style: normal;
|
|
144
|
+
font-display: auto;
|
|
145
|
+
src: local('Roboto Light'), local('Roboto-Light'),
|
|
146
|
+
url('roboto-light-ext.woff2') format('woff2');
|
|
147
|
+
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
|
|
148
|
+
U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
149
|
+
}
|
|
150
|
+
/* latin */
|
|
151
|
+
@font-face {
|
|
152
|
+
font-family: Roboto;
|
|
153
|
+
font-weight: 300;
|
|
154
|
+
font-style: normal;
|
|
155
|
+
font-display: auto;
|
|
156
|
+
src: local('Roboto Light'), local('Roboto-Light'),
|
|
157
|
+
url('roboto-light.woff2') format('woff2');
|
|
158
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
|
|
159
|
+
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
|
|
160
|
+
U+FEFF, U+FFFD;
|
|
161
|
+
}
|
|
162
|
+
/* latin-ext */
|
|
163
|
+
@font-face {
|
|
164
|
+
font-family: Roboto;
|
|
165
|
+
font-weight: 400;
|
|
166
|
+
font-style: normal;
|
|
167
|
+
font-display: auto;
|
|
168
|
+
src: local('Roboto'), local('Roboto-Regular'),
|
|
169
|
+
url('roboto-regular-ext.woff2') format('woff2');
|
|
170
|
+
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
|
|
171
|
+
U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
172
|
+
}
|
|
173
|
+
/* latin */
|
|
174
|
+
@font-face {
|
|
175
|
+
font-family: Roboto;
|
|
176
|
+
font-weight: 400;
|
|
177
|
+
font-style: normal;
|
|
178
|
+
font-display: auto;
|
|
179
|
+
src: local('Roboto'), local('Roboto-Regular'),
|
|
180
|
+
url('roboto-regular.woff2') format('woff2');
|
|
181
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
|
|
182
|
+
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
|
|
183
|
+
U+FEFF, U+FFFD;
|
|
184
|
+
}
|
|
185
|
+
/* latin-ext */
|
|
186
|
+
@font-face {
|
|
187
|
+
font-family: Roboto;
|
|
188
|
+
font-weight: 500;
|
|
189
|
+
font-style: normal;
|
|
190
|
+
font-display: auto;
|
|
191
|
+
src: local('Roboto Medium'), local('Roboto-Medium'),
|
|
192
|
+
url('roboto-medium-ext.woff2') format('woff2');
|
|
193
|
+
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
|
|
194
|
+
U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
195
|
+
}
|
|
196
|
+
/* latin */
|
|
197
|
+
@font-face {
|
|
198
|
+
font-family: Roboto;
|
|
199
|
+
font-weight: 500;
|
|
200
|
+
font-style: normal;
|
|
201
|
+
font-display: auto;
|
|
202
|
+
src: local('Roboto Medium'), local('Roboto-Medium'),
|
|
203
|
+
url('roboto-medium.woff2') format('woff2');
|
|
204
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
|
|
205
|
+
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
|
|
206
|
+
U+FEFF, U+FFFD;
|
|
207
|
+
}
|
|
208
|
+
/* latin-ext */
|
|
209
|
+
@font-face {
|
|
210
|
+
font-family: Roboto;
|
|
211
|
+
font-weight: 700;
|
|
212
|
+
font-style: normal;
|
|
213
|
+
font-display: auto;
|
|
214
|
+
src: local('Roboto-Bold'), local('Roboto-Bold'),
|
|
215
|
+
url('roboto-bold-ext.woff2') format('woff2');
|
|
216
|
+
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
|
|
217
|
+
U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
218
|
+
}
|
|
219
|
+
/* latin */
|
|
220
|
+
@font-face {
|
|
221
|
+
font-family: Roboto;
|
|
222
|
+
font-weight: 700;
|
|
223
|
+
font-style: normal;
|
|
224
|
+
font-display: auto;
|
|
225
|
+
src: local('Roboto-Bold'), local('Roboto-Bold'),
|
|
226
|
+
url('roboto-bold.woff2') format('woff2');
|
|
227
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
|
|
228
|
+
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
|
|
229
|
+
U+FEFF, U+FFFD;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
body {
|
|
233
|
+
-moz-osx-font-smoothing: grayscale;
|
|
234
|
+
-webkit-font-smoothing: antialiased;
|
|
235
|
+
}
|
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@gov-design-system-ce/fonts",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "This package includes Gov Design System CE Fonts.",
|
|
5
|
-
"author": "
|
|
6
|
-
"main": "lib/roboto.css",
|
|
7
|
-
"directories": {
|
|
8
|
-
"lib": "lib"
|
|
9
|
-
},
|
|
10
|
-
"files": [
|
|
11
|
-
"lib"
|
|
12
|
-
],
|
|
13
|
-
"scripts": {
|
|
14
|
-
"build": "copyfiles --flat ./lib/* ../../dist/packages/fonts",
|
|
15
|
-
"serve": "copyfiles --flat ./lib/* ../../dist/packages/core/www/build/assets/fonts"
|
|
16
|
-
},
|
|
17
|
-
"devDependencies": {
|
|
18
|
-
"copyfiles": "2.4.1"
|
|
19
|
-
},
|
|
20
|
-
"publishConfig": {
|
|
21
|
-
"access": "public"
|
|
22
|
-
},
|
|
23
|
-
"license": "EUPL v1.2 Licensed"
|
|
24
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@gov-design-system-ce/fonts",
|
|
3
|
+
"version": "4.6.0",
|
|
4
|
+
"description": "This package includes Gov Design System CE Fonts.",
|
|
5
|
+
"author": "Digitální a informační agentura",
|
|
6
|
+
"main": "lib/roboto.css",
|
|
7
|
+
"directories": {
|
|
8
|
+
"lib": "lib"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"lib"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "copyfiles --flat ./lib/* ../../dist/packages/fonts",
|
|
15
|
+
"serve": "copyfiles --flat ./lib/* ../../dist/packages/core/www/build/assets/fonts"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"copyfiles": "2.4.1"
|
|
19
|
+
},
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public"
|
|
22
|
+
},
|
|
23
|
+
"license": "EUPL v1.2 Licensed"
|
|
24
|
+
}
|
package/readme.md
CHANGED
|
@@ -1,86 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
# Gov Design System - Fonts
|
|
2
|
+
This package includes Gov Design System CE Fonts.
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
## Usage
|
|
5
|
+
For usage instructions, please see [documentation](https://designsystem.gov.cz/guidelines/fonts).
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Stencil is also great for building entire apps. For that, use
|
|
8
|
-
the [stencil-app-starter](https://github.com/ionic-team/stencil-app-starter) instead.
|
|
9
|
-
|
|
10
|
-
# Stencil
|
|
11
|
-
|
|
12
|
-
Stencil is a compiler for building fast web apps using Web Components.
|
|
13
|
-
|
|
14
|
-
Stencil combines the best concepts of the most popular frontend frameworks into a compile-time rather than run-time
|
|
15
|
-
tool. Stencil takes TypeScript, JSX, a tiny virtual DOM layer, efficient one-way data binding, an asynchronous rendering
|
|
16
|
-
pipeline (similar to React Fiber), and lazy-loading out of the box, and generates 100% standards-based Web Components
|
|
17
|
-
that run in any browser supporting the Custom Elements v1 spec.
|
|
18
|
-
|
|
19
|
-
Stencil components are just Web Components, so they work in any major framework or with no framework at all.
|
|
20
|
-
|
|
21
|
-
## Getting Started
|
|
22
|
-
|
|
23
|
-
To start building a new web component using Stencil, clone this repo to a new directory:
|
|
24
|
-
|
|
25
|
-
```bash
|
|
26
|
-
git clone https://github.com/ionic-team/stencil-component-starter.git my-component
|
|
27
|
-
cd my-component
|
|
28
|
-
git remote rm origin
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
and run:
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
npm install
|
|
35
|
-
npm start
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
To build the component for production, run:
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
npm run build
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
To run the unit tests for the components, run:
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
npm test
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
Need help? Check out our docs [here](https://stenciljs.com/docs/my-first-component).
|
|
51
|
-
|
|
52
|
-
## Naming Components
|
|
53
|
-
|
|
54
|
-
When creating new component tags, we recommend _not_ using `stencil` in the component name (ex: `<stencil-datepicker>`).
|
|
55
|
-
This is because the generated component has little to nothing to do with Stencil; it's just a web component!
|
|
56
|
-
|
|
57
|
-
Instead, use a prefix that fits your company or any name for a group of related components. For example, all of the
|
|
58
|
-
Ionic generated web components use the prefix `ion`.
|
|
59
|
-
|
|
60
|
-
## Using this component
|
|
61
|
-
|
|
62
|
-
There are three strategies we recommend for using web components built with Stencil.
|
|
63
|
-
|
|
64
|
-
The first step for all three of these strategies is
|
|
65
|
-
to [publish to NPM](https://docs.npmjs.com/getting-started/publishing-npm-packages).
|
|
66
|
-
|
|
67
|
-
### Script tag
|
|
68
|
-
|
|
69
|
-
- Put a script tag similar to
|
|
70
|
-
this `<script type='module' src='https://unpkg.com/my-component@0.0.1/dist/my-component.esm.js'></script>` in the head
|
|
71
|
-
of your index.html
|
|
72
|
-
- Then you can use the element anywhere in your template, JSX, html etc
|
|
73
|
-
|
|
74
|
-
### Node Modules
|
|
75
|
-
|
|
76
|
-
- Run `npm install my-component --save`
|
|
77
|
-
- Put a script tag similar to
|
|
78
|
-
this `<script type='module' src='node_modules/my-component/dist/my-component.esm.js'></script>` in the head of your
|
|
79
|
-
index.html
|
|
80
|
-
- Then you can use the element anywhere in your template, JSX, html etc
|
|
81
|
-
|
|
82
|
-
### In a stencil-starter app
|
|
83
|
-
|
|
84
|
-
- Run `npm install my-component --save`
|
|
85
|
-
- Add an import to the npm packages `import my-component;`
|
|
86
|
-
- Then you can use the element anywhere in your template, JSX, html etc
|
|
7
|
+
## Copyright
|
|
8
|
+
Copyright(c) 2020 - 2026 Digitální a informační agentura
|