@up42/up-components 0.3.3 → 0.3.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/cjs/index.js +1 -1
- package/dist/cjs/types/components/Alert/Alert.d.ts +3 -1
- package/dist/cjs/types/components/Avatar/Avatar.d.ts +8 -1
- package/dist/cjs/types/components/Banner/Banner.d.ts +30 -0
- package/dist/cjs/types/components/Banner/Banner.stories.d.ts +9 -0
- package/dist/cjs/types/components/Banner/Banner.test.d.ts +1 -0
- package/dist/cjs/types/components/Box/Box.d.ts +5 -2
- package/dist/cjs/types/components/Button/Button.d.ts +7 -2
- package/dist/cjs/types/components/Button/Button.overrides.d.ts +0 -11
- package/dist/cjs/types/components/ControlButton/ControlButton.d.ts +14 -0
- package/dist/cjs/types/components/ControlButton/ControlButton.stories.d.ts +6 -0
- package/dist/cjs/types/components/ControlButton/ControlButton.test.d.ts +1 -0
- package/dist/cjs/types/components/DocumentationPopover/DocumentationPopover.d.ts +25 -0
- package/dist/cjs/types/components/DocumentationPopover/DocumentationPopover.stories.d.ts +5 -0
- package/dist/cjs/types/components/DocumentationPopover/DocumentationPopover.test.d.ts +1 -0
- package/dist/cjs/types/components/InfoCard/InfoCard.d.ts +22 -0
- package/dist/cjs/types/components/InfoCard/InfoCard.stories.d.ts +7 -0
- package/dist/cjs/types/components/InfoCard/InfoCard.test.d.ts +1 -0
- package/dist/cjs/types/components/InfoPopover/InfoPopover.d.ts +9 -0
- package/dist/cjs/types/components/InfoPopover/InfoPopover.stories.d.ts +6 -0
- package/dist/cjs/types/components/InfoPopover/InfoPopover.test.d.ts +1 -0
- package/dist/cjs/types/components/Popover/Popover.d.ts +8 -0
- package/dist/cjs/types/components/Popover/Popover.stories.d.ts +5 -0
- package/dist/cjs/types/components/Popover/Popover.test.d.ts +1 -0
- package/dist/cjs/types/components/Tooltip/Tooltip.d.ts +7 -0
- package/dist/cjs/types/components/Tooltip/Tooltip.stories.d.ts +6 -0
- package/dist/cjs/types/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/dist/cjs/types/global/icons/index.d.ts +6 -6
- package/dist/cjs/types/index.d.ts +7 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/types/components/Alert/Alert.d.ts +3 -1
- package/dist/esm/types/components/Avatar/Avatar.d.ts +8 -1
- package/dist/esm/types/components/Banner/Banner.d.ts +30 -0
- package/dist/esm/types/components/Banner/Banner.stories.d.ts +9 -0
- package/dist/esm/types/components/Banner/Banner.test.d.ts +1 -0
- package/dist/esm/types/components/Box/Box.d.ts +5 -2
- package/dist/esm/types/components/Button/Button.d.ts +7 -2
- package/dist/esm/types/components/Button/Button.overrides.d.ts +0 -11
- package/dist/esm/types/components/ControlButton/ControlButton.d.ts +14 -0
- package/dist/esm/types/components/ControlButton/ControlButton.stories.d.ts +6 -0
- package/dist/esm/types/components/ControlButton/ControlButton.test.d.ts +1 -0
- package/dist/esm/types/components/DocumentationPopover/DocumentationPopover.d.ts +25 -0
- package/dist/esm/types/components/DocumentationPopover/DocumentationPopover.stories.d.ts +5 -0
- package/dist/esm/types/components/DocumentationPopover/DocumentationPopover.test.d.ts +1 -0
- package/dist/esm/types/components/InfoCard/InfoCard.d.ts +22 -0
- package/dist/esm/types/components/InfoCard/InfoCard.stories.d.ts +7 -0
- package/dist/esm/types/components/InfoCard/InfoCard.test.d.ts +1 -0
- package/dist/esm/types/components/InfoPopover/InfoPopover.d.ts +9 -0
- package/dist/esm/types/components/InfoPopover/InfoPopover.stories.d.ts +6 -0
- package/dist/esm/types/components/InfoPopover/InfoPopover.test.d.ts +1 -0
- package/dist/esm/types/components/Popover/Popover.d.ts +8 -0
- package/dist/esm/types/components/Popover/Popover.stories.d.ts +5 -0
- package/dist/esm/types/components/Popover/Popover.test.d.ts +1 -0
- package/dist/esm/types/components/Tooltip/Tooltip.d.ts +7 -0
- package/dist/esm/types/components/Tooltip/Tooltip.stories.d.ts +6 -0
- package/dist/esm/types/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/dist/esm/types/global/icons/index.d.ts +6 -6
- package/dist/esm/types/index.d.ts +7 -0
- package/dist/index.d.ts +128 -6
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export { default as tokens } from '@up42/design-system-tokens/dist/json/tokens.json';
|
|
3
3
|
import * as _mui_material from '@mui/material';
|
|
4
|
-
import { BoxProps as BoxProps$1, TextFieldProps, ChipProps as ChipProps$1, AvatarProps as AvatarProps$1, ContainerProps as ContainerProps$1, CheckboxProps as CheckboxProps$1, RadioProps as RadioProps$1, RadioGroupProps, SwitchProps as SwitchProps$1, SelectProps as SelectProps$1, LinkProps as LinkProps$1, TabsProps as TabsProps$1, TabProps as TabProps$1, ModalProps as ModalProps$1, AlertProps as AlertProps$1,
|
|
4
|
+
import { BoxProps as BoxProps$1, TextFieldProps, ChipProps as ChipProps$1, AvatarProps as AvatarProps$1, ContainerProps as ContainerProps$1, CheckboxProps as CheckboxProps$1, RadioProps as RadioProps$1, RadioGroupProps, SwitchProps as SwitchProps$1, SelectProps as SelectProps$1, LinkProps as LinkProps$1, TabsProps as TabsProps$1, TabProps as TabProps$1, ModalProps as ModalProps$1, AlertProps as AlertProps$1, TooltipProps as TooltipProps$1, CardProps, IconButtonProps, PopoverProps as PopoverProps$1 } from '@mui/material';
|
|
5
5
|
export * from '@mui/material';
|
|
6
6
|
import { ThemeProviderProps } from '@mui/material/styles/ThemeProvider';
|
|
7
|
-
import { ButtonProps as ButtonProps$1 } from '@mui/material/Button';
|
|
8
7
|
import React, { ReactNode, ElementType } from 'react';
|
|
8
|
+
import { ButtonProps as ButtonProps$1 } from '@mui/material/Button';
|
|
9
9
|
import { TypographyProps as TypographyProps$1 } from '@mui/material/Typography';
|
|
10
10
|
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
11
11
|
import * as _mui_system from '@mui/system';
|
|
@@ -51,7 +51,12 @@ type FormBaseProps<C extends React.ElementType> = BaseProps<
|
|
|
51
51
|
declare type ButtonProps = MUIGlobalOmit<ButtonProps$1, {
|
|
52
52
|
loading?: boolean;
|
|
53
53
|
}>;
|
|
54
|
-
|
|
54
|
+
/**
|
|
55
|
+
* Documentation: https://up-components.up42.dev/?path=/story/data-entry-button
|
|
56
|
+
*/
|
|
57
|
+
declare const Button: React.ForwardRefExoticComponent<Pick<{
|
|
58
|
+
loading?: boolean | undefined;
|
|
59
|
+
} & Omit<ButtonProps$1<"button", {}>, "disableFocusRipple" | "disableRipple" | "classes" | "tabIndex" | "action" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "disableElevation" | "touchRippleRef">, "color" | "translate" | "startIcon" | "endIcon" | "size" | "fullWidth" | "className" | "style" | "form" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "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" | "css" | "disabled" | "onFocusVisible" | "sx" | "key" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "variant" | "href" | "loading"> & React.RefAttributes<unknown>>;
|
|
55
60
|
|
|
56
61
|
declare type TypographyProps<C extends React.ElementType = 'p'> = TypographyProps$1<C, {
|
|
57
62
|
component?: C;
|
|
@@ -66,7 +71,14 @@ declare type AvatarProps = MUIGlobalOmit<Omit<AvatarProps$1, 'children' | 'alt'
|
|
|
66
71
|
lastName?: string;
|
|
67
72
|
icon?: React.ReactNode;
|
|
68
73
|
}>;
|
|
69
|
-
|
|
74
|
+
/**
|
|
75
|
+
* Documentation: https://up-components.up42.dev/?path=/story/data-display-avatar
|
|
76
|
+
*/
|
|
77
|
+
declare const Avatar: React.ForwardRefExoticComponent<Pick<{
|
|
78
|
+
firstName?: string | undefined;
|
|
79
|
+
lastName?: string | undefined;
|
|
80
|
+
icon?: React.ReactNode;
|
|
81
|
+
} & Omit<Omit<AvatarProps$1<"div", {}>, "children" | "variant" | "src" | "alt" | "sizes" | "srcSet" | "imgProps">, "disableFocusRipple" | "disableRipple" | "classes" | "tabIndex" | "action" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "disableElevation" | "touchRippleRef">, "color" | "translate" | "icon" | "className" | "style" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "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" | "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" | "css" | "sx" | "key" | "firstName" | "lastName"> & React.RefAttributes<unknown>>;
|
|
70
82
|
|
|
71
83
|
declare type ContainerProps = MUIGlobalOmit<Omit<ContainerProps$1, 'maxWidth'>, {
|
|
72
84
|
/**
|
|
@@ -94,7 +106,10 @@ declare type ContainerProps = MUIGlobalOmit<Omit<ContainerProps$1, 'maxWidth'>,
|
|
|
94
106
|
declare const Container: ({ component, size, children, ...props }: ContainerProps) => JSX.Element;
|
|
95
107
|
|
|
96
108
|
declare type BoxProps = MUIGlobalOmit<BoxProps$1>;
|
|
97
|
-
|
|
109
|
+
/**
|
|
110
|
+
* Documentation: https://up-components.up42.dev/?path=/story/layout-box
|
|
111
|
+
*/
|
|
112
|
+
declare const Box: React.ForwardRefExoticComponent<Pick<Omit<BoxProps$1<"div", {}>, "disableFocusRipple" | "disableRipple" | "classes" | "tabIndex" | "action" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "disableElevation" | "touchRippleRef">, "translate" | "className" | "style" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "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" | "css" | "sx" | "key" | ("alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "typography" | "p" | "displayPrint" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "marginX" | "marginY" | "paddingX" | "paddingY") | "component"> & React.RefAttributes<unknown>>;
|
|
98
113
|
|
|
99
114
|
declare type CheckboxProps = MUIGlobalOmit<CheckboxProps$1>;
|
|
100
115
|
declare const Checkbox: ({ ...props }: CheckboxProps) => JSX.Element;
|
|
@@ -292,6 +307,7 @@ declare type ModalProps = MUIGlobalOmit<Omit<ModalProps$1, 'BackdropProps' | 'Ba
|
|
|
292
307
|
*/
|
|
293
308
|
declare const Modal: ({ title, subtitle, children, actions, open, maxWidth, onClose, ...props }: ModalProps) => JSX.Element;
|
|
294
309
|
|
|
310
|
+
declare type AlertColor = 'info' | 'error' | 'success';
|
|
295
311
|
declare type AlertProps = Omit<AlertProps$1, 'color' | 'elevation' | 'iconMapping' | 'severity' | 'square' | 'variant' | 'action'> & {
|
|
296
312
|
type?: AlertColor;
|
|
297
313
|
};
|
|
@@ -300,6 +316,112 @@ declare type AlertProps = Omit<AlertProps$1, 'color' | 'elevation' | 'iconMappin
|
|
|
300
316
|
*/
|
|
301
317
|
declare const Alert: ({ type, title, children, ...props }: AlertProps) => JSX.Element;
|
|
302
318
|
|
|
319
|
+
declare type BannerProps = {
|
|
320
|
+
/**
|
|
321
|
+
* Call To Action label
|
|
322
|
+
* */
|
|
323
|
+
actionLabel?: string;
|
|
324
|
+
/**
|
|
325
|
+
* Call To Action button props
|
|
326
|
+
* */
|
|
327
|
+
actionProps?: ButtonProps;
|
|
328
|
+
/**
|
|
329
|
+
* ### Stacked
|
|
330
|
+
* Stacked banners are contextual and should be placed within the page content.
|
|
331
|
+
*
|
|
332
|
+
* ### Inline
|
|
333
|
+
* Inline banners can be displayed prominently at the top of the screen (below the navigation) or contextually within the page content. Inline banners can be global or page specific.
|
|
334
|
+
*/
|
|
335
|
+
variant?: 'stacked' | 'inline';
|
|
336
|
+
/**
|
|
337
|
+
* Callback fired when the Banner requests to be dismissed.
|
|
338
|
+
*/
|
|
339
|
+
onDismiss?: ButtonProps['onClick'];
|
|
340
|
+
title: string;
|
|
341
|
+
} & Omit<AlertProps, 'title' | 'closeText' | 'icon' | 'role' | 'onClose'>;
|
|
342
|
+
/**
|
|
343
|
+
* Documentation: https://up-components.up42.dev/?path=/docs/feedback-banner
|
|
344
|
+
*/
|
|
345
|
+
declare const Banner: ({ type, variant, title, onDismiss, children, actionLabel, actionProps, ...props }: BannerProps) => JSX.Element;
|
|
346
|
+
|
|
347
|
+
declare type TooltipProps = Omit<TooltipProps$1, 'TransitionComponent' | 'TransitionProps' | 'PopperComponent' | 'PopperProps' | 'followCursor'>;
|
|
348
|
+
/**
|
|
349
|
+
* Documentation: https://up-components.up42.dev/?path=/docs/data-display-tooltip
|
|
350
|
+
*/
|
|
351
|
+
declare const Tooltip: ({ children, ...props }: TooltipProps) => JSX.Element;
|
|
352
|
+
|
|
353
|
+
declare type InfoCardProps = {
|
|
354
|
+
title: string;
|
|
355
|
+
subtitle?: string;
|
|
356
|
+
/**
|
|
357
|
+
* The content action section aka. card footer.
|
|
358
|
+
*/
|
|
359
|
+
actions?: React.ReactNode;
|
|
360
|
+
/**
|
|
361
|
+
* The content of the header action, usually an icon with a close event.
|
|
362
|
+
*/
|
|
363
|
+
headerAction?: React.ReactNode;
|
|
364
|
+
/**
|
|
365
|
+
* The Card's title typography variant.
|
|
366
|
+
*/
|
|
367
|
+
titleVariant?: 'h2' | 'h3' | 'overline';
|
|
368
|
+
} & Omit<CardProps, 'variant' | 'square' | 'raised'>;
|
|
369
|
+
/**
|
|
370
|
+
* Documentation: https://up-components.up42.dev/?path=/docs/patterns-infocard
|
|
371
|
+
*/
|
|
372
|
+
declare const InfoCard: ({ title, titleVariant, subtitle, children, actions, headerAction, ...props }: InfoCardProps) => JSX.Element;
|
|
373
|
+
|
|
374
|
+
declare type ControlButtonProps = MUIGlobalOmit<IconButtonProps, {
|
|
375
|
+
size?: 'medium' | 'small';
|
|
376
|
+
/**
|
|
377
|
+
* Remove default padding when using icons with built-in padding (Like MUI icons)
|
|
378
|
+
*/
|
|
379
|
+
removePadding?: boolean;
|
|
380
|
+
}>;
|
|
381
|
+
/**
|
|
382
|
+
* Documentation: https://up-components.up42.dev/?path=/data-entry-controlbutton--default
|
|
383
|
+
*/
|
|
384
|
+
declare const ControlButton: ({ size, removePadding, children, ...props }: ControlButtonProps) => JSX.Element;
|
|
385
|
+
|
|
386
|
+
declare type PopoverProps = MUIGlobalOmit<PopoverProps$1>;
|
|
387
|
+
/**
|
|
388
|
+
* Documentation: https://up-components.up42.dev/?path=/docs/data-display-popover
|
|
389
|
+
*/
|
|
390
|
+
declare const Popover: ({ children, ...props }: PopoverProps) => JSX.Element;
|
|
391
|
+
|
|
392
|
+
declare type InfoPopoverProps = InfoCardProps & {
|
|
393
|
+
icon?: React.ElementType;
|
|
394
|
+
};
|
|
395
|
+
/**
|
|
396
|
+
* Documentation: https://up-components.up42.dev/?path=/docs/patterns-popovers-infopopover
|
|
397
|
+
*/
|
|
398
|
+
declare const InfoPopover: ({ id, icon: Icon, actions, title, children, sx, ...props }: InfoPopoverProps) => JSX.Element;
|
|
399
|
+
|
|
400
|
+
declare type DocumentationPopoverProps = {
|
|
401
|
+
heading: string;
|
|
402
|
+
/**
|
|
403
|
+
* The main content of the Popover.
|
|
404
|
+
*/
|
|
405
|
+
content: string;
|
|
406
|
+
/**
|
|
407
|
+
* The label of the CTA button, usually *View Documentation*.
|
|
408
|
+
*/
|
|
409
|
+
linkText?: string;
|
|
410
|
+
/**
|
|
411
|
+
* The link of the CTA button. A pathname relative to the documentation base URL.
|
|
412
|
+
* i.e: `/getting-started/workflows/catalog`
|
|
413
|
+
*/
|
|
414
|
+
linkPath?: string;
|
|
415
|
+
/**
|
|
416
|
+
* Contentful entry ID.
|
|
417
|
+
*/
|
|
418
|
+
contentfulId: string;
|
|
419
|
+
};
|
|
420
|
+
/**
|
|
421
|
+
* Documentation: https://up-components.up42.dev/?path=/docs/patterns-popovers-documentationpopover
|
|
422
|
+
*/
|
|
423
|
+
declare const DocumentationPopover: ({ content, linkPath, linkText, heading, contentfulId, }: DocumentationPopoverProps) => JSX.Element;
|
|
424
|
+
|
|
303
425
|
declare type TableProps = MUIGlobalOmit<TableProps$1>;
|
|
304
426
|
declare const Table: ({ children, ...props }: TableProps) => JSX.Element;
|
|
305
427
|
declare type TableBodyProps = MUIGlobalOmit<TableBodyProps$1>;
|
|
@@ -319,4 +441,4 @@ declare const TableSortLabel: ({ children, ...props }: TableSortLabelProps) => J
|
|
|
319
441
|
declare type TableFooterProps = MUIGlobalOmit<TableFooterProps$1>;
|
|
320
442
|
declare const TableFooter: ({ children, ...props }: TableFooterProps) => JSX.Element;
|
|
321
443
|
|
|
322
|
-
export { Alert, AlertProps, Avatar, AvatarProps, Box, BoxProps, Button, ButtonProps, Checkbox, CheckboxProps, Chip, ChipProps, Container, ContainerProps, EmptyState, EmptyStateProps, FormCheckbox, FormCheckboxProps, FormInput, FormInputProps, FormRadio, FormRadioProps, FormSelect, FormSelectProps, FormSwitch, FormSwitchProps, Input, InputProps, Link, LinkProps, Modal, ModalProps, Radio, RadioProps, Select, SelectProps, Switch, SwitchProps, Tab, TabGroup, TabGroupProps, TabProps, Table, TableBody, TableBodyProps, TableCell, TableCellProps, TableContainer, TableContainerProps, TableFooter, TableFooterProps, TableHead, TableHeadProps, TablePagination, TablePaginationProps, TableProps, TableRow, TableRowProps, TableSortLabel, TableSortLabelProps, Tabs, TabsProps, Typography, TypographyProps, UpComponentsProvider, theme };
|
|
444
|
+
export { Alert, AlertProps, Avatar, AvatarProps, Banner, BannerProps, Box, BoxProps, Button, ButtonProps, Checkbox, CheckboxProps, Chip, ChipProps, Container, ContainerProps, ControlButton, ControlButtonProps, DocumentationPopover, DocumentationPopoverProps, EmptyState, EmptyStateProps, FormCheckbox, FormCheckboxProps, FormInput, FormInputProps, FormRadio, FormRadioProps, FormSelect, FormSelectProps, FormSwitch, FormSwitchProps, InfoCard, InfoCardProps, InfoPopover, InfoPopoverProps, Input, InputProps, Link, LinkProps, Modal, ModalProps, Popover, PopoverProps, Radio, RadioProps, Select, SelectProps, Switch, SwitchProps, Tab, TabGroup, TabGroupProps, TabProps, Table, TableBody, TableBodyProps, TableCell, TableCellProps, TableContainer, TableContainerProps, TableFooter, TableFooterProps, TableHead, TableHeadProps, TablePagination, TablePaginationProps, TableProps, TableRow, TableRowProps, TableSortLabel, TableSortLabelProps, Tabs, TabsProps, Tooltip, TooltipProps, Typography, TypographyProps, UpComponentsProvider, theme };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@up42/up-components",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"description": "UP42 Component Library",
|
|
5
5
|
"author": "Axel Fuhrmann axel.fuhrmann@up42.com",
|
|
6
6
|
"license": "ISC",
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"prepare": "husky install"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@up42/design-system-tokens": "^3.0.0"
|
|
27
|
+
"@up42/design-system-tokens": "^3.0.0",
|
|
28
|
+
"react-markdown": "^8.0.3"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
31
|
"@babel/core": "^7.16.10",
|