@epilot/base-elements 3.9.3 → 3.9.5

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.
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  export declare const Chip360: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | "security" | "style" | "title" | "translate" | "className" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "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"> & {
3
3
  label: React.ReactNode;
4
- leftIcon?: "number" | "alarm" | "calculator" | "calendar" | "check" | "download" | "exclamation" | "file" | "filter" | "image" | "info" | "link" | "lock" | "map" | "message" | "paragraph" | "pause" | "phone" | "play" | "reply" | "search" | "share" | "star" | "sun" | "table" | "upload" | "add" | "add_circle" | "arrow_left" | "arrow_right" | "cable" | "call" | "category" | "check_box" | "check_circle" | "chevron_left" | "chevron_right" | "close" | "comment" | "content_copy" | "dashboard" | "delete" | "drag_indicator" | "edit" | "error" | "expand_less" | "expand_more" | "explore" | "file_copy" | "filter_alt" | "help" | "label" | "label_off" | "lock_open" | "login" | "logout" | "mail" | "menu" | "more_horiz" | "more_vert" | "note" | "notifications" | "open_in_new" | "pause_circle" | "payment" | "pending_actions" | "refresh" | "remove" | "repeat" | "settings" | "sort" | "thumb_down" | "thumb_up" | "visibility" | "visibility_off" | "warning" | "primary" | "address" | "meter" | "summary" | "document" | "action" | "order" | "resize" | "epilot" | "file_copy_off" | "filter_alt_off" | "data_object" | "attributes" | "opportunity" | "contact" | "account" | "contract" | "templates" | "product" | "price" | "tax" | "submission" | "partner" | "partnering" | "entity" | "webhook" | "design" | "workflow" | "phase" | "automation" | "journey" | "relations" | "availability" | "desktop" | "arrow_circle_left" | "question_mark" | "skip" | "checklist" | "person_check" | "price_mapping" | "portal" | "entity_builder" | "connection" | "radio_button" | "text_field" | "signature" | "consent" | "attribute_edit" | "solar" | "sdk" | "lookup" | "previous_provider" | "success_confirmation" | "expand_content" | "collapse_content" | "frame" | "energy_savings_leaf" | "avg_time" | "table_rows_narrow" | "two_columns" | "diagram" | "move_down" | "step_over" | "condition" | "note_stack" | "double_thumbs_up" | "ai_star" | "file_manager" | undefined;
4
+ leftIcon?: "number" | "alarm" | "calculator" | "calendar" | "check" | "download" | "exclamation" | "file" | "filter" | "image" | "info" | "link" | "lock" | "map" | "message" | "paragraph" | "pause" | "phone" | "play" | "reply" | "search" | "share" | "star" | "sun" | "table" | "upload" | "add" | "add_circle" | "arrow_left" | "arrow_right" | "bolt" | "cable" | "call" | "category" | "check_box" | "check_circle" | "chevron_left" | "chevron_right" | "close" | "comment" | "content_copy" | "dashboard" | "delete" | "drag_indicator" | "edit" | "error" | "expand_less" | "expand_more" | "explore" | "file_copy" | "filter_alt" | "flip" | "help" | "label" | "label_off" | "lock_open" | "login" | "logout" | "mail" | "menu" | "more_horiz" | "more_vert" | "note" | "notifications" | "open_in_new" | "pause_circle" | "payment" | "pending_actions" | "read_more" | "refresh" | "remove" | "repeat" | "schedule" | "settings" | "sort" | "thumb_down" | "thumb_up" | "update" | "visibility" | "visibility_off" | "warning" | "primary" | "address" | "meter" | "summary" | "document" | "action" | "order" | "resize" | "epilot" | "file_copy_off" | "filter_alt_off" | "data_object" | "attributes" | "opportunity" | "contact" | "account" | "contract" | "request" | "templates" | "product" | "price" | "tax" | "submission" | "partner" | "partnering" | "entity" | "webhook" | "design" | "workflow" | "phase" | "automation" | "journey" | "relations" | "availability" | "desktop" | "arrow_circle_left" | "question_mark" | "skip" | "checklist" | "person_check" | "price_mapping" | "portal" | "entity_builder" | "connection" | "radio_button" | "text_field" | "signature" | "consent" | "attribute_edit" | "solar" | "sdk" | "lookup" | "previous_provider" | "success_confirmation" | "expand_content" | "collapse_content" | "frame" | "energy_savings_leaf" | "avg_time" | "table_rows_narrow" | "two_columns" | "diagram" | "move_down" | "step_over" | "condition" | "note_stack" | "double_thumbs_up" | "ai_star" | "file_manager" | "viewDay" | "calendar_clock" | undefined;
5
5
  rightIcon?: "close" | "edit" | "expand_more" | undefined;
6
6
  onClick?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void) | undefined;
