@corva/ui 0.49.0-2 → 0.49.0-4

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 (242) hide show
  1. package/components/AddComment/Popover.js +1 -1
  2. package/components/AddComment/components/Content.js +1 -1
  3. package/components/Annotations/components/AnnotationsList/components/AnnotationComments/index.d.ts +1 -1
  4. package/components/Annotations/components/AnnotationsList/components/AnnotationInput/index.d.ts +2 -2
  5. package/components/Annotations/components/AnnotationsList/index.d.ts +3 -3
  6. package/components/AppVersionsSelect/AppVersionsSelect.d.ts +1 -1
  7. package/components/AppVersionsSelect/AppVersionsSelect.js +1 -1
  8. package/components/AssetEditor/AssetEditorAutocomplete.d.ts +4 -4
  9. package/components/AssetEditor/SingleAssetEditor.d.ts +2 -2
  10. package/components/Attachment/index.d.ts +2 -2
  11. package/components/Avatar/index.d.ts +81 -46
  12. package/components/Avatar/index.d.ts.map +1 -1
  13. package/components/Avatar/index.js +1 -1
  14. package/components/BICOffsetPickerDialog/index.js +1 -1
  15. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  16. package/components/Casing/CasingTableV2/components/Component.js +1 -1
  17. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  18. package/components/Chart/components/AxisDropdown.d.ts +11 -0
  19. package/components/Chart/components/AxisDropdown.d.ts.map +1 -0
  20. package/components/Chart/components/AxisDropdown.js +1 -0
  21. package/components/Chart/components/index.d.ts +1 -0
  22. package/components/Chart/options.d.ts +10 -2
  23. package/components/Chart/options.d.ts.map +1 -1
  24. package/components/Chart/tooltip.d.ts +2 -0
  25. package/components/Chart/tooltip.d.ts.map +1 -0
  26. package/components/CollapsableSidebar.d.ts +3 -3
  27. package/components/ColorPicker/ColorPicker.d.ts +2 -43
  28. package/components/ColorPicker/ColorPicker.d.ts.map +1 -1
  29. package/components/ColorPicker/ColorPicker.js +1 -1
  30. package/components/ColorPicker/index.d.ts +1 -1
  31. package/components/ColorPicker/index.d.ts.map +1 -1
  32. package/components/ColorPickerPalette/ColorPickerPalette.d.ts +2 -17
  33. package/components/ColorPickerPalette/ColorPickerPalette.d.ts.map +1 -1
  34. package/components/Comment/CommentIcon/index.d.ts +2 -1
  35. package/components/Comment/CommentIcon/index.d.ts.map +1 -1
  36. package/components/Comment/index.d.ts +3 -3
  37. package/components/CommentInput/index.d.ts +5 -5
  38. package/components/CommentsInfo/index.d.ts +3 -3
  39. package/components/ConfirmationDialog.d.ts +3 -3
  40. package/components/Counter/index.d.ts +35 -24
  41. package/components/Counter/index.d.ts.map +1 -1
  42. package/components/Counter/index.js +1 -1
  43. package/components/DateTimePicker/index.d.ts +14 -21
  44. package/components/DateTimePicker/index.d.ts.map +1 -1
  45. package/components/DateTimePicker/index.js +1 -1
  46. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts +31 -25
  47. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.d.ts.map +1 -1
  48. package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
  49. package/components/DevCenter/AppSettingsPopover/index.d.ts +1 -1
  50. package/components/DevCenter/AppSettingsPopover/index.d.ts.map +1 -1
  51. package/components/DevCenter/AppSideBar/AppSideBar.d.ts +58 -66
  52. package/components/DevCenter/AppSideBar/AppSideBar.d.ts.map +1 -1
  53. package/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
  54. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  55. package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
  56. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  57. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js +1 -1
  58. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
  59. package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
  60. package/components/DevCenter/DevCenterAppContainer/effects/useAppMaximized.d.ts +2 -2
  61. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterAppZoidComponent.js +1 -1
  62. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
  63. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  64. package/components/DocumentViewer/DocumentViewer.js +1 -1
  65. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  66. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  67. package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  68. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  69. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  70. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  71. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  72. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  73. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  74. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  75. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  76. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  77. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  78. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  79. package/components/Drillstring/BHAComponentsTable/components/sharedStyles.d.ts +1 -1
  80. package/components/EditableItem/EditableItem/index.d.ts +33 -37
  81. package/components/EditableItem/EditableItem/index.d.ts.map +1 -1
  82. package/components/EditableItem/EditableItem/index.js +1 -1
  83. package/components/EmbeddedApp/DevCenterEmbeddedApp.d.ts +1 -1
  84. package/components/EmbeddedApp/EmbeddedApp.d.ts +1 -1
  85. package/components/ErrorBoundary/ErrorBoundary.d.ts +1 -1
  86. package/components/FeedItem/FeedItem.d.ts +2 -2
  87. package/components/FeedItem/feedItemTypes/DepthCommentFeedItem.d.ts +1 -1
  88. package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Stages/utils.d.ts +20 -2
  89. package/components/FeedItem/feedItemTypes/StageOverviewFeedItem/components/Stages/utils.d.ts.map +1 -1
  90. package/components/FeedItem/feedItemTypes/TracesMemoFeedItem.d.ts +1 -1
  91. package/components/FilePreview/index.d.ts +1 -1
  92. package/components/FilesLoader/FilesLoader.d.ts +49 -58
  93. package/components/FilesLoader/FilesLoader.d.ts.map +1 -1
  94. package/components/FilesLoader/FilesLoader.js +1 -1
  95. package/components/FilesLoader/Icons/IconWarning.d.ts +1 -1
  96. package/components/FilesLoader/Icons/IconWarning.js +1 -1
  97. package/components/FilesLoader/index.d.ts +2 -2
  98. package/components/FilesLoader/index.d.ts.map +1 -1
  99. package/components/FilesLoader/useStyles.d.ts +1 -1
  100. package/components/FilesLoader/useStyles.d.ts.map +1 -1
  101. package/components/FilesLoader/useStyles.js +1 -1
  102. package/components/IconButton/index.d.ts +33 -10
  103. package/components/IconButton/index.d.ts.map +1 -1
  104. package/components/IconButton/index.js +1 -1
  105. package/components/IconMenu/index.d.ts +4 -4
  106. package/components/LoadingIndicator/FullScreenLoadingIndicator.d.ts +14 -17
  107. package/components/LoadingIndicator/FullScreenLoadingIndicator.d.ts.map +1 -1
  108. package/components/LoadingIndicator/FullScreenLoadingIndicator.js +1 -1
  109. package/components/LoadingIndicator/InlineLoadingIndicator.d.ts +14 -17
  110. package/components/LoadingIndicator/InlineLoadingIndicator.d.ts.map +1 -1
  111. package/components/LoadingIndicator/InlineLoadingIndicator.js +1 -1
  112. package/components/LoadingIndicator/Loader.d.ts +14 -15
  113. package/components/LoadingIndicator/Loader.d.ts.map +1 -1
  114. package/components/LoadingIndicator/Loader.js +1 -1
  115. package/components/LoadingIndicator/LoadingIndicator.d.ts +18 -26
  116. package/components/LoadingIndicator/LoadingIndicator.d.ts.map +1 -1
  117. package/components/LoadingIndicator/LoadingIndicator.js +1 -1
  118. package/components/LoadingIndicator/types.d.ts +25 -0
  119. package/components/LoadingIndicator/types.d.ts.map +1 -0
  120. package/components/LoadingIndicator/types.js +1 -0
  121. package/components/Modal/CorvaModal.d.ts +60 -69
  122. package/components/Modal/CorvaModal.d.ts.map +1 -1
  123. package/components/Modal/CorvaModal.js +1 -1
  124. package/components/Modal/Modal.d.ts +2 -1
  125. package/components/Modal/Modal.d.ts.map +1 -1
  126. package/components/Modal/Modal.js +1 -1
  127. package/components/Modal/index.d.ts +1 -1
  128. package/components/Modal/index.d.ts.map +1 -1
  129. package/components/Notifications/components/Toast.d.ts +1 -1
  130. package/components/OffsetWellButton/OffsetWellButton.d.ts +29 -28
  131. package/components/OffsetWellButton/OffsetWellButton.d.ts.map +1 -1
  132. package/components/OffsetWellButton/OffsetWellButton.js +1 -1
  133. package/components/OffsetWellButton/index.d.ts +1 -1
  134. package/components/OffsetWellButton/index.d.ts.map +1 -1
  135. package/components/OffsetWellChips/Chip.d.ts +19 -29
  136. package/components/OffsetWellChips/Chip.d.ts.map +1 -1
  137. package/components/OffsetWellChips/Chip.js +1 -1
  138. package/components/OffsetWellChips/ChipsContainer.d.ts +9 -11
  139. package/components/OffsetWellChips/ChipsContainer.d.ts.map +1 -1
  140. package/components/OffsetWellChips/ChipsContainer.js +1 -1
  141. package/components/OffsetWellChips/index.d.ts +2 -2
  142. package/components/OffsetWellChips/index.d.ts.map +1 -1
  143. package/components/OffsetWellChips/types.d.ts +17 -0
  144. package/components/OffsetWellChips/types.d.ts.map +1 -0
  145. package/components/OffsetWellChips/types.js +1 -0
  146. package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
  147. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  148. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  149. package/components/OffsetWellPickerV2/components/Table/MetricsSelect.d.ts +2 -2
  150. package/components/OffsetWellPickerV2/constants.d.ts +15 -2
  151. package/components/OffsetWellPickerV2/constants.d.ts.map +1 -1
  152. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
  153. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  154. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsSelect.d.ts +1 -1
  155. package/components/OffsetWellPickerV3/components/CustomSelectionView/constants.d.ts +15 -2
  156. package/components/OffsetWellPickerV3/components/CustomSelectionView/constants.d.ts.map +1 -1
  157. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  158. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  159. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  160. package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  161. package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  162. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  163. package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
  164. package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
  165. package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
  166. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  167. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.module.css.js +1 -1
  168. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.js +1 -1
  169. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.module.css.js +1 -1
  170. package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
  171. package/components/OffsetWellPickerV4/constants.d.ts +15 -2
  172. package/components/OffsetWellPickerV4/constants.d.ts.map +1 -1
  173. package/components/ParameterCharts/AddEditTrack.d.ts +2 -2
  174. package/components/ParameterCharts/components/DataLoadingIndicator.d.ts +1 -1
  175. package/components/ParameterCharts/components/TrackSettings.d.ts +1 -1
  176. package/components/PostPreviewDialog/index.d.ts +5 -5
  177. package/components/RangeSlider/RangeSlider.d.ts +42 -34
  178. package/components/RangeSlider/RangeSlider.d.ts.map +1 -1
  179. package/components/RangeSlider/RangeSlider.js +1 -1
  180. package/components/ResizableTable/ResizableTable.d.ts +8 -10
  181. package/components/ResizableTable/ResizableTable.d.ts.map +1 -1
  182. package/components/ResizableTable/ResizableTable.js +1 -1
  183. package/components/ResizableTable/ResizableTableCell.d.ts +8 -7
  184. package/components/ResizableTable/ResizableTableCell.d.ts.map +1 -1
  185. package/components/ResizableTable/ResizableTableCell.js +1 -1
  186. package/components/ResizableTable/ResizableTableHeaderCell.d.ts +18 -15
  187. package/components/ResizableTable/ResizableTableHeaderCell.d.ts.map +1 -1
  188. package/components/ResizableTable/ResizableTableHeaderCell.js +1 -1
  189. package/components/ResizableTable/index.d.ts +1 -1
  190. package/components/ResizableTable/index.d.ts.map +1 -1
  191. package/components/Search/Search.d.ts +68 -69
  192. package/components/Search/Search.d.ts.map +1 -1
  193. package/components/Search/Search.js +1 -1
  194. package/components/Search/styles.d.ts +1 -1
  195. package/components/Search/styles.d.ts.map +1 -1
  196. package/components/Select/index.d.ts +44 -24
  197. package/components/Select/index.d.ts.map +1 -1
  198. package/components/Select/index.js +1 -1
  199. package/components/SettingEditors/ColorEditor/index.d.ts +82 -45
  200. package/components/SettingEditors/ColorEditor/index.d.ts.map +1 -1
  201. package/components/SettingEditors/ColorEditor/index.js +1 -1
  202. package/components/SettingEditors/DropdownEditor/index.d.ts +1 -1
  203. package/components/SettingEditors/RadioEditor/index.d.ts +25 -21
  204. package/components/SettingEditors/RadioEditor/index.d.ts.map +1 -1
  205. package/components/SettingEditors/RadioEditor/index.js +1 -1
  206. package/components/StageDesignVActual/ElementsComparison/ElementsComparison.d.ts +1 -1
  207. package/components/StageDesignVActual/ElementsComparison/ElementsComparison.d.ts.map +1 -1
  208. package/components/StageDesignVActual/ElementsComparison/utils.d.ts +4 -1
  209. package/components/StageDesignVActual/ElementsComparison/utils.d.ts.map +1 -1
  210. package/components/Stepper/Step.d.ts +37 -42
  211. package/components/Stepper/Step.d.ts.map +1 -1
  212. package/components/Stepper/Step.js +1 -1
  213. package/components/Stepper/Stepper.d.ts +29 -18
  214. package/components/Stepper/Stepper.d.ts.map +1 -1
  215. package/components/Stepper/Stepper.js +1 -1
  216. package/components/Stepper/StepsWrapper.d.ts +16 -14
  217. package/components/Stepper/StepsWrapper.d.ts.map +1 -1
  218. package/components/Stepper/StepsWrapper.js +1 -1
  219. package/components/SwitchControl/index.d.ts +6 -93
  220. package/components/SwitchControl/index.d.ts.map +1 -1
  221. package/components/Template/TemplateSharingDialog/ChipSelector.d.ts +1 -1
  222. package/components/TextField/index.d.ts +1 -1
  223. package/components/Typography.d.ts +16 -16
  224. package/components/UserMention/index.d.ts +1 -1
  225. package/components/index.d.ts +2 -1
  226. package/components/index.js +1 -1
  227. package/constants/goals.d.ts +31 -4
  228. package/constants/goals.d.ts.map +1 -1
  229. package/constants/wellSummary.d.ts +14 -0
  230. package/constants/wellSummary.d.ts.map +1 -1
  231. package/hocs/withMUIProvidersHOC.d.ts +1 -1
  232. package/package.json +1 -1
  233. package/types.d.ts +1 -0
  234. package/utils/accuracy.d.ts +1 -1
  235. package/utils/accuracy.d.ts.map +1 -1
  236. package/utils/casing/conversion.d.ts +1 -1
  237. package/utils/casing/conversion.d.ts.map +1 -1
  238. package/utils/completion.d.ts +1 -1
  239. package/utils/completion.d.ts.map +1 -1
  240. package/utils/goals.d.ts +3 -3
  241. package/utils/goals.d.ts.map +1 -1
  242. package/utils/mapbox.d.ts +1 -1
