@yogiswara/honcho-editor-ui 2.8.10 → 2.9.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.
Files changed (143) hide show
  1. package/dist/color.d.ts +9 -0
  2. package/dist/color.js +9 -0
  3. package/dist/components/editor/GalleryAlbum/AlbumImageGallery.d.ts +8 -0
  4. package/dist/components/editor/GalleryAlbum/AlbumImageGallery.js +28 -0
  5. package/dist/components/editor/GalleryAlbum/ImageItem.d.ts +10 -0
  6. package/dist/components/editor/GalleryAlbum/ImageItem.js +81 -0
  7. package/dist/components/editor/HAccordionAspectRatio.d.ts +14 -0
  8. package/dist/components/editor/HAccordionAspectRatio.js +102 -0
  9. package/dist/components/editor/HAccordionColor.d.ts +16 -0
  10. package/dist/components/editor/HAccordionColor.js +282 -0
  11. package/dist/components/editor/HAccordionColorAdjustment.d.ts +35 -0
  12. package/dist/components/editor/HAccordionColorAdjustment.js +31 -0
  13. package/dist/components/editor/HAccordionDetails.d.ts +12 -0
  14. package/dist/components/editor/HAccordionDetails.js +183 -0
  15. package/dist/components/editor/HAccordionLight.d.ts +20 -0
  16. package/dist/components/editor/HAccordionLight.js +414 -0
  17. package/dist/components/editor/HAccordionPreset.d.ts +23 -0
  18. package/dist/components/editor/HAccordionPreset.js +52 -0
  19. package/dist/components/editor/HAlertBox.d.ts +8 -0
  20. package/dist/components/editor/HAlertBox.js +55 -0
  21. package/dist/components/editor/HAspectRatioMobile.d.ts +0 -0
  22. package/dist/components/editor/HAspectRatioMobile.js +1 -0
  23. package/dist/components/editor/HBulkAccordionColorAdjustment.d.ts +55 -0
  24. package/dist/components/editor/HBulkAccordionColorAdjustment.js +31 -0
  25. package/dist/components/editor/HBulkAccordionColorAdjustmentColors.d.ts +20 -0
  26. package/dist/components/editor/HBulkAccordionColorAdjustmentColors.js +121 -0
  27. package/dist/components/editor/HBulkAccordionColorAdjustmentDetails.d.ts +12 -0
  28. package/dist/components/editor/HBulkAccordionColorAdjustmentDetails.js +65 -0
  29. package/dist/components/editor/HBulkAccordionColorAdjustmentLight.d.ts +28 -0
  30. package/dist/components/editor/HBulkAccordionColorAdjustmentLight.js +177 -0
  31. package/dist/components/editor/HBulkColorAdjustmentMobile.d.ts +53 -0
  32. package/dist/components/editor/HBulkColorAdjustmentMobile.js +16 -0
  33. package/dist/components/editor/HBulkColorMobile.d.ts +20 -0
  34. package/dist/components/editor/HBulkColorMobile.js +121 -0
  35. package/dist/components/editor/HBulkDetailsMobile.d.ts +12 -0
  36. package/dist/components/editor/HBulkDetailsMobile.js +65 -0
  37. package/dist/components/editor/HBulkLightMobile.d.ts +28 -0
  38. package/dist/components/editor/HBulkLightMobile.js +192 -0
  39. package/dist/components/editor/HBulkPreset.d.ts +24 -0
  40. package/dist/components/editor/HBulkPreset.js +43 -0
  41. package/dist/components/editor/HBulkPresetMobile.d.ts +15 -0
  42. package/dist/components/editor/HBulkPresetMobile.js +26 -0
  43. package/dist/components/editor/HDialogBox.d.ts +18 -0
  44. package/dist/components/editor/HDialogBox.js +51 -0
  45. package/dist/components/editor/HDialogCopy.d.ts +41 -0
  46. package/dist/components/editor/HDialogCopy.js +80 -0
  47. package/dist/components/editor/HFooter.d.ts +12 -0
  48. package/dist/components/editor/HFooter.js +24 -0
  49. package/dist/components/editor/HHeaderEditor.d.ts +19 -0
  50. package/dist/components/editor/HHeaderEditor.js +36 -0
  51. package/dist/components/editor/HImageEditorBulkDekstop.d.ts +15 -0
  52. package/dist/components/editor/HImageEditorBulkDekstop.js +29 -0
  53. package/dist/components/editor/HImageEditorBulkMobile.d.ts +72 -0
  54. package/dist/components/editor/HImageEditorBulkMobile.js +81 -0
  55. package/dist/components/editor/HImageEditorDekstop.d.ts +15 -0
  56. package/dist/components/editor/HImageEditorDekstop.js +29 -0
  57. package/dist/components/editor/HImageEditorMobile.d.ts +53 -0
  58. package/dist/components/editor/HImageEditorMobile.js +92 -0
  59. package/dist/components/editor/HImageEditorMobileLayout.d.ts +14 -0
  60. package/dist/components/editor/HImageEditorMobileLayout.js +58 -0
  61. package/dist/components/editor/HModalEditorDekstop.d.ts +13 -0
  62. package/dist/components/editor/HModalEditorDekstop.js +22 -0
  63. package/dist/components/editor/HModalMobile.d.ts +13 -0
  64. package/dist/components/editor/HModalMobile.js +9 -0
  65. package/dist/components/editor/HPresetDelete.d.ts +7 -0
  66. package/dist/components/editor/HPresetDelete.js +7 -0
  67. package/dist/components/editor/HPresetOptionMenu.d.ts +9 -0
  68. package/dist/components/editor/HPresetOptionMenu.js +20 -0
  69. package/dist/components/editor/HSliderColorMobile.d.ts +16 -0
  70. package/dist/components/editor/HSliderColorMobile.js +270 -0
  71. package/dist/components/editor/HSliderDetailsMobile.d.ts +12 -0
  72. package/dist/components/editor/HSliderDetailsMobile.js +154 -0
  73. package/dist/components/editor/HSliderLightMobile.d.ts +20 -0
  74. package/dist/components/editor/HSliderLightMobile.js +420 -0
  75. package/dist/components/editor/HTabAspectRatioMobile.d.ts +0 -0
  76. package/dist/components/editor/HTabAspectRatioMobile.js +1 -0
  77. package/dist/components/editor/HTabColorAdjustmentMobile.d.ts +35 -0
  78. package/dist/components/editor/HTabColorAdjustmentMobile.js +8 -0
  79. package/dist/components/editor/HTabPresetMobile.d.ts +14 -0
  80. package/dist/components/editor/HTabPresetMobile.js +10 -0
  81. package/dist/components/editor/HTextField.d.ts +14 -0
  82. package/dist/components/editor/HTextField.js +51 -0
  83. package/dist/components/editor/HWatermarkView.d.ts +6 -0
  84. package/dist/components/editor/HWatermarkView.js +16 -0
  85. package/dist/components/editor/svg/Tick.d.ts +2 -0
  86. package/dist/components/editor/svg/Tick.js +6 -0
  87. package/dist/components/modal/HModalDialog.d.ts +12 -0
  88. package/dist/components/modal/HModalDialog.js +18 -0
  89. package/dist/components/modal/HModalRename.d.ts +14 -0
  90. package/dist/components/modal/HModalRename.js +35 -0
  91. package/dist/hooks/demo/HonchoEditorBulkDemo.d.ts +3 -0
  92. package/dist/hooks/demo/HonchoEditorBulkDemo.js +410 -0
  93. package/dist/hooks/demo/HonchoEditorSingleCleanDemo.d.ts +3 -0
  94. package/dist/hooks/demo/HonchoEditorSingleCleanDemo.js +354 -0
  95. package/dist/hooks/demo/index.d.ts +2 -0
  96. package/dist/hooks/demo/index.js +2 -0
  97. package/dist/hooks/editor/type.d.ts +174 -0
  98. package/dist/hooks/editor/type.js +1 -0
  99. package/dist/hooks/editor/useHonchoEditorBulk.d.ts +96 -0
  100. package/dist/hooks/editor/useHonchoEditorBulk.js +427 -0
  101. package/dist/hooks/editor/useHonchoEditorSingle.d.ts +44 -0
  102. package/dist/hooks/editor/useHonchoEditorSingle.js +163 -0
  103. package/dist/hooks/useAdjustmentHistory.d.ts +95 -0
  104. package/dist/hooks/useAdjustmentHistory.js +578 -0
  105. package/dist/hooks/useAdjustmentHistoryBatch.d.ts +177 -0
  106. package/dist/hooks/useAdjustmentHistoryBatch.js +1189 -0
  107. package/dist/hooks/useGallerySwipe.d.ts +36 -0
  108. package/dist/hooks/useGallerySwipe.js +344 -0
  109. package/dist/hooks/usePaging.d.ts +89 -0
  110. package/dist/hooks/usePaging.js +211 -0
  111. package/dist/hooks/usePreset.d.ts +82 -0
  112. package/dist/hooks/usePreset.js +344 -0
  113. package/dist/index.d.ts +39 -1474
  114. package/dist/index.js +44 -10960
  115. package/dist/lib/context/EditorContext.d.ts +28 -0
  116. package/dist/lib/context/EditorContext.js +60 -0
  117. package/dist/lib/context/EditorProcessingService.d.ts +36 -0
  118. package/dist/lib/context/EditorProcessingService.js +249 -0
  119. package/dist/lib/editor/honcho-editor.d.ts +324 -0
  120. package/dist/lib/editor/honcho-editor.js +825 -0
  121. package/dist/lib/hooks/useEditor.d.ts +22 -0
  122. package/dist/lib/hooks/useEditor.js +35 -0
  123. package/dist/lib/hooks/useEditorHeadless.d.ts +34 -0
  124. package/dist/lib/hooks/useEditorHeadless.js +207 -0
  125. package/dist/lib/hooks/useImageProcessor.d.ts +18 -0
  126. package/dist/lib/hooks/useImageProcessor.js +113 -0
  127. package/dist/setupTests.d.ts +1 -0
  128. package/dist/setupTests.js +1 -0
  129. package/dist/themes/colors.d.ts +12 -0
  130. package/dist/themes/colors.js +12 -0
  131. package/dist/themes/honchoTheme.d.ts +25 -0
  132. package/dist/themes/honchoTheme.js +94 -0
  133. package/dist/utils/adjustment.d.ts +6 -0
  134. package/dist/utils/adjustment.js +48 -0
  135. package/dist/utils/imageLoader.d.ts +11 -0
  136. package/dist/utils/imageLoader.js +48 -0
  137. package/dist/utils/isMobile.d.ts +1 -0
  138. package/dist/utils/isMobile.js +5 -0
  139. package/package.json +6 -12
  140. package/dist/index.d.mts +0 -1474
  141. package/dist/index.js.map +0 -1
  142. package/dist/index.mjs +0 -10939
  143. package/dist/index.mjs.map +0 -1
