@up42/up-components 0.3.4 → 0.3.7

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.
Files changed (62) hide show
  1. package/dist/cjs/index.js +1 -1
  2. package/dist/cjs/types/components/Avatar/Avatar.d.ts +8 -1
  3. package/dist/cjs/types/components/Box/Box.d.ts +5 -2
  4. package/dist/cjs/types/components/Button/Button.d.ts +7 -2
  5. package/dist/cjs/types/components/Button/Button.overrides.d.ts +0 -11
  6. package/dist/cjs/types/components/ControlButton/ControlButton.d.ts +14 -0
  7. package/dist/cjs/types/components/ControlButton/ControlButton.stories.d.ts +6 -0
  8. package/dist/cjs/types/components/ControlButton/ControlButton.test.d.ts +1 -0
  9. package/dist/cjs/types/components/DocumentationPopover/DocumentationPopover.d.ts +25 -0
  10. package/dist/cjs/types/components/DocumentationPopover/DocumentationPopover.stories.d.ts +5 -0
  11. package/dist/cjs/types/components/DocumentationPopover/DocumentationPopover.test.d.ts +1 -0
  12. package/dist/cjs/types/components/InfoCard/InfoCard.d.ts +58 -0
  13. package/dist/cjs/types/components/InfoCard/InfoCard.stories.d.ts +7 -0
  14. package/dist/cjs/types/components/InfoCard/InfoCard.test.d.ts +1 -0
  15. package/dist/cjs/types/components/InfoModal/InfoModal.d.ts +14 -0
  16. package/dist/cjs/types/components/InfoModal/InfoModal.stories.d.ts +6 -0
  17. package/dist/cjs/types/components/InfoModal/InfoModal.test.d.ts +1 -0
  18. package/dist/cjs/types/components/InfoPopover/InfoPopover.d.ts +9 -0
  19. package/dist/cjs/types/components/InfoPopover/InfoPopover.stories.d.ts +6 -0
  20. package/dist/cjs/types/components/InfoPopover/InfoPopover.test.d.ts +1 -0
  21. package/dist/cjs/types/components/Modal/Modal.d.ts +3 -8
  22. package/dist/cjs/types/components/Modal/Modal.stories.d.ts +1 -2
  23. package/dist/cjs/types/components/Popover/Popover.d.ts +8 -0
  24. package/dist/cjs/types/components/Popover/Popover.stories.d.ts +5 -0
  25. package/dist/cjs/types/components/Popover/Popover.test.d.ts +1 -0
  26. package/dist/cjs/types/components/Tooltip/Tooltip.d.ts +7 -0
  27. package/dist/cjs/types/components/Tooltip/Tooltip.stories.d.ts +6 -0
  28. package/dist/cjs/types/components/Tooltip/Tooltip.test.d.ts +1 -0
  29. package/dist/cjs/types/global/icons/index.d.ts +6 -6
  30. package/dist/cjs/types/index.d.ts +7 -0
  31. package/dist/esm/index.js +1 -1
  32. package/dist/esm/types/components/Avatar/Avatar.d.ts +8 -1
  33. package/dist/esm/types/components/Box/Box.d.ts +5 -2
  34. package/dist/esm/types/components/Button/Button.d.ts +7 -2
  35. package/dist/esm/types/components/Button/Button.overrides.d.ts +0 -11
  36. package/dist/esm/types/components/ControlButton/ControlButton.d.ts +14 -0
  37. package/dist/esm/types/components/ControlButton/ControlButton.stories.d.ts +6 -0
  38. package/dist/esm/types/components/ControlButton/ControlButton.test.d.ts +1 -0
  39. package/dist/esm/types/components/DocumentationPopover/DocumentationPopover.d.ts +25 -0
  40. package/dist/esm/types/components/DocumentationPopover/DocumentationPopover.stories.d.ts +5 -0
  41. package/dist/esm/types/components/DocumentationPopover/DocumentationPopover.test.d.ts +1 -0
  42. package/dist/esm/types/components/InfoCard/InfoCard.d.ts +58 -0
  43. package/dist/esm/types/components/InfoCard/InfoCard.stories.d.ts +7 -0
  44. package/dist/esm/types/components/InfoCard/InfoCard.test.d.ts +1 -0
  45. package/dist/esm/types/components/InfoModal/InfoModal.d.ts +14 -0
  46. package/dist/esm/types/components/InfoModal/InfoModal.stories.d.ts +6 -0
  47. package/dist/esm/types/components/InfoModal/InfoModal.test.d.ts +1 -0
  48. package/dist/esm/types/components/InfoPopover/InfoPopover.d.ts +9 -0
  49. package/dist/esm/types/components/InfoPopover/InfoPopover.stories.d.ts +6 -0
  50. package/dist/esm/types/components/InfoPopover/InfoPopover.test.d.ts +1 -0
  51. package/dist/esm/types/components/Modal/Modal.d.ts +3 -8
  52. package/dist/esm/types/components/Modal/Modal.stories.d.ts +1 -2
  53. package/dist/esm/types/components/Popover/Popover.d.ts +8 -0
  54. package/dist/esm/types/components/Popover/Popover.stories.d.ts +5 -0
  55. package/dist/esm/types/components/Popover/Popover.test.d.ts +1 -0
  56. package/dist/esm/types/components/Tooltip/Tooltip.d.ts +7 -0
  57. package/dist/esm/types/components/Tooltip/Tooltip.stories.d.ts +6 -0
  58. package/dist/esm/types/components/Tooltip/Tooltip.test.d.ts +1 -0
  59. package/dist/esm/types/global/icons/index.d.ts +6 -6
  60. package/dist/esm/types/index.d.ts +7 -0
  61. package/dist/index.d.ts +124 -10
  62. 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 } 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, CardProps, AlertProps as AlertProps$1, TooltipProps as TooltipProps$1, 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
