@yogiswara/honcho-editor-ui 3.6.3 → 3.6.4

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,5 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Stack, Paper, Skeleton, Box } 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
6
  export default function HImageEditorSkeleton() {
@@ -15,7 +16,7 @@ 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" } }), _jsx(Stack, { direction: "row", justifyContent: "flex-end", alignItems: "center", spacing: 0.1, children: _jsx(Skeleton, { variant: "rounded", width: "131px", height: "18px", sx: { bgcolor: alpha(colors.background, 0.1) } }) })] }), _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
20
  flexGrow: 1,
20
21
  display: 'flex',
21
22
  justifyContent: 'center',
@@ -32,7 +33,7 @@ export default function HImageEditorSkeleton() {
32
33
  zIndex: 1200,
33
34
  backgroundColor: '#000000',
34
35
  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",
36
+ }, 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.7) } })] }) })] }), _jsxs(Stack, { justifyContent: "flex-start",
36
37
  // spacing={"15px"}
37
38
  sx: {
38
39
  width: '10px',
@@ -44,13 +45,13 @@ export default function HImageEditorSkeleton() {
44
45
  height: "52px",
45
46
  py: "17px",
46
47
  px: "16px",
47
- }, children: _jsx(Skeleton, { variant: "circular", width: 18, height: 18, sx: { bgcolor: colors.outlineVariant + '40' } }) }), _jsx(Box, { sx: {
48
+ }, children: _jsx(Skeleton, { variant: "circular", width: 18, height: 18, sx: { bgcolor: alpha(colors.background, 0.1) } }) }), _jsx(Box, { sx: {
48
49
  width: "50px",
49
50
  height: "52px",
50
51
  pt: "30px",
51
52
  pb: "17px",
52
53
  px: "16px",
53
- }, children: _jsx(Skeleton, { variant: "circular", width: 18, height: 18, sx: { bgcolor: colors.outlineVariant + '40' } }) })] })] }) })), isMobile && (_jsx(Paper, { elevation: 0, sx: {
54
+ }, children: _jsx(Skeleton, { variant: "circular", width: 18, height: 18, sx: { bgcolor: alpha(colors.background, 0.1) } }) })] })] }) })), isMobile && (_jsx(Paper, { elevation: 0, sx: {
54
55
  position: 'fixed',
55
56
  bottom: 0,
56
57
  left: 0,
@@ -61,10 +62,10 @@ export default function HImageEditorSkeleton() {
61
62
  py: "12px",
62
63
  // px: "143px",
63
64
  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: {
65
+ }, 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
66
  pt: "6px",
66
67
  pb: "12px",
67
68
  px: "16px",
68
69
  gap: "24px"
69
- }, children: _jsx(Skeleton, { variant: "rounded", width: 74, height: 18, sx: { bgcolor: colors.outlineVariant + '40' } }) })] }) }))] })] }));
70
+ }, children: _jsx(Skeleton, { variant: "rounded", width: 74, height: 18, sx: { bgcolor: alpha(colors.background, 0.1) } }) })] }) }))] })] }));
70
71
  }
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.4",
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",