@up42/up-components 0.11.4 → 0.12.1
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/ControlButton/ControlButton.d.ts +8 -2
- package/dist/cjs/types/global/icons/index.d.ts +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/types/components/ControlButton/ControlButton.d.ts +8 -2
- package/dist/esm/types/global/icons/index.d.ts +1 -0
- package/dist/index.d.ts +43 -8
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { IconButtonProps as MUIIconButtonProps } from '@mui/material';
|
|
3
3
|
import { MUIGlobalOmit } from '@global/utils/types';
|
|
4
4
|
export declare type ControlButtonProps = MUIGlobalOmit<MUIIconButtonProps, {
|
|
@@ -11,4 +11,10 @@ export declare type ControlButtonProps = MUIGlobalOmit<MUIIconButtonProps, {
|
|
|
11
11
|
/**
|
|
12
12
|
* Documentation: https://up-components.up42.dev/?path=/story/data-entry-controlbutton
|
|
13
13
|
*/
|
|
14
|
-
export declare const ControlButton:
|
|
14
|
+
export declare const ControlButton: React.ForwardRefExoticComponent<Pick<{
|
|
15
|
+
size?: "small" | "medium" | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Remove default padding when using icons with built-in padding (Like MUI icons)
|
|
18
|
+
*/
|
|
19
|
+
removePadding?: boolean | undefined;
|
|
20
|
+
} & Omit<MUIIconButtonProps<"button", {}>, "action" | "classes" | "tabIndex" | "disableFocusRipple" | "disableRipple" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation">, "color" | "className" | "style" | "children" | "sx" | "form" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "translate" | "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" | "type" | "name" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "size" | "onFocusVisible" | "edge" | "removePadding"> & React.RefAttributes<unknown>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as AlarmBell } from './alarm-bell.svg';
|
|
2
2
|
export { default as AppWindowCode } from './app-window-code.svg';
|
|
3
|
+
export { default as ArrowCircleDown } from './arrow-circle-down.svg';
|
|
3
4
|
export { default as ArrowTopRight } from './arrow-top-right.svg';
|
|
4
5
|
export { default as Assignment } from './assignment-circle.svg';
|
|
5
6
|
export { default as Bash } from './bash-circle.svg';
|
package/dist/index.d.ts
CHANGED
|
@@ -569,7 +569,13 @@ declare type ControlButtonProps = MUIGlobalOmit<IconButtonProps, {
|
|
|
569
569
|
/**
|
|
570
570
|
* Documentation: https://up-components.up42.dev/?path=/story/data-entry-controlbutton
|
|
571
571
|
*/
|
|
572
|
-
declare const ControlButton:
|
|
572
|
+
declare const ControlButton: React__default.ForwardRefExoticComponent<Pick<{
|
|
573
|
+
size?: "small" | "medium" | undefined;
|
|
574
|
+
/**
|
|
575
|
+
* Remove default padding when using icons with built-in padding (Like MUI icons)
|
|
576
|
+
*/
|
|
577
|
+
removePadding?: boolean | undefined;
|
|
578
|
+
} & Omit<IconButtonProps<"button", {}>, "action" | "classes" | "tabIndex" | "disableFocusRipple" | "disableRipple" | "centerRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation">, "color" | "className" | "style" | "children" | "sx" | "form" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "translate" | "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" | "type" | "name" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "size" | "onFocusVisible" | "edge" | "removePadding"> & React__default.RefAttributes<unknown>>;
|
|
573
579
|
|
|
574
580
|
interface CopyButtonProps {
|
|
575
581
|
data: string;
|
|
@@ -626,21 +632,21 @@ declare type LoadingProps = {
|
|
|
626
632
|
*/
|
|
627
633
|
declare const Loading: ({ fullPage, visible, ...rest }: LoadingProps) => JSX.Element | null;
|
|
628
634
|
|
|
629
|
-
var _g$
|
|
635
|
+
var _g$f, _defs$d;
|
|
630
636
|
|
|
631
|
-
function _extends$
|
|
637
|
+
function _extends$U() { _extends$U = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$U.apply(this, arguments); }
|
|
632
638
|
|
|
633
639
|
var SvgAlarmBell = function SvgAlarmBell(props) {
|
|
634
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
640
|
+
return /*#__PURE__*/React.createElement("svg", _extends$U({
|
|
635
641
|
xmlns: "http://www.w3.org/2000/svg",
|
|
636
642
|
fill: "none",
|
|
637
643
|
viewBox: "0 0 16 16"
|
|
638
|
-
}, props), _g$
|
|
644
|
+
}, props), _g$f || (_g$f = /*#__PURE__*/React.createElement("g", {
|
|
639
645
|
fill: "currentColor",
|
|
640
646
|
clipPath: "url(#alarm-bell_svg__a)"
|
|
641
647
|
}, /*#__PURE__*/React.createElement("path", {
|
|
642
648
|
d: "M7.993 16a1.89 1.89 0 0 1-1.812-1.359.5.5 0 0 1 .96-.282.89.89 0 0 0 1.71.001.503.503 0 0 1 .62-.34.5.5 0 0 1 .339.621 1.894 1.894 0 0 1-1.817 1.36Zm-5.999-3a.498.498 0 0 1-.394-.808c.004-.005.894-1.292.894-5.191a5.491 5.491 0 0 1 5-5.478V.501a.5.5 0 0 1 1 0v1.022c2.823.254 5 2.616 5 5.478 0 4.202.83 5.124.839 5.132a.504.504 0 0 1-.339.868h-12Zm11.14-1c-.321-.82-.64-2.313-.64-5 0-2.48-2.02-4.5-4.5-4.5a4.505 4.505 0 0 0-4.5 4.5c0 2.639-.387 4.185-.698 5h10.338Z"
|
|
643
|
-
}))), _defs$
|
|
649
|
+
}))), _defs$d || (_defs$d = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
644
650
|
id: "alarm-bell_svg__a"
|
|
645
651
|
}, /*#__PURE__*/React.createElement("path", {
|
|
646
652
|
d: "M0 0h16v16H0z"
|
|
@@ -649,10 +655,10 @@ var SvgAlarmBell = function SvgAlarmBell(props) {
|
|
|
649
655
|
|
|
650
656
|
var _path$E, _path2$m;
|
|
651
657
|
|
|
652
|
-
function _extends$
|
|
658
|
+
function _extends$T() { _extends$T = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$T.apply(this, arguments); }
|
|
653
659
|
|
|
654
660
|
var SvgAppWindowCode = function SvgAppWindowCode(props) {
|
|
655
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
661
|
+
return /*#__PURE__*/React.createElement("svg", _extends$T({
|
|
656
662
|
width: 32,
|
|
657
663
|
height: 32,
|
|
658
664
|
fill: "none",
|
|
@@ -666,6 +672,34 @@ var SvgAppWindowCode = function SvgAppWindowCode(props) {
|
|
|
666
672
|
})));
|
|
667
673
|
};
|
|
668
674
|
|
|
675
|
+
var _rect$5, _g$e, _defs$c;
|
|
676
|
+
|
|
677
|
+
function _extends$S() { _extends$S = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$S.apply(this, arguments); }
|
|
678
|
+
|
|
679
|
+
var SvgArrowCircleDown = function SvgArrowCircleDown(props) {
|
|
680
|
+
return /*#__PURE__*/React.createElement("svg", _extends$S({
|
|
681
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
682
|
+
width: 16,
|
|
683
|
+
height: 16,
|
|
684
|
+
fill: "none"
|
|
685
|
+
}, props), _rect$5 || (_rect$5 = /*#__PURE__*/React.createElement("rect", {
|
|
686
|
+
width: 16,
|
|
687
|
+
height: 16,
|
|
688
|
+
fill: "#DFE1E6",
|
|
689
|
+
rx: 8
|
|
690
|
+
})), _g$e || (_g$e = /*#__PURE__*/React.createElement("g", {
|
|
691
|
+
clipPath: "url(#arrow-circle-down_svg__a)"
|
|
692
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
693
|
+
fill: "#777C85",
|
|
694
|
+
d: "M8 11.125a.957.957 0 0 1-.72-.325L3.192 6.153a.77.77 0 0 1 1.155-1.016l3.575 4.064a.104.104 0 0 0 .156 0l3.575-4.064a.77.77 0 1 1 1.155 1.016L8.722 10.8a.963.963 0 0 1-.722.326Z"
|
|
695
|
+
}))), _defs$c || (_defs$c = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
696
|
+
id: "arrow-circle-down_svg__a"
|
|
697
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
698
|
+
fill: "#fff",
|
|
699
|
+
d: "M3 3h10v10H3z"
|
|
700
|
+
})))));
|
|
701
|
+
};
|
|
702
|
+
|
|
669
703
|
var _g$d, _defs$b;
|
|
670
704
|
|
|
671
705
|
function _extends$R() { _extends$R = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$R.apply(this, arguments); }
|
|
@@ -1763,6 +1797,7 @@ declare namespace icons {
|
|
|
1763
1797
|
export {
|
|
1764
1798
|
SvgAlarmBell as AlarmBell,
|
|
1765
1799
|
SvgAppWindowCode as AppWindowCode,
|
|
1800
|
+
SvgArrowCircleDown as ArrowCircleDown,
|
|
1766
1801
|
SvgArrowTopRight as ArrowTopRight,
|
|
1767
1802
|
SvgAssignmentCircle as Assignment,
|
|
1768
1803
|
SvgBashCircle as Bash,
|