@searpent/react-image-annotate 2.3.3 → 2.3.5

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 (60) hide show
  1. package/Annotator/examplePhotos.js +30 -30
  2. package/Annotator/examplePhotos_repr.js +28 -28
  3. package/Annotator/index.js +69 -32
  4. package/Annotator/index.story_bugdemo_15_1.js +895 -773
  5. package/Annotator/index.story_repr.js +1048 -933
  6. package/Annotator/reducers/convert-expanding-line-to-polygon.js +15 -16
  7. package/ClassSelectionMenu/index.js +55 -35
  8. package/Crosshairs/index.js +30 -23
  9. package/DebugSidebarBox/index.js +40 -9
  10. package/DemoSite/Editor.js +124 -79
  11. package/DemoSite/ErrorBoundaryDialog.js +19 -6
  12. package/DemoSite/index.js +26 -17
  13. package/Editor/index.js +70 -36
  14. package/Editor/index_bugdemo_15_1.js +68 -35
  15. package/Editor/readOnly.js +178 -127
  16. package/Errorer/index.js +8 -3
  17. package/FullImageSegmentationAnnotator/index.js +6 -3
  18. package/GroupSelectorSidebarBox/index.js +48 -32
  19. package/GroupsEditorSidebarBox/index.js +75 -40
  20. package/HelpSidebarBox/index.js +24 -13
  21. package/HighlightBox/index.js +37 -30
  22. package/HistorySidebarBox/index.js +51 -29
  23. package/ImageCanvas/index.js +165 -130
  24. package/ImageMask/index.js +9 -6
  25. package/ImageSelectorSidebarBox/index.js +44 -26
  26. package/KeyframeTimeline/index.js +65 -45
  27. package/KeyframesSelectorSidebarBox/index.js +76 -54
  28. package/LandingPage/index.js +76 -38
  29. package/Locker/index.js +8 -3
  30. package/MainLayout/RightSidebarItemsWrapper.js +7 -4
  31. package/MainLayout/icon-dictionary.js +99 -66
  32. package/MainLayout/index.js +256 -196
  33. package/MainLayout/index_bugdemo_15_1.js +253 -195
  34. package/MetadataEditorSidebarBox/index.js +152 -102
  35. package/MetadataEditorSidebarBox/index_14_01_25.js +152 -102
  36. package/MetadataEditorSidebarBox/index_repr.js +183 -128
  37. package/PageSelector/UpdatedBySemaphore.js +54 -0
  38. package/PageSelector/index.js +172 -96
  39. package/PageSelector/page-selector.css +126 -2
  40. package/PointDistances/index.js +45 -33
  41. package/PreventScrollToParents/index.js +16 -9
  42. package/RegionLabel/index.js +217 -165
  43. package/RegionSelectAndTransformBoxes/index.js +131 -105
  44. package/RegionSelectorSidebarBox/index.js +243 -165
  45. package/RegionShapes/index.js +213 -153
  46. package/RegionTags/index.js +83 -69
  47. package/SettingsDialog/index.js +50 -37
  48. package/SettingsProvider/index.js +8 -5
  49. package/Shortcuts/ShortcutField.js +21 -14
  50. package/Shortcuts/index.js +18 -12
  51. package/ShortcutsManager/index.js +7 -4
  52. package/Sidebar/index.js +46 -29
  53. package/SidebarBoxContainer/index.js +14 -7
  54. package/SmallToolButton/index.js +23 -16
  55. package/TagsSidebarBox/index.js +41 -28
  56. package/TaskDescriptionSidebarBox/index.js +24 -13
  57. package/Theme/index.js +8 -3
  58. package/VideoOrImageCanvasBackground/index.js +30 -17
  59. package/package.json +1 -1
  60. package/utils/spellcheck-nspell.js +2 -2
@@ -4,6 +4,7 @@ import classnames from "classnames";
4
4
  import './page-selector.css';
5
5
  import Locker from '../Locker';
6
6
  import Errorer from '../Errorer';
7
+ import UpdatedBySemaphore from './UpdatedBySemaphore';
7
8
 
