@superdispatch/ui-lab 0.21.5 → 0.21.6
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-types/index.d.ts +308 -308
- package/package.json +34 -34
package/dist-types/index.d.ts
CHANGED
|
@@ -8,368 +8,368 @@ import { ButtonBaseProps, AvatarProps, IconButtonProps, TooltipProps } from '@ma
|
|
|
8
8
|
import { FileRejection } from 'react-dropzone';
|
|
9
9
|
import { StyledComponent, DefaultTheme } from 'styled-components';
|
|
10
10
|
|
|
11
|
-
declare type AlertSeverityProp = 'positive' | 'info' | 'caution' | 'critical';
|
|
12
|
-
interface AlertProps {
|
|
13
|
-
onClose?: () => void;
|
|
14
|
-
children?: ReactNode;
|
|
15
|
-
severity?: AlertSeverityProp;
|
|
16
|
-
}
|
|
11
|
+
declare type AlertSeverityProp = 'positive' | 'info' | 'caution' | 'critical';
|
|
12
|
+
interface AlertProps {
|
|
13
|
+
onClose?: () => void;
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
severity?: AlertSeverityProp;
|
|
16
|
+
}
|
|
17
17
|
declare const Alert: ForwardRefExoticComponent<AlertProps & RefAttributes<HTMLDivElement>>;
|
|
18
18
|
|
|
19
|
-
declare type BorderPlacement = 'top' | 'bottom';
|
|
20
|
-
declare type CustomerTransitionProps = CSSTransitionProps<HTMLDivElement> & {
|
|
21
|
-
className?: string;
|
|
22
|
-
border?: BorderPlacement;
|
|
23
|
-
};
|
|
24
|
-
declare type BannerProps = Omit<CustomerTransitionProps, 'timeout' | 'className' | 'classNames'>;
|
|
19
|
+
declare type BorderPlacement = 'top' | 'bottom';
|
|
20
|
+
declare type CustomerTransitionProps = CSSTransitionProps<HTMLDivElement> & {
|
|
21
|
+
className?: string;
|
|
22
|
+
border?: BorderPlacement;
|
|
23
|
+
};
|
|
24
|
+
declare type BannerProps = Omit<CustomerTransitionProps, 'timeout' | 'className' | 'classNames'>;
|
|
25
25
|
declare const Banner: ForwardRefExoticComponent<Pick<BannerProps, string | number> & RefAttributes<CSSTransition<HTMLDivElement>>>;
|
|
26
26
|
|
|
27
|
-
declare type MarginProp = 'auto' | SpaceProp | NegativeSpaceProp;
|
|
28
|
-
declare type BorderRadiusProp = 'none' | 'small' | 'medium';
|
|
29
|
-
declare type BorderWidthProp = 'none' | 'small' | 'medium' | 'large';
|
|
30
|
-
interface BoxRules {
|
|
31
|
-
display?: ResponsiveProp<Property.Display>;
|
|
32
|
-
color?: ResponsiveProp<ColorProp>;
|
|
33
|
-
backgroundColor?: ResponsiveProp<ColorProp>;
|
|
34
|
-
borderColor?: ResponsiveProp<ColorProp>;
|
|
35
|
-
borderTopColor?: ResponsiveProp<ColorProp>;
|
|
36
|
-
borderLeftColor?: ResponsiveProp<ColorProp>;
|
|
37
|
-
borderRightColor?: ResponsiveProp<ColorProp>;
|
|
38
|
-
borderBottomColor?: ResponsiveProp<ColorProp>;
|
|
39
|
-
borderWidth?: ResponsiveProp<BorderWidthProp>;
|
|
40
|
-
borderTopWidth?: ResponsiveProp<BorderWidthProp>;
|
|
41
|
-
borderLeftWidth?: ResponsiveProp<BorderWidthProp>;
|
|
42
|
-
borderRightWidth?: ResponsiveProp<BorderWidthProp>;
|
|
43
|
-
borderBottomWidth?: ResponsiveProp<BorderWidthProp>;
|
|
44
|
-
padding?: ResponsiveProp<SpaceProp>;
|
|
45
|
-
paddingTop?: ResponsiveProp<SpaceProp>;
|
|
46
|
-
paddingLeft?: ResponsiveProp<SpaceProp>;
|
|
47
|
-
paddingRight?: ResponsiveProp<SpaceProp>;
|
|
48
|
-
paddingBottom?: ResponsiveProp<SpaceProp>;
|
|
49
|
-
margin?: ResponsiveProp<MarginProp>;
|
|
50
|
-
marginTop?: ResponsiveProp<MarginProp>;
|
|
51
|
-
marginLeft?: ResponsiveProp<MarginProp>;
|
|
52
|
-
marginRight?: ResponsiveProp<MarginProp>;
|
|
53
|
-
marginBottom?: ResponsiveProp<MarginProp>;
|
|
54
|
-
borderRadius?: ResponsiveProp<BorderRadiusProp>;
|
|
55
|
-
borderTopLeftRadius?: ResponsiveProp<BorderRadiusProp>;
|
|
56
|
-
borderTopRightRadius?: ResponsiveProp<BorderRadiusProp>;
|
|
57
|
-
borderBottomLeftRadius?: ResponsiveProp<BorderRadiusProp>;
|
|
58
|
-
borderBottomRightRadius?: ResponsiveProp<BorderRadiusProp>;
|
|
59
|
-
fontSize?: ResponsiveProp<Property.FontSize>;
|
|
60
|
-
width?: ResponsiveProp<Property.Width>;
|
|
61
|
-
maxWidth?: ResponsiveProp<Property.MaxWidth>;
|
|
62
|
-
minWidth?: ResponsiveProp<Property.MinWidth>;
|
|
63
|
-
height?: ResponsiveProp<Property.Height>;
|
|
64
|
-
maxHeight?: ResponsiveProp<Property.MaxHeight>;
|
|
65
|
-
minHeight?: ResponsiveProp<Property.MinHeight>;
|
|
66
|
-
overflow?: ResponsiveProp<Property.Overflow>;
|
|
67
|
-
overflowY?: ResponsiveProp<Property.OverflowY>;
|
|
68
|
-
overflowX?: ResponsiveProp<Property.OverflowX>;
|
|
69
|
-
top?: ResponsiveProp<Property.Top>;
|
|
70
|
-
left?: ResponsiveProp<Property.Left>;
|
|
71
|
-
right?: ResponsiveProp<Property.Right>;
|
|
72
|
-
bottom?: ResponsiveProp<Property.Bottom>;
|
|
73
|
-
position?: ResponsiveProp<Property.Position>;
|
|
74
|
-
}
|
|
75
|
-
interface BoxProps extends BoxRules {
|
|
76
|
-
ref?: Ref<unknown>;
|
|
77
|
-
as?: keyof JSX.IntrinsicElements;
|
|
78
|
-
role?: string;
|
|
79
|
-
children?: ReactNode;
|
|
80
|
-
}
|
|
27
|
+
declare type MarginProp = 'auto' | SpaceProp | NegativeSpaceProp;
|
|
28
|
+
declare type BorderRadiusProp = 'none' | 'small' | 'medium';
|
|
29
|
+
declare type BorderWidthProp = 'none' | 'small' | 'medium' | 'large';
|
|
30
|
+
interface BoxRules {
|
|
31
|
+
display?: ResponsiveProp<Property.Display>;
|
|
32
|
+
color?: ResponsiveProp<ColorProp>;
|
|
33
|
+
backgroundColor?: ResponsiveProp<ColorProp>;
|
|
34
|
+
borderColor?: ResponsiveProp<ColorProp>;
|
|
35
|
+
borderTopColor?: ResponsiveProp<ColorProp>;
|
|
36
|
+
borderLeftColor?: ResponsiveProp<ColorProp>;
|
|
37
|
+
borderRightColor?: ResponsiveProp<ColorProp>;
|
|
38
|
+
borderBottomColor?: ResponsiveProp<ColorProp>;
|
|
39
|
+
borderWidth?: ResponsiveProp<BorderWidthProp>;
|
|
40
|
+
borderTopWidth?: ResponsiveProp<BorderWidthProp>;
|
|
41
|
+
borderLeftWidth?: ResponsiveProp<BorderWidthProp>;
|
|
42
|
+
borderRightWidth?: ResponsiveProp<BorderWidthProp>;
|
|
43
|
+
borderBottomWidth?: ResponsiveProp<BorderWidthProp>;
|
|
44
|
+
padding?: ResponsiveProp<SpaceProp>;
|
|
45
|
+
paddingTop?: ResponsiveProp<SpaceProp>;
|
|
46
|
+
paddingLeft?: ResponsiveProp<SpaceProp>;
|
|
47
|
+
paddingRight?: ResponsiveProp<SpaceProp>;
|
|
48
|
+
paddingBottom?: ResponsiveProp<SpaceProp>;
|
|
49
|
+
margin?: ResponsiveProp<MarginProp>;
|
|
50
|
+
marginTop?: ResponsiveProp<MarginProp>;
|
|
51
|
+
marginLeft?: ResponsiveProp<MarginProp>;
|
|
52
|
+
marginRight?: ResponsiveProp<MarginProp>;
|
|
53
|
+
marginBottom?: ResponsiveProp<MarginProp>;
|
|
54
|
+
borderRadius?: ResponsiveProp<BorderRadiusProp>;
|
|
55
|
+
borderTopLeftRadius?: ResponsiveProp<BorderRadiusProp>;
|
|
56
|
+
borderTopRightRadius?: ResponsiveProp<BorderRadiusProp>;
|
|
57
|
+
borderBottomLeftRadius?: ResponsiveProp<BorderRadiusProp>;
|
|
58
|
+
borderBottomRightRadius?: ResponsiveProp<BorderRadiusProp>;
|
|
59
|
+
fontSize?: ResponsiveProp<Property.FontSize>;
|
|
60
|
+
width?: ResponsiveProp<Property.Width>;
|
|
61
|
+
maxWidth?: ResponsiveProp<Property.MaxWidth>;
|
|
62
|
+
minWidth?: ResponsiveProp<Property.MinWidth>;
|
|
63
|
+
height?: ResponsiveProp<Property.Height>;
|
|
64
|
+
maxHeight?: ResponsiveProp<Property.MaxHeight>;
|
|
65
|
+
minHeight?: ResponsiveProp<Property.MinHeight>;
|
|
66
|
+
overflow?: ResponsiveProp<Property.Overflow>;
|
|
67
|
+
overflowY?: ResponsiveProp<Property.OverflowY>;
|
|
68
|
+
overflowX?: ResponsiveProp<Property.OverflowX>;
|
|
69
|
+
top?: ResponsiveProp<Property.Top>;
|
|
70
|
+
left?: ResponsiveProp<Property.Left>;
|
|
71
|
+
right?: ResponsiveProp<Property.Right>;
|
|
72
|
+
bottom?: ResponsiveProp<Property.Bottom>;
|
|
73
|
+
position?: ResponsiveProp<Property.Position>;
|
|
74
|
+
}
|
|
75
|
+
interface BoxProps extends BoxRules {
|
|
76
|
+
ref?: Ref<unknown>;
|
|
77
|
+
as?: keyof JSX.IntrinsicElements;
|
|
78
|
+
role?: string;
|
|
79
|
+
children?: ReactNode;
|
|
80
|
+
}
|
|
81
81
|
declare const Box: ForwardRefExoticComponent<BoxProps>;
|
|
82
82
|
|
|
83
|
-
declare type ButtonAreaVariant = 'danger' | 'success';
|
|
84
|
-
interface ButtonAreaProps extends ButtonBaseProps {
|
|
85
|
-
icon: ReactNode;
|
|
86
|
-
active?: boolean;
|
|
87
|
-
fullWidth?: boolean;
|
|
88
|
-
variant?: ButtonAreaVariant;
|
|
89
|
-
}
|
|
83
|
+
declare type ButtonAreaVariant = 'danger' | 'success';
|
|
84
|
+
interface ButtonAreaProps extends ButtonBaseProps {
|
|
85
|
+
icon: ReactNode;
|
|
86
|
+
active?: boolean;
|
|
87
|
+
fullWidth?: boolean;
|
|
88
|
+
variant?: ButtonAreaVariant;
|
|
89
|
+
}
|
|
90
90
|
declare const ButtonArea: ForwardRefExoticComponent<Pick<ButtonAreaProps, "className" | "style" | "classes" | "innerRef" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "form" | "key" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "fullWidth" | "variant" | "action" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "icon" | "active"> & RefAttributes<HTMLButtonElement>>;
|
|
91
91
|
|
|
92
|
-
declare type ButtonSizeProp = 'small' | 'medium' | 'large';
|
|
93
|
-
declare type ButtonVariantProp = 'critical' | 'default' | 'inverted' | 'neutral' | 'primary' | 'text';
|
|
94
|
-
interface BaseButtonProps<T extends HTMLElement> extends Pick<AriaAttributes, 'aria-label' | 'aria-controls' | 'aria-haspopup' | 'aria-labelledby'> {
|
|
95
|
-
active?: boolean;
|
|
96
|
-
pending?: boolean;
|
|
97
|
-
disabled?: boolean;
|
|
98
|
-
autoFocus?: boolean;
|
|
99
|
-
fullWidth?: boolean;
|
|
100
|
-
size?: ButtonSizeProp;
|
|
101
|
-
variant?: ButtonVariantProp;
|
|
102
|
-
children?: ReactNode;
|
|
103
|
-
startIcon?: ReactNode;
|
|
104
|
-
endIcon?: ReactNode;
|
|
105
|
-
id?: string;
|
|
106
|
-
tabIndex?: number;
|
|
107
|
-
onClick?: MouseEventHandler<T>;
|
|
108
|
-
onFocus?: FocusEventHandler<T>;
|
|
109
|
-
onBlur?: FocusEventHandler<T>;
|
|
110
|
-
}
|
|
111
|
-
interface ButtonProps extends BaseButtonProps<HTMLButtonElement> {
|
|
112
|
-
type?: 'button' | 'submit';
|
|
113
|
-
}
|
|
114
|
-
declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
115
|
-
interface AnchorButtonProps extends BaseButtonProps<HTMLAnchorElement> {
|
|
116
|
-
href: string;
|
|
117
|
-
target?: '_self' | '_blank';
|
|
118
|
-
}
|
|
92
|
+
declare type ButtonSizeProp = 'small' | 'medium' | 'large';
|
|
93
|
+
declare type ButtonVariantProp = 'critical' | 'default' | 'inverted' | 'neutral' | 'primary' | 'text';
|
|
94
|
+
interface BaseButtonProps<T extends HTMLElement> extends Pick<AriaAttributes, 'aria-label' | 'aria-controls' | 'aria-haspopup' | 'aria-labelledby'> {
|
|
95
|
+
active?: boolean;
|
|
96
|
+
pending?: boolean;
|
|
97
|
+
disabled?: boolean;
|
|
98
|
+
autoFocus?: boolean;
|
|
99
|
+
fullWidth?: boolean;
|
|
100
|
+
size?: ButtonSizeProp;
|
|
101
|
+
variant?: ButtonVariantProp;
|
|
102
|
+
children?: ReactNode;
|
|
103
|
+
startIcon?: ReactNode;
|
|
104
|
+
endIcon?: ReactNode;
|
|
105
|
+
id?: string;
|
|
106
|
+
tabIndex?: number;
|
|
107
|
+
onClick?: MouseEventHandler<T>;
|
|
108
|
+
onFocus?: FocusEventHandler<T>;
|
|
109
|
+
onBlur?: FocusEventHandler<T>;
|
|
110
|
+
}
|
|
111
|
+
interface ButtonProps extends BaseButtonProps<HTMLButtonElement> {
|
|
112
|
+
type?: 'button' | 'submit';
|
|
113
|
+
}
|
|
114
|
+
declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
115
|
+
interface AnchorButtonProps extends BaseButtonProps<HTMLAnchorElement> {
|
|
116
|
+
href: string;
|
|
117
|
+
target?: '_self' | '_blank';
|
|
118
|
+
}
|
|
119
119
|
declare const AnchorButton: ForwardRefExoticComponent<AnchorButtonProps & RefAttributes<HTMLAnchorElement>>;
|
|
120
120
|
|
|
121
|
-
declare type ContainerProps = HTMLAttributes<HTMLDivElement> & {
|
|
122
|
-
fullViewportHeight?: boolean;
|
|
123
|
-
};
|
|
124
|
-
declare const Container: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
125
|
-
fullViewportHeight?: boolean | undefined;
|
|
121
|
+
declare type ContainerProps = HTMLAttributes<HTMLDivElement> & {
|
|
122
|
+
fullViewportHeight?: boolean;
|
|
123
|
+
};
|
|
124
|
+
declare const Container: ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
125
|
+
fullViewportHeight?: boolean | undefined;
|
|
126
126
|
} & RefAttributes<HTMLDivElement>>;
|
|
127
127
|
|
|
128
|
-
interface DescriptionItemProps {
|
|
129
|
-
id?: string;
|
|
130
|
-
'aria-label'?: string;
|
|
131
|
-
wrap?: boolean;
|
|
132
|
-
inset?: boolean;
|
|
133
|
-
icon?: ReactNode;
|
|
134
|
-
label?: ReactNode;
|
|
135
|
-
fallback?: ReactNode;
|
|
136
|
-
children?: ReactNode;
|
|
137
|
-
}
|
|
128
|
+
interface DescriptionItemProps {
|
|
129
|
+
id?: string;
|
|
130
|
+
'aria-label'?: string;
|
|
131
|
+
wrap?: boolean;
|
|
132
|
+
inset?: boolean;
|
|
133
|
+
icon?: ReactNode;
|
|
134
|
+
label?: ReactNode;
|
|
135
|
+
fallback?: ReactNode;
|
|
136
|
+
children?: ReactNode;
|
|
137
|
+
}
|
|
138
138
|
declare const DescriptionItem: ForwardRefExoticComponent<DescriptionItemProps & RefAttributes<HTMLDivElement>>;
|
|
139
139
|
|
|
140
|
-
declare function toBytes(input: number, unit: 'kb' | 'mb' | 'gb'): number;
|
|
141
|
-
declare function formatBytes(bytes: number): string;
|
|
142
|
-
interface FileDropZoneProps {
|
|
143
|
-
children?: ReactNode;
|
|
144
|
-
startIcon?: ReactNode;
|
|
145
|
-
hintText?: ReactNode;
|
|
146
|
-
fallback?: ReactNode;
|
|
147
|
-
disabled?: boolean;
|
|
148
|
-
maxSize?: number;
|
|
149
|
-
maxFiles?: number;
|
|
150
|
-
accept?: string | string[];
|
|
151
|
-
onDropAccepted?: (files: File[]) => void;
|
|
152
|
-
onDropRejected?: (fileRejections: FileRejection[]) => void;
|
|
153
|
-
}
|
|
140
|
+
declare function toBytes(input: number, unit: 'kb' | 'mb' | 'gb'): number;
|
|
141
|
+
declare function formatBytes(bytes: number): string;
|
|
142
|
+
interface FileDropZoneProps {
|
|
143
|
+
children?: ReactNode;
|
|
144
|
+
startIcon?: ReactNode;
|
|
145
|
+
hintText?: ReactNode;
|
|
146
|
+
fallback?: ReactNode;
|
|
147
|
+
disabled?: boolean;
|
|
148
|
+
maxSize?: number;
|
|
149
|
+
maxFiles?: number;
|
|
150
|
+
accept?: string | string[];
|
|
151
|
+
onDropAccepted?: (files: File[]) => void;
|
|
152
|
+
onDropRejected?: (fileRejections: FileRejection[]) => void;
|
|
153
|
+
}
|
|
154
154
|
declare const FileDropZone: ForwardRefExoticComponent<FileDropZoneProps & RefAttributes<HTMLButtonElement>>;
|
|
155
155
|
|
|
156
|
-
interface FileListItemProps {
|
|
157
|
-
url?: string;
|
|
158
|
-
name: string;
|
|
159
|
-
onRetry?: () => void;
|
|
160
|
-
onDelete?: () => void;
|
|
161
|
-
canDelete?: boolean;
|
|
162
|
-
helperText?: ReactNode;
|
|
163
|
-
status?: 'idle' | 'loading' | 'error' | 'success';
|
|
164
|
-
}
|
|
156
|
+
interface FileListItemProps {
|
|
157
|
+
url?: string;
|
|
158
|
+
name: string;
|
|
159
|
+
onRetry?: () => void;
|
|
160
|
+
onDelete?: () => void;
|
|
161
|
+
canDelete?: boolean;
|
|
162
|
+
helperText?: ReactNode;
|
|
163
|
+
status?: 'idle' | 'loading' | 'error' | 'success';
|
|
164
|
+
}
|
|
165
165
|
declare const FileListItem: ForwardRefExoticComponent<FileListItemProps & RefAttributes<HTMLDivElement>>;
|
|
166
166
|
|
|
167
|
-
declare type LinkComponentProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> & {
|
|
168
|
-
href: string;
|
|
169
|
-
truncate?: number;
|
|
170
|
-
};
|
|
171
|
-
interface LinkedTextProps extends Omit<LinkComponentProps, 'ref' | 'href'> {
|
|
172
|
-
children?: null | string;
|
|
173
|
-
linkComponent?: FunctionComponent<LinkComponentProps>;
|
|
174
|
-
}
|
|
167
|
+
declare type LinkComponentProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> & {
|
|
168
|
+
href: string;
|
|
169
|
+
truncate?: number;
|
|
170
|
+
};
|
|
171
|
+
interface LinkedTextProps extends Omit<LinkComponentProps, 'ref' | 'href'> {
|
|
172
|
+
children?: null | string;
|
|
173
|
+
linkComponent?: FunctionComponent<LinkComponentProps>;
|
|
174
|
+
}
|
|
175
175
|
declare function LinkedText({ children, linkComponent, ...props }: LinkedTextProps): ReactElement | null;
|
|
176
176
|
|
|
177
|
-
interface MultilineTextProps {
|
|
178
|
-
overflowWrap?: Extract<Property.OverflowWrap, 'anywhere' | 'break-word' | 'normal'>;
|
|
179
|
-
}
|
|
177
|
+
interface MultilineTextProps {
|
|
178
|
+
overflowWrap?: Extract<Property.OverflowWrap, 'anywhere' | 'break-word' | 'normal'>;
|
|
179
|
+
}
|
|
180
180
|
declare const MultilineText: StyledComponent<"span", DefaultTheme, MultilineTextProps, never>;
|
|
181
181
|
|
|
182
|
-
interface NavbarBottomBarItem {
|
|
183
|
-
active?: boolean;
|
|
184
|
-
value: string;
|
|
185
|
-
hasBadge?: boolean;
|
|
186
|
-
label: ReactNode;
|
|
187
|
-
icon: ReactNode;
|
|
188
|
-
onClick?: () => void;
|
|
189
|
-
component?: ComponentType<HTMLAttributes<HTMLElement>>;
|
|
190
|
-
}
|
|
191
|
-
interface NavbarBottomBarProps {
|
|
192
|
-
items: NavbarBottomBarItem[];
|
|
193
|
-
hasMenuBadge?: boolean;
|
|
194
|
-
}
|
|
182
|
+
interface NavbarBottomBarItem {
|
|
183
|
+
active?: boolean;
|
|
184
|
+
value: string;
|
|
185
|
+
hasBadge?: boolean;
|
|
186
|
+
label: ReactNode;
|
|
187
|
+
icon: ReactNode;
|
|
188
|
+
onClick?: () => void;
|
|
189
|
+
component?: ComponentType<HTMLAttributes<HTMLElement>>;
|
|
190
|
+
}
|
|
191
|
+
interface NavbarBottomBarProps {
|
|
192
|
+
items: NavbarBottomBarItem[];
|
|
193
|
+
hasMenuBadge?: boolean;
|
|
194
|
+
}
|
|
195
195
|
declare function NavbarBottomBar({ items, hasMenuBadge, }: NavbarBottomBarProps): ReactElement;
|
|
196
196
|
|
|
197
|
-
interface NavbarAccordionProps {
|
|
198
|
-
label: ReactNode;
|
|
199
|
-
icon?: ReactNode;
|
|
200
|
-
gutter?: boolean;
|
|
201
|
-
items: Array<Omit<NavbarItemOptions, 'icon'>>;
|
|
202
|
-
onClick?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
declare const NavbarBadge: StyledComponent<"span", DefaultTheme, {}, never>;
|
|
206
|
-
declare const NavbarLabel: StyledComponent<"span", DefaultTheme, {}, never>;
|
|
207
|
-
interface NavbarItemProps {
|
|
208
|
-
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
209
|
-
component?: ComponentType<HTMLAttributes<HTMLElement>>;
|
|
210
|
-
label: ReactNode;
|
|
211
|
-
icon?: ReactNode;
|
|
212
|
-
badge?: ReactNode;
|
|
213
|
-
ident?: number;
|
|
214
|
-
gutter?: boolean;
|
|
215
|
-
variant?: 'danger' | 'primary';
|
|
216
|
-
active?: boolean;
|
|
217
|
-
}
|
|
197
|
+
interface NavbarAccordionProps {
|
|
198
|
+
label: ReactNode;
|
|
199
|
+
icon?: ReactNode;
|
|
200
|
+
gutter?: boolean;
|
|
201
|
+
items: Array<Omit<NavbarItemOptions, 'icon'>>;
|
|
202
|
+
onClick?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
declare const NavbarBadge: StyledComponent<"span", DefaultTheme, {}, never>;
|
|
206
|
+
declare const NavbarLabel: StyledComponent<"span", DefaultTheme, {}, never>;
|
|
207
|
+
interface NavbarItemProps {
|
|
208
|
+
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
209
|
+
component?: ComponentType<HTMLAttributes<HTMLElement>>;
|
|
210
|
+
label: ReactNode;
|
|
211
|
+
icon?: ReactNode;
|
|
212
|
+
badge?: ReactNode;
|
|
213
|
+
ident?: number;
|
|
214
|
+
gutter?: boolean;
|
|
215
|
+
variant?: 'danger' | 'primary';
|
|
216
|
+
active?: boolean;
|
|
217
|
+
}
|
|
218
218
|
declare function NavbarItem({ label, gutter, badge, icon, component, onClick, variant, ident, active, }: NavbarItemProps): ReactElement;
|
|
219
219
|
|
|
220
|
-
interface NavbarMenuItemProps {
|
|
221
|
-
icon?: ReactNode;
|
|
222
|
-
label: ReactNode;
|
|
223
|
-
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
224
|
-
component?: ComponentType<HTMLAttributes<HTMLElement>>;
|
|
225
|
-
}
|
|
226
|
-
declare function NavbarMenuItem({ label, icon, onClick, component, }: NavbarMenuItemProps): ReactElement;
|
|
227
|
-
interface NavbarAccordionOptions extends NavbarAccordionProps {
|
|
228
|
-
key: Key;
|
|
229
|
-
groupKey?: Key;
|
|
230
|
-
hide?: boolean;
|
|
231
|
-
}
|
|
232
|
-
interface NavbarItemOptions extends NavbarItemProps {
|
|
233
|
-
key: Key;
|
|
234
|
-
groupKey?: Key;
|
|
235
|
-
hide?: boolean;
|
|
236
|
-
}
|
|
237
|
-
interface NavbarListProps {
|
|
238
|
-
header: ReactNode;
|
|
239
|
-
items: Array<NavbarItemOptions | NavbarAccordionOptions>;
|
|
240
|
-
footer?: ReactNode;
|
|
241
|
-
}
|
|
220
|
+
interface NavbarMenuItemProps {
|
|
221
|
+
icon?: ReactNode;
|
|
222
|
+
label: ReactNode;
|
|
223
|
+
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
224
|
+
component?: ComponentType<HTMLAttributes<HTMLElement>>;
|
|
225
|
+
}
|
|
226
|
+
declare function NavbarMenuItem({ label, icon, onClick, component, }: NavbarMenuItemProps): ReactElement;
|
|
227
|
+
interface NavbarAccordionOptions extends NavbarAccordionProps {
|
|
228
|
+
key: Key;
|
|
229
|
+
groupKey?: Key;
|
|
230
|
+
hide?: boolean;
|
|
231
|
+
}
|
|
232
|
+
interface NavbarItemOptions extends NavbarItemProps {
|
|
233
|
+
key: Key;
|
|
234
|
+
groupKey?: Key;
|
|
235
|
+
hide?: boolean;
|
|
236
|
+
}
|
|
237
|
+
interface NavbarListProps {
|
|
238
|
+
header: ReactNode;
|
|
239
|
+
items: Array<NavbarItemOptions | NavbarAccordionOptions>;
|
|
240
|
+
footer?: ReactNode;
|
|
241
|
+
}
|
|
242
242
|
declare function NavbarList({ header, items, footer, }: NavbarListProps): ReactElement;
|
|
243
243
|
|
|
244
|
-
interface NavbarProps {
|
|
245
|
-
containerStyle?: CSSProperties;
|
|
246
|
-
children: ReactNode;
|
|
247
|
-
header?: ReactNode;
|
|
248
|
-
items: NavbarItemOptions[];
|
|
249
|
-
bottomItems: NavbarBottomBarItem[];
|
|
250
|
-
footer?: ReactNode;
|
|
251
|
-
hasExtraBadge?: boolean;
|
|
252
|
-
}
|
|
244
|
+
interface NavbarProps {
|
|
245
|
+
containerStyle?: CSSProperties;
|
|
246
|
+
children: ReactNode;
|
|
247
|
+
header?: ReactNode;
|
|
248
|
+
items: NavbarItemOptions[];
|
|
249
|
+
bottomItems: NavbarBottomBarItem[];
|
|
250
|
+
footer?: ReactNode;
|
|
251
|
+
hasExtraBadge?: boolean;
|
|
252
|
+
}
|
|
253
253
|
declare function Navbar({ footer, items, header, bottomItems, children, containerStyle, hasExtraBadge, }: NavbarProps): ReactElement;
|
|
254
254
|
|
|
255
|
-
interface NavbarAvatarProps extends Omit<AvatarProps, 'title'> {
|
|
256
|
-
title: ReactNode;
|
|
257
|
-
subtitle: ReactNode;
|
|
258
|
-
children: ReactNode;
|
|
259
|
-
}
|
|
255
|
+
interface NavbarAvatarProps extends Omit<AvatarProps, 'title'> {
|
|
256
|
+
title: ReactNode;
|
|
257
|
+
subtitle: ReactNode;
|
|
258
|
+
children: ReactNode;
|
|
259
|
+
}
|
|
260
260
|
declare function NavbarAvatar({ title, subtitle, children, ...props }: NavbarAvatarProps): ReactElement;
|
|
261
261
|
|
|
262
|
-
|
|
263
|
-
interface NavbarContextType {
|
|
264
|
-
isDrawerOpen: boolean;
|
|
265
|
-
isMenuExpanded: boolean;
|
|
266
|
-
isNavbarExpanded: boolean;
|
|
267
|
-
setDrawerOpen: (value: boolean) => void;
|
|
268
|
-
setMenuExpanded: (value: boolean) => void;
|
|
269
|
-
}
|
|
262
|
+
|
|
263
|
+
interface NavbarContextType {
|
|
264
|
+
isDrawerOpen: boolean;
|
|
265
|
+
isMenuExpanded: boolean;
|
|
266
|
+
isNavbarExpanded: boolean;
|
|
267
|
+
setDrawerOpen: (value: boolean) => void;
|
|
268
|
+
setMenuExpanded: (value: boolean) => void;
|
|
269
|
+
}
|
|
270
270
|
declare function useNavbarContext(): NavbarContextType;
|
|
271
271
|
|
|
272
|
-
interface NavbarMenuItemOption {
|
|
273
|
-
key: Key;
|
|
274
|
-
icon: ReactNode;
|
|
275
|
-
label: ReactNode;
|
|
276
|
-
visible?: boolean;
|
|
277
|
-
onClick: () => void;
|
|
278
|
-
}
|
|
279
|
-
interface NavbarMenuProps {
|
|
280
|
-
children: ReactNode;
|
|
281
|
-
items: NavbarMenuItemOption[];
|
|
282
|
-
}
|
|
272
|
+
interface NavbarMenuItemOption {
|
|
273
|
+
key: Key;
|
|
274
|
+
icon: ReactNode;
|
|
275
|
+
label: ReactNode;
|
|
276
|
+
visible?: boolean;
|
|
277
|
+
onClick: () => void;
|
|
278
|
+
}
|
|
279
|
+
interface NavbarMenuProps {
|
|
280
|
+
children: ReactNode;
|
|
281
|
+
items: NavbarMenuItemOption[];
|
|
282
|
+
}
|
|
283
283
|
declare function NavbarMenu({ items, children }: NavbarMenuProps): ReactElement;
|
|
284
284
|
|
|
285
|
-
interface SidebarProps {
|
|
286
|
-
id?: string;
|
|
287
|
-
title?: ReactNode;
|
|
288
|
-
count?: null | number;
|
|
289
|
-
header?: ReactNode;
|
|
290
|
-
children?: ReactNode;
|
|
291
|
-
}
|
|
285
|
+
interface SidebarProps {
|
|
286
|
+
id?: string;
|
|
287
|
+
title?: ReactNode;
|
|
288
|
+
count?: null | number;
|
|
289
|
+
header?: ReactNode;
|
|
290
|
+
children?: ReactNode;
|
|
291
|
+
}
|
|
292
292
|
declare const Sidebar: ForwardRefExoticComponent<SidebarProps & RefAttributes<HTMLDivElement>>;
|
|
293
293
|
|
|
294
294
|
declare function SidebarBackButton({ onClick, children, ...props }: IconButtonProps): ReactElement | null;
|
|
295
295
|
|
|
296
|
-
interface SidebarContext {
|
|
297
|
-
openSidebar: () => void;
|
|
298
|
-
openSidebarContent: () => void;
|
|
299
|
-
}
|
|
300
|
-
declare function useSidebarContext(): SidebarContext;
|
|
301
|
-
interface SidebarContainerProps {
|
|
302
|
-
sidebar: ReactChild;
|
|
303
|
-
children?: ReactNode;
|
|
304
|
-
}
|
|
296
|
+
interface SidebarContext {
|
|
297
|
+
openSidebar: () => void;
|
|
298
|
+
openSidebarContent: () => void;
|
|
299
|
+
}
|
|
300
|
+
declare function useSidebarContext(): SidebarContext;
|
|
301
|
+
interface SidebarContainerProps {
|
|
302
|
+
sidebar: ReactChild;
|
|
303
|
+
children?: ReactNode;
|
|
304
|
+
}
|
|
305
305
|
declare const SidebarContainer: ForwardRefExoticComponent<SidebarContainerProps & RefAttributes<HTMLDivElement>>;
|
|
306
306
|
|
|
307
|
-
interface SidebarContentProps {
|
|
308
|
-
dense?: boolean;
|
|
309
|
-
title: ReactNode;
|
|
310
|
-
children: ReactNode;
|
|
311
|
-
action?: ReactNode;
|
|
312
|
-
openOnMount?: boolean;
|
|
313
|
-
closeOnUnmount?: boolean;
|
|
314
|
-
onBack?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
315
|
-
}
|
|
307
|
+
interface SidebarContentProps {
|
|
308
|
+
dense?: boolean;
|
|
309
|
+
title: ReactNode;
|
|
310
|
+
children: ReactNode;
|
|
311
|
+
action?: ReactNode;
|
|
312
|
+
openOnMount?: boolean;
|
|
313
|
+
closeOnUnmount?: boolean;
|
|
314
|
+
onBack?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
315
|
+
}
|
|
316
316
|
declare function SidebarContent({ dense, action, title, children, onBack, openOnMount, closeOnUnmount, }: SidebarContentProps): ReactElement;
|
|
317
317
|
|
|
318
|
-
|
|
318
|
+
|
|
319
319
|
declare const SidebarDivider: ForwardRefExoticComponent<RefAttributes<HTMLDivElement>>;
|
|
320
320
|
|
|
321
|
-
interface SidebarMenuItemProps {
|
|
322
|
-
selected?: boolean;
|
|
323
|
-
external?: boolean;
|
|
324
|
-
disabled?: boolean;
|
|
325
|
-
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
326
|
-
badge?: null | number;
|
|
327
|
-
action?: ReactNode;
|
|
328
|
-
avatar?: ReactNode;
|
|
329
|
-
children?: ReactNode;
|
|
330
|
-
openContentOnClick?: boolean;
|
|
331
|
-
secondaryActions?: ReactNode;
|
|
332
|
-
}
|
|
321
|
+
interface SidebarMenuItemProps {
|
|
322
|
+
selected?: boolean;
|
|
323
|
+
external?: boolean;
|
|
324
|
+
disabled?: boolean;
|
|
325
|
+
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
326
|
+
badge?: null | number;
|
|
327
|
+
action?: ReactNode;
|
|
328
|
+
avatar?: ReactNode;
|
|
329
|
+
children?: ReactNode;
|
|
330
|
+
openContentOnClick?: boolean;
|
|
331
|
+
secondaryActions?: ReactNode;
|
|
332
|
+
}
|
|
333
333
|
declare const SidebarMenuItem: ForwardRefExoticComponent<SidebarMenuItemProps & RefAttributes<HTMLDivElement>>;
|
|
334
334
|
|
|
335
|
-
interface SidebarMenuItemActionProps extends Pick<TooltipProps, 'title' | 'placement'> {
|
|
336
|
-
children: ReactElement;
|
|
337
|
-
}
|
|
335
|
+
interface SidebarMenuItemActionProps extends Pick<TooltipProps, 'title' | 'placement'> {
|
|
336
|
+
children: ReactElement;
|
|
337
|
+
}
|
|
338
338
|
declare const SidebarMenuItemAction: ForwardRefExoticComponent<SidebarMenuItemActionProps & RefAttributes<HTMLButtonElement>>;
|
|
339
339
|
|
|
340
|
-
|
|
341
|
-
interface SidebarMenuItemAvatarProps {
|
|
342
|
-
children: string;
|
|
343
|
-
value?: boolean;
|
|
344
|
-
onChange?: (checked: boolean) => void;
|
|
345
|
-
}
|
|
340
|
+
|
|
341
|
+
interface SidebarMenuItemAvatarProps {
|
|
342
|
+
children: string;
|
|
343
|
+
value?: boolean;
|
|
344
|
+
onChange?: (checked: boolean) => void;
|
|
345
|
+
}
|
|
346
346
|
declare const SidebarMenuItemAvatar: ForwardRefExoticComponent<SidebarMenuItemAvatarProps & RefAttributes<HTMLDivElement>>;
|
|
347
347
|
|
|
348
|
-
interface SidebarSubheaderProps {
|
|
349
|
-
id?: string;
|
|
350
|
-
action?: ReactNode;
|
|
351
|
-
children?: ReactNode;
|
|
352
|
-
}
|
|
348
|
+
interface SidebarSubheaderProps {
|
|
349
|
+
id?: string;
|
|
350
|
+
action?: ReactNode;
|
|
351
|
+
children?: ReactNode;
|
|
352
|
+
}
|
|
353
353
|
declare const SidebarSubheader: ForwardRefExoticComponent<SidebarSubheaderProps & RefAttributes<HTMLDivElement>>;
|
|
354
354
|
|
|
355
|
-
declare type TextAlignProp = 'left' | 'right' | 'center';
|
|
356
|
-
declare type TextColorProp = 'inherit' | 'primary' | 'secondary' | 'white' | 'blue' | 'green' | 'purple' | 'red' | 'teal' | 'yellow';
|
|
357
|
-
declare type TextDisplayProp = 'none' | 'block' | 'inline' | 'initial' | 'inherit';
|
|
358
|
-
declare type TextVariantProp = 'heading-1' | 'heading-2' | 'heading-3' | 'heading-4' | 'heading-5' | 'heading-6' | 'body' | 'body-block' | 'body-semibold' | 'caption';
|
|
359
|
-
interface TextBoxProps {
|
|
360
|
-
children?: ReactNode;
|
|
361
|
-
as?: keyof JSX.IntrinsicElements;
|
|
362
|
-
id?: string;
|
|
363
|
-
'aria-label'?: string;
|
|
364
|
-
'aria-labelledby'?: string;
|
|
365
|
-
'aria-describedby'?: string;
|
|
366
|
-
variant?: TextVariantProp;
|
|
367
|
-
noWrap?: ResponsiveProp<boolean>;
|
|
368
|
-
wrapOverflow?: ResponsiveProp<boolean>;
|
|
369
|
-
align?: ResponsiveProp<TextAlignProp>;
|
|
370
|
-
color?: ResponsiveProp<TextColorProp>;
|
|
371
|
-
display?: ResponsiveProp<TextDisplayProp>;
|
|
372
|
-
}
|
|
355
|
+
declare type TextAlignProp = 'left' | 'right' | 'center';
|
|
356
|
+
declare type TextColorProp = 'inherit' | 'primary' | 'secondary' | 'white' | 'blue' | 'green' | 'purple' | 'red' | 'teal' | 'yellow';
|
|
357
|
+
declare type TextDisplayProp = 'none' | 'block' | 'inline' | 'initial' | 'inherit';
|
|
358
|
+
declare type TextVariantProp = 'heading-1' | 'heading-2' | 'heading-3' | 'heading-4' | 'heading-5' | 'heading-6' | 'body' | 'body-block' | 'body-semibold' | 'caption';
|
|
359
|
+
interface TextBoxProps {
|
|
360
|
+
children?: ReactNode;
|
|
361
|
+
as?: keyof JSX.IntrinsicElements;
|
|
362
|
+
id?: string;
|
|
363
|
+
'aria-label'?: string;
|
|
364
|
+
'aria-labelledby'?: string;
|
|
365
|
+
'aria-describedby'?: string;
|
|
366
|
+
variant?: TextVariantProp;
|
|
367
|
+
noWrap?: ResponsiveProp<boolean>;
|
|
368
|
+
wrapOverflow?: ResponsiveProp<boolean>;
|
|
369
|
+
align?: ResponsiveProp<TextAlignProp>;
|
|
370
|
+
color?: ResponsiveProp<TextColorProp>;
|
|
371
|
+
display?: ResponsiveProp<TextDisplayProp>;
|
|
372
|
+
}
|
|
373
373
|
declare const TextBox: ForwardRefExoticComponent<TextBoxProps & RefAttributes<HTMLElement>>;
|
|
374
374
|
|
|
375
375
|
export { Alert, AlertProps, AlertSeverityProp, AnchorButton, AnchorButtonProps, Banner, BorderRadiusProp, BorderWidthProp, Box, BoxProps, Button, ButtonArea, ButtonAreaProps, ButtonProps, ButtonSizeProp, ButtonVariantProp, Container, ContainerProps, DescriptionItem, DescriptionItemProps, FileDropZone, FileDropZoneProps, FileListItem, FileListItemProps, LinkComponentProps, LinkedText, LinkedTextProps, MarginProp, MultilineText, MultilineTextProps, Navbar, NavbarAccordionOptions, NavbarAvatar, NavbarBadge, NavbarBottomBar, NavbarBottomBarItem, NavbarItem, NavbarItemOptions, NavbarItemProps, NavbarLabel, NavbarList, NavbarMenu, NavbarMenuItem, NavbarMenuItemOption, Sidebar, SidebarBackButton, SidebarContainer, SidebarContainerProps, SidebarContent, SidebarContentProps, SidebarDivider, SidebarMenuItem, SidebarMenuItemAction, SidebarMenuItemActionProps, SidebarMenuItemAvatar, SidebarMenuItemAvatarProps, SidebarMenuItemProps, SidebarProps, SidebarSubheader, SidebarSubheaderProps, TextAlignProp, TextBox, TextBoxProps, TextColorProp, TextDisplayProp, TextVariantProp, formatBytes, toBytes, useNavbarContext, useSidebarContext };
|
package/package.json
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@superdispatch/ui-lab",
|
|
3
|
-
"version": "0.21.
|
|
4
|
-
"license": "MIT",
|
|
5
|
-
"files": [
|
|
6
|
-
"dist-*/",
|
|
7
|
-
"bin/"
|
|
8
|
-
],
|
|
9
|
-
"pika": true,
|
|
10
|
-
"sideEffects": false,
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "https://github.com/superdispatch/ui.git"
|
|
14
|
-
},
|
|
15
|
-
"dependencies": {
|
|
16
|
-
"@superdispatch/hooks": "^0.21.0",
|
|
17
|
-
"@superdispatch/ui": "^0.21.
|
|
18
|
-
"react-anchorme": "^2.2.1",
|
|
19
|
-
"react-dropzone": "^11.3.4"
|
|
20
|
-
},
|
|
21
|
-
"peerDependencies": {
|
|
22
|
-
"@babel/runtime": "^7.0.0",
|
|
23
|
-
"react": "^17.0.2",
|
|
24
|
-
"styled-components": "^5.2.1"
|
|
25
|
-
},
|
|
26
|
-
"publishConfig": {
|
|
27
|
-
"access": "public",
|
|
28
|
-
"directory": "pkg"
|
|
29
|
-
},
|
|
30
|
-
"esnext": "dist-src/index.js",
|
|
31
|
-
"module": "dist-web/index.js",
|
|
32
|
-
"main": "dist-node/index.js",
|
|
33
|
-
"types": "dist-types/index.d.ts"
|
|
34
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@superdispatch/ui-lab",
|
|
3
|
+
"version": "0.21.6",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist-*/",
|
|
7
|
+
"bin/"
|
|
8
|
+
],
|
|
9
|
+
"pika": true,
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/superdispatch/ui.git"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@superdispatch/hooks": "^0.21.0",
|
|
17
|
+
"@superdispatch/ui": "^0.21.6",
|
|
18
|
+
"react-anchorme": "^2.2.1",
|
|
19
|
+
"react-dropzone": "^11.3.4"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"@babel/runtime": "^7.0.0",
|
|
23
|
+
"react": "^17.0.2",
|
|
24
|
+
"styled-components": "^5.2.1"
|
|
25
|
+
},
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public",
|
|
28
|
+
"directory": "pkg"
|
|
29
|
+
},
|
|
30
|
+
"esnext": "dist-src/index.js",
|
|
31
|
+
"module": "dist-web/index.js",
|
|
32
|
+
"main": "dist-node/index.js",
|
|
33
|
+
"types": "dist-types/index.d.ts"
|
|
34
|
+
}
|