@superdispatch/ui-lab 0.21.0 → 0.21.4

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.
@@ -8,367 +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';
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
- helperText?: ReactNode;
162
- status?: 'idle' | 'loading' | 'error' | 'success';
163
- }
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
+ }
164
165
  declare const FileListItem: ForwardRefExoticComponent<FileListItemProps & RefAttributes<HTMLDivElement>>;
165
166
 
166
- declare type LinkComponentProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href'> & {
167
- href: string;
168
- truncate?: number;
169
- };
170
- interface LinkedTextProps extends Omit<LinkComponentProps, 'ref' | 'href'> {
171
- children?: null | string;
172
- linkComponent?: FunctionComponent<LinkComponentProps>;
173
- }
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
+ }
174
175
  declare function LinkedText({ children, linkComponent, ...props }: LinkedTextProps): ReactElement | null;
175
176
 
176
- interface MultilineTextProps {
177
- overflowWrap?: Extract<Property.OverflowWrap, 'anywhere' | 'break-word' | 'normal'>;
178
- }
177
+ interface MultilineTextProps {
178
+ overflowWrap?: Extract<Property.OverflowWrap, 'anywhere' | 'break-word' | 'normal'>;
179
+ }
179
180
  declare const MultilineText: StyledComponent<"span", DefaultTheme, MultilineTextProps, never>;
180
181
 
181
- interface NavbarBottomBarItem {
182
- active?: boolean;
183
- value: string;
184
- hasBadge?: boolean;
185
- label: ReactNode;
186
- icon: ReactNode;
187
- onClick?: () => void;
188
- component?: ComponentType<HTMLAttributes<HTMLElement>>;
189
- }
190
- interface NavbarBottomBarProps {
191
- items: NavbarBottomBarItem[];
192
- hasMenuBadge?: boolean;
193
- }
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
+ }
194
195
  declare function NavbarBottomBar({ items, hasMenuBadge, }: NavbarBottomBarProps): ReactElement;
195
196
 
196
- interface NavbarAccordionProps {
197
- label: ReactNode;
198
- icon?: ReactNode;
199
- gutter?: boolean;
200
- items: Array<Omit<NavbarItemOptions, 'icon'>>;
201
- onClick?: (event: MouseEvent<HTMLDivElement>) => void;
202
- }
203
-
204
- declare const NavbarBadge: StyledComponent<"span", DefaultTheme, {}, never>;
205
- declare const NavbarLabel: StyledComponent<"span", DefaultTheme, {}, never>;
206
- interface NavbarItemProps {
207
- onClick?: (event: MouseEvent<HTMLElement>) => void;
208
- component?: ComponentType<HTMLAttributes<HTMLElement>>;
209
- label: ReactNode;
210
- icon?: ReactNode;
211
- badge?: ReactNode;
212
- ident?: number;
213
- gutter?: boolean;
214
- variant?: 'danger' | 'primary';
215
- active?: boolean;
216
- }
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
+ }
217
218
  declare function NavbarItem({ label, gutter, badge, icon, component, onClick, variant, ident, active, }: NavbarItemProps): ReactElement;
218
219
 
219
- interface NavbarMenuItemProps {
220
- icon?: ReactNode;
221
- label: ReactNode;
222
- onClick?: (event: MouseEvent<HTMLElement>) => void;
223
- component?: ComponentType<HTMLAttributes<HTMLElement>>;
224
- }
225
- declare function NavbarMenuItem({ label, icon, onClick, component, }: NavbarMenuItemProps): ReactElement;
226
- interface NavbarAccordionOptions extends NavbarAccordionProps {
227
- key: Key;
228
- groupKey?: Key;
229
- hide?: boolean;
230
- }
231
- interface NavbarItemOptions extends NavbarItemProps {
232
- key: Key;
233
- groupKey?: Key;
234
- hide?: boolean;
235
- }
236
- interface NavbarListProps {
237
- header: ReactNode;
238
- items: Array<NavbarItemOptions | NavbarAccordionOptions>;
239
- footer?: ReactNode;
240
- }
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
+ }
241
242
  declare function NavbarList({ header, items, footer, }: NavbarListProps): ReactElement;