8
9
  function PageThumbnail(_ref) {
9
10
  var _metadata$find, _metadata$find$call;
@@ -46,60 +47,93 @@ function PageThumbnail(_ref) {
46
47
  var pageNumber = metadata === null || metadata === void 0 ? void 0 : (_metadata$find = metadata.find) === null || _metadata$find === void 0 ? void 0 : (_metadata$find$call = _metadata$find.call(metadata, function (md) {
47
48
  return md.key === 'pageNumber';
48
49
  })) === null || _metadata$find$call === void 0 ? void 0 : _metadata$find$call.value;
49
- return React.createElement("div", {
50
- role: "button",
51
- tabIndex: 0,
52
- className: classnames('ps-page-thumbnail', {
53
- 'ps-page-thumbnail-is-active': isActive
50
+ return (
51
+ /*#__PURE__*/
52
+ React.createElement("div", {
53
+ role: "button",
54
+ tabIndex: 0,
55
+ className: classnames('ps-page-thumbnail', {
56
+ 'ps-page-thumbnail-is-active': isActive
57
+ }),
58
+ onClick: onClick
59
+ }, isLocked &&
60
+ /*#__PURE__*/
61
+ React.createElement(Locker, null), error &&
62
+ /*#__PURE__*/
63
+ React.createElement(Errorer, {
64
+ errorMessage: error.message
54
65
  }),
55
- onClick: onClick
56
- }, isLocked && React.createElement(Locker, null), error && React.createElement(Errorer, {
57
- errorMessage: error.message
58
- }), React.createElement("div", {
59
- className: "ps-page-thumbnail-image-wrapper"
60
- }, isRecalcReady && React.createElement("div", {
61
- className: "ps-page-thumbnail-recalc-wrapper"
62
- }, React.createElement("button", {
63
- className: "recalc-button",
64
- onClick: handleRecalcClick
65
- }, "Extract")), React.createElement("img", {
66
- src: src,
67
- alt: "",
68
- className: "ps-page-thumbnail-image"
69
- }), React.createElement("div", {
70
- className: "page-number-wrapper"
71
- }, pageNumber !== undefined && !showMetadata && React.createElement("span", {
72
- className: "page-number"
73
- }, pageNumber))), React.createElement("div", {
74
- className: "ps-page-thumbnail-metadata-wrapper"
75
- }, metadata.map(function (_ref2) {
76
- var _metadataConfigs$find;
66
+ /*#__PURE__*/
67
+ React.createElement("div", {
68
+ className: "ps-page-thumbnail-image-wrapper"
69
+ }, isRecalcReady &&
70
+ /*#__PURE__*/
71
+ React.createElement("div", {
72
+ className: "ps-page-thumbnail-recalc-wrapper"
73
+ },
74
+ /*#__PURE__*/
75
+ React.createElement("button", {
76
+ className: "recalc-button",
77
+ onClick: handleRecalcClick
78
+ }, "Extract")),
79
+ /*#__PURE__*/
80
+ React.createElement("img", {
81
+ src: src,
82
+ alt: "",
83
+ className: "ps-page-thumbnail-image"
84
+ }),
85
+ /*#__PURE__*/
86
+ React.createElement("div", {
87
+ className: "page-number-wrapper"
88
+ }, pageNumber !== undefined && !showMetadata &&
89
+ /*#__PURE__*/
90
+ React.createElement("span", {
91
+ className: "page-number"
92
+ }, pageNumber))),
93
+ /*#__PURE__*/
94
+ React.createElement("div", {
95
+ className: "ps-page-thumbnail-metadata-wrapper"
96
+ }, metadata.map(function (_ref2) {
97
+ var _metadataConfigs$find;
77
98
 
78
- var key = _ref2.key,
79
- value = _ref2.value;
80
- return React.createElement(React.Fragment, null, React.createElement("label", {
81
- for: key
82
- }, key), React.createElement("input", {
83
- type: "text",
84
- value: value,
85
- name: key,
86
- onChange: handleChange,
87
- onClick: function onClick(e) {
88
- return e.stopPropagation();
89
- },
90
- id: key,
91
- list: "".concat(key, "-list")
92
- }), React.createElement("datalist", {
93
- id: "".concat(key, "-list")
94
- }, (_metadataConfigs$find = metadataConfigs.find(function (mcf) {
95
- return mcf.key === key;
96
- })) === null || _metadataConfigs$find === void 0 ? void 0 : _metadataConfigs$find.options.map(function (opt) {
97
- return React.createElement("option", {
98
- key: opt,
99
- value: opt
100
- });
101
- })));
102
- })));
99
+ var key = _ref2.key,
100
+ value = _ref2.value;
101
+ return (
102
+ /*#__PURE__*/
103
+ React.createElement(React.Fragment, null,
104
+ /*#__PURE__*/
105
+ React.createElement("label", {
106
+ "for": key
107
+ }, key),
108
+ /*#__PURE__*/
109
+ React.createElement("input", {
110
+ type: "text",
111
+ value: value,
112
+ name: key,
113
+ onChange: handleChange,
114
+ onClick: function onClick(e) {
115
+ return e.stopPropagation();
116
+ },
117
+ id: key,
118
+ list: "".concat(key, "-list")
119
+ }),
120
+ /*#__PURE__*/
121
+ React.createElement("datalist", {
122
+ id: "".concat(key, "-list")
123
+ }, (_metadataConfigs$find = metadataConfigs.find(function (mcf) {
124
+ return mcf.key === key;
125
+ })) === null || _metadataConfigs$find === void 0 ? void 0 : _metadataConfigs$find.options.map(function (opt) {
126
+ return (
127
+ /*#__PURE__*/
128
+ React.createElement("option", {
129
+ key: opt,
130
+ value: opt
131
+ })
132
+ );
133
+ })))
134
+ );
135
+ })))
136
+ );
103
137
  }
104
138
 
105
139
  function isLocked(page) {
@@ -115,60 +149,102 @@ function isLocked(page) {
115
149
  }
116
150
 
117
151
  function PageSelector(_ref3) {
152
+ var _ref4, _ref5;
153
+
118
154
  var pages = _ref3.pages,
119
155
  onPageClick = _ref3.onPageClick,
120
156
  onMetadataChange = _ref3.onMetadataChange,
121
157
  metadataConfigs = _ref3.metadataConfigs,
122
- onRecalcClick = _ref3.onRecalcClick;
158
+ onRecalcClick = _ref3.onRecalcClick,
159
+ updatedBy = _ref3.updatedBy;
123
160
 
124
161
  var _useState = useState(false),
125
162
  _useState2 = _slicedToArray(_useState, 2),
126
163
  showMetadata = _useState2[0],
127
164
  setShowMetadata = _useState2[1];
128
165
 
129
- return React.createElement("div", {
130
- className: classnames('page-selector', {
131
- 'page-selector--opened': showMetadata
132
- })
133
- }, React.createElement("div", {
134
- className: "top-buttons"
135
- }, React.createElement("div", {
136
- className: "show-metadata-wrapper"
137
- }, React.createElement("label", {
138
- className: "switch mr-2"
139
- }, React.createElement("input", {
140
- id: "show-metadata",
141
- type: "checkbox",
142
- value: showMetadata,
143
- onChange: function onChange() {
144
- return setShowMetadata(function (prev) {
145
- return !prev;
146
- });
147
- }
148
- }), React.createElement("span", {
149
- className: "slider round"
150
- })), React.createElement("label", null, "Metadata"))), React.createElement("div", {
151
- className: "pages"
152
- }, pages.map(function (page, idx) {
153
- return React.createElement(PageThumbnail, {
154
- key: "".concat(page.id),
155
- isLocked: isLocked(page),
156
- error: page.syncError,
157
- src: page.src,
158
- isActive: page.isActive,
159
- onClick: function onClick() {
160
- return onPageClick(idx);
161
- },
162
- metadata: page.metadata,
163
- showMetadata: showMetadata,
164
- imageIndex: idx,
165
- imageId: page.id,
166
- onMetadataChange: onMetadataChange,
167
- metadataConfigs: metadataConfigs,
168
- onRecalcClick: onRecalcClick,
169
- isRecalcReady: page.isRecalcReady
170
- });
171
- })));
166
+ var activePage = pages.find(function (p) {
167
+ return p.isActive;
168
+ });
169
+ var selectionKey = (_ref4 = (_ref5 = activePage === null || activePage === void 0 ? void 0 : activePage.id) !== null && _ref5 !== void 0 ? _ref5 : activePage === null || activePage === void 0 ? void 0 : activePage.src) !== null && _ref4 !== void 0 ? _ref4 : String(pages.length);
170
+ return (
171
+ /*#__PURE__*/
172
+ React.createElement("div", {
173
+ className: classnames('page-selector', {
174
+ 'page-selector--opened': showMetadata
175
+ })
176
+ },
177
+ /*#__PURE__*/
178
+ React.createElement("div", {
179
+ className: "top-buttons"
180
+ },
181
+ /*#__PURE__*/
182
+ React.createElement("div", {
183
+ className: "page-selector-top-controls"
184
+ },
185
+ /*#__PURE__*/
186
+ React.createElement("div", {
187
+ className: "show-metadata-wrapper"
188
+ },
189
+ /*#__PURE__*/
190
+ React.createElement("label", {
191
+ className: "switch mr-2"
192
+ },
193
+ /*#__PURE__*/
194
+ React.createElement("input", {
195
+ id: "show-metadata",
196
+ type: "checkbox",
197
+ value: showMetadata,
198
+ onChange: function onChange() {
199
+ return setShowMetadata(function (prev) {
200
+ return !prev;
201
+ });
202
+ }
203
+ }),
204
+ /*#__PURE__*/
205
+ React.createElement("span", {
206
+ className: "slider round"
207
+ })),
208
+ /*#__PURE__*/
209
+ React.createElement("label", {
210
+ className: "ps-top-bar-label"
211
+ }, "Metadata")), updatedBy !== undefined && updatedBy !== null &&
212
+ /*#__PURE__*/
213
+ React.createElement("div", {
214
+ className: "ps-semaphore-below-metadata"
215
+ },
216
+ /*#__PURE__*/
217
+ React.createElement(UpdatedBySemaphore, {
218
+ updatedBy: updatedBy,
219
+ selectionKey: selectionKey
220
+ })))),
221
+ /*#__PURE__*/
222
+ React.createElement("div", {
223
+ className: "pages"
224
+ }, pages.map(function (page, idx) {
225
+ return (
226
+ /*#__PURE__*/
227
+ React.createElement(PageThumbnail, {
228
+ key: "".concat(page.id),
229
+ isLocked: isLocked(page),
230
+ error: page.syncError,
231
+ src: page.src,
232
+ isActive: page.isActive,
233
+ onClick: function onClick() {
234
+ return onPageClick(idx);
235
+ },
236
+ metadata: page.metadata,
237
+ showMetadata: showMetadata,
238
+ imageIndex: idx,
239
+ imageId: page.id,
240
+ onMetadataChange: onMetadataChange,
241
+ metadataConfigs: metadataConfigs,
242
+ onRecalcClick: onRecalcClick,
243
+ isRecalcReady: page.isRecalcReady
244
+ })
245
+ );
246
+ })))
247
+ );
172
248
  }
173
249
 
174
250
  PageSelector.defaultProps = {
@@ -4,8 +4,6 @@
4
4
  transition: width .5s;
5
5
  }
6
6
 
7
- .page-selector--opened {}
8
-
9
7
  .pages {
10
8
  list-style: none;
11
9
  display: flex;
@@ -105,6 +103,132 @@
105
103
  z-index: 100;
106
104
  }
107
105
 
106
+ .page-selector-top-controls {
107
+ display: flex;
108
+ flex-direction: column;
109
+ align-items: stretch;
110
+ width: 100%;
111
+ gap: 0.5rem;
112
+ }
113
+
114
+ /* Same typography as “Metadata” label (plain label next to switch) */
115
+ .ps-top-bar-label {
116
+ font-family: inherit;
117
+ font-size: 1rem;
118
+ font-weight: 400;
119
+ line-height: 1.5;
120
+ color: inherit;
121
+ cursor: default;
122
+ }
123
+
124
+ .ps-semaphore-below-metadata {
125
+ display: flex;
126
+ justify-content: flex-start;
127
+ align-items: center;
128
+ width: 100%;
129
+ padding-top: 0.15rem;
130
+ padding-left: 0;
131
+ box-sizing: border-box;
132
+ }
133
+
134
+ /* Same slot as .switch (60px) + .mr-2 (1rem) — lines up with Metadata toggle row */
135
+ .ps-semaphore-toggle-column {
136
+ width: 60px;
137
+ margin-right: 1rem;
138
+ display: flex;
139
+ justify-content: center;
140
+ align-items: center;
141
+ flex-shrink: 0;
142
+ box-sizing: border-box;
143
+ }
144
+
145
+ /* Plain text + discs to the right — no box */
146
+ .ps-updated-by-semaphore {
147
+ display: flex;
148
+ flex-direction: row;
149
+ align-items: center;
150
+ justify-content: flex-start;
151
+ gap: 0.5rem;
152
+ padding: 0;
153
+ margin: 0;
154
+ border: none;
155
+ background: none;
156
+ box-shadow: none;
157
+ flex-shrink: 0;
158
+ }
159
+
160
+ .ps-updated-by-semaphore__label {
161
+ text-align: left;
162
+ margin: 0;
163
+ white-space: nowrap;
164
+ }
165
+
166
+ .ps-semaphore-lamps {
167
+ display: flex;
168
+ flex-direction: row;
169
+ align-items: center;
170
+ justify-content: center;
171
+ gap: 6px;
172
+ }
173
+
174
+ /* Same diameter as Metadata toggle knob (.slider:before: 26×26) */
175
+ .ps-semaphore-lamp {
176
+ box-sizing: border-box;
177
+ display: inline-block;
178
+ vertical-align: middle;
179
+ width: 26px;
180
+ height: 26px;
181
+ border-radius: 50%;
182
+ border: 2px solid rgba(0, 0, 0, 0.1);
183
+ box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
184
+ transition: opacity 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
185
+ flex-shrink: 0;
186
+ }
187
+
188
+ /* Inactive: still a faint tint of the lamp’s hue */
189
+ .ps-semaphore-lamp:not(.ps-semaphore-lit) {
190
+ opacity: 0.72;
191
+ }
192
+
193
+ .ps-semaphore-lamp.ps-semaphore-lit {
194
+ opacity: 1;
195
+ transform: scale(1.02);
196
+ }
197
+
198
+ /* Inactive red: soft rose / dusty red */
199
+ .ps-semaphore-red {
200
+ background: linear-gradient(165deg, #f0d4d4 0%, #d9a8a8 45%, #c08080 100%);
201
+ border-color: rgba(180, 90, 90, 0.35);
202
+ box-shadow:
203
+ inset 0 2px 5px rgba(255, 255, 255, 0.35),
204
+ inset 0 -2px 6px rgba(160, 60, 60, 0.2);
205
+ }
206
+
207
+ .ps-semaphore-red.ps-semaphore-lit {
208
+ background: linear-gradient(180deg, #ff5252 0%, #d50000 55%, #b71c1c 100%);
209
+ border-color: rgba(255, 200, 200, 0.85);
210
+ box-shadow:
211
+ 0 0 10px rgba(213, 0, 0, 0.88),
212
+ inset 0 -2px 5px rgba(0, 0, 0, 0.18);
213
+ }
214
+
215
+ /* Inactive green: soft mint / dusty green */
216
+ .ps-semaphore-green {
217
+ background: linear-gradient(165deg, #dff2df 0%, #b8dcb8 45%, #92c592 100%);
218
+ border-color: rgba(80, 140, 80, 0.35);
219
+ box-shadow:
220
+ inset 0 2px 5px rgba(255, 255, 255, 0.4),
221
+ inset 0 -2px 6px rgba(60, 120, 60, 0.18);
222
+ }
223
+
224
+ .ps-semaphore-green.ps-semaphore-lit {
225
+ background: linear-gradient(180deg, #b9f6ca 0%, #00e676 40%, #00c853 100%);
226
+ border-color: rgba(200, 255, 220, 0.9);
227
+ box-shadow:
228
+ 0 0 10px rgba(0, 200, 83, 0.88),
229
+ inset 0 -2px 5px rgba(0, 0, 0, 0.14);
230
+ }
231
+
108
232
  .top-buttons button {
109
233
  margin-bottom: 1rem;
110
234
  width: 100%;
@@ -34,40 +34,52 @@ export var PointDistances = function PointDistances(_ref2) {
34
34
  regions = _ref2.regions,
35
35
  pointDistancePrecision = _ref2.pointDistancePrecision,
36
36
  realSize = _ref2.realSize;
37
- return React.createElement(ThemeProvider, {
38
- theme: theme
39
- }, React.createElement(Svg, null, regions.filter(function (r1) {
40
- return r1.type === "point";
41
- }).flatMap(function (r1, i1) {
42
- return regions.filter(function (r2, i2) {
43
- return i2 > i1;
44
- }).filter(function (r2) {
45
- return r2.type === "point";
46
- }).map(function (r2) {
47
- var pr1 = projectRegionBox(r1);
48
- var pr2 = projectRegionBox(r2);
49
- var prm = {
50
- x: (pr1.x + pr1.w / 2 + pr2.x + pr2.w / 2) / 2,
51
- y: (pr1.y + pr1.h / 2 + pr2.y + pr2.h / 2) / 2
52
- };
53
- var displayDistance;
37
+ return (
38
+ /*#__PURE__*/
39
+ React.createElement(ThemeProvider, {
40
+ theme: theme
41
+ },
42
+ /*#__PURE__*/
43
+ React.createElement(Svg, null, regions.filter(function (r1) {
44
+ return r1.type === "point";
45
+ }).flatMap(function (r1, i1) {
46
+ return regions.filter(function (r2, i2) {
47
+ return i2 > i1;
48
+ }).filter(function (r2) {
49
+ return r2.type === "point";
50
+ }).map(function (r2) {
51
+ var pr1 = projectRegionBox(r1);
52
+ var pr2 = projectRegionBox(r2);
53
+ var prm = {
54
+ x: (pr1.x + pr1.w / 2 + pr2.x + pr2.w / 2) / 2,
55
+ y: (pr1.y + pr1.h / 2 + pr2.y + pr2.h / 2) / 2
56
+ };
57
+ var displayDistance;
54
58
 
55
- if (realSize) {
56
- var w = realSize.w,
57
- h = realSize.h,
58
- unitName = realSize.unitName;
59
- displayDistance = Math.sqrt(Math.pow(r1.x * w - r2.x * w, 2) + Math.pow(r1.y * h - r2.y * h, 2)).toFixed(pointDistancePrecision) + unitName;
60
- } else {
61
- displayDistance = (Math.sqrt(Math.pow(r1.x - r2.x, 2) + Math.pow(r1.y - r2.y, 2)) * 100).toFixed(pointDistancePrecision) + "%";
62
- }
59
+ if (realSize) {
60
+ var w = realSize.w,
61
+ h = realSize.h,
62
+ unitName = realSize.unitName;
63
+ displayDistance = Math.sqrt(Math.pow(r1.x * w - r2.x * w, 2) + Math.pow(r1.y * h - r2.y * h, 2)).toFixed(pointDistancePrecision) + unitName;
64
+ } else {
65
+ displayDistance = (Math.sqrt(Math.pow(r1.x - r2.x, 2) + Math.pow(r1.y - r2.y, 2)) * 100).toFixed(pointDistancePrecision) + "%";
66
+ }
63
67
 
64
- return React.createElement(Fragment, null, React.createElement("path", {
65
- d: "M".concat(pr1.x + pr1.w / 2, ",").concat(pr1.y + pr1.h / 2, " L").concat(pr2.x + pr2.w / 2, ",").concat(pr2.y + pr2.h / 2)
66
- }), React.createElement("text", {
67
- x: prm.x,
68
- y: prm.y
69
- }, displayDistance));
70
- });
71
- })));
68
+ return (
69
+ /*#__PURE__*/
70
+ React.createElement(Fragment, null,
71
+ /*#__PURE__*/
72
+ React.createElement("path", {
73
+ d: "M".concat(pr1.x + pr1.w / 2, ",").concat(pr1.y + pr1.h / 2, " L").concat(pr2.x + pr2.w / 2, ",").concat(pr2.y + pr2.h / 2)
74
+ }),
75
+ /*#__PURE__*/
76
+ React.createElement("text", {
77
+ x: prm.x,
78
+ y: prm.y
79
+ }, displayDistance))
80
+ );
81
+ });
82
+ })))
83
+ );
72
84
  };
73
85
  export default PointDistances;
@@ -38,14 +38,21 @@ export var PreventScrollToParents = function PreventScrollToParents(_ref2) {
38
38
  }
39
39
  }, 100);
40
40
  });
41
- return React.createElement(ThemeProvider, {
42
- theme: theme
43
- }, React.createElement(Container, Object.assign({}, otherProps, {
44
- onMouseMove: onMouseMove,
45
- onMouseLeave: onMouseLeave
46
- }), React.createElement(RemoveScroll, {
47
- enabled: mouseOver,
48
- removeScrollBar: false
49
- }, children)));
41
+ return (
42
+ /*#__PURE__*/
43
+ React.createElement(ThemeProvider, {
44
+ theme: theme
45
+ },
46
+ /*#__PURE__*/
47
+ React.createElement(Container, Object.assign({}, otherProps, {
48
+ onMouseMove: onMouseMove,
49
+ onMouseLeave: onMouseLeave
50
+ }),
51
+ /*#__PURE__*/
52
+ React.createElement(RemoveScroll, {
53
+ enabled: mouseOver,
54
+ removeScrollBar: false
55
+ }, children)))
56
+ );
50
57
  };
51
58
  export default PreventScrollToParents;