@astral/ui 0.7.2 → 0.9.0-preview
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/Autocomplete/Autocomplete.js +1 -1
- package/Badge/styled.d.ts +1 -1
- package/Badge/styled.js +6 -6
- package/Button/styled.js +3 -3
- package/ButtonBase/styled.js +13 -13
- package/Checkbox/styled.js +1 -1
- package/Collapse/Collapse.d.ts +3 -0
- package/Collapse/Collapse.js +5 -0
- package/Collapse/index.d.ts +1 -0
- package/Collapse/index.js +13 -0
- package/DashboardLayout/Header/styled.js +10 -10
- package/DashboardLayout/SideBar/styled.js +3 -3
- package/Divider/Divider.d.ts +3 -0
- package/Divider/Divider.js +5 -0
- package/Divider/index.d.ts +1 -0
- package/Divider/index.js +13 -0
- package/FormControlLabel/styled.js +1 -1
- package/FormHelperText/styled.d.ts +6 -6
- package/Grid/styled.d.ts +1 -1
- package/IconButton/styled.js +1 -1
- package/List/List.d.ts +3 -0
- package/List/List.js +5 -0
- package/List/index.d.ts +1 -0
- package/List/index.js +13 -0
- package/List/styled.d.ts +13 -0
- package/List/styled.js +11 -0
- package/ListItem/ListItem.d.ts +3 -0
- package/ListItem/ListItem.js +32 -0
- package/ListItem/constants.d.ts +5 -0
- package/ListItem/constants.js +9 -0
- package/ListItem/index.d.ts +1 -0
- package/ListItem/index.js +13 -0
- package/ListItem/styled.d.ts +39 -0
- package/ListItem/styled.js +50 -0
- package/ListItem/types.d.ts +2 -0
- package/ListItem/types.js +2 -0
- package/ListItemAvatar/ListItemAvatar.d.ts +3 -0
- package/ListItemAvatar/ListItemAvatar.js +5 -0
- package/ListItemAvatar/index.d.ts +1 -0
- package/ListItemAvatar/index.js +13 -0
- package/ListItemButton/ListItemButton.d.ts +3 -0
- package/ListItemButton/ListItemButton.js +32 -0
- package/ListItemButton/constants.d.ts +5 -0
- package/ListItemButton/constants.js +9 -0
- package/ListItemButton/index.d.ts +1 -0
- package/ListItemButton/index.js +13 -0
- package/ListItemButton/styled.d.ts +35 -0
- package/ListItemButton/styled.js +46 -0
- package/ListItemButton/types.d.ts +2 -0
- package/ListItemButton/types.js +2 -0
- package/ListItemIcon/ListItemIcon.d.ts +3 -0
- package/ListItemIcon/ListItemIcon.js +32 -0
- package/ListItemIcon/index.d.ts +1 -0
- package/ListItemIcon/index.js +13 -0
- package/ListItemIcon/styled.d.ts +4 -0
- package/ListItemIcon/styled.js +14 -0
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +3 -0
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +5 -0
- package/ListItemSecondaryAction/index.d.ts +1 -0
- package/ListItemSecondaryAction/index.js +13 -0
- package/ListItemText/ListItemText.d.ts +3 -0
- package/ListItemText/ListItemText.js +32 -0
- package/ListItemText/index.d.ts +1 -0
- package/ListItemText/index.js +13 -0
- package/ListSubheader/ListSubheader.d.ts +3 -0
- package/ListSubheader/ListSubheader.js +5 -0
- package/ListSubheader/index.d.ts +1 -0
- package/ListSubheader/index.js +13 -0
- package/MenuList/styled.d.ts +1 -1
- package/MenuList/styled.js +1 -1
- package/Radio/Radio.d.ts +1 -1
- package/Radio/styled.js +1 -1
- package/Select/styled.d.ts +1 -1
- package/Select/styled.js +2 -2
- package/Tag/styled.d.ts +1 -1
- package/Tag/styled.js +5 -5
- package/TextArea/TextArea.d.ts +1 -1
- package/TextField/TextField.d.ts +1 -1
- package/Tooltip/Tooltip.d.ts +1 -1
- package/Tooltip/styled.js +6 -6
- package/esm/Autocomplete/Autocomplete.js +1 -1
- package/esm/Badge/styled.d.ts +1 -1
- package/esm/Badge/styled.js +6 -6
- package/esm/Button/styled.js +3 -3
- package/esm/ButtonBase/styled.js +13 -13
- package/esm/Checkbox/styled.js +1 -1
- package/esm/Collapse/Collapse.d.ts +3 -0
- package/esm/Collapse/Collapse.js +2 -0
- package/esm/Collapse/index.d.ts +1 -0
- package/esm/Collapse/index.js +1 -0
- package/esm/DashboardLayout/Header/styled.js +10 -10
- package/esm/DashboardLayout/SideBar/styled.js +3 -3
- package/esm/Divider/Divider.d.ts +3 -0
- package/esm/Divider/Divider.js +2 -0
- package/esm/Divider/index.d.ts +1 -0
- package/esm/Divider/index.js +1 -0
- package/esm/FormControlLabel/styled.js +1 -1
- package/esm/FormHelperText/styled.d.ts +6 -6
- package/esm/Grid/styled.d.ts +1 -1
- package/esm/IconButton/styled.js +1 -1
- package/esm/List/List.d.ts +3 -0
- package/esm/List/List.js +1 -0
- package/esm/List/index.d.ts +1 -0
- package/esm/List/index.js +1 -0
- package/esm/List/styled.d.ts +13 -0
- package/esm/List/styled.js +8 -0
- package/esm/ListItem/ListItem.d.ts +3 -0
- package/esm/ListItem/ListItem.js +28 -0
- package/esm/ListItem/constants.d.ts +5 -0
- package/esm/ListItem/constants.js +6 -0
- package/esm/ListItem/index.d.ts +1 -0
- package/esm/ListItem/index.js +1 -0
- package/esm/ListItem/styled.d.ts +39 -0
- package/esm/ListItem/styled.js +45 -0
- package/esm/ListItem/types.d.ts +2 -0
- package/esm/ListItem/types.js +1 -0
- package/esm/ListItemAvatar/ListItemAvatar.d.ts +3 -0
- package/esm/ListItemAvatar/ListItemAvatar.js +2 -0
- package/esm/ListItemAvatar/index.d.ts +1 -0
- package/esm/ListItemAvatar/index.js +1 -0
- package/esm/ListItemButton/ListItemButton.d.ts +3 -0
- package/esm/ListItemButton/ListItemButton.js +28 -0
- package/esm/ListItemButton/constants.d.ts +5 -0
- package/esm/ListItemButton/constants.js +6 -0
- package/esm/ListItemButton/index.d.ts +1 -0
- package/esm/ListItemButton/index.js +1 -0
- package/esm/ListItemButton/styled.d.ts +35 -0
- package/esm/ListItemButton/styled.js +41 -0
- package/esm/ListItemButton/types.d.ts +2 -0
- package/esm/ListItemButton/types.js +1 -0
- package/esm/ListItemIcon/ListItemIcon.d.ts +3 -0
- package/esm/ListItemIcon/ListItemIcon.js +28 -0
- package/esm/ListItemIcon/index.d.ts +1 -0
- package/esm/ListItemIcon/index.js +1 -0
- package/esm/ListItemIcon/styled.d.ts +4 -0
- package/esm/ListItemIcon/styled.js +11 -0
- package/esm/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +3 -0
- package/esm/ListItemSecondaryAction/ListItemSecondaryAction.js +2 -0
- package/esm/ListItemSecondaryAction/index.d.ts +1 -0
- package/esm/ListItemSecondaryAction/index.js +1 -0
- package/esm/ListItemText/ListItemText.d.ts +3 -0
- package/esm/ListItemText/ListItemText.js +28 -0
- package/esm/ListItemText/index.d.ts +1 -0
- package/esm/ListItemText/index.js +1 -0
- package/esm/ListSubheader/ListSubheader.d.ts +3 -0
- package/esm/ListSubheader/ListSubheader.js +2 -0
- package/esm/ListSubheader/index.d.ts +1 -0
- package/esm/ListSubheader/index.js +1 -0
- package/esm/MenuList/styled.d.ts +1 -1
- package/esm/MenuList/styled.js +1 -1
- package/esm/Radio/Radio.d.ts +1 -1
- package/esm/Radio/styled.js +1 -1
- package/esm/Select/styled.d.ts +1 -1
- package/esm/Select/styled.js +2 -2
- package/esm/Tag/styled.d.ts +1 -1
- package/esm/Tag/styled.js +5 -5
- package/esm/TextArea/TextArea.d.ts +1 -1
- package/esm/TextField/TextField.d.ts +1 -1
- package/esm/Tooltip/Tooltip.d.ts +1 -1
- package/esm/Tooltip/styled.js +6 -6
- package/esm/theme/components/MuiAutocomplete.js +49 -4
- package/esm/theme/components/MuiButtonBase.d.ts +3 -0
- package/esm/theme/components/MuiButtonBase.js +5 -0
- package/esm/theme/components/components.js +2 -0
- package/package.json +12 -2
- package/theme/components/MuiAutocomplete.js +49 -4
- package/theme/components/MuiButtonBase.d.ts +3 -0
- package/theme/components/MuiButtonBase.js +8 -0
- package/theme/components/components.js +2 -0
package/Select/styled.js
CHANGED
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
exports.Placeholder = exports.ProgressWrapper = exports.TagsWrapper = void 0;
|
|
8
8
|
var styles_1 = require("../styles");
|
|
9
9
|
var MenuItem_1 = require("../MenuItem");
|
|
10
|
-
exports.TagsWrapper = styles_1.styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n margin-bottom: -", ";\n\n .MuiChip-root {\n margin-bottom: ", ";\n background-color: ", ";\n }\n\n .MuiChip-root:hover {\n background-color: ", ";\n }\n\n .MuiChip-root:not(:last-of-type) {\n margin-right: ", ";\n }\n"], ["\n display: flex;\n flex-wrap: wrap;\n margin-bottom: -", ";\n\n .MuiChip-root {\n margin-bottom: ", ";\n background-color: ", ";\n }\n\n .MuiChip-root:hover {\n background-color: ", ";\n }\n\n .MuiChip-root:not(:last-of-type) {\n margin-right: ", ";\n }\n"])), function (_a) {
|
|
10
|
+
exports.TagsWrapper = styles_1.styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n margin-bottom: -", ";\n\n .MuiChip-root {\n margin-bottom: ", ";\n\n background-color: ", ";\n }\n\n .MuiChip-root:hover {\n background-color: ", ";\n }\n\n .MuiChip-root:not(:last-of-type) {\n margin-right: ", ";\n }\n"], ["\n display: flex;\n flex-wrap: wrap;\n margin-bottom: -", ";\n\n .MuiChip-root {\n margin-bottom: ", ";\n\n background-color: ", ";\n }\n\n .MuiChip-root:hover {\n background-color: ", ";\n }\n\n .MuiChip-root:not(:last-of-type) {\n margin-right: ", ";\n }\n"])), function (_a) {
|
|
11
11
|
var theme = _a.theme;
|
|
12
12
|
return theme.spacing(1);
|
|
13
13
|
}, function (_a) {
|
|
@@ -23,7 +23,7 @@ exports.TagsWrapper = styles_1.styled.div(templateObject_1 || (templateObject_1
|
|
|
23
23
|
var theme = _a.theme;
|
|
24
24
|
return theme.spacing(1);
|
|
25
25
|
});
|
|
26
|
-
exports.ProgressWrapper = styles_1.styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n
|
|
26
|
+
exports.ProgressWrapper = styles_1.styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n min-height: 64px;\n\n .MuiCircularProgress-root {\n margin-top: ", ";\n\n color: ", ";\n }\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n min-height: 64px;\n\n .MuiCircularProgress-root {\n margin-top: ", ";\n\n color: ", ";\n }\n"])), function (_a) {
|
|
27
27
|
var theme = _a.theme;
|
|
28
28
|
return theme.spacing(5);
|
|
29
29
|
}, function (_a) {
|
package/Tag/styled.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare const StyledTag: import("@emotion/styled").StyledComponent<{
|
|
|
16
16
|
variant?: "filled" | "outlined" | undefined;
|
|
17
17
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
18
18
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
19
|
-
}, "disabled" |
|
|
19
|
+
}, "disabled" | keyof import("@mui/material/OverridableComponent").CommonProps | "label" | "color" | "children" | "sx" | "variant" | "size" | "icon" | "avatar" | "clickable" | "deleteIcon" | "onDelete"> & {
|
|
20
20
|
theme?: import("@emotion/react").Theme | undefined;
|
|
21
21
|
} & Omit<TagProps, "color"> & {
|
|
22
22
|
customColor?: "primary" | "default" | "error" | "grey" | "warning" | "success" | undefined;
|
package/Tag/styled.js
CHANGED
|
@@ -114,18 +114,18 @@ exports.StyledTag = (0, styles_1.styled)(material_1.Chip, {
|
|
|
114
114
|
shouldForwardProp: function (prop) {
|
|
115
115
|
return prop !== 'customColor' && prop !== 'customVariant' && prop !== 'rounded';
|
|
116
116
|
},
|
|
117
|
-
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n
|
|
117
|
+
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 20px;\n\n font-size: 14px;\n\n background-color: ", ";\n border-radius: ", ";\n\n user-select: none;\n\n &:hover {\n color: ", ";\n\n background-color: ", ";\n }\n\n &:active {\n color: ", ";\n\n background-color: ", ";\n }\n\n .MuiChip-label {\n padding: ", ";\n\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n &:active {\n color: ", ";\n }\n }\n\n .MuiChip-deleteIcon {\n width: 20px;\n height: 20px;\n margin: 0;\n\n color: ", ";\n\n background: ", ";\n border-radius: ", ";\n\n &:hover {\n color: ", ";\n\n background: ", ";\n }\n\n &:active {\n color: ", ";\n\n background: ", ";\n }\n }\n\n .MuiChip-avatar {\n width: 16px;\n height: 16px;\n margin: 2px;\n }\n\n .MuiChip-icon {\n width: 16px;\n height: 16px;\n }\n"], ["\n height: 20px;\n\n font-size: 14px;\n\n background-color: ", ";\n border-radius: ", ";\n\n user-select: none;\n\n &:hover {\n color: ", ";\n\n background-color: ", ";\n }\n\n &:active {\n color: ", ";\n\n background-color: ", ";\n }\n\n .MuiChip-label {\n padding: ", ";\n\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n &:active {\n color: ", ";\n }\n }\n\n .MuiChip-deleteIcon {\n width: 20px;\n height: 20px;\n margin: 0;\n\n color: ", ";\n\n background: ", ";\n border-radius: ", ";\n\n &:hover {\n color: ", ";\n\n background: ", ";\n }\n\n &:active {\n color: ", ";\n\n background: ", ";\n }\n }\n\n .MuiChip-avatar {\n width: 16px;\n height: 16px;\n margin: 2px;\n }\n\n .MuiChip-icon {\n width: 16px;\n height: 16px;\n }\n"])), function (props) {
|
|
118
118
|
return getBgColor(__assign(__assign({}, props), { tagState: constants_1.TagStates.DEFAULT }));
|
|
119
|
-
}, function (props) {
|
|
119
|
+
}, function (props) { return getShape(__assign({}, props)); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: constants_1.TagStates.HOVER })); }, function (props) {
|
|
120
120
|
return getBgColor(__assign(__assign({}, props), { tagState: constants_1.TagStates.HOVER }));
|
|
121
|
-
}, function (props) { return getColor(__assign(__assign({}, props), { tagState: constants_1.TagStates.
|
|
121
|
+
}, function (props) { return getColor(__assign(__assign({}, props), { tagState: constants_1.TagStates.ACTIVE })); }, function (props) {
|
|
122
122
|
return getBgColor(__assign(__assign({}, props), { tagState: constants_1.TagStates.ACTIVE }));
|
|
123
|
-
}, function (props) { return
|
|
123
|
+
}, function (props) { return getTagLabelPadding(__assign({}, props)); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: constants_1.TagStates.DEFAULT })); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: constants_1.TagStates.HOVER })); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: constants_1.TagStates.ACTIVE })); }, function (_a) {
|
|
124
124
|
var theme = _a.theme;
|
|
125
125
|
return theme.palette.grey[800];
|
|
126
126
|
}, function (props) {
|
|
127
127
|
return getDeleteIconBgColor(__assign(__assign({}, props), { iconState: constants_1.TagStates.DEFAULT }));
|
|
128
|
-
}, function (_a) {
|
|
128
|
+
}, function (props) { return getDeleteIconBorderRadius(__assign({}, props)); }, function (_a) {
|
|
129
129
|
var theme = _a.theme;
|
|
130
130
|
return theme.palette.grey[800];
|
|
131
131
|
}, function (props) {
|
package/TextArea/TextArea.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TextAreaProps } from './types';
|
|
3
|
-
export declare const TextArea: import("react").ForwardRefExoticComponent<Pick<TextAreaProps, "disabled" | "
|
|
3
|
+
export declare const TextArea: import("react").ForwardRefExoticComponent<Pick<TextAreaProps, "disabled" | "className" | "style" | "classes" | "label" | "slot" | "select" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "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" | "sx" | "key" | "autoFocus" | "name" | "type" | "value" | "focused" | "error" | "fullWidth" | "hiddenLabel" | "margin" | "success" | "required" | "variant" | "autoComplete" | "inputProps" | "inputRef" | "rows" | "maxRows" | "minRows" | "size" | "SelectProps" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps"> & import("react").RefAttributes<HTMLDivElement>>;
|
package/TextField/TextField.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TextFieldProps } from './types';
|
|
3
|
-
export declare const TextField: import("react").ForwardRefExoticComponent<Pick<TextFieldProps, "disabled" | "
|
|
3
|
+
export declare const TextField: import("react").ForwardRefExoticComponent<Pick<TextFieldProps, "disabled" | "className" | "style" | "classes" | "label" | "slot" | "select" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "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" | "sx" | "key" | "autoFocus" | "name" | "type" | "value" | "focused" | "error" | "multiline" | "fullWidth" | "hiddenLabel" | "margin" | "success" | "required" | "variant" | "autoComplete" | "inputProps" | "inputRef" | "rows" | "maxRows" | "minRows" | "size" | "SelectProps" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
4
|
export default TextField;
|
package/Tooltip/Tooltip.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TooltipProps } from './types';
|
|
3
|
-
export declare const Tooltip: import("react").ForwardRefExoticComponent<Pick<TooltipProps, "
|
|
3
|
+
export declare const Tooltip: import("react").ForwardRefExoticComponent<Pick<TooltipProps, "className" | "style" | "classes" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "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" | "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" | "sx" | "components" | "componentsProps" | "size" | "open" | "onClose" | "TransitionComponent" | "TransitionProps" | "arrow" | "describeChild" | "disableFocusListener" | "disableHoverListener" | "disableInteractive" | "disableTouchListener" | "enterDelay" | "enterNextDelay" | "enterTouchDelay" | "followCursor" | "leaveDelay" | "leaveTouchDelay" | "onOpen" | "placement" | "PopperComponent" | "PopperProps"> & import("react").RefAttributes<HTMLDivElement>>;
|
package/Tooltip/styled.js
CHANGED
|
@@ -34,12 +34,9 @@ var constants_1 = require("./constants");
|
|
|
34
34
|
exports.StyledTooltip = (0, styles_1.styled)(function (_a) {
|
|
35
35
|
var className = _a.className, props = __rest(_a, ["className"]);
|
|
36
36
|
return ((0, jsx_runtime_1.jsx)(material_1.Tooltip, __assign({}, props, { classes: { popper: className } }), void 0));
|
|
37
|
-
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n & .MuiTooltip-tooltip {\n margin: 0;\n
|
|
37
|
+
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n & .MuiTooltip-tooltip {\n margin: 0;\n\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n\n background-color: ", ";\n border-radius: ", ";\n }\n\n & .MuiTooltip-arrow {\n color: ", ";\n }\n\n &&[data-popper-placement*='top'] .MuiTooltip-tooltip {\n margin-bottom: ", ";\n }\n\n &&[data-popper-placement*='bottom'] .MuiTooltip-tooltip {\n margin-top: ", ";\n }\n\n &&[data-popper-placement*='left'] .MuiTooltip-tooltip {\n margin-right: ", ";\n }\n\n &&[data-popper-placement*='right'] .MuiTooltip-tooltip {\n margin-left: ", ";\n }\n"], ["\n & .MuiTooltip-tooltip {\n margin: 0;\n\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n\n background-color: ", ";\n border-radius: ", ";\n }\n\n & .MuiTooltip-arrow {\n color: ", ";\n }\n\n &&[data-popper-placement*='top'] .MuiTooltip-tooltip {\n margin-bottom: ", ";\n }\n\n &&[data-popper-placement*='bottom'] .MuiTooltip-tooltip {\n margin-top: ", ";\n }\n\n &&[data-popper-placement*='left'] .MuiTooltip-tooltip {\n margin-right: ", ";\n }\n\n &&[data-popper-placement*='right'] .MuiTooltip-tooltip {\n margin-left: ", ";\n }\n"])), function (_a) {
|
|
38
38
|
var theme = _a.theme;
|
|
39
|
-
return theme.
|
|
40
|
-
}, function (_a) {
|
|
41
|
-
var theme = _a.theme;
|
|
42
|
-
return theme.shape.small;
|
|
39
|
+
return theme.typography.fontWeightRegular;
|
|
43
40
|
}, function (_a) {
|
|
44
41
|
var size = _a.size, theme = _a.theme;
|
|
45
42
|
return size === constants_1.TooltipSizes.SMALL
|
|
@@ -52,7 +49,10 @@ exports.StyledTooltip = (0, styles_1.styled)(function (_a) {
|
|
|
52
49
|
: theme.typography.ui.lineHeight;
|
|
53
50
|
}, function (_a) {
|
|
54
51
|
var theme = _a.theme;
|
|
55
|
-
return theme.
|
|
52
|
+
return theme.palette.grey[900];
|
|
53
|
+
}, function (_a) {
|
|
54
|
+
var theme = _a.theme;
|
|
55
|
+
return theme.shape.small;
|
|
56
56
|
}, function (_a) {
|
|
57
57
|
var theme = _a.theme;
|
|
58
58
|
return theme.palette.grey[900];
|
|
@@ -40,5 +40,5 @@ export var Autocomplete = function (_a) {
|
|
|
40
40
|
var selected = Boolean(option['aria-selected']);
|
|
41
41
|
return (_jsxs(MenuItem, __assign({}, option, { children: [multiple && (_jsx(ListItemIcon, { children: _jsx(Checkbox, { checked: selected }, void 0) }, void 0)), option.key] }), void 0));
|
|
42
42
|
};
|
|
43
|
-
return (_jsx(MuiAutocomplete, __assign({}, props, { size: size, multiple: multiple, getOptionLabel: getOptionLabel, disableCloseOnSelect: multiple, renderTags: renderTags, renderInput: renderInput, renderOption: renderOption, popupIcon: _jsx(ChevronDOutlineMd, {}, void 0), clearIcon: _jsx(CrossSmOutlineSm, {}, void 0) }), void 0));
|
|
43
|
+
return (_jsx(MuiAutocomplete, __assign({}, props, { size: size, multiple: multiple, getOptionLabel: getOptionLabel, disableCloseOnSelect: multiple, renderTags: renderTags, renderInput: renderInput, renderOption: renderOption, popupIcon: _jsx(ChevronDOutlineMd, {}, void 0), clearIcon: _jsx(CrossSmOutlineSm, {}, void 0), componentsProps: { clearIndicator: { disableRipple: true } }, noOptionsText: "\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445" }), void 0));
|
|
44
44
|
};
|
package/esm/Badge/styled.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export declare const StyledBadge: import("@emotion/styled").StyledComponent<{
|
|
|
42
42
|
variant?: string | undefined;
|
|
43
43
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
|
|
44
44
|
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
45
|
-
},
|
|
45
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "children" | "sx" | "components" | "variant" | "componentsProps" | "invisible" | "anchorOrigin" | "overlap" | "badgeContent" | "max" | "showZero"> & {
|
|
46
46
|
theme?: import("@emotion/react").Theme | undefined;
|
|
47
47
|
} & Omit<BadgeProps, "color"> & {
|
|
48
48
|
customColor: BadgeColor;
|
package/esm/Badge/styled.js
CHANGED
|
@@ -38,18 +38,18 @@ var getTextColor = function (_a) {
|
|
|
38
38
|
};
|
|
39
39
|
export var StyledBadge = styled(Badge, {
|
|
40
40
|
shouldForwardProp: function (prop) { return prop !== 'customColor'; },
|
|
41
|
-
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .MuiBadge-badge {\n height: 20px;\n
|
|
42
|
-
var
|
|
43
|
-
return
|
|
41
|
+
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n .MuiBadge-badge {\n height: 20px;\n padding: ", ";\n\n color: ", ";\n font-size: ", ";\n line-height: 20px;\n\n background-color: ", ";\n border: 2px solid ", ";\n border-radius: 12px;\n }\n\n .MuiBadge-dot {\n width: 12px;\n height: 12px;\n\n border: 2px solid ", ";\n }\n"], ["\n .MuiBadge-badge {\n height: 20px;\n padding: ", ";\n\n color: ", ";\n font-size: ", ";\n line-height: 20px;\n\n background-color: ", ";\n border: 2px solid ", ";\n border-radius: 12px;\n }\n\n .MuiBadge-dot {\n width: 12px;\n height: 12px;\n\n border: 2px solid ", ";\n }\n"])), function (_a) {
|
|
42
|
+
var theme = _a.theme;
|
|
43
|
+
return theme.spacing(0, 1);
|
|
44
44
|
}, function (_a) {
|
|
45
45
|
var customColor = _a.customColor, theme = _a.theme;
|
|
46
46
|
return getTextColor({ customColor: customColor, theme: theme });
|
|
47
|
-
}, function (_a) {
|
|
48
|
-
var theme = _a.theme;
|
|
49
|
-
return theme.spacing(0, 1);
|
|
50
47
|
}, function (_a) {
|
|
51
48
|
var theme = _a.theme;
|
|
52
49
|
return theme.typography.small.fontSize;
|
|
50
|
+
}, function (_a) {
|
|
51
|
+
var customColor = _a.customColor, theme = _a.theme;
|
|
52
|
+
return getBgColor({ customColor: customColor, theme: theme });
|
|
53
53
|
}, function (_a) {
|
|
54
54
|
var theme = _a.theme;
|
|
55
55
|
return theme.palette.common.white;
|
package/esm/Button/styled.js
CHANGED
|
@@ -14,12 +14,12 @@ export var StyledButton = styled(ButtonBase, {
|
|
|
14
14
|
shouldForwardProp: function (prop) {
|
|
15
15
|
return prop !== 'startIcon' && prop !== 'endIcon' && prop !== 'loading';
|
|
16
16
|
},
|
|
17
|
-
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n
|
|
17
|
+
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n\n pointer-events: ", ";\n\n &:focus {\n color: ", ";\n }\n\n > span:first-of-type {\n display: inherit;\n margin-right: ", ";\n }\n\n > span:last-of-type {\n display: inherit;\n margin-left: ", ";\n }\n\n .MuiCircularProgress-root {\n position: absolute;\n\n width: 16px !important;\n height: 16px !important;\n\n color: ", ";\n\n transform: translate(-50%, -50%);\n }\n"], ["\n color: ", ";\n\n pointer-events: ", ";\n\n &:focus {\n color: ", ";\n }\n\n > span:first-of-type {\n display: inherit;\n margin-right: ", ";\n }\n\n > span:last-of-type {\n display: inherit;\n margin-left: ", ";\n }\n\n .MuiCircularProgress-root {\n position: absolute;\n\n width: 16px !important;\n height: 16px !important;\n\n color: ", ";\n\n transform: translate(-50%, -50%);\n }\n"])), function (_a) {
|
|
18
18
|
var loading = _a.loading;
|
|
19
|
-
return
|
|
19
|
+
return loading && 'transparent';
|
|
20
20
|
}, function (_a) {
|
|
21
21
|
var loading = _a.loading;
|
|
22
|
-
return loading
|
|
22
|
+
return (loading ? 'none' : 'inherit');
|
|
23
23
|
}, function (_a) {
|
|
24
24
|
var loading = _a.loading;
|
|
25
25
|
return loading && 'transparent';
|
package/esm/ButtonBase/styled.js
CHANGED
|
@@ -167,36 +167,36 @@ export var StyledButtonBase = styled(ButtonUnstyled, {
|
|
|
167
167
|
shouldForwardProp: function (prop) {
|
|
168
168
|
return prop !== 'customColor' && prop !== 'customVariant';
|
|
169
169
|
},
|
|
170
|
-
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n
|
|
171
|
-
|
|
172
|
-
return theme.shape.small;
|
|
170
|
+
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n\n display: inline-flex;\n align-items: center;\n justify-content: center;\n height: ", ";\n padding: ", ";\n\n color: ", ";\n font-weight: ", ";\n font-size: ", ";\n font-family: Ubuntu, serif;\n\n background-color: ", ";\n border: none;\n border-radius: ", ";\n cursor: pointer;\n\n &:hover {\n color: ", ";\n\n background-color: ", ";\n }\n\n &:focus {\n color: ", ";\n\n background-color: ", ";\n outline: 2px solid ", ";\n }\n\n &:active {\n color: ", ";\n\n background-color: ", ";\n outline: none;\n }\n\n &.", " {\n color: ", ";\n\n background-color: ", ";\n cursor: unset;\n }\n"], ["\n position: relative;\n\n display: inline-flex;\n align-items: center;\n justify-content: center;\n height: ", ";\n padding: ", ";\n\n color: ", ";\n font-weight: ", ";\n font-size: ", ";\n font-family: Ubuntu, serif;\n\n background-color: ", ";\n border: none;\n border-radius: ", ";\n cursor: pointer;\n\n &:hover {\n color: ", ";\n\n background-color: ", ";\n }\n\n &:focus {\n color: ", ";\n\n background-color: ", ";\n outline: 2px solid ", ";\n }\n\n &:active {\n color: ", ";\n\n background-color: ", ";\n outline: none;\n }\n\n &.", " {\n color: ", ";\n\n background-color: ", ";\n cursor: unset;\n }\n"])), getButtonHeight, getButtonPadding, function (props) {
|
|
171
|
+
return getColor(__assign(__assign({}, props), { buttonState: ButtonStates.DEFAULT }));
|
|
173
172
|
}, function (_a) {
|
|
174
173
|
var theme = _a.theme;
|
|
175
|
-
return theme.typography.button.
|
|
174
|
+
return theme.typography.button.fontWeight;
|
|
176
175
|
}, function (_a) {
|
|
177
176
|
var theme = _a.theme;
|
|
178
|
-
return theme.typography.button.
|
|
177
|
+
return theme.typography.button.fontSize;
|
|
179
178
|
}, function (props) {
|
|
180
179
|
return getBgColor(__assign(__assign({}, props), { buttonState: ButtonStates.DEFAULT }));
|
|
180
|
+
}, function (_a) {
|
|
181
|
+
var theme = _a.theme;
|
|
182
|
+
return theme.shape.small;
|
|
181
183
|
}, function (props) {
|
|
182
|
-
return getColor(__assign(__assign({}, props), { buttonState: ButtonStates.
|
|
184
|
+
return getColor(__assign(__assign({}, props), { buttonState: ButtonStates.HOVER }));
|
|
183
185
|
}, function (props) {
|
|
184
186
|
return getBgColor(__assign(__assign({}, props), { buttonState: ButtonStates.HOVER }));
|
|
185
187
|
}, function (props) {
|
|
186
|
-
return getColor(__assign(__assign({}, props), { buttonState: ButtonStates.
|
|
188
|
+
return getColor(__assign(__assign({}, props), { buttonState: ButtonStates.FOCUS }));
|
|
187
189
|
}, function (props) {
|
|
188
190
|
return getBgColor(__assign(__assign({}, props), { buttonState: ButtonStates.FOCUS }));
|
|
189
|
-
}, function (props) {
|
|
190
|
-
return getColor(__assign(__assign({}, props), { buttonState: ButtonStates.FOCUS }));
|
|
191
191
|
}, function (_a) {
|
|
192
192
|
var theme = _a.theme;
|
|
193
193
|
return theme.palette.primary['400'];
|
|
194
|
-
}, function (props) {
|
|
195
|
-
return getBgColor(__assign(__assign({}, props), { buttonState: ButtonStates.ACTIVE }));
|
|
196
194
|
}, function (props) {
|
|
197
195
|
return getColor(__assign(__assign({}, props), { buttonState: ButtonStates.ACTIVE }));
|
|
198
|
-
},
|
|
196
|
+
}, function (props) {
|
|
197
|
+
return getBgColor(__assign(__assign({}, props), { buttonState: ButtonStates.ACTIVE }));
|
|
198
|
+
}, buttonUnstyledClasses.disabled, function (_a) {
|
|
199
199
|
var theme = _a.theme;
|
|
200
200
|
return theme.palette.grey['500'];
|
|
201
|
-
});
|
|
201
|
+
}, getDisabledBgColor);
|
|
202
202
|
var templateObject_1;
|
package/esm/Checkbox/styled.js
CHANGED
|
@@ -4,7 +4,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
4
4
|
};
|
|
5
5
|
import { Checkbox } from '@mui/material';
|
|
6
6
|
import { styled } from '../styles';
|
|
7
|
-
export var StyledCheckbox = styled(Checkbox)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 5px;\n
|
|
7
|
+
export var StyledCheckbox = styled(Checkbox)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 5px;\n\n color: ", ";\n\n border-radius: unset;\n\n &:hover {\n color: ", ";\n }\n\n & .MuiSvgIcon-border {\n color: ", ";\n }\n\n & > svg {\n width: 1rem;\n height: 1rem;\n }\n\n &.Mui-disabled {\n color: ", ";\n\n & .MuiSvgIcon-border {\n color: currentColor;\n }\n }\n\n &.Mui-checked,\n &.MuiCheckbox-indeterminate {\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n &.Mui-disabled {\n color: ", ";\n }\n\n & .MuiSvgIcon-mark {\n color: ", ";\n }\n }\n"], ["\n padding: 5px;\n\n color: ", ";\n\n border-radius: unset;\n\n &:hover {\n color: ", ";\n }\n\n & .MuiSvgIcon-border {\n color: ", ";\n }\n\n & > svg {\n width: 1rem;\n height: 1rem;\n }\n\n &.Mui-disabled {\n color: ", ";\n\n & .MuiSvgIcon-border {\n color: currentColor;\n }\n }\n\n &.Mui-checked,\n &.MuiCheckbox-indeterminate {\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n &.Mui-disabled {\n color: ", ";\n }\n\n & .MuiSvgIcon-mark {\n color: ", ";\n }\n }\n"])), function (_a) {
|
|
8
8
|
var theme = _a.theme;
|
|
9
9
|
return theme.palette.background.element;
|
|
10
10
|
}, function (_a) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Collapse';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Collapse';
|
|
@@ -3,27 +3,27 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
3
3
|
return cooked;
|
|
4
4
|
};
|
|
5
5
|
import { styled } from '../../styles';
|
|
6
|
-
export var StyledHeader = styled('header')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n grid-column: 1 / -1;\n
|
|
6
|
+
export var StyledHeader = styled('header')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n z-index: ", ";\n\n grid-column: 1 / -1;\n width: 100%;\n height: 56px;\n min-height: 56px;\n padding: 0 ", ";\n\n background-color: ", ";\n box-shadow: ", ";\n"], ["\n z-index: ", ";\n\n grid-column: 1 / -1;\n width: 100%;\n height: 56px;\n min-height: 56px;\n padding: 0 ", ";\n\n background-color: ", ";\n box-shadow: ", ";\n"])), function (_a) {
|
|
7
7
|
var theme = _a.theme;
|
|
8
8
|
return theme.zIndex.appBar;
|
|
9
|
-
}, function (_a) {
|
|
10
|
-
var theme = _a.theme;
|
|
11
|
-
return theme.elevation[200];
|
|
12
9
|
}, function (_a) {
|
|
13
10
|
var theme = _a.theme;
|
|
14
11
|
return theme.spacing(5);
|
|
15
12
|
}, function (_a) {
|
|
16
13
|
var theme = _a.theme;
|
|
17
14
|
return theme.palette.background.default;
|
|
15
|
+
}, function (_a) {
|
|
16
|
+
var theme = _a.theme;
|
|
17
|
+
return theme.elevation[200];
|
|
18
18
|
});
|
|
19
19
|
export var InnerContainer = styled('div')(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n height: 100%;\n"], ["\n display: flex;\n justify-content: space-between;\n height: 100%;\n"])));
|
|
20
|
-
export var LeftContainer = styled('div')(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n height: 100%;\n
|
|
21
|
-
export var LogoContainer = styled('div')(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n
|
|
22
|
-
var withWidget = _a.withWidget, theme = _a.theme;
|
|
23
|
-
return withWidget && theme.spacing(2);
|
|
24
|
-
}, function (_a) {
|
|
20
|
+
export var LeftContainer = styled('div')(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: 100%;\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: 100%;\n"])));
|
|
21
|
+
export var LogoContainer = styled('div')(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n height: 100%;\n max-height: 24px;\n margin-right: ", ";\n margin-left: ", ";\n\n > * {\n height: 100%;\n }\n"], ["\n height: 100%;\n max-height: 24px;\n margin-right: ", ";\n margin-left: ", ";\n\n > * {\n height: 100%;\n }\n"])), function (_a) {
|
|
25
22
|
var theme = _a.theme;
|
|
26
23
|
return theme.spacing(4);
|
|
24
|
+
}, function (_a) {
|
|
25
|
+
var withWidget = _a.withWidget, theme = _a.theme;
|
|
26
|
+
return withWidget && theme.spacing(2);
|
|
27
27
|
});
|
|
28
|
-
export var LogoStyle = styled('img')(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n height: 100%;\n cursor: pointer;\n"], ["\n height: 100%;\n cursor: pointer;\n"])));
|
|
28
|
+
export var LogoStyle = styled('img')(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n height: 100%;\n\n cursor: pointer;\n"], ["\n height: 100%;\n\n cursor: pointer;\n"])));
|
|
29
29
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
@@ -4,15 +4,15 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
4
4
|
};
|
|
5
5
|
import { Drawer } from '@mui/material';
|
|
6
6
|
import { styled } from '../../styles';
|
|
7
|
-
export var StyledDrawer = styled(Drawer)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n z-index: ", ";\n grid-column: 1;\n width: 241px;\n
|
|
7
|
+
export var StyledDrawer = styled(Drawer)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n z-index: ", ";\n\n grid-column: 1;\n width: 241px;\n\n .MuiPaper-root {\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n\n padding: ", ";\n\n background-color: ", ";\n border-right: 1px solid ", ";\n }\n"], ["\n position: relative;\n z-index: ", ";\n\n grid-column: 1;\n width: 241px;\n\n .MuiPaper-root {\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n\n padding: ", ";\n\n background-color: ", ";\n border-right: 1px solid ", ";\n }\n"])), function (_a) {
|
|
8
8
|
var theme = _a.theme;
|
|
9
9
|
return theme.zIndex.appBar - 1;
|
|
10
10
|
}, function (_a) {
|
|
11
11
|
var theme = _a.theme;
|
|
12
|
-
return theme.
|
|
12
|
+
return theme.spacing(5, 0);
|
|
13
13
|
}, function (_a) {
|
|
14
14
|
var theme = _a.theme;
|
|
15
|
-
return theme.
|
|
15
|
+
return theme.palette.background.element;
|
|
16
16
|
}, function (_a) {
|
|
17
17
|
var theme = _a.theme;
|
|
18
18
|
return theme.palette.grey[300];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Divider';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Divider';
|
|
@@ -4,7 +4,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
4
4
|
};
|
|
5
5
|
import { FormControlLabel } from '@mui/material';
|
|
6
6
|
import { styled } from '../styles';
|
|
7
|
-
export var StyledFormControlLabel = styled(FormControlLabel)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-
|
|
7
|
+
export var StyledFormControlLabel = styled(FormControlLabel)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n margin-right: 0;\n margin-left: -5px;\n\n & .MuiFormControlLabel-label {\n margin-left: ", ";\n }\n"], ["\n margin-right: 0;\n margin-left: -5px;\n\n & .MuiFormControlLabel-label {\n margin-left: ", ";\n }\n"])), function (_a) {
|
|
8
8
|
var theme = _a.theme;
|
|
9
9
|
return theme.spacing(1);
|
|
10
10
|
});
|