nmrium 1.0.0 → 1.2.0

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 (246) hide show
  1. package/lib/component/1d/ExclusionZoneAnnotation.js +1 -1
  2. package/lib/component/1d/FloatPublicationString.js +2 -2
  3. package/lib/component/1d/FloatingRanges.js +3 -3
  4. package/lib/component/1d/FloatingRanges.js.map +1 -1
  5. package/lib/component/1d/FooterBanner.js +1 -1
  6. package/lib/component/1d/LinesSeries.js +1 -1
  7. package/lib/component/1d/PredictionErrorsNotations.js +2 -2
  8. package/lib/component/1d/inset/DraggableInset.js +2 -2
  9. package/lib/component/1d/multiAnalysis/AnalysisRange.js +1 -1
  10. package/lib/component/1d/multiAnalysis/AnalysisRange.js.map +1 -1
  11. package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.d.ts +1 -1
  12. package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.d.ts.map +1 -1
  13. package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js +3 -1
  14. package/lib/component/1d/multiAnalysis/MultiAnalysisRanges.js.map +1 -1
  15. package/lib/component/1d/multiplicityTree/MultiplicityTree.js +1 -1
  16. package/lib/component/1d/multiplicityTree/MultiplicityTree.js.map +1 -1
  17. package/lib/component/1d/peaks/Peaks.d.ts.map +1 -1
  18. package/lib/component/1d/peaks/Peaks.js +1 -1
  19. package/lib/component/1d/peaks/Peaks.js.map +1 -1
  20. package/lib/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.js +3 -3
  21. package/lib/component/1d-2d/tools/BrushXY.js +2 -2
  22. package/lib/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.js +1 -1
  23. package/lib/component/2d/SignalDeltaLine.js +1 -1
  24. package/lib/component/2d/zones/Signal.d.ts.map +1 -1
  25. package/lib/component/2d/zones/Signal.js +1 -1
  26. package/lib/component/2d/zones/Signal.js.map +1 -1
  27. package/lib/component/2d/zones/SignalsGuideLines.js +2 -2
  28. package/lib/component/2d/zones/SignalsGuideLines.js.map +1 -1
  29. package/lib/component/2d/zones/Zone.d.ts.map +1 -1
  30. package/lib/component/2d/zones/Zone.js +3 -1
  31. package/lib/component/2d/zones/Zone.js.map +1 -1
  32. package/lib/component/2d/zones/ZonesAssignmentsLabels.js +1 -1
  33. package/lib/component/elements/ActionsButtonsPopover.js +4 -4
  34. package/lib/component/elements/Alert.js +2 -2
  35. package/lib/component/elements/AssignmentsCell.js +1 -1
  36. package/lib/component/elements/Button.js +10 -10
  37. package/lib/component/elements/Button.js.map +1 -1
  38. package/lib/component/elements/DraggableDialog.js +3 -3
  39. package/lib/component/elements/EditableColumn.js +3 -3
  40. package/lib/component/elements/EmptyText.js +2 -2
  41. package/lib/component/elements/Footer.js +9 -9
  42. package/lib/component/elements/Footer.js.map +1 -1
  43. package/lib/component/elements/MoleculeSelection.js +19 -19
  44. package/lib/component/elements/MoleculeSelection.js.map +1 -1
  45. package/lib/component/elements/NextPrev.js +15 -15
  46. package/lib/component/elements/NextPrev.js.map +1 -1
  47. package/lib/component/elements/ReactTable/BaseReactTable.js +6 -6
  48. package/lib/component/elements/ReadOnly.js +8 -8
  49. package/lib/component/elements/ReadOnly.js.map +1 -1
  50. package/lib/component/elements/Sections.js +29 -29
  51. package/lib/component/elements/Sections.js.map +1 -1
  52. package/lib/component/elements/Select.js +10 -10
  53. package/lib/component/elements/Select.js.map +1 -1
  54. package/lib/component/elements/StyledDialogBody.js +1 -1
  55. package/lib/component/elements/StyledDialogBody.js.map +1 -1
  56. package/lib/component/elements/Tab/DeleteButton.js +5 -5
  57. package/lib/component/elements/Tab/Tabs.js +5 -5
  58. package/lib/component/elements/dropDownButton/DropDownList.js +6 -6
  59. package/lib/component/elements/export/ExportManager.d.ts.map +1 -1
  60. package/lib/component/elements/export/ExportManager.js +12 -1
  61. package/lib/component/elements/export/ExportManager.js.map +1 -1
  62. package/lib/component/elements/resizer/SVGResizer.js +1 -1
  63. package/lib/component/header/Header.d.ts.map +1 -1
  64. package/lib/component/header/Header.js +11 -1
  65. package/lib/component/header/Header.js.map +1 -1
  66. package/lib/component/hooks/useExport.d.ts.map +1 -1
  67. package/lib/component/hooks/useExport.js +25 -10
  68. package/lib/component/hooks/useExport.js.map +1 -1
  69. package/lib/component/hooks/useFilter.d.ts.map +1 -1
  70. package/lib/component/hooks/useFilter.js +4 -5
  71. package/lib/component/hooks/useFilter.js.map +1 -1
  72. package/lib/component/hooks/useSaveSettings.js +2 -2
  73. package/lib/component/loader/DefaultSpinnerComponent.js +9 -9
  74. package/lib/component/loader/DropZone.js +8 -8
  75. package/lib/component/main/ErrorOverlay.js +4 -4
  76. package/lib/component/main/InnerNMRiumContents.js +3 -3
  77. package/lib/component/modal/AboutPredictionModal.js +2 -2
  78. package/lib/component/modal/AboutSpectrumSimulationModal.js +2 -2
  79. package/lib/component/modal/MultipletAnalysisModal.js +12 -12
  80. package/lib/component/modal/PredictSpectraModal.js +4 -4
  81. package/lib/component/modal/PublicationStringModal.js +2 -2
  82. package/lib/component/modal/aboutUs/AboutUsModal.js +3 -3
  83. package/lib/component/modal/changeSum/ChangeSumModalContents.js +1 -1
  84. package/lib/component/modal/changeSum/SelectMolecule.js +5 -5
  85. package/lib/component/modal/changeSum/SelectMolecule.js.map +1 -1
  86. package/lib/component/modal/setting/GeneralSettings.js +5 -5
  87. package/lib/component/panels/Panels.js +2 -2
  88. package/lib/component/panels/PanelsBar.js +3 -3
  89. package/lib/component/panels/PanelsBar.js.map +1 -1
  90. package/lib/component/panels/RangesPanel/RangesTable.js +6 -6
  91. package/lib/component/panels/RangesPanel/TableColumns/ActionsColumn.js +1 -1
  92. package/lib/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.js +9 -9
  93. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.js +5 -5
  94. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.js +11 -11
  95. package/lib/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.js +7 -7
  96. package/lib/component/panels/SummaryPanel/Overview.js +1 -1
  97. package/lib/component/panels/SummaryPanel/SummaryPanel.d.ts.map +1 -1
  98. package/lib/component/panels/SummaryPanel/SummaryPanel.js +6 -5
  99. package/lib/component/panels/SummaryPanel/SummaryPanel.js.map +1 -1
  100. package/lib/component/panels/ZonesPanel/ZonesTable.js +6 -6
  101. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.d.ts.map +1 -1
  102. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js +11 -3
  103. package/lib/component/panels/filtersPanel/Filters/FiltersSectionsPanel.js.map +1 -1
  104. package/lib/component/panels/filtersPanel/Filters/InnerFilterHeader.js +1 -1
  105. package/lib/component/panels/multipleAnalysisPanel/AlignSpectra.js +4 -4
  106. package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js +1 -1
  107. package/lib/component/panels/predictionPanel/PredictionOptionsPanel.js.map +1 -1
  108. package/lib/component/panels/predictionPanel/PredictionPanel.js +6 -6
  109. package/lib/component/panels/predictionPanel/PredictionPanel.js.map +1 -1
  110. package/lib/component/panels/predictionPanel/PredictionSimpleOptions.js +1 -1
  111. package/lib/component/reducer/actions/FiltersActions.d.ts.map +1 -1
  112. package/lib/component/reducer/actions/FiltersActions.js +54 -28
  113. package/lib/component/reducer/actions/FiltersActions.js.map +1 -1
  114. package/lib/component/toolbar/ToolTypes.d.ts.map +1 -1
  115. package/lib/component/toolbar/ToolTypes.js +0 -6
  116. package/lib/component/toolbar/ToolTypes.js.map +1 -1
  117. package/lib/component/utility/renderCoreSlot.d.ts +4 -0
  118. package/lib/component/utility/renderCoreSlot.d.ts.map +1 -0
  119. package/lib/component/utility/renderCoreSlot.js +5 -0
  120. package/lib/component/utility/renderCoreSlot.js.map +1 -0
  121. package/lib/component/workspaces/assignment.d.ts.map +1 -1
  122. package/lib/component/workspaces/assignment.js +1 -0
  123. package/lib/component/workspaces/assignment.js.map +1 -1
  124. package/lib/component/workspaces/basic.d.ts.map +1 -1
  125. package/lib/component/workspaces/basic.js +1 -0
  126. package/lib/component/workspaces/basic.js.map +1 -1
  127. package/lib/component/workspaces/embedded.d.ts.map +1 -1
  128. package/lib/component/workspaces/embedded.js +1 -0
  129. package/lib/component/workspaces/embedded.js.map +1 -1
  130. package/lib/component/workspaces/exercise.d.ts.map +1 -1
  131. package/lib/component/workspaces/exercise.js +1 -0
  132. package/lib/component/workspaces/exercise.js.map +1 -1
  133. package/lib/component/workspaces/prediction.d.ts.map +1 -1
  134. package/lib/component/workspaces/prediction.js +1 -0
  135. package/lib/component/workspaces/prediction.js.map +1 -1
  136. package/lib/component/workspaces/process1D.d.ts.map +1 -1
  137. package/lib/component/workspaces/process1D.js +1 -0
  138. package/lib/component/workspaces/process1D.js.map +1 -1
  139. package/lib/component/workspaces/workspaceDefaultProperties.d.ts.map +1 -1
  140. package/lib/component/workspaces/workspaceDefaultProperties.js +1 -0
  141. package/lib/component/workspaces/workspaceDefaultProperties.js.map +1 -1
  142. package/lib/data/PredictionManager.d.ts.map +1 -1
  143. package/lib/data/PredictionManager.js +7 -21
  144. package/lib/data/PredictionManager.js.map +1 -1
  145. package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js +1 -1
  146. package/lib/data/data1d/Spectrum1D/ranges/resurrectSpectrum.js.map +1 -1
  147. package/lib/data/data2d/Spectrum2D/getMissingProjection.d.ts +1 -1
  148. package/lib/data/data2d/Spectrum2D/zones/detectZonesManual.d.ts.map +1 -1
  149. package/lib/data/data2d/Spectrum2D/zones/initiateZones.d.ts.map +1 -1
  150. package/lib/data/utilities/generateColor.d.ts.map +1 -1
  151. package/lib/data/utilities/generateColor.js +1 -1
  152. package/lib/data/utilities/generateColor.js.map +1 -1
  153. package/lib/data/utilities/isNumber.js +1 -1
  154. package/lib/data/utilities/isNumber.js.map +1 -1
  155. package/lib/utils/clipboard/clipboardComponents.js +1 -1
  156. package/lib/versionInfo.js +1 -1
  157. package/package.json +41 -36
  158. package/src/component/1d/ExclusionZoneAnnotation.tsx +1 -1
  159. package/src/component/1d/FloatPublicationString.tsx +2 -2
  160. package/src/component/1d/FloatingRanges.tsx +3 -3
  161. package/src/component/1d/FooterBanner.tsx +1 -1
  162. package/src/component/1d/LinesSeries.tsx +1 -1
  163. package/src/component/1d/PredictionErrorsNotations.tsx +2 -2
  164. package/src/component/1d/inset/DraggableInset.tsx +2 -2
  165. package/src/component/1d/multiAnalysis/AnalysisRange.tsx +1 -1
  166. package/src/component/1d/multiAnalysis/MultiAnalysisRanges.tsx +3 -1
  167. package/src/component/1d/multiplicityTree/MultiplicityTree.tsx +1 -1
  168. package/src/component/1d/peaks/Peaks.tsx +2 -6
  169. package/src/component/1d-2d/components/FloatMoleculeStructures/DraggableStructure.tsx +3 -3
  170. package/src/component/1d-2d/tools/BrushXY.tsx +2 -2
  171. package/src/component/2d/1d-tracer/phase-correction-traces/SpectraPhaseTraces.tsx +1 -1
  172. package/src/component/2d/SignalDeltaLine.tsx +1 -1
  173. package/src/component/2d/zones/Signal.tsx +2 -1
  174. package/src/component/2d/zones/SignalsGuideLines.tsx +2 -2
  175. package/src/component/2d/zones/Zone.tsx +2 -1
  176. package/src/component/2d/zones/ZonesAssignmentsLabels.tsx +1 -1
  177. package/src/component/elements/ActionsButtonsPopover.tsx +4 -4
  178. package/src/component/elements/Alert.tsx +2 -2
  179. package/src/component/elements/AssignmentsCell.tsx +1 -1
  180. package/src/component/elements/Button.tsx +10 -10
  181. package/src/component/elements/DraggableDialog.tsx +3 -3
  182. package/src/component/elements/EditableColumn.tsx +3 -3
  183. package/src/component/elements/EmptyText.tsx +2 -2
  184. package/src/component/elements/Footer.tsx +9 -9
  185. package/src/component/elements/MoleculeSelection.tsx +19 -19
  186. package/src/component/elements/NextPrev.tsx +15 -15
  187. package/src/component/elements/ReactTable/BaseReactTable.tsx +6 -6
  188. package/src/component/elements/ReadOnly.tsx +8 -8
  189. package/src/component/elements/Sections.tsx +29 -29
  190. package/src/component/elements/Select.tsx +10 -10
  191. package/src/component/elements/StyledDialogBody.tsx +1 -1
  192. package/src/component/elements/Tab/DeleteButton.tsx +5 -5
  193. package/src/component/elements/Tab/Tabs.tsx +5 -5
  194. package/src/component/elements/dropDownButton/DropDownList.tsx +6 -6
  195. package/src/component/elements/export/ExportManager.tsx +13 -3
  196. package/src/component/elements/resizer/SVGResizer.tsx +1 -1
  197. package/src/component/header/Header.tsx +15 -0
  198. package/src/component/hooks/useExport.tsx +21 -10
  199. package/src/component/hooks/useFilter.ts +4 -6
  200. package/src/component/hooks/useSaveSettings.tsx +2 -2
  201. package/src/component/loader/DefaultSpinnerComponent.tsx +9 -9
  202. package/src/component/loader/DropZone.tsx +8 -8
  203. package/src/component/main/ErrorOverlay.tsx +4 -4
  204. package/src/component/main/InnerNMRiumContents.tsx +3 -3
  205. package/src/component/modal/AboutPredictionModal.tsx +2 -2
  206. package/src/component/modal/AboutSpectrumSimulationModal.tsx +2 -2
  207. package/src/component/modal/MultipletAnalysisModal.tsx +12 -12
  208. package/src/component/modal/PredictSpectraModal.tsx +4 -4
  209. package/src/component/modal/PublicationStringModal.tsx +2 -2
  210. package/src/component/modal/aboutUs/AboutUsModal.tsx +3 -3
  211. package/src/component/modal/changeSum/ChangeSumModalContents.tsx +1 -1
  212. package/src/component/modal/changeSum/SelectMolecule.tsx +5 -5
  213. package/src/component/modal/setting/GeneralSettings.tsx +5 -5
  214. package/src/component/panels/Panels.tsx +2 -2
  215. package/src/component/panels/PanelsBar.tsx +3 -3
  216. package/src/component/panels/RangesPanel/RangesTable.tsx +6 -6
  217. package/src/component/panels/RangesPanel/TableColumns/ActionsColumn.tsx +1 -1
  218. package/src/component/panels/SummaryPanel/CorrelationTable/CorrelationTable.tsx +9 -9
  219. package/src/component/panels/SummaryPanel/CorrelationTable/editLink/Confirmation.tsx +5 -5
  220. package/src/component/panels/SummaryPanel/CorrelationTable/editLink/EditPathLength.tsx +11 -11
  221. package/src/component/panels/SummaryPanel/CorrelationTable/editLink/MoveLink.tsx +7 -7
  222. package/src/component/panels/SummaryPanel/Overview.tsx +1 -1
  223. package/src/component/panels/SummaryPanel/SummaryPanel.tsx +6 -5
  224. package/src/component/panels/ZonesPanel/ZonesTable.tsx +6 -6
  225. package/src/component/panels/filtersPanel/Filters/FiltersSectionsPanel.tsx +12 -3
  226. package/src/component/panels/filtersPanel/Filters/InnerFilterHeader.tsx +1 -1
  227. package/src/component/panels/multipleAnalysisPanel/AlignSpectra.tsx +4 -4
  228. package/src/component/panels/predictionPanel/PredictionOptionsPanel.tsx +1 -1
  229. package/src/component/panels/predictionPanel/PredictionPanel.tsx +6 -6
  230. package/src/component/panels/predictionPanel/PredictionSimpleOptions.tsx +1 -1
  231. package/src/component/reducer/actions/FiltersActions.ts +162 -81
  232. package/src/component/toolbar/ToolTypes.ts +0 -6
  233. package/src/component/utility/renderCoreSlot.tsx +11 -0
  234. package/src/component/workspaces/assignment.ts +1 -0
  235. package/src/component/workspaces/basic.ts +1 -0
  236. package/src/component/workspaces/embedded.ts +1 -0
  237. package/src/component/workspaces/exercise.ts +1 -0
  238. package/src/component/workspaces/prediction.ts +1 -0
  239. package/src/component/workspaces/process1D.ts +1 -0
  240. package/src/component/workspaces/workspaceDefaultProperties.ts +1 -0
  241. package/src/data/PredictionManager.ts +8 -23
  242. package/src/data/data1d/Spectrum1D/ranges/resurrectSpectrum.ts +1 -1
  243. package/src/data/utilities/generateColor.ts +5 -3
  244. package/src/data/utilities/isNumber.ts +1 -1
  245. package/src/utils/clipboard/clipboardComponents.tsx +1 -1
  246. package/src/versionInfo.ts +1 -1
