@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.
Files changed (139) hide show
  1. package/package.json +1 -1
  2. package/dist/color.d.ts +0 -9
  3. package/dist/color.js +0 -9
  4. package/dist/components/editor/GalleryAlbum/AlbumImageGallery.d.ts +0 -8
  5. package/dist/components/editor/GalleryAlbum/AlbumImageGallery.js +0 -28
  6. package/dist/components/editor/GalleryAlbum/ImageItem.d.ts +0 -10
  7. package/dist/components/editor/GalleryAlbum/ImageItem.js +0 -81
  8. package/dist/components/editor/HAccordionAspectRatio.d.ts +0 -14
  9. package/dist/components/editor/HAccordionAspectRatio.js +0 -102
  10. package/dist/components/editor/HAccordionColor.d.ts +0 -16
  11. package/dist/components/editor/HAccordionColor.js +0 -282
  12. package/dist/components/editor/HAccordionColorAdjustment.d.ts +0 -35
  13. package/dist/components/editor/HAccordionColorAdjustment.js +0 -31
  14. package/dist/components/editor/HAccordionDetails.d.ts +0 -12
  15. package/dist/components/editor/HAccordionDetails.js +0 -157
  16. package/dist/components/editor/HAccordionLight.d.ts +0 -20
  17. package/dist/components/editor/HAccordionLight.js +0 -414
  18. package/dist/components/editor/HAccordionPreset.d.ts +0 -23
  19. package/dist/components/editor/HAccordionPreset.js +0 -50
  20. package/dist/components/editor/HAlertBox.d.ts +0 -8
  21. package/dist/components/editor/HAlertBox.js +0 -55
  22. package/dist/components/editor/HAspectRatioMobile.d.ts +0 -0
  23. package/dist/components/editor/HAspectRatioMobile.js +0 -1
  24. package/dist/components/editor/HBulkAccordionColorAdjustment.d.ts +0 -55
  25. package/dist/components/editor/HBulkAccordionColorAdjustment.js +0 -31
  26. package/dist/components/editor/HBulkAccordionColorAdjustmentColors.d.ts +0 -20
  27. package/dist/components/editor/HBulkAccordionColorAdjustmentColors.js +0 -121
  28. package/dist/components/editor/HBulkAccordionColorAdjustmentDetails.d.ts +0 -12
  29. package/dist/components/editor/HBulkAccordionColorAdjustmentDetails.js +0 -65
  30. package/dist/components/editor/HBulkAccordionColorAdjustmentLight.d.ts +0 -28
  31. package/dist/components/editor/HBulkAccordionColorAdjustmentLight.js +0 -177
  32. package/dist/components/editor/HBulkColorAdjustmentMobile.d.ts +0 -53
  33. package/dist/components/editor/HBulkColorAdjustmentMobile.js +0 -16
  34. package/dist/components/editor/HBulkColorMobile.d.ts +0 -20
  35. package/dist/components/editor/HBulkColorMobile.js +0 -121
  36. package/dist/components/editor/HBulkDetailsMobile.d.ts +0 -12
  37. package/dist/components/editor/HBulkDetailsMobile.js +0 -65
  38. package/dist/components/editor/HBulkLightMobile.d.ts +0 -28
  39. package/dist/components/editor/HBulkLightMobile.js +0 -192
  40. package/dist/components/editor/HBulkPreset.d.ts +0 -24
  41. package/dist/components/editor/HBulkPreset.js +0 -43
  42. package/dist/components/editor/HBulkPresetMobile.d.ts +0 -15
  43. package/dist/components/editor/HBulkPresetMobile.js +0 -26
  44. package/dist/components/editor/HDialogBox.d.ts +0 -18
  45. package/dist/components/editor/HDialogBox.js +0 -51
  46. package/dist/components/editor/HDialogCopy.d.ts +0 -40
  47. package/dist/components/editor/HDialogCopy.js +0 -80
  48. package/dist/components/editor/HFooter.d.ts +0 -12
  49. package/dist/components/editor/HFooter.js +0 -24
  50. package/dist/components/editor/HHeaderEditor.d.ts +0 -17
  51. package/dist/components/editor/HHeaderEditor.js +0 -36
  52. package/dist/components/editor/HImageEditorBulkDekstop.d.ts +0 -15
  53. package/dist/components/editor/HImageEditorBulkDekstop.js +0 -29
  54. package/dist/components/editor/HImageEditorBulkMobile.d.ts +0 -72
  55. package/dist/components/editor/HImageEditorBulkMobile.js +0 -81
  56. package/dist/components/editor/HImageEditorDekstop.d.ts +0 -15
  57. package/dist/components/editor/HImageEditorDekstop.js +0 -29
  58. package/dist/components/editor/HImageEditorMobile.d.ts +0 -51
  59. package/dist/components/editor/HImageEditorMobile.js +0 -92
  60. package/dist/components/editor/HImageEditorMobileLayout.d.ts +0 -14
  61. package/dist/components/editor/HImageEditorMobileLayout.js +0 -58
  62. package/dist/components/editor/HModalEditorDekstop.d.ts +0 -13
  63. package/dist/components/editor/HModalEditorDekstop.js +0 -22
  64. package/dist/components/editor/HModalMobile.d.ts +0 -13
  65. package/dist/components/editor/HModalMobile.js +0 -7
  66. package/dist/components/editor/HPresetDelete.d.ts +0 -7
  67. package/dist/components/editor/HPresetDelete.js +0 -7
  68. package/dist/components/editor/HPresetOptionMenu.d.ts +0 -9
  69. package/dist/components/editor/HPresetOptionMenu.js +0 -20
  70. package/dist/components/editor/HSliderColorMobile.d.ts +0 -16
  71. package/dist/components/editor/HSliderColorMobile.js +0 -270
  72. package/dist/components/editor/HSliderDetailsMobile.d.ts +0 -12
  73. package/dist/components/editor/HSliderDetailsMobile.js +0 -154
  74. package/dist/components/editor/HSliderLightMobile.d.ts +0 -20
  75. package/dist/components/editor/HSliderLightMobile.js +0 -420
  76. package/dist/components/editor/HTabAspectRatioMobile.d.ts +0 -0
  77. package/dist/components/editor/HTabAspectRatioMobile.js +0 -1
  78. package/dist/components/editor/HTabColorAdjustmentMobile.d.ts +0 -33
  79. package/dist/components/editor/HTabColorAdjustmentMobile.js +0 -16
  80. package/dist/components/editor/HTabPresetMobile.d.ts +0 -14
  81. package/dist/components/editor/HTabPresetMobile.js +0 -10
  82. package/dist/components/editor/HTextField.d.ts +0 -14
  83. package/dist/components/editor/HTextField.js +0 -51
  84. package/dist/components/editor/HWatermarkView.d.ts +0 -6
  85. package/dist/components/editor/HWatermarkView.js +0 -16
  86. package/dist/components/editor/svg/Tick.d.ts +0 -2
  87. package/dist/components/editor/svg/Tick.js +0 -6
  88. package/dist/components/modal/HModalDialog.d.ts +0 -12
  89. package/dist/components/modal/HModalDialog.js +0 -18
  90. package/dist/components/modal/HModalRename.d.ts +0 -14
  91. package/dist/components/modal/HModalRename.js +0 -35
  92. package/dist/hooks/demo/HonchoEditorBulkDemo.d.ts +0 -3
  93. package/dist/hooks/demo/HonchoEditorBulkDemo.js +0 -410
  94. package/dist/hooks/demo/HonchoEditorSingleCleanDemo.d.ts +0 -3
  95. package/dist/hooks/demo/HonchoEditorSingleCleanDemo.js +0 -354
  96. package/dist/hooks/demo/index.d.ts +0 -2
  97. package/dist/hooks/demo/index.js +0 -2
  98. package/dist/hooks/editor/type.d.ts +0 -174
  99. package/dist/hooks/editor/type.js +0 -1
  100. package/dist/hooks/editor/useHonchoEditorBulk.d.ts +0 -96
  101. package/dist/hooks/editor/useHonchoEditorBulk.js +0 -427
  102. package/dist/hooks/editor/useHonchoEditorSingle.d.ts +0 -44
  103. package/dist/hooks/editor/useHonchoEditorSingle.js +0 -162
  104. package/dist/hooks/useAdjustmentHistory.d.ts +0 -97
  105. package/dist/hooks/useAdjustmentHistory.js +0 -493
  106. package/dist/hooks/useAdjustmentHistoryBatch.d.ts +0 -177
  107. package/dist/hooks/useAdjustmentHistoryBatch.js +0 -1189
  108. package/dist/hooks/useGallerySwipe.d.ts +0 -36
  109. package/dist/hooks/useGallerySwipe.js +0 -344
  110. package/dist/hooks/usePaging.d.ts +0 -89
  111. package/dist/hooks/usePaging.js +0 -211
  112. package/dist/hooks/usePreset.d.ts +0 -82
  113. package/dist/hooks/usePreset.js +0 -344
  114. package/dist/index.d.ts +0 -41
  115. package/dist/index.js +0 -44
  116. package/dist/lib/context/EditorContext.d.ts +0 -28
  117. package/dist/lib/context/EditorContext.js +0 -60
  118. package/dist/lib/context/EditorProcessingService.d.ts +0 -36
  119. package/dist/lib/context/EditorProcessingService.js +0 -249
  120. package/dist/lib/editor/honcho-editor.d.ts +0 -324
  121. package/dist/lib/editor/honcho-editor.js +0 -825
  122. package/dist/lib/hooks/useEditor.d.ts +0 -22
  123. package/dist/lib/hooks/useEditor.js +0 -35
  124. package/dist/lib/hooks/useEditorHeadless.d.ts +0 -34
  125. package/dist/lib/hooks/useEditorHeadless.js +0 -207
  126. package/dist/lib/hooks/useImageProcessor.d.ts +0 -18
  127. package/dist/lib/hooks/useImageProcessor.js +0 -113
  128. package/dist/setupTests.d.ts +0 -1
  129. package/dist/setupTests.js +0 -1
  130. package/dist/themes/colors.d.ts +0 -12
  131. package/dist/themes/colors.js +0 -12
  132. package/dist/themes/honchoTheme.d.ts +0 -25
  133. package/dist/themes/honchoTheme.js +0 -94
  134. package/dist/utils/adjustment.d.ts +0 -6
  135. package/dist/utils/adjustment.js +0 -48
  136. package/dist/utils/imageLoader.d.ts +0 -11
  137. package/dist/utils/imageLoader.js +0 -48
  138. package/dist/utils/isMobile.d.ts +0 -1
  139. package/dist/utils/isMobile.js +0 -5
