@rabex-kit/rabex-ui 0.2.16 → 0.2.18
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/IconButton/index.d.ts +2 -18
- package/dist/TextField/index.d.ts +2 -1
- package/dist/Theme/IconButton/index.d.ts +4 -4
- package/dist/rabex-ui.cjs.development.js +51 -11
- package/dist/rabex-ui.cjs.development.js.map +1 -1
- package/dist/rabex-ui.cjs.production.min.js +1 -1
- package/dist/rabex-ui.cjs.production.min.js.map +1 -1
- package/dist/rabex-ui.esm.js +51 -11
- package/dist/rabex-ui.esm.js.map +1 -1
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { IconButtonProps as MuiIconButtonProps } from '@mui/material';
|
2
|
+
import React from 'react';
|
3
3
|
declare module '@mui/material/IconButton' {
|
4
4
|
interface IconButtonPropsSizeOverrides {
|
5
5
|
xs: true;
|
@@ -18,21 +18,5 @@ export interface IconButtonProps extends Omit<MuiIconButtonProps, 'size'> {
|
|
18
18
|
bgColor?: string;
|
19
19
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'small' | 'medium' | 'large';
|
20
20
|
}
|
21
|
-
|
22
|
-
* Icon buttons are commonly found in app bars and toolbars.
|
23
|
-
* Icons are also appropriate for toggle buttons that allow a single choice to be selected or deselected,
|
24
|
-
* such as adding or removing a star to an item.
|
25
|
-
*
|
26
|
-
* You can read Material-UI IconButton Documentation [here](https://mui.com/material-ui/api/icon-button/).
|
27
|
-
*
|
28
|
-
* ```typescript
|
29
|
-
* import { IconButton } from '@rabex-kit/rabex-ui';
|
30
|
-
* ```
|
31
|
-
*
|
32
|
-
* @param props
|
33
|
-
* @returns
|
34
|
-
*/
|
35
|
-
declare const IconButton: import("@emotion/styled").StyledComponent<import("@mui/material").IconButtonOwnProps & Pick<import("@mui/material").ButtonBaseOwnProps, "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef"> & import("@mui/material/OverridableComponent").CommonProps & Pick<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "form" | "slot" | "style" | "title" | "className" | "children" | "disabled" | "tabIndex" | "color" | "translate" | "key" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & {
|
36
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
37
|
-
}, "ref" | "form" | "slot" | "title" | "translate" | "key" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & IconButtonProps, {}, {}>;
|
21
|
+
declare const IconButton: React.ForwardRefExoticComponent<Pick<IconButtonProps, "form" | "slot" | "style" | "title" | "className" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "color" | "translate" | "disableFocusRipple" | "edge" | "size" | "key" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "component" | "bgColor" | "hasBg" | "disableOpacity" | "variant"> & React.RefAttributes<HTMLButtonElement>>;
|
38
22
|
export default IconButton;
|
@@ -9,7 +9,7 @@ declare module '@mui/material/TextField' {
|
|
9
9
|
xl: true;
|
10
10
|
}
|
11
11
|
}
|
12
|
-
export declare type TextFieldProps = MuiTextFieldProps & {
|
12
|
+
export declare type TextFieldProps = Omit<MuiTextFieldProps, 'size'> & {
|
13
13
|
success?: boolean;
|
14
14
|
fill?: boolean;
|
15
15
|
helperText?: string | ReactNode;
|
@@ -23,6 +23,7 @@ export declare type TextFieldProps = MuiTextFieldProps & {
|
|
23
23
|
separator?: string;
|
24
24
|
separateBy?: number;
|
25
25
|
};
|
26
|
+
size?: 'sm' | 'md' | 'lg' | 'xl' | 'small' | 'medium';
|
26
27
|
};
|
27
28
|
declare const TextField: React.FC<TextFieldProps>;
|
28
29
|
export default TextField;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { IconButtonProps } from '
|
1
|
+
import { IconButtonProps } from 'src/IconButton';
|
2
2
|
declare module '@mui/material/IconButton' {
|
3
3
|
interface IconButtonPropsSizeOverrides {
|
4
4
|
small: true;
|
@@ -24,15 +24,15 @@ declare const _default: {
|
|
24
24
|
};
|
25
25
|
};
|
26
26
|
variants: ({
|
27
|
-
props: Partial<IconButtonProps
|
28
|
-
style: ({
|
27
|
+
props: Partial<IconButtonProps>;
|
28
|
+
style: ({ bgColor, theme }: any) => {
|
29
29
|
backgroundColor: any;
|
30
30
|
'&:hover': {
|
31
31
|
backgroundColor: any;
|
32
32
|
};
|
33
33
|
};
|
34
34
|
} | {
|
35
|
-
props: Partial<IconButtonProps
|
35
|
+
props: Partial<IconButtonProps>;
|
36
36
|
style: ({ theme }: any) => {
|
37
37
|
color: any;
|
38
38
|
'&:hover': {
|
@@ -1283,17 +1283,21 @@ var Grid = function Grid(_ref) {
|
|
1283
1283
|
* @param props
|
1284
1284
|
* @returns
|
1285
1285
|
*/
|
1286
|
-
|
1286
|
+
// Create the styled component
|
1287
|
+
var StyledIconButton = /*#__PURE__*/styled(MuiIconButton, {
|
1287
1288
|
name: 'MuiIconButton',
|
1288
1289
|
shouldForwardProp: function shouldForwardProp(prop) {
|
1289
|
-
return !['
|
1290
|
+
return !['bgColor', 'hasBg', 'disableOpacity', 'variant', 'size'].includes(prop.toString());
|
1290
1291
|
}
|
1291
1292
|
})(function (_ref) {
|
1292
1293
|
var theme = _ref.theme,
|
1293
1294
|
_ref$size = _ref.size,
|
1294
1295
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
1295
1296
|
_ref$variant = _ref.variant,
|
1296
|
-
variant = _ref$variant === void 0 ? 'circular' : _ref$variant
|
1297
|
+
variant = _ref$variant === void 0 ? 'circular' : _ref$variant,
|
1298
|
+
hasBg = _ref.hasBg,
|
1299
|
+
disableOpacity = _ref.disableOpacity,
|
1300
|
+
bgColor = _ref.bgColor;
|
1297
1301
|
// Size configurations
|
1298
1302
|
var sizeConfig = {
|
1299
1303
|
xs: {
|
@@ -1315,9 +1319,26 @@ var IconButton = /*#__PURE__*/styled(MuiIconButton, {
|
|
1315
1319
|
button: 48,
|
1316
1320
|
icon: 24,
|
1317
1321
|
padding: 12
|
1322
|
+
},
|
1323
|
+
// Add MUI default sizes for compatibility
|
1324
|
+
small: {
|
1325
|
+
button: 40,
|
1326
|
+
icon: 20,
|
1327
|
+
padding: 8
|
1328
|
+
},
|
1329
|
+
medium: {
|
1330
|
+
button: 48,
|
1331
|
+
icon: 24,
|
1332
|
+
padding: 12
|
1333
|
+
},
|
1334
|
+
large: {
|
1335
|
+
button: 56,
|
1336
|
+
icon: 28,
|
1337
|
+
padding: 16
|
1318
1338
|
}
|
1319
1339
|
};
|
1320
|
-
|
1340
|
+
// Use the size config, default to md if not found
|
1341
|
+
var config = sizeConfig[size] || sizeConfig.md;
|
1321
1342
|
return _extends({
|
1322
1343
|
width: config.button,
|
1323
1344
|
height: config.button,
|
@@ -1332,8 +1353,27 @@ var IconButton = /*#__PURE__*/styled(MuiIconButton, {
|
|
1332
1353
|
borderRadius: theme.spacing(1)
|
1333
1354
|
}, variant === 'square' && {
|
1334
1355
|
borderRadius: 0
|
1356
|
+
}, disableOpacity && {
|
1357
|
+
color: 'inherit',
|
1358
|
+
'&:hover': {
|
1359
|
+
backgroundColor: 'transparent'
|
1360
|
+
}
|
1361
|
+
}, hasBg && {
|
1362
|
+
backgroundColor: bgColor || theme.palette.secondary.A100,
|
1363
|
+
'&:hover': {
|
1364
|
+
backgroundColor: bgColor ? bgColor + "CC" // Add opacity to custom color
|
1365
|
+
: theme.palette.secondary.A60
|
1366
|
+
}
|
1335
1367
|
});
|
1336
1368
|
});
|
1369
|
+
// Create a simple React wrapper component that doesn't use componentsProps
|
1370
|
+
var IconButton = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
1371
|
+
return React__default.createElement(StyledIconButton, Object.assign({
|
1372
|
+
ref: ref
|
1373
|
+
}, props));
|
1374
|
+
});
|
1375
|
+
// Set display name for debugging
|
1376
|
+
IconButton.displayName = 'IconButton';
|
1337
1377
|
// Set default props
|
1338
1378
|
IconButton.defaultProps = {
|
1339
1379
|
variant: 'circular',
|
@@ -3937,7 +3977,7 @@ var RabexIconButton = {
|
|
3937
3977
|
return _extends({}, ownerState.disableOpacity && {
|
3938
3978
|
color: 'inherit',
|
3939
3979
|
'&:hover': {
|
3940
|
-
backgroundColor: '
|
3980
|
+
backgroundColor: 'unset'
|
3941
3981
|
}
|
3942
3982
|
});
|
3943
3983
|
}
|
@@ -3947,12 +3987,12 @@ var RabexIconButton = {
|
|
3947
3987
|
hasBg: true
|
3948
3988
|
},
|
3949
3989
|
style: function style(_ref2) {
|
3950
|
-
var
|
3951
|
-
|
3990
|
+
var bgColor = _ref2.bgColor,
|
3991
|
+
theme = _ref2.theme;
|
3952
3992
|
return {
|
3953
|
-
backgroundColor:
|
3993
|
+
backgroundColor: bgColor || theme.palette.secondary.A100,
|
3954
3994
|
'&:hover': {
|
3955
|
-
backgroundColor:
|
3995
|
+
backgroundColor: bgColor ? bgColor + "CC" // Add opacity to custom color
|
3956
3996
|
: theme.palette.secondary.A60
|
3957
3997
|
}
|
3958
3998
|
};
|
@@ -5367,7 +5407,7 @@ var FormikSelect = function FormikSelect(_ref) {
|
|
5367
5407
|
}, text));
|
5368
5408
|
};
|
5369
5409
|
|
5370
|
-
var _excluded$i = ["title", "helperTextEndAdornment", "helperTextEndAdornmentProps", "titleProps", "helperText", "helperTextIcon", "helperTextProps", "value", "onChange", "valueFormat", "valueFormatOption", "fullWidth"];
|
5410
|
+
var _excluded$i = ["title", "helperTextEndAdornment", "helperTextEndAdornmentProps", "titleProps", "helperText", "helperTextIcon", "helperTextProps", "value", "onChange", "valueFormat", "valueFormatOption", "fullWidth", "size"];
|
5371
5411
|
function _handleHelperColor$1(props, key) {
|
5372
5412
|
var _props$key;
|
5373
5413
|
if (props.error) return 'error.A100';
|
@@ -5385,7 +5425,7 @@ function _handleHelperColor$1(props, key) {
|
|
5385
5425
|
* You can read Material-UI TextField Documentation [here](https://mui.com/material-ui/api/text-field/)
|
5386
5426
|
*
|
5387
5427
|
*
|
5388
|
-
typescript
|
5428
|
+
typescript
|
5389
5429
|
* import { TextField } from '@rabex-kit/rabex-ui';
|
5390
5430
|
*
|
5391
5431
|
|