@astral/ui 1.2.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Alert/Alert.d.ts +25 -0
- package/Alert/Alert.js +41 -0
- package/Alert/index.d.ts +1 -0
- package/Alert/index.js +17 -0
- package/Badge/styled.d.ts +2 -2
- package/Button/Button.d.ts +1 -1
- package/ButtonBase/ButtonBase.d.ts +1 -1
- package/ButtonBase/styled.d.ts +2 -2
- package/Chevron/styles.d.ts +3 -3
- package/CircularProgress/CircularProgress.d.ts +1 -1
- package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/SidebarToggleButton.d.ts +1 -1
- package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/styles.d.ts +1 -1
- package/DashboardLayout/Sidebar/SidebarToggler/styled.d.ts +1 -1
- package/DataGrid/DataGrid.d.ts +5 -5
- package/DataGrid/DataGrid.js +3 -3
- package/DataGrid/DataGridBody/DataGridBody.js +2 -2
- package/DataGrid/DataGridBody/{styled.d.ts → styles.d.ts} +0 -0
- package/DataGrid/DataGridBody/{styled.js → styles.js} +0 -0
- package/DataGrid/DataGridHead/DataGridHead.d.ts +2 -2
- package/DataGrid/DataGridHead/DataGridHead.js +8 -30
- package/DataGrid/DataGridHeadColumn/DataGridHeadColumn.d.ts +1 -1
- package/DataGrid/DataGridHeadColumn/DataGridHeadColumn.js +19 -9
- package/DataGrid/DataGridHeadColumn/styles.d.ts +11 -0
- package/DataGrid/DataGridHeadColumn/{styled.js → styles.js} +5 -7
- package/DataGrid/DataGridLoader/DataGridLoader.js +2 -2
- package/DataGrid/DataGridLoader/index.d.ts +1 -1
- package/DataGrid/DataGridLoader/index.js +1 -1
- package/DataGrid/DataGridLoader/{styled.d.ts → styles.d.ts} +1 -1
- package/DataGrid/DataGridLoader/{styled.js → styles.js} +0 -0
- package/DataGrid/{styled.d.ts → styles.d.ts} +0 -0
- package/DataGrid/{styled.js → styles.js} +0 -0
- package/DatePicker/DatePickerDay/styled.d.ts +1 -1
- package/Description/Description.d.ts +12 -0
- package/Description/Description.js +14 -0
- package/Description/Name/Name.d.ts +4 -0
- package/Description/Name/Name.js +32 -0
- package/Description/Name/index.d.ts +1 -0
- package/Description/Name/index.js +17 -0
- package/Description/Value/Value.d.ts +10 -0
- package/Description/Value/Value.js +33 -0
- package/Description/Value/index.d.ts +1 -0
- package/Description/Value/index.js +17 -0
- package/Description/index.d.ts +1 -0
- package/Description/index.js +17 -0
- package/Description/styles.d.ts +5 -0
- package/Description/styles.js +10 -0
- package/DropdownButton/DropdownButton.d.ts +1 -1
- package/FormHelperText/styled.d.ts +6 -6
- package/Grid/styled.d.ts +1 -1
- package/IconButton/IconButton.d.ts +1 -1
- package/IconButton/styles.d.ts +3 -3
- package/IconDropdownButton/IconDropdownButton.d.ts +1 -1
- package/ListItem/styles.d.ts +3 -3
- package/ListItemButton/ListItemButton.d.ts +1 -1
- package/ListItemIcon/ListItemIcon.d.ts +1 -1
- package/MenuGroup/stories/styled.d.ts +1 -1
- package/MenuItem/styled.d.ts +1 -1
- package/NavMenu/NavMenuItem/NavMenuItemButton/styles.d.ts +5 -5
- package/Notification/NotificationTemplate/styled.d.ts +4 -4
- package/Notification/styled.d.ts +12 -12
- package/Product/Product.d.ts +1 -1
- package/Profile/styled.d.ts +1 -1
- package/Radio/Radio.d.ts +1 -1
- package/Select/styled.d.ts +1 -1
- package/Tag/styled.d.ts +4 -4
- package/TextArea/TextArea.d.ts +1 -1
- package/TextField/TextField.d.ts +1 -1
- package/Tooltip/Tooltip.d.ts +1 -1
- package/esm/Alert/Alert.d.ts +25 -0
- package/esm/Alert/Alert.js +37 -0
- package/esm/Alert/index.d.ts +1 -0
- package/esm/Alert/index.js +1 -0
- package/esm/Badge/styled.d.ts +2 -2
- package/esm/Button/Button.d.ts +1 -1
- package/esm/ButtonBase/ButtonBase.d.ts +1 -1
- package/esm/ButtonBase/styled.d.ts +2 -2
- package/esm/Chevron/styles.d.ts +3 -3
- package/esm/CircularProgress/CircularProgress.d.ts +1 -1
- package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/SidebarToggleButton.d.ts +1 -1
- package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/styles.d.ts +1 -1
- package/esm/DashboardLayout/Sidebar/SidebarToggler/styled.d.ts +1 -1
- package/esm/DataGrid/DataGrid.d.ts +5 -5
- package/esm/DataGrid/DataGrid.js +2 -2
- package/esm/DataGrid/DataGridBody/DataGridBody.js +1 -1
- package/esm/DataGrid/DataGridBody/{styled.d.ts → styles.d.ts} +0 -0
- package/esm/DataGrid/DataGridBody/{styled.js → styles.js} +0 -0
- package/esm/DataGrid/DataGridHead/DataGridHead.d.ts +2 -2
- package/esm/DataGrid/DataGridHead/DataGridHead.js +8 -30
- package/esm/DataGrid/DataGridHeadColumn/DataGridHeadColumn.d.ts +1 -1
- package/esm/DataGrid/DataGridHeadColumn/DataGridHeadColumn.js +19 -9
- package/esm/DataGrid/DataGridHeadColumn/styles.d.ts +11 -0
- package/esm/DataGrid/DataGridHeadColumn/{styled.js → styles.js} +5 -7
- package/esm/DataGrid/DataGridLoader/DataGridLoader.js +1 -1
- package/esm/DataGrid/DataGridLoader/index.d.ts +1 -1
- package/esm/DataGrid/DataGridLoader/index.js +1 -1
- package/esm/DataGrid/DataGridLoader/{styled.d.ts → styles.d.ts} +1 -1
- package/esm/DataGrid/DataGridLoader/{styled.js → styles.js} +0 -0
- package/esm/DataGrid/{styled.d.ts → styles.d.ts} +0 -0
- package/esm/DataGrid/{styled.js → styles.js} +0 -0
- package/esm/DatePicker/DatePickerDay/styled.d.ts +1 -1
- package/esm/Description/Description.d.ts +12 -0
- package/esm/Description/Description.js +10 -0
- package/esm/Description/Name/Name.d.ts +4 -0
- package/esm/Description/Name/Name.js +28 -0
- package/esm/Description/Name/index.d.ts +1 -0
- package/esm/Description/Name/index.js +1 -0
- package/esm/Description/Value/Value.d.ts +10 -0
- package/esm/Description/Value/Value.js +29 -0
- package/esm/Description/Value/index.d.ts +1 -0
- package/esm/Description/Value/index.js +1 -0
- package/esm/Description/index.d.ts +1 -0
- package/esm/Description/index.js +1 -0
- package/esm/Description/styles.d.ts +5 -0
- package/esm/Description/styles.js +7 -0
- package/esm/DropdownButton/DropdownButton.d.ts +1 -1
- package/esm/FormHelperText/styled.d.ts +6 -6
- package/esm/Grid/styled.d.ts +1 -1
- package/esm/IconButton/IconButton.d.ts +1 -1
- package/esm/IconButton/styles.d.ts +3 -3
- package/esm/IconDropdownButton/IconDropdownButton.d.ts +1 -1
- package/esm/ListItem/styles.d.ts +3 -3
- package/esm/ListItemButton/ListItemButton.d.ts +1 -1
- package/esm/ListItemIcon/ListItemIcon.d.ts +1 -1
- package/esm/MenuGroup/stories/styled.d.ts +1 -1
- package/esm/MenuItem/styled.d.ts +1 -1
- package/esm/NavMenu/NavMenuItem/NavMenuItemButton/styles.d.ts +5 -5
- package/esm/Notification/NotificationTemplate/styled.d.ts +4 -4
- package/esm/Notification/styled.d.ts +12 -12
- package/esm/Product/Product.d.ts +1 -1
- package/esm/Profile/styled.d.ts +1 -1
- package/esm/Radio/Radio.d.ts +1 -1
- package/esm/Select/styled.d.ts +1 -1
- package/esm/Tag/styled.d.ts +4 -4
- 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/index.d.ts +2 -0
- package/esm/index.js +2 -0
- package/esm/theme/components/MuiAlert.d.ts +3 -0
- package/esm/theme/components/MuiAlert.js +54 -0
- package/esm/theme/components/components.js +2 -0
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/package.json +2 -2
- package/theme/components/MuiAlert.d.ts +3 -0
- package/theme/components/MuiAlert.js +57 -0
- package/theme/components/components.js +2 -0
- package/DataGrid/DataGridHeadColumn/styled.d.ts +0 -39
- package/esm/DataGrid/DataGridHeadColumn/styled.d.ts +0 -39
|
@@ -17,5 +17,5 @@ export declare type CircularProgressProps = WithoutEmotionSpecific<Omit<MuiCircu
|
|
|
17
17
|
*/
|
|
18
18
|
size?: 'small' | 'medium';
|
|
19
19
|
};
|
|
20
|
-
export declare const CircularProgress: import("react").ForwardRefExoticComponent<Pick<CircularProgressProps, "tabIndex" | "className" | "slot" | "style" | "title" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "
|
|
20
|
+
export declare const CircularProgress: import("react").ForwardRefExoticComponent<Pick<CircularProgressProps, "color" | "translate" | "tabIndex" | "className" | "slot" | "style" | "title" | "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" | "variant" | "size" | "classes" | "disableShrink" | "thickness"> & import("react").RefAttributes<HTMLElement>>;
|
|
21
21
|
export default CircularProgress;
|
package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/SidebarToggleButton.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ import { ButtonProps } from '../../../../Button';
|
|
|
3
3
|
export declare type SidebarTogglerButtonProps = ButtonProps & {
|
|
4
4
|
collapsedIn: boolean;
|
|
5
5
|
};
|
|
6
|
-
export declare const SidebarTogglerButton: import("react").ForwardRefExoticComponent<Pick<SidebarTogglerButtonProps, "disabled" | "
|
|
6
|
+
export declare const SidebarTogglerButton: import("react").ForwardRefExoticComponent<Pick<SidebarTogglerButtonProps, "disabled" | "action" | "color" | "translate" | "href" | "onFocusVisible" | "tabIndex" | "type" | "children" | "form" | "slot" | "title" | "key" | "css" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "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" | "variant" | "size" | "component" | "selected" | keyof import("@mui/material/OverridableComponent").CommonProps | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon" | "loading" | "loadingIndicator" | "loadingPosition" | "collapsedIn"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const SidebarTogglerButtonRoot: import("@emotion/styled").StyledComponent<Pick<import("../../../../Button").ButtonProps, "disabled" | "
|
|
2
|
+
export declare const SidebarTogglerButtonRoot: import("@emotion/styled").StyledComponent<Pick<import("../../../../Button").ButtonProps, "disabled" | "action" | "color" | "translate" | "href" | "onFocusVisible" | "tabIndex" | "type" | "children" | "form" | "slot" | "title" | "key" | "css" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "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" | "variant" | "size" | "component" | "selected" | keyof import("@mui/material/OverridableComponent").CommonProps | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon" | "loading" | "loadingIndicator" | "loadingPosition"> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
}, {}, {}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const SidebarTogglerRoot: import("@emotion/styled").StyledComponent<Pick<import("./SidebarToggleButton").SidebarTogglerButtonProps, "disabled" | "
|
|
2
|
+
export declare const SidebarTogglerRoot: import("@emotion/styled").StyledComponent<Pick<import("./SidebarToggleButton").SidebarTogglerButtonProps, "disabled" | "action" | "color" | "translate" | "href" | "onFocusVisible" | "tabIndex" | "type" | "children" | "form" | "slot" | "title" | "key" | "css" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "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" | "variant" | "size" | "component" | "selected" | keyof import("@mui/material/OverridableComponent").CommonProps | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon" | "loading" | "loadingIndicator" | "loadingPosition" | "collapsedIn"> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
}, {}, {}>;
|
|
5
5
|
export declare const SidebarTogglerContent: import("@emotion/styled").StyledComponent<{
|
|
@@ -33,15 +33,15 @@ export declare type DataGridProps<Data extends object = DataGridRow, SortField e
|
|
|
33
33
|
*/
|
|
34
34
|
onSelectRow?: (row: Data[]) => void;
|
|
35
35
|
/**
|
|
36
|
-
* @example <DataGrid sorting={
|
|
37
|
-
*
|
|
36
|
+
* @example <DataGrid sorting={{fieldId: 'test', sort: 'asc'}} />
|
|
37
|
+
* Параметры сортируемой колонки
|
|
38
38
|
*/
|
|
39
|
-
sorting?: DataGridSort<SortField
|
|
39
|
+
sorting?: DataGridSort<SortField>;
|
|
40
40
|
/**
|
|
41
41
|
* @example <DataGrid onSort={({fieldId: 'test', sort: 'asc'}) => console.log('sorted')} />
|
|
42
42
|
* Обработчик сортировки
|
|
43
43
|
*/
|
|
44
|
-
onSort?: (sorting: DataGridSort<SortField>
|
|
44
|
+
onSort?: (sorting: DataGridSort<SortField> | undefined) => void;
|
|
45
45
|
/**
|
|
46
46
|
* @example <DataGrid Footer={<DataGridPagination />} />
|
|
47
47
|
* Компонент кастомного футера (н-р Pagination)
|
|
@@ -66,7 +66,7 @@ export declare type DataGridProps<Data extends object = DataGridRow, SortField e
|
|
|
66
66
|
/**
|
|
67
67
|
* @default 10
|
|
68
68
|
* @example <DataGrid minDisplayRows{10} />
|
|
69
|
-
*
|
|
69
|
+
* Используется для отображения переданного кол-ва строк при отсутствии данных
|
|
70
70
|
*/
|
|
71
71
|
minDisplayRows?: number;
|
|
72
72
|
};
|
package/esm/DataGrid/DataGrid.js
CHANGED
|
@@ -24,9 +24,9 @@ import { Table } from '../Table';
|
|
|
24
24
|
import { DataGridHead } from './DataGridHead';
|
|
25
25
|
import { DataGridBody } from './DataGridBody';
|
|
26
26
|
import DataGridLoader from './DataGridLoader/DataGridLoader';
|
|
27
|
-
import { DataGridContainer, StyledTableContainer } from './
|
|
27
|
+
import { DataGridContainer, StyledTableContainer } from './styles';
|
|
28
28
|
export function DataGrid(_a) {
|
|
29
|
-
var columns = _a.columns, _b = _a.rows, rows = _b === void 0 ? [] : _b, _c = _a.selectedRows, selectedRows = _c === void 0 ? [] : _c,
|
|
29
|
+
var columns = _a.columns, _b = _a.rows, rows = _b === void 0 ? [] : _b, _c = _a.selectedRows, selectedRows = _c === void 0 ? [] : _c, sorting = _a.sorting, maxHeight = _a.maxHeight, _d = _a.minDisplayRows, minDisplayRows = _d === void 0 ? 10 : _d, onRowClick = _a.onRowClick, onSelectRow = _a.onSelectRow, Footer = _a.Footer, loading = _a.loading, onSort = _a.onSort, keyId = _a.keyId, emptyCellValue = _a.emptyCellValue;
|
|
30
30
|
var selectable = Boolean(onSelectRow);
|
|
31
31
|
var handleSelectAllRows = function (event) {
|
|
32
32
|
if (!onSelectRow) {
|
|
@@ -14,7 +14,7 @@ import { useCallback, useMemo } from 'react';
|
|
|
14
14
|
import { TableCell, TableRow } from '../../Table';
|
|
15
15
|
import { DataGridCell } from '../DataGridCell';
|
|
16
16
|
import { Checkbox } from '../../Checkbox';
|
|
17
|
-
import { StyledTableBody } from './
|
|
17
|
+
import { StyledTableBody } from './styles';
|
|
18
18
|
export function DataGridBody(_a) {
|
|
19
19
|
var rows = _a.rows, columns = _a.columns, selectable = _a.selectable, onRowClick = _a.onRowClick, onSelectRow = _a.onSelectRow, _b = _a.selectedRows, selectedRows = _b === void 0 ? [] : _b, minDisplayRows = _a.minDisplayRows, keyId = _a.keyId, emptyCellValue = _a.emptyCellValue;
|
|
20
20
|
var renderCells = useCallback(function (row, rowId) {
|
|
File without changes
|
|
File without changes
|
|
@@ -4,8 +4,8 @@ export declare type DataGridHeadProps<Data = DataGridRow, SortField extends keyo
|
|
|
4
4
|
columns: DataGridColumns<Data>[];
|
|
5
5
|
selectable: boolean;
|
|
6
6
|
onSelectAllRows: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
7
|
-
sorting
|
|
8
|
-
onSort?: (sorting: DataGridSort<SortField>
|
|
7
|
+
sorting?: DataGridSort<SortField>;
|
|
8
|
+
onSort?: (sorting: DataGridSort<SortField> | undefined) => void;
|
|
9
9
|
uncheckedRowsCount: number;
|
|
10
10
|
rowsCount: number;
|
|
11
11
|
};
|
|
@@ -9,15 +9,6 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
13
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
14
|
-
if (ar || !(i in from)) {
|
|
15
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
16
|
-
ar[i] = from[i];
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
|
-
};
|
|
21
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
13
|
import { useCallback, useMemo } from 'react';
|
|
23
14
|
import { TableHead } from '../../Table/TableHead';
|
|
@@ -26,37 +17,24 @@ import { Checkbox } from '../../Checkbox';
|
|
|
26
17
|
import { SortStates } from '../constants';
|
|
27
18
|
import { DataGridHeadColumn } from '../DataGridHeadColumn';
|
|
28
19
|
export function DataGridHead(_a) {
|
|
29
|
-
var columns = _a.columns, selectable = _a.selectable, onSelectAllRows = _a.onSelectAllRows, rowsCount = _a.rowsCount, onSort = _a.onSort,
|
|
20
|
+
var columns = _a.columns, selectable = _a.selectable, onSelectAllRows = _a.onSelectAllRows, rowsCount = _a.rowsCount, onSort = _a.onSort, sorting = _a.sorting, uncheckedRowsCount = _a.uncheckedRowsCount;
|
|
30
21
|
var checked = useMemo(function () { return !Boolean(uncheckedRowsCount) && rowsCount > 0; }, [uncheckedRowsCount, rowsCount]);
|
|
31
22
|
var indeterminate = useMemo(function () { return uncheckedRowsCount > 0 && uncheckedRowsCount < rowsCount; }, [uncheckedRowsCount, rowsCount]);
|
|
32
23
|
var handleSort = useCallback(function (field) {
|
|
33
24
|
if (!onSort) {
|
|
34
25
|
return;
|
|
35
26
|
}
|
|
36
|
-
var
|
|
37
|
-
var fieldId = _a.fieldId;
|
|
38
|
-
return fieldId === field;
|
|
39
|
-
});
|
|
27
|
+
var isCurrentField = (sorting === null || sorting === void 0 ? void 0 : sorting.fieldId) === field;
|
|
40
28
|
// если для выбранного столбца текущая сортировка ASC - меняем на DESC
|
|
41
|
-
if (
|
|
42
|
-
|
|
43
|
-
var fieldId = _a.fieldId;
|
|
44
|
-
return fieldId !== field;
|
|
45
|
-
}), true), [
|
|
46
|
-
{ fieldId: field, sort: SortStates.DESC },
|
|
47
|
-
], false);
|
|
48
|
-
return onSort(newSorting);
|
|
49
|
-
// если для выбранного столбца текущая сортировка DESC - убираем сортировку
|
|
29
|
+
if (isCurrentField && sorting.sort === SortStates.ASC) {
|
|
30
|
+
return onSort({ fieldId: field, sort: SortStates.DESC });
|
|
50
31
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
return fieldId !== field;
|
|
55
|
-
});
|
|
56
|
-
return onSort(newSorting);
|
|
32
|
+
// если для выбранного столбца текущая сортировка DESC - убираем сортировку
|
|
33
|
+
if (isCurrentField && sorting.sort === SortStates.DESC) {
|
|
34
|
+
return onSort(undefined);
|
|
57
35
|
}
|
|
58
36
|
// если для выбранного столбца нет сортировки - добавляем сортировку ASC
|
|
59
|
-
onSort(
|
|
37
|
+
onSort({ fieldId: field, sort: SortStates.ASC });
|
|
60
38
|
}, [sorting, onSort]);
|
|
61
39
|
var renderColumns = useMemo(function () {
|
|
62
40
|
return columns.map(function (_a) {
|
|
@@ -3,7 +3,7 @@ import { TableCellProps } from '@mui/material';
|
|
|
3
3
|
import { DataGridRow, DataGridSort } from '../types';
|
|
4
4
|
export declare type DataGridHeadColumnProps<Data = DataGridRow, SortField extends keyof Data = keyof Data> = {
|
|
5
5
|
onSort: (field: SortField) => void;
|
|
6
|
-
sorting
|
|
6
|
+
sorting?: DataGridSort<SortField>;
|
|
7
7
|
label?: string;
|
|
8
8
|
sortable?: boolean;
|
|
9
9
|
align?: TableCellProps['align'];
|
|
@@ -11,21 +11,31 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { useMemo } from 'react';
|
|
14
|
-
import {
|
|
14
|
+
import { SortDownFillSm, SortFillSm, SortUpFillSm } from '@astral/icons';
|
|
15
15
|
import { SortStates } from '../constants';
|
|
16
|
-
import { StyledTableCell,
|
|
16
|
+
import { StyledTableCell, TableCellTitle } from './styles';
|
|
17
17
|
export function DataGridHeadColumn(_a) {
|
|
18
18
|
var onSort = _a.onSort, field = _a.field, sortable = _a.sortable, align = _a.align, label = _a.label, sorting = _a.sorting, width = _a.width;
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
var sortIcon = useMemo(function () {
|
|
20
|
+
if (!sortable) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
if ((sorting === null || sorting === void 0 ? void 0 : sorting.fieldId) !== field) {
|
|
24
|
+
return _jsx(SortFillSm, {});
|
|
25
|
+
}
|
|
26
|
+
switch (sorting === null || sorting === void 0 ? void 0 : sorting.sort) {
|
|
27
|
+
case SortStates.ASC:
|
|
28
|
+
return _jsx(SortUpFillSm, { color: "primary" });
|
|
29
|
+
case SortStates.DESC:
|
|
30
|
+
return _jsx(SortDownFillSm, { color: "primary" });
|
|
31
|
+
default:
|
|
32
|
+
return _jsx(SortFillSm, {});
|
|
33
|
+
}
|
|
34
|
+
}, [sorting, sortable, field]);
|
|
25
35
|
var handleSortClick = function () {
|
|
26
36
|
if (field && sortable) {
|
|
27
37
|
onSort(field);
|
|
28
38
|
}
|
|
29
39
|
};
|
|
30
|
-
return (
|
|
40
|
+
return (_jsx(StyledTableCell, __assign({ onClick: handleSortClick, align: align, width: width, sortable: sortable }, { children: _jsxs(TableCellTitle, __assign({ variant: "pointer" }, { children: [label, sortIcon] })) })));
|
|
31
41
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TableCellProps } from '@mui/material';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
3
|
+
export declare const StyledTableCell: import("@emotion/styled").StyledComponent<TableCellProps & {
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
} & {
|
|
6
|
+
width?: CSSProperties['width'];
|
|
7
|
+
sortable?: boolean | undefined;
|
|
8
|
+
}, {}, {}>;
|
|
9
|
+
export declare const TableCellTitle: import("@emotion/styled").StyledComponent<Pick<import("../../Typography").TypographyProps, string | number | symbol> & import("react").RefAttributes<HTMLElement> & {
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
}, {}, {}>;
|
|
@@ -3,14 +3,11 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
3
3
|
return cooked;
|
|
4
4
|
};
|
|
5
5
|
import { styled } from '../../styles';
|
|
6
|
-
import { TableCell
|
|
7
|
-
|
|
8
|
-
var hideSortIcon = _a.hideSortIcon;
|
|
9
|
-
return hideSortIcon && 'hidden';
|
|
10
|
-
});
|
|
6
|
+
import { TableCell } from '../../Table';
|
|
7
|
+
import { Typography } from '../../Typography';
|
|
11
8
|
export var StyledTableCell = styled(TableCell, {
|
|
12
|
-
shouldForwardProp: function (prop) { return prop !== 'width'; },
|
|
13
|
-
})(
|
|
9
|
+
shouldForwardProp: function (prop) { return prop !== 'width' && prop !== 'sortable'; },
|
|
10
|
+
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: ", ";\n padding: ", ";\n\n color: ", ";\n\n cursor: ", ";\n\n user-select: none;\n"], ["\n width: ", ";\n padding: ", ";\n\n color: ", ";\n\n cursor: ", ";\n\n user-select: none;\n"])), function (_a) {
|
|
14
11
|
var _b = _a.width, width = _b === void 0 ? 'auto' : _b;
|
|
15
12
|
return width;
|
|
16
13
|
}, function (_a) {
|
|
@@ -23,4 +20,5 @@ export var StyledTableCell = styled(TableCell, {
|
|
|
23
20
|
var sortable = _a.sortable;
|
|
24
21
|
return (sortable ? 'pointer' : 'initial');
|
|
25
22
|
});
|
|
23
|
+
export var TableCellTitle = styled(Typography)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n\n > svg {\n width: 16px;\n height: 16px;\n }\n"], ["\n display: flex;\n align-items: center;\n\n > svg {\n width: 16px;\n height: 16px;\n }\n"])));
|
|
26
24
|
var templateObject_1, templateObject_2;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Backdrop, LoaderWrapper, StyledDivider, StyledLinearProgress, } from './
|
|
2
|
+
import { Backdrop, LoaderWrapper, StyledDivider, StyledLinearProgress, } from './styles';
|
|
3
3
|
var DataGridLoader = function (_a) {
|
|
4
4
|
var _b = _a.loading, loading = _b === void 0 ? false : _b;
|
|
5
5
|
return (_jsxs(LoaderWrapper, { children: [loading && _jsx(Backdrop, {}), loading ? _jsx(StyledLinearProgress, {}) : _jsx(StyledDivider, {})] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './styles';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './styles';
|
|
@@ -15,7 +15,7 @@ export declare const StyledDivider: import("@emotion/styled").StyledComponent<{
|
|
|
15
15
|
variant?: "inset" | "fullWidth" | "middle" | undefined;
|
|
16
16
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHRElement>, HTMLHRElement>, "key" | "css" | keyof import("react").HTMLAttributes<HTMLHRElement>> & {
|
|
17
17
|
ref?: ((instance: HTMLHRElement | null) => void) | import("react").RefObject<HTMLHRElement> | null | undefined;
|
|
18
|
-
}, "light" | "
|
|
18
|
+
}, "light" | "textAlign" | "children" | "variant" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "absolute" | "orientation" | "flexItem"> & {
|
|
19
19
|
theme?: import("@emotion/react").Theme | undefined;
|
|
20
20
|
}, {}, {}>;
|
|
21
21
|
export declare const LoaderWrapper: import("@emotion/styled").StyledComponent<{
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const DatePickerDayButton: import("@emotion/styled").StyledComponent<Pick<import("../../Button").ButtonProps, "disabled" | "
|
|
2
|
+
export declare const DatePickerDayButton: import("@emotion/styled").StyledComponent<Pick<import("../../Button").ButtonProps, "disabled" | "action" | "color" | "translate" | "href" | "onFocusVisible" | "tabIndex" | "type" | "children" | "form" | "slot" | "title" | "key" | "css" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "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" | "variant" | "size" | "component" | "selected" | keyof import("@mui/material/OverridableComponent").CommonProps | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon" | "loading" | "loadingIndicator" | "loadingPosition"> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
}, {}, {}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export declare type DescriptionProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Элементы Description.Name и Description.Value
|
|
5
|
+
*/
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export declare const Description: {
|
|
9
|
+
({ children }: DescriptionProps): JSX.Element;
|
|
10
|
+
Name: ({ children, ...props }: import("./Name").NameProps) => JSX.Element;
|
|
11
|
+
Value: ({ children, stub, ...props }: import("./Value").ValueProps) => JSX.Element;
|
|
12
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Name } from './Name';
|
|
3
|
+
import { Value } from './Value';
|
|
4
|
+
import { DescriptionWrapper } from './styles';
|
|
5
|
+
export var Description = function (_a) {
|
|
6
|
+
var children = _a.children;
|
|
7
|
+
return _jsx(DescriptionWrapper, { children: children });
|
|
8
|
+
};
|
|
9
|
+
Description.Name = Name;
|
|
10
|
+
Description.Value = Value;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
import { Typography } from '../../Typography';
|
|
25
|
+
export var Name = function (_a) {
|
|
26
|
+
var children = _a.children, props = __rest(_a, ["children"]);
|
|
27
|
+
return (_jsxs(Typography, __assign({}, props, { children: [children, ":\u00A0"] })));
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Name';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Name';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { TypographyProps } from '../../Typography';
|
|
3
|
+
export declare type ValueProps = Pick<TypographyProps, 'color' | 'variant' | 'children'> & {
|
|
4
|
+
/**
|
|
5
|
+
* @example <Description.Item stub="нет значения">value</Description.Item>
|
|
6
|
+
* Заглушка, отображающаяся, если нет значения
|
|
7
|
+
*/
|
|
8
|
+
stub?: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export declare const Value: ({ children, stub, ...props }: ValueProps) => JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
import { Typography } from '../../Typography';
|
|
25
|
+
var STUB = _jsx(_Fragment, { children: "\u2013" });
|
|
26
|
+
export var Value = function (_a) {
|
|
27
|
+
var children = _a.children, _b = _a.stub, stub = _b === void 0 ? STUB : _b, props = __rest(_a, ["children", "stub"]);
|
|
28
|
+
return (_jsx(Typography, __assign({}, props, { children: children || stub })));
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Value';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Value';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Description';
|