@oddmash/ui 0.0.0-stage → 0.2.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.
Files changed (83) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +32 -2
  3. package/dist/accordion.d.ts +12 -0
  4. package/dist/accordion.js +8 -0
  5. package/dist/alert.d.ts +12 -0
  6. package/dist/alert.js +8 -0
  7. package/dist/avatar.d.ts +14 -0
  8. package/dist/avatar.js +8 -0
  9. package/dist/badge.d.ts +12 -0
  10. package/dist/badge.js +8 -0
  11. package/dist/breadcrumbs.d.ts +8 -0
  12. package/dist/breadcrumbs.js +8 -0
  13. package/dist/button.d.ts +14 -0
  14. package/dist/button.js +8 -0
  15. package/dist/card.d.ts +8 -0
  16. package/dist/card.js +8 -0
  17. package/dist/checkbox.d.ts +8 -0
  18. package/dist/checkbox.js +8 -0
  19. package/dist/chunk-24TAPSJO.js +14 -0
  20. package/dist/chunk-2YEAAOWL.js +24 -0
  21. package/dist/chunk-33GOGIXE.js +19 -0
  22. package/dist/chunk-3TIYT55P.js +14 -0
  23. package/dist/chunk-46VRJZNH.js +24 -0
  24. package/dist/chunk-4AQXNXAQ.js +16 -0
  25. package/dist/chunk-4VBYIXGA.js +22 -0
  26. package/dist/chunk-4YJMCYQW.js +23 -0
  27. package/dist/chunk-54STG2JB.js +8 -0
  28. package/dist/chunk-5NGRPREI.js +14 -0
  29. package/dist/chunk-7A5VK567.js +48 -0
  30. package/dist/chunk-AVQGR5G7.js +22 -0
  31. package/dist/chunk-B3VPCEGX.js +14 -0
  32. package/dist/chunk-CWGH75FA.js +217 -0
  33. package/dist/chunk-JA3X5LJF.js +14 -0
  34. package/dist/chunk-KU7UNDPK.js +14 -0
  35. package/dist/chunk-L53J65C4.js +23 -0
  36. package/dist/chunk-LFWQDF6U.js +25 -0
  37. package/dist/chunk-ME34NDSX.js +28 -0
  38. package/dist/chunk-QB6NCURJ.js +24 -0
  39. package/dist/chunk-SDU26SU7.js +43 -0
  40. package/dist/chunk-UJJUFR7B.js +22 -0
  41. package/dist/chunk-VIWYEDTD.js +14 -0
  42. package/dist/chunk-XYGNNGM2.js +14 -0
  43. package/dist/chunk-ZEQLZCOY.js +19 -0
  44. package/dist/dialog.d.ts +20 -0
  45. package/dist/dialog.js +18 -0
  46. package/dist/empty-state.d.ts +8 -0
  47. package/dist/empty-state.js +8 -0
  48. package/dist/field.d.ts +12 -0
  49. package/dist/field.js +8 -0
  50. package/dist/index.d.ts +27 -0
  51. package/dist/index.js +118 -0
  52. package/dist/input.d.ts +8 -0
  53. package/dist/input.js +8 -0
  54. package/dist/pagination.d.ts +8 -0
  55. package/dist/pagination.js +8 -0
  56. package/dist/progress.d.ts +8 -0
  57. package/dist/progress.js +8 -0
  58. package/dist/radio.d.ts +8 -0
  59. package/dist/radio.js +8 -0
  60. package/dist/select.d.ts +30 -0
  61. package/dist/select.js +10 -0
  62. package/dist/separator.d.ts +8 -0
  63. package/dist/separator.js +8 -0
  64. package/dist/skeleton.d.ts +8 -0
  65. package/dist/skeleton.js +8 -0
  66. package/dist/spinner.d.ts +12 -0
  67. package/dist/spinner.js +8 -0
  68. package/dist/styles.css +775 -0
  69. package/dist/switch.d.ts +8 -0
  70. package/dist/switch.js +8 -0
  71. package/dist/table.d.ts +8 -0
  72. package/dist/table.js +8 -0
  73. package/dist/tabs.d.ts +9 -0
  74. package/dist/tabs.js +14 -0
  75. package/dist/textarea.d.ts +8 -0
  76. package/dist/textarea.js +8 -0
  77. package/dist/tokens.css +177 -0
  78. package/dist/tokens.d.ts +45 -0
  79. package/dist/tokens.js +7 -0
  80. package/package.json +173 -4
  81. package/tokens/primitive.json +512 -0
  82. package/tokens/semantic/dark.json +192 -0
  83. package/tokens/semantic/light.json +192 -0