@@ -1,36 +1,56 @@
1
- export default Select;
2
- declare function Select(props: any): JSX.Element;
3
- declare namespace Select {
4
- namespace propTypes {
5
- const FormControlProps: PropTypes.Requireable<PropTypes.InferProps<{
1
+ import { SelectProps as MuiSelectProps, MenuProps as MuiMenuProps, FormControlProps as MuiFormControlProps } from '@material-ui/core';
2
+ import PropTypes from 'prop-types';
3
+ interface SelectProps extends MuiFormControlProps, PropTypes.InferProps<typeof selectPropTypes> {
4
+ MenuProps?: Partial<MuiMenuProps> & {
5
+ list: string;
6
+ paper: string;
7
+ };
8
+ }
9
+ declare const Select: {
10
+ (props: SelectProps & MuiSelectProps): JSX.Element;
11
+ propTypes: {
12
+ FormControlProps: PropTypes.Requireable<PropTypes.InferProps<{
6
13
  classes: PropTypes.Requireable<PropTypes.InferProps<{
7
14
  root: PropTypes.Requireable<string>;
8
15
  }>>;
9
16
  disabled: PropTypes.Requireable<boolean>;
10
17
  variant: PropTypes.Requireable<string>;
11
18
  }>>;
12
- const InputLabelProps: PropTypes.Requireable<PropTypes.InferProps<{
19
+ InputLabelProps: PropTypes.Requireable<PropTypes.InferProps<{
13
20
  classes: PropTypes.Requireable<PropTypes.InferProps<{
14
21
  root: PropTypes.Requireable<string>;
15
22
  disabled: PropTypes.Requireable<string>;
16
23
  }>>;
17
24
  }>>;
18
- const label: PropTypes.Requireable<string>;
19
- const formHelperText: PropTypes.Requireable<string>;
20
- const error: PropTypes.Requireable<boolean>;
21
- }
22
- namespace defaultProps {
23
- const FormControlProps_1: {};
24
- export { FormControlProps_1 as FormControlProps };
25
- const InputLabelProps_1: {};
26
- export { InputLabelProps_1 as InputLabelProps };
27
- const label_1: any;
28
- export { label_1 as label };
29
- const formHelperText_1: any;
30
- export { formHelperText_1 as formHelperText };
31
- const error_1: boolean;
32
- export { error_1 as error };
33
- }
34
- }
35
- import PropTypes from "prop-types";
25
+ label: PropTypes.Requireable<string>;
26
+ formHelperText: PropTypes.Requireable<string>;
27
+ error: PropTypes.Requireable<boolean>;
28
+ };
29
+ defaultProps: {
30
+ FormControlProps: {};
31
+ InputLabelProps: {};
32
+ label: any;
33
+ formHelperText: any;
34
+ error: boolean;
35
+ };
36
+ };
37
+ declare const selectPropTypes: {
38
+ FormControlProps: PropTypes.Requireable<PropTypes.InferProps<{
39
+ classes: PropTypes.Requireable<PropTypes.InferProps<{
40
+ root: PropTypes.Requireable<string>;
41
+ }>>;
42
+ disabled: PropTypes.Requireable<boolean>;
43
+ variant: PropTypes.Requireable<string>;
44
+ }>>;
45
+ InputLabelProps: PropTypes.Requireable<PropTypes.InferProps<{
46
+ classes: PropTypes.Requireable<PropTypes.InferProps<{
47
+ root: PropTypes.Requireable<string>;
48
+ disabled: PropTypes.Requireable<string>;
49
+ }>>;
50
+ }>>;
51
+ label: PropTypes.Requireable<string>;
52
+ formHelperText: PropTypes.Requireable<string>;
53
+ error: PropTypes.Requireable<boolean>;
54
+ };
55
+ export default Select;
36
56
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.js"],"names":[],"mappings":";AAuJA,iDA2CC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,WAAW,IAAI,cAAc,EAC7B,SAAS,IAAI,YAAY,EAEzB,gBAAgB,IAAI,mBAAmB,EAIxC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,SAAS,MAAM,YAAY,CAAC;AA+InC,UAAU,WAAY,SAAQ,mBAAmB,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC;IAC7F,SAAS,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG;QAClC,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf,CAAA;CACF;AAED,QAAA,MAAM,MAAM;2CAA0C,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;CA4ChE,CAAC;AAEF,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;CAiBpB,CAAC;AAYF,eAAe,MAAM,CAAC"}
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/objectWithoutProperties";import{useMemo as o}from"react";import{makeStyles as t,FormControl as i,InputLabel as l,Select as n,FormHelperText as a}from"@material-ui/core";import u from"prop-types";import p from"uuid/v4";import d from"classnames";import{jsxs as s,jsx as c}from"react/jsx-runtime";var b=["FormControlProps","InputLabelProps","label","formHelperText"];function m(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),o.push.apply(o,t)}return o}function M(r){for(var o=1;o<arguments.length;o++){var t=null!=arguments[o]?arguments[o]:{};o%2?m(Object(t),!0).forEach((function(o){e(r,o,t[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}))}return r}var f=t((function(e){return{formControlRoot:{"&:hover":{"& .MuiFormLabel-root":{color:e.palette.primary.contrastText},"& .MuiInput-underline:not(.Mui-disabled), & .MuiFilledInput-underline:not(.Mui-disabled)":{"&::before":{borderBottom:"2px solid ".concat(e.palette.primary.contrastText)}},"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.contrastText}},"& .MuiInputBase-root.Mui-focused":{"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.main}},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::before":{borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&.Mui-disabled":{"&::before":{opacity:"0.4",borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&::after":{opacity:"0.4"}}},"& .MuiSelect-root":{"&.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"}},"& .MuiFormLabel-root":{color:e.palette.primary.text6,"&.Mui-focused":{color:e.palette.primary.main},"&.Mui-disabled.MuiInputLabel-root":{color:e.palette.primary.text6,opacity:"0.4"}},"& .MuiSelect-icon.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"},"& .MuiFormHelperText-root":{color:e.palette.primary.text6,"&.Mui-disabled":{opacity:"0.4"}},"& .MuiFilledInput-root":{backgroundColor:e.palette.background.b6,"&:hover":{backgroundColor:e.palette.background.b7},"&.Mui-disabled":{backgroundColor:e.palette.background.b6,opacity:"0.4"}},"& .MuiInputLabel-filled":{left:2},"& .MuiSelect-filled":{paddingLeft:14},"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.text6}},menuList:{backgroundColor:e.palette.background.b9,"& .MuiMenuItem-root":{"&.Mui-selected":{backgroundColor:e.palette.primary.text9}}},error:{"&:hover":{"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"2px solid ".concat(e.palette.error.main)}},"& .MuiInput-underline.Mui-disabled, & .MuiFilledInput-underline.Mui-disabled":{"&::before":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&::after":{display:"none"}},"& .MuiOutlinedInput-root.Mui-error:not(.Mui-disabled) .MuiOutlinedInput-notchedOutline":{borderWidth:2}},"& .MuiFormLabel-root.MuiInputLabel-root":{color:e.palette.error.main,"&.Mui-focused":{color:e.palette.error.main},"&.Mui-disabled":{color:e.palette.error.main}},"& .MuiFormHelperText-root":{color:e.palette.error.main},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&.Mui-disabled::after":{display:"none"},"&.Mui-disabled::before":{borderBottom:"1px solid ".concat(e.palette.error.main)}},"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.error.main,opacity:"0.4"}}}})),y=function(t){var u,m,y,I,x=t.FormControlProps,g=t.InputLabelProps,v=t.label,P=t.formHelperText,O=r(t,b),h=o(p,[]),F=f();return s(i,M(M({},x),{},{classes:M(M({},x.classes),{},{root:d(null===(u=x.classes)||void 0===u?void 0:u.root,F.formControlRoot,e({},F.error,O.error))}),disabled:x.disabled||O.disabled,children:[v&&c(l,M(M({id:h},g),{},{children:v})),c(n,M(M({},O),{},{labelId:h,label:v,MenuProps:M(M({},null==O?void 0:O.MenuProps),{},{classes:M(M({},null==O||null===(m=O.MenuProps)||void 0===m?void 0:m.classes),{},{paper:d(null==O||null===(y=O.MenuProps)||void 0===y?void 0:y.paper,e({},F.outlinedMenuPaper,"outlined"===x.variant)),list:d(null==O||null===(I=O.MenuProps)||void 0===I?void 0:I.list,F.menuList)})})})),P&&c(a,{children:P})]}))};y.propTypes={FormControlProps:u.shape({classes:u.shape({root:u.string}),disabled:u.bool,variant:u.oneOf(["outlined","filled","standard"])}),InputLabelProps:u.shape({classes:u.shape({root:u.string,disabled:u.string})}),label:u.string,formHelperText:u.string,error:u.bool},y.defaultProps={FormControlProps:{},InputLabelProps:{},label:null,formHelperText:null,error:!1};export{y as default};
1
+ import{__rest as e,__assign as o}from"../../_virtual/_tslib.js";import{jsxs as r,jsx as t}from"react/jsx-runtime";import{useMemo as l}from"react";import{makeStyles as i,FormControl as a,InputLabel as n,Select as u,FormHelperText as p}from"@material-ui/core";import d from"prop-types";import s from"uuid/v4";import c from"classnames";var m=i((function(e){return{formControlRoot:{"&:hover":{"& .MuiFormLabel-root":{color:e.palette.primary.contrastText},"& .MuiInput-underline:not(.Mui-disabled), & .MuiFilledInput-underline:not(.Mui-disabled)":{"&::before":{borderBottom:"2px solid ".concat(e.palette.primary.contrastText)}},"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.contrastText}},"& .MuiInputBase-root.Mui-focused":{"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.main}},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::before":{borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&.Mui-disabled":{"&::before":{opacity:"0.4",borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&::after":{opacity:"0.4"}}},"& .MuiSelect-root":{"&.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"}},"& .MuiFormLabel-root":{color:e.palette.primary.text6,"&.Mui-focused":{color:e.palette.primary.main},"&.Mui-disabled.MuiInputLabel-root":{color:e.palette.primary.text6,opacity:"0.4"}},"& .MuiSelect-icon.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"},"& .MuiFormHelperText-root":{color:e.palette.primary.text6,"&.Mui-disabled":{opacity:"0.4"}},"& .MuiFilledInput-root":{backgroundColor:e.palette.background.b6,"&:hover":{backgroundColor:e.palette.background.b7},"&.Mui-disabled":{backgroundColor:e.palette.background.b6,opacity:"0.4"}},"& .MuiInputLabel-filled":{left:2},"& .MuiSelect-filled":{paddingLeft:14},"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.text6}},menuList:{backgroundColor:e.palette.background.b9,"& .MuiMenuItem-root":{"&.Mui-selected":{backgroundColor:e.palette.primary.text9}}},error:{"&:hover":{"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"2px solid ".concat(e.palette.error.main)}},"& .MuiInput-underline.Mui-disabled, & .MuiFilledInput-underline.Mui-disabled":{"&::before":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&::after":{display:"none"}},"& .MuiOutlinedInput-root.Mui-error:not(.Mui-disabled) .MuiOutlinedInput-notchedOutline":{borderWidth:2}},"& .MuiFormLabel-root.MuiInputLabel-root":{color:e.palette.error.main,"&.Mui-focused":{color:e.palette.error.main},"&.Mui-disabled":{color:e.palette.error.main}},"& .MuiFormHelperText-root":{color:e.palette.error.main},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&.Mui-disabled::after":{display:"none"},"&.Mui-disabled::before":{borderBottom:"1px solid ".concat(e.palette.error.main)}},"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.error.main,opacity:"0.4"}}}})),b=function(i){var d,b,M,f,I,x,y=i.FormControlProps,v=i.InputLabelProps,g=i.label,F=i.formHelperText,P=e(i,["FormControlProps","InputLabelProps","label","formHelperText"]),h=l(s,[]),L=m();return r(a,o({},y,{classes:o(o({},y.classes),{root:c(null===(M=y.classes)||void 0===M?void 0:M.root,L.formControlRoot,(d={},d[L.error]=P.error,d))}),disabled:y.disabled||P.disabled},{children:[g&&t(n,o({id:h},v,{children:g})),t(u,o({},P,{labelId:h,label:g,MenuProps:o(o({},null==P?void 0:P.MenuProps),{classes:o(o({},null===(f=null==P?void 0:P.MenuProps)||void 0===f?void 0:f.classes),{paper:c(null===(I=null==P?void 0:P.MenuProps)||void 0===I?void 0:I.paper,(b={},b[L.outlinedMenuPaper]="outlined"===y.variant,b)),list:c(null===(x=null==P?void 0:P.MenuProps)||void 0===x?void 0:x.list,L.menuList)})})})),F&&t(p,{children:F})]}))},M={FormControlProps:d.shape({classes:d.shape({root:d.string}),disabled:d.bool,variant:d.oneOf(["outlined","filled","standard"])}),InputLabelProps:d.shape({classes:d.shape({root:d.string,disabled:d.string})}),label:d.string,formHelperText:d.string,error:d.bool};b.propTypes=M,b.defaultProps={FormControlProps:{},InputLabelProps:{},label:null,formHelperText:null,error:!1};export{b as default};
@@ -1,56 +1,93 @@
1
- export function ColorEditor({ onChange, currentValue, defaultValue, classes, condensed, colors, lensColor, }: {
2
- onChange: any;
3
- currentValue: any;
4
- defaultValue: any;
5
- classes: any;
6
- condensed: any;
7
- colors: any;
8
- lensColor: any;
9
- }): JSX.Element;
10
- export namespace ColorEditor {
11
- namespace propTypes {
12
- const currentValue: PropTypes.Validator<string>;
13
- const defaultValue: PropTypes.Requireable<string>;
14
- const condensed: PropTypes.Requireable<boolean>;
15
- const onChange: PropTypes.Validator<(...args: any[]) => any>;
16
- const colors: PropTypes.Requireable<string[]>;
17
- const classes: PropTypes.Validator<NonNullable<PropTypes.InferProps<{}>>>;
18
- const lensColor: PropTypes.Requireable<string>;
19
- }
20
- namespace defaultProps {
21
- const condensed_1: boolean;
22
- export { condensed_1 as condensed };
23
- const colors_1: string[];
24
- export { colors_1 as colors };
25
- const defaultValue_1: string;
26
- export { defaultValue_1 as defaultValue };
27
- const lensColor_1: string;
28
- export { lensColor_1 as lensColor };
29
- }
30
- }
31
- declare const _default: import("react").ComponentType<Pick<Pick<Pick<{
32
- onChange: any;
33
- currentValue: any;
34
- defaultValue: any;
35
- classes: any;
36
- condensed: any;
37
- colors: any;
38
- lensColor: any;
39
- }, never> & Pick<PropTypes.InferProps<{
1
+ /// <reference types="react" />
2
+ import PropTypes from 'prop-types';
3
+ declare type ColorEditorProps = PropTypes.InferProps<typeof colorEditorPropTypes>;
4
+ export declare const ColorEditor: {
5
+ ({ onChange, currentValue, defaultValue, classes, condensed, colors, lensColor, }: ColorEditorProps): JSX.Element;
6
+ propTypes: {
7
+ currentValue: PropTypes.Validator<string>;
8
+ defaultValue: PropTypes.Requireable<string>;
9
+ condensed: PropTypes.Requireable<boolean>;
10
+ onChange: PropTypes.Validator<(...args: any[]) => any>;
11
+ colors: PropTypes.Requireable<string[]>;
12
+ classes: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
13
+ button: PropTypes.Requireable<string>;
14
+ }>>>;
15
+ lensColor: PropTypes.Requireable<string>;
16
+ };
17
+ defaultProps: {
18
+ condensed: boolean;
19
+ colors: string[];
20
+ defaultValue: string;
21
+ lensColor: string;
22
+ };
23
+ };
24
+ declare const colorEditorPropTypes: {
40
25
  currentValue: PropTypes.Validator<string>;
41
26
  defaultValue: PropTypes.Requireable<string>;
42
27
  condensed: PropTypes.Requireable<boolean>;
43
28
  onChange: PropTypes.Validator<(...args: any[]) => any>;
44
29
  colors: PropTypes.Requireable<string[]>;
45
- classes: PropTypes.Validator<NonNullable<PropTypes.InferProps<{}>>>;
30
+ classes: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
31
+ button: PropTypes.Requireable<string>;
32
+ }>>>;
46
33
  lensColor: PropTypes.Requireable<string>;
