@yogiswara/honcho-editor-ui 2.8.8 → 2.8.10

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/index.d.mts +1474 -0
  2. package/dist/index.d.ts +1474 -39
  3. package/dist/index.js +10960 -44
  4. package/dist/index.js.map +1 -0
  5. package/dist/index.mjs +10939 -0
  6. package/dist/index.mjs.map +1 -0
  7. package/package.json +11 -5
  8. package/dist/color.d.ts +0 -9
  9. package/dist/color.js +0 -9
  10. package/dist/components/editor/GalleryAlbum/AlbumImageGallery.d.ts +0 -8
  11. package/dist/components/editor/GalleryAlbum/AlbumImageGallery.js +0 -28
  12. package/dist/components/editor/GalleryAlbum/ImageItem.d.ts +0 -10
  13. package/dist/components/editor/GalleryAlbum/ImageItem.js +0 -81
  14. package/dist/components/editor/HAccordionAspectRatio.d.ts +0 -14
  15. package/dist/components/editor/HAccordionAspectRatio.js +0 -102
  16. package/dist/components/editor/HAccordionColor.d.ts +0 -16
  17. package/dist/components/editor/HAccordionColor.js +0 -282
  18. package/dist/components/editor/HAccordionColorAdjustment.d.ts +0 -35
  19. package/dist/components/editor/HAccordionColorAdjustment.js +0 -31
  20. package/dist/components/editor/HAccordionDetails.d.ts +0 -12
  21. package/dist/components/editor/HAccordionDetails.js +0 -183
  22. package/dist/components/editor/HAccordionLight.d.ts +0 -20
  23. package/dist/components/editor/HAccordionLight.js +0 -414
  24. package/dist/components/editor/HAccordionPreset.d.ts +0 -23
  25. package/dist/components/editor/HAccordionPreset.js +0 -52
  26. package/dist/components/editor/HAlertBox.d.ts +0 -8
  27. package/dist/components/editor/HAlertBox.js +0 -55
  28. package/dist/components/editor/HAspectRatioMobile.d.ts +0 -0
  29. package/dist/components/editor/HAspectRatioMobile.js +0 -1
  30. package/dist/components/editor/HBulkAccordionColorAdjustment.d.ts +0 -55
  31. package/dist/components/editor/HBulkAccordionColorAdjustment.js +0 -31
  32. package/dist/components/editor/HBulkAccordionColorAdjustmentColors.d.ts +0 -20
  33. package/dist/components/editor/HBulkAccordionColorAdjustmentColors.js +0 -121
  34. package/dist/components/editor/HBulkAccordionColorAdjustmentDetails.d.ts +0 -12
  35. package/dist/components/editor/HBulkAccordionColorAdjustmentDetails.js +0 -65
  36. package/dist/components/editor/HBulkAccordionColorAdjustmentLight.d.ts +0 -28
  37. package/dist/components/editor/HBulkAccordionColorAdjustmentLight.js +0 -177
  38. package/dist/components/editor/HBulkColorAdjustmentMobile.d.ts +0 -53
  39. package/dist/components/editor/HBulkColorAdjustmentMobile.js +0 -16
  40. package/dist/components/editor/HBulkColorMobile.d.ts +0 -20
  41. package/dist/components/editor/HBulkColorMobile.js +0 -121
  42. package/dist/components/editor/HBulkDetailsMobile.d.ts +0 -12
  43. package/dist/components/editor/HBulkDetailsMobile.js +0 -65
  44. package/dist/components/editor/HBulkLightMobile.d.ts +0 -28
  45. package/dist/components/editor/HBulkLightMobile.js +0 -192
  46. package/dist/components/editor/HBulkPreset.d.ts +0 -24
  47. package/dist/components/editor/HBulkPreset.js +0 -43
  48. package/dist/components/editor/HBulkPresetMobile.d.ts +0 -15
  49. package/dist/components/editor/HBulkPresetMobile.js +0 -26
  50. package/dist/components/editor/HDialogBox.d.ts +0 -18
  51. package/dist/components/editor/HDialogBox.js +0 -51
  52. package/dist/components/editor/HDialogCopy.d.ts +0 -41
  53. package/dist/components/editor/HDialogCopy.js +0 -80
  54. package/dist/components/editor/HFooter.d.ts +0 -12
  55. package/dist/components/editor/HFooter.js +0 -24
  56. package/dist/components/editor/HHeaderEditor.d.ts +0 -19
  57. package/dist/components/editor/HHeaderEditor.js +0 -36
  58. package/dist/components/editor/HImageEditorBulkDekstop.d.ts +0 -15
  59. package/dist/components/editor/HImageEditorBulkDekstop.js +0 -29
  60. package/dist/components/editor/HImageEditorBulkMobile.d.ts +0 -72
  61. package/dist/components/editor/HImageEditorBulkMobile.js +0 -81
  62. package/dist/components/editor/HImageEditorDekstop.d.ts +0 -15
  63. package/dist/components/editor/HImageEditorDekstop.js +0 -29
  64. package/dist/components/editor/HImageEditorMobile.d.ts +0 -53
  65. package/dist/components/editor/HImageEditorMobile.js +0 -92
  66. package/dist/components/editor/HImageEditorMobileLayout.d.ts +0 -14
  67. package/dist/components/editor/HImageEditorMobileLayout.js +0 -58
  68. package/dist/components/editor/HModalEditorDekstop.d.ts +0 -13
  69. package/dist/components/editor/HModalEditorDekstop.js +0 -22
  70. package/dist/components/editor/HModalMobile.d.ts +0 -13
  71. package/dist/components/editor/HModalMobile.js +0 -9
  72. package/dist/components/editor/HPresetDelete.d.ts +0 -7
  73. package/dist/components/editor/HPresetDelete.js +0 -7
  74. package/dist/components/editor/HPresetOptionMenu.d.ts +0 -9
  75. package/dist/components/editor/HPresetOptionMenu.js +0 -20
  76. package/dist/components/editor/HSliderColorMobile.d.ts +0 -16
  77. package/dist/components/editor/HSliderColorMobile.js +0 -270
  78. package/dist/components/editor/HSliderDetailsMobile.d.ts +0 -12
  79. package/dist/components/editor/HSliderDetailsMobile.js +0 -154
  80. package/dist/components/editor/HSliderLightMobile.d.ts +0 -20
  81. package/dist/components/editor/HSliderLightMobile.js +0 -420
  82. package/dist/components/editor/HTabAspectRatioMobile.d.ts +0 -0
  83. package/dist/components/editor/HTabAspectRatioMobile.js +0 -1
  84. package/dist/components/editor/HTabColorAdjustmentMobile.d.ts +0 -35
  85. package/dist/components/editor/HTabColorAdjustmentMobile.js +0 -8
  86. package/dist/components/editor/HTabPresetMobile.d.ts +0 -14
  87. package/dist/components/editor/HTabPresetMobile.js +0 -10
  88. package/dist/components/editor/HTextField.d.ts +0 -14
  89. package/dist/components/editor/HTextField.js +0 -51
  90. package/dist/components/editor/HWatermarkView.d.ts +0 -6
  91. package/dist/components/editor/HWatermarkView.js +0 -16
  92. package/dist/components/editor/svg/Tick.d.ts +0 -2
  93. package/dist/components/editor/svg/Tick.js +0 -6
  94. package/dist/components/modal/HModalDialog.d.ts +0 -12
  95. package/dist/components/modal/HModalDialog.js +0 -18
  96. package/dist/components/modal/HModalRename.d.ts +0 -14
  97. package/dist/components/modal/HModalRename.js +0 -35
  98. package/dist/hooks/demo/HonchoEditorBulkDemo.d.ts +0 -3
  99. package/dist/hooks/demo/HonchoEditorBulkDemo.js +0 -410
  100. package/dist/hooks/demo/HonchoEditorSingleCleanDemo.d.ts +0 -3
  101. package/dist/hooks/demo/HonchoEditorSingleCleanDemo.js +0 -354
  102. package/dist/hooks/demo/index.d.ts +0 -2
  103. package/dist/hooks/demo/index.js +0 -2
  104. package/dist/hooks/editor/type.d.ts +0 -174
  105. package/dist/hooks/editor/type.js +0 -1
  106. package/dist/hooks/editor/useHonchoEditorBulk.d.ts +0 -96
  107. package/dist/hooks/editor/useHonchoEditorBulk.js +0 -427
  108. package/dist/hooks/editor/useHonchoEditorSingle.d.ts +0 -44
  109. package/dist/hooks/editor/useHonchoEditorSingle.js +0 -163
  110. package/dist/hooks/useAdjustmentHistory.d.ts +0 -95
  111. package/dist/hooks/useAdjustmentHistory.js +0 -578
  112. package/dist/hooks/useAdjustmentHistoryBatch.d.ts +0 -177
  113. package/dist/hooks/useAdjustmentHistoryBatch.js +0 -1189
  114. package/dist/hooks/useGallerySwipe.d.ts +0 -36
  115. package/dist/hooks/useGallerySwipe.js +0 -344
  116. package/dist/hooks/usePaging.d.ts +0 -89
  117. package/dist/hooks/usePaging.js +0 -211
  118. package/dist/hooks/usePreset.d.ts +0 -82
  119. package/dist/hooks/usePreset.js +0 -344
  120. package/dist/lib/context/EditorContext.d.ts +0 -28
  121. package/dist/lib/context/EditorContext.js +0 -60
  122. package/dist/lib/context/EditorProcessingService.d.ts +0 -36
  123. package/dist/lib/context/EditorProcessingService.js +0 -249
  124. package/dist/lib/editor/honcho-editor.d.ts +0 -324
  125. package/dist/lib/editor/honcho-editor.js +0 -825
  126. package/dist/lib/hooks/useEditor.d.ts +0 -22
  127. package/dist/lib/hooks/useEditor.js +0 -35
  128. package/dist/lib/hooks/useEditorHeadless.d.ts +0 -34
  129. package/dist/lib/hooks/useEditorHeadless.js +0 -207
  130. package/dist/lib/hooks/useImageProcessor.d.ts +0 -18
  131. package/dist/lib/hooks/useImageProcessor.js +0 -113
  132. package/dist/setupTests.d.ts +0 -1
  133. package/dist/setupTests.js +0 -1
  134. package/dist/themes/colors.d.ts +0 -12
  135. package/dist/themes/colors.js +0 -12
  136. package/dist/themes/honchoTheme.d.ts +0 -25
  137. package/dist/themes/honchoTheme.js +0 -94
  138. package/dist/utils/adjustment.d.ts +0 -6
  139. package/dist/utils/adjustment.js +0 -48
  140. package/dist/utils/imageLoader.d.ts +0 -11
  141. package/dist/utils/imageLoader.js +0 -48
  142. package/dist/utils/isMobile.d.ts +0 -1
  143. package/dist/utils/isMobile.js +0 -5
