@omni-design/components 0.13.0 → 0.14.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.
Files changed (35) hide show
  1. package/dist/index.esm.js +4 -4
  2. package/dist/index.esm.js.map +1 -1
  3. package/dist/index.js +4 -4
  4. package/dist/index.js.map +1 -1
  5. package/dist/types/components/BrandIcon/BrandIcon.d.ts +3 -0
  6. package/dist/types/components/BrandIcon/BrandIconShowcase.d.ts +2 -0
  7. package/dist/types/components/BrandIcon/index.d.ts +2 -1
  8. package/dist/types/components/Button/Button.d.ts +35 -66
  9. package/dist/types/components/ButtonGroup/ButtonGroup.d.ts +3 -1
  10. package/dist/types/components/CodeBlock/index.d.ts +1 -0
  11. package/dist/types/components/List/List.d.ts +2 -1
  12. package/dist/types/components/Rail/Rail.d.ts +2 -1
  13. package/dist/types/components/Slider/Slider.d.ts +6 -3
  14. package/dist/types/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +8 -5
  15. package/dist/types/components/ToggleButtonGroup/ToggleButtonGroupShowcase.d.ts +2 -0
  16. package/dist/types/components/ToggleButtonGroup/index.d.ts +2 -0
  17. package/dist/types/components/a11yPanel.d.ts +21 -0
  18. package/dist/types/docs/components.d.ts +123 -0
  19. package/dist/types/docs/componentsNav.d.ts +29 -13
  20. package/dist/types/docs/componentsSurfaces.d.ts +13 -0
  21. package/dist/types/docs/examples.d.ts +55 -45
  22. package/dist/types/docs/examples.lead.d.ts +89 -0
  23. package/dist/types/docs/figmaLinks.d.ts +1 -0
  24. package/dist/types/docs/samples.buttongroup.d.ts +22 -0
  25. package/dist/types/docs/samples.core.d.ts +104 -0
  26. package/dist/types/docs/samples.d.ts +27 -0
  27. package/dist/types/docs/samples.forms.d.ts +69 -0
  28. package/dist/types/docs/samples.nav.d.ts +70 -0
  29. package/dist/types/docs/samples.slider.d.ts +12 -0
  30. package/dist/types/docs/samples.surfaces.d.ts +69 -0
  31. package/package.json +1 -1
  32. package/public/styles/README.md +1 -1
  33. package/public/styles/base.css +46 -19
  34. package/public/styles/foundation.css +4 -4
  35. package/public/styles/typography-tokens.css +8 -8