47
- }>, "classes" | "onChange" | "defaultValue" | "condensed" | "currentValue" | "colors" | "lensColor">, "classes" | "onChange" | "currentValue"> & {
34
+ };
35
+ declare const _default: import("react").ComponentType<Pick<Pick<Pick<PropTypes.InferPropsInner<Pick<{
36
+ currentValue: PropTypes.Validator<string>;
37
+ defaultValue: PropTypes.Requireable<string>;
38
+ condensed: PropTypes.Requireable<boolean>;
39
+ onChange: PropTypes.Validator<(...args: any[]) => any>;
40
+ colors: PropTypes.Requireable<string[]>;
41
+ classes: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
42
+ button: PropTypes.Requireable<string>;
43
+ }>>>;
44
+ lensColor: PropTypes.Requireable<string>;
45
+ }, never>> & Partial<PropTypes.InferPropsInner<Pick<{
46
+ currentValue: PropTypes.Validator<string>;
47
+ defaultValue: PropTypes.Requireable<string>;
48
+ condensed: PropTypes.Requireable<boolean>;
49
+ onChange: PropTypes.Validator<(...args: any[]) => any>;
50
+ colors: PropTypes.Requireable<string[]>;
51
+ classes: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
52
+ button: PropTypes.Requireable<string>;
53
+ }>>>;
54
+ lensColor: PropTypes.Requireable<string>;
55
+ }, "classes" | "onChange" | "defaultValue" | "condensed" | "currentValue" | "lensColor" | "colors">>>, "classes" | "onChange" | "defaultValue" | "condensed" | "currentValue" | "lensColor" | "colors"> & Pick<PropTypes.InferProps<{
56
+ currentValue: PropTypes.Validator<string>;
57
+ defaultValue: PropTypes.Requireable<string>;
58
+ condensed: PropTypes.Requireable<boolean>;
59
+ onChange: PropTypes.Validator<(...args: any[]) => any>;
60
+ colors: PropTypes.Requireable<string[]>;
61
+ classes: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
62
+ button: PropTypes.Requireable<string>;
63
+ }>>>;
64
+ lensColor: PropTypes.Requireable<string>;
65
+ }>, never> & Pick<PropTypes.InferPropsInner<Pick<{
66
+ currentValue: PropTypes.Validator<string>;
67
+ defaultValue: PropTypes.Requireable<string>;
68
+ condensed: PropTypes.Requireable<boolean>;
69
+ onChange: PropTypes.Validator<(...args: any[]) => any>;
70
+ colors: PropTypes.Requireable<string[]>;
71
+ classes: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
72
+ button: PropTypes.Requireable<string>;
73
+ }>>>;
74
+ lensColor: PropTypes.Requireable<string>;
75
+ }, never>> & Partial<PropTypes.InferPropsInner<Pick<{
76
+ currentValue: PropTypes.Validator<string>;
77
+ defaultValue: PropTypes.Requireable<string>;
78
+ condensed: PropTypes.Requireable<boolean>;
79
+ onChange: PropTypes.Validator<(...args: any[]) => any>;
80
+ colors: PropTypes.Requireable<string[]>;
81
+ classes: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
82
+ button: PropTypes.Requireable<string>;
83
+ }>>>;
84
+ lensColor: PropTypes.Requireable<string>;
85
+ }, "classes" | "onChange" | "defaultValue" | "condensed" | "currentValue" | "lensColor" | "colors">>>, never>, "classes" | "onChange" | "currentValue"> & {
48
86
  defaultValue?: string;
49
87
  condensed?: boolean;
50
- colors?: string[];
51
88
  lensColor?: string;
52
- } & {}, "onChange" | "defaultValue" | "condensed" | "currentValue" | "colors" | "lensColor"> & import("@material-ui/core").StyledComponentProps<"button">>;
89
+ colors?: string[];
90
+ } & {}, "onChange" | "defaultValue" | "condensed" | "currentValue" | "lensColor" | "colors"> & import("@material-ui/core").StyledComponentProps<"button">>;
53
91
  export default _default;
