@superdispatch/ui-lab 0.13.0 → 0.16.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-node/index.js +1564 -149
- package/dist-node/index.js.map +1 -1
- package/dist-src/banner/Banner.js +61 -0
- package/dist-src/index.js +4 -1
- package/dist-src/sidebar/SidebarSubheader.js +2 -1
- package/dist-src/text-box/TextBox.js +1 -0
- package/dist-src/v5/alert/Alert.js +43 -0
- package/dist-src/v5/banner/Banner.js +61 -0
- package/dist-src/v5/box/Box.js +153 -0
- package/dist-src/v5/button/Button.js +227 -0
- package/dist-src/v5/button-area/ButtonArea.js +48 -0
- package/dist-src/v5/description-item/DescriptionItem.js +75 -0
- package/dist-src/v5/file-drop-zone/FileDropZone.js +132 -0
- package/dist-src/v5/file-list-item/FileListItem.js +136 -0
- package/dist-src/v5/index.js +16 -0
- package/dist-src/v5/sidebar/Sidebar.js +66 -0
- package/dist-src/v5/sidebar/SidebarContainer.js +25 -0
- package/dist-src/v5/sidebar/SidebarDivider.js +15 -0
- package/dist-src/v5/sidebar/SidebarMenuItem.js +124 -0
- package/dist-src/v5/sidebar/SidebarMenuItemAction.js +26 -0
- package/dist-src/v5/sidebar/SidebarMenuItemAvatar.js +53 -0
- package/dist-src/v5/sidebar/SidebarMenuItemContext.js +21 -0
- package/dist-src/v5/sidebar/SidebarSubheader.js +41 -0
- package/dist-src/v5/text-box/TextBox.js +133 -0
- package/dist-src/v5/utils/RuleNormalizer.js +17 -0
- package/dist-src/v5/utils/mergeStyles.js +24 -0
- package/dist-types/index.d.ts +340 -10
- package/dist-web/index.js +1553 -139
- package/dist-web/index.js.map +1 -1
- package/package.json +4 -4
package/dist-types/index.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ReactNode, ForwardRefExoticComponent, RefAttributes, Ref, AriaAttributes, MouseEventHandler, FocusEventHandler, ReactChild, MouseEvent, ReactElement } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { CSSTransition } from 'react-transition-group';
|
|
4
|
+
import { CSSTransitionProps } from 'react-transition-group/CSSTransition';
|
|
5
|
+
import { v5, SpaceProp as SpaceProp$1, NegativeSpaceProp as NegativeSpaceProp$1, ResponsiveProp as ResponsiveProp$2, ColorProp as ColorProp$1 } from '@superdispatch/ui';
|
|
4
6
|
import { Property } from 'csstype';
|
|
5
|
-
import { ButtonBaseProps, TooltipProps } from '@material
|
|
7
|
+
import { ButtonBaseProps, TooltipProps } from '@mui/material';
|
|
6
8
|
import { FileRejection } from 'react-dropzone';
|
|
9
|
+
import { ButtonBaseProps as ButtonBaseProps$1, TooltipProps as TooltipProps$1 } from '@material-ui/core';
|
|
7
10
|
|
|
8
11
|
declare type AlertSeverityProp = 'positive' | 'info' | 'caution' | 'critical';
|
|
9
12
|
interface AlertProps {
|
|
@@ -13,6 +16,18 @@ interface AlertProps {
|
|
|
13
16
|
}
|
|
14
17
|
declare const Alert: ForwardRefExoticComponent<AlertProps & RefAttributes<HTMLDivElement>>;
|
|
15
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'>;
|
|
25
|
+
declare const Banner: ForwardRefExoticComponent<Pick<BannerProps, string | number> & RefAttributes<CSSTransition<HTMLDivElement>>>;
|
|
26
|
+
|
|
27
|
+
declare type ColorProp = v5.ColorProp;
|
|
28
|
+
declare type NegativeSpaceProp = v5.NegativeSpaceProp;
|
|
29
|
+
declare type ResponsiveProp<T extends v5.ResponsivePropPrimitive> = v5.ResponsiveProp<T>;
|
|
30
|
+
declare type SpaceProp = v5.SpaceProp;
|
|
16
31
|
declare type MarginProp = 'auto' | SpaceProp | NegativeSpaceProp;
|
|
17
32
|
declare type BorderRadiusProp = 'none' | 'small';
|
|
18
33
|
declare type BorderWidthProp = 'none' | 'small' | 'medium' | 'large';
|
|
@@ -76,7 +91,7 @@ interface ButtonAreaProps extends ButtonBaseProps {
|
|
|
76
91
|
fullWidth?: boolean;
|
|
77
92
|
variant?: ButtonAreaVariant;
|
|
78
93
|
}
|
|
79
|
-
declare const ButtonArea: ForwardRefExoticComponent<Pick<ButtonAreaProps, "className" | "style" | "classes" | "
|
|
94
|
+
declare const ButtonArea: ForwardRefExoticComponent<Pick<ButtonAreaProps, "className" | "style" | "classes" | "form" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "fullWidth" | "variant" | "key" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "icon" | "active"> & RefAttributes<HTMLButtonElement>>;
|
|
80
95
|
|
|
81
96
|
declare type ButtonSizeProp = 'small' | 'medium' | 'large';
|
|
82
97
|
declare type ButtonVariantProp = 'critical' | 'default' | 'inverted' | 'neutral' | 'primary' | 'text';
|
|
@@ -196,8 +211,9 @@ interface SidebarSubheaderProps {
|
|
|
196
211
|
}
|
|
197
212
|
declare const SidebarSubheader: ForwardRefExoticComponent<SidebarSubheaderProps & RefAttributes<HTMLDivElement>>;
|
|
198
213
|
|
|
214
|
+
declare type ResponsiveProp$1<T extends v5.ResponsivePropPrimitive> = v5.ResponsiveProp<T>;
|
|
199
215
|
declare type TextAlignProp = 'left' | 'right' | 'center';
|
|
200
|
-
declare type TextColorProp = 'primary' | 'secondary' | 'white' | 'blue' | 'green' | 'purple' | 'red' | 'teal' | 'yellow';
|
|
216
|
+
declare type TextColorProp = 'inherit' | 'primary' | 'secondary' | 'white' | 'blue' | 'green' | 'purple' | 'red' | 'teal' | 'yellow';
|
|
201
217
|
declare type TextDisplayProp = 'none' | 'block' | 'inline' | 'initial' | 'inherit';
|
|
202
218
|
declare type TextVariantProp = 'heading-1' | 'heading-2' | 'heading-3' | 'heading-4' | 'heading-5' | 'heading-6' | 'body' | 'body-block' | 'body-semibold' | 'caption';
|
|
203
219
|
interface TextBoxProps {
|
|
@@ -208,12 +224,326 @@ interface TextBoxProps {
|
|
|
208
224
|
'aria-labelledby'?: string;
|
|
209
225
|
'aria-describedby'?: string;
|
|
210
226
|
variant?: TextVariantProp;
|
|
211
|
-
noWrap?: ResponsiveProp<boolean>;
|
|
212
|
-
wrapOverflow?: ResponsiveProp<boolean>;
|
|
213
|
-
align?: ResponsiveProp<TextAlignProp>;
|
|
214
|
-
color?: ResponsiveProp<TextColorProp>;
|
|
215
|
-
display?: ResponsiveProp<TextDisplayProp>;
|
|
227
|
+
noWrap?: ResponsiveProp$1<boolean>;
|
|
228
|
+
wrapOverflow?: ResponsiveProp$1<boolean>;
|
|
229
|
+
align?: ResponsiveProp$1<TextAlignProp>;
|
|
230
|
+
color?: ResponsiveProp$1<TextColorProp>;
|
|
231
|
+
display?: ResponsiveProp$1<TextDisplayProp>;
|
|
216
232
|
}
|
|
217
233
|
declare const TextBox: ForwardRefExoticComponent<TextBoxProps & RefAttributes<HTMLElement>>;
|
|
218
234
|
|
|
219
|
-
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
type index_d_AlertSeverityProp = AlertSeverityProp;
|
|
238
|
+
type index_d_AlertProps = AlertProps;
|
|
239
|
+
declare const index_d_Alert: typeof Alert;
|
|
240
|
+
declare const index_d_Banner: typeof Banner;
|
|
241
|
+
type index_d_MarginProp = MarginProp;
|
|
242
|
+
type index_d_BorderRadiusProp = BorderRadiusProp;
|
|
243
|
+
type index_d_BorderWidthProp = BorderWidthProp;
|
|
244
|
+
type index_d_BoxProps = BoxProps;
|
|
245
|
+
declare const index_d_Box: typeof Box;
|
|
246
|
+
type index_d_ButtonAreaProps = ButtonAreaProps;
|
|
247
|
+
declare const index_d_ButtonArea: typeof ButtonArea;
|
|
248
|
+
type index_d_ButtonSizeProp = ButtonSizeProp;
|
|
249
|
+
type index_d_ButtonVariantProp = ButtonVariantProp;
|
|
250
|
+
type index_d_ButtonProps = ButtonProps;
|
|
251
|
+
declare const index_d_Button: typeof Button;
|
|
252
|
+
type index_d_AnchorButtonProps = AnchorButtonProps;
|
|
253
|
+
declare const index_d_AnchorButton: typeof AnchorButton;
|
|
254
|
+
type index_d_DescriptionItemProps = DescriptionItemProps;
|
|
255
|
+
declare const index_d_DescriptionItem: typeof DescriptionItem;
|
|
256
|
+
declare const index_d_toBytes: typeof toBytes;
|
|
257
|
+
declare const index_d_formatBytes: typeof formatBytes;
|
|
258
|
+
type index_d_FileDropZoneProps = FileDropZoneProps;
|
|
259
|
+
declare const index_d_FileDropZone: typeof FileDropZone;
|
|
260
|
+
type index_d_FileListItemProps = FileListItemProps;
|
|
261
|
+
declare const index_d_FileListItem: typeof FileListItem;
|
|
262
|
+
type index_d_SidebarProps = SidebarProps;
|
|
263
|
+
declare const index_d_Sidebar: typeof Sidebar;
|
|
264
|
+
type index_d_SidebarContainerProps = SidebarContainerProps;
|
|
265
|
+
declare const index_d_SidebarContainer: typeof SidebarContainer;
|
|
266
|
+
declare const index_d_SidebarDivider: typeof SidebarDivider;
|
|
267
|
+
type index_d_SidebarMenuItemProps = SidebarMenuItemProps;
|
|
268
|
+
declare const index_d_SidebarMenuItem: typeof SidebarMenuItem;
|
|
269
|
+
type index_d_SidebarMenuItemActionProps = SidebarMenuItemActionProps;
|
|
270
|
+
declare const index_d_SidebarMenuItemAction: typeof SidebarMenuItemAction;
|
|
271
|
+
type index_d_SidebarMenuItemAvatarProps = SidebarMenuItemAvatarProps;
|
|
272
|
+
declare const index_d_SidebarMenuItemAvatar: typeof SidebarMenuItemAvatar;
|
|
273
|
+
type index_d_SidebarSubheaderProps = SidebarSubheaderProps;
|
|
274
|
+
declare const index_d_SidebarSubheader: typeof SidebarSubheader;
|
|
275
|
+
type index_d_TextAlignProp = TextAlignProp;
|
|
276
|
+
type index_d_TextColorProp = TextColorProp;
|
|
277
|
+
type index_d_TextDisplayProp = TextDisplayProp;
|
|
278
|
+
type index_d_TextVariantProp = TextVariantProp;
|
|
279
|
+
type index_d_TextBoxProps = TextBoxProps;
|
|
280
|
+
declare const index_d_TextBox: typeof TextBox;
|
|
281
|
+
declare namespace index_d {
|
|
282
|
+
export {
|
|
283
|
+
index_d_AlertSeverityProp as AlertSeverityProp,
|
|
284
|
+
index_d_AlertProps as AlertProps,
|
|
285
|
+
index_d_Alert as Alert,
|
|
286
|
+
index_d_Banner as Banner,
|
|
287
|
+
index_d_MarginProp as MarginProp,
|
|
288
|
+
index_d_BorderRadiusProp as BorderRadiusProp,
|
|
289
|
+
index_d_BorderWidthProp as BorderWidthProp,
|
|
290
|
+
index_d_BoxProps as BoxProps,
|
|
291
|
+
index_d_Box as Box,
|
|
292
|
+
index_d_ButtonAreaProps as ButtonAreaProps,
|
|
293
|
+
index_d_ButtonArea as ButtonArea,
|
|
294
|
+
index_d_ButtonSizeProp as ButtonSizeProp,
|
|
295
|
+
index_d_ButtonVariantProp as ButtonVariantProp,
|
|
296
|
+
index_d_ButtonProps as ButtonProps,
|
|
297
|
+
index_d_Button as Button,
|
|
298
|
+
index_d_AnchorButtonProps as AnchorButtonProps,
|
|
299
|
+
index_d_AnchorButton as AnchorButton,
|
|
300
|
+
index_d_DescriptionItemProps as DescriptionItemProps,
|
|
301
|
+
index_d_DescriptionItem as DescriptionItem,
|
|
302
|
+
index_d_toBytes as toBytes,
|
|
303
|
+
index_d_formatBytes as formatBytes,
|
|
304
|
+
index_d_FileDropZoneProps as FileDropZoneProps,
|
|
305
|
+
index_d_FileDropZone as FileDropZone,
|
|
306
|
+
index_d_FileListItemProps as FileListItemProps,
|
|
307
|
+
index_d_FileListItem as FileListItem,
|
|
308
|
+
index_d_SidebarProps as SidebarProps,
|
|
309
|
+
index_d_Sidebar as Sidebar,
|
|
310
|
+
index_d_SidebarContainerProps as SidebarContainerProps,
|
|
311
|
+
index_d_SidebarContainer as SidebarContainer,
|
|
312
|
+
index_d_SidebarDivider as SidebarDivider,
|
|
313
|
+
index_d_SidebarMenuItemProps as SidebarMenuItemProps,
|
|
314
|
+
index_d_SidebarMenuItem as SidebarMenuItem,
|
|
315
|
+
index_d_SidebarMenuItemActionProps as SidebarMenuItemActionProps,
|
|
316
|
+
index_d_SidebarMenuItemAction as SidebarMenuItemAction,
|
|
317
|
+
index_d_SidebarMenuItemAvatarProps as SidebarMenuItemAvatarProps,
|
|
318
|
+
index_d_SidebarMenuItemAvatar as SidebarMenuItemAvatar,
|
|
319
|
+
index_d_SidebarSubheaderProps as SidebarSubheaderProps,
|
|
320
|
+
index_d_SidebarSubheader as SidebarSubheader,
|
|
321
|
+
index_d_TextAlignProp as TextAlignProp,
|
|
322
|
+
index_d_TextColorProp as TextColorProp,
|
|
323
|
+
index_d_TextDisplayProp as TextDisplayProp,
|
|
324
|
+
index_d_TextVariantProp as TextVariantProp,
|
|
325
|
+
index_d_TextBoxProps as TextBoxProps,
|
|
326
|
+
index_d_TextBox as TextBox,
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
declare type AlertSeverityProp$1 = 'positive' | 'info' | 'caution' | 'critical';
|
|
331
|
+
interface AlertProps$1 {
|
|
332
|
+
onClose?: () => void;
|
|
333
|
+
children?: ReactNode;
|
|
334
|
+
severity?: AlertSeverityProp$1;
|
|
335
|
+
}
|
|
336
|
+
declare const Alert$1: ForwardRefExoticComponent<AlertProps$1 & RefAttributes<HTMLDivElement>>;
|
|
337
|
+
|
|
338
|
+
declare type BorderPlacement$1 = 'top' | 'bottom';
|
|
339
|
+
declare type CustomerTransitionProps$1 = CSSTransitionProps<HTMLDivElement> & {
|
|
340
|
+
className?: string;
|
|
341
|
+
border?: BorderPlacement$1;
|
|
342
|
+
};
|
|
343
|
+
declare type BannerProps$1 = Omit<CustomerTransitionProps$1, 'timeout' | 'className' | 'classNames'>;
|
|
344
|
+
declare const Banner$1: ForwardRefExoticComponent<Pick<BannerProps$1, string | number> & RefAttributes<CSSTransition<HTMLDivElement>>>;
|
|
345
|
+
|
|
346
|
+
declare type MarginProp$1 = 'auto' | SpaceProp$1 | NegativeSpaceProp$1;
|
|
347
|
+
declare type BorderRadiusProp$1 = 'none' | 'small';
|
|
348
|
+
declare type BorderWidthProp$1 = 'none' | 'small' | 'medium' | 'large';
|
|
349
|
+
interface BoxRules$1 {
|
|
350
|
+
display?: ResponsiveProp$2<Property.Display>;
|
|
351
|
+
color?: ResponsiveProp$2<ColorProp$1>;
|
|
352
|
+
backgroundColor?: ResponsiveProp$2<ColorProp$1>;
|
|
353
|
+
borderColor?: ResponsiveProp$2<ColorProp$1>;
|
|
354
|
+
borderTopColor?: ResponsiveProp$2<ColorProp$1>;
|
|
355
|
+
borderLeftColor?: ResponsiveProp$2<ColorProp$1>;
|
|
356
|
+
borderRightColor?: ResponsiveProp$2<ColorProp$1>;
|
|
357
|
+
borderBottomColor?: ResponsiveProp$2<ColorProp$1>;
|
|
358
|
+
borderWidth?: ResponsiveProp$2<BorderWidthProp$1>;
|
|
359
|
+
borderTopWidth?: ResponsiveProp$2<BorderWidthProp$1>;
|
|
360
|
+
borderLeftWidth?: ResponsiveProp$2<BorderWidthProp$1>;
|
|
361
|
+
borderRightWidth?: ResponsiveProp$2<BorderWidthProp$1>;
|
|
362
|
+
borderBottomWidth?: ResponsiveProp$2<BorderWidthProp$1>;
|
|
363
|
+
padding?: ResponsiveProp$2<SpaceProp$1>;
|
|
364
|
+
paddingTop?: ResponsiveProp$2<SpaceProp$1>;
|
|
365
|
+
paddingLeft?: ResponsiveProp$2<SpaceProp$1>;
|
|
366
|
+
paddingRight?: ResponsiveProp$2<SpaceProp$1>;
|
|
367
|
+
paddingBottom?: ResponsiveProp$2<SpaceProp$1>;
|
|
368
|
+
margin?: ResponsiveProp$2<MarginProp$1>;
|
|
369
|
+
marginTop?: ResponsiveProp$2<MarginProp$1>;
|
|
370
|
+
marginLeft?: ResponsiveProp$2<MarginProp$1>;
|
|
371
|
+
marginRight?: ResponsiveProp$2<MarginProp$1>;
|
|
372
|
+
marginBottom?: ResponsiveProp$2<MarginProp$1>;
|
|
373
|
+
borderRadius?: ResponsiveProp$2<BorderRadiusProp$1>;
|
|
374
|
+
borderTopLeftRadius?: ResponsiveProp$2<BorderRadiusProp$1>;
|
|
375
|
+
borderTopRightRadius?: ResponsiveProp$2<BorderRadiusProp$1>;
|
|
376
|
+
borderBottomLeftRadius?: ResponsiveProp$2<BorderRadiusProp$1>;
|
|
377
|
+
borderBottomRightRadius?: ResponsiveProp$2<BorderRadiusProp$1>;
|
|
378
|
+
fontSize?: ResponsiveProp$2<Property.FontSize>;
|
|
379
|
+
width?: ResponsiveProp$2<Property.Width>;
|
|
380
|
+
maxWidth?: ResponsiveProp$2<Property.MaxWidth>;
|
|
381
|
+
minWidth?: ResponsiveProp$2<Property.MinWidth>;
|
|
382
|
+
height?: ResponsiveProp$2<Property.Height>;
|
|
383
|
+
maxHeight?: ResponsiveProp$2<Property.MaxHeight>;
|
|
384
|
+
minHeight?: ResponsiveProp$2<Property.MinHeight>;
|
|
385
|
+
overflow?: ResponsiveProp$2<Property.Overflow>;
|
|
386
|
+
overflowY?: ResponsiveProp$2<Property.OverflowY>;
|
|
387
|
+
overflowX?: ResponsiveProp$2<Property.OverflowX>;
|
|
388
|
+
top?: ResponsiveProp$2<Property.Top>;
|
|
389
|
+
left?: ResponsiveProp$2<Property.Left>;
|
|
390
|
+
right?: ResponsiveProp$2<Property.Right>;
|
|
391
|
+
bottom?: ResponsiveProp$2<Property.Bottom>;
|
|
392
|
+
position?: ResponsiveProp$2<Property.Position>;
|
|
393
|
+
}
|
|
394
|
+
interface BoxProps$1 extends BoxRules$1 {
|
|
395
|
+
ref?: Ref<unknown>;
|
|
396
|
+
as?: keyof JSX.IntrinsicElements;
|
|
397
|
+
role?: string;
|
|
398
|
+
children?: ReactNode;
|
|
399
|
+
}
|
|
400
|
+
declare const Box$1: ForwardRefExoticComponent<BoxProps$1>;
|
|
401
|
+
|
|
402
|
+
declare type ButtonAreaVariant$1 = 'danger' | 'success';
|
|
403
|
+
interface ButtonAreaProps$1 extends ButtonBaseProps$1 {
|
|
404
|
+
icon: ReactNode;
|
|
405
|
+
active?: boolean;
|
|
406
|
+
fullWidth?: boolean;
|
|
407
|
+
variant?: ButtonAreaVariant$1;
|
|
408
|
+
}
|
|
409
|
+
declare const ButtonArea$1: ForwardRefExoticComponent<Pick<ButtonAreaProps$1, "className" | "style" | "classes" | "form" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "fullWidth" | "variant" | "key" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "icon" | "active" | "innerRef" | "buttonRef"> & RefAttributes<HTMLButtonElement>>;
|
|
410
|
+
|
|
411
|
+
declare type ButtonSizeProp$1 = 'small' | 'medium' | 'large';
|
|
412
|
+
declare type ButtonVariantProp$1 = 'critical' | 'default' | 'inverted' | 'neutral' | 'primary' | 'text';
|
|
413
|
+
interface BaseButtonProps$1<T extends HTMLElement> extends Pick<AriaAttributes, 'aria-label' | 'aria-controls' | 'aria-haspopup' | 'aria-labelledby'> {
|
|
414
|
+
active?: boolean;
|
|
415
|
+
pending?: boolean;
|
|
416
|
+
disabled?: boolean;
|
|
417
|
+
autoFocus?: boolean;
|
|
418
|
+
fullWidth?: boolean;
|
|
419
|
+
size?: ButtonSizeProp$1;
|
|
420
|
+
variant?: ButtonVariantProp$1;
|
|
421
|
+
children?: ReactNode;
|
|
422
|
+
startIcon?: ReactNode;
|
|
423
|
+
endIcon?: ReactNode;
|
|
424
|
+
id?: string;
|
|
425
|
+
tabIndex?: number;
|
|
426
|
+
onClick?: MouseEventHandler<T>;
|
|
427
|
+
onFocus?: FocusEventHandler<T>;
|
|
428
|
+
onBlur?: FocusEventHandler<T>;
|
|
429
|
+
}
|
|
430
|
+
interface ButtonProps$1 extends BaseButtonProps$1<HTMLButtonElement> {
|
|
431
|
+
type?: 'button' | 'submit';
|
|
432
|
+
}
|
|
433
|
+
declare const Button$1: ForwardRefExoticComponent<ButtonProps$1 & RefAttributes<HTMLButtonElement>>;
|
|
434
|
+
interface AnchorButtonProps$1 extends BaseButtonProps$1<HTMLAnchorElement> {
|
|
435
|
+
href: string;
|
|
436
|
+
target?: '_self' | '_blank';
|
|
437
|
+
}
|
|
438
|
+
declare const AnchorButton$1: ForwardRefExoticComponent<AnchorButtonProps$1 & RefAttributes<HTMLAnchorElement>>;
|
|
439
|
+
|
|
440
|
+
interface DescriptionItemProps$1 {
|
|
441
|
+
id?: string;
|
|
442
|
+
'aria-label'?: string;
|
|
443
|
+
wrap?: boolean;
|
|
444
|
+
inset?: boolean;
|
|
445
|
+
icon?: ReactNode;
|
|
446
|
+
label?: ReactNode;
|
|
447
|
+
fallback?: ReactNode;
|
|
448
|
+
children?: ReactNode;
|
|
449
|
+
}
|
|
450
|
+
declare const DescriptionItem$1: ForwardRefExoticComponent<DescriptionItemProps$1 & RefAttributes<HTMLDivElement>>;
|
|
451
|
+
|
|
452
|
+
declare function toBytes$1(input: number, unit: 'kb' | 'mb' | 'gb'): number;
|
|
453
|
+
declare function formatBytes$1(bytes: number): string;
|
|
454
|
+
interface FileDropZoneProps$1 {
|
|
455
|
+
children?: ReactNode;
|
|
456
|
+
startIcon?: ReactNode;
|
|
457
|
+
hintText?: ReactNode;
|
|
458
|
+
fallback?: ReactNode;
|
|
459
|
+
disabled?: boolean;
|
|
460
|
+
maxSize?: number;
|
|
461
|
+
maxFiles?: number;
|
|
462
|
+
accept?: string | string[];
|
|
463
|
+
onDropAccepted?: (files: File[]) => void;
|
|
464
|
+
onDropRejected?: (fileRejections: FileRejection[]) => void;
|
|
465
|
+
}
|
|
466
|
+
declare const FileDropZone$1: ForwardRefExoticComponent<FileDropZoneProps$1 & RefAttributes<HTMLButtonElement>>;
|
|
467
|
+
|
|
468
|
+
interface FileListItemProps$1 {
|
|
469
|
+
url?: string;
|
|
470
|
+
name: string;
|
|
471
|
+
onRetry?: () => void;
|
|
472
|
+
onDelete?: () => void;
|
|
473
|
+
helperText?: ReactNode;
|
|
474
|
+
status?: 'idle' | 'loading' | 'error' | 'success';
|
|
475
|
+
}
|
|
476
|
+
declare const FileListItem$1: ForwardRefExoticComponent<FileListItemProps$1 & RefAttributes<HTMLDivElement>>;
|
|
477
|
+
|
|
478
|
+
interface SidebarProps$1 {
|
|
479
|
+
id?: string;
|
|
480
|
+
title?: ReactNode;
|
|
481
|
+
count?: null | number;
|
|
482
|
+
header?: ReactNode;
|
|
483
|
+
children?: ReactNode;
|
|
484
|
+
}
|
|
485
|
+
declare const Sidebar$1: ForwardRefExoticComponent<SidebarProps$1 & RefAttributes<HTMLDivElement>>;
|
|
486
|
+
|
|
487
|
+
interface SidebarContainerProps$1 {
|
|
488
|
+
sidebar: ReactChild;
|
|
489
|
+
children?: ReactNode;
|
|
490
|
+
}
|
|
491
|
+
declare const SidebarContainer$1: ForwardRefExoticComponent<SidebarContainerProps$1 & RefAttributes<HTMLDivElement>>;
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
declare const SidebarDivider$1: ForwardRefExoticComponent<RefAttributes<HTMLDivElement>>;
|
|
495
|
+
|
|
496
|
+
interface SidebarMenuItemProps$1 {
|
|
497
|
+
selected?: boolean;
|
|
498
|
+
external?: boolean;
|
|
499
|
+
disabled?: boolean;
|
|
500
|
+
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
501
|
+
badge?: null | number;
|
|
502
|
+
action?: ReactNode;
|
|
503
|
+
avatar?: ReactNode;
|
|
504
|
+
children?: ReactNode;
|
|
505
|
+
secondaryActions?: ReactNode;
|
|
506
|
+
}
|
|
507
|
+
declare const SidebarMenuItem$1: ForwardRefExoticComponent<SidebarMenuItemProps$1 & RefAttributes<HTMLDivElement>>;
|
|
508
|
+
|
|
509
|
+
interface SidebarMenuItemActionProps$1 extends Pick<TooltipProps$1, 'title' | 'placement'> {
|
|
510
|
+
children: ReactElement;
|
|
511
|
+
}
|
|
512
|
+
declare const SidebarMenuItemAction$1: ForwardRefExoticComponent<SidebarMenuItemActionProps$1 & RefAttributes<HTMLButtonElement>>;
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
interface SidebarMenuItemAvatarProps$1 {
|
|
516
|
+
children: string;
|
|
517
|
+
value?: boolean;
|
|
518
|
+
onChange?: (checked: boolean) => void;
|
|
519
|
+
}
|
|
520
|
+
declare const SidebarMenuItemAvatar$1: ForwardRefExoticComponent<SidebarMenuItemAvatarProps$1 & RefAttributes<HTMLDivElement>>;
|
|
521
|
+
|
|
522
|
+
interface SidebarSubheaderProps$1 {
|
|
523
|
+
id?: string;
|
|
524
|
+
action?: ReactNode;
|
|
525
|
+
children?: ReactNode;
|
|
526
|
+
}
|
|
527
|
+
declare const SidebarSubheader$1: ForwardRefExoticComponent<SidebarSubheaderProps$1 & RefAttributes<HTMLDivElement>>;
|
|
528
|
+
|
|
529
|
+
declare type TextAlignProp$1 = 'left' | 'right' | 'center';
|
|
530
|
+
declare type TextColorProp$1 = 'inherit' | 'primary' | 'secondary' | 'white' | 'blue' | 'green' | 'purple' | 'red' | 'teal' | 'yellow';
|
|
531
|
+
declare type TextDisplayProp$1 = 'none' | 'block' | 'inline' | 'initial' | 'inherit';
|
|
532
|
+
declare type TextVariantProp$1 = 'heading-1' | 'heading-2' | 'heading-3' | 'heading-4' | 'heading-5' | 'heading-6' | 'body' | 'body-block' | 'body-semibold' | 'caption';
|
|
533
|
+
interface TextBoxProps$1 {
|
|
534
|
+
children?: ReactNode;
|
|
535
|
+
as?: keyof JSX.IntrinsicElements;
|
|
536
|
+
id?: string;
|
|
537
|
+
'aria-label'?: string;
|
|
538
|
+
'aria-labelledby'?: string;
|
|
539
|
+
'aria-describedby'?: string;
|
|
540
|
+
variant?: TextVariantProp$1;
|
|
541
|
+
noWrap?: ResponsiveProp$2<boolean>;
|
|
542
|
+
wrapOverflow?: ResponsiveProp$2<boolean>;
|
|
543
|
+
align?: ResponsiveProp$2<TextAlignProp$1>;
|
|
544
|
+
color?: ResponsiveProp$2<TextColorProp$1>;
|
|
545
|
+
display?: ResponsiveProp$2<TextDisplayProp$1>;
|
|
546
|
+
}
|
|
547
|
+
declare const TextBox$1: ForwardRefExoticComponent<TextBoxProps$1 & RefAttributes<HTMLElement>>;
|
|
548
|
+
|
|
549
|
+
export { Alert$1 as Alert, AlertProps$1 as AlertProps, AlertSeverityProp$1 as AlertSeverityProp, AnchorButton$1 as AnchorButton, AnchorButtonProps$1 as AnchorButtonProps, Banner$1 as Banner, BorderRadiusProp$1 as BorderRadiusProp, BorderWidthProp$1 as BorderWidthProp, Box$1 as Box, BoxProps$1 as BoxProps, Button$1 as Button, ButtonArea$1 as ButtonArea, ButtonAreaProps$1 as ButtonAreaProps, ButtonProps$1 as ButtonProps, ButtonSizeProp$1 as ButtonSizeProp, ButtonVariantProp$1 as ButtonVariantProp, DescriptionItem$1 as DescriptionItem, DescriptionItemProps$1 as DescriptionItemProps, FileDropZone$1 as FileDropZone, FileDropZoneProps$1 as FileDropZoneProps, FileListItem$1 as FileListItem, FileListItemProps$1 as FileListItemProps, MarginProp$1 as MarginProp, Sidebar$1 as Sidebar, SidebarContainer$1 as SidebarContainer, SidebarContainerProps$1 as SidebarContainerProps, SidebarDivider$1 as SidebarDivider, SidebarMenuItem$1 as SidebarMenuItem, SidebarMenuItemAction$1 as SidebarMenuItemAction, SidebarMenuItemActionProps$1 as SidebarMenuItemActionProps, SidebarMenuItemAvatar$1 as SidebarMenuItemAvatar, SidebarMenuItemAvatarProps$1 as SidebarMenuItemAvatarProps, SidebarMenuItemProps$1 as SidebarMenuItemProps, SidebarProps$1 as SidebarProps, SidebarSubheader$1 as SidebarSubheader, SidebarSubheaderProps$1 as SidebarSubheaderProps, TextAlignProp$1 as TextAlignProp, TextBox$1 as TextBox, TextBoxProps$1 as TextBoxProps, TextColorProp$1 as TextColorProp, TextDisplayProp$1 as TextDisplayProp, TextVariantProp$1 as TextVariantProp, formatBytes$1 as formatBytes, toBytes$1 as toBytes, index_d as v5 };
|