bth-ui 0.0.0-stage → 0.0.2
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/dist/bth-ui/bth-ui.esm.js +1 -0
- package/dist/bth-ui/index.esm.js +0 -0
- package/dist/bth-ui/p-DQuL1Twl.js +1 -0
- package/dist/bth-ui/p-e916e3c7.entry.js +1 -0
- package/dist/bth-ui/p-svnzPQiH.js +3 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/bth-alert_6.cjs.entry.js +133 -0
- package/dist/cjs/bth-ui.cjs.js +25 -0
- package/dist/cjs/index-UJE5BQI1.js +1550 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/collection/collection-manifest.json +18 -0
- package/dist/collection/components/bth-alert/bth-alert-description.css +16 -0
- package/dist/collection/components/bth-alert/bth-alert-description.js +34 -0
- package/dist/collection/components/bth-alert/bth-alert-title.css +13 -0
- package/dist/collection/components/bth-alert/bth-alert-title.js +34 -0
- package/dist/collection/components/bth-alert/bth-alert.css +109 -0
- package/dist/collection/components/bth-alert/bth-alert.js +138 -0
- package/dist/collection/components/bth-alert/bth-alert.types.js +1 -0
- package/dist/collection/components/bth-badge/bth-badge.css +109 -0
- package/dist/collection/components/bth-badge/bth-badge.js +129 -0
- package/dist/collection/components/bth-badge/bth-badge.types.js +1 -0
- package/dist/collection/components/bth-button/bth-button.css +152 -0
- package/dist/collection/components/bth-button/bth-button.js +183 -0
- package/dist/collection/components/bth-button/bth-button.types.js +1 -0
- package/dist/collection/components/bth-icon/bth-icon.css +9 -0
- package/dist/collection/components/bth-icon/bth-icon.js +57 -0
- package/dist/collection/index.js +1 -0
- package/dist/components/bth-alert-description.d.ts +11 -0
- package/dist/components/bth-alert-description.js +1 -0
- package/dist/components/bth-alert-title.d.ts +11 -0
- package/dist/components/bth-alert-title.js +1 -0
- package/dist/components/bth-alert.d.ts +11 -0
- package/dist/components/bth-alert.js +1 -0
- package/dist/components/bth-badge.d.ts +11 -0
- package/dist/components/bth-badge.js +1 -0
- package/dist/components/bth-button.d.ts +11 -0
- package/dist/components/bth-button.js +1 -0
- package/dist/components/bth-icon.d.ts +11 -0
- package/dist/components/bth-icon.js +1 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/bth-alert_6.entry.js +126 -0
- package/dist/esm/bth-ui.js +21 -0
- package/dist/esm/index-svnzPQiH.js +1541 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/bth-alert/bth-alert-description.d.ts +19 -0
- package/dist/types/components/bth-alert/bth-alert-title.d.ts +19 -0
- package/dist/types/components/bth-alert/bth-alert.d.ts +41 -0
- package/dist/types/components/bth-alert/bth-alert.types.d.ts +1 -0
- package/dist/types/components/bth-badge/bth-badge.d.ts +30 -0
- package/dist/types/components/bth-badge/bth-badge.types.d.ts +3 -0
- package/dist/types/components/bth-button/bth-button.d.ts +34 -0
- package/dist/types/components/bth-button/bth-button.types.d.ts +3 -0
- package/dist/types/components/bth-icon/bth-icon.d.ts +20 -0
- package/dist/types/components.d.ts +580 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/stencil-public-runtime.d.ts +1879 -0
- package/docs/docs.d.ts +480 -0
- package/docs/docs.json +951 -0
- package/docs/tokens.json +340 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +55 -4
- package/readme.md +31 -0
- package/README.md +0 -3
package/docs/tokens.json
ADDED
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.0.2",
|
|
3
|
+
"tokens": [
|
|
4
|
+
{
|
|
5
|
+
"name": "$primary-color",
|
|
6
|
+
"value": "#0861ff",
|
|
7
|
+
"file": "src/tokens/_colors.scss"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"name": "$success-color",
|
|
11
|
+
"value": "#26d07c",
|
|
12
|
+
"file": "src/tokens/_colors.scss"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "$danger-color",
|
|
16
|
+
"value": "#df4661",
|
|
17
|
+
"file": "src/tokens/_colors.scss"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "$warning-color",
|
|
21
|
+
"value": "#f7b500",
|
|
22
|
+
"file": "src/tokens/_colors.scss"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "$info-color",
|
|
26
|
+
"value": "#009cde",
|
|
27
|
+
"file": "src/tokens/_colors.scss"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "$accent-color",
|
|
31
|
+
"value": "#7740ff",
|
|
32
|
+
"file": "src/tokens/_colors.scss"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "$colors.primary.base",
|
|
36
|
+
"value": "#0861ff",
|
|
37
|
+
"file": "src/tokens/_colors.scss"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "$colors.primary.contrast",
|
|
41
|
+
"value": "#ffffff",
|
|
42
|
+
"file": "src/tokens/_colors.scss"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "$colors.success.base",
|
|
46
|
+
"value": "#26d07c",
|
|
47
|
+
"file": "src/tokens/_colors.scss"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "$colors.success.contrast",
|
|
51
|
+
"value": "#ffffff",
|
|
52
|
+
"file": "src/tokens/_colors.scss"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "$colors.danger.base",
|
|
56
|
+
"value": "#df4661",
|
|
57
|
+
"file": "src/tokens/_colors.scss"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "$colors.danger.contrast",
|
|
61
|
+
"value": "#ffffff",
|
|
62
|
+
"file": "src/tokens/_colors.scss"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "$colors.warning.base",
|
|
66
|
+
"value": "#f7b500",
|
|
67
|
+
"file": "src/tokens/_colors.scss"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "$colors.warning.contrast",
|
|
71
|
+
"value": "#ffffff",
|
|
72
|
+
"file": "src/tokens/_colors.scss"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "$colors.info.base",
|
|
76
|
+
"value": "#009cde",
|
|
77
|
+
"file": "src/tokens/_colors.scss"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "$colors.info.contrast",
|
|
81
|
+
"value": "#ffffff",
|
|
82
|
+
"file": "src/tokens/_colors.scss"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "$colors.accent.base",
|
|
86
|
+
"value": "#7740ff",
|
|
87
|
+
"file": "src/tokens/_colors.scss"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "$colors.accent.contrast",
|
|
91
|
+
"value": "#ffffff",
|
|
92
|
+
"file": "src/tokens/_colors.scss"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "$text-color",
|
|
96
|
+
"value": "var(--bth-color-text, #222222)",
|
|
97
|
+
"cssVariable": "--bth-color-text",
|
|
98
|
+
"file": "src/tokens/_colors.scss"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "$border-color",
|
|
102
|
+
"value": "var(--bth-color-border, #d1d5db)",
|
|
103
|
+
"cssVariable": "--bth-color-border",
|
|
104
|
+
"file": "src/tokens/_colors.scss"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "$radius-xs",
|
|
108
|
+
"value": "var(--bth-radius-xs, 6px)",
|
|
109
|
+
"cssVariable": "--bth-radius-xs",
|
|
110
|
+
"file": "src/tokens/_radius.scss"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "$radius-sm",
|
|
114
|
+
"value": "var(--bth-radius-sm, 8px)",
|
|
115
|
+
"cssVariable": "--bth-radius-sm",
|
|
116
|
+
"file": "src/tokens/_radius.scss"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "$radius-md",
|
|
120
|
+
"value": "var(--bth-radius-md, 10px)",
|
|
121
|
+
"cssVariable": "--bth-radius-md",
|
|
122
|
+
"file": "src/tokens/_radius.scss"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "$radius-lg",
|
|
126
|
+
"value": "var(--bth-radius-lg, 12px)",
|
|
127
|
+
"cssVariable": "--bth-radius-lg",
|
|
128
|
+
"file": "src/tokens/_radius.scss"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "$radius-xl",
|
|
132
|
+
"value": "var(--bth-radius-xl, 14px)",
|
|
133
|
+
"cssVariable": "--bth-radius-xl",
|
|
134
|
+
"file": "src/tokens/_radius.scss"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "$control-height-xs",
|
|
138
|
+
"value": "var(--bth-control-height-xs, 24px)",
|
|
139
|
+
"cssVariable": "--bth-control-height-xs",
|
|
140
|
+
"file": "src/tokens/_sizing.scss"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "$control-height-sm",
|
|
144
|
+
"value": "var(--bth-control-height-sm, 32px)",
|
|
145
|
+
"cssVariable": "--bth-control-height-sm",
|
|
146
|
+
"file": "src/tokens/_sizing.scss"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "$control-height-md",
|
|
150
|
+
"value": "var(--bth-control-height-md, 40px)",
|
|
151
|
+
"cssVariable": "--bth-control-height-md",
|
|
152
|
+
"file": "src/tokens/_sizing.scss"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "$control-height-lg",
|
|
156
|
+
"value": "var(--bth-control-height-lg, 48px)",
|
|
157
|
+
"cssVariable": "--bth-control-height-lg",
|
|
158
|
+
"file": "src/tokens/_sizing.scss"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "$control-height-xl",
|
|
162
|
+
"value": "var(--bth-control-height-xl, 56px)",
|
|
163
|
+
"cssVariable": "--bth-control-height-xl",
|
|
164
|
+
"file": "src/tokens/_sizing.scss"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "$grid-system-point",
|
|
168
|
+
"value": "4px",
|
|
169
|
+
"file": "src/tokens/_spacing.scss"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "$spacing-1x",
|
|
173
|
+
"value": "var(--bth-spacing-1x, 4px)",
|
|
174
|
+
"cssVariable": "--bth-spacing-1x",
|
|
175
|
+
"file": "src/tokens/_spacing.scss"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"name": "$spacing-2x",
|
|
179
|
+
"value": "var(--bth-spacing-2x, 8px)",
|
|
180
|
+
"cssVariable": "--bth-spacing-2x",
|
|
181
|
+
"file": "src/tokens/_spacing.scss"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "$spacing-3x",
|
|
185
|
+
"value": "var(--bth-spacing-3x, 12px)",
|
|
186
|
+
"cssVariable": "--bth-spacing-3x",
|
|
187
|
+
"file": "src/tokens/_spacing.scss"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"name": "$spacing-4x",
|
|
191
|
+
"value": "var(--bth-spacing-4x, 16px)",
|
|
192
|
+
"cssVariable": "--bth-spacing-4x",
|
|
193
|
+
"file": "src/tokens/_spacing.scss"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"name": "$spacing-5x",
|
|
197
|
+
"value": "var(--bth-spacing-5x, 20px)",
|
|
198
|
+
"cssVariable": "--bth-spacing-5x",
|
|
199
|
+
"file": "src/tokens/_spacing.scss"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "$spacing-6x",
|
|
203
|
+
"value": "var(--bth-spacing-6x, 24px)",
|
|
204
|
+
"cssVariable": "--bth-spacing-6x",
|
|
205
|
+
"file": "src/tokens/_spacing.scss"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"name": "$spacing-8x",
|
|
209
|
+
"value": "var(--bth-spacing-8x, 32px)",
|
|
210
|
+
"cssVariable": "--bth-spacing-8x",
|
|
211
|
+
"file": "src/tokens/_spacing.scss"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"name": "$spacing-10x",
|
|
215
|
+
"value": "var(--bth-spacing-10x, 40px)",
|
|
216
|
+
"cssVariable": "--bth-spacing-10x",
|
|
217
|
+
"file": "src/tokens/_spacing.scss"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "$spacing-12x",
|
|
221
|
+
"value": "var(--bth-spacing-12x, 48px)",
|
|
222
|
+
"cssVariable": "--bth-spacing-12x",
|
|
223
|
+
"file": "src/tokens/_spacing.scss"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "$opacity-hover",
|
|
227
|
+
"value": "var(--bth-opacity-hover, 0.88)",
|
|
228
|
+
"cssVariable": "--bth-opacity-hover",
|
|
229
|
+
"file": "src/tokens/_states.scss"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"name": "$opacity-active",
|
|
233
|
+
"value": "var(--bth-opacity-active, 0.76)",
|
|
234
|
+
"cssVariable": "--bth-opacity-active",
|
|
235
|
+
"file": "src/tokens/_states.scss"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"name": "$opacity-disabled",
|
|
239
|
+
"value": "var(--bth-opacity-disabled, 0.5)",
|
|
240
|
+
"cssVariable": "--bth-opacity-disabled",
|
|
241
|
+
"file": "src/tokens/_states.scss"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "$tint-subtle",
|
|
245
|
+
"value": "var(--bth-tint-subtle, 10%)",
|
|
246
|
+
"cssVariable": "--bth-tint-subtle",
|
|
247
|
+
"file": "src/tokens/_states.scss"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"name": "$tint-hover",
|
|
251
|
+
"value": "var(--bth-tint-hover, 10%)",
|
|
252
|
+
"cssVariable": "--bth-tint-hover",
|
|
253
|
+
"file": "src/tokens/_states.scss"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"name": "$tint-active",
|
|
257
|
+
"value": "var(--bth-tint-active, 18%)",
|
|
258
|
+
"cssVariable": "--bth-tint-active",
|
|
259
|
+
"file": "src/tokens/_states.scss"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"name": "$font-family",
|
|
263
|
+
"value": "var(--bth-font-family, \"Geist\", sans-serif)",
|
|
264
|
+
"cssVariable": "--bth-font-family",
|
|
265
|
+
"file": "src/tokens/_typography.scss"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"name": "$font-size-xs",
|
|
269
|
+
"value": "var(--bth-font-size-xs, 0.75rem)",
|
|
270
|
+
"cssVariable": "--bth-font-size-xs",
|
|
271
|
+
"file": "src/tokens/_typography.scss"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"name": "$font-size-sm",
|
|
275
|
+
"value": "var(--bth-font-size-sm, 0.8125rem)",
|
|
276
|
+
"cssVariable": "--bth-font-size-sm",
|
|
277
|
+
"file": "src/tokens/_typography.scss"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"name": "$font-size-md",
|
|
281
|
+
"value": "var(--bth-font-size-md, 0.875rem)",
|
|
282
|
+
"cssVariable": "--bth-font-size-md",
|
|
283
|
+
"file": "src/tokens/_typography.scss"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"name": "$font-size-lg",
|
|
287
|
+
"value": "var(--bth-font-size-lg, 1rem)",
|
|
288
|
+
"cssVariable": "--bth-font-size-lg",
|
|
289
|
+
"file": "src/tokens/_typography.scss"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"name": "$font-size-xl",
|
|
293
|
+
"value": "var(--bth-font-size-xl, 1.125rem)",
|
|
294
|
+
"cssVariable": "--bth-font-size-xl",
|
|
295
|
+
"file": "src/tokens/_typography.scss"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"name": "$font-weight-regular",
|
|
299
|
+
"value": "var(--bth-font-weight-regular, 400)",
|
|
300
|
+
"cssVariable": "--bth-font-weight-regular",
|
|
301
|
+
"file": "src/tokens/_typography.scss"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"name": "$font-weight-medium",
|
|
305
|
+
"value": "var(--bth-font-weight-medium, 500)",
|
|
306
|
+
"cssVariable": "--bth-font-weight-medium",
|
|
307
|
+
"file": "src/tokens/_typography.scss"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"name": "$font-weight-semibold",
|
|
311
|
+
"value": "var(--bth-font-weight-semibold, 600)",
|
|
312
|
+
"cssVariable": "--bth-font-weight-semibold",
|
|
313
|
+
"file": "src/tokens/_typography.scss"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"name": "$line-height-none",
|
|
317
|
+
"value": "var(--bth-line-height-none, 1)",
|
|
318
|
+
"cssVariable": "--bth-line-height-none",
|
|
319
|
+
"file": "src/tokens/_typography.scss"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"name": "$line-height-tight",
|
|
323
|
+
"value": "var(--bth-line-height-tight, 1.2)",
|
|
324
|
+
"cssVariable": "--bth-line-height-tight",
|
|
325
|
+
"file": "src/tokens/_typography.scss"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"name": "$line-height-normal",
|
|
329
|
+
"value": "var(--bth-line-height-normal, 1.45)",
|
|
330
|
+
"cssVariable": "--bth-line-height-normal",
|
|
331
|
+
"file": "src/tokens/_typography.scss"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"name": "$icon-size",
|
|
335
|
+
"value": "var(--bth-icon-font-size, 24px)",
|
|
336
|
+
"cssVariable": "--bth-icon-font-size",
|
|
337
|
+
"file": "src/tokens/_typography.scss"
|
|
338
|
+
}
|
|
339
|
+
]
|
|
340
|
+
}
|
package/loader/cdn.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../dist/cjs/loader.cjs.js');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../dist/cjs/loader.cjs.js');
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* @deprecated
|
|
14
|
+
*/
|
|
15
|
+
export declare function applyPolyfills(): Promise<void>;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
19
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
20
|
+
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
21
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
22
|
+
* will result in the same behavior.
|
|
23
|
+
*/
|
|
24
|
+
export declare function setNonce(nonce: string): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/esm/loader.js';
|
package/loader/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(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)}})();
|
|
2
|
+
export * from '../dist/esm/loader.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,57 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bth-ui",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "Web components built with Stencil.js",
|
|
5
|
+
"main": "dist/index.cjs.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"types": "dist/types/index.d.ts",
|
|
8
|
+
"collection": "dist/collection/collection-manifest.json",
|
|
9
|
+
"collection:main": "dist/collection/index.js",
|
|
10
|
+
"unpkg": "dist/bth-ui/bth-ui.esm.js",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/bth-ui/bth-ui.esm.js",
|
|
14
|
+
"require": "./dist/bth-ui/bth-ui.cjs.js"
|
|
15
|
+
},
|
|
16
|
+
"./docs.json": {
|
|
17
|
+
"import": "./docs/docs.json"
|
|
18
|
+
},
|
|
19
|
+
"./loader": {
|
|
20
|
+
"import": "./loader/index.js",
|
|
21
|
+
"require": "./loader/index.cjs",
|
|
22
|
+
"types": "./loader/index.d.ts"
|
|
23
|
+
},
|
|
24
|
+
"./tokens.json": {
|
|
25
|
+
"import": "./docs/tokens.json"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "https://github.com/pamelacfelipe/bth-ui.git"
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"dist/",
|
|
34
|
+
"docs/",
|
|
35
|
+
"loader/"
|
|
36
|
+
],
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "stencil build && node scripts/build-tokens.mjs",
|
|
39
|
+
"start": "stencil build --dev --watch --serve",
|
|
40
|
+
"test": "stencil-test --prod",
|
|
41
|
+
"test:watch": "stencil-test --prod --watch",
|
|
42
|
+
"generate": "stencil generate",
|
|
43
|
+
"check:docs": "node scripts/check-docs.mjs"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@stencil/core": "^4.27.1 || ^5.0.0-0",
|
|
47
|
+
"@stencil/sass": "^3.3.3",
|
|
48
|
+
"@stencil/vitest": "^1.8.3",
|
|
49
|
+
"@types/node": "^22.13.5",
|
|
50
|
+
"@vitest/browser-playwright": "^4.0.0",
|
|
51
|
+
"clsx": "^2.1.1",
|
|
52
|
+
"playwright": "^1.52.0",
|
|
53
|
+
"sass-embedded": "^1.105.1",
|
|
54
|
+
"vitest": "^4.0.0"
|
|
55
|
+
},
|
|
56
|
+
"license": "MIT"
|
|
57
|
+
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
[](https://stenciljs.com)
|
|
2
|
+
|
|
3
|
+
# Componentes do bth-ui
|
|
4
|
+
|
|
5
|
+
## Iniciando
|
|
6
|
+
|
|
7
|
+
Para começar a criar novos componentes, clone este repositório para um novo diretório:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
git clone https://github.com/pamelacfelipe/bth-ui.git
|
|
11
|
+
cd bth-ui
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
E executa:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install
|
|
18
|
+
npm start
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Para *buildar* os componentes para produção, rode:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm run build
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Para executar os testes dos componentes, rode:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npm test
|
|
31
|
+
```
|
package/README.md
DELETED