54
- export function colorEditorForDefinitions(colors: any, defaultValue: any): (props: any) => JSX.Element;
55
- import PropTypes from "prop-types";
92
+ export declare const colorEditorForDefinitions: (colors: any, defaultValue: any) => (props: any) => JSX.Element;
56
93
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingEditors/ColorEditor/index.js"],"names":[],"mappings":"AAeO;;;;;;;;gBAiEN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBM,uGAEN"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingEditors/ColorEditor/index.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAcnC,aAAK,gBAAgB,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE1E,eAAO,MAAM,WAAW;uFAQrB,gBAAgB,GAAG,WAAW;;;;;;;;;;;;;;;;;;CAyDhC,CAAC;AAEF,QAAA,MAAM,oBAAoB;;;;;;;;;;CAUzB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWF,wBAAkD;AAElD,eAAO,MAAM,yBAAyB,iEAErC,CAAC"}
@@ -1 +1 @@
1
- import"@babel/runtime/helpers/defineProperty";import o from"@babel/runtime/helpers/slicedToArray";import{useState as r}from"react";import e from"prop-types";import{GithubPicker as n,ChromePicker as t}from"react-color";import{withStyles as i,Button as l,ClickAwayListener as a}from"@material-ui/core";import s from"@material-ui/icons/ColorLens";import c from"./style.css.js";import{jsxs as u,jsx as m}from"react/jsx-runtime";var d=function(e){var i=e.onChange,d=e.currentValue,f=e.defaultValue,p=e.classes,h=e.condensed,C=e.colors,g=e.lensColor,y=r(!1),b=o(y,2),v=b[0],F=b[1],V=r(d||f),k=o(V,2),x=k[0],E=k[1],q=function(){return i(x)};return u("div",{className:c.colorEditor,children:[m(l,{variant:"contained",color:"primary",onClick:function(){return F(!0)},className:p.button,style:{backgroundColor:x,color:g},children:m(s,{})}),v&&m(a,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:function(){F(!1),q()},children:m("div",{className:c.colorEditorPickerContainer,children:h?m(n,{color:x,onChange:function(o){E(o.hex),F(!1),q()},colors:C,triangle:"hide"}):m(t,{color:x,onChange:function(o){E(o.hex),q()}})})})]})};d.propTypes={currentValue:e.string.isRequired,defaultValue:e.string,condensed:e.bool,onChange:e.func.isRequired,colors:e.arrayOf(e.string),classes:e.shape({}).isRequired,lensColor:e.string},d.defaultProps={condensed:!1,colors:["#FF0000","#00FF00","#0000FF"],defaultValue:"#FF0000",lensColor:"#fff"};var f=i({button:{marginBottom:16}})(d);export{d as ColorEditor,f as default};
1
+ import{__assign as o}from"../../../_virtual/_tslib.js";import{jsxs as r,jsx as e}from"react/jsx-runtime";import{useState as n}from"react";import t from"prop-types";import{GithubPicker as i,ChromePicker as l}from"react-color";import{withStyles as a,Button as s,ClickAwayListener as c}from"@material-ui/core";import u from"@material-ui/icons/ColorLens";import m from"./style.css.js";var d=function(t){var a=t.onChange,d=t.currentValue,f=t.defaultValue,p=t.classes,h=t.condensed,g=t.colors,C=t.lensColor,v=n(!1),F=v[0],y=v[1],b=n(d||f),V=b[0],k=b[1],x=function(){return a(V)};return r("div",o({className:m.colorEditor},{children:[e(s,o({variant:"contained",color:"primary",onClick:function(){return y(!0)},className:p.button,style:{backgroundColor:V,color:C}},{children:e(u,{})})),F&&e(c,o({mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:function(){y(!1),x()}},{children:e("div",o({className:m.colorEditorPickerContainer},{children:h?e(i,{color:V,onChange:function(o){k(o.hex),y(!1),x()},colors:g,triangle:"hide"}):e(l,{color:V,onChange:function(o){k(o.hex),x()}})}))}))]}))},f={currentValue:t.string.isRequired,defaultValue:t.string,condensed:t.bool,onChange:t.func.isRequired,colors:t.arrayOf(t.string),classes:t.shape({button:t.string}).isRequired,lensColor:t.string};d.propTypes=f,d.defaultProps={condensed:!1,colors:["#FF0000","#00FF00","#0000FF"],defaultValue:"#FF0000",lensColor:"#fff"};var p=a({button:{marginBottom:16}})(d);export{d as ColorEditor,p as default};
@@ -35,6 +35,6 @@ declare const StyledDropdownEditor: import("react").ComponentType<Pick<Pick<Pick
35
35
  currentValue?: NonNullable<string | number | any[]>;
