@orfium/ictinus 3.6.1 → 3.8.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/components/Avatar/Avatar.d.ts +2 -1
- package/dist/components/Avatar/Avatar.js +4 -2
- package/dist/components/Button/Button.d.ts +2 -1
- package/dist/components/Button/Button.js +4 -2
- package/dist/components/Button/Button.style.d.ts +2 -1
- package/dist/components/Button/Button.style.js +3 -2
- package/dist/components/ButtonBase/ButtonBase.d.ts +4 -1
- package/dist/components/ButtonBase/ButtonBase.js +8 -2
- package/dist/components/ButtonBase/ButtonBase.style.d.ts +2 -1
- package/dist/components/ButtonBase/ButtonBase.style.js +2 -0
- package/dist/components/CheckBox/CheckBox.d.ts +1 -1
- package/dist/components/CheckBox/CheckBox.js +4 -3
- package/dist/components/Chip/Chip.d.ts +2 -1
- package/dist/components/Chip/Chip.js +4 -2
- package/dist/components/Icon/Icon.d.ts +1 -2
- package/dist/components/Icon/Icon.js +4 -3
- package/dist/components/IconButton/IconButton.d.ts +7 -2
- package/dist/components/IconButton/IconButton.js +5 -7
- package/dist/components/Modal/Modal.js +1 -0
- package/dist/components/Select/Select.js +25 -17
- package/dist/components/Tooltip/Tooltip.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.js +8 -17
- package/dist/components/Tooltip/Tooltip.style.d.ts +3 -4
- package/dist/components/Tooltip/Tooltip.style.js +6 -25
- package/dist/utils/common.d.ts +2 -0
- package/package.json +4 -3
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { DivProps } from '../../utils/common';
|
|
2
3
|
import { AcceptedIconNames } from '../Icon/types';
|
|
3
4
|
export declare type Props = {
|
|
4
5
|
/** the src of the image to show **/
|
|
@@ -24,5 +25,5 @@ export declare type Props = {
|
|
|
24
25
|
};
|
|
25
26
|
export declare type AvatarSizes = 'xs' | 'sm' | 'md' | 'lg';
|
|
26
27
|
export declare type AvatarShapes = 'regular' | 'rounded' | 'circular';
|
|
27
|
-
declare const Avatar: React.
|
|
28
|
+
declare const Avatar: React.ForwardRefExoticComponent<Pick<Props & DivProps, "children" | "onChange" | "onBlur" | "onClick" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "span" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "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" | "onBlurCapture" | "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" | "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" | "key" | keyof Props> & React.RefAttributes<HTMLDivElement>>;
|
|
28
29
|
export default Avatar;
|
|
@@ -17,7 +17,7 @@ var _react2 = require("@emotion/react");
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
19
|
|
|
20
|
-
var Avatar = function
|
|
20
|
+
var Avatar = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
|
|
21
21
|
var _ref$src = _ref.src,
|
|
22
22
|
src = _ref$src === void 0 ? '' : _ref$src,
|
|
23
23
|
_ref$iconName = _ref.iconName,
|
|
@@ -32,6 +32,7 @@ var Avatar = function Avatar(_ref) {
|
|
|
32
32
|
className = _ref.className;
|
|
33
33
|
var calculatedColor = (0, _themeFunctions.calculateActualColorFromComponentProp)(color);
|
|
34
34
|
return (0, _react2.jsx)("div", {
|
|
35
|
+
ref: ref,
|
|
35
36
|
className: className,
|
|
36
37
|
css: (0, _Avatar.avatarStyle)({
|
|
37
38
|
shape: shape,
|
|
@@ -46,7 +47,8 @@ var Avatar = function Avatar(_ref) {
|
|
|
46
47
|
name: iconName,
|
|
47
48
|
size: size === 'xs' ? 18 : 20
|
|
48
49
|
}), !src && children);
|
|
49
|
-
};
|
|
50
|
+
});
|
|
50
51
|
|
|
52
|
+
Avatar.displayName = 'Avatar';
|
|
51
53
|
var _default = Avatar;
|
|
52
54
|
exports["default"] = _default;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ClickHandler } from 'hooks/useLoading';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { ButtonProps } from 'utils/common';
|
|
3
4
|
import { TestProps } from 'utils/types';
|
|
4
5
|
import { Props as ButtonBaseProps } from '../ButtonBase/ButtonBase';
|
|
5
6
|
export declare type Props = ButtonBaseProps;
|
|
6
7
|
declare type onClickProp = {
|
|
7
8
|
onClick: ClickHandler;
|
|
8
9
|
};
|
|
9
|
-
declare const Button: React.
|
|
10
|
+
declare const Button: React.ForwardRefExoticComponent<Pick<ButtonProps & ButtonBaseProps & TestProps & onClickProp, "children" | "onChange" | "onClick" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "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" | "onBlurCapture" | "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" | "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" | "key" | "dataTestId" | keyof ButtonBaseProps> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
11
|
export default Button;
|
|
@@ -23,7 +23,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
23
23
|
|
|
24
24
|
function _extends() { _extends = 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.apply(this, arguments); }
|
|
25
25
|
|
|
26
|
-
var Button = function
|
|
26
|
+
var Button = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
27
27
|
var _childrenWrapperRef$c;
|
|
28
28
|
|
|
29
29
|
var _props$size = props.size,
|
|
@@ -52,6 +52,7 @@ var Button = function Button(props) {
|
|
|
52
52
|
var childrenWrapperRef = (0, _react.useRef)(null);
|
|
53
53
|
var innerButtonWidth = childrenWrapperRef == null ? void 0 : (_childrenWrapperRef$c = childrenWrapperRef.current) == null ? void 0 : _childrenWrapperRef$c.clientWidth;
|
|
54
54
|
return (0, _react2.jsx)(_ButtonBase["default"], _extends({}, props, {
|
|
55
|
+
ref: ref,
|
|
55
56
|
loading: loading,
|
|
56
57
|
onClick: handleAsyncOperation
|
|
57
58
|
}), (0, _react2.jsx)("span", {
|
|
@@ -79,7 +80,8 @@ var Button = function Button(props) {
|
|
|
79
80
|
})) : children), iconRight && (0, _react2.jsx)("span", {
|
|
80
81
|
css: (0, _Button.iconStyle)()
|
|
81
82
|
}, iconRight)));
|
|
82
|
-
};
|
|
83
|
+
});
|
|
83
84
|
|
|
85
|
+
Button.displayName = 'Button';
|
|
84
86
|
var _default = Button;
|
|
85
87
|
exports["default"] = _default;
|
|
@@ -5,11 +5,12 @@ import { Props } from './Button';
|
|
|
5
5
|
export declare const buttonSpanStyle: () => () => {
|
|
6
6
|
display: string;
|
|
7
7
|
alignItems: string;
|
|
8
|
+
justifyContent: string;
|
|
8
9
|
};
|
|
9
10
|
export declare const iconStyle: () => () => {
|
|
10
11
|
display: string;
|
|
11
12
|
};
|
|
12
|
-
export declare const childrenWrapperStyle: ({ iconLeft, iconRight, hasChildren, }: RequiredProperties<Omit<import("../ButtonBase/ButtonBase").Props, "buttonType" | "isIconButton"> & {
|
|
13
|
+
export declare const childrenWrapperStyle: ({ iconLeft, iconRight, hasChildren, }: RequiredProperties<Omit<import("../ButtonBase/ButtonBase").Props, "block" | "buttonType" | "isIconButton"> & {
|
|
13
14
|
hasChildren: boolean;
|
|
14
15
|
}>) => (theme: Theme) => {
|
|
15
16
|
marginLeft: number | "8";
|
|
@@ -13,7 +13,8 @@ var buttonSpanStyle = function buttonSpanStyle() {
|
|
|
13
13
|
return function () {
|
|
14
14
|
return {
|
|
15
15
|
display: 'flex',
|
|
16
|
-
alignItems: 'center'
|
|
16
|
+
alignItems: 'center',
|
|
17
|
+
justifyContent: 'center'
|
|
17
18
|
};
|
|
18
19
|
};
|
|
19
20
|
};
|
|
@@ -51,7 +52,7 @@ var centralizedLoader = function centralizedLoader(clientWidth) {
|
|
|
51
52
|
/*#__PURE__*/
|
|
52
53
|
|
|
53
54
|
/*#__PURE__*/
|
|
54
|
-
(0, _react.css)("width:", clientWidth ? (0, _polished.rem)(clientWidth) : 'auto', ";", _functions.flex, ";justify-content:center;" + (process.env.NODE_ENV === "production" ? "" : ";label:centralizedLoader;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
55
|
+
(0, _react.css)("width:", clientWidth ? (0, _polished.rem)(clientWidth) : 'auto', ";", _functions.flex, ";justify-content:center;" + (process.env.NODE_ENV === "production" ? "" : ";label:centralizedLoader;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0J1dHRvbi9CdXR0b24uc3R5bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBb0MrRiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9CdXR0b24vQnV0dG9uLnN0eWxlLnRzIiwic291cmNlc0NvbnR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R1cm4ge1xuICAgIG1hcmdpbkxlZnQ6IGxlZnRJY29uRXhpc3RzID8gdGhlbWUuc3BhY2luZy5zbSA6IDAsXG4gICAgbWFyZ2luUmlnaHQ6IHJpZ2h0SWNvbkV4aXN0cyA/IHRoZW1lLnNwYWNpbmcuc20gOiAwLFxuICB9O1xufTtcblxuZXhwb3J0IGNvbnN0IGNlbnRyYWxpemVkTG9hZGVyOiAoY2xpZW50V2lkdGg/OiBudW1iZXIpID0+IFNlcmlhbGl6ZWRTdHlsZXMgPSBjbGllbnRXaWR0aCA9PiBjc3NgXG4gIHdpZHRoOiAke2NsaWVudFdpZHRoID8gcmVtKGNsaWVudFdpZHRoKSA6ICdhdXRvJ307XG4gICR7ZmxleH07XG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuYDtcbiJdfQ== */", process.env.NODE_ENV === "production" ? "" : ";label:centralizedLoader;")
|
|
55
56
|
);
|
|
56
57
|
};
|
|
57
58
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ClickEvent } from '../../hooks/useLoading';
|
|
3
|
+
import { ButtonProps } from '../../utils/common';
|
|
3
4
|
import { AcceptedColorComponentTypes } from '../../utils/themeFunctions';
|
|
4
5
|
import { TestProps } from '../../utils/types';
|
|
5
6
|
export declare type EventButtonProps = {
|
|
@@ -13,6 +14,8 @@ export declare type Props = {
|
|
|
13
14
|
color?: string;
|
|
14
15
|
/** This property define the size of the button. Defaults to 'md' */
|
|
15
16
|
size?: 'lg' | 'md' | 'sm';
|
|
17
|
+
/** This property will make the button fit to its parent width. Defaults to false */
|
|
18
|
+
block?: boolean;
|
|
16
19
|
/** Property indicating if the component is filled with a color based on the type */
|
|
17
20
|
filled?: boolean;
|
|
18
21
|
/** Property indicating if the component is async and loading */
|
|
@@ -30,5 +33,5 @@ export declare type Props = {
|
|
|
30
33
|
/** Defines the button type */
|
|
31
34
|
buttonType?: 'submit' | 'reset' | 'button';
|
|
32
35
|
};
|
|
33
|
-
declare const ButtonBase: React.
|
|
36
|
+
declare const ButtonBase: React.ForwardRefExoticComponent<Pick<ButtonProps & Props & TestProps & EventButtonProps, "children" | "onChange" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "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" | "onBlurCapture" | "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" | "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" | "key" | "dataTestId" | keyof Props | keyof EventButtonProps> & React.RefAttributes<HTMLButtonElement>>;
|
|
34
37
|
export default ButtonBase;
|
|
@@ -15,13 +15,16 @@ var _react2 = require("@emotion/react");
|
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
//@TODO fix props to not overwrite button props
|
|
19
|
+
var ButtonBase = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
19
20
|
var _props$size = props.size,
|
|
20
21
|
size = _props$size === void 0 ? 'md' : _props$size,
|
|
21
22
|
_props$type = props.type,
|
|
22
23
|
type = _props$type === void 0 ? 'primary' : _props$type,
|
|
23
24
|
_props$color = props.color,
|
|
24
25
|
color = _props$color === void 0 ? '' : _props$color,
|
|
26
|
+
_props$block = props.block,
|
|
27
|
+
block = _props$block === void 0 ? false : _props$block,
|
|
25
28
|
_props$filled = props.filled,
|
|
26
29
|
filled = _props$filled === void 0 ? true : _props$filled,
|
|
27
30
|
_props$transparent = props.transparent,
|
|
@@ -49,6 +52,7 @@ var ButtonBase = function ButtonBase(props) {
|
|
|
49
52
|
var calculatedColor = calculateColorBetweenColorAndType(color, type);
|
|
50
53
|
var testIdName = (isIconButton ? 'icon-' : '') + "button";
|
|
51
54
|
return (0, _react2.jsx)("button", {
|
|
55
|
+
ref: ref,
|
|
52
56
|
type: buttonType,
|
|
53
57
|
"data-testid": (0, _helpers.generateTestDataId)(testIdName, dataTestId),
|
|
54
58
|
css: (0, _ButtonBase.buttonBaseStyle)({
|
|
@@ -56,6 +60,7 @@ var ButtonBase = function ButtonBase(props) {
|
|
|
56
60
|
loading: loading,
|
|
57
61
|
filled: filled,
|
|
58
62
|
size: size,
|
|
63
|
+
block: block,
|
|
59
64
|
color: color,
|
|
60
65
|
transparent: transparent,
|
|
61
66
|
calculatedColor: calculatedColor,
|
|
@@ -73,7 +78,8 @@ var ButtonBase = function ButtonBase(props) {
|
|
|
73
78
|
onBlur: onBlur,
|
|
74
79
|
disabled: disabled || loading
|
|
75
80
|
}, children);
|
|
76
|
-
};
|
|
81
|
+
});
|
|
77
82
|
|
|
83
|
+
ButtonBase.displayName = 'ButtonBase';
|
|
78
84
|
var _default = ButtonBase;
|
|
79
85
|
exports["default"] = _default;
|
|
@@ -5,12 +5,13 @@ import { Props } from './ButtonBase';
|
|
|
5
5
|
/** Calculates the button specific height based on the size passed to it
|
|
6
6
|
* These sizes are specific to this button thus these are placed here and not in the config **/
|
|
7
7
|
export declare const heightBasedOnSize: (size: 'lg' | 'md' | 'sm') => string;
|
|
8
|
-
export declare const buttonBaseStyle: ({ type, filled, calculatedColor, size, iconLeft, iconRight, isIconButton, disabled, transparent, childrenCount, }: RequiredProperties<Omit<Props, "buttonType"> & {
|
|
8
|
+
export declare const buttonBaseStyle: ({ type, filled, calculatedColor, size, block, iconLeft, iconRight, isIconButton, disabled, transparent, childrenCount, }: RequiredProperties<Omit<Props, "buttonType"> & {
|
|
9
9
|
calculatedColor: ColorShapeFromComponent;
|
|
10
10
|
childrenCount: number;
|
|
11
11
|
}>) => (theme: Theme) => {
|
|
12
12
|
fontSize: string;
|
|
13
13
|
fontWeight: number;
|
|
14
|
+
width: string | undefined;
|
|
14
15
|
color: string;
|
|
15
16
|
backgroundColor: string;
|
|
16
17
|
padding: string;
|
|
@@ -46,6 +46,7 @@ var buttonBaseStyle = function buttonBaseStyle(_ref) {
|
|
|
46
46
|
filled = _ref.filled,
|
|
47
47
|
calculatedColor = _ref.calculatedColor,
|
|
48
48
|
size = _ref.size,
|
|
49
|
+
block = _ref.block,
|
|
49
50
|
iconLeft = _ref.iconLeft,
|
|
50
51
|
iconRight = _ref.iconRight,
|
|
51
52
|
isIconButton = _ref.isIconButton,
|
|
@@ -57,6 +58,7 @@ var buttonBaseStyle = function buttonBaseStyle(_ref) {
|
|
|
57
58
|
var baseButtonStyles = {
|
|
58
59
|
fontSize: fontSizeBasedOnSize(theme, size),
|
|
59
60
|
fontWeight: theme.typography.weights.medium,
|
|
61
|
+
width: block ? '100%' : undefined,
|
|
60
62
|
color: filled && !transparent ? (0, _palette.pickTextColorFromSwatches)(calculatedColor.color, calculatedColor.shade) : (0, _utils.defineBackgroundColor)(theme, calculatedColor, type, hasSupplementaryIcons, childrenCount > 0),
|
|
61
63
|
backgroundColor: filled && !transparent ? (0, _utils.defineBackgroundColor)(theme, calculatedColor, type, hasSupplementaryIcons, childrenCount > 0) : 'transparent',
|
|
62
64
|
padding: size === 'sm' || size === 'md' ? theme.spacing.sm + " " + theme.spacing.md : theme.spacing.md + " " + theme.spacing.lg,
|
|
@@ -22,5 +22,5 @@ export declare type Props = {
|
|
|
22
22
|
/** Disables auto generated id for snapshots*/
|
|
23
23
|
id?: string;
|
|
24
24
|
};
|
|
25
|
-
declare const CheckBox: React.
|
|
25
|
+
declare const CheckBox: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLSpanElement>>;
|
|
26
26
|
export default CheckBox;
|
|
@@ -23,7 +23,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
23
23
|
|
|
24
24
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
25
|
|
|
26
|
-
var CheckBox = function
|
|
26
|
+
var CheckBox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
27
27
|
var label = _ref.label,
|
|
28
28
|
checked = _ref.checked,
|
|
29
29
|
onClick = _ref.onClick,
|
|
@@ -69,6 +69,7 @@ var CheckBox = function CheckBox(_ref) {
|
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
return (0, _react2.jsx)("span", {
|
|
72
|
+
ref: ref,
|
|
72
73
|
css: (0, _CheckBox.wrapperStyle)({
|
|
73
74
|
disabled: disabled
|
|
74
75
|
})
|
|
@@ -111,7 +112,7 @@ var CheckBox = function CheckBox(_ref) {
|
|
|
111
112
|
}))), label && (0, _react2.jsx)("span", {
|
|
112
113
|
css: (0, _CheckBox.labelStyle)()
|
|
113
114
|
}, label));
|
|
114
|
-
};
|
|
115
|
-
|
|
115
|
+
});
|
|
116
|
+
CheckBox.displayName = 'Checkbox';
|
|
116
117
|
var _default = CheckBox;
|
|
117
118
|
exports["default"] = _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { colorShades, flatColors } from 'theme/palette';
|
|
3
3
|
import { TestId } from 'utils/types';
|
|
4
|
+
import { DivProps } from '../../utils/common';
|
|
4
5
|
export declare type Props = {
|
|
5
6
|
/**
|
|
6
7
|
* Style of input field
|
|
@@ -27,5 +28,5 @@ export declare type Props = {
|
|
|
27
28
|
declare type TestProps = {
|
|
28
29
|
dataTestId?: TestId;
|
|
29
30
|
};
|
|
30
|
-
declare const Chip: React.
|
|
31
|
+
declare const Chip: React.ForwardRefExoticComponent<Pick<Props & TestProps & DivProps, "children" | "onChange" | "color" | "onBlur" | "onClick" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "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" | "onBlurCapture" | "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" | "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" | "key" | "dataTestId" | keyof Props> & React.RefAttributes<HTMLDivElement>>;
|
|
31
32
|
export default Chip;
|
|
@@ -13,7 +13,7 @@ var _react2 = require("@emotion/react");
|
|
|
13
13
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
15
|
|
|
16
|
-
var Chip = function
|
|
16
|
+
var Chip = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
|
|
17
17
|
var _ref$styleType = _ref.styleType,
|
|
18
18
|
styleType = _ref$styleType === void 0 ? 'filled' : _ref$styleType,
|
|
19
19
|
_ref$size = _ref.size,
|
|
@@ -28,6 +28,7 @@ var Chip = function Chip(_ref) {
|
|
|
28
28
|
dataTestId = _ref$dataTestId === void 0 ? '' : _ref$dataTestId,
|
|
29
29
|
children = _ref.children;
|
|
30
30
|
return (0, _react2.jsx)("div", {
|
|
31
|
+
ref: ref,
|
|
31
32
|
"data-testid": (0, _helpers.generateTestDataId)('chip', dataTestId),
|
|
32
33
|
css: (0, _Chip.wrapperStyle)({
|
|
33
34
|
styleType: styleType,
|
|
@@ -44,7 +45,8 @@ var Chip = function Chip(_ref) {
|
|
|
44
45
|
onClick: rightIconHandler,
|
|
45
46
|
css: (0, _Chip.iconWrapperStyle)(size, rightIconHandler)
|
|
46
47
|
}, rightIcon));
|
|
47
|
-
};
|
|
48
|
+
});
|
|
48
49
|
|
|
50
|
+
Chip.displayName = 'Chip';
|
|
49
51
|
var _default = Chip;
|
|
50
52
|
exports["default"] = _default;
|
|
@@ -15,6 +15,5 @@ export declare type OwnProps = {
|
|
|
15
15
|
/** Property indicating the color's variant of the icon. */
|
|
16
16
|
variant?: typeof colorShades[number];
|
|
17
17
|
};
|
|
18
|
-
declare
|
|
19
|
-
declare const Icon: React.FC<Props>;
|
|
18
|
+
declare const Icon: React.ForwardRefExoticComponent<OwnProps & TestProps & React.RefAttributes<HTMLSpanElement>>;
|
|
20
19
|
export default Icon;
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
19
|
|
|
20
|
-
var Icon = function
|
|
20
|
+
var Icon = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
21
21
|
var variant = _ref.variant,
|
|
22
22
|
name = _ref.name,
|
|
23
23
|
_ref$color = _ref.color,
|
|
@@ -29,6 +29,7 @@ var Icon = function Icon(_ref) {
|
|
|
29
29
|
onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick;
|
|
30
30
|
var Icon = _iconSelector["default"][name];
|
|
31
31
|
return (0, _react2.jsx)("span", {
|
|
32
|
+
ref: ref,
|
|
32
33
|
css: (0, _Icon.iconContainerStyle)(),
|
|
33
34
|
onClick: onClick,
|
|
34
35
|
"data-testid": dataTestId
|
|
@@ -39,7 +40,7 @@ var Icon = function Icon(_ref) {
|
|
|
39
40
|
variant: variant
|
|
40
41
|
})
|
|
41
42
|
}));
|
|
42
|
-
};
|
|
43
|
-
|
|
43
|
+
});
|
|
44
|
+
Icon.displayName = 'Icon';
|
|
44
45
|
var _default = Icon;
|
|
45
46
|
exports["default"] = _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { EventProps } from '../../utils/common';
|
|
3
3
|
import { TestProps } from '../../utils/types';
|
|
4
4
|
import { AcceptedIconNames } from '../Icon/types';
|
|
@@ -9,5 +9,10 @@ export declare type Props = Omit<ButtonBaseProps, 'isIconButton' | 'iconLeft' |
|
|
|
9
9
|
/** This property defines witch icon to use */
|
|
10
10
|
name: AcceptedIconNames;
|
|
11
11
|
};
|
|
12
|
-
declare const IconButton: React.
|
|
12
|
+
declare const IconButton: React.ForwardRefExoticComponent<Omit<ButtonBaseProps, "isIconButton" | "iconRight" | "iconLeft"> & {
|
|
13
|
+
/** Property indicating the size of the icon. Defaults to 16 */
|
|
14
|
+
iconSize?: number | undefined;
|
|
15
|
+
/** This property defines witch icon to use */
|
|
16
|
+
name: AcceptedIconNames;
|
|
17
|
+
} & TestProps & EventProps & React.RefAttributes<HTMLButtonElement>>;
|
|
13
18
|
export default IconButton;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports["default"] = void 0;
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
7
|
|
|
8
8
|
var _useTypeColorToColorMatch = require("../../hooks/useTypeColorToColorMatch");
|
|
9
9
|
|
|
@@ -21,13 +21,9 @@ var _react2 = require("@emotion/react");
|
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
23
|
|
|
24
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
25
|
-
|
|
26
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
|
-
|
|
28
24
|
function _extends() { _extends = 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.apply(this, arguments); }
|
|
29
25
|
|
|
30
|
-
var IconButton = function
|
|
26
|
+
var IconButton = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
31
27
|
var iconSize = props.iconSize,
|
|
32
28
|
_props$color = props.color,
|
|
33
29
|
color = _props$color === void 0 ? '' : _props$color,
|
|
@@ -45,13 +41,15 @@ var IconButton = function IconButton(props) {
|
|
|
45
41
|
var calculatedColor = calculateColorBetweenColorAndType(color, type);
|
|
46
42
|
var iconColor = filled && !transparent ? (0, _palette.pickTextColorFromSwatches)(calculatedColor.color, calculatedColor.shade) : (0, _utils.defineBackgroundColor)(theme, calculatedColor, type, true, true);
|
|
47
43
|
return (0, _react2.jsx)(_ButtonBase["default"], _extends({}, props, {
|
|
44
|
+
ref: ref,
|
|
48
45
|
isIconButton: true
|
|
49
46
|
}), (0, _react2.jsx)(_Icon["default"], {
|
|
50
47
|
name: name,
|
|
51
48
|
color: iconColor,
|
|
52
49
|
size: iconSize
|
|
53
50
|
}));
|
|
54
|
-
};
|
|
51
|
+
});
|
|
55
52
|
|
|
53
|
+
IconButton.displayName = 'IconButton';
|
|
56
54
|
var _default = IconButton;
|
|
57
55
|
exports["default"] = _default;
|
|
@@ -29,7 +29,7 @@ var _Select = require("./Select.style");
|
|
|
29
29
|
|
|
30
30
|
var _Loader = _interopRequireDefault(require("../Loader"));
|
|
31
31
|
|
|
32
|
-
var _excluded = ["handleSelectedOption", "defaultValue", "selectedOption", "multi", "options", "isAsync", "isLoading", "asyncSearch", "status", "minCharactersToSearch", "highlightSearch", "isSearchable", "isVirtualized", "styleType", "dataTestId"];
|
|
32
|
+
var _excluded = ["handleSelectedOption", "defaultValue", "selectedOption", "multi", "options", "isAsync", "isLoading", "asyncSearch", "status", "minCharactersToSearch", "highlightSearch", "isSearchable", "isVirtualized", "styleType", "disabled", "locked", "dataTestId"];
|
|
33
33
|
|
|
34
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
35
35
|
|
|
@@ -56,7 +56,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
56
56
|
} : {
|
|
57
57
|
name: "7nz4j0-rightIconRender",
|
|
58
58
|
styles: "display:flex;gap:25px;label:rightIconRender;",
|
|
59
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
59
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1NlbGVjdC9TZWxlY3QudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXFKa0IiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvU2VsZWN0L1NlbGVjdC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyBkZWJvdW5jZSB9IGZyb20gJ2xvZGFzaCc7XG5pbXBvcnQgUmVhY3QsIHsgSW5wdXRIVE1MQXR0cmlidXRlcywgdXNlRWZmZWN0LCB1c2VNZW1vLCBLZXlib2FyZEV2ZW50IH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsgZ2VuZXJhdGVUZXN0RGF0YUlkIH0gZnJvbSAndXRpbHMvaGVscGVycyc7XG5cbmltcG9ydCB1c2VDb21iaW5lZFJlZnMgZnJvbSAnLi4vLi4vaG9va3MvdXNlQ29tYmluZWRSZWZzJztcbmltcG9ydCB1c2VUaGVtZSBmcm9tICcuLi8uLi9ob29rcy91c2VUaGVtZSc7XG5pbXBvcnQgeyBDaGFuZ2VFdmVudCB9IGZyb20gJy4uLy4uL3V0aWxzL2NvbW1vbic7XG5pbXBvcnQgSWNvbiBmcm9tICcuLi9JY29uJztcbmltcG9ydCBUZXh0RmllbGQgZnJvbSAnLi4vVGV4dEZpZWxkJztcbmltcG9ydCB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2VyQ2FzZSgpLmluY2x1ZGVzKHNlYXJjaFZhbHVlLnRvTG93ZXJDYXNlKCkpXG4gICAgICApO1xuICAgIH0sIFtzZWFyY2hWYWx1ZSwgb3B0aW9ucywgaXNBc3luY10pO1xuXG4gICAgY29uc3QgcmlnaHRJY29uUmVuZGVyID0gdXNlTWVtbyhcbiAgICAgICgpID0+IChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIGNzcz17Y3NzYFxuICAgICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICAgIGdhcDogMjVweDtcbiAgICAgICAgICBgfVxuICAgICAgICA+XG4gICAgICAgICAge2lzTG9hZGluZyAmJiA8TG9hZGVyIC8+fVxuICAgICAgICAgIDxJY29uXG4gICAgICAgICAgICBzaXplPXsyMH1cbiAgICAgICAgICAgIG5hbWU9e29wZW4gPyAnY2hldnJvbkxhcmdlVXAnIDogJ2NoZXZyb25MYXJnZURvd24nfVxuICAgICAgICAgICAgY29sb3I9e3RoZW1lLnV0aWxzLmdldENvbG9yKCdsaWdodEdyYXknLCA1MDApfVxuICAgICAgICAgICAgb25DbGljaz17KCkgPT4gaXNTZWFyY2hhYmxlICYmIG9wZW4gJiYgc2V0T3Blbighb3Blbil9XG4gICAgICAgICAgLz5cbiAgICAgICAgPC9kaXY+XG4gICAgICApLFxuICAgICAgW29wZW4sIHRoZW1lLnV0aWxzLCBzZXRPcGVuLCBpc1NlYXJjaGFibGUsIGlzTG9hZGluZ11cbiAgICApO1xuXG4gICAgY29uc3QgaGFuZGxlQ2xpY2sgPSAoKSA9PiB7XG4gICAgICBpZiAoIW9wZW4pIHtcbiAgICAgICAgc2V0T3Blbih0cnVlKTtcbiAgICAgICAgY29tYmluZWRSZWZzPy5jdXJyZW50Py5mb2N1cygpO1xuICAgICAgfSBlbHNlIGlmICghaXNTZWFyY2hhYmxlKSB7XG4gICAgICAgIHNldE9wZW4oZmFsc2UpO1xuICAgICAgICBjb21iaW5lZFJlZnM/LmN1cnJlbnQ/LmJsdXIoKTtcbiAgICAgIH1cbiAgICB9O1xuXG4gICAgcmV0dXJuIChcbiAgICAgIDxDbGlja0F3YXlMaXN0ZW5lclxuICAgICAgICBvbkNsaWNrPXsoKSA9PiB7XG4gICAgICAgICAgc2V0T3BlbihmYWxzZSk7XG4gICAgICAgICAgc2V0U2VhcmNoVmFsdWUoJycpO1xuICAgICAgICB9fVxuICAgICAgPlxuICAgICAgICA8ZGl2XG4gICAgICAgICAgey4uLighKGRpc2FibGVkIHx8IGxvY2tlZCkgJiYgeyBvbkNsaWNrOiBoYW5kbGVDbGljayB9KX1cbiAgICAgICAgICBjc3M9e3NlbGVjdFdyYXBwZXIoeyBvcGVuLCBzdGF0dXMsIHN0eWxlVHlwZSwgaXNTZWFyY2hhYmxlIH0pfVxuICAgICAgICA+XG4gICAgICAgICAgPFRleHRGaWVsZFxuICAgICAgICAgICAgc3R5bGVUeXBlPXtzdHlsZVR5cGV9XG4gICAgICAgICAgICByaWdodEljb249e3JpZ2h0SWNvblJlbmRlcn1cbiAgICAgICAgICAgIG9uS2V5RG93bj17aGFuZGxlT25LZXlEb3dufVxuICAgICAgICAgICAgb25JbnB1dD17aGFuZGxlT25JbnB1dH1cbiAgICAgICAgICAgIG9uQ2hhbmdlPXtPTl9DSEFOR0VfTU9DS31cbiAgICAgICAgICAgIHJlYWRPbmx5PXshaXNTZWFyY2hhYmxlfVxuICAgICAgICAgICAgZGlzYWJsZWQ9e2Rpc2FibGVkfVxuICAgICAgICAgICAgbG9ja2VkPXtsb2NrZWR9XG4gICAgICAgICAgICBkYXRhLXRlc3RpZD17Z2VuZXJhdGVUZXN0RGF0YUlkKCdzZWxlY3QtaW5wdXQnLCBkYXRhVGVzdElkKX1cbiAgICAgICAgICAgIHsuLi5yZXN0SW5wdXRQcm9wc31cbiAgICAgICAgICAgIHN0YXR1cz17c3RhdHVzfVxuICAgICAgICAgICAgdmFsdWU9e3NlYXJjaFZhbHVlIHx8IGlucHV0VmFsdWUubGFiZWx9XG4gICAgICAgICAgICByZWY9e2NvbWJpbmVkUmVmc31cbiAgICAgICAgICAvPlxuICAgICAgICAgIHtvcGVuICYmIChcbiAgICAgICAgICAgIDxTZWxlY3RNZW51XG4gICAgICAgICAgICAgIGZpbHRlcmVkT3B0aW9ucz17ZmlsdGVyZWRPcHRpb25zfVxuICAgICAgICAgICAgICBoYW5kbGVPcHRpb25DbGljaz17aGFuZGxlT3B0aW9uQ2xpY2t9XG4gICAgICAgICAgICAgIHNlbGVjdGVkT3B0aW9uPXtpbnB1dFZhbHVlLnZhbHVlfVxuICAgICAgICAgICAgICBzaXplPXtyZXN0SW5wdXRQcm9wcy5zaXplfVxuICAgICAgICAgICAgICBzdGF0dXM9e3N0YXR1c31cbiAgICAgICAgICAgICAgaXNMb2FkaW5nPXtpc0xvYWRpbmd9XG4gICAgICAgICAgICAgIGlzVmlydHVhbGl6ZWQ9e2lzVmlydHVhbGl6ZWR9XG4gICAgICAgICAgICAgIHNlYXJjaFRlcm09e2hpZ2hsaWdodFNlYXJjaCA/IHNlYXJjaFZhbHVlIDogdW5kZWZpbmVkfVxuICAgICAgICAgICAgLz5cbiAgICAgICAgICApfVxuICAgICAgICA8L2Rpdj5cbiAgICAgIDwvQ2xpY2tBd2F5TGlzdGVuZXI+XG4gICAgKTtcbiAgfVxuKTtcblxuU2VsZWN0LmRpc3BsYXlOYW1lID0gJ1NlbGVjdCc7XG5cbmV4cG9ydCBkZWZhdWx0IFNlbGVjdDtcbiJdfQ== */",
|
|
60
60
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
61
61
|
};
|
|
62
62
|
|
|
@@ -87,6 +87,8 @@ var Select = /*#__PURE__*/_react2["default"].forwardRef(function (_ref2, ref) {
|
|
|
87
87
|
_ref2$isVirtualized = _ref2.isVirtualized,
|
|
88
88
|
isVirtualized = _ref2$isVirtualized === void 0 ? false : _ref2$isVirtualized,
|
|
89
89
|
styleType = _ref2.styleType,
|
|
90
|
+
disabled = _ref2.disabled,
|
|
91
|
+
locked = _ref2.locked,
|
|
90
92
|
dataTestId = _ref2.dataTestId,
|
|
91
93
|
restInputProps = _objectWithoutPropertiesLoose(_ref2, _excluded);
|
|
92
94
|
|
|
@@ -168,38 +170,44 @@ var Select = /*#__PURE__*/_react2["default"].forwardRef(function (_ref2, ref) {
|
|
|
168
170
|
}
|
|
169
171
|
}));
|
|
170
172
|
}, [open, theme.utils, setOpen, isSearchable, isLoading]);
|
|
173
|
+
|
|
174
|
+
var handleClick = function handleClick() {
|
|
175
|
+
if (!open) {
|
|
176
|
+
var _combinedRefs$current;
|
|
177
|
+
|
|
178
|
+
setOpen(true);
|
|
179
|
+
combinedRefs == null ? void 0 : (_combinedRefs$current = combinedRefs.current) == null ? void 0 : _combinedRefs$current.focus();
|
|
180
|
+
} else if (!isSearchable) {
|
|
181
|
+
var _combinedRefs$current2;
|
|
182
|
+
|
|
183
|
+
setOpen(false);
|
|
184
|
+
combinedRefs == null ? void 0 : (_combinedRefs$current2 = combinedRefs.current) == null ? void 0 : _combinedRefs$current2.blur();
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
|
|
171
188
|
return (0, _react.jsx)(_ClickAwayListener["default"], {
|
|
172
189
|
onClick: function onClick() {
|
|
173
190
|
setOpen(false);
|
|
174
191
|
setSearchValue('');
|
|
175
192
|
}
|
|
176
|
-
}, (0, _react.jsx)("div", {
|
|
177
|
-
onClick:
|
|
178
|
-
|
|
179
|
-
var _combinedRefs$current;
|
|
180
|
-
|
|
181
|
-
setOpen(true);
|
|
182
|
-
combinedRefs == null ? void 0 : (_combinedRefs$current = combinedRefs.current) == null ? void 0 : _combinedRefs$current.focus();
|
|
183
|
-
} else if (!isSearchable) {
|
|
184
|
-
var _combinedRefs$current2;
|
|
185
|
-
|
|
186
|
-
setOpen(false);
|
|
187
|
-
combinedRefs == null ? void 0 : (_combinedRefs$current2 = combinedRefs.current) == null ? void 0 : _combinedRefs$current2.blur();
|
|
188
|
-
}
|
|
189
|
-
},
|
|
193
|
+
}, (0, _react.jsx)("div", _extends({}, !(disabled || locked) && {
|
|
194
|
+
onClick: handleClick
|
|
195
|
+
}, {
|
|
190
196
|
css: (0, _Select.selectWrapper)({
|
|
191
197
|
open: open,
|
|
192
198
|
status: status,
|
|
193
199
|
styleType: styleType,
|
|
194
200
|
isSearchable: isSearchable
|
|
195
201
|
})
|
|
196
|
-
}, (0, _react.jsx)(_TextField["default"], _extends({
|
|
202
|
+
}), (0, _react.jsx)(_TextField["default"], _extends({
|
|
197
203
|
styleType: styleType,
|
|
198
204
|
rightIcon: rightIconRender,
|
|
199
205
|
onKeyDown: handleOnKeyDown,
|
|
200
206
|
onInput: handleOnInput,
|
|
201
207
|
onChange: ON_CHANGE_MOCK,
|
|
202
208
|
readOnly: !isSearchable,
|
|
209
|
+
disabled: disabled,
|
|
210
|
+
locked: locked,
|
|
203
211
|
"data-testid": (0, _helpers.generateTestDataId)('select-input', dataTestId)
|
|
204
212
|
}, restInputProps, {
|
|
205
213
|
status: status,
|
|
@@ -3,15 +3,13 @@
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports["default"] = void 0;
|
|
5
5
|
|
|
6
|
-
var _react = _interopRequireDefault(require("react"));
|
|
6
|
+
var _react = _interopRequireDefault(require("@tippyjs/react"));
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
var _uuid = require("uuid");
|
|
8
|
+
var _react2 = _interopRequireDefault(require("react"));
|
|
11
9
|
|
|
12
10
|
var _Tooltip = require("./Tooltip.style");
|
|
13
11
|
|
|
14
|
-
var
|
|
12
|
+
var _react3 = require("@emotion/react");
|
|
15
13
|
|
|
16
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
15
|
|
|
@@ -23,21 +21,14 @@ var Tooltip = function Tooltip(_ref) {
|
|
|
23
21
|
content = _ref.content,
|
|
24
22
|
_ref$placement = _ref.placement,
|
|
25
23
|
placement = _ref$placement === void 0 ? 'top' : _ref$placement;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
css: (0, _Tooltip.tooltipChildrenWrapperStyle)(),
|
|
29
|
-
"data-tip": true,
|
|
30
|
-
"data-for": tooltipID
|
|
31
|
-
}, children), (0, _react2.jsx)(_reactTooltip["default"], {
|
|
24
|
+
return (0, _react3.jsx)(_react["default"], {
|
|
25
|
+
"data-testid": id,
|
|
32
26
|
css: (0, _Tooltip.tooltipStyle)({
|
|
33
|
-
placement: placement,
|
|
34
27
|
size: size
|
|
35
28
|
}),
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
className: "tooltip"
|
|
40
|
-
}, content));
|
|
29
|
+
content: content,
|
|
30
|
+
placement: placement
|
|
31
|
+
}, children);
|
|
41
32
|
};
|
|
42
33
|
|
|
43
34
|
var _default = Tooltip;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { SerializedStyles } from '@emotion/react';
|
|
2
2
|
import { Theme } from '../../theme';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import { TooltipSize } from './Tooltip';
|
|
4
|
+
import 'tippy.js/dist/tippy.css';
|
|
5
|
+
export declare const tooltipStyle: ({ size }: {
|
|
6
6
|
size: TooltipSize;
|
|
7
7
|
}) => (theme: Theme) => SerializedStyles;
|
|
8
|
-
export declare const tooltipChildrenWrapperStyle: () => (theme: Theme) => SerializedStyles;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.
|
|
4
|
+
exports.tooltipStyle = void 0;
|
|
5
5
|
|
|
6
6
|
var _react = require("@emotion/react");
|
|
7
7
|
|
|
@@ -9,11 +9,10 @@ var _polished = require("polished");
|
|
|
9
9
|
|
|
10
10
|
var _palette = require("../../theme/palette");
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
require("tippy.js/dist/tippy.css");
|
|
13
13
|
|
|
14
|
-
var tooltipStyle = function tooltipStyle(
|
|
15
|
-
var
|
|
16
|
-
size = _ref2.size;
|
|
14
|
+
var tooltipStyle = function tooltipStyle(_ref) {
|
|
15
|
+
var size = _ref.size;
|
|
17
16
|
return function (theme) {
|
|
18
17
|
var color = theme.overrides.tooltip.background.color;
|
|
19
18
|
var shade = theme.overrides.tooltip.background.shade;
|
|
@@ -33,27 +32,9 @@ var tooltipStyle = function tooltipStyle(_ref2) {
|
|
|
33
32
|
/*#__PURE__*/
|
|
34
33
|
|
|
35
34
|
/*#__PURE__*/
|
|
36
|
-
(0, _react.css)("color:", (0, _palette.pickTextColorFromSwatches)(color, shade), "
|
|
35
|
+
(0, _react.css)("background:transparent;.tippy-content{color:", (0, _palette.pickTextColorFromSwatches)(color, shade), ";background-color:", backgroundColor, ";max-width:", (0, _polished.rem)(256), ";padding:", theme.spacing.sm, ";font-size:", defineFontSizeBasedOnTooltipSize(size), ";line-height:110%;border-radius:", theme.spacing.sm, ";text-align:justify;}.tippy-arrow{color:", backgroundColor, ";}" + (process.env.NODE_ENV === "production" ? "" : ";label:tooltipStyle;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1Rvb2x0aXAvVG9vbHRpcC5zdHlsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF5QlkiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvVG9vbHRpcC9Ub29sdGlwLnN0eWxlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzLCBTZXJpYWxpemVkU3R5bGVzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtIH0gZnJvbSAncG9saXNoZWQnO1xuXG5pbXBvcnQgeyBUaGVtZSB9IGZyb20gJy4uLy4uL3RoZW1lJztcbmltcG9ydCB7IHBpY2tUZ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oY29sb3IsIHNoYWRlKX07XG4gICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAke2JhY2tncm91bmRDb2xvcn07XG4gICAgICBtYXgtd2lkdGg6ICR7cmVtKDI1Nil9O1xuICAgICAgcGFkZGluZzogJHt0aGVtZS5zcGFjaW5nLnNtfTtcbiAgICAgIGZvbnQtc2l6ZTogJHtkZWZpbmVGb250U2l6ZUJhc2VkT25Ub29sdGlwU2l6ZShzaXplKX07XG4gICAgICBsaW5lLWhlaWdodDogMTEwJTtcbiAgICAgIGJvcmRlci1yYWRpdXM6ICR7dGhlbWUuc3BhY2luZy5zbX07XG4gICAgICB0ZXh0LWFsaWduOiBqdXN0aWZ5O1xuICAgIH1cbiAgICAudGlwcHktYXJyb3cge1xuICAgICAgY29sb3I6ICR7YmFja2dyb3VuZENvbG9yfTtcbiAgICB9XG4gIGA7XG59O1xuIl19 */", process.env.NODE_ENV === "production" ? "" : ";label:tooltipStyle;")
|
|
37
36
|
);
|
|
38
37
|
};
|
|
39
38
|
};
|
|
40
39
|
|
|
41
|
-
exports.tooltipStyle = tooltipStyle;
|
|
42
|
-
|
|
43
|
-
var _ref = process.env.NODE_ENV === "production" ? {
|
|
44
|
-
name: "pl708y",
|
|
45
|
-
styles: "display:inline-flex;align-items:center;justify-content:center"
|
|
46
|
-
} : {
|
|
47
|
-
name: "jte9ii-tooltipChildrenWrapperStyle",
|
|
48
|
-
styles: "display:inline-flex;align-items:center;justify-content:center;label:tooltipChildrenWrapperStyle;",
|
|
49
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1Rvb2x0aXAvVG9vbHRpcC5zdHlsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFnRHdGIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9jb21wb25lbnRzL1Rvb2x0aXAvVG9vbHRpcC5zdHlsZS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lbnQ6IGNlbnRlcjtcbmA7XG4iXX0= */",
|
|
50
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
var tooltipChildrenWrapperStyle = function tooltipChildrenWrapperStyle() {
|
|
54
|
-
return function (theme) {
|
|
55
|
-
return _ref;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
exports.tooltipChildrenWrapperStyle = tooltipChildrenWrapperStyle;
|
|
40
|
+
exports.tooltipStyle = tooltipStyle;
|
package/dist/utils/common.d.ts
CHANGED
|
@@ -8,5 +8,7 @@ export declare type EventProps = {
|
|
|
8
8
|
onClick?: () => void;
|
|
9
9
|
onBlur?: () => void;
|
|
10
10
|
};
|
|
11
|
+
export declare type ButtonProps = Omit<React.HTMLProps<HTMLButtonElement>, 'size' | 'css' | 'onBlur' | 'onClick'>;
|
|
12
|
+
export declare type DivProps = Omit<React.HTMLProps<HTMLDivElement>, 'size' | 'css'>;
|
|
11
13
|
export declare type FlexDirectionProperty = 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
12
14
|
export declare type ChangeEvent = React.ChangeEvent<HTMLInputElement>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orfium/ictinus",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
63
63
|
"history": "^4.10.1",
|
|
64
64
|
"husky": "^6.0.0",
|
|
65
|
+
"identity-obj-proxy": "^3.0.0",
|
|
65
66
|
"jest": "^26.6.3",
|
|
66
67
|
"jest-specific-snapshot": "^4.0.0",
|
|
67
68
|
"jest-transform-stub": "^2.0.0",
|
|
@@ -88,6 +89,7 @@
|
|
|
88
89
|
"@emotion/jest": "^11.3.0",
|
|
89
90
|
"@emotion/react": "^11.4.0",
|
|
90
91
|
"@emotion/styled": "^11.3.0",
|
|
92
|
+
"@tippyjs/react": "^4.2.5",
|
|
91
93
|
"@types/react-window": "^1.8.4",
|
|
92
94
|
"babel-jest": "^26.6.3",
|
|
93
95
|
"dayjs": "^1.8.34",
|
|
@@ -96,7 +98,6 @@
|
|
|
96
98
|
"polished": "^3.4.4",
|
|
97
99
|
"react-highlight-words": "^0.17.0",
|
|
98
100
|
"react-media": "^2.0.0-rc.1",
|
|
99
|
-
"react-tooltip": "^4.2.21",
|
|
100
101
|
"react-window": "^1.8.6",
|
|
101
102
|
"recharts": "^1.8.5",
|
|
102
103
|
"uuid": "^8.3.2"
|
|
@@ -109,7 +110,7 @@
|
|
|
109
110
|
"react-router-dom": "^5.2.0"
|
|
110
111
|
},
|
|
111
112
|
"scripts": {
|
|
112
|
-
"prepare": "yarn build",
|
|
113
|
+
"prepare": "yarn build && husky install",
|
|
113
114
|
"start": "start-storybook -p 6006",
|
|
114
115
|
"prebuild": "rimraf dist",
|
|
115
116
|
"build:partial:style": "cross-env NODE_ENV=production BABEL_ENV=production babel src --config-file ./babelrc.build.json --extensions '.ts' --out-dir ./dist --plugins=babel-plugin-inline-import-data-uri",
|