@@ -0,0 +1,192 @@
1
+ {
2
+ "semantic": {
3
+ "color": {
4
+ "bg": {
5
+ "$type": "color",
6
+ "$value": "{primitive.color.paper}"
7
+ },
8
+ "surface": {
9
+ "$type": "color",
10
+ "$value": "{primitive.color.white}"
11
+ },
12
+ "text": {
13
+ "$type": "color",
14
+ "$value": "{primitive.color.ink}"
15
+ },
16
+ "muted": {
17
+ "$type": "color",
18
+ "$value": "{primitive.color.muted}"
19
+ },
20
+ "border": {
21
+ "$type": "color",
22
+ "$value": "{primitive.color.line}"
23
+ },
24
+ "accent": {
25
+ "$type": "color",
26
+ "$value": "{primitive.color.ink}"
27
+ },
28
+ "accent-hover": {
29
+ "$type": "color",
30
+ "$value": "{primitive.color.actionHover}"
31
+ },
32
+ "on-accent": {
33
+ "$type": "color",
34
+ "$value": "{primitive.color.white}"
35
+ },
36
+ "danger": {
37
+ "$type": "color",
38
+ "$value": "{primitive.color.danger}"
39
+ },
40
+ "focus": {
41
+ "$type": "color",
42
+ "$value": "{primitive.color.focusBlue}"
43
+ },
44
+ "border-subtle": {
45
+ "$type": "color",
46
+ "$value": "{primitive.color.softLine}"
47
+ },
48
+ "action": {
49
+ "$type": "color",
50
+ "$value": "{primitive.color.ink}"
51
+ },
52
+ "on-action": {
53
+ "$type": "color",
54
+ "$value": "{primitive.color.white}"
55
+ },
56
+ "action-hover": {
57
+ "$type": "color",
58
+ "$value": "{primitive.color.actionHover}"
59
+ }
60
+ },
61
+ "space": {
62
+ "xs": {
63
+ "$type": "dimension",
64
+ "$value": "{primitive.space.4}"
65
+ },
66
+ "sm": {
67
+ "$type": "dimension",
68
+ "$value": "{primitive.space.8}"
69
+ },
70
+ "md": {
71
+ "$type": "dimension",
72
+ "$value": "{primitive.space.12}"
73
+ },
74
+ "lg": {
75
+ "$type": "dimension",
76
+ "$value": "{primitive.space.16}"
77
+ },
78
+ "xl": {
79
+ "$type": "dimension",
80
+ "$value": "{primitive.space.24}"
81
+ }
82
+ },
83
+ "radius": {
84
+ "sm": {
85
+ "$type": "dimension",
86
+ "$value": "{primitive.radius.sm}"
87
+ },
88
+ "md": {
89
+ "$type": "dimension",
90
+ "$value": "{primitive.radius.md}"
91
+ },
92
+ "lg": {
93
+ "$type": "dimension",
94
+ "$value": "{primitive.radius.lg}"
95
+ },
96
+ "pill": {
97
+ "$type": "dimension",
98
+ "$value": "{primitive.radius.pill}"
99
+ }
100
+ },
101
+ "font": {
102
+ "family": {
103
+ "$type": "fontFamily",
104
+ "$value": "{primitive.font.family}"
105
+ },
106
+ "size": {
107
+ "$type": "dimension",
108
+ "$value": "{primitive.font.size.md}"
109
+ },
110
+ "small": {
111
+ "$type": "dimension",
112
+ "$value": "{primitive.font.size.sm}"
113
+ },
114
+ "heading": {
115
+ "$type": "dimension",
116
+ "$value": "{primitive.font.size.lg}"
117
+ },
118
+ "weight": {
119
+ "$type": "fontWeight",
120
+ "$value": "{primitive.font.weight.medium}"
121
+ },
122
+ "line": {
123
+ "$type": "number",
124
+ "$value": "{primitive.font.line}"
125
+ },
126
+ "mono-family": {
127
+ "$type": "fontFamily",
128
+ "$value": "{primitive.font.mono-family}"
129
+ }
130
+ },
131
+ "border": {
132
+ "default": {
133
+ "$type": "border",
134
+ "$value": {
135
+ "color": "{semantic.color.border}",
136
+ "width": "{primitive.border.width}",
137
+ "style": "solid"
138
+ }
139
+ },
140
+ "width": {
141
+ "$type": "dimension",
142
+ "$value": "{primitive.border.width}"
143
+ },
144
+ "style": {
145
+ "$type": "strokeStyle",
146
+ "$value": "solid"
147
+ }
148
+ },
149
+ "shadow": {
150
+ "$type": "shadow",
151
+ "$value": "{primitive.shadow.panel}"
152
+ },
153
+ "motion": {
154
+ "duration": {
155
+ "$type": "duration",
156
+ "$value": "{primitive.motion.fast}"
157
+ },
158
+ "ease": {
159
+ "$type": "cubicBezier",
160
+ "$value": "{primitive.motion.ease}"
161
+ }
162
+ },
163
+ "control": {
164
+ "height": {
165
+ "$type": "dimension",
166
+ "$value": {
167
+ "value": 36,
168
+ "unit": "px"
169
+ }
170
+ },
171
+ "small": {
172
+ "$type": "dimension",
173
+ "$value": {
174
+ "value": 28,
175
+ "unit": "px"
176
+ }
177
+ }
178
+ },
179
+ "overlay": {
180
+ "$type": "color",
181
+ "$value": {
182
+ "colorSpace": "srgb",
183
+ "components": [
184
+ 0,
185
+ 0,
186
+ 0
187
+ ],
188
+ "alpha": 0.5
189
+ }
190
+ }
191
+ }
192
+ }