@@ -1,35 +0,0 @@
1
- import React from "react";
2
- import { AdjustmentState } from '../../hooks/editor/type';
3
- interface Props {
4
- tempScore: number;
5
- tintScore: number;
6
- vibranceScore: number;
7
- saturationScore: number;
8
- exposureScore: number;
9
- HighlightsScore: number;
10
- shadowsScore: number;
11
- whitesScore: number;
12
- blacksScore: number;
13
- contrastScore: number;
14
- clarityScore: number;
15
- sharpnessScore: number;
16
- expandedPanels: string[];
17
- setTempScore: (field: keyof AdjustmentState, value: number) => void;
18
- setTintScore: (field: keyof AdjustmentState, value: number) => void;
19
- setExposureScore: (field: keyof AdjustmentState, value: number) => void;
20
- setVibranceScore: (field: keyof AdjustmentState, value: number) => void;
21
- setSaturationScore: (field: keyof AdjustmentState, value: number) => void;
22
- setHighlightsScore: (field: keyof AdjustmentState, value: number) => void;
23
- setShadowsScore: (field: keyof AdjustmentState, value: number) => void;
24
- setWhitesScore: (field: keyof AdjustmentState, value: number) => void;
25
- setBlacksScore: (field: keyof AdjustmentState, value: number) => void;
26
- setContrastScore: (field: keyof AdjustmentState, value: number) => void;
27
- setClarityScore: (field: keyof AdjustmentState, value: number) => void;
28
- setSharpnessScore: (field: keyof AdjustmentState, value: number) => void;
29
- onPanelChange: (panel: string) => (event: React.SyntheticEvent, isExpanded: boolean) => void;
30
- isBatchMode: boolean;
31
- onDragStart: () => void;
32
- onDragEnd: () => void;
33
- }
34
- export default function HAccordionColorAdjustment(props: Props): import("react/jsx-runtime").JSX.Element;
35
- export {};
@@ -1,31 +0,0 @@
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
- }
@@ -1,12 +0,0 @@
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 {};
@@ -1,183 +0,0 @@
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
- }
@@ -1,20 +0,0 @@
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 {};