@kb.ui/tokens 0.0.0-stage → 0.10.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/dist/tokens.js ADDED
@@ -0,0 +1,493 @@
1
+ export const tokens = {
2
+ "white": "--kb-white",
3
+ "black": "--kb-black",
4
+ "gray": {
5
+ "50": "--kb-gray-50",
6
+ "100": "--kb-gray-100",
7
+ "200": "--kb-gray-200",
8
+ "300": "--kb-gray-300",
9
+ "400": "--kb-gray-400",
10
+ "500": "--kb-gray-500",
11
+ "600": "--kb-gray-600",
12
+ "700": "--kb-gray-700",
13
+ "800": "--kb-gray-800",
14
+ "900": "--kb-gray-900",
15
+ "950": "--kb-gray-950"
16
+ },
17
+ "blue": {
18
+ "400": "--kb-blue-400",
19
+ "500": "--kb-blue-500",
20
+ "600": "--kb-blue-600",
21
+ "700": "--kb-blue-700"
22
+ },
23
+ "red": {
24
+ "400": "--kb-red-400",
25
+ "500": "--kb-red-500",
26
+ "600": "--kb-red-600"
27
+ },
28
+ "amber": {
29
+ "400": "--kb-amber-400",
30
+ "500": "--kb-amber-500",
31
+ "600": "--kb-amber-600",
32
+ "700": "--kb-amber-700"
33
+ },
34
+ "green": {
35
+ "400": "--kb-green-400",
36
+ "500": "--kb-green-500",
37
+ "600": "--kb-green-600",
38
+ "700": "--kb-green-700"
39
+ },
40
+ "teal": {
41
+ "400": "--kb-teal-400",
42
+ "500": "--kb-teal-500",
43
+ "600": "--kb-teal-600",
44
+ "700": "--kb-teal-700"
45
+ },
46
+ "space": {
47
+ "1": "--kb-space-1",
48
+ "2": "--kb-space-2",
49
+ "3": "--kb-space-3",
50
+ "4": "--kb-space-4",
51
+ "5": "--kb-space-5",
52
+ "6": "--kb-space-6",
53
+ "8": "--kb-space-8"
54
+ },
55
+ "radius": {
56
+ "sm": "--kb-radius-sm",
57
+ "md": "--kb-radius-md",
58
+ "lg": "--kb-radius-lg",
59
+ "full": "--kb-radius-full"
60
+ },
61
+ "font": {
62
+ "sans": "--kb-font-sans",
63
+ "mono": "--kb-font-mono",
64
+ "weight": {
65
+ "regular": "--kb-font-weight-regular",
66
+ "medium": "--kb-font-weight-medium",
67
+ "strong": "--kb-font-weight-strong"
68
+ }
69
+ },
70
+ "size": {
71
+ "xs": "--kb-size-xs",
72
+ "sm": "--kb-size-sm",
73
+ "md": "--kb-size-md",
74
+ "lg": "--kb-size-lg",
75
+ "display": "--kb-size-display"
76
+ },
77
+ "motion": {
78
+ "duration": {
79
+ "fast": "--kb-motion-duration-fast",
80
+ "base": "--kb-motion-duration-base",
81
+ "slow": "--kb-motion-duration-slow",
82
+ "theme": "--kb-motion-duration-theme"
83
+ },
84
+ "easing": {
85
+ "standard": "--kb-motion-easing-standard",
86
+ "enter": "--kb-motion-easing-enter",
87
+ "exit": "--kb-motion-easing-exit",
88
+ "smooth": "--kb-motion-easing-smooth"
89
+ }
90
+ },
91
+ "color": {
92
+ "bg": "--kb-color-bg",
93
+ "fg": "--kb-color-fg",
94
+ "muted": "--kb-color-muted",
95
+ "surface": "--kb-color-surface",
96
+ "border": "--kb-color-border",
97
+ "accent": "--kb-color-accent",
98
+ "accent-hover": "--kb-color-accent-hover",
99
+ "accent-fg": "--kb-color-accent-fg",
100
+ "danger": "--kb-color-danger",
101
+ "danger-hover": "--kb-color-danger-hover",
102
+ "danger-fg": "--kb-color-danger-fg",
103
+ "info": "--kb-color-info",
104
+ "info-fg": "--kb-color-info-fg",
105
+ "success": "--kb-color-success",
106
+ "success-fg": "--kb-color-success-fg",
107
+ "warning": "--kb-color-warning",
108
+ "warning-fg": "--kb-color-warning-fg",
109
+ "ring": "--kb-color-ring",
110
+ "overlay": "--kb-color-overlay",
111
+ "accent-ink": "--kb-color-accent-ink",
112
+ "action": "--kb-color-action",
113
+ "action-hover": "--kb-color-action-hover",
114
+ "action-fg": "--kb-color-action-fg"
115
+ },
116
+ "viz": {
117
+ "current": "--kb-viz-current",
118
+ "current-bg": "--kb-viz-current-bg",
119
+ "current-fg": "--kb-viz-current-fg",
120
+ "visited": "--kb-viz-visited",
121
+ "visited-bg": "--kb-viz-visited-bg",
122
+ "visited-fg": "--kb-viz-visited-fg",
123
+ "changed": "--kb-viz-changed",
124
+ "changed-bg": "--kb-viz-changed-bg",
125
+ "changed-fg": "--kb-viz-changed-fg",
126
+ "error": "--kb-viz-error",
127
+ "error-bg": "--kb-viz-error-bg",
128
+ "error-fg": "--kb-viz-error-fg",
129
+ "discarded": "--kb-viz-discarded",
130
+ "discarded-bg": "--kb-viz-discarded-bg",
131
+ "discarded-fg": "--kb-viz-discarded-fg",
132
+ "frontier": "--kb-viz-frontier",
133
+ "frontier-bg": "--kb-viz-frontier-bg",
134
+ "frontier-fg": "--kb-viz-frontier-fg",
135
+ "path": "--kb-viz-path",
136
+ "path-bg": "--kb-viz-path-bg",
137
+ "path-fg": "--kb-viz-path-fg"
138
+ },
139
+ "card": {
140
+ "background": "--kb-card-background",
141
+ "color": "--kb-card-color",
142
+ "border": "--kb-card-border",
143
+ "border-width": "--kb-card-border-width",
144
+ "radius": "--kb-card-radius",
145
+ "padding": "--kb-card-padding",
146
+ "padding-compact": "--kb-card-padding-compact",
147
+ "face": "--kb-card-face",
148
+ "shadow": "--kb-card-shadow"
149
+ },
150
+ "grid": {
151
+ "gap": "--kb-grid-gap",
152
+ "min-item-width": "--kb-grid-min-item-width"
153
+ },
154
+ "button": {
155
+ "radius": "--kb-button-radius",
156
+ "motion-duration": "--kb-button-motion-duration",
157
+ "motion-easing": "--kb-button-motion-easing",
158
+ "press-offset": "--kb-button-press-offset",
159
+ "height": {
160
+ "sm": "--kb-button-height-sm",
161
+ "md": "--kb-button-height-md",
162
+ "lg": "--kb-button-height-lg"
163
+ },
164
+ "padding": {
165
+ "sm": "--kb-button-padding-sm",
166
+ "md": "--kb-button-padding-md",
167
+ "lg": "--kb-button-padding-lg"
168
+ },
169
+ "icon-size": "--kb-button-icon-size",
170
+ "touch-min": "--kb-button-touch-min"
171
+ },
172
+ "input": {
173
+ "radius": "--kb-input-radius",
174
+ "height": {
175
+ "sm": "--kb-input-height-sm",
176
+ "md": "--kb-input-height-md",
177
+ "lg": "--kb-input-height-lg"
178
+ },
179
+ "gap": "--kb-input-gap"
180
+ },
181
+ "numberfield": {
182
+ "radius": "--kb-numberfield-radius",
183
+ "background": "--kb-numberfield-background",
184
+ "color": "--kb-numberfield-color",
185
+ "border": "--kb-numberfield-border",
186
+ "border-width": "--kb-numberfield-border-width",
187
+ "step-width": "--kb-numberfield-step-width",
188
+ "font-size": "--kb-numberfield-font-size",
189
+ "height": {
190
+ "sm": "--kb-numberfield-height-sm",
191
+ "md": "--kb-numberfield-height-md",
192
+ "lg": "--kb-numberfield-height-lg"
193
+ }
194
+ },
195
+ "fileinput": {
196
+ "radius": "--kb-fileinput-radius",
197
+ "action-height": "--kb-fileinput-action-height",
198
+ "border-width": "--kb-fileinput-border-width"
199
+ },
200
+ "dialog": {
201
+ "radius": "--kb-dialog-radius",
202
+ "width": "--kb-dialog-width",
203
+ "background": "--kb-dialog-background",
204
+ "color": "--kb-dialog-color",
205
+ "border": "--kb-dialog-border",
206
+ "border-width": "--kb-dialog-border-width",
207
+ "padding": "--kb-dialog-padding",
208
+ "shadow": "--kb-dialog-shadow",
209
+ "description-color": "--kb-dialog-description-color",
210
+ "overlay-background": "--kb-dialog-overlay-background",
211
+ "motion-duration": "--kb-dialog-motion-duration",
212
+ "motion-easing": "--kb-dialog-motion-easing",
213
+ "enter-scale": "--kb-dialog-enter-scale",
214
+ "enter-offset": "--kb-dialog-enter-offset",
215
+ "title-size": "--kb-dialog-title-size",
216
+ "title-family": "--kb-dialog-title-family",
217
+ "title-weight": "--kb-dialog-title-weight",
218
+ "header-padding": "--kb-dialog-header-padding",
219
+ "body-padding": "--kb-dialog-body-padding",
220
+ "footer-padding": "--kb-dialog-footer-padding"
221
+ },
222
+ "panel": {
223
+ "background": "--kb-panel-background",
224
+ "background-active": "--kb-panel-background-active",
225
+ "background-sunken": "--kb-panel-background-sunken",
226
+ "border": "--kb-panel-border",
227
+ "border-active": "--kb-panel-border-active",
228
+ "border-critical": "--kb-panel-border-critical",
229
+ "rim-top": "--kb-panel-rim-top",
230
+ "rim-bottom": "--kb-panel-rim-bottom",
231
+ "seam": "--kb-panel-seam",
232
+ "radius": "--kb-panel-radius",
233
+ "highlight": "--kb-panel-highlight",
234
+ "divider": "--kb-panel-divider",
235
+ "sheen": "--kb-panel-sheen",
236
+ "backdrop": "--kb-panel-backdrop",
237
+ "glow": "--kb-panel-glow",
238
+ "glow-active": "--kb-panel-glow-active",
239
+ "glow-critical": "--kb-panel-glow-critical",
240
+ "glow-blur": "--kb-panel-glow-blur",
241
+ "shadow": "--kb-panel-shadow",
242
+ "shadow-active": "--kb-panel-shadow-active",
243
+ "well": "--kb-panel-well",
244
+ "well-radius": "--kb-panel-well-radius",
245
+ "well-shadow": "--kb-panel-well-shadow",
246
+ "padding": "--kb-panel-padding",
247
+ "rail": "--kb-panel-rail",
248
+ "rail-active": "--kb-panel-rail-active",
249
+ "title-size": "--kb-panel-title-size",
250
+ "toggle-height": "--kb-panel-toggle-height",
251
+ "handle-size": "--kb-panel-handle-size",
252
+ "handle-hit": "--kb-panel-handle-hit",
253
+ "handle-grip": "--kb-panel-handle-grip",
254
+ "handle-line-width": "--kb-panel-handle-line-width",
255
+ "handle-line": "--kb-panel-handle-line",
256
+ "handle-line-active": "--kb-panel-handle-line-active"
257
+ },
258
+ "popup": {
259
+ "motion-duration": "--kb-popup-motion-duration",
260
+ "motion-easing": "--kb-popup-motion-easing",
261
+ "background": "--kb-popup-background",
262
+ "border": "--kb-popup-border",
263
+ "radius": "--kb-popup-radius",
264
+ "shadow": "--kb-popup-shadow"
265
+ },
266
+ "checkbox": {
267
+ "size": "--kb-checkbox-size"
268
+ },
269
+ "progress": {
270
+ "track": "--kb-progress-track",
271
+ "fill": "--kb-progress-fill",
272
+ "fill-complete": "--kb-progress-fill-complete",
273
+ "height": "--kb-progress-height",
274
+ "glow": "--kb-progress-glow",
275
+ "radius": "--kb-progress-radius"
276
+ },
277
+ "stat": {
278
+ "display-size": "--kb-stat-display-size",
279
+ "display-weight": "--kb-stat-display-weight",
280
+ "gap": "--kb-stat-gap",
281
+ "value-size": "--kb-stat-value-size"
282
+ },
283
+ "status": {
284
+ "neutral": "--kb-status-neutral",
285
+ "info": "--kb-status-info",
286
+ "running": "--kb-status-running",
287
+ "success": "--kb-status-success",
288
+ "warning": "--kb-status-warning",
289
+ "blocked": "--kb-status-blocked",
290
+ "radius": "--kb-status-radius",
291
+ "glow": "--kb-status-glow",
292
+ "gap": "--kb-status-gap",
293
+ "padding-block": "--kb-status-padding-block",
294
+ "padding-inline": "--kb-status-padding-inline",
295
+ "compact-gap": "--kb-status-compact-gap",
296
+ "compact-padding-block": "--kb-status-compact-padding-block",
297
+ "compact-padding-inline": "--kb-status-compact-padding-inline",
298
+ "compact-size": "--kb-status-compact-size",
299
+ "dot-size": "--kb-status-dot-size"
300
+ },
301
+ "material": {
302
+ "chrome-bg": "--kb-material-chrome-bg",
303
+ "chrome-fg": "--kb-material-chrome-fg",
304
+ "chrome-muted": "--kb-material-chrome-muted",
305
+ "field-bg": "--kb-material-field-bg",
306
+ "control-border": "--kb-material-control-border",
307
+ "soft-border": "--kb-material-soft-border",
308
+ "raised-top": "--kb-material-raised-top",
309
+ "raised-bottom": "--kb-material-raised-bottom",
310
+ "raised-border": "--kb-material-raised-border",
311
+ "raised-shadow": "--kb-material-raised-shadow",
312
+ "pressed-shadow": "--kb-material-pressed-shadow",
313
+ "accent-shadow": "--kb-material-accent-shadow",
314
+ "panel-shadow": "--kb-material-panel-shadow",
315
+ "field-shadow": "--kb-material-field-shadow",
316
+ "inlay-shadow": "--kb-material-inlay-shadow",
317
+ "float-shadow": "--kb-material-float-shadow",
318
+ "action-sheen": "--kb-material-action-sheen",
319
+ "soft-sheen": "--kb-material-soft-sheen",
320
+ "fill-sheen": "--kb-material-fill-sheen",
321
+ "fill-highlight": "--kb-material-fill-highlight",
322
+ "fill-shade": "--kb-material-fill-shade",
323
+ "raised-face": "--kb-material-raised-face",
324
+ "recessed-face": "--kb-material-recessed-face",
325
+ "scroll-thumb-shadow": "--kb-material-scroll-thumb-shadow",
326
+ "surface-bg": "--kb-material-surface-bg"
327
+ },
328
+ "text": {
329
+ "body-size": "--kb-text-body-size",
330
+ "small-size": "--kb-text-small-size",
331
+ "control-size": "--kb-text-control-size",
332
+ "leading-body": "--kb-text-leading-body",
333
+ "leading-control": "--kb-text-leading-control",
334
+ "caption-size": "--kb-text-caption-size",
335
+ "h1-size": "--kb-text-h1-size",
336
+ "h2-size": "--kb-text-h2-size",
337
+ "h3-size": "--kb-text-h3-size",
338
+ "h4-size": "--kb-text-h4-size",
339
+ "measure": "--kb-text-measure",
340
+ "muted": "--kb-text-muted"
341
+ },
342
+ "radiogroup": {
343
+ "primary-background": "--kb-radiogroup-primary-background",
344
+ "primary-color": "--kb-radiogroup-primary-color",
345
+ "gap": "--kb-radiogroup-gap",
346
+ "size": "--kb-radiogroup-size"
347
+ },
348
+ "select": {
349
+ "popup-min-width": "--kb-select-popup-min-width",
350
+ "max-height": "--kb-select-max-height",
351
+ "layer": "--kb-select-layer"
352
+ },
353
+ "combobox": {
354
+ "popup-min-width": "--kb-combobox-popup-min-width",
355
+ "max-height": "--kb-combobox-max-height",
356
+ "layer": "--kb-combobox-layer",
357
+ "action-size": "--kb-combobox-action-size"
358
+ },
359
+ "multiselect": {
360
+ "popup-min-width": "--kb-multiselect-popup-min-width",
361
+ "max-height": "--kb-multiselect-max-height",
362
+ "layer": "--kb-multiselect-layer",
363
+ "chip-gap": "--kb-multiselect-chip-gap",
364
+ "chip-radius": "--kb-multiselect-chip-radius",
365
+ "action-size": "--kb-multiselect-action-size"
366
+ },
367
+ "switch": {
368
+ "width": "--kb-switch-width",
369
+ "height": "--kb-switch-height",
370
+ "inset": "--kb-switch-inset",
371
+ "sm": {
372
+ "width": "--kb-switch-sm-width",
373
+ "height": "--kb-switch-sm-height",
374
+ "inset": "--kb-switch-sm-inset",
375
+ "icon-size": "--kb-switch-sm-icon-size"
376
+ },
377
+ "md": {
378
+ "width": "--kb-switch-md-width",
379
+ "height": "--kb-switch-md-height",
380
+ "inset": "--kb-switch-md-inset",
381
+ "icon-size": "--kb-switch-md-icon-size"
382
+ },
383
+ "lg": {
384
+ "width": "--kb-switch-lg-width",
385
+ "height": "--kb-switch-lg-height",
386
+ "inset": "--kb-switch-lg-inset",
387
+ "icon-size": "--kb-switch-lg-icon-size"
388
+ },
389
+ "radius": "--kb-switch-radius",
390
+ "track-background": "--kb-switch-track-background",
391
+ "track-border": "--kb-switch-track-border",
392
+ "track-shadow": "--kb-switch-track-shadow",
393
+ "thumb-background": "--kb-switch-thumb-background",
394
+ "thumb-border": "--kb-switch-thumb-border",
395
+ "thumb-shadow": "--kb-switch-thumb-shadow",
396
+ "icon-size": "--kb-switch-icon-size",
397
+ "duration": "--kb-switch-duration"
398
+ },
399
+ "badge": {
400
+ "radius": "--kb-badge-radius",
401
+ "padding-block": "--kb-badge-padding-block"
402
+ },
403
+ "callout": {
404
+ "radius": "--kb-callout-radius",
405
+ "padding-block": "--kb-callout-padding-block",
406
+ "padding-inline": "--kb-callout-padding-inline"
407
+ },
408
+ "menu": {
409
+ "min-width": "--kb-menu-min-width",
410
+ "item-height": "--kb-menu-item-height"
411
+ },
412
+ "scrollarea": {
413
+ "radius": "--kb-scrollarea-radius",
414
+ "padding": "--kb-scrollarea-padding"
415
+ },
416
+ "toolbar": {
417
+ "radius": "--kb-toolbar-radius",
418
+ "padding": "--kb-toolbar-padding"
419
+ },
420
+ "tooltip": {
421
+ "padding-block": "--kb-tooltip-padding-block",
422
+ "padding-inline": "--kb-tooltip-padding-inline"
423
+ },
424
+ "heading": {
425
+ "size": {
426
+ "sm": "--kb-heading-size-sm",
427
+ "md": "--kb-heading-size-md",
428
+ "lg": "--kb-heading-size-lg",
429
+ "xl": "--kb-heading-size-xl",
430
+ "display": "--kb-heading-size-display"
431
+ },
432
+ "weight": "--kb-heading-weight",
433
+ "leading": "--kb-heading-leading",
434
+ "tracking": "--kb-heading-tracking"
435
+ },
436
+ "link": {
437
+ "color": "--kb-link-color",
438
+ "hover": "--kb-link-hover",
439
+ "underline-offset": "--kb-link-underline-offset"
440
+ },
441
+ "code": {
442
+ "size": "--kb-code-size",
443
+ "background": "--kb-code-background",
444
+ "border": "--kb-code-border",
445
+ "radius": "--kb-code-radius"
446
+ },
447
+ "container": {
448
+ "size": {
449
+ "sm": "--kb-container-size-sm",
450
+ "md": "--kb-container-size-md",
451
+ "lg": "--kb-container-size-lg"
452
+ },
453
+ "gutter": "--kb-container-gutter"
454
+ },
455
+ "layout": {
456
+ "gap": {
457
+ "sm": "--kb-layout-gap-sm",
458
+ "md": "--kb-layout-gap-md",
459
+ "lg": "--kb-layout-gap-lg"
460
+ }
461
+ },
462
+ "split": {
463
+ "collapse": {
464
+ "sm": "--kb-split-collapse-sm",
465
+ "md": "--kb-split-collapse-md",
466
+ "lg": "--kb-split-collapse-lg"
467
+ }
468
+ },
469
+ "separator": {
470
+ "color": "--kb-separator-color",
471
+ "width": "--kb-separator-width",
472
+ "min-length": "--kb-separator-min-length"
473
+ },
474
+ "textarea": {
475
+ "min-height": "--kb-textarea-min-height",
476
+ "padding-block": "--kb-textarea-padding-block",
477
+ "padding-inline": "--kb-textarea-padding-inline"
478
+ },
479
+ "fieldset": {
480
+ "gap": "--kb-fieldset-gap",
481
+ "fields-gap": "--kb-fieldset-fields-gap",
482
+ "legend-size": "--kb-fieldset-legend-size"
483
+ },
484
+ "formactions": {
485
+ "gap": "--kb-formactions-gap",
486
+ "padding-top": "--kb-formactions-padding-top"
487
+ },
488
+ "errorsummary": {
489
+ "padding": "--kb-errorsummary-padding",
490
+ "radius": "--kb-errorsummary-radius",
491
+ "gap": "--kb-errorsummary-gap"
492
+ }
493
+ };
package/package.json CHANGED
@@ -1,6 +1,28 @@
1
1
  {
2
2
  "name": "@kb.ui/tokens",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.10.2",
4
+ "type": "module",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/KhallilB/kbui.git",
9
+ "directory": "packages/tokens"
10
+ },
11
+ "files": [
12
+ "dist",
13
+ "tokens.json"
14
+ ],
15
+ "exports": {
16
+ ".": {
17
+ "types": "./dist/tokens.d.ts",
18
+ "default": "./dist/tokens.js"
19
+ },
20
+ "./tokens.css": "./dist/tokens.css",
21
+ "./tokens.json": "./tokens.json"
22
+ },
23
+ "scripts": {
24
+ "build": "bun scripts/build.ts",
25
+ "test": "bun test",
26
+ "typecheck": "tsc --noEmit -p tsconfig.json"
27
+ }
28
+ }