@orfium/ictinus 3.9.1-alpha.0 → 3.9.2
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 +1 -1
- package/dist/components/Button/Button.d.ts +2 -2
- package/dist/components/Button/Button.js +3 -2
- package/dist/components/Button/Button.style.d.ts +1 -1
- package/dist/components/Button/Button.style.js +1 -1
- package/dist/components/ButtonBase/ButtonBase.d.ts +1 -2
- package/dist/components/Chip/Chip.d.ts +1 -1
- package/dist/components/Menu/Menu.style.d.ts +3 -1
- package/dist/index.d.ts +9 -8
- package/dist/index.js +2 -12
- package/dist/utils/common.d.ts +2 -1
- package/package.json +1 -1
- package/CHANGELOG.md +0 -5
|
@@ -25,5 +25,5 @@ export declare type Props = {
|
|
|
25
25
|
};
|
|
26
26
|
export declare type AvatarSizes = 'xs' | 'sm' | 'md' | 'lg';
|
|
27
27
|
export declare type AvatarShapes = 'regular' | 'rounded' | 'circular';
|
|
28
|
-
declare const Avatar: React.ForwardRefExoticComponent<Pick<Props & DivProps, "children" | "onChange" | "onBlur" | "onClick" | "
|
|
28
|
+
declare const Avatar: React.ForwardRefExoticComponent<Pick<Props & DivProps, "children" | "onChange" | "onBlur" | "onClick" | "type" | "autoFocus" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "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" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "download" | "encType" | "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" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "span" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "useMap" | "width" | "wmode" | "wrap" | "key" | keyof Props> & React.RefAttributes<HTMLDivElement>>;
|
|
29
29
|
export default Avatar;
|
|
@@ -2,9 +2,9 @@ import { ClickHandler } from 'hooks/useLoading';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { TestProps } from 'utils/types';
|
|
4
4
|
import { Props as ButtonBaseProps } from '../ButtonBase/ButtonBase';
|
|
5
|
-
export declare type Props = ButtonBaseProps;
|
|
5
|
+
export declare type Props = ButtonBaseProps & TestProps & onClickProp;
|
|
6
6
|
declare type onClickProp = {
|
|
7
7
|
onClick: ClickHandler;
|
|
8
8
|
};
|
|
9
|
-
declare const Button: React.
|
|
9
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonBaseProps & TestProps & onClickProp & Partial<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size" | "css" | "onBlur" | "onClick" | "type">> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
10
|
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,7 @@ 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
|
|
|
84
85
|
Button.displayName = 'Button';
|
|
85
86
|
var _default = Button;
|
|
@@ -10,7 +10,7 @@ export declare const buttonSpanStyle: () => () => {
|
|
|
10
10
|
export declare const iconStyle: () => () => {
|
|
11
11
|
display: string;
|
|
12
12
|
};
|
|
13
|
-
export declare const childrenWrapperStyle: ({ iconLeft, iconRight, hasChildren, }: RequiredProperties<Omit<
|
|
13
|
+
export declare const childrenWrapperStyle: ({ iconLeft, iconRight, hasChildren, }: RequiredProperties<Omit<Props, "onClick" | "dataTestId" | "block" | "buttonType" | "isIconButton"> & {
|
|
14
14
|
hasChildren: boolean;
|
|
15
15
|
}>) => (theme: Theme) => {
|
|
16
16
|
marginLeft: number | "8";
|
|
@@ -52,7 +52,7 @@ var centralizedLoader = function centralizedLoader(clientWidth) {
|
|
|
52
52
|
/*#__PURE__*/
|
|
53
53
|
|
|
54
54
|
/*#__PURE__*/
|
|
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,
|
|
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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb21wb25lbnRzL0J1dHRvbi9CdXR0b24uc3R5bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0MrRiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9CdXR0b24vQnV0dG9uLnN0eWxlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzLCBTZXJpYWxpemVkU3R5bGVzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtIH0gZnJvbSAncG9saXNoZWQnO1xuaW1wb3J0IHsgVGhlbWUgfSBmcm9tICd0aGVtZSc7XG5pbXBvcnQgeyBmbGV4IH0gZnJvbSAndGhlbWUvZnVuY3Rpb25zJztcbmltcG9ydCB7IFJlcXVpcmVkUHJvcGVydGllcyB9IGZyb20gJ3V0aWxzL2NvbW1vbic7XG5cbmltcG9ydCB7IFByb3BzIH0gZnJvbSAnLi9CdXR0b24nO1xuXG5leHBvcnQgY29uc3QgYnV0dG9uU3BhblN0eWxlID0gKCkgPT4gKCkgPT4ge1xuICByZXR1cm4ge1xuICAgIGRpc3BsYXk6ICdmbGV4JyxcbiAgICBhbGlnbkl0ZW1zOiAnY2VudGVyJyxcbiAgICBqdXN0aWZ5Q29udGVudDogJ2NlbnRlcicsXG4gIH07XG59O1xuXG5leHBvcnQgY29uc3QgaWNvblN0eWxlID0gKCkgPT4gKCkgPT4gKHtcbiAgZGlzcGxheTogJ2lubGluZS1mbGV4Jyxcbn0pO1xuXG5leHBvcnQgY29uc3QgY2hpbGRyZW5XcmFwcGVyU3R5bGUgPSAoe1xuICBpY29uTGVmdCxcbiAgaWNvblJpZ2h0LFxuICBoYXNDaGlsZHJlbixcbn06IFJlcXVpcmVkUHJvcGVydGllczxcbiAgT21pdDxQcm9wcywgJ2Jsb2NrJyB8ICdpc0ljb25CdXR0b24nIHwgJ2J1dHRvblR5cGUnIHwgJ2RhdGFUZXN0SWQnIHwgJ29uQ2xpY2snPiAmIHtcbiAgICBoYXNDaGlsZHJlbjogYm9vbGVhbjtcbiAgfVxuPikgPT4gKHRoZW1lOiBUaGVtZSkgPT4ge1xuICBjb25zdCByaWdodEljb25FeGlzdHMgPSBoYXNDaGlsZHJlbiAmJiBpY29uUmlnaHQ7XG4gIGNvbnN0IGxlZnRJY29uRXhpc3RzID0gaGFzQ2hpbGRyZW4gJiYgaWNvbkxlZnQ7XG5cbiAgcmV0dXJuIHtcbiAgICBtYXJnaW5MZWZ0OiBsZWZ0SWNvbkV4aXN0cyA/IHRoZW1lLnNwYWNpbmcuc20gOiAwLFxuICAgIG1hcmdpblJpZ2h0OiByaWdodEljb25FeGlzdHMgPyB0aGVtZS5zcGFjaW5nLnNtIDogMCxcbiAgfTtcbn07XG5cbmV4cG9ydCBjb25zdCBjZW50cmFsaXplZExvYWRlcjogKGNsaWVudFdpZHRoPzogbnVtYmVyKSA9PiBTZXJpYWxpemVkU3R5bGVzID0gY2xpZW50V2lkdGggPT4gY3NzYFxuICB3aWR0aDogJHtjbGllbnRXaWR0aCA/IHJlbShjbGllbnRXaWR0aCkgOiAnYXV0byd9O1xuICAke2ZsZXh9O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbmA7XG4iXX0= */", process.env.NODE_ENV === "production" ? "" : ";label:centralizedLoader;")
|
|
56
56
|
);
|
|
57
57
|
};
|
|
58
58
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ClickEvent } from '../../hooks/useLoading';
|
|
3
|
-
import { ButtonProps } from '../../utils/common';
|
|
4
3
|
import { AcceptedColorComponentTypes } from '../../utils/themeFunctions';
|
|
5
4
|
import { TestProps } from '../../utils/types';
|
|
6
5
|
export declare type EventButtonProps = {
|
|
@@ -33,5 +32,5 @@ export declare type Props = {
|
|
|
33
32
|
/** Defines the button type */
|
|
34
33
|
buttonType?: 'submit' | 'reset' | 'button';
|
|
35
34
|
};
|
|
36
|
-
declare const ButtonBase: React.ForwardRefExoticComponent<
|
|
35
|
+
declare const ButtonBase: React.ForwardRefExoticComponent<Partial<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size" | "css" | "onBlur" | "onClick" | "type">> & Props & TestProps & EventButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
37
36
|
export default ButtonBase;
|
|
@@ -28,5 +28,5 @@ export declare type Props = {
|
|
|
28
28
|
declare type TestProps = {
|
|
29
29
|
dataTestId?: TestId;
|
|
30
30
|
};
|
|
31
|
-
declare const Chip: React.ForwardRefExoticComponent<Pick<Props & TestProps & DivProps, "children" | "onChange" | "color" | "onBlur" | "onClick" | "
|
|
31
|
+
declare const Chip: React.ForwardRefExoticComponent<Pick<Props & TestProps & DivProps, "children" | "onChange" | "color" | "onBlur" | "onClick" | "type" | "autoFocus" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "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" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "download" | "encType" | "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" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "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" | "width" | "wmode" | "wrap" | "key" | "dataTestId" | keyof Props> & React.RefAttributes<HTMLDivElement>>;
|
|
32
32
|
export default Chip;
|
|
@@ -2,7 +2,9 @@ import { Theme } from '../../theme';
|
|
|
2
2
|
import { RequiredProperties } from '../../utils/common';
|
|
3
3
|
import { Props } from '../Button/Button';
|
|
4
4
|
export declare const wrapperStyle: () => () => import("@emotion/react").SerializedStyles;
|
|
5
|
-
export declare const buttonSpanStyle: ({ size, iconLeft, iconRight, hasChildren, }: RequiredProperties<import("../ButtonBase/ButtonBase").Props & {
|
|
5
|
+
export declare const buttonSpanStyle: ({ size, iconLeft, iconRight, hasChildren, }: RequiredProperties<import("../ButtonBase/ButtonBase").Props & import("../../utils/types").TestProps & {
|
|
6
|
+
onClick: import("../../hooks/useLoading").ClickHandler;
|
|
7
|
+
} & {
|
|
6
8
|
hasChildren: boolean;
|
|
7
9
|
}>) => (theme: Theme) => {
|
|
8
10
|
display: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { queriesSizes } from './hooks/useBreakpoints';
|
|
2
2
|
import * as elevation from './theme/elevation';
|
|
3
|
-
import { Elevation } from './theme/elevation';
|
|
4
3
|
import * as themeFunctions from './theme/functions';
|
|
5
4
|
import * as overrides from './theme/overrides';
|
|
6
|
-
import { Overrides } from './theme/overrides';
|
|
7
5
|
import * as palette from './theme/palette';
|
|
8
|
-
import { Palette } from './theme/palette';
|
|
9
6
|
import * as spacing from './theme/spacing';
|
|
10
|
-
import { Spacing } from './theme/spacing';
|
|
11
7
|
import * as typography from './theme/typography';
|
|
12
|
-
|
|
8
|
+
export type { Elevation } from './theme/elevation';
|
|
9
|
+
export type { Overrides } from './theme/overrides';
|
|
10
|
+
export type { Palette } from './theme/palette';
|
|
11
|
+
export type { Spacing } from './theme/spacing';
|
|
12
|
+
export type { Typography } from './theme/typography';
|
|
13
|
+
export type { AcceptedColorComponentTypes } from './utils/themeFunctions';
|
|
14
|
+
export type { Theme } from './theme';
|
|
13
15
|
export { default as Avatar } from './components/Avatar';
|
|
14
16
|
export { default as Breadcrumb } from './components/Breadcrumb';
|
|
15
17
|
export { default as Button } from './components/Button';
|
|
@@ -49,6 +51,5 @@ export { default as useTheme } from './hooks/useTheme';
|
|
|
49
51
|
export { default as useBreakpoints } from './hooks/useBreakpoints';
|
|
50
52
|
export { default as useEscape } from './hooks/useEscape';
|
|
51
53
|
export { default as Filter } from './components/Filter';
|
|
52
|
-
export {
|
|
53
|
-
export {
|
|
54
|
-
export { themeFunctions, palette, spacing, typography, elevation, Spacing, Palette, Typography, Elevation, overrides, Overrides, queriesSizes, };
|
|
54
|
+
export { default as themeConfig } from './theme';
|
|
55
|
+
export { themeFunctions, palette, spacing, typography, elevation, overrides, queriesSizes, };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.typography = exports.spacing = exports.palette = exports.overrides = exports.themeFunctions = exports.elevation = exports.
|
|
4
|
+
exports.typography = exports.spacing = exports.palette = exports.overrides = exports.themeFunctions = exports.elevation = exports.themeConfig = exports.Filter = exports.useEscape = exports.useBreakpoints = exports.useTheme = exports.TopNavBar = exports.Tooltip = exports.Toast = exports.ThemeProvider = exports.TextArea = exports.TextField = exports.Table = exports.Select = exports.RadioGroup = exports.Radio = exports.Pagination = exports.Snackbar = exports.Banner = exports.NotificationVisual = exports.NotificationsContainer = exports.InlineNotification = exports.Modal = exports.Menu = exports.Loader = exports.List = exports.Label = exports.IconButton = exports.Icon = exports.ExpandCollapse = exports.Drawer = exports.DatePicker = exports.Chip = exports.CheckBox = exports.DonutChart = exports.BarChart = exports.LineChart = exports.Card = exports.Button = exports.Breadcrumb = exports.Avatar = void 0;
|
|
5
5
|
|
|
6
6
|
var _useBreakpoints = _interopRequireWildcard(require("./hooks/useBreakpoints"));
|
|
7
7
|
|
|
@@ -10,7 +10,6 @@ exports.useBreakpoints = _useBreakpoints["default"];
|
|
|
10
10
|
|
|
11
11
|
var elevation = _interopRequireWildcard(require("./theme/elevation"));
|
|
12
12
|
|
|
13
|
-
exports.Elevation = elevation.Elevation;
|
|
14
13
|
exports.elevation = elevation;
|
|
15
14
|
|
|
16
15
|
var themeFunctions = _interopRequireWildcard(require("./theme/functions"));
|
|
@@ -19,22 +18,18 @@ exports.themeFunctions = themeFunctions;
|
|
|
19
18
|
|
|
20
19
|
var overrides = _interopRequireWildcard(require("./theme/overrides"));
|
|
21
20
|
|
|
22
|
-
exports.Overrides = overrides.Overrides;
|
|
23
21
|
exports.overrides = overrides;
|
|
24
22
|
|
|
25
23
|
var palette = _interopRequireWildcard(require("./theme/palette"));
|
|
26
24
|
|
|
27
|
-
exports.Palette = palette.Palette;
|
|
28
25
|
exports.palette = palette;
|
|
29
26
|
|
|
30
27
|
var spacing = _interopRequireWildcard(require("./theme/spacing"));
|
|
31
28
|
|
|
32
|
-
exports.Spacing = spacing.Spacing;
|
|
33
29
|
exports.spacing = spacing;
|
|
34
30
|
|
|
35
31
|
var typography = _interopRequireWildcard(require("./theme/typography"));
|
|
36
32
|
|
|
37
|
-
exports.Typography = typography.Typography;
|
|
38
33
|
exports.typography = typography;
|
|
39
34
|
|
|
40
35
|
var _Avatar = _interopRequireDefault(require("./components/Avatar"));
|
|
@@ -189,15 +184,10 @@ var _Filter = _interopRequireDefault(require("./components/Filter"));
|
|
|
189
184
|
|
|
190
185
|
exports.Filter = _Filter["default"];
|
|
191
186
|
|
|
192
|
-
var _theme =
|
|
187
|
+
var _theme = _interopRequireDefault(require("./theme"));
|
|
193
188
|
|
|
194
|
-
exports.Theme = _theme.Theme;
|
|
195
189
|
exports.themeConfig = _theme["default"];
|
|
196
190
|
|
|
197
|
-
var _themeFunctions = require("./utils/themeFunctions");
|
|
198
|
-
|
|
199
|
-
exports.AcceptedColorComponentTypes = _themeFunctions.AcceptedColorComponentTypes;
|
|
200
|
-
|
|
201
191
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
202
192
|
|
|
203
193
|
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); }
|
package/dist/utils/common.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
2
3
|
/** A type to turn any type optional properties to required */
|
|
3
4
|
export declare type RequiredProperties<T> = {
|
|
4
5
|
[K in keyof T]-?: T[K];
|
|
@@ -8,7 +9,7 @@ export declare type EventProps = {
|
|
|
8
9
|
onClick?: () => void;
|
|
9
10
|
onBlur?: () => void;
|
|
10
11
|
};
|
|
11
|
-
export declare type ButtonProps = Omit<
|
|
12
|
+
export declare type ButtonProps = Partial<Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'size' | 'css' | 'onBlur' | 'onClick' | 'type'>>;
|
|
12
13
|
export declare type DivProps = Omit<React.HTMLProps<HTMLDivElement>, 'size' | 'css'>;
|
|
13
14
|
export declare type FlexDirectionProperty = 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
14
15
|
export declare type ChangeEvent = React.ChangeEvent<HTMLInputElement>;
|
package/package.json
CHANGED