@yogiswara/honcho-editor-ui 2.7.13 → 2.7.14
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/package.json +1 -1
- package/dist/color.d.ts +0 -9
- package/dist/color.js +0 -9
- package/dist/components/editor/GalleryAlbum/AlbumImageGallery.d.ts +0 -8
- package/dist/components/editor/GalleryAlbum/AlbumImageGallery.js +0 -28
- package/dist/components/editor/GalleryAlbum/ImageItem.d.ts +0 -10
- package/dist/components/editor/GalleryAlbum/ImageItem.js +0 -81
- package/dist/components/editor/HAccordionAspectRatio.d.ts +0 -14
- package/dist/components/editor/HAccordionAspectRatio.js +0 -102
- package/dist/components/editor/HAccordionColor.d.ts +0 -16
- package/dist/components/editor/HAccordionColor.js +0 -282
- package/dist/components/editor/HAccordionColorAdjustment.d.ts +0 -35
- package/dist/components/editor/HAccordionColorAdjustment.js +0 -31
- package/dist/components/editor/HAccordionDetails.d.ts +0 -12
- package/dist/components/editor/HAccordionDetails.js +0 -157
- package/dist/components/editor/HAccordionLight.d.ts +0 -20
- package/dist/components/editor/HAccordionLight.js +0 -414
- package/dist/components/editor/HAccordionPreset.d.ts +0 -23
- package/dist/components/editor/HAccordionPreset.js +0 -50
- package/dist/components/editor/HAlertBox.d.ts +0 -8
- package/dist/components/editor/HAlertBox.js +0 -55
- package/dist/components/editor/HAspectRatioMobile.d.ts +0 -0
- package/dist/components/editor/HAspectRatioMobile.js +0 -1
- package/dist/components/editor/HBulkAccordionColorAdjustment.d.ts +0 -55
- package/dist/components/editor/HBulkAccordionColorAdjustment.js +0 -31
- package/dist/components/editor/HBulkAccordionColorAdjustmentColors.d.ts +0 -20
- package/dist/components/editor/HBulkAccordionColorAdjustmentColors.js +0 -121
- package/dist/components/editor/HBulkAccordionColorAdjustmentDetails.d.ts +0 -12
- package/dist/components/editor/HBulkAccordionColorAdjustmentDetails.js +0 -65
- package/dist/components/editor/HBulkAccordionColorAdjustmentLight.d.ts +0 -28
- package/dist/components/editor/HBulkAccordionColorAdjustmentLight.js +0 -177
- package/dist/components/editor/HBulkColorAdjustmentMobile.d.ts +0 -53
- package/dist/components/editor/HBulkColorAdjustmentMobile.js +0 -16
- package/dist/components/editor/HBulkColorMobile.d.ts +0 -20
- package/dist/components/editor/HBulkColorMobile.js +0 -121
- package/dist/components/editor/HBulkDetailsMobile.d.ts +0 -12
- package/dist/components/editor/HBulkDetailsMobile.js +0 -65
- package/dist/components/editor/HBulkLightMobile.d.ts +0 -28
- package/dist/components/editor/HBulkLightMobile.js +0 -192
- package/dist/components/editor/HBulkPreset.d.ts +0 -24
- package/dist/components/editor/HBulkPreset.js +0 -43
- package/dist/components/editor/HBulkPresetMobile.d.ts +0 -15
- package/dist/components/editor/HBulkPresetMobile.js +0 -26
- package/dist/components/editor/HDialogBox.d.ts +0 -18
- package/dist/components/editor/HDialogBox.js +0 -51
- package/dist/components/editor/HDialogCopy.d.ts +0 -40
- package/dist/components/editor/HDialogCopy.js +0 -80
- package/dist/components/editor/HFooter.d.ts +0 -12
- package/dist/components/editor/HFooter.js +0 -24
- package/dist/components/editor/HHeaderEditor.d.ts +0 -17
- package/dist/components/editor/HHeaderEditor.js +0 -36
- package/dist/components/editor/HImageEditorBulkDekstop.d.ts +0 -15
- package/dist/components/editor/HImageEditorBulkDekstop.js +0 -29
- package/dist/components/editor/HImageEditorBulkMobile.d.ts +0 -72
- package/dist/components/editor/HImageEditorBulkMobile.js +0 -81
- package/dist/components/editor/HImageEditorDekstop.d.ts +0 -15
- package/dist/components/editor/HImageEditorDekstop.js +0 -29
- package/dist/components/editor/HImageEditorMobile.d.ts +0 -51
- package/dist/components/editor/HImageEditorMobile.js +0 -92
- package/dist/components/editor/HImageEditorMobileLayout.d.ts +0 -14
- package/dist/components/editor/HImageEditorMobileLayout.js +0 -58
- package/dist/components/editor/HModalEditorDekstop.d.ts +0 -13
- package/dist/components/editor/HModalEditorDekstop.js +0 -22
- package/dist/components/editor/HModalMobile.d.ts +0 -13
- package/dist/components/editor/HModalMobile.js +0 -7
- package/dist/components/editor/HPresetDelete.d.ts +0 -7
- package/dist/components/editor/HPresetDelete.js +0 -7
- package/dist/components/editor/HPresetOptionMenu.d.ts +0 -9
- package/dist/components/editor/HPresetOptionMenu.js +0 -20
- package/dist/components/editor/HSliderColorMobile.d.ts +0 -16
- package/dist/components/editor/HSliderColorMobile.js +0 -270
- package/dist/components/editor/HSliderDetailsMobile.d.ts +0 -12
- package/dist/components/editor/HSliderDetailsMobile.js +0 -154
- package/dist/components/editor/HSliderLightMobile.d.ts +0 -20
- package/dist/components/editor/HSliderLightMobile.js +0 -420
- package/dist/components/editor/HTabAspectRatioMobile.d.ts +0 -0
- package/dist/components/editor/HTabAspectRatioMobile.js +0 -1
- package/dist/components/editor/HTabColorAdjustmentMobile.d.ts +0 -33
- package/dist/components/editor/HTabColorAdjustmentMobile.js +0 -16
- package/dist/components/editor/HTabPresetMobile.d.ts +0 -14
- package/dist/components/editor/HTabPresetMobile.js +0 -10
- package/dist/components/editor/HTextField.d.ts +0 -14
- package/dist/components/editor/HTextField.js +0 -51
- package/dist/components/editor/HWatermarkView.d.ts +0 -6
- package/dist/components/editor/HWatermarkView.js +0 -16
- package/dist/components/editor/svg/Tick.d.ts +0 -2
- package/dist/components/editor/svg/Tick.js +0 -6
- package/dist/components/modal/HModalDialog.d.ts +0 -12
- package/dist/components/modal/HModalDialog.js +0 -18
- package/dist/components/modal/HModalRename.d.ts +0 -14
- package/dist/components/modal/HModalRename.js +0 -35
- package/dist/hooks/demo/HonchoEditorBulkDemo.d.ts +0 -3
- package/dist/hooks/demo/HonchoEditorBulkDemo.js +0 -410
- package/dist/hooks/demo/HonchoEditorSingleCleanDemo.d.ts +0 -3
- package/dist/hooks/demo/HonchoEditorSingleCleanDemo.js +0 -354
- package/dist/hooks/demo/index.d.ts +0 -2
- package/dist/hooks/demo/index.js +0 -2
- package/dist/hooks/editor/type.d.ts +0 -174
- package/dist/hooks/editor/type.js +0 -1
- package/dist/hooks/editor/useHonchoEditorBulk.d.ts +0 -96
- package/dist/hooks/editor/useHonchoEditorBulk.js +0 -427
- package/dist/hooks/editor/useHonchoEditorSingle.d.ts +0 -44
- package/dist/hooks/editor/useHonchoEditorSingle.js +0 -162
- package/dist/hooks/useAdjustmentHistory.d.ts +0 -97
- package/dist/hooks/useAdjustmentHistory.js +0 -493
- package/dist/hooks/useAdjustmentHistoryBatch.d.ts +0 -177
- package/dist/hooks/useAdjustmentHistoryBatch.js +0 -1189
- package/dist/hooks/useGallerySwipe.d.ts +0 -36
- package/dist/hooks/useGallerySwipe.js +0 -344
- package/dist/hooks/usePaging.d.ts +0 -89
- package/dist/hooks/usePaging.js +0 -211
- package/dist/hooks/usePreset.d.ts +0 -82
- package/dist/hooks/usePreset.js +0 -344
- package/dist/index.d.ts +0 -41
- package/dist/index.js +0 -44
- package/dist/lib/context/EditorContext.d.ts +0 -28
- package/dist/lib/context/EditorContext.js +0 -60
- package/dist/lib/context/EditorProcessingService.d.ts +0 -36
- package/dist/lib/context/EditorProcessingService.js +0 -249
- package/dist/lib/editor/honcho-editor.d.ts +0 -324
- package/dist/lib/editor/honcho-editor.js +0 -825
- package/dist/lib/hooks/useEditor.d.ts +0 -22
- package/dist/lib/hooks/useEditor.js +0 -35
- package/dist/lib/hooks/useEditorHeadless.d.ts +0 -34
- package/dist/lib/hooks/useEditorHeadless.js +0 -207
- package/dist/lib/hooks/useImageProcessor.d.ts +0 -18
- package/dist/lib/hooks/useImageProcessor.js +0 -113
- package/dist/setupTests.d.ts +0 -1
- package/dist/setupTests.js +0 -1
- package/dist/themes/colors.d.ts +0 -12
- package/dist/themes/colors.js +0 -12
- package/dist/themes/honchoTheme.d.ts +0 -25
- package/dist/themes/honchoTheme.js +0 -94
- package/dist/utils/adjustment.d.ts +0 -6
- package/dist/utils/adjustment.js +0 -48
- package/dist/utils/imageLoader.d.ts +0 -11
- package/dist/utils/imageLoader.js +0 -48
- package/dist/utils/isMobile.d.ts +0 -1
- package/dist/utils/isMobile.js +0 -5
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { BottomNavigation, BottomNavigationAction, Box, CardMedia, Paper, Stack } from "@mui/material";
|
|
3
|
-
import useHonchoTypography from "../../themes/honchoTheme";
|
|
4
|
-
import useColors from '../../themes/colors';
|
|
5
|
-
import HTabColorAdjustmentMobile from "./HTabColorAdjustmentMobile";
|
|
6
|
-
import HTabPresetMobile from "./HTabPresetMobile";
|
|
7
|
-
// Data structure for the sub-navigation tabs
|
|
8
|
-
const subTabs = {
|
|
9
|
-
colorAdjustment: [
|
|
10
|
-
{ value: "color", label: "Color", inactiveIcon: "/v1/svg/new-mobile-coloAdjustment-notpress.svg", activeIcon: "/v1/svg/new-mobile-coloAdjustment-presssvg.svg" },
|
|
11
|
-
{ value: "light", label: "Light", inactiveIcon: "/v1/svg/light-inactive-mobile.svg", activeIcon: "/v1/svg/light-active-mobile.svg" },
|
|
12
|
-
// { value: "details", label: "Details", inactiveIcon: "/v1/svg/details-inactive-mobile.svg", activeIcon: "/v1/svg/details-active-mobile.svg"},
|
|
13
|
-
],
|
|
14
|
-
aspectRatio: [
|
|
15
|
-
{ value: "portrait", label: "Portrait" },
|
|
16
|
-
{ value: "square", label: "Square" },
|
|
17
|
-
{ value: "wide", label: "Wide" },
|
|
18
|
-
],
|
|
19
|
-
preset: [
|
|
20
|
-
{ value: "Preset", label: "Preset", inactiveIcon: "/v1/svg/preset-inactive-mobile.svg", activeIcon: "/v1/svg/preset-active-mobile.svg" },
|
|
21
|
-
],
|
|
22
|
-
};
|
|
23
|
-
export default function HImageEditorMobile(props) {
|
|
24
|
-
const typography = useHonchoTypography();
|
|
25
|
-
const colors = useColors();
|
|
26
|
-
const handleChange = (event, newValue) => {
|
|
27
|
-
props.setActivePanel(newValue);
|
|
28
|
-
};
|
|
29
|
-
const currentSubTabs = subTabs[props.activePanel];
|
|
30
|
-
// Helper function to render the correct content inside the draggable panel
|
|
31
|
-
const renderPanelContent = () => {
|
|
32
|
-
switch (props.activePanel) {
|
|
33
|
-
case 'colorAdjustment':
|
|
34
|
-
return _jsx(HTabColorAdjustmentMobile, { ...props });
|
|
35
|
-
case 'preset':
|
|
36
|
-
return _jsx(HTabPresetMobile, { ...props });
|
|
37
|
-
default:
|
|
38
|
-
return null;
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
return (_jsx(Paper, { elevation: 0, sx: {
|
|
42
|
-
id: 'HImageEditorMobile',
|
|
43
|
-
position: 'fixed',
|
|
44
|
-
bottom: 0,
|
|
45
|
-
left: 0,
|
|
46
|
-
right: 0,
|
|
47
|
-
zIndex: 1300,
|
|
48
|
-
backgroundColor: 'transparent',
|
|
49
|
-
}, children: _jsxs(Stack, { direction: "column", children: [props.activeSubPanel && (_jsxs(Paper, { ref: props.panelRef, elevation: 3, className: "draggable-panel MuiPaper-transition", sx: {
|
|
50
|
-
height: `${props.panelHeight}px`,
|
|
51
|
-
maxHeight: '80vh',
|
|
52
|
-
backgroundColor: 'rgba(40, 40, 40, 0.85)',
|
|
53
|
-
overflow: 'hidden',
|
|
54
|
-
borderRadius: "0px",
|
|
55
|
-
'&.MuiPaper-transition': {
|
|
56
|
-
transition: 'height 0.5s ease-in-out',
|
|
57
|
-
},
|
|
58
|
-
}, children: [_jsx(Box, { onMouseDown: props.handleDragStart, onTouchStart: props.handleDragStart, sx: {
|
|
59
|
-
display: 'flex',
|
|
60
|
-
justifyContent: 'center',
|
|
61
|
-
alignItems: 'center',
|
|
62
|
-
pt: '5px',
|
|
63
|
-
pb: '12px',
|
|
64
|
-
cursor: 'ns-resize',
|
|
65
|
-
touchAction: 'none',
|
|
66
|
-
}, children: _jsx(Box, { sx: { width: 40, height: 5, borderRadius: '2.5px', backgroundColor: 'rgba(255, 255, 255, 0.5)' } }) }), _jsx(Box, { ref: props.contentRef, sx: {
|
|
67
|
-
paddingX: "8px",
|
|
68
|
-
paddingBottom: 3,
|
|
69
|
-
height: 'calc(100% - 30px)',
|
|
70
|
-
overflowY: 'auto',
|
|
71
|
-
scrollbarWidth: 'none',
|
|
72
|
-
'&::-webkit-scrollbar': { display: 'none' },
|
|
73
|
-
}, children: renderPanelContent() })] })), currentSubTabs && (_jsx(Paper, { sx: {
|
|
74
|
-
backgroundColor: colors.onBackground,
|
|
75
|
-
paddingTop: "10px",
|
|
76
|
-
pb: "0px",
|
|
77
|
-
mb: "0px",
|
|
78
|
-
px: "44px",
|
|
79
|
-
borderRadius: "0px",
|
|
80
|
-
}, elevation: 3, children: _jsx(BottomNavigation, { showLabels: true, sx: { backgroundColor: colors.onBackground, gap: '10px' }, children: currentSubTabs.map((tab) => {
|
|
81
|
-
const isActive = props.activeSubPanel === tab.value;
|
|
82
|
-
const iconSrc = isActive ? tab.activeIcon : tab.inactiveIcon;
|
|
83
|
-
return (_jsx(BottomNavigationAction, { label: tab.label, value: tab.value, onClick: () => props.setActiveSubPanel(isActive ? '' : tab.value), icon: iconSrc && _jsx(CardMedia, { component: "img", image: iconSrc, sx: { width: "20px", height: "20px", mb: "5px" } }), sx: {
|
|
84
|
-
color: isActive ? colors.surface : colors.onSurfaceVariant1,
|
|
85
|
-
minWidth: 'auto', p: 0,
|
|
86
|
-
'& .MuiBottomNavigationAction-label': {
|
|
87
|
-
...typography.labelSmall,
|
|
88
|
-
color: isActive ? colors.surface : colors.onSurfaceVariant1,
|
|
89
|
-
}
|
|
90
|
-
} }, tab.value));
|
|
91
|
-
}) }) })), _jsx(Paper, { sx: { backgroundColor: colors.onBackground, borderRadius: "0px" }, elevation: 3, children: _jsx(Stack, { direction: "row", justifyContent: "center", alignItems: "center", sx: { pt: "0px", pb: "0px", mb: "0px", mr: "0px", ml: "0px" }, children: _jsxs(BottomNavigation, { value: props.activePanel, onChange: handleChange, sx: { backgroundColor: colors.onBackground }, children: [_jsx(BottomNavigationAction, { value: "colorAdjustment", sx: { px: '12px', py: '0px', minWidth: 'auto' }, icon: _jsx(CardMedia, { component: "img", image: props.activePanel === 'colorAdjustment' ? "/v1/svg/color-adjustment-active-mobile.svg" : "/v1/svg/color-adjustment-inactive-mobile.svg", sx: { width: "20px", height: "20px" } }) }), _jsx(BottomNavigationAction, { value: "preset", sx: { px: '12px', py: '0px', minWidth: 'auto' }, icon: _jsx(CardMedia, { component: "img", image: props.activePanel === 'preset' ? "/v1/svg/preset-and-watermark-active-mobile.svg" : "/v1/svg/preset-and-watermark-inactive-mobile.svg", sx: { width: "20px", height: "20px" } }) })] }) }) })] }) }));
|
|
92
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface Props {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
activePanel: string;
|
|
5
|
-
activeSubPanel: string;
|
|
6
|
-
setActivePanel: (tab: string) => void;
|
|
7
|
-
setActiveSubPanel: (subTab: string) => void;
|
|
8
|
-
panelRef: React.RefObject<HTMLDivElement>;
|
|
9
|
-
contentRef: React.RefObject<HTMLDivElement | null>;
|
|
10
|
-
panelHeight: number;
|
|
11
|
-
handleDragStart: (e: React.MouseEvent | React.TouchEvent) => void;
|
|
12
|
-
}
|
|
13
|
-
export default function HImageEditorMobileLayout(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { BottomNavigation, BottomNavigationAction, Box, CardMedia, Paper, Stack } from "@mui/material";
|
|
3
|
-
import useHonchoTypography from "../../themes/honchoTheme";
|
|
4
|
-
import useColors from '../../themes/colors';
|
|
5
|
-
// Data structure for the sub-navigation tabs
|
|
6
|
-
const subTabs = {
|
|
7
|
-
colorAdjustment: [
|
|
8
|
-
{ value: "color", label: "Color", inactiveIcon: "/v1/svg/white-balance-inactive-mobile.svg", activeIcon: "/v1/svg/white-balance-active-mobile.svg" },
|
|
9
|
-
{ value: "light", label: "Light", inactiveIcon: "/v1/svg/light-inactive-mobile.svg", activeIcon: "/v1/svg/light-active-mobile.svg" },
|
|
10
|
-
{ value: "details", label: "Details", inactiveIcon: "/v1/svg/details-inactive-mobile.svg", activeIcon: "/v1/svg/details-active-mobile.svg" },
|
|
11
|
-
],
|
|
12
|
-
aspectRatio: [
|
|
13
|
-
{ value: "portrait", label: "Portrait" },
|
|
14
|
-
{ value: "square", label: "Square" },
|
|
15
|
-
{ value: "wide", label: "Wide" },
|
|
16
|
-
],
|
|
17
|
-
preset: [
|
|
18
|
-
{ value: "Preset", label: "Preset", inactiveIcon: "/v1/svg/preset-inactive-mobile.svg", activeIcon: "/v1/svg/preset-active-mobile.svg" },
|
|
19
|
-
],
|
|
20
|
-
};
|
|
21
|
-
export default function HImageEditorMobileLayout(props) {
|
|
22
|
-
const typography = useHonchoTypography();
|
|
23
|
-
const colors = useColors();
|
|
24
|
-
const handleChange = (event, newValue) => {
|
|
25
|
-
props.setActivePanel(newValue);
|
|
26
|
-
};
|
|
27
|
-
const currentSubTabs = subTabs[props.activePanel];
|
|
28
|
-
return (_jsx(Paper, { elevation: 0, sx: {
|
|
29
|
-
id: 'HImageEditorMobileLayout',
|
|
30
|
-
position: 'fixed',
|
|
31
|
-
bottom: 0,
|
|
32
|
-
left: 0,
|
|
33
|
-
right: 0,
|
|
34
|
-
zIndex: 1300,
|
|
35
|
-
backgroundColor: 'transparent',
|
|
36
|
-
}, children: _jsxs(Stack, { direction: "column", children: [props.activeSubPanel && (_jsxs(Paper, { ref: props.panelRef, elevation: 3, className: "draggable-panel MuiPaper-transition", sx: {
|
|
37
|
-
height: `${props.panelHeight}px`, maxHeight: '60vh',
|
|
38
|
-
backgroundColor: 'rgba(40, 40, 40, 0.85)', overflow: 'hidden', borderRadius: "0px",
|
|
39
|
-
'&.MuiPaper-transition': { transition: 'height 0.5s ease-in-out' },
|
|
40
|
-
}, children: [_jsx(Box, { onMouseDown: props.handleDragStart, onTouchStart: props.handleDragStart, sx: {
|
|
41
|
-
display: 'flex', justifyContent: 'center', alignItems: 'center',
|
|
42
|
-
pt: '5px', pb: '12px', cursor: 'ns-resize', touchAction: 'none',
|
|
43
|
-
}, children: _jsx(Box, { sx: { width: 40, height: 5, borderRadius: '2.5px', backgroundColor: 'rgba(255, 255, 255, 0.5)' } }) }), _jsx(Box, { ref: props.contentRef, sx: {
|
|
44
|
-
paddingX: "8px", paddingBottom: 3, height: 'calc(100% - 30px)',
|
|
45
|
-
overflowY: 'auto', scrollbarWidth: 'none', '&::-webkit-scrollbar': { display: 'none' },
|
|
46
|
-
}, children: props.children })] })), currentSubTabs && (_jsx(Paper, { sx: { backgroundColor: colors.onBackground, paddingTop: "10px", px: "44px", borderRadius: "0px" }, elevation: 3, children: _jsx(BottomNavigation, { showLabels: true, sx: { backgroundColor: colors.onBackground, gap: '10px' }, children: currentSubTabs.map((tab) => {
|
|
47
|
-
const isActive = props.activeSubPanel === tab.value;
|
|
48
|
-
const iconSrc = isActive ? tab.activeIcon : tab.inactiveIcon;
|
|
49
|
-
return (_jsx(BottomNavigationAction, { label: tab.label, value: tab.value, onClick: () => props.setActiveSubPanel(isActive ? '' : tab.value), icon: iconSrc && _jsx(CardMedia, { component: "img", image: iconSrc, sx: { width: "20px", height: "20px", mb: "5px" } }), sx: {
|
|
50
|
-
color: isActive ? colors.surface : colors.onSurfaceVariant1,
|
|
51
|
-
minWidth: 'auto', p: 0,
|
|
52
|
-
'& .MuiBottomNavigationAction-label': {
|
|
53
|
-
...typography.labelSmall,
|
|
54
|
-
color: isActive ? colors.surface : colors.onSurfaceVariant1,
|
|
55
|
-
}
|
|
56
|
-
} }, tab.value));
|
|
57
|
-
}) }) })), _jsx(Paper, { sx: { backgroundColor: colors.onBackground, borderRadius: "0px", pb: "0px", mb: "0px" }, elevation: 3, children: _jsx(Stack, { direction: "row", justifyContent: "center", alignItems: "center", sx: { pt: "4px", mb: "0px", mr: "0px", ml: "0px" }, children: _jsxs(BottomNavigation, { value: props.activePanel, onChange: handleChange, sx: { backgroundColor: colors.onBackground }, children: [_jsx(BottomNavigationAction, { value: "colorAdjustment", sx: { px: '12px', py: '0px', minWidth: 'auto' }, icon: _jsx(CardMedia, { component: "img", image: props.activePanel === 'colorAdjustment' ? "/v1/svg/color-adjustment-active-mobile.svg" : "/v1/svg/color-adjustment-inactive-mobile.svg", sx: { width: "20px", height: "20px" } }) }), _jsx(BottomNavigationAction, { value: "aspectRatio", sx: { px: '12px', py: '0px', minWidth: 'auto' }, icon: _jsx(CardMedia, { component: "img", image: props.activePanel === 'aspectRatio' ? "/v1/svg/aspect-ratio-inactive-mobile.svg" : "/v1/svg/aspect-ratio-inactive-mobile.svg", sx: { width: "20px", height: "20px" } }) }), _jsx(BottomNavigationAction, { value: "preset", sx: { px: '12px', py: '0px', minWidth: 'auto' }, icon: _jsx(CardMedia, { component: "img", image: props.activePanel === 'preset' ? "/v1/svg/preset-and-watermark-active-mobile.svg" : "/v1/svg/preset-and-watermark-inactive-mobile.svg", sx: { width: "20px", height: "20px" } }) })] }) }) })] }) }));
|
|
58
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface Props {
|
|
3
|
-
modalName: string;
|
|
4
|
-
modalOpen: boolean;
|
|
5
|
-
modalTitle: string;
|
|
6
|
-
modalInformation: string;
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
action?: React.ReactNode;
|
|
9
|
-
modalClose: () => void;
|
|
10
|
-
onConfirm: () => void;
|
|
11
|
-
}
|
|
12
|
-
export default function HModalEditorDekstop(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Modal, Box, Typography, Button, Stack } from "@mui/material";
|
|
3
|
-
import useHonchoTypography from "../../themes/honchoTheme";
|
|
4
|
-
import useColors from '../../themes/colors';
|
|
5
|
-
// Create modal for any usage coverage
|
|
6
|
-
export default function HModalEditorDekstop(props) {
|
|
7
|
-
const colors = useColors();
|
|
8
|
-
const typography = useHonchoTypography();
|
|
9
|
-
const style = {
|
|
10
|
-
position: 'absolute',
|
|
11
|
-
top: '50%',
|
|
12
|
-
left: '50%',
|
|
13
|
-
transform: 'translate(-50%, -50%)',
|
|
14
|
-
width: 500,
|
|
15
|
-
bgcolor: 'background.paper',
|
|
16
|
-
boxShadow: 24,
|
|
17
|
-
p: 4,
|
|
18
|
-
borderRadius: 6,
|
|
19
|
-
spacing: 6,
|
|
20
|
-
};
|
|
21
|
-
return (_jsx(_Fragment, { children: _jsx(Modal, { open: props.modalOpen, onClose: props.modalClose, children: _jsxs(Box, { sx: style, children: [_jsx(Typography, { variant: "h6", color: "initial", children: props.modalTitle }), _jsx(Box, { sx: { mt: 2 }, children: props.children }), _jsx(Typography, { color: "initial", children: props.modalInformation }), _jsx(Stack, { children: props.action }), _jsxs(Stack, { direction: "row", spacing: 2, sx: { mt: 3, justifyContent: 'flex-end' }, children: [_jsx(Button, { sx: { ...typography.labelMedium, color: colors.onSurface, backgroundColor: colors.surface, }, onClick: props.modalClose, children: "Cancel" }), _jsx(Button, { sx: { ...typography.labelMedium, color: colors.onSurface, backgroundColor: colors.surface, }, onClick: props.onConfirm, children: "Save" })] })] }) }) }));
|
|
22
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface Props {
|
|
3
|
-
modalName: string;
|
|
4
|
-
modalOpen: boolean;
|
|
5
|
-
modalTitle: string;
|
|
6
|
-
modalInformation: string;
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
action?: React.ReactNode;
|
|
9
|
-
modalClose: () => void;
|
|
10
|
-
onConfirm: () => void;
|
|
11
|
-
}
|
|
12
|
-
export default function HModalMobile(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Modal, Box, Typography, Button, Stack, IconButton, CardMedia } from "@mui/material";
|
|
3
|
-
import useColors from '../../themes/colors';
|
|
4
|
-
export default function HModalMobile(props) {
|
|
5
|
-
const colors = useColors();
|
|
6
|
-
return (_jsx(_Fragment, { children: _jsx(Modal, { open: props.modalOpen, onClose: props.modalClose, children: _jsxs(Stack, { direction: "column", spacing: 2, height: "100%", sx: { p: "10px", backgroundColor: colors.surface }, children: [_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", children: [_jsxs(Stack, { direction: "row", justifyContent: "flex-start", alignItems: "center", spacing: 1, children: [_jsx(IconButton, { "aria-label": "close", onClick: props.modalClose, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/exit-button-modal-mobile.svg" }) }), _jsx(Typography, { variant: "h6", color: "initial", children: props.modalTitle })] }), _jsx(Button, { onClick: props.onConfirm, children: "Save" })] }), _jsx(Typography, { variant: "inherit", color: "initial", children: props.modalInformation }), _jsx(Box, { sx: { mt: 2 }, children: props.children }), _jsx(Stack, { sx: { px: "2px" }, children: props.action })] }) }) }));
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import ModalDialog from "../modal/HModalDialog";
|
|
3
|
-
function HPresetDeleteDialog(props) {
|
|
4
|
-
return (_jsx(ModalDialog, { isOpen: true, title: "Delete preset?", description: "The preset will be permanently removed.", isLoading: props.isLoading, onCancel: props.onCancel, submitLabel: "Delete", onSubmit: props.onSubmit }));
|
|
5
|
-
}
|
|
6
|
-
;
|
|
7
|
-
export default HPresetDeleteDialog;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Menu, MenuItem, ListItemText, CardMedia, Stack } from "@mui/material";
|
|
3
|
-
import useHonchoTypography from "../../themes/honchoTheme";
|
|
4
|
-
import useColors from '../../themes/colors';
|
|
5
|
-
export default function HPresetOptionsMenu(props) {
|
|
6
|
-
const typography = useHonchoTypography();
|
|
7
|
-
const colors = useColors();
|
|
8
|
-
return (_jsxs(Menu, { id: "preset-options-menu", anchorEl: props.anchorEl, open: props.isOpen, onClose: props.onClose, transformOrigin: { horizontal: 'right', vertical: 'top' }, anchorOrigin: { horizontal: 'right', vertical: 'bottom' }, slotProps: {
|
|
9
|
-
paper: {
|
|
10
|
-
sx: {
|
|
11
|
-
backgroundColor: colors.onBackground,
|
|
12
|
-
color: colors.surface,
|
|
13
|
-
border: `1px solid ${colors.onSurfaceVariant1}`,
|
|
14
|
-
'& .MuiMenuItem-root:hover': {
|
|
15
|
-
backgroundColor: 'rgba(255, 255, 255, 0.08)',
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
}, children: [_jsx(MenuItem, { onClick: props.onRename, children: _jsxs(Stack, { direction: "row", spacing: "10px", children: [_jsx(CardMedia, { component: "img", image: "/v1/svg/rename-menu-button.svg", sx: { width: '20px', height: '20px' } }), _jsx(ListItemText, { sx: { ...typography.bodyMedium }, children: "Rename" })] }) }), _jsx(MenuItem, { onClick: props.onDelete, children: _jsxs(Stack, { direction: "row", spacing: "10px", children: [_jsx(CardMedia, { component: "img", image: "/v1/svg/delete-menu-button.svg", sx: { width: '20px', height: '20px' } }), _jsx(ListItemText, { sx: { ...typography.bodyMedium, color: colors.error }, children: "Delete" })] }) })] }));
|
|
20
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { AdjustmentState } from '../../hooks/editor/type';
|
|
2
|
-
interface Props {
|
|
3
|
-
tempScore: number;
|
|
4
|
-
tintScore: number;
|
|
5
|
-
saturationScore: number;
|
|
6
|
-
vibranceScore: number;
|
|
7
|
-
isBatchMode: boolean;
|
|
8
|
-
onTempChange: (field: keyof AdjustmentState, value: number) => void;
|
|
9
|
-
onTintChange: (field: keyof AdjustmentState, value: number) => void;
|
|
10
|
-
onVibranceChange: (field: keyof AdjustmentState, value: number) => void;
|
|
11
|
-
onSaturationChange: (field: keyof AdjustmentState, value: number) => void;
|
|
12
|
-
onDragStart: () => void;
|
|
13
|
-
onDragEnd: () => void;
|
|
14
|
-
}
|
|
15
|
-
export default function HSliderColorMobile(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export {};
|
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Stack, Slider, Typography, TextField } from "@mui/material";
|
|
3
|
-
import useHonchoTypography from "../../themes/honchoTheme";
|
|
4
|
-
import useColors from '../../themes/colors';
|
|
5
|
-
export default function HSliderColorMobile(props) {
|
|
6
|
-
const typography = useHonchoTypography();
|
|
7
|
-
const colors = useColors();
|
|
8
|
-
const blueScale = '#292bc0'; // Blue color on left
|
|
9
|
-
const yellowScale = '#dfdc28'; // Yellow color on right
|
|
10
|
-
const greenScale = '#00ff04';
|
|
11
|
-
const purpleScale = '#b700ff';
|
|
12
|
-
// The gradient for the *entire* background of the slider bar
|
|
13
|
-
const tempGradient = `linear-gradient(to right, ${blueScale} 35%, ${yellowScale} 75%)`;
|
|
14
|
-
const tintGradient = `linear-gradient(to right, ${greenScale} 20%, ${purpleScale} 75%)`;
|
|
15
|
-
const saturationColors = ['yellow', 'lime', 'deepskyblue', 'magenta', 'red'];
|
|
16
|
-
const greyScaleStart = '#000000'; // Black at -100
|
|
17
|
-
const greyScaleEnd = '#ffffff'; // White at 0 (or a very light grey)
|
|
18
|
-
const colorStops = saturationColors.map((color, index) => {
|
|
19
|
-
const position = 50 + (index / (saturationColors.length - 1)) * 50;
|
|
20
|
-
return `${color} ${position}%`;
|
|
21
|
-
}).join(', ');
|
|
22
|
-
// The gradient for the *entire* background of the slider bar
|
|
23
|
-
const fullTrackGradient = `linear-gradient(to right, ${greyScaleStart} 0%, ${greyScaleEnd} 50%, ${colorStops})`;
|
|
24
|
-
const focusedInputStyle = {
|
|
25
|
-
backgroundColor: "#1C1B1FB2",
|
|
26
|
-
borderRadius: '5px 5px 0px 0px',
|
|
27
|
-
borderBottom: 'none',
|
|
28
|
-
pl: '2px',
|
|
29
|
-
};
|
|
30
|
-
const formatValue = (value) => {
|
|
31
|
-
if (value > 0)
|
|
32
|
-
return `+${value}`;
|
|
33
|
-
return value.toString();
|
|
34
|
-
};
|
|
35
|
-
const handleInputChange = (event, min, max, onChange) => {
|
|
36
|
-
const value = event.target.value;
|
|
37
|
-
if (value === '+' || value === '-')
|
|
38
|
-
return;
|
|
39
|
-
let numericValue = parseInt(value, 10);
|
|
40
|
-
if (isNaN(numericValue))
|
|
41
|
-
numericValue = 0;
|
|
42
|
-
const clampedValue = Math.max(min, Math.min(max, numericValue));
|
|
43
|
-
onChange(clampedValue);
|
|
44
|
-
};
|
|
45
|
-
return (_jsx(_Fragment, { children: _jsxs(Stack, { spacing: 0, direction: "column", sx: { width: '100%', paddingX: 1, m: "0px" }, children: [_jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", sx: { pt: '10px', pb: '0px', '&:focus-within .MuiFilledInput-input': focusedInputStyle }, children: [_jsx(Typography, { sx: { ...typography.bodyMedium, color: colors.surface }, children: "Temperature" }), _jsx(TextField, { hiddenLabel: true, id: "temperature-input", value: formatValue(props.tempScore), variant: "filled", onChange: (e) => handleInputChange(e, -100, 100, (val) => props.onTempChange("tempScore", val)), sx: {
|
|
46
|
-
width: "40px",
|
|
47
|
-
alignItems: "center",
|
|
48
|
-
textAlign: "right",
|
|
49
|
-
pr: "4px",
|
|
50
|
-
display: "flex",
|
|
51
|
-
'& .MuiFilledInput-root': {
|
|
52
|
-
backgroundColor: 'transparent',
|
|
53
|
-
borderRadius: "0px",
|
|
54
|
-
border: 'none',
|
|
55
|
-
'&:before': {
|
|
56
|
-
borderBottom: 'none',
|
|
57
|
-
},
|
|
58
|
-
'&:after': {
|
|
59
|
-
borderBottom: 'none',
|
|
60
|
-
},
|
|
61
|
-
'&:hover:not(.Mui-disabled):before': {
|
|
62
|
-
borderBottom: 'none',
|
|
63
|
-
},
|
|
64
|
-
'&.Mui-focused:after': {
|
|
65
|
-
borderBottom: 'none',
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
'& .MuiFilledInput-input': {
|
|
69
|
-
textAlign: 'right',
|
|
70
|
-
padding: 0,
|
|
71
|
-
pr: '4px',
|
|
72
|
-
color: colors.surface,
|
|
73
|
-
fontSize: "14px",
|
|
74
|
-
},
|
|
75
|
-
} })] }), _jsx(Slider, { sx: {
|
|
76
|
-
width: "100%",
|
|
77
|
-
color: colors.surface,
|
|
78
|
-
'& .MuiSlider-rail': {
|
|
79
|
-
background: tempGradient,
|
|
80
|
-
opacity: 1,
|
|
81
|
-
},
|
|
82
|
-
'& .MuiSlider-track': {
|
|
83
|
-
background: 'transparent',
|
|
84
|
-
border: 'none',
|
|
85
|
-
},
|
|
86
|
-
'& .MuiSlider-thumb': {
|
|
87
|
-
boxShadow: 'none',
|
|
88
|
-
}
|
|
89
|
-
}, size: "small", value: props.tempScore, step: 1, min: -100, max: 100, onChange: (_event, newValue) => props.onTempChange("tempScore", newValue), onDoubleClick: () => props.onTempChange("tempScore", 0), onMouseDown: () => {
|
|
90
|
-
if (!props.isBatchMode) {
|
|
91
|
-
props.onDragStart();
|
|
92
|
-
}
|
|
93
|
-
}, onMouseUp: () => {
|
|
94
|
-
props.onDragEnd();
|
|
95
|
-
}, onTouchStart: () => {
|
|
96
|
-
if (!props.isBatchMode) {
|
|
97
|
-
props.onDragStart();
|
|
98
|
-
}
|
|
99
|
-
}, onTouchEnd: () => {
|
|
100
|
-
props.onDragEnd();
|
|
101
|
-
} }), _jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", sx: { pt: '10px', pb: '0px', '&:focus-within .MuiFilledInput-input': focusedInputStyle }, children: [_jsx(Typography, { sx: { ...typography.bodyMedium, color: colors.surface }, children: "Tint" }), _jsx(TextField, { hiddenLabel: true, id: "filled-hidden-label-small", value: formatValue(props.tintScore), variant: "filled", onChange: (e) => handleInputChange(e, -100, 100, (val) => props.onTintChange("tintScore", val)), sx: {
|
|
102
|
-
width: "40px",
|
|
103
|
-
alignItems: "center",
|
|
104
|
-
textAlign: "right",
|
|
105
|
-
pr: "4px",
|
|
106
|
-
display: "flex",
|
|
107
|
-
'& .MuiFilledInput-root': {
|
|
108
|
-
backgroundColor: 'transparent',
|
|
109
|
-
borderRadius: "0px",
|
|
110
|
-
border: 'none',
|
|
111
|
-
'&:before': {
|
|
112
|
-
borderBottom: 'none',
|
|
113
|
-
},
|
|
114
|
-
'&:after': {
|
|
115
|
-
borderBottom: 'none',
|
|
116
|
-
},
|
|
117
|
-
'&:hover:not(.Mui-disabled):before': {
|
|
118
|
-
borderBottom: 'none',
|
|
119
|
-
},
|
|
120
|
-
'&.Mui-focused:after': {
|
|
121
|
-
borderBottom: 'none',
|
|
122
|
-
},
|
|
123
|
-
},
|
|
124
|
-
'& .MuiFilledInput-input': {
|
|
125
|
-
textAlign: 'right',
|
|
126
|
-
padding: 0,
|
|
127
|
-
pr: '4px',
|
|
128
|
-
color: colors.surface,
|
|
129
|
-
fontSize: "14px",
|
|
130
|
-
},
|
|
131
|
-
} })] }), _jsx(Slider, { sx: {
|
|
132
|
-
width: "100%",
|
|
133
|
-
color: colors.surface,
|
|
134
|
-
'& .MuiSlider-rail': {
|
|
135
|
-
background: tintGradient,
|
|
136
|
-
opacity: 1,
|
|
137
|
-
},
|
|
138
|
-
'& .MuiSlider-track': {
|
|
139
|
-
background: 'transparent',
|
|
140
|
-
border: 'none',
|
|
141
|
-
},
|
|
142
|
-
'& .MuiSlider-thumb': {
|
|
143
|
-
boxShadow: 'none',
|
|
144
|
-
}
|
|
145
|
-
}, size: "small", value: props.tintScore, step: 1, min: -100, max: 100, onChange: (_event, newValue) => props.onTintChange("tintScore", newValue), onDoubleClick: () => props.onTintChange("tintScore", 0), onMouseDown: () => {
|
|
146
|
-
if (!props.isBatchMode) {
|
|
147
|
-
props.onDragStart();
|
|
148
|
-
}
|
|
149
|
-
}, onMouseUp: () => {
|
|
150
|
-
props.onDragEnd();
|
|
151
|
-
}, onTouchStart: () => {
|
|
152
|
-
if (!props.isBatchMode) {
|
|
153
|
-
props.onDragStart();
|
|
154
|
-
}
|
|
155
|
-
}, onTouchEnd: () => {
|
|
156
|
-
props.onDragEnd();
|
|
157
|
-
} }), _jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", sx: { pt: '10px', pb: '0px', '&:focus-within .MuiFilledInput-input': focusedInputStyle }, children: [_jsx(Typography, { sx: { ...typography.bodyMedium, color: colors.surface }, children: "Vibrance" }), _jsx(TextField, { hiddenLabel: true, id: "filled-hidden-label-small", value: formatValue(props.vibranceScore), variant: "filled", onChange: (e) => handleInputChange(e, -100, 100, (val) => props.onVibranceChange("vibranceScore", val)), sx: {
|
|
158
|
-
width: "40px",
|
|
159
|
-
alignItems: "center",
|
|
160
|
-
textAlign: "right",
|
|
161
|
-
pr: "4px",
|
|
162
|
-
display: "flex",
|
|
163
|
-
'& .MuiFilledInput-root': {
|
|
164
|
-
backgroundColor: 'transparent',
|
|
165
|
-
borderRadius: "0px",
|
|
166
|
-
border: 'none',
|
|
167
|
-
'&:before': {
|
|
168
|
-
borderBottom: 'none',
|
|
169
|
-
},
|
|
170
|
-
'&:after': {
|
|
171
|
-
borderBottom: 'none',
|
|
172
|
-
},
|
|
173
|
-
'&:hover:not(.Mui-disabled):before': {
|
|
174
|
-
borderBottom: 'none',
|
|
175
|
-
},
|
|
176
|
-
'&.Mui-focused:after': {
|
|
177
|
-
borderBottom: 'none',
|
|
178
|
-
},
|
|
179
|
-
},
|
|
180
|
-
'& .MuiFilledInput-input': {
|
|
181
|
-
textAlign: 'right',
|
|
182
|
-
padding: 0,
|
|
183
|
-
pr: '4px',
|
|
184
|
-
color: colors.surface,
|
|
185
|
-
fontSize: "14px",
|
|
186
|
-
},
|
|
187
|
-
} })] }), _jsx(Slider, { sx: {
|
|
188
|
-
width: "100%",
|
|
189
|
-
color: colors.surface,
|
|
190
|
-
'& .MuiSlider-rail': {
|
|
191
|
-
background: fullTrackGradient,
|
|
192
|
-
opacity: 1,
|
|
193
|
-
},
|
|
194
|
-
'& .MuiSlider-track': {
|
|
195
|
-
background: 'transparent',
|
|
196
|
-
border: 'none',
|
|
197
|
-
},
|
|
198
|
-
'& .MuiSlider-thumb': {
|
|
199
|
-
boxShadow: 'none',
|
|
200
|
-
}
|
|
201
|
-
}, size: "small", value: props.vibranceScore, step: 1, min: -100, max: 100, onChange: (_event, newValue) => props.onVibranceChange("vibranceScore", newValue), onDoubleClick: () => props.onVibranceChange("vibranceScore", 0), onMouseDown: () => {
|
|
202
|
-
if (!props.isBatchMode) {
|
|
203
|
-
props.onDragStart();
|
|
204
|
-
}
|
|
205
|
-
}, onMouseUp: () => {
|
|
206
|
-
props.onDragEnd();
|
|
207
|
-
}, onTouchStart: () => {
|
|
208
|
-
if (!props.isBatchMode) {
|
|
209
|
-
props.onDragStart();
|
|
210
|
-
}
|
|
211
|
-
}, onTouchEnd: () => {
|
|
212
|
-
props.onDragEnd();
|
|
213
|
-
} }), _jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", sx: { pt: '10px', pb: '0px', '&:focus-within .MuiFilledInput-input': focusedInputStyle }, children: [_jsx(Typography, { sx: { ...typography.bodyMedium, color: colors.surface }, children: "Saturation" }), _jsx(TextField, { hiddenLabel: true, id: "filled-hidden-label-small", value: formatValue(props.saturationScore), variant: "filled", onChange: (e) => handleInputChange(e, -100, 100, (val) => props.onSaturationChange("saturationScore", val)), sx: {
|
|
214
|
-
width: "40px",
|
|
215
|
-
alignItems: "center",
|
|
216
|
-
textAlign: "right",
|
|
217
|
-
pr: "4px",
|
|
218
|
-
display: "flex",
|
|
219
|
-
'& .MuiFilledInput-root': {
|
|
220
|
-
backgroundColor: 'transparent',
|
|
221
|
-
borderRadius: "0px",
|
|
222
|
-
border: 'none',
|
|
223
|
-
'&:before': {
|
|
224
|
-
borderBottom: 'none',
|
|
225
|
-
},
|
|
226
|
-
'&:after': {
|
|
227
|
-
borderBottom: 'none',
|
|
228
|
-
},
|
|
229
|
-
'&:hover:not(.Mui-disabled):before': {
|
|
230
|
-
borderBottom: 'none',
|
|
231
|
-
},
|
|
232
|
-
'&.Mui-focused:after': {
|
|
233
|
-
borderBottom: 'none',
|
|
234
|
-
},
|
|
235
|
-
},
|
|
236
|
-
'& .MuiFilledInput-input': {
|
|
237
|
-
textAlign: 'right',
|
|
238
|
-
padding: 0,
|
|
239
|
-
pr: '4px',
|
|
240
|
-
color: colors.surface,
|
|
241
|
-
fontSize: "14px",
|
|
242
|
-
},
|
|
243
|
-
} })] }), _jsx(Slider, { sx: {
|
|
244
|
-
width: "100%",
|
|
245
|
-
color: colors.surface,
|
|
246
|
-
'& .MuiSlider-rail': {
|
|
247
|
-
background: fullTrackGradient,
|
|
248
|
-
opacity: 1,
|
|
249
|
-
},
|
|
250
|
-
'& .MuiSlider-track': {
|
|
251
|
-
background: 'transparent',
|
|
252
|
-
border: 'none',
|
|
253
|
-
},
|
|
254
|
-
'& .MuiSlider-thumb': {
|
|
255
|
-
boxShadow: 'none',
|
|
256
|
-
}
|
|
257
|
-
}, size: "small", value: props.saturationScore, step: 1, min: -100, max: 100, onChange: (_event, newValue) => props.onSaturationChange("saturationScore", newValue), onDoubleClick: () => props.onSaturationChange("saturationScore", 0), onMouseDown: () => {
|
|
258
|
-
if (!props.isBatchMode) {
|
|
259
|
-
props.onDragStart();
|
|
260
|
-
}
|
|
261
|
-
}, onMouseUp: () => {
|
|
262
|
-
props.onDragEnd();
|
|
263
|
-
}, onTouchStart: () => {
|
|
264
|
-
if (!props.isBatchMode) {
|
|
265
|
-
props.onDragStart();
|
|
266
|
-
}
|
|
267
|
-
}, onTouchEnd: () => {
|
|
268
|
-
props.onDragEnd();
|
|
269
|
-
} })] }) }));
|
|
270
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { AdjustmentState } from '../../hooks/editor/type';
|
|
2
|
-
interface Props {
|
|
3
|
-
clarityScore: number;
|
|
4
|
-
sharpnessScore: number;
|
|
5
|
-
isBatchMode: boolean;
|
|
6
|
-
onClarityChange: (field: keyof AdjustmentState, value: number) => void;
|
|
7
|
-
onSharpnessChange: (field: keyof AdjustmentState, value: number) => void;
|
|
8
|
-
onDragStart: () => void;
|
|
9
|
-
onDragEnd: () => void;
|
|
10
|
-
}
|
|
11
|
-
export default function HSliderDetailsMobile(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|