@omni-design/components 0.11.0 → 0.13.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.
- package/.claude/commands/ScanComponents.md +1 -1
- package/.claude/commands/ShareComponent.md +1 -1
- package/CLAUDE.md +5 -3
- package/dist/OmniDesignProvider.esm.js +1 -1
- package/dist/OmniDesignProvider.esm.js.map +1 -1
- package/dist/OmniDesignProvider.js +1 -1
- package/dist/OmniDesignProvider.js.map +1 -1
- package/dist/index.esm.js +8 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/types/components/BackgroundPicker.d.ts +1 -1
- package/dist/types/components/BrandIcon/BrandIcon.d.ts +20 -0
- package/dist/types/components/BrandIcon/index.d.ts +1 -0
- package/dist/types/components/Button/Button.d.ts +3 -1
- package/dist/types/components/ButtonGroup/ButtonGroup.d.ts +3 -2
- package/dist/types/components/Charts/tokens.d.ts +1 -1
- package/dist/types/components/Chip/Chip.d.ts +1 -1
- package/dist/types/components/Footer/Footer.d.ts +3 -1
- package/dist/types/components/Foundations/FoundationTopic.d.ts +4 -0
- package/dist/types/components/Foundations/HowToSlot.d.ts +16 -0
- package/dist/types/components/Foundations/TokenRoles.d.ts +19 -0
- package/dist/types/components/Foundations/TypographySummary.d.ts +2 -0
- package/dist/types/components/IconBadge/IconBadge.d.ts +1 -1
- package/dist/types/components/Loader/Loader.d.ts +66 -0
- package/dist/types/components/Loader/index.d.ts +1 -0
- package/dist/types/components/MiniSwatch/MiniSwatch.d.ts +7 -0
- package/dist/types/components/MiniSwatch/index.d.ts +1 -0
- package/dist/types/components/ShowcaseHeader.d.ts +5 -0
- package/dist/types/components/Swatch/Swatch.d.ts +14 -0
- package/dist/types/components/Swatch/index.d.ts +1 -0
- package/dist/types/components/Switch/Switch.d.ts +24 -8
- package/dist/types/components/Switch/index.d.ts +1 -1
- package/dist/types/components/TextField/TextField.d.ts +1 -1
- package/dist/types/components/Typography/Typography.d.ts +54 -1
- package/dist/types/components/Typography/index.d.ts +1 -1
- package/dist/types/components/_states.d.ts +1 -1
- package/dist/types/components/a11yPanel.d.ts +37 -0
- package/dist/types/components/index.d.ts +7 -1
- package/dist/types/docs/DocPanels.d.ts +25 -0
- package/dist/types/docs/components.d.ts +220 -0
- package/dist/types/docs/componentsData.d.ts +587 -0
- package/dist/types/docs/componentsForms.d.ts +597 -0
- package/dist/types/docs/componentsNav.d.ts +420 -0
- package/dist/types/docs/componentsOverlays.d.ts +379 -0
- package/dist/types/docs/componentsRest.d.ts +158 -0
- package/dist/types/docs/componentsSurfaces.d.ts +429 -0
- package/dist/types/docs/docsLink.d.ts +32 -0
- package/dist/types/docs/examples.d.ts +48 -0
- package/dist/types/docs/figmaHowTo.d.ts +28 -0
- package/dist/types/docs/figmaLinks.d.ts +58 -0
- package/dist/types/docs/foundations.d.ts +40 -0
- package/dist/types/docs/index.d.ts +5 -0
- package/docs/components.md +71 -55
- package/package.json +4 -2
- package/public/styles/Dark-Mode.css +12062 -13009
- package/public/styles/Light-Mode.css +11246 -12370
- package/public/styles/base.css +387 -182
- package/public/styles/core.css +569 -133
- package/public/styles/foundation.css +142 -53
- package/public/styles/styles.css +5 -5
- package/public/styles/theme.json +2 -2
- package/public/styles/typography-tokens.css +873 -96
- package/dist/types/theme/useThemeMode.d.ts +0 -4
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
export namespace ICON_DOC {
|
|
2
|
+
let name: string;
|
|
3
|
+
let summary: string;
|
|
4
|
+
let insteadUse: {
|
|
5
|
+
when: string;
|
|
6
|
+
use: string;
|
|
7
|
+
}[];
|
|
8
|
+
let props: ({
|
|
9
|
+
name: string;
|
|
10
|
+
type: string;
|
|
11
|
+
default: string;
|
|
12
|
+
values: string[];
|
|
13
|
+
note: string;
|
|
14
|
+
} | {
|
|
15
|
+
name: string;
|
|
16
|
+
type: string;
|
|
17
|
+
values: string[];
|
|
18
|
+
default: string;
|
|
19
|
+
note?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
name: string;
|
|
22
|
+
type: string;
|
|
23
|
+
default: string;
|
|
24
|
+
note: string;
|
|
25
|
+
values?: undefined;
|
|
26
|
+
} | {
|
|
27
|
+
name: string;
|
|
28
|
+
type: string;
|
|
29
|
+
default: string;
|
|
30
|
+
values?: undefined;
|
|
31
|
+
note?: undefined;
|
|
32
|
+
})[];
|
|
33
|
+
let states: {
|
|
34
|
+
state: string;
|
|
35
|
+
setBy: string;
|
|
36
|
+
note: string;
|
|
37
|
+
}[];
|
|
38
|
+
let theming: {
|
|
39
|
+
collection: string;
|
|
40
|
+
inCode: string;
|
|
41
|
+
inFigma: string;
|
|
42
|
+
}[];
|
|
43
|
+
let themingNotes: string[];
|
|
44
|
+
let tokens: {
|
|
45
|
+
name: string;
|
|
46
|
+
sets: string;
|
|
47
|
+
variesWith: string;
|
|
48
|
+
figma: string;
|
|
49
|
+
}[];
|
|
50
|
+
let composition: string[];
|
|
51
|
+
let accessibility: string[];
|
|
52
|
+
let gotchas: string[];
|
|
53
|
+
}
|
|
54
|
+
export namespace FAB_DOC {
|
|
55
|
+
let name_1: string;
|
|
56
|
+
export { name_1 as name };
|
|
57
|
+
let summary_1: string;
|
|
58
|
+
export { summary_1 as summary };
|
|
59
|
+
let insteadUse_1: {
|
|
60
|
+
when: string;
|
|
61
|
+
use: string;
|
|
62
|
+
}[];
|
|
63
|
+
export { insteadUse_1 as insteadUse };
|
|
64
|
+
let props_1: ({
|
|
65
|
+
name: string;
|
|
66
|
+
type: string;
|
|
67
|
+
default: string;
|
|
68
|
+
note?: undefined;
|
|
69
|
+
values?: undefined;
|
|
70
|
+
} | {
|
|
71
|
+
name: string;
|
|
72
|
+
type: string;
|
|
73
|
+
default: string;
|
|
74
|
+
note: string;
|
|
75
|
+
values?: undefined;
|
|
76
|
+
} | {
|
|
77
|
+
name: string;
|
|
78
|
+
type: string;
|
|
79
|
+
values: string[];
|
|
80
|
+
default: string;
|
|
81
|
+
note?: undefined;
|
|
82
|
+
} | {
|
|
83
|
+
name: string;
|
|
84
|
+
type: string;
|
|
85
|
+
values: string[];
|
|
86
|
+
default: string;
|
|
87
|
+
note: string;
|
|
88
|
+
})[];
|
|
89
|
+
export { props_1 as props };
|
|
90
|
+
let states_1: ({
|
|
91
|
+
state: string;
|
|
92
|
+
setBy: string;
|
|
93
|
+
note: string;
|
|
94
|
+
} | {
|
|
95
|
+
state: string;
|
|
96
|
+
setBy: string;
|
|
97
|
+
note?: undefined;
|
|
98
|
+
})[];
|
|
99
|
+
export { states_1 as states };
|
|
100
|
+
let theming_1: {
|
|
101
|
+
collection: string;
|
|
102
|
+
inCode: string;
|
|
103
|
+
inFigma: string;
|
|
104
|
+
}[];
|
|
105
|
+
export { theming_1 as theming };
|
|
106
|
+
let themingNotes_1: string[];
|
|
107
|
+
export { themingNotes_1 as themingNotes };
|
|
108
|
+
let tokens_1: {
|
|
109
|
+
name: string;
|
|
110
|
+
sets: string;
|
|
111
|
+
variesWith: string;
|
|
112
|
+
figma: string;
|
|
113
|
+
}[];
|
|
114
|
+
export { tokens_1 as tokens };
|
|
115
|
+
let composition_1: string[];
|
|
116
|
+
export { composition_1 as composition };
|
|
117
|
+
let accessibility_1: string[];
|
|
118
|
+
export { accessibility_1 as accessibility };
|
|
119
|
+
let gotchas_1: string[];
|
|
120
|
+
export { gotchas_1 as gotchas };
|
|
121
|
+
}
|
|
122
|
+
export namespace SNACKBAR_DOC {
|
|
123
|
+
let name_2: string;
|
|
124
|
+
export { name_2 as name };
|
|
125
|
+
let summary_2: string;
|
|
126
|
+
export { summary_2 as summary };
|
|
127
|
+
let insteadUse_2: {
|
|
128
|
+
when: string;
|
|
129
|
+
use: string;
|
|
130
|
+
}[];
|
|
131
|
+
export { insteadUse_2 as insteadUse };
|
|
132
|
+
let props_2: ({
|
|
133
|
+
name: string;
|
|
134
|
+
type: string;
|
|
135
|
+
default: string;
|
|
136
|
+
values?: undefined;
|
|
137
|
+
note?: undefined;
|
|
138
|
+
} | {
|
|
139
|
+
name: string;
|
|
140
|
+
type: string;
|
|
141
|
+
values: string[];
|
|
142
|
+
default: string;
|
|
143
|
+
note?: undefined;
|
|
144
|
+
} | {
|
|
145
|
+
name: string;
|
|
146
|
+
type: string;
|
|
147
|
+
default: string;
|
|
148
|
+
note: string;
|
|
149
|
+
values?: undefined;
|
|
150
|
+
})[];
|
|
151
|
+
export { props_2 as props };
|
|
152
|
+
let states_2: ({
|
|
153
|
+
state: string;
|
|
154
|
+
setBy: string;
|
|
155
|
+
note?: undefined;
|
|
156
|
+
} | {
|
|
157
|
+
state: string;
|
|
158
|
+
setBy: string;
|
|
159
|
+
note: string;
|
|
160
|
+
})[];
|
|
161
|
+
export { states_2 as states };
|
|
162
|
+
let theming_2: {
|
|
163
|
+
collection: string;
|
|
164
|
+
inCode: string;
|
|
165
|
+
inFigma: string;
|
|
166
|
+
}[];
|
|
167
|
+
export { theming_2 as theming };
|
|
168
|
+
let tokens_2: {
|
|
169
|
+
name: any;
|
|
170
|
+
sets: any;
|
|
171
|
+
variesWith: string;
|
|
172
|
+
figma: string;
|
|
173
|
+
}[];
|
|
174
|
+
export { tokens_2 as tokens };
|
|
175
|
+
let composition_2: string[];
|
|
176
|
+
export { composition_2 as composition };
|
|
177
|
+
let accessibility_2: string[];
|
|
178
|
+
export { accessibility_2 as accessibility };
|
|
179
|
+
let gotchas_2: string[];
|
|
180
|
+
export { gotchas_2 as gotchas };
|
|
181
|
+
}
|
|
182
|
+
export namespace ACCORDION_DOC {
|
|
183
|
+
let name_3: string;
|
|
184
|
+
export { name_3 as name };
|
|
185
|
+
let summary_3: string;
|
|
186
|
+
export { summary_3 as summary };
|
|
187
|
+
let insteadUse_3: {
|
|
188
|
+
when: string;
|
|
189
|
+
use: string;
|
|
190
|
+
}[];
|
|
191
|
+
export { insteadUse_3 as insteadUse };
|
|
192
|
+
let props_3: ({
|
|
193
|
+
name: string;
|
|
194
|
+
type: string;
|
|
195
|
+
values: string[];
|
|
196
|
+
default: string;
|
|
197
|
+
note?: undefined;
|
|
198
|
+
} | {
|
|
199
|
+
name: string;
|
|
200
|
+
type: string;
|
|
201
|
+
default: string;
|
|
202
|
+
values?: undefined;
|
|
203
|
+
note?: undefined;
|
|
204
|
+
} | {
|
|
205
|
+
name: string;
|
|
206
|
+
type: string;
|
|
207
|
+
default: string;
|
|
208
|
+
note: string;
|
|
209
|
+
values?: undefined;
|
|
210
|
+
})[];
|
|
211
|
+
export { props_3 as props };
|
|
212
|
+
let states_3: ({
|
|
213
|
+
state: string;
|
|
214
|
+
setBy: string;
|
|
215
|
+
note?: undefined;
|
|
216
|
+
} | {
|
|
217
|
+
state: string;
|
|
218
|
+
setBy: string;
|
|
219
|
+
note: string;
|
|
220
|
+
})[];
|
|
221
|
+
export { states_3 as states };
|
|
222
|
+
let theming_3: {
|
|
223
|
+
collection: string;
|
|
224
|
+
inCode: string;
|
|
225
|
+
inFigma: string;
|
|
226
|
+
}[];
|
|
227
|
+
export { theming_3 as theming };
|
|
228
|
+
let themingNotes_2: string[];
|
|
229
|
+
export { themingNotes_2 as themingNotes };
|
|
230
|
+
let tokens_3: {
|
|
231
|
+
name: any;
|
|
232
|
+
sets: any;
|
|
233
|
+
variesWith: string;
|
|
234
|
+
figma: string;
|
|
235
|
+
}[];
|
|
236
|
+
export { tokens_3 as tokens };
|
|
237
|
+
let composition_3: string[];
|
|
238
|
+
export { composition_3 as composition };
|
|
239
|
+
let accessibility_3: string[];
|
|
240
|
+
export { accessibility_3 as accessibility };
|
|
241
|
+
let gotchas_3: string[];
|
|
242
|
+
export { gotchas_3 as gotchas };
|
|
243
|
+
}
|
|
244
|
+
export namespace BRANDICON_DOC {
|
|
245
|
+
let name_4: string;
|
|
246
|
+
export { name_4 as name };
|
|
247
|
+
let summary_4: string;
|
|
248
|
+
export { summary_4 as summary };
|
|
249
|
+
let insteadUse_4: {
|
|
250
|
+
when: string;
|
|
251
|
+
use: string;
|
|
252
|
+
}[];
|
|
253
|
+
export { insteadUse_4 as insteadUse };
|
|
254
|
+
let props_4: {
|
|
255
|
+
name: string;
|
|
256
|
+
type: string;
|
|
257
|
+
default: string;
|
|
258
|
+
note: string;
|
|
259
|
+
}[];
|
|
260
|
+
export { props_4 as props };
|
|
261
|
+
let states_4: {
|
|
262
|
+
state: string;
|
|
263
|
+
setBy: string;
|
|
264
|
+
note: string;
|
|
265
|
+
}[];
|
|
266
|
+
export { states_4 as states };
|
|
267
|
+
let theming_4: {
|
|
268
|
+
collection: string;
|
|
269
|
+
inCode: string;
|
|
270
|
+
inFigma: string;
|
|
271
|
+
}[];
|
|
272
|
+
export { theming_4 as theming };
|
|
273
|
+
let themingNotes_3: string[];
|
|
274
|
+
export { themingNotes_3 as themingNotes };
|
|
275
|
+
let tokens_4: {
|
|
276
|
+
name: string;
|
|
277
|
+
sets: string;
|
|
278
|
+
variesWith: string;
|
|
279
|
+
figma: string;
|
|
280
|
+
}[];
|
|
281
|
+
export { tokens_4 as tokens };
|
|
282
|
+
let composition_4: string[];
|
|
283
|
+
export { composition_4 as composition };
|
|
284
|
+
let accessibility_4: string[];
|
|
285
|
+
export { accessibility_4 as accessibility };
|
|
286
|
+
let gotchas_4: string[];
|
|
287
|
+
export { gotchas_4 as gotchas };
|
|
288
|
+
export let changes: any[];
|
|
289
|
+
}
|
|
290
|
+
export const SURFACE_DOCS: ({
|
|
291
|
+
name: string;
|
|
292
|
+
summary: string;
|
|
293
|
+
insteadUse: {
|
|
294
|
+
when: string;
|
|
295
|
+
use: string;
|
|
296
|
+
}[];
|
|
297
|
+
props: ({
|
|
298
|
+
name: string;
|
|
299
|
+
type: string;
|
|
300
|
+
default: string;
|
|
301
|
+
note?: undefined;
|
|
302
|
+
values?: undefined;
|
|
303
|
+
} | {
|
|
304
|
+
name: string;
|
|
305
|
+
type: string;
|
|
306
|
+
default: string;
|
|
307
|
+
note: string;
|
|
308
|
+
values?: undefined;
|
|
309
|
+
} | {
|
|
310
|
+
name: string;
|
|
311
|
+
type: string;
|
|
312
|
+
values: string[];
|
|
313
|
+
default: string;
|
|
314
|
+
note?: undefined;
|
|
315
|
+
} | {
|
|
316
|
+
name: string;
|
|
317
|
+
type: string;
|
|
318
|
+
values: string[];
|
|
319
|
+
default: string;
|
|
320
|
+
note: string;
|
|
321
|
+
})[];
|
|
322
|
+
states: ({
|
|
323
|
+
state: string;
|
|
324
|
+
setBy: string;
|
|
325
|
+
note: string;
|
|
326
|
+
} | {
|
|
327
|
+
state: string;
|
|
328
|
+
setBy: string;
|
|
329
|
+
note?: undefined;
|
|
330
|
+
})[];
|
|
331
|
+
theming: {
|
|
332
|
+
collection: string;
|
|
333
|
+
inCode: string;
|
|
334
|
+
inFigma: string;
|
|
335
|
+
}[];
|
|
336
|
+
themingNotes: string[];
|
|
337
|
+
tokens: {
|
|
338
|
+
name: string;
|
|
339
|
+
sets: string;
|
|
340
|
+
variesWith: string;
|
|
341
|
+
figma: string;
|
|
342
|
+
}[];
|
|
343
|
+
composition: string[];
|
|
344
|
+
accessibility: string[];
|
|
345
|
+
gotchas: string[];
|
|
346
|
+
} | {
|
|
347
|
+
name: string;
|
|
348
|
+
summary: string;
|
|
349
|
+
insteadUse: {
|
|
350
|
+
when: string;
|
|
351
|
+
use: string;
|
|
352
|
+
}[];
|
|
353
|
+
props: ({
|
|
354
|
+
name: string;
|
|
355
|
+
type: string;
|
|
356
|
+
default: string;
|
|
357
|
+
values?: undefined;
|
|
358
|
+
note?: undefined;
|
|
359
|
+
} | {
|
|
360
|
+
name: string;
|
|
361
|
+
type: string;
|
|
362
|
+
values: string[];
|
|
363
|
+
default: string;
|
|
364
|
+
note?: undefined;
|
|
365
|
+
} | {
|
|
366
|
+
name: string;
|
|
367
|
+
type: string;
|
|
368
|
+
default: string;
|
|
369
|
+
note: string;
|
|
370
|
+
values?: undefined;
|
|
371
|
+
})[];
|
|
372
|
+
states: ({
|
|
373
|
+
state: string;
|
|
374
|
+
setBy: string;
|
|
375
|
+
note?: undefined;
|
|
376
|
+
} | {
|
|
377
|
+
state: string;
|
|
378
|
+
setBy: string;
|
|
379
|
+
note: string;
|
|
380
|
+
})[];
|
|
381
|
+
theming: {
|
|
382
|
+
collection: string;
|
|
383
|
+
inCode: string;
|
|
384
|
+
inFigma: string;
|
|
385
|
+
}[];
|
|
386
|
+
tokens: {
|
|
387
|
+
name: any;
|
|
388
|
+
sets: any;
|
|
389
|
+
variesWith: string;
|
|
390
|
+
figma: string;
|
|
391
|
+
}[];
|
|
392
|
+
composition: string[];
|
|
393
|
+
accessibility: string[];
|
|
394
|
+
gotchas: string[];
|
|
395
|
+
} | {
|
|
396
|
+
name: string;
|
|
397
|
+
summary: string;
|
|
398
|
+
insteadUse: {
|
|
399
|
+
when: string;
|
|
400
|
+
use: string;
|
|
401
|
+
}[];
|
|
402
|
+
props: {
|
|
403
|
+
name: string;
|
|
404
|
+
type: string;
|
|
405
|
+
default: string;
|
|
406
|
+
note: string;
|
|
407
|
+
}[];
|
|
408
|
+
states: {
|
|
409
|
+
state: string;
|
|
410
|
+
setBy: string;
|
|
411
|
+
note: string;
|
|
412
|
+
}[];
|
|
413
|
+
theming: {
|
|
414
|
+
collection: string;
|
|
415
|
+
inCode: string;
|
|
416
|
+
inFigma: string;
|
|
417
|
+
}[];
|
|
418
|
+
themingNotes: string[];
|
|
419
|
+
tokens: {
|
|
420
|
+
name: string;
|
|
421
|
+
sets: string;
|
|
422
|
+
variesWith: string;
|
|
423
|
+
figma: string;
|
|
424
|
+
}[];
|
|
425
|
+
composition: string[];
|
|
426
|
+
accessibility: string[];
|
|
427
|
+
gotchas: string[];
|
|
428
|
+
changes: any[];
|
|
429
|
+
})[];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/** A component name as it appears in a URL. */
|
|
2
|
+
export function docsSlug(component: any): any;
|
|
3
|
+
/**
|
|
4
|
+
* Where one component's docs live for one design system.
|
|
5
|
+
*
|
|
6
|
+
* A path per component rather than an anchor on a single long page: an anchor
|
|
7
|
+
* depends on the page rendering headings a browser can jump to, and the
|
|
8
|
+
* existing /api/tokens/:uuid/md route serves its content into a <pre>, which
|
|
9
|
+
* has none. A path cannot half-work.
|
|
10
|
+
*/
|
|
11
|
+
export function componentDocsUrl(designSystemId: any, component: any, origin?: string): string;
|
|
12
|
+
/** The index of every component, for the same design system. */
|
|
13
|
+
export function componentDocsIndexUrl(designSystemId: any, origin?: string): string;
|
|
14
|
+
/**
|
|
15
|
+
* The public URL of one component's reference page.
|
|
16
|
+
*
|
|
17
|
+
* Per DESIGN SYSTEM, not per component library: every user imports their own
|
|
18
|
+
* copy of the .fig and gets their own uuid, so a link baked into the template
|
|
19
|
+
* would send all of them to whoever built it.
|
|
20
|
+
*
|
|
21
|
+
* That splits the two Figma fields:
|
|
22
|
+
*
|
|
23
|
+
* description generic. Identical for every user, so it can live in
|
|
24
|
+
* the template and be written once.
|
|
25
|
+
* documentationLinks per user. The plugin writes it at import time, when it
|
|
26
|
+
* knows the design system id and nothing else does.
|
|
27
|
+
*
|
|
28
|
+
* Any path resolves on the host — `public/_redirects` is `/* /index.html 200`,
|
|
29
|
+
* a catch-all that hands every URL to the router — so this needs no server
|
|
30
|
+
* configuration and no anchor.
|
|
31
|
+
*/
|
|
32
|
+
export const DOCS_ORIGIN: "https://omni-design.netlify.app";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export function hasExample(component: any): boolean;
|
|
2
|
+
/** Does this component have a sample for this prop? */
|
|
3
|
+
export function hasPropExample(component: any, prop: any): boolean;
|
|
4
|
+
export namespace EXAMPLES {
|
|
5
|
+
function Button(): JSX.Element;
|
|
6
|
+
function BrandIcon(): JSX.Element;
|
|
7
|
+
function Fab(): JSX.Element;
|
|
8
|
+
function ButtonGroup(): JSX.Element;
|
|
9
|
+
function Chip(): JSX.Element;
|
|
10
|
+
function Badge(): JSX.Element;
|
|
11
|
+
function Alert(): JSX.Element;
|
|
12
|
+
function Card(): JSX.Element;
|
|
13
|
+
function Avatar(): JSX.Element;
|
|
14
|
+
function Icon(): JSX.Element;
|
|
15
|
+
function Link(): JSX.Element;
|
|
16
|
+
function Divider(): JSX.Element;
|
|
17
|
+
function Checkbox(): JSX.Element;
|
|
18
|
+
function Radio(): JSX.Element;
|
|
19
|
+
function Input(): JSX.Element;
|
|
20
|
+
function SwitchInput(): JSX.Element;
|
|
21
|
+
function Slider(): JSX.Element;
|
|
22
|
+
function Rating(): JSX.Element;
|
|
23
|
+
function Breadcrumbs(): JSX.Element;
|
|
24
|
+
function Pagination(): JSX.Element;
|
|
25
|
+
function Accordion(): JSX.Element;
|
|
26
|
+
function Tabs(): JSX.Element;
|
|
27
|
+
}
|
|
28
|
+
export namespace PROP_EXAMPLES {
|
|
29
|
+
export namespace Fab_1 {
|
|
30
|
+
function size(): JSX.Element;
|
|
31
|
+
function color(): JSX.Element;
|
|
32
|
+
function extended(): JSX.Element;
|
|
33
|
+
function animate(): JSX.Element;
|
|
34
|
+
function disabled(): JSX.Element;
|
|
35
|
+
}
|
|
36
|
+
export { Fab_1 as Fab };
|
|
37
|
+
let Button_1: {
|
|
38
|
+
variant: () => JSX.Element;
|
|
39
|
+
size: () => JSX.Element;
|
|
40
|
+
variantColor: () => JSX.Element;
|
|
41
|
+
disabled: () => JSX.Element;
|
|
42
|
+
'startDecorator / endDecorator': () => JSX.Element;
|
|
43
|
+
iconOnly: () => JSX.Element;
|
|
44
|
+
elevated: () => JSX.Element;
|
|
45
|
+
fullWidth: () => JSX.Element;
|
|
46
|
+
};
|
|
47
|
+
export { Button_1 as Button };
|
|
48
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export namespace FIGMA_HOWTO {
|
|
2
|
+
namespace Fab {
|
|
3
|
+
let title: string;
|
|
4
|
+
let after: string;
|
|
5
|
+
let node: string;
|
|
6
|
+
let collection: string;
|
|
7
|
+
let body: string;
|
|
8
|
+
let shot: string;
|
|
9
|
+
let caveat: string;
|
|
10
|
+
}
|
|
11
|
+
namespace Button {
|
|
12
|
+
let title_1: string;
|
|
13
|
+
export { title_1 as title };
|
|
14
|
+
let after_1: string;
|
|
15
|
+
export { after_1 as after };
|
|
16
|
+
let node_1: string;
|
|
17
|
+
export { node_1 as node };
|
|
18
|
+
let collection_1: string;
|
|
19
|
+
export { collection_1 as collection };
|
|
20
|
+
let body_1: string;
|
|
21
|
+
export { body_1 as body };
|
|
22
|
+
let shot_1: string;
|
|
23
|
+
export { shot_1 as shot };
|
|
24
|
+
let caveat_1: string;
|
|
25
|
+
export { caveat_1 as caveat };
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export function howToFor(component: any): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A link to the component in Figma, or null when it is not drawn.
|
|
3
|
+
*
|
|
4
|
+
* Null rather than a link to the file root: a component with no design is a
|
|
5
|
+
* real answer, and sending someone to the front page to hunt for it is not.
|
|
6
|
+
*/
|
|
7
|
+
export function figmaUrlFor(component: any): string;
|
|
8
|
+
export const FIGMA_FILE_KEY: "Qv2dqF7mYoAGY77EkdrwTv";
|
|
9
|
+
export const FIGMA_FILE_NAME: "Omni-Designs-Aug12";
|
|
10
|
+
export namespace FIGMA_PAGES {
|
|
11
|
+
let Typography: string;
|
|
12
|
+
let Accordion: string;
|
|
13
|
+
let Alert: string;
|
|
14
|
+
let AppBar: string;
|
|
15
|
+
let Avatar: string;
|
|
16
|
+
let Badge: string;
|
|
17
|
+
let Box: string;
|
|
18
|
+
let Breadcrumbs: string;
|
|
19
|
+
let Button: string;
|
|
20
|
+
let ButtonGroup: string;
|
|
21
|
+
let Card: string;
|
|
22
|
+
let Checkbox: string;
|
|
23
|
+
let Chip: string;
|
|
24
|
+
let CodeBlock: string;
|
|
25
|
+
let Dialog: string;
|
|
26
|
+
let Divider: string;
|
|
27
|
+
let Drawer: string;
|
|
28
|
+
let Fab: string;
|
|
29
|
+
let Icon: string;
|
|
30
|
+
let IconBadge: string;
|
|
31
|
+
let Input: string;
|
|
32
|
+
let Link: string;
|
|
33
|
+
let List: string;
|
|
34
|
+
let Loader: string;
|
|
35
|
+
let Menu: string;
|
|
36
|
+
let Modal: string;
|
|
37
|
+
let NumberField: string;
|
|
38
|
+
let Pagination: string;
|
|
39
|
+
let Radio: string;
|
|
40
|
+
let Rail: string;
|
|
41
|
+
let Ratio: string;
|
|
42
|
+
let Rating: string;
|
|
43
|
+
let SearchField: string;
|
|
44
|
+
let Select: string;
|
|
45
|
+
let Sheet: string;
|
|
46
|
+
let Slider: string;
|
|
47
|
+
let Snackbar: string;
|
|
48
|
+
let Stepper: string;
|
|
49
|
+
let SwitchInput: string;
|
|
50
|
+
let Table: string;
|
|
51
|
+
let Tabs: string;
|
|
52
|
+
let Tag: string;
|
|
53
|
+
let TextField: string;
|
|
54
|
+
let Toolbar: string;
|
|
55
|
+
let Tooltip: string;
|
|
56
|
+
let TreeView: string;
|
|
57
|
+
let BottomNavigation: string;
|
|
58
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export function renderFoundations(): string;
|
|
2
|
+
/**
|
|
3
|
+
* The facts that are not about any one component.
|
|
4
|
+
*
|
|
5
|
+
* Same test as the component docs: every line has to change what an agent
|
|
6
|
+
* writes. That kept five sections and cut the raw tone ramp — an agent uses
|
|
7
|
+
* semantic names, and Color-1..Color-12 across nine palettes is generator
|
|
8
|
+
* internals, volume without decisions.
|
|
9
|
+
*
|
|
10
|
+
* The first section exists because the system does the opposite of what every
|
|
11
|
+
* other one does, and an agent will assume otherwise without being told.
|
|
12
|
+
*/
|
|
13
|
+
export const FOUNDATIONS: ({
|
|
14
|
+
title: string;
|
|
15
|
+
lede: string;
|
|
16
|
+
body: string[];
|
|
17
|
+
table: {
|
|
18
|
+
head: string[];
|
|
19
|
+
rows: string[][];
|
|
20
|
+
};
|
|
21
|
+
body2: any[];
|
|
22
|
+
trap: string;
|
|
23
|
+
} | {
|
|
24
|
+
title: string;
|
|
25
|
+
lede: string;
|
|
26
|
+
body: string[];
|
|
27
|
+
table: {
|
|
28
|
+
head: string[];
|
|
29
|
+
rows: string[][];
|
|
30
|
+
};
|
|
31
|
+
trap: string;
|
|
32
|
+
body2?: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
title: string;
|
|
35
|
+
lede: string;
|
|
36
|
+
body: string[];
|
|
37
|
+
trap: string;
|
|
38
|
+
table?: undefined;
|
|
39
|
+
body2?: undefined;
|
|
40
|
+
})[];
|