242
243
 
243
- interface NavbarProps {
244
- containerStyle?: CSSProperties;
245
- children: ReactNode;
246
- header?: ReactNode;
247
- items: NavbarItemOptions[];
248
- bottomItems: NavbarBottomBarItem[];
249
- footer?: ReactNode;
250
- hasExtraBadge?: boolean;
251
- }
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
+ }
252
253
  declare function Navbar({ footer, items, header, bottomItems, children, containerStyle, hasExtraBadge, }: NavbarProps): ReactElement;
253
254
 
254
- interface NavbarAvatarProps extends Omit<AvatarProps, 'title'> {
255
- title: ReactNode;
256
- subtitle: ReactNode;
257
- children: ReactNode;
258
- }
255
+ interface NavbarAvatarProps extends Omit<AvatarProps, 'title'> {
256
+ title: ReactNode;
257
+ subtitle: ReactNode;
258
+ children: ReactNode;
259
+ }
259
260
  declare function NavbarAvatar({ title, subtitle, children, ...props }: NavbarAvatarProps): ReactElement;
260
261
 
261
-
262
- interface NavbarContextType {
263
- isDrawerOpen: boolean;
264
- isMenuExpanded: boolean;
265
- isNavbarExpanded: boolean;
266
- setDrawerOpen: (value: boolean) => void;
267
- setMenuExpanded: (value: boolean) => void;
268
- }
262
+
263
+ interface NavbarContextType {
264
+ isDrawerOpen: boolean;
265
+ isMenuExpanded: boolean;
266
+ isNavbarExpanded: boolean;
267
+ setDrawerOpen: (value: boolean) => void;
268
+ setMenuExpanded: (value: boolean) => void;
269
+ }
269
270
  declare function useNavbarContext(): NavbarContextType;
270
271
 
271
- interface NavbarMenuItemOption {
272
- key: Key;
273
- icon: ReactNode;
274
- label: ReactNode;
275
- visible?: boolean;
276
- onClick: () => void;
277
- }
278
- interface NavbarMenuProps {
279
- children: ReactNode;
280
- items: NavbarMenuItemOption[];
281
- }
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
+ }
282
283
  declare function NavbarMenu({ items, children }: NavbarMenuProps): ReactElement;
283
284
 
284
- interface SidebarProps {
285
- id?: string;
286
- title?: ReactNode;
287
- count?: null | number;
288
- header?: ReactNode;
289
- children?: ReactNode;
290
- }
285
+ interface SidebarProps {
286
+ id?: string;
287
+ title?: ReactNode;
288
+ count?: null | number;
289
+ header?: ReactNode;
290
+ children?: ReactNode;
291
+ }
291
292
  declare const Sidebar: ForwardRefExoticComponent<SidebarProps & RefAttributes<HTMLDivElement>>;
292
293
 
293
294
  declare function SidebarBackButton({ onClick, children, ...props }: IconButtonProps): ReactElement | null;
294
295
 
295
- interface SidebarContext {
296
- openSidebar: () => void;
297
- openSidebarContent: () => void;
298
- }
299
- declare function useSidebarContext(): SidebarContext;
300
- interface SidebarContainerProps {
301
- sidebar: ReactChild;
302
- children?: ReactNode;
303
- }
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
+ }
304
305
  declare const SidebarContainer: ForwardRefExoticComponent<SidebarContainerProps & RefAttributes<HTMLDivElement>>;
305
306
 
306
- interface SidebarContentProps {
307
- dense?: boolean;
308
- title: ReactNode;
309
- children: ReactNode;
310
- action?: ReactNode;
311
- openOnMount?: boolean;
312
- closeOnUnmount?: boolean;
313
- onBack?: (event: MouseEvent<HTMLButtonElement>) => void;
314
- }
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
+ }
315
316
  declare function SidebarContent({ dense, action, title, children, onBack, openOnMount, closeOnUnmount, }: SidebarContentProps): ReactElement;
