bth-ui 0.0.1 → 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.
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bth-ui",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Web components built with Stencil.js",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -13,10 +13,16 @@
13
13
  "import": "./dist/bth-ui/bth-ui.esm.js",
14
14
  "require": "./dist/bth-ui/bth-ui.cjs.js"
15
15
  },
16
+ "./docs.json": {
17
+ "import": "./docs/docs.json"
18
+ },
16
19
  "./loader": {
17
20
  "import": "./loader/index.js",
18
21
  "require": "./loader/index.cjs",
19
22
  "types": "./loader/index.d.ts"
23
+ },
24
+ "./tokens.json": {
25
+ "import": "./docs/tokens.json"
20
26
  }
21
27
  },
22
28
  "repository": {
@@ -25,14 +31,16 @@
25
31
  },
26
32
  "files": [
27
33
  "dist/",
34
+ "docs/",
28
35
  "loader/"
29
36
  ],
30
37
  "scripts": {
31
- "build": "stencil build",
38
+ "build": "stencil build && node scripts/build-tokens.mjs",
32
39
  "start": "stencil build --dev --watch --serve",
33
40
  "test": "stencil-test --prod",
34
41
  "test:watch": "stencil-test --prod --watch",
35
- "generate": "stencil generate"
42
+ "generate": "stencil generate",
43
+ "check:docs": "node scripts/check-docs.mjs"
36
44
  },
37
45
  "devDependencies": {
38
46
  "@stencil/core": "^4.27.1 || ^5.0.0-0",
@@ -42,6 +50,7 @@
42
50
  "@vitest/browser-playwright": "^4.0.0",
43
51
  "clsx": "^2.1.1",
44
52
  "playwright": "^1.52.0",
53
+ "sass-embedded": "^1.105.1",
45
54
  "vitest": "^4.0.0"
46
55
  },
47
56
  "license": "MIT"