7
7
  isFilled?: boolean | undefined;
@@ -3,6 +3,7 @@ var _a;
3
3
  exports.__esModule = true;
4
4
  exports.FeedbackMessage = void 0;
5
5
  var tslib_1 = require("tslib");
6
+ var icons_1 = require("@epilot360/icons");
6
7
  var core_1 = require("@material-ui/core");
7
8
  var classnames_1 = tslib_1.__importDefault(require("classnames"));
8
9
  var react_1 = tslib_1.__importStar(require("react"));
@@ -13,7 +14,7 @@ var types_1 = require("./types");
13
14
  var variantIconMap = (_a = {},
14
15
  _a[types_1.StateVariant.success] = 'check_circle',
15
16
  _a[types_1.StateVariant.warning] = 'warning',
16
- _a[types_1.StateVariant.error] = 'cancel',
17
+ _a[types_1.StateVariant.error] = 'error',
17
18
  _a[types_1.StateVariant.info] = 'info',
18
19
  _a);
19
20
  var useStyles = core_1.makeStyles(function (theme) { return ({
@@ -45,7 +46,7 @@ var FeedbackMessage = react_1.memo(function (_a) {
45
46
  _b[classes.wrapper] = true,
46
47
  _b[(_c = rest === null || rest === void 0 ? void 0 : rest.className) !== null && _c !== void 0 ? _c : ''] = !!(rest === null || rest === void 0 ? void 0 : rest.className),
47
48
  _b)) },
48
- react_1["default"].createElement(Icon_1.Icon, { customColor: (_e = (_d = theme.palette) === null || _d === void 0 ? void 0 : _d[themeColor]) === null || _e === void 0 ? void 0 : _e[40], name: variantIconMap[stateVariant] }),
49
+ react_1["default"].createElement(icons_1.EpilotIcon, { fill: (_e = (_d = theme.palette) === null || _d === void 0 ? void 0 : _d[themeColor]) === null || _e === void 0 ? void 0 : _e[40], name: variantIconMap[stateVariant] }),
49
50
  react_1["default"].createElement(Typography_1.BodyText, null, feedbackMessage),
50
51
  actionIcon && (react_1["default"].createElement(IconButton_1.IconButton, { onClick: onActionButtonClick },
51
52
  react_1["default"].createElement(Icon_1.Icon, { customColor: (_g = (_f = theme.palette) === null || _f === void 0 ? void 0 : _f[themeColor]) === null || _g === void 0 ? void 0 : _g[10], name: actionIcon })))));
@@ -1 +1 @@
1
- {"version":3,"file":"FeedbackMessage.js","sourceRoot":"","sources":["../../src/FeedbackMessage/FeedbackMessage.tsx"],"names":[],"mappings":";;;;;AAAA,0CAAwD;AACxD,kEAAmC;AACnC,qDAAmC;AAEnC,gCAAwC;AACxC,4CAA0C;AAE1C,4CAAwC;AAExC,iCAA4D;AAE5D,IAAM,cAAc;IAClB,GAAC,oBAAY,CAAC,OAAO,IAAG,cAAc;IACtC,GAAC,oBAAY,CAAC,OAAO,IAAG,SAAS;IACjC,GAAC,oBAAY,CAAC,KAAK,IAAG,QAAQ;IAC9B,GAAC,oBAAY,CAAC,IAAI,IAAG,MAAM;OAC5B,CAAA;AAID,IAAM,SAAS,GAAG,iBAAU,CAAC,UAAC,KAAkB,IAAK,OAAA,CAAC;IACpD,OAAO,EAAE,UAAC,EAAiD;;YAA/C,UAAU,gBAAA;QAA0C,OAAA,CAAC;YAC/D,OAAO,EAAE,MAAM;YACf,IAAI,EAAE,CAAC;YACP,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,4BAAa,KAAK,CAAC,OAAO,0CAAG,UAAU,2CAAI,EAAE,EAAG;YACxD,YAAY,EAAK,KAAK,CAAC,KAAK,CAAC,YAAY,OAAI;YAC7C,eAAe,cAAE,KAAK,CAAC,OAAO,0CAAG,UAAU,2CAAI,EAAE,CAAC;YAClD,GAAG,EAAE,KAA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mC,EAAnC,YAAY,mBAAG,oBAAY,CAAC,OAAO,KAAA,EAChC,IAAI,sBALR,wEAMA,CADQ;IAEP,IAAM,UAAU,GACd,YAAY,KAAK,oBAAY,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAA;IAE/D,IAAM,OAAO,GAAG,SAAS,CAAC,EAAE,UAAU,YAAA,EAAE,CAAC,CAAA;IACzC,IAAM,KAAK,GAAgB,eAAQ,EAAE,CAAA;IAErC,OAAO,CACL,0CACE,SAAS,EAAE,uBAAU;YACnB,GAAC,OAAO,CAAC,OAAO,IAAG,IAAI;YACvB,SAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS,mCAAI,EAAE,IAAG,CAAC,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,SAAS,CAAA;gBAC1C;QAEF,iCAAC,kBAAU,IACT,IAAI,cAAE,KAAK,CAAC,OAAO,0CAAG,UAAU,2CAAI,EAAE,GACtC,IAAI,EAAE,cAAc,CAAC,YAAY,CAAC,GAClC;QACF,iCAAC,qBAAQ,QAAE,eAAe,CAAY;QACrC,UAAU,IAAI,CACb,iCAAC,uBAAU,IAAC,OAAO,EAAE,mBAAmB;YACtC,iCAAC,WAAI,IACH,WAAW,cAAE,KAAK,CAAC,OAAO,0CAAG,UAAU,2CAAI,EAAE,GAC7C,IAAI,EAAE,UAAU,GAChB,CACS,CACd,CACG,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAIQ,0CAAe;AAFxB,eAAe,CAAC,WAAW,GAAG,iBAAiB,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { ElevatedIconButtonProps, IconButtonProps } from './types';
3
- export declare const IconButton: React.MemoExoticComponent<(props: IconButtonProps) => JSX.Element>;
2
+ import type { ElevatedIconButtonProps } from './types';
3
+ export declare const IconButton: React.ForwardRefExoticComponent<Pick<import("@material-ui/core/OverridableComponent").OverrideProps<import("@material-ui/core").IconButtonTypeMap<{}, "button">, "button">, "key" | "type" | "security" | "style" | "title" | "translate" | "className" | "classes" | "innerRef" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "action" | "disabled" | "name" | "value" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "size" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "disableFocusRipple" | "edge"> & React.RefAttributes<HTMLButtonElement>>;
4
4
  export declare const ElevatedIconButton: React.MemoExoticComponent<({ variant, className, ...props }: ElevatedIconButtonProps) => JSX.Element>;
@@ -62,9 +62,10 @@ var useIconButtonClasses = core_1.makeStyles(function (theme) {
62
62
  }
63
63
  });
64
64
  });
65
- exports.IconButton = react_1.memo(function (props) {
66
- var classes = useIconButtonClasses();
67
- return react_1["default"].createElement(core_1.IconButton, tslib_1.__assign({}, props, { classes: tslib_1.__assign(tslib_1.__assign({}, classes), props.classes) }));
65
+ exports.IconButton = react_1.forwardRef(function (_a, ref) {
66
+ var classes = _a.classes, props = tslib_1.__rest(_a, ["classes"]);
67
+ var _classes = useIconButtonClasses();
68
+ return (react_1["default"].createElement(core_1.IconButton, tslib_1.__assign({ ref: ref }, props, { classes: tslib_1.__assign(tslib_1.__assign({}, _classes), classes) })));
68
69
  });
69
70
  exports.IconButton.displayName = 'IconButton';
70
71
  var useStyles = core_1.makeStyles(function (theme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