316
317
 
317
-
318
+
318
319
  declare const SidebarDivider: ForwardRefExoticComponent<RefAttributes<HTMLDivElement>>;
319
320
 
320
- interface SidebarMenuItemProps {
321
- selected?: boolean;
322
- external?: boolean;
323
- disabled?: boolean;
324
- onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
325
- badge?: null | number;
326
- action?: ReactNode;
327
- avatar?: ReactNode;
328
- children?: ReactNode;
329
- openContentOnClick?: boolean;
330
- secondaryActions?: ReactNode;
331
- }
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
+ }
332
333
  declare const SidebarMenuItem: ForwardRefExoticComponent<SidebarMenuItemProps & RefAttributes<HTMLDivElement>>;
333
334
 
334
- interface SidebarMenuItemActionProps extends Pick<TooltipProps, 'title' | 'placement'> {
335
- children: ReactElement;
336
- }
335
+ interface SidebarMenuItemActionProps extends Pick<TooltipProps, 'title' | 'placement'> {
336
+ children: ReactElement;
337
+ }
337
338
  declare const SidebarMenuItemAction: ForwardRefExoticComponent<SidebarMenuItemActionProps & RefAttributes<HTMLButtonElement>>;
338
339
 
339
-
340
- interface SidebarMenuItemAvatarProps {
341
- children: string;
342
- value?: boolean;
343
- onChange?: (checked: boolean) => void;
344
- }
340
+
341
+ interface SidebarMenuItemAvatarProps {
342
+ children: string;
343
+ value?: boolean;
344
+ onChange?: (checked: boolean) => void;
345
+ }
345
346
  declare const SidebarMenuItemAvatar: ForwardRefExoticComponent<SidebarMenuItemAvatarProps & RefAttributes<HTMLDivElement>>;
346
347
 
347
- interface SidebarSubheaderProps {
348
- id?: string;
349
- action?: ReactNode;
350
- children?: ReactNode;
351
- }
348
+ interface SidebarSubheaderProps {
349
+ id?: string;
350
+ action?: ReactNode;
351
+ children?: ReactNode;
352
+ }
352
353
  declare const SidebarSubheader: ForwardRefExoticComponent<SidebarSubheaderProps & RefAttributes<HTMLDivElement>>;
353
354
 
354
- declare type TextAlignProp = 'left' | 'right' | 'center';
355
- declare type TextColorProp = 'inherit' | 'primary' | 'secondary' | 'white' | 'blue' | 'green' | 'purple' | 'red' | 'teal' | 'yellow';
356
- declare type TextDisplayProp = 'none' | 'block' | 'inline' | 'initial' | 'inherit';
357
- declare type TextVariantProp = 'heading-1' | 'heading-2' | 'heading-3' | 'heading-4' | 'heading-5' | 'heading-6' | 'body' | 'body-block' | 'body-semibold' | 'caption';
358
- interface TextBoxProps {
359
- children?: ReactNode;
360
- as?: keyof JSX.IntrinsicElements;
361
- id?: string;
362
- 'aria-label'?: string;
363
- 'aria-labelledby'?: string;
364
- 'aria-describedby'?: string;
365
- variant?: TextVariantProp;
366
- noWrap?: ResponsiveProp<boolean>;
367
- wrapOverflow?: ResponsiveProp<boolean>;
368
- align?: ResponsiveProp<TextAlignProp>;
369
- color?: ResponsiveProp<TextColorProp>;
370
- display?: ResponsiveProp<TextDisplayProp>;
371
- }
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
+ }
372
373
  declare const TextBox: ForwardRefExoticComponent<TextBoxProps & RefAttributes<HTMLElement>>;
373
374
 
374
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 };