36
36
  errorText?: string;
37
37
  renderValue?: (...args: any[]) => any;
38
- } & {}, "onChange" | "defaultValue" | "placeholder" | "disabled" | "multiple" | "options" | "currentValue" | "errorText" | "renderValue"> & import("@material-ui/core").StyledComponentProps<"selectMenu" | "menuItem" | "formControl" | "multipleMenuItem">>;
38
+ } & {}, "onChange" | "defaultValue" | "placeholder" | "disabled" | "multiple" | "options" | "currentValue" | "errorText" | "renderValue"> & import("@material-ui/core").StyledComponentProps<"selectMenu" | "formControl" | "menuItem" | "multipleMenuItem">>;
39
39
  import PropTypes from "prop-types";
40
40
  //# sourceMappingURL=index.d.ts.map
@@ -1,25 +1,29 @@
1
- export default RadioEditor;
2
- export function radioEditorForDefinitions(options: any, defaultValue: any): (props: any) => JSX.Element;
3
- declare function RadioEditor({ options, currentValue, defaultValue, onChange }: {
4
- options: any;
5
- currentValue: any;
6
- defaultValue: any;
7
- onChange: any;
8
- }): JSX.Element;
9
- declare namespace RadioEditor {
10
- namespace propTypes {
11
- const options: PropTypes.Validator<PropTypes.InferProps<{
1
+ import PropTypes from 'prop-types';
2
+ declare type RadioEditorProps = PropTypes.InferProps<typeof radioEditorPropTypes>;
3
+ declare const RadioEditor: {
4
+ ({ options, currentValue, defaultValue, onChange }: RadioEditorProps): JSX.Element;
5
+ propTypes: {
6
+ options: PropTypes.Validator<PropTypes.InferProps<{
12
7
  value: PropTypes.Requireable<string>;
13
8
  label: PropTypes.Requireable<string>;
14
9
  }>[]>;
15
- const defaultValue: PropTypes.Validator<NonNullable<NonNullable<string | number>>>;
16
- const currentValue: PropTypes.Requireable<NonNullable<string | number>>;
17
- const onChange: PropTypes.Validator<(...args: any[]) => any>;
18
- }
19
- namespace defaultProps {
20
- const currentValue_1: any;
21
- export { currentValue_1 as currentValue };
22
- }
23
- }
24
- import PropTypes from "prop-types";
10
+ defaultValue: PropTypes.Validator<NonNullable<NonNullable<string | number>>>;
11
+ currentValue: PropTypes.Requireable<NonNullable<string | number>>;
12
+ onChange: PropTypes.Validator<(...args: any[]) => any>;
13
+ };
14
+ defaultProps: {
15
+ currentValue: any;
16
+ };
17
+ };
18
+ declare const radioEditorPropTypes: {
19
+ options: PropTypes.Validator<PropTypes.InferProps<{
20
+ value: PropTypes.Requireable<string>;
21
+ label: PropTypes.Requireable<string>;
22
+ }>[]>;
23
+ defaultValue: PropTypes.Validator<NonNullable<NonNullable<string | number>>>;
24
+ currentValue: PropTypes.Requireable<NonNullable<string | number>>;
25
+ onChange: PropTypes.Validator<(...args: any[]) => any>;
26
+ };
27
+ export default RadioEditor;
28
+ export declare const radioEditorForDefinitions: (options: any, defaultValue: any) => (props: any) => JSX.Element;
25
29
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingEditors/RadioEditor/index.js"],"names":[],"mappings":";AAqCO,wGAEN;AAnCD;;;;;gBAgBC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingEditors/RadioEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,aAAK,gBAAgB,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE1E,QAAA,MAAM,WAAW;wDAAuD,gBAAgB,GAAG,WAAW;;;;;;;;;;;;;CAgBrG,CAAC;AAEF,QAAA,MAAM,oBAAoB;;;;;;;;CAMzB,CAAA;AAQD,eAAe,WAAW,CAAC;AAG3B,eAAO,MAAM,yBAAyB,kEAErC,CAAC"}
@@ -1 +1 @@
1
- import"@babel/runtime/helpers/defineProperty";import e from"prop-types";import{FormControl as r,RadioGroup as n,FormControlLabel as o,Radio as i}from"@material-ui/core";import{jsx as a}from"react/jsx-runtime";var t=function(e){var t=e.options,u=e.currentValue,l=e.defaultValue,p=e.onChange,s=void 0===u?l:u;return a(r,{component:"fieldset",margin:"dense",fullWidth:!0,children:a(n,{"aria-label":"position",name:"radio_editor",row:!0,children:t.map((function(e){var r=e.value,n=e.label;return a(o,{onChange:function(){return p(r)},control:a(i,{color:"primary",checked:r===s}),label:n},r)}))})})};t.propTypes={options:e.arrayOf(e.shape({value:e.string,label:e.string})).isRequired,defaultValue:e.oneOfType([e.string,e.number]).isRequired,currentValue:e.oneOfType([e.string,e.number]),onChange:e.func.isRequired},t.defaultProps={currentValue:void 0};export{t as default};
1
+ import{__assign as e}from"../../../_virtual/_tslib.js";import{jsx as r}from"react/jsx-runtime";import n from"prop-types";import{FormControl as o,RadioGroup as i,FormControlLabel as a,Radio as t}from"@material-ui/core";var u=function(n){var u=n.options,l=n.currentValue,p=n.defaultValue,s=n.onChange,d=void 0===l?p:l;return r(o,e({component:"fieldset",margin:"dense",fullWidth:!0},{children:r(i,e({"aria-label":"position",name:"radio_editor",row:!0},{children:u.map((function(e){var n=e.value,o=e.label;return r(a,{onChange:function(){return s(n)},control:r(t,{color:"primary",checked:n===d}),label:o},n)}))}))}))},l={options:n.arrayOf(n.shape({value:n.string,label:n.string})).isRequired,defaultValue:n.oneOfType([n.string,n.number]).isRequired,currentValue:n.oneOfType([n.string,n.number]),onChange:n.func.isRequired};u.propTypes=l,u.defaultProps={currentValue:void 0};export{u as default};
@@ -6,7 +6,7 @@ declare function ElementsComparison({ rowKey, summaries, sort, order, showBar, v
6
6
  order: any;
7
7
  showBar: any;
8
8
  viewMode: any;
9
- }): any;
9
+ }): JSX.Element[];
10
10
  declare namespace ElementsComparison {
11
11
  namespace propTypes {
12
12
  export { string as rowKey };
@@ -1 +1 @@
1
- {"version":3,"file":"ElementsComparison.d.ts","sourceRoot":"","sources":["../../../../src/components/StageDesignVActual/ElementsComparison/ElementsComparison.js"],"names":[],"mappings":";AAQA;;;;;;;QAiCC"}
1
+ {"version":3,"file":"ElementsComparison.d.ts","sourceRoot":"","sources":["../../../../src/components/StageDesignVActual/ElementsComparison/ElementsComparison.js"],"names":[],"mappings":";AAQA;;;;;;;kBAiCC"}
@@ -3,5 +3,8 @@ export function getElementInfo({ designElements, actualElements, rowKey, predict
3
3
  actualElements: any;
4
4
  rowKey: any;
5
5
  predictionSummary: any;
6
- }): any;
6
+ }): {
7
+ elemMax: number;
8
+ elemAmount: any[];
9
+ };
7
10
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/StageDesignVActual/ElementsComparison/utils.js"],"names":[],"mappings":"AAQO;;;;;QAoDN"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/StageDesignVActual/ElementsComparison/utils.js"],"names":[],"mappings":"AAQO;;;;;;;;EAoDN"}
@@ -1,45 +1,40 @@
1
- export default Step;
2
- declare function Step({ value, checked, active, error, disabled, size, canGoBack, label, className }: {
3
- value: any;
4
- checked: any;
5
- active: any;
6
- error: any;
7
- disabled: any;
8
- size: any;
9
- canGoBack: any;
10
- label: any;
11
- className: any;
12
- }): JSX.Element;
1
+ import PropTypes from 'prop-types';
2
+ interface StepProps extends PropTypes.InferProps<typeof stepPropTypes> {
3
+ }
4
+ declare function Step({ value, checked, active, error, disabled, size, canGoBack, label, className }: StepProps): JSX.Element;
13
5
  declare namespace Step {
14
- namespace propTypes {
15
- const value: PropTypes.Validator<number>;
16
- const label: PropTypes.Requireable<PropTypes.ReactNodeLike>;
17
- const checked: PropTypes.Requireable<boolean>;
18
- const active: PropTypes.Requireable<boolean>;
19
- const error: PropTypes.Requireable<boolean>;
20
- const disabled: PropTypes.Requireable<boolean>;
21
- const size: PropTypes.Requireable<string>;
22
- const canGoBack: PropTypes.Requireable<boolean>;
23
- const className: PropTypes.Requireable<string>;
24
- }
25
- namespace defaultProps {
26
- const checked_1: boolean;
27
- export { checked_1 as checked };
28
- const active_1: boolean;
29
- export { active_1 as active };
30
- const error_1: boolean;
31
- export { error_1 as error };
32
- const disabled_1: boolean;
33
- export { disabled_1 as disabled };
34
- const size_1: string;
35
- export { size_1 as size };
36
- const canGoBack_1: boolean;
37
- export { canGoBack_1 as canGoBack };
38
- const label_1: string;
39
- export { label_1 as label };
40
- const className_1: string;
41
- export { className_1 as className };
42
- }
6
+ var propTypes: {
7
+ value: PropTypes.Validator<number>;
8
+ label: PropTypes.Requireable<PropTypes.ReactNodeLike>;
9
+ checked: PropTypes.Requireable<boolean>;
10
+ active: PropTypes.Requireable<boolean>;
11
+ error: PropTypes.Requireable<boolean>;
12
+ disabled: PropTypes.Requireable<boolean>;
13
+ size: PropTypes.Requireable<string>;
14
+ canGoBack: PropTypes.Requireable<boolean>;
15
+ className: PropTypes.Requireable<string>;
16
+ };
17
+ var defaultProps: {
18
+ checked: boolean;
19
+ active: boolean;
20
+ error: boolean;
21
+ disabled: boolean;
22
+ size: string;
23
+ canGoBack: boolean;
24
+ label: string;
25
+ className: string;
26
+ };
43
27
  }
