@omni-design/components 0.12.0 → 0.14.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/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 +23 -0
- package/dist/types/components/BrandIcon/BrandIconShowcase.d.ts +2 -0
- package/dist/types/components/BrandIcon/index.d.ts +2 -0
- package/dist/types/components/Button/Button.d.ts +35 -66
- package/dist/types/components/ButtonGroup/ButtonGroup.d.ts +3 -1
- package/dist/types/components/Charts/tokens.d.ts +1 -1
- package/dist/types/components/CodeBlock/index.d.ts +1 -0
- 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/List/List.d.ts +2 -1
- package/dist/types/components/Rail/Rail.d.ts +2 -1
- package/dist/types/components/ShowcaseHeader.d.ts +5 -0
- package/dist/types/components/Slider/Slider.d.ts +6 -3
- package/dist/types/components/TextField/TextField.d.ts +1 -1
- package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +8 -5
- package/dist/types/components/ToggleButtonGroup/ToggleButtonGroupShowcase.d.ts +2 -0
- package/dist/types/components/ToggleButtonGroup/index.d.ts +2 -0
- 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 +58 -0
- package/dist/types/components/index.d.ts +3 -2
- package/dist/types/docs/DocPanels.d.ts +0 -14
- package/dist/types/docs/components.d.ts +131 -0
- package/dist/types/docs/componentsNav.d.ts +29 -13
- package/dist/types/docs/componentsSurfaces.d.ts +113 -10
- package/dist/types/docs/examples.d.ts +55 -34
- package/dist/types/docs/examples.lead.d.ts +89 -0
- package/dist/types/docs/figmaHowTo.d.ts +28 -0
- package/dist/types/docs/figmaLinks.d.ts +59 -0
- package/dist/types/docs/foundations.d.ts +12 -0
- package/dist/types/docs/samples.buttongroup.d.ts +22 -0
- package/dist/types/docs/samples.core.d.ts +104 -0
- package/dist/types/docs/samples.d.ts +27 -0
- package/dist/types/docs/samples.forms.d.ts +69 -0
- package/dist/types/docs/samples.nav.d.ts +70 -0
- package/dist/types/docs/samples.slider.d.ts +12 -0
- package/dist/types/docs/samples.surfaces.d.ts +69 -0
- package/package.json +4 -2
- package/public/styles/Dark-Mode.css +6 -0
- package/public/styles/Light-Mode.css +6 -0
- package/public/styles/README.md +1 -1
- package/public/styles/base.css +64 -19
- package/public/styles/core.css +94 -15
- package/public/styles/foundation.css +18 -0
- package/public/styles/typography-tokens.css +269 -20
- package/dist/types/theme/useThemeMode.d.ts +0 -4
|
@@ -7,6 +7,8 @@ export namespace BUTTON_DOC {
|
|
|
7
7
|
}[];
|
|
8
8
|
let props: ({
|
|
9
9
|
name: string;
|
|
10
|
+
label: string;
|
|
11
|
+
sample: string;
|
|
10
12
|
type: string;
|
|
11
13
|
default: string;
|
|
12
14
|
values: string[];
|
|
@@ -16,17 +18,23 @@ export namespace BUTTON_DOC {
|
|
|
16
18
|
type: string;
|
|
17
19
|
values: string[];
|
|
18
20
|
default: string;
|
|
21
|
+
label?: undefined;
|
|
22
|
+
sample?: undefined;
|
|
19
23
|
note?: undefined;
|
|
20
24
|
} | {
|
|
21
25
|
name: string;
|
|
22
26
|
type: string;
|
|
23
27
|
default: string;
|
|
24
28
|
note: string;
|
|
29
|
+
label?: undefined;
|
|
30
|
+
sample?: undefined;
|
|
25
31
|
values?: undefined;
|
|
26
32
|
} | {
|
|
27
33
|
name: string;
|
|
28
34
|
type: string;
|
|
29
35
|
default: string;
|
|
36
|
+
label?: undefined;
|
|
37
|
+
sample?: undefined;
|
|
30
38
|
values?: undefined;
|
|
31
39
|
note?: undefined;
|
|
32
40
|
})[];
|
|
@@ -194,6 +202,129 @@ export namespace CARD_DOC {
|
|
|
194
202
|
let gotchas_2: string[];
|
|
195
203
|
export { gotchas_2 as gotchas };
|
|
196
204
|
}
|
|
205
|
+
export namespace BUTTON_GROUP_DOC {
|
|
206
|
+
let name_3: string;
|
|
207
|
+
export { name_3 as name };
|
|
208
|
+
let summary_3: string;
|
|
209
|
+
export { summary_3 as summary };
|
|
210
|
+
let insteadUse_3: {
|
|
211
|
+
when: string;
|
|
212
|
+
use: string;
|
|
213
|
+
}[];
|
|
214
|
+
export { insteadUse_3 as insteadUse };
|
|
215
|
+
let props_3: ({
|
|
216
|
+
name: string;
|
|
217
|
+
type: string;
|
|
218
|
+
default: string;
|
|
219
|
+
note: string;
|
|
220
|
+
sample?: undefined;
|
|
221
|
+
values?: undefined;
|
|
222
|
+
} | {
|
|
223
|
+
name: string;
|
|
224
|
+
sample: string;
|
|
225
|
+
type: string;
|
|
226
|
+
note: string;
|
|
227
|
+
default?: undefined;
|
|
228
|
+
values?: undefined;
|
|
229
|
+
} | {
|
|
230
|
+
name: string;
|
|
231
|
+
type: string;
|
|
232
|
+
values: string[];
|
|
233
|
+
default: string;
|
|
234
|
+
note: string;
|
|
235
|
+
sample?: undefined;
|
|
236
|
+
})[];
|
|
237
|
+
export { props_3 as props };
|
|
238
|
+
let states_3: ({
|
|
239
|
+
state: string;
|
|
240
|
+
setBy: string;
|
|
241
|
+
note: string;
|
|
242
|
+
} | {
|
|
243
|
+
state: string;
|
|
244
|
+
setBy: string;
|
|
245
|
+
note?: undefined;
|
|
246
|
+
})[];
|
|
247
|
+
export { states_3 as states };
|
|
248
|
+
let theming_3: {
|
|
249
|
+
collection: string;
|
|
250
|
+
inCode: string;
|
|
251
|
+
inFigma: string;
|
|
252
|
+
}[];
|
|
253
|
+
export { theming_3 as theming };
|
|
254
|
+
let tokens_3: {
|
|
255
|
+
name: string;
|
|
256
|
+
sets: string;
|
|
257
|
+
variesWith: string;
|
|
258
|
+
figma: string;
|
|
259
|
+
}[];
|
|
260
|
+
export { tokens_3 as tokens };
|
|
261
|
+
let composition_3: string[];
|
|
262
|
+
export { composition_3 as composition };
|
|
263
|
+
let accessibility_3: string[];
|
|
264
|
+
export { accessibility_3 as accessibility };
|
|
265
|
+
let gotchas_3: string[];
|
|
266
|
+
export { gotchas_3 as gotchas };
|
|
267
|
+
}
|
|
268
|
+
export namespace TOGGLE_BUTTON_GROUP_DOC {
|
|
269
|
+
let name_4: string;
|
|
270
|
+
export { name_4 as name };
|
|
271
|
+
let summary_4: string;
|
|
272
|
+
export { summary_4 as summary };
|
|
273
|
+
let insteadUse_4: {
|
|
274
|
+
when: string;
|
|
275
|
+
use: string;
|
|
276
|
+
}[];
|
|
277
|
+
export { insteadUse_4 as insteadUse };
|
|
278
|
+
let props_4: ({
|
|
279
|
+
name: string;
|
|
280
|
+
type: string;
|
|
281
|
+
default: string;
|
|
282
|
+
note: string;
|
|
283
|
+
values?: undefined;
|
|
284
|
+
} | {
|
|
285
|
+
name: string;
|
|
286
|
+
type: string;
|
|
287
|
+
values: string[];
|
|
288
|
+
default: string;
|
|
289
|
+
note: string;
|
|
290
|
+
} | {
|
|
291
|
+
name: string;
|
|
292
|
+
type: string;
|
|
293
|
+
default: string;
|
|
294
|
+
note?: undefined;
|
|
295
|
+
values?: undefined;
|
|
296
|
+
})[];
|
|
297
|
+
export { props_4 as props };
|
|
298
|
+
let states_4: ({
|
|
299
|
+
state: string;
|
|
300
|
+
setBy: string;
|
|
301
|
+
note: string;
|
|
302
|
+
} | {
|
|
303
|
+
state: string;
|
|
304
|
+
setBy: string;
|
|
305
|
+
note?: undefined;
|
|
306
|
+
})[];
|
|
307
|
+
export { states_4 as states };
|
|
308
|
+
let theming_4: {
|
|
309
|
+
collection: string;
|
|
310
|
+
inCode: string;
|
|
311
|
+
inFigma: string;
|
|
312
|
+
}[];
|
|
313
|
+
export { theming_4 as theming };
|
|
314
|
+
let tokens_4: {
|
|
315
|
+
name: string;
|
|
316
|
+
sets: string;
|
|
317
|
+
variesWith: string;
|
|
318
|
+
figma: string;
|
|
319
|
+
}[];
|
|
320
|
+
export { tokens_4 as tokens };
|
|
321
|
+
let composition_4: string[];
|
|
322
|
+
export { composition_4 as composition };
|
|
323
|
+
let accessibility_4: string[];
|
|
324
|
+
export { accessibility_4 as accessibility };
|
|
325
|
+
let gotchas_4: string[];
|
|
326
|
+
export { gotchas_4 as gotchas };
|
|
327
|
+
}
|
|
197
328
|
export const COMPONENT_DOCS: {
|
|
198
329
|
name: any;
|
|
199
330
|
summary: any;
|
|
@@ -66,13 +66,13 @@ export namespace RAIL_DOC {
|
|
|
66
66
|
type: string;
|
|
67
67
|
values: string[];
|
|
68
68
|
default: string;
|
|
69
|
-
note
|
|
69
|
+
note: string;
|
|
70
70
|
} | {
|
|
71
71
|
name: string;
|
|
72
72
|
type: string;
|
|
73
73
|
values: string[];
|
|
74
74
|
default: string;
|
|
75
|
-
note
|
|
75
|
+
note?: undefined;
|
|
76
76
|
})[];
|
|
77
77
|
export { props_1 as props };
|
|
78
78
|
let states_1: ({
|
|
@@ -294,12 +294,20 @@ export namespace TREEVIEW_DOC {
|
|
|
294
294
|
name: string;
|
|
295
295
|
type: string;
|
|
296
296
|
default: string;
|
|
297
|
+
note?: undefined;
|
|
298
|
+
values?: undefined;
|
|
299
|
+
} | {
|
|
300
|
+
name: string;
|
|
301
|
+
type: string;
|
|
302
|
+
default: string;
|
|
303
|
+
note: string;
|
|
297
304
|
values?: undefined;
|
|
298
305
|
} | {
|
|
299
306
|
name: string;
|
|
300
307
|
type: string;
|
|
301
308
|
values: string[];
|
|
302
309
|
default: string;
|
|
310
|
+
note?: undefined;
|
|
303
311
|
})[];
|
|
304
312
|
export { props_5 as props };
|
|
305
313
|
let states_5: ({
|
|
@@ -343,14 +351,14 @@ export const NAV_DOCS: ({
|
|
|
343
351
|
name: string;
|
|
344
352
|
type: string;
|
|
345
353
|
default: string;
|
|
346
|
-
note?: undefined;
|
|
347
354
|
values?: undefined;
|
|
355
|
+
note?: undefined;
|
|
348
356
|
} | {
|
|
349
357
|
name: string;
|
|
350
358
|
type: string;
|
|
359
|
+
values: string[];
|
|
351
360
|
default: string;
|
|
352
361
|
note: string;
|
|
353
|
-
values?: undefined;
|
|
354
362
|
} | {
|
|
355
363
|
name: string;
|
|
356
364
|
type: string;
|
|
@@ -358,10 +366,15 @@ export const NAV_DOCS: ({
|
|
|
358
366
|
default: string;
|
|
359
367
|
note?: undefined;
|
|
360
368
|
})[];
|
|
361
|
-
states: {
|
|
369
|
+
states: ({
|
|
362
370
|
state: string;
|
|
363
371
|
setBy: string;
|
|
364
|
-
|
|
372
|
+
note?: undefined;
|
|
373
|
+
} | {
|
|
374
|
+
state: string;
|
|
375
|
+
setBy: string;
|
|
376
|
+
note: string;
|
|
377
|
+
})[];
|
|
365
378
|
theming: {
|
|
366
379
|
collection: string;
|
|
367
380
|
inCode: string;
|
|
@@ -387,22 +400,25 @@ export const NAV_DOCS: ({
|
|
|
387
400
|
name: string;
|
|
388
401
|
type: string;
|
|
389
402
|
default: string;
|
|
403
|
+
note?: undefined;
|
|
404
|
+
values?: undefined;
|
|
405
|
+
} | {
|
|
406
|
+
name: string;
|
|
407
|
+
type: string;
|
|
408
|
+
default: string;
|
|
409
|
+
note: string;
|
|
390
410
|
values?: undefined;
|
|
391
411
|
} | {
|
|
392
412
|
name: string;
|
|
393
413
|
type: string;
|
|
394
414
|
values: string[];
|
|
395
415
|
default: string;
|
|
396
|
-
})[];
|
|
397
|
-
states: ({
|
|
398
|
-
state: string;
|
|
399
|
-
setBy: string;
|
|
400
416
|
note?: undefined;
|
|
401
|
-
}
|
|
417
|
+
})[];
|
|
418
|
+
states: {
|
|
402
419
|
state: string;
|
|
403
420
|
setBy: string;
|
|
404
|
-
|
|
405
|
-
})[];
|
|
421
|
+
}[];
|
|
406
422
|
theming: {
|
|
407
423
|
collection: string;
|
|
408
424
|
inCode: string;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export namespace ICON_DOC {
|
|
2
2
|
let name: string;
|
|
3
3
|
let summary: string;
|
|
4
|
+
let links: {
|
|
5
|
+
label: string;
|
|
6
|
+
href: string;
|
|
7
|
+
}[];
|
|
4
8
|
let insteadUse: {
|
|
5
9
|
when: string;
|
|
6
10
|
use: string;
|
|
@@ -79,6 +83,12 @@ export namespace FAB_DOC {
|
|
|
79
83
|
values: string[];
|
|
80
84
|
default: string;
|
|
81
85
|
note?: undefined;
|
|
86
|
+
} | {
|
|
87
|
+
name: string;
|
|
88
|
+
type: string;
|
|
89
|
+
values: string[];
|
|
90
|
+
default: string;
|
|
91
|
+
note: string;
|
|
82
92
|
})[];
|
|
83
93
|
export { props_1 as props };
|
|
84
94
|
let states_1: ({
|
|
@@ -235,6 +245,57 @@ export namespace ACCORDION_DOC {
|
|
|
235
245
|
let gotchas_3: string[];
|
|
236
246
|
export { gotchas_3 as gotchas };
|
|
237
247
|
}
|
|
248
|
+
export namespace BRANDICON_DOC {
|
|
249
|
+
let name_4: string;
|
|
250
|
+
export { name_4 as name };
|
|
251
|
+
let summary_4: string;
|
|
252
|
+
export { summary_4 as summary };
|
|
253
|
+
let links_1: {
|
|
254
|
+
label: string;
|
|
255
|
+
href: string;
|
|
256
|
+
}[];
|
|
257
|
+
export { links_1 as links };
|
|
258
|
+
let insteadUse_4: {
|
|
259
|
+
when: string;
|
|
260
|
+
use: string;
|
|
261
|
+
}[];
|
|
262
|
+
export { insteadUse_4 as insteadUse };
|
|
263
|
+
let props_4: {
|
|
264
|
+
name: string;
|
|
265
|
+
type: string;
|
|
266
|
+
default: string;
|
|
267
|
+
note: string;
|
|
268
|
+
}[];
|
|
269
|
+
export { props_4 as props };
|
|
270
|
+
let states_4: {
|
|
271
|
+
state: string;
|
|
272
|
+
setBy: string;
|
|
273
|
+
note: string;
|
|
274
|
+
}[];
|
|
275
|
+
export { states_4 as states };
|
|
276
|
+
let theming_4: {
|
|
277
|
+
collection: string;
|
|
278
|
+
inCode: string;
|
|
279
|
+
inFigma: string;
|
|
280
|
+
}[];
|
|
281
|
+
export { theming_4 as theming };
|
|
282
|
+
let themingNotes_3: string[];
|
|
283
|
+
export { themingNotes_3 as themingNotes };
|
|
284
|
+
let tokens_4: {
|
|
285
|
+
name: string;
|
|
286
|
+
sets: string;
|
|
287
|
+
variesWith: string;
|
|
288
|
+
figma: string;
|
|
289
|
+
}[];
|
|
290
|
+
export { tokens_4 as tokens };
|
|
291
|
+
let composition_4: string[];
|
|
292
|
+
export { composition_4 as composition };
|
|
293
|
+
let accessibility_4: string[];
|
|
294
|
+
export { accessibility_4 as accessibility };
|
|
295
|
+
let gotchas_4: string[];
|
|
296
|
+
export { gotchas_4 as gotchas };
|
|
297
|
+
export let changes: any[];
|
|
298
|
+
}
|
|
238
299
|
export const SURFACE_DOCS: ({
|
|
239
300
|
name: string;
|
|
240
301
|
summary: string;
|
|
@@ -246,14 +307,8 @@ export const SURFACE_DOCS: ({
|
|
|
246
307
|
name: string;
|
|
247
308
|
type: string;
|
|
248
309
|
default: string;
|
|
249
|
-
values: string[];
|
|
250
|
-
note: string;
|
|
251
|
-
} | {
|
|
252
|
-
name: string;
|
|
253
|
-
type: string;
|
|
254
|
-
values: string[];
|
|
255
|
-
default: string;
|
|
256
310
|
note?: undefined;
|
|
311
|
+
values?: undefined;
|
|
257
312
|
} | {
|
|
258
313
|
name: string;
|
|
259
314
|
type: string;
|
|
@@ -263,15 +318,25 @@ export const SURFACE_DOCS: ({
|
|
|
263
318
|
} | {
|
|
264
319
|
name: string;
|
|
265
320
|
type: string;
|
|
321
|
+
values: string[];
|
|
266
322
|
default: string;
|
|
267
|
-
values?: undefined;
|
|
268
323
|
note?: undefined;
|
|
324
|
+
} | {
|
|
325
|
+
name: string;
|
|
326
|
+
type: string;
|
|
327
|
+
values: string[];
|
|
328
|
+
default: string;
|
|
329
|
+
note: string;
|
|
269
330
|
})[];
|
|
270
|
-
states: {
|
|
331
|
+
states: ({
|
|
271
332
|
state: string;
|
|
272
333
|
setBy: string;
|
|
273
334
|
note: string;
|
|
274
|
-
}
|
|
335
|
+
} | {
|
|
336
|
+
state: string;
|
|
337
|
+
setBy: string;
|
|
338
|
+
note?: undefined;
|
|
339
|
+
})[];
|
|
275
340
|
theming: {
|
|
276
341
|
collection: string;
|
|
277
342
|
inCode: string;
|
|
@@ -336,4 +401,42 @@ export const SURFACE_DOCS: ({
|
|
|
336
401
|
composition: string[];
|
|
337
402
|
accessibility: string[];
|
|
338
403
|
gotchas: string[];
|
|
404
|
+
} | {
|
|
405
|
+
name: string;
|
|
406
|
+
summary: string;
|
|
407
|
+
links: {
|
|
408
|
+
label: string;
|
|
409
|
+
href: string;
|
|
410
|
+
}[];
|
|
411
|
+
insteadUse: {
|
|
412
|
+
when: string;
|
|
413
|
+
use: string;
|
|
414
|
+
}[];
|
|
415
|
+
props: {
|
|
416
|
+
name: string;
|
|
417
|
+
type: string;
|
|
418
|
+
default: string;
|
|
419
|
+
note: string;
|
|
420
|
+
}[];
|
|
421
|
+
states: {
|
|
422
|
+
state: string;
|
|
423
|
+
setBy: string;
|
|
424
|
+
note: string;
|
|
425
|
+
}[];
|
|
426
|
+
theming: {
|
|
427
|
+
collection: string;
|
|
428
|
+
inCode: string;
|
|
429
|
+
inFigma: string;
|
|
430
|
+
}[];
|
|
431
|
+
themingNotes: string[];
|
|
432
|
+
tokens: {
|
|
433
|
+
name: string;
|
|
434
|
+
sets: string;
|
|
435
|
+
variesWith: string;
|
|
436
|
+
figma: string;
|
|
437
|
+
}[];
|
|
438
|
+
composition: string[];
|
|
439
|
+
accessibility: string[];
|
|
440
|
+
gotchas: string[];
|
|
441
|
+
changes: any[];
|
|
339
442
|
})[];
|
|
@@ -1,37 +1,58 @@
|
|
|
1
1
|
export function hasExample(component: any): boolean;
|
|
2
2
|
/** Does this component have a sample for this prop? */
|
|
3
3
|
export function hasPropExample(component: any, prop: any): boolean;
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
4
|
+
export const EXAMPLES: {
|
|
5
|
+
Button: () => JSX.Element;
|
|
6
|
+
BrandIcon: () => JSX.Element;
|
|
7
|
+
Fab: () => JSX.Element;
|
|
8
|
+
Chip: () => JSX.Element;
|
|
9
|
+
Badge: () => JSX.Element;
|
|
10
|
+
Alert: () => JSX.Element;
|
|
11
|
+
Card: () => JSX.Element;
|
|
12
|
+
Avatar: () => JSX.Element;
|
|
13
|
+
Icon: () => JSX.Element;
|
|
14
|
+
Link: () => JSX.Element;
|
|
15
|
+
Divider: () => JSX.Element;
|
|
16
|
+
Checkbox: () => JSX.Element;
|
|
17
|
+
Radio: () => JSX.Element;
|
|
18
|
+
Input: () => JSX.Element;
|
|
19
|
+
SwitchInput: () => JSX.Element;
|
|
20
|
+
Slider: () => JSX.Element;
|
|
21
|
+
Rating: () => JSX.Element;
|
|
22
|
+
Breadcrumbs: () => JSX.Element;
|
|
23
|
+
Pagination: () => JSX.Element;
|
|
24
|
+
Accordion: () => JSX.Element;
|
|
25
|
+
Tabs: () => JSX.Element;
|
|
26
|
+
ButtonGroup: () => JSX.Element;
|
|
27
|
+
ToggleButtonGroup: () => JSX.Element;
|
|
28
|
+
AppBar: () => JSX.Element;
|
|
29
|
+
Autocomplete: () => JSX.Element;
|
|
30
|
+
BottomNavigation: () => JSX.Element;
|
|
31
|
+
CodeBlock: () => JSX.Element;
|
|
32
|
+
Dialog: () => JSX.Element;
|
|
33
|
+
Drawer: () => JSX.Element;
|
|
34
|
+
DropZone: () => JSX.Element;
|
|
35
|
+
IconBadge: () => JSX.Element;
|
|
36
|
+
List: () => JSX.Element;
|
|
37
|
+
Loader: () => JSX.Element;
|
|
38
|
+
Menu: () => JSX.Element;
|
|
39
|
+
Modal: () => JSX.Element;
|
|
40
|
+
Paper: () => JSX.Element;
|
|
41
|
+
Popover: () => JSX.Element;
|
|
42
|
+
Rail: () => JSX.Element;
|
|
43
|
+
Ratio: () => JSX.Element;
|
|
44
|
+
SearchField: () => JSX.Element;
|
|
45
|
+
Select: () => JSX.Element;
|
|
46
|
+
Sidebar: () => JSX.Element;
|
|
47
|
+
Snackbar: () => JSX.Element;
|
|
48
|
+
StateMessage: () => JSX.Element;
|
|
49
|
+
Stepper: () => JSX.Element;
|
|
50
|
+
Swatch: () => JSX.Element;
|
|
51
|
+
Table: () => JSX.Element;
|
|
52
|
+
Tag: () => JSX.Element;
|
|
53
|
+
TextField: () => JSX.Element;
|
|
54
|
+
Toolbar: () => JSX.Element;
|
|
55
|
+
Tooltip: () => JSX.Element;
|
|
56
|
+
TreeView: () => JSX.Element;
|
|
57
|
+
};
|
|
58
|
+
export const PROP_EXAMPLES: any;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
export const NAV_ITEMS: ({
|
|
2
|
+
icon: JSX.Element;
|
|
3
|
+
label: string;
|
|
4
|
+
badge?: undefined;
|
|
5
|
+
} | {
|
|
6
|
+
icon: JSX.Element;
|
|
7
|
+
label: string;
|
|
8
|
+
badge: number;
|
|
9
|
+
})[];
|
|
10
|
+
export const LIST_ITEMS: {
|
|
11
|
+
label: string;
|
|
12
|
+
}[];
|
|
13
|
+
export const TABLE_COLUMNS: ({
|
|
14
|
+
label: string;
|
|
15
|
+
field: string;
|
|
16
|
+
width: string;
|
|
17
|
+
align?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
label: string;
|
|
20
|
+
field: string;
|
|
21
|
+
align: string;
|
|
22
|
+
width?: undefined;
|
|
23
|
+
})[];
|
|
24
|
+
export const TABLE_ROWS: {
|
|
25
|
+
name: string;
|
|
26
|
+
calories: number;
|
|
27
|
+
fat: number;
|
|
28
|
+
}[];
|
|
29
|
+
export const SELECT_OPTIONS: {
|
|
30
|
+
value: string;
|
|
31
|
+
label: string;
|
|
32
|
+
}[];
|
|
33
|
+
export const TOOLBAR_ITEMS: {
|
|
34
|
+
icon: JSX.Element;
|
|
35
|
+
label: string;
|
|
36
|
+
}[];
|
|
37
|
+
export const TREE_ITEMS: ({
|
|
38
|
+
id: string;
|
|
39
|
+
label: string;
|
|
40
|
+
children: ({
|
|
41
|
+
id: string;
|
|
42
|
+
label: string;
|
|
43
|
+
children: {
|
|
44
|
+
id: string;
|
|
45
|
+
label: string;
|
|
46
|
+
}[];
|
|
47
|
+
} | {
|
|
48
|
+
id: string;
|
|
49
|
+
label: string;
|
|
50
|
+
children?: undefined;
|
|
51
|
+
})[];
|
|
52
|
+
} | {
|
|
53
|
+
id: string;
|
|
54
|
+
label: string;
|
|
55
|
+
children?: undefined;
|
|
56
|
+
})[];
|
|
57
|
+
export namespace LEAD_EXAMPLES {
|
|
58
|
+
function ButtonGroup(): JSX.Element;
|
|
59
|
+
function ToggleButtonGroup(): JSX.Element;
|
|
60
|
+
function AppBar(): JSX.Element;
|
|
61
|
+
function Autocomplete(): JSX.Element;
|
|
62
|
+
function BottomNavigation(): JSX.Element;
|
|
63
|
+
function CodeBlock(): JSX.Element;
|
|
64
|
+
function Dialog(): JSX.Element;
|
|
65
|
+
function Drawer(): JSX.Element;
|
|
66
|
+
function DropZone(): JSX.Element;
|
|
67
|
+
function IconBadge(): JSX.Element;
|
|
68
|
+
function List(): JSX.Element;
|
|
69
|
+
function Loader(): JSX.Element;
|
|
70
|
+
function Menu(): JSX.Element;
|
|
71
|
+
function Modal(): JSX.Element;
|
|
72
|
+
function Paper(): JSX.Element;
|
|
73
|
+
function Popover(): JSX.Element;
|
|
74
|
+
function Rail(): JSX.Element;
|
|
75
|
+
function Ratio(): JSX.Element;
|
|
76
|
+
function SearchField(): JSX.Element;
|
|
77
|
+
function Select(): JSX.Element;
|
|
78
|
+
function Sidebar(): JSX.Element;
|
|
79
|
+
function Snackbar(): JSX.Element;
|
|
80
|
+
function StateMessage(): JSX.Element;
|
|
81
|
+
function Stepper(): JSX.Element;
|
|
82
|
+
function Swatch(): JSX.Element;
|
|
83
|
+
function Table(): JSX.Element;
|
|
84
|
+
function Tag(): JSX.Element;
|
|
85
|
+
function TextField(): JSX.Element;
|
|
86
|
+
function Toolbar(): JSX.Element;
|
|
87
|
+
function Tooltip(): JSX.Element;
|
|
88
|
+
function TreeView(): JSX.Element;
|
|
89
|
+
}
|
|
@@ -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,59 @@
|
|
|
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 ToggleButtonGroup: string;
|
|
22
|
+
let Card: string;
|
|
23
|
+
let Checkbox: string;
|
|
24
|
+
let Chip: string;
|
|
25
|
+
let CodeBlock: string;
|
|
26
|
+
let Dialog: string;
|
|
27
|
+
let Divider: string;
|
|
28
|
+
let Drawer: string;
|
|
29
|
+
let Fab: string;
|
|
30
|
+
let Icon: string;
|
|
31
|
+
let IconBadge: string;
|
|
32
|
+
let Input: string;
|
|
33
|
+
let Link: string;
|
|
34
|
+
let List: string;
|
|
35
|
+
let Loader: string;
|
|
36
|
+
let Menu: string;
|
|
37
|
+
let Modal: string;
|
|
38
|
+
let NumberField: string;
|
|
39
|
+
let Pagination: string;
|
|
40
|
+
let Radio: string;
|
|
41
|
+
let Rail: string;
|
|
42
|
+
let Ratio: string;
|
|
43
|
+
let Rating: string;
|
|
44
|
+
let SearchField: string;
|
|
45
|
+
let Select: string;
|
|
46
|
+
let Sheet: string;
|
|
47
|
+
let Slider: string;
|
|
48
|
+
let Snackbar: string;
|
|
49
|
+
let Stepper: string;
|
|
50
|
+
let SwitchInput: string;
|
|
51
|
+
let Table: string;
|
|
52
|
+
let Tabs: string;
|
|
53
|
+
let Tag: string;
|
|
54
|
+
let TextField: string;
|
|
55
|
+
let Toolbar: string;
|
|
56
|
+
let Tooltip: string;
|
|
57
|
+
let TreeView: string;
|
|
58
|
+
let BottomNavigation: string;
|
|
59
|
+
}
|