@@ -1,121 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { Stack, Typography, CardMedia, IconButton } from "@mui/material";
3
- import useHonchoTypography from "../../themes/honchoTheme";
4
- import useColors from '../../themes/colors';
5
- export default function HBulkColorMobile(props) {
6
- const typography = useHonchoTypography();
7
- const colors = useColors();
8
- return (_jsx(_Fragment, { children: _jsxs(Stack, { spacing: 0, direction: "column", sx: { width: '100%', pl: "10px", m: "0px" }, children: [_jsx(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", sx: { mb: "6px" }, children: _jsx(Typography, { sx: { ...typography.bodyMedium, color: colors.surface }, children: "Temperature" }) }), _jsxs(Stack, { direction: "row", justifyContent: "space-between", sx: { p: "0px", m: "0px", pt: "2px", pb: "16px" }, children: [_jsx(IconButton, { onClick: props.onTempDecreaseMax, sx: {
9
- width: "76px",
10
- height: "28px",
11
- py: "2px",
12
- mr: "12px",
13
- border: "1px solid white",
14
- borderRadius: "100px",
15
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-max-button.svg", sx: { width: "20px", height: "20px", mr: "2px" } }) }), _jsx(IconButton, { onClick: props.onTempDecrease, sx: {
16
- width: "76px",
17
- height: "28px",
18
- py: "2px",
19
- mr: "12px",
20
- border: "1px solid white",
21
- borderRadius: "100px",
22
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-increment-button.svg", sx: { width: "20px", height: "20px", mr: "3px" } }) }), _jsx(IconButton, { onClick: props.onTempIncrease, sx: {
23
- width: "76px",
24
- height: "28px",
25
- py: "2px",
26
- mr: "12px",
27
- border: "1px solid white",
28
- borderRadius: "100px",
29
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-increment-button-right.svg", sx: { width: "20px", height: "20px", ml: "3px" } }) }), _jsx(IconButton, { onClick: props.onTempIncreaseMax, sx: {
30
- width: "76px",
31
- height: "28px",
32
- py: "2px",
33
- mr: "12px",
34
- border: "1px solid white",
35
- borderRadius: "100px",
36
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-max-button-right.svg", sx: { width: "20px", height: "20px", ml: "2px" } }) })] }), _jsx(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", sx: { mb: "6px" }, children: _jsx(Typography, { sx: { ...typography.bodyMedium, color: colors.surface }, children: "Tint" }) }), _jsxs(Stack, { direction: "row", justifyContent: "space-between", sx: { p: "0px", m: "0px", pt: "2px", pb: "16px" }, children: [_jsx(IconButton, { onClick: props.onTintDecreaseMax, sx: {
37
- width: "76px",
38
- height: "28px",
39
- py: "2px",
40
- mr: "12px",
41
- border: "1px solid white",
42
- borderRadius: "100px",
43
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-max-button.svg", sx: { width: "20px", height: "20px", mr: "2px" } }) }), _jsx(IconButton, { onClick: props.onTintDecrease, sx: {
44
- width: "76px",
45
- height: "28px",
46
- py: "2px",
47
- mr: "12px",
48
- border: "1px solid white",
49
- borderRadius: "100px",
50
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-increment-button.svg", sx: { width: "20px", height: "20px", mr: "3px" } }) }), _jsx(IconButton, { onClick: props.onTintIncrease, sx: {
51
- width: "76px",
52
- height: "28px",
53
- py: "2px",
54
- mr: "12px",
55
- border: "1px solid white",
56
- borderRadius: "100px",
57
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-increment-button-right.svg", sx: { width: "20px", height: "20px", ml: "3px" } }) }), _jsx(IconButton, { onClick: props.onTintIncreaseMax, sx: {
58
- width: "76px",
59
- height: "28px",
60
- py: "2px",
61
- mr: "12px",
62
- border: "1px solid white",
63
- borderRadius: "100px",
64
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-max-button-right.svg", sx: { width: "20px", height: "20px", ml: "2px" } }) })] }), _jsx(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", sx: { mb: "6px" }, children: _jsx(Typography, { sx: { ...typography.bodyMedium, color: colors.surface }, children: "Vibrance" }) }), _jsxs(Stack, { direction: "row", justifyContent: "space-between", sx: { p: "0px", m: "0px", pt: "2px", pb: "16px" }, children: [_jsx(IconButton, { onClick: props.onVibranceDecreaseMax, sx: {
65
- width: "76px",
66
- height: "28px",
67
- py: "2px",
68
- mr: "12px",
69
- border: "1px solid white",
70
- borderRadius: "100px",
71
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-max-button.svg", sx: { width: "20px", height: "20px", mr: "2px" } }) }), _jsx(IconButton, { onClick: props.onVibranceDecrease, sx: {
72
- width: "76px",
73
- height: "28px",
74
- py: "2px",
75
- mr: "12px",
76
- border: "1px solid white",
77
- borderRadius: "100px",
78
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-increment-button.svg", sx: { width: "20px", height: "20px", mr: "3px" } }) }), _jsx(IconButton, { onClick: props.onVibranceIncrease, sx: {
79
- width: "76px",
80
- height: "28px",
81
- py: "2px",
82
- mr: "12px",
83
- border: "1px solid white",
84
- borderRadius: "100px",
85
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-increment-button-right.svg", sx: { width: "20px", height: "20px", ml: "3px" } }) }), _jsx(IconButton, { onClick: props.onVibranceIncreaseMax, sx: {
86
- width: "76px",
87
- height: "28px",
88
- py: "2px",
89
- mr: "12px",
90
- border: "1px solid white",
91
- borderRadius: "100px",
92
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-max-button-right.svg", sx: { width: "20px", height: "20px", ml: "2px" } }) })] }), _jsx(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", sx: { mb: "6px" }, children: _jsx(Typography, { sx: { ...typography.bodyMedium, color: colors.surface }, children: "Saturation" }) }), _jsxs(Stack, { direction: "row", justifyContent: "space-between", sx: { p: "0px", m: "0px", pt: "2px", pb: "16px" }, children: [_jsx(IconButton, { onClick: props.onSaturationDecreaseMax, sx: {
93
- width: "76px",
94
- height: "28px",
95
- py: "2px",
96
- mr: "12px",
97
- border: "1px solid white",
98
- borderRadius: "100px",
99
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-max-button.svg", sx: { width: "20px", height: "20px", mr: "2px" } }) }), _jsx(IconButton, { onClick: props.onSaturationDecrease, sx: {
100
- width: "76px",
101
- height: "28px",
102
- py: "2px",
103
- mr: "12px",
104
- border: "1px solid white",
105
- borderRadius: "100px",
106
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-increment-button.svg", sx: { width: "20px", height: "20px", mr: "3px" } }) }), _jsx(IconButton, { onClick: props.onSaturationIncrease, sx: {
107
- width: "76px",
108
- height: "28px",
109
- py: "2px",
110
- mr: "12px",
111
- border: "1px solid white",
112
- borderRadius: "100px",
113
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-increment-button-right.svg", sx: { width: "20px", height: "20px", ml: "3px" } }) }), _jsx(IconButton, { onClick: props.onSaturationIncreaseMax, sx: {
114
- width: "76px",
115
- height: "28px",
116
- py: "2px",
117
- mr: "12px",
118
- border: "1px solid white",
119
- borderRadius: "100px",
120
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-max-button-right.svg", sx: { width: "20px", height: "20px", ml: "2px" } }) })] })] }) }));
121
- }
@@ -1,12 +0,0 @@
1
- interface Props {
2
- onClarityDecreaseMax: () => void;
3
- onClarityDecrease: () => void;
4
- onClarityIncrease: () => void;
5
- onClarityIncreaseMax: () => void;
6
- onSharpnessDecreaseMax: () => void;
7
- onSharpnessDecrease: () => void;
8
- onSharpnessIncrease: () => void;
9
- onSharpnessIncreaseMax: () => void;
10
- }
11
- export default function HBulkDetailsMobile(props: Props): import("react/jsx-runtime").JSX.Element;
12
- export {};
@@ -1,65 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { Stack, Typography, CardMedia, IconButton } from "@mui/material";
3
- import useHonchoTypography from "../../themes/honchoTheme";
4
- import useColors from '../../themes/colors';
5
- export default function HBulkDetailsMobile(props) {
6
- const typography = useHonchoTypography();
7
- const colors = useColors();
8
- return (_jsx(_Fragment, { children: _jsxs(Stack, { spacing: 0, direction: "column", sx: { width: '100%', pl: "10px", m: "0px" }, children: [_jsx(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", sx: { mb: "6px" }, children: _jsx(Typography, { sx: { ...typography.bodyMedium, color: colors.surface }, children: "Clarity" }) }), _jsxs(Stack, { direction: "row", justifyContent: "space-between", sx: { p: "0px", m: "0px", pt: "2px", pb: "16px" }, children: [_jsx(IconButton, { onClick: props.onClarityDecreaseMax, sx: {
9
- width: "76px",
10
- height: "28px",
11
- py: "2px",
12
- mr: "12px",
13
- border: "1px solid white",
14
- borderRadius: "100px",
15
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-max-button.svg", sx: { width: "20px", height: "20px", mr: "2px" } }) }), _jsx(IconButton, { onClick: props.onClarityDecrease, sx: {
16
- width: "76px",
17
- height: "28px",
18
- py: "2px",
19
- mr: "12px",
20
- border: "1px solid white",
21
- borderRadius: "100px",
22
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-increment-button.svg", sx: { width: "20px", height: "20px", mr: "3px" } }) }), _jsx(IconButton, { onClick: props.onClarityIncrease, sx: {
23
- width: "76px",
24
- height: "28px",
25
- py: "2px",
26
- mr: "12px",
27
- border: "1px solid white",
28
- borderRadius: "100px",
29
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-increment-button-right.svg", sx: { width: "20px", height: "20px", ml: "3px" } }) }), _jsx(IconButton, { onClick: props.onClarityIncreaseMax, sx: {
30
- width: "76px",
31
- height: "28px",
32
- py: "2px",
33
- mr: "12px",
34
- border: "1px solid white",
35
- borderRadius: "100px",
36
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-max-button-right.svg", sx: { width: "20px", height: "20px", ml: "2px" } }) })] }), _jsx(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", sx: { mb: "6px" }, children: _jsx(Typography, { sx: { ...typography.bodyMedium, color: colors.surface }, children: "Sharpness" }) }), _jsxs(Stack, { direction: "row", justifyContent: "space-between", sx: { p: "0px", m: "0px", pt: "2px", pb: "2px" }, children: [_jsx(IconButton, { onClick: props.onSharpnessDecreaseMax, sx: {
37
- width: "76px",
38
- height: "28px",
39
- py: "2px",
40
- mr: "12px",
41
- border: "1px solid white",
42
- borderRadius: "100px",
43
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-max-button.svg", sx: { width: "20px", height: "20px", mr: "2px" } }) }), _jsx(IconButton, { onClick: props.onSharpnessDecrease, sx: {
44
- width: "76px",
45
- height: "28px",
46
- py: "2px",
47
- mr: "12px",
48
- border: "1px solid white",
49
- borderRadius: "100px",
50
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-increment-button.svg", sx: { width: "20px", height: "20px", mr: "3px" } }) }), _jsx(IconButton, { onClick: props.onSharpnessIncrease, sx: {
51
- width: "76px",
52
- height: "28px",
53
- py: "2px",
54
- mr: "12px",
55
- border: "1px solid white",
56
- borderRadius: "100px",
57
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-increment-button-right.svg", sx: { width: "20px", height: "20px", ml: "3px" } }) }), _jsx(IconButton, { onClick: props.onSharpnessIncreaseMax, sx: {
58
- width: "76px",
59
- height: "28px",
60
- py: "2px",
61
- mr: "12px",
62
- border: "1px solid white",
63
- borderRadius: "100px",
64
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-max-button-right.svg", sx: { width: "20px", height: "20px", ml: "2px" } }) })] })] }) }));
65
- }
@@ -1,28 +0,0 @@
1
- interface Props {
2
- onExposureDecreaseMax: () => void;
3
- onExposureDecrease: () => void;
4
- onExposureIncrease: () => void;
5
- onExposureIncreaseMax: () => void;
6
- onContrastDecreaseMax: () => void;
7
- onContrastDecrease: () => void;
8
- onContrastIncrease: () => void;
9
- onContrastIncreaseMax: () => void;
10
- onHighlightsDecreaseMax: () => void;
11
- onHighlightsDecrease: () => void;
12
- onHighlightsIncrease: () => void;
13
- onHighlightsIncreaseMax: () => void;
14
- onShadowsDecreaseMax: () => void;
15
- onShadowsDecrease: () => void;
16
- onShadowsIncrease: () => void;
17
- onShadowsIncreaseMax: () => void;
18
- onWhitesDecreaseMax: () => void;
19
- onWhitesDecrease: () => void;
20
- onWhitesIncrease: () => void;
21
- onWhitesIncreaseMax: () => void;
22
- onBlacksDecreaseMax: () => void;
23
- onBlacksDecrease: () => void;
24
- onBlacksIncrease: () => void;
25
- onBlacksIncreaseMax: () => void;
26
- }
27
- export default function HBulkLightMobile(props: Props): import("react/jsx-runtime").JSX.Element;
28
- export {};
@@ -1,192 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { Stack, Typography, CardMedia, IconButton } from "@mui/material";
3
- import useHonchoTypography from "../../themes/honchoTheme";
4
- import useColors from '../../themes/colors';
5
- export default function HBulkLightMobile(props) {
6
- const typography = useHonchoTypography();
7
- const colors = useColors();
8
- const formatValue = (value) => {
9
- if (value > 0)
10
- return `+${value}`;
11
- return value.toString();
12
- };
13
- const handleInputChange = (event, min, max, onChange) => {
14
- const value = event.target.value;
15
- if (value === '+' || value === '-')
16
- return;
17
- let numericValue = parseInt(value, 10);
18
- if (isNaN(numericValue))
19
- numericValue = 0;
20
- const clampedValue = Math.max(min, Math.min(max, numericValue));
21
- onChange(clampedValue);
22
- };
23
- return (_jsx(_Fragment, { children: _jsxs(Stack, { spacing: 0, direction: "column", sx: { width: '100%', pl: "10px", m: "0px" }, children: [_jsx(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", sx: { mb: "6px" }, children: _jsx(Typography, { sx: { ...typography.bodyMedium, color: colors.surface }, children: "Exposure" }) }), _jsxs(Stack, { direction: "row", justifyContent: "space-between", sx: { p: "0px", m: "0px", pt: "2px", pb: "16px" }, children: [_jsx(IconButton, { onClick: props.onExposureDecreaseMax, sx: {
24
- width: "76px",
25
- height: "28px",
26
- py: "2px",
27
- mr: "12px",
28
- border: "1px solid white",
29
- borderRadius: "100px",
30
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-max-button.svg", sx: { width: "20px", height: "20px", mr: "2px" } }) }), _jsx(IconButton, { onClick: props.onExposureDecrease, sx: {
31
- width: "76px",
32
- height: "28px",
33
- py: "2px",
34
- mr: "12px",
35
- border: "1px solid white",
36
- borderRadius: "100px",
37
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-increment-button.svg", sx: { width: "20px", height: "20px", mr: "3px" } }) }), _jsx(IconButton, { onClick: props.onExposureIncrease, sx: {
38
- width: "76px",
39
- height: "28px",
40
- py: "2px",
41
- mr: "12px",
42
- border: "1px solid white",
43
- borderRadius: "100px",
44
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-increment-button-right.svg", sx: { width: "20px", height: "20px", ml: "3px" } }) }), _jsx(IconButton, { onClick: props.onExposureIncreaseMax, sx: {
45
- width: "76px",
46
- height: "28px",
47
- py: "2px",
48
- mr: "12px",
49
- border: "1px solid white",
50
- borderRadius: "100px",
51
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-max-button-right.svg", sx: { width: "20px", height: "20px", ml: "2px" } }) })] }), _jsx(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", sx: { mb: "6px" }, children: _jsx(Typography, { sx: { ...typography.bodyMedium, color: colors.surface }, children: "Contrast" }) }), _jsxs(Stack, { direction: "row", justifyContent: "space-between", sx: { p: "0px", m: "0px", pt: "2px", pb: "16px" }, children: [_jsx(IconButton, { onClick: props.onContrastDecreaseMax, sx: {
52
- width: "76px",
53
- height: "28px",
54
- py: "2px",
55
- mr: "12px",
56
- border: "1px solid white",
57
- borderRadius: "100px",
58
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-max-button.svg", sx: { width: "20px", height: "20px", mr: "2px" } }) }), _jsx(IconButton, { onClick: props.onContrastDecrease, sx: {
59
- width: "76px",
60
- height: "28px",
61
- py: "2px",
62
- mr: "12px",
63
- border: "1px solid white",
64
- borderRadius: "100px",
65
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-increment-button.svg", sx: { width: "20px", height: "20px", mr: "3px" } }) }), _jsx(IconButton, { onClick: props.onContrastIncrease, sx: {
66
- width: "76px",
67
- height: "28px",
68
- py: "2px",
69
- mr: "12px",
70
- border: "1px solid white",
71
- borderRadius: "100px",
72
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-increment-button-right.svg", sx: { width: "20px", height: "20px", ml: "3px" } }) }), _jsx(IconButton, { onClick: props.onContrastIncreaseMax, sx: {
73
- width: "76px",
74
- height: "28px",
75
- py: "2px",
76
- mr: "12px",
77
- border: "1px solid white",
78
- borderRadius: "100px",
79
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-max-button-right.svg", sx: { width: "20px", height: "20px", ml: "2px" } }) })] }), _jsx(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", sx: { mb: "6px" }, children: _jsx(Typography, { sx: { ...typography.bodyMedium, color: colors.surface }, children: "Highlights" }) }), _jsxs(Stack, { direction: "row", justifyContent: "space-between", sx: { p: "0px", m: "0px", pt: "2px", pb: "16px" }, children: [_jsx(IconButton, { onClick: props.onHighlightsDecreaseMax, sx: {
80
- width: "76px",
81
- height: "28px",
82
- py: "2px",
83
- mr: "12px",
84
- border: "1px solid white",
85
- borderRadius: "100px",
86
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-max-button.svg", sx: { width: "20px", height: "20px", mr: "2px" } }) }), _jsx(IconButton, { onClick: props.onHighlightsDecrease, sx: {
87
- width: "76px",
88
- height: "28px",
89
- py: "2px",
90
- mr: "12px",
91
- border: "1px solid white",
92
- borderRadius: "100px",
93
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-increment-button.svg", sx: { width: "20px", height: "20px", mr: "3px" } }) }), _jsx(IconButton, { onClick: props.onHighlightsIncrease, sx: {
94
- width: "76px",
95
- height: "28px",
96
- py: "2px",
97
- mr: "12px",
98
- border: "1px solid white",
99
- borderRadius: "100px",
100
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-increment-button-right.svg", sx: { width: "20px", height: "20px", ml: "3px" } }) }), _jsx(IconButton, { onClick: props.onHighlightsIncreaseMax, sx: {
101
- width: "76px",
102
- height: "28px",
103
- py: "2px",
104
- mr: "12px",
105
- border: "1px solid white",
106
- borderRadius: "100px",
107
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-max-button-right.svg", sx: { width: "20px", height: "20px", ml: "2px" } }) })] }), _jsx(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", sx: { mb: "6px" }, children: _jsx(Typography, { sx: { ...typography.bodyMedium, color: colors.surface }, children: "Shadows" }) }), _jsxs(Stack, { direction: "row", justifyContent: "space-between", sx: { p: "0px", m: "0px", pt: "2px", pb: "16px" }, children: [_jsx(IconButton, { onClick: props.onShadowsDecreaseMax, sx: {
108
- width: "76px",
109
- height: "28px",
110
- py: "2px",
111
- mr: "12px",
112
- border: "1px solid white",
113
- borderRadius: "100px",
114
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-max-button.svg", sx: { width: "20px", height: "20px", mr: "2px" } }) }), _jsx(IconButton, { onClick: props.onShadowsDecrease, sx: {
115
- width: "76px",
116
- height: "28px",
117
- py: "2px",
118
- mr: "12px",
119
- border: "1px solid white",
120
- borderRadius: "100px",
121
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-increment-button.svg", sx: { width: "20px", height: "20px", mr: "3px" } }) }), _jsx(IconButton, { onClick: props.onShadowsIncrease, sx: {
122
- width: "76px",
123
- height: "28px",
124
- py: "2px",
125
- mr: "12px",
126
- border: "1px solid white",
127
- borderRadius: "100px",
128
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-increment-button-right.svg", sx: { width: "20px", height: "20px", ml: "3px" } }) }), _jsx(IconButton, { onClick: props.onShadowsIncreaseMax, sx: {
129
- width: "76px",
130
- height: "28px",
131
- py: "2px",
132
- mr: "12px",
133
- border: "1px solid white",
134
- borderRadius: "100px",
135
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-max-button-right.svg", sx: { width: "20px", height: "20px", ml: "2px" } }) })] }), _jsx(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", sx: { mb: "6px" }, children: _jsx(Typography, { sx: { ...typography.bodyMedium, color: colors.surface }, children: "Whites" }) }), _jsxs(Stack, { direction: "row", justifyContent: "space-between", sx: { p: "0px", m: "0px", pt: "2px", pb: "16px" }, children: [_jsx(IconButton, { onClick: props.onWhitesDecreaseMax, sx: {
136
- width: "76px",
137
- height: "28px",
138
- py: "2px",
139
- mr: "12px",
140
- border: "1px solid white",
141
- borderRadius: "100px",
142
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-max-button.svg", sx: { width: "20px", height: "20px", mr: "2px" } }) }), _jsx(IconButton, { onClick: props.onWhitesDecrease, sx: {
143
- width: "76px",
144
- height: "28px",
145
- py: "2px",
146
- mr: "12px",
147
- border: "1px solid white",
148
- borderRadius: "100px",
149
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-increment-button.svg", sx: { width: "20px", height: "20px", mr: "3px" } }) }), _jsx(IconButton, { onClick: props.onWhitesIncrease, sx: {
150
- width: "76px",
151
- height: "28px",
152
- py: "2px",
153
- mr: "12px",
154
- border: "1px solid white",
155
- borderRadius: "100px",
156
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-increment-button-right.svg", sx: { width: "20px", height: "20px", ml: "3px" } }) }), _jsx(IconButton, { onClick: props.onWhitesIncreaseMax, sx: {
157
- width: "76px",
158
- height: "28px",
159
- py: "2px",
160
- mr: "12px",
161
- border: "1px solid white",
162
- borderRadius: "100px",
163
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-max-button-right.svg", sx: { width: "20px", height: "20px", ml: "2px" } }) })] }), _jsx(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", sx: { mb: "6px" }, children: _jsx(Typography, { sx: { ...typography.bodyMedium, color: colors.surface }, children: "Blacks" }) }), _jsxs(Stack, { direction: "row", justifyContent: "space-between", sx: { p: "0px", m: "0px", pt: "2px", pb: "16px" }, children: [_jsx(IconButton, { onClick: props.onBlacksDecreaseMax, sx: {
164
- width: "76px",
165
- height: "28px",
166
- py: "2px",
167
- mr: "12px",
168
- border: "1px solid white",
169
- borderRadius: "100px",
170
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-max-button.svg", sx: { width: "20px", height: "20px", mr: "2px" } }) }), _jsx(IconButton, { onClick: props.onBlacksDecrease, sx: {
171
- width: "76px",
172
- height: "28px",
173
- py: "2px",
174
- mr: "12px",
175
- border: "1px solid white",
176
- borderRadius: "100px",
177
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-increment-button.svg", sx: { width: "20px", height: "20px", mr: "3px" } }) }), _jsx(IconButton, { onClick: props.onBlacksIncrease, sx: {
178
- width: "76px",
179
- height: "28px",
180
- py: "2px",
181
- mr: "12px",
182
- border: "1px solid white",
183
- borderRadius: "100px",
184
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-increment-button-right.svg", sx: { width: "20px", height: "20px", ml: "3px" } }) }), _jsx(IconButton, { onClick: props.onBlacksIncreaseMax, sx: {
185
- width: "76px",
186
- height: "28px",
187
- py: "2px",
188
- mr: "12px",
189
- border: "1px solid white",
190
- borderRadius: "100px",
191
- }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/bulk-editor-max-button-right.svg", sx: { width: "20px", height: "20px", ml: "2px" } }) })] })] }) }));
192
- }
@@ -1,24 +0,0 @@
1
- import React from "react";
2
- import { SelectChangeEvent } from "@mui/material";
3
- type Preset = {
4
- id: string;
5
- name: string;
6
- };
7
- interface Props {
8
- presets: Preset[];
9
- selectedPreset: string;
10
- expandedPanels: string[];
11
- presetMenuAnchorEl: null | HTMLElement;
12
- activePresetMenuId: string | null;
13
- isMenuOpen: boolean;
14
- onPanelChange: (panel: string) => (event: React.SyntheticEvent, isExpanded: boolean) => void;
15
- onSelectPreset: (event: SelectChangeEvent<string>) => void;
16
- onPresetMenuClick: (event: React.MouseEvent<HTMLElement>, presetId: string) => void;
17
- onPresetMenuClose: () => void;
18
- onRemovePreset: () => void;
19
- onRenamePreset: () => void;
20
- onDeletePreset: () => void;
21
- onOpenPresetModal: () => void;
22
- }
23
- export default function HBulkPreset(props: Props): import("react/jsx-runtime").JSX.Element;
24
- export {};
@@ -1,43 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { Box, MenuItem, FormControl, Select, Stack, Accordion, AccordionSummary, AccordionDetails, CardMedia, Typography, IconButton, Button } from "@mui/material";
3
- import useHonchoTypography from "../../themes/honchoTheme";
4
- import useColors from "../../themes/colors";
5
- // Static `presets` array has been removed.
6
- export default function HBulkPreset(props) {
7
- const typography = useHonchoTypography();
8
- const colors = useColors();
9
- const isMenuOpen = Boolean(props.presetMenuAnchorEl);
10
- const isPanelExpanded = (panelName) => props.expandedPanels.includes(panelName);
11
- const accordionStyle = {
12
- backgroundColor: colors.onBackground,
13
- color: colors.surface,
14
- '& .MuiAccordionSummary-root': { backgroundColor: colors.onBackground, color: colors.surface },
15
- '& .MuiAccordionDetails-root': { backgroundColor: colors.onBackground, color: colors.surface },
16
- '& .MuiTypography-root': { color: colors.surface },
17
- '& .MuiSvgIcon-root': { color: colors.surface }
18
- };
19
- const CustomSelectIcon = (iconProps) => {
20
- const isExpanded = iconProps.className?.includes('MuiSelect-iconOpen');
21
- return (_jsx(CardMedia, { component: "img", image: isExpanded ? "/v1/svg/expand-editor.svg" : "/v1/svg/expanded-editor.svg", sx: { width: "11.67px", height: "5.83px", right: '14px', position: 'absolute', pointerEvents: 'none' } }));
22
- };
23
- return (_jsx(_Fragment, { children: _jsx(Stack, { children: _jsxs(Accordion, { sx: accordionStyle, expanded: isPanelExpanded('preset'), onChange: props.onPanelChange('preset'), 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, color: colors.surface }, children: "Preset" }), _jsx(CardMedia, { component: "img", image: isPanelExpanded('preset') ? "/v1/svg/expanded-editor.svg" : "/v1/svg/expand-editor.svg", sx: { width: "11.67px", height: "5.83px" } })] }) }), _jsx(AccordionDetails, { sx: { pr: "4px" }, children: _jsx(FormControl, { fullWidth: true, children: _jsxs(Select, { fullWidth: true, value: props.selectedPreset, onChange: props.onSelectPreset, IconComponent: CustomSelectIcon, renderValue: (selectedId) => {
24
- // Handle empty selection case
25
- if (!selectedId) {
26
- return _jsx(Typography, { sx: { ...typography.bodyMedium, color: colors.surface, opacity: 0.7 }, children: "Select Preset" });
27
- }
28
- // Uses props.presets to find the name
29
- const selectedPresetObject = props.presets.find(p => p.id === selectedId);
30
- if (!selectedPresetObject) {
31
- return _jsx(Typography, { sx: { ...typography.bodyMedium, color: colors.surface, opacity: 0.7 }, children: "Select Preset" });
32
- }
33
- return _jsx(Typography, { sx: { ...typography.bodyMedium }, children: selectedPresetObject.name });
34
- }, MenuProps: {
35
- slotProps: { paper: { sx: { backgroundColor: colors.onBackground, color: colors.surface, border: `1px solid ${colors.onSurfaceVariant1}`, mt: '20px', width: '178px', boxShadow: 'none' } } }
36
- }, sx: { border: `1px solid ${colors.outlineVariant}`, height: '44px', width: '215px', boxShadow: 'none' }, children: [_jsx(MenuItem, { value: "", sx: { borderRadius: '4px', py: '4px', my: '0px', px: '0px', mx: '0px' }, children: _jsx(Stack, { direction: "row", justifyContent: "center", alignItems: "center", sx: { width: '100%', py: '0px', px: '0px', mx: '0px', my: '4px' }, children: _jsx(Typography, { sx: {
37
- width: '100%',
38
- textAlign: 'center',
39
- color: colors.surface,
40
- opacity: 0.7,
41
- ...typography.bodyMedium
42
- }, children: "No Preset" }) }) }), props.presets.map((preset) => (_jsx(MenuItem, { value: preset.id, sx: { borderRadius: '4px', py: '4px', my: '0px', px: '0px', mx: '0px' }, children: _jsxs(Stack, { direction: "row", justifyContent: "space-around", alignItems: "center", sx: { width: '100%', py: '0px', px: '0px', mx: '0px', my: '4px' }, children: [_jsx(CardMedia, { component: "img", image: "v1/svg/check-ratio-editor.svg", sx: { width: "20px", height: "20px", mr: '-16px', px: '0px', visibility: props.selectedPreset === preset.id ? 'visible' : 'hidden' } }), _jsx(Typography, { sx: { width: '24px', textWrap: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', display: 'block', color: colors.surface, pr: "82px", pl: "0px", ml: "0px", justifyContent: 'flex-start', ...typography.bodyMedium }, children: preset.name }), _jsx(IconButton, { "aria-label": `Options for ${preset.name}`, onClick: (event) => props.onPresetMenuClick(event, preset.id), sx: { padding: "0px", margin: "0px", mr: "0px" }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/dots-editor.svg", alt: "Options", sx: { width: '20px', height: '20px' } }) })] }) }, preset.id))), _jsx(Box, { sx: { px: '16px', my: '8px' }, children: _jsx(Button, { fullWidth: true, variant: "outlined", sx: { ...typography.labelMedium, height: '40px', color: colors.onBackground, backgroundColor: colors.surface, borderRadius: '100px', borderColor: colors.surface, textTransform: 'none', '&:hover': { backgroundColor: '#e0e0e0', borderColor: colors.surface } }, onClick: props.onOpenPresetModal, children: "Create Preset" }) })] }) }) })] }) }) }));
43
- }
@@ -1,15 +0,0 @@
1
- import React from "react";
2
- import { SelectChangeEvent } from "@mui/material";
3
- type Preset = {
4
- id: string;
5
- name: string;
6
- };
7
- interface Props {
8
- presets: Preset[];
9
- selectedPresetBulk: string;
10
- onOpenPresetModalBulk: () => void;
11
- onSelectPresetBulk: (event: SelectChangeEvent<string>) => void;
12
- onPresetMenuClickBulk: (event: React.MouseEvent<HTMLElement>, presetId: string) => void;
13
- }
14
- export default function HBulkPresetMobile(props: Props): import("react/jsx-runtime").JSX.Element;
15
- export {};
@@ -1,26 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { Typography, Stack, IconButton, CardMedia, Button, MenuItem, Box, FormControl, Select } from "@mui/material";
3
- import useHonchoTypography from "../../themes/honchoTheme";
4
- import useColors from '../../themes/colors';
5
- // Static `presets` array has been removed.
6
- export default function HBulkPresetMobile(props) {
7
- const typography = useHonchoTypography();
8
- const colors = useColors();
9
- const CustomSelectIcon = (iconProps) => {
10
- const isExpanded = iconProps.className?.includes('MuiSelect-iconOpen');
11
- return (_jsx(CardMedia, { component: "img", image: isExpanded ? "/v1/svg/expanded-editor.svg" : "/v1/svg/expand-editor.svg", sx: { width: "11.67px", height: "5.83px", right: '14px', position: 'absolute', pointerEvents: 'none' } }));
12
- };
13
- return (_jsx(_Fragment, { children: _jsxs(Stack, { direction: "column", sx: { px: "0px", mx: "16px", mt: "6px", mb: "0px" }, children: [_jsx(Typography, { sx: { ...typography.bodyMedium, color: colors.surface }, children: "Preset" }), _jsx(FormControl, { fullWidth: true, children: _jsxs(Select, { fullWidth: true, value: props.selectedPresetBulk, onChange: props.onSelectPresetBulk, IconComponent: CustomSelectIcon, renderValue: (selectedId) => {
14
- // Uses props.presets to find the name
15
- const selectedPresetBulkObject = props.presets.find(p => p.id === selectedId);
16
- if (!selectedPresetBulkObject) {
17
- return _jsx(Typography, { sx: { ...typography.bodyMedium, color: colors.surface }, children: "Select" });
18
- }
19
- return _jsx(Typography, { sx: { ...typography.bodyMedium, color: colors.surface }, children: selectedPresetBulkObject.name });
20
- }, MenuProps: {
21
- anchorOrigin: { vertical: 'top', horizontal: 'left' },
22
- transformOrigin: { vertical: 'bottom', horizontal: 'left' },
23
- sx: { marginTop: '-10px' },
24
- slotProps: { paper: { sx: { backgroundColor: colors.onBackground, color: colors.surface, border: `1px solid ${colors.onSurfaceVariant1}`, borderRadius: '4px', width: '328px' } } }
25
- }, sx: { border: `1px solid ${colors.outlineVariant}`, height: '44px', width: '328px', mt: '6px' }, children: [props.presets.map((preset) => (_jsx(MenuItem, { value: preset.id, sx: { padding: '8px 10px', minHeight: 'auto', mb: '4px' }, children: _jsxs(Stack, { direction: "row", alignItems: "center", sx: { width: '100%' }, children: [_jsx(CardMedia, { component: "img", image: "v1/svg/check-ratio-editor.svg", sx: { width: "20px", height: "20px", mr: '12px', px: '0px', visibility: props.selectedPresetBulk === preset.id ? 'visible' : 'hidden' } }), _jsx(Typography, { sx: { width: '24px', textWrap: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', display: 'block', color: colors.surface, pr: "82px", pl: "0px", mr: "165px", justifyContent: 'flex-start', ...typography.bodyMedium }, children: preset.name }), _jsx(IconButton, { "aria-label": `Options for ${preset.name}`, onClick: (event) => props.onPresetMenuClickBulk(event, preset.id), sx: { padding: "0px", margin: "0px", mr: "0px" }, children: _jsx(CardMedia, { component: "img", image: "/v1/svg/dots-editor.svg", alt: "Options", sx: { width: '20px', height: '20px' } }) })] }) }, preset.id))), _jsx(Box, { sx: { px: '16px', my: '8px' }, children: _jsx(Button, { fullWidth: true, variant: "outlined", sx: { ...typography.labelMedium, height: '40px', pt: '5px', color: colors.onBackground, backgroundColor: colors.surface, borderRadius: '100px', borderColor: colors.surface, textTransform: 'none', '&:hover': { backgroundColor: '#e0e0e0', borderColor: colors.surface } }, onClick: props.onOpenPresetModalBulk, children: "Create Preset" }) })] }) })] }) }));
26
- }
@@ -1,18 +0,0 @@
1
- import React, { ReactElement } from "react";
2
- interface Props {
3
- open: boolean;
4
- title: React.ReactNode;
5
- description?: React.ReactNode | ReactElement;
6
- onClose?: () => void;
7
- action?: React.ReactNode;
8
- actionAdjust?: React.ReactNode;
9
- }
10
- export declare function HBaseDialog(props: Props): import("react/jsx-runtime").JSX.Element;
11
- export declare function HDialogForPreset(props: Props): import("react/jsx-runtime").JSX.Element;
12
- interface ButtonProps {
13
- text: string;
14
- onClick: () => void;
15
- }
16
- export declare function PositiveButton(props: ButtonProps): import("react/jsx-runtime").JSX.Element;
17
- export declare function NegativeButton(props: ButtonProps): import("react/jsx-runtime").JSX.Element;
18
- export {};