@@ -1,3 +1,5 @@
1
+ /** Does this build have a mark for that name? */
2
+ export function hasBrandIcon(name: any): boolean;
1
3
  /**
2
4
  * @param name lowercase, hyphenated, as Figma's text layer holds it:
3
5
  * 'github', 'x-twitter', 'linkedin', 'dribbble', 'instagram'
@@ -17,4 +19,5 @@ export function BrandIcon({ name, icon, size, color, title, ...props }: {
17
19
  color?: string;
18
20
  title: any;
19
21
  }): JSX.Element;
22
+ export const BRAND_ICON_NAMES: any[];
20
23
  export default BrandIcon;
@@ -0,0 +1,2 @@
1
+ export function BrandIconShowcase(): JSX.Element;
2
+ export default BrandIconShowcase;
@@ -1 +1,2 @@
1
- export { BrandIcon, default } from "./BrandIcon";
1
+ export { BrandIconShowcase } from "./BrandIconShowcase";
2
+ export { BrandIcon, BRAND_ICON_NAMES, hasBrandIcon, default } from "./BrandIcon";
@@ -1,69 +1,38 @@
1
1
  export function normalizeButtonVariant(variant: any): string;
2
- export function Button({ variant, size, elevated, selected, fullWidth, disabled, contentType, iconOnly, letterNumber, avatar, swatch, swatchColor, startIcon, endIcon, startDecorator, endDecorator, badge, badgeContent, badgeVariant, badgeSize, badgeDot, badgeMax, badgeAnchorOrigin, children, className, sx, ...props }: {
3
- [x: string]: any;
4
- variant?: string;
5
- size?: string;
6
- elevated?: boolean;
7
- selected?: boolean;
8
- fullWidth?: boolean;
9
- disabled?: boolean;
10
- contentType: any;
11
- iconOnly?: boolean;
12
- letterNumber?: boolean;
13
- avatar?: boolean;
14
- swatch?: boolean;
15
- swatchColor: any;
16
- startIcon: any;
17
- endIcon: any;
18
- startDecorator: any;
19
- endDecorator: any;
20
- badge?: boolean;
21
- badgeContent: any;
22
- badgeVariant?: string;
23
- badgeSize: any;
24
- badgeDot?: boolean;
25
- badgeMax?: number;
26
- badgeAnchorOrigin?: {
27
- vertical: string;
28
- horizontal: string;
29
- };
30
- children: any;
31
- className?: string;
32
- sx?: {};
33
- }): JSX.Element;
34
2
  export const BUTTON_CONTENT_TYPES: string[];
35
- export function DefaultButton(p: any): JSX.Element;
36
- export function DefaultOutlineButton(p: any): JSX.Element;
37
- export function PrimaryButton(p: any): JSX.Element;
38
- export function SecondaryButton(p: any): JSX.Element;
39
- export function TertiaryButton(p: any): JSX.Element;
40
- export function NeutralButton(p: any): JSX.Element;
41
- export function InfoButton(p: any): JSX.Element;
42
- export function SuccessButton(p: any): JSX.Element;
43
- export function WarningButton(p: any): JSX.Element;
44
- export function ErrorButton(p: any): JSX.Element;
45
- export function DangerButton(p: any): JSX.Element;
46
- export function PrimaryOutlineButton(p: any): JSX.Element;
47
- export function SecondaryOutlineButton(p: any): JSX.Element;
48
- export function TertiaryOutlineButton(p: any): JSX.Element;
49
- export function NeutralOutlineButton(p: any): JSX.Element;
50
- export function InfoOutlineButton(p: any): JSX.Element;
51
- export function SuccessOutlineButton(p: any): JSX.Element;
52
- export function WarningOutlineButton(p: any): JSX.Element;
53
- export function ErrorOutlineButton(p: any): JSX.Element;
54
- export function PrimaryLightButton(p: any): JSX.Element;
55
- export function SecondaryLightButton(p: any): JSX.Element;
56
- export function TertiaryLightButton(p: any): JSX.Element;
57
- export function NeutralLightButton(p: any): JSX.Element;
58
- export function InfoLightButton(p: any): JSX.Element;
59
- export function SuccessLightButton(p: any): JSX.Element;
60
- export function WarningLightButton(p: any): JSX.Element;
61
- export function ErrorLightButton(p: any): JSX.Element;
62
- export function GhostButton(p: any): JSX.Element;
63
- export function TextButton(p: any): JSX.Element;
64
- export function OutlineButton(p: any): JSX.Element;
65
- export function IconButton(p: any): JSX.Element;
66
- export function LetterButton(p: any): JSX.Element;
67
- export function AvatarButton(p: any): JSX.Element;
68
- export function SwatchButton(p: any): JSX.Element;
3
+ export const Button: any;
4
+ export const DefaultButton: any;
5
+ export const DefaultOutlineButton: any;
6
+ export const PrimaryButton: any;
7
+ export const SecondaryButton: any;
8
+ export const TertiaryButton: any;
9
+ export const NeutralButton: any;
10
+ export const InfoButton: any;
11
+ export const SuccessButton: any;
12
+ export const WarningButton: any;
13
+ export const ErrorButton: any;
14
+ export const DangerButton: any;
15
+ export const PrimaryOutlineButton: any;
16
+ export const SecondaryOutlineButton: any;
17
+ export const TertiaryOutlineButton: any;
18
+ export const NeutralOutlineButton: any;
19
+ export const InfoOutlineButton: any;
20
+ export const SuccessOutlineButton: any;
21
+ export const WarningOutlineButton: any;
22
+ export const ErrorOutlineButton: any;
23
+ export const PrimaryLightButton: any;
24
+ export const SecondaryLightButton: any;
25
+ export const TertiaryLightButton: any;
26
+ export const NeutralLightButton: any;
27
+ export const InfoLightButton: any;
28
+ export const SuccessLightButton: any;
29
+ export const WarningLightButton: any;
30
+ export const ErrorLightButton: any;
31
+ export const GhostButton: any;
32
+ export const TextButton: any;
33
+ export const OutlineButton: any;
34
+ export const IconButton: any;
35
+ export const LetterButton: any;
36
+ export const AvatarButton: any;
37
+ export const SwatchButton: any;
69
38
  export default Button;
@@ -1,4 +1,4 @@
1
- export function ButtonGroup({ variant, color, size, disabled, orientation, separated, spacing, fit, fullWidth, equalWidth, multiple, value: controlledValue, defaultValue, onChange, children, className, sx, "aria-label": ariaLabel, ...props }: {
1
+ export function ButtonGroup({ variant, color, size, disabled, orientation, separated, spacing, fit, fullWidth, equalWidth, multiple, allowEmpty, __selectionOwner, value: controlledValue, defaultValue, onChange, children, className, sx, "aria-label": ariaLabel, ...props }: {
2
2
  [x: string]: any;
3
3
  variant?: string;
4
4
  color?: string;
@@ -11,6 +11,8 @@ export function ButtonGroup({ variant, color, size, disabled, orientation, separ
11
11
  fullWidth?: boolean;
12
12
  equalWidth?: boolean;
13
13
  multiple?: boolean;
14
+ allowEmpty?: boolean;
15
+ __selectionOwner?: boolean;
14
16
  value: any;
15
17
  defaultValue: any;
16
18
  onChange: any;
@@ -0,0 +1 @@
1
+ export { CodeBlock, CopyButton, default } from "./CodeBlock";
@@ -5,7 +5,7 @@ export function ListItemDecorator({ children, size, isButton, onAction, ariaLabe
5
5
  onAction: any;
6
6
  ariaLabel: any;
7
7
  }): JSX.Element;
8
- export function ListItem({ children, startDecorator, endDecorator, startDecoratorIsButton, endDecoratorIsButton, onStartDecoratorAction, onEndDecoratorAction, startDecoratorAriaLabel, endDecoratorAriaLabel, size, variant, color, eyebrow, overline, secondary, clickable, disabled, selected, selectionMode, onSelect, onClick, bottomBorder, rightBorder, sx, ...props }: {
8
+ export function ListItem({ children, startDecorator, endDecorator, startDecoratorIsButton, endDecoratorIsButton, onStartDecoratorAction, onEndDecoratorAction, startDecoratorAriaLabel, endDecoratorAriaLabel, size, variant, color, eyebrow, overline, secondary, clickable, disabled, selected, selectionMode, onSelect, onClick, bottomBorder, rightBorder, component, sx, ...props }: {
9
9
  [x: string]: any;
10
10
  children: any;
11
11
  startDecorator: any;
@@ -30,6 +30,7 @@ export function ListItem({ children, startDecorator, endDecorator, startDecorato
30
30
  onClick: any;
31
31
  bottomBorder?: boolean;
32
32
  rightBorder?: boolean;
33
+ component?: string;
33
34
  sx?: {};
34
35
  }): JSX.Element;
35
36
  export function List({ children, items, variant, color, size, orientation, dividers, selectionMode, loading, skeletonRows, empty, error, selectedIndices, onSelectionChange, clickable, component, className, sx, ...props }: {
@@ -1,4 +1,4 @@
1
- export function Rail({ items, sections, value: controlledValue, defaultValue, onChange, expandable, expandedWidth, defaultExpanded, fabAction, labelStyle, size, className, sx, ...props }: {
1
+ export function Rail({ items, sections, value: controlledValue, defaultValue, onChange, expandable, expandedWidth, defaultExpanded, fabAction, labelStyle, variant, size, className, sx, ...props }: {
2
2
  [x: string]: any;
3
3
  items?: any[];
4
4
  sections: any;
@@ -10,6 +10,7 @@ export function Rail({ items, sections, value: controlledValue, defaultValue, on
10
10
  defaultExpanded?: boolean;
11
11
  fabAction: any;
12
12
  labelStyle?: string;
13
+ variant?: string;
13
14
  size?: string;
14
15
  className?: string;
15
16
  sx?: {};
@@ -1,4 +1,4 @@
1
- export function Slider({ theme, surface, variant, size, value, defaultValue, onChange, onChangeCommitted, min, max, step, marks, valueLabelDisplay, orientation, track, disabled, label, name, className, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ...props }: {
1
+ export function Slider({ theme, surface, variant, size, value, defaultValue, onChange, onChangeCommitted, min, max, step, marks, valueLabelDisplay, orientation, fill, track, disabled, label, name, className, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ...props }: {
2
2
  [x: string]: any;
3
3
  theme: any;
4
4
  surface: any;
@@ -14,6 +14,7 @@ export function Slider({ theme, surface, variant, size, value, defaultValue, onC
14
14
  marks?: boolean;
15
15
  valueLabelDisplay?: string;
16
16
  orientation?: string;
17
+ fill: any;
17
18
  track?: string;
18
19
  disabled?: boolean;
19
20
  label: any;
@@ -32,7 +33,7 @@ export function InfoSlider(p: any): JSX.Element;
32
33
  export function SuccessSlider(p: any): JSX.Element;
33
34
  export function WarningSlider(p: any): JSX.Element;
34
35
  export function ErrorSlider(p: any): JSX.Element;
35
- export function SliderInput({ theme, surface, variant, size, value, defaultValue, onChange, onChangeCommitted, min, max, step, marks, valueLabelDisplay, orientation, track, disabled, label, name, className, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ...props }: {
36
+ export function SliderInput({ theme, surface, variant, size, value, defaultValue, onChange, onChangeCommitted, min, max, step, marks, valueLabelDisplay, orientation, fill, track, disabled, label, name, className, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ...props }: {
36
37
  [x: string]: any;
37
38
  theme: any;
38
39
  surface: any;
@@ -48,6 +49,7 @@ export function SliderInput({ theme, surface, variant, size, value, defaultValue
48
49
  marks?: boolean;
49
50
  valueLabelDisplay?: string;
50
51
  orientation?: string;
52
+ fill: any;
51
53
  track?: string;
52
54
  disabled?: boolean;
53
55
  label: any;
@@ -57,7 +59,7 @@ export function SliderInput({ theme, surface, variant, size, value, defaultValue
57
59
  "aria-label": any;
58
60
  "aria-labelledby": any;
59
61
  }): JSX.Element;
60
- export function RangeSlider({ theme, surface, variant, size, value, defaultValue, onChange, onChangeCommitted, min, max, step, marks, valueLabelDisplay, orientation, track, disabled, label, name, className, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ...props }: {
62
+ export function RangeSlider({ theme, surface, variant, size, value, defaultValue, onChange, onChangeCommitted, min, max, step, marks, valueLabelDisplay, orientation, fill, track, disabled, label, name, className, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ...props }: {
61
63
  [x: string]: any;
62
64
  theme: any;
63
65
  surface: any;
@@ -73,6 +75,7 @@ export function RangeSlider({ theme, surface, variant, size, value, defaultValue
73
75
  marks?: boolean;
74
76
  valueLabelDisplay?: string;
75
77
  orientation?: string;
78
+ fill: any;
76
79
  track?: string;
77
80
  disabled?: boolean;
78
81
  label: any;
@@ -1,11 +1,14 @@
1
- /** @deprecated Use ButtonGroup. */
2
- export function ToggleButtonGroup({ variant, exclusive, onChange, ...props }: {
1
+ export function ToggleButtonGroup({ variant, color, exclusive, multiple, onChange, allowEmpty, separated, ...props }: {
3
2
  [x: string]: any;
4
- variant?: string;
5
- exclusive?: boolean;
3
+ variant: any;
4
+ color: any;
5
+ exclusive: any;
6
+ multiple: any;
6
7
  onChange: any;
8
+ allowEmpty?: boolean;
9
+ separated?: boolean;
7
10
  }): JSX.Element;
8
- /** @deprecated Use Button with a `value` prop as a ButtonGroup segment. */
11
+ /** A segment. Button already is one — this name ships publicly, so it stays. */
9
12
  export function ToggleButton(props: any): JSX.Element;
10
13
  export function DefaultToggleButtonGroup(p: any): JSX.Element;
11
14
  export namespace DefaultToggleButtonGroup {
@@ -0,0 +1,2 @@
1
+ export function ToggleButtonGroupShowcase(): JSX.Element;
2
+ export default ToggleButtonGroupShowcase;
@@ -0,0 +1,2 @@
1
+ export { ToggleButtonGroupShowcase } from "./ToggleButtonGroupShowcase";
2
+ export { ToggleButtonGroup, ToggleButton, DefaultToggleButtonGroup, PrimaryToggleButtonGroup, SecondaryToggleButtonGroup, TertiaryToggleButtonGroup, NeutralToggleButtonGroup, BlackWhiteToggleButtonGroup, InfoToggleButtonGroup, SuccessToggleButtonGroup, WarningToggleButtonGroup, ErrorToggleButtonGroup, default } from "./ToggleButtonGroup";
@@ -2,6 +2,27 @@ export function ContrastBadge({ ratio, threshold }: {
2
2
  ratio: any;
3
3
  threshold?: number;
4
4
  }): JSX.Element;
5
+ /**
6
+ * What the numbers below are a verdict ON.
7
+ *
8
+ * Every ratio in this tab is measured against the component AS CONFIGURED IN
9
+ * THE PLAYGROUND — the variant, color, size and surface currently selected
10
+ * there — not against the component in general. Change a control and these
11
+ * numbers change with it.
12
+ *
13
+ * Saying so matters because the two readings lead opposite ways. A FAIL here
14
+ * means "this combination fails", which is a thing the user chose and can
15
+ * change; read as "this component fails" it becomes a bug report against the
16
+ * library for a configuration nobody shipped. And a PASS on the default
17
+ * configuration says nothing about the eight palettes the user did not look
18
+ * at — so a tab that stated no scope was quietly inviting both mistakes.
19
+ *
20
+ * One component, one place: the wording lives here rather than in 54
21
+ * showcases, so it can be corrected once.
22
+ */
23
+ export function A11yScopeNote({ configuration }: {
24
+ configuration: any;
25
+ }): JSX.Element;
5
26
  export function A11yRow({ label, ratio, threshold, note }: {
6
27
  label: any;
7
28
  ratio: any;
@@ -202,6 +202,129 @@ export namespace CARD_DOC {
202
202
  let gotchas_2: string[];
203
203
  export { gotchas_2 as gotchas };
204
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
+ }
205
328
  export const COMPONENT_DOCS: {
206
329
  name: any;
207
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?: undefined;
69
+ note: string;
70
70
  } | {
71
71
  name: string;
72
72
  type: string;
73
73
  values: string[];
74
74
  default: string;
75
- note: string;
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
- note: string;
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;
@@ -246,6 +250,11 @@ export namespace BRANDICON_DOC {
246
250
  export { name_4 as name };
247
251
  let summary_4: string;
248
252
  export { summary_4 as summary };
253
+ let links_1: {
254
+ label: string;
255
+ href: string;
256
+ }[];
257
+ export { links_1 as links };
249
258
  let insteadUse_4: {
250
259
  when: string;
251
260
  use: string;
@@ -395,6 +404,10 @@ export const SURFACE_DOCS: ({
395
404
  } | {
396
405
  name: string;
397
406
  summary: string;
407
+ links: {
408
+ label: string;
409
+ href: string;
410
+ }[];
398
411
  insteadUse: {
399
412
  when: string;
400
413
  use: string;
@@ -1,48 +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 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
- }
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;