@@ -0,0 +1,31 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { Accordion, AccordionDetails, AccordionSummary, CardMedia, Stack, Typography } from "@mui/material";
3
+ import HAccordionColor from "./HAccordionColor";
4
+ import HAccordionLight from "./HAccordionLight";
5
+ import HAccordionDetails from "./HAccordionDetails";
6
+ import useHonchoTypography from "../../themes/honchoTheme";
7
+ import useColors from '../../themes/colors';
8
+ export default function HAccordionColorAdjustment(props) {
9
+ const typography = useHonchoTypography();
10
+ const colors = useColors();
11
+ const accordionStyle = {
12
+ backgroundColor: colors.onBackground,
13
+ color: colors.surface,
14
+ '& .MuiAccordionSummary-root': {
15
+ backgroundColor: colors.onBackground,
16
+ color: colors.surface,
17
+ },
18
+ '& .MuiAccordionDetails-root': {
19
+ backgroundColor: colors.onBackground,
20
+ color: colors.surface,
21
+ },
22
+ '& .MuiTypography-root': {
23
+ color: colors.surface,
24
+ },
25
+ '& .MuiSvgIcon-root': {
26
+ color: colors.surface,
27
+ }
28
+ };
29
+ const isPanelExpanded = (panelName) => props.expandedPanels.includes(panelName);
30
+ return (_jsx(_Fragment, { children: _jsxs(Stack, { direction: "column", sx: { accordionStyle }, children: [_jsxs(Accordion, { sx: accordionStyle, expanded: isPanelExpanded('whiteBalance'), onChange: props.onPanelChange('whiteBalance'), disableGutters: true, children: [_jsx(AccordionSummary, { sx: { pr: 0 }, children: _jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", sx: { width: '100%' }, children: [_jsx(Typography, { sx: { ...typography.titleMedium }, children: "Color" }), _jsx(CardMedia, { component: "img", image: isPanelExpanded('whiteBalance') ? "/v1/svg/expanded-editor.svg" : "/v1/svg/expand-editor.svg", sx: { width: "11.67px", height: "5.83px" } })] }) }), _jsx(AccordionDetails, { sx: { pr: "4px" }, children: _jsx(HAccordionColor, { TempScore: props.tempScore, TintScore: props.tintScore, VibranceScore: props.vibranceScore, SaturationScore: props.saturationScore, onTempChange: props.setTempScore, onTintChange: props.setTintScore, onVibranceChange: props.setVibranceScore, onSaturationChange: props.setSaturationScore, isBatchMode: props.isBatchMode, onDragStart: props.onDragStart, onDragEnd: props.onDragEnd }) })] }), _jsxs(Accordion, { sx: accordionStyle, expanded: isPanelExpanded('light'), onChange: props.onPanelChange('light'), disableGutters: true, children: [_jsx(AccordionSummary, { sx: { pr: 0 }, children: _jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", sx: { width: '100%' }, children: [_jsx(Typography, { sx: { ...typography.titleMedium }, children: "Light" }), _jsx(CardMedia, { component: "img", image: isPanelExpanded('light') ? "/v1/svg/expanded-editor.svg" : "/v1/svg/expand-editor.svg", sx: { width: "11.67px", height: "5.83px" } })] }) }), _jsx(AccordionDetails, { sx: { pr: "4px" }, children: _jsx(HAccordionLight, { ExposureScore: props.exposureScore, ContrastScore: props.contrastScore, HighlightsScore: props.HighlightsScore, ShadowsScore: props.shadowsScore, WhitesScore: props.whitesScore, BlacksScore: props.blacksScore, onExposureChange: props.setExposureScore, onContrastChange: props.setContrastScore, onHighlightsChange: props.setHighlightsScore, onShadowsChange: props.setShadowsScore, onWhitesChange: props.setWhitesScore, onBlacksChange: props.setBlacksScore, isBatchMode: props.isBatchMode, onDragStart: props.onDragStart, onDragEnd: props.onDragEnd }) })] }), _jsxs(Accordion, { sx: accordionStyle, expanded: isPanelExpanded('details'), onChange: props.onPanelChange('details'), disableGutters: true, children: [_jsx(AccordionSummary, { sx: { pr: 0 }, children: _jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", sx: { width: '100%' }, children: [_jsx(Typography, { sx: { ...typography.titleMedium }, children: "Details" }), _jsx(CardMedia, { component: "img", image: isPanelExpanded('details') ? "/v1/svg/expanded-editor.svg" : "/v1/svg/expand-editor.svg", sx: { width: "11.67px", height: "5.83px" } })] }) }), _jsx(AccordionDetails, { sx: { pr: "4px" }, children: _jsx(HAccordionDetails, { ClarityScore: props.clarityScore, SharpnessScore: props.sharpnessScore, onClarityChange: props.setClarityScore, onSharpnessChange: props.setSharpnessScore, isBatchMode: props.isBatchMode, onDragStart: props.onDragStart, onDragEnd: props.onDragEnd }) })] })] }) }));
31
+ }
@@ -0,0 +1,12 @@
1
+ import { AdjustmentState } from '../../hooks/editor/type';
2
+ interface Props {
3
+ ClarityScore: number;
4
+ SharpnessScore: number;
5
+ onClarityChange: (field: keyof AdjustmentState, value: number) => void;
6
+ onSharpnessChange: (field: keyof AdjustmentState, value: number) => void;
7
+ onDragStart: () => void;
8
+ onDragEnd: () => void;
9
+ isBatchMode: boolean;
10
+ }
11
+ export default function HAccordionDetails(props: Props): import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,183 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import { Stack, Slider, Typography, TextField } from "@mui/material";
4
+ import useHonchoTypography from "../../themes/honchoTheme";
5
+ import useColors from '../../themes/colors';
6
+ export default function HAccordionDetails(props) {
7
+ const typography = useHonchoTypography();
8
+ const colors = useColors();
9
+ const formatValue = (value) => {
10
+ if (value > 0)
11
+ return `+${value}`;
12
+ return value.toString();
13
+ };
14
+ const [clarityInput, setClarityInput] = React.useState(formatValue(props.ClarityScore));
15
+ const [sharpnessInput, setSharpnessInput] = React.useState(formatValue(props.SharpnessScore));
16
+ const focusedInputStyle = {
17
+ backgroundColor: "#1C1B1FB2",
18
+ borderRadius: '5px 5px 0px 0px',
19
+ borderBottom: 'none',
20
+ pl: '2px',
21
+ };
22
+ const handleInputChange = (event, min, max, onChange) => {
23
+ const value = event.target.value;
24
+ if (value === '+' || value === '-')
25
+ return;
26
+ let numericValue = parseInt(value, 10);
27
+ if (isNaN(numericValue))
28
+ numericValue = 0;
29
+ const clampedValue = Math.max(min, Math.min(max, numericValue));
30
+ onChange(clampedValue);
31
+ };
32
+ const commitInput = (rawValue, min, max, onChange) => {
33
+ let numericValue = parseInt(rawValue, 10);
34
+ if (isNaN(numericValue))
35
+ numericValue = 0;
36
+ const clamped = Math.max(min, Math.min(max, numericValue));
37
+ onChange(clamped);
38
+ };
39
+ React.useEffect(() => {
40
+ setClarityInput(formatValue(props.ClarityScore));
41
+ }, [props.ClarityScore]);
42
+ React.useEffect(() => {
43
+ setSharpnessInput(formatValue(props.SharpnessScore));
44
+ }, [props.SharpnessScore]);
45
+ return (_jsx(_Fragment, { children: _jsxs(Stack, { children: [_jsxs(Stack, { direction: "column", gap: "4px", sx: { pt: '6px', pb: '2px', px: '0px', mx: '0px', '&:focus-within .MuiFilledInput-input': focusedInputStyle, }, children: [_jsxs(Stack, { direction: "row", justifyContent: "space-between", children: [_jsx(Typography, { component: "label", htmlFor: "clarity-input", sx: { ...typography.bodyMedium, userSelect: 'none' }, children: "Clarity" }), _jsx(TextField, { hiddenLabel: true, id: "clarity-input", value: clarityInput, variant: "filled", onChange: (e) => handleInputChange(e, -100, 100, (val) => props.onClarityChange("clarityScore", val)), onBlur: () => commitInput(clarityInput, -100, 100, (val) => props.onClarityChange("clarityScore", val)), onKeyDown: (e) => {
46
+ if (e.key === "Enter") {
47
+ commitInput(clarityInput, -100, 100, (val) => props.onClarityChange("clarityScore", val));
48
+ e.currentTarget.blur(); // blur so it formats
49
+ }
50
+ }, sx: {
51
+ width: "40px",
52
+ height: "10px",
53
+ alignItems: "center",
54
+ textAlign: "right",
55
+ display: "flex",
56
+ '& .MuiFilledInput-root': {
57
+ // backgroundColor: 'transparent',
58
+ // border: '',
59
+ '&:before': {
60
+ borderBottom: 'none',
61
+ },
62
+ '&:after': {
63
+ borderBottom: 'none',
64
+ },
65
+ '&:hover:not(.Mui-disabled):before': {
66
+ borderBottom: 'none',
67
+ },
68
+ '&.Mui-focused:after': {
69
+ borderBottom: 'none',
70
+ },
71
+ },
72
+ '& .MuiFilledInput-input': {
73
+ textAlign: 'right',
74
+ padding: 0,
75
+ pr: '4px',
76
+ color: colors.surface,
77
+ fontSize: "14px",
78
+ },
79
+ '& .Mui-focused': {
80
+ '& .MuiFilledInput-input': {
81
+ backgroundColor: "#1C1B1FB2",
82
+ textAlign: 'right',
83
+ borderRadius: '5px 5px 0px 0px',
84
+ borderBottom: 'none',
85
+ // pr: '8px',
86
+ pl: '2px',
87
+ }
88
+ }
89
+ } })] }), _jsx(Slider, { sx: {
90
+ width: "200px",
91
+ color: colors.onSurfaceVariant,
92
+ '& .MuiSlider-rail': {
93
+ background: colors.onSurfaceVariant,
94
+ opacity: 1,
95
+ },
96
+ '& .MuiSlider-thumb': {
97
+ background: colors.surface,
98
+ opacity: 1,
99
+ boxShadow: 'none',
100
+ },
101
+ }, size: "small", value: props.ClarityScore, step: 1, min: -100, max: 100, onChange: (_event, newValue) => props.onClarityChange("clarityScore", newValue), onDoubleClick: () => props.onClarityChange("clarityScore", 0), onMouseDown: () => {
102
+ if (!props.isBatchMode) {
103
+ props.onDragStart();
104
+ }
105
+ }, onMouseUp: () => {
106
+ props.onDragEnd();
107
+ }, onTouchStart: () => {
108
+ if (!props.isBatchMode) {
109
+ props.onDragStart();
110
+ }
111
+ }, onTouchEnd: () => {
112
+ props.onDragEnd();
113
+ } })] }), _jsxs(Stack, { direction: "column", gap: "3px", sx: { pt: '10px', pb: '0px', px: '0px', mx: '0px', '&:focus-within .MuiFilledInput-input': focusedInputStyle, }, children: [_jsxs(Stack, { direction: "row", justifyContent: "space-between", children: [_jsx(Typography, { component: "label", htmlFor: "sharpness-input", sx: { ...typography.bodyMedium, userSelect: 'none' }, children: "Sharpness" }), _jsx(TextField, { hiddenLabel: true, id: "sharpness-input", value: sharpnessInput, variant: "filled", onChange: (e) => handleInputChange(e, -100, 100, (val) => props.onSharpnessChange("sharpnessScore", val)), onBlur: () => commitInput(sharpnessInput, -100, 100, (val) => props.onSharpnessChange("sharpnessScore", val)), onKeyDown: (e) => {
114
+ if (e.key === "Enter") {
115
+ commitInput(sharpnessInput, -100, 100, (val) => props.onSharpnessChange("sharpnessScore", val));
116
+ e.currentTarget.blur(); // blur so it formats
117
+ }
118
+ }, sx: {
119
+ width: "40px",
120
+ height: "10px",
121
+ alignItems: "center",
122
+ textAlign: "right",
123
+ display: "flex",
124
+ '& .MuiFilledInput-root': {
125
+ backgroundColor: 'transparent',
126
+ borderRadius: "0px",
127
+ border: 'none',
128
+ '&:before': {
129
+ borderBottom: 'none',
130
+ },
131
+ '&:after': {
132
+ borderBottom: 'none',
133
+ },
134
+ '&:hover:not(.Mui-disabled):before': {
135
+ borderBottom: 'none',
136
+ },
137
+ '&.Mui-focused:after': {
138
+ borderBottom: 'none',
139
+ },
140
+ },
141
+ '& .MuiFilledInput-input': {
142
+ textAlign: 'right',
143
+ padding: 0,
144
+ pr: '4px',
145
+ color: colors.surface,
146
+ fontSize: "14px",
147
+ },
148
+ '& .Mui-focused': {
149
+ '& .MuiFilledInput-input': {
150
+ backgroundColor: "#1C1B1FB2",
151
+ textAlign: 'right',
152
+ borderRadius: '5px 5px 0px 0px',
153
+ borderBottom: 'none',
154
+ // pr: '8px',
155
+ pl: '2px',
156
+ }
157
+ }
158
+ } })] }), _jsx(Slider, { sx: {
159
+ width: "200px",
160
+ color: colors.onSurfaceVariant,
161
+ '& .MuiSlider-rail': {
162
+ background: colors.onSurfaceVariant,
163
+ opacity: 1,
164
+ },
165
+ '& .MuiSlider-thumb': {
166
+ background: colors.surface,
167
+ opacity: 1,
168
+ boxShadow: 'none',
169
+ },
170
+ }, size: "small", value: props.SharpnessScore, step: 1, min: -100, max: 100, onChange: (_event, newValue) => props.onSharpnessChange("sharpnessScore", newValue), onDoubleClick: () => props.onSharpnessChange("sharpnessScore", 0), onMouseDown: () => {
171
+ if (!props.isBatchMode) {
172
+ props.onDragStart();
173
+ }
174
+ }, onMouseUp: () => {
175
+ props.onDragEnd();
176
+ }, onTouchStart: () => {
177
+ if (!props.isBatchMode) {
178
+ props.onDragStart();
179
+ }
180
+ }, onTouchEnd: () => {
181
+ props.onDragEnd();
182
+ } })] })] }) }));
183
+ }
@@ -0,0 +1,20 @@
1
+ import { AdjustmentState } from '../../hooks/editor/type';
2
+ interface Props {
3
+ ExposureScore: number;
4
+ ContrastScore: number;
5
+ HighlightsScore: number;
6
+ ShadowsScore: number;
7
+ WhitesScore: number;
8
+ BlacksScore: number;
9
+ isBatchMode: boolean;
10
+ onExposureChange: (field: keyof AdjustmentState, value: number) => void;
11
+ onContrastChange: (field: keyof AdjustmentState, value: number) => void;
12
+ onHighlightsChange: (field: keyof AdjustmentState, value: number) => void;
13
+ onShadowsChange: (field: keyof AdjustmentState, value: number) => void;
14
+ onWhitesChange: (field: keyof AdjustmentState, value: number) => void;
15
+ onBlacksChange: (field: keyof AdjustmentState, value: number) => void;
16
+ onDragStart: () => void;
17
+ onDragEnd: () => void;
18
+ }
19
+ export default function HAccordionLight(props: Props): import("react/jsx-runtime").JSX.Element;
20
+ export {};