44
- import PropTypes from "prop-types";
28
+ declare const stepPropTypes: {
29
+ value: PropTypes.Validator<number>;
30
+ label: PropTypes.Requireable<PropTypes.ReactNodeLike>;
31
+ checked: PropTypes.Requireable<boolean>;
32
+ active: PropTypes.Requireable<boolean>;
33
+ error: PropTypes.Requireable<boolean>;
34
+ disabled: PropTypes.Requireable<boolean>;
35
+ size: PropTypes.Requireable<string>;
36
+ canGoBack: PropTypes.Requireable<boolean>;
37
+ className: PropTypes.Requireable<string>;
38
+ };
39
+ export default Step;
45
40
  //# sourceMappingURL=Step.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Step.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Step.js"],"names":[],"mappings":";AAqBA;;;;;;;;;;gBAuBC"}
1
+ {"version":3,"file":"Step.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Step.tsx"],"names":[],"mappings":"AAEA,OAAO,SAAS,MAAM,YAAY,CAAC;AAuBnC,UAAU,SAAU,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC;CAAG;AAEzE,iBAAS,IAAI,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,SAAS,GAAG,GAAG,CAAC,OAAO,CAuBpH;kBAvBQ,IAAI;;;;;;;;;;;;;;;;;;;;;;;AAyBb,QAAA,MAAM,aAAa;;;;;;;;;;CAUlB,CAAC;AAeF,eAAe,IAAI,CAAC"}
@@ -1 +1 @@
1
- import e from"classnames";import r from"prop-types";import{SIZES as a}from"./constants.js";import s from"./Step.css.js";import{jsxs as i,jsx as o}from"react/jsx-runtime";var l=function(e){var r=e.size;return o("svg",{width:r,height:r,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:o("path",{d:"M6.0001 10.7799L3.2201 7.9999L2.27344 8.9399L6.0001 12.6666L14.0001 4.66656L13.0601 3.72656L6.0001 10.7799Z",fill:"white"})})};function c(r){var c=r.value,t=r.checked,d=r.active,n=r.error,m=r.disabled,p=r.size,v=r.canGoBack,b=r.label,h=r.className;return i("div",{className:e(s.step,s[p],d&&s.active,n&&s.error,t&&!n&&s.checked,m&&s.disabled,h),children:[o("div",{className:s.stepCircle,children:!t||n||v?c:o(l,{size:p===a.large?24:16})}),b]})}c.propTypes={value:r.number.isRequired,label:r.node,checked:r.bool,active:r.bool,error:r.bool,disabled:r.bool,size:r.string,canGoBack:r.bool,className:r.string},c.defaultProps={checked:!1,active:!1,error:!1,disabled:!1,size:a.medium,canGoBack:!0,label:"",className:""};export{c as default};
1
+ import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as r,jsx as a}from"react/jsx-runtime";import s from"classnames";import i from"prop-types";import{SIZES as o}from"./constants.js";import l from"./Step.css.js";var t=function(r){var s=r.size;return a("svg",e({width:s,height:s,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:a("path",{d:"M6.0001 10.7799L3.2201 7.9999L2.27344 8.9399L6.0001 12.6666L14.0001 4.66656L13.0601 3.72656L6.0001 10.7799Z",fill:"white"})}))};function c(i){var c=i.value,d=i.checked,m=i.active,n=i.error,p=i.disabled,v=i.size,b=i.canGoBack,h=i.label,u=i.className;return r("div",e({className:s(l.step,l[v],m&&l.active,n&&l.error,d&&!n&&l.checked,p&&l.disabled,u)},{children:[a("div",e({className:l.stepCircle},{children:!d||n||b?c:a(t,{size:v===o.large?24:16})})),h]}))}var d={value:i.number.isRequired,label:i.node,checked:i.bool,active:i.bool,error:i.bool,disabled:i.bool,size:i.string,canGoBack:i.bool,className:i.string};c.propTypes=d,c.defaultProps={checked:!1,active:!1,error:!1,disabled:!1,size:o.medium,canGoBack:!0,label:"",className:""};export{c as default};
@@ -1,12 +1,10 @@
1
- export default Stepper;
2
- declare function Stepper({ steps, activeStep, size }: {
3
- steps: any;
4
- activeStep: any;
5
- size: any;
6
- }): JSX.Element;
1
+ import PropTypes from 'prop-types';
2
+ interface StepperProps extends PropTypes.InferProps<typeof stepperPropTypes> {
3
+ }
4
+ declare function Stepper({ steps, activeStep, size }: StepperProps): JSX.Element;
7
5
  declare namespace Stepper {
8
- namespace propTypes {
9
- const steps: PropTypes.Validator<PropTypes.InferProps<{
6
+ var propTypes: {
7
+ steps: PropTypes.Validator<PropTypes.InferProps<{
10
8
  value: PropTypes.Validator<number>;
11
9
  label: PropTypes.Requireable<PropTypes.ReactNodeLike>;
12
10
  checked: PropTypes.Requireable<boolean>;
@@ -17,15 +15,28 @@ declare namespace Stepper {
17
15
  canGoBack: PropTypes.Requireable<boolean>;
18
16
  className: PropTypes.Requireable<string>;
19
17
  }>[]>;
20
- const activeStep: PropTypes.Requireable<number>;
21
- const size: PropTypes.Requireable<string>;
22
- }
23
- namespace defaultProps {
24
- const activeStep_1: any;
25
- export { activeStep_1 as activeStep };
26
- const size_1: string;
27
- export { size_1 as size };
28
- }
18
+ activeStep: PropTypes.Requireable<number>;
19
+ size: PropTypes.Requireable<string>;
20
+ };
21
+ var defaultProps: {
22
+ activeStep: any;
23
+ size: string;
24
+ };
29
25
  }
30
- import PropTypes from "prop-types";
26
+ declare const stepperPropTypes: {
27
+ steps: PropTypes.Validator<PropTypes.InferProps<{
28
+ value: PropTypes.Validator<number>;
29
+ label: PropTypes.Requireable<PropTypes.ReactNodeLike>;
30
+ checked: PropTypes.Requireable<boolean>;
31
+ active: PropTypes.Requireable<boolean>;
32
+ error: PropTypes.Requireable<boolean>;
33
+ disabled: PropTypes.Requireable<boolean>;
34
+ size: PropTypes.Requireable<string>;
35
+ canGoBack: PropTypes.Requireable<boolean>;
36
+ className: PropTypes.Requireable<string>;
37
+ }>[]>;
38
+ activeStep: PropTypes.Requireable<number>;
39
+ size: PropTypes.Requireable<string>;
40
+ };
41
+ export default Stepper;
31
42
  //# sourceMappingURL=Stepper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.js"],"names":[],"mappings":";AAKA;;;;gBAgBC"}
1
+ {"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,UAAU,YAAa,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC;CAAG;AAE/E,iBAAS,OAAO,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,YAAY,GAAG,GAAG,CAAC,OAAO,CAgBvE;kBAhBQ,OAAO;;;;;;;;;;;;;;;;;;;;;AAkBhB,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;CAIrB,CAAC;AASF,eAAe,OAAO,CAAC"}
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import r from"prop-types";import t from"./Step.js";import o from"./StepsWrapper.js";import{SIZES as p}from"./constants.js";import{jsx as i}from"react/jsx-runtime";function n(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function c(r){var p=r.steps,c=r.activeStep,s=r.size;return i(o,{children:p.map((function(r){return i(t,function(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?n(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}({checked:r.value<c,active:r.value===c,size:s,disabled:r.disabled,canGoBack:r.canGoBack},r),r.value)}))})}c.propTypes={steps:r.arrayOf(r.shape(t.propTypes)).isRequired,activeStep:r.number,size:r.string},c.defaultProps={activeStep:void 0,size:p.medium};export{c as default};
1
+ import{__assign as e}from"../../_virtual/_tslib.js";import{jsx as r}from"react/jsx-runtime";import t from"prop-types";import p from"./Step.js";import i from"./StepsWrapper.js";import{SIZES as s}from"./constants.js";function a(t){var s=t.steps,a=t.activeStep,o=t.size;return r(i,{children:s.map((function(t){return r(p,e({checked:t.value<a,active:t.value===a,size:o,disabled:t.disabled,canGoBack:t.canGoBack},t),t.value)}))})}var o={steps:t.arrayOf(t.shape(p.propTypes)).isRequired,activeStep:t.number,size:t.string};a.propTypes=o,a.defaultProps={activeStep:void 0,size:s.medium};export{a as default};
@@ -1,17 +1,19 @@
1
- export default StepsWrapper;
2
- declare function StepsWrapper({ children, className }: {
3
- children: any;
4
- className: any;
5
- }): JSX.Element;
1
+ import PropTypes from 'prop-types';
2
+ interface StepsWrapperProps extends PropTypes.InferProps<typeof stepsWrapperPropTypes> {
3
+ }
4
+ declare function StepsWrapper({ children, className }: StepsWrapperProps): JSX.Element;
6
5
  declare namespace StepsWrapper {
7
- namespace propTypes {
8
- const children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
9
- const className: PropTypes.Requireable<string>;
10
- }
11
- namespace defaultProps {
12
- const className_1: string;
13
- export { className_1 as className };
14
- }
6
+ var propTypes: {
7
+ children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
8
+ className: PropTypes.Requireable<string>;
9
+ };
10
+ var defaultProps: {
11
+ className: string;
12
+ };
15
13
  }
16
- import PropTypes from "prop-types";
14
+ declare const stepsWrapperPropTypes: {
15
+ children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
16
+ className: PropTypes.Requireable<string>;
17
+ };
18
+ export default StepsWrapper;
17
19
  //# sourceMappingURL=StepsWrapper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StepsWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/StepsWrapper.js"],"names":[],"mappings":";AAIA;;;gBAEC"}
1
+ {"version":3,"file":"StepsWrapper.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/StepsWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,UAAU,iBAAkB,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,qBAAqB,CAAC;CAAG;AAEzF,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,iBAAiB,GAAG,GAAG,CAAC,OAAO,CAE7E;kBAFQ,YAAY;;;;;;;;;AAIrB,QAAA,MAAM,qBAAqB;;;CAG1B,CAAC;AAQF,eAAe,YAAY,CAAC"}
@@ -1 +1 @@
1
- import r from"prop-types";import e from"classnames";import s from"./StepsWrapper.css.js";import{jsx as a}from"react/jsx-runtime";function o(r){var o=r.children,p=r.className;return a("div",{className:e(s.container,p),children:o})}o.propTypes={children:r.node.isRequired,className:r.string},o.defaultProps={className:""};export{o as default};
1
+ import{__assign as r}from"../../_virtual/_tslib.js";import{jsx as s}from"react/jsx-runtime";import e from"prop-types";import a from"classnames";import t from"./StepsWrapper.css.js";function i(e){var i=e.children,o=e.className;return s("div",r({className:a(t.container,o)},{children:i}))}var o={children:e.node.isRequired,className:e.string};i.propTypes=o,i.defaultProps={className:""};export{i as default};