@m4l/layouts 0.0.47 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist/hooks → hooks}/index.d.ts +0 -0
- package/{dist/hooks → hooks}/useMasterDetail/index.d.ts +0 -0
- package/{dist/hooks → hooks}/useMasterDetail/index.js +0 -0
- package/{dist/hooks → hooks}/useModule/index.d.ts +0 -0
- package/{dist/hooks → hooks}/useModule/index.js +0 -0
- package/{dist/hooks → hooks}/useResponsive.d.ts +0 -0
- package/{dist/index.d.ts → index.d.ts} +0 -0
- package/{dist/index.js → index.js} +0 -1
- package/{dist/layouts → layouts}/MasterDetailLayout/components/ButtonDetail/index.d.ts +0 -0
- package/{dist/layouts → layouts}/MasterDetailLayout/contexts/MasterDetailContext/index.d.ts +0 -0
- package/{dist/layouts → layouts}/MasterDetailLayout/contexts/MasterDetailContext/types.d.ts +0 -0
- package/{dist/layouts → layouts}/MasterDetailLayout/dicctionary.d.ts +0 -0
- package/{dist/layouts → layouts}/MasterDetailLayout/index.d.ts +0 -0
- package/{dist/layouts → layouts}/MasterDetailLayout/index.js +1 -1
- package/{dist/layouts → layouts}/MasterDetailLayout/types.d.ts +0 -0
- package/{dist/layouts → layouts}/ModuleLayout/components/Header/index.d.ts +0 -0
- package/{dist/layouts → layouts}/ModuleLayout/components/Header/skeleton.d.ts +0 -0
- package/{dist/layouts → layouts}/ModuleLayout/components/Header/styles.d.ts +0 -0
- package/{dist/layouts → layouts}/ModuleLayout/components/Header/types.d.ts +0 -0
- package/{dist/layouts → layouts}/ModuleLayout/components/ModuleContent/index.d.ts +0 -0
- package/{dist/layouts → layouts}/ModuleLayout/components/ModuleContent/styles.d.ts +0 -0
- package/{dist/layouts → layouts}/ModuleLayout/components/ModuleContent/types.d.ts +0 -0
- package/{dist/layouts → layouts}/ModuleLayout/contexts/ModuleContext/index.d.ts +0 -0
- package/{dist/layouts → layouts}/ModuleLayout/contexts/ModuleContext/types.d.ts +0 -0
- package/{dist/layouts → layouts}/ModuleLayout/dicctionary.d.ts +0 -0
- package/{dist/layouts → layouts}/ModuleLayout/index.d.ts +0 -0
- package/{dist/layouts → layouts}/ModuleLayout/index.js +4 -1
- package/{dist/layouts → layouts}/ModuleLayout/types.d.ts +0 -0
- package/{dist/layouts → layouts}/NoAuthModuleLayout/components/ModuleWrapper/index.d.ts +0 -0
- package/layouts/NoAuthModuleLayout/components/ModuleWrapper/styles.d.ts +13 -0
- package/{dist/layouts → layouts}/NoAuthModuleLayout/components/ModuleWrapper/types.d.ts +0 -0
- package/{dist/layouts → layouts}/NoAuthModuleLayout/contexts/NoAuthModuleContext/index.d.ts +0 -0
- package/{dist/layouts → layouts}/NoAuthModuleLayout/contexts/NoAuthModuleContext/types.d.ts +0 -0
- package/{dist/layouts → layouts}/NoAuthModuleLayout/dicctionary.d.ts +0 -0
- package/{dist/layouts → layouts}/NoAuthModuleLayout/index.d.ts +0 -0
- package/{dist/layouts → layouts}/NoAuthModuleLayout/index.js +2 -2
- package/{dist/layouts → layouts}/NoAuthModuleLayout/types.d.ts +0 -0
- package/{dist/layouts → layouts}/index.d.ts +0 -0
- package/node_modules.js +1 -0
- package/package.json +14 -54
- package/{dist/vendor.js → vendor.js} +28 -7
- package/{dist/vite-env.d.ts → vite-env.d.ts} +0 -0
- package/dist/layouts/NoAuthModuleLayout/components/ModuleWrapper/styles.d.ts +0 -13
- package/dist/node_modules.js +0 -28
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -53,7 +53,7 @@ function ButtonDetail(props) {
|
|
|
53
53
|
}
|
|
54
54
|
function getTotalModuleActions(splitActions, moduleActions, viewDetailAction, isDesktop) {
|
|
55
55
|
let totalActions = isDesktop !== void 0 && isDesktop ? [...splitActions] : [viewDetailAction];
|
|
56
|
-
totalActions =
|
|
56
|
+
totalActions = moduleActions.concat(totalActions);
|
|
57
57
|
return totalActions;
|
|
58
58
|
}
|
|
59
59
|
function MasterDetailLayout(props) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -246,7 +246,10 @@ function Header() {
|
|
|
246
246
|
const theme = useTheme();
|
|
247
247
|
const isDesktop = useResponsiveDesktop();
|
|
248
248
|
const isSkeleton = !useFlagsPresent(["dictionary_loaded"]);
|
|
249
|
-
const menuActions = useMemo(
|
|
249
|
+
const menuActions = useMemo(
|
|
250
|
+
() => getMenuActions(isDesktop, moduleActions),
|
|
251
|
+
[moduleActions, isDesktop]
|
|
252
|
+
);
|
|
250
253
|
const mainActions = useMemo(() => {
|
|
251
254
|
console.log("useMemo Header ModuleActions mainActions", isDesktop, moduleActions);
|
|
252
255
|
return getMainActions(isDesktop, moduleActions);
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const RootStyle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3
|
+
export declare const HeaderStyle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
4
|
+
export declare const SectionStyle: import("@emotion/styled").StyledComponent<Omit<import("@mui/material").PaperProps<"div", {}>, "classes"> & {
|
|
5
|
+
classes?: Partial<import("@mui/material").CardClasses> | undefined;
|
|
6
|
+
raised?: boolean | undefined;
|
|
7
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
8
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
9
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
+
}, "children" | "ref" | "slot" | "title" | "color" | "translate" | "sx" | "key" | keyof import("@mui/material/OverridableComponent").CommonProps | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "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" | "elevation" | "square" | "raised"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
11
|
+
export declare const ContentStyle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
12
|
+
export declare const TitleContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
13
|
+
export declare const ModuleTitleContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -3,7 +3,7 @@ import { Card, Container, Stack } from "@mui/material";
|
|
|
3
3
|
import { styled } from "@mui/material/styles";
|
|
4
4
|
import { useModuleDictionary, useFlagsPresent, getLocalStorage, useNetwork, useEnvironment, useFlags, FlagsProvider, ModuleDictionaryProvider, ModuleSkeletonProvider } from "@m4l/core";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import {
|
|
6
|
+
import { a as useResponsive } from "../../vendor.js";
|
|
7
7
|
import { createContext, useState, useEffect } from "react";
|
|
8
8
|
const RootStyle = styled("div")(({
|
|
9
9
|
theme
|
|
@@ -106,7 +106,7 @@ const ModuleWrapper = (props) => {
|
|
|
106
106
|
children: getLabel("module_leyend")
|
|
107
107
|
})
|
|
108
108
|
}), /* @__PURE__ */ jsx(Image, {
|
|
109
|
-
|
|
109
|
+
isSkeleton,
|
|
110
110
|
width: "100%",
|
|
111
111
|
height: "auto",
|
|
112
112
|
src: "https://s3.amazonaws.com/static.made4labs/environment_assetss/d1/frontend/domain/host/login/assets/img/illustration_login.png",
|
|
File without changes
|
|
File without changes
|
package/node_modules.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/package.json
CHANGED
|
@@ -1,71 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/layouts",
|
|
3
|
-
"
|
|
4
|
-
"version": "0.0.47",
|
|
3
|
+
"version": "0.1.1",
|
|
5
4
|
"license": "UNLICENSED",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"dev": "vite",
|
|
8
|
-
"build": "tsc && vite build",
|
|
9
|
-
"preview": "vite preview",
|
|
10
|
-
"lint": "npx eslint src",
|
|
11
|
-
"lint:fix": "npm run lint -- --fix",
|
|
12
|
-
"prettier": "npx prettier src --check",
|
|
13
|
-
"prettier:fix": "npm run prettier -- --write",
|
|
14
|
-
"format": "npm run prettier:fix && npm run lint:fix"
|
|
15
|
-
},
|
|
16
5
|
"dependencies": {
|
|
17
|
-
"@m4l/components": "
|
|
18
|
-
"
|
|
19
|
-
"
|
|
6
|
+
"@m4l/components": "*",
|
|
7
|
+
"@m4l/core": "*",
|
|
8
|
+
"@m4l/graphics": "*",
|
|
9
|
+
"react": "^17.0.0 || 18.x"
|
|
20
10
|
},
|
|
21
11
|
"peerDependencies": {
|
|
22
12
|
"react": "^17.0.0 || 18.x",
|
|
23
|
-
"react-dom": "^18.0.0"
|
|
24
|
-
},
|
|
25
|
-
"devDependencies": {
|
|
26
|
-
"@emotion/styled": "^11.9.3",
|
|
27
|
-
"@testing-library/react": "^13.3.0",
|
|
28
|
-
"@testing-library/user-event": "^14.2.1",
|
|
29
|
-
"@types/node": "^17.0.40",
|
|
30
|
-
"@types/react": "^18.0.0",
|
|
31
|
-
"@types/react-dom": "^18.0.0",
|
|
32
|
-
"@typescript-eslint/eslint-plugin": "^5.27.1",
|
|
33
|
-
"@typescript-eslint/parser": "^5.27.1",
|
|
34
|
-
"@vitejs/plugin-react": "^1.3.0",
|
|
35
|
-
"eslint": "^8.17.0",
|
|
36
|
-
"eslint-config-prettier": "^8.5.0",
|
|
37
|
-
"eslint-import-resolver-alias": "^1.1.2",
|
|
38
|
-
"eslint-plugin-import": "^2.26.0",
|
|
39
|
-
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
40
|
-
"eslint-plugin-prettier": "^4.0.0",
|
|
41
|
-
"eslint-plugin-react": "^7.30.0",
|
|
42
|
-
"eslint-plugin-react-hooks": "^4.5.0",
|
|
43
|
-
"eslint-plugin-unused-imports": "^2.0.0",
|
|
44
|
-
"prettier": "^2.6.2",
|
|
45
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
46
|
-
"typescript": "^4.6.3",
|
|
47
|
-
"vite": "^2.9.9",
|
|
48
|
-
"vite-plugin-dts": "^1.2.0",
|
|
49
|
-
"vite-plugin-mkcert": "^1.6.4",
|
|
50
|
-
"vitest": "^0.17.1"
|
|
13
|
+
"react-dom": "^17.0.0 || ^18.0.0"
|
|
51
14
|
},
|
|
52
15
|
"files": [
|
|
53
|
-
"
|
|
16
|
+
"*"
|
|
54
17
|
],
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
18
|
+
"source": "src/index.ts",
|
|
19
|
+
"main": "./index.js",
|
|
20
|
+
"module": "./index.js",
|
|
58
21
|
"type": "module",
|
|
59
|
-
"
|
|
60
|
-
".": {
|
|
61
|
-
"import": "./dist/index.js"
|
|
62
|
-
}
|
|
63
|
-
},
|
|
22
|
+
"types": "./index.d.ts",
|
|
64
23
|
"sideEffects": false,
|
|
65
24
|
"publishConfig": {
|
|
66
25
|
"access": "public"
|
|
67
26
|
},
|
|
68
27
|
"engines": {
|
|
69
28
|
"node": ">=12.0.0"
|
|
70
|
-
}
|
|
71
|
-
|
|
29
|
+
},
|
|
30
|
+
"private": false
|
|
31
|
+
}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { useTheme } from "@mui/material/styles";
|
|
2
2
|
import useMediaQuery from "@mui/material/useMediaQuery";
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
3
|
+
import "@mui/material";
|
|
4
|
+
import "react/jsx-runtime";
|
|
5
5
|
import "react";
|
|
6
|
+
import "@mui/x-date-pickers/AdapterDateFns";
|
|
7
|
+
import "@mui/x-date-pickers";
|
|
6
8
|
import "@m4l/core";
|
|
9
|
+
import "./layouts/ModuleLayout/index.js";
|
|
10
|
+
import "@m4l/components";
|
|
7
11
|
import "./layouts/MasterDetailLayout/index.js";
|
|
8
|
-
import "@mui/material";
|
|
9
|
-
import "react/jsx-runtime";
|
|
10
12
|
import "./layouts/NoAuthModuleLayout/index.js";
|
|
11
13
|
import "./hooks/useMasterDetail/index.js";
|
|
12
14
|
import "./hooks/useModule/index.js";
|
|
13
|
-
function useResponsive(query, key, start, end) {
|
|
15
|
+
function useResponsive$1(query, key, start, end) {
|
|
14
16
|
const theme = useTheme();
|
|
15
17
|
const mediaUp = useMediaQuery(theme.breakpoints.up(key));
|
|
16
18
|
const mediaDown = useMediaQuery(theme.breakpoints.down(key));
|
|
@@ -30,7 +32,26 @@ function useResponsive(query, key, start, end) {
|
|
|
30
32
|
}
|
|
31
33
|
}
|
|
32
34
|
function useResponsiveDesktop() {
|
|
33
|
-
const isDesktop = useResponsive("up", "sm");
|
|
35
|
+
const isDesktop = useResponsive$1("up", "sm");
|
|
34
36
|
return isDesktop;
|
|
35
37
|
}
|
|
36
|
-
|
|
38
|
+
function useResponsive(query, key, start, end) {
|
|
39
|
+
const theme = useTheme();
|
|
40
|
+
const mediaUp = useMediaQuery(theme.breakpoints.up(key));
|
|
41
|
+
const mediaDown = useMediaQuery(theme.breakpoints.down(key));
|
|
42
|
+
const mediaBetween = useMediaQuery(theme.breakpoints.between(start, end));
|
|
43
|
+
const mediaOnly = useMediaQuery(theme.breakpoints.only(key));
|
|
44
|
+
if (query === "up") {
|
|
45
|
+
return mediaUp;
|
|
46
|
+
}
|
|
47
|
+
if (query === "down") {
|
|
48
|
+
return mediaDown;
|
|
49
|
+
}
|
|
50
|
+
if (query === "between") {
|
|
51
|
+
return mediaBetween;
|
|
52
|
+
}
|
|
53
|
+
if (query === "only") {
|
|
54
|
+
return mediaOnly;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
export { useResponsive as a, useResponsiveDesktop as u };
|
|
File without changes
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const RootStyle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3
|
-
export declare const HeaderStyle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
4
|
-
export declare const SectionStyle: import("@emotion/styled").StyledComponent<Omit<import("@mui/material").PaperProps<"div", {}>, "classes"> & {
|
|
5
|
-
classes?: Partial<import("@mui/material").CardClasses> | undefined;
|
|
6
|
-
raised?: boolean | undefined;
|
|
7
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
8
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
9
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
-
}, "children" | "ref" | "slot" | "title" | "onClick" | keyof import("@mui/material/OverridableComponent").CommonProps | "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" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sx" | "key" | "variant" | "elevation" | "square" | "raised"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
11
|
-
export declare const ContentStyle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
12
|
-
export declare const TitleContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
13
|
-
export declare const ModuleTitleContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
package/dist/node_modules.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { useTheme } from "@mui/material/styles";
|
|
2
|
-
import "@mui/material";
|
|
3
|
-
import "react/jsx-runtime";
|
|
4
|
-
import "react";
|
|
5
|
-
import "@mui/x-date-pickers/AdapterDateFns";
|
|
6
|
-
import "@mui/x-date-pickers";
|
|
7
|
-
import "@m4l/core";
|
|
8
|
-
import useMediaQuery from "@mui/material/useMediaQuery";
|
|
9
|
-
function useResponsive(query, key, start, end) {
|
|
10
|
-
const theme = useTheme();
|
|
11
|
-
const mediaUp = useMediaQuery(theme.breakpoints.up(key));
|
|
12
|
-
const mediaDown = useMediaQuery(theme.breakpoints.down(key));
|
|
13
|
-
const mediaBetween = useMediaQuery(theme.breakpoints.between(start, end));
|
|
14
|
-
const mediaOnly = useMediaQuery(theme.breakpoints.only(key));
|
|
15
|
-
if (query === "up") {
|
|
16
|
-
return mediaUp;
|
|
17
|
-
}
|
|
18
|
-
if (query === "down") {
|
|
19
|
-
return mediaDown;
|
|
20
|
-
}
|
|
21
|
-
if (query === "between") {
|
|
22
|
-
return mediaBetween;
|
|
23
|
-
}
|
|
24
|
-
if (query === "only") {
|
|
25
|
-
return mediaOnly;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
export { useResponsive as u };
|