@okshaun/components 0.5.8 → 1.0.1
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/README.md +22 -26
- package/dist/.mcp.json +11 -0
- package/dist/index.d.ts +3 -1268
- package/dist/index.js +1231 -957
- package/dist/index.js.map +1 -1
- package/dist/okshaun-logo-white.svg +11 -0
- package/dist/okshaun-logo.svg +11 -0
- package/dist/preset-BzrKiUEH.js +8452 -0
- package/dist/preset-BzrKiUEH.js.map +1 -0
- package/dist/preset.js +3 -7234
- package/dist/preset.js.map +1 -1
- package/dist/specs/animation-styles.json +4 -0
- package/dist/specs/color-palette.json +98 -0
- package/dist/specs/conditions.json +1901 -0
- package/dist/specs/keyframes.json +137 -0
- package/dist/specs/layer-styles.json +23 -0
- package/dist/specs/patterns.json +475 -0
- package/dist/specs/recipes.json +907 -0
- package/dist/specs/semantic-tokens.json +2837 -0
- package/dist/specs/text-styles.json +149 -0
- package/dist/specs/tokens.json +2750 -0
- package/dist/sprite.svg +1 -1
- package/dist/sprite.symbol.html +14 -14
- package/dist/styles/global.css +148 -0
- package/dist/styles/recipes/avatar.css +185 -0
- package/dist/styles/recipes/badge.css +85 -0
- package/dist/styles/recipes/breadcrumbs.css +38 -0
- package/dist/styles/recipes/button.css +195 -0
- package/dist/styles/recipes/card.css +57 -0
- package/dist/styles/recipes/checkbox-input.css +12 -0
- package/dist/styles/recipes/checkbox.css +90 -0
- package/dist/styles/recipes/chip.css +137 -0
- package/dist/styles/recipes/code.css +12 -0
- package/dist/styles/recipes/divider.css +43 -0
- package/dist/styles/recipes/form-field.css +39 -0
- package/dist/styles/recipes/heading.css +40 -0
- package/dist/styles/recipes/icon-button.css +181 -0
- package/dist/styles/recipes/label.css +14 -0
- package/dist/styles/recipes/link.css +49 -0
- package/dist/styles/recipes/menu.css +141 -0
- package/dist/styles/recipes/modal.css +99 -0
- package/dist/styles/recipes/pre.css +16 -0
- package/dist/styles/recipes/radio-input.css +7 -0
- package/dist/styles/recipes/radio.css +82 -0
- package/dist/styles/recipes/select.css +103 -0
- package/dist/styles/recipes/spinner.css +36 -0
- package/dist/styles/recipes/tag.css +27 -0
- package/dist/styles/recipes/text.css +46 -0
- package/dist/styles/recipes/textarea.css +91 -0
- package/dist/styles/recipes/textinput.css +87 -0
- package/dist/styles/recipes/theme-switcher.css +53 -0
- package/dist/styles/recipes/toggle-input.css +12 -0
- package/dist/styles/recipes/toggle.css +125 -0
- package/dist/styles/recipes/tooltip.css +133 -0
- package/dist/styles/recipes.css +30 -0
- package/dist/styles/reset.css +1 -0
- package/dist/styles/tokens.css +1016 -0
- package/dist/styles/utilities.css +1694 -0
- package/dist/styles.css +7 -0
- package/dist/svgs/building.svg +1 -0
- package/dist/types/index.d.ts +21626 -0
- package/dist/types/preset.d.ts +19 -0
- package/package.json +37 -35
- package/src/recipes/avatar.ts +205 -0
- package/src/recipes/badge.ts +203 -0
- package/src/recipes/box.ts +13 -0
- package/src/recipes/breadcrumbs.ts +29 -0
- package/src/recipes/button.ts +319 -0
- package/src/recipes/card.ts +148 -0
- package/src/recipes/checkbox.ts +87 -0
- package/src/recipes/checkboxinput.ts +15 -0
- package/src/recipes/chip.ts +189 -0
- package/src/recipes/code.ts +35 -0
- package/src/recipes/divider.ts +41 -0
- package/src/recipes/formField.ts +60 -0
- package/src/recipes/index.ts +28 -0
- package/src/recipes/menu.ts +205 -0
- package/src/recipes/modal.ts +120 -0
- package/src/recipes/radio.ts +71 -0
- package/src/recipes/radioinput.ts +12 -0
- package/src/recipes/select.ts +142 -0
- package/src/recipes/spinner.ts +52 -0
- package/src/recipes/tag.ts +262 -0
- package/src/recipes/text.ts +193 -0
- package/src/recipes/textarea.ts +153 -0
- package/src/recipes/textinput.ts +100 -0
- package/src/recipes/themeSwitcher.ts +48 -0
- package/src/recipes/toggle.ts +116 -0
- package/src/recipes/toggleinput.ts +16 -0
- package/src/recipes/tooltip.ts +359 -0
- package/src/styles/index.css +1 -0
- package/src/styles/primitives/animations.ts +16 -0
- package/src/styles/primitives/aspectRatios.ts +22 -0
- package/src/styles/primitives/blurs.ts +25 -0
- package/src/styles/primitives/borderWidths.ts +10 -0
- package/src/styles/primitives/borders.ts +36 -0
- package/src/styles/primitives/colors.ts +228 -0
- package/src/styles/primitives/durations.ts +25 -0
- package/src/styles/primitives/easings.ts +19 -0
- package/src/styles/primitives/fontSizes.ts +16 -0
- package/src/styles/primitives/fontWeights.ts +9 -0
- package/src/styles/primitives/fonts.ts +18 -0
- package/src/styles/primitives/index.ts +46 -0
- package/src/styles/primitives/letterSpacings.ts +22 -0
- package/src/styles/primitives/lineHeights.ts +16 -0
- package/src/styles/primitives/radii.ts +14 -0
- package/src/styles/primitives/shadows.ts +73 -0
- package/src/styles/primitives/sizes.ts +86 -0
- package/src/styles/primitives/spacings.ts +7 -0
- package/src/styles/semantics/colors.ts +774 -0
- package/src/styles/semantics/index.ts +2 -0
- package/src/styles/semantics/shadows.ts +32 -0
- package/src/styles/utilities/breakpoints.ts +8 -0
- package/src/styles/utilities/conditions.ts +140 -0
- package/src/styles/utilities/containerSizes.ts +17 -0
- package/src/styles/utilities/filters.ts +12 -0
- package/src/styles/utilities/globalStyle.ts +93 -0
- package/src/styles/utilities/index.ts +9 -0
- package/src/styles/utilities/keyframes.ts +89 -0
- package/src/styles/utilities/layerStyles.ts +18 -0
- package/src/styles/utilities/textStyles.ts +135 -0
- package/src/styles/utilities/transitions.ts +92 -0
- package/src/utils/injectSprite.ts +36 -0
- package/src/utils/splitProps.ts +19 -0
- package/src/utils/spriteContent.ts +4 -0
- package/dist/panda.buildinfo.json +0 -448
- package/dist/preset.d.ts +0 -5
- package/dist/transitions-DUgH88VW.js +0 -1041
- package/dist/transitions-DUgH88VW.js.map +0 -1
|
@@ -0,0 +1,907 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "recipes",
|
|
3
|
+
"data": [
|
|
4
|
+
{
|
|
5
|
+
"name": "box",
|
|
6
|
+
"description": "",
|
|
7
|
+
"variants": {},
|
|
8
|
+
"defaultVariants": {},
|
|
9
|
+
"functionExamples": [
|
|
10
|
+
"box()"
|
|
11
|
+
],
|
|
12
|
+
"jsxExamples": [
|
|
13
|
+
"<Box />"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "breadcrumbs",
|
|
18
|
+
"description": "",
|
|
19
|
+
"variants": {},
|
|
20
|
+
"defaultVariants": {},
|
|
21
|
+
"functionExamples": [
|
|
22
|
+
"breadcrumbs()"
|
|
23
|
+
],
|
|
24
|
+
"jsxExamples": [
|
|
25
|
+
"<Breadcrumbs />"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "card",
|
|
30
|
+
"description": "",
|
|
31
|
+
"variants": {
|
|
32
|
+
"variant": [
|
|
33
|
+
"default",
|
|
34
|
+
"flat",
|
|
35
|
+
"sunken",
|
|
36
|
+
"ghost",
|
|
37
|
+
"overlay"
|
|
38
|
+
],
|
|
39
|
+
"interactive": [
|
|
40
|
+
"true",
|
|
41
|
+
"false"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"defaultVariants": {
|
|
45
|
+
"variant": "default",
|
|
46
|
+
"interactive": false
|
|
47
|
+
},
|
|
48
|
+
"functionExamples": [
|
|
49
|
+
"card({ variant: 'default' })",
|
|
50
|
+
"card({ interactive: true })",
|
|
51
|
+
"card({ variant: 'default', interactive: true })"
|
|
52
|
+
],
|
|
53
|
+
"jsxExamples": [
|
|
54
|
+
"<Card variant=\"default\" />",
|
|
55
|
+
"<Card interactive={true} />",
|
|
56
|
+
"<Card variant=\"default\" interactive={true} />"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "checkboxInput",
|
|
61
|
+
"description": "",
|
|
62
|
+
"variants": {},
|
|
63
|
+
"defaultVariants": {},
|
|
64
|
+
"functionExamples": [
|
|
65
|
+
"checkboxInput()"
|
|
66
|
+
],
|
|
67
|
+
"jsxExamples": [
|
|
68
|
+
"<CheckboxInput />"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "code",
|
|
73
|
+
"description": "",
|
|
74
|
+
"variants": {},
|
|
75
|
+
"defaultVariants": {},
|
|
76
|
+
"functionExamples": [
|
|
77
|
+
"code()"
|
|
78
|
+
],
|
|
79
|
+
"jsxExamples": [
|
|
80
|
+
"<Code />"
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "divider",
|
|
85
|
+
"description": "",
|
|
86
|
+
"variants": {
|
|
87
|
+
"direction": [
|
|
88
|
+
"horizontal",
|
|
89
|
+
"vertical"
|
|
90
|
+
],
|
|
91
|
+
"weight": [
|
|
92
|
+
"thin",
|
|
93
|
+
"medium",
|
|
94
|
+
"thick",
|
|
95
|
+
"thicker"
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
"defaultVariants": {
|
|
99
|
+
"direction": "horizontal",
|
|
100
|
+
"weight": "thin"
|
|
101
|
+
},
|
|
102
|
+
"functionExamples": [
|
|
103
|
+
"divider({ direction: 'horizontal' })",
|
|
104
|
+
"divider({ weight: 'thin' })",
|
|
105
|
+
"divider({ direction: 'horizontal', weight: 'thin' })"
|
|
106
|
+
],
|
|
107
|
+
"jsxExamples": [
|
|
108
|
+
"<Divider direction=\"horizontal\" />",
|
|
109
|
+
"<Divider weight=\"thin\" />",
|
|
110
|
+
"<Divider direction=\"horizontal\" weight=\"thin\" />"
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "heading",
|
|
115
|
+
"description": "",
|
|
116
|
+
"variants": {
|
|
117
|
+
"level": [
|
|
118
|
+
"h1",
|
|
119
|
+
"h2",
|
|
120
|
+
"h3",
|
|
121
|
+
"h4"
|
|
122
|
+
],
|
|
123
|
+
"allcaps": [
|
|
124
|
+
"true"
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
"defaultVariants": {
|
|
128
|
+
"level": "h2"
|
|
129
|
+
},
|
|
130
|
+
"functionExamples": [
|
|
131
|
+
"heading({ level: 'h1' })",
|
|
132
|
+
"heading({ allcaps: true })",
|
|
133
|
+
"heading({ level: 'h1', allcaps: true })"
|
|
134
|
+
],
|
|
135
|
+
"jsxExamples": [
|
|
136
|
+
"<Heading level=\"h1\" />",
|
|
137
|
+
"<Heading allcaps={true} />",
|
|
138
|
+
"<Heading level=\"h1\" allcaps={true} />"
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "label",
|
|
143
|
+
"description": "",
|
|
144
|
+
"variants": {
|
|
145
|
+
"family": [
|
|
146
|
+
"heading",
|
|
147
|
+
"body",
|
|
148
|
+
"sans",
|
|
149
|
+
"serif",
|
|
150
|
+
"mono",
|
|
151
|
+
"inherit"
|
|
152
|
+
],
|
|
153
|
+
"bold": [
|
|
154
|
+
"true"
|
|
155
|
+
],
|
|
156
|
+
"italic": [
|
|
157
|
+
"true"
|
|
158
|
+
],
|
|
159
|
+
"underline": [
|
|
160
|
+
"true"
|
|
161
|
+
],
|
|
162
|
+
"truncate": [
|
|
163
|
+
"true"
|
|
164
|
+
],
|
|
165
|
+
"allcaps": [
|
|
166
|
+
"true"
|
|
167
|
+
],
|
|
168
|
+
"size": [
|
|
169
|
+
"12",
|
|
170
|
+
"14",
|
|
171
|
+
"16",
|
|
172
|
+
"20",
|
|
173
|
+
"24",
|
|
174
|
+
"32",
|
|
175
|
+
"40",
|
|
176
|
+
"48",
|
|
177
|
+
"64",
|
|
178
|
+
"72",
|
|
179
|
+
"80",
|
|
180
|
+
"96"
|
|
181
|
+
],
|
|
182
|
+
"weight": [
|
|
183
|
+
"light",
|
|
184
|
+
"normal",
|
|
185
|
+
"medium",
|
|
186
|
+
"bold",
|
|
187
|
+
"black"
|
|
188
|
+
],
|
|
189
|
+
"_disabled": [
|
|
190
|
+
"true"
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
"defaultVariants": {
|
|
194
|
+
"family": "sans"
|
|
195
|
+
},
|
|
196
|
+
"functionExamples": [
|
|
197
|
+
"label({ family: 'heading' })",
|
|
198
|
+
"label({ bold: true })",
|
|
199
|
+
"label({ italic: true })",
|
|
200
|
+
"label({ underline: true })",
|
|
201
|
+
"label({ truncate: true })",
|
|
202
|
+
"label({ allcaps: true })",
|
|
203
|
+
"label({ size: '12' })",
|
|
204
|
+
"label({ weight: 'light' })",
|
|
205
|
+
"label({ _disabled: true })",
|
|
206
|
+
"label({ family: 'heading', bold: true, italic: true, underline: true, truncate: true, allcaps: true, size: '12', weight: 'light', _disabled: true })"
|
|
207
|
+
],
|
|
208
|
+
"jsxExamples": [
|
|
209
|
+
"<Label family=\"heading\" />",
|
|
210
|
+
"<Label bold={true} />",
|
|
211
|
+
"<Label italic={true} />",
|
|
212
|
+
"<Label underline={true} />",
|
|
213
|
+
"<Label truncate={true} />",
|
|
214
|
+
"<Label allcaps={true} />",
|
|
215
|
+
"<Label size=\"12\" />",
|
|
216
|
+
"<Label weight=\"light\" />",
|
|
217
|
+
"<Label _disabled={true} />",
|
|
218
|
+
"<Label family=\"heading\" bold={true} italic={true} underline={true} truncate={true} allcaps={true} size=\"12\" weight=\"light\" _disabled={true} />"
|
|
219
|
+
]
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"name": "link",
|
|
223
|
+
"description": "",
|
|
224
|
+
"variants": {
|
|
225
|
+
"family": [
|
|
226
|
+
"heading",
|
|
227
|
+
"body",
|
|
228
|
+
"sans",
|
|
229
|
+
"serif",
|
|
230
|
+
"mono",
|
|
231
|
+
"inherit"
|
|
232
|
+
],
|
|
233
|
+
"bold": [
|
|
234
|
+
"true"
|
|
235
|
+
],
|
|
236
|
+
"italic": [
|
|
237
|
+
"true"
|
|
238
|
+
],
|
|
239
|
+
"underline": [
|
|
240
|
+
"true"
|
|
241
|
+
],
|
|
242
|
+
"truncate": [
|
|
243
|
+
"true"
|
|
244
|
+
],
|
|
245
|
+
"allcaps": [
|
|
246
|
+
"true"
|
|
247
|
+
],
|
|
248
|
+
"size": [
|
|
249
|
+
"12",
|
|
250
|
+
"14",
|
|
251
|
+
"16",
|
|
252
|
+
"20",
|
|
253
|
+
"24",
|
|
254
|
+
"32",
|
|
255
|
+
"40",
|
|
256
|
+
"48",
|
|
257
|
+
"64",
|
|
258
|
+
"72",
|
|
259
|
+
"80",
|
|
260
|
+
"96"
|
|
261
|
+
],
|
|
262
|
+
"weight": [
|
|
263
|
+
"light",
|
|
264
|
+
"normal",
|
|
265
|
+
"medium",
|
|
266
|
+
"bold",
|
|
267
|
+
"black"
|
|
268
|
+
],
|
|
269
|
+
"_disabled": [
|
|
270
|
+
"true"
|
|
271
|
+
]
|
|
272
|
+
},
|
|
273
|
+
"defaultVariants": {
|
|
274
|
+
"family": "inherit"
|
|
275
|
+
},
|
|
276
|
+
"functionExamples": [
|
|
277
|
+
"link({ family: 'heading' })",
|
|
278
|
+
"link({ bold: true })",
|
|
279
|
+
"link({ italic: true })",
|
|
280
|
+
"link({ underline: true })",
|
|
281
|
+
"link({ truncate: true })",
|
|
282
|
+
"link({ allcaps: true })",
|
|
283
|
+
"link({ size: '12' })",
|
|
284
|
+
"link({ weight: 'light' })",
|
|
285
|
+
"link({ _disabled: true })",
|
|
286
|
+
"link({ family: 'heading', bold: true, italic: true, underline: true, truncate: true, allcaps: true, size: '12', weight: 'light', _disabled: true })"
|
|
287
|
+
],
|
|
288
|
+
"jsxExamples": [
|
|
289
|
+
"<Link family=\"heading\" />",
|
|
290
|
+
"<Link bold={true} />",
|
|
291
|
+
"<Link italic={true} />",
|
|
292
|
+
"<Link underline={true} />",
|
|
293
|
+
"<Link truncate={true} />",
|
|
294
|
+
"<Link allcaps={true} />",
|
|
295
|
+
"<Link size=\"12\" />",
|
|
296
|
+
"<Link weight=\"light\" />",
|
|
297
|
+
"<Link _disabled={true} />",
|
|
298
|
+
"<Link family=\"heading\" bold={true} italic={true} underline={true} truncate={true} allcaps={true} size=\"12\" weight=\"light\" _disabled={true} />"
|
|
299
|
+
]
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"name": "pre",
|
|
303
|
+
"description": "",
|
|
304
|
+
"variants": {},
|
|
305
|
+
"defaultVariants": {},
|
|
306
|
+
"functionExamples": [
|
|
307
|
+
"pre()"
|
|
308
|
+
],
|
|
309
|
+
"jsxExamples": [
|
|
310
|
+
"<Pre />"
|
|
311
|
+
]
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"name": "radioInput",
|
|
315
|
+
"description": "",
|
|
316
|
+
"variants": {},
|
|
317
|
+
"defaultVariants": {},
|
|
318
|
+
"functionExamples": [
|
|
319
|
+
"radioInput()"
|
|
320
|
+
],
|
|
321
|
+
"jsxExamples": [
|
|
322
|
+
"<RadioInput />"
|
|
323
|
+
]
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"name": "spinner",
|
|
327
|
+
"description": "",
|
|
328
|
+
"variants": {
|
|
329
|
+
"size": [
|
|
330
|
+
"xs",
|
|
331
|
+
"sm",
|
|
332
|
+
"md",
|
|
333
|
+
"lg"
|
|
334
|
+
],
|
|
335
|
+
"inverse": [
|
|
336
|
+
"true"
|
|
337
|
+
]
|
|
338
|
+
},
|
|
339
|
+
"defaultVariants": {
|
|
340
|
+
"size": "md"
|
|
341
|
+
},
|
|
342
|
+
"functionExamples": [
|
|
343
|
+
"spinner({ size: 'xs' })",
|
|
344
|
+
"spinner({ inverse: true })",
|
|
345
|
+
"spinner({ size: 'xs', inverse: true })"
|
|
346
|
+
],
|
|
347
|
+
"jsxExamples": [
|
|
348
|
+
"<Spinner size=\"xs\" />",
|
|
349
|
+
"<Spinner inverse={true} />",
|
|
350
|
+
"<Spinner size=\"xs\" inverse={true} />"
|
|
351
|
+
]
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"name": "tag",
|
|
355
|
+
"description": "",
|
|
356
|
+
"variants": {
|
|
357
|
+
"appearance": [
|
|
358
|
+
"default",
|
|
359
|
+
"bold"
|
|
360
|
+
],
|
|
361
|
+
"hue": [
|
|
362
|
+
"gray",
|
|
363
|
+
"red",
|
|
364
|
+
"orange",
|
|
365
|
+
"yellow",
|
|
366
|
+
"lime",
|
|
367
|
+
"green",
|
|
368
|
+
"teal",
|
|
369
|
+
"blue",
|
|
370
|
+
"indigo",
|
|
371
|
+
"purple",
|
|
372
|
+
"magenta",
|
|
373
|
+
"tan"
|
|
374
|
+
],
|
|
375
|
+
"iconPosition": [
|
|
376
|
+
"left",
|
|
377
|
+
"right"
|
|
378
|
+
],
|
|
379
|
+
"hasIcon": [
|
|
380
|
+
"true",
|
|
381
|
+
"false"
|
|
382
|
+
]
|
|
383
|
+
},
|
|
384
|
+
"defaultVariants": {
|
|
385
|
+
"appearance": "default",
|
|
386
|
+
"hue": "gray",
|
|
387
|
+
"iconPosition": "left",
|
|
388
|
+
"hasIcon": false
|
|
389
|
+
},
|
|
390
|
+
"functionExamples": [
|
|
391
|
+
"tag({ appearance: 'default' })",
|
|
392
|
+
"tag({ hue: 'gray' })",
|
|
393
|
+
"tag({ iconPosition: 'left' })",
|
|
394
|
+
"tag({ hasIcon: true })",
|
|
395
|
+
"tag({ appearance: 'default', hue: 'gray', iconPosition: 'left', hasIcon: true })"
|
|
396
|
+
],
|
|
397
|
+
"jsxExamples": [
|
|
398
|
+
"<Tag appearance=\"default\" />",
|
|
399
|
+
"<Tag hue=\"gray\" />",
|
|
400
|
+
"<Tag iconPosition=\"left\" />",
|
|
401
|
+
"<Tag hasIcon={true} />",
|
|
402
|
+
"<Tag appearance=\"default\" hue=\"gray\" iconPosition=\"left\" hasIcon={true} />"
|
|
403
|
+
]
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"name": "text",
|
|
407
|
+
"description": "",
|
|
408
|
+
"variants": {
|
|
409
|
+
"family": [
|
|
410
|
+
"heading",
|
|
411
|
+
"body",
|
|
412
|
+
"sans",
|
|
413
|
+
"serif",
|
|
414
|
+
"mono",
|
|
415
|
+
"inherit"
|
|
416
|
+
],
|
|
417
|
+
"bold": [
|
|
418
|
+
"true"
|
|
419
|
+
],
|
|
420
|
+
"italic": [
|
|
421
|
+
"true"
|
|
422
|
+
],
|
|
423
|
+
"underline": [
|
|
424
|
+
"true"
|
|
425
|
+
],
|
|
426
|
+
"truncate": [
|
|
427
|
+
"true"
|
|
428
|
+
],
|
|
429
|
+
"allcaps": [
|
|
430
|
+
"true"
|
|
431
|
+
],
|
|
432
|
+
"size": [
|
|
433
|
+
"12",
|
|
434
|
+
"14",
|
|
435
|
+
"16",
|
|
436
|
+
"20",
|
|
437
|
+
"24",
|
|
438
|
+
"32",
|
|
439
|
+
"40",
|
|
440
|
+
"48",
|
|
441
|
+
"64",
|
|
442
|
+
"72",
|
|
443
|
+
"80",
|
|
444
|
+
"96"
|
|
445
|
+
],
|
|
446
|
+
"weight": [
|
|
447
|
+
"light",
|
|
448
|
+
"normal",
|
|
449
|
+
"medium",
|
|
450
|
+
"bold",
|
|
451
|
+
"black"
|
|
452
|
+
]
|
|
453
|
+
},
|
|
454
|
+
"defaultVariants": {
|
|
455
|
+
"family": "inherit"
|
|
456
|
+
},
|
|
457
|
+
"functionExamples": [
|
|
458
|
+
"text({ family: 'heading' })",
|
|
459
|
+
"text({ bold: true })",
|
|
460
|
+
"text({ italic: true })",
|
|
461
|
+
"text({ underline: true })",
|
|
462
|
+
"text({ truncate: true })",
|
|
463
|
+
"text({ allcaps: true })",
|
|
464
|
+
"text({ size: '12' })",
|
|
465
|
+
"text({ weight: 'light' })",
|
|
466
|
+
"text({ family: 'heading', bold: true, italic: true, underline: true, truncate: true, allcaps: true, size: '12', weight: 'light' })"
|
|
467
|
+
],
|
|
468
|
+
"jsxExamples": [
|
|
469
|
+
"<Text family=\"heading\" />",
|
|
470
|
+
"<Text bold={true} />",
|
|
471
|
+
"<Text italic={true} />",
|
|
472
|
+
"<Text underline={true} />",
|
|
473
|
+
"<Text truncate={true} />",
|
|
474
|
+
"<Text allcaps={true} />",
|
|
475
|
+
"<Text size=\"12\" />",
|
|
476
|
+
"<Text weight=\"light\" />",
|
|
477
|
+
"<Text family=\"heading\" bold={true} italic={true} underline={true} truncate={true} allcaps={true} size=\"12\" weight=\"light\" />"
|
|
478
|
+
]
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"name": "textarea",
|
|
482
|
+
"description": "",
|
|
483
|
+
"variants": {
|
|
484
|
+
"size": [
|
|
485
|
+
"md",
|
|
486
|
+
"sm",
|
|
487
|
+
"lg",
|
|
488
|
+
"xl"
|
|
489
|
+
],
|
|
490
|
+
"autoSize": [
|
|
491
|
+
"false",
|
|
492
|
+
"true"
|
|
493
|
+
]
|
|
494
|
+
},
|
|
495
|
+
"defaultVariants": {
|
|
496
|
+
"size": "md"
|
|
497
|
+
},
|
|
498
|
+
"functionExamples": [
|
|
499
|
+
"textarea({ size: 'md' })",
|
|
500
|
+
"textarea({ autoSize: false })",
|
|
501
|
+
"textarea({ size: 'md', autoSize: false })"
|
|
502
|
+
],
|
|
503
|
+
"jsxExamples": [
|
|
504
|
+
"<Textarea size=\"md\" />",
|
|
505
|
+
"<Textarea autoSize={false} />",
|
|
506
|
+
"<Textarea size=\"md\" autoSize={false} />"
|
|
507
|
+
]
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"name": "textinput",
|
|
511
|
+
"description": "",
|
|
512
|
+
"variants": {
|
|
513
|
+
"size": [
|
|
514
|
+
"md",
|
|
515
|
+
"sm",
|
|
516
|
+
"lg",
|
|
517
|
+
"xl"
|
|
518
|
+
],
|
|
519
|
+
"autoSize": [
|
|
520
|
+
"false",
|
|
521
|
+
"true"
|
|
522
|
+
]
|
|
523
|
+
},
|
|
524
|
+
"defaultVariants": {
|
|
525
|
+
"size": "md"
|
|
526
|
+
},
|
|
527
|
+
"functionExamples": [
|
|
528
|
+
"textinput({ size: 'md' })",
|
|
529
|
+
"textinput({ autoSize: false })",
|
|
530
|
+
"textinput({ size: 'md', autoSize: false })"
|
|
531
|
+
],
|
|
532
|
+
"jsxExamples": [
|
|
533
|
+
"<Textinput size=\"md\" />",
|
|
534
|
+
"<Textinput autoSize={false} />",
|
|
535
|
+
"<Textinput size=\"md\" autoSize={false} />"
|
|
536
|
+
]
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"name": "themeSwitcher",
|
|
540
|
+
"description": "",
|
|
541
|
+
"variants": {},
|
|
542
|
+
"defaultVariants": {},
|
|
543
|
+
"functionExamples": [
|
|
544
|
+
"themeSwitcher()"
|
|
545
|
+
],
|
|
546
|
+
"jsxExamples": [
|
|
547
|
+
"<ThemeSwitcher />"
|
|
548
|
+
]
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"name": "toggleInput",
|
|
552
|
+
"description": "",
|
|
553
|
+
"variants": {},
|
|
554
|
+
"defaultVariants": {},
|
|
555
|
+
"functionExamples": [
|
|
556
|
+
"toggleInput()"
|
|
557
|
+
],
|
|
558
|
+
"jsxExamples": [
|
|
559
|
+
"<ToggleInput />"
|
|
560
|
+
]
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
"name": "badge",
|
|
564
|
+
"variants": {
|
|
565
|
+
"size": [
|
|
566
|
+
"sm",
|
|
567
|
+
"md",
|
|
568
|
+
"lg"
|
|
569
|
+
],
|
|
570
|
+
"standalone": [
|
|
571
|
+
"true",
|
|
572
|
+
"false"
|
|
573
|
+
],
|
|
574
|
+
"dot": [
|
|
575
|
+
"true",
|
|
576
|
+
"false"
|
|
577
|
+
],
|
|
578
|
+
"variant": [
|
|
579
|
+
"neutral",
|
|
580
|
+
"subtle",
|
|
581
|
+
"inverted",
|
|
582
|
+
"subtle-inverted",
|
|
583
|
+
"success",
|
|
584
|
+
"danger",
|
|
585
|
+
"warning",
|
|
586
|
+
"info"
|
|
587
|
+
]
|
|
588
|
+
},
|
|
589
|
+
"defaultVariants": {
|
|
590
|
+
"size": "md",
|
|
591
|
+
"variant": "danger"
|
|
592
|
+
},
|
|
593
|
+
"functionExamples": [
|
|
594
|
+
"badge({ size: 'sm' })",
|
|
595
|
+
"badge({ standalone: true })",
|
|
596
|
+
"badge({ dot: true })",
|
|
597
|
+
"badge({ variant: 'neutral' })",
|
|
598
|
+
"badge({ size: 'sm', standalone: true, dot: true, variant: 'neutral' })"
|
|
599
|
+
],
|
|
600
|
+
"jsxExamples": [
|
|
601
|
+
"<Badge size=\"sm\" />",
|
|
602
|
+
"<Badge standalone={true} />",
|
|
603
|
+
"<Badge dot={true} />",
|
|
604
|
+
"<Badge variant=\"neutral\" />",
|
|
605
|
+
"<Badge size=\"sm\" standalone={true} dot={true} variant=\"neutral\" />"
|
|
606
|
+
]
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"name": "button",
|
|
610
|
+
"variants": {
|
|
611
|
+
"variant": [
|
|
612
|
+
"default",
|
|
613
|
+
"primary",
|
|
614
|
+
"subtle",
|
|
615
|
+
"hollow"
|
|
616
|
+
],
|
|
617
|
+
"size": [
|
|
618
|
+
"md",
|
|
619
|
+
"xl",
|
|
620
|
+
"lg",
|
|
621
|
+
"sm"
|
|
622
|
+
],
|
|
623
|
+
"iconBefore": [
|
|
624
|
+
"true"
|
|
625
|
+
],
|
|
626
|
+
"iconAfter": [
|
|
627
|
+
"true"
|
|
628
|
+
]
|
|
629
|
+
},
|
|
630
|
+
"defaultVariants": {
|
|
631
|
+
"variant": "default",
|
|
632
|
+
"size": "md"
|
|
633
|
+
},
|
|
634
|
+
"functionExamples": [
|
|
635
|
+
"button({ variant: 'default' })",
|
|
636
|
+
"button({ size: 'md' })",
|
|
637
|
+
"button({ iconBefore: true })",
|
|
638
|
+
"button({ iconAfter: true })",
|
|
639
|
+
"button({ variant: 'default', size: 'md', iconBefore: true, iconAfter: true })"
|
|
640
|
+
],
|
|
641
|
+
"jsxExamples": [
|
|
642
|
+
"<Button variant=\"default\" />",
|
|
643
|
+
"<Button size=\"md\" />",
|
|
644
|
+
"<Button iconBefore={true} />",
|
|
645
|
+
"<Button iconAfter={true} />",
|
|
646
|
+
"<Button variant=\"default\" size=\"md\" iconBefore={true} iconAfter={true} />"
|
|
647
|
+
]
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"name": "iconButton",
|
|
651
|
+
"variants": {
|
|
652
|
+
"variant": [
|
|
653
|
+
"default",
|
|
654
|
+
"primary",
|
|
655
|
+
"subtle",
|
|
656
|
+
"hollow"
|
|
657
|
+
],
|
|
658
|
+
"size": [
|
|
659
|
+
"md",
|
|
660
|
+
"sm",
|
|
661
|
+
"lg",
|
|
662
|
+
"xl"
|
|
663
|
+
]
|
|
664
|
+
},
|
|
665
|
+
"defaultVariants": {
|
|
666
|
+
"variant": "default",
|
|
667
|
+
"size": "md"
|
|
668
|
+
},
|
|
669
|
+
"functionExamples": [
|
|
670
|
+
"iconButton({ variant: 'default' })",
|
|
671
|
+
"iconButton({ size: 'md' })",
|
|
672
|
+
"iconButton({ variant: 'default', size: 'md' })"
|
|
673
|
+
],
|
|
674
|
+
"jsxExamples": [
|
|
675
|
+
"<IconButton variant=\"default\" />",
|
|
676
|
+
"<IconButton size=\"md\" />",
|
|
677
|
+
"<IconButton variant=\"default\" size=\"md\" />"
|
|
678
|
+
]
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"name": "checkbox",
|
|
682
|
+
"variants": {},
|
|
683
|
+
"defaultVariants": {},
|
|
684
|
+
"functionExamples": [
|
|
685
|
+
"checkbox()"
|
|
686
|
+
],
|
|
687
|
+
"jsxExamples": [
|
|
688
|
+
"<Checkbox />"
|
|
689
|
+
]
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
"name": "radio",
|
|
693
|
+
"variants": {},
|
|
694
|
+
"defaultVariants": {},
|
|
695
|
+
"functionExamples": [
|
|
696
|
+
"radio()"
|
|
697
|
+
],
|
|
698
|
+
"jsxExamples": [
|
|
699
|
+
"<Radio />"
|
|
700
|
+
]
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
"name": "tooltip",
|
|
704
|
+
"variants": {
|
|
705
|
+
"position": [
|
|
706
|
+
"top",
|
|
707
|
+
"bottom",
|
|
708
|
+
"left",
|
|
709
|
+
"right",
|
|
710
|
+
"top-start",
|
|
711
|
+
"bottom-start",
|
|
712
|
+
"left-start",
|
|
713
|
+
"right-start",
|
|
714
|
+
"top-end",
|
|
715
|
+
"bottom-end",
|
|
716
|
+
"left-end",
|
|
717
|
+
"right-end"
|
|
718
|
+
],
|
|
719
|
+
"caret": [
|
|
720
|
+
"true",
|
|
721
|
+
"false"
|
|
722
|
+
],
|
|
723
|
+
"size": [
|
|
724
|
+
"sm",
|
|
725
|
+
"md",
|
|
726
|
+
"lg"
|
|
727
|
+
]
|
|
728
|
+
},
|
|
729
|
+
"defaultVariants": {
|
|
730
|
+
"position": "bottom",
|
|
731
|
+
"caret": true,
|
|
732
|
+
"size": "md"
|
|
733
|
+
},
|
|
734
|
+
"functionExamples": [
|
|
735
|
+
"tooltip({ position: 'top' })",
|
|
736
|
+
"tooltip({ caret: true })",
|
|
737
|
+
"tooltip({ size: 'sm' })",
|
|
738
|
+
"tooltip({ position: 'top', caret: true, size: 'sm' })"
|
|
739
|
+
],
|
|
740
|
+
"jsxExamples": [
|
|
741
|
+
"<Tooltip position=\"top\" />",
|
|
742
|
+
"<Tooltip caret={true} />",
|
|
743
|
+
"<Tooltip size=\"sm\" />",
|
|
744
|
+
"<Tooltip position=\"top\" caret={true} size=\"sm\" />"
|
|
745
|
+
]
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
"name": "menu",
|
|
749
|
+
"variants": {
|
|
750
|
+
"packing": [
|
|
751
|
+
"default",
|
|
752
|
+
"compact",
|
|
753
|
+
"comfortable"
|
|
754
|
+
],
|
|
755
|
+
"indicatorPosition": [
|
|
756
|
+
"left",
|
|
757
|
+
"right"
|
|
758
|
+
]
|
|
759
|
+
},
|
|
760
|
+
"defaultVariants": {
|
|
761
|
+
"packing": "default",
|
|
762
|
+
"indicatorPosition": "left"
|
|
763
|
+
},
|
|
764
|
+
"functionExamples": [
|
|
765
|
+
"menu({ packing: 'default' })",
|
|
766
|
+
"menu({ indicatorPosition: 'left' })",
|
|
767
|
+
"menu({ packing: 'default', indicatorPosition: 'left' })"
|
|
768
|
+
],
|
|
769
|
+
"jsxExamples": [
|
|
770
|
+
"<Menu packing=\"default\" />",
|
|
771
|
+
"<Menu indicatorPosition=\"left\" />",
|
|
772
|
+
"<Menu packing=\"default\" indicatorPosition=\"left\" />"
|
|
773
|
+
]
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
"name": "select",
|
|
777
|
+
"variants": {
|
|
778
|
+
"size": [
|
|
779
|
+
"md",
|
|
780
|
+
"xl",
|
|
781
|
+
"lg",
|
|
782
|
+
"sm"
|
|
783
|
+
]
|
|
784
|
+
},
|
|
785
|
+
"defaultVariants": {
|
|
786
|
+
"size": "md"
|
|
787
|
+
},
|
|
788
|
+
"functionExamples": [
|
|
789
|
+
"select({ size: 'md' })"
|
|
790
|
+
],
|
|
791
|
+
"jsxExamples": [
|
|
792
|
+
"<Select size=\"md\" />"
|
|
793
|
+
]
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
"name": "toggle",
|
|
797
|
+
"variants": {},
|
|
798
|
+
"defaultVariants": {},
|
|
799
|
+
"functionExamples": [
|
|
800
|
+
"toggle()"
|
|
801
|
+
],
|
|
802
|
+
"jsxExamples": [
|
|
803
|
+
"<Toggle />"
|
|
804
|
+
]
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
"name": "chip",
|
|
808
|
+
"variants": {
|
|
809
|
+
"size": [
|
|
810
|
+
"md",
|
|
811
|
+
"sm",
|
|
812
|
+
"lg"
|
|
813
|
+
],
|
|
814
|
+
"before": [
|
|
815
|
+
"true"
|
|
816
|
+
],
|
|
817
|
+
"after": [
|
|
818
|
+
"true"
|
|
819
|
+
]
|
|
820
|
+
},
|
|
821
|
+
"defaultVariants": {
|
|
822
|
+
"size": "md"
|
|
823
|
+
},
|
|
824
|
+
"functionExamples": [
|
|
825
|
+
"chip({ size: 'md' })",
|
|
826
|
+
"chip({ before: true })",
|
|
827
|
+
"chip({ after: true })",
|
|
828
|
+
"chip({ size: 'md', before: true, after: true })"
|
|
829
|
+
],
|
|
830
|
+
"jsxExamples": [
|
|
831
|
+
"<Chip size=\"md\" />",
|
|
832
|
+
"<Chip before={true} />",
|
|
833
|
+
"<Chip after={true} />",
|
|
834
|
+
"<Chip size=\"md\" before={true} after={true} />"
|
|
835
|
+
]
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
"name": "avatar",
|
|
839
|
+
"variants": {
|
|
840
|
+
"size": [
|
|
841
|
+
"xs",
|
|
842
|
+
"sm",
|
|
843
|
+
"md",
|
|
844
|
+
"lg",
|
|
845
|
+
"xl",
|
|
846
|
+
"2xl"
|
|
847
|
+
],
|
|
848
|
+
"shape": [
|
|
849
|
+
"circle",
|
|
850
|
+
"square",
|
|
851
|
+
"hexagon"
|
|
852
|
+
]
|
|
853
|
+
},
|
|
854
|
+
"defaultVariants": {
|
|
855
|
+
"size": "md",
|
|
856
|
+
"shape": "circle"
|
|
857
|
+
},
|
|
858
|
+
"functionExamples": [
|
|
859
|
+
"avatar({ size: 'xs' })",
|
|
860
|
+
"avatar({ shape: 'circle' })",
|
|
861
|
+
"avatar({ size: 'xs', shape: 'circle' })"
|
|
862
|
+
],
|
|
863
|
+
"jsxExamples": [
|
|
864
|
+
"<Avatar size=\"xs\" />",
|
|
865
|
+
"<Avatar shape=\"circle\" />",
|
|
866
|
+
"<Avatar size=\"xs\" shape=\"circle\" />"
|
|
867
|
+
]
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"name": "modal",
|
|
871
|
+
"variants": {
|
|
872
|
+
"size": [
|
|
873
|
+
"sm",
|
|
874
|
+
"md",
|
|
875
|
+
"lg"
|
|
876
|
+
]
|
|
877
|
+
},
|
|
878
|
+
"defaultVariants": {
|
|
879
|
+
"size": "md"
|
|
880
|
+
},
|
|
881
|
+
"functionExamples": [
|
|
882
|
+
"modal({ size: 'sm' })"
|
|
883
|
+
],
|
|
884
|
+
"jsxExamples": [
|
|
885
|
+
"<Modal size=\"sm\" />"
|
|
886
|
+
]
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
"name": "formField",
|
|
890
|
+
"variants": {
|
|
891
|
+
"layout": [
|
|
892
|
+
"default",
|
|
893
|
+
"inline"
|
|
894
|
+
]
|
|
895
|
+
},
|
|
896
|
+
"defaultVariants": {
|
|
897
|
+
"layout": "default"
|
|
898
|
+
},
|
|
899
|
+
"functionExamples": [
|
|
900
|
+
"formField({ layout: 'default' })"
|
|
901
|
+
],
|
|
902
|
+
"jsxExamples": [
|
|
903
|
+
"<FormField layout=\"default\" />"
|
|
904
|
+
]
|
|
905
|
+
}
|
|
906
|
+
]
|
|
907
|
+
}
|