@@ -14,24 +14,24 @@ const Container = styled.div<Pick<CSSProperties, 'flexDirection' | 'gap'>>`
14
14
  button,
15
15
  a[role='button'] {
16
16
  border-radius: 50%;
17
- min-width: 16px;
18
- min-height: 16px;
19
17
  font-size: 10px;
18
+ min-height: 16px;
19
+ min-width: 16px;
20
20
  padding: 5px;
21
21
  }
22
22
  `;
23
23
 
24
24
  const HorizontalSeparator = styled.div`
25
25
  border-left: 1px solid #dedede;
26
+ height: 10px;
26
27
  margin: auto 5px;
27
28
  width: 1px;
28
- height: 10px;
29
29
  `;
30
30
  const VerticalSeparator = styled.div`
31
31
  border-top: 1px solid #dedede;
32
+ height: 1px;
32
33
  margin: 5px auto;
33
34
  width: 10px;
34
- height: 1px;
35
35
  `;
36
36
 
37
37
  interface PopoverButtonProps extends ButtonProps {
@@ -5,10 +5,10 @@ import type { ReactNode } from 'react';
5
5
  import { createContext, useContext, useMemo, useState } from 'react';
6
6
 
7
7
  const Message = styled.p`
8
- font-weight: bold;
8
+ color: #af0000;
9
9
  font-size: 14px;
10
+ font-weight: bold;
10
11
  text-align: center;
11
- color: #af0000;
12
12
  `;
13
13
 
14
14
  const Footer = styled(DialogFooter)`
@@ -11,7 +11,7 @@ const AssignmentTableCell = styled.td<AssignmentTableCellProps>`
11
11
  visibility: hidden;
12
12
  }