- declare const Button: ({ color, variant, size, loading, children, ...props }: ButtonProps) => JSX.Element;
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
- declare const Avatar: ({ icon, firstName, lastName, ...props }: AvatarProps) => JSX.Element;
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
- declare const Box: ({ children, ...props }: BoxProps) => JSX.Element;
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;
@@ -281,16 +296,58 @@ declare type EmptyStateProps<C extends React.ElementType = 'div'> = BaseProps<C,
281
296
  }>;
282
297
  declare const EmptyState: <C extends React.ElementType<any>>({ icon: Icon, title, subTitle, action, ...props }: EmptyStateProps<C>) => JSX.Element;
283
298
 
284
- declare type ModalProps = MUIGlobalOmit<Omit<ModalProps$1, 'BackdropProps' | 'BackdropComponent' | 'onBackdropClick'>, {
299
+ declare type ModalProps = MUIGlobalOmit<ModalProps$1>;
300
+ /**
301
+ * Documentation: https://up-components.up42.dev/?path=/docs/feedback-modal
302
+ */
303
+ declare const Modal: ({ children, ...props }: ModalProps) => JSX.Element;
304
+
305
+ declare type InfoCardProps = {
285
306
  title: string;
286
307
  subtitle?: string;
287
- actions?: ReactNode;
308
+ /**
309
+ * The content action section aka. card footer.
310
+ */
311
+ actions?: React.ReactNode;
312
+ /**
313
+ * The content of the header action, usually an icon with a close event.
314
+ */
315
+ headerAction?: React.ReactNode;
316
+ /**
317
+ * The Card's title typography variant.
318
+ */
319
+ titleVariant?: 'h2' | 'h3' | 'overline';
320
+ } & Omit<CardProps, 'variant' | 'square' | 'raised'>;
321
+ /**
322
+ * Documentation: https://up-components.up42.dev/?path=/docs/patterns-infocard
323
+ */
324
+ declare const InfoCard: React.ForwardRefExoticComponent<Pick<{
325
+ title: string;
326
+ subtitle?: string | undefined;
327
+ /**
328
+ * The content action section aka. card footer.
329
+ */
330
+ actions?: React.ReactNode;
331
+ /**
332
+ * The content of the header action, usually an icon with a close event.
333
+ */
334
+ headerAction?: React.ReactNode;
335
+ /**
336
+ * The Card's title typography variant.
337
+ */
338
+ titleVariant?: "h2" | "h3" | "overline" | undefined;
339
+ } & Omit<CardProps<"div", {}>, "variant" | "square" | "raised">, "color" | "translate" | keyof _mui_material_OverridableComponent.CommonProps | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "elevation" | "titleVariant" | "subtitle" | "actions" | "headerAction"> & React.RefAttributes<unknown>>;
340
+
341
+ declare type InfoModalProps = MUIGlobalOmit<Omit<ModalProps, 'BackdropProps' | 'BackdropComponent' | 'onBackdropClick'>, Omit<InfoCardProps, 'headerAction'> & {
342
+ /**
343
+ * Maximun width of the modal, in pixels.
344
+ */
288
345
  maxWidth?: number;
289
346
  }>;
290
347
  /**
291
- * Documentation: https://up-components.up42.dev/?path=/docs/feedback-modal
348
+ * Documentation: https://up-components.up42.dev/?path=/docs/patterns-infomodal
292
349
  */
293
- declare const Modal: ({ title, subtitle, children, actions, open, maxWidth, onClose, ...props }: ModalProps) => JSX.Element;
350
+ declare const InfoModal: ({ title, subtitle, children, actions, open, maxWidth, onClose, ...props }: InfoModalProps) => JSX.Element;
294
351
 
295
352
  declare type AlertColor = 'info' | 'error' | 'success';
296
353
  declare type AlertProps = Omit<AlertProps$1, 'color' | 'elevation' | 'iconMapping' | 'severity' | 'square' | 'variant' | 'action'> & {
@@ -329,6 +386,63 @@ declare type BannerProps = {
329
386
  */
330
387
  declare const Banner: ({ type, variant, title, onDismiss, children, actionLabel, actionProps, ...props }: BannerProps) => JSX.Element;
331
388
 
389
+ declare type TooltipProps = Omit<TooltipProps$1, 'TransitionComponent' | 'TransitionProps' | 'PopperComponent' | 'PopperProps' | 'followCursor'>;
390
+ /**
391
+ * Documentation: https://up-components.up42.dev/?path=/docs/data-display-tooltip
392
+ */
393
+ declare const Tooltip: ({ children, ...props }: TooltipProps) => JSX.Element;
394
+
395
+ declare type ControlButtonProps = MUIGlobalOmit<IconButtonProps, {
396
+ size?: 'medium' | 'small';
397
+ /**
398
+ * Remove default padding when using icons with built-in padding (Like MUI icons)
399
+ */
400
+ removePadding?: boolean;
401
+ }>;
402
+ /**
403
+ * Documentation: https://up-components.up42.dev/?path=/data-entry-controlbutton--default
404
+ */
405
+ declare const ControlButton: ({ size, removePadding, children, ...props }: ControlButtonProps) => JSX.Element;
406
+
407
+ declare type PopoverProps = MUIGlobalOmit<PopoverProps$1>;
408
+ /**
409
+ * Documentation: https://up-components.up42.dev/?path=/docs/data-display-popover
410
+ */
411
+ declare const Popover: ({ children, ...props }: PopoverProps) => JSX.Element;
412
+
413
+ declare type InfoPopoverProps = InfoCardProps & {
414
+ icon?: React.ElementType;
415
+ };
416
+ /**
417
+ * Documentation: https://up-components.up42.dev/?path=/docs/patterns-popovers-infopopover
418
+ */
419
+ declare const InfoPopover: ({ id, icon: Icon, actions, title, children, sx, ...props }: InfoPopoverProps) => JSX.Element;
420
+
421
+ declare type DocumentationPopoverProps = {
422
+ heading: string;
423
+ /**
424
+ * The main content of the Popover.
425
+ */
426
+ content: string;
427
+ /**
428
+ * The label of the CTA button, usually *View Documentation*.
429
+ */
430
+ linkText?: string;
431
+ /**
432
+ * The link of the CTA button. A pathname relative to the documentation base URL.
433
+ * i.e: `/getting-started/workflows/catalog`
434
+ */
435
+ linkPath?: string;
436
+ /**
437
+ * Contentful entry ID.
438
+ */
439
+ contentfulId: string;
440
+ };
441
+ /**
442
+ * Documentation: https://up-components.up42.dev/?path=/docs/patterns-popovers-documentationpopover
443
+ */
444
+ declare const DocumentationPopover: ({ content, linkPath, linkText, heading, contentfulId, }: DocumentationPopoverProps) => JSX.Element;
445
+
332
446
  declare type TableProps = MUIGlobalOmit<TableProps$1>;
333
447
  declare const Table: ({ children, ...props }: TableProps) => JSX.Element;
334
448
  declare type TableBodyProps = MUIGlobalOmit<TableBodyProps$1>;
@@ -348,4 +462,4 @@ declare const TableSortLabel: ({ children, ...props }: TableSortLabelProps) => J
348
462
  declare type TableFooterProps = MUIGlobalOmit<TableFooterProps$1>;
349
463
  declare const TableFooter: ({ children, ...props }: TableFooterProps) => JSX.Element;
350
464
 
351
- export { Alert, AlertProps, Avatar, AvatarProps, Banner, BannerProps, 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 };
465
+ 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, InfoModal, InfoModalProps, 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.4",
3
+ "version": "0.3.7",
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",