@yogiswara/honcho-editor-ui 3.6.3 → 3.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1,5 @@
1
- export default function HImageEditorSkeleton(): import("react/jsx-runtime").JSX.Element;
1
+ interface HImageEditorSkeletonProps {
2
+ onBack?: () => void;
3
+ }
4
+ export default function HImageEditorSkeleton(props: HImageEditorSkeletonProps): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -1,8 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Stack, Paper, Skeleton, Box } from "@mui/material";
2
+ import { Stack, IconButton, Paper, Skeleton, Box, CardMedia } from "@mui/material";
3
+ import { alpha } from '@mui/material/styles';
3
4
  import useColors from '../../themes/colors';
4
5
  import useIsMobile from "../../utils/isMobile";
5
- export default function HImageEditorSkeleton() {
6
+ export default function HImageEditorSkeleton(props) {
6
7
  const colors = useColors();
7
8
  const isMobile = useIsMobile();
8
9
  return (_jsxs(Stack, { direction: "column", justifyContent: "center", sx: {
@@ -15,7 +16,18 @@ export default function HImageEditorSkeleton() {
15
16
  pr: !isMobile ? "24px" : "6px",
16
17
  pt: !isMobile ? "20px" : "15px",
17
18
  pb: "12px"
18
- }, children: [_jsx(Stack, { direction: "row", justifyContent: "flex-start", sx: { pl: !isMobile ? "0px" : "14px" } }), _jsx(Stack, { direction: "row", justifyContent: "flex-end", alignItems: "center", spacing: 0.1, children: _jsx(Skeleton, { variant: "rounded", width: "131px", height: "18px", sx: { bgcolor: colors.outlineVariant + '40' } }) })] }), _jsxs(Stack, { direction: isMobile ? "column" : "row", justifyContent: "space-between", alignItems: "stretch", sx: { width: '100%', flexGrow: 1, overflow: 'hidden', height: '100dvh' }, children: [_jsx(Box, { sx: {
19
+ }, children: [_jsx(Stack, { direction: "row", justifyContent: "flex-start", sx: { pl: !isMobile ? "0px" : "14px", pt: !isMobile ? "4px" : "4px" }, children: _jsx(IconButton, { onClick: props.onBack, sx: {
20
+ mr: "0px",
21
+ pr: "0px",
22
+ '&:active': {
23
+ transform: 'scale(0.92)',
24
+ },
25
+ transition: 'transform 0.1s ease-in-out',
26
+ }, children: _jsx(CardMedia, { title: "back", src: "svg/Back.svg", component: "img" }) }) }), _jsx(Stack, { direction: "row", justifyContent: "flex-end", alignItems: "center", spacing: 0.1, sx: { pr: isMobile ? "10px" : "5px" }, children: _jsx(Skeleton, { variant: "rounded", width: "131px", height: "18px",
27
+ // animation="wave"
28
+ sx: {
29
+ bgcolor: alpha(colors.background, 0.1),
30
+ } }) })] }), _jsxs(Stack, { direction: isMobile ? "column" : "row", justifyContent: "space-between", alignItems: "stretch", sx: { width: '100%', flexGrow: 1, overflow: 'hidden', height: '100dvh' }, children: [_jsx(Box, { sx: {
19
31
  flexGrow: 1,
20
32
  display: 'flex',
21
33
  justifyContent: 'center',
@@ -27,12 +39,12 @@ export default function HImageEditorSkeleton() {
27
39
  right: '40px',
28
40
  top: '55px',
29
41
  width: '250px',
30
- pt: '12px',
42
+ pt: '4px',
31
43
  height: 'calc(100vh - 70px)',
32
44
  zIndex: 1200,
33
45
  backgroundColor: '#000000',
34
46
  overflow: 'hidden',
35
- }, children: _jsxs(Stack, { direction: "row", sx: { height: '100%', p: "0px" }, children: [_jsxs(Stack, { direction: "column", sx: { height: '95%' }, children: [_jsx(Box, { sx: { display: 'flex', flexDirection: 'column', p: "0px", pt: "8px" }, children: _jsxs(Box, { sx: { display: 'flex', flexDirection: 'column', py: "6px", gap: "8px" }, children: [_jsx(Skeleton, { variant: "rounded", width: "178px", height: "18px", sx: { bgcolor: colors.outlineVariant + '40' } }), _jsx(Skeleton, { variant: "rounded", width: "178px", height: "18px", sx: { bgcolor: colors.outlineVariant + '40' } })] }) }), _jsx(Box, { sx: { display: 'flex', flexDirection: 'column', p: "0px", pt: "8px" }, children: _jsxs(Box, { sx: { display: 'flex', flexDirection: 'column', py: "6px", gap: "8px" }, children: [_jsx(Skeleton, { variant: "rounded", width: "178px", height: "18px", sx: { bgcolor: colors.outlineVariant + '40' } }), _jsx(Skeleton, { variant: "rounded", width: "178px", height: "18px", sx: { bgcolor: colors.outlineVariant + '40' } })] }) }), _jsx(Box, { sx: { display: 'flex', flexDirection: 'column', p: "0px", pt: "8px" }, children: _jsxs(Box, { sx: { display: 'flex', flexDirection: 'column', py: "6px", gap: "8px" }, children: [_jsx(Skeleton, { variant: "rounded", width: "178px", height: "18px", sx: { bgcolor: colors.outlineVariant + '40' } }), _jsx(Skeleton, { variant: "rounded", width: "178px", height: "18px", sx: { bgcolor: colors.outlineVariant + '40' } })] }) })] }), _jsxs(Stack, { justifyContent: "flex-start",
47
+ }, children: _jsxs(Stack, { direction: "row", sx: { height: '100%', p: "0px" }, children: [_jsxs(Stack, { direction: "column", sx: { height: '95%' }, children: [_jsx(Box, { sx: { display: 'flex', flexDirection: 'column', p: "0px", pt: "8px" }, children: _jsxs(Box, { sx: { display: 'flex', flexDirection: 'column', py: "6px", gap: "8px" }, children: [_jsx(Skeleton, { variant: "rounded", width: "178px", height: "18px", sx: { bgcolor: alpha(colors.background, 0.1), } }), _jsx(Skeleton, { variant: "rounded", width: "178px", height: "18px", sx: { bgcolor: alpha(colors.background, 0.07), } })] }) }), _jsx(Box, { sx: { display: 'flex', flexDirection: 'column', p: "0px", pt: "8px" }, children: _jsxs(Box, { sx: { display: 'flex', flexDirection: 'column', py: "6px", gap: "8px" }, children: [_jsx(Skeleton, { variant: "rounded", width: "178px", height: "18px", sx: { bgcolor: alpha(colors.background, 0.1), } }), _jsx(Skeleton, { variant: "rounded", width: "178px", height: "18px", sx: { bgcolor: alpha(colors.background, 0.07), } })] }) }), _jsx(Box, { sx: { display: 'flex', flexDirection: 'column', p: "0px", pt: "8px" }, children: _jsxs(Box, { sx: { display: 'flex', flexDirection: 'column', py: "6px", gap: "8px" }, children: [_jsx(Skeleton, { variant: "rounded", width: "178px", height: "18px", sx: { bgcolor: alpha(colors.background, 0.1), } }), _jsx(Skeleton, { variant: "rounded", width: "178px", height: "18px", sx: { bgcolor: alpha(colors.background, 0.07), } })] }) })] }), _jsxs(Stack, { justifyContent: "flex-start",
36
48
  // spacing={"15px"}
37
49
  sx: {
38
50
  width: '10px',
@@ -44,13 +56,17 @@ export default function HImageEditorSkeleton() {
44
56
  height: "52px",
45
57
  py: "17px",
46
58
  px: "16px",
47
- }, children: _jsx(Skeleton, { variant: "circular", width: 18, height: 18, sx: { bgcolor: colors.outlineVariant + '40' } }) }), _jsx(Box, { sx: {
59
+ }, children: _jsx(Skeleton, { variant: "circular", width: 18, height: 18, sx: { bgcolor: alpha(colors.background, 0.1), } }) }), _jsx(Box, { sx: {
48
60
  width: "50px",
49
61
  height: "52px",
50
- pt: "30px",
51
- pb: "17px",
62
+ py: "17px",
63
+ px: "16px",
64
+ }, children: _jsx(Skeleton, { variant: "circular", width: 18, height: 18, sx: { bgcolor: alpha(colors.background, 0.1), } }) }), _jsx(Box, { sx: {
65
+ width: "50px",
66
+ height: "52px",
67
+ py: "17px",
52
68
  px: "16px",
53
- }, children: _jsx(Skeleton, { variant: "circular", width: 18, height: 18, sx: { bgcolor: colors.outlineVariant + '40' } }) })] })] }) })), isMobile && (_jsx(Paper, { elevation: 0, sx: {
69
+ }, children: _jsx(Skeleton, { variant: "circular", width: 18, height: 18, sx: { bgcolor: alpha(colors.background, 0.1), } }) })] })] }) })), isMobile && (_jsx(Paper, { elevation: 0, sx: {
54
70
  position: 'fixed',
55
71
  bottom: 0,
56
72
  left: 0,
@@ -61,10 +77,10 @@ export default function HImageEditorSkeleton() {
61
77
  py: "12px",
62
78
  // px: "143px",
63
79
  gap: "10px"
64
- }, children: _jsx(Skeleton, { variant: "rounded", width: "156px", height: 18, sx: { bgcolor: colors.outlineVariant + '40' } }) }), _jsx(Stack, { direction: "row", justifyContent: "center", alignItems: "center", sx: {
80
+ }, children: _jsx(Skeleton, { variant: "rounded", width: "156px", height: 18, sx: { bgcolor: alpha(colors.background, 0.1), } }) }), _jsx(Stack, { direction: "row", justifyContent: "center", alignItems: "center", sx: {
65
81
  pt: "6px",
66
- pb: "12px",
82
+ pb: "13px",
67
83
  px: "16px",
68
84
  gap: "24px"
69
- }, children: _jsx(Skeleton, { variant: "rounded", width: 74, height: 18, sx: { bgcolor: colors.outlineVariant + '40' } }) })] }) }))] })] }));
85
+ }, children: _jsx(Skeleton, { variant: "rounded", width: 74, height: 18, sx: { bgcolor: alpha(colors.background, 0.1), } }) })] }) }))] })] }));
70
86
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yogiswara/honcho-editor-ui",
3
- "version": "3.6.3",
3
+ "version": "3.6.5",
4
4
  "description": "A complete UI component library for the Honcho photo editor.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",