13
13
 
14
- &:hover {
14
+ :hover {
15
15
  sup {
16
16
  visibility: ${({ hideRemoveAssignmentButton }) =>
17
17
  hideRemoveAssignmentButton ? 'hidden' : 'visible'};
@@ -119,32 +119,32 @@ function getFillStyle(props: ButtonStyle) {
119
119
  switch (fill) {
120
120
  case 'solid': {
121
121
  return css`
122
- border-color: transparent;
123
122
  background-color: ${backgroundColor.base};
123
+ border-color: transparent;
124
124
  color: ${color.hover};
125
125
  `;
126
126
  }
127
127
  case 'outline': {
128
128
  return css`
129
- border-style: solid;
130
- border-color: ${backgroundColor.base};
131
129
  background-color: transparent;
130
+ border-color: ${backgroundColor.base};
131
+ border-style: solid;
132
132
  color: ${color.base};
133
133
  `;
134
134
  }
135
135
 
136
136
  case 'clear': {
137
137
  return css`
138
- border-color: transparent;
139
138
  background-color: transparent;
139
+ border-color: transparent;
140
140
  color: ${color.base};
141
141
  `;
142
142
  }
143
143
  default:
144
144
  return css`
145
145
  background-color: ${backgroundColor.base};
146
- color: ${color.base};
147
146
  border-color: ${borderColor};
147
+ color: ${color.base};
148
148
  `;
149
149
  }
150
150
  }
@@ -160,20 +160,20 @@ const styles: Style = {
160
160
  } = props;
161
161
 
162
162
  const basic = css`
163
+ align-items: center;
164
+ border-width: 1px;
163
165
  display: flex;
164
166
  flex-direction: row;
165
- border-width: 1px;
166
- align-items: center;
167
167
 
168
- &:hover + .content {
168
+ :hover + .content {
169
169
  display: flex;
170
170
  }
171
171
  `;
172
172
 
173
173
  const fillStyle = getFillStyle(props);
174
174
  const basicDisabledStyle = css`
175
- &:disabled,
176
- &.disabled {
175
+ :disabled,
176
+ .disabled {
177
177
  opacity: 0.25;
178
178
  }
179
179
  `;
@@ -19,12 +19,12 @@ import type { ReactNode, RefObject } from 'react';
19
19
  import { useLayoutEffect, useRef } from 'react';
20
20
 
21
21
  const Container = styled.div`
22
- min-height: 100%;
23
- pointer-events: none;
24
- user-select: none;
25
22
  position: absolute;
26
23
  top: 0;
27
24
  left: 0;
25
+ min-height: 100%;
26
+ pointer-events: none;
27
+ user-select: none;
28
28
  width: 100%;
29
29
  `;
30
30
 
@@ -18,9 +18,9 @@ interface OverflowProps {
18
18
 
19
19
  const Text = styled.span<OverflowProps>`
20
20
  display: table-cell;
21
+ height: 100%;
21
22
  vertical-align: middle;
22
23
  width: 100%;
23
- height: 100%;
24
24
  ${({ textOverflowEllipses }) =>
25
25
  textOverflowEllipses &&
26
26
  `
@@ -31,9 +31,9 @@ const Text = styled.span<OverflowProps>`
31
31
  `;
32
32
  const Container = styled.span<OverflowProps>`
33
33
  display: table;
34
- width: 100%;
35
- min-height: 22px;
36
34
  height: 100%;
35
+ min-height: 22px;
36
+ width: 100%;
37
37
  ${({ textOverflowEllipses }) =>
38
38
  textOverflowEllipses &&
39
39
  `
@@ -3,15 +3,15 @@ import type { CSSProperties } from 'react';
3
3
  import { FaRegEyeSlash } from 'react-icons/fa';
4
4
 
5
5
  const EmptyContainer = styled.div`
6
+ color: #6a6a6a;
6
7
  display: flex;
7
8
  justify-content: center;
8
- color: #6a6a6a;
9
9
  padding: 1.5rem 0;
10
10
  `;
11
11
 
12
12
  const Icon = styled(FaRegEyeSlash)`
13
- margin: 0 10px;
14
13
  font-size: 1.1rem;
14
+ margin: 0 10px;
15
15
  `;
16
16
  const Text = styled.span`
17
17
  font-size: 0.8rem;
@@ -2,17 +2,17 @@ import styled from '@emotion/styled';
2
2
  import type { CSSProperties, ReactNode } from 'react';
3
3
 
4
4
  const FooterContainer = styled.div`
5
- display: flex;
5
+ position: absolute;
6
+ bottom: 0;
6
7
  align-items: center;
7
- user-select: none;
8
8
  background-color: #f7f7f7;
9
+ color: #8d0018;
10
+ container-type: inline-size;
11
+ display: flex;
9
12
  height: 30px;
10
13
  padding: 6px;
11
- color: #8d0018;
12
- position: absolute;
14
+ user-select: none;
13
15
  width: 100%;
14
- bottom: 0;
15
- container-type: inline-size;
16
16
  `;
17
17
 
18
18
  interface InfoContainerProps {
@@ -25,8 +25,8 @@ interface InfoContainerProps {
25
25
  }
26
26
 
27
27
  const InfoContainer = styled.div<InfoContainerProps>`
28
- margin: 0 10px;
29
28
  display: ${({ display = 'inline-block' }) => display};
29
+ margin: 0 10px;
30
30
 
31
31
  @container (max-width:${({ hideThreshold = 600 }) => hideThreshold}px) {
32
32
  display: ${({ autoHide = false, display = 'inline-block' }) =>
@@ -64,13 +64,13 @@ const Span = styled.span`
64
64
  `;
65
65
 
66
66
  InfoItem.Label = styled(Span)`
67
- font-size: 12px;
68
67
  color: #4d4d4d;
68
+ font-size: 12px;
69
69
  `;
70
70
 
71
71
  InfoItem.Value = styled(Span)`
72
- font-size: 14px;
73
72
  display: inline-block;
73
+ font-size: 14px;
74
74
  `;
75
75
 
76
76
  InfoItem.Unit = styled(Span)`
@@ -8,55 +8,55 @@ import type { StateMoleculeExtended } from '../../data/molecules/Molecule.js';
8
8
  import { NextPrev } from './NextPrev.js';
9
9
 
10
10
  const BarContainer = styled.div`
11
+ border-bottom: 0.55px solid rgb(240 240 240);
12
+ border-top: 0.55px solid rgb(240 240 240);
11
13
  display: flex;
12
14
  flex-direction: row;
13
- border-top: 0.55px solid rgb(240 240 240);
14
- border-bottom: 0.55px solid rgb(240 240 240);
15
15
  padding: 0 5px;
16
16
 
17
17
  p {
18
+ line-height: 22px;
18
19
  margin: 0;
20
+ padding: 0 10px;
19
21
  text-align: right;
20
22
  width: 100%;
21
- line-height: 22px;
22
- padding: 0 10px;
23
23
  }
24
24
  `;
25
25
 
26
26
  const MoleculeContainer = styled.div`
27
- width: 100%;
28
27
  position: relative;
28
+ width: 100%;
29
29
 
30
30
  button {
31
- flex: 2;
32
- padding: 5px;
31
+ background-color: gray;
33
32
  border: 1px solid gray;
34
33
  border-radius: 5px;
34
+ color: white;
35
+ display: block;
36
+ flex: 2;
35
37
  height: 36px;
36
38
  margin: 0 auto;
37
39
  margin-top: 15px;
38
- display: block;
40
+ padding: 5px;
39
41
  width: 20%;
40
- color: white;
41
- background-color: gray;
42
42
  }
43
43
  `;
44
44
 
45
45
  const SliderContent = styled.div`
46
- height: 180px;
47
- width: 100%;
48
- padding: 0;
49
- display: flex;
50
- justify-content: center;
51
46
  align-items: center;
47
+ display: flex;
52
48
  flex-direction: column;
49
+ height: 180px;
50
+ justify-content: center;
51
+ padding: 0;
52
+ width: 100%;
53
53
 
54
54
  p {
55
- width: 100%;
56
- margin: 0 auto;
57
- display: block;
58
55
  position: relative;
56
+ display: block;
57
+ margin: 0 auto;
59
58
  text-align: center;
59
+ width: 100%;
60
60
  }
61
61
 
62
62
  svg polygon {
@@ -95,7 +95,7 @@ export default function MoleculeSelection(props: MoleculeSelectionProps) {
95
95
  <p>
96
96
  {molecules &&
97
97
  molecules.length > 0 &&
98
- `${+(currentIndex + 1)} / ${molecules.length}`}{' '}
98
+ `${currentIndex + 1} / ${molecules.length}`}{' '}
99
99
  </p>
100
100
  </BarContainer>
101
101
  <MoleculeContainer>
@@ -15,22 +15,22 @@ interface ArrowProps {
15
15
  const ArrowButton = styled.div<{
16
16
  direction: Direction;
17
17
  }>`
18
+ align-items: center;
19
+ background-color: #f7f7f7;
20
+ border: none;
21
+ border-radius: 50%;
22
+ cursor: pointer;
18
23
  display: inline-flex;
19
24
  height: 40px;
20
- width: 40px;
21
25
  justify-content: center;
22
- border-radius: 50%;
23
- cursor: pointer;
24
- align-items: center;
25
- border: none;
26
- transition: transform ease-in 0.1s;
27
- background-color: #f7f7f7;
28
26
  pointer-events: auto;
27
+ transition: transform ease-in 0.1s;
28
+ width: 40px;
29
29
 
30
- &:hover {
31
- transform: scale(1.1);
30
+ :hover {
32
31
  background-color: #607d8b !important;
33
32
  color: white;
33
+ transform: scale(1.1);
34
34
  }
35
35
 
36
36
  img {
@@ -56,27 +56,27 @@ function Arrow({ direction, onClick, style = {} }: ArrowProps) {
56
56
 
57
57
  const Container = styled.div`
58
58
  position: relative;
59
+ display: block;
59
60
  height: 100%;
60
- width: 100%;
61
61
  margin: 0 auto;
62
62
  overflow: hidden;
63
- display: block;
63
+ width: 100%;
64
64
  `;
65
65
  const TransformController = styled.div<{
66
66
  translation: number;
67
67
  slidersWidth: number;
68
68
  }>(
69
- ({ translation, slidersWidth }) => `transform: translateX(-${translation}px);
69
+ ({ translation, slidersWidth }) => `
70
+ display: flex;
71
+ height: 100%;transform: translateX(-${translation}px);
70
72
  transition: transform ease-out ${transition}s;
71
- height: 100%;
72
73
  width: ${slidersWidth}px;
73
- display: flex;
74
74
  `,
75
75
  );
76
76
 
77
77
  const Content = styled.div<{ width: number }>`
78
- width: ${(props) => props.width}px;
79
78
  flex: 1;
79
+ width: ${(props) => props.width}px;
80
80
  `;
81
81
 
82
82
  const transition = 0.45;
@@ -1,11 +1,11 @@
1
1
  import styled from '@emotion/styled';
2
2
 
3
3
  export const BaseReactTable = styled.table`
4
- border-spacing: 0;
5
4
  border: 1px solid #dedede;
6
- width: 100%;
7
- max-height: 100%;
5
+ border-spacing: 0;
8
6
  font-size: 12px;
7
+ max-height: 100%;
8
+ width: 100%;
9
9
 
10
10
  .react-contextmenu-wrapper {
11
11
  display: contents;
@@ -13,10 +13,10 @@ export const BaseReactTable = styled.table`
13
13
 
14
14
  th,
15
15
  td {
16
- margin: 0;
17
- padding: 0.15rem 0.4rem;
18
16
  border-bottom: 1px solid #dedede;
19
17
  border-right: 1px solid #dedede;
18
+ margin: 0;
19
+ padding: 0.15rem 0.4rem;
20
20
  }
21
21
 
22
22
  tr {
@@ -29,8 +29,8 @@ export const BaseReactTable = styled.table`
29
29
 
30
30
  th {
31
31
  position: sticky;
32
+ top: 0;
32
33
  background-color: white;
33
34
  z-index: 0;
34
- top: 0;
35
35
  }
36
36
  `;
@@ -17,25 +17,25 @@ const fadeIn = keyframes`
17
17
 
18
18
  const Overlay = styled.div`
19
19
  position: absolute;
20
- left: 0;
21
20
  top: 0;
22
- width: 100%;
23
- height: 100%;
24
- display: flex;
21
+ left: 0;
25
22
  align-items: center;
26
- justify-content: center;
27
23
  cursor: not-allowed;
24
+ display: flex;
25
+ height: 100%;
26
+ justify-content: center;
27
+ width: 100%;
28
28
  `;
29
29
 
30
30
  const MessageContainer = styled.div<{ show: boolean }>`
31
+ align-items: center;
32
+ animation: ${fadeIn} 0.3s ease;
31
33
  background-color: white;
32
- padding: 16px;
33
34
  border-radius: 5px;
34
- align-items: center;
35
35
  box-shadow: 0 2px 10px rgb(0 0 0 / 10%);
36
36
  display: ${({ show }) => (show ? 'flex' : 'none')};
37
- animation: ${fadeIn} 0.3s ease;
38
37
  gap: 8px;
38
+ padding: 16px;
39
39
  `;
40
40
 
41
41
  interface ReadOnlyProps
@@ -39,25 +39,25 @@ interface DropIndicatorProps {
39
39
 
40
40
  const DropIndicator = styled.div<DropIndicatorProps>`
41
41
  position: absolute;
42
- z-index: 3;
42
+ right: 0;
43
+ left: 0;
43
44
  background-color: ${Colors.BLUE3};
44
45
  height: 2px;
45
- left: 0;
46
- right: 0;
47
46
  pointer-events: none;
47
+ z-index: 3;
48
48
  ${(props) => props.edge === 'top' && 'top: -1px;'}
49
49
  ${(props) => props.edge === 'bottom' && 'bottom: -1px;'}
50
50
  `;
51
51
 
52
52
  const Preview = styled.div`
53
- padding-block: 4px;
54
- padding-inline: 8px;
55
- border-radius: 4px;
56
53
  background-color: #f4f5f7;
54
+ border-radius: 4px;
57
55
  max-width: 360px;
58
- white-space: nowrap;
59
56
  overflow: hidden;
57
+ padding-block: 4px;
58
+ padding-inline: 8px;
60
59
  text-overflow: ellipsis;
60
+ white-space: nowrap;
61
61
  `;
62
62
 
63
63
  type DraggableState =
@@ -101,12 +101,12 @@ const Container = styled.div<{
101
101
  matchContentHeight: boolean;
102
102
  }>(
103
103
  ({ isOverflow, matchContentHeight }) => `
104
- width: 100%;
105
- height: ${matchContentHeight ? 'auto' : '100%'};
104
+ border: 1px solid #ddd;
106
105
  display: flex;
107
106
  flex-direction: column;
107
+ height: ${matchContentHeight ? 'auto' : '100%'};
108
108
  overflow: ${isOverflow ? 'auto' : 'hidden'};
109
- border: 1px solid #ddd;
109
+ width: 100%;
110
110
  `,
111
111
  );
112
112
 
@@ -115,9 +115,9 @@ const SectionWrapper = styled.div<
115
115
  >(
116
116
  ({ isOpen, isOverflow, matchContentHeight }) => `
117
117
  display: flex;
118
- flex-direction: column;
119
118
  flex:none;
120
119
  flex: ${isOpen && !matchContentHeight ? (isOverflow ? '1' : isOverflow ? '1' : '1 1 1px') : 'none'};
120
+ flex-direction: column;
121
121
  `,
122
122
  );
123
123
 
@@ -129,24 +129,24 @@ const Active = styled(Tag, {
129
129
  ({ isOpen }) => `
130
130
  background-color: ${isOpen ? '#4CAF50' : '#ccc'};
131
131
  color: ${isOpen ? 'white' : 'black'};
132
- margin-right: 10px;
133
132
  flex-shrink: 0;
133
+ margin-right: 10px;
134
134
  `,
135
135
  );
136
136
 
137
137
  const TitleContainer = styled.div`
138
- display: flex;
139
138
  align-items: center;
140
- min-width: 0;
139
+ display: flex;
141
140
  flex-grow: 1;
141
+ min-width: 0;
142
142
  `;
143
143
 
144
144
  const Title = styled.div`
145
- white-space: nowrap;
146
- overflow: hidden;
147
- text-overflow: ellipsis;
148
145
  flex-grow: 1;
149
146
  font-weight: 500;
147
+ overflow: hidden;
148
+ text-overflow: ellipsis;
149
+ white-space: nowrap;
150
150
  `;
151
151
 
152
152
  const OpenIcon = styled(Icon, {
@@ -154,9 +154,9 @@ const OpenIcon = styled(Icon, {
154
154
  return propName !== 'isOpen';
155
155
  },
156
156
  })<ActiveProps>`
157
+ margin-left: 10px;
157
158
  transform: ${({ isOpen }) => (isOpen ? 'rotate(90deg)' : 'rotate(0deg)')};
158
159
  transition: transform 0.3s ease;
159
- margin-left: 10px;
160
160
  `;
161
161
 
162
162
  const ContentWrapper = styled.div<ActiveProps>(
@@ -164,46 +164,46 @@ const ContentWrapper = styled.div<ActiveProps>(
164
164
  background-color: white;
165
165
  display: ${isOpen ? 'flex' : 'none'};
166
166
  flex: ${isOpen ? (isOverflow ? '1' : '1 1 1px') : 'none'};
167
- max-height: 100%;
168
167
  flex-direction:column;
168
+ max-height: 100%;
169
169
  `,
170
170
  );
171
171
  const Content = styled.div`
172
- height: 100%;
173
- width: 100%;
174
- overflow: auto;
172
+ position: relative;
175
173
  display: flex;
176
174
  flex-direction: column;
175
+ height: 100%;
176
+ overflow: auto;
177
177
  padding: 10px;
178
- position: relative;
178
+ width: 100%;
179
179
  z-index: 0;
180
180
  `;
181
181
  const ElementsContainer = styled.div`
182
- display: flex;
183
182
  align-items: center;
183
+ display: flex;
184
184
  `;
185
185
 
186
186
  const Header = styled.div`
187
- display: flex;
188
187
  align-items: center;
188
+ background-color: #f5f5f5;
189
+ display: flex;
189
190
  justify-content: space-between;
190
191
  padding: 5px 10px;
191
- background-color: #f5f5f5;
192
192
 
193
- &:hover {
193
+ :hover {
194
194
  background-color: #e0e0e0;
195
195
  }
196
196
 
197
- &:active {
197
+ :active {
198
198
  background-color: #d0d0d0;
199
199
  }
200
200
  `;
201
201
 
202
202
  const InnerHeader = styled.div`
203
- padding: 5px;
204
203
  background-color: white;
205
204
  border-bottom: 1px solid #ddd;
206
205
  border-top: 1px solid #ddd;
206
+ padding: 5px;
207
207
  `;
208
208
 
209
209
  interface BaseSectionProps {
@@ -5,25 +5,25 @@ import { forwardRef, useCallback } from 'react';
5
5
  const arrowDownIcon = `url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="960px" height="560px" viewBox="0 0 960 560" enable-background="new 0 0 960 560" xml:space="preserve"><g id="Rounded_Rectangle_33_copy_4_1_"><path d="M480,344.181L268.869,131.889c-15.756-15.859-41.3-15.859-57.054,0c-15.754,15.857-15.754,41.57,0,57.431l237.632,238.937c8.395,8.451,19.562,12.254,30.553,11.698c10.993,0.556,22.159-3.247,30.555-11.698l237.631-238.937c15.756-15.86,15.756-41.571,0-57.431s-41.299-15.859-57.051,0L480,344.181z"/></g></svg>')`;
6
6
 
7
7
  const BaseSelect = styled.select<{ width: number | string | undefined }>`
8
- padding: 0 5px;
9
- border: 0.55px solid #cacaca;
10
- font-size: 14px;
11
- width: ${({ width }) => (width ? Number(width) - 5 : 115)}px;
12
- margin: 0;
13
- height: 100%;
14
- background: ${arrowDownIcon} no-repeat right white;
8
+ align-self: center;
15
9
  appearance: none;
10
+ background: ${arrowDownIcon} no-repeat right white;
16
11
  background-position-x: calc(100% - 5px);
17
12
  background-size: 15px 15px;
13
+ border: 0.55px solid #cacaca;
18
14
  border-radius: 5px;
19
- align-self: center;
15
+ font-size: 14px;
16
+ height: 100%;
17
+ margin: 0;
18
+ padding: 0 5px;
19
+ width: ${({ width }) => (width ? Number(width) - 5 : 115)}px;
20
20
 
21
- &:focus,
21
+ :focus,
22
22
  input:focus {
23
23
  outline: none;
24
24
  }
25
25
 
26
- &:required:invalid {
26
+ :required:invalid {
27
27
  color: #666;
28
28
  }
29
29
  `;
@@ -5,7 +5,7 @@ import type { CSSProperties } from 'react';
5
5
  export const StyledDialogBody = styled(DialogBody)<
6
6
  Pick<CSSProperties, 'padding' | 'backgroundColor'>
7
7
  >`
8
- padding: ${({ padding = '15px' }) => padding};
9
8
  background-color: ${({ backgroundColor = 'white' }) => backgroundColor};
10
9
  margin: 0;
10
+ padding: ${({ padding = '15px' }) => padding};
11
11
  `;
@@ -3,15 +3,15 @@ import type { CSSProperties } from 'react';
3
3
  import { FaTimes } from 'react-icons/fa';
4
4
 
5
5
  const BaseButton = styled.button`
6
- border-radius: 50%;
7
- width: 16px;
8
- height: 16px;
6
+ align-items: center;
9
7
  background-color: transparent;
10
8
  border: none;
11
- padding: 0;
9
+ border-radius: 50%;
12
10
  display: flex;
13
- align-items: center;
11
+ height: 16px;
14
12
  justify-content: center;
13
+ padding: 0;
14
+ width: 16px;
15
15
 
16
16
  .icon {
17
17
  color: #252525;