@omni-design/components 0.14.0 → 0.14.2
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/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/types/components/FieldGroup/FieldGroup.d.ts +16 -0
- package/dist/types/components/FieldGroup/index.d.ts +1 -0
- package/dist/types/components/FormHelper/FormHelper.d.ts +29 -0
- package/dist/types/components/FormHelper/index.d.ts +1 -0
- package/dist/types/components/FormLabel/FormLabel.d.ts +16 -0
- package/dist/types/components/FormLabel/index.d.ts +1 -0
- package/dist/types/components/InputMessage/InputMessage.d.ts +20 -0
- package/dist/types/components/InputMessage/index.d.ts +1 -0
- package/dist/types/components/Player/Player.d.ts +33 -0
- package/dist/types/components/Player/index.d.ts +1 -0
- package/dist/types/components/Radio/Radio.d.ts +2 -1
- package/dist/types/components/Select/Select.d.ts +2 -1
- package/dist/types/components/Sheet/Sheet.d.ts +12 -0
- package/dist/types/components/Sheet/SheetShowcase.d.ts +2 -0
- package/dist/types/components/Sheet/index.d.ts +2 -0
- package/dist/types/components/SpeedDial/SpeedDial.d.ts +3 -1
- package/dist/types/components/Swatch/Swatch.d.ts +2 -1
- package/dist/types/components/TextAreaField/TextAreaField.d.ts +11 -0
- package/dist/types/components/TextAreaField/index.d.ts +1 -0
- package/dist/types/components/Toolbar/Toolbar.d.ts +4 -1
- package/dist/types/components/TransferList/TransferList.d.ts +17 -0
- package/dist/types/components/TransferList/TransferListShowcase.d.ts +2 -0
- package/dist/types/components/TransferList/index.d.ts +2 -0
- package/dist/types/components/Typography/Typography.d.ts +11 -0
- package/dist/types/components/Typography/index.d.ts +1 -1
- package/dist/types/components/colorChoices.d.ts +16 -0
- package/dist/types/components/index.d.ts +7 -1
- package/dist/types/docs/DocPanels.d.ts +21 -0
- package/dist/types/docs/components.d.ts +67 -12
- package/dist/types/docs/componentsForms.d.ts +292 -124
- package/dist/types/docs/componentsNav.d.ts +23 -11
- package/dist/types/docs/componentsRest.d.ts +346 -2
- package/dist/types/docs/componentsSurfaces.d.ts +262 -71
- package/dist/types/docs/examples.d.ts +21 -0
- package/dist/types/docs/examples.lead.d.ts +4 -0
- package/dist/types/docs/samples.core.d.ts +68 -39
- package/dist/types/docs/samples.forms.d.ts +42 -22
- package/dist/types/docs/samples.nav.d.ts +13 -6
- package/dist/types/docs/samples.surfaces.d.ts +40 -12
- package/docs/figma-parity.md +143 -0
- package/package.json +1 -1
- package/public/styles/base.css +5 -0
- package/public/styles/theme.json +1 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function FieldGroup({ children, label, type, moreInfo, helperText, showHelper, validation, validationMessage, orientation, disabled, className, sx, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
children: any;
|
|
4
|
+
label: any;
|
|
5
|
+
type?: string;
|
|
6
|
+
moreInfo: any;
|
|
7
|
+
helperText: any;
|
|
8
|
+
showHelper?: boolean;
|
|
9
|
+
validation?: string;
|
|
10
|
+
validationMessage: any;
|
|
11
|
+
orientation?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
sx?: {};
|
|
15
|
+
}): JSX.Element;
|
|
16
|
+
export default FieldGroup;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FieldGroup, default } from "./FieldGroup";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ids a field should hand to its control, already in announcement order.
|
|
3
|
+
*
|
|
4
|
+
* Returns `{ helperId, messageId, describedBy }`. `describedBy` is undefined
|
|
5
|
+
* when there is nothing to describe, so it can be spread without producing an
|
|
6
|
+
* empty attribute.
|
|
7
|
+
*/
|
|
8
|
+
export function useFormHelperIds({ showHelper, validation }?: {
|
|
9
|
+
showHelper?: boolean;
|
|
10
|
+
validation?: string;
|
|
11
|
+
}): {
|
|
12
|
+
helperId: string;
|
|
13
|
+
messageId: string;
|
|
14
|
+
describedBy: string;
|
|
15
|
+
};
|
|
16
|
+
export function FormHelper({ helperText, showHelper, validation, validationMessage, withIcon, helperId, messageId, className, sx, ...props }: {
|
|
17
|
+
[x: string]: any;
|
|
18
|
+
helperText: any;
|
|
19
|
+
showHelper?: boolean;
|
|
20
|
+
validation?: string;
|
|
21
|
+
validationMessage: any;
|
|
22
|
+
withIcon?: boolean;
|
|
23
|
+
helperId: any;
|
|
24
|
+
messageId: any;
|
|
25
|
+
className?: string;
|
|
26
|
+
sx?: {};
|
|
27
|
+
}): JSX.Element;
|
|
28
|
+
export const FORM_HELPER_VALIDATIONS: string[];
|
|
29
|
+
export default FormHelper;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FormHelper, FORM_HELPER_VALIDATIONS, useFormHelperIds, default } from "./FormHelper";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function FormLabel({ children, htmlFor, type, as, moreInfo, disabled, className, sx, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
children: any;
|
|
4
|
+
htmlFor: any;
|
|
5
|
+
type?: string;
|
|
6
|
+
as?: string;
|
|
7
|
+
moreInfo: any;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
sx?: {};
|
|
11
|
+
}): JSX.Element;
|
|
12
|
+
export namespace FORM_LABEL_MARKERS {
|
|
13
|
+
let required: string;
|
|
14
|
+
let optional: string;
|
|
15
|
+
}
|
|
16
|
+
export default FormLabel;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FormLabel, FORM_LABEL_MARKERS, default } from "./FormLabel";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export function InputMessage({ children, type, withIcon, className, sx, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
children: any;
|
|
4
|
+
type?: string;
|
|
5
|
+
withIcon?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
sx?: {};
|
|
8
|
+
}): JSX.Element;
|
|
9
|
+
export namespace MESSAGE_ICONS {
|
|
10
|
+
export { ErrorIcon as error };
|
|
11
|
+
export { WarningIcon as warning };
|
|
12
|
+
export { CheckCircleIcon as success };
|
|
13
|
+
export { InfoIcon as info };
|
|
14
|
+
}
|
|
15
|
+
export const INPUT_MESSAGE_TYPES: string[];
|
|
16
|
+
export default InputMessage;
|
|
17
|
+
import ErrorIcon from '@mui/icons-material/Error';
|
|
18
|
+
import WarningIcon from '@mui/icons-material/Warning';
|
|
19
|
+
import CheckCircleIcon from '@mui/icons-material/CheckCircle';
|
|
20
|
+
import InfoIcon from '@mui/icons-material/Info';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InputMessage, INPUT_MESSAGE_TYPES, MESSAGE_ICONS, default } from "./InputMessage";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Seconds as m:ss, or h:mm:ss once it runs past an hour.
|
|
3
|
+
*
|
|
4
|
+
* Written out rather than taken from Intl, because `Intl.NumberFormat` cannot
|
|
5
|
+
* do it and `Date` would need a timezone to not matter — and a track is a
|
|
6
|
+
* DURATION, not a time of day. The hour branch exists because a podcast is the
|
|
7
|
+
* ordinary case for a player like this, and 73:04 is not a readable number.
|
|
8
|
+
*/
|
|
9
|
+
export function formatTime(seconds: any): string;
|
|
10
|
+
export function Player({ title, subtitle, avatarSrc, avatarInitials, position, defaultPosition, duration, onSeek, playing, defaultPlaying, onPlayPause, onPrevious, onNext, variant, size, disabled, showTime, className, sx, "aria-label": ariaLabel, ...props }: {
|
|
11
|
+
[x: string]: any;
|
|
12
|
+
title: any;
|
|
13
|
+
subtitle: any;
|
|
14
|
+
avatarSrc: any;
|
|
15
|
+
avatarInitials: any;
|
|
16
|
+
position: any;
|
|
17
|
+
defaultPosition?: number;
|
|
18
|
+
duration?: number;
|
|
19
|
+
onSeek: any;
|
|
20
|
+
playing: any;
|
|
21
|
+
defaultPlaying?: boolean;
|
|
22
|
+
onPlayPause: any;
|
|
23
|
+
onPrevious: any;
|
|
24
|
+
onNext: any;
|
|
25
|
+
variant?: string;
|
|
26
|
+
size?: string;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
showTime?: boolean;
|
|
29
|
+
className?: string;
|
|
30
|
+
sx?: {};
|
|
31
|
+
"aria-label"?: string;
|
|
32
|
+
}): JSX.Element;
|
|
33
|
+
export default Player;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Player, formatTime, default } from "./Player";
|
|
@@ -18,13 +18,14 @@ export function Radio({ theme, surface, color, size, label, labelPlacement, chec
|
|
|
18
18
|
"aria-describedby": any;
|
|
19
19
|
inputProps?: {};
|
|
20
20
|
}): JSX.Element;
|
|
21
|
-
export function RadioGroup({ color, size, label, options, value, onChange, orientation, labelPlacement, disabled, spacing, name, className, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, ...props }: {
|
|
21
|
+
export function RadioGroup({ color, size, label, options, value, defaultValue, onChange, orientation, labelPlacement, disabled, spacing, name, className, sx, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, ...props }: {
|
|
22
22
|
[x: string]: any;
|
|
23
23
|
color?: string;
|
|
24
24
|
size?: string;
|
|
25
25
|
label: any;
|
|
26
26
|
options?: any[];
|
|
27
27
|
value: any;
|
|
28
|
+
defaultValue: any;
|
|
28
29
|
onChange: any;
|
|
29
30
|
orientation?: string;
|
|
30
31
|
labelPlacement?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function Select({ options, value: controlledValue, defaultValue, onChange, label, labelPosition, size, variant, color, selectionStyle, mode, placeholder, showDividers, showColorLabels, startDecoration, disabled, fullWidth, className, sx, ...props }: {
|
|
1
|
+
export function Select({ options, value: controlledValue, defaultValue, onChange, label, labelPosition, size, variant, color, selectionStyle, mode, placeholder, showDividers, showColorLabels, startDecoration, disabled, fullWidth, minWidth, className, sx, ...props }: {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
options?: any[];
|
|
4
4
|
value: any;
|
|
@@ -17,6 +17,7 @@ export function Select({ options, value: controlledValue, defaultValue, onChange
|
|
|
17
17
|
startDecoration: any;
|
|
18
18
|
disabled?: boolean;
|
|
19
19
|
fullWidth?: boolean;
|
|
20
|
+
minWidth?: number;
|
|
20
21
|
className?: string;
|
|
21
22
|
sx?: {};
|
|
22
23
|
}): JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function Sheet({ children, surface, variant, color, elevated, component, className, sx, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
children: any;
|
|
4
|
+
surface?: string;
|
|
5
|
+
variant: any;
|
|
6
|
+
color?: string;
|
|
7
|
+
elevated?: boolean;
|
|
8
|
+
component?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
sx?: {};
|
|
11
|
+
}): JSX.Element;
|
|
12
|
+
export default Sheet;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
export function SpeedDial({ actions, variant, color, direction, speed, showTooltips, open: controlledOpen, onOpen, onClose, icon, ariaLabel, className, sx, ...props }: {
|
|
1
|
+
export function SpeedDial({ actions, variant, color, direction, size, speed, openOnHover, showTooltips, open: controlledOpen, onOpen, onClose, icon, ariaLabel, className, sx, ...props }: {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
actions?: any[];
|
|
4
4
|
variant?: string;
|
|
5
5
|
color?: string;
|
|
6
6
|
direction?: string;
|
|
7
|
+
size?: string;
|
|
7
8
|
speed?: number;
|
|
9
|
+
openOnHover?: boolean;
|
|
8
10
|
showTooltips?: boolean;
|
|
9
11
|
open: any;
|
|
10
12
|
onOpen: any;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export function Swatch({ color, label, size, selected, disabled, radio, onClick, className, sx, "aria-label": ariaLabel, ...props }: {
|
|
1
|
+
export function Swatch({ color, label, size, fit, selected, disabled, radio, onClick, className, sx, "aria-label": ariaLabel, ...props }: {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
color: any;
|
|
4
4
|
label: any;
|
|
5
5
|
size?: string;
|
|
6
|
+
fit?: string;
|
|
6
7
|
selected?: boolean;
|
|
7
8
|
disabled?: boolean;
|
|
8
9
|
radio?: boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export function TextAreaField({ label, type, moreInfo, id: idProp, disabled, className, sx, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
label: any;
|
|
4
|
+
type?: string;
|
|
5
|
+
moreInfo: any;
|
|
6
|
+
id: any;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
sx?: {};
|
|
10
|
+
}): JSX.Element;
|
|
11
|
+
export default TextAreaField;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TextAreaField, default } from "./TextAreaField";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function Toolbar({ items, value: controlledValue, defaultValue, onChange, type, orientation, color, fab, className, sx, ...props }: {
|
|
1
|
+
export function Toolbar({ items, value: controlledValue, defaultValue, onChange, type, orientation, color, surface, fab, className, sx, ...props }: {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
items?: any[];
|
|
4
4
|
value: any;
|
|
@@ -7,8 +7,11 @@ export function Toolbar({ items, value: controlledValue, defaultValue, onChange,
|
|
|
7
7
|
type?: string;
|
|
8
8
|
orientation?: string;
|
|
9
9
|
color?: string;
|
|
10
|
+
surface: any;
|
|
10
11
|
fab: any;
|
|
11
12
|
className?: string;
|
|
12
13
|
sx?: {};
|
|
13
14
|
}): JSX.Element;
|
|
15
|
+
export const TOOLBAR_COLORS: string[];
|
|
16
|
+
export const TOOLBAR_SURFACES: string[];
|
|
14
17
|
export default Toolbar;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export function TransferList({ theme, surface, leftItems: controlledLeft, rightItems: controlledRight, defaultLeftItems, defaultRightItems, onChange, leftTitle, rightTitle, mode, disabled, className, sx, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
theme: any;
|
|
4
|
+
surface: any;
|
|
5
|
+
leftItems: any;
|
|
6
|
+
rightItems: any;
|
|
7
|
+
defaultLeftItems?: any[];
|
|
8
|
+
defaultRightItems?: any[];
|
|
9
|
+
onChange: any;
|
|
10
|
+
leftTitle?: string;
|
|
11
|
+
rightTitle?: string;
|
|
12
|
+
mode?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
className?: string;
|
|
15
|
+
sx?: {};
|
|
16
|
+
}): JSX.Element;
|
|
17
|
+
export default TransferList;
|
|
@@ -271,6 +271,16 @@ export const STYLE_MAP: {
|
|
|
271
271
|
defaultColor: string;
|
|
272
272
|
defaultWidth: string;
|
|
273
273
|
};
|
|
274
|
+
'mobile-nav-label': {
|
|
275
|
+
component: string;
|
|
276
|
+
fontFamily: string;
|
|
277
|
+
fontSize: string;
|
|
278
|
+
fontWeight: string;
|
|
279
|
+
lineHeight: string;
|
|
280
|
+
letterSpacing: string;
|
|
281
|
+
defaultColor: string;
|
|
282
|
+
defaultWidth: string;
|
|
283
|
+
};
|
|
274
284
|
'label-extra-small': {
|
|
275
285
|
component: string;
|
|
276
286
|
fontFamily: string;
|
|
@@ -520,6 +530,7 @@ export function BodyLargeSemibold(p: any): JSX.Element;
|
|
|
520
530
|
export function BodyLargeBold(p: any): JSX.Element;
|
|
521
531
|
export function Caption(p: any): JSX.Element;
|
|
522
532
|
export function CaptionBold(p: any): JSX.Element;
|
|
533
|
+
export function MobileNavLabel(p: any): JSX.Element;
|
|
523
534
|
export function LabelExtraSmall(p: any): JSX.Element;
|
|
524
535
|
export function LabelSmall(p: any): JSX.Element;
|
|
525
536
|
export function Label(p: any): JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { TypographyShowcase } from "./TypographyShowcase";
|
|
2
|
-
export { TEXT_COLORS, HEADER_COLORS, Typography, TYPOGRAPHY_STYLES, STYLE_TOKENS, STYLE_DEFAULT_COLOR, CAP_HEIGHT_TRIM, H1, H2, H3, H4, H5, H6, Heading, DisplayLarge, DisplayMedium, DisplaySmall, AltDisplayLarge, AltDisplayMedium, AltDisplaySmall, Subtitle, SubtitleSmall, SubtitleMedium, SubtitleLarge, Subtitle1, Subtitle2, Body, BodySmall, BodyLarge, BodySemibold, BodyBold, BodySmallSemibold, BodySmallBold, BodyLargeSemibold, BodyLargeBold, Body1, Body2, Label, LabelSmall, LabelLarge, LabelExtraSmall, Caption, CaptionBold, Legal, LegalSemibold, Button, ButtonSmall, ButtonExtraSmall, Eyebrow, EyebrowSmall, EyebrowMedium, EyebrowLarge, Overline, OverlineSmall, OverlineMedium, OverlineLarge, NumberLarge, NumberMedium, NumberSmall, default } from "./Typography";
|
|
2
|
+
export { TEXT_COLORS, HEADER_COLORS, Typography, TYPOGRAPHY_STYLES, STYLE_TOKENS, STYLE_DEFAULT_COLOR, CAP_HEIGHT_TRIM, H1, H2, H3, H4, H5, H6, Heading, DisplayLarge, DisplayMedium, DisplaySmall, AltDisplayLarge, AltDisplayMedium, AltDisplaySmall, Subtitle, SubtitleSmall, SubtitleMedium, SubtitleLarge, Subtitle1, Subtitle2, Body, BodySmall, BodyLarge, BodySemibold, BodyBold, BodySmallSemibold, BodySmallBold, BodyLargeSemibold, BodyLargeBold, Body1, Body2, Label, LabelSmall, LabelLarge, LabelExtraSmall, MobileNavLabel, Caption, CaptionBold, Legal, LegalSemibold, Button, ButtonSmall, ButtonExtraSmall, Eyebrow, EyebrowSmall, EyebrowMedium, EyebrowLarge, Overline, OverlineSmall, OverlineMedium, OverlineLarge, NumberLarge, NumberMedium, NumberSmall, default } from "./Typography";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** The colors a playground may offer on `theme`. Null means "no restriction". */
|
|
2
|
+
export function allowedColors(theme: any): string[];
|
|
3
|
+
/**
|
|
4
|
+
* Filter a showcase's COLOR_GROUPS for the surface it is being viewed on.
|
|
5
|
+
* Groups that empty out are dropped rather than left as a bare heading.
|
|
6
|
+
*/
|
|
7
|
+
export function colorGroupsFor(groups: any, theme: any): any;
|
|
8
|
+
/**
|
|
9
|
+
* Move the selection somewhere legal when the surface changes under it.
|
|
10
|
+
*
|
|
11
|
+
* Without this the picker hides a color but the PREVIEW keeps rendering it,
|
|
12
|
+
* so the page shows a button the controls say is not available — and the one
|
|
13
|
+
* swatch that looks selected is not on screen.
|
|
14
|
+
*/
|
|
15
|
+
export function useRestrictedColor(color: any, setColor: any, theme: any): void;
|
|
16
|
+
export const STATE_THEMES: string[];
|
|
@@ -9,6 +9,8 @@ export { Button } from "./Button";
|
|
|
9
9
|
export { ButtonGroup } from "./ButtonGroup";
|
|
10
10
|
export { ToggleButton } from "./ToggleButton";
|
|
11
11
|
export { Input as TextInput } from "./Input";
|
|
12
|
+
export { FieldGroup } from "./FieldGroup";
|
|
13
|
+
export { TextAreaField } from "./TextAreaField";
|
|
12
14
|
export { Checkbox } from "./Checkbox";
|
|
13
15
|
export { Chip } from "./Chip";
|
|
14
16
|
export { Container } from "./Container";
|
|
@@ -30,7 +32,7 @@ export { OmniStack as DynoStack } from "./Stack/Stack";
|
|
|
30
32
|
export { OmniTreeView as DynoTreeView } from "./TreeView/TreeView";
|
|
31
33
|
export * as chartGeometry from "./Charts/geometry";
|
|
32
34
|
export { StateMessage } from "./StateMessage";
|
|
33
|
-
export { Typography, CAP_HEIGHT_TRIM, Heading, DisplayLarge, DisplayMedium, AltDisplayLarge, AltDisplayMedium, AltDisplaySmall, DisplaySmall, H1, H2, H3, H4, H5, H6, Body, Body1, Body2, BodySemibold, BodyBold, BodySmall, BodySmallSemibold, BodySmallBold, BodyLarge, BodyLargeSemibold, BodyLargeBold, Caption, CaptionBold, Subtitle, Subtitle1, Subtitle2, SubtitleSmall, SubtitleMedium, SubtitleLarge, Legal, LegalSemibold, Label, LabelExtraSmall, LabelSmall, LabelLarge, Eyebrow, EyebrowSmall, EyebrowMedium, EyebrowLarge, Overline, OverlineSmall, OverlineMedium, OverlineLarge, NumberSmall, NumberMedium, NumberLarge, Button as ButtonText, ButtonSmall } from "./Typography";
|
|
35
|
+
export { Typography, CAP_HEIGHT_TRIM, Heading, DisplayLarge, DisplayMedium, AltDisplayLarge, AltDisplayMedium, AltDisplaySmall, DisplaySmall, H1, H2, H3, H4, H5, H6, Body, Body1, Body2, BodySemibold, BodyBold, BodySmall, BodySmallSemibold, BodySmallBold, BodyLarge, BodyLargeSemibold, BodyLargeBold, Caption, CaptionBold, Subtitle, Subtitle1, Subtitle2, SubtitleSmall, SubtitleMedium, SubtitleLarge, Legal, LegalSemibold, Label, LabelExtraSmall, MobileNavLabel, LabelSmall, LabelLarge, Eyebrow, EyebrowSmall, EyebrowMedium, EyebrowLarge, Overline, OverlineSmall, OverlineMedium, OverlineLarge, NumberSmall, NumberMedium, NumberLarge, Button as ButtonText, ButtonSmall } from "./Typography";
|
|
34
36
|
export { Icon, IconShowcase } from "./Icon";
|
|
35
37
|
export { Fab, FabShowcase } from "./Fab";
|
|
36
38
|
export { Rail, RailShowcase } from "./Rail";
|
|
@@ -38,9 +40,13 @@ export { Toolbar, ToolbarShowcase } from "./Toolbar";
|
|
|
38
40
|
export { NumberField, NumberFieldShowcase } from "./NumberField";
|
|
39
41
|
export { ToggleButtonGroup, DefaultToggleButtonGroup, PrimaryToggleButtonGroup, SecondaryToggleButtonGroup, TertiaryToggleButtonGroup, NeutralToggleButtonGroup, BlackWhiteToggleButtonGroup, InfoToggleButtonGroup, SuccessToggleButtonGroup, WarningToggleButtonGroup, ErrorToggleButtonGroup } from "./ToggleButtonGroup/ToggleButtonGroup";
|
|
40
42
|
export { TextField, EmailTextField, PasswordTextField, SearchTextField, NumberTextField, PhoneTextField, URLTextField, TextArea, TextFieldGroup } from "./TextField";
|
|
43
|
+
export { FormLabel, FORM_LABEL_MARKERS } from "./FormLabel";
|
|
44
|
+
export { InputMessage, INPUT_MESSAGE_TYPES, MESSAGE_ICONS } from "./InputMessage";
|
|
45
|
+
export { FormHelper, FORM_HELPER_VALIDATIONS, useFormHelperIds } from "./FormHelper";
|
|
41
46
|
export { Select, SelectShowcase } from "./Select";
|
|
42
47
|
export { Autocomplete, AutocompleteShowcase } from "./Autocomplete";
|
|
43
48
|
export { Radio, RadioGroup, RadioInput } from "./Radio";
|
|
49
|
+
export { Player, formatTime } from "./Player";
|
|
44
50
|
export { SwitchInput, SwitchInput as Switch } from "./Switch";
|
|
45
51
|
export { SliderInput, RangeSlider, SliderInput as Slider } from "./Slider";
|
|
46
52
|
export { RatingInput, RatingInput as Rating } from "./Rating";
|
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
export function docFor(component: any): {
|
|
2
|
+
name: string;
|
|
3
|
+
summary: string;
|
|
4
|
+
insteadUse: {
|
|
5
|
+
when: string;
|
|
6
|
+
use: string;
|
|
7
|
+
}[];
|
|
8
|
+
props: ({
|
|
9
|
+
name: string;
|
|
10
|
+
type: string;
|
|
11
|
+
default: string;
|
|
12
|
+
note?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
name: string;
|
|
15
|
+
type: string;
|
|
16
|
+
default: string;
|
|
17
|
+
note: string;
|
|
18
|
+
})[];
|
|
19
|
+
composition: string[];
|
|
20
|
+
accessibility: string[];
|
|
21
|
+
gotchas: string[];
|
|
22
|
+
} | {
|
|
2
23
|
name: any;
|
|
3
24
|
summary: any;
|
|
4
25
|
insteadUse: any;
|
|
@@ -265,7 +265,7 @@ export namespace BUTTON_GROUP_DOC {
|
|
|
265
265
|
let gotchas_3: string[];
|
|
266
266
|
export { gotchas_3 as gotchas };
|
|
267
267
|
}
|
|
268
|
-
export namespace
|
|
268
|
+
export namespace TOGGLE_BUTTON_DOC {
|
|
269
269
|
let name_4: string;
|
|
270
270
|
export { name_4 as name };
|
|
271
271
|
let summary_4: string;
|
|
@@ -280,6 +280,40 @@ export namespace TOGGLE_BUTTON_GROUP_DOC {
|
|
|
280
280
|
type: string;
|
|
281
281
|
default: string;
|
|
282
282
|
note: string;
|
|
283
|
+
} | {
|
|
284
|
+
name: string;
|
|
285
|
+
type: string;
|
|
286
|
+
default: string;
|
|
287
|
+
note?: undefined;
|
|
288
|
+
})[];
|
|
289
|
+
export { props_4 as props };
|
|
290
|
+
let states_4: {
|
|
291
|
+
state: string;
|
|
292
|
+
setBy: string;
|
|
293
|
+
}[];
|
|
294
|
+
export { states_4 as states };
|
|
295
|
+
let composition_4: string[];
|
|
296
|
+
export { composition_4 as composition };
|
|
297
|
+
let accessibility_4: string[];
|
|
298
|
+
export { accessibility_4 as accessibility };
|
|
299
|
+
let gotchas_4: string[];
|
|
300
|
+
export { gotchas_4 as gotchas };
|
|
301
|
+
}
|
|
302
|
+
export namespace TOGGLE_BUTTON_GROUP_DOC {
|
|
303
|
+
let name_5: string;
|
|
304
|
+
export { name_5 as name };
|
|
305
|
+
let summary_5: string;
|
|
306
|
+
export { summary_5 as summary };
|
|
307
|
+
let insteadUse_5: {
|
|
308
|
+
when: string;
|
|
309
|
+
use: string;
|
|
310
|
+
}[];
|
|
311
|
+
export { insteadUse_5 as insteadUse };
|
|
312
|
+
let props_5: ({
|
|
313
|
+
name: string;
|
|
314
|
+
type: string;
|
|
315
|
+
default: string;
|
|
316
|
+
note: string;
|
|
283
317
|
values?: undefined;
|
|
284
318
|
} | {
|
|
285
319
|
name: string;
|
|
@@ -294,8 +328,8 @@ export namespace TOGGLE_BUTTON_GROUP_DOC {
|
|
|
294
328
|
note?: undefined;
|
|
295
329
|
values?: undefined;
|
|
296
330
|
})[];
|
|
297
|
-
export {
|
|
298
|
-
let
|
|
331
|
+
export { props_5 as props };
|
|
332
|
+
let states_5: ({
|
|
299
333
|
state: string;
|
|
300
334
|
setBy: string;
|
|
301
335
|
note: string;
|
|
@@ -304,7 +338,7 @@ export namespace TOGGLE_BUTTON_GROUP_DOC {
|
|
|
304
338
|
setBy: string;
|
|
305
339
|
note?: undefined;
|
|
306
340
|
})[];
|
|
307
|
-
export {
|
|
341
|
+
export { states_5 as states };
|
|
308
342
|
let theming_4: {
|
|
309
343
|
collection: string;
|
|
310
344
|
inCode: string;
|
|
@@ -318,14 +352,35 @@ export namespace TOGGLE_BUTTON_GROUP_DOC {
|
|
|
318
352
|
figma: string;
|
|
319
353
|
}[];
|
|
320
354
|
export { tokens_4 as tokens };
|
|
321
|
-
let
|
|
322
|
-
export {
|
|
323
|
-
let
|
|
324
|
-
export {
|
|
325
|
-
let
|
|
326
|
-
export {
|
|
355
|
+
let composition_5: string[];
|
|
356
|
+
export { composition_5 as composition };
|
|
357
|
+
let accessibility_5: string[];
|
|
358
|
+
export { accessibility_5 as accessibility };
|
|
359
|
+
let gotchas_5: string[];
|
|
360
|
+
export { gotchas_5 as gotchas };
|
|
327
361
|
}
|
|
328
|
-
export const COMPONENT_DOCS: {
|
|
362
|
+
export const COMPONENT_DOCS: ({
|
|
363
|
+
name: string;
|
|
364
|
+
summary: string;
|
|
365
|
+
insteadUse: {
|
|
366
|
+
when: string;
|
|
367
|
+
use: string;
|
|
368
|
+
}[];
|
|
369
|
+
props: ({
|
|
370
|
+
name: string;
|
|
371
|
+
type: string;
|
|
372
|
+
default: string;
|
|
373
|
+
note?: undefined;
|
|
374
|
+
} | {
|
|
375
|
+
name: string;
|
|
376
|
+
type: string;
|
|
377
|
+
default: string;
|
|
378
|
+
note: string;
|
|
379
|
+
})[];
|
|
380
|
+
composition: string[];
|
|
381
|
+
accessibility: string[];
|
|
382
|
+
gotchas: string[];
|
|
383
|
+
} | {
|
|
329
384
|
name: any;
|
|
330
385
|
summary: any;
|
|
331
386
|
insteadUse: any;
|
|
@@ -340,4 +395,4 @@ export const COMPONENT_DOCS: {
|
|
|
340
395
|
composition: any;
|
|
341
396
|
accessibility: any;
|
|
342
397
|
gotchas: any;
|
|
343
|
-
}[];
|
